|
|
!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5238],{70557:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},40001:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},26227:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},41464:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},18785:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},73331:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},15277:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},33853:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},61485:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},38819:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},47472:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(P,O){return Y.createElement(ne.Z,(0,v.Z)({},P,{ref:O,icon:Ie}))},ye=Y.forwardRef(se),ve=ye},35593:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Xt}});var v=y(44127),Y=y(72071),ge=y(6620),Ie=y(43403),ne=y(92310),se=y.n(ne),ye=y(29301),ve=y(76846),a=y(96452),P=y(6089),O=y(80402),A=y(34280),c=y(49658),w=y(59301),E=y(96663),V=y(77900),te=y(8654);function R(de){var Ee=de.prefixCls,F=de.align,fe=de.arrow,Te=de.arrowPos,I=fe||{},ee=I.className,he=I.content,be=Te.x,Oe=be===void 0?0:be,Fe=Te.y,Qe=Fe===void 0?0:Fe,ht=w.useRef();if(!F||!F.points)return null;var ot={position:"absolute"};if(F.autoArrow!==!1){var Xe=F.points[0],Dt=F.points[1],kt=Xe[0],Le=Xe[1],Ke=Dt[0],nt=Dt[1];kt===Ke||!["t","b"].includes(kt)?ot.top=Qe:kt==="t"?ot.top=0:ot.bottom=0,Le===nt||!["l","r"].includes(Le)?ot.left=Oe:Le==="l"?ot.left=0:ot.right=0}return w.createElement("div",{ref:ht,className:se()("".concat(Ee,"-arrow"),ee),style:ot},he)}function k(de){var Ee=de.prefixCls,F=de.open,fe=de.zIndex,Te=de.mask,I=de.motion;return Te?w.createElement(V.default,(0,E.Z)({},I,{motionAppear:!0,visible:F,removeOnLeave:!0}),function(ee){var he=ee.className;return w.createElement("div",{style:{zIndex:fe},className:se()("".concat(Ee,"-mask"),he)})}):null}var U=w.memo(function(de){var Ee=de.children;return Ee},function(de,Ee){return Ee.cache}),ae=U,x=w.forwardRef(function(de,Ee){var F=de.popup,fe=de.className,Te=de.prefixCls,I=de.style,ee=de.target,he=de.onVisibleChanged,be=de.open,Oe=de.keepDom,Fe=de.fresh,Qe=de.onClick,ht=de.mask,ot=de.arrow,Xe=de.arrowPos,Dt=de.align,kt=de.motion,Le=de.maskMotion,Ke=de.forceRender,nt=de.getPopupContainer,ft=de.autoDestroy,At=de.portal,It=de.zIndex,_=de.onMouseEnter,C=de.onMouseLeave,et=de.onPointerEnter,$=de.ready,me=de.offsetX,tr=de.offsetY,ke=de.offsetR,He=de.offsetB,Ze=de.onAlign,X=de.onPrepare,oe=de.stretch,De=de.targetWidth,ze=de.targetHeight,j=typeof F=="function"?F():F,Pt=be||Oe,Ae=(nt==null?void 0:nt.length)>0,Zt=w.useState(!nt||!Ae),lr=(0,Y.Z)(Zt,2),wt=lr[0],Mt=lr[1];if((0,A.Z)(function(){!wt&&Ae&&ee&&Mt(!0)},[wt,Ae,ee]),!wt)return null;var pt="auto",Et={left:"-1000vw",top:"-1000vh",right:pt,bottom:pt};if($||!be){var Re,st=Dt.points,ct=Dt.dynamicInset||((Re=Dt._experimental)===null||Re===void 0?void 0:Re.dynamicInset),gt=ct&&st[0][1]==="r",Je=ct&&st[0][0]==="b";gt?(Et.right=ke,Et.left=pt):(Et.left=me,Et.right=pt),Je?(Et.bottom=He,Et.top=pt):(Et.top=tr,Et.bottom=pt)}var Ft={};return oe&&(oe.includes("height")&&ze?Ft.height=ze:oe.includes("minHeight")&&ze&&(Ft.minHeight=ze),oe.includes("width")&&De?Ft.width=De:oe.includes("minWidth")&&De&&(Ft.minWidth=De)),be||(Ft.pointerEvents="none"),w.createElement(At,{open:Ke||Pt,getContainer:nt&&function(){return nt(ee)},autoDestroy:ft},w.createElement(k,{prefixCls:Te,open:be,zIndex:It,mask:ht,motion:Le}),w.createElement(ye.Z,{onResize:Ze,disabled:!be},function($t){return w.createElement(V.default,(0,E.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ke,leavedClassName:"".concat(Te,"-hidden")},kt,{onAppearPrepare:X,onEnterPrepare:X,visible:be,onVisibleChanged:function(gr){var vr;kt==null||(vr=kt.onVisibleChanged)===null||vr===void 0||vr.call(kt,gr),he(gr)}}),function(Wt,gr){var vr=Wt.className,er=Wt.style,yr=se()(Te,vr,fe);return w.createElement("div",{ref:(0,te.sQ)($t,Ee,gr),className:yr,style:(0,v.Z)((0,v.Z)((0,v.Z)((0,v.Z)({"--arrow-x":"".concat(Xe.x||0,"px"),"--arrow-y":"".concat(Xe.y||0,"px")},Et),Ft),er),{},{boxSizing:"border-box",zIndex:It},I),onMouseEnter:_,onMouseLeave:C,onPointerEnter:et,onClick:Qe},ot&&w.createElement(R,{prefixCls:Te,arrow:ot,arrowPos:Xe,align:Dt}),w.createElement(ae,{cache:!be&&!Fe},j))})}))}),z=x,Q=w.forwardRef(function(de,Ee){var F=de.children,fe=de.getTriggerDOMNode,Te=(0,te.Yr)(F),I=w.useCallback(function(he){(0,te.mH)(Ee,fe?fe(he):he)},[fe]),ee=(0,te.x1)(I,F.ref);return Te?w.cloneElement(F,{ref:ee}):F}),q=Q,ce=w.createContext(null),xe=ce;function we(de){return de?Array.isArray(de)?de:[de]:[]}function Be(de,Ee,F,fe){return w.useMemo(function(){var Te=we(F!=null?F:Ee),I=we(fe!=null?fe:Ee),ee=new Set(Te),he=new Set(I);return de&&(ee.has("hover")&&(ee.delete("hover"),ee.add("click")),he.has("hover")&&(he.delete("hover"),he.add("click"))),[ee,he]},[de,Ee,F,fe])}var H=y(29194);function L(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=arguments.length>2?arguments[2]:void 0;return F?de[0]===Ee[0]:de[0]===Ee[0]&&de[1]===Ee[1]}function Z(de,Ee,F,fe){for(var Te=F.points,I=Object.keys(de),ee=0;ee<I.length;ee+=1){var he,be=I[ee];if(L((he=de[be])===null||he===void 0?void 0:he.points,Te,fe))return"".concat(Ee,"-placement-").concat(be)}return""}function W(de,Ee,F,fe){return Ee||(F?{motionName:"".concat(de,"-").concat(F)}:fe?{motionName:fe}:null)}function le(de){return de.ownerDocument.defaultView}function J(de){for(var Ee=[],F=de==null?void 0:de.parentElement,fe=["hidden","scroll","clip","auto"];F;){var Te=le(F).getComputedStyle(F),I=Te.overflowX,ee=Te.overflowY,he=Te.overflow;[I,ee,he].some(function(be){return fe.includes(be)})&&Ee.push(F),F=F.parentElement}return Ee}function g(de){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(de)?Ee:de}function S(de){return g(parseFloat(de),0)}function K(de,Ee){var F=(0,v.Z)({},de);return(Ee||[]).forEach(function(fe){if(!(fe instanceof HTMLBodyElement||fe instanceof HTMLHtmlElement)){var Te=le(fe).getComputedStyle(fe),I=Te.overflow,ee=Te.overflowClipMargin,he=Te.borderTopWidth,be=Te.borderBottomWidth,Oe=Te.borderLeftWidth,Fe=Te.borderRightWidth,Qe=fe.getBoundingClientRect(),ht=fe.offsetHeight,ot=fe.clientHeight,Xe=fe.offsetWidth,Dt=fe.clientWidth,kt=S(he),Le=S(be),Ke=S(Oe),nt=S(Fe),ft=g(Math.round(Qe.width/Xe*1e3)/1e3),At=g(Math.round(Qe.height/ht*1e3)/1e3),It=(Xe-Dt-Ke-nt)*ft,_=(ht-ot-kt-Le)*At,C=kt*At,et=Le*At,$=Ke*ft,me=nt*ft,tr=0,ke=0;if(I==="clip"){var He=S(ee);tr=He*ft,ke=He*At}var Ze=Qe.x+$-tr,X=Qe.y+C-ke,oe=Ze+Qe.width+2*tr-$-me-It,De=X+Qe.height+2*ke-C-et-_;F.left=Math.max(F.left,Ze),F.top=Math.max(F.top,X),F.right=Math.min(F.right,oe),F.bottom=Math.min(F.bottom,De)}}),F}function G(de){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F="".concat(Ee),fe=F.match(/^(.*)\%$/);return fe?de*(parseFloat(fe[1])/100):parseFloat(F)}function Pe(de,Ee){var F=Ee||[],fe=(0,Y.Z)(F,2),Te=fe[0],I=fe[1];return[G(de.width,Te),G(de.height,I)]}function Ne(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[de[0],de[1]]}function Ue(de,Ee){var F=Ee[0],fe=Ee[1],Te,I;return F==="t"?I=de.y:F==="b"?I=de.y+de.height:I=de.y+de.height/2,fe==="l"?Te=de.x:fe==="r"?Te=de.x+de.width:Te=de.x+de.width/2,{x:Te,y:I}}function Ve(de,Ee){var F={t:"b",b:"t",l:"r",r:"l"};return de.map(function(fe,Te){return Te===Ee?F[fe]||"c":fe}).join("")}function qe(de,Ee,F,fe,Te,I,ee){var he=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Te[fe]||{}}),be=(0,Y.Z)(he,2),Oe=be[0],Fe=be[1],Qe=w.useRef(0),ht=w.useMemo(function(){return Ee?J(Ee):[]},[Ee]),ot=w.useRef({}),Xe=function(){ot.current={}};de||Xe();var Dt=(0,P.Z)(function(){if(Ee&&F&&de){let In=function(Mn,ni){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yr,Hn=j.x+Mn,ei=j.y+ni,Mi=Hn+Re,Hi=ei+Et,Si=Math.max(Hn,ai.left),Yi=Math.max(ei,ai.top),Li=Math.min(Mi,ai.right),ki=Math.min(Hi,ai.bottom);return Math.max(0,(Li-Si)*(ki-Yi))},hn=function(){wr=j.y+ir,Wr=wr+Et,Qr=j.x+fr,cn=Qr+Re};var Ke,nt,ft=Ee,At=ft.ownerDocument,It=le(ft),_=It.getComputedStyle(ft),C=_.width,et=_.height,$=_.position,me=ft.style.left,tr=ft.style.top,ke=ft.style.right,He=ft.style.bottom,Ze=ft.style.overflow,X=(0,v.Z)((0,v.Z)({},Te[fe]),I),oe=At.createElement("div");(Ke=ft.parentElement)===null||Ke===void 0||Ke.appendChild(oe),oe.style.left="".concat(ft.offsetLeft,"px"),oe.style.top="".concat(ft.offsetTop,"px"),oe.style.position=$,oe.style.height="".concat(ft.offsetHeight,"px"),oe.style.width="".concat(ft.offsetWidth,"px"),ft.style.left="0",ft.style.top="0",ft.style.right="auto",ft.style.bottom="auto",ft.style.overflow="hidden";var De;if(Array.isArray(F))De={x:F[0],y:F[1],width:0,height:0};else{var ze=F.getBoundingClientRect();De={x:ze.x,y:ze.y,width:ze.width,height:ze.height}}var j=ft.getBoundingClientRect(),Pt=At.documentElement,Ae=Pt.clientWidth,Zt=Pt.clientHeight,lr=Pt.scrollWidth,wt=Pt.scrollHeight,Mt=Pt.scrollTop,pt=Pt.scrollLeft,Et=j.height,Re=j.width,st=De.height,ct=De.width,gt={left:0,top:0,right:Ae,bottom:Zt},Je={left:-pt,top:-Mt,right:lr-pt,bottom:wt-Mt},Ft=X.htmlRegion,$t="visible",Wt="visibleFirst";Ft!=="scroll"&&Ft!==Wt&&(Ft=$t);var gr=Ft===Wt,vr=K(Je,ht),er=K(gt,ht),yr=Ft===$t?er:vr,_r=gr?er:yr;ft.style.left="auto",ft.style.top="auto",ft.style.right="0",ft.style.bottom="0";var Jt=ft.getBoundingClientRect();ft.style.left=me,ft.style.top=tr,ft.style.right=ke,ft.style.bottom=He,ft.style.overflow=Ze,(nt=ft.parentElement)===null||nt===void 0||nt.removeChild(oe);var Kt=g(Math.round(Re/parseFloat(C)*1e3)/1e3),$e=g(Math.round(Et/parseFloat(et)*1e3)/1e3);if(Kt===0||$e===0||(0,ve.Sh)(F)&&!(0,H.Z)(F))return;var vt=X.offset,at=X.targetOffset,yt=Pe(j,vt),Nt=(0,Y.Z)(yt,2),Ot=Nt[0],ut=Nt[1],Se=Pe(De,at),We=(0,Y.Z)(Se,2),rt=We[0],bt=We[1];De.x-=rt,De.y-=bt;var mt=X.points||[],Ct=(0,Y.Z)(mt,2),Tt=Ct[0],ar=Ct[1],cr=Ne(ar),ur=Ne(Tt),Er=Ue(De,cr),Fr=Ue(j,ur),Lr=(0,v.Z)({},X),fr=Er.x-Fr.x+Ot,ir=Er.y-Fr.y+ut,$r=In(fr,ir),Ir=In(fr,ir,er),zr=Ue(De,["t","l"]),Tr=Ue(j,["t","l"]),Rr=Ue(De,["b","r"]),Mr=Ue(j,["b","r"]),jr=X.overflow||{},Gr=jr.adjustX,ln=jr.adjustY,Hr=jr.shiftX,br=jr.shiftY,Ye=function(ni){return typeof ni=="boolean"?ni:ni>=0},wr,Wr,Qr,cn;hn();var En=Ye(ln),Ar=ur[0]===cr[0];if(En&&ur[0]==="t"&&(Wr>_r.bottom||ot.current.bt)){var Cr=ir;Ar?Cr-=Et-st:Cr=zr.y-Mr.y-ut;var Xr=In(fr,Cr),Jr=In(fr,Cr,er);Xr>$r||Xr===$r&&(!gr||Jr>=Ir)?(ot.current.bt=!0,ir=Cr,ut=-ut,Lr.points=[Ve(ur,0),Ve(cr,0)]):ot.current.bt=!1}if(En&&ur[0]==="b"&&(wr<_r.top||ot.current.tb)){var Zr=ir;Ar?Zr+=Et-st:Zr=Rr.y-Tr.y-ut;var un=In(fr,Zr),si=In(fr,Zr,er);un>$r||un===$r&&(!gr||si>=Ir)?(ot.current.tb=!0,ir=Zr,ut=-ut,Lr.points=[Ve(ur,0),Ve(cr,0)]):ot.current.tb=!1}var Pn=Ye(Gr),an=ur[1]===cr[1];if(Pn&&ur[1]==="l"&&(cn>_r.right||ot.current.rl)){var dr=fr;an?dr-=Re-ct:dr=zr.x-Mr.x-Ot;var dn=In(dr,ir),fn=In(dr,ir,er);dn>$r||dn===$r&&(!gr||fn>=Ir)?(ot.current.rl=!0,fr=dr,Ot=-Ot,Lr.points=[Ve(ur,1),Ve(cr,1)]):ot.current.rl=!1}if(Pn&&ur[1]==="r"&&(Qr<_r.left||ot.current.lr)){var Fn=fr;an?Fn+=Re-ct:Fn=Rr.x-Tr.x-Ot;var ci=In(Fn,ir),Jn=In(Fn,ir,er);ci>$r||ci===$r&&(!gr||Jn>=Ir)?(ot.current.lr=!0,fr=Fn,Ot=-Ot,Lr.points=[Ve(ur,1),Ve(cr,1)]):ot.current.lr=!1}hn();var Cn=Hr===!0?0:Hr;typeof Cn=="number"&&(Qr<er.left&&(fr-=Qr-er.left-Ot,De.x+ct<er.left+Cn&&(fr+=De.x-er.left+ct-Cn)),cn>er.right&&(fr-=cn-er.right-Ot,De.x>er.right-Cn&&(fr+=De.x-er.right+Cn)));var Nn=br===!0?0:br;typeof Nn=="number"&&(wr<er.top&&(ir-=wr-er.top-ut,De.y+st<er.top+Nn&&(ir+=De.y-er.top+st-Nn)),Wr>er.bottom&&(ir-=Wr-er.bottom-ut,De.y>er.bottom-Nn&&(ir+=De.y-er.bottom+Nn)));var bn=j.x+fr,ti=bn+Re,Kn=j.y+ir,ri=Kn+Et,$n=De.x,qn=$n+ct,tn=De.y,di=tn+st,vi=Math.max(bn,$n),Kr=Math.min(ti,qn),Ur=(vi+Kr)/2,pn=Ur-bn,Yr=Math.max(Kn,tn),Vt=Math.min(ri,di),gn=(Yr+Vt)/2,Gn=gn-Kn;ee==null||ee(Ee,Lr);var Vn=Jt.right-j.x-(fr+j.width),wn=Jt.bottom-j.y-(ir+j.height);Fe({ready:!0,offsetX:fr/Kt,offsetY:ir/$e,offsetR:Vn/Kt,offsetB:wn/$e,arrowX:pn/Kt,arrowY:Gn/$e,scaleX:Kt,scaleY:$e,align:Lr})}}),kt=function(){Qe.current+=1;var nt=Qe.current;Promise.resolve().then(function(){Qe.current===nt&&Dt()})},Le=function(){Fe(function(nt){return(0,v.Z)((0,v.Z)({},nt),{},{ready:!1})})};return(0,A.Z)(Le,[fe]),(0,A.Z)(function(){de||Le()},[de]),[Oe.ready,Oe.offsetX,Oe.offsetY,Oe.offsetR,Oe.offsetB,Oe.arrowX,Oe.arrowY,Oe.scaleX,Oe.scaleY,Oe.align,kt]}var tt=y(19127);function lt(de,Ee,F,fe,Te){(0,A.Z)(function(){if(de&&Ee&&F){let Qe=function(){fe(),Te()};var I=Ee,ee=F,he=J(I),be=J(ee),Oe=le(ee),Fe=new Set([Oe].concat((0,tt.Z)(he),(0,tt.Z)(be)));return Fe.forEach(function(ht){ht.addEventListener("scroll",Qe,{passive:!0})}),Oe.addEventListener("resize",Qe,{passive:!0}),fe(),function(){Fe.forEach(function(ht){ht.removeEventListener("scroll",Qe),Oe.removeEventListener("resize",Qe)})}}},[de,Ee,F])}var Ut=y(48736),Yt=y(16089);function sr(de,Ee,F,fe,Te,I,ee,he){var be=w.useRef(de),Oe=w.useRef(!1);be.current!==de&&(Oe.current=!0,be.current=de),w.useEffect(function(){var Fe=(0,Yt.Z)(function(){Oe.current=!1});return function(){Yt.Z.cancel(Fe)}},[de]),w.useEffect(function(){if(Ee&&fe&&(!Te||I)){var Fe=function(){var $=!1,me=function(He){var Ze=He.target;$=ee(Ze)},tr=function(He){var Ze=He.target;!Oe.current&&be.current&&!$&&!ee(Ze)&&he(!1)};return[me,tr]},Qe=Fe(),ht=(0,Y.Z)(Qe,2),ot=ht[0],Xe=ht[1],Dt=Fe(),kt=(0,Y.Z)(Dt,2),Le=kt[0],Ke=kt[1],nt=le(fe);nt.addEventListener("mousedown",ot,!0),nt.addEventListener("click",Xe,!0),nt.addEventListener("contextmenu",Xe,!0);var ft=(0,a.A)(F);if(ft&&(ft.addEventListener("mousedown",Le,!0),ft.addEventListener("click",Ke,!0),ft.addEventListener("contextmenu",Ke,!0)),0)var At,It,_,C;return function(){nt.removeEventListener("mousedown",ot,!0),nt.removeEventListener("click",Xe,!0),nt.removeEventListener("contextmenu",Xe,!0),ft&&(ft.removeEventListener("mousedown",Le,!0),ft.removeEventListener("click",Ke,!0),ft.removeEventListener("contextmenu",Ke,!0))}}},[Ee,F,fe,Te,I])}var Bt=["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 Ht(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ie.Z,Ee=w.forwardRef(function(F,fe){var Te=F.prefixCls,I=Te===void 0?"rc-trigger-popup":Te,ee=F.children,he=F.action,be=he===void 0?"hover":he,Oe=F.showAction,Fe=F.hideAction,Qe=F.popupVisible,ht=F.defaultPopupVisible,ot=F.onPopupVisibleChange,Xe=F.afterPopupVisibleChange,Dt=F.mouseEnterDelay,kt=F.mouseLeaveDelay,Le=kt===void 0?.1:kt,Ke=F.focusDelay,nt=F.blurDelay,ft=F.mask,At=F.maskClosable,It=At===void 0?!0:At,_=F.getPopupContainer,C=F.forceRender,et=F.autoDestroy,$=F.destroyPopupOnHide,me=F.popup,tr=F.popupClassName,ke=F.popupStyle,He=F.popupPlacement,Ze=F.builtinPlacements,X=Ze===void 0?{}:Ze,oe=F.popupAlign,De=F.zIndex,ze=F.stretch,j=F.getPopupClassNameFromAlign,Pt=F.fresh,Ae=F.alignPoint,Zt=F.onPopupClick,lr=F.onPopupAlign,wt=F.arrow,Mt=F.popupMotion,pt=F.maskMotion,Et=F.popupTransitionName,Re=F.popupAnimation,st=F.maskTransitionName,ct=F.maskAnimation,gt=F.className,Je=F.getTriggerDOMNode,Ft=(0,ge.Z)(F,Bt),$t=et||$||!1,Wt=w.useState(!1),gr=(0,Y.Z)(Wt,2),vr=gr[0],er=gr[1];(0,A.Z)(function(){er((0,c.Z)())},[]);var yr=w.useRef({}),_r=w.useContext(xe),Jt=w.useMemo(function(){return{registerSubPopup:function(Sr,mn){yr.current[Sr]=mn,_r==null||_r.registerSubPopup(Sr,mn)}}},[_r]),Kt=(0,O.Z)(),$e=w.useState(null),vt=(0,Y.Z)($e,2),at=vt[0],yt=vt[1],Nt=(0,P.Z)(function(kr){(0,ve.Sh)(kr)&&at!==kr&&yt(kr),_r==null||_r.registerSubPopup(Kt,kr)}),Ot=w.useState(null),ut=(0,Y.Z)(Ot,2),Se=ut[0],We=ut[1],rt=w.useRef(null),bt=(0,P.Z)(function(kr){(0,ve.Sh)(kr)&&Se!==kr&&(We(kr),rt.current=kr)}),mt=w.Children.only(ee),Ct=(mt==null?void 0:mt.props)||{},Tt={},ar=(0,P.Z)(function(kr){var Sr,mn,zn=Se;return(zn==null?void 0:zn.contains(kr))||((Sr=(0,a.A)(zn))===null||Sr===void 0?void 0:Sr.host)===kr||kr===zn||(at==null?void 0:at.contains(kr))||((mn=(0,a.A)(at))===null||mn===void 0?void 0:mn.host)===kr||kr===at||Object.values(yr.current).some(function(yn){return(yn==null?void 0:yn.contains(kr))||kr===yn})}),cr=W(I,Mt,Re,Et),ur=W(I,pt,ct,st),Er=w.useState(ht||!1),Fr=(0,Y.Z)(Er,2),Lr=Fr[0],fr=Fr[1],ir=Qe!=null?Qe:Lr,$r=(0,P.Z)(function(kr){Qe===void 0&&fr(kr)});(0,A.Z)(function(){fr(Qe||!1)},[Qe]);var Ir=w.useRef(ir);Ir.current=ir;var zr=w.useRef([]);zr.current=[];var Tr=(0,P.Z)(function(kr){var Sr;$r(kr),((Sr=zr.current[zr.current.length-1])!==null&&Sr!==void 0?Sr:ir)!==kr&&(zr.current.push(kr),ot==null||ot(kr))}),Rr=w.useRef(),Mr=function(){clearTimeout(Rr.current)},jr=function(Sr){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mr(),mn===0?Tr(Sr):Rr.current=setTimeout(function(){Tr(Sr)},mn*1e3)};w.useEffect(function(){return Mr},[]);var Gr=w.useState(!1),ln=(0,Y.Z)(Gr,2),Hr=ln[0],br=ln[1];(0,A.Z)(function(kr){(!kr||ir)&&br(!0)},[ir]);var Ye=w.useState(null),wr=(0,Y.Z)(Ye,2),Wr=wr[0],Qr=wr[1],cn=w.useState([0,0]),En=(0,Y.Z)(cn,2),Ar=En[0],Cr=En[1],Xr=function(Sr){Cr([Sr.clientX,Sr.clientY])},Jr=qe(ir,at,Ae?Ar:Se,He,X,oe,lr),Zr=(0,Y.Z)(Jr,11),un=Zr[0],si=Zr[1],Pn=Zr[2],an=Zr[3],dr=Zr[4],dn=Zr[5],fn=Zr[6],Fn=Zr[7],ci=Zr[8],Jn=Zr[9],Cn=Zr[10],Nn=Be(vr,be,Oe,Fe),bn=(0,Y.Z)(Nn,2),ti=bn[0],Kn=bn[1],ri=ti.has("click"),$n=Kn.has("click")||Kn.has("contextMenu"),qn=(0,P.Z)(function(){Hr||Cn()}),tn=function(){Ir.current&&Ae&&$n&&jr(!1)};lt(ir,Se,at,qn,tn),(0,A.Z)(function(){qn()},[Ar,He]),(0,A.Z)(function(){ir&&!(X!=null&&X[He])&&qn()},[JSON.stringify(oe)]);var di=w.useMemo(function(){var kr=Z(X,I,Jn,Ae);return se()(kr,j==null?void 0:j(Jn))},[Jn,j,X,I,Ae]);w.useImperativeHandle(fe,function(){return{nativeElement:rt.current,forceAlign:qn}});var vi=w.useState(0),Kr=(0,Y.Z)(vi,2),Ur=Kr[0],pn=Kr[1],Yr=w.useState(0),Vt=(0,Y.Z)(Yr,2),gn=Vt[0],Gn=Vt[1],Vn=function(){if(ze&&Se){var Sr=Se.getBoundingClientRect();pn(Sr.width),Gn(Sr.height)}},wn=function(){Vn(),qn()},In=function(Sr){br(!1),Cn(),Xe==null||Xe(Sr)},hn=function(){return new Promise(function(Sr){Vn(),Qr(function(){return Sr})})};(0,A.Z)(function(){Wr&&(Cn(),Wr(),Qr(null))},[Wr]);function Mn(kr,Sr,mn,zn){Tt[kr]=function(yn){var hi;zn==null||zn(yn),jr(Sr,mn);for(var Wi=arguments.length,Bi=new Array(Wi>1?Wi-1:0),Ei=1;Ei<Wi;Ei++)Bi[Ei-1]=arguments[Ei];(hi=Ct[kr])===null||hi===void 0||hi.call.apply(hi,[Ct,yn].concat(Bi))}}(ri||$n)&&(Tt.onClick=function(kr){var Sr;Ir.current&&$n?jr(!1):!Ir.current&&ri&&(Xr(kr),jr(!0));for(var mn=arguments.length,zn=new Array(mn>1?mn-1:0),yn=1;yn<mn;yn++)zn[yn-1]=arguments[yn];(Sr=Ct.onClick)===null||Sr===void 0||Sr.call.apply(Sr,[Ct,kr].concat(zn))}),sr(ir,$n,Se,at,ft,It,ar,jr);var ni=ti.has("hover"),ai=Kn.has("hover"),Hn,ei;ni&&(Mn("onMouseEnter",!0,Dt,function(kr){Xr(kr)}),Mn("onPointerEnter",!0,Dt,function(kr){Xr(kr)}),Hn=function(Sr){(ir||Hr)&&at!==null&&at!==void 0&&at.contains(Sr.target)&&jr(!0,Dt)},Ae&&(Tt.onMouseMove=function(kr){var Sr;(Sr=Ct.onMouseMove)===null||Sr===void 0||Sr.call(Ct,kr)})),ai&&(Mn("onMouseLeave",!1,Le),Mn("onPointerLeave",!1,Le),ei=function(){jr(!1,Le)}),ti.has("focus")&&Mn("onFocus",!0,Ke),Kn.has("focus")&&Mn("onBlur",!1,nt),ti.has("contextMenu")&&(Tt.onContextMenu=function(kr){var Sr;Ir.current&&Kn.has("contextMenu")?jr(!1):(Xr(kr),jr(!0)),kr.preventDefault();for(var mn=arguments.length,zn=new Array(mn>1?mn-1:0),yn=1;yn<mn;yn++)zn[yn-1]=arguments[yn];(Sr=Ct.onContextMenu)===null||Sr===void 0||Sr.call.apply(Sr,[Ct,kr].concat(zn))}),gt&&(Tt.className=se()(Ct.className,gt));var Mi=(0,v.Z)((0,v.Z)({},Ct),Tt),Hi={},Si=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Si.forEach(function(kr){Ft[kr]&&(Hi[kr]=function(){for(var Sr,mn=arguments.length,zn=new Array(mn),yn=0;yn<mn;yn++)zn[yn]=arguments[yn];(Sr=Mi[kr])===null||Sr===void 0||Sr.call.apply(Sr,[Mi].concat(zn)),Ft[kr].apply(Ft,zn)})});var Yi=w.cloneElement(mt,(0,v.Z)((0,v.Z)({},Mi),Hi)),Li={x:dn,y:fn},ki=wt?(0,v.Z)({},wt!==!0?wt:{}):null;return w.createElement(w.Fragment,null,w.createElement(ye.Z,{disabled:!ir,ref:bt,onResize:wn},w.createElement(q,{getTriggerDOMNode:Je},Yi)),w.createElement(xe.Provider,{value:Jt},w.createElement(z,{portal:de,ref:Nt,prefixCls:I,popup:me,className:se()(tr,di),style:ke,target:Se,onMouseEnter:Hn,onMouseLeave:ei,onPointerEnter:Hn,zIndex:De,open:ir,keepDom:Hr,fresh:Pt,onClick:Zt,mask:ft,motion:cr,maskMotion:ur,onVisibleChanged:In,onPrepare:hn,forceRender:C,autoDestroy:$t,getPopupContainer:_,align:Jn,arrow:ki,arrowPos:Li,ready:un,offsetX:si,offsetY:Pn,offsetR:an,offsetB:dr,onAlign:qn,stretch:ze,targetWidth:Ur/Fn,targetHeight:gn/ci})))});return Ee}var Xt=Ht(Ie.Z)},50304:function(){"use strict"},76895:function(Qt,it){"use strict";it.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},8797:function(Qt,it,y){"use strict";var v=y(59301),Y=y(93314),ge=y(3113),Ie=Object.defineProperty,ne=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,P=(w,E,V)=>E in w?Ie(w,E,{enumerable:!0,configurable:!0,writable:!0,value:V}):w[E]=V,O=(w,E)=>{for(var V in E||(E={}))ve.call(E,V)&&P(w,V,E[V]);if(ye)for(var V of ye(E))a.call(E,V)&&P(w,V,E[V]);return w},A=(w,E)=>ne(w,se(E));const c=({img:w,buttonProps:E={},styles:V={},customText:te,ButtonText:R,ButtonClick:k,Buttonclass:U,ButtonTwo:ae,imgStyles:x,loading:z=!1})=>v.createElement("section",{className:"tc animated fadeIn",style:O(O({},{color:"#999",margin:"100px auto",visibility:z?"hidden":"visible"}),V)},v.createElement("img",{src:w||Y,style:A(O({},x),{pointerEvents:"none",userSelect:"none"})}),v.createElement("p",{className:"mt20 font14"},te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),R&&v.createElement(ge.ZP,O({className:U,onClick:k},E),R),ae&&ae);it.Z=c},23210:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return U}});var v=y(59301),Y={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ge=y(3113),Ie=y(70557),ne=y(23954),se=y(6848),ye=y(955),ve=y(94941),a=y(8797),P=y(3294),O=y(19381),A=y(59301),c=Object.defineProperty,w=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,te=(ae,x,z)=>x in ae?c(ae,x,{enumerable:!0,configurable:!0,writable:!0,value:z}):ae[x]=z,R=(ae,x)=>{for(var z in x||(x={}))E.call(x,z)&&te(ae,z,x[z]);if(w)for(var z of w(x))V.call(x,z)&&te(ae,z,x[z]);return ae},k=(ae,x,z)=>new Promise((Q,q)=>{var ce=Be=>{try{we(z.next(Be))}catch(H){q(H)}},xe=Be=>{try{we(z.throw(Be))}catch(H){q(H)}},we=Be=>Be.done?Q(Be.value):Promise.resolve(Be.value).then(ce,xe);we((z=z.apply(ae,x)).next())}),U=({editOffice:ae="view",data:x,theme:z,type:Q,filename:q,monacoEditor:ce,className:xe,style:we,close:Be,onClose:H,hasMask:L,disabledDownload:Z,onImgDimensions:W,showNodata:le,recordInfo:J})=>{const[g,S]=(0,v.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[K,G]=(0,v.useState)(""),[Pe,Ne]=(0,v.useState)(),Ue=window.ENV==="build"?"/react/build":"",Ve=location.host.startsWith("localhost")?P.Z.PROXY_SERVER:P.Z.API_SERVER,tt=10*(1024*1024),lt=(0,v.useRef)();x!=null&&x.startsWith("/api")&&Q!=="txt"&&(x=P.Z.API_SERVER+x);const Ut=Ht=>Ht.substring(Ht.lastIndexOf("/")+1).split(".").pop();q&&ce&&(ce.filename=q),(0,v.useEffect)(()=>{var Ht,Xt;const de=(Xt=(Ht=document.cookie)==null?void 0:Ht.replace(/\s/g,""))==null?void 0:Xt.split(";");de==null||de.map(Ee=>{let F=Ee.split("=");F[0]==="_educoder_session"&&G(F[1])})},[]),(0,v.useEffect)(()=>{Q==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?Ne({url:x,fileType:Ut(x),model:x.indexOf("model=edit")?"edit":"view"}):Yt())},[Q,x]);const Yt=()=>k(void 0,null,function*(){console.log("data:",x);let Ht=x;x.startsWith("http")||(Ht=location.origin+Ht);let Xt=new URL(Ht).pathname.split("/").pop();const de=yield(0,ve.gJ)({attachment_id:Xt});de.url=Ve+de.url,Ne(de)}),sr=()=>{if(x.startsWith("http")||x.startsWith("blob:")){Bt();return}(0,ye.Sv)(q||"educoder",x,q)},Bt=()=>{J&&(0,O.fc)({id:J==null?void 0:J.id,watch_type:1,course_id:J==null?void 0:J.course_id}),(0,ye.Nd)(q||"educoder",decodeURIComponent(x))};return A.createElement("div",{style:R({},we||{}),className:`${L&&Y.bgBlack} ${Q?Y.wrp:"hide"}`},Be&&A.createElement("div",{className:Y.close,ref:lt},!!W&&A.createElement(se.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>lt.current},A.createElement("span",{onClick:()=>{H(),W()}},A.createElement("i",{className:"icon-yulanpizhu"}))),!Z&&A.createElement(se.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>lt.current},A.createElement("span",{onClick:Bt},A.createElement("i",{className:"icon-quxiaozhiding"}))),A.createElement(se.Z,{title:"\u5173\u95ED",getPopupContainer:()=>lt.current},A.createElement("span",{className:"",onClick:H},A.createElement("i",{className:"icon-guanbi1"})))),A.createElement("div",{className:`${Y[xe]} ${xe} ${Y.monaco} ${Q==="txt"?"show":"hide"}`},Q==="txt"&&A.createElement(A.Fragment,null,A.createElement(ne.ZP,R({},ce)))),Q==="audio"&&A.createElement("audio",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${x}`,autoPlay:!0}),Q==="video"&&A.createElement(A.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?A.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):A.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),Q==="office"&&Pe&&A.createElement("iframe",{src:`${Ue}/office.html?key=${Pe.key}&url=${btoa(Pe.url)}&callbackUrl=${Ve+(Pe.callbackUrl||"")}&fileType=${Pe.fileType}&title=${Pe.title||""}&model=${ae}&officeServer=${P.Z.ONLYOFFICE}&disabledDownload=${!!Z}`}),Q==="html"&&A.createElement("iframe",{src:x+"&disposition=inline"}),Q==="pdf"&&A.createElement("iframe",{src:`${Ue}/js/pdfview/index.html?filename=${q||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!Z}`}),Q==="image"&&A.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),(Q==="other"||Q==="download")&&A.createElement(A.Fragment,null,le?A.createElement(a.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:A.createElement(ge.ZP,{icon:A.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:sr,disabled:Z},"\u4E0B\u8F7D")}):A.createElement(ge.ZP,{type:"primary",size:"middle",onClick:sr,disabled:Z},A.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Qt,it,y){"use strict";y.d(it,{z:function(){return Q},Z:function(){return q}});var v=y(59301),Y=y(50304),ge=y(24768),Ie=y(64018),ne=y(40846),se=y(3294),ye=y(955),ve=y(15342),a=y(1012),P=y(23210),O=y(59301),c=({html:ce})=>{const xe=(0,v.useRef)(null),we=(0,v.useRef)(null),Be=`.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,v.useEffect)(()=>{const H=xe.current.attachShadow({mode:"open"});we.current=document.createElement("div"),we.current.className="markdown-body",we.current.innerHTML=ce,H.appendChild(we.current);const L=document.createElement("style");return L.textContent=Be,H.appendChild(L),()=>{H.innerHTML=""}},[]),(0,v.useEffect)(()=>{we.current&&(we.current.innerHTML=ce)},[ce]),O.createElement("div",{ref:xe})},w=Object.defineProperty,E=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,R=(ce,xe,we)=>xe in ce?w(ce,xe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ce[xe]=we,k=(ce,xe)=>{for(var we in xe||(xe={}))V.call(xe,we)&&R(ce,we,xe[we]);if(E)for(var we of E(xe))te.call(xe,we)&&R(ce,we,xe[we]);return ce};const U="@\u2581\u2581@",ae="@\u2581@",x=/<pre[^>]*>/g;function z(ce){let xe=document.createElement("div");return xe.innerHTML=ce,xe.childNodes.length===0?"":xe.childNodes[0].nodeValue}const Q=(ce,xe)=>{ce=ce||"";const we=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,H=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,L=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return xe?ce.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(we,(Z,W,le,J,g,S,K)=>{const G=W||J||S,Pe=le||g||K||"?";return se.Z.API_SERVER+"/api/attachments/"+G+Pe+"&t="+(0,ye.Jn)(G,Date.now())+(Z.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ce=ce.replace(L,(Z,W,le,J,g,S,K)=>{const G=W||J||S,Pe=le||g||K||"?";return se.Z.API_SERVER+"/attachments/download/"+G+Pe+"&t="+(0,ye.Jn)(G,Date.now())+(Z.indexOf(")")>-1?")":"&")}).replace(we,(Z,W,le,J,g,S,K)=>{const G=W||J||S,Pe=le||g||K||"?";return se.Z.API_SERVER+"/api/attachments/"+G+Pe+"&t="+(0,ye.Jn)(G,Date.now())+(Z.indexOf(")")>-1?")":"&")}).replace(Be,(Z,W,le,J,g)=>{const S=W||J,K=le||g||"";return'"'+se.Z.API_SERVER+"/api/attachments/"+S+K+S+K+"&t="+(0,ye.Jn)(S,Date.now())}).replace(H,(Z,W,le,J,g)=>{const S=W||J,K=le||g||"";return"("+se.Z.API_SERVER+"/files/uploads/"+S+K+S+K+"&t="+(0,ye.Jn)(S,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ce)};var q=({value:ce="",className:xe,showTextOnly:we,showLines:Be,style:H={},stylesPrev:L={},highlightKeywords:Z,showProgramFill:W,isProgramFill:le,disabledFill:J=!1,programFillValue:g,onFillChange:S=Pe=>{},onFillBlur:K=()=>{},onFillFocus:G=()=>{}})=>{let Pe=String(ce);const[Ne,Ue]=(0,v.useState)(""),[Ve,qe]=(0,v.useState)("office"),[tt,lt]=(0,v.useState)([]),Ut=(0,v.useRef)("a"+(0,a.Z)()),Yt={},sr=(be,Oe,Fe)=>{const Qe=document.createElement(be===ae?"input":"textarea");Qe.style.width="100%",Qe.style.height=be===ae?"40px":"151px",Qe.rows=5,Qe.spellcheck=!1,Qe.name="edu-program-fill",Qe.placeholder="\u8BF7\u8F93\u5165",Qe.dataset.id=Oe;const ht=Object.keys(Yt).length;return Yt[ht]=Qe,`<span class="edu-program-fill-wrap ${be===ae?"":"show"}" style="width:${be===ae?"400px":"100%"}" title=${Fe||""}><span>${Qe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Bt(be){return be=be.replace(/!\[.*?\]\(.*?\)/g,""),be=be.replace(/\[.*?\]\(.*?\)/g,""),be=be.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),be=be.replace(/<embed.*?>/g,""),be=be.replace(/<img.*?>/g,""),be=be.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),be=be.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),be=be.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),be=be.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),be}const Ht=be=>be.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Oe,Fe){let Qe=Fe.replace(/(\n|\r)/g,"").split("}"),ht=[];return Qe.map(ot=>{ot!=""&&ht.push(`.${Ut.current} ${ot}`)}),`<style>${ht.join("}")}</style>`}),Xt=(0,v.useMemo)(()=>{try{const Qe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ot=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xe=/\(\/attachments\/download\//g;Pe=Pe.replace(Xe,"("+se.Z.API_SERVER+"/attachments/download/").replace(Qe,"("+se.Z.API_SERVER+"/api/attachments/").replace(ht,'"'+se.Z.API_SERVER+"/api/attachments/").replace(ot,'"'+se.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(Qe){}if(W){let Qe=-1;return Pe=Pe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ht,ot,Xe){var Dt;return++Qe,sr(ht,Qe,(Dt=g==null?void 0:g[Qe])==null?void 0:Dt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ht(Pe||"")}</pre>`}let be=Ht(Pe);be=(0,ge.ZP)(be);const Oe=(0,ge.ez)();Pe.match(/\[TOC\]/)&&(be=be.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),be=be.replace(/(__special_katext_id_\d+__)/g,(Qe,ht)=>{const{type:ot,expression:Xe}=Oe[ht];return(0,ve.renderToString)(z(Xe)||"",{displayMode:ot==="block",throwOnError:!1,output:"html"})}),be=be.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Fe=document.createElement("div");if(Fe.innerHTML=be,we)return Fe.innerText;if(Z){const Qe=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return fe(Fe,Qe),Fe.innerHTML}return setTimeout(()=>ee(),500),Fe.innerHTML},[Pe,Z]);(0,v.useEffect)(()=>{Te.current&&Te.current.querySelectorAll(["input","textarea"]).forEach(Oe=>{Oe.oninput=de,Oe.onblur=Ee,Oe.onfocus=F})},[tt]),(0,v.useEffect)(()=>{var be,Oe,Fe,Qe,ht;if(g!=null&&g.length)try{const ot=Te.current.querySelectorAll(".edu-program-fill-score"),Xe=Te.current.querySelectorAll('[name="edu-program-fill"]');for(const[Dt,kt]of Xe.entries())kt.value=((be=g==null?void 0:g[Dt])==null?void 0:be.value)||"",((Oe=g==null?void 0:g[Dt])==null?void 0:Oe.type)==="warning"?kt.className="program-fill-warning":((Fe=g==null?void 0:g[Dt])==null?void 0:Fe.type)==="success"?kt.className="program-fill-success":kt.className="";for(const[Dt,kt]of ot.entries())kt.innerHTML=(Qe=g==null?void 0:g[Dt])!=null&&Qe.score?`${(ht=g==null?void 0:g[Dt])==null?void 0:ht.score}\u5206`:"";lt(g)}catch(ot){console.log(ot,"error")}},[g]);const de=be=>{tt[be.target.dataset.id]=tt[be.target.dataset.id]||{},tt[be.target.dataset.id].value=be.target.value,lt([...tt]),S(tt,be.target.dataset.id)},Ee=be=>{tt[be.target.dataset.id]=tt[be.target.dataset.id]||{},tt[be.target.dataset.id].value=be.target.value,lt([...tt]),K(tt,be.target.dataset.id)},F=be=>{tt[be.target.dataset.id]=tt[be.target.dataset.id]||{},tt[be.target.dataset.id].value=be.target.value,lt([...tt]),G(tt,be.target.dataset.id)};function fe(be,Oe){return be.childNodes.forEach(Fe=>{var Qe;if(Fe.childNodes.length>0)fe(Fe,Oe);else if(Fe.nodeName!=="IMG")if(Fe.innerHTML)Fe.innerHTML=(Qe=Fe.innerHTML)==null?void 0:Qe.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ht=document.createElement("span");ht.innerHTML=Fe.textContent.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Fe.replaceWith(ht)}})}const Te=(0,v.useRef)();ge.jb.WebkitLineClamp=Be,Be&&(H=k(k({},H),ge.jb));function I(be){let Oe=be.target;if(Oe.tagName.toUpperCase()==="A"){let Fe=Oe.getAttribute("href");if(Fe.indexOf("office")>-1)be.preventDefault(),Ue(Fe),qe("office");else if(Fe.indexOf("application/pdf")>-1)be.preventDefault(),Ue(Fe),qe("pdf");else if(Fe.indexOf("text/html")>-1)be.preventDefault(),Ue(Fe),qe("html");else if(Fe.startsWith("#")){be.preventDefault();let Qe=document.getElementById(Fe.replace("#",""));Qe&&Qe.scrollIntoView(!0)}}}const ee=()=>{var be;const Oe=(be=Te.current)==null?void 0:be.querySelectorAll("video");Oe==null||Oe.forEach(Fe=>{if(Fe.oncontextmenu=()=>!1,Fe.src.indexOf(".m3u8")>-1&&!Fe.canPlayType("application/vnd.apple.mpegurl")){if(ne.ZP.isSupported()){var Qe=new ne.ZP;Qe.loadSource(Fe.src),Qe.attachMedia(Fe)}}})};(0,v.useEffect)(()=>{if(Te.current&&Xt&&Xt.match(x)&&window.PR.prettyPrint(),Te.current)return Te.current.addEventListener("click",I),()=>{var be;(be=Te.current)==null||be.removeEventListener("click",I),(0,ge.AL)(),(0,ge.Iy)()}},[Xt,Te.current,I]),(0,v.useEffect)(()=>{var be;const Oe=Fe=>{Fe.preventDefault(),Fe.clipboardData.setData("text",window.getSelection().toString())};return(be=Te.current)==null||be.addEventListener("copy",Oe),()=>{var Fe;(Fe=Te.current)==null||Fe.removeEventListener("copy",Oe)}},[Te.current]);const he=be=>/<style[\s\S]*?>/i.test(be||"");return v.createElement(v.Fragment,null,we&&v.createElement("div",{ref:Te},Xt),!we&&!he(Xt)&&v.createElement("div",{ref:Te,style:k({},H),className:`${xe||""} ${J?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:Xt}}),!we&&he(Xt)&&v.createElement(c,{html:Xt}),v.createElement(P.Z,{close:!0,data:Ne,type:Ne!=null&&Ne.length?Ve:"",style:k({},L),onClose:()=>Ue("")}))}},23954:function(Qt,it,y){"use strict";y.d(it,{SV:function(){return Te},ZP:function(){return fe}});var v=y(59301),Y=y(76374);const ge={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"]},Ie={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"]},ne={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(`
|
|
|
`)}]},se={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(`
|
|
|
`)}]},ye={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 ve=y(53184),a=y.n(ve),P=Object.defineProperty,O=Object.defineProperties,A=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,V=(I,ee,he)=>ee in I?P(I,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):I[ee]=he,te=(I,ee)=>{for(var he in ee||(ee={}))w.call(ee,he)&&V(I,he,ee[he]);if(c)for(var he of c(ee))E.call(ee,he)&&V(I,he,ee[he]);return I},R=(I,ee)=>O(I,A(ee)),k=(I,ee,he)=>new Promise((be,Oe)=>{var Fe=ot=>{try{ht(he.next(ot))}catch(Xe){Oe(Xe)}},Qe=ot=>{try{ht(he.throw(ot))}catch(Xe){Oe(Xe)}},ht=ot=>ot.done?be(ot.value):Promise.resolve(ot.value).then(Fe,Qe);ht((he=he.apply(I,ee)).next())});const U={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ae=(I,ee)=>ee.map(he=>({label:he,kind:I.languages.CompletionItemKind.Keyword,insertText:he})),x=I=>Object.keys(U.tables).map(ee=>({label:ee,kind:I.languages.CompletionItemKind.Variable,insertText:ee})),z=(I,ee)=>{const he=U.tables[I];return he?he.map(be=>({label:be,kind:ee.languages.CompletionItemKind.Field,insertText:be})):[]};function Q(I,ee,he,be,Oe){let Fe=ee.getWordUntilPosition(he),Qe={startLineNumber:he.lineNumber,endLineNumber:he.lineNumber,startColumn:Fe.startColumn,endColumn:Fe.endColumn},ht=be.map(ot=>({label:ot,kind:I.languages.CompletionItemKind.Keyword,insertText:ot,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}));return Oe.map(ot=>{ht.push(R(te({},ot),{range:Qe}))}),ht}var q=I=>{U.languages.map(Oe=>(I.languages.registerDocumentFormattingEditProvider(Oe,{provideDocumentFormattingEdits(Fe,Qe,ht){return k(this,null,function*(){const ot=a()(Fe.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:Fe.getFullModelRange(),text:ot}]})}}),Oe));const ee=ne.quickKey.map(Oe=>({label:Oe.label,kind:I.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet})),he=se.quickKey.map(Oe=>({label:Oe.label,kind:I.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet})),be=Ie.quickKey.map(Oe=>({label:Oe.label,kind:I.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}));I.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,Fe){var Qe=Oe.getWordUntilPosition(Fe),ht={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:Qe.startColumn,endColumn:Qe.endColumn},ot=Oe.getLineContent(Fe.lineNumber).substring(Qe.startColumn-2,Qe.endColumn);return{suggestions:[...ne.keywords.map(Xe=>({label:Xe,kind:I.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht})),...ne.quickKey.map(Xe=>({label:Xe.label,kind:I.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ot.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht}))]}}}),I.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,Fe){var Qe=Oe.getWordUntilPosition(Fe),ht={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:Qe.startColumn,endColumn:Qe.endColumn};return{suggestions:[...ge.keywords.map(ot=>({label:ot,kind:I.languages.CompletionItemKind.Function,documentation:ot,insertText:ot,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht}))]}}}),I.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,Fe){var Qe=Oe.getWordUntilPosition(Fe),ht={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:Qe.startColumn,endColumn:Qe.endColumn},ot=Oe.getLineContent(Fe.lineNumber).substring(Qe.startColumn-2,Qe.endColumn);return{suggestions:[...Ie.keywords.map(Xe=>({label:Xe,kind:I.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht})),...Ie.quickKey.map(Xe=>({label:Xe.label,kind:I.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ot.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht}))]}}}),I.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Oe,Fe){var Qe=Oe.getWordUntilPosition(Fe),ht={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:Qe.startColumn,endColumn:Qe.endColumn},ot=Oe.getLineContent(Fe.lineNumber).substring(Qe.startColumn-2,Qe.endColumn);return{suggestions:[...ye.keywords.map(Xe=>({label:Xe,kind:I.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht})),...ye.quickKey.map(Xe=>({label:Xe.label,kind:I.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ot.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht}))]}}}),I.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,Fe){var Qe=Oe.getWordUntilPosition(Fe),ht={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:Qe.startColumn,endColumn:Qe.endColumn},ot=Oe.getLineContent(Fe.lineNumber).substring(Qe.startColumn-2,Qe.endColumn);return{suggestions:[...se.keywords.map(Xe=>({label:Xe,kind:I.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht})),...se.quickKey.map(Xe=>({label:Xe.label,kind:I.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ot.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ht}))]}}})};const ce="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var xe=Object.defineProperty,we=(I,ee,he)=>ee in I?xe(I,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):I[ee]=he,Be=(I,ee,he)=>we(I,typeof ee!="symbol"?ee+"":ee,he);const H=class Xo{constructor(ee,he,be){this.placeholder=ee,this.editor=he,this.monaco=be,he.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)}};Be(H,"ID","editor.widget.placeholderHint");var Z=H,W=y(96236),le=y(8591),J=y(6848),g=y(89392),S=y(34604),K=y(56102),G=Object.defineProperty,Pe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,tt=(I,ee,he)=>ee in I?G(I,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):I[ee]=he,lt=(I,ee)=>{for(var he in ee||(ee={}))Ve.call(ee,he)&&tt(I,he,ee[he]);if(Ue)for(var he of Ue(ee))qe.call(ee,he)&&tt(I,he,ee[he]);return I},Ut=(I,ee)=>Pe(I,Ne(ee)),Yt=(I,ee)=>{var he={};for(var be in I)Ve.call(I,be)&&ee.indexOf(be)<0&&(he[be]=I[be]);if(I!=null&&Ue)for(var be of Ue(I))ee.indexOf(be)<0&&qe.call(I,be)&&(he[be]=I[be]);return he},sr=(I,ee,he)=>new Promise((be,Oe)=>{var Fe=ot=>{try{ht(he.next(ot))}catch(Xe){Oe(Xe)}},Qe=ot=>{try{ht(he.throw(ot))}catch(Xe){Oe(Xe)}},ht=ot=>ot.done?be(ot.value):Promise.resolve(ot.value).then(Fe,Qe);ht((he=he.apply(I,ee)).next())});function Bt(I){return/^\d+$/.test(I)?`${I}px`:I}function Ht(){}let Xt=!1;const de={"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 Ee(I=[]){let ee=I;if(Array.isArray(I)){for(let he=0;he<I.length;he++){let be=de[I[he]];if(be)return be}return ee[0]}return de[ee]||ee}let F=null;var fe=I=>{var ee=I,{width:he="100%",height:be="100%",value:Oe,language:Fe="javascript",style:Qe={},options:ht={},overrideServices:ot={},theme:Xe="vs-dark",onEditBlur:Dt,isCopy:kt=!1,onSave:Le,autoHeight:Ke=!1,forbidCopy:nt=!1,onChange:ft=Ht,editorDidMount:At=Ht,onFocus:It=Ht,onBreakPoint:_=Ht,breakPointValue:C=[],filename:et="educoder.txt",errorLine:$,errorContent:me="",highlightLine:tr,openBreakPoint:ke=!1,placeholder:He=""}=ee,Ze=Yt(ee,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const X=(0,v.useRef)(),oe=(0,v.useRef)({}),De=(0,v.useRef)(),ze=(0,v.useRef)(),j=(0,v.useRef)([]),Pt=(0,v.useRef)(!1),Ae=(0,v.useRef)(),Zt=(0,v.useRef)(),lr=(0,v.useRef)(!1),[wt,Mt]=(0,v.useState)(!1);function pt(){let Jt;return X.current&&(Jt=new Y.Z(Kt=>{for(let $e of Kt)($e.target.offsetHeight>0||$e.target.offsetWidth>0)&&oe.current.instance.layout()}),Jt.observe(X.current)),Jt}function Et(){le.ZP.warning({content:decodeURIComponent(ce),key:"monaco-editor-tip"})}const Re=()=>{let Jt=oe.current.instance;if(Oe!=null&&Jt&&wt){const Kt=Jt.getModel();Kt&&Oe!==Kt.getValue()&&(Xt=!0,Kt.setValue(Oe),Jt.layout(),Xt=!1)}};(0,v.useEffect)(()=>{const Jt=S.Z.subscribe("formatDocument",Kt=>{var $e;let vt=oe.current.instance;($e=vt==null?void 0:vt.getAction)==null||$e.call(vt,"editor.action.formatDocument").run()});return window.updateMonacoValue=Kt=>{ft(Kt)},Jt},[]),(0,v.useEffect)(()=>{var Jt;let Kt=oe.current.instance;ze.current&&clearTimeout(ze.current),ze.current=setTimeout(()=>{Re()},500),Oe&&(Oe!=null&&Oe.length)&&((Jt=Kt==null?void 0:Kt.updateOptions)==null||Jt.call(Kt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,wt,oe.current]),(0,v.useEffect)(()=>{if($&&oe.current&&oe.current.instance){let Kt=oe.current.instance;Kt.changeViewZones(function($e){var vt=document.createElement("div");vt.style.padding="10px 20px",vt.style.width="calc(100% - 20px)",vt.className="my-error-line-wrp",vt.innerHTML=me,$e.addZone({afterLineNumber:$||11,heightInLines:3,domNode:vt})});var Jt={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}};Kt.addOverlayWidget(Jt),Kt.revealPositionInCenter({lineNumber:20,column:1})}},[$,oe.current,wt]);const st=(Jt="",Kt)=>{if(!Jt||Jt.trim()==="")return!0;const vt=oe.current.instance.getModel().getLineTokens(Kt);let at=!1;for(let yt=0;yt<2;yt++)vt.getStandardTokenType(yt)===1&&(at=!0);return at};(0,v.useEffect)(()=>{var Jt;const Kt=(Jt=oe.current)==null?void 0:Jt.instance;if(Kt&&wt&&nt){const $e=Kt.onDidBlurEditorWidget(()=>{lr.current=!1}),vt=Kt.onDidFocusEditorText(()=>{lr.current=!0});return()=>{$e.dispose(),vt.dispose()}}},[oe.current,wt,nt]),(0,v.useEffect)(()=>{var Jt;if((Jt=oe.current)!=null&&Jt.instance&&wt&&ke){let Kt=oe.current.instance,$e=Kt.getModel();if(!$e)return;(()=>{var Ct;let Tt=[],ar=[];const cr=$e.getAllDecorations();for(let Er of cr)Er.options.className==="highlighted-line"&&(Tt.push((Ct=Er==null?void 0:Er.range)==null?void 0:Ct.startLineNumber),ar.push(Er==null?void 0:Er.id));if(tr===Tt[0])return;$e.deltaDecorations(ar,[]);const ur=$e.getLineCount();tr&&tr<=ur&&(Kt.deltaDecorations([],[{range:new F.Range(tr,1,tr,$e.getLineMaxColumn(tr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kt.revealLineInCenter(tr))})();const at=(Ct=!1)=>{var Tt;let ar=[],cr=[];const ur=$e.getAllDecorations();for(let Er of ur)Er.options.linesDecorationsClassName==="breakpoints-select"&&(ar.push((Tt=Er==null?void 0:Er.range)==null?void 0:Tt.startLineNumber),cr.push(Er==null?void 0:Er.id));if(Ct)return{lines:ar,ids:cr};_(ar)},yt=Ct=>sr(void 0,null,function*(){let Tt={range:new F.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $e.deltaDecorations([],[Tt]),at()}),Nt=Ct=>sr(void 0,null,function*(){let Tt=[];const ar=Kt.getLineDecorations(Ct);for(let cr of ar)cr.options.linesDecorationsClassName==="breakpoints-select"&&Tt.push(cr.id);yield $e.deltaDecorations(Tt,[]),at()}),Ot=Ct=>{let Tt=Kt.getLineDecorations(Ct);for(let ar of Tt)if(ar.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(C,at(!0).lines)){$e.deltaDecorations(at(!0).ids,[]);const Ct=C.map(Tt=>({range:new F.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$e.deltaDecorations([],Ct)}const ut=Kt.onDidChangeModelContent(Ct=>{let Tt=Kt.getPosition();if(Tt){let ar=Tt.lineNumber;clearTimeout(Zt.current),Zt.current=setTimeout(()=>{st($e.getLineContent(ar),ar)?Nt(ar):Ot(ar)?(Nt(ar),yt(ar)):at()},100)}}),Se=Kt.onMouseDown(Ct=>{var Tt,ar,cr;if(Ct.target.detail&&((cr=(ar=(Tt=Ct.target)==null?void 0:Tt.element)==null?void 0:ar.className)!=null&&cr.includes("line-numbers"))){let ur=Ct.target.position.lineNumber;if(st($e.getLineContent(ur),ur))return;Ot(ur)?Nt(ur):yt(ur)}}),We=Ct=>{let Tt={range:new F.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};j.current=Kt.deltaDecorations(j.current,[Tt])},rt=()=>{j.current=Kt.deltaDecorations(j.current,[])},bt=Kt.onMouseMove(Ct=>{var Tt,ar,cr;if(rt(),Ct.target.detail&&((cr=(ar=(Tt=Ct.target)==null?void 0:Tt.element)==null?void 0:ar.className)!=null&&cr.includes("line-numbers"))){let ur=Ct.target.position.lineNumber;if(st($e.getLineContent(ur),ur))return;We(ur)}}),mt=Kt.onMouseLeave(()=>{rt()});return()=>{ut.dispose(),Se.dispose(),bt.dispose(),mt.dispose()}}},[oe.current,wt,C,tr,ke,Fe]),(0,v.useEffect)(()=>{var Jt;(Jt=oe.current)!=null&&Jt.instance&&ke&&oe.current.instance.setPosition({lineNumber:0,column:0})},[tr]);function ct(){let Jt=oe.current.instance;if(Jt){const Kt=Jt.getSelection(),$e=oe.current.pastePos||{},vt=new F.Range($e.startLineNumber||Kt.endLineNumber,$e.startColumn||Kt.endColumn,$e.endLineNumber||Kt.endLineNumber,$e.endColumn||Kt.endColumn);setTimeout(()=>{Jt.executeEdits("",[{range:vt,text:""}])},300)}}function gt(Jt){(window.navigator.platform.match("Mac")?Jt.metaKey:Jt.ctrlKey)&&Jt.keyCode==83&&(Jt.preventDefault(),Le())}const Je=()=>{if(Ke&&oe.current.instance){const Jt=oe.current.instance.getContentHeight();yr(Jt<be?be:Jt)}else yr(be)};function Ft(Jt){var Kt=document.createEvent("MouseEvents");Kt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Jt.dispatchEvent(Kt)}const $t=Jt=>{if(!lr.current)return;const{keyCode:Kt,ctrlKey:$e,metaKey:vt,target:at,type:yt}=Jt;return(yt==="paste"||(Kt===67||Kt===86)&&(vt||$e))&&at.nodeName==="TEXTAREA"&&(Et(),Jt.preventDefault()),!1};function Wt(Jt,Kt){var $e=window.URL||window.webkitURL||window,vt=new Blob([Kt]),at=document.createElementNS("http://www.w3.org/1999/xhtml","a");at.href=$e.createObjectURL(vt),at.download=Jt,Ft(at)}(0,v.useEffect)(()=>{Je()},[Je]),(0,v.useEffect)(()=>{X.current&&!wt&&Promise.all([y.e(8909),y.e(3267)]).then(y.bind(y,71448)).then(Jt=>{try{F=Jt,oe.current.instance=F.editor.create(X.current,{value:Oe,language:Ee(Fe),theme:Xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ot);const Kt=oe.current.instance;let at=[...W.BH._menuItems].find(ut=>ut[0]._debugName=="EditorContext")[1],yt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Nt=(ut,Se)=>{var We,rt;let bt=ut._first;do Se.includes((rt=(We=bt.element)==null?void 0:We.command)==null?void 0:rt.id)&&ut._remove(bt);while(bt=bt.next)};if(At(Kt,F),setTimeout(()=>{Je(),oe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Wt(et||"educoder.txt",Kt.getValue())}})},500),oe.current.subscription=Kt.onDidChangeModelContent(ut=>{Pt.current?clearTimeout(Ae.current):(Je(),ft(Kt.getValue(),ut)),Ae.current=setTimeout(()=>{Pt.current=!1},500)}),window.Monaco||q(F,Ee(Fe)),nt&&(Nt(at,yt),X.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",$t),window.removeEventListener("paste",$t),window.addEventListener("keydown",$t),window.addEventListener("paste",$t)),window.Monaco=F,Dt&&Kt.onDidBlurEditorWidget(()=>{Dt(Kt.getValue())}),It&&Kt.onDidFocusEditorText(()=>{It(Kt.getValue())}),nt)try{Kt.onDidPaste(ut=>{const Se=Kt.getSelection(),We=oe.current.pastePos||{},rt=new F.Range(We.startLineNumber||Se.endLineNumber,We.startColumn||Se.endColumn,We.endLineNumber||Se.endLineNumber,We.endColumn||Se.endColumn);Kt.executeEdits("",[{range:ut.range,text:""}])})}catch(ut){}let Ot=pt();return He&&typeof He=="string"&&new Z(He,Kt,F),Mt(!0),()=>{const ut=oe.current.instance;ut.dispose();const Se=ut.getModel();Se&&Se.dispose(),oe.current.subscription&&oe.current.subscription.dispose(),Ot.unobserve(X.current)}}catch(Kt){}})},[]),(0,v.useEffect)(()=>{if(oe.current.instance&&wt)return document.addEventListener("keydown",gt,!1),()=>{document.removeEventListener("keydown",gt)}},[Le,wt]),(0,v.useEffect)(()=>{let Jt=oe.current.instance;if(Jt&&wt){let Kt=Ee(Fe);F.editor.setModelLanguage(Jt.getModel(),Kt)}},[Fe,wt]),(0,v.useEffect)(()=>{oe.current.instance&&wt&&F.editor.setTheme(Xe)},[Xe,wt]),(0,v.useEffect)(()=>{let Jt=oe.current.instance;De.current=ht,Jt&&wt&&(Jt.updateOptions(lt({},ht)),setTimeout(()=>{Jt.getModel().updateOptions(lt({},ht))},200))},[JSON.stringify(ht),wt]),(0,v.useEffect)(()=>{let Jt=oe.current.instance;Jt&&wt&&Jt.layout()},[he,be,wt]);const[gr,vr]=(0,v.useState)(Bt(he)),[er,yr]=(0,v.useState)(Bt(be)),_r=Ut(lt({},Qe),{width:gr,height:er,position:"relative"});return v.createElement("div",{className:"my-monaco-editor",ref:X,style:_r},kt&&v.createElement(K.CopyToClipboard,{text:Oe,onCopy:()=>le.ZP.success("\u590D\u5236\u6210\u529F")},v.createElement(J.Z,{title:"\u590D\u5236\u4EE3\u7801"},v.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},v.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Te({width:I="100%",height:ee="100%",original:he,modified:be,language:Oe,options:Fe={}}){const Qe=(0,v.useRef)(),[ht,ot]=(0,v.useState)(null);function Xe(Ke){let nt;return Qe.current&&(nt=new Y.Z(ft=>{for(let At of ft)(At.target.offsetHeight>0||At.target.offsetWidth>0)&&Ke.layout()}),nt.observe(Qe.current)),nt}(0,v.useEffect)(()=>(Qe.current&&Promise.all([y.e(8909),y.e(9404)]).then(y.bind(y,2550)).then(Ke=>{F=Ke;const nt=F.editor.createDiffEditor(Qe.current,Ut(lt({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},Fe),{wordWrap:!0}));ot(nt);let ft=Xe(nt);return()=>{nt.dispose();const At=nt.getModel();At&&At.dispose(),ft.unobserve(Qe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,v.useEffect)(()=>{ht&&ht.setModel({original:F.editor.createModel(he,Oe),modified:F.editor.createModel(be,Oe)})},[he,be,Oe,ht]);const Dt=Bt(I),kt=Bt(ee),Le={width:Dt,height:kt};return v.createElement("div",{className:"my-diff-editor",ref:Qe,style:Le})}},85057:function(Qt,it,y){"use strict";y.d(it,{jL:function(){return ne},w9:function(){return Ve},QD:function(){return ft},cQ:function(){return K},op:function(){return Xe},O5:function(){return lr},_b:function(){return $},t7:function(){return R},Gi:function(){return sr},YG:function(){return Ut},qp:function(){return O},vr:function(){return _},qE:function(){return Le},Je:function(){return ae},wb:function(){return W},cq:function(){return F},tp:function(){return w}});var v=y(59301),Y={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ge="data:image/png;base64,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",ne=({dataSource:wt=[],img:Mt,imgWidth:pt=346,title:Et,sunTitle:Re,bannerExtraContent:st})=>v.createElement("div",{className:Y.banner},v.createElement("div",{className:Y.content},v.createElement("aside",null,v.createElement("p",null,v.createElement("b",null,Et),v.createElement("span",null,Re)),wt.length>0&&v.createElement("div",{className:Y.btns},wt.map((ct,gt)=>v.createElement("div",{key:gt,onClick:ct.click},ct.name,ct.sign?v.createElement("img",{src:ge,width:39}):null))),st),Mt&&v.createElement("img",{style:{marginTop:33,marginRight:38},src:Mt,width:pt}))),se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ye=y(92310),ve=y.n(ye),a=y(89392),O=({dataSource:wt=[],value:Mt,onChange:pt,onTitleChange:Et,className:Re,title:st,titleWidth:ct=41,style:gt={},fontColor:Je="#6A7283",showCount:Ft})=>{const[$t,Wt]=(0,v.useState)(0),[gr,vr]=(0,v.useState)(!1),er=(0,v.useRef)(null),yr=(0,v.useRef)(null);return(0,v.useEffect)(()=>{var _r;wt.length!==0&&(((_r=er==null?void 0:er.current)==null?void 0:_r.clientHeight)>97?Wt(1):Wt(0)),wt.length===0&&Wt(0),vr(!1)},[wt]),v.createElement("div",{className:ve()(se.row,Re),style:gt},v.createElement("div",{onClick:(0,a.throttle)(()=>Et==null?void 0:Et(),2e3),style:{width:ct,marginTop:gr?12:4},className:`${se.title} ${Et?"current":""}`},st),v.createElement("div",{className:gr?`${se.tagsWrap} ${se.tagsBorderWrap}`:se.tagsWrap},v.createElement("div",{className:se.bar,ref:yr,style:$t>0?{height:$t===1?97:"auto",overflow:$t===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},v.createElement("div",{className:se.tag,ref:er},wt==null?void 0:wt.map(_r=>v.createElement("span",{onClick:()=>pt(_r.id),key:_r.id,style:{color:Je},className:Mt===_r.id?se.active:""},v.createElement("span",{title:_r.name,className:se.name},_r.name),!!Ft&&v.createElement("span",{className:se.num},_r.count))))),!!$t&&v.createElement(v.Fragment,null,$t===1?v.createElement("div",{onClick:()=>{var _r;Wt(2),((_r=er==null?void 0:er.current)==null?void 0:_r.clientHeight)>245?vr(!0):vr(!1)},className:se.action},"\u5C55\u5F00",v.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):v.createElement("div",{onClick:()=>{yr.current.scrollTop=0,Wt(1),vr(!1)},className:se.action},"\u6536\u8D77",v.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},A={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},w=({dataSource:wt=[],value:Mt,onChange:pt,className:Et,style:Re={}})=>v.createElement("div",{style:Re,className:ve()(A.tabs,Et)},wt.map(st=>v.createElement("span",{onClick:()=>pt(st.id),className:Mt===st.id?A.active:"",key:st.id},st.name))),E={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},V=y(92832),R=({dataSource:wt=[],value:Mt="",onChange:pt,onInputChange:Et=()=>{},className:Re,style:st={},placeholder:ct,allowClear:gt=!1})=>{var Je;const[Ft,$t]=(0,v.useState)(""),[Wt,gr]=(0,v.useState)("");(0,v.useEffect)(()=>{var yr;let _r=Mt;(yr=JSON.stringify(Mt))!=null&&yr.includes("{")&&($t(Mt.id),_r=Mt.value||"");try{gr(decodeURIComponent(_r||""))}catch(Jt){gr(decodeURIComponent(_r||""))}},[Mt]);const vr=()=>{pt(encodeURIComponent(Wt),Ft||null)},er=yr=>{yr!==Ft&&($t(yr),pt(encodeURIComponent(Wt),yr))};return v.createElement("div",{className:ve()(E.input,Re),style:st},!!wt.length&&v.createElement("div",{className:E.dropdown},v.createElement("div",{className:E.text},(Je=wt.find(yr=>yr.id===Ft))==null?void 0:Je.name,v.createElement("i",{className:"iconfont icon-zhankai4"}),v.createElement("b",{className:E.b1}),v.createElement("b",{className:E.b2})),v.createElement("div",{className:E.menu},wt.map((yr,_r)=>v.createElement("div",{key:_r,onClick:()=>er(yr.id)},yr.name)))),v.createElement(V.default,{onPressEnter:vr,value:Wt,onChange:yr=>{gr(yr.target.value),Et(encodeURIComponent(yr.target.value),Ft||null)},bordered:!1,placeholder:ct}),v.createElement("i",{onClick:vr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},k={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ae=({value:wt,onChange:Mt,className:pt,total:Et,pageSize:Re,style:st={}})=>{const ct=wt<2,gt=wt>=Math.ceil(Et/Re);return Et<=Re?v.createElement(v.Fragment,null):v.createElement("div",{className:ve()(k.quickPager,pt),style:st},v.createElement("div",{onClick:()=>{ct||Mt(wt-1,"prev")},className:ct?k.disabled:""},"\u4E0A\u4E00\u9875"),v.createElement("div",{onClick:()=>{gt||Mt(wt+1,"next")},className:gt?k.disabled:""},"\u4E0B\u4E00\u9875"))},x={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},z=y(71418),Q=y(6848),q=y(13570),ce=y(3294),xe=y(955),we=y(96908),Be=y(57177),H=y(81378),L=y(8797),W=({className:wt,dataSource:Mt=[],col:pt=4,right:Et,bottom:Re=23,precision:st=0,wrapWidth:ct=1200,trackEventItems:gt,loading:Je})=>{const Ft=Math.floor((ct-(pt-1)*Et)/pt);return v.createElement(z.Z,{spinning:Je},v.createElement("div",{className:ve()(x.list,wt)},!!Mt.length&&Mt.map(($t,Wt)=>{const{name:gr,id:vr,identifier:er,power:yr,cover_image_id:_r,pic:Jt}=$t;return v.createElement("div",{className:x.wrap,key:vr,style:{width:Ft,marginRight:(1+Wt)%pt===0?0:Et+st,marginBottom:Re}},v.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:x.li,onClick:Kt=>{Kt.preventDefault(),gt&&(0,xe.L9)([gt]),yr&&(0,xe.xg)(`/shixuns/${er}/challenges`)}},v.createElement("div",{className:x.img},v.createElement("img",{className:x.cover,src:`${Jt}`}),$t.is_jupyter&&v.createElement("img",{className:x.sign,src:we}),$t.is_jupyter_lab&&v.createElement("img",{className:x.sign,src:Be}),$t.is_unity_3d&&v.createElement("img",{className:x.sign,src:H})),v.createElement("div",{className:x.name},v.createElement(Q.Z,{title:gr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},v.createElement("span",{className:x.e},gr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),v.createElement("div",{className:x.tags},v.createElement(Q.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),v.createElement("span",null,$t.challenges_count))),!!$t.myshixuns_count&&v.createElement(Q.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),v.createElement("span",null,$t.myshixuns_count))),v.createElement(Q.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},v.createElement("span",null,v.createElement("span",null,$t.level))),v.createElement("div",{className:x.rate},v.createElement(q.Z,{allowHalf:!0,disabled:!0,defaultValue:$t.score_info}),v.createElement("span",null,"\xA0",$t.score_info?`${$t.score_info}\u5206`:"5\u5206")))),!yr&&v.createElement("div",{className:x.lockWrap},v.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),v.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Mt.length&&v.createElement(L.Z,null)))},le={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},J=y(24065),g=y(59301),K=({className:wt,dataSource:Mt=[],col:pt=4,right:Et,bottom:Re=23,precision:st=0,wrapWidth:ct=1200,trackEventItems:gt,loading:Je,onRemove:Ft=()=>{},isCurrent:$t=!0,showAlias:Wt=!1})=>{const gr=Math.floor((ct-(pt-1)*Et)/pt),vr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return g.createElement(z.Z,{spinning:Je},g.createElement("div",{className:ve()(le.list,wt)},!!(Mt!=null&&Mt.length)&&(Mt==null?void 0:Mt.map((er,yr)=>{var _r;const{name:Jt,id:Kt,identifier:$e,featured:vt,school_name:at,image_url:yt,excellent:Nt,is_plan:Ot}=er;return g.createElement("div",{key:Kt,className:le.wrap,style:{width:gr,marginRight:(1+yr)%pt===0?0:Et+st,marginBottom:Re}},g.createElement("a",{className:le.li,onClick:ut=>{ut.preventDefault(),ut.stopPropagation(),gt&&(0,xe.L9)([gt]),(0,xe.xg)(`/paths/${$e}`)}},g.createElement("div",{className:le.img},g.createElement("img",{className:le.cover,src:`${yt}`}),$t&&(0,J.bg)()&&(er==null?void 0:er.studying)&&g.createElement("div",{className:`${le.movebq} user-path-items`,onClick:ut=>{ut.stopPropagation(),Ft(er)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(_r=er==null?void 0:er.subject_tags)==null?void 0:_r.map((ut,Se)=>{var We,rt;if(Se===0){const mt=(We=vr.find(Ct=>Ct.name==ut))==null?void 0:We.swimg;return g.createElement("img",{className:le.sign,src:mt,style:{left:"-4px"}})}const bt=(rt=vr.find(mt=>mt.name==ut))==null?void 0:rt.ptimg;return g.createElement("img",{className:le.sign,src:bt,style:{left:`${48+52*(Se-1)+2*Se}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(er==null?void 0:er.excellent)&&g.createElement("div",{className:le.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:le.name},g.createElement(Q.Z,{title:Wt&&(er!=null&&er.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Jt}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${er==null?void 0:er.excellent_alias_name}`)):Jt},g.createElement("span",{className:le.e},Wt&&(er==null?void 0:er.excellent_alias_name)||Jt))),g.createElement(Q.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${at}`},g.createElement("div",{className:le.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),at)),g.createElement("div",{className:le.tags},g.createElement("div",null,g.createElement(Q.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,er.stages_count))),g.createElement(Q.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,er.members_count)))))))})),!Mt.length&&g.createElement(L.Z,null)))},G={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Pe="data:image/png;base64,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",Ne=y(59301),Ve=({className:wt,dataSource:Mt=[],col:pt=4,right:Et,bottom:Re=23,precision:st=0,wrapWidth:ct=1200,trackEventItems:gt,loading:Je,handleVery:Ft=()=>!0})=>{const $t=Math.floor((ct-(pt-1)*Et)/pt);return Ne.createElement(z.Z,{spinning:Je},Ne.createElement("div",{className:ve()(G.list,wt)},!!Mt.length&&Mt.map((Wt,gr)=>{const{subject_identifier:vr,id:er,identifier:yr,power:_r}=Wt,Jt=Wt.is_public!=0&&Wt.is_public;return Ne.createElement("div",{className:G.wrap,key:er,style:{width:$t,marginRight:(1+gr)%pt===0?0:Et+st,marginBottom:Re}},Ne.createElement("a",{className:G.li,onClick:Kt=>{Kt.preventDefault(),Ft(Wt==null?void 0:Wt.first_category_url)&&(gt&&(0,xe.L9)([gt]),(0,xe.xg)(Wt.first_category_url))}},Ne.createElement("div",{className:G.top},Ne.createElement(Q.Z,{title:Wt.name},Ne.createElement("div",{className:G.name},Wt.name)),Ne.createElement("img",{className:G.img,src:ce.Z.IMG_SERVER+"/images/"+Wt.avatar_url}),Ne.createElement("div",{className:G.text,title:Wt.creator},Wt.creator),vr&&Ne.createElement("div",{className:G.btns},Ne.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ne.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Jt&&Ne.createElement("div",{className:G.sign},"\u516C\u5F00")),Ne.createElement("div",{className:G.bottom},Wt.visits>0&&Ne.createElement(Q.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-liulanyan"}),Ne.createElement("span",null,Wt.visits))),Wt.course_members_count>0&&Ne.createElement(Q.Z,{title:"\u6210\u5458",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-chengyuan"}),Wt.course_members_count)),Wt.tasks_count>0&&Ne.createElement(Q.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-zuoye"}),Wt.tasks_count)),Wt.is_end?Ne.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ne.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Wt.is_accessible&&Ne.createElement("div",{className:G.lockWrap},Ne.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ne.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Mt.length&&Ne.createElement(L.Z,null)))},qe={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},tt=y(89070),Ut=({dataSource:wt=[],value:Mt,onChange:pt,className:Et,style:Re={},tabBarExtraContent:st})=>v.createElement("div",{className:ve()(qe.tabs,Et),style:Re},v.createElement("div",{className:qe.tabsWrap},wt.map((ct,gt)=>!(ct!=null&&ct.hide)&&v.createElement("aside",{className:qe.tab,onClick:()=>{pt(ct.id),ct.link&&tt.history.push(ct.link)},key:gt},v.createElement("div",{className:Mt===ct.id?qe.active:""},ct.name),(ct==null?void 0:ct.resetCount)==null&&(ct==null?void 0:ct.total)!==void 0&&v.createElement("span",null,"\uFF08",ct==null?void 0:ct.total,"\uFF09"),(ct==null?void 0:ct.resetCount)!==void 0&&(ct==null?void 0:ct.total)!==void 0&&v.createElement(Q.Z,{title:(ct==null?void 0:ct.tip)!=null?ct==null?void 0:ct.tip:""},v.createElement("span",{style:{color:"#9096A3"}},"\uFF08",v.createElement("span",{style:{color:"#000"}},ct==null?void 0:ct.resetCount),"/",v.createElement("span",null,ct==null?void 0:ct.total),"\uFF09"))))),v.createElement("div",{className:qe.tabBar},st)),sr=({className:wt,style:Mt={},children:pt})=>v.createElement("div",{className:ve()(wt),style:Mt},pt),Bt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ht=y(38854),Xt=y(20834);const de=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var F=({sortValue:wt,dropValue:Mt,className:pt,onSort:Et,onDrop:Re,dataSource:st=de})=>{var ct;return v.createElement("div",{className:ve()(Bt.orderWrap,pt)},v.createElement(Ht.Z,{dropdownRender:()=>v.createElement(Xt.default,null,st.map((gt,Je)=>v.createElement(Xt.default.Item,{key:Je,onClick:()=>Re(gt.id)},gt.name)))},v.createElement("span",{className:Bt.orderTextWrap},(ct=st.find(gt=>Mt===gt.id))==null?void 0:ct.name)),v.createElement("span",{className:Bt.orderIconWrap},v.createElement("span",{className:Bt.orderAsc},v.createElement("i",{className:wt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Bt.cursorPointer} ${Bt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Bt.cursorPointer}`,onClick:()=>Et(wt==="asc"?"desc":"asc")})),v.createElement("span",{className:Bt.orderDesc},v.createElement("i",{className:wt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Bt.cursorPointer} ${Bt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Bt.cursorPointer}`,onClick:()=>Et(wt==="asc"?"desc":"asc")}))))},fe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Te=y(3113),I=Object.defineProperty,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Oe=(wt,Mt,pt)=>Mt in wt?I(wt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):wt[Mt]=pt,Fe=(wt,Mt)=>{for(var pt in Mt||(Mt={}))he.call(Mt,pt)&&Oe(wt,pt,Mt[pt]);if(ee)for(var pt of ee(Mt))be.call(Mt,pt)&&Oe(wt,pt,Mt[pt]);return wt},Qe=(wt,Mt)=>{var pt={};for(var Et in wt)he.call(wt,Et)&&Mt.indexOf(Et)<0&&(pt[Et]=wt[Et]);if(wt!=null&&ee)for(var Et of ee(wt))Mt.indexOf(Et)<0&&be.call(wt,Et)&&(pt[Et]=wt[Et]);return pt},ht=(wt,Mt,pt)=>new Promise((Et,Re)=>{var st=Je=>{try{gt(pt.next(Je))}catch(Ft){Re(Ft)}},ct=Je=>{try{gt(pt.throw(Je))}catch(Ft){Re(Ft)}},gt=Je=>Je.done?Et(Je.value):Promise.resolve(Je.value).then(st,ct);gt((pt=pt.apply(wt,Mt)).next())}),Xe=wt=>{var Mt=wt,{className:pt,style:Et,children:Re,loading:st=!1,openLoading:ct,onClick:gt=()=>{},size:Je="middle",shape:Ft="round"}=Mt,$t=Qe(Mt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Wt,gr]=(0,v.useState)(!1);return v.createElement(Te.ZP,Fe({onClick:(0,a.throttle)(vr=>ht(void 0,null,function*(){ct&&gr(!0);try{yield gt(vr)}catch(er){console.log("error",er)}ct&&gr(!1)}),2e3,{leading:!0,trailing:!1}),className:ve()(fe.btn,fe[`${Je}-${Ft}`],pt),style:Et,size:Je,shape:Ft,loading:Wt||st},$t),Re)},Dt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Le=({className:wt,style:Mt,children:pt=null,onClick:Et,title:Re})=>v.createElement("div",{className:ve()(Dt.head,wt),style:Mt},v.createElement("span",{className:"primary-hover",onClick:Et},v.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),v.createElement("b",{title:Re},Re),v.createElement("div",{className:Dt.node},pt)),Ke={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ft=({confirmShow:wt=!0,confirmTitle:Mt,confirmClick:pt,cancelShow:Et=!0,cancelTitle:Re,cancelClick:st,className:ct,style:gt,confirmLoading:Je=!1})=>v.createElement("div",{className:ve()(Ke.btns,ct),style:gt},wt&&v.createElement(Te.ZP,{loading:Je,onClick:pt,type:"primary",className:Ke.confirm},Mt),Et&&v.createElement(Te.ZP,{onClick:st,className:Ke.cancel},Re)),At={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},_=({className:wt,style:Mt={},LeftContent:pt,children:Et,RightContent:Re})=>v.createElement("div",{className:ve()(At.fixedBottom,wt),style:Mt},v.createElement("div",{className:At.wrap},v.createElement("div",{className:At.left},pt),v.createElement("div",{className:At.center},Et),v.createElement("div",{className:At.right},Re))),C={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},$=({className:wt,style:Mt={},dataSource:pt=[]})=>v.createElement("div",{className:ve()(C.crumbs,wt),style:Mt},pt.map((Et,Re)=>Re<pt.length-1?v.createElement(v.Fragment,{key:Re},Et.path||Et.onClick?v.createElement("span",{className:C.hover,onClick:Et!=null&&Et.onClick?Et.onClick:()=>tt.history.push(Et.path)},Et.name):v.createElement("span",null,Et.name),v.createElement("span",null,"\xA0",">","\xA0")):v.createElement("span",{key:Re,style:{color:"#5F6368"}},Et.name))),me=y(31797),tr=Object.defineProperty,ke=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,De=(wt,Mt,pt)=>Mt in wt?tr(wt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):wt[Mt]=pt,ze=(wt,Mt)=>{for(var pt in Mt||(Mt={}))X.call(Mt,pt)&&De(wt,pt,Mt[pt]);if(Ze)for(var pt of Ze(Mt))oe.call(Mt,pt)&&De(wt,pt,Mt[pt]);return wt},j=(wt,Mt)=>ke(wt,He(Mt)),Pt=(wt,Mt)=>{var pt={};for(var Et in wt)X.call(wt,Et)&&Mt.indexOf(Et)<0&&(pt[Et]=wt[Et]);if(wt!=null&&Ze)for(var Et of Ze(wt))Mt.indexOf(Et)<0&&oe.call(wt,Et)&&(pt[Et]=wt[Et]);return pt};const{Countdown:Ae}=me.default;var lr=wt=>{var Mt=wt,{onChange:pt}=Mt,Et=Pt(Mt,["onChange"]);const[Re,st]=(0,v.useState)(null);(0,v.useEffect)(()=>{typeof Re=="number"&&Re>=0&&pt(Re)},[Re]);const ct=gt=>{const Je=Math.floor(gt/1e3);st(Je)};return v.createElement(Ae,j(ze({},Et),{onChange:ct}))}},66703:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return z}});var v=y(59301),Y=y(78241),ge=y(8591),Ie=y(43418),ne=y(92832),se=y(54580),ye={flex_box_center:"flex_box_center___eFoM9",flex_space_between:"flex_space_between___Wg6Gr",flex_box_vertical_center:"flex_box_vertical_center___TqrrQ",flex_box_center_end:"flex_box_center_end___L9c4u",flex_box_column:"flex_box_column___SvH8v",form:"form___LQCl5",btn:"btn___l3d4K",img:"img___CeTIL"},ve=y(76895),a=y(3294),P=y(19248),O=y(85057),A=Object.defineProperty,c=Object.defineProperties,w=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,R=(Q,q,ce)=>q in Q?A(Q,q,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Q[q]=ce,k=(Q,q)=>{for(var ce in q||(q={}))V.call(q,ce)&&R(Q,ce,q[ce]);if(E)for(var ce of E(q))te.call(q,ce)&&R(Q,ce,q[ce]);return Q},U=(Q,q)=>c(Q,w(q)),ae=(Q,q,ce)=>new Promise((xe,we)=>{var Be=Z=>{try{L(ce.next(Z))}catch(W){we(W)}},H=Z=>{try{L(ce.throw(Z))}catch(W){we(W)}},L=Z=>Z.done?xe(Z.value):Promise.resolve(Z.value).then(Be,H);L((ce=ce.apply(Q,q)).next())}),z=({visible:Q,onOk:q,onCancel:ce,title:xe=""})=>{var we,Be;const[H]=Y.default.useForm(),[L,Z]=(0,v.useState)(!1),[W,le]=(0,v.useState)([]),[J,g]=(0,v.useState)(!1);console.log(Q,22),(0,v.useEffect)(()=>{var qe,tt;if(Q!=null&&Q.id){H.setFieldsValue(U(k({},Q),{attachment_id:(qe=Q==null?void 0:Q.attachment)==null?void 0:qe.id}));const lt=[U(k({},Q==null?void 0:Q.attachment),{response:{id:(tt=Q==null?void 0:Q.attachment)==null?void 0:tt.id}})];le(lt)}},[Q]);const S=()=>{H.submit()},K=()=>{ce()},G=qe=>ae(void 0,null,function*(){var tt,lt;Z(!0);const Ut=U(k({},qe),{attachment_id:((lt=(tt=W==null?void 0:W[0])==null?void 0:tt.response)==null?void 0:lt.id)||""});q(Ut)}),Pe=qe=>{var tt,lt,Ut;H.setFieldsValue({attachment_id:""}),["uploading","done","removed"].includes(qe.file.status)&&(qe.file.status==="uploading"&&g(!0),qe.file.status==="done"&&g(!1),le(qe.fileList),H.setFieldsValue({attachment_id:(Ut=(lt=(tt=qe.fileList)==null?void 0:tt[0])==null?void 0:lt.response)==null?void 0:Ut.id}))},Ne=qe=>{le([])},Ue=qe=>qe.type==="image/jpeg"||qe.type==="image/png"?qe.size/1024/1024>2?(ge.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E2MB"),Promise.reject()):(le([]),!0):(ge.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),Promise.reject()),Ve=()=>{var qe,tt;return v.createElement("div",{className:ye.img},v.createElement("img",{src:a.Z.API_SERVER+"/api/attachments/"+((tt=(qe=W==null?void 0:W[0])==null?void 0:qe.response)==null?void 0:tt.id),alt:"avatar",style:{width:"100%"}}),v.createElement("div",null,v.createElement(P.Z,{onClick:()=>{le([]),H.setFieldsValue({attachment_id:""})},style:{fontSize:"16px",color:"red"}})))};return v.createElement(Ie.default,{title:`${Q!=null&&Q.id?"\u7F16\u8F91":"\u65B0\u5EFA"}${xe}`,open:Q,onOk:S,centered:!0,onCancel:K,confirmLoading:L,okButtonProps:{disabled:J},width:686,afterClose:()=>{Z(!1),le([]),H.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:ve.Z.CustomCss},v.createElement(Y.default,{form:H,colon:!1,labelCol:{span:4},wrapperCol:{span:18},onFinish:G,className:ye.form},v.createElement(Y.default.Item,{label:`${xe}\u540D\u79F0`,name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${xe}\u540D\u79F0`},{whitespace:!0,message:`\u8BF7\u8F93\u5165${xe}\u540D\u79F0`},{max:100,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},v.createElement(ne.default,{maxLength:100,placeholder:`\u8BF7\u8F93\u5165${xe}\u540D\u79F0`})),v.createElement(Y.default.Item,{label:"\u4F5C\u8005",name:"author",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},v.createElement(ne.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})),v.createElement(Y.default.Item,{label:"\u51FA\u7248\u793E",name:"publisher",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"},{whitespace:!0,message:"\u5B9E\u8DF5\u51FA\u7248\u793E"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},v.createElement(ne.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"})),v.createElement(Y.default.Item,{label:"\u51FA\u7248\u65F6\u95F4",name:"publication_time",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"}]},v.createElement(ne.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"})),v.createElement(Y.default.Item,{label:"ISBN",name:"number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165ISBN"},{whitespace:!0,message:"\u8BF7\u8F93\u5165ISBN"}]},v.createElement(ne.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165ISBN"})),v.createElement(Y.default.Item,{name:"attachment_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},v.createElement("div",{className:ye.upload},(Be=(we=W==null?void 0:W[0])==null?void 0:we.response)!=null&&Be.id?Ve():v.createElement(se.default,{fileList:W,action:`${a.Z.API_SERVER}/api/attachments.json`,onChange:qe=>Pe(qe),onRemove:qe=>Ne(qe),beforeUpload:qe=>Ue(qe),withCredentials:!0,accept:"image/*"},v.createElement(O.op,{style:{borderRadius:"2px",marginLeft:4,marginTop:3}},v.createElement("i",{className:"iconfont icon-shangchuantupian2 mr5"}),"\u4E0A\u4F20\u56FE\u7247")))),v.createElement(Y.default.Item,{label:"\u8D2D\u4E66\u94FE\u63A5",name:"buy_url",rules:[{type:"url",message:"\u8D2D\u4E66\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},v.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u8D2D\u4E66\u94FE\u63A5",maxLength:150})),v.createElement(Y.default.Item,{label:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",name:"relevance_url",rules:[{type:"url",message:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},v.createElement(ne.default,{placeholder:"\u8BF7\u8F93\u5165\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",maxLength:150}))))}},75431:function(Qt,it,y){"use strict";y.r(it),y.d(it,{default:function(){return ce}});var v=y(59301),Y=y(89070),ge=y(95237),Ie=y(43604),ne=y(61621),se=y(6848),ye=y(8797),ve={flex_box_center:"flex_box_center___ib72a",flex_space_between:"flex_space_between___QmDfb",flex_box_vertical_center:"flex_box_vertical_center___XXhZp",flex_box_center_end:"flex_box_center_end___HeMGP",flex_box_column:"flex_box_column___g0Y22",Onerow:"Onerow___vo6jS",MultiLine:"MultiLine___W7Vel",wrap:"wrap___VxAa4",list:"list___BOHb1",left:"left___KgBuF",right:"right___bBZU2",title:"title___uBnVu",des:"des___MgP7x",PieceFenbuList:"PieceFenbuList___gzTyL",PieceFenbuItem:"PieceFenbuItem___Z9J18",MultiLine3:"MultiLine3___KeM07"},a=y(99064),P=y(85057),O="data:image/png;base64,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",A="data:image/png;base64,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",c=y(66703),w=y(85149),E=y(3294),V=y(24065),te=y(955),R=Object.defineProperty,k=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,x=(xe,we,Be)=>we in xe?R(xe,we,{enumerable:!0,configurable:!0,writable:!0,value:Be}):xe[we]=Be,z=(xe,we)=>{for(var Be in we||(we={}))U.call(we,Be)&&x(xe,Be,we[Be]);if(k)for(var Be of k(we))ae.call(we,Be)&&x(xe,Be,we[Be]);return xe},Q=(xe,we,Be)=>new Promise((H,L)=>{var Z=J=>{try{le(Be.next(J))}catch(g){L(g)}},W=J=>{try{le(Be.throw(J))}catch(g){L(g)}},le=J=>J.done?H(J.value):Promise.resolve(J.value).then(Z,W);le((Be=Be.apply(xe,we)).next())});const q=({globalSetting:xe,dispatch:we,virtualSpaces:Be})=>{const[H,L]=(0,v.useState)(!0),[Z,W]=(0,v.useState)(!1),[le,J]=(0,v.useState)(parseInt(localStorage.getItem("isMaterPieceFenbu")||"1")),[g,S]=(0,v.useState)([]),{virtualSpacesDetails:K}=Be,G=(0,Y.useParams)(),[Pe,Ne]=(0,v.useState)("1"),Ue=(K==null?void 0:K.is_member)||(0,V.Ny)();(0,v.useEffect)(()=>{Ve()},[Pe,window.localStorage.getItem("vtrsModuleId")]);const Ve=()=>Q(void 0,null,function*(){L(!0);const lt=yield(0,a.ZP)(`/api/virtual_classrooms/${G.virtual_spacesId}/subject_materials/list.json`,{method:"get",params:{material_type:Pe,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});(lt==null?void 0:lt.status)!==-1&&S((lt==null?void 0:lt.list)||[]),L(!1)}),qe=[{id:"1",name:"\u4E3B\u6559\u6750"},{id:"2",name:"\u5B9E\u8DF5\u6559\u6750"}],tt=lt=>Q(void 0,null,function*(){const Ut=yield(0,a.ZP)(`/api/virtual_classrooms/${G.virtual_spacesId}/subject_materials.json`,{method:"post",body:z({material_type:Pe,virtual_module_id:window.localStorage.getItem("vtrsModuleId")},lt)});(Ut==null?void 0:Ut.status)!==-1&&(Ve(),W(!1))});return v.createElement("section",{className:ve.wrap},v.createElement(P.YG,{value:Pe,onChange:lt=>{Ne(lt)},tabBarExtraContent:Ue&&v.createElement(ge.Z,{align:"middle"},v.createElement(Ie.Z,{className:"mr20"},v.createElement("i",{className:`iconfont ${le!=1?"icon-fenbu-2":"icon-fenbu"}`,onClick:()=>{J(le!=1?1:2),localStorage.setItem("isMaterPieceFenbu",`${le!=1?1:2}`)}})),Pe==="1"&&v.createElement(P.op,{onClick:()=>W(!0)},v.createElement("img",{className:"mr5",width:20,style:{marginTop:-2},src:O}),"\u65B0\u5EFA\u4E3B\u6559\u6750"),Pe==="2"&&v.createElement(P.op,{onClick:()=>W(!0)},v.createElement("img",{className:"mr5",width:20,style:{marginTop:-2},src:A}),"\u65B0\u5EFA\u5B9E\u8DF5\u6559\u6750")),dataSource:qe}),v.createElement(ne.Z,{className:"mt20",loading:H},!g.length&&v.createElement(ye.Z,null),le!=1?v.createElement("div",{className:ve.PieceFenbuList},g.map(lt=>{const{name:Ut,id:Yt,attachment:sr,author:Bt,publisher:Ht,number:Xt,publication_time:de,description:Ee}=lt;return v.createElement(ge.Z,{key:Yt,className:ve.PieceFenbuItem,wrap:!1,onClick:()=>Y.history.push(`/${te.AS}/${G.virtual_spacesId}/material/${Yt}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},v.createElement(ge.Z,{style:{flexDirection:"column",width:171}},v.createElement("img",{width:171,height:215,src:E.Z.API_SERVER+(sr==null?void 0:sr.url)}),v.createElement(Ie.Z,{className:"font12",style:{marginTop:"15px"}},"\u4F5C\u8005\uFF1A",Bt),v.createElement(Ie.Z,{className:"mt10 font12"},"\u51FA\u7248\u793E\uFF1A",Ht),v.createElement(Ie.Z,{className:"mt10 font12"},"ISBN\uFF1A",Xt),v.createElement(Ie.Z,{className:"mt10 font12"},"\u51FA\u7248\u65F6\u95F4\uFF1A",de)),v.createElement(ge.Z,{className:"ml20",style:{flexDirection:"column",flex:1,position:"relative"}},v.createElement(se.Z,{placement:"topLeft",title:Ut},v.createElement(Ie.Z,{className:`${ve.MultiLine} font16`,style:{marginTop:"13px",fontWeight:500}},Ut)),v.createElement(Ie.Z,{className:ve.MultiLine3},v.createElement(w.Z,{showTextOnly:!0,value:"\u7B80\u4ECB\uFF1A"+(Ee||"\u6682\u672A\u586B\u5199\u5185\u5BB9\uFF5E")}))))})):v.createElement(v.Fragment,null,g.map(lt=>{const{name:Ut,id:Yt,attachment:sr,author:Bt,publisher:Ht,number:Xt,publication_time:de,description:Ee}=lt;return v.createElement("div",{key:Yt,className:ve.list,onClick:()=>Y.history.push(`/${te.AS}/${G.virtual_spacesId}/material/${Yt}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},v.createElement("div",{className:ve.left},v.createElement("img",{src:E.Z.API_SERVER+(sr==null?void 0:sr.url)})),v.createElement("div",{className:ve.right},v.createElement("div",{className:ve.title},Ut),v.createElement("aside",null,v.createElement(se.Z,{title:Bt},v.createElement("span",null,"\u4F5C\u8005\uFF1A",Bt)),v.createElement(se.Z,{title:Ht},v.createElement("span",null,"\u51FA\u7248\u793E\uFF1A",Ht))),v.createElement("aside",null,v.createElement(se.Z,{title:Xt},v.createElement("span",null,"ISBN\uFF1A",Xt)),v.createElement("span",null,"\u51FA\u7248\u65F6\u95F4\uFF1A",de)),v.createElement("div",{className:"c-grey-666 font14 mb5"},"\u7B80\u4ECB\uFF1A"),v.createElement("div",{className:ve.des},v.createElement(w.Z,{showTextOnly:!0,showLines:3,value:Ee||""}))))}))),v.createElement(c.Z,{visible:Z,title:Pe==="1"?"\u4E3B\u6559\u6750":"\u5B9E\u8DF5\u6559\u6750",onCancel:()=>W(!1),onOk:tt}))};var ce=(0,Y.connect)(({virtualSpaces:xe,globalSetting:we})=>({globalSetting:we,virtualSpaces:xe}))(q)},24768:function(Qt,it,y){"use strict";y.d(it,{AL:function(){return ae},Iy:function(){return O},Qv:function(){return w},ez:function(){return U},jb:function(){return A}});var v=y(32834),Y=y.n(v),ge=y(11690),Ie=y.n(ge);let ne=1;function se(ce,xe){const we=ce.match(/^(\s+)(?:```)/);if(we===null)return xe;const Be=we[1];return xe.split(`
|
|
|
`).map(H=>{const L=H.match(/^\s+/);if(L===null)return H;const[Z]=L;return Z.length>=Be.length?H.slice(Be.length):H}).join(`
|
|
|
`)}let ye=[],ve=["<ul>"];const a=new(Y()).Renderer,P=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){ye.length=0,ve=["<ul>"]}const A={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(ce,xe,we,Be){if(xe>=ce.length||ce[xe].level<=we)return xe;var H=ce[xe];Be.push("<li><a href='#"+ne+H.anchor+"'>"+H.text+"</a>"),xe++;var L=[];return xe=c(ce,xe,H.level,L),L.length>0&&(Be.push("<ul>"),L.forEach(function(Z){Be.push(Z)}),Be.push("</ul>")),Be.push("</li>"),xe=c(ce,xe,we,Be),xe}function w(){return c(ye,0,0,ve),ve.push("</ul>"),ve.join("")}const E={heading(ce){const xe=P.exec(ce);if(ne+=1,xe)return{type:"heading",raw:xe[0],depth:xe[1].length,text:xe[2]}},fences(ce){const xe=this.rules.block.fences.exec(ce);if(xe){const we=xe[0];let Be=se(we,xe[3]||"");const H=xe[2]?xe[2].trim():xe[2];if(["latex","katex","math"].indexOf(H)>=0){const L=R(),Z=Be;Be=L,k[L]={type:"block",expression:Z}}return{type:"code",raw:we,lang:H,text:Be}}}},V=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let te=0;const R=()=>`__special_katext_id_${te++}__`;let k={};function U(){return k}function ae(){te=0,k={}}function x(ce){return ce=ce.replace(V,(xe,we)=>{const Be=R();return k[Be]={type:"inline",expression:we},Be}),ce}const z=a.listitem;a.listitem=function(ce){return z(x(ce))};const Q=a.paragraph;a.paragraph=function(ce){return Q(x(ce))};const q=a.tablecell;a.tablecell=function(ce,xe){return q(x(ce),xe)},a.code=function(ce,xe,we){const Be=(xe||"").match(/\S*/)[0];return Be?["latex","katex","math"].indexOf(Be)>=0?`<p class='editormd-tex'>${ce}</p>`:`<pre class="prettyprint linenums"><code class="language-${xe}">${we?ce:(0,ge.escape)(ce,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(we?ce:(0,ge.escape)(ce,!0))+"</code></pre>"},a.heading=function(ce,xe,we){let Be=this.options.headerPrefix+we.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ye.push({anchor:Be,level:xe,text:ce}),"<h"+xe+' id="'+ne+Be+'">'+ce+"</h"+xe+">"},Y().setOptions({silent:!0,gfm:!0,pedantic:!1}),Y().use({tokenizer:E,renderer:a}),it.ZP=Y()},36785:function(Qt,it,y){"use strict";y.d(it,{o2:function(){return ne},yT:function(){return se}});var v=y(19127),Y=y(33166);const ge=Y.i.map(ye=>`${ye}-inverse`),Ie=["success","processing","error","default","warning"];function ne(ye){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,v.Z)(ge),(0,v.Z)(Y.i)).includes(ye):Y.i.includes(ye)}function se(ye){return Ie.includes(ye)}},56762:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Y}});var v=y(59301);function Y(){const[,ge]=v.useReducer(Ie=>Ie+1,0);return ge}},79676:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return se}});var v=y(19447);function Y(ye,ve,a,P){if(P===!1)return{adjustX:!1,adjustY:!1};const O=P&&typeof P=="object"?P:{},A={};switch(ye){case"top":case"bottom":A.shiftX=ve.dropdownArrowOffset*2+a;break;case"left":case"right":A.shiftY=ve.dropdownArrowOffsetVertical*2+a;break}const c=Object.assign(Object.assign({},A),O);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const ge={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"]}},Ie={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"]}},ne=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function se(ye){const{arrowWidth:ve,autoAdjustOverflow:a,arrowPointAtCenter:P,offset:O,borderRadius:A,visibleFirst:c}=ye,w=ve/2,E={};return Object.keys(ge).forEach(V=>{const te=P&&Ie[V]||ge[V],R=Object.assign(Object.assign({},te),{offset:[0,0]});switch(E[V]=R,ne.has(V)&&(R.autoArrow=!1),V){case"top":case"topLeft":case"topRight":R.offset[1]=-w-O;break;case"bottom":case"bottomLeft":case"bottomRight":R.offset[1]=w+O;break;case"left":case"leftTop":case"leftBottom":R.offset[0]=-w-O;break;case"right":case"rightTop":case"rightBottom":R.offset[0]=w+O;break}const k=(0,v.fS)({contentRadius:A,limitVerticalRadius:!0});if(P)switch(V){case"topLeft":case"bottomLeft":R.offset[0]=-k.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":R.offset[0]=k.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":R.offset[1]=-k.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":R.offset[1]=k.dropdownArrowOffset+w;break}R.overflow=Y(V,k,ve,a),c&&(R.htmlRegion="visibleFirst")}),E}},19080:function(Qt,it,y){"use strict";y.d(it,{F:function(){return ne},Z:function(){return Ie}});var v=y(92310),Y=y.n(v);const ge=null;function Ie(se,ye,ve){return Y()({[`${se}-status-success`]:ye==="success",[`${se}-status-warning`]:ye==="warning",[`${se}-status-error`]:ye==="error",[`${se}-status-validating`]:ye==="validating",[`${se}-has-feedback`]:ve})}const ne=(se,ye)=>ye||se},91857:function(Qt,it,y){"use strict";var v=y(59301),Y=y(38819),ge=y(92310),Ie=y.n(ge),ne=y(31561),se=y(70425),ye=y(18929),ve=y(2738),a=y(79676),P=y(53487),O=y(92343),A=y(36355),c=y(20834),w=y(40875),E=y(88088),V=y(47211);const te=null,R=x=>{const{menu:z,arrow:Q,prefixCls:q,children:ce,trigger:xe,disabled:we,dropdownRender:Be,getPopupContainer:H,overlayClassName:L,rootClassName:Z,open:W,onOpenChange:le,visible:J,onVisibleChange:g,mouseEnterDelay:S=.15,mouseLeaveDelay:K=.1,autoAdjustOverflow:G=!0,placement:Pe="",overlay:Ne,transitionName:Ue}=x,{getPopupContainer:Ve,getPrefixCls:qe,direction:tt}=v.useContext(A.E_),lt=v.useMemo(()=>{const Fe=qe();return Ue!==void 0?Ue:Pe.includes("top")?`${Fe}-slide-down`:`${Fe}-slide-up`},[qe,Pe,Ue]),Ut=v.useMemo(()=>Pe?Pe.includes("Center")?Pe.slice(0,Pe.indexOf("Center")):Pe:tt==="rtl"?"bottomRight":"bottomLeft",[Pe,tt]),Yt=qe("dropdown",q),[sr,Bt]=(0,V.Z)(Yt),[,Ht]=(0,E.Z)(),Xt=v.Children.only(ce),de=(0,O.Tm)(Xt,{className:Ie()(`${Yt}-trigger`,{[`${Yt}-rtl`]:tt==="rtl"},Xt.props.className),disabled:we}),Ee=we?[]:xe;let F;Ee&&Ee.includes("contextMenu")&&(F=!0);const[fe,Te]=(0,ye.Z)(!1,{value:W!=null?W:J}),I=(0,se.useEvent)(Fe=>{le==null||le(Fe),g==null||g(Fe),Te(Fe)}),ee=Ie()(L,Z,Bt,{[`${Yt}-rtl`]:tt==="rtl"}),he=(0,a.Z)({arrowPointAtCenter:typeof Q=="object"&&Q.pointAtCenter,autoAdjustOverflow:G,offset:Ht.marginXXS,arrowWidth:Q?Ht.sizePopupArrow:0,borderRadius:Ht.borderRadius}),be=v.useCallback(()=>{Te(!1)},[]),Oe=()=>{let Fe;return z!=null&&z.items?Fe=v.createElement(c.default,Object.assign({},z)):typeof Ne=="function"?Fe=Ne():Fe=Ne,Be&&(Fe=Be(Fe)),Fe=v.Children.only(typeof Fe=="string"?v.createElement("span",null,Fe):Fe),v.createElement(w.J,{prefixCls:`${Yt}-menu`,expandIcon:v.createElement("span",{className:`${Yt}-menu-submenu-arrow`},v.createElement(Y.Z,{className:`${Yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:be,validator:Qe=>{let{mode:ht}=Qe}},Fe)};return sr(v.createElement(ne.Z,Object.assign({alignPoint:F},(0,ve.Z)(x,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:K,visible:fe,builtinPlacements:he,arrow:!!Q,overlayClassName:ee,prefixCls:Yt,getPopupContainer:H||Ve,transitionName:lt,trigger:Ee,overlay:Oe,placement:Ut,onVisibleChange:I}),de))};function k(x){return Object.assign(Object.assign({},x),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const U=(0,P.Z)(R,"dropdown",x=>x,k),ae=x=>v.createElement(U,Object.assign({},x),v.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=ae,it.Z=R},38854:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return E}});var v=y(91857),Y=y(92310),ge=y.n(Y),Ie=y(59301),ne=y(18785),se=y(3113),ye=y(36355),ve=y(81327),a=y(33234),P=y(47211),O=function(V,te){var R={};for(var k in V)Object.prototype.hasOwnProperty.call(V,k)&&te.indexOf(k)<0&&(R[k]=V[k]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,k=Object.getOwnPropertySymbols(V);U<k.length;U++)te.indexOf(k[U])<0&&Object.prototype.propertyIsEnumerable.call(V,k[U])&&(R[k[U]]=V[k[U]]);return R};const A=V=>{const{getPopupContainer:te,getPrefixCls:R,direction:k}=Ie.useContext(ye.E_),{prefixCls:U,type:ae="default",danger:x,disabled:z,loading:Q,onClick:q,htmlType:ce,children:xe,className:we,menu:Be,arrow:H,autoFocus:L,overlay:Z,trigger:W,align:le,open:J,onOpenChange:g,placement:S,getPopupContainer:K,href:G,icon:Pe=Ie.createElement(ne.Z,null),title:Ne,buttonsRender:Ue=Oe=>Oe,mouseEnterDelay:Ve,mouseLeaveDelay:qe,overlayClassName:tt,overlayStyle:lt,destroyPopupOnHide:Ut,dropdownRender:Yt}=V,sr=O(V,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Bt=R("dropdown",U),Ht=`${Bt}-button`,[Xt,de]=(0,P.Z)(Bt),Ee={menu:Be,arrow:H,autoFocus:L,align:le,disabled:z,trigger:z?[]:W,onOpenChange:g,getPopupContainer:K||te,mouseEnterDelay:Ve,mouseLeaveDelay:qe,overlayClassName:tt,overlayStyle:lt,destroyPopupOnHide:Ut,dropdownRender:Yt},{compactSize:F,compactItemClassnames:fe}=(0,a.ri)(Bt,k),Te=ge()(Ht,fe,we,de);"overlay"in V&&(Ee.overlay=Z),"open"in V&&(Ee.open=J),"placement"in V?Ee.placement=S:Ee.placement=k==="rtl"?"bottomLeft":"bottomRight";const I=Ie.createElement(se.ZP,{type:ae,danger:x,disabled:z,loading:Q,onClick:q,htmlType:ce,href:G,title:Ne},xe),ee=Ie.createElement(se.ZP,{type:ae,danger:x,icon:Pe}),[he,be]=Ue([I,ee]);return Xt(Ie.createElement(ve.Z.Compact,Object.assign({className:Te,size:F,block:!0},sr),he,Ie.createElement(v.Z,Object.assign({},Ee),be)))};A.__ANT_BUTTON=!0;var c=A;const w=v.Z;w.Button=c;var E=w},47211:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return O}});var v=y(17313),Y=y(13826),ge=y(92899),Ie=y(29878),ne=y(19447),se=y(83116),ye=y(37613),a=A=>{const{componentCls:c,menuCls:w,colorError:E,colorTextLightSolid:V}=A,te=`${w}-item`;return{[`${c}, ${c}-menu-submenu`]:{[`${w} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:E,"&:hover":{color:V,backgroundColor:E}}}}}};const P=A=>{const{componentCls:c,menuCls:w,zIndexPopup:E,dropdownArrowDistance:V,sizePopupArrow:te,antCls:R,iconCls:k,motionDurationMid:U,dropdownPaddingVertical:ae,fontSize:x,dropdownEdgeChildPadding:z,colorTextDisabled:Q,fontSizeIcon:q,controlPaddingHorizontal:ce,colorBgElevated:xe}=A;return[{[c]:Object.assign(Object.assign({},(0,v.Wf)(A)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,display:"block","&::before":{position:"absolute",insetBlock:-V+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${k}-down, & > ${R}-btn-icon > ${k}-down`]:{fontSize:q}},[`${c}-wrap`]:{position:"relative",[`${R}-btn > ${k}-down`]:{fontSize:q},[`${k}-down::before`]:{transition:`transform ${U}`}},[`${c}-wrap-open`]:{[`${k}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${R}-slide-down-enter${R}-slide-down-enter-active${c}-placement-bottomLeft,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${c}-placement-bottomLeft,
|
|
|
&${R}-slide-down-enter${R}-slide-down-enter-active${c}-placement-bottom,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${c}-placement-bottom,
|
|
|
&${R}-slide-down-enter${R}-slide-down-enter-active${c}-placement-bottomRight,
|
|
|
&${R}-slide-down-appear${R}-slide-down-appear-active${c}-placement-bottomRight`]:{animationName:Y.fJ},[`&${R}-slide-up-enter${R}-slide-up-enter-active${c}-placement-topLeft,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${c}-placement-topLeft,
|
|
|
&${R}-slide-up-enter${R}-slide-up-enter-active${c}-placement-top,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${c}-placement-top,
|
|
|
&${R}-slide-up-enter${R}-slide-up-enter-active${c}-placement-topRight,
|
|
|
&${R}-slide-up-appear${R}-slide-up-appear-active${c}-placement-topRight`]:{animationName:Y.Qt},[`&${R}-slide-down-leave${R}-slide-down-leave-active${c}-placement-bottomLeft,
|
|
|
&${R}-slide-down-leave${R}-slide-down-leave-active${c}-placement-bottom,
|
|
|
&${R}-slide-down-leave${R}-slide-down-leave-active${c}-placement-bottomRight`]:{animationName:Y.Uw},[`&${R}-slide-up-leave${R}-slide-up-leave-active${c}-placement-topLeft,
|
|
|
&${R}-slide-up-leave${R}-slide-up-leave-active${c}-placement-top,
|
|
|
&${R}-slide-up-leave${R}-slide-up-leave-active${c}-placement-topRight`]:{animationName:Y.ly}})},(0,ne.ZP)(A,{colorBg:xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${c} ${w}`]:{position:"relative",margin:0},[`${w}-submenu-popup`]:{position:"absolute",zIndex:E,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${c}, ${c}-menu-submenu`]:{[w]:Object.assign(Object.assign({padding:z,listStyleType:"none",backgroundColor:xe,backgroundClip:"padding-box",borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary},(0,v.Qy)(A)),{[`${w}-item-group-title`]:{padding:`${ae}px ${ce}px`,color:A.colorTextDescription,transition:`all ${U}`},[`${w}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${w}-item-icon`]:{minWidth:x,marginInlineEnd:A.marginXS,fontSize:A.fontSizeSM},[`${w}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${U}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${w}-item, ${w}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ae}px ${ce}px`,color:A.colorText,fontWeight:"normal",fontSize:x,lineHeight:A.lineHeight,cursor:"pointer",transition:`all ${U}`,borderRadius:A.borderRadiusSM,"&:hover, &-active":{backgroundColor:A.controlItemBgHover}},(0,v.Qy)(A)),{"&-selected":{color:A.colorPrimary,backgroundColor:A.controlItemBgActive,"&:hover, &-active":{backgroundColor:A.controlItemBgActiveHover}},"&-disabled":{color:Q,cursor:"not-allowed","&:hover":{color:Q,backgroundColor:xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${A.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:A.colorSplit},[`${c}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:A.paddingXS,[`${c}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:A.colorTextDescription,fontSize:q,fontStyle:"normal"}}}),[`${w}-item-group-list`]:{margin:`0 ${A.marginXS}px`,padding:0,listStyle:"none"},[`${w}-submenu-title`]:{paddingInlineEnd:ce+A.fontSizeSM},[`${w}-submenu-vertical`]:{position:"relative"},[`${w}-submenu${w}-submenu-disabled ${c}-menu-submenu-title`]:{[`&, ${c}-menu-submenu-arrow-icon`]:{color:Q,backgroundColor:xe,cursor:"not-allowed"}},[`${w}-submenu-selected ${c}-menu-submenu-title`]:{color:A.colorPrimary}})}},[(0,Y.oN)(A,"slide-up"),(0,Y.oN)(A,"slide-down"),(0,ge.Fm)(A,"move-up"),(0,ge.Fm)(A,"move-down"),(0,Ie._y)(A,"zoom-big")]]};var O=(0,se.Z)("Dropdown",(A,c)=>{let{rootPrefixCls:w}=c;const{marginXXS:E,sizePopupArrow:V,controlHeight:te,fontSize:R,lineHeight:k,paddingXXS:U,componentCls:ae,borderRadiusLG:x}=A,z=(te-R*k)/2,{dropdownArrowOffset:Q}=(0,ne.fS)({contentRadius:x}),q=(0,ye.TS)(A,{menuCls:`${ae}-menu`,rootPrefixCls:w,dropdownArrowDistance:V/2+E,dropdownArrowOffset:Q,dropdownPaddingVertical:z,dropdownEdgeChildPadding:U});return[P(q),a(q)]},A=>({zIndexPopup:A.zIndexPopupBase+50}))},78241:function(Qt,it,y){"use strict";y.d(it,{default:function(){return Et}});var v=y(19127),Y=y(92310),ge=y.n(Y),Ie=y(77900),ne=y(59301),se=y(62892),ye=y(32441);function ve(Re){const[st,ct]=ne.useState(Re);return ne.useEffect(()=>{const gt=setTimeout(()=>{ct(Re)},Re.length?0:10);return()=>{clearTimeout(gt)}},[Re]),st}var a=y(17313),P=y(29878),O=y(8378),A=y(37613),c=y(83116),E=Re=>{const{componentCls:st}=Re,ct=`${st}-show-help`,gt=`${st}-show-help-item`;return{[ct]:{transition:`opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gt]:{overflow:"hidden",transition:`height ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
transform ${Re.motionDurationSlow} ${Re.motionEaseInOut} !important`,[`&${gt}-appear, &${gt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${gt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const V=Re=>({legend:{display:"block",width:"100%",marginBottom:Re.marginLG,padding:0,color:Re.colorTextDescription,fontSize:Re.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`},label:{fontSize:Re.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Re.controlOutlineWidth}px ${Re.controlOutline}`},output:{display:"block",paddingTop:15,color:Re.colorText,fontSize:Re.fontSize,lineHeight:Re.lineHeight}}),te=(Re,st)=>{const{formItemCls:ct}=Re;return{[ct]:{[`${ct}-label > label`]:{height:st},[`${ct}-control-input`]:{minHeight:st}}}},R=Re=>{const{componentCls:st}=Re;return{[Re.componentCls]:Object.assign(Object.assign(Object.assign({},(0,a.Wf)(Re)),V(Re)),{[`${st}-text`]:{display:"inline-block",paddingInlineEnd:Re.paddingSM},"&-small":Object.assign({},te(Re,Re.controlHeightSM)),"&-large":Object.assign({},te(Re,Re.controlHeightLG))})}},k=Re=>{const{formItemCls:st,iconCls:ct,componentCls:gt,rootPrefixCls:Je,labelRequiredMarkColor:Ft,labelColor:$t,labelFontSize:Wt,labelHeight:gr,labelColonMarginInlineStart:vr,labelColonMarginInlineEnd:er,itemMarginBottom:yr}=Re;return{[st]:Object.assign(Object.assign({},(0,a.Wf)(Re)),{marginBottom:yr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Je}-row`]:{display:"none"},"&-has-warning":{[`${st}-split`]:{color:Re.colorError}},"&-has-error":{[`${st}-split`]:{color:Re.colorWarning}},[`${st}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Re.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:gr,color:$t,fontSize:Wt,[`> ${ct}`]:{fontSize:Re.fontSize,verticalAlign:"top"},[`&${st}-required:not(${st}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Re.marginXXS,color:Ft,fontSize:Re.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${gt}-hide-required-mark &`]:{display:"none"}},[`${st}-optional`]:{display:"inline-block",marginInlineStart:Re.marginXXS,color:Re.colorTextDescription,[`${gt}-hide-required-mark &`]:{display:"none"}},[`${st}-tooltip`]:{color:Re.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Re.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:vr,marginInlineEnd:er},[`&${st}-no-colon::after`]:{content:'"\\a0"'}}},[`${st}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Je}-col-'"]):not([class*="' ${Je}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Re.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[st]:{"&-explain, &-extra":{clear:"both",color:Re.colorTextDescription,fontSize:Re.fontSize,lineHeight:Re.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Re.controlHeightSM,transition:`color ${Re.motionDurationMid} ${Re.motionEaseOut}`},"&-explain":{"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning}}},[`&-with-help ${st}-explain`]:{height:"auto",opacity:1},[`${st}-feedback-icon`]:{fontSize:Re.fontSize,textAlign:"center",visibility:"visible",animationName:P.kr,animationDuration:Re.motionDurationMid,animationTimingFunction:Re.motionEaseOutBack,pointerEvents:"none","&-success":{color:Re.colorSuccess},"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning},"&-validating":{color:Re.colorPrimary}}})}},U=Re=>{const{componentCls:st,formItemCls:ct}=Re;return{[`${st}-horizontal`]:{[`${ct}-label`]:{flexGrow:0},[`${ct}-control`]:{flex:"1 1 0",minWidth:0},[`${ct}-label[class$='-24'], ${ct}-label[class*='-24 ']`]:{[`& + ${ct}-control`]:{minWidth:"unset"}}}}},ae=Re=>{const{componentCls:st,formItemCls:ct}=Re;return{[`${st}-inline`]:{display:"flex",flexWrap:"wrap",[ct]:{flex:"none",marginInlineEnd:Re.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ct}-label,
|
|
|
> ${ct}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ct}-label`]:{flex:"none"},[`${st}-text`]:{display:"inline-block"},[`${ct}-has-feedback`]:{display:"inline-block"}}}}},x=Re=>({padding:Re.verticalLabelPadding,margin:Re.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),z=Re=>{const{componentCls:st,formItemCls:ct,rootPrefixCls:gt}=Re;return{[`${ct} ${ct}-label`]:x(Re),[st]:{[ct]:{flexWrap:"wrap",[`${ct}-label, ${ct}-control`]:{[`&:not([class*=" ${gt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Q=Re=>{const{componentCls:st,formItemCls:ct,rootPrefixCls:gt}=Re;return{[`${st}-vertical`]:{[ct]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${st}-item-control`]:{width:"100%"}}},[`${st}-vertical ${ct}-label,
|
|
|
.${gt}-col-24${ct}-label,
|
|
|
.${gt}-col-xl-24${ct}-label`]:x(Re),[`@media (max-width: ${Re.screenXSMax}px)`]:[z(Re),{[st]:{[`.${gt}-col-xs-24${ct}-label`]:x(Re)}}],[`@media (max-width: ${Re.screenSMMax}px)`]:{[st]:{[`.${gt}-col-sm-24${ct}-label`]:x(Re)}},[`@media (max-width: ${Re.screenMDMax}px)`]:{[st]:{[`.${gt}-col-md-24${ct}-label`]:x(Re)}},[`@media (max-width: ${Re.screenLGMax}px)`]:{[st]:{[`.${gt}-col-lg-24${ct}-label`]:x(Re)}}}},q=(Re,st)=>(0,A.TS)(Re,{formItemCls:`${Re.componentCls}-item`,rootPrefixCls:st});var ce=(0,c.Z)("Form",(Re,st)=>{let{rootPrefixCls:ct}=st;const gt=q(Re,ct);return[R(gt),k(gt),E(gt),U(gt),ae(gt),Q(gt),(0,O.Z)(gt),P.kr]},Re=>({labelRequiredMarkColor:Re.colorError,labelColor:Re.colorTextHeading,labelFontSize:Re.fontSize,labelHeight:Re.controlHeight,labelColonMarginInlineStart:Re.marginXXS/2,labelColonMarginInlineEnd:Re.marginXS,itemMarginBottom:Re.marginLG,verticalLabelPadding:`0 0 ${Re.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const xe=[];function we(Re,st,ct){let gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Re=="string"?Re:`${st}-${gt}`,error:Re,errorStatus:ct}}var H=Re=>{let{help:st,helpStatus:ct,errors:gt=xe,warnings:Je=xe,className:Ft,fieldId:$t,onVisibleChanged:Wt}=Re;const{prefixCls:gr}=ne.useContext(ye.Rk),vr=`${gr}-item-explain`,[,er]=ce(gr),yr=(0,ne.useMemo)(()=>(0,se.Z)(gr),[gr]),_r=ve(gt),Jt=ve(Je),Kt=ne.useMemo(()=>st!=null?[we(st,"help",ct)]:[].concat((0,v.Z)(_r.map((vt,at)=>we(vt,"error","error",at))),(0,v.Z)(Jt.map((vt,at)=>we(vt,"warning","warning",at)))),[st,ct,_r,Jt]),$e={};return $t&&($e.id=`${$t}_help`),ne.createElement(Ie.default,{motionDeadline:yr.motionDeadline,motionName:`${gr}-show-help`,visible:!!Kt.length,onVisibleChanged:Wt},vt=>{const{className:at,style:yt}=vt;return ne.createElement("div",Object.assign({},$e,{className:ge()(vr,at,Ft,er),style:yt,role:"alert"}),ne.createElement(Ie.CSSMotionList,Object.assign({keys:Kt},(0,se.Z)(gr),{motionName:`${gr}-show-help-item`,component:!1}),Nt=>{const{key:Ot,error:ut,errorStatus:Se,className:We,style:rt}=Nt;return ne.createElement("div",{key:Ot,className:ge()(We,{[`${vr}-${Se}`]:Se}),style:rt},ut)}))})},L=y(95013),Z=y(36355),W=y(1684),le=y(52946),J=y(19716),g=y(16722);const S=["parentNode"],K="form_item";function G(Re){return Re===void 0||Re===!1?[]:Array.isArray(Re)?Re:[Re]}function Pe(Re,st){if(!Re.length)return;const ct=Re.join("_");return st?`${st}_${ct}`:S.includes(ct)?`${K}_${ct}`:ct}function Ne(Re,st,ct,gt,Je,Ft){let $t=gt;return Ft!==void 0?$t=Ft:ct.validating?$t="validating":Re.length?$t="error":st.length?$t="warning":(ct.touched||Je&&ct.validated)&&($t="success"),$t}function Ue(Re){return G(Re).join("_")}function Ve(Re){const[st]=(0,L.useForm)(),ct=ne.useRef({}),gt=ne.useMemo(()=>Re!=null?Re:Object.assign(Object.assign({},st),{__INTERNAL__:{itemRef:Je=>Ft=>{const $t=Ue(Je);Ft?ct.current[$t]=Ft:delete ct.current[$t]}},scrollToField:function(Je){let Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $t=G(Je),Wt=Pe($t,gt.__INTERNAL__.name),gr=Wt?document.getElementById(Wt):null;gr&&(0,g.Z)(gr,Object.assign({scrollMode:"if-needed",block:"nearest"},Ft))},getFieldInstance:Je=>{const Ft=Ue(Je);return ct.current[Ft]}}),[Re,st]);return[gt]}var qe=y(28726),tt=function(Re,st){var ct={};for(var gt in Re)Object.prototype.hasOwnProperty.call(Re,gt)&&st.indexOf(gt)<0&&(ct[gt]=Re[gt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,gt=Object.getOwnPropertySymbols(Re);Je<gt.length;Je++)st.indexOf(gt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Re,gt[Je])&&(ct[gt[Je]]=Re[gt[Je]]);return ct};const lt=(Re,st)=>{const ct=ne.useContext(W.Z),{getPrefixCls:gt,direction:Je,form:Ft}=ne.useContext(Z.E_),{prefixCls:$t,className:Wt,rootClassName:gr,size:vr,disabled:er=ct,form:yr,colon:_r,labelAlign:Jt,labelWrap:Kt,labelCol:$e,wrapperCol:vt,hideRequiredMark:at,layout:yt="horizontal",scrollToFirstError:Nt,requiredMark:Ot,onFinishFailed:ut,name:Se,style:We,feedbackIcons:rt}=Re,bt=tt(Re,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),mt=(0,J.Z)(vr),Ct=ne.useContext(qe.Z),Tt=(0,ne.useMemo)(()=>Ot!==void 0?Ot:Ft&&Ft.requiredMark!==void 0?Ft.requiredMark:!at,[at,Ot,Ft]),ar=_r!=null?_r:Ft==null?void 0:Ft.colon,cr=gt("form",$t),[ur,Er]=ce(cr),Fr=ge()(cr,`${cr}-${yt}`,{[`${cr}-hide-required-mark`]:Tt===!1,[`${cr}-rtl`]:Je==="rtl",[`${cr}-${mt}`]:mt},Er,Ft==null?void 0:Ft.className,Wt,gr),[Lr]=Ve(yr),{__INTERNAL__:fr}=Lr;fr.name=Se;const ir=(0,ne.useMemo)(()=>({name:Se,labelAlign:Jt,labelCol:$e,labelWrap:Kt,wrapperCol:vt,vertical:yt==="vertical",colon:ar,requiredMark:Tt,itemRef:fr.itemRef,form:Lr,feedbackIcons:rt}),[Se,Jt,$e,vt,yt,ar,Tt,Lr,rt]);ne.useImperativeHandle(st,()=>Lr);const $r=(zr,Tr)=>{if(zr){let Rr={block:"nearest"};typeof zr=="object"&&(Rr=zr),Lr.scrollToField(Tr,Rr)}},Ir=zr=>{if(ut==null||ut(zr),zr.errorFields.length){const Tr=zr.errorFields[0].name;if(Nt!==void 0){$r(Nt,Tr);return}Ft&&Ft.scrollToFirstError!==void 0&&$r(Ft.scrollToFirstError,Tr)}};return ur(ne.createElement(W.n,{disabled:er},ne.createElement(le.q,{size:mt},ne.createElement(ye.RV,Object.assign({},{validateMessages:Ct}),ne.createElement(ye.q3.Provider,{value:ir},ne.createElement(L.default,Object.assign({id:Se},bt,{name:Se,onFinishFailed:Ir,form:Lr,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),We),className:Fr})))))))};var Yt=ne.forwardRef(lt),sr=y(41799),Bt=y(8654),Ht=y(92343),Xt=y(11592);function de(Re){if(typeof Re=="function")return Re;const st=(0,Xt.Z)(Re);return st.length<=1?st[0]:st}const Ee=()=>{const{status:Re,errors:st=[],warnings:ct=[]}=(0,ne.useContext)(ye.aM);return{status:Re,errors:st,warnings:ct}};Ee.Context=ye.aM;var F=Ee,fe=y(16089);function Te(Re){const[st,ct]=ne.useState(Re),gt=(0,ne.useRef)(null),Je=(0,ne.useRef)([]),Ft=(0,ne.useRef)(!1);ne.useEffect(()=>(Ft.current=!1,()=>{Ft.current=!0,fe.Z.cancel(gt.current),gt.current=null}),[]);function $t(Wt){Ft.current||(gt.current===null&&(Je.current=[],gt.current=(0,fe.Z)(()=>{gt.current=null,ct(gr=>{let vr=gr;return Je.current.forEach(er=>{vr=er(vr)}),vr})})),Je.current.push(Wt))}return[st,$t]}function I(){const{itemRef:Re}=ne.useContext(ye.q3),st=ne.useRef({});function ct(gt,Je){const Ft=Je&&typeof Je=="object"&&Je.ref,$t=gt.join("_");return(st.current.name!==$t||st.current.originRef!==Ft)&&(st.current.name=$t,st.current.originRef=Ft,st.current.ref=(0,Bt.sQ)(Re(gt),Ft)),st.current.ref}return ct}var ee=y(29194),he=y(34280),be=y(2738),Oe=y(27382),Fe=y(37028);const Qe=Re=>{const{formItemCls:st}=Re;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${st}-control`]:{display:"flex"}}}};var ht=(0,c.b)(["Form","item-item"],(Re,st)=>{let{rootPrefixCls:ct}=st;const gt=q(Re,ct);return[Qe(gt)]}),Xe=Re=>{const{prefixCls:st,status:ct,wrapperCol:gt,children:Je,errors:Ft,warnings:$t,_internalItemRender:Wt,extra:gr,help:vr,fieldId:er,marginBottom:yr,onErrorVisibleChanged:_r}=Re,Jt=`${st}-item`,Kt=ne.useContext(ye.q3),$e=gt||Kt.wrapperCol||{},vt=ge()(`${Jt}-control`,$e.className),at=ne.useMemo(()=>Object.assign({},Kt),[Kt]);delete at.labelCol,delete at.wrapperCol;const yt=ne.createElement("div",{className:`${Jt}-control-input`},ne.createElement("div",{className:`${Jt}-control-input-content`},Je)),Nt=ne.useMemo(()=>({prefixCls:st,status:ct}),[st,ct]),Ot=yr!==null||Ft.length||$t.length?ne.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ne.createElement(ye.Rk.Provider,{value:Nt},ne.createElement(H,{fieldId:er,errors:Ft,warnings:$t,help:vr,helpStatus:ct,className:`${Jt}-explain-connected`,onVisibleChanged:_r})),!!yr&&ne.createElement("div",{style:{width:0,height:yr}})):null,ut={};er&&(ut.id=`${er}_extra`);const Se=gr?ne.createElement("div",Object.assign({},ut,{className:`${Jt}-extra`}),gr):null,We=Wt&&Wt.mark==="pro_table_render"&&Wt.render?Wt.render(Re,{input:yt,errorList:Ot,extra:Se}):ne.createElement(ne.Fragment,null,yt,Ot,Se);return ne.createElement(ye.q3.Provider,{value:at},ne.createElement(Fe.Z,Object.assign({},$e,{className:vt}),We),ne.createElement(ht,{prefixCls:st}))},Dt=y(61485),kt=y(31724),Le=y(9763),Ke=y(6848),nt=function(Re,st){var ct={};for(var gt in Re)Object.prototype.hasOwnProperty.call(Re,gt)&&st.indexOf(gt)<0&&(ct[gt]=Re[gt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,gt=Object.getOwnPropertySymbols(Re);Je<gt.length;Je++)st.indexOf(gt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Re,gt[Je])&&(ct[gt[Je]]=Re[gt[Je]]);return ct};function ft(Re){return Re?typeof Re=="object"&&!ne.isValidElement(Re)?Re:{title:Re}:null}var It=Re=>{let{prefixCls:st,label:ct,htmlFor:gt,labelCol:Je,labelAlign:Ft,colon:$t,required:Wt,requiredMark:gr,tooltip:vr}=Re;var er;const[yr]=(0,Le.Z)("Form"),{vertical:_r,labelAlign:Jt,labelCol:Kt,labelWrap:$e,colon:vt}=ne.useContext(ye.q3);if(!ct)return null;const at=Je||Kt||{},yt=Ft||Jt,Nt=`${st}-item-label`,Ot=ge()(Nt,yt==="left"&&`${Nt}-left`,at.className,{[`${Nt}-wrap`]:!!$e});let ut=ct;const Se=$t===!0||vt!==!1&&$t!==!1;Se&&!_r&&typeof ct=="string"&&ct.trim()!==""&&(ut=ct.replace(/[:|:]\s*$/,""));const rt=ft(vr);if(rt){const{icon:Tt=ne.createElement(Dt.Z,null)}=rt,ar=nt(rt,["icon"]),cr=ne.createElement(Ke.Z,Object.assign({},ar),ne.cloneElement(Tt,{className:`${st}-item-tooltip`,title:""}));ut=ne.createElement(ne.Fragment,null,ut,cr)}const bt=gr==="optional",mt=typeof gr=="function";mt?ut=gr(ut,{required:!!Wt}):bt&&!Wt&&(ut=ne.createElement(ne.Fragment,null,ut,ne.createElement("span",{className:`${st}-item-optional`,title:""},(yr==null?void 0:yr.optional)||((er=kt.Z.Form)===null||er===void 0?void 0:er.optional))));const Ct=ge()({[`${st}-item-required`]:Wt,[`${st}-item-required-mark-optional`]:bt||mt,[`${st}-item-no-colon`]:!Se});return ne.createElement(Fe.Z,Object.assign({},at,{className:Ot}),ne.createElement("label",{htmlFor:gt,className:Ct,title:typeof ct=="string"?ct:""},ut))},_=y(29679),C=y(19248),et=y(96512),$=y(58617);const me={success:_.Z,warning:et.Z,error:C.Z,validating:$.Z};function tr(Re){let{children:st,errors:ct,warnings:gt,hasFeedback:Je,validateStatus:Ft,prefixCls:$t,meta:Wt,noStyle:gr}=Re;const vr=`${$t}-item`,{feedbackIcons:er}=ne.useContext(ye.q3),yr=Ne(ct,gt,Wt,null,!!Je,Ft),{isFormItemInput:_r,status:Jt}=ne.useContext(ye.aM),Kt=ne.useMemo(()=>{var $e;let vt;if(Je){const Nt=Je!==!0&&Je.icons||er,Ot=yr&&(($e=Nt==null?void 0:Nt({status:yr,errors:ct,warnings:gt}))===null||$e===void 0?void 0:$e[yr]),ut=yr&&me[yr];vt=Ot!==!1&&ut?ne.createElement("span",{className:ge()(`${vr}-feedback-icon`,`${vr}-feedback-icon-${yr}`)},Ot||ne.createElement(ut,null)):null}let at=!0,yt=yr||"";return gr&&(at=_r,yt=(yr!=null?yr:Jt)||""),{status:yt,errors:ct,warnings:gt,hasFeedback:!!Je,feedbackIcon:vt,isFormItemInput:at}},[yr,Je,gr,_r,Jt]);return ne.createElement(ye.aM.Provider,{value:Kt},st)}var ke=function(Re,st){var ct={};for(var gt in Re)Object.prototype.hasOwnProperty.call(Re,gt)&&st.indexOf(gt)<0&&(ct[gt]=Re[gt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,gt=Object.getOwnPropertySymbols(Re);Je<gt.length;Je++)st.indexOf(gt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Re,gt[Je])&&(ct[gt[Je]]=Re[gt[Je]]);return ct};function He(Re){const{prefixCls:st,className:ct,rootClassName:gt,style:Je,help:Ft,errors:$t,warnings:Wt,validateStatus:gr,meta:vr,hasFeedback:er,hidden:yr,children:_r,fieldId:Jt,required:Kt,isRequired:$e,onSubItemMetaChange:vt}=Re,at=ke(Re,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),yt=`${st}-item`,{requiredMark:Nt}=ne.useContext(ye.q3),Ot=ne.useRef(null),ut=ve($t),Se=ve(Wt),We=Ft!=null,rt=!!(We||$t.length||Wt.length),bt=!!Ot.current&&(0,ee.Z)(Ot.current),[mt,Ct]=ne.useState(null);(0,he.Z)(()=>{if(rt&&Ot.current){const Er=getComputedStyle(Ot.current);Ct(parseInt(Er.marginBottom,10))}},[rt,bt]);const Tt=Er=>{Er||Ct(null)},cr=function(){let Er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Fr=Er?ut:vr.errors,Lr=Er?Se:vr.warnings;return Ne(Fr,Lr,vr,"",!!er,gr)}(),ur=ge()(yt,ct,gt,{[`${yt}-with-help`]:We||ut.length||Se.length,[`${yt}-has-feedback`]:cr&&er,[`${yt}-has-success`]:cr==="success",[`${yt}-has-warning`]:cr==="warning",[`${yt}-has-error`]:cr==="error",[`${yt}-is-validating`]:cr==="validating",[`${yt}-hidden`]:yr});return ne.createElement("div",{className:ur,style:Je,ref:Ot},ne.createElement(Oe.Z,Object.assign({className:`${yt}-row`},(0,be.Z)(at,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ne.createElement(It,Object.assign({htmlFor:Jt},Re,{requiredMark:Nt,required:Kt!=null?Kt:$e,prefixCls:st})),ne.createElement(Xe,Object.assign({},Re,vr,{errors:ut,warnings:Se,prefixCls:st,status:cr,help:Ft,marginBottom:mt,onErrorVisibleChanged:Tt}),ne.createElement(ye.qI.Provider,{value:vt},ne.createElement(tr,{prefixCls:st,meta:vr,errors:vr.errors,warnings:vr.warnings,hasFeedback:er,validateStatus:cr},_r)))),!!mt&&ne.createElement("div",{className:`${yt}-margin-offset`,style:{marginBottom:-mt}}))}const Ze="__SPLIT__",X=null,oe=ne.memo(Re=>{let{children:st}=Re;return st},(Re,st)=>Re.value===st.value&&Re.update===st.update&&Re.childProps.length===st.childProps.length&&Re.childProps.every((ct,gt)=>ct===st.childProps[gt]));function De(Re){return Re!=null}function ze(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function j(Re){const{name:st,noStyle:ct,className:gt,dependencies:Je,prefixCls:Ft,shouldUpdate:$t,rules:Wt,children:gr,required:vr,label:er,messageVariables:yr,trigger:_r="onChange",validateTrigger:Jt,hidden:Kt,help:$e}=Re,{getPrefixCls:vt}=ne.useContext(Z.E_),{name:at}=ne.useContext(ye.q3),yt=de(gr),Nt=typeof yt=="function",Ot=ne.useContext(ye.qI),{validateTrigger:ut}=ne.useContext(L.FieldContext),Se=Jt!==void 0?Jt:ut,We=De(st),rt=vt("form",Ft),[bt,mt]=ce(rt),Ct=ne.useContext(L.ListContext),Tt=ne.useRef(),[ar,cr]=Te({}),[ur,Er]=(0,sr.Z)(()=>ze()),Fr=Tr=>{const Rr=Ct==null?void 0:Ct.getKey(Tr.name);if(Er(Tr.destroy?ze():Tr,!0),ct&&$e!==!1&&Ot){let Mr=Tr.name;if(Tr.destroy)Mr=Tt.current||Mr;else if(Rr!==void 0){const[jr,Gr]=Rr;Mr=[jr].concat((0,v.Z)(Gr)),Tt.current=Mr}Ot(Tr,Mr)}},Lr=(Tr,Rr)=>{cr(Mr=>{const jr=Object.assign({},Mr),ln=[].concat((0,v.Z)(Tr.name.slice(0,-1)),(0,v.Z)(Rr)).join(Ze);return Tr.destroy?delete jr[ln]:jr[ln]=Tr,jr})},[fr,ir]=ne.useMemo(()=>{const Tr=(0,v.Z)(ur.errors),Rr=(0,v.Z)(ur.warnings);return Object.values(ar).forEach(Mr=>{Tr.push.apply(Tr,(0,v.Z)(Mr.errors||[])),Rr.push.apply(Rr,(0,v.Z)(Mr.warnings||[]))}),[Tr,Rr]},[ar,ur.errors,ur.warnings]),$r=I();function Ir(Tr,Rr,Mr){return ct&&!Kt?ne.createElement(tr,{prefixCls:rt,hasFeedback:Re.hasFeedback,validateStatus:Re.validateStatus,meta:ur,errors:fr,warnings:ir,noStyle:!0},Tr):ne.createElement(He,Object.assign({key:"row"},Re,{className:ge()(gt,mt),prefixCls:rt,fieldId:Rr,isRequired:Mr,errors:fr,warnings:ir,meta:ur,onSubItemMetaChange:Lr}),Tr)}if(!We&&!Nt&&!Je)return bt(Ir(yt));let zr={};return typeof er=="string"?zr.label=er:st&&(zr.label=String(st)),yr&&(zr=Object.assign(Object.assign({},zr),yr)),bt(ne.createElement(L.Field,Object.assign({},Re,{messageVariables:zr,trigger:_r,validateTrigger:Se,onMetaChange:Fr}),(Tr,Rr,Mr)=>{const jr=G(st).length&&Rr?Rr.name:[],Gr=Pe(jr,at),ln=vr!==void 0?vr:!!(Wt&&Wt.some(Ye=>{if(Ye&&typeof Ye=="object"&&Ye.required&&!Ye.warningOnly)return!0;if(typeof Ye=="function"){const wr=Ye(Mr);return wr&&wr.required&&!wr.warningOnly}return!1})),Hr=Object.assign({},Tr);let br=null;if(Array.isArray(yt)&&We)br=yt;else if(!(Nt&&(!($t||Je)||We))){if(!(Je&&!Nt&&!We))if((0,Ht.l$)(yt)){const Ye=Object.assign(Object.assign({},yt.props),Hr);if(Ye.id||(Ye.id=Gr),$e||fr.length>0||ir.length>0||Re.extra){const Qr=[];($e||fr.length>0)&&Qr.push(`${Gr}_help`),Re.extra&&Qr.push(`${Gr}_extra`),Ye["aria-describedby"]=Qr.join(" ")}fr.length>0&&(Ye["aria-invalid"]="true"),ln&&(Ye["aria-required"]="true"),(0,Bt.Yr)(yt)&&(Ye.ref=$r(jr,yt)),new Set([].concat((0,v.Z)(G(_r)),(0,v.Z)(G(Se)))).forEach(Qr=>{Ye[Qr]=function(){for(var cn,En,Ar,Cr,Xr,Jr=arguments.length,Zr=new Array(Jr),un=0;un<Jr;un++)Zr[un]=arguments[un];(Ar=Hr[Qr])===null||Ar===void 0||(cn=Ar).call.apply(cn,[Hr].concat(Zr)),(Xr=(Cr=yt.props)[Qr])===null||Xr===void 0||(En=Xr).call.apply(En,[Cr].concat(Zr))}});const Wr=[Ye["aria-required"],Ye["aria-invalid"],Ye["aria-describedby"]];br=ne.createElement(oe,{value:Hr[Re.valuePropName||"value"],update:yt,childProps:Wr},(0,Ht.Tm)(yt,Ye))}else Nt&&($t||Je)&&!We?br=yt(Mr):br=yt}return Ir(br,Gr,ln)}))}const Pt=j;Pt.useStatus=F;var Ae=Pt,Zt=function(Re,st){var ct={};for(var gt in Re)Object.prototype.hasOwnProperty.call(Re,gt)&&st.indexOf(gt)<0&&(ct[gt]=Re[gt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,gt=Object.getOwnPropertySymbols(Re);Je<gt.length;Je++)st.indexOf(gt[Je])<0&&Object.prototype.propertyIsEnumerable.call(Re,gt[Je])&&(ct[gt[Je]]=Re[gt[Je]]);return ct},wt=Re=>{var{prefixCls:st,children:ct}=Re,gt=Zt(Re,["prefixCls","children"]);const{getPrefixCls:Je}=ne.useContext(Z.E_),Ft=Je("form",st),$t=ne.useMemo(()=>({prefixCls:Ft,status:"error"}),[Ft]);return ne.createElement(L.List,Object.assign({},gt),(Wt,gr,vr)=>ne.createElement(ye.Rk.Provider,{value:$t},ct(Wt.map(er=>Object.assign(Object.assign({},er),{fieldKey:er.key})),gr,{errors:vr.errors,warnings:vr.warnings})))};function Mt(){const{form:Re}=(0,ne.useContext)(ye.q3);return Re}const pt=Yt;pt.Item=Ae,pt.List=wt,pt.ErrorList=H,pt.useForm=Ve,pt.useFormInstance=Mt,pt.useWatch=L.useWatch,pt.Provider=ye.RV,pt.create=()=>{};var Et=pt},9432:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return k},n:function(){return te}});var v=y(19248),Y=y(92310),ge=y.n(Y),Ie=y(93681),ne=y(8654),se=y(59301),ye=y(19080),ve=y(36355),a=y(1684),P=y(19716),O=y(32441),A=y(33234),c=y(59412),w=y(9937);function E(U){return!!(U.prefix||U.suffix||U.allowClear)}var V=function(U,ae){var x={};for(var z in U)Object.prototype.hasOwnProperty.call(U,z)&&ae.indexOf(z)<0&&(x[z]=U[z]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,z=Object.getOwnPropertySymbols(U);Q<z.length;Q++)ae.indexOf(z[Q])<0&&Object.prototype.propertyIsEnumerable.call(U,z[Q])&&(x[z[Q]]=U[z[Q]]);return x};function te(U,ae){if(!U)return;U.focus(ae);const{cursor:x}=ae||{};if(x){const z=U.value.length;switch(x){case"start":U.setSelectionRange(0,0);break;case"end":U.setSelectionRange(z,z);break;default:U.setSelectionRange(0,z);break}}}var k=(0,se.forwardRef)((U,ae)=>{var x;const{prefixCls:z,bordered:Q=!0,status:q,size:ce,disabled:xe,onBlur:we,onFocus:Be,suffix:H,allowClear:L,addonAfter:Z,addonBefore:W,className:le,style:J,styles:g,rootClassName:S,onChange:K,classNames:G}=U,Pe=V(U,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ne,direction:Ue,input:Ve}=se.useContext(ve.E_),qe=Ne("input",z),tt=(0,se.useRef)(null),[lt,Ut]=(0,w.ZP)(qe),{compactSize:Yt,compactItemClassnames:sr}=(0,A.ri)(qe,Ue),Bt=(0,P.Z)(ht=>{var ot;return(ot=ce!=null?ce:Yt)!==null&&ot!==void 0?ot:ht}),Ht=se.useContext(a.Z),Xt=xe!=null?xe:Ht,{status:de,hasFeedback:Ee,feedbackIcon:F}=(0,se.useContext)(O.aM),fe=(0,ye.F)(de,q),Te=E(U)||!!Ee,I=(0,se.useRef)(Te);(0,se.useEffect)(()=>{var ht;Te&&I.current,I.current=Te},[Te]);const ee=(0,c.Z)(tt,!0),he=ht=>{ee(),we==null||we(ht)},be=ht=>{ee(),Be==null||Be(ht)},Oe=ht=>{ee(),K==null||K(ht)},Fe=(Ee||H)&&se.createElement(se.Fragment,null,H,Ee&&F);let Qe;return typeof L=="object"&&(L!=null&&L.clearIcon)?Qe=L:L&&(Qe={clearIcon:se.createElement(v.Z,null)}),lt(se.createElement(Ie.default,Object.assign({ref:(0,ne.sQ)(ae,tt),prefixCls:qe,autoComplete:Ve==null?void 0:Ve.autoComplete},Pe,{disabled:Xt,onBlur:he,onFocus:be,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),J),styles:Object.assign(Object.assign({},Ve==null?void 0:Ve.styles),g),suffix:Fe,allowClear:Qe,className:ge()(le,S,sr,Ve==null?void 0:Ve.className),onChange:Oe,addonAfter:Z&&se.createElement(A.BR,null,se.createElement(O.Ux,{override:!0,status:!0},Z)),addonBefore:W&&se.createElement(A.BR,null,se.createElement(O.Ux,{override:!0,status:!0},W)),classNames:Object.assign(Object.assign(Object.assign({},G),Ve==null?void 0:Ve.classNames),{input:ge()({[`${qe}-sm`]:Bt==="small",[`${qe}-lg`]:Bt==="large",[`${qe}-rtl`]:Ue==="rtl",[`${qe}-borderless`]:!Q},!Te&&(0,ye.Z)(qe,fe),G==null?void 0:G.input,(x=Ve==null?void 0:Ve.classNames)===null||x===void 0?void 0:x.input,Ut)}),classes:{affixWrapper:ge()({[`${qe}-affix-wrapper-sm`]:Bt==="small",[`${qe}-affix-wrapper-lg`]:Bt==="large",[`${qe}-affix-wrapper-rtl`]:Ue==="rtl",[`${qe}-affix-wrapper-borderless`]:!Q},(0,ye.Z)(`${qe}-affix-wrapper`,fe,Ee),Ut),wrapper:ge()({[`${qe}-group-rtl`]:Ue==="rtl"},Ut),group:ge()({[`${qe}-group-wrapper-sm`]:Bt==="small",[`${qe}-group-wrapper-lg`]:Bt==="large",[`${qe}-group-wrapper-rtl`]:Ue==="rtl",[`${qe}-group-wrapper-disabled`]:Xt},(0,ye.Z)(`${qe}-group-wrapper`,fe,Ee),Ut)}})))})},1643:function(Qt,it,y){"use strict";var v=y(19248),Y=y(92310),ge=y.n(Y),Ie=y(9296),ne=y(59301),se=y(19080),ye=y(36355),ve=y(1684),a=y(19716),P=y(32441),O=y(9432),A=y(9937),c=function(E,V){var te={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&V.indexOf(R)<0&&(te[R]=E[R]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,R=Object.getOwnPropertySymbols(E);k<R.length;k++)V.indexOf(R[k])<0&&Object.prototype.propertyIsEnumerable.call(E,R[k])&&(te[R[k]]=E[R[k]]);return te};const w=(0,ne.forwardRef)((E,V)=>{const{prefixCls:te,bordered:R=!0,size:k,disabled:U,status:ae,allowClear:x,showCount:z,classNames:Q,rootClassName:q,className:ce}=E,xe=c(E,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:we,direction:Be}=ne.useContext(ye.E_),H=(0,a.Z)(k),L=ne.useContext(ve.Z),Z=U!=null?U:L,{status:W,hasFeedback:le,feedbackIcon:J}=ne.useContext(P.aM),g=(0,se.F)(W,ae),S=ne.useRef(null);ne.useImperativeHandle(V,()=>{var Ue;return{resizableTextArea:(Ue=S.current)===null||Ue===void 0?void 0:Ue.resizableTextArea,focus:Ve=>{var qe,tt;(0,O.n)((tt=(qe=S.current)===null||qe===void 0?void 0:qe.resizableTextArea)===null||tt===void 0?void 0:tt.textArea,Ve)},blur:()=>{var Ve;return(Ve=S.current)===null||Ve===void 0?void 0:Ve.blur()}}});const K=we("input",te);let G;typeof x=="object"&&(x!=null&&x.clearIcon)?G=x:x&&(G={clearIcon:ne.createElement(v.Z,null)});const[Pe,Ne]=(0,A.ZP)(K);return Pe(ne.createElement(Ie.default,Object.assign({},xe,{disabled:Z,allowClear:G,className:ge()(ce,q),classes:{affixWrapper:ge()(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:Be==="rtl",[`${K}-affix-wrapper-borderless`]:!R,[`${K}-affix-wrapper-sm`]:H==="small",[`${K}-affix-wrapper-lg`]:H==="large",[`${K}-textarea-show-count`]:z},(0,se.Z)(`${K}-affix-wrapper`,g),Ne)},classNames:Object.assign(Object.assign({},Q),{textarea:ge()({[`${K}-borderless`]:!R,[`${K}-sm`]:H==="small",[`${K}-lg`]:H==="large"},(0,se.Z)(K,g),Ne,Q==null?void 0:Q.textarea)}),prefixCls:K,suffix:le&&ne.createElement("span",{className:`${K}-textarea-suffix`},J),showCount:z,ref:S})))});it.Z=w},59412:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Y}});var v=y(59301);function Y(ge,Ie){const ne=(0,v.useRef)([]),se=()=>{ne.current.push(setTimeout(()=>{var ye,ve,a,P;!((ye=ge.current)===null||ye===void 0)&&ye.input&&((ve=ge.current)===null||ve===void 0?void 0:ve.input.getAttribute("type"))==="password"&&(!((a=ge.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((P=ge.current)===null||P===void 0||P.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(Ie&&se(),()=>ne.current.forEach(ye=>{ye&&clearTimeout(ye)})),[]),se}},92832:function(Qt,it,y){"use strict";y.d(it,{default:function(){return H}});var v=y(92310),Y=y.n(v),ge=y(59301),Ie=y(36355),ne=y(32441),se=y(9937),ve=L=>{const{getPrefixCls:Z,direction:W}=(0,ge.useContext)(Ie.E_),{prefixCls:le,className:J}=L,g=Z("input-group",le),S=Z("input"),[K,G]=(0,se.ZP)(S),Pe=Y()(g,{[`${g}-lg`]:L.size==="large",[`${g}-sm`]:L.size==="small",[`${g}-compact`]:L.compact,[`${g}-rtl`]:W==="rtl"},G,J),Ne=(0,ge.useContext)(ne.aM),Ue=(0,ge.useMemo)(()=>Object.assign(Object.assign({},Ne),{isFormItemInput:!1}),[Ne]);return K(ge.createElement("span",{className:Pe,style:L.style,onMouseEnter:L.onMouseEnter,onMouseLeave:L.onMouseLeave,onFocus:L.onFocus,onBlur:L.onBlur},ge.createElement(ne.aM.Provider,{value:Ue},L.children)))},a=y(9432),P=y(73331),O=y(15277),A=y(2738),c=y(8654),w=y(59412),E=function(L,Z){var W={};for(var le in L)Object.prototype.hasOwnProperty.call(L,le)&&Z.indexOf(le)<0&&(W[le]=L[le]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,le=Object.getOwnPropertySymbols(L);J<le.length;J++)Z.indexOf(le[J])<0&&Object.prototype.propertyIsEnumerable.call(L,le[J])&&(W[le[J]]=L[le[J]]);return W};const V=L=>L?ge.createElement(O.Z,null):ge.createElement(P.Z,null),te={click:"onClick",hover:"onMouseOver"};var k=ge.forwardRef((L,Z)=>{const{visibilityToggle:W=!0}=L,le=typeof W=="object"&&W.visible!==void 0,[J,g]=(0,ge.useState)(()=>le?W.visible:!1),S=(0,ge.useRef)(null);ge.useEffect(()=>{le&&g(W.visible)},[le,W]);const K=(0,w.Z)(S),G=()=>{const{disabled:Xt}=L;Xt||(J&&K(),g(de=>{var Ee;const F=!de;return typeof W=="object"&&((Ee=W.onVisibleChange)===null||Ee===void 0||Ee.call(W,F)),F}))},Pe=Xt=>{const{action:de="click",iconRender:Ee=V}=L,F=te[de]||"",fe=Ee(J),Te={[F]:G,className:`${Xt}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return ge.cloneElement(ge.isValidElement(fe)?fe:ge.createElement("span",null,fe),Te)},{className:Ne,prefixCls:Ue,inputPrefixCls:Ve,size:qe}=L,tt=E(L,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:lt}=ge.useContext(Ie.E_),Ut=lt("input",Ve),Yt=lt("input-password",Ue),sr=W&&Pe(Yt),Bt=Y()(Yt,Ne,{[`${Yt}-${qe}`]:!!qe}),Ht=Object.assign(Object.assign({},(0,A.Z)(tt,["suffix","iconRender","visibilityToggle"])),{type:J?"text":"password",className:Bt,prefixCls:Ut,suffix:sr});return qe&&(Ht.size=qe),ge.createElement(a.Z,Object.assign({ref:(0,c.sQ)(Z,S)},Ht))}),U=y(47472),ae=y(92343),x=y(3113),z=y(19716),Q=y(33234),q=function(L,Z){var W={};for(var le in L)Object.prototype.hasOwnProperty.call(L,le)&&Z.indexOf(le)<0&&(W[le]=L[le]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,le=Object.getOwnPropertySymbols(L);J<le.length;J++)Z.indexOf(le[J])<0&&Object.prototype.propertyIsEnumerable.call(L,le[J])&&(W[le[J]]=L[le[J]]);return W},xe=ge.forwardRef((L,Z)=>{const{prefixCls:W,inputPrefixCls:le,className:J,size:g,suffix:S,enterButton:K=!1,addonAfter:G,loading:Pe,disabled:Ne,onSearch:Ue,onChange:Ve,onCompositionStart:qe,onCompositionEnd:tt}=L,lt=q(L,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ut,direction:Yt}=ge.useContext(Ie.E_),sr=ge.useRef(!1),Bt=Ut("input-search",W),Ht=Ut("input",le),{compactSize:Xt}=(0,Q.ri)(Bt,Yt),de=(0,z.Z)(Xe=>{var Dt;return(Dt=g!=null?g:Xt)!==null&&Dt!==void 0?Dt:Xe}),Ee=ge.useRef(null),F=Xe=>{Xe&&Xe.target&&Xe.type==="click"&&Ue&&Ue(Xe.target.value,Xe,{source:"clear"}),Ve&&Ve(Xe)},fe=Xe=>{var Dt;document.activeElement===((Dt=Ee.current)===null||Dt===void 0?void 0:Dt.input)&&Xe.preventDefault()},Te=Xe=>{var Dt,kt;Ue&&Ue((kt=(Dt=Ee.current)===null||Dt===void 0?void 0:Dt.input)===null||kt===void 0?void 0:kt.value,Xe,{source:"input"})},I=Xe=>{sr.current||Pe||Te(Xe)},ee=typeof K=="boolean"?ge.createElement(U.Z,null):null,he=`${Bt}-button`;let be;const Oe=K||{},Fe=Oe.type&&Oe.type.__ANT_BUTTON===!0;Fe||Oe.type==="button"?be=(0,ae.Tm)(Oe,Object.assign({onMouseDown:fe,onClick:Xe=>{var Dt,kt;(kt=(Dt=Oe==null?void 0:Oe.props)===null||Dt===void 0?void 0:Dt.onClick)===null||kt===void 0||kt.call(Dt,Xe),Te(Xe)},key:"enterButton"},Fe?{className:he,size:de}:{})):be=ge.createElement(x.ZP,{className:he,type:K?"primary":void 0,size:de,disabled:Ne,key:"enterButton",onMouseDown:fe,onClick:Te,loading:Pe,icon:ee},K),G&&(be=[be,(0,ae.Tm)(G,{key:"addonAfter"})]);const Qe=Y()(Bt,{[`${Bt}-rtl`]:Yt==="rtl",[`${Bt}-${de}`]:!!de,[`${Bt}-with-button`]:!!K},J),ht=Xe=>{sr.current=!0,qe==null||qe(Xe)},ot=Xe=>{sr.current=!1,tt==null||tt(Xe)};return ge.createElement(a.Z,Object.assign({ref:(0,c.sQ)(Ee,Z),onPressEnter:I},lt,{size:de,onCompositionStart:ht,onCompositionEnd:ot,prefixCls:Ht,addonAfter:be,suffix:S,onChange:F,className:Qe,disabled:Ne}))}),we=y(1643);const Be=a.Z;Be.Group=ve,Be.Search=xe,Be.TextArea=we.Z,Be.Password=k;var H=Be},9937:function(Qt,it,y){"use strict";y.d(it,{M1:function(){return ye},TM:function(){return ae},Xy:function(){return ve},bi:function(){return O},e5:function(){return U},ik:function(){return A},nz:function(){return ne},pU:function(){return se},s7:function(){return c},x0:function(){return P}});var v=y(17313),Y=y(74207),ge=y(37613),Ie=y(83116);const ne=x=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:x,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),se=x=>({borderColor:x.hoverBorderColor}),ye=x=>({borderColor:x.activeBorderColor,boxShadow:x.activeShadow,outline:0}),ve=x=>({color:x.colorTextDisabled,backgroundColor:x.colorBgContainerDisabled,borderColor:x.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},se((0,ge.TS)(x,{hoverBorderColor:x.colorBorder})))}),a=x=>{const{paddingBlockLG:z,fontSizeLG:Q,lineHeightLG:q,borderRadiusLG:ce,paddingInlineLG:xe}=x;return{padding:`${z}px ${xe}px`,fontSize:Q,lineHeight:q,borderRadius:ce}},P=x=>({padding:`${x.paddingBlockSM}px ${x.paddingInlineSM}px`,borderRadius:x.borderRadiusSM}),O=(x,z)=>{const{componentCls:Q,colorError:q,colorWarning:ce,errorActiveShadow:xe,warningActiveShadow:we,colorErrorBorderHover:Be,colorWarningBorderHover:H}=x;return{[`&-status-error:not(${z}-disabled):not(${z}-borderless)${z}`]:{borderColor:q,"&:hover":{borderColor:Be},"&:focus, &-focused":Object.assign({},ye((0,ge.TS)(x,{activeBorderColor:q,activeShadow:xe}))),[`${Q}-prefix, ${Q}-suffix`]:{color:q}},[`&-status-warning:not(${z}-disabled):not(${z}-borderless)${z}`]:{borderColor:ce,"&:hover":{borderColor:H},"&:focus, &-focused":Object.assign({},ye((0,ge.TS)(x,{activeBorderColor:ce,activeShadow:we}))),[`${Q}-prefix, ${Q}-suffix`]:{color:ce}}}},A=x=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${x.paddingBlock}px ${x.paddingInline}px`,color:x.colorText,fontSize:x.fontSize,lineHeight:x.lineHeight,backgroundColor:x.colorBgContainer,backgroundImage:"none",borderWidth:x.lineWidth,borderStyle:x.lineType,borderColor:x.colorBorder,borderRadius:x.borderRadius,transition:`all ${x.motionDurationMid}`},ne(x.colorTextPlaceholder)),{"&:hover":Object.assign({},se(x)),"&:focus, &-focused":Object.assign({},ye(x)),"&-disabled, &[disabled]":Object.assign({},ve(x)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:x.controlHeight,lineHeight:x.lineHeight,verticalAlign:"bottom",transition:`all ${x.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a(x)),"&-sm":Object.assign({},P(x)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),c=x=>{const{componentCls:z,antCls:Q}=x;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:x.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${z}, &-lg > ${z}-group-addon`]:Object.assign({},a(x)),[`&-sm ${z}, &-sm > ${z}-group-addon`]:Object.assign({},P(x)),[`&-lg ${Q}-select-single ${Q}-select-selector`]:{height:x.controlHeightLG},[`&-sm ${Q}-select-single ${Q}-select-selector`]:{height:x.controlHeightSM},[`> ${z}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${z}-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 ${x.paddingInline}px`,color:x.colorText,fontWeight:"normal",fontSize:x.fontSize,textAlign:"center",backgroundColor:x.colorFillAlter,border:`${x.lineWidth}px ${x.lineType} ${x.colorBorder}`,borderRadius:x.borderRadius,transition:`all ${x.motionDurationSlow}`,lineHeight:1,[`${Q}-select`]:{margin:`-${x.paddingBlock+1}px -${x.paddingInline}px`,[`&${Q}-select-single:not(${Q}-select-customize-input)`]:{[`${Q}-select-selector`]:{backgroundColor:"inherit",border:`${x.lineWidth}px ${x.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Q}-select-selector`]:{color:x.colorPrimary}}},[`${Q}-cascader-picker`]:{margin:`-9px -${x.paddingInline}px`,backgroundColor:"transparent",[`${Q}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${z}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${z}-search-with-button &`]:{zIndex:0}}},[`> ${z}:first-child, ${z}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Q}-select ${Q}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}-affix-wrapper`]:{[`&:not(:first-child) ${z}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${z}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}:last-child, ${z}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Q}-select ${Q}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${z}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${z}-search &`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius}},[`&:not(:first-child), ${z}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${z}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,v.dF)()),{[`${z}-group-addon, ${z}-group-wrap, > ${z}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:x.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${z}-affix-wrapper,
|
|
|
& > ${z}-number-affix-wrapper,
|
|
|
& > ${Q}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-x.lineWidth,borderInlineEndWidth:x.lineWidth},[`${z}`]:{float:"none"},[`& > ${Q}-select > ${Q}-select-selector,
|
|
|
& > ${Q}-select-auto-complete ${z},
|
|
|
& > ${Q}-cascader-picker ${z},
|
|
|
& > ${z}-group-wrapper ${z}`]:{borderInlineEndWidth:x.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Q}-select-focused`]:{zIndex:1},[`& > ${Q}-select > ${Q}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Q}-select:first-child > ${Q}-select-selector,
|
|
|
& > ${Q}-select-auto-complete:first-child ${z},
|
|
|
& > ${Q}-cascader-picker:first-child ${z}`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius},[`& > *:last-child,
|
|
|
& > ${Q}-select:last-child > ${Q}-select-selector,
|
|
|
& > ${Q}-cascader-picker:last-child ${z},
|
|
|
& > ${Q}-cascader-picker-focused:last-child ${z}`]:{borderInlineEndWidth:x.lineWidth,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius},[`& > ${Q}-select-auto-complete ${z}`]:{verticalAlign:"top"},[`${z}-group-wrapper + ${z}-group-wrapper`]:{marginInlineStart:-x.lineWidth,[`${z}-affix-wrapper`]:{borderRadius:0}},[`${z}-group-wrapper:not(:last-child)`]:{[`&${z}-search > ${z}-group`]:{[`& > ${z}-group-addon > ${z}-search-button`]:{borderRadius:0},[`& > ${z}`]:{borderStartStartRadius:x.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x.borderRadius}}}})}},w=x=>{const{componentCls:z,controlHeightSM:Q,lineWidth:q}=x,xe=(Q-q*2-16)/2;return{[z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(x)),A(x)),O(x,z)),{'&[type="color"]':{height:x.controlHeight,[`&${z}-lg`]:{height:x.controlHeightLG},[`&${z}-sm`]:{height:Q,paddingTop:xe,paddingBottom:xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},E=x=>{const{componentCls:z}=x;return{[`${z}-clear-icon`]:{margin:0,color:x.colorTextQuaternary,fontSize:x.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${x.motionDurationSlow}`,"&:hover":{color:x.colorTextTertiary},"&:active":{color:x.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${x.inputAffixPadding}px`}}}},V=x=>{const{componentCls:z,inputAffixPadding:Q,colorTextDescription:q,motionDurationSlow:ce,colorIcon:xe,colorIconHover:we,iconCls:Be}=x;return{[`${z}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A(x)),{display:"inline-flex",[`&:not(${z}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},se(x)),{zIndex:1,[`${z}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${z}[disabled]`]:{background:"transparent"}},[`> input${z}`]:{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"'},[`${z}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:x.paddingXS}},"&-show-count-suffix":{color:q},"&-show-count-has-suffix":{marginInlineEnd:x.paddingXXS},"&-prefix":{marginInlineEnd:Q},"&-suffix":{marginInlineStart:Q}}}),E(x)),{[`${Be}${z}-password-icon`]:{color:xe,cursor:"pointer",transition:`all ${ce}`,"&:hover":{color:we}}}),O(x,`${z}-affix-wrapper`))}},te=x=>{const{componentCls:z,colorError:Q,colorWarning:q,borderRadiusLG:ce,borderRadiusSM:xe}=x;return{[`${z}-group`]:Object.assign(Object.assign(Object.assign({},(0,v.Wf)(x)),c(x)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${z}-group-addon`]:{borderRadius:ce,fontSize:x.fontSizeLG}},"&-sm":{[`${z}-group-addon`]:{borderRadius:xe}},"&-status-error":{[`${z}-group-addon`]:{color:Q,borderColor:Q}},"&-status-warning":{[`${z}-group-addon`]:{color:q,borderColor:q}},"&-disabled":{[`${z}-group-addon`]:Object.assign({},ve(x))},[`&:not(${z}-compact-first-item):not(${z}-compact-last-item)${z}-compact-item`]:{[`${z}, ${z}-group-addon`]:{borderRadius:0}},[`&:not(${z}-compact-last-item)${z}-compact-first-item`]:{[`${z}, ${z}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${z}-compact-first-item)${z}-compact-last-item`]:{[`${z}, ${z}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},R=x=>{const{componentCls:z,antCls:Q}=x,q=`${z}-search`;return{[q]:{[`${z}`]:{"&:hover, &:focus":{borderColor:x.colorPrimaryHover,[`+ ${z}-group-addon ${q}-button:not(${Q}-btn-primary)`]:{borderInlineStartColor:x.colorPrimaryHover}}},[`${z}-affix-wrapper`]:{borderRadius:0},[`${z}-lg`]:{lineHeight:x.lineHeightLG-2e-4},[`> ${z}-group`]:{[`> ${z}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${q}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${q}-button:not(${Q}-btn-primary)`]:{color:x.colorTextDescription,"&:hover":{color:x.colorPrimaryHover},"&:active":{color:x.colorPrimaryActive},[`&${Q}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${q}-button`]:{height:x.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${q}-button`]:{height:x.controlHeightLG},[`&-small ${q}-button`]:{height:x.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${z}-compact-item`]:{[`&:not(${z}-compact-last-item)`]:{[`${z}-group-addon`]:{[`${z}-search-button`]:{marginInlineEnd:-x.lineWidth,borderRadius:0}}},[`&:not(${z}-compact-first-item)`]:{[`${z},${z}-affix-wrapper`]:{borderRadius:0}},[`> ${z}-group-addon ${z}-search-button,
|
|
|
> ${z},
|
|
|
${z}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${z}-affix-wrapper-focused`]:{zIndex:2}}}}},k=x=>{const{componentCls:z,paddingLG:Q}=x,q=`${z}-textarea`;return{[q]:{position:"relative","&-show-count":{[`> ${z}`]:{height:"100%"},[`${z}-data-count`]:{position:"absolute",bottom:-x.fontSize*x.lineHeight,insetInlineEnd:0,color:x.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${z}`]:{paddingInlineEnd:Q}},[`&-affix-wrapper${q}-has-feedback`]:{[`${z}`]:{paddingInlineEnd:Q}},[`&-affix-wrapper${z}-affix-wrapper`]:{padding:0,[`> textarea${z}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${z}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${z}-clear-icon`]:{position:"absolute",insetInlineEnd:x.paddingXS,insetBlockStart:x.paddingXS},[`${q}-suffix`]:{position:"absolute",top:0,insetInlineEnd:x.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function U(x){return(0,ge.TS)(x,{inputAffixPadding:x.paddingXXS})}const ae=x=>{const{controlHeight:z,fontSize:Q,lineHeight:q,lineWidth:ce,controlHeightSM:xe,controlHeightLG:we,fontSizeLG:Be,lineHeightLG:H,paddingSM:L,controlPaddingHorizontalSM:Z,controlPaddingHorizontal:W,colorFillAlter:le,colorPrimaryHover:J,controlOutlineWidth:g,controlOutline:S,colorErrorOutline:K,colorWarningOutline:G}=x;return{paddingBlock:Math.max(Math.round((z-Q*q)/2*10)/10-ce,3),paddingBlockSM:Math.max(Math.round((xe-Q*q)/2*10)/10-ce,0),paddingBlockLG:Math.ceil((we-Be*H)/2*10)/10-ce,paddingInline:L-ce,paddingInlineSM:Z-ce,paddingInlineLG:W-ce,addonBg:le,activeBorderColor:J,hoverBorderColor:J,activeShadow:`0 0 0 ${g}px ${S}`,errorActiveShadow:`0 0 0 ${g}px ${K}`,warningActiveShadow:`0 0 0 ${g}px ${G}`}};it.ZP=(0,Ie.Z)("Input",x=>{const z=(0,ge.TS)(x,U(x));return[w(z),k(z),V(z),te(z),R(z),(0,Y.c)(z)]},ae)},45818:function(Qt,it,y){"use strict";y.d(it,{D:function(){return U},Z:function(){return z}});var v=y(96663),Y=y(59301),ge={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"},Ie=ge,ne=y(7657),se=function(q,ce){return Y.createElement(ne.Z,(0,v.Z)({},q,{ref:ce,icon:Ie}))},ye=Y.forwardRef(se),ve=ye,a=y(33853),P=y(38819),O=y(92310),A=y.n(O),c=y(2738),E=Q=>!isNaN(parseFloat(Q))&&isFinite(Q),V=y(36355),te=y(84966),R=function(Q,q){var ce={};for(var xe in Q)Object.prototype.hasOwnProperty.call(Q,xe)&&q.indexOf(xe)<0&&(ce[xe]=Q[xe]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(Q);we<xe.length;we++)q.indexOf(xe[we])<0&&Object.prototype.propertyIsEnumerable.call(Q,xe[we])&&(ce[xe[we]]=Q[xe[we]]);return ce};const k={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},U=Y.createContext({}),ae=(()=>{let Q=0;return function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Q+=1,`${q}${Q}`}})();var z=Y.forwardRef((Q,q)=>{const{prefixCls:ce,className:xe,trigger:we,children:Be,defaultCollapsed:H=!1,theme:L="dark",style:Z={},collapsible:W=!1,reverseArrow:le=!1,width:J=200,collapsedWidth:g=80,zeroWidthTriggerStyle:S,breakpoint:K,onCollapse:G,onBreakpoint:Pe}=Q,Ne=R(Q,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ue}=(0,Y.useContext)(te.Gs),[Ve,qe]=(0,Y.useState)("collapsed"in Q?Q.collapsed:H),[tt,lt]=(0,Y.useState)(!1);(0,Y.useEffect)(()=>{"collapsed"in Q&&qe(Q.collapsed)},[Q.collapsed]);const Ut=(de,Ee)=>{"collapsed"in Q||qe(de),G==null||G(de,Ee)},Yt=(0,Y.useRef)();Yt.current=de=>{lt(de.matches),Pe==null||Pe(de.matches),Ve!==de.matches&&Ut(de.matches,"responsive")},(0,Y.useEffect)(()=>{function de(F){return Yt.current(F)}let Ee;if(typeof window!="undefined"){const{matchMedia:F}=window;if(F&&K&&K in k){Ee=F(`(max-width: ${k[K]})`);try{Ee.addEventListener("change",de)}catch(fe){Ee.addListener(de)}de(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",de)}catch(F){Ee==null||Ee.removeListener(de)}}},[K]),(0,Y.useEffect)(()=>{const de=ae("ant-sider-");return Ue.addSider(de),()=>Ue.removeSider(de)},[]);const sr=()=>{Ut(!Ve,"clickTrigger")},{getPrefixCls:Bt}=(0,Y.useContext)(V.E_),Ht=()=>{const de=Bt("layout-sider",ce),Ee=(0,c.Z)(Ne,["collapsed"]),F=Ve?g:J,fe=E(F)?`${F}px`:String(F),Te=parseFloat(String(g||0))===0?Y.createElement("span",{onClick:sr,className:A()(`${de}-zero-width-trigger`,`${de}-zero-width-trigger-${le?"right":"left"}`),style:S},we||Y.createElement(ve,null)):null,he={expanded:le?Y.createElement(P.Z,null):Y.createElement(a.Z,null),collapsed:le?Y.createElement(a.Z,null):Y.createElement(P.Z,null)}[Ve?"collapsed":"expanded"],be=we!==null?Te||Y.createElement("div",{className:`${de}-trigger`,onClick:sr,style:{width:fe}},we||he):null,Oe=Object.assign(Object.assign({},Z),{flex:`0 0 ${fe}`,maxWidth:fe,minWidth:fe,width:fe}),Fe=A()(de,`${de}-${L}`,{[`${de}-collapsed`]:!!Ve,[`${de}-has-trigger`]:W&&we!==null&&!Te,[`${de}-below`]:!!tt,[`${de}-zero-width`]:parseFloat(fe)===0},xe);return Y.createElement("aside",Object.assign({className:Fe},Ee,{style:Oe,ref:q}),Y.createElement("div",{className:`${de}-children`},Be),W||tt&&Te?be:null)},Xt=Y.useMemo(()=>({siderCollapsed:Ve}),[Ve]);return Y.createElement(U.Provider,{value:Xt},Ht())})},84966:function(Qt,it,y){"use strict";y.d(it,{VY:function(){return U},$_:function(){return k},h4:function(){return R},Gs:function(){return c},ZP:function(){return ae}});var v=y(19127),Y=y(92310),ge=y.n(Y),Ie=y(2738),ne=y(59301),se=y(36355),ye=y(83116),a=x=>{const{componentCls:z,bodyBg:Q,lightSiderBg:q,lightTriggerBg:ce,lightTriggerColor:xe}=x;return{[`${z}-sider-light`]:{background:q,[`${z}-sider-trigger`]:{color:xe,background:ce},[`${z}-sider-zero-width-trigger`]:{color:xe,background:ce,border:`1px solid ${Q}`,borderInlineStart:0}}}};const P=x=>{const{antCls:z,componentCls:Q,colorText:q,triggerColor:ce,footerBg:xe,triggerBg:we,headerHeight:Be,headerPadding:H,headerColor:L,footerPadding:Z,triggerHeight:W,zeroTriggerHeight:le,zeroTriggerWidth:J,motionDurationMid:g,motionDurationSlow:S,fontSize:K,borderRadius:G,bodyBg:Pe,headerBg:Ne,siderBg:Ue}=x;return{[Q]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pe,"&, *":{boxSizing:"border-box"},[`&${Q}-has-sider`]:{flexDirection:"row",[`> ${Q}, > ${Q}-content`]:{width:0}},[`${Q}-header, &${Q}-footer`]:{flex:"0 0 auto"},[`${Q}-sider`]:{position:"relative",minWidth:0,background:Ue,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${z}-menu${z}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:W},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:W,color:ce,lineHeight:`${W}px`,textAlign:"center",background:we,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-J,zIndex:1,width:J,height:le,color:ce,fontSize:x.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ue,borderStartStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,borderEndStartRadius:0,cursor:"pointer",transition:`background ${S} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${S}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-J,borderStartStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G}}}}},a(x)),{"&-rtl":{direction:"rtl"}}),[`${Q}-header`]:{height:Be,padding:H,color:L,lineHeight:`${Be}px`,background:Ne,[`${z}-menu`]:{lineHeight:"inherit"}},[`${Q}-footer`]:{padding:Z,color:q,fontSize:K,background:xe},[`${Q}-content`]:{flex:"auto",minHeight:0}}};var O=(0,ye.Z)("Layout",x=>[P(x)],x=>{const{colorBgLayout:z,controlHeight:Q,controlHeightLG:q,colorText:ce,controlHeightSM:xe,marginXXS:we,colorTextLightSolid:Be,colorBgContainer:H}=x,L=q*1.25;return{colorBgHeader:"#001529",colorBgBody:z,colorBgTrigger:"#002140",bodyBg:z,headerBg:"#001529",headerHeight:Q*2,headerPadding:`0 ${L}px`,headerColor:ce,footerPadding:`${xe}px ${L}px`,footerBg:z,siderBg:"#001529",triggerHeight:q+we*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:q,zeroTriggerHeight:q,lightSiderBg:H,lightTriggerBg:H,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),A=function(x,z){var Q={};for(var q in x)Object.prototype.hasOwnProperty.call(x,q)&&z.indexOf(q)<0&&(Q[q]=x[q]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,q=Object.getOwnPropertySymbols(x);ce<q.length;ce++)z.indexOf(q[ce])<0&&Object.prototype.propertyIsEnumerable.call(x,q[ce])&&(Q[q[ce]]=x[q[ce]]);return Q};const c=ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function w(x){let{suffixCls:z,tagName:Q,displayName:q}=x;return ce=>ne.forwardRef((we,Be)=>ne.createElement(ce,Object.assign({ref:Be,suffixCls:z,tagName:Q},we)))}const E=ne.forwardRef((x,z)=>{const{prefixCls:Q,suffixCls:q,className:ce,tagName:xe}=x,we=A(x,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ne.useContext(se.E_),H=Be("layout",Q),[L,Z]=O(H),W=q?`${H}-${q}`:H;return L(ne.createElement(xe,Object.assign({className:ge()(Q||W,ce,Z),ref:z},we)))}),V=ne.forwardRef((x,z)=>{const{direction:Q}=ne.useContext(se.E_),[q,ce]=ne.useState([]),{prefixCls:xe,className:we,rootClassName:Be,children:H,hasSider:L,tagName:Z,style:W}=x,le=A(x,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),J=(0,Ie.Z)(le,["suffixCls"]),{getPrefixCls:g,layout:S}=ne.useContext(se.E_),K=g("layout",xe),[G,Pe]=O(K),Ne=ge()(K,{[`${K}-has-sider`]:typeof L=="boolean"?L:q.length>0,[`${K}-rtl`]:Q==="rtl"},S==null?void 0:S.className,we,Be,Pe),Ue=ne.useMemo(()=>({siderHook:{addSider:Ve=>{ce(qe=>[].concat((0,v.Z)(qe),[Ve]))},removeSider:Ve=>{ce(qe=>qe.filter(tt=>tt!==Ve))}}}),[]);return G(ne.createElement(c.Provider,{value:Ue},ne.createElement(Z,Object.assign({ref:z,className:Ne,style:Object.assign(Object.assign({},S==null?void 0:S.style),W)},J),H)))}),te=w({tagName:"div",displayName:"Layout"})(V),R=w({suffixCls:"header",tagName:"header",displayName:"Header"})(E),k=w({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E),U=w({suffixCls:"content",tagName:"main",displayName:"Content"})(E);var ae=te},40875:function(Qt,it,y){"use strict";y.d(it,{J:function(){return se}});var v=y(59301),Y=y(33234),ge=y(70425),Ie=function(ye,ve){var a={};for(var P in ye)Object.prototype.hasOwnProperty.call(ye,P)&&ve.indexOf(P)<0&&(a[P]=ye[P]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,P=Object.getOwnPropertySymbols(ye);O<P.length;O++)ve.indexOf(P[O])<0&&Object.prototype.propertyIsEnumerable.call(ye,P[O])&&(a[P[O]]=ye[P[O]]);return a};const ne=v.createContext(null),se=v.forwardRef((ye,ve)=>{const{children:a}=ye,P=Ie(ye,["children"]),O=v.useContext(ne),A=v.useMemo(()=>Object.assign(Object.assign({},O),P),[O,P.prefixCls,P.mode,P.selectable]);return v.createElement(ne.Provider,{value:A},v.createElement(Y.BR,null,(0,ge.supportNodeRef)(a)?v.cloneElement(a,{ref:ve}):a))});it.Z=ne},20834:function(Qt,it,y){"use strict";y.d(it,{default:function(){return Xt}});var v=y(15285),Y=y(59301),ge=y(45818),Ie=y(92310),ne=y.n(Ie),se=y(36355),ye=function(de,Ee){var F={};for(var fe in de)Object.prototype.hasOwnProperty.call(de,fe)&&Ee.indexOf(fe)<0&&(F[fe]=de[fe]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,fe=Object.getOwnPropertySymbols(de);Te<fe.length;Te++)Ee.indexOf(fe[Te])<0&&Object.prototype.propertyIsEnumerable.call(de,fe[Te])&&(F[fe[Te]]=de[fe[Te]]);return F},a=de=>{const{prefixCls:Ee,className:F,dashed:fe}=de,Te=ye(de,["prefixCls","className","dashed"]),{getPrefixCls:I}=Y.useContext(se.E_),ee=I("menu",Ee),he=ne()({[`${ee}-item-divider-dashed`]:!!fe},F);return Y.createElement(v.iz,Object.assign({className:he},Te))},P=y(11592),O=y(2738),A=y(6848),c=y(92343),E=(0,Y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=de=>{var Ee;const{className:F,children:fe,icon:Te,title:I,danger:ee}=de,{prefixCls:he,firstLevel:be,direction:Oe,disableMenuItemTitleTooltip:Fe,inlineCollapsed:Qe}=Y.useContext(E),ht=Ke=>{const nt=Y.createElement("span",{className:`${he}-title-content`},fe);return(!Te||(0,c.l$)(fe)&&fe.type==="span")&&fe&&Ke&&be&&typeof fe=="string"?Y.createElement("div",{className:`${he}-inline-collapsed-noicon`},fe.charAt(0)):nt},{siderCollapsed:ot}=Y.useContext(ge.D);let Xe=I;typeof I=="undefined"?Xe=be?fe:"":I===!1&&(Xe="");const Dt={title:Xe};!ot&&!Qe&&(Dt.title=null,Dt.open=!1);const kt=(0,P.Z)(fe).length;let Le=Y.createElement(v.ck,Object.assign({},(0,O.Z)(de,["title","icon","danger"]),{className:ne()({[`${he}-item-danger`]:ee,[`${he}-item-only-child`]:(Te?kt+1:kt)===1},F),title:typeof I=="string"?I:void 0}),(0,c.Tm)(Te,{className:ne()((0,c.l$)(Te)?(Ee=Te.props)===null||Ee===void 0?void 0:Ee.className:"",`${he}-item-icon`)}),ht(Qe));return Fe||(Le=Y.createElement(A.Z,Object.assign({},Dt,{placement:Oe==="rtl"?"left":"right",overlayClassName:`${he}-inline-collapsed-tooltip`}),Le)),Le},k=de=>{var Ee;const{popupClassName:F,icon:fe,title:Te,theme:I}=de,ee=Y.useContext(E),{prefixCls:he,inlineCollapsed:be,theme:Oe}=ee,Fe=(0,v.Xl)();let Qe;if(!fe)Qe=be&&!Fe.length&&Te&&typeof Te=="string"?Y.createElement("div",{className:`${he}-inline-collapsed-noicon`},Te.charAt(0)):Y.createElement("span",{className:`${he}-title-content`},Te);else{const ot=(0,c.l$)(Te)&&Te.type==="span";Qe=Y.createElement(Y.Fragment,null,(0,c.Tm)(fe,{className:ne()((0,c.l$)(fe)?(Ee=fe.props)===null||Ee===void 0?void 0:Ee.className:"",`${he}-item-icon`)}),ot?Te:Y.createElement("span",{className:`${he}-title-content`},Te))}const ht=Y.useMemo(()=>Object.assign(Object.assign({},ee),{firstLevel:!1}),[ee]);return Y.createElement(E.Provider,{value:ht},Y.createElement(v.Wd,Object.assign({},(0,O.Z)(de,["icon"]),{title:Qe,popupClassName:ne()(he,F,`${he}-${I||Oe}`)})))},U=y(18785),ae=y(70425),x=y(62892),z=y(40875),Q=function(de,Ee){var F={};for(var fe in de)Object.prototype.hasOwnProperty.call(de,fe)&&Ee.indexOf(fe)<0&&(F[fe]=de[fe]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,fe=Object.getOwnPropertySymbols(de);Te<fe.length;Te++)Ee.indexOf(fe[Te])<0&&Object.prototype.propertyIsEnumerable.call(de,fe[Te])&&(F[fe[Te]]=de[fe[Te]]);return F};function q(de){return(de||[]).map((Ee,F)=>{if(Ee&&typeof Ee=="object"){const fe=Ee,{label:Te,children:I,key:ee,type:he}=fe,be=Q(fe,["label","children","key","type"]),Oe=ee!=null?ee:`tmp-${F}`;return I||he==="group"?he==="group"?Y.createElement(v.BW,Object.assign({key:Oe},be,{title:Te}),q(I)):Y.createElement(k,Object.assign({key:Oe},be,{title:Te}),q(I)):he==="divider"?Y.createElement(a,Object.assign({key:Oe},be)):Y.createElement(te,Object.assign({key:Oe},be),Te)}return null}).filter(Ee=>Ee)}function ce(de){return Y.useMemo(()=>de&&q(de),[de])}var xe=y(64993),we=y(17313),Be=y(8378),H=y(13826),L=y(29878),Z=y(83116),W=y(37613),J=de=>{const{componentCls:Ee,motionDurationSlow:F,horizontalLineHeight:fe,colorSplit:Te,lineWidth:I,lineType:ee,itemPaddingInline:he}=de;return{[`${Ee}-horizontal`]:{lineHeight:fe,border:0,borderBottom:`${I}px ${ee} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:he},[`> ${Ee}-item:hover,
|
|
|
> ${Ee}-item-active,
|
|
|
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${F}`,`background ${F}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},S=de=>{let{componentCls:Ee,menuArrowOffset:F}=de;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
|
|
|
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${F})`},"&::after":{transform:`rotate(45deg) translateY(${F})`}}}}};const K=de=>Object.assign({},(0,we.oN)(de));var Pe=(de,Ee)=>{const{componentCls:F,itemColor:fe,itemSelectedColor:Te,groupTitleColor:I,itemBg:ee,subMenuItemBg:he,itemSelectedBg:be,activeBarHeight:Oe,activeBarWidth:Fe,activeBarBorderWidth:Qe,motionDurationSlow:ht,motionEaseInOut:ot,motionEaseOut:Xe,itemPaddingInline:Dt,motionDurationMid:kt,itemHoverColor:Le,lineType:Ke,colorSplit:nt,itemDisabledColor:ft,dangerItemColor:At,dangerItemHoverColor:It,dangerItemSelectedColor:_,dangerItemActiveBg:C,dangerItemSelectedBg:et,itemHoverBg:$,itemActiveBg:me,menuSubMenuBg:tr,horizontalItemSelectedColor:ke,horizontalItemSelectedBg:He,horizontalItemBorderRadius:Ze,horizontalItemHoverBg:X,popupBg:oe}=de;return{[`${F}-${Ee}, ${F}-${Ee} > ${F}`]:{color:fe,background:ee,[`&${F}-root:focus-visible`]:Object.assign({},K(de)),[`${F}-item-group-title`]:{color:I},[`${F}-submenu-selected`]:{[`> ${F}-submenu-title`]:{color:Te}},[`${F}-item-disabled, ${F}-submenu-disabled`]:{color:`${ft} !important`},[`${F}-item:not(${F}-item-selected):not(${F}-submenu-selected)`]:{[`&:hover, > ${F}-submenu-title:hover`]:{color:Le}},[`&:not(${F}-horizontal)`]:{[`${F}-item:not(${F}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:me}},[`${F}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:me}}},[`${F}-item-danger`]:{color:At,[`&${F}-item:hover`]:{[`&:not(${F}-item-selected):not(${F}-submenu-selected)`]:{color:It}},[`&${F}-item:active`]:{background:C}},[`${F}-item a`]:{"&, &:hover":{color:"inherit"}},[`${F}-item-selected`]:{color:Te,[`&${F}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${F}-item-selected`]:{backgroundColor:be,[`&${F}-item-danger`]:{backgroundColor:et}},[`${F}-item, ${F}-submenu-title`]:{[`&:not(${F}-item-disabled):focus-visible`]:Object.assign({},K(de))},[`&${F}-submenu > ${F}`]:{backgroundColor:tr},[`&${F}-popup > ${F}`]:{backgroundColor:oe},[`&${F}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${F}-item, > ${F}-submenu`]:{top:Qe,marginTop:-Qe,marginBottom:0,borderRadius:Ze,"&::after":{position:"absolute",insetInline:Dt,bottom:0,borderBottom:`${Oe}px solid transparent`,transition:`border-color ${ht} ${ot}`,content:'""'},"&:hover, &-active, &-open":{background:X,"&::after":{borderBottomWidth:Oe,borderBottomColor:ke}},"&-selected":{color:ke,backgroundColor:He,"&:hover":{backgroundColor:He},"&::after":{borderBottomWidth:Oe,borderBottomColor:ke}}}}),[`&${F}-root`]:{[`&${F}-inline, &${F}-vertical`]:{borderInlineEnd:`${Qe}px ${Ke} ${nt}`}},[`&${F}-inline`]:{[`${F}-sub${F}-inline`]:{background:he},[`${F}-item, ${F}-submenu-title`]:Qe&&Fe?{width:`calc(100% + ${Qe}px)`}:{},[`${F}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Fe}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${kt} ${Xe}`,`opacity ${kt} ${Xe}`].join(","),content:'""'},[`&${F}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${F}-selected, ${F}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${kt} ${ot}`,`opacity ${kt} ${ot}`].join(",")}}}}}};const Ne=de=>{const{componentCls:Ee,itemHeight:F,itemMarginInline:fe,padding:Te,menuArrowSize:I,marginXS:ee,itemMarginBlock:he}=de,be=Te+I+ee;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:F,lineHeight:`${F}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:fe,marginBlock:he,width:`calc(100% - ${fe*2}px)`},[`> ${Ee}-item,
|
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:F,lineHeight:`${F}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
|
|
|
${Ee}-submenu-title`]:{paddingInlineEnd:be}}};var Ve=de=>{const{componentCls:Ee,iconCls:F,itemHeight:fe,colorTextLightSolid:Te,dropdownWidth:I,controlHeightLG:ee,motionDurationMid:he,motionEaseOut:be,paddingXL:Oe,itemMarginInline:Fe,fontSizeLG:Qe,motionDurationSlow:ht,paddingXS:ot,boxShadowSecondary:Xe,collapsedWidth:Dt,collapsedIconSize:kt}=de,Le={height:fe,lineHeight:`${fe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},Ne(de))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},Ne(de)),{boxShadow:Xe})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:I,maxHeight:`calc(100vh - ${ee*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ht}`,`background ${ht}`,`padding ${he} ${be}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:Le,[`& ${Ee}-item-group-title`]:{paddingInlineStart:Oe}},[`${Ee}-item`]:Le}},{[`${Ee}-inline-collapsed`]:{width:Dt,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:Qe,textAlign:"center"}}},[`> ${Ee}-item,
|
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
|
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
|
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Qe/2}px - ${Fe}px)`,textOverflow:"clip",[`
|
|
|
${Ee}-submenu-arrow,
|
|
|
${Ee}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ee}-item-icon, ${F}`]:{margin:0,fontSize:kt,lineHeight:`${fe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${F}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${F}`]:{display:"none"},"a, a:hover":{color:Te}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},we.vS),{paddingInline:ot})}}]};const qe=de=>{const{componentCls:Ee,motionDurationSlow:F,motionDurationMid:fe,motionEaseInOut:Te,motionEaseOut:I,iconCls:ee,iconSize:he,iconMarginInlineEnd:be}=de;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${F}`,`background ${F}`,`padding ${F} ${Te}`].join(","),[`${Ee}-item-icon, ${ee}`]:{minWidth:he,fontSize:he,transition:[`font-size ${fe} ${I}`,`margin ${F} ${Te}`,`color ${F}`].join(","),"+ span":{marginInlineStart:be,opacity:1,transition:[`opacity ${F} ${Te}`,`margin ${F}`,`color ${F}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,we.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${ee}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tt=de=>{const{componentCls:Ee,motionDurationSlow:F,motionEaseInOut:fe,borderRadius:Te,menuArrowSize:I,menuArrowOffset:ee}=de;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:de.margin,width:I,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${F} ${fe}, opacity ${F}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:I*.6,height:I*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${F} ${fe}`,`transform ${F} ${fe}`,`top ${F} ${fe}`,`color ${F} ${fe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ee})`},"&::after":{transform:`rotate(-45deg) translateY(${ee})`}}}}},lt=de=>{const{antCls:Ee,componentCls:F,fontSize:fe,motionDurationSlow:Te,motionDurationMid:I,motionEaseInOut:ee,paddingXS:he,padding:be,colorSplit:Oe,lineWidth:Fe,zIndexPopup:Qe,borderRadiusLG:ht,subMenuItemBorderRadius:ot,menuArrowSize:Xe,menuArrowOffset:Dt,lineType:kt,menuPanelMaskInset:Le,groupTitleLineHeight:Ke,groupTitleFontSize:nt}=de;return[{"":{[`${F}`]:Object.assign(Object.assign({},(0,we.dF)()),{"&-hidden":{display:"none"}})},[`${F}-submenu-hidden`]:{display:"none"}},{[F]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(de)),(0,we.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:fe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${F}-item`]:{flex:"none"}},[`${F}-item, ${F}-submenu, ${F}-submenu-title`]:{borderRadius:de.itemBorderRadius},[`${F}-item-group-title`]:{padding:`${he}px ${be}px`,fontSize:nt,lineHeight:Ke,transition:`all ${Te}`},[`&-horizontal ${F}-submenu`]:{transition:[`border-color ${Te} ${ee}`,`background ${Te} ${ee}`].join(",")},[`${F}-submenu, ${F}-submenu-inline`]:{transition:[`border-color ${Te} ${ee}`,`background ${Te} ${ee}`,`padding ${I} ${ee}`].join(",")},[`${F}-submenu ${F}-sub`]:{cursor:"initial",transition:[`background ${Te} ${ee}`,`padding ${Te} ${ee}`].join(",")},[`${F}-title-content`]:{transition:`color ${Te}`},[`${F}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${F}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Oe,borderStyle:kt,borderWidth:0,borderTopWidth:Fe,marginBlock:Fe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(de)),{[`${F}-item-group`]:{[`${F}-item-group-list`]:{margin:0,padding:0,[`${F}-item, ${F}-submenu-title`]:{paddingInline:`${fe*2}px ${be}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Qe,borderRadius:ht,boxShadow:"none",transformOrigin:"0 0",[`&${F}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\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:de.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:de.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:de.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:de.paddingXS},[`> ${F}`]:Object.assign(Object.assign(Object.assign({borderRadius:ht},qe(de)),tt(de)),{[`${F}-item, ${F}-submenu > ${F}-submenu-title`]:{borderRadius:ot},[`${F}-submenu-title::after`]:{transition:`transform ${Te} ${ee}`}})}}),tt(de)),{[`&-inline-collapsed ${F}-submenu-arrow,
|
|
|
&-inline ${F}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dt})`},"&::after":{transform:`rotate(45deg) translateX(-${Dt})`}},[`${F}-submenu-open${F}-submenu-inline > ${F}-submenu-title > ${F}-submenu-arrow`]:{transform:`translateY(-${Xe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dt})`},"&::before":{transform:`rotate(45deg) translateX(${Dt})`}}})},{[`${Ee}-layout-header`]:{[F]:{lineHeight:"inherit"}}}]};var Ut=(de,Ee)=>(0,Z.Z)("Menu",fe=>{if(Ee===!1)return[];const{colorBgElevated:Te,colorPrimary:I,colorTextLightSolid:ee,controlHeightLG:he,fontSize:be,darkItemColor:Oe,darkDangerItemColor:Fe,darkItemBg:Qe,darkSubMenuItemBg:ht,darkItemSelectedColor:ot,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:Dt,darkItemHoverBg:kt,darkGroupTitleColor:Le,darkItemHoverColor:Ke,darkItemDisabledColor:nt,darkDangerItemHoverColor:ft,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:It}=fe,_=be/7*5,C=(0,W.TS)(fe,{menuArrowSize:_,menuHorizontalHeight:he*1.15,menuArrowOffset:`${_*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),et=(0,W.TS)(C,{itemColor:Oe,itemHoverColor:Ke,groupTitleColor:Le,itemSelectedColor:ot,itemBg:Qe,popupBg:Qe,subMenuItemBg:ht,itemActiveBg:"transparent",itemSelectedBg:Xe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:kt,itemDisabledColor:nt,dangerItemColor:Fe,dangerItemHoverColor:ft,dangerItemSelectedColor:At,dangerItemActiveBg:It,dangerItemSelectedBg:Dt,menuSubMenuBg:ht,horizontalItemSelectedColor:ee,horizontalItemSelectedBg:I});return[lt(C),J(C),Ve(C),Pe(C,"light"),Pe(et,"dark"),S(C),(0,Be.Z)(C),(0,H.oN)(C,"slide-up"),(0,H.oN)(C,"slide-down"),(0,L._y)(C,"zoom-big")]},fe=>{const{colorPrimary:Te,colorError:I,colorTextDisabled:ee,colorErrorBg:he,colorText:be,colorTextDescription:Oe,colorBgContainer:Fe,colorFillAlter:Qe,colorFillContent:ht,lineWidth:ot,lineWidthBold:Xe,controlItemBgActive:Dt,colorBgTextHover:kt,controlHeightLG:Le,lineHeight:Ke,colorBgElevated:nt,marginXXS:ft,padding:At,fontSize:It,controlHeightSM:_,fontSizeLG:C,colorTextLightSolid:et,colorErrorHover:$}=fe,me=new xe.C(et).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:fe.zIndexPopupBase+50,radiusItem:fe.borderRadiusLG,itemBorderRadius:fe.borderRadiusLG,radiusSubMenuItem:fe.borderRadiusSM,subMenuItemBorderRadius:fe.borderRadiusSM,colorItemText:be,itemColor:be,colorItemTextHover:be,itemHoverColor:be,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:Oe,groupTitleColor:Oe,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Fe,itemBg:Fe,colorItemBgHover:kt,itemHoverBg:kt,colorItemBgActive:ht,itemActiveBg:Dt,colorSubItemBg:Qe,subMenuItemBg:Qe,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xe,activeBarHeight:Xe,colorActiveBarBorderSize:ot,activeBarBorderWidth:ot,colorItemTextDisabled:ee,itemDisabledColor:ee,colorDangerItemText:I,dangerItemColor:I,colorDangerItemTextHover:I,dangerItemHoverColor:I,colorDangerItemTextSelected:I,dangerItemSelectedColor:I,colorDangerItemBgActive:he,dangerItemActiveBg:he,colorDangerItemBgSelected:he,dangerItemSelectedBg:he,itemMarginInline:fe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:Ke,collapsedWidth:Le*2,popupBg:nt,itemMarginBlock:ft,itemPaddingInline:At,horizontalLineHeight:`${Le*1.15}px`,iconSize:It,iconMarginInlineEnd:_-It,collapsedIconSize:C,groupTitleFontSize:It,darkItemDisabledColor:new xe.C(et).setAlpha(.25).toRgbString(),darkItemColor:me,darkDangerItemColor:I,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:et,darkItemSelectedBg:Te,darkDangerItemSelectedBg:I,darkItemHoverBg:"transparent",darkGroupTitleColor:me,darkItemHoverColor:et,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:et,darkDangerItemActiveBg:I}},{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"]]})(de),Yt=function(de,Ee){var F={};for(var fe in de)Object.prototype.hasOwnProperty.call(de,fe)&&Ee.indexOf(fe)<0&&(F[fe]=de[fe]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,fe=Object.getOwnPropertySymbols(de);Te<fe.length;Te++)Ee.indexOf(fe[Te])<0&&Object.prototype.propertyIsEnumerable.call(de,fe[Te])&&(F[fe[Te]]=de[fe[Te]]);return F},Bt=(0,Y.forwardRef)((de,Ee)=>{var F,fe;const Te=Y.useContext(z.Z),I=Te||{},{getPrefixCls:ee,getPopupContainer:he,direction:be,menu:Oe}=Y.useContext(se.E_),Fe=ee(),{prefixCls:Qe,className:ht,style:ot,theme:Xe="light",expandIcon:Dt,_internalDisableMenuItemTitleTooltip:kt,inlineCollapsed:Le,siderCollapsed:Ke,items:nt,children:ft,rootClassName:At,mode:It,selectable:_,onClick:C,overflowedIndicatorPopupClassName:et}=de,$=Yt(de,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),me=(0,O.Z)($,["collapsedWidth"]),tr=ce(nt)||ft;(F=I.validator)===null||F===void 0||F.call(I,{mode:It});const ke=(0,ae.useEvent)(function(){var lr;C==null||C.apply(void 0,arguments),(lr=I.onClick)===null||lr===void 0||lr.call(I)}),He=I.mode||It,Ze=_!=null?_:I.selectable,X=Y.useMemo(()=>Ke!==void 0?Ke:Le,[Le,Ke]),oe={horizontal:{motionName:`${Fe}-slide-up`},inline:(0,x.Z)(Fe),other:{motionName:`${Fe}-zoom-big`}},De=ee("menu",Qe||I.prefixCls),[ze,j]=Ut(De,!Te),Pt=ne()(`${De}-${Xe}`,Oe==null?void 0:Oe.className,ht);let Ae;if(typeof Dt=="function")Ae=Dt;else if(Dt===null||Dt===!1)Ae=null;else if(I.expandIcon===null||I.expandIcon===!1)Ae=null;else{const lr=Dt!=null?Dt:I.expandIcon;Ae=(0,c.Tm)(lr,{className:ne()(`${De}-submenu-expand-icon`,(0,c.l$)(lr)?(fe=lr.props)===null||fe===void 0?void 0:fe.className:"")})}const Zt=Y.useMemo(()=>({prefixCls:De,inlineCollapsed:X||!1,direction:be,firstLevel:!0,theme:Xe,mode:He,disableMenuItemTitleTooltip:kt}),[De,X,be,kt,Xe]);return ze(Y.createElement(z.Z.Provider,{value:null},Y.createElement(E.Provider,{value:Zt},Y.createElement(v.ZP,Object.assign({getPopupContainer:he,overflowedIndicator:Y.createElement(U.Z,null),overflowedIndicatorPopupClassName:ne()(De,`${De}-${Xe}`,et),mode:He,selectable:Ze,onClick:ke},me,{inlineCollapsed:X,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),ot),className:Pt,prefixCls:De,direction:be,defaultMotions:oe,expandIcon:Ae,ref:Ee,rootClassName:ne()(At,j)}),tr))))});const Ht=(0,Y.forwardRef)((de,Ee)=>{const F=(0,Y.useRef)(null),fe=Y.useContext(ge.D);return(0,Y.useImperativeHandle)(Ee,()=>({menu:F.current,focus:Te=>{var I;(I=F.current)===null||I===void 0||I.focus(Te)}})),Y.createElement(Bt,Object.assign({ref:F},de,fe))});Ht.Item=te,Ht.SubMenu=k,Ht.Divider=a,Ht.ItemGroup=v.BW;var Xt=Ht},93948:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return kt}});var v=y(59301),Y=y(29679),ge=y(40001),Ie=y(19248),ne=y(99267),se=y(92310),ye=y.n(se),ve=y(2738),a=y(36355),P=y(96663),O=y(44127),A=y(6620),c={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},w=function(){var Ke=(0,v.useRef)([]),nt=(0,v.useRef)(null);return(0,v.useEffect)(function(){var ft=Date.now(),At=!1;Ke.current.forEach(function(It){if(It){At=!0;var _=It.style;_.transitionDuration=".3s, .3s, .3s, .06s",nt.current&&ft-nt.current<100&&(_.transitionDuration="0s, 0s")}}),At&&(nt.current=Date.now())}),Ke.current},E=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],V=function(Ke){var nt=(0,O.Z)((0,O.Z)({},c),Ke),ft=nt.className,At=nt.percent,It=nt.prefixCls,_=nt.strokeColor,C=nt.strokeLinecap,et=nt.strokeWidth,$=nt.style,me=nt.trailColor,tr=nt.trailWidth,ke=nt.transition,He=(0,A.Z)(nt,E);delete He.gapPosition;var Ze=Array.isArray(At)?At:[At],X=Array.isArray(_)?_:[_],oe=w(),De=et/2,ze=100-et/2,j="M ".concat(C==="round"?De:0,",").concat(De,`
|
|
|
L `).concat(C==="round"?ze:100,",").concat(De),Pt="0 0 100 ".concat(et),Ae=0;return v.createElement("svg",(0,P.Z)({className:ye()("".concat(It,"-line"),ft),viewBox:Pt,preserveAspectRatio:"none",style:$},He),v.createElement("path",{className:"".concat(It,"-line-trail"),d:j,strokeLinecap:C,stroke:me,strokeWidth:tr||et,fillOpacity:"0"}),Ze.map(function(Zt,lr){var wt=1;switch(C){case"round":wt=1-et/100;break;case"square":wt=1-et/2/100;break;default:wt=1;break}var Mt={strokeDasharray:"".concat(Zt*wt,"px, 100px"),strokeDashoffset:"-".concat(Ae,"px"),transition:ke||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},pt=X[lr]||X[X.length-1];return Ae+=Zt,v.createElement("path",{key:lr,className:"".concat(It,"-line-path"),d:j,strokeLinecap:C,stroke:pt,strokeWidth:et,fillOpacity:"0",ref:function(Re){oe[lr]=Re},style:Mt})}))},te=V,R=y(20135),k=y(72071),U=y(47273),ae=0,x=(0,U.Z)();function z(){var Le;return x?(Le=ae,ae+=1):Le="TEST_OR_SSR",Le}var Q=function(Le){var Ke=v.useState(),nt=(0,k.Z)(Ke,2),ft=nt[0],At=nt[1];return v.useEffect(function(){At("rc_progress_".concat(z()))},[]),Le||ft},q=function(Ke){var nt=Ke.bg,ft=Ke.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:nt}},ft)};function ce(Le,Ke){return Object.keys(Le).map(function(nt){var ft=parseFloat(nt),At="".concat(Math.floor(ft*Ke),"%");return"".concat(Le[nt]," ").concat(At)})}var xe=v.forwardRef(function(Le,Ke){var nt=Le.prefixCls,ft=Le.color,At=Le.gradientId,It=Le.radius,_=Le.style,C=Le.ptg,et=Le.strokeLinecap,$=Le.strokeWidth,me=Le.size,tr=Le.gapDegree,ke=ft&&(0,R.Z)(ft)==="object",He=ke?"#FFF":void 0,Ze=me/2,X=v.createElement("circle",{className:"".concat(nt,"-circle-path"),r:It,cx:Ze,cy:Ze,stroke:He,strokeLinecap:et,strokeWidth:$,opacity:C===0?0:1,style:_,ref:Ke});if(!ke)return X;var oe="".concat(At,"-conic"),De=tr?"".concat(180+tr/2,"deg"):"0deg",ze=ce(ft,(360-tr)/360),j=ce(ft,1),Pt="conic-gradient(from ".concat(De,", ").concat(ze.join(", "),")"),Ae="linear-gradient(to ".concat(tr?"bottom":"top",", ").concat(j.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:oe},X),v.createElement("foreignObject",{x:0,y:0,width:me,height:me,mask:"url(#".concat(oe,")")},v.createElement(q,{bg:Ae},v.createElement(q,{bg:Pt}))))}),we=xe,Be=100,H=function(Ke,nt,ft,At,It,_,C,et,$,me){var tr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ke=ft/100*360*((360-_)/360),He=_===0?0:{bottom:0,top:180,left:90,right:-90}[C],Ze=(100-At)/100*nt;$==="round"&&At!==100&&(Ze+=me/2,Ze>=nt&&(Ze=nt-.01));var X=Be/2;return{stroke:typeof et=="string"?et:void 0,strokeDasharray:"".concat(nt,"px ").concat(Ke),strokeDashoffset:Ze+tr,transform:"rotate(".concat(It+ke+He,"deg)"),transformOrigin:"".concat(X,"px ").concat(X,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},L=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Z(Le){var Ke=Le!=null?Le:[];return Array.isArray(Ke)?Ke:[Ke]}var W=function(Ke){var nt=(0,O.Z)((0,O.Z)({},c),Ke),ft=nt.id,At=nt.prefixCls,It=nt.steps,_=nt.strokeWidth,C=nt.trailWidth,et=nt.gapDegree,$=et===void 0?0:et,me=nt.gapPosition,tr=nt.trailColor,ke=nt.strokeLinecap,He=nt.style,Ze=nt.className,X=nt.strokeColor,oe=nt.percent,De=(0,A.Z)(nt,L),ze=Be/2,j=Q(ft),Pt="".concat(j,"-gradient"),Ae=ze-_/2,Zt=Math.PI*2*Ae,lr=$>0?90+$/2:-90,wt=Zt*((360-$)/360),Mt=(0,R.Z)(It)==="object"?It:{count:It,space:2},pt=Mt.count,Et=Mt.space,Re=Z(oe),st=Z(X),ct=st.find(function(vr){return vr&&(0,R.Z)(vr)==="object"}),gt=ct&&(0,R.Z)(ct)==="object",Je=gt?"butt":ke,Ft=H(Zt,wt,0,100,lr,$,me,tr,Je,_),$t=w(),Wt=function(){var er=0;return Re.map(function(yr,_r){var Jt=st[_r]||st[st.length-1],Kt=H(Zt,wt,er,yr,lr,$,me,Jt,Je,_);return er+=yr,v.createElement(we,{key:_r,color:Jt,ptg:yr,radius:Ae,prefixCls:At,gradientId:Pt,style:Kt,strokeLinecap:Je,strokeWidth:_,gapDegree:$,ref:function(vt){$t[_r]=vt},size:Be})}).reverse()},gr=function(){var er=Math.round(pt*(Re[0]/100)),yr=100/pt,_r=0;return new Array(pt).fill(null).map(function(Jt,Kt){var $e=Kt<=er-1?st[0]:tr,vt=$e&&(0,R.Z)($e)==="object"?"url(#".concat(Pt,")"):void 0,at=H(Zt,wt,_r,yr,lr,$,me,$e,"butt",_,Et);return _r+=(wt-at.strokeDashoffset+Et)*100/wt,v.createElement("circle",{key:Kt,className:"".concat(At,"-circle-path"),r:Ae,cx:ze,cy:ze,stroke:vt,strokeWidth:_,opacity:1,style:at,ref:function(Nt){$t[Kt]=Nt}})})};return v.createElement("svg",(0,P.Z)({className:ye()("".concat(At,"-circle"),Ze),viewBox:"0 0 ".concat(Be," ").concat(Be),style:He,id:ft,role:"presentation"},De),!pt&&v.createElement("circle",{className:"".concat(At,"-circle-trail"),r:Ae,cx:ze,cy:ze,stroke:tr,strokeLinecap:Je,strokeWidth:C||_,style:Ft}),pt?gr():Wt())},le=W,J={Line:te,Circle:le},g=y(6848),S=y(93398);function K(Le){return!Le||Le<0?0:Le>100?100:Le}function G(Le){let{success:Ke,successPercent:nt}=Le,ft=nt;return Ke&&"progress"in Ke&&(ft=Ke.progress),Ke&&"percent"in Ke&&(ft=Ke.percent),ft}const Pe=Le=>{let{percent:Ke,success:nt,successPercent:ft}=Le;const At=K(G({success:nt,successPercent:ft}));return[At,K(K(Ke)-At)]},Ne=Le=>{let{success:Ke={},strokeColor:nt}=Le;const{strokeColor:ft}=Ke;return[ft||S.presetPrimaryColors.green,nt||null]},Ue=(Le,Ke,nt)=>{var ft,At,It,_;let C=-1,et=-1;if(Ke==="step"){const $=nt.steps,me=nt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(C=Le==="small"?2:14,et=me!=null?me:8):typeof Le=="number"?[C,et]=[Le,Le]:[C=14,et=8]=Le,C*=$}else if(Ke==="line"){const $=nt==null?void 0:nt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?et=$||(Le==="small"?6:8):typeof Le=="number"?[C,et]=[Le,Le]:[C=-1,et=8]=Le}else(Ke==="circle"||Ke==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[C,et]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[C,et]=[Le,Le]:(C=(At=(ft=Le[0])!==null&&ft!==void 0?ft:Le[1])!==null&&At!==void 0?At:120,et=(_=(It=Le[0])!==null&&It!==void 0?It:Le[1])!==null&&_!==void 0?_:120));return[C,et]},Ve=3,qe=Le=>Ve/Le*100;var lt=Le=>{const{prefixCls:Ke,trailColor:nt=null,strokeLinecap:ft="round",gapPosition:At,gapDegree:It,width:_=120,type:C,children:et,success:$,size:me=_}=Le,[tr,ke]=Ue(me,"circle");let{strokeWidth:He}=Le;He===void 0&&(He=Math.max(qe(tr),6));const Ze={width:tr,height:ke,fontSize:tr*.15+6},X=v.useMemo(()=>{if(It||It===0)return It;if(C==="dashboard")return 75},[It,C]),oe=At||C==="dashboard"&&"bottom"||void 0,De=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",ze=Ne({success:$,strokeColor:Le.strokeColor}),j=ye()(`${Ke}-inner`,{[`${Ke}-circle-gradient`]:De}),Pt=v.createElement(le,{percent:Pe(Le),strokeWidth:He,trailWidth:He,strokeColor:ze,strokeLinecap:ft,trailColor:nt,prefixCls:Ke,gapDegree:X,gapPosition:oe});return v.createElement("div",{className:j,style:Ze},tr<=20?v.createElement(g.Z,{title:et},v.createElement("span",null,Pt)):v.createElement(v.Fragment,null,Pt,et))},Ut=function(Le,Ke){var nt={};for(var ft in Le)Object.prototype.hasOwnProperty.call(Le,ft)&&Ke.indexOf(ft)<0&&(nt[ft]=Le[ft]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,ft=Object.getOwnPropertySymbols(Le);At<ft.length;At++)Ke.indexOf(ft[At])<0&&Object.prototype.propertyIsEnumerable.call(Le,ft[At])&&(nt[ft[At]]=Le[ft[At]]);return nt};const Yt=Le=>{let Ke=[];return Object.keys(Le).forEach(nt=>{const ft=parseFloat(nt.replace(/%/g,""));isNaN(ft)||Ke.push({key:ft,value:Le[nt]})}),Ke=Ke.sort((nt,ft)=>nt.key-ft.key),Ke.map(nt=>{let{key:ft,value:At}=nt;return`${At} ${ft}%`}).join(", ")},sr=(Le,Ke)=>{const{from:nt=S.presetPrimaryColors.blue,to:ft=S.presetPrimaryColors.blue,direction:At=Ke==="rtl"?"to left":"to right"}=Le,It=Ut(Le,["from","to","direction"]);if(Object.keys(It).length!==0){const _=Yt(It);return{backgroundImage:`linear-gradient(${At}, ${_})`}}return{backgroundImage:`linear-gradient(${At}, ${nt}, ${ft})`}};var Ht=Le=>{const{prefixCls:Ke,direction:nt,percent:ft,size:At,strokeWidth:It,strokeColor:_,strokeLinecap:C="round",children:et,trailColor:$=null,success:me}=Le,tr=_&&typeof _!="string"?sr(_,nt):{backgroundColor:_},ke=C==="square"||C==="butt"?0:void 0,He={backgroundColor:$||void 0,borderRadius:ke},Ze=At!=null?At:[-1,It||(At==="small"?6:8)],[X,oe]=Ue(Ze,"line",{strokeWidth:It}),De=Object.assign({width:`${K(ft)}%`,height:oe,borderRadius:ke},tr),ze=G(Le),j={width:`${K(ze)}%`,height:oe,borderRadius:ke,backgroundColor:me==null?void 0:me.strokeColor},Pt={width:X<0?"100%":X,height:oe};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${Ke}-outer`,style:Pt},v.createElement("div",{className:`${Ke}-inner`,style:He},v.createElement("div",{className:`${Ke}-bg`,style:De}),ze!==void 0?v.createElement("div",{className:`${Ke}-success-bg`,style:j}):null)),et)},de=Le=>{const{size:Ke,steps:nt,percent:ft=0,strokeWidth:At=8,strokeColor:It,trailColor:_=null,prefixCls:C,children:et}=Le,$=Math.round(nt*(ft/100)),me=Ke==="small"?2:14,tr=Ke!=null?Ke:[me,At],[ke,He]=Ue(tr,"step",{steps:nt,strokeWidth:At}),Ze=ke/nt,X=new Array(nt);for(let oe=0;oe<nt;oe++){const De=Array.isArray(It)?It[oe]:It;X[oe]=v.createElement("div",{key:oe,className:ye()(`${C}-steps-item`,{[`${C}-steps-item-active`]:oe<=$-1}),style:{backgroundColor:oe<=$-1?De:_,width:Ze,height:He}})}return v.createElement("div",{className:`${C}-steps-outer`},X,et)},Ee=y(93083),F=y(17313),fe=y(83116),Te=y(37613);const I=Le=>{const Ke=Le?"100%":"-100%";return new Ee.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ke}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ke}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ee=Le=>{const{componentCls:Ke,iconCls:nt}=Le;return{[Ke]:Object.assign(Object.assign({},(0,F.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${Ke}-outer`]:{display:"inline-block",width:"100%"},[`&${Ke}-show-info`]:{[`${Ke}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${Ke}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.defaultColor}},[`${Ke}-success-bg, ${Ke}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${Ke}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${Ke}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[nt]:{fontSize:Le.fontSize}},[`&${Ke}-status-active`]:{[`${Ke}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:I(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ke}-rtl${Ke}-status-active`]:{[`${Ke}-bg::before`]:{animationName:I(!0)}},[`&${Ke}-status-exception`]:{[`${Ke}-bg`]:{backgroundColor:Le.colorError},[`${Ke}-text`]:{color:Le.colorError}},[`&${Ke}-status-exception ${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.colorError}},[`&${Ke}-status-success`]:{[`${Ke}-bg`]:{backgroundColor:Le.colorSuccess},[`${Ke}-text`]:{color:Le.colorSuccess}},[`&${Ke}-status-success ${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.colorSuccess}}})}},he=Le=>{const{componentCls:Ke,iconCls:nt}=Le;return{[Ke]:{[`${Ke}-circle-trail`]:{stroke:Le.remainingColor},[`&${Ke}-circle ${Ke}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ke}-circle ${Ke}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[nt]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${Ke}-circle&-status-exception`]:{[`${Ke}-text`]:{color:Le.colorError}},[`${Ke}-circle&-status-success`]:{[`${Ke}-text`]:{color:Le.colorSuccess}}},[`${Ke}-inline-circle`]:{lineHeight:1,[`${Ke}-inner`]:{verticalAlign:"bottom"}}}},be=Le=>{const{componentCls:Ke}=Le;return{[Ke]:{[`${Ke}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},Oe=Le=>{const{componentCls:Ke,iconCls:nt}=Le;return{[Ke]:{[`${Ke}-small&-line, ${Ke}-small&-line ${Ke}-text ${nt}`]:{fontSize:Le.fontSizeSM}}}};var Fe=(0,fe.Z)("Progress",Le=>{const Ke=Le.marginXXS/2,nt=(0,Te.TS)(Le,{progressStepMarginInlineEnd:Ke,progressStepMinWidth:Ke,progressActiveMotionDuration:"2.4s"});return[ee(nt),he(nt),be(nt),Oe(nt)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Qe=function(Le,Ke){var nt={};for(var ft in Le)Object.prototype.hasOwnProperty.call(Le,ft)&&Ke.indexOf(ft)<0&&(nt[ft]=Le[ft]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,ft=Object.getOwnPropertySymbols(Le);At<ft.length;At++)Ke.indexOf(ft[At])<0&&Object.prototype.propertyIsEnumerable.call(Le,ft[At])&&(nt[ft[At]]=Le[ft[At]]);return nt};const ht=null,ot=["normal","exception","active","success"];var Dt=v.forwardRef((Le,Ke)=>{const{prefixCls:nt,className:ft,rootClassName:At,steps:It,strokeColor:_,percent:C=0,size:et="default",showInfo:$=!0,type:me="line",status:tr,format:ke,style:He}=Le,Ze=Qe(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),X=v.useMemo(()=>{var Re,st;const ct=G(Le);return parseInt(ct!==void 0?(Re=ct!=null?ct:0)===null||Re===void 0?void 0:Re.toString():(st=C!=null?C:0)===null||st===void 0?void 0:st.toString(),10)},[C,Le.success,Le.successPercent]),oe=v.useMemo(()=>!ot.includes(tr)&&X>=100?"success":tr||"normal",[tr,X]),{getPrefixCls:De,direction:ze,progress:j}=v.useContext(a.E_),Pt=De("progress",nt),[Ae,Zt]=Fe(Pt),lr=v.useMemo(()=>{if(!$)return null;const Re=G(Le);let st;const ct=ke||(Je=>`${Je}%`),gt=me==="line";return ke||oe!=="exception"&&oe!=="success"?st=ct(K(C),K(Re)):oe==="exception"?st=gt?v.createElement(Ie.Z,null):v.createElement(ne.Z,null):oe==="success"&&(st=gt?v.createElement(Y.Z,null):v.createElement(ge.Z,null)),v.createElement("span",{className:`${Pt}-text`,title:typeof st=="string"?st:void 0},st)},[$,C,X,oe,me,Pt,ke]),wt=Array.isArray(_)?_[0]:_,Mt=typeof _=="string"||Array.isArray(_)?_:void 0;let pt;me==="line"?pt=It?v.createElement(de,Object.assign({},Le,{strokeColor:Mt,prefixCls:Pt,steps:It}),lr):v.createElement(Ht,Object.assign({},Le,{strokeColor:wt,prefixCls:Pt,direction:ze}),lr):(me==="circle"||me==="dashboard")&&(pt=v.createElement(lt,Object.assign({},Le,{strokeColor:wt,prefixCls:Pt,progressStatus:oe}),lr));const Et=ye()(Pt,`${Pt}-status-${oe}`,`${Pt}-${me==="dashboard"&&"circle"||It&&"steps"||me}`,{[`${Pt}-inline-circle`]:me==="circle"&&Ue(et,"circle")[0]<=20,[`${Pt}-show-info`]:$,[`${Pt}-${et}`]:typeof et=="string",[`${Pt}-rtl`]:ze==="rtl"},j==null?void 0:j.className,ft,At,Zt);return Ae(v.createElement("div",Object.assign({ref:Ke,style:Object.assign(Object.assign({},j==null?void 0:j.style),He),className:Et,role:"progressbar","aria-valuenow":X},(0,ve.Z)(Ze,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),pt))}),kt=Dt},13570:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return K}});var v=y(96663),Y=y(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ie=ge,ne=y(7657),se=function(Pe,Ne){return Y.createElement(ne.Z,(0,v.Z)({},Pe,{ref:Ne,icon:Ie}))},ye=Y.forwardRef(se),ve=ye,a=y(92310),P=y.n(a),O=y(90493),A=y(72071),c=y(6620),w=y(18929),E=y(10228),V=y(26112);function te(G,Pe){var Ne=G.disabled,Ue=G.prefixCls,Ve=G.character,qe=G.characterRender,tt=G.index,lt=G.count,Ut=G.value,Yt=G.allowHalf,sr=G.focused,Bt=G.onHover,Ht=G.onClick,Xt=function(he){Bt(he,tt)},de=function(he){Ht(he,tt)},Ee=function(he){he.keyCode===E.Z.ENTER&&Ht(he,tt)},F=tt+1,fe=new Set([Ue]);Ut===0&&tt===0&&sr?fe.add("".concat(Ue,"-focused")):Yt&&Ut+.5>=F&&Ut<F?(fe.add("".concat(Ue,"-half")),fe.add("".concat(Ue,"-active")),sr&&fe.add("".concat(Ue,"-focused"))):(F<=Ut?fe.add("".concat(Ue,"-full")):fe.add("".concat(Ue,"-zero")),F===Ut&&sr&&fe.add("".concat(Ue,"-focused")));var Te=typeof Ve=="function"?Ve(G):Ve,I=Y.createElement("li",{className:P()(Array.from(fe)),ref:Pe},Y.createElement("div",{onClick:Ne?null:de,onKeyDown:Ne?null:Ee,onMouseMove:Ne?null:Xt,role:"radio","aria-checked":Ut>tt?"true":"false","aria-posinset":tt+1,"aria-setsize":lt,tabIndex:Ne?-1:0},Y.createElement("div",{className:"".concat(Ue,"-first")},Te),Y.createElement("div",{className:"".concat(Ue,"-second")},Te)));return qe&&(I=qe(I,G)),I}var R=Y.forwardRef(te);function k(){var G=Y.useRef({});function Pe(Ue){return G.current[Ue]}function Ne(Ue){return function(Ve){G.current[Ue]=Ve}}return[Pe,Ne]}function U(G){var Pe=G.pageXOffset,Ne="scrollLeft";if(typeof Pe!="number"){var Ue=G.document;Pe=Ue.documentElement[Ne],typeof Pe!="number"&&(Pe=Ue.body[Ne])}return Pe}function ae(G){var Pe,Ne,Ue=G.ownerDocument,Ve=Ue.body,qe=Ue&&Ue.documentElement,tt=G.getBoundingClientRect();return Pe=tt.left,Ne=tt.top,Pe-=qe.clientLeft||Ve.clientLeft||0,Ne-=qe.clientTop||Ve.clientTop||0,{left:Pe,top:Ne}}function x(G){var Pe=ae(G),Ne=G.ownerDocument,Ue=Ne.defaultView||Ne.parentWindow;return Pe.left+=U(Ue),Pe.left}var z=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Q(G,Pe){var Ne,Ue=G.prefixCls,Ve=Ue===void 0?"rc-rate":Ue,qe=G.className,tt=G.defaultValue,lt=G.value,Ut=G.count,Yt=Ut===void 0?5:Ut,sr=G.allowHalf,Bt=sr===void 0?!1:sr,Ht=G.allowClear,Xt=Ht===void 0?!0:Ht,de=G.character,Ee=de===void 0?"\u2605":de,F=G.characterRender,fe=G.disabled,Te=G.direction,I=Te===void 0?"ltr":Te,ee=G.tabIndex,he=ee===void 0?0:ee,be=G.autoFocus,Oe=G.onHoverChange,Fe=G.onChange,Qe=G.onFocus,ht=G.onBlur,ot=G.onKeyDown,Xe=G.onMouseLeave,Dt=(0,c.Z)(G,z),kt=k(),Le=(0,A.Z)(kt,2),Ke=Le[0],nt=Le[1],ft=Y.useRef(null),At=function(){if(!fe){var Je;(Je=ft.current)===null||Je===void 0||Je.focus()}};Y.useImperativeHandle(Pe,function(){return{focus:At,blur:function(){if(!fe){var Je;(Je=ft.current)===null||Je===void 0||Je.blur()}}}});var It=(0,w.Z)(tt||0,{value:lt}),_=(0,A.Z)(It,2),C=_[0],et=_[1],$=(0,w.Z)(null),me=(0,A.Z)($,2),tr=me[0],ke=me[1],He=function(Je,Ft){var $t=I==="rtl",Wt=Je+1;if(Bt){var gr=Ke(Je),vr=x(gr),er=gr.clientWidth;($t&&Ft-vr>er/2||!$t&&Ft-vr<er/2)&&(Wt-=.5)}return Wt},Ze=function(Je){et(Je),Fe==null||Fe(Je)},X=Y.useState(!1),oe=(0,A.Z)(X,2),De=oe[0],ze=oe[1],j=function(){ze(!0),Qe==null||Qe()},Pt=function(){ze(!1),ht==null||ht()},Ae=Y.useState(null),Zt=(0,A.Z)(Ae,2),lr=Zt[0],wt=Zt[1],Mt=function(Je,Ft){var $t=He(Ft,Je.pageX);$t!==tr&&(wt($t),ke(null)),Oe==null||Oe($t)},pt=function(Je){fe||(wt(null),ke(null),Oe==null||Oe(void 0)),Je&&(Xe==null||Xe(Je))},Et=function(Je,Ft){var $t=He(Ft,Je.pageX),Wt=!1;Xt&&(Wt=$t===C),pt(),Ze(Wt?0:$t),ke(Wt?$t:null)},Re=function(Je){var Ft=Je.keyCode,$t=I==="rtl",Wt=C;Ft===E.Z.RIGHT&&Wt<Yt&&!$t?(Bt?Wt+=.5:Wt+=1,Ze(Wt),Je.preventDefault()):Ft===E.Z.LEFT&&Wt>0&&!$t||Ft===E.Z.RIGHT&&Wt>0&&$t?(Bt?Wt-=.5:Wt-=1,Ze(Wt),Je.preventDefault()):Ft===E.Z.LEFT&&Wt<Yt&&$t&&(Bt?Wt+=.5:Wt+=1,Ze(Wt),Je.preventDefault()),ot==null||ot(Je)};Y.useEffect(function(){be&&!fe&&At()},[]);var st=new Array(Yt).fill(0).map(function(gt,Je){return Y.createElement(R,{ref:nt(Je),index:Je,count:Yt,disabled:fe,prefixCls:"".concat(Ve,"-star"),allowHalf:Bt,value:lr===null?C:lr,onClick:Et,onHover:Mt,key:gt||Je,character:Ee,characterRender:F,focused:De})}),ct=P()(Ve,qe,(Ne={},(0,O.Z)(Ne,"".concat(Ve,"-disabled"),fe),(0,O.Z)(Ne,"".concat(Ve,"-rtl"),I==="rtl"),Ne));return Y.createElement("ul",(0,v.Z)({className:ct,onMouseLeave:pt,tabIndex:fe?-1:he,onFocus:fe?null:j,onBlur:fe?null:Pt,onKeyDown:fe?null:Re,ref:ft,role:"radiogroup"},(0,V.Z)(Dt,{aria:!0,data:!0,attr:!0})),st)}var q=Y.forwardRef(Q),ce=q,xe=y(36355),we=y(6848),Be=y(17313),H=y(83116),L=y(37613);const Z=G=>{const{componentCls:Pe}=G;return{[`${Pe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:G.marginXS},"> div":{transition:`all ${G.motionDurationMid}, outline 0s`,"&:hover":{transform:G.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${G.lineWidth}px dashed ${G.starColor}`,transform:G.starHoverScale}},"&-first, &-second":{color:G.starBg,transition:`all ${G.motionDurationMid}`,userSelect:"none",[G.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pe}-star-first, &-half ${Pe}-star-second`]:{opacity:1},[`&-half ${Pe}-star-first, &-full ${Pe}-star-second`]:{color:"inherit"}}}},W=G=>({[`&-rtl${G.componentCls}`]:{direction:"rtl"}}),le=G=>{const{componentCls:Pe}=G;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(G)),{display:"inline-block",margin:0,padding:0,color:G.starColor,fontSize:G.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pe} ${Pe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Z(G)),{[`+ ${Pe}-text`]:{display:"inline-block",marginInlineStart:G.marginXS,fontSize:G.fontSize}}),W(G))}};var J=(0,H.Z)("Rate",G=>{const Pe=(0,L.TS)(G,{});return[le(Pe)]},G=>({starColor:G.yellow6,starSize:G.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:G.colorFillContent})),g=function(G,Pe){var Ne={};for(var Ue in G)Object.prototype.hasOwnProperty.call(G,Ue)&&Pe.indexOf(Ue)<0&&(Ne[Ue]=G[Ue]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ue=Object.getOwnPropertySymbols(G);Ve<Ue.length;Ve++)Pe.indexOf(Ue[Ve])<0&&Object.prototype.propertyIsEnumerable.call(G,Ue[Ve])&&(Ne[Ue[Ve]]=G[Ue[Ve]]);return Ne},K=Y.forwardRef((G,Pe)=>{const{prefixCls:Ne,className:Ue,rootClassName:Ve,style:qe,tooltips:tt,character:lt=Y.createElement(ve,null)}=G,Ut=g(G,["prefixCls","className","rootClassName","style","tooltips","character"]),Yt=(fe,Te)=>{let{index:I}=Te;return tt?Y.createElement(we.Z,{title:tt[I]},fe):fe},{getPrefixCls:sr,direction:Bt,rate:Ht}=Y.useContext(xe.E_),Xt=sr("rate",Ne),[de,Ee]=J(Xt),F=Object.assign(Object.assign({},Ht==null?void 0:Ht.style),qe);return de(Y.createElement(ce,Object.assign({ref:Pe,character:lt,characterRender:Yt},Ut,{className:P()(Ue,Ve,Ee,Ht==null?void 0:Ht.className),style:F,prefixCls:Xt,direction:Bt})))})},61621:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Ee}});var v=y(92310),Y=y.n(v),ge=y(59301),Ie=y(36355),ne=y(2738),ye=F=>{const{prefixCls:fe,className:Te,style:I,size:ee,shape:he}=F,be=Y()({[`${fe}-lg`]:ee==="large",[`${fe}-sm`]:ee==="small"}),Oe=Y()({[`${fe}-circle`]:he==="circle",[`${fe}-square`]:he==="square",[`${fe}-round`]:he==="round"}),Fe=ge.useMemo(()=>typeof ee=="number"?{width:ee,height:ee,lineHeight:`${ee}px`}:{},[ee]);return ge.createElement("span",{className:Y()(fe,be,Oe,Te),style:Object.assign(Object.assign({},Fe),I)})},ve=y(93083),a=y(83116),P=y(37613);const O=new ve.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),A=F=>({height:F,lineHeight:`${F}px`}),c=F=>Object.assign({width:F},A(F)),w=F=>({background:F.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:O,animationDuration:F.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=F=>Object.assign({width:F*5,minWidth:F*5},A(F)),V=F=>{const{skeletonAvatarCls:fe,gradientFromColor:Te,controlHeight:I,controlHeightLG:ee,controlHeightSM:he}=F;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te},c(I)),[`${fe}${fe}-circle`]:{borderRadius:"50%"},[`${fe}${fe}-lg`]:Object.assign({},c(ee)),[`${fe}${fe}-sm`]:Object.assign({},c(he))}},te=F=>{const{controlHeight:fe,borderRadiusSM:Te,skeletonInputCls:I,controlHeightLG:ee,controlHeightSM:he,gradientFromColor:be}=F;return{[`${I}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:be,borderRadius:Te},E(fe)),[`${I}-lg`]:Object.assign({},E(ee)),[`${I}-sm`]:Object.assign({},E(he))}},R=F=>Object.assign({width:F},A(F)),k=F=>{const{skeletonImageCls:fe,imageSizeBase:Te,gradientFromColor:I,borderRadiusSM:ee}=F;return{[`${fe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:I,borderRadius:ee},R(Te*2)),{[`${fe}-path`]:{fill:"#bfbfbf"},[`${fe}-svg`]:Object.assign(Object.assign({},R(Te)),{maxWidth:Te*4,maxHeight:Te*4}),[`${fe}-svg${fe}-svg-circle`]:{borderRadius:"50%"}}),[`${fe}${fe}-circle`]:{borderRadius:"50%"}}},U=(F,fe,Te)=>{const{skeletonButtonCls:I}=F;return{[`${Te}${I}-circle`]:{width:fe,minWidth:fe,borderRadius:"50%"},[`${Te}${I}-round`]:{borderRadius:fe}}},ae=F=>Object.assign({width:F*2,minWidth:F*2},A(F)),x=F=>{const{borderRadiusSM:fe,skeletonButtonCls:Te,controlHeight:I,controlHeightLG:ee,controlHeightSM:he,gradientFromColor:be}=F;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:be,borderRadius:fe,width:I*2,minWidth:I*2},ae(I))},U(F,I,Te)),{[`${Te}-lg`]:Object.assign({},ae(ee))}),U(F,ee,`${Te}-lg`)),{[`${Te}-sm`]:Object.assign({},ae(he))}),U(F,he,`${Te}-sm`))},z=F=>{const{componentCls:fe,skeletonAvatarCls:Te,skeletonTitleCls:I,skeletonParagraphCls:ee,skeletonButtonCls:he,skeletonInputCls:be,skeletonImageCls:Oe,controlHeight:Fe,controlHeightLG:Qe,controlHeightSM:ht,gradientFromColor:ot,padding:Xe,marginSM:Dt,borderRadius:kt,titleHeight:Le,blockRadius:Ke,paragraphLiHeight:nt,controlHeightXS:ft,paragraphMarginTop:At}=F;return{[`${fe}`]:{display:"table",width:"100%",[`${fe}-header`]:{display:"table-cell",paddingInlineEnd:Xe,verticalAlign:"top",[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ot},c(Fe)),[`${Te}-circle`]:{borderRadius:"50%"},[`${Te}-lg`]:Object.assign({},c(Qe)),[`${Te}-sm`]:Object.assign({},c(ht))},[`${fe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${I}`]:{width:"100%",height:Le,background:ot,borderRadius:Ke,[`+ ${ee}`]:{marginBlockStart:ht}},[`${ee}`]:{padding:0,"> li":{width:"100%",height:nt,listStyle:"none",background:ot,borderRadius:Ke,"+ li":{marginBlockStart:ft}}},[`${ee}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${fe}-content`]:{[`${I}, ${ee} > li`]:{borderRadius:kt}}},[`${fe}-with-avatar ${fe}-content`]:{[`${I}`]:{marginBlockStart:Dt,[`+ ${ee}`]:{marginBlockStart:At}}},[`${fe}${fe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},x(F)),V(F)),te(F)),k(F)),[`${fe}${fe}-block`]:{width:"100%",[`${he}`]:{width:"100%"},[`${be}`]:{width:"100%"}},[`${fe}${fe}-active`]:{[`
|
|
|
${I},
|
|
|
${ee} > li,
|
|
|
${Te},
|
|
|
${he},
|
|
|
${be},
|
|
|
${Oe}
|
|
|
`]:Object.assign({},w(F))}}};var Q=(0,a.Z)("Skeleton",F=>{const{componentCls:fe}=F,Te=(0,P.TS)(F,{skeletonAvatarCls:`${fe}-avatar`,skeletonTitleCls:`${fe}-title`,skeletonParagraphCls:`${fe}-paragraph`,skeletonButtonCls:`${fe}-button`,skeletonInputCls:`${fe}-input`,skeletonImageCls:`${fe}-image`,imageSizeBase:F.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${F.gradientFromColor} 25%, ${F.gradientToColor} 37%, ${F.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[z(Te)]},F=>{const{colorFillContent:fe,colorFill:Te}=F,I=fe,ee=Te;return{color:I,colorGradientEnd:ee,gradientFromColor:I,gradientToColor:ee,titleHeight:F.controlHeight/2,blockRadius:F.borderRadiusSM,paragraphMarginTop:F.marginLG+F.marginXXS,paragraphLiHeight:F.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ce=F=>{const{prefixCls:fe,className:Te,rootClassName:I,active:ee,shape:he="circle",size:be="default"}=F,{getPrefixCls:Oe}=ge.useContext(Ie.E_),Fe=Oe("skeleton",fe),[Qe,ht]=Q(Fe),ot=(0,ne.Z)(F,["prefixCls","className"]),Xe=Y()(Fe,`${Fe}-element`,{[`${Fe}-active`]:ee},Te,I,ht);return Qe(ge.createElement("div",{className:Xe},ge.createElement(ye,Object.assign({prefixCls:`${Fe}-avatar`,shape:he,size:be},ot))))},we=F=>{const{prefixCls:fe,className:Te,rootClassName:I,active:ee,block:he=!1,size:be="default"}=F,{getPrefixCls:Oe}=ge.useContext(Ie.E_),Fe=Oe("skeleton",fe),[Qe,ht]=Q(Fe),ot=(0,ne.Z)(F,["prefixCls"]),Xe=Y()(Fe,`${Fe}-element`,{[`${Fe}-active`]:ee,[`${Fe}-block`]:he},Te,I,ht);return Qe(ge.createElement("div",{className:Xe},ge.createElement(ye,Object.assign({prefixCls:`${Fe}-button`,size:be},ot))))};const Be="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var L=F=>{const{prefixCls:fe,className:Te,rootClassName:I,style:ee,active:he}=F,{getPrefixCls:be}=ge.useContext(Ie.E_),Oe=be("skeleton",fe),[Fe,Qe]=Q(Oe),ht=Y()(Oe,`${Oe}-element`,{[`${Oe}-active`]:he},Te,I,Qe);return Fe(ge.createElement("div",{className:ht},ge.createElement("div",{className:Y()(`${Oe}-image`,Te),style:ee},ge.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Oe}-image-svg`},ge.createElement("path",{d:Be,className:`${Oe}-image-path`})))))},W=F=>{const{prefixCls:fe,className:Te,rootClassName:I,active:ee,block:he,size:be="default"}=F,{getPrefixCls:Oe}=ge.useContext(Ie.E_),Fe=Oe("skeleton",fe),[Qe,ht]=Q(Fe),ot=(0,ne.Z)(F,["prefixCls"]),Xe=Y()(Fe,`${Fe}-element`,{[`${Fe}-active`]:ee,[`${Fe}-block`]:he},Te,I,ht);return Qe(ge.createElement("div",{className:Xe},ge.createElement(ye,Object.assign({prefixCls:`${Fe}-input`,size:be},ot))))},le=y(96663),J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=J,S=y(7657),K=function(fe,Te){return ge.createElement(S.Z,(0,le.Z)({},fe,{ref:Te,icon:g}))},G=ge.forwardRef(K),Pe=G,Ue=F=>{const{prefixCls:fe,className:Te,rootClassName:I,style:ee,active:he,children:be}=F,{getPrefixCls:Oe}=ge.useContext(Ie.E_),Fe=Oe("skeleton",fe),[Qe,ht]=Q(Fe),ot=Y()(Fe,`${Fe}-element`,{[`${Fe}-active`]:he},ht,Te,I),Xe=be!=null?be:ge.createElement(Pe,null);return Qe(ge.createElement("div",{className:ot},ge.createElement("div",{className:Y()(`${Fe}-image`,Te),style:ee},Xe)))},Ve=y(19127),tt=F=>{const fe=Oe=>{const{width:Fe,rows:Qe=2}=F;if(Array.isArray(Fe))return Fe[Oe];if(Qe-1===Oe)return Fe},{prefixCls:Te,className:I,style:ee,rows:he}=F,be=(0,Ve.Z)(Array(he)).map((Oe,Fe)=>ge.createElement("li",{key:Fe,style:{width:fe(Fe)}}));return ge.createElement("ul",{className:Y()(Te,I),style:ee},be)},Ut=F=>{let{prefixCls:fe,className:Te,width:I,style:ee}=F;return ge.createElement("h3",{className:Y()(fe,Te),style:Object.assign({width:I},ee)})};function Yt(F){return F&&typeof F=="object"?F:{}}function sr(F,fe){return F&&!fe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Bt(F,fe){return!F&&fe?{width:"38%"}:F&&fe?{width:"50%"}:{}}function Ht(F,fe){const Te={};return(!F||!fe)&&(Te.width="61%"),!F&&fe?Te.rows=3:Te.rows=2,Te}const Xt=F=>{const{prefixCls:fe,loading:Te,className:I,rootClassName:ee,style:he,children:be,avatar:Oe=!1,title:Fe=!0,paragraph:Qe=!0,active:ht,round:ot}=F,{getPrefixCls:Xe,direction:Dt,skeleton:kt}=ge.useContext(Ie.E_),Le=Xe("skeleton",fe),[Ke,nt]=Q(Le);if(Te||!("loading"in F)){const ft=!!Oe,At=!!Fe,It=!!Qe;let _;if(ft){const $=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},sr(At,It)),Yt(Oe));_=ge.createElement("div",{className:`${Le}-header`},ge.createElement(ye,Object.assign({},$)))}let C;if(At||It){let $;if(At){const tr=Object.assign(Object.assign({prefixCls:`${Le}-title`},Bt(ft,It)),Yt(Fe));$=ge.createElement(Ut,Object.assign({},tr))}let me;if(It){const tr=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},Ht(ft,At)),Yt(Qe));me=ge.createElement(tt,Object.assign({},tr))}C=ge.createElement("div",{className:`${Le}-content`},$,me)}const et=Y()(Le,{[`${Le}-with-avatar`]:ft,[`${Le}-active`]:ht,[`${Le}-rtl`]:Dt==="rtl",[`${Le}-round`]:ot},kt==null?void 0:kt.className,I,ee,nt);return Ke(ge.createElement("div",{className:et,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),he)},_,C))}return typeof be!="undefined"?be:null};Xt.Button=we,Xt.Avatar=ce,Xt.Input=W,Xt.Image=L,Xt.Node=Ue;var de=Xt,Ee=de},81327:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return te}});var v=y(59301),Y=y(92310),ge=y.n(Y),Ie=y(11592),ne=y(36355),se=y(33234);const ye=v.createContext({latestIndex:0}),ve=ye.Provider;var P=R=>{let{className:k,index:U,children:ae,split:x,style:z}=R;const{latestIndex:Q}=v.useContext(ye);return ae==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:k,style:z},ae),U<Q&&x&&v.createElement("span",{className:`${k}-split`},x))},O=y(2856);function A(R){return["small","middle","large"].includes(R)}function c(R){return R?typeof R=="number"&&!Number.isNaN(R):!1}var w=function(R,k){var U={};for(var ae in R)Object.prototype.hasOwnProperty.call(R,ae)&&k.indexOf(ae)<0&&(U[ae]=R[ae]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,ae=Object.getOwnPropertySymbols(R);x<ae.length;x++)k.indexOf(ae[x])<0&&Object.prototype.propertyIsEnumerable.call(R,ae[x])&&(U[ae[x]]=R[ae[x]]);return U};const V=v.forwardRef((R,k)=>{var U,ae;const{getPrefixCls:x,space:z,direction:Q}=v.useContext(ne.E_),{size:q=(z==null?void 0:z.size)||"small",align:ce,className:xe,rootClassName:we,children:Be,direction:H="horizontal",prefixCls:L,split:Z,style:W,wrap:le=!1,classNames:J,styles:g}=R,S=w(R,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[K,G]=Array.isArray(q)?q:[q,q],Pe=A(G),Ne=A(K),Ue=c(G),Ve=c(K),qe=(0,Ie.Z)(Be,{keepEmpty:!0}),tt=ce===void 0&&H==="horizontal"?"center":ce,lt=x("space",L),[Ut,Yt]=(0,O.Z)(lt),sr=ge()(lt,z==null?void 0:z.className,Yt,`${lt}-${H}`,{[`${lt}-rtl`]:Q==="rtl",[`${lt}-align-${tt}`]:tt,[`${lt}-gap-row-${G}`]:Pe,[`${lt}-gap-col-${K}`]:Ne},xe,we),Bt=ge()(`${lt}-item`,(U=J==null?void 0:J.item)!==null&&U!==void 0?U:(ae=z==null?void 0:z.classNames)===null||ae===void 0?void 0:ae.item);let Ht=0;const Xt=qe.map((F,fe)=>{var Te,I;F!=null&&(Ht=fe);const ee=F&&F.key||`${Bt}-${fe}`;return v.createElement(P,{className:Bt,key:ee,index:fe,split:Z,style:(Te=g==null?void 0:g.item)!==null&&Te!==void 0?Te:(I=z==null?void 0:z.styles)===null||I===void 0?void 0:I.item},F)}),de=v.useMemo(()=>({latestIndex:Ht}),[Ht]);if(qe.length===0)return null;const Ee={};return le&&(Ee.flexWrap="wrap"),!Ne&&Ve&&(Ee.columnGap=K),!Pe&&Ue&&(Ee.rowGap=G),Ut(v.createElement("div",Object.assign({ref:k,className:sr,style:Object.assign(Object.assign(Object.assign({},Ee),z==null?void 0:z.style),W)},S),v.createElement(ve,{value:de},Xt)))});V.Compact=se.ZP;var te=V},31797:function(Qt,it,y){"use strict";y.d(it,{default:function(){return Q}});var v=y(59301),Y=y(56762),ge=y(92343),Ie=y(92310),ne=y.n(Ie),se=y(36355),ye=y(61621),a=q=>{const{value:ce,formatter:xe,precision:we,decimalSeparator:Be,groupSeparator:H="",prefixCls:L}=q;let Z;if(typeof xe=="function")Z=xe(ce);else{const W=String(ce),le=W.match(/^(-?)(\d*)(\.(\d+))?$/);if(!le||W==="-")Z=W;else{const J=le[1];let g=le[2]||"0",S=le[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,H),typeof we=="number"&&(S=S.padEnd(we,"0").slice(0,we>0?we:0)),S&&(S=`${Be}${S}`),Z=[v.createElement("span",{key:"int",className:`${L}-content-value-int`},J,g),S&&v.createElement("span",{key:"decimal",className:`${L}-content-value-decimal`},S)]}}return v.createElement("span",{className:`${L}-content-value`},Z)},P=y(17313),O=y(83116),A=y(37613);const c=q=>{const{componentCls:ce,marginXXS:xe,padding:we,colorTextDescription:Be,titleFontSize:H,colorTextHeading:L,contentFontSize:Z,fontFamily:W}=q;return{[`${ce}`]:Object.assign(Object.assign({},(0,P.Wf)(q)),{[`${ce}-title`]:{marginBottom:xe,color:Be,fontSize:H},[`${ce}-skeleton`]:{paddingTop:we},[`${ce}-content`]:{color:L,fontSize:Z,fontFamily:W,[`${ce}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ce}-content-prefix, ${ce}-content-suffix`]:{display:"inline-block"},[`${ce}-content-prefix`]:{marginInlineEnd:xe},[`${ce}-content-suffix`]:{marginInlineStart:xe}}})}};var w=(0,O.Z)("Statistic",q=>{const ce=(0,A.TS)(q,{});return[c(ce)]},q=>{const{fontSizeHeading3:ce,fontSize:xe}=q;return{titleFontSize:xe,contentFontSize:ce}}),V=q=>{const{prefixCls:ce,className:xe,rootClassName:we,style:Be,valueStyle:H,value:L=0,title:Z,valueRender:W,prefix:le,suffix:J,loading:g=!1,onMouseEnter:S,onMouseLeave:K,decimalSeparator:G=".",groupSeparator:Pe=","}=q,{getPrefixCls:Ne,direction:Ue,statistic:Ve}=v.useContext(se.E_),qe=Ne("statistic",ce),[tt,lt]=w(qe),Ut=v.createElement(a,Object.assign({decimalSeparator:G,groupSeparator:Pe,prefixCls:qe},q,{value:L})),Yt=ne()(qe,{[`${qe}-rtl`]:Ue==="rtl"},Ve==null?void 0:Ve.className,xe,we,lt);return tt(v.createElement("div",{className:Yt,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Be),onMouseEnter:S,onMouseLeave:K},Z&&v.createElement("div",{className:`${qe}-title`},Z),v.createElement(ye.Z,{paragraph:!1,loading:g,className:`${qe}-skeleton`},v.createElement("div",{style:H,className:`${qe}-content`},le&&v.createElement("span",{className:`${qe}-content-prefix`},le),W?W(Ut):Ut,J&&v.createElement("span",{className:`${qe}-content-suffix`},J)))))};const te=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function R(q,ce){let xe=q;const we=/\[[^\]]*]/g,Be=(ce.match(we)||[]).map(W=>W.slice(1,-1)),H=ce.replace(we,"[]"),L=te.reduce((W,le)=>{let[J,g]=le;if(W.includes(J)){const S=Math.floor(xe/g);return xe-=S*g,W.replace(new RegExp(`${J}+`,"g"),K=>{const G=K.length;return S.toString().padStart(G,"0")})}return W},H);let Z=0;return L.replace(we,()=>{const W=Be[Z];return Z+=1,W})}function k(q,ce){const{format:xe=""}=ce,we=new Date(q).getTime(),Be=Date.now(),H=Math.max(we-Be,0);return R(H,xe)}const U=1e3/30;function ae(q){return new Date(q).getTime()}const x=q=>{const{value:ce,format:xe="HH:mm:ss",onChange:we,onFinish:Be}=q,H=(0,Y.Z)(),L=v.useRef(null),Z=()=>{Be==null||Be(),L.current&&(clearInterval(L.current),L.current=null)},W=()=>{const g=ae(ce);g>=Date.now()&&(L.current=setInterval(()=>{H(),we==null||we(g-Date.now()),g<Date.now()&&Z()},U))};v.useEffect(()=>(W(),()=>{L.current&&(clearInterval(L.current),L.current=null)}),[ce]);const le=(g,S)=>k(g,Object.assign(Object.assign({},S),{format:xe})),J=g=>(0,ge.Tm)(g,{title:void 0});return v.createElement(V,Object.assign({},q,{valueRender:J,formatter:le}))};var z=v.memo(x);V.Countdown=z;var Q=V},8378:function(Qt,it){"use strict";const y=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut},
|
|
|
opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut},
|
|
|
opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});it.Z=y},92899:function(Qt,it,y){"use strict";y.d(it,{Fm:function(){return A}});var v=y(93083),Y=y(95406);const ge=new v.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new v.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ne=new v.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new v.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ye=new v.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ve=new v.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 v.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new v.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),O={"move-up":{inKeyframes:a,outKeyframes:P},"move-down":{inKeyframes:ge,outKeyframes:Ie},"move-left":{inKeyframes:ne,outKeyframes:se},"move-right":{inKeyframes:ye,outKeyframes:ve}},A=(c,w)=>{const{antCls:E}=c,V=`${E}-${w}`,{inKeyframes:te,outKeyframes:R}=O[w];return[(0,Y.R)(V,te,R,c.motionDurationMid),{[`
|
|
|
${V}-enter,
|
|
|
${V}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${V}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(Qt,it,y){"use strict";y.d(it,{Qt:function(){return ne},Uw:function(){return Ie},fJ:function(){return ge},ly:function(){return se},oN:function(){return A}});var v=y(93083),Y=y(95406);const ge=new v.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ie=new v.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ne=new v.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),se=new v.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ye=new v.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ve=new v.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new v.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),P=new v.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),O={"slide-up":{inKeyframes:ge,outKeyframes:Ie},"slide-down":{inKeyframes:ne,outKeyframes:se},"slide-left":{inKeyframes:ye,outKeyframes:ve},"slide-right":{inKeyframes:a,outKeyframes:P}},A=(c,w)=>{const{antCls:E}=c,V=`${E}-${w}`,{inKeyframes:te,outKeyframes:R}=O[w];return[(0,Y.R)(V,te,R,c.motionDurationMid),{[`
|
|
|
${V}-enter,
|
|
|
${V}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${V}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},19447:function(Qt,it,y){"use strict";y.d(it,{ZP:function(){return ne},fS:function(){return ge},qN:function(){return Y}});var v=y(47585);const Y=8;function ge(se){const ye=Y,{contentRadius:ve,limitVerticalRadius:a}=se,P=ve>12?ve+2:12;return{dropdownArrowOffset:P,dropdownArrowOffsetVertical:a?ye:P}}function Ie(se,ye){return se?ye:{}}function ne(se,ye){const{componentCls:ve,sizePopupArrow:a,borderRadiusXS:P,borderRadiusOuter:O,boxShadowPopoverArrow:A}=se,{colorBg:c,contentRadius:w=se.borderRadiusLG,limitVerticalRadius:E,arrowDistance:V=0,arrowPlacement:te={left:!0,right:!0,top:!0,bottom:!0}}=ye,{dropdownArrowOffsetVertical:R,dropdownArrowOffset:k}=ge({contentRadius:w,limitVerticalRadius:E});return{[ve]:Object.assign(Object.assign(Object.assign(Object.assign({[`${ve}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,v.r)(a,P,O,c,A)),{"&:before":{background:c}})]},Ie(!!te.top,{[[`&-placement-top ${ve}-arrow`,`&-placement-topLeft ${ve}-arrow`,`&-placement-topRight ${ve}-arrow`].join(",")]:{bottom:V,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${ve}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${ve}-arrow`]:{left:{_skip_check_:!0,value:k}},[`&-placement-topRight ${ve}-arrow`]:{right:{_skip_check_:!0,value:k}}})),Ie(!!te.bottom,{[[`&-placement-bottom ${ve}-arrow`,`&-placement-bottomLeft ${ve}-arrow`,`&-placement-bottomRight ${ve}-arrow`].join(",")]:{top:V,transform:"translateY(-100%)"},[`&-placement-bottom ${ve}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${ve}-arrow`]:{left:{_skip_check_:!0,value:k}},[`&-placement-bottomRight ${ve}-arrow`]:{right:{_skip_check_:!0,value:k}}})),Ie(!!te.left,{[[`&-placement-left ${ve}-arrow`,`&-placement-leftTop ${ve}-arrow`,`&-placement-leftBottom ${ve}-arrow`].join(",")]:{right:{_skip_check_:!0,value:V},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${ve}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${ve}-arrow`]:{top:R},[`&-placement-leftBottom ${ve}-arrow`]:{bottom:R}})),Ie(!!te.right,{[[`&-placement-right ${ve}-arrow`,`&-placement-rightTop ${ve}-arrow`,`&-placement-rightBottom ${ve}-arrow`].join(",")]:{left:{_skip_check_:!0,value:V},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${ve}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${ve}-arrow`]:{top:R},[`&-placement-rightBottom ${ve}-arrow`]:{bottom:R}}))}}},47585:function(Qt,it,y){"use strict";y.d(it,{r:function(){return v}});const v=(Y,ge,Ie,ne,se)=>{const ye=Y/2,ve=0,a=ye,P=Ie*1/Math.sqrt(2),O=ye-Ie*(1-1/Math.sqrt(2)),A=ye-ge*(1/Math.sqrt(2)),c=Ie*(Math.sqrt(2)-1)+ge*(1/Math.sqrt(2)),w=2*ye-A,E=c,V=2*ye-P,te=O,R=2*ye-ve,k=a,U=ye*Math.sqrt(2)+Ie*(Math.sqrt(2)-2),ae=Ie*(Math.sqrt(2)-1);return{pointerEvents:"none",width:Y,height:Y,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Y,height:Y/2,background:ne,clipPath:{_multi_value_:!0,value:[`polygon(${ae}px 100%, 50% ${ae}px, ${2*ye-ae}px 100%, ${ae}px 100%)`,`path('M ${ve} ${a} A ${Ie} ${Ie} 0 0 0 ${P} ${O} L ${A} ${c} A ${ge} ${ge} 0 0 1 ${w} ${E} L ${V} ${te} A ${Ie} ${Ie} 0 0 0 ${R} ${k} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:U,height:U,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ge}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:se,zIndex:0,background:"transparent"}}}},33166:function(Qt,it,y){"use strict";y.d(it,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Y}});var v=y(33166);function Y(ge,Ie){return v.i.reduce((ne,se)=>{const ye=ge[`${se}1`],ve=ge[`${se}3`],a=ge[`${se}6`],P=ge[`${se}7`];return Object.assign(Object.assign({},ne),Ie(se,{lightColor:ye,lightBorderColor:ve,darkColor:a,textColor:P}))},{})}},6848:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return we}});var v=y(59301),Y=y(92310),ge=y.n(Y),Ie=y(55477),ne=y(18929),se=y(62892),ye=y(79676),ve=y(92343),a=y(36355),P=y(33234),O=y(88088),A=y(17313),c=y(29878),w=y(19447),E=y(45157),V=y(37613),te=y(83116);const R=Be=>{const{componentCls:H,tooltipMaxWidth:L,tooltipColor:Z,tooltipBg:W,tooltipBorderRadius:le,zIndexPopup:J,controlHeight:g,boxShadowSecondary:S,paddingSM:K,paddingXS:G,tooltipRadiusOuter:Pe}=Be;return[{[H]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(Be)),{position:"absolute",zIndex:J,display:"block",width:"max-content",maxWidth:L,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":W,[`${H}-inner`]:{minWidth:g,minHeight:g,padding:`${K/2}px ${G}px`,color:Z,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:W,borderRadius:le,boxShadow:S,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${H}-inner`]:{borderRadius:Math.min(le,w.qN)}},[`${H}-content`]:{position:"relative"}}),(0,E.Z)(Be,(Ne,Ue)=>{let{darkColor:Ve}=Ue;return{[`&${H}-${Ne}`]:{[`${H}-inner`]:{backgroundColor:Ve},[`${H}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,w.ZP)((0,V.TS)(Be,{borderRadiusOuter:Pe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:le,limitVerticalRadius:!0}),{[`${H}-pure`]:{position:"relative",maxWidth:"none",margin:Be.sizePopupArrow}}]};var k=(Be,H)=>(0,te.Z)("Tooltip",Z=>{if(H===!1)return[];const{borderRadius:W,colorTextLightSolid:le,colorBgDefault:J,borderRadiusOuter:g}=Z,S=(0,V.TS)(Z,{tooltipMaxWidth:250,tooltipColor:le,tooltipBorderRadius:W,tooltipBg:J,tooltipRadiusOuter:g>4?4:g});return[R(S),(0,c._y)(Z,"zoom-big-fast")]},Z=>{let{zIndexPopupBase:W,colorBgSpotlight:le}=Z;return{zIndexPopup:W+70,colorBgDefault:le}},{resetStyle:!1})(Be),U=y(36785);function ae(Be,H){const L=(0,U.o2)(H),Z=ge()({[`${Be}-${H}`]:H&&L}),W={},le={};return H&&!L&&(W.background=H,le["--antd-arrow-background-color"]=H),{className:Z,overlayStyle:W,arrowStyle:le}}var z=Be=>{const{prefixCls:H,className:L,placement:Z="top",title:W,color:le,overlayInnerStyle:J}=Be,{getPrefixCls:g}=v.useContext(a.E_),S=g("tooltip",H),[K,G]=k(S,!0),Pe=ae(S,le),Ne=Pe.arrowStyle,Ue=Object.assign(Object.assign({},J),Pe.overlayStyle),Ve=ge()(G,S,`${S}-pure`,`${S}-placement-${Z}`,L,Pe.className);return K(v.createElement("div",{className:Ve,style:Ne},v.createElement("div",{className:`${S}-arrow`}),v.createElement(Ie.G,Object.assign({},Be,{className:G,prefixCls:S,overlayInnerStyle:Ue}),W)))},Q=function(Be,H){var L={};for(var Z in Be)Object.prototype.hasOwnProperty.call(Be,Z)&&H.indexOf(Z)<0&&(L[Z]=Be[Z]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,Z=Object.getOwnPropertySymbols(Be);W<Z.length;W++)H.indexOf(Z[W])<0&&Object.prototype.propertyIsEnumerable.call(Be,Z[W])&&(L[Z[W]]=Be[Z[W]]);return L};const q=(Be,H)=>{const L={},Z=Object.assign({},Be);return H.forEach(W=>{Be&&W in Be&&(L[W]=Be[W],delete Z[W])}),{picked:L,omitted:Z}};function ce(Be,H){const L=Be.type;if((L.__ANT_BUTTON===!0||Be.type==="button")&&Be.props.disabled||L.__ANT_SWITCH===!0&&(Be.props.disabled||Be.props.loading)||L.__ANT_RADIO===!0&&Be.props.disabled){const{picked:Z,omitted:W}=q(Be.props.style,["position","left","right","top","bottom","float","display","zIndex"]),le=Object.assign(Object.assign({display:"inline-block"},Z),{cursor:"not-allowed",width:Be.props.block?"100%":void 0}),J=Object.assign(Object.assign({},W),{pointerEvents:"none"}),g=(0,ve.Tm)(Be,{style:J,className:null});return v.createElement("span",{style:le,className:ge()(Be.props.className,`${H}-disabled-compatible-wrapper`)},g)}return Be}const xe=v.forwardRef((Be,H)=>{var L,Z;const{prefixCls:W,openClassName:le,getTooltipContainer:J,overlayClassName:g,color:S,overlayInnerStyle:K,children:G,afterOpenChange:Pe,afterVisibleChange:Ne,destroyTooltipOnHide:Ue,arrow:Ve=!0,title:qe,overlay:tt,builtinPlacements:lt,arrowPointAtCenter:Ut=!1,autoAdjustOverflow:Yt=!0}=Be,sr=!!Ve,[,Bt]=(0,O.Z)(),{getPopupContainer:Ht,getPrefixCls:Xt,direction:de}=v.useContext(a.E_),Ee=v.useRef(null),F=()=>{var He;(He=Ee.current)===null||He===void 0||He.forceAlign()};v.useImperativeHandle(H,()=>({forceAlign:F,forcePopupAlign:()=>{F()}}));const[fe,Te]=(0,ne.Z)(!1,{value:(L=Be.open)!==null&&L!==void 0?L:Be.visible,defaultValue:(Z=Be.defaultOpen)!==null&&Z!==void 0?Z:Be.defaultVisible}),I=!qe&&!tt&&qe!==0,ee=He=>{var Ze,X;Te(I?!1:He),I||((Ze=Be.onOpenChange)===null||Ze===void 0||Ze.call(Be,He),(X=Be.onVisibleChange)===null||X===void 0||X.call(Be,He))},he=v.useMemo(()=>{var He,Ze;let X=Ut;return typeof Ve=="object"&&(X=(Ze=(He=Ve.pointAtCenter)!==null&&He!==void 0?He:Ve.arrowPointAtCenter)!==null&&Ze!==void 0?Ze:Ut),lt||(0,ye.Z)({arrowPointAtCenter:X,autoAdjustOverflow:Yt,arrowWidth:sr?Bt.sizePopupArrow:0,borderRadius:Bt.borderRadius,offset:Bt.marginXXS,visibleFirst:!0})},[Ut,Ve,lt,Bt]),be=v.useMemo(()=>qe===0?qe:tt||qe||"",[tt,qe]),Oe=v.createElement(P.BR,null,typeof be=="function"?be():be),{getPopupContainer:Fe,placement:Qe="top",mouseEnterDelay:ht=.1,mouseLeaveDelay:ot=.1,overlayStyle:Xe,rootClassName:Dt}=Be,kt=Q(Be,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Le=Xt("tooltip",W),Ke=Xt(),nt=Be["data-popover-inject"];let ft=fe;!("open"in Be)&&!("visible"in Be)&&I&&(ft=!1);const At=ce((0,ve.l$)(G)&&!(0,ve.M2)(G)?G:v.createElement("span",null,G),Le),It=At.props,_=!It.className||typeof It.className=="string"?ge()(It.className,le||`${Le}-open`):It.className,[C,et]=k(Le,!nt),$=ae(Le,S),me=$.arrowStyle,tr=Object.assign(Object.assign({},K),$.overlayStyle),ke=ge()(g,{[`${Le}-rtl`]:de==="rtl"},$.className,Dt,et);return C(v.createElement(Ie.Z,Object.assign({},kt,{showArrow:sr,placement:Qe,mouseEnterDelay:ht,mouseLeaveDelay:ot,prefixCls:Le,overlayClassName:ke,overlayStyle:Object.assign(Object.assign({},me),Xe),getTooltipContainer:Fe||J||Ht,ref:Ee,builtinPlacements:he,overlay:Oe,visible:ft,onVisibleChange:ee,afterVisibleChange:Pe!=null?Pe:Ne,overlayInnerStyle:tr,arrowContent:v.createElement("span",{className:`${Le}-arrow-content`}),motion:{motionName:(0,se.m)(Ke,"zoom-big-fast",Be.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ue}),ft?(0,ve.Tm)(At,{className:_}):At))});xe._InternalPanelDoNotUseOrYouWillBeFired=z;var we=xe},54580:function(Qt,it,y){"use strict";y.d(it,{default:function(){return Kt}});var v=y(59301),Y=y(19127),ge=y(92310),Ie=y.n(ge),ne=y(96663),se=y(52884),ye=y(95727),ve=y(65711),a=y(85745),P=y(90493),O=y(6620),A=y(49581),c=y(20135),w=y(73324),E=y(26112);function V($e,vt){var at="cannot ".concat($e.method," ").concat($e.action," ").concat(vt.status,"'"),yt=new Error(at);return yt.status=vt.status,yt.method=$e.method,yt.url=$e.action,yt}function te($e){var vt=$e.responseText||$e.response;if(!vt)return vt;try{return JSON.parse(vt)}catch(at){return vt}}function R($e){var vt=new XMLHttpRequest;$e.onProgress&&vt.upload&&(vt.upload.onprogress=function(Ot){Ot.total>0&&(Ot.percent=Ot.loaded/Ot.total*100),$e.onProgress(Ot)});var at=new FormData;$e.data&&Object.keys($e.data).forEach(function(Nt){var Ot=$e.data[Nt];if(Array.isArray(Ot)){Ot.forEach(function(ut){at.append("".concat(Nt,"[]"),ut)});return}at.append(Nt,Ot)}),$e.file instanceof Blob?at.append($e.filename,$e.file,$e.file.name):at.append($e.filename,$e.file),vt.onerror=function(Ot){$e.onError(Ot)},vt.onload=function(){return vt.status<200||vt.status>=300?$e.onError(V($e,vt),te(vt)):$e.onSuccess(te(vt),vt)},vt.open($e.method,$e.action,!0),$e.withCredentials&&"withCredentials"in vt&&(vt.withCredentials=!0);var yt=$e.headers||{};return yt["X-Requested-With"]!==null&&vt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(yt).forEach(function(Nt){yt[Nt]!==null&&vt.setRequestHeader(Nt,yt[Nt])}),vt.send(at),{abort:function(){vt.abort()}}}var k=+new Date,U=0;function ae(){return"rc-upload-".concat(k,"-").concat(++U)}var x=y(48736),z=function($e,vt){if($e&&vt){var at=Array.isArray(vt)?vt:vt.split(","),yt=$e.name||"",Nt=$e.type||"",Ot=Nt.replace(/\/.*$/,"");return at.some(function(ut){var Se=ut.trim();if(/^\*(\/\*)?$/.test(ut))return!0;if(Se.charAt(0)==="."){var We=yt.toLowerCase(),rt=Se.toLowerCase(),bt=[rt];return(rt===".jpg"||rt===".jpeg")&&(bt=[".jpg",".jpeg"]),bt.some(function(mt){return We.endsWith(mt)})}return/\/\*$/.test(Se)?Ot===Se.replace(/\/.*$/,""):Nt===Se?!0:/^\w+$/.test(Se)?((0,x.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Se,"'.Skip for check.")),!0):!1})}return!0};function Q($e,vt){var at=$e.createReader(),yt=[];function Nt(){at.readEntries(function(Ot){var ut=Array.prototype.slice.apply(Ot);yt=yt.concat(ut);var Se=!ut.length;Se?vt(yt):Nt()})}Nt()}var q=function(vt,at,yt){var Nt=function Ot(ut,Se){ut&&(ut.path=Se||"",ut.isFile?ut.file(function(We){yt(We)&&(ut.fullPath&&!We.webkitRelativePath&&(Object.defineProperties(We,{webkitRelativePath:{writable:!0}}),We.webkitRelativePath=ut.fullPath.replace(/^\//,""),Object.defineProperties(We,{webkitRelativePath:{writable:!1}})),at([We]))}):ut.isDirectory&&Q(ut,function(We){We.forEach(function(rt){Ot(rt,"".concat(Se).concat(ut.name,"/"))})}))};vt.forEach(function(Ot){Nt(Ot.webkitGetAsEntry())})},ce=q,xe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],we=function($e){(0,ve.Z)(at,$e);var vt=(0,a.Z)(at);function at(){var yt;(0,se.Z)(this,at);for(var Nt=arguments.length,Ot=new Array(Nt),ut=0;ut<Nt;ut++)Ot[ut]=arguments[ut];return yt=vt.call.apply(vt,[this].concat(Ot)),yt.state={uid:ae()},yt.reqs={},yt.fileInput=void 0,yt._isMounted=void 0,yt.onChange=function(Se){var We=yt.props,rt=We.accept,bt=We.directory,mt=Se.target.files,Ct=(0,Y.Z)(mt).filter(function(Tt){return!bt||z(Tt,rt)});yt.uploadFiles(Ct),yt.reset()},yt.onClick=function(Se){var We=yt.fileInput;if(We){var rt=Se.target,bt=yt.props.onClick;if(rt&&rt.tagName==="BUTTON"){var mt=We.parentNode;mt.focus(),rt.blur()}We.click(),bt&&bt(Se)}},yt.onKeyDown=function(Se){Se.key==="Enter"&&yt.onClick(Se)},yt.onFileDrop=function(Se){var We=yt.props.multiple;if(Se.preventDefault(),Se.type!=="dragover")if(yt.props.directory)ce(Array.prototype.slice.call(Se.dataTransfer.items),yt.uploadFiles,function(bt){return z(bt,yt.props.accept)});else{var rt=(0,Y.Z)(Se.dataTransfer.files).filter(function(bt){return z(bt,yt.props.accept)});We===!1&&(rt=rt.slice(0,1)),yt.uploadFiles(rt)}},yt.uploadFiles=function(Se){var We=(0,Y.Z)(Se),rt=We.map(function(bt){return bt.uid=ae(),yt.processFile(bt,We)});Promise.all(rt).then(function(bt){var mt=yt.props.onBatchStart;mt==null||mt(bt.map(function(Ct){var Tt=Ct.origin,ar=Ct.parsedFile;return{file:Tt,parsedFile:ar}})),bt.filter(function(Ct){return Ct.parsedFile!==null}).forEach(function(Ct){yt.post(Ct)})})},yt.processFile=function(){var Se=(0,w.Z)((0,A.Z)().mark(function We(rt,bt){var mt,Ct,Tt,ar,cr,ur,Er,Fr,Lr;return(0,A.Z)().wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(mt=yt.props.beforeUpload,Ct=rt,!mt){ir.next=14;break}return ir.prev=3,ir.next=6,mt(rt,bt);case 6:Ct=ir.sent,ir.next=12;break;case 9:ir.prev=9,ir.t0=ir.catch(3),Ct=!1;case 12:if(Ct!==!1){ir.next=14;break}return ir.abrupt("return",{origin:rt,parsedFile:null,action:null,data:null});case 14:if(Tt=yt.props.action,typeof Tt!="function"){ir.next=21;break}return ir.next=18,Tt(rt);case 18:ar=ir.sent,ir.next=22;break;case 21:ar=Tt;case 22:if(cr=yt.props.data,typeof cr!="function"){ir.next=29;break}return ir.next=26,cr(rt);case 26:ur=ir.sent,ir.next=30;break;case 29:ur=cr;case 30:return Er=((0,c.Z)(Ct)==="object"||typeof Ct=="string")&&Ct?Ct:rt,Er instanceof File?Fr=Er:Fr=new File([Er],rt.name,{type:rt.type}),Lr=Fr,Lr.uid=rt.uid,ir.abrupt("return",{origin:rt,data:ur,parsedFile:Lr,action:ar});case 35:case"end":return ir.stop()}},We,null,[[3,9]])}));return function(We,rt){return Se.apply(this,arguments)}}(),yt.saveFileInput=function(Se){yt.fileInput=Se},yt}return(0,ye.Z)(at,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Nt){var Ot=this,ut=Nt.data,Se=Nt.origin,We=Nt.action,rt=Nt.parsedFile;if(this._isMounted){var bt=this.props,mt=bt.onStart,Ct=bt.customRequest,Tt=bt.name,ar=bt.headers,cr=bt.withCredentials,ur=bt.method,Er=Se.uid,Fr=Ct||R,Lr={action:We,filename:Tt,data:ut,file:rt,headers:ar,withCredentials:cr,method:ur||"post",onProgress:function(ir){var $r=Ot.props.onProgress;$r==null||$r(ir,rt)},onSuccess:function(ir,$r){var Ir=Ot.props.onSuccess;Ir==null||Ir(ir,rt,$r),delete Ot.reqs[Er]},onError:function(ir,$r){var Ir=Ot.props.onError;Ir==null||Ir(ir,$r,rt),delete Ot.reqs[Er]}};mt(Se),this.reqs[Er]=Fr(Lr)}}},{key:"reset",value:function(){this.setState({uid:ae()})}},{key:"abort",value:function(Nt){var Ot=this.reqs;if(Nt){var ut=Nt.uid?Nt.uid:Nt;Ot[ut]&&Ot[ut].abort&&Ot[ut].abort(),delete Ot[ut]}else Object.keys(Ot).forEach(function(Se){Ot[Se]&&Ot[Se].abort&&Ot[Se].abort(),delete Ot[Se]})}},{key:"render",value:function(){var Nt=this.props,Ot=Nt.component,ut=Nt.prefixCls,Se=Nt.className,We=Nt.disabled,rt=Nt.id,bt=Nt.style,mt=Nt.multiple,Ct=Nt.accept,Tt=Nt.capture,ar=Nt.children,cr=Nt.directory,ur=Nt.openFileDialogOnClick,Er=Nt.onMouseEnter,Fr=Nt.onMouseLeave,Lr=(0,O.Z)(Nt,xe),fr=Ie()((0,P.Z)((0,P.Z)((0,P.Z)({},ut,!0),"".concat(ut,"-disabled"),We),Se,Se)),ir=cr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},$r=We?{}:{onClick:ur?this.onClick:function(){},onKeyDown:ur?this.onKeyDown:function(){},onMouseEnter:Er,onMouseLeave:Fr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(Ot,(0,ne.Z)({},$r,{className:fr,role:"button",style:bt}),v.createElement("input",(0,ne.Z)({},(0,E.Z)(Lr,{aria:!0,data:!0}),{id:rt,disabled:We,type:"file",ref:this.saveFileInput,onClick:function(zr){return zr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ct},ir,{multiple:mt,onChange:this.onChange},Tt!=null?{capture:Tt}:{})),ar)}}]),at}(v.Component),Be=we;function H(){}var L=function($e){(0,ve.Z)(at,$e);var vt=(0,a.Z)(at);function at(){var yt;(0,se.Z)(this,at);for(var Nt=arguments.length,Ot=new Array(Nt),ut=0;ut<Nt;ut++)Ot[ut]=arguments[ut];return yt=vt.call.apply(vt,[this].concat(Ot)),yt.uploader=void 0,yt.saveUploader=function(Se){yt.uploader=Se},yt}return(0,ye.Z)(at,[{key:"abort",value:function(Nt){this.uploader.abort(Nt)}},{key:"render",value:function(){return v.createElement(Be,(0,ne.Z)({},this.props,{ref:this.saveUploader}))}}]),at}(v.Component);L.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:H,onError:H,onSuccess:H,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Z=L,W=Z,le=y(18929),J=y(4676),g=y(36355),S=y(1684),K=y(9763),G=y(31724),Pe={icon:function(vt,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:at}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:vt}}]}},name:"file",theme:"twotone"},Ne=Pe,Ue=y(7657),Ve=function(vt,at){return v.createElement(Ue.Z,(0,ne.Z)({},vt,{ref:at,icon:Ne}))},qe=v.forwardRef(Ve),tt=qe,lt=y(58617),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Yt=Ut,sr=function(vt,at){return v.createElement(Ue.Z,(0,ne.Z)({},vt,{ref:at,icon:Yt}))},Bt=v.forwardRef(sr),Ht=Bt,Xt={icon:function(vt,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:vt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:at}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:at}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:at}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:vt}}]}},name:"picture",theme:"twotone"},de=Xt,Ee=function(vt,at){return v.createElement(Ue.Z,(0,ne.Z)({},vt,{ref:at,icon:de}))},F=v.forwardRef(Ee),fe=F,Te=y(77900),I=y(56762),ee=y(62892),he=y(92343),be=y(3113);function Oe($e){return Object.assign(Object.assign({},$e),{lastModified:$e.lastModified,lastModifiedDate:$e.lastModifiedDate,name:$e.name,size:$e.size,type:$e.type,uid:$e.uid,percent:0,originFileObj:$e})}function Fe($e,vt){const at=(0,Y.Z)(vt),yt=at.findIndex(Nt=>{let{uid:Ot}=Nt;return Ot===$e.uid});return yt===-1?at.push($e):at[yt]=$e,at}function Qe($e,vt){const at=$e.uid!==void 0?"uid":"name";return vt.filter(yt=>yt[at]===$e[at])[0]}function ht($e,vt){const at=$e.uid!==void 0?"uid":"name",yt=vt.filter(Nt=>Nt[at]!==$e[at]);return yt.length===vt.length?null:yt}const ot=function(){const vt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),yt=vt[vt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(yt)||[""])[0]},Xe=$e=>$e.indexOf("image/")===0,Dt=$e=>{if($e.type&&!$e.thumbUrl)return Xe($e.type);const vt=$e.thumbUrl||$e.url||"",at=ot(vt);return/^data:image\//.test(vt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(at)?!0:!(/^data:/.test(vt)||at)},kt=200;function Le($e){return new Promise(vt=>{if(!$e.type||!Xe($e.type)){vt("");return}const at=document.createElement("canvas");at.width=kt,at.height=kt,at.style.cssText=`position: fixed; left: 0; top: 0; width: ${kt}px; height: ${kt}px; z-index: 9999; display: none;`,document.body.appendChild(at);const yt=at.getContext("2d"),Nt=new Image;if(Nt.onload=()=>{const{width:Ot,height:ut}=Nt;let Se=kt,We=kt,rt=0,bt=0;Ot>ut?(We=ut*(kt/Ot),bt=-(We-Se)/2):(Se=Ot*(kt/ut),rt=-(Se-We)/2),yt.drawImage(Nt,rt,bt,Se,We);const mt=at.toDataURL();document.body.removeChild(at),window.URL.revokeObjectURL(Nt.src),vt(mt)},Nt.crossOrigin="anonymous",$e.type.startsWith("image/svg+xml")){const Ot=new FileReader;Ot.onload=()=>{Ot.result&&(Nt.src=Ot.result)},Ot.readAsDataURL($e)}else if($e.type.startsWith("image/gif")){const Ot=new FileReader;Ot.onload=()=>{Ot.result&&vt(Ot.result)},Ot.readAsDataURL($e)}else Nt.src=window.URL.createObjectURL($e)})}var Ke=y(26227),nt=y(41464),ft=y(15277),At=y(93948),It=y(6848),C=v.forwardRef(($e,vt)=>{let{prefixCls:at,className:yt,style:Nt,locale:Ot,listType:ut,file:Se,items:We,progress:rt,iconRender:bt,actionIconRender:mt,itemRender:Ct,isImgUrl:Tt,showPreviewIcon:ar,showRemoveIcon:cr,showDownloadIcon:ur,previewIcon:Er,removeIcon:Fr,downloadIcon:Lr,onPreview:fr,onDownload:ir,onClose:$r}=$e;var Ir,zr;const{status:Tr}=Se,[Rr,Mr]=v.useState(Tr);v.useEffect(()=>{Tr!=="removed"&&Mr(Tr)},[Tr]);const[jr,Gr]=v.useState(!1);v.useEffect(()=>{const an=setTimeout(()=>{Gr(!0)},300);return()=>{clearTimeout(an)}},[]);const ln=bt(Se);let Hr=v.createElement("div",{className:`${at}-icon`},ln);if(ut==="picture"||ut==="picture-card"||ut==="picture-circle")if(Rr==="uploading"||!Se.thumbUrl&&!Se.url){const an=Ie()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:Rr!=="uploading"});Hr=v.createElement("div",{className:an},ln)}else{const an=Tt!=null&&Tt(Se)?v.createElement("img",{src:Se.thumbUrl||Se.url,alt:Se.name,className:`${at}-list-item-image`,crossOrigin:Se.crossOrigin}):ln,dr=Ie()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:Tt&&!Tt(Se)});Hr=v.createElement("a",{className:dr,onClick:dn=>fr(Se,dn),href:Se.url||Se.thumbUrl,target:"_blank",rel:"noopener noreferrer"},an)}const br=Ie()(`${at}-list-item`,`${at}-list-item-${Rr}`),Ye=typeof Se.linkProps=="string"?JSON.parse(Se.linkProps):Se.linkProps,wr=cr?mt((typeof Fr=="function"?Fr(Se):Fr)||v.createElement(Ke.Z,null),()=>$r(Se),at,Ot.removeFile):null,Wr=ur&&Rr==="done"?mt((typeof Lr=="function"?Lr(Se):Lr)||v.createElement(nt.Z,null),()=>ir(Se),at,Ot.downloadFile):null,Qr=ut!=="picture-card"&&ut!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:Ie()(`${at}-list-item-actions`,{picture:ut==="picture"})},Wr,wr),cn=Ie()(`${at}-list-item-name`),En=Se.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:cn,title:Se.name},Ye,{href:Se.url,onClick:an=>fr(Se,an)}),Se.name),Qr]:[v.createElement("span",{key:"view",className:cn,onClick:an=>fr(Se,an),title:Se.name},Se.name),Qr],Ar={pointerEvents:"none",opacity:.5},Cr=ar?v.createElement("a",{href:Se.url||Se.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Se.url||Se.thumbUrl?void 0:Ar,onClick:an=>fr(Se,an),title:Ot.previewFile},typeof Er=="function"?Er(Se):Er||v.createElement(ft.Z,null)):null,Xr=(ut==="picture-card"||ut==="picture-circle")&&Rr!=="uploading"&&v.createElement("span",{className:`${at}-list-item-actions`},Cr,Rr==="done"&&Wr,wr),{getPrefixCls:Jr}=v.useContext(g.E_),Zr=Jr(),un=v.createElement("div",{className:br},Hr,En,Xr,jr&&v.createElement(Te.default,{motionName:`${Zr}-fade`,visible:Rr==="uploading",motionDeadline:2e3},an=>{let{className:dr}=an;const dn="percent"in Se?v.createElement(At.Z,Object.assign({},rt,{type:"line",percent:Se.percent,"aria-label":Se["aria-label"],"aria-labelledby":Se["aria-labelledby"]})):null;return v.createElement("div",{className:Ie()(`${at}-list-item-progress`,dr)},dn)})),si=Se.response&&typeof Se.response=="string"?Se.response:((Ir=Se.error)===null||Ir===void 0?void 0:Ir.statusText)||((zr=Se.error)===null||zr===void 0?void 0:zr.message)||Ot.uploadError,Pn=Rr==="error"?v.createElement(It.Z,{title:si,getPopupContainer:an=>an.parentNode},un):un;return v.createElement("div",{className:Ie()(`${at}-list-item-container`,yt),style:Nt,ref:vt},Ct?Ct(Pn,Se,We,{download:ir.bind(null,Se),preview:fr.bind(null,Se),remove:$r.bind(null,Se)}):Pn)});const et=($e,vt)=>{const{listType:at="text",previewFile:yt=Le,onPreview:Nt,onDownload:Ot,onRemove:ut,locale:Se,iconRender:We,isImageUrl:rt=Dt,prefixCls:bt,items:mt=[],showPreviewIcon:Ct=!0,showRemoveIcon:Tt=!0,showDownloadIcon:ar=!1,removeIcon:cr,previewIcon:ur,downloadIcon:Er,progress:Fr={size:[-1,2],showInfo:!1},appendAction:Lr,appendActionVisible:fr=!0,itemRender:ir,disabled:$r}=$e,Ir=(0,I.Z)(),[zr,Tr]=v.useState(!1);v.useEffect(()=>{at!=="picture"&&at!=="picture-card"&&at!=="picture-circle"||(mt||[]).forEach(Ar=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ar.originFileObj instanceof File||Ar.originFileObj instanceof Blob)||Ar.thumbUrl!==void 0||(Ar.thumbUrl="",yt&&yt(Ar.originFileObj).then(Cr=>{Ar.thumbUrl=Cr||"",Ir()}))})},[at,mt,yt]),v.useEffect(()=>{Tr(!0)},[]);const Rr=(Ar,Cr)=>{if(Nt)return Cr==null||Cr.preventDefault(),Nt(Ar)},Mr=Ar=>{typeof Ot=="function"?Ot(Ar):Ar.url&&window.open(Ar.url)},jr=Ar=>{ut==null||ut(Ar)},Gr=Ar=>{if(We)return We(Ar,at);const Cr=Ar.status==="uploading",Xr=rt&&rt(Ar)?v.createElement(fe,null):v.createElement(tt,null);let Jr=Cr?v.createElement(lt.Z,null):v.createElement(Ht,null);return at==="picture"?Jr=Cr?v.createElement(lt.Z,null):Xr:(at==="picture-card"||at==="picture-circle")&&(Jr=Cr?Se.uploading:Xr),Jr},ln=(Ar,Cr,Xr,Jr)=>{const Zr={type:"text",size:"small",title:Jr,onClick:un=>{Cr(),(0,he.l$)(Ar)&&Ar.props.onClick&&Ar.props.onClick(un)},className:`${Xr}-list-item-action`,disabled:$r};if((0,he.l$)(Ar)){const un=(0,he.Tm)(Ar,Object.assign(Object.assign({},Ar.props),{onClick:()=>{}}));return v.createElement(be.ZP,Object.assign({},Zr,{icon:un}))}return v.createElement(be.ZP,Object.assign({},Zr),v.createElement("span",null,Ar))};v.useImperativeHandle(vt,()=>({handlePreview:Rr,handleDownload:Mr}));const{getPrefixCls:Hr}=v.useContext(g.E_),br=Hr("upload",bt),Ye=Hr(),wr=Ie()(`${br}-list`,`${br}-list-${at}`),Wr=(0,Y.Z)(mt.map(Ar=>({key:Ar.uid,file:Ar})));let cn={motionDeadline:2e3,motionName:`${br}-${at==="picture-card"||at==="picture-circle"?"animate-inline":"animate"}`,keys:Wr,motionAppear:zr};const En=v.useMemo(()=>{const Ar=Object.assign({},(0,ee.Z)(Ye));return delete Ar.onAppearEnd,delete Ar.onEnterEnd,delete Ar.onLeaveEnd,Ar},[Ye]);return at!=="picture-card"&&at!=="picture-circle"&&(cn=Object.assign(Object.assign({},En),cn)),v.createElement("div",{className:wr},v.createElement(Te.CSSMotionList,Object.assign({},cn,{component:!1}),Ar=>{let{key:Cr,file:Xr,className:Jr,style:Zr}=Ar;return v.createElement(C,{key:Cr,locale:Se,prefixCls:br,className:Jr,style:Zr,file:Xr,items:mt,progress:Fr,listType:at,isImgUrl:rt,showPreviewIcon:Ct,showRemoveIcon:Tt,showDownloadIcon:ar,removeIcon:cr,previewIcon:ur,downloadIcon:Er,iconRender:Gr,actionIconRender:ln,itemRender:ir,onPreview:Rr,onDownload:Mr,onClose:jr})}),Lr&&v.createElement(Te.default,Object.assign({},cn,{visible:fr,forceRender:!0}),Ar=>{let{className:Cr,style:Xr}=Ar;return(0,he.Tm)(Lr,Jr=>({className:Ie()(Jr.className,Cr),style:Object.assign(Object.assign(Object.assign({},Xr),{pointerEvents:Cr?"none":void 0}),Jr.style)}))}))};var me=v.forwardRef(et),tr=y(17313),ke=y(8378),He=y(83116),Ze=y(37613),oe=$e=>{const{componentCls:vt,iconCls:at}=$e;return{[`${vt}-wrapper`]:{[`${vt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$e.colorFillAlter,border:`${$e.lineWidth}px dashed ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,cursor:"pointer",transition:`border-color ${$e.motionDurationSlow}`,[vt]:{padding:`${$e.padding}px 0`},[`${vt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${vt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${vt}-disabled):hover`]:{borderColor:$e.colorPrimaryHover},[`p${vt}-drag-icon`]:{marginBottom:$e.margin,[at]:{color:$e.colorPrimary,fontSize:$e.uploadThumbnailSize}},[`p${vt}-text`]:{margin:`0 0 ${$e.marginXXS}px`,color:$e.colorTextHeading,fontSize:$e.fontSizeLG},[`p${vt}-hint`]:{color:$e.colorTextDescription,fontSize:$e.fontSize},[`&${vt}-disabled`]:{cursor:"not-allowed",[`p${vt}-drag-icon ${at},
|
|
|
p${vt}-text,
|
|
|
p${vt}-hint
|
|
|
`]:{color:$e.colorTextDisabled}}}}}},ze=$e=>{const{componentCls:vt,antCls:at,iconCls:yt,fontSize:Nt,lineHeight:Ot}=$e,ut=`${vt}-list-item`,Se=`${ut}-actions`,We=`${ut}-action`,rt=Math.round(Nt*Ot);return{[`${vt}-wrapper`]:{[`${vt}-list`]:Object.assign(Object.assign({},(0,tr.dF)()),{lineHeight:$e.lineHeight,[ut]:{position:"relative",height:$e.lineHeight*Nt,marginTop:$e.marginXS,fontSize:Nt,display:"flex",alignItems:"center",transition:`background-color ${$e.motionDurationSlow}`,"&:hover":{backgroundColor:$e.controlItemBgHover},[`${ut}-name`]:Object.assign(Object.assign({},tr.vS),{padding:`0 ${$e.paddingXS}px`,lineHeight:Ot,flex:"auto",transition:`all ${$e.motionDurationSlow}`}),[Se]:{[We]:{opacity:0},[`${We}${at}-btn-sm`]:{height:rt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${We}:focus-visible,
|
|
|
&.picture ${We}
|
|
|
`]:{opacity:1},[yt]:{color:$e.actionsColor,transition:`all ${$e.motionDurationSlow}`},[`&:hover ${yt}`]:{color:$e.colorText}},[`${vt}-icon ${yt}`]:{color:$e.colorTextDescription,fontSize:Nt},[`${ut}-progress`]:{position:"absolute",bottom:-$e.uploadProgressOffset,width:"100%",paddingInlineStart:Nt+$e.paddingXS,fontSize:Nt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ut}:hover ${We}`]:{opacity:1,color:$e.colorText},[`${ut}-error`]:{color:$e.colorError,[`${ut}-name, ${vt}-icon ${yt}`]:{color:$e.colorError},[Se]:{[`${yt}, ${yt}:hover`]:{color:$e.colorError},[We]:{opacity:1}}},[`${vt}-list-item-container`]:{transition:`opacity ${$e.motionDurationSlow}, height ${$e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},j=y(93083),Pt=y(1950);const Ae=new j.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Zt=new j.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wt=$e=>{const{componentCls:vt}=$e,at=`${vt}-animate-inline`;return[{[`${vt}-wrapper`]:{[`${at}-appear, ${at}-enter, ${at}-leave`]:{animationDuration:$e.motionDurationSlow,animationTimingFunction:$e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${at}-appear, ${at}-enter`]:{animationName:Ae},[`${at}-leave`]:{animationName:Zt}}},{[`${vt}-wrapper`]:(0,Pt.J$)($e)},Ae,Zt]},Mt=y(93398),pt=y(64993);const Et=$e=>{const{componentCls:vt,iconCls:at,uploadThumbnailSize:yt,uploadProgressOffset:Nt}=$e,Ot=`${vt}-list`,ut=`${Ot}-item`;return{[`${vt}-wrapper`]:{[`
|
|
|
${Ot}${Ot}-picture,
|
|
|
${Ot}${Ot}-picture-card,
|
|
|
${Ot}${Ot}-picture-circle
|
|
|
`]:{[ut]:{position:"relative",height:yt+$e.lineWidth*2+$e.paddingXS*2,padding:$e.paddingXS,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,"&:hover":{background:"transparent"},[`${ut}-thumbnail`]:Object.assign(Object.assign({},tr.vS),{width:yt,height:yt,lineHeight:`${yt+$e.paddingSM}px`,textAlign:"center",flex:"none",[at]:{fontSize:$e.fontSizeHeading2,color:$e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ut}-progress`]:{bottom:Nt,width:`calc(100% - ${$e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:yt+$e.paddingXS}},[`${ut}-error`]:{borderColor:$e.colorError,[`${ut}-thumbnail ${at}`]:{[`svg path[fill='${Mt.blue[0]}']`]:{fill:$e.colorErrorBg},[`svg path[fill='${Mt.blue.primary}']`]:{fill:$e.colorError}}},[`${ut}-uploading`]:{borderStyle:"dashed",[`${ut}-name`]:{marginBottom:Nt}}},[`${Ot}${Ot}-picture-circle ${ut}`]:{[`&, &::before, ${ut}-thumbnail`]:{borderRadius:"50%"}}}}},Re=$e=>{const{componentCls:vt,iconCls:at,fontSizeLG:yt,colorTextLightSolid:Nt}=$e,Ot=`${vt}-list`,ut=`${Ot}-item`,Se=$e.uploadPicCardSize;return{[`
|
|
|
${vt}-wrapper${vt}-picture-card-wrapper,
|
|
|
${vt}-wrapper${vt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,tr.dF)()),{display:"inline-block",width:"100%",[`${vt}${vt}-select`]:{width:Se,height:Se,marginInlineEnd:$e.marginXS,marginBottom:$e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:$e.colorFillAlter,border:`${$e.lineWidth}px dashed ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,cursor:"pointer",transition:`border-color ${$e.motionDurationSlow}`,[`> ${vt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${vt}-disabled):hover`]:{borderColor:$e.colorPrimary}},[`${Ot}${Ot}-picture-card, ${Ot}${Ot}-picture-circle`]:{[`${Ot}-item-container`]:{display:"inline-block",width:Se,height:Se,marginBlock:`0 ${$e.marginXS}px`,marginInline:`0 ${$e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$e.paddingXS*2}px)`,height:`calc(100% - ${$e.paddingXS*2}px)`,backgroundColor:$e.colorBgMask,opacity:0,transition:`all ${$e.motionDurationSlow}`,content:'" "'}},[`${ut}:hover`]:{[`&::before, ${ut}-actions`]:{opacity:1}},[`${ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$e.motionDurationSlow}`,[`${at}-eye, ${at}-download, ${at}-delete`]:{zIndex:10,width:yt,margin:`0 ${$e.marginXXS}px`,fontSize:yt,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ut}-actions, ${ut}-actions:hover`]:{[`${at}-eye, ${at}-download, ${at}-delete`]:{color:new pt.C(Nt).setAlpha(.65).toRgbString(),"&:hover":{color:Nt}}},[`${ut}-thumbnail, ${ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ut}-name`]:{display:"none",textAlign:"center"},[`${ut}-file + ${ut}-name`]:{position:"absolute",bottom:$e.margin,display:"block",width:`calc(100% - ${$e.paddingXS*2}px)`},[`${ut}-uploading`]:{[`&${ut}`]:{backgroundColor:$e.colorFillAlter},[`&::before, ${at}-eye, ${at}-download, ${at}-delete`]:{display:"none"}},[`${ut}-progress`]:{bottom:$e.marginXL,width:`calc(100% - ${$e.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${vt}-wrapper${vt}-picture-circle-wrapper`]:{[`${vt}${vt}-select`]:{borderRadius:"50%"}}}};var ct=$e=>{const{componentCls:vt}=$e;return{[`${vt}-rtl`]:{direction:"rtl"}}};const gt=$e=>{const{componentCls:vt,colorTextDisabled:at}=$e;return{[`${vt}-wrapper`]:Object.assign(Object.assign({},(0,tr.Wf)($e)),{[vt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${vt}-select`]:{display:"inline-block"},[`${vt}-disabled`]:{color:at,cursor:"not-allowed"}})}};var Je=(0,He.Z)("Upload",$e=>{const{fontSizeHeading3:vt,fontSize:at,lineHeight:yt,lineWidth:Nt,controlHeightLG:Ot}=$e,ut=Math.round(at*yt),Se=(0,Ze.TS)($e,{uploadThumbnailSize:vt*2,uploadProgressOffset:ut/2+Nt,uploadPicCardSize:Ot*2.55});return[gt(Se),oe(Se),Et(Se),Re(Se),ze(Se),wt(Se),ct(Se),(0,ke.Z)(Se)]},$e=>({actionsColor:$e.colorTextDescription})),Ft=function($e,vt,at,yt){function Nt(Ot){return Ot instanceof at?Ot:new at(function(ut){ut(Ot)})}return new(at||(at=Promise))(function(Ot,ut){function Se(bt){try{rt(yt.next(bt))}catch(mt){ut(mt)}}function We(bt){try{rt(yt.throw(bt))}catch(mt){ut(mt)}}function rt(bt){bt.done?Ot(bt.value):Nt(bt.value).then(Se,We)}rt((yt=yt.apply($e,vt||[])).next())})};const $t=`__LIST_IGNORE_${Date.now()}__`,Wt=($e,vt)=>{const{fileList:at,defaultFileList:yt,onRemove:Nt,showUploadList:Ot=!0,listType:ut="text",onPreview:Se,onDownload:We,onChange:rt,onDrop:bt,previewFile:mt,disabled:Ct,locale:Tt,iconRender:ar,isImageUrl:cr,progress:ur,prefixCls:Er,className:Fr,type:Lr="select",children:fr,style:ir,itemRender:$r,maxCount:Ir,data:zr={},multiple:Tr=!1,action:Rr="",accept:Mr="",supportServerRender:jr=!0,rootClassName:Gr}=$e,ln=v.useContext(S.Z),Hr=Ct!=null?Ct:ln,[br,Ye]=(0,le.Z)(yt||[],{value:at,postState:Kr=>Kr!=null?Kr:[]}),[wr,Wr]=v.useState("drop"),Qr=v.useRef(null);v.useMemo(()=>{const Kr=Date.now();(at||[]).forEach((Ur,pn)=>{!Ur.uid&&!Object.isFrozen(Ur)&&(Ur.uid=`__AUTO__${Kr}_${pn}__`)})},[at]);const cn=(Kr,Ur,pn)=>{let Yr=(0,Y.Z)(Ur),Vt=!1;Ir===1?Yr=Yr.slice(-1):Ir&&(Vt=Yr.length>Ir,Yr=Yr.slice(0,Ir)),(0,J.flushSync)(()=>{Ye(Yr)});const gn={file:Kr,fileList:Yr};pn&&(gn.event=pn),(!Vt||Yr.some(Gn=>Gn.uid===Kr.uid))&&(0,J.flushSync)(()=>{rt==null||rt(gn)})},En=(Kr,Ur)=>Ft(void 0,void 0,void 0,function*(){const{beforeUpload:pn,transformFile:Yr}=$e;let Vt=Kr;if(pn){const gn=yield pn(Kr,Ur);if(gn===!1)return!1;if(delete Kr[$t],gn===$t)return Object.defineProperty(Kr,$t,{value:!0,configurable:!0}),!1;typeof gn=="object"&&gn&&(Vt=gn)}return Yr&&(Vt=yield Yr(Vt)),Vt}),Ar=Kr=>{const Ur=Kr.filter(Vt=>!Vt.file[$t]);if(!Ur.length)return;const pn=Ur.map(Vt=>Oe(Vt.file));let Yr=(0,Y.Z)(br);pn.forEach(Vt=>{Yr=Fe(Vt,Yr)}),pn.forEach((Vt,gn)=>{let Gn=Vt;if(Ur[gn].parsedFile)Vt.status="uploading";else{const{originFileObj:Vn}=Vt;let wn;try{wn=new File([Vn],Vn.name,{type:Vn.type})}catch(In){wn=new Blob([Vn],{type:Vn.type}),wn.name=Vn.name,wn.lastModifiedDate=new Date,wn.lastModified=new Date().getTime()}wn.uid=Vt.uid,Gn=wn}cn(Gn,Yr)})},Cr=(Kr,Ur,pn)=>{try{typeof Kr=="string"&&(Kr=JSON.parse(Kr))}catch(gn){}if(!Qe(Ur,br))return;const Yr=Oe(Ur);Yr.status="done",Yr.percent=100,Yr.response=Kr,Yr.xhr=pn;const Vt=Fe(Yr,br);cn(Yr,Vt)},Xr=(Kr,Ur)=>{if(!Qe(Ur,br))return;const pn=Oe(Ur);pn.status="uploading",pn.percent=Kr.percent;const Yr=Fe(pn,br);cn(pn,Yr,Kr)},Jr=(Kr,Ur,pn)=>{if(!Qe(pn,br))return;const Yr=Oe(pn);Yr.error=Kr,Yr.response=Ur,Yr.status="error";const Vt=Fe(Yr,br);cn(Yr,Vt)},Zr=Kr=>{let Ur;Promise.resolve(typeof Nt=="function"?Nt(Kr):Nt).then(pn=>{var Yr;if(pn===!1)return;const Vt=ht(Kr,br);Vt&&(Ur=Object.assign(Object.assign({},Kr),{status:"removed"}),br==null||br.forEach(gn=>{const Gn=Ur.uid!==void 0?"uid":"name";gn[Gn]===Ur[Gn]&&!Object.isFrozen(gn)&&(gn.status="removed")}),(Yr=Qr.current)===null||Yr===void 0||Yr.abort(Ur),cn(Ur,Vt))})},un=Kr=>{Wr(Kr.type),Kr.type==="drop"&&(bt==null||bt(Kr))};v.useImperativeHandle(vt,()=>({onBatchStart:Ar,onSuccess:Cr,onProgress:Xr,onError:Jr,fileList:br,upload:Qr.current}));const{getPrefixCls:si,direction:Pn,upload:an}=v.useContext(g.E_),dr=si("upload",Er),dn=Object.assign(Object.assign({onBatchStart:Ar,onError:Jr,onProgress:Xr,onSuccess:Cr},$e),{data:zr,multiple:Tr,action:Rr,accept:Mr,supportServerRender:jr,prefixCls:dr,disabled:Hr,beforeUpload:En,onChange:void 0});delete dn.className,delete dn.style,(!fr||Hr)&&delete dn.id;const[fn,Fn]=Je(dr),[ci]=(0,K.Z)("Upload",G.Z.Upload),{showRemoveIcon:Jn,showPreviewIcon:Cn,showDownloadIcon:Nn,removeIcon:bn,previewIcon:ti,downloadIcon:Kn}=typeof Ot=="boolean"?{}:Ot,ri=(Kr,Ur)=>Ot?v.createElement(me,{prefixCls:dr,listType:ut,items:br,previewFile:mt,onPreview:Se,onDownload:We,onRemove:Zr,showRemoveIcon:!Hr&&Jn,showPreviewIcon:Cn,showDownloadIcon:Nn,removeIcon:bn,previewIcon:ti,downloadIcon:Kn,iconRender:ar,locale:Object.assign(Object.assign({},ci),Tt),isImageUrl:cr,progress:ur,appendAction:Kr,appendActionVisible:Ur,itemRender:$r,disabled:Hr}):Kr,$n=Ie()(`${dr}-wrapper`,Fr,Gr,Fn,an==null?void 0:an.className,{[`${dr}-rtl`]:Pn==="rtl",[`${dr}-picture-card-wrapper`]:ut==="picture-card",[`${dr}-picture-circle-wrapper`]:ut==="picture-circle"}),qn=Object.assign(Object.assign({},an==null?void 0:an.style),ir);if(Lr==="drag"){const Kr=Ie()(Fn,dr,`${dr}-drag`,{[`${dr}-drag-uploading`]:br.some(Ur=>Ur.status==="uploading"),[`${dr}-drag-hover`]:wr==="dragover",[`${dr}-disabled`]:Hr,[`${dr}-rtl`]:Pn==="rtl"});return fn(v.createElement("span",{className:$n},v.createElement("div",{className:Kr,style:qn,onDrop:un,onDragOver:un,onDragLeave:un},v.createElement(W,Object.assign({},dn,{ref:Qr,className:`${dr}-btn`}),v.createElement("div",{className:`${dr}-drag-container`},fr))),ri()))}const tn=Ie()(dr,`${dr}-select`,{[`${dr}-disabled`]:Hr}),vi=(Kr=>v.createElement("div",{className:tn,style:Kr},v.createElement(W,Object.assign({},dn,{ref:Qr}))))(fr?void 0:{display:"none"});return fn(ut==="picture-card"||ut==="picture-circle"?v.createElement("span",{className:$n},ri(vi,!!fr)):v.createElement("span",{className:$n},vi,ri()))};var vr=v.forwardRef(Wt),er=function($e,vt){var at={};for(var yt in $e)Object.prototype.hasOwnProperty.call($e,yt)&&vt.indexOf(yt)<0&&(at[yt]=$e[yt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,yt=Object.getOwnPropertySymbols($e);Nt<yt.length;Nt++)vt.indexOf(yt[Nt])<0&&Object.prototype.propertyIsEnumerable.call($e,yt[Nt])&&(at[yt[Nt]]=$e[yt[Nt]]);return at},_r=v.forwardRef(($e,vt)=>{var{style:at,height:yt}=$e,Nt=er($e,["style","height"]);return v.createElement(vr,Object.assign({ref:vt},Nt,{type:"drag",style:Object.assign(Object.assign({},at),{height:yt})}))});const Jt=vr;Jt.Dragger=_r,Jt.LIST_IGNORE=$t;var Kt=Jt},64018:function(){var Qt,it,y,v=!1,Y,ge;window.PR_SHOULD_USE_CONTINUATION=!0;var Ie,ne;(function(){var se=window,ye=["break,continue,do,else,for,if,return,while"],ve=[ye,"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=[ve,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],P=[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"],O=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],A=[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",w=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],E="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",V=[ye,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],te=[ye,"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"],R=[ye,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],k=[P,A,O,w,E,V,te,R],U=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ae="str",x="kwd",z="com",Q="typ",q="lit",ce="pun",xe="pln",we="tag",Be="dec",H="src",L="atn",Z="atv",W="nocode",le="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function J(de){for(var Ee=0,F=!1,fe=!1,Te=0,I=de.length;Te<I;++Te){var ee=de[Te];if(ee.ignoreCase)fe=!0;else if(/[a-z]/i.test(ee.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){F=!0,fe=!1;break}}var he={b:8,t:9,n:10,v:11,f:12,r:13};function be(ot){var Xe=ot.charCodeAt(0);if(Xe!==92)return Xe;var Dt=ot.charAt(1);return Xe=he[Dt],Xe||("0"<=Dt&&Dt<="7"?parseInt(ot.substring(1),8):Dt==="u"||Dt==="x"?parseInt(ot.substring(2),16):ot.charCodeAt(1))}function Oe(ot){if(ot<32)return(ot<16?"\\x0":"\\x")+ot.toString(16);var Xe=String.fromCharCode(ot);return Xe==="\\"||Xe==="-"||Xe==="]"||Xe==="^"?"\\"+Xe:Xe}function Fe(ot){var Xe=ot.substring(1,ot.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")),Dt=[],kt=Xe[0]==="^",Le=["["];kt&&Le.push("^");for(var Ke=kt?1:0,nt=Xe.length;Ke<nt;++Ke){var ft=Xe[Ke];if(/\\[bdsw]/i.test(ft))Le.push(ft);else{var At=be(ft),It;Ke+2<nt&&Xe[Ke+1]==="-"?(It=be(Xe[Ke+2]),Ke+=2):It=At,Dt.push([At,It]),It<65||At>122||(It<65||At>90||Dt.push([Math.max(65,At)|32,Math.min(It,90)|32]),It<97||At>122||Dt.push([Math.max(97,At)&-33,Math.min(It,122)&-33]))}}Dt.sort(function($,me){return $[0]-me[0]||me[1]-$[1]});for(var _=[],C=[],Ke=0;Ke<Dt.length;++Ke){var et=Dt[Ke];et[0]<=C[1]+1?C[1]=Math.max(C[1],et[1]):_.push(C=et)}for(var Ke=0;Ke<_.length;++Ke){var et=_[Ke];Le.push(Oe(et[0])),et[1]>et[0]&&(et[1]+1>et[0]&&Le.push("-"),Le.push(Oe(et[1])))}return Le.push("]"),Le.join("")}function Qe(ot){for(var Xe=ot.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")),Dt=Xe.length,kt=[],Le=0,Ke=0;Le<Dt;++Le){var nt=Xe[Le];if(nt==="(")++Ke;else if(nt.charAt(0)==="\\"){var ft=+nt.substring(1);ft&&(ft<=Ke?kt[ft]=-1:Xe[Le]=Oe(ft))}}for(var Le=1;Le<kt.length;++Le)kt[Le]===-1&&(kt[Le]=++Ee);for(var Le=0,Ke=0;Le<Dt;++Le){var nt=Xe[Le];if(nt==="(")++Ke,kt[Ke]||(Xe[Le]="(?:");else if(nt.charAt(0)==="\\"){var ft=+nt.substring(1);ft&&ft<=Ke&&(Xe[Le]="\\"+kt[ft])}}for(var Le=0;Le<Dt;++Le)Xe[Le]==="^"&&Xe[Le+1]!=="^"&&(Xe[Le]="");if(ot.ignoreCase&&F)for(var Le=0;Le<Dt;++Le){var nt=Xe[Le],At=nt.charAt(0);nt.length>=2&&At==="["?Xe[Le]=Fe(nt):At!=="\\"&&(Xe[Le]=nt.replace(/[a-zA-Z]/g,function(C){var et=C.charCodeAt(0);return"["+String.fromCharCode(et&-33,et|32)+"]"}))}return Xe.join("")}for(var ht=[],Te=0,I=de.length;Te<I;++Te){var ee=de[Te];if(ee.global||ee.multiline)throw new Error(""+ee);ht.push("(?:"+Qe(ee)+")")}return new RegExp(ht.join("|"),fe?"gi":"g")}function g(de,Ee){var F=/(?:^|\s)nocode(?:\s|$)/,fe=[],Te=0,I=[],ee=0;function he(be){var Oe=be.nodeType;if(Oe==1){if(F.test(be.className))return;for(var Fe=be.firstChild;Fe;Fe=Fe.nextSibling)he(Fe);var Qe=be.nodeName.toLowerCase();(Qe==="br"||Qe==="li")&&(fe[ee]=`
|
|
|
`,I[ee<<1]=Te++,I[ee++<<1|1]=be)}else if(Oe==3||Oe==4){var ht=be.nodeValue;ht.length&&(Ee?ht=ht.replace(/\r\n?/g,`
|
|
|
`):ht=ht.replace(/[ \t\r\n]+/g," "),fe[ee]=ht,I[ee<<1]=Te,Te+=ht.length,I[ee++<<1|1]=be)}}return he(de),{sourceCode:fe.join("").replace(/\n$/,""),spans:I}}function S(de,Ee,F,fe,Te){if(F){var I={sourceNode:de,pre:1,langExtension:null,numberLines:null,sourceCode:F,spans:null,basePos:Ee,decorations:null};fe(I),Te.push.apply(Te,I.decorations)}}var K=/\S/;function G(de){for(var Ee=void 0,F=de.firstChild;F;F=F.nextSibling){var fe=F.nodeType;Ee=fe===1?Ee?de:F:fe===3&&K.test(F.nodeValue)?de:Ee}return Ee===de?void 0:Ee}function Pe(de,Ee){var F={},fe;(function(){for(var ee=de.concat(Ee),he=[],be={},Oe=0,Fe=ee.length;Oe<Fe;++Oe){var Qe=ee[Oe],ht=Qe[3];if(ht)for(var ot=ht.length;--ot>=0;)F[ht.charAt(ot)]=Qe;var Xe=Qe[1],Dt=""+Xe;be.hasOwnProperty(Dt)||(he.push(Xe),be[Dt]=null)}he.push(/[\0-\uffff]/),fe=J(he)})();var Te=Ee.length,I=function(ee){for(var he=ee.sourceCode,be=ee.basePos,Oe=ee.sourceNode,Fe=[be,xe],Qe=0,ht=he.match(fe)||[],ot={},Xe=0,Dt=ht.length;Xe<Dt;++Xe){var kt=ht[Xe],Le=ot[kt],Ke=void 0,nt;if(typeof Le=="string")nt=!1;else{var ft=F[kt.charAt(0)];if(ft)Ke=kt.match(ft[1]),Le=ft[0];else{for(var At=0;At<Te;++At)if(ft=Ee[At],Ke=kt.match(ft[1]),Ke){Le=ft[0];break}Ke||(Le=xe)}nt=Le.length>=5&&Le.substring(0,5)==="lang-",nt&&!(Ke&&typeof Ke[1]=="string")&&(nt=!1,Le=H),nt||(ot[kt]=Le)}var It=Qe;if(Qe+=kt.length,!nt)Fe.push(be+It,Le);else{var _=Ke[1],C=kt.indexOf(_),et=C+_.length;Ke[2]&&(et=kt.length-Ke[2].length,C=et-_.length);var $=Le.substring(5);S(Oe,be+It,kt.substring(0,C),I,Fe),S(Oe,be+It+C,_,Ut($,_),Fe),S(Oe,be+It+et,kt.substring(et),I,Fe)}}ee.decorations=Fe};return I}function Ne(de){var Ee=[],F=[];de.tripleQuotedStrings?Ee.push([ae,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):de.multiLineStrings?Ee.push([ae,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ee.push([ae,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),de.verbatimStrings&&F.push([ae,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var fe=de.hashComments;fe&&(de.cStyleComments?(fe>1?Ee.push([z,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ee.push([z,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),F.push([ae,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ee.push([z,/^#[^\r\n]*/,null,"#"])),de.cStyleComments&&(F.push([z,/^\/\/[^\r\n]*/,null]),F.push([z,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Te=de.regexLiterals;if(Te){var I=Te>1?"":`
|
|
|
\r`,ee=I?".":"[\\S\\s]",he="/(?=[^/*"+I+"])(?:[^/\\x5B\\x5C"+I+"]|\\x5C"+ee+"|\\x5B(?:[^\\x5C\\x5D"+I+"]|\\x5C"+ee+")*(?:\\x5D|$))+/";F.push(["lang-regex",RegExp("^"+le+"("+he+")")])}var be=de.types;be&&F.push([Q,be]);var Oe=(""+de.keywords).replace(/^ | $/g,"");Oe.length&&F.push([x,new RegExp("^(?:"+Oe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ee.push([xe,/^\s+/,null,` \r
|
|
|
\xA0`]);var Fe="^.[^\\s\\w.$@'\"`/\\\\]*";return de.regexLiterals&&(Fe+="(?!s*/)"),F.push([q,/^@[a-z_$][a-z_$@0-9]*/i,null],[Q,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[xe,/^[a-z_$][a-z_$@0-9]*/i,null],[q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[xe,/^\\[\s\S]?/,null],[ce,new RegExp(Fe),null]),Pe(Ee,F)}var Ue=Ne({keywords:k,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ve(de,Ee,F){for(var fe=/(?:^|\s)nocode(?:\s|$)/,Te=/\r\n?|\n/,I=de.ownerDocument,ee=I.createElement("li");de.firstChild;)ee.appendChild(de.firstChild);var he=[ee];function be(Xe){var Dt=Xe.nodeType;if(Dt==1&&!fe.test(Xe.className))if(Xe.nodeName==="br")Oe(Xe),Xe.parentNode&&Xe.parentNode.removeChild(Xe);else for(var kt=Xe.firstChild;kt;kt=kt.nextSibling)be(kt);else if((Dt==3||Dt==4)&&F){var Le=Xe.nodeValue,Ke=Le.match(Te);if(Ke){var nt=Le.substring(0,Ke.index);Xe.nodeValue=nt;var ft=Le.substring(Ke.index+Ke[0].length);if(ft){var At=Xe.parentNode;At.insertBefore(I.createTextNode(ft),Xe.nextSibling)}Oe(Xe),nt||Xe.parentNode.removeChild(Xe)}}}function Oe(Xe){for(;!Xe.nextSibling;)if(Xe=Xe.parentNode,!Xe)return;function Dt(Ke,nt){var ft=nt?Ke.cloneNode(!1):Ke,At=Ke.parentNode;if(At){var It=Dt(At,1),_=Ke.nextSibling;It.appendChild(ft);for(var C=_;C;C=_)_=C.nextSibling,It.appendChild(C)}return ft}for(var kt=Dt(Xe.nextSibling,0),Le;(Le=kt.parentNode)&&Le.nodeType===1;)kt=Le;he.push(kt)}for(var Fe=0;Fe<he.length;++Fe)be(he[Fe]);Ee===(Ee|0)&&he[0].setAttribute("value",Ee);var Qe=I.createElement("ol");Qe.className="linenums";for(var ht=Math.max(0,Ee-1|0)||0,Fe=0,ot=he.length;Fe<ot;++Fe)ee=he[Fe],ee.className="L"+(Fe+ht)%10,ee.firstChild||ee.appendChild(I.createTextNode("\xA0")),Qe.appendChild(ee);de.appendChild(Qe)}function qe(de){var Ee=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ee=Ee&&+Ee[1]<=8;var F=/\n/g,fe=de.sourceCode,Te=fe.length,I=0,ee=de.spans,he=ee.length,be=0,Oe=de.decorations,Fe=Oe.length,Qe=0;Oe[Fe]=Te;var ht,ot;for(ot=ht=0;ot<Fe;)Oe[ot]!==Oe[ot+2]?(Oe[ht++]=Oe[ot++],Oe[ht++]=Oe[ot++]):ot+=2;for(Fe=ht,ot=ht=0;ot<Fe;){for(var Xe=Oe[ot],Dt=Oe[ot+1],kt=ot+2;kt+2<=Fe&&Oe[kt+1]===Dt;)kt+=2;Oe[ht++]=Xe,Oe[ht++]=Dt,ot=kt}Fe=Oe.length=ht;var Le=de.sourceNode,Ke="";Le&&(Ke=Le.style.display,Le.style.display="none");try{for(var nt=null;be<he;){var ft=ee[be],At=ee[be+2]||Te,It=Oe[Qe+2]||Te,kt=Math.min(At,It),_=ee[be+1],C;if(_.nodeType!==1&&(C=fe.substring(I,kt))){Ee&&(C=C.replace(F,"\r")),_.nodeValue=C;var et=_.ownerDocument,$=et.createElement("span");$.className=Oe[Qe+1];var me=_.parentNode;me.replaceChild($,_),$.appendChild(_),I<At&&(ee[be+1]=_=et.createTextNode(fe.substring(kt,At)),me.insertBefore(_,$.nextSibling))}I=kt,I>=At&&(be+=2),I>=It&&(Qe+=2)}}finally{Le&&(Le.style.display=Ke)}}var tt={};function lt(de,Ee){for(var F=Ee.length;--F>=0;){var fe=Ee[F];tt.hasOwnProperty(fe)?se.console&&console.warn("cannot override language handler %s",fe):tt[fe]=de}}function Ut(de,Ee){return de&&tt.hasOwnProperty(de)||(de=/^\s*</.test(Ee)?"default-markup":"default-code"),tt[de]}lt(Ue,["default-code"]),lt(Pe([],[[xe,/^[^<?]+/],[Be,/^<!\w[^>]*(?:>|$)/],[z,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ce,/^(?:<[%?]|[%?]>)/],["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"]),lt(Pe([[xe,/^[\s]+/,null,` \r
|
|
|
`],[Z,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[we,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[L,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ce,/^[=<>\/]+/],["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"]),lt(Pe([],[[Z,/^[\s\S]+/]]),["uq.val"]),lt(Ne({keywords:P,hashComments:!0,cStyleComments:!0,types:U}),["c","cc","cpp","cxx","cyc","m"]),lt(Ne({keywords:"null,true,false"}),["json"]),lt(Ne({keywords:A,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:U}),["cs"]),lt(Ne({keywords:O,cStyleComments:!0}),["java"]),lt(Ne({keywords:R,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),lt(Ne({keywords:V,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),lt(Ne({keywords:E,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),lt(Ne({keywords:te,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),lt(Ne({keywords:w,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),lt(Ne({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),lt(Pe([],[[ae,/^[\s\S]+/]]),["regex"]);function Yt(de){var Ee=de.langExtension;try{var F=g(de.sourceNode,de.pre),fe=F.sourceCode;de.sourceCode=fe,de.spans=F.spans,de.basePos=0,Ut(Ee,fe)(de),qe(de)}catch(Te){se.console&&console.log(Te&&Te.stack||Te)}}function sr(de,Ee,F){var fe=F||!1,Te=Ee||null,I=document.createElement("div");I.innerHTML="<pre>"+de+"</pre>",I=I.firstChild,fe&&Ve(I,fe,!0);var ee={langExtension:Te,numberLines:fe,sourceNode:I,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Yt(ee),I.innerHTML}function Bt(de,Ee){var F=Ee||document.body,fe=F.ownerDocument||document;function Te(ft){return F.getElementsByTagName(ft)}for(var I=[Te("pre"),Te("code"),Te("xmp")],ee=[],he=0;he<I.length;++he)for(var be=0,Oe=I[he].length;be<Oe;++be)ee.push(I[he][be]);I=null;var Fe=Date;Fe.now||(Fe={now:function(){return+new Date}});var Qe=0,ht=/\blang(?:uage)?-([\w.]+)(?!\S)/,ot=/\bprettyprint\b/,Xe=/\bprettyprinted\b/,Dt=/pre|xmp/i,kt=/^code$/i,Le=/^(?:pre|code|xmp)$/i,Ke={};function nt(){for(var ft=se.PR_SHOULD_USE_CONTINUATION?Fe.now()+250:1/0;Qe<ee.length&&Fe.now()<ft;Qe++){for(var At=ee[Qe],It=Ke,_=At;_=_.previousSibling;){var C=_.nodeType,et=(C===7||C===8)&&_.nodeValue;if(et?!/^\??prettify\b/.test(et):C!==3||/\S/.test(_.nodeValue))break;if(et){It={},et.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ae,Zt,lr){It[Zt]=lr});break}}var $=At.className;if((It!==Ke||ot.test($))&&!Xe.test($)){for(var me=!1,tr=At.parentNode;tr;tr=tr.parentNode){var ke=tr.tagName;if(Le.test(ke)&&tr.className&&ot.test(tr.className)){me=!0;break}}if(!me){At.className+=" prettyprinted";var He=It.lang;if(!He){He=$.match(ht);var Ze;!He&&(Ze=G(At))&&kt.test(Ze.tagName)&&(He=Ze.className.match(ht)),He&&(He=He[1])}var X;if(Dt.test(At.tagName))X=1;else{var oe=At.currentStyle,De=fe.defaultView,ze=oe?oe.whiteSpace:De&&De.getComputedStyle?De.getComputedStyle(At,null).getPropertyValue("white-space"):0;X=ze&&ze.substring(0,3)==="pre"}var j=It.linenums;(j=j==="true"||+j)||(j=$.match(/\blinenums\b(?::(\d+))?/),j=j?j[1]&&j[1].length?+j[1]:!0:!1),j&&Ve(At,j,X);var Pt={langExtension:He,sourceNode:At,numberLines:j,pre:X,sourceCode:null,basePos:null,spans:null,decorations:null};Yt(Pt)}}}Qe<ee.length?se.setTimeout(nt,250):typeof de=="function"&&de()}nt()}var Ht=se.PR={createSimpleLexer:Pe,registerLangHandler:lt,sourceDecorator:Ne,PR_ATTRIB_NAME:L,PR_ATTRIB_VALUE:Z,PR_COMMENT:z,PR_DECLARATION:Be,PR_KEYWORD:x,PR_LITERAL:q,PR_NOCODE:W,PR_PLAIN:xe,PR_PUNCTUATION:ce,PR_SOURCE:H,PR_STRING:ae,PR_TAG:we,PR_TYPE:Q,prettyPrintOne:v?se.prettyPrintOne=sr:Ie=sr,prettyPrint:ne=v?se.prettyPrint=Bt:ne=Bt},Xt=se.define;typeof Xt=="function"&&Xt.amd&&Xt("google-code-prettify",[],function(){return Ht})})()},25769:function(Qt,it,y){"use strict";var v=y(98040),Y={"text/plain":"Text","text/html":"Url",default:"Text"},ge="Copy to clipboard: #{key}, Enter";function Ie(se){var ye=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return se.replace(/#{\s*key\s*}/g,ye)}function ne(se,ye){var ve,a,P,O,A,c,w=!1;ye||(ye={}),ve=ye.debug||!1;try{P=v(),O=document.createRange(),A=document.getSelection(),c=document.createElement("span"),c.textContent=se,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(V){if(V.stopPropagation(),ye.format)if(V.preventDefault(),typeof V.clipboardData=="undefined"){ve&&console.warn("unable to use e.clipboardData"),ve&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var te=Y[ye.format]||Y.default;window.clipboardData.setData(te,se)}else V.clipboardData.clearData(),V.clipboardData.setData(ye.format,se);ye.onCopy&&(V.preventDefault(),ye.onCopy(V.clipboardData))}),document.body.appendChild(c),O.selectNodeContents(c),A.addRange(O);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");w=!0}catch(V){ve&&console.error("unable to copy using execCommand: ",V),ve&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ye.format||"text",se),ye.onCopy&&ye.onCopy(window.clipboardData),w=!0}catch(te){ve&&console.error("unable to copy using clipboardData: ",te),ve&&console.error("falling back to prompt"),a=Ie("message"in ye?ye.message:ge),window.prompt(a,se)}}finally{A&&(typeof A.removeRange=="function"?A.removeRange(O):A.removeAllRanges()),c&&document.body.removeChild(c),P()}return w}Qt.exports=ne},53184:function(Qt,it,y){"use strict";var v,Y;function ge(Ie,ne,se){var ye=function(ve,a){return Ie.js_beautify(ve,a)};return ye.js=Ie.js_beautify,ye.css=ne.css_beautify,ye.html=se.html_beautify,ye.js_beautify=Ie.js_beautify,ye.css_beautify=ne.css_beautify,ye.html_beautify=se.html_beautify,ye}v=[y(58553),y(87804),y(40998)],Y=function(Ie,ne,se){return ge(Ie,ne,se)}.apply(it,v),Y!==void 0&&(Qt.exports=Y)},87804:function(Qt,it){var y,v;(function(){var Y;(function(){"use strict";var Ie=[,,function(ve){function a(A){this.__parent=A,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 A=new a(this.__parent);return A.set_indent(this.__indent_count,this.__alignment_count),A},a.prototype.item=function(A){return A<0?this.__items[this.__items.length+A]:this.__items[A]},a.prototype.has_match=function(A){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(A))return!0;return!1},a.prototype.set_indent=function(A,c){this.is_empty()&&(this.__indent_count=A||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 A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__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(A){this.__items.push(A);var c=A.lastIndexOf(`
|
|
|
`);c!==-1?this.__character_count=A.length-c:this.__character_count+=A.length},a.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},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 A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function P(A,c){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),c=c||"",A.indent_level>0&&(c=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}P.prototype.get_indent_size=function(A,c){var w=this.__base_string_length;return c=c||0,A<0&&(w=0),w+=A*this.__indent_size,w+=c,w},P.prototype.get_indent_string=function(A,c){var w=this.__base_string;return c=c||0,A<0&&(A=0,w=""),c+=A*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},P.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},P.prototype.__add_column=function(){var A=this.__cache.length,c=0,w="";this.__indent_size&&A>=this.__indent_size&&(c=Math.floor(A/this.__indent_size),A-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),A&&(w+=new Array(A+1).join(" ")),this.__cache.push(w)};function O(A,c){this.__indent_cache=new P(A,c),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.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()}O.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},O.prototype.get_line_number=function(){return this.__lines.length},O.prototype.get_indent_string=function(A,c){return this.__indent_cache.get_indent_string(A,c)},O.prototype.get_indent_size=function(A,c){return this.__indent_cache.get_indent_size(A,c)},O.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},O.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},O.prototype.get_code=function(A){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
|
|
|
`);return A!==`
|
|
|
`&&(w=w.replace(/[\n]/g,A)),w},O.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},O.prototype.set_indent=function(A,c){return A=A||0,c=c||0,this.next_line.set_indent(A,c),this.__lines.length>1?(this.current_line.set_indent(A,c),!0):(this.current_line.set_indent(),!1)},O.prototype.add_raw_token=function(A){for(var c=0;c<A.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(A.whitespace_before),this.current_line.push(A.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},O.prototype.add_token=function(A){this.__add_space_before_token(),this.current_line.push(A),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},O.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(" "))},O.prototype.remove_indent=function(A){for(var c=this.__lines.length;A<c;)this.__lines[A]._remove_indent(),A++;this.current_line._remove_wrap_indent()},O.prototype.trim=function(A){for(A=A===void 0?!1:A,this.current_line.trim();A&&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},O.prototype.just_added_newline=function(){return this.current_line.is_empty()},O.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},O.prototype.ensure_empty_line_above=function(A,c){for(var w=this.__lines.length-2;w>=0;){var E=this.__lines[w];if(E.is_empty())break;if(E.item(0).indexOf(A)!==0&&E.item(-1)!==c){this.__lines.splice(w+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},ve.exports.Output=O},,,,function(ve){function a(A,c){this.raw_options=P(A,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(A,c){var w=this.raw_options[A],E=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(E=w.concat()):typeof w=="string"&&(E=w.split(/[^a-zA-Z0-9_\/\-]+/)),E},a.prototype._get_boolean=function(A,c){var w=this.raw_options[A],E=w===void 0?!!c:!!w;return E},a.prototype._get_characters=function(A,c){var w=this.raw_options[A],E=c||"";return typeof w=="string"&&(E=w.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),E},a.prototype._get_number=function(A,c){var w=this.raw_options[A];c=parseInt(c,10),isNaN(c)&&(c=0);var E=parseInt(w,10);return isNaN(E)&&(E=c),E},a.prototype._get_selection=function(A,c,w){var E=this._get_selection_list(A,c,w);if(E.length!==1)throw new Error("Invalid Option Value: The option '"+A+`' can only be one of the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[A]+"'");return E[0]},a.prototype._get_selection_list=function(A,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var E=this._get_array(A,w);if(!this._is_valid_selection(E,c))throw new Error("Invalid Option Value: The option '"+A+`' can contain only the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[A]+"'");return E},a.prototype._is_valid_selection=function(A,c){return A.length&&c.length&&!A.some(function(w){return c.indexOf(w)===-1})};function P(A,c){var w={};A=O(A);var E;for(E in A)E!==c&&(w[E]=A[E]);if(c&&A[c])for(E in A[c])w[E]=A[c][E];return w}function O(A){var c={},w;for(w in A){var E=w.replace(/-/g,"_");c[E]=A[w]}return c}ve.exports.Options=a,ve.exports.normalizeOpts=O,ve.exports.mergeOpts=P},,function(ve){var a=RegExp.prototype.hasOwnProperty("sticky");function P(O){this.__input=O||"",this.__input_length=this.__input.length,this.__position=0}P.prototype.restart=function(){this.__position=0},P.prototype.back=function(){this.__position>0&&(this.__position-=1)},P.prototype.hasNext=function(){return this.__position<this.__input_length},P.prototype.next=function(){var O=null;return this.hasNext()&&(O=this.__input.charAt(this.__position),this.__position+=1),O},P.prototype.peek=function(O){var A=null;return O=O||0,O+=this.__position,O>=0&&O<this.__input_length&&(A=this.__input.charAt(O)),A},P.prototype.__match=function(O,A){O.lastIndex=A;var c=O.exec(this.__input);return c&&!(a&&O.sticky)&&c.index!==A&&(c=null),c},P.prototype.test=function(O,A){return A=A||0,A+=this.__position,A>=0&&A<this.__input_length?!!this.__match(O,A):!1},P.prototype.testChar=function(O,A){var c=this.peek(A);return O.lastIndex=0,c!==null&&O.test(c)},P.prototype.match=function(O){var A=this.__match(O,this.__position);return A?this.__position+=A[0].length:A=null,A},P.prototype.read=function(O,A,c){var w="",E;return O&&(E=this.match(O),E&&(w+=E[0])),A&&(E||!O)&&(w+=this.readUntil(A,c)),w},P.prototype.readUntil=function(O,A){var c="",w=this.__position;O.lastIndex=this.__position;var E=O.exec(this.__input);return E?(w=E.index,A&&(w+=E[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},P.prototype.readUntilAfter=function(O){return this.readUntil(O,!0)},P.prototype.get_regexp=function(O,A){var c=null,w="g";return A&&a&&(w="y"),typeof O=="string"&&O!==""?c=new RegExp(O,w):O&&(c=new RegExp(O.source,w)),c},P.prototype.get_literal_regexp=function(O){return RegExp(O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},P.prototype.peekUntilAfter=function(O){var A=this.__position,c=this.readUntilAfter(O);return this.__position=A,c},P.prototype.lookBack=function(O){var A=this.__position-1;return A>=O.length&&this.__input.substring(A-O.length,A).toLowerCase()===O},ve.exports.InputScanner=P},,,,,function(ve){function a(P,O){P=typeof P=="string"?P:P.source,O=typeof O=="string"?O:O.source,this.__directives_block_pattern=new RegExp(P+/ beautify( \w+[:]\w+)+ /.source+O,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(P+/\sbeautify\signore:end\s/.source+O,"g")}a.prototype.get_directives=function(P){if(!P.match(this.__directives_block_pattern))return null;var O={};this.__directive_pattern.lastIndex=0;for(var A=this.__directive_pattern.exec(P);A;)O[A[1]]=A[2],A=this.__directive_pattern.exec(P);return O},a.prototype.readIgnored=function(P){return P.readUntilAfter(this.__directives_end_ignore_pattern)},ve.exports.Directives=a},,function(ve,a,P){var O=P(16).Beautifier,A=P(17).Options;function c(w,E){var V=new O(w,E);return V.beautify()}ve.exports=c,ve.exports.defaultOptions=function(){return new A}},function(ve,a,P){var O=P(17).Options,A=P(2).Output,c=P(8).InputScanner,w=P(13).Directives,E=new w(/\/\*/,/\*\//),V=/\r\n|[\r\n]/,te=/\r\n|[\r\n]/g,R=/\s/,k=/(?:\s|\n)+/g,U=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ae=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(z,Q){this._source_text=z||"",this._options=new O(Q),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"]}x.prototype.eatString=function(z){var Q="";for(this._ch=this._input.next();this._ch;){if(Q+=this._ch,this._ch==="\\")Q+=this._input.next();else if(z.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return Q},x.prototype.eatWhitespace=function(z){for(var Q=R.test(this._input.peek()),q=0;R.test(this._input.peek());)this._ch=this._input.next(),z&&this._ch===`
|
|
|
`&&(q===0||q<this._options.max_preserve_newlines)&&(q++,this._output.add_new_line(!0));return Q},x.prototype.foundNestedPseudoClass=function(){for(var z=0,Q=1,q=this._input.peek(Q);q;){if(q==="{")return!0;if(q==="(")z+=1;else if(q===")"){if(z===0)return!1;z-=1}else if(q===";"||q==="}")return!1;Q++,q=this._input.peek(Q)}return!1},x.prototype.print_string=function(z){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(z)},x.prototype.preserveSingleSpace=function(z){z&&(this._output.space_before_token=!0)},x.prototype.indent=function(){this._indentLevel++},x.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var z=this._source_text,Q=this._options.eol;Q==="auto"&&(Q=`
|
|
|
`,z&&V.test(z||"")&&(Q=z.match(V)[0])),z=z.replace(te,`
|
|
|
`);var q=z.match(/^[\t ]*/)[0];this._output=new A(this._options,q),this._input=new c(z),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ce=0,xe=!1,we=!1,Be=!1,H=!1,L=!1,Z=this._ch,W=!1,le,J,g;le=this._input.read(k),J=le!=="",g=Z,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Z=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var S=this._input.read(U),K=E.get_directives(S);K&&K.ignore==="start"&&(S+=E.readIgnored(this._input)),this.print_string(S),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ae)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(J),this.print_string(this._ch);var G=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);G.match(/[ :]$/)&&(G=this.eatString(": ").replace(/\s+$/,""),this.print_string(G),this._output.space_before_token=!0),ce===0&&G.indexOf(":")!==-1&&(we=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(J),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Pe.match(/[ :]$/)&&(Pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Pe),this._output.space_before_token=!0),ce===0&&Pe.indexOf(":")!==-1?(we=!0,this.indent()):Pe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Pe in this.CONDITIONAL_GROUP_RULE&&(Be=!0)):ce===0&&!we&&(H=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(J),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")we&&(we=!1,this.outdent()),H=!1,Be?(Be=!1,xe=this._indentLevel>=this._nestedLevel):xe=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&xe&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(g==="("?this._output.space_before_token=!1:g!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),g==="{"&&this._output.trim(!0),we&&(this.outdent(),we=!1),this.print_string(this._ch),xe=!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 Ne=0;Ne<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ne++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ne])){W=!0;break}(xe||Be)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!H&&ce===0?(this.print_string(":"),we||(we=!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 Ue=g==='"'||g==="'";this.preserveSingleSpace(Ue||J),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")W=!1,ce===0?(we&&(this.outdent(),we=!1),H=!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(),ce++,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(")")),ce&&(ce--,this.outdent()));else{var Ve=!1;this._input.lookBack("with")&&(Ve=!0),this.preserveSingleSpace(J||Ve),this.print_string(this._ch),we&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),L=!0):(this.eatWhitespace(),ce++,this.indent())}else if(this._ch===")")ce&&(ce--,this.outdent()),L&&this._input.peek()===";"&&this._options.selector_separator_newline&&(L=!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&&(!we||L)&&ce===0&&!H?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!we&&ce===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&&R.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(J),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),R.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 qe=g==='"'||g==="'";this.preserveSingleSpace(qe||J),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&W&&this._output.add_new_line()}var tt=this._output.get_code(Q);return tt},ve.exports.Beautifier=x},function(ve,a,P){var O=P(6).Options;function A(c){O.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var w=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||w;var E=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var V=0;V<E.length;V++)E[V]!=="expand"?this.brace_style="collapse":this.brace_style=E[V]}A.prototype=new O,ve.exports.Options=A}],ne={};function se(ve){var a=ne[ve];if(a!==void 0)return a.exports;var P=ne[ve]={exports:{}};return Ie[ve](P,P.exports,se),P.exports}var ye=se(15);Y=ye})();var ge=Y;y=[],v=function(){return{css_beautify:ge}}.apply(it,y),v!==void 0&&(Qt.exports=v)})()},40998:function(Qt,it,y){var v,Y;(function(){var ge;(function(){"use strict";var ye=[,,function(O){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 V=this.__items.length-1;V>=0;V--)if(this.__items[V].match(E))return!0;return!1},A.prototype.set_indent=function(E,V){this.is_empty()&&(this.__indent_count=E||0,this.__alignment_count=V||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 V=E.lastIndexOf(`
|
|
|
`);V!==-1?this.__character_count=E.length-V: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 c(E,V){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)),V=V||"",E.indent_level>0&&(V=new Array(E.indent_level+1).join(this.__indent_string)),this.__base_string=V,this.__base_string_length=V.length}c.prototype.get_indent_size=function(E,V){var te=this.__base_string_length;return V=V||0,E<0&&(te=0),te+=E*this.__indent_size,te+=V,te},c.prototype.get_indent_string=function(E,V){var te=this.__base_string;return V=V||0,E<0&&(E=0,te=""),V+=E*this.__indent_size,this.__ensure_cache(V),te+=this.__cache[V],te},c.prototype.__ensure_cache=function(E){for(;E>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var E=this.__cache.length,V=0,te="";this.__indent_size&&E>=this.__indent_size&&(V=Math.floor(E/this.__indent_size),E-=V*this.__indent_size,te=new Array(V+1).join(this.__indent_string)),E&&(te+=new Array(E+1).join(" ")),this.__cache.push(te)};function w(E,V){this.__indent_cache=new c(E,V),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()}w.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},w.prototype.get_line_number=function(){return this.__lines.length},w.prototype.get_indent_string=function(E,V){return this.__indent_cache.get_indent_string(E,V)},w.prototype.get_indent_size=function(E,V){return this.__indent_cache.get_indent_size(E,V)},w.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},w.prototype.add_new_line=function(E){return this.is_empty()||!E&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},w.prototype.get_code=function(E){this.trim(!0);var V=this.current_line.pop();V&&(V[V.length-1]===`
|
|
|
`&&(V=V.replace(/\n+$/g,"")),this.current_line.push(V)),this._end_with_newline&&this.__add_outputline();var te=this.__lines.join(`
|
|
|
`);return E!==`
|
|
|
`&&(te=te.replace(/[\n]/g,E)),te},w.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},w.prototype.set_indent=function(E,V){return E=E||0,V=V||0,this.next_line.set_indent(E,V),this.__lines.length>1?(this.current_line.set_indent(E,V),!0):(this.current_line.set_indent(),!1)},w.prototype.add_raw_token=function(E){for(var V=0;V<E.newlines;V++)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},w.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()},w.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},w.prototype.remove_indent=function(E){for(var V=this.__lines.length;E<V;)this.__lines[E]._remove_indent(),E++;this.current_line._remove_wrap_indent()},w.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},w.prototype.just_added_newline=function(){return this.current_line.is_empty()},w.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},w.prototype.ensure_empty_line_above=function(E,V){for(var te=this.__lines.length-2;te>=0;){var R=this.__lines[te];if(R.is_empty())break;if(R.item(0).indexOf(E)!==0&&R.item(-1)!==V){this.__lines.splice(te+1,0,new A(this)),this.previous_line=this.__lines[this.__lines.length-2];break}te--}},O.exports.Output=w},function(O){function A(c,w,E,V){this.type=c,this.text=w,this.comments_before=null,this.newlines=E||0,this.whitespace_before=V||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}O.exports.Token=A},,,function(O){function A(E,V){this.raw_options=c(E,V),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,V){var te=this.raw_options[E],R=V||[];return typeof te=="object"?te!==null&&typeof te.concat=="function"&&(R=te.concat()):typeof te=="string"&&(R=te.split(/[^a-zA-Z0-9_\/\-]+/)),R},A.prototype._get_boolean=function(E,V){var te=this.raw_options[E],R=te===void 0?!!V:!!te;return R},A.prototype._get_characters=function(E,V){var te=this.raw_options[E],R=V||"";return typeof te=="string"&&(R=te.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),R},A.prototype._get_number=function(E,V){var te=this.raw_options[E];V=parseInt(V,10),isNaN(V)&&(V=0);var R=parseInt(te,10);return isNaN(R)&&(R=V),R},A.prototype._get_selection=function(E,V,te){var R=this._get_selection_list(E,V,te);if(R.length!==1)throw new Error("Invalid Option Value: The option '"+E+`' can only be one of the following values:
|
|
|
`+V+`
|
|
|
You passed in: '`+this.raw_options[E]+"'");return R[0]},A.prototype._get_selection_list=function(E,V,te){if(!V||V.length===0)throw new Error("Selection list cannot be empty.");if(te=te||[V[0]],!this._is_valid_selection(te,V))throw new Error("Invalid Default Value!");var R=this._get_array(E,te);if(!this._is_valid_selection(R,V))throw new Error("Invalid Option Value: The option '"+E+`' can contain only the following values:
|
|
|
`+V+`
|
|
|
You passed in: '`+this.raw_options[E]+"'");return R},A.prototype._is_valid_selection=function(E,V){return E.length&&V.length&&!E.some(function(te){return V.indexOf(te)===-1})};function c(E,V){var te={};E=w(E);var R;for(R in E)R!==V&&(te[R]=E[R]);if(V&&E[V])for(R in E[V])te[R]=E[V][R];return te}function w(E){var V={},te;for(te in E){var R=te.replace(/-/g,"_");V[R]=E[te]}return V}O.exports.Options=A,O.exports.normalizeOpts=w,O.exports.mergeOpts=c},,function(O){var A=RegExp.prototype.hasOwnProperty("sticky");function c(w){this.__input=w||"",this.__input_length=this.__input.length,this.__position=0}c.prototype.restart=function(){this.__position=0},c.prototype.back=function(){this.__position>0&&(this.__position-=1)},c.prototype.hasNext=function(){return this.__position<this.__input_length},c.prototype.next=function(){var w=null;return this.hasNext()&&(w=this.__input.charAt(this.__position),this.__position+=1),w},c.prototype.peek=function(w){var E=null;return w=w||0,w+=this.__position,w>=0&&w<this.__input_length&&(E=this.__input.charAt(w)),E},c.prototype.__match=function(w,E){w.lastIndex=E;var V=w.exec(this.__input);return V&&!(A&&w.sticky)&&V.index!==E&&(V=null),V},c.prototype.test=function(w,E){return E=E||0,E+=this.__position,E>=0&&E<this.__input_length?!!this.__match(w,E):!1},c.prototype.testChar=function(w,E){var V=this.peek(E);return w.lastIndex=0,V!==null&&w.test(V)},c.prototype.match=function(w){var E=this.__match(w,this.__position);return E?this.__position+=E[0].length:E=null,E},c.prototype.read=function(w,E,V){var te="",R;return w&&(R=this.match(w),R&&(te+=R[0])),E&&(R||!w)&&(te+=this.readUntil(E,V)),te},c.prototype.readUntil=function(w,E){var V="",te=this.__position;w.lastIndex=this.__position;var R=w.exec(this.__input);return R?(te=R.index,E&&(te+=R[0].length)):te=this.__input_length,V=this.__input.substring(this.__position,te),this.__position=te,V},c.prototype.readUntilAfter=function(w){return this.readUntil(w,!0)},c.prototype.get_regexp=function(w,E){var V=null,te="g";return E&&A&&(te="y"),typeof w=="string"&&w!==""?V=new RegExp(w,te):w&&(V=new RegExp(w.source,te)),V},c.prototype.get_literal_regexp=function(w){return RegExp(w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(w){var E=this.__position,V=this.readUntilAfter(w);return this.__position=E,V},c.prototype.lookBack=function(w){var E=this.__position-1;return E>=w.length&&this.__input.substring(E-w.length,E).toLowerCase()===w},O.exports.InputScanner=c},function(O,A,c){var w=c(8).InputScanner,E=c(3).Token,V=c(10).TokenStream,te=c(11).WhitespacePattern,R={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},k=function(U,ae){this._input=new w(U),this._options=ae||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new te(this._input)};k.prototype.tokenize=function(){this._input.restart(),this.__tokens=new V,this._reset();for(var U,ae=new E(R.START,""),x=null,z=[],Q=new V;ae.type!==R.EOF;){for(U=this._get_next_token(ae,x);this._is_comment(U);)Q.add(U),U=this._get_next_token(ae,x);Q.isEmpty()||(U.comments_before=Q,Q=new V),U.parent=x,this._is_opening(U)?(z.push(x),x=U):x&&this._is_closing(U,x)&&(U.opened=x,x.closed=U,x=z.pop(),U.parent=x),U.previous=ae,ae.next=U,this.__tokens.add(U),ae=U}return this.__tokens},k.prototype._is_first_token=function(){return this.__tokens.isEmpty()},k.prototype._reset=function(){},k.prototype._get_next_token=function(U,ae){this._readWhitespace();var x=this._input.read(/.+/g);return x?this._create_token(R.RAW,x):this._create_token(R.EOF,"")},k.prototype._is_comment=function(U){return!1},k.prototype._is_opening=function(U){return!1},k.prototype._is_closing=function(U,ae){return!1},k.prototype._create_token=function(U,ae){var x=new E(U,ae,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return x},k.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},O.exports.Tokenizer=k,O.exports.TOKEN=R},function(O){function A(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}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 c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},A.prototype.peek=function(c){var w=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(w=this.__tokens[c]),w},A.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},O.exports.TokenStream=A},function(O,A,c){var w=c(12).Pattern;function E(V,te){w.call(this,V,te),te?this._line_regexp=this._input.get_regexp(te._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}E.prototype=new w,E.prototype.__set_whitespace_patterns=function(V,te){V+="\\t ",te+="\\n\\r",this._match_pattern=this._input.get_regexp("["+V+te+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+te+"]")},E.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var V=this._input.read(this._match_pattern);if(V===" ")this.whitespace_before_token=" ";else if(V){var te=this.__split(this._newline_regexp,V);this.newline_count=te.length-1,this.whitespace_before_token=te[this.newline_count]}return V},E.prototype.matching=function(V,te){var R=this._create();return R.__set_whitespace_patterns(V,te),R._update(),R},E.prototype._create=function(){return new E(this._input,this)},E.prototype.__split=function(V,te){V.lastIndex=0;for(var R=0,k=[],U=V.exec(te);U;)k.push(te.substring(R,U.index)),R=U.index+U[0].length,U=V.exec(te);return R<te.length?k.push(te.substring(R,te.length)):k.push(""),k},O.exports.WhitespacePattern=E},function(O){function A(c,w){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,w&&(this._starting_pattern=this._input.get_regexp(w._starting_pattern,!0),this._match_pattern=this._input.get_regexp(w._match_pattern,!0),this._until_pattern=this._input.get_regexp(w._until_pattern),this._until_after=w._until_after)}A.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},A.prototype.read_match=function(){return this._input.match(this._match_pattern)},A.prototype.until_after=function(c){var w=this._create();return w._until_after=!0,w._until_pattern=this._input.get_regexp(c),w._update(),w},A.prototype.until=function(c){var w=this._create();return w._until_after=!1,w._until_pattern=this._input.get_regexp(c),w._update(),w},A.prototype.starting_with=function(c){var w=this._create();return w._starting_pattern=this._input.get_regexp(c,!0),w._update(),w},A.prototype.matching=function(c){var w=this._create();return w._match_pattern=this._input.get_regexp(c,!0),w._update(),w},A.prototype._create=function(){return new A(this._input,this)},A.prototype._update=function(){},O.exports.Pattern=A},function(O){function A(c,w){c=typeof c=="string"?c:c.source,w=typeof w=="string"?w:w.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+w,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+w,"g")}A.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var w={};this.__directive_pattern.lastIndex=0;for(var E=this.__directive_pattern.exec(c);E;)w[E[1]]=E[2],E=this.__directive_pattern.exec(c);return w},A.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},O.exports.Directives=A},function(O,A,c){var w=c(12).Pattern,E={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function V(te,R){w.call(this,te,R),this.__template_pattern=null,this._disabled=Object.assign({},E),this._excluded=Object.assign({},E),R&&(this.__template_pattern=this._input.get_regexp(R.__template_pattern),this._excluded=Object.assign(this._excluded,R._excluded),this._disabled=Object.assign(this._disabled,R._disabled));var k=new w(te);this.__patterns={handlebars_comment:k.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:k.starting_with(/{{{/).until_after(/}}}/),handlebars:k.starting_with(/{{/).until_after(/}}/),php:k.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:k.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:k.starting_with(/{%/).until_after(/%}/),django_value:k.starting_with(/{{/).until_after(/}}/),django_comment:k.starting_with(/{#/).until_after(/#}/),smarty:k.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:k.starting_with(/{\*/).until_after(/\*}/),smarty_literal:k.starting_with(/{literal}/).until_after(/{\/literal}/)}}V.prototype=new w,V.prototype._create=function(){return new V(this._input,this)},V.prototype._update=function(){this.__set_templated_pattern()},V.prototype.disable=function(te){var R=this._create();return R._disabled[te]=!0,R._update(),R},V.prototype.read_options=function(te){var R=this._create();for(var k in E)R._disabled[k]=te.templating.indexOf(k)===-1;return R._update(),R},V.prototype.exclude=function(te){var R=this._create();return R._excluded[te]=!0,R._update(),R},V.prototype.read=function(){var te="";this._match_pattern?te=this._input.read(this._starting_pattern):te=this._input.read(this._starting_pattern,this.__template_pattern);for(var R=this._read_template();R;)this._match_pattern?R+=this._input.read(this._match_pattern):R+=this._input.readUntil(this.__template_pattern),te+=R,R=this._read_template();return this._until_after&&(te+=this._input.readUntilAfter(this._until_pattern)),te},V.prototype.__set_templated_pattern=function(){var te=[];this._disabled.php||te.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||te.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(te.push(this.__patterns.django._starting_pattern.source),te.push(this.__patterns.django_value._starting_pattern.source),te.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||te.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&te.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+te.join("|")+")")},V.prototype._read_template=function(){var te="",R=this._input.peek();if(R==="<"){var k=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&k==="?"&&(te=te||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&k==="%"&&(te=te||this.__patterns.erb.read())}else R==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(te=te||this.__patterns.handlebars_comment.read(),te=te||this.__patterns.handlebars_unescaped.read(),te=te||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(te=te||this.__patterns.django_value.read()),this._excluded.django||(te=te||this.__patterns.django_comment.read(),te=te||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(te=te||this.__patterns.smarty_comment.read(),te=te||this.__patterns.smarty_literal.read(),te=te||this.__patterns.smarty.read()));return te},O.exports.TemplatablePattern=V},,,,function(O,A,c){var w=c(19).Beautifier,E=c(20).Options;function V(te,R,k,U){var ae=new w(te,R,k,U);return ae.beautify()}O.exports=V,O.exports.defaultOptions=function(){return new E}},function(O,A,c){var w=c(20).Options,E=c(2).Output,V=c(21).Tokenizer,te=c(21).TOKEN,R=/\r\n|[\r\n]/,k=/\r\n|[\r\n]/g,U=function(H,L){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=H.max_preserve_newlines,this.preserve_newlines=H.preserve_newlines,this._output=new E(H,L)};U.prototype.current_line_has_match=function(H){return this._output.current_line.has_match(H)},U.prototype.set_space_before_token=function(H,L){this._output.space_before_token=H,this._output.non_breaking_space=L},U.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},U.prototype.add_raw_token=function(H){this._output.add_raw_token(H)},U.prototype.print_preserved_newlines=function(H){var L=0;H.type!==te.TEXT&&H.previous.type!==te.TEXT&&(L=H.newlines?1:0),this.preserve_newlines&&(L=H.newlines<this.max_preserve_newlines+1?H.newlines:this.max_preserve_newlines+1);for(var Z=0;Z<L;Z++)this.print_newline(Z>0);return L!==0},U.prototype.traverse_whitespace=function(H){return H.whitespace_before||H.newlines?(this.print_preserved_newlines(H)||(this._output.space_before_token=!0),!0):!1},U.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},U.prototype.print_newline=function(H){this._output.add_new_line(H)},U.prototype.print_token=function(H){H.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(H.text))},U.prototype.indent=function(){this.indent_level++},U.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},U.prototype.get_full_indent=function(H){return H=this.indent_level+(H||0),H<1?"":this._output.get_indent_string(H)};var ae=function(H){for(var L=null,Z=H.next;Z.type!==te.EOF&&H.closed!==Z;){if(Z.type===te.ATTRIBUTE&&Z.text==="type"){Z.next&&Z.next.type===te.EQUALS&&Z.next.next&&Z.next.next.type===te.VALUE&&(L=Z.next.next.text);break}Z=Z.next}return L},x=function(H,L){var Z=null,W=null;return L.closed?(H==="script"?Z="text/javascript":H==="style"&&(Z="text/css"),Z=ae(L)||Z,Z.search("text/css")>-1?W="css":Z.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?W="javascript":Z.search(/(text|application|dojo)\/(x-)?(html)/)>-1?W="html":Z.search(/test\/null/)>-1&&(W="null"),W):null};function z(H,L){return L.indexOf(H)!==-1}function Q(H,L,Z){this.parent=H||null,this.tag=L?L.tag_name:"",this.indent_level=Z||0,this.parser_token=L||null}function q(H){this._printer=H,this._current_frame=null}q.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},q.prototype.record_tag=function(H){var L=new Q(this._current_frame,H,this._printer.indent_level);this._current_frame=L},q.prototype._try_pop_frame=function(H){var L=null;return H&&(L=H.parser_token,this._printer.indent_level=H.indent_level,this._current_frame=H.parent),L},q.prototype._get_frame=function(H,L){for(var Z=this._current_frame;Z&&H.indexOf(Z.tag)===-1;){if(L&&L.indexOf(Z.tag)!==-1){Z=null;break}Z=Z.parent}return Z},q.prototype.try_pop=function(H,L){var Z=this._get_frame([H],L);return this._try_pop_frame(Z)},q.prototype.indent_to_tag=function(H){var L=this._get_frame(H);L&&(this._printer.indent_level=L.indent_level)};function ce(H,L,Z,W){this._source_text=H||"",L=L||{},this._js_beautify=Z,this._css_beautify=W,this._tag_stack=null;var le=new w(L,"html");this._options=le,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"}ce.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var H=this._source_text,L=this._options.eol;this._options.eol==="auto"&&(L=`
|
|
|
`,H&&R.test(H)&&(L=H.match(R)[0])),H=H.replace(k,`
|
|
|
`);var Z=H.match(/^[\t ]*/)[0],W={text:"",type:""},le=new xe(this._options),J=new U(this._options,Z),g=new V(H,this._options).tokenize();this._tag_stack=new q(J);for(var S=null,K=g.next();K.type!==te.EOF;)K.type===te.TAG_OPEN||K.type===te.COMMENT?(S=this._handle_tag_open(J,K,le,W,g),le=S):K.type===te.ATTRIBUTE||K.type===te.EQUALS||K.type===te.VALUE||K.type===te.TEXT&&!le.tag_complete?S=this._handle_inside_tag(J,K,le,W):K.type===te.TAG_CLOSE?S=this._handle_tag_close(J,K,le):K.type===te.TEXT?S=this._handle_text(J,K,le):K.type===te.CONTROL_FLOW_OPEN?S=this._handle_control_flow_open(J,K):K.type===te.CONTROL_FLOW_CLOSE?S=this._handle_control_flow_close(J,K):J.add_raw_token(K),W=S,K=g.next();var G=J._output.get_code(L);return G},ce.prototype._handle_control_flow_open=function(H,L){var Z={text:L.text,type:L.type};return H.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),L.newlines?H.print_preserved_newlines(L):H.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),H.print_token(L),H.indent(),Z},ce.prototype._handle_control_flow_close=function(H,L){var Z={text:L.text,type:L.type};return H.deindent(),L.newlines?H.print_preserved_newlines(L):H.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),H.print_token(L),Z},ce.prototype._handle_tag_close=function(H,L,Z){var W={text:L.text,type:L.type};return H.alignment_size=0,Z.tag_complete=!0,H.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),Z.is_unformatted?H.add_raw_token(L):(Z.tag_start_char==="<"&&(H.set_space_before_token(L.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Z.has_wrapped_attrs&&H.print_newline(!1)),H.print_token(L)),Z.indent_content&&!(Z.is_unformatted||Z.is_content_unformatted)&&(H.indent(),Z.indent_content=!1),!Z.is_inline_element&&!(Z.is_unformatted||Z.is_content_unformatted)&&H.set_wrap_point(),W},ce.prototype._handle_inside_tag=function(H,L,Z,W){var le=Z.has_wrapped_attrs,J={text:L.text,type:L.type};return H.set_space_before_token(L.newlines||L.whitespace_before!=="",!0),Z.is_unformatted?H.add_raw_token(L):Z.tag_start_char==="{"&&L.type===te.TEXT?H.print_preserved_newlines(L)?(L.newlines=0,H.add_raw_token(L)):H.print_token(L):(L.type===te.ATTRIBUTE?H.set_space_before_token(!0):(L.type===te.EQUALS||L.type===te.VALUE&&L.previous.type===te.EQUALS)&&H.set_space_before_token(!1),L.type===te.ATTRIBUTE&&Z.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(H.traverse_whitespace(L),le=le||L.newlines!==0),this._is_wrap_attributes_force&&Z.attr_count>=this._options.wrap_attributes_min_attrs&&(W.type!==te.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(H.print_newline(!1),le=!0)),H.print_token(L),le=le||H.previous_token_wrapped(),Z.has_wrapped_attrs=le),J},ce.prototype._handle_text=function(H,L,Z){var W={text:L.text,type:"TK_CONTENT"};return Z.custom_beautifier_name?this._print_custom_beatifier_text(H,L,Z):Z.is_unformatted||Z.is_content_unformatted?H.add_raw_token(L):(H.traverse_whitespace(L),H.print_token(L)),W},ce.prototype._print_custom_beatifier_text=function(H,L,Z){var W=this;if(L.text!==""){var le=L.text,J,g=1,S="",K="";Z.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?J=this._js_beautify:Z.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?J=this._css_beautify:Z.custom_beautifier_name==="html"&&(J=function(qe,tt){var lt=new ce(qe,tt,W._js_beautify,W._css_beautify);return lt.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-H.indent_level);var G=H.get_full_indent(g);if(le=le.replace(/\n[ \t]*$/,""),Z.custom_beautifier_name!=="html"&&le[0]==="<"&&le.match(/^(<!--|<!\[CDATA\[)/)){var Pe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(le);if(!Pe){H.add_raw_token(L);return}S=G+Pe[1]+`
|
|
|
`,le=Pe[4],Pe[5]&&(K=G+Pe[5]),le=le.replace(/\n[ \t]*$/,""),(Pe[2]||Pe[3].indexOf(`
|
|
|
`)!==-1)&&(Pe=Pe[3].match(/[ \t]+$/),Pe&&(L.whitespace_before=Pe[0]))}if(le)if(J){var Ne=function(){this.eol=`
|
|
|
`};Ne.prototype=this._options.raw_options;var Ue=new Ne;le=J(G+le,Ue)}else{var Ve=L.whitespace_before;Ve&&(le=le.replace(new RegExp(`
|
|
|
(`+Ve+")?","g"),`
|
|
|
`)),le=G+le.replace(/\n/g,`
|
|
|
`+G)}S&&(le?le=S+le+`
|
|
|
`+K:le=S+K),H.print_newline(!1),le&&(L.text=le,L.whitespace_before="",L.newlines=0,H.add_raw_token(L),H.print_newline(!0))}},ce.prototype._handle_tag_open=function(H,L,Z,W,le){var J=this._get_tag_open_token(L);if((Z.is_unformatted||Z.is_content_unformatted)&&!Z.is_empty_element&&L.type===te.TAG_OPEN&&!J.is_start_tag?(H.add_raw_token(L),J.start_tag_token=this._tag_stack.try_pop(J.tag_name)):(H.traverse_whitespace(L),this._set_tag_position(H,L,J,Z,W),J.is_inline_element||H.set_wrap_point(),H.print_token(L)),J.is_start_tag&&this._is_wrap_attributes_force){var g=0,S;do S=le.peek(g),S.type===te.ATTRIBUTE&&(J.attr_count+=1),g+=1;while(S.type!==te.EOF&&S.type!==te.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(J.alignment_size=L.text.length+1),!J.tag_complete&&!J.is_unformatted&&(H.alignment_size=J.alignment_size),J};var xe=function(H,L,Z){if(this.parent=L||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="",!Z)this.tag_complete=!0;else{var W;this.tag_start_char=Z.text[0],this.text=Z.text,this.tag_start_char==="<"?(W=Z.text.match(/^<([^\s>]*)/),this.tag_check=W?W[1]:""):(W=Z.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=W?W[1]:"",(Z.text.startsWith("{{#>")||Z.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Z.next!==null?this.tag_check=Z.next.text.split(" ")[0]:this.tag_check=Z.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Z.type===te.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||Z.closed&&Z.closed.text==="/>";var le=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(le=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!H.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(le)))}};ce.prototype._get_tag_open_token=function(H){var L=new xe(this._options,this._tag_stack.get_parser_token(),H);return L.alignment_size=this._options.wrap_attributes_indent_size,L.is_end_tag=L.is_end_tag||z(L.tag_check,this._options.void_elements),L.is_empty_element=L.tag_complete||L.is_start_tag&&L.is_end_tag,L.is_unformatted=!L.tag_complete&&z(L.tag_check,this._options.unformatted),L.is_content_unformatted=!L.is_empty_element&&z(L.tag_check,this._options.content_unformatted),L.is_inline_element=z(L.tag_name,this._options.inline)||this._options.inline_custom_elements&&L.tag_name.includes("-")||L.tag_start_char==="{",L},ce.prototype._set_tag_position=function(H,L,Z,W,le){if(Z.is_empty_element||(Z.is_end_tag?Z.start_tag_token=this._tag_stack.try_pop(Z.tag_name):(this._do_optional_end_element(Z)&&(Z.is_inline_element||H.print_newline(!1)),this._tag_stack.record_tag(Z),(Z.tag_name==="script"||Z.tag_name==="style")&&!(Z.is_unformatted||Z.is_content_unformatted)&&(Z.custom_beautifier_name=x(Z.tag_check,L)))),z(Z.tag_check,this._options.extra_liners)&&(H.print_newline(!1),H._output.just_added_blankline()||H.print_newline(!0)),Z.is_empty_element){if(Z.tag_start_char==="{"&&Z.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Z.indent_content=!0;var J=H.current_line_has_match(/{{#if/);J||H.print_newline(!1)}Z.tag_name==="!--"&&le.type===te.TAG_CLOSE&&W.is_end_tag&&Z.text.indexOf(`
|
|
|
`)===-1||(Z.is_inline_element||Z.is_unformatted||H.print_newline(!1),this._calcluate_parent_multiline(H,Z))}else if(Z.is_end_tag){var g=!1;g=Z.start_tag_token&&Z.start_tag_token.multiline_content,g=g||!Z.is_inline_element&&!(W.is_inline_element||W.is_unformatted)&&!(le.type===te.TAG_CLOSE&&Z.start_tag_token===W)&&le.type!=="TK_CONTENT",(Z.is_content_unformatted||Z.is_unformatted)&&(g=!1),g&&H.print_newline(!1)}else Z.indent_content=!Z.custom_beautifier_name,Z.tag_start_char==="<"&&(Z.tag_name==="html"?Z.indent_content=this._options.indent_inner_html:Z.tag_name==="head"?Z.indent_content=this._options.indent_head_inner_html:Z.tag_name==="body"&&(Z.indent_content=this._options.indent_body_inner_html)),!(Z.is_inline_element||Z.is_unformatted)&&(le.type!=="TK_CONTENT"||Z.is_content_unformatted)&&H.print_newline(!1),this._calcluate_parent_multiline(H,Z)},ce.prototype._calcluate_parent_multiline=function(H,L){L.parent&&H._output.just_added_newline()&&!((L.is_inline_element||L.is_unformatted)&&L.parent.is_inline_element)&&(L.parent.multiline_content=!0)};var we=["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"],Be=["a","audio","del","ins","map","noscript","video"];ce.prototype._do_optional_end_element=function(H){var L=null;if(!(H.is_empty_element||!H.is_start_tag||!H.parent)){if(H.tag_name==="body")L=L||this._tag_stack.try_pop("head");else if(H.tag_name==="li")L=L||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(H.tag_name==="dd"||H.tag_name==="dt")L=L||this._tag_stack.try_pop("dt",["dl"]),L=L||this._tag_stack.try_pop("dd",["dl"]);else if(H.parent.tag_name==="p"&&we.indexOf(H.tag_name)!==-1){var Z=H.parent.parent;(!Z||Be.indexOf(Z.tag_name)===-1)&&(L=L||this._tag_stack.try_pop("p"))}else H.tag_name==="rp"||H.tag_name==="rt"?(L=L||this._tag_stack.try_pop("rt",["ruby","rtc"]),L=L||this._tag_stack.try_pop("rp",["ruby","rtc"])):H.tag_name==="optgroup"?L=L||this._tag_stack.try_pop("optgroup",["select"]):H.tag_name==="option"?L=L||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):H.tag_name==="colgroup"?L=L||this._tag_stack.try_pop("caption",["table"]):H.tag_name==="thead"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"])):H.tag_name==="tbody"||H.tag_name==="tfoot"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("thead",["table"]),L=L||this._tag_stack.try_pop("tbody",["table"])):H.tag_name==="tr"?(L=L||this._tag_stack.try_pop("caption",["table"]),L=L||this._tag_stack.try_pop("colgroup",["table"]),L=L||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(H.tag_name==="th"||H.tag_name==="td")&&(L=L||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),L=L||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return H.parent=this._tag_stack.get_parser_token(),L}},O.exports.Beautifier=ce},function(O,A,c){var w=c(6).Options;function E(V){w.call(this,V,"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"])}E.prototype=new w,O.exports.Options=E},function(O,A,c){var w=c(9).Tokenizer,E=c(9).TOKEN,V=c(13).Directives,te=c(14).TemplatablePattern,R=c(12).Pattern,k={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:E.START,RAW:E.RAW,EOF:E.EOF},U=new V(/<\!--/,/-->/),ae=function(x,z){w.call(this,x,z),this._current_tag_name="";var Q=new te(this._input).read_options(this._options),q=new R(this._input);if(this.__patterns={word:Q.until(/[\n\r\t <]/),word_control_flow_close_excluded:Q.until(/[\n\r\t <}]/),single_quote:Q.until_after(/'/),double_quote:Q.until_after(/"/),attribute:Q.until(/[\n\r\t =>]|\/>/),element_name:Q.until(/[\n\r\t >\/]/),angular_control_flow_start:q.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:q.starting_with(/{{!--/).until_after(/--}}/),handlebars:q.starting_with(/{{/).until_after(/}}/),handlebars_open:q.until(/[\n\r\t }]/),handlebars_raw_close:q.until(/}}/),comment:q.starting_with(/<!--/).until_after(/-->/),cdata:q.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:q.starting_with(/<!\[/).until_after(/]>/),processing:q.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var ce=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=q.matching(ce).until_after(ce)}};ae.prototype=new w,ae.prototype._is_comment=function(x){return!1},ae.prototype._is_opening=function(x){return x.type===k.TAG_OPEN||x.type===k.CONTROL_FLOW_OPEN},ae.prototype._is_closing=function(x,z){return x.type===k.TAG_CLOSE&&z&&((x.text===">"||x.text==="/>")&&z.text[0]==="<"||x.text==="}}"&&z.text[0]==="{"&&z.text[1]==="{")||x.type===k.CONTROL_FLOW_CLOSE&&x.text==="}"&&z.text.endsWith("{")},ae.prototype._reset=function(){this._current_tag_name=""},ae.prototype._get_next_token=function(x,z){var Q=null;this._readWhitespace();var q=this._input.peek();return q===null?this._create_token(k.EOF,""):(Q=Q||this._read_open_handlebars(q,z),Q=Q||this._read_attribute(q,x,z),Q=Q||this._read_close(q,z),Q=Q||this._read_script_and_style(q,x),Q=Q||this._read_control_flows(q,z),Q=Q||this._read_raw_content(q,x,z),Q=Q||this._read_content_word(q,z),Q=Q||this._read_comment_or_cdata(q),Q=Q||this._read_processing(q),Q=Q||this._read_open(q,z),Q=Q||this._create_token(k.UNKNOWN,this._input.next()),Q)},ae.prototype._read_comment_or_cdata=function(x){var z=null,Q=null,q=null;if(x==="<"){var ce=this._input.peek(1);ce==="!"&&(Q=this.__patterns.comment.read(),Q?(q=U.get_directives(Q),q&&q.ignore==="start"&&(Q+=U.readIgnored(this._input))):Q=this.__patterns.cdata.read()),Q&&(z=this._create_token(k.COMMENT,Q),z.directives=q)}return z},ae.prototype._read_processing=function(x){var z=null,Q=null,q=null;if(x==="<"){var ce=this._input.peek(1);(ce==="!"||ce==="?")&&(Q=this.__patterns.conditional_comment.read(),Q=Q||this.__patterns.processing.read()),Q&&(z=this._create_token(k.COMMENT,Q),z.directives=q)}return z},ae.prototype._read_open=function(x,z){var Q=null,q=null;return(!z||z.type===k.CONTROL_FLOW_OPEN)&&x==="<"&&(Q=this._input.next(),this._input.peek()==="/"&&(Q+=this._input.next()),Q+=this.__patterns.element_name.read(),q=this._create_token(k.TAG_OPEN,Q)),q},ae.prototype._read_open_handlebars=function(x,z){var Q=null,q=null;return(!z||z.type===k.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&x==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(Q=this.__patterns.handlebars_comment.read(),Q=Q||this.__patterns.handlebars.read(),q=this._create_token(k.COMMENT,Q)):(Q=this.__patterns.handlebars_open.read(),q=this._create_token(k.TAG_OPEN,Q))),q},ae.prototype._read_control_flows=function(x,z){var Q="",q=null;if(!this._options.templating.includes("angular"))return q;if(x==="@"){if(Q=this.__patterns.angular_control_flow_start.read(),Q==="")return q;for(var ce=Q.endsWith("(")?1:0,xe=0;!(Q.endsWith("{")&&ce===xe);){var we=this._input.next();if(we===null)break;we==="("?ce++:we===")"&&xe++,Q+=we}q=this._create_token(k.CONTROL_FLOW_OPEN,Q)}else x==="}"&&z&&z.type===k.CONTROL_FLOW_OPEN&&(Q=this._input.next(),q=this._create_token(k.CONTROL_FLOW_CLOSE,Q));return q},ae.prototype._read_close=function(x,z){var Q=null,q=null;return z&&z.type===k.TAG_OPEN&&(z.text[0]==="<"&&(x===">"||x==="/"&&this._input.peek(1)===">")?(Q=this._input.next(),x==="/"&&(Q+=this._input.next()),q=this._create_token(k.TAG_CLOSE,Q)):z.text[0]==="{"&&x==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),q=this._create_token(k.TAG_CLOSE,"}}"))),q},ae.prototype._read_attribute=function(x,z,Q){var q=null,ce="";if(Q&&Q.text[0]==="<")if(x==="=")q=this._create_token(k.EQUALS,this._input.next());else if(x==='"'||x==="'"){var xe=this._input.next();x==='"'?xe+=this.__patterns.double_quote.read():xe+=this.__patterns.single_quote.read(),q=this._create_token(k.VALUE,xe)}else ce=this.__patterns.attribute.read(),ce&&(z.type===k.EQUALS?q=this._create_token(k.VALUE,ce):q=this._create_token(k.ATTRIBUTE,ce));return q},ae.prototype._is_content_unformatted=function(x){return this._options.void_elements.indexOf(x)===-1&&(this._options.content_unformatted.indexOf(x)!==-1||this._options.unformatted.indexOf(x)!==-1)},ae.prototype._read_raw_content=function(x,z,Q){var q="";if(Q&&Q.text[0]==="{")q=this.__patterns.handlebars_raw_close.read();else if(z.type===k.TAG_CLOSE&&z.opened.text[0]==="<"&&z.text[0]!=="/"){var ce=z.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ce)&&(q=this._input.readUntil(new RegExp("</"+ce+"[\\n\\r\\t ]*?>","ig")))}return q?this._create_token(k.TEXT,q):null},ae.prototype._read_script_and_style=function(x,z){if(z.type===k.TAG_CLOSE&&z.opened.text[0]==="<"&&z.text[0]!=="/"){var Q=z.opened.text.substr(1).toLowerCase();if(Q==="script"||Q==="style"){var q=this._read_comment_or_cdata(x);if(q)return q.type=k.TEXT,q;var ce=this._input.readUntil(new RegExp("</"+Q+"[\\n\\r\\t ]*?>","ig"));if(ce)return this._create_token(k.TEXT,ce)}}return null},ae.prototype._read_content_word=function(x,z){var Q="";return this._options.unformatted_content_delimiter&&x===this._options.unformatted_content_delimiter[0]&&(Q=this.__patterns.unformatted_content_delimiter.read()),Q||(Q=z&&z.type===k.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),Q?this._create_token(k.TEXT,Q):null},O.exports.Tokenizer=ae,O.exports.TOKEN=k}],ve={};function a(O){var A=ve[O];if(A!==void 0)return A.exports;var c=ve[O]={exports:{}};return ye[O](c,c.exports,a),c.exports}var P=a(18);ge=P})();var Ie=ge;if(1)v=[y,y(58553),y(87804)],Y=function(ye){var ve=y(58553),a=y(87804);return{html_beautify:function(P,O){return Ie(P,O,ve.js_beautify,a.css_beautify)}}}.apply(it,v),Y!==void 0&&(Qt.exports=Y);else var ne,se})()},58553:function(Qt,it){var y,v;(function(){var Y;(function(){"use strict";var Ie=[function(ve,a,P){var O=P(1).Beautifier,A=P(5).Options;function c(w,E){var V=new O(w,E);return V.beautify()}ve.exports=c,ve.exports.defaultOptions=function(){return new A}},function(ve,a,P){var O=P(2).Output,A=P(3).Token,c=P(4),w=P(5).Options,E=P(7).Tokenizer,V=P(7).line_starters,te=P(7).positionable_operators,R=P(7).TOKEN;function k(S,K){return K.indexOf(S)!==-1}function U(S){return S.replace(/^\s+/g,"")}function ae(S){for(var K={},G=0;G<S.length;G++)K[S[G].replace(/-/g,"_")]=S[G];return K}function x(S,K){return S&&S.type===R.RESERVED&&S.text===K}function z(S,K){return S&&S.type===R.RESERVED&&k(S.text,K)}var Q=["case","return","do","if","throw","else","await","break","continue","async"],q=["before-newline","after-newline","preserve-newline"],ce=ae(q),xe=[ce.before_newline,ce.preserve_newline],we={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Be(S,K){K.multiline_frame||K.mode===we.ForInitializer||K.mode===we.Conditional||S.remove_indent(K.start_line_index)}function H(S){S=S.replace(c.allLineBreaks,`
|
|
|
`);for(var K=[],G=S.indexOf(`
|
|
|
`);G!==-1;)K.push(S.substring(0,G)),S=S.substring(G+1),G=S.indexOf(`
|
|
|
`);return S.length&&K.push(S),K}function L(S){return S===we.ArrayLiteral}function Z(S){return k(S,[we.Expression,we.ForInitializer,we.Conditional])}function W(S,K){for(var G=0;G<S.length;G++){var Pe=S[G].trim();if(Pe.charAt(0)!==K)return!1}return!0}function le(S,K){for(var G=0,Pe=S.length,Ne;G<Pe;G++)if(Ne=S[G],Ne&&Ne.indexOf(K)!==0)return!1;return!0}function J(S,K){K=K||{},this._source_text=S||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new w(K)}J.prototype.create_flags=function(S,K){var G=0;S&&(G=S.indentation_level,!this._output.just_added_newline()&&S.line_indent_level>G&&(G=S.line_indent_level));var Pe={mode:K,parent:S,last_token:S?S.last_token:new A(R.START_BLOCK,""),last_word:S?S.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:G,alignment:0,line_indent_level:S?S.line_indent_level:G,start_line_index:this._output.get_line_number(),ternary_depth:0};return Pe},J.prototype._reset=function(S){var K=S.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new O(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(we.BlockStatement);var G=new E(S,this._options);return this._tokens=G.tokenize(),S},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var S,K=this._reset(this._source_text),G=this._options.eol;this._options.eol==="auto"&&(G=`
|
|
|
`,K&&c.lineBreak.test(K||"")&&(G=K.match(c.lineBreak)[0]));for(var Pe=this._tokens.next();Pe;)this.handle_token(Pe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Pe,Pe=this._tokens.next();return S=this._output.get_code(G),S},J.prototype.handle_token=function(S,K){S.type===R.START_EXPR?this.handle_start_expr(S):S.type===R.END_EXPR?this.handle_end_expr(S):S.type===R.START_BLOCK?this.handle_start_block(S):S.type===R.END_BLOCK?this.handle_end_block(S):S.type===R.WORD?this.handle_word(S):S.type===R.RESERVED?this.handle_word(S):S.type===R.SEMICOLON?this.handle_semicolon(S):S.type===R.STRING?this.handle_string(S):S.type===R.EQUALS?this.handle_equals(S):S.type===R.OPERATOR?this.handle_operator(S):S.type===R.COMMA?this.handle_comma(S):S.type===R.BLOCK_COMMENT?this.handle_block_comment(S,K):S.type===R.COMMENT?this.handle_comment(S,K):S.type===R.DOT?this.handle_dot(S):S.type===R.EOF?this.handle_eof(S):S.type===R.UNKNOWN?this.handle_unknown(S,K):this.handle_unknown(S,K)},J.prototype.handle_whitespace_and_comments=function(S,K){var G=S.newlines,Pe=this._options.keep_array_indentation&&L(this._flags.mode);if(S.comments_before)for(var Ne=S.comments_before.next();Ne;)this.handle_whitespace_and_comments(Ne,K),this.handle_token(Ne,K),Ne=S.comments_before.next();if(Pe)for(var Ue=0;Ue<G;Ue+=1)this.print_newline(Ue>0,K);else if(this._options.max_preserve_newlines&&G>this._options.max_preserve_newlines&&(G=this._options.max_preserve_newlines),this._options.preserve_newlines&&G>1){this.print_newline(!1,K);for(var Ve=1;Ve<G;Ve+=1)this.print_newline(!0,K)}};var g=["async","break","continue","return","throw","yield"];J.prototype.allow_wrap_or_preserved_newline=function(S,K){if(K=K===void 0?!1:K,!this._output.just_added_newline()){var G=this._options.preserve_newlines&&S.newlines||K,Pe=k(this._flags.last_token.text,te)||k(S.text,te);if(Pe){var Ne=k(this._flags.last_token.text,te)&&k(this._options.operator_position,xe)||k(S.text,te);G=G&&Ne}if(G)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(z(this._flags.last_token,g))return;this._output.set_wrap_point()}}},J.prototype.print_newline=function(S,K){if(!K&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==R.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var G=this._tokens.peek();this._flags.mode===we.Statement&&!(this._flags.if_block&&x(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(S)&&(this._flags.multiline_frame=!0)},J.prototype.print_token_line_indentation=function(S){this._output.just_added_newline()&&(this._options.keep_array_indentation&&S.newlines&&(S.text==="["||L(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(S.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))},J.prototype.print_token=function(S){if(this._output.raw){this._output.add_raw_token(S);return}if(this._options.comma_first&&S.previous&&S.previous.type===R.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var K=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(K),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(S),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(S),this._output.non_breaking_space=!0,this._output.add_token(S.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},J.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.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))},J.prototype.set_mode=function(S){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,S),this._flags=this.create_flags(this._previous_flags,S),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===we.Statement&&Be(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},J.prototype.start_of_object_property=function(){return this._flags.parent.mode===we.ObjectLiteral&&this._flags.mode===we.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||z(this._flags.last_token,["get","set"]))},J.prototype.start_of_statement=function(S){var K=!1;return K=K||z(this._flags.last_token,["var","let","const"])&&S.type===R.WORD,K=K||x(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===we.ObjectLiteral&&this._flags.mode===we.Statement)&&z(this._flags.last_token,g)&&!S.newlines,K=K||x(this._flags.last_token,"else")&&!(x(S,"if")&&!S.comments_before),K=K||this._flags.last_token.type===R.END_EXPR&&(this._previous_flags.mode===we.ForInitializer||this._previous_flags.mode===we.Conditional),K=K||this._flags.last_token.type===R.WORD&&this._flags.mode===we.BlockStatement&&!this._flags.in_case&&!(S.text==="--"||S.text==="++")&&this._last_last_text!=="function"&&S.type!==R.WORD&&S.type!==R.RESERVED,K=K||this._flags.mode===we.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||z(this._flags.last_token,["get","set"])),K?(this.set_mode(we.Statement),this.indent(),this.handle_whitespace_and_comments(S,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S,z(S,["do","for","if","while"])),!0):!1},J.prototype.handle_start_expr=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S);var K=we.Expression;if(S.text==="["){if(this._flags.last_token.type===R.WORD||this._flags.last_token.text===")"){z(this._flags.last_token,V)&&(this._output.space_before_token=!0),this.print_token(S),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=we.ArrayLiteral,L(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()),k(this._flags.last_token.type,[R.START_EXPR,R.END_EXPR,R.WORD,R.OPERATOR,R.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===R.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,K=we.ForInitializer):k(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=we.Conditional):k(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&S.whitespace_before===""?this._output.space_before_token=!1:(k(this._flags.last_token.text,V)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===R.EQUALS||this._flags.last_token.type===R.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S);else if(this._flags.last_token.type===R.WORD){this._output.space_before_token=!1;var G=this._tokens.peek(-3);if(this._options.space_after_named_function&&G){var Pe=this._tokens.peek(-4);z(G,["async","function"])||G.text==="*"&&z(Pe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===we.ObjectLiteral?(G.text==="{"||G.text===","||G.text==="*"&&(Pe.text==="{"||Pe.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(S);(this._flags.last_token.type===R.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(k(this._last_last_text,["function","yield"])||this._flags.mode===we.ObjectLiteral&&k(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===R.START_BLOCK?this.print_newline():(this._flags.last_token.type===R.END_EXPR||this._flags.last_token.type===R.START_EXPR||this._flags.last_token.type===R.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===R.COMMA)&&this.allow_wrap_or_preserved_newline(S,S.newlines),this.print_token(S),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},J.prototype.handle_end_expr=function(S){for(;this._flags.mode===we.Statement;)this.restore_mode();this.handle_whitespace_and_comments(S),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(S,S.text==="]"&&L(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===R.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(S),this.restore_mode(),Be(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===we.Conditional&&(this._previous_flags.mode=we.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},J.prototype.handle_start_block=function(S){this.handle_whitespace_and_comments(S);var K=this._tokens.peek(),G=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===R.END_EXPR?(this.set_mode(we.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(we.BlockStatement):G&&(k(G.text,[":",","])&&k(K.type,[R.STRING,R.WORD,R.RESERVED])||k(K.text,["get","set","..."])&&k(G.type,[R.WORD,R.RESERVED]))?k(this._last_last_text,["class","interface"])&&!k(G.text,[":",","])?this.set_mode(we.BlockStatement):this.set_mode(we.ObjectLiteral):this._flags.last_token.type===R.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(we.BlockStatement):k(this._flags.last_token.type,[R.EQUALS,R.START_EXPR,R.COMMA,R.OPERATOR])||z(this._flags.last_token,["return","throw","import","default"])?this.set_mode(we.ObjectLiteral):this.set_mode(we.BlockStatement),this._flags.last_token&&z(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Pe=!K.comments_before&&K.text==="}",Ne=Pe&&this._flags.last_word==="function"&&this._flags.last_token.type===R.END_EXPR;if(this._options.brace_preserve_inline){var Ue=0,Ve=null;this._flags.inline_frame=!0;do if(Ue+=1,Ve=this._tokens.peek(Ue-1),Ve.newlines){this._flags.inline_frame=!1;break}while(Ve.type!==R.EOF&&!(Ve.type===R.END_BLOCK&&Ve.opened===S))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&S.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==R.OPERATOR&&(Ne||this._flags.last_token.type===R.EQUALS||z(this._flags.last_token,Q)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(L(this._previous_flags.mode)&&(this._flags.last_token.type===R.START_EXPR||this._flags.last_token.type===R.COMMA)&&((this._flags.last_token.type===R.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===R.COMMA||this._flags.last_token.type===R.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(S),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==R.OPERATOR&&this._flags.last_token.type!==R.START_EXPR&&(k(this._flags.last_token.type,[R.START_BLOCK,R.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(S),this.indent(),!Pe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},J.prototype.handle_end_block=function(S){for(this.handle_whitespace_and_comments(S);this._flags.mode===we.Statement;)this.restore_mode();var K=this._flags.last_token.type===R.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(L(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(S)},J.prototype.handle_word=function(S){if(S.type===R.RESERVED){if(k(S.text,["set","get"])&&this._flags.mode!==we.ObjectLiteral)S.type=R.WORD;else if(S.text==="import"&&k(this._tokens.peek().text,["(","."]))S.type=R.WORD;else if(k(S.text,["as","from"])&&!this._flags.import_block)S.type=R.WORD;else if(this._flags.mode===we.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(S.type=R.WORD)}}if(this.start_of_statement(S)?z(this._flags.last_token,["var","let","const"])&&S.type===R.WORD&&(this._flags.declaration_statement=!0):S.newlines&&!Z(this._flags.mode)&&(this._flags.last_token.type!==R.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==R.EQUALS&&(this._options.preserve_newlines||!z(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(S),this.print_newline()):this.handle_whitespace_and_comments(S),this._flags.do_block&&!this._flags.do_while)if(x(S,"while")){this._output.space_before_token=!0,this.print_token(S),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&&x(S,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===we.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&z(S,["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(S),this._flags.in_case=!0;return}if((this._flags.last_token.type===R.COMMA||this._flags.last_token.type===R.START_EXPR||this._flags.last_token.type===R.EQUALS||this._flags.last_token.type===R.OPERATOR)&&!this.start_of_object_property()&&!(k(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===we.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(S),x(S,"function")){(k(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(k(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===R.OPERATOR))&&!this._output.just_added_blankline()&&!S.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===R.RESERVED||this._flags.last_token.type===R.WORD?z(this._flags.last_token,["get","set","new","export"])||z(this._flags.last_token,g)?this._output.space_before_token=!0:x(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===R.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Z(this._flags.mode)||L(this._flags.mode))||this.print_newline(),this.print_token(S),this._flags.last_word=S.text;return}var G="NONE";if(this._flags.last_token.type===R.END_BLOCK?this._previous_flags.inline_frame?G="SPACE":z(S,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&S.newlines?G="NEWLINE":(G="SPACE",this._output.space_before_token=!0):G="NEWLINE":this._flags.last_token.type===R.SEMICOLON&&this._flags.mode===we.BlockStatement?G="NEWLINE":this._flags.last_token.type===R.SEMICOLON&&Z(this._flags.mode)?G="SPACE":this._flags.last_token.type===R.STRING?G="NEWLINE":this._flags.last_token.type===R.RESERVED||this._flags.last_token.type===R.WORD||this._flags.last_token.text==="*"&&(k(this._last_last_text,["function","yield"])||this._flags.mode===we.ObjectLiteral&&k(this._last_last_text,["{",","]))?G="SPACE":this._flags.last_token.type===R.START_BLOCK?this._flags.inline_frame?G="SPACE":G="NEWLINE":this._flags.last_token.type===R.END_EXPR&&(this._output.space_before_token=!0,G="NEWLINE"),z(S,V)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?G="SPACE":G="NEWLINE"),z(S,["else","catch","finally"]))if((!(this._flags.last_token.type===R.END_BLOCK&&this._previous_flags.mode===we.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&S.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Pe=this._output.current_line;Pe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else G==="NEWLINE"?z(this._flags.last_token,Q)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&z(S,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==R.END_EXPR?(this._flags.last_token.type!==R.START_EXPR||!z(S,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(S,"if")&&x(S.previous,"else")?this._output.space_before_token=!0:this.print_newline()):z(S,V)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&L(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():G==="SPACE"&&(this._output.space_before_token=!0);S.previous&&(S.previous.type===R.WORD||S.previous.type===R.RESERVED)&&(this._output.space_before_token=!0),this.print_token(S),this._flags.last_word=S.text,S.type===R.RESERVED&&(S.text==="do"?this._flags.do_block=!0:S.text==="if"?this._flags.if_block=!0:S.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(S,"from")&&(this._flags.import_block=!1))},J.prototype.handle_semicolon=function(S){this.start_of_statement(S)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(S);for(var K=this._tokens.peek();this._flags.mode===we.Statement&&!(this._flags.if_block&&x(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(S)},J.prototype.handle_string=function(S){S.text.startsWith("`")&&S.newlines===0&&S.whitespace_before===""&&(S.previous.text===")"||this._flags.last_token.type===R.WORD)||(this.start_of_statement(S)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(S),this._flags.last_token.type===R.RESERVED||this._flags.last_token.type===R.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===R.COMMA||this._flags.last_token.type===R.START_EXPR||this._flags.last_token.type===R.EQUALS||this._flags.last_token.type===R.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S):S.text.startsWith("`")&&this._flags.last_token.type===R.END_EXPR&&(S.previous.text==="]"||S.previous.text===")")&&S.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(S)},J.prototype.handle_equals=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(S),this._output.space_before_token=!0},J.prototype.handle_comma=function(S){this.handle_whitespace_and_comments(S,!0),this.print_token(S),this._output.space_before_token=!0,this._flags.declaration_statement?(Z(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(S)):this._flags.mode===we.ObjectLiteral||this._flags.mode===we.Statement&&this._flags.parent.mode===we.ObjectLiteral?(this._flags.mode===we.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(S)},J.prototype.handle_operator=function(S){var K=S.text==="*"&&(z(this._flags.last_token,["function","yield"])||k(this._flags.last_token.type,[R.START_BLOCK,R.COMMA,R.END_BLOCK,R.SEMICOLON])),G=k(S.text,["-","+"])&&(k(this._flags.last_token.type,[R.START_BLOCK,R.START_EXPR,R.EQUALS,R.OPERATOR])||k(this._flags.last_token.text,V)||this._flags.last_token.text===",");if(!this.start_of_statement(S)){var Pe=!K;this.handle_whitespace_and_comments(S,Pe)}if(S.text==="*"&&this._flags.last_token.type===R.DOT){this.print_token(S);return}if(S.text==="::"){this.print_token(S);return}if(k(S.text,["-","+"])&&this.start_of_object_property()){this.print_token(S);return}if(this._flags.last_token.type===R.OPERATOR&&k(this._options.operator_position,xe)&&this.allow_wrap_or_preserved_newline(S),S.text===":"&&this._flags.in_case){this.print_token(S),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==R.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 Ne=!0,Ue=!0,Ve=!1;if(S.text===":"?this._flags.ternary_depth===0?Ne=!1:(this._flags.ternary_depth-=1,Ve=!0):S.text==="?"&&(this._flags.ternary_depth+=1),!G&&!K&&this._options.preserve_newlines&&k(S.text,te)){var qe=S.text===":",tt=qe&&Ve,lt=qe&&!Ve;switch(this._options.operator_position){case ce.before_newline:this._output.space_before_token=!lt,this.print_token(S),(!qe||tt)&&this.allow_wrap_or_preserved_newline(S),this._output.space_before_token=!0;return;case ce.after_newline:this._output.space_before_token=!0,!qe||tt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(S):this._output.space_before_token=!1,this.print_token(S),this._output.space_before_token=!0;return;case ce.preserve_newline:lt||this.allow_wrap_or_preserved_newline(S),Ne=!(this._output.just_added_newline()||lt),this._output.space_before_token=Ne,this.print_token(S),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(S),Ne=!1;var Ut=this._tokens.peek();Ue=Ut&&k(Ut.type,[R.WORD,R.RESERVED])}else if(S.text==="...")this.allow_wrap_or_preserved_newline(S),Ne=this._flags.last_token.type===R.START_BLOCK,Ue=!1;else if(k(S.text,["--","++","!","~"])||G){if((this._flags.last_token.type===R.COMMA||this._flags.last_token.type===R.START_EXPR)&&this.allow_wrap_or_preserved_newline(S),Ne=!1,Ue=!1,S.newlines&&(S.text==="--"||S.text==="++"||S.text==="~")){var Yt=z(this._flags.last_token,Q)&&S.newlines;Yt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Yt,!0)}this._flags.last_token.text===";"&&Z(this._flags.mode)&&(Ne=!0),this._flags.last_token.type===R.RESERVED?Ne=!0:this._flags.last_token.type===R.END_EXPR?Ne=!(this._flags.last_token.text==="]"&&(S.text==="--"||S.text==="++")):this._flags.last_token.type===R.OPERATOR&&(Ne=k(S.text,["--","-","++","+"])&&k(this._flags.last_token.text,["--","-","++","+"]),k(S.text,["+","-"])&&k(this._flags.last_token.text,["--","++"])&&(Ue=!0)),(this._flags.mode===we.BlockStatement&&!this._flags.inline_frame||this._flags.mode===we.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ne,this.print_token(S),this._output.space_before_token=Ue},J.prototype.handle_block_comment=function(S,K){if(this._output.raw){this._output.add_raw_token(S),S.directives&&S.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(S.directives){this.print_newline(!1,K),this.print_token(S),S.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(S.text)&&!S.newlines){this._output.space_before_token=!0,this.print_token(S),this._output.space_before_token=!0;return}else this.print_block_commment(S,K)},J.prototype.print_block_commment=function(S,K){var G=H(S.text),Pe,Ne=!1,Ue=!1,Ve=S.whitespace_before,qe=Ve.length;if(this.print_newline(!1,K),this.print_token_line_indentation(S),this._output.add_token(G[0]),this.print_newline(!1,K),G.length>1){for(G=G.slice(1),Ne=W(G,"*"),Ue=le(G,Ve),Ne&&(this._flags.alignment=1),Pe=0;Pe<G.length;Pe++)Ne?(this.print_token_line_indentation(S),this._output.add_token(U(G[Pe]))):Ue&&G[Pe]?(this.print_token_line_indentation(S),this._output.add_token(G[Pe].substring(qe))):(this._output.current_line.set_indent(-1),this._output.add_token(G[Pe])),this.print_newline(!1,K);this._flags.alignment=0}},J.prototype.handle_comment=function(S,K){S.newlines?this.print_newline(!1,K):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(S),this.print_newline(!1,K)},J.prototype.handle_dot=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),z(this._flags.last_token,Q)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(S,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(S)},J.prototype.handle_unknown=function(S,K){this.print_token(S),S.text[S.text.length-1]===`
|
|
|
`&&this.print_newline(!1,K)},J.prototype.handle_eof=function(S){for(;this._flags.mode===we.Statement;)this.restore_mode();this.handle_whitespace_and_comments(S)},ve.exports.Beautifier=J},function(ve){function a(A){this.__parent=A,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 A=new a(this.__parent);return A.set_indent(this.__indent_count,this.__alignment_count),A},a.prototype.item=function(A){return A<0?this.__items[this.__items.length+A]:this.__items[A]},a.prototype.has_match=function(A){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(A))return!0;return!1},a.prototype.set_indent=function(A,c){this.is_empty()&&(this.__indent_count=A||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 A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__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(A){this.__items.push(A);var c=A.lastIndexOf(`
|
|
|
`);c!==-1?this.__character_count=A.length-c:this.__character_count+=A.length},a.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},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 A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function P(A,c){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),c=c||"",A.indent_level>0&&(c=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}P.prototype.get_indent_size=function(A,c){var w=this.__base_string_length;return c=c||0,A<0&&(w=0),w+=A*this.__indent_size,w+=c,w},P.prototype.get_indent_string=function(A,c){var w=this.__base_string;return c=c||0,A<0&&(A=0,w=""),c+=A*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},P.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},P.prototype.__add_column=function(){var A=this.__cache.length,c=0,w="";this.__indent_size&&A>=this.__indent_size&&(c=Math.floor(A/this.__indent_size),A-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),A&&(w+=new Array(A+1).join(" ")),this.__cache.push(w)};function O(A,c){this.__indent_cache=new P(A,c),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.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()}O.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},O.prototype.get_line_number=function(){return this.__lines.length},O.prototype.get_indent_string=function(A,c){return this.__indent_cache.get_indent_string(A,c)},O.prototype.get_indent_size=function(A,c){return this.__indent_cache.get_indent_size(A,c)},O.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},O.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},O.prototype.get_code=function(A){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
|
|
|
`);return A!==`
|
|
|
`&&(w=w.replace(/[\n]/g,A)),w},O.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},O.prototype.set_indent=function(A,c){return A=A||0,c=c||0,this.next_line.set_indent(A,c),this.__lines.length>1?(this.current_line.set_indent(A,c),!0):(this.current_line.set_indent(),!1)},O.prototype.add_raw_token=function(A){for(var c=0;c<A.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(A.whitespace_before),this.current_line.push(A.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},O.prototype.add_token=function(A){this.__add_space_before_token(),this.current_line.push(A),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},O.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(" "))},O.prototype.remove_indent=function(A){for(var c=this.__lines.length;A<c;)this.__lines[A]._remove_indent(),A++;this.current_line._remove_wrap_indent()},O.prototype.trim=function(A){for(A=A===void 0?!1:A,this.current_line.trim();A&&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},O.prototype.just_added_newline=function(){return this.current_line.is_empty()},O.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},O.prototype.ensure_empty_line_above=function(A,c){for(var w=this.__lines.length-2;w>=0;){var E=this.__lines[w];if(E.is_empty())break;if(E.item(0).indexOf(A)!==0&&E.item(-1)!==c){this.__lines.splice(w+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},ve.exports.Output=O},function(ve){function a(P,O,A,c){this.type=P,this.text=O,this.comments_before=null,this.newlines=A||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}ve.exports.Token=a},function(ve,a){var P="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",O="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",A="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",c="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",w="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",E="(?:"+w+"|["+P+A+"])",V="(?:"+w+"|["+O+A+c+"])*";a.identifier=new RegExp(E+V,"g"),a.identifierStart=new RegExp(E),a.identifierMatch=new RegExp("(?:"+w+"|["+O+A+c+"])+");var te=/[\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(ve,a,P){var O=P(6).Options,A=["before-newline","after-newline","preserve-newline"];function c(w){O.call(this,w,"js");var E=this.raw_options.brace_style||null;E==="expand-strict"?this.raw_options.brace_style="expand":E==="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 V=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var te=0;te<V.length;te++)V[te]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=V[te];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",A),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}c.prototype=new O,ve.exports.Options=c},function(ve){function a(A,c){this.raw_options=P(A,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(A,c){var w=this.raw_options[A],E=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(E=w.concat()):typeof w=="string"&&(E=w.split(/[^a-zA-Z0-9_\/\-]+/)),E},a.prototype._get_boolean=function(A,c){var w=this.raw_options[A],E=w===void 0?!!c:!!w;return E},a.prototype._get_characters=function(A,c){var w=this.raw_options[A],E=c||"";return typeof w=="string"&&(E=w.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),E},a.prototype._get_number=function(A,c){var w=this.raw_options[A];c=parseInt(c,10),isNaN(c)&&(c=0);var E=parseInt(w,10);return isNaN(E)&&(E=c),E},a.prototype._get_selection=function(A,c,w){var E=this._get_selection_list(A,c,w);if(E.length!==1)throw new Error("Invalid Option Value: The option '"+A+`' can only be one of the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[A]+"'");return E[0]},a.prototype._get_selection_list=function(A,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var E=this._get_array(A,w);if(!this._is_valid_selection(E,c))throw new Error("Invalid Option Value: The option '"+A+`' can contain only the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[A]+"'");return E},a.prototype._is_valid_selection=function(A,c){return A.length&&c.length&&!A.some(function(w){return c.indexOf(w)===-1})};function P(A,c){var w={};A=O(A);var E;for(E in A)E!==c&&(w[E]=A[E]);if(c&&A[c])for(E in A[c])w[E]=A[c][E];return w}function O(A){var c={},w;for(w in A){var E=w.replace(/-/g,"_");c[E]=A[w]}return c}ve.exports.Options=a,ve.exports.normalizeOpts=O,ve.exports.mergeOpts=P},function(ve,a,P){var O=P(8).InputScanner,A=P(9).Tokenizer,c=P(9).TOKEN,w=P(13).Directives,E=P(4),V=P(12).Pattern,te=P(14).TemplatablePattern;function R(W,le){return le.indexOf(W)!==-1}var k={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},U=new w(/\/\*/,/\*\//),ae=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,x=/[0-9]/,z=/[^\d\.]/,Q=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),q=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";q=q.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),q="\\?\\.(?!\\d) "+q,q=q.replace(/ /g,"|");var ce=new RegExp(q),xe="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),we=xe.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Be=new RegExp("^(?:"+we.join("|")+")$"),H,L=function(W,le){A.call(this,W,le),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var J=new V(this._input),g=new te(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(E.identifier).matching(E.identifierMatch),number:J.matching(ae),punct:J.matching(ce),comment:J.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:J.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:J.matching(/<!--/),html_comment_end:J.matching(/-->/),include:J.starting_with(/#include/).until_after(E.lineBreak),shebang:J.starting_with(/#!/).until_after(E.lineBreak),xml:J.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};L.prototype=new A,L.prototype._is_comment=function(W){return W.type===k.COMMENT||W.type===k.BLOCK_COMMENT||W.type===k.UNKNOWN},L.prototype._is_opening=function(W){return W.type===k.START_BLOCK||W.type===k.START_EXPR},L.prototype._is_closing=function(W,le){return(W.type===k.END_BLOCK||W.type===k.END_EXPR)&&le&&(W.text==="]"&&le.text==="["||W.text===")"&&le.text==="("||W.text==="}"&&le.text==="{")},L.prototype._reset=function(){H=!1},L.prototype._get_next_token=function(W,le){var J=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(k.EOF,""):(J=J||this._read_non_javascript(g),J=J||this._read_string(g),J=J||this._read_pair(g,this._input.peek(1)),J=J||this._read_word(W),J=J||this._read_singles(g),J=J||this._read_comment(g),J=J||this._read_regexp(g,W),J=J||this._read_xml(g,W),J=J||this._read_punctuation(),J=J||this._create_token(k.UNKNOWN,this._input.next()),J)},L.prototype._read_word=function(W){var le;if(le=this.__patterns.identifier.read(),le!=="")return le=le.replace(E.allLineBreaks,`
|
|
|
`),!(W.type===k.DOT||W.type===k.RESERVED&&(W.text==="set"||W.text==="get"))&&Be.test(le)?(le==="in"||le==="of")&&(W.type===k.WORD||W.type===k.STRING)?this._create_token(k.OPERATOR,le):this._create_token(k.RESERVED,le):this._create_token(k.WORD,le);if(le=this.__patterns.number.read(),le!=="")return this._create_token(k.WORD,le)},L.prototype._read_singles=function(W){var le=null;return W==="("||W==="["?le=this._create_token(k.START_EXPR,W):W===")"||W==="]"?le=this._create_token(k.END_EXPR,W):W==="{"?le=this._create_token(k.START_BLOCK,W):W==="}"?le=this._create_token(k.END_BLOCK,W):W===";"?le=this._create_token(k.SEMICOLON,W):W==="."&&z.test(this._input.peek(1))?le=this._create_token(k.DOT,W):W===","&&(le=this._create_token(k.COMMA,W)),le&&this._input.next(),le},L.prototype._read_pair=function(W,le){var J=null;return W==="#"&&le==="{"&&(J=this._create_token(k.START_BLOCK,W+le)),J&&(this._input.next(),this._input.next()),J},L.prototype._read_punctuation=function(){var W=this.__patterns.punct.read();if(W!=="")return W==="="?this._create_token(k.EQUALS,W):W==="?."?this._create_token(k.DOT,W):this._create_token(k.OPERATOR,W)},L.prototype._read_non_javascript=function(W){var le="";if(W==="#"){if(this._is_first_token()&&(le=this.__patterns.shebang.read(),le))return this._create_token(k.UNKNOWN,le.trim()+`
|
|
|
`);if(le=this.__patterns.include.read(),le)return this._create_token(k.UNKNOWN,le.trim()+`
|
|
|
`);W=this._input.next();var J="#";if(this._input.hasNext()&&this._input.testChar(x)){do W=this._input.next(),J+=W;while(this._input.hasNext()&&W!=="#"&&W!=="=");return W==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(J+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(J+="{}",this._input.next(),this._input.next())),this._create_token(k.WORD,J)}this._input.back()}else if(W==="<"&&this._is_first_token()){if(le=this.__patterns.html_comment_start.read(),le){for(;this._input.hasNext()&&!this._input.testChar(E.newline);)le+=this._input.next();return H=!0,this._create_token(k.COMMENT,le)}}else if(H&&W==="-"&&(le=this.__patterns.html_comment_end.read(),le))return H=!1,this._create_token(k.COMMENT,le);return null},L.prototype._read_comment=function(W){var le=null;if(W==="/"){var J="";if(this._input.peek(1)==="*"){J=this.__patterns.block_comment.read();var g=U.get_directives(J);g&&g.ignore==="start"&&(J+=U.readIgnored(this._input)),J=J.replace(E.allLineBreaks,`
|
|
|
`),le=this._create_token(k.BLOCK_COMMENT,J),le.directives=g}else this._input.peek(1)==="/"&&(J=this.__patterns.comment.read(),le=this._create_token(k.COMMENT,J))}return le},L.prototype._read_string=function(W){if(W==="`"||W==="'"||W==='"'){var le=this._input.next();return this.has_char_escapes=!1,W==="`"?le+=this._read_string_recursive("`",!0,"${"):le+=this._read_string_recursive(W),this.has_char_escapes&&this._options.unescape_strings&&(le=Z(le)),this._input.peek()===W&&(le+=this._input.next()),le=le.replace(E.allLineBreaks,`
|
|
|
`),this._create_token(k.STRING,le)}return null},L.prototype._allow_regexp_or_xml=function(W){return W.type===k.RESERVED&&R(W.text,["return","case","throw","else","do","typeof","yield"])||W.type===k.END_EXPR&&W.text===")"&&W.opened.previous.type===k.RESERVED&&R(W.opened.previous.text,["if","while","for"])||R(W.type,[k.COMMENT,k.START_EXPR,k.START_BLOCK,k.START,k.END_BLOCK,k.OPERATOR,k.EQUALS,k.EOF,k.SEMICOLON,k.COMMA])},L.prototype._read_regexp=function(W,le){if(W==="/"&&this._allow_regexp_or_xml(le)){for(var J=this._input.next(),g=!1,S=!1;this._input.hasNext()&&(g||S||this._input.peek()!==W)&&!this._input.testChar(E.newline);)J+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?S=!0:this._input.peek()==="]"&&(S=!1)),this._input.next();return this._input.peek()===W&&(J+=this._input.next(),J+=this._input.read(E.identifier)),this._create_token(k.STRING,J)}return null},L.prototype._read_xml=function(W,le){if(this._options.e4x&&W==="<"&&this._allow_regexp_or_xml(le)){var J="",g=this.__patterns.xml.read_match();if(g){for(var S=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=S.indexOf("{")===0,G=0;g;){var Pe=!!g[1],Ne=g[2],Ue=!!g[g.length-1]||Ne.slice(0,8)==="![CDATA[";if(!Ue&&(Ne===S||K&&Ne.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Pe?--G:++G),J+=g[0],G<=0)break;g=this.__patterns.xml.read_match()}return g||(J+=this._input.match(/[\s\S]*/g)[0]),J=J.replace(E.allLineBreaks,`
|
|
|
`),this._create_token(k.STRING,J)}}return null};function Z(W){for(var le="",J=0,g=new O(W),S=null;g.hasNext();)if(S=g.match(/([\s]|[^\\]|\\\\)+/g),S&&(le+=S[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")S=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")S=g.match(/u([0-9A-Fa-f]{4})/g),S||(S=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{le+="\\",g.hasNext()&&(le+=g.next());continue}if(!S||(J=parseInt(S[1],16),J>126&&J<=255&&S[0].indexOf("x")===0))return W;J>=0&&J<32||J>1114111?le+="\\"+S[0]:J===34||J===39||J===92?le+="\\"+String.fromCharCode(J):le+=String.fromCharCode(J)}return le}L.prototype._read_string_recursive=function(W,le,J){var g,S;W==="'"?S=this.__patterns.single_quote:W==='"'?S=this.__patterns.double_quote:W==="`"?S=this.__patterns.template_text:W==="}"&&(S=this.__patterns.template_expression);for(var K=S.read(),G="";this._input.hasNext();){if(G=this._input.next(),G===W||!le&&E.newline.test(G)){this._input.back();break}else G==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),G+=this._input.next()):J&&(J==="${"&&G==="$"&&this._input.peek()==="{"&&(G+=this._input.next()),J===G&&(W==="`"?G+=this._read_string_recursive("}",le,"`"):G+=this._read_string_recursive("`",le,"${"),this._input.hasNext()&&(G+=this._input.next())));G+=S.read(),K+=G}return K},ve.exports.Tokenizer=L,ve.exports.TOKEN=k,ve.exports.positionable_operators=Q.slice(),ve.exports.line_starters=xe.slice()},function(ve){var a=RegExp.prototype.hasOwnProperty("sticky");function P(O){this.__input=O||"",this.__input_length=this.__input.length,this.__position=0}P.prototype.restart=function(){this.__position=0},P.prototype.back=function(){this.__position>0&&(this.__position-=1)},P.prototype.hasNext=function(){return this.__position<this.__input_length},P.prototype.next=function(){var O=null;return this.hasNext()&&(O=this.__input.charAt(this.__position),this.__position+=1),O},P.prototype.peek=function(O){var A=null;return O=O||0,O+=this.__position,O>=0&&O<this.__input_length&&(A=this.__input.charAt(O)),A},P.prototype.__match=function(O,A){O.lastIndex=A;var c=O.exec(this.__input);return c&&!(a&&O.sticky)&&c.index!==A&&(c=null),c},P.prototype.test=function(O,A){return A=A||0,A+=this.__position,A>=0&&A<this.__input_length?!!this.__match(O,A):!1},P.prototype.testChar=function(O,A){var c=this.peek(A);return O.lastIndex=0,c!==null&&O.test(c)},P.prototype.match=function(O){var A=this.__match(O,this.__position);return A?this.__position+=A[0].length:A=null,A},P.prototype.read=function(O,A,c){var w="",E;return O&&(E=this.match(O),E&&(w+=E[0])),A&&(E||!O)&&(w+=this.readUntil(A,c)),w},P.prototype.readUntil=function(O,A){var c="",w=this.__position;O.lastIndex=this.__position;var E=O.exec(this.__input);return E?(w=E.index,A&&(w+=E[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},P.prototype.readUntilAfter=function(O){return this.readUntil(O,!0)},P.prototype.get_regexp=function(O,A){var c=null,w="g";return A&&a&&(w="y"),typeof O=="string"&&O!==""?c=new RegExp(O,w):O&&(c=new RegExp(O.source,w)),c},P.prototype.get_literal_regexp=function(O){return RegExp(O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},P.prototype.peekUntilAfter=function(O){var A=this.__position,c=this.readUntilAfter(O);return this.__position=A,c},P.prototype.lookBack=function(O){var A=this.__position-1;return A>=O.length&&this.__input.substring(A-O.length,A).toLowerCase()===O},ve.exports.InputScanner=P},function(ve,a,P){var O=P(8).InputScanner,A=P(3).Token,c=P(10).TokenStream,w=P(11).WhitespacePattern,E={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},V=function(te,R){this._input=new O(te),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new w(this._input)};V.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var te,R=new A(E.START,""),k=null,U=[],ae=new c;R.type!==E.EOF;){for(te=this._get_next_token(R,k);this._is_comment(te);)ae.add(te),te=this._get_next_token(R,k);ae.isEmpty()||(te.comments_before=ae,ae=new c),te.parent=k,this._is_opening(te)?(U.push(k),k=te):k&&this._is_closing(te,k)&&(te.opened=k,k.closed=te,k=U.pop(),te.parent=k),te.previous=R,R.next=te,this.__tokens.add(te),R=te}return this.__tokens},V.prototype._is_first_token=function(){return this.__tokens.isEmpty()},V.prototype._reset=function(){},V.prototype._get_next_token=function(te,R){this._readWhitespace();var k=this._input.read(/.+/g);return k?this._create_token(E.RAW,k):this._create_token(E.EOF,"")},V.prototype._is_comment=function(te){return!1},V.prototype._is_opening=function(te){return!1},V.prototype._is_closing=function(te,R){return!1},V.prototype._create_token=function(te,R){var k=new A(te,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return k},V.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},ve.exports.Tokenizer=V,ve.exports.TOKEN=E},function(ve){function a(P){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=P}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 P=null;return this.hasNext()&&(P=this.__tokens[this.__position],this.__position+=1),P},a.prototype.peek=function(P){var O=null;return P=P||0,P+=this.__position,P>=0&&P<this.__tokens_length&&(O=this.__tokens[P]),O},a.prototype.add=function(P){this.__parent_token&&(P.parent=this.__parent_token),this.__tokens.push(P),this.__tokens_length+=1},ve.exports.TokenStream=a},function(ve,a,P){var O=P(12).Pattern;function A(c,w){O.call(this,c,w),w?this._line_regexp=this._input.get_regexp(w._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}A.prototype=new O,A.prototype.__set_whitespace_patterns=function(c,w){c+="\\t ",w+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+w+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+w+"]")},A.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var w=this.__split(this._newline_regexp,c);this.newline_count=w.length-1,this.whitespace_before_token=w[this.newline_count]}return c},A.prototype.matching=function(c,w){var E=this._create();return E.__set_whitespace_patterns(c,w),E._update(),E},A.prototype._create=function(){return new A(this._input,this)},A.prototype.__split=function(c,w){c.lastIndex=0;for(var E=0,V=[],te=c.exec(w);te;)V.push(w.substring(E,te.index)),E=te.index+te[0].length,te=c.exec(w);return E<w.length?V.push(w.substring(E,w.length)):V.push(""),V},ve.exports.WhitespacePattern=A},function(ve){function a(P,O){this._input=P,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,O&&(this._starting_pattern=this._input.get_regexp(O._starting_pattern,!0),this._match_pattern=this._input.get_regexp(O._match_pattern,!0),this._until_pattern=this._input.get_regexp(O._until_pattern),this._until_after=O._until_after)}a.prototype.read=function(){var P=this._input.read(this._starting_pattern);return(!this._starting_pattern||P)&&(P+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),P},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(P){var O=this._create();return O._until_after=!0,O._until_pattern=this._input.get_regexp(P),O._update(),O},a.prototype.until=function(P){var O=this._create();return O._until_after=!1,O._until_pattern=this._input.get_regexp(P),O._update(),O},a.prototype.starting_with=function(P){var O=this._create();return O._starting_pattern=this._input.get_regexp(P,!0),O._update(),O},a.prototype.matching=function(P){var O=this._create();return O._match_pattern=this._input.get_regexp(P,!0),O._update(),O},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},ve.exports.Pattern=a},function(ve){function a(P,O){P=typeof P=="string"?P:P.source,O=typeof O=="string"?O:O.source,this.__directives_block_pattern=new RegExp(P+/ beautify( \w+[:]\w+)+ /.source+O,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(P+/\sbeautify\signore:end\s/.source+O,"g")}a.prototype.get_directives=function(P){if(!P.match(this.__directives_block_pattern))return null;var O={};this.__directive_pattern.lastIndex=0;for(var A=this.__directive_pattern.exec(P);A;)O[A[1]]=A[2],A=this.__directive_pattern.exec(P);return O},a.prototype.readIgnored=function(P){return P.readUntilAfter(this.__directives_end_ignore_pattern)},ve.exports.Directives=a},function(ve,a,P){var O=P(12).Pattern,A={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function c(w,E){O.call(this,w,E),this.__template_pattern=null,this._disabled=Object.assign({},A),this._excluded=Object.assign({},A),E&&(this.__template_pattern=this._input.get_regexp(E.__template_pattern),this._excluded=Object.assign(this._excluded,E._excluded),this._disabled=Object.assign(this._disabled,E._disabled));var V=new O(w);this.__patterns={handlebars_comment:V.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:V.starting_with(/{{{/).until_after(/}}}/),handlebars:V.starting_with(/{{/).until_after(/}}/),php:V.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:V.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:V.starting_with(/{%/).until_after(/%}/),django_value:V.starting_with(/{{/).until_after(/}}/),django_comment:V.starting_with(/{#/).until_after(/#}/),smarty:V.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:V.starting_with(/{\*/).until_after(/\*}/),smarty_literal:V.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new O,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(w){var E=this._create();return E._disabled[w]=!0,E._update(),E},c.prototype.read_options=function(w){var E=this._create();for(var V in A)E._disabled[V]=w.templating.indexOf(V)===-1;return E._update(),E},c.prototype.exclude=function(w){var E=this._create();return E._excluded[w]=!0,E._update(),E},c.prototype.read=function(){var w="";this._match_pattern?w=this._input.read(this._starting_pattern):w=this._input.read(this._starting_pattern,this.__template_pattern);for(var E=this._read_template();E;)this._match_pattern?E+=this._input.read(this._match_pattern):E+=this._input.readUntil(this.__template_pattern),w+=E,E=this._read_template();return this._until_after&&(w+=this._input.readUntilAfter(this._until_pattern)),w},c.prototype.__set_templated_pattern=function(){var w=[];this._disabled.php||w.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||w.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(w.push(this.__patterns.django._starting_pattern.source),w.push(this.__patterns.django_value._starting_pattern.source),w.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||w.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&w.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+w.join("|")+")")},c.prototype._read_template=function(){var w="",E=this._input.peek();if(E==="<"){var V=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&V==="?"&&(w=w||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&V==="%"&&(w=w||this.__patterns.erb.read())}else E==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(w=w||this.__patterns.handlebars_comment.read(),w=w||this.__patterns.handlebars_unescaped.read(),w=w||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(w=w||this.__patterns.django_value.read()),this._excluded.django||(w=w||this.__patterns.django_comment.read(),w=w||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(w=w||this.__patterns.smarty_comment.read(),w=w||this.__patterns.smarty_literal.read(),w=w||this.__patterns.smarty.read()));return w},ve.exports.TemplatablePattern=c}],ne={};function se(ve){var a=ne[ve];if(a!==void 0)return a.exports;var P=ne[ve]={exports:{}};return Ie[ve](P,P.exports,se),P.exports}var ye=se(0);Y=ye})();var ge=Y;y=[],v=function(){return{js_beautify:ge}}.apply(it,y),v!==void 0&&(Qt.exports=v)})()},15342:function(Qt){(function(y,v){Qt.exports=v()})(typeof self!="undefined"?self:this,function(){return function(it){var y={};function v(Y){if(y[Y])return y[Y].exports;var ge=y[Y]={i:Y,l:!1,exports:{}};return it[Y].call(ge.exports,ge,ge.exports,v),ge.l=!0,ge.exports}return v.m=it,v.c=y,v.d=function(Y,ge,Ie){v.o(Y,ge)||Object.defineProperty(Y,ge,{enumerable:!0,get:Ie})},v.r=function(Y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},v.t=function(Y,ge){if(ge&1&&(Y=v(Y)),ge&8||ge&4&&typeof Y=="object"&&Y&&Y.__esModule)return Y;var Ie=Object.create(null);if(v.r(Ie),Object.defineProperty(Ie,"default",{enumerable:!0,value:Y}),ge&2&&typeof Y!="string")for(var ne in Y)v.d(Ie,ne,function(se){return Y[se]}.bind(null,ne));return Ie},v.n=function(Y){var ge=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return v.d(ge,"a",ge),ge},v.o=function(Y,ge){return Object.prototype.hasOwnProperty.call(Y,ge)},v.p="",v(v.s=1)}([function(it,y,v){},function(it,y,v){"use strict";v.r(y);var Y=v(0),ge=function(){function B(l,d,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=h}return B.range=function(d,h){return h?!d||!d.loc||!h.loc||d.loc.lexer!==h.loc.lexer?null:new B(d.loc.lexer,d.loc.start,h.loc.end):d&&d.loc},B}(),Ie=function(){function B(d,h){this.text=void 0,this.loc=void 0,this.text=d,this.loc=h}var l=B.prototype;return l.range=function(h,m){return new B(m,ge.range(this,h))},B}(),ne=function B(l,d){this.position=void 0;var h="KaTeX parse error: "+l,m,D=d&&d.loc;if(D&&D.start<=D.end){var M=D.lexer.input;m=D.start;var pe=D.end;m===M.length?h+=" at end of input: ":h+=" at position "+(m+1)+": ";var Ce=M.slice(m,pe).replace(/[^]/g,"$&\u0332"),je;m>15?je="\u2026"+M.slice(m-15,m):je=M.slice(0,m);var dt;pe+15<M.length?dt=M.slice(pe,pe+15)+"\u2026":dt=M.slice(pe),h+=je+Ce+dt}var St=new Error(h);return St.name="ParseError",St.__proto__=B.prototype,St.position=m,St};ne.prototype.__proto__=Error.prototype;var se=ne,ye=function(l,d){return l.indexOf(d)!==-1},ve=function(l,d){return l===void 0?d:l},a=/([A-Z])/g,P=function(l){return l.replace(a,"-$1").toLowerCase()},O={"&":"&",">":">","<":"<",'"':""","'":"'"},A=/[&><"']/g;function c(B){return String(B).replace(A,function(l){return O[l]})}var w=function B(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?B(l.body[0]):l:l.type==="font"?B(l.body):l},E=function(l){var d=w(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},V=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},te=function(l){var d=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return d!=null?d[1]:"_relative"},R={contains:ye,deflt:ve,escape:c,hyphenate:P,getBaseElem:w,isCharacterBox:E,protocolFromUrl:te},k=function(){function B(d){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,d=d||{},this.displayMode=R.deflt(d.displayMode,!1),this.output=R.deflt(d.output,"htmlAndMathml"),this.leqno=R.deflt(d.leqno,!1),this.fleqn=R.deflt(d.fleqn,!1),this.throwOnError=R.deflt(d.throwOnError,!0),this.errorColor=R.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,R.deflt(d.minRuleThickness,0)),this.colorIsTextColor=R.deflt(d.colorIsTextColor,!1),this.strict=R.deflt(d.strict,"warn"),this.trust=R.deflt(d.trust,!1),this.maxSize=Math.max(0,R.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,R.deflt(d.maxExpand,1e3))}var l=B.prototype;return l.reportNonstrict=function(h,m,D){var M=this.strict;if(typeof M=="function"&&(M=M(h,m,D)),!(!M||M==="ignore")){if(M===!0||M==="error")throw new se("LaTeX-incompatible input and strict mode is set to 'error': "+(m+" ["+h+"]"),D);M==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+M+"': "+m+" ["+h+"]"))}},l.useStrictBehavior=function(h,m,D){var M=this.strict;if(typeof M=="function")try{M=M(h,m,D)}catch(pe){M="error"}return!M||M==="ignore"?!1:M===!0||M==="error"?!0:M==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+M+"': "+m+" ["+h+"]")),!1)},l.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=R.protocolFromUrl(h.url));var m=typeof this.trust=="function"?this.trust(h):this.trust;return!!m},B}(),U=function(){function B(d,h,m){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=h,this.cramped=m}var l=B.prototype;return l.sup=function(){return Be[H[this.id]]},l.sub=function(){return Be[L[this.id]]},l.fracNum=function(){return Be[Z[this.id]]},l.fracDen=function(){return Be[W[this.id]]},l.cramp=function(){return Be[le[this.id]]},l.text=function(){return Be[J[this.id]]},l.isTight=function(){return this.size>=2},B}(),ae=0,x=1,z=2,Q=3,q=4,ce=5,xe=6,we=7,Be=[new U(ae,0,!1),new U(x,0,!0),new U(z,1,!1),new U(Q,1,!0),new U(q,2,!1),new U(ce,2,!0),new U(xe,3,!1),new U(we,3,!0)],H=[q,ce,q,ce,xe,we,xe,we],L=[ce,ce,ce,ce,we,we,we,we],Z=[z,Q,q,ce,xe,we,xe,we],W=[Q,Q,ce,ce,we,we,we,we],le=[x,x,Q,Q,ce,ce,we,we],J=[ae,x,z,Q,z,Q,z,Q],g={DISPLAY:Be[ae],TEXT:Be[z],SCRIPT:Be[q],SCRIPTSCRIPT:Be[xe]},S=[{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 K(B){for(var l=0;l<S.length;l++)for(var d=S[l],h=0;h<d.blocks.length;h++){var m=d.blocks[h];if(B>=m[0]&&B<=m[1])return d.name}return null}var G=[];S.forEach(function(B){return B.blocks.forEach(function(l){return G.push.apply(G,l)})});function Pe(B){for(var l=0;l<G.length;l+=2)if(B>=G[l]&&B<=G[l+1])return!0;return!1}var Ne=80,Ue=function(l,d){return"M95,"+(622+l+d)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+l/2.075+" -"+l+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+l)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},Ve=function(l,d){return"M263,"+(601+l+d)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+l/2.084+" -"+l+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+l)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},qe=function(l,d){return"M983 "+(10+l+d)+`
|
|
|
l`+l/3.13+" -"+l+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},tt=function(l,d){return"M424,"+(2398+l+d)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+l)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+d+`
|
|
|
h400000v`+(40+l)+"h-400000z"},lt=function(l,d){return"M473,"+(2713+l+d)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+l)+" "+d+"h400000v"+(40+l)+"H1017.7z"},Ut=function(l,d,h){var m=h-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
|
|
|
H742v`+m+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+d+"H400000v"+(40+l)+"H742z"},Yt=function(l,d,h){d=1e3*d;var m="";switch(l){case"sqrtMain":m=Ue(d,Ne);break;case"sqrtSize1":m=Ve(d,Ne);break;case"sqrtSize2":m=qe(d,Ne);break;case"sqrtSize3":m=tt(d,Ne);break;case"sqrtSize4":m=lt(d,Ne);break;case"sqrtTall":m=Ut(d,Ne,h)}return m},sr={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`},Bt=function(){function B(d){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=B.prototype;return l.hasClass=function(h){return R.contains(this.classes,h)},l.toNode=function(){for(var h=document.createDocumentFragment(),m=0;m<this.children.length;m++)h.appendChild(this.children[m].toNode());return h},l.toMarkup=function(){for(var h="",m=0;m<this.children.length;m++)h+=this.children[m].toMarkup();return h},l.toText=function(){var h=function(D){return D.toText()};return this.children.map(h).join("")},B}(),Ht=function(l){return l.filter(function(d){return d}).join(" ")},Xt=function(l,d,h){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},d){d.style.isTight()&&this.classes.push("mtight");var m=d.getColor();m&&(this.style.color=m)}},de=function(l){var d=document.createElement(l);d.className=Ht(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(d.style[h]=this.style[h]);for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&d.setAttribute(m,this.attributes[m]);for(var D=0;D<this.children.length;D++)d.appendChild(this.children[D].toNode());return d},Ee=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+R.escape(Ht(this.classes))+'"');var h="";for(var m in this.style)this.style.hasOwnProperty(m)&&(h+=R.hyphenate(m)+":"+this.style[m]+";");h&&(d+=' style="'+R.escape(h)+'"');for(var D in this.attributes)this.attributes.hasOwnProperty(D)&&(d+=" "+D+'="'+R.escape(this.attributes[D])+'"');d+=">";for(var M=0;M<this.children.length;M++)d+=this.children[M].toMarkup();return d+="</"+l+">",d},F=function(){function B(d,h,m,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Xt.call(this,d,m,D),this.children=h||[]}var l=B.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.hasClass=function(h){return R.contains(this.classes,h)},l.toNode=function(){return de.call(this,"span")},l.toMarkup=function(){return Ee.call(this,"span")},B}(),fe=function(){function B(d,h,m,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Xt.call(this,h,D),this.children=m||[],this.setAttribute("href",d)}var l=B.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.hasClass=function(h){return R.contains(this.classes,h)},l.toNode=function(){return de.call(this,"a")},l.toMarkup=function(){return Ee.call(this,"a")},B}(),Te=function(){function B(d,h,m){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=h,this.src=d,this.classes=["mord"],this.style=m}var l=B.prototype;return l.hasClass=function(h){return R.contains(this.classes,h)},l.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var m in this.style)this.style.hasOwnProperty(m)&&(h.style[m]=this.style[m]);return h},l.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",m="";for(var D in this.style)this.style.hasOwnProperty(D)&&(m+=R.hyphenate(D)+":"+this.style[D]+";");return m&&(h+=' style="'+R.escape(m)+'"'),h+="'/>",h},B}(),I={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ee=function(){function B(d,h,m,D,M,pe,Ce,je){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=d,this.height=h||0,this.depth=m||0,this.italic=D||0,this.skew=M||0,this.width=pe||0,this.classes=Ce||[],this.style=je||{},this.maxFontSize=0;var dt=K(this.text.charCodeAt(0));dt&&this.classes.push(dt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=I[this.text])}var l=B.prototype;return l.hasClass=function(h){return R.contains(this.classes,h)},l.toNode=function(){var h=document.createTextNode(this.text),m=null;this.italic>0&&(m=document.createElement("span"),m.style.marginRight=this.italic+"em"),this.classes.length>0&&(m=m||document.createElement("span"),m.className=Ht(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(m=m||document.createElement("span"),m.style[D]=this.style[D]);return m?(m.appendChild(h),m):h},l.toMarkup=function(){var h=!1,m="<span";this.classes.length&&(h=!0,m+=' class="',m+=R.escape(Ht(this.classes)),m+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var M in this.style)this.style.hasOwnProperty(M)&&(D+=R.hyphenate(M)+":"+this.style[M]+";");D&&(h=!0,m+=' style="'+R.escape(D)+'"');var pe=R.escape(this.text);return h?(m+=">",m+=pe,m+="</span>",m):pe},B}(),he=function(){function B(d,h){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=h||{}}var l=B.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&m.setAttribute(D,this.attributes[D]);for(var M=0;M<this.children.length;M++)m.appendChild(this.children[M].toNode());return m},l.toMarkup=function(){var h="<svg";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+"='"+this.attributes[m]+"'");h+=">";for(var D=0;D<this.children.length;D++)h+=this.children[D].toMarkup();return h+="</svg>",h},B}(),be=function(){function B(d,h){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=h}var l=B.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"path");return this.alternate?m.setAttribute("d",this.alternate):m.setAttribute("d",sr[this.pathName]),m},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+sr[this.pathName]+"'/>"},B}(),Oe=function(){function B(d){this.attributes=void 0,this.attributes=d||{}}var l=B.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&m.setAttribute(D,this.attributes[D]);return m},l.toMarkup=function(){var h="<line";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+"='"+this.attributes[m]+"'");return h+="/>",h},B}();function Fe(B){if(B instanceof ee)return B;throw new Error("Expected symbolNode but got "+String(B)+".")}function Qe(B){if(B instanceof F)return B;throw new Error("Expected span<HtmlDomNode> but got "+String(B)+".")}var ht={"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]}},ot={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]},Xe={\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 Dt(B,l){ht[B]=l}function kt(B,l,d){if(!ht[l])throw new Error("Font metrics not found for font: "+l+".");var h=B.charCodeAt(0),m=ht[l][h];if(!m&&B[0]in Xe&&(h=Xe[B[0]].charCodeAt(0),m=ht[l][h]),!m&&d==="text"&&Pe(h)&&(m=ht[l][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}var Le={};function Ke(B){var l;if(B>=5?l=0:B>=3?l=1:l=2,!Le[l]){var d=Le[l]={cssEmPerMu:ot.quad[l]/18};for(var h in ot)ot.hasOwnProperty(h)&&(d[h]=ot[h][l])}return Le[l]}var nt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ft={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},At={math:{},text:{}},It=At;function _(B,l,d,h,m,D){At[B][m]={font:l,group:d,replace:h},D&&h&&(At[B][h]=At[B][m])}var C="math",et="text",$="main",me="ams",tr="accent-token",ke="bin",He="close",Ze="inner",X="mathord",oe="op-token",De="open",ze="punct",j="rel",Pt="spacing",Ae="textord";_(C,$,j,"\u2261","\\equiv",!0),_(C,$,j,"\u227A","\\prec",!0),_(C,$,j,"\u227B","\\succ",!0),_(C,$,j,"\u223C","\\sim",!0),_(C,$,j,"\u22A5","\\perp"),_(C,$,j,"\u2AAF","\\preceq",!0),_(C,$,j,"\u2AB0","\\succeq",!0),_(C,$,j,"\u2243","\\simeq",!0),_(C,$,j,"\u2223","\\mid",!0),_(C,$,j,"\u226A","\\ll",!0),_(C,$,j,"\u226B","\\gg",!0),_(C,$,j,"\u224D","\\asymp",!0),_(C,$,j,"\u2225","\\parallel"),_(C,$,j,"\u22C8","\\bowtie",!0),_(C,$,j,"\u2323","\\smile",!0),_(C,$,j,"\u2291","\\sqsubseteq",!0),_(C,$,j,"\u2292","\\sqsupseteq",!0),_(C,$,j,"\u2250","\\doteq",!0),_(C,$,j,"\u2322","\\frown",!0),_(C,$,j,"\u220B","\\ni",!0),_(C,$,j,"\u221D","\\propto",!0),_(C,$,j,"\u22A2","\\vdash",!0),_(C,$,j,"\u22A3","\\dashv",!0),_(C,$,j,"\u220B","\\owns"),_(C,$,ze,".","\\ldotp"),_(C,$,ze,"\u22C5","\\cdotp"),_(C,$,Ae,"#","\\#"),_(et,$,Ae,"#","\\#"),_(C,$,Ae,"&","\\&"),_(et,$,Ae,"&","\\&"),_(C,$,Ae,"\u2135","\\aleph",!0),_(C,$,Ae,"\u2200","\\forall",!0),_(C,$,Ae,"\u210F","\\hbar",!0),_(C,$,Ae,"\u2203","\\exists",!0),_(C,$,Ae,"\u2207","\\nabla",!0),_(C,$,Ae,"\u266D","\\flat",!0),_(C,$,Ae,"\u2113","\\ell",!0),_(C,$,Ae,"\u266E","\\natural",!0),_(C,$,Ae,"\u2663","\\clubsuit",!0),_(C,$,Ae,"\u2118","\\wp",!0),_(C,$,Ae,"\u266F","\\sharp",!0),_(C,$,Ae,"\u2662","\\diamondsuit",!0),_(C,$,Ae,"\u211C","\\Re",!0),_(C,$,Ae,"\u2661","\\heartsuit",!0),_(C,$,Ae,"\u2111","\\Im",!0),_(C,$,Ae,"\u2660","\\spadesuit",!0),_(et,$,Ae,"\xA7","\\S",!0),_(et,$,Ae,"\xB6","\\P",!0),_(C,$,Ae,"\u2020","\\dag"),_(et,$,Ae,"\u2020","\\dag"),_(et,$,Ae,"\u2020","\\textdagger"),_(C,$,Ae,"\u2021","\\ddag"),_(et,$,Ae,"\u2021","\\ddag"),_(et,$,Ae,"\u2021","\\textdaggerdbl"),_(C,$,He,"\u23B1","\\rmoustache",!0),_(C,$,De,"\u23B0","\\lmoustache",!0),_(C,$,He,"\u27EF","\\rgroup",!0),_(C,$,De,"\u27EE","\\lgroup",!0),_(C,$,ke,"\u2213","\\mp",!0),_(C,$,ke,"\u2296","\\ominus",!0),_(C,$,ke,"\u228E","\\uplus",!0),_(C,$,ke,"\u2293","\\sqcap",!0),_(C,$,ke,"\u2217","\\ast"),_(C,$,ke,"\u2294","\\sqcup",!0),_(C,$,ke,"\u25EF","\\bigcirc"),_(C,$,ke,"\u2219","\\bullet"),_(C,$,ke,"\u2021","\\ddagger"),_(C,$,ke,"\u2240","\\wr",!0),_(C,$,ke,"\u2A3F","\\amalg"),_(C,$,ke,"&","\\And"),_(C,$,j,"\u27F5","\\longleftarrow",!0),_(C,$,j,"\u21D0","\\Leftarrow",!0),_(C,$,j,"\u27F8","\\Longleftarrow",!0),_(C,$,j,"\u27F6","\\longrightarrow",!0),_(C,$,j,"\u21D2","\\Rightarrow",!0),_(C,$,j,"\u27F9","\\Longrightarrow",!0),_(C,$,j,"\u2194","\\leftrightarrow",!0),_(C,$,j,"\u27F7","\\longleftrightarrow",!0),_(C,$,j,"\u21D4","\\Leftrightarrow",!0),_(C,$,j,"\u27FA","\\Longleftrightarrow",!0),_(C,$,j,"\u21A6","\\mapsto",!0),_(C,$,j,"\u27FC","\\longmapsto",!0),_(C,$,j,"\u2197","\\nearrow",!0),_(C,$,j,"\u21A9","\\hookleftarrow",!0),_(C,$,j,"\u21AA","\\hookrightarrow",!0),_(C,$,j,"\u2198","\\searrow",!0),_(C,$,j,"\u21BC","\\leftharpoonup",!0),_(C,$,j,"\u21C0","\\rightharpoonup",!0),_(C,$,j,"\u2199","\\swarrow",!0),_(C,$,j,"\u21BD","\\leftharpoondown",!0),_(C,$,j,"\u21C1","\\rightharpoondown",!0),_(C,$,j,"\u2196","\\nwarrow",!0),_(C,$,j,"\u21CC","\\rightleftharpoons",!0),_(C,me,j,"\u226E","\\nless",!0),_(C,me,j,"\uE010","\\@nleqslant"),_(C,me,j,"\uE011","\\@nleqq"),_(C,me,j,"\u2A87","\\lneq",!0),_(C,me,j,"\u2268","\\lneqq",!0),_(C,me,j,"\uE00C","\\@lvertneqq"),_(C,me,j,"\u22E6","\\lnsim",!0),_(C,me,j,"\u2A89","\\lnapprox",!0),_(C,me,j,"\u2280","\\nprec",!0),_(C,me,j,"\u22E0","\\npreceq",!0),_(C,me,j,"\u22E8","\\precnsim",!0),_(C,me,j,"\u2AB9","\\precnapprox",!0),_(C,me,j,"\u2241","\\nsim",!0),_(C,me,j,"\uE006","\\@nshortmid"),_(C,me,j,"\u2224","\\nmid",!0),_(C,me,j,"\u22AC","\\nvdash",!0),_(C,me,j,"\u22AD","\\nvDash",!0),_(C,me,j,"\u22EA","\\ntriangleleft"),_(C,me,j,"\u22EC","\\ntrianglelefteq",!0),_(C,me,j,"\u228A","\\subsetneq",!0),_(C,me,j,"\uE01A","\\@varsubsetneq"),_(C,me,j,"\u2ACB","\\subsetneqq",!0),_(C,me,j,"\uE017","\\@varsubsetneqq"),_(C,me,j,"\u226F","\\ngtr",!0),_(C,me,j,"\uE00F","\\@ngeqslant"),_(C,me,j,"\uE00E","\\@ngeqq"),_(C,me,j,"\u2A88","\\gneq",!0),_(C,me,j,"\u2269","\\gneqq",!0),_(C,me,j,"\uE00D","\\@gvertneqq"),_(C,me,j,"\u22E7","\\gnsim",!0),_(C,me,j,"\u2A8A","\\gnapprox",!0),_(C,me,j,"\u2281","\\nsucc",!0),_(C,me,j,"\u22E1","\\nsucceq",!0),_(C,me,j,"\u22E9","\\succnsim",!0),_(C,me,j,"\u2ABA","\\succnapprox",!0),_(C,me,j,"\u2246","\\ncong",!0),_(C,me,j,"\uE007","\\@nshortparallel"),_(C,me,j,"\u2226","\\nparallel",!0),_(C,me,j,"\u22AF","\\nVDash",!0),_(C,me,j,"\u22EB","\\ntriangleright"),_(C,me,j,"\u22ED","\\ntrianglerighteq",!0),_(C,me,j,"\uE018","\\@nsupseteqq"),_(C,me,j,"\u228B","\\supsetneq",!0),_(C,me,j,"\uE01B","\\@varsupsetneq"),_(C,me,j,"\u2ACC","\\supsetneqq",!0),_(C,me,j,"\uE019","\\@varsupsetneqq"),_(C,me,j,"\u22AE","\\nVdash",!0),_(C,me,j,"\u2AB5","\\precneqq",!0),_(C,me,j,"\u2AB6","\\succneqq",!0),_(C,me,j,"\uE016","\\@nsubseteqq"),_(C,me,ke,"\u22B4","\\unlhd"),_(C,me,ke,"\u22B5","\\unrhd"),_(C,me,j,"\u219A","\\nleftarrow",!0),_(C,me,j,"\u219B","\\nrightarrow",!0),_(C,me,j,"\u21CD","\\nLeftarrow",!0),_(C,me,j,"\u21CF","\\nRightarrow",!0),_(C,me,j,"\u21AE","\\nleftrightarrow",!0),_(C,me,j,"\u21CE","\\nLeftrightarrow",!0),_(C,me,j,"\u25B3","\\vartriangle"),_(C,me,Ae,"\u210F","\\hslash"),_(C,me,Ae,"\u25BD","\\triangledown"),_(C,me,Ae,"\u25CA","\\lozenge"),_(C,me,Ae,"\u24C8","\\circledS"),_(C,me,Ae,"\xAE","\\circledR"),_(et,me,Ae,"\xAE","\\circledR"),_(C,me,Ae,"\u2221","\\measuredangle",!0),_(C,me,Ae,"\u2204","\\nexists"),_(C,me,Ae,"\u2127","\\mho"),_(C,me,Ae,"\u2132","\\Finv",!0),_(C,me,Ae,"\u2141","\\Game",!0),_(C,me,Ae,"\u2035","\\backprime"),_(C,me,Ae,"\u25B2","\\blacktriangle"),_(C,me,Ae,"\u25BC","\\blacktriangledown"),_(C,me,Ae,"\u25A0","\\blacksquare"),_(C,me,Ae,"\u29EB","\\blacklozenge"),_(C,me,Ae,"\u2605","\\bigstar"),_(C,me,Ae,"\u2222","\\sphericalangle",!0),_(C,me,Ae,"\u2201","\\complement",!0),_(C,me,Ae,"\xF0","\\eth",!0),_(C,me,Ae,"\u2571","\\diagup"),_(C,me,Ae,"\u2572","\\diagdown"),_(C,me,Ae,"\u25A1","\\square"),_(C,me,Ae,"\u25A1","\\Box"),_(C,me,Ae,"\u25CA","\\Diamond"),_(C,me,Ae,"\xA5","\\yen",!0),_(et,me,Ae,"\xA5","\\yen",!0),_(C,me,Ae,"\u2713","\\checkmark",!0),_(et,me,Ae,"\u2713","\\checkmark"),_(C,me,Ae,"\u2136","\\beth",!0),_(C,me,Ae,"\u2138","\\daleth",!0),_(C,me,Ae,"\u2137","\\gimel",!0),_(C,me,Ae,"\u03DD","\\digamma",!0),_(C,me,Ae,"\u03F0","\\varkappa"),_(C,me,De,"\u250C","\\ulcorner",!0),_(C,me,He,"\u2510","\\urcorner",!0),_(C,me,De,"\u2514","\\llcorner",!0),_(C,me,He,"\u2518","\\lrcorner",!0),_(C,me,j,"\u2266","\\leqq",!0),_(C,me,j,"\u2A7D","\\leqslant",!0),_(C,me,j,"\u2A95","\\eqslantless",!0),_(C,me,j,"\u2272","\\lesssim",!0),_(C,me,j,"\u2A85","\\lessapprox",!0),_(C,me,j,"\u224A","\\approxeq",!0),_(C,me,ke,"\u22D6","\\lessdot"),_(C,me,j,"\u22D8","\\lll",!0),_(C,me,j,"\u2276","\\lessgtr",!0),_(C,me,j,"\u22DA","\\lesseqgtr",!0),_(C,me,j,"\u2A8B","\\lesseqqgtr",!0),_(C,me,j,"\u2251","\\doteqdot"),_(C,me,j,"\u2253","\\risingdotseq",!0),_(C,me,j,"\u2252","\\fallingdotseq",!0),_(C,me,j,"\u223D","\\backsim",!0),_(C,me,j,"\u22CD","\\backsimeq",!0),_(C,me,j,"\u2AC5","\\subseteqq",!0),_(C,me,j,"\u22D0","\\Subset",!0),_(C,me,j,"\u228F","\\sqsubset",!0),_(C,me,j,"\u227C","\\preccurlyeq",!0),_(C,me,j,"\u22DE","\\curlyeqprec",!0),_(C,me,j,"\u227E","\\precsim",!0),_(C,me,j,"\u2AB7","\\precapprox",!0),_(C,me,j,"\u22B2","\\vartriangleleft"),_(C,me,j,"\u22B4","\\trianglelefteq"),_(C,me,j,"\u22A8","\\vDash",!0),_(C,me,j,"\u22AA","\\Vvdash",!0),_(C,me,j,"\u2323","\\smallsmile"),_(C,me,j,"\u2322","\\smallfrown"),_(C,me,j,"\u224F","\\bumpeq",!0),_(C,me,j,"\u224E","\\Bumpeq",!0),_(C,me,j,"\u2267","\\geqq",!0),_(C,me,j,"\u2A7E","\\geqslant",!0),_(C,me,j,"\u2A96","\\eqslantgtr",!0),_(C,me,j,"\u2273","\\gtrsim",!0),_(C,me,j,"\u2A86","\\gtrapprox",!0),_(C,me,ke,"\u22D7","\\gtrdot"),_(C,me,j,"\u22D9","\\ggg",!0),_(C,me,j,"\u2277","\\gtrless",!0),_(C,me,j,"\u22DB","\\gtreqless",!0),_(C,me,j,"\u2A8C","\\gtreqqless",!0),_(C,me,j,"\u2256","\\eqcirc",!0),_(C,me,j,"\u2257","\\circeq",!0),_(C,me,j,"\u225C","\\triangleq",!0),_(C,me,j,"\u223C","\\thicksim"),_(C,me,j,"\u2248","\\thickapprox"),_(C,me,j,"\u2AC6","\\supseteqq",!0),_(C,me,j,"\u22D1","\\Supset",!0),_(C,me,j,"\u2290","\\sqsupset",!0),_(C,me,j,"\u227D","\\succcurlyeq",!0),_(C,me,j,"\u22DF","\\curlyeqsucc",!0),_(C,me,j,"\u227F","\\succsim",!0),_(C,me,j,"\u2AB8","\\succapprox",!0),_(C,me,j,"\u22B3","\\vartriangleright"),_(C,me,j,"\u22B5","\\trianglerighteq"),_(C,me,j,"\u22A9","\\Vdash",!0),_(C,me,j,"\u2223","\\shortmid"),_(C,me,j,"\u2225","\\shortparallel"),_(C,me,j,"\u226C","\\between",!0),_(C,me,j,"\u22D4","\\pitchfork",!0),_(C,me,j,"\u221D","\\varpropto"),_(C,me,j,"\u25C0","\\blacktriangleleft"),_(C,me,j,"\u2234","\\therefore",!0),_(C,me,j,"\u220D","\\backepsilon"),_(C,me,j,"\u25B6","\\blacktriangleright"),_(C,me,j,"\u2235","\\because",!0),_(C,me,j,"\u22D8","\\llless"),_(C,me,j,"\u22D9","\\gggtr"),_(C,me,ke,"\u22B2","\\lhd"),_(C,me,ke,"\u22B3","\\rhd"),_(C,me,j,"\u2242","\\eqsim",!0),_(C,$,j,"\u22C8","\\Join"),_(C,me,j,"\u2251","\\Doteq",!0),_(C,me,ke,"\u2214","\\dotplus",!0),_(C,me,ke,"\u2216","\\smallsetminus"),_(C,me,ke,"\u22D2","\\Cap",!0),_(C,me,ke,"\u22D3","\\Cup",!0),_(C,me,ke,"\u2A5E","\\doublebarwedge",!0),_(C,me,ke,"\u229F","\\boxminus",!0),_(C,me,ke,"\u229E","\\boxplus",!0),_(C,me,ke,"\u22C7","\\divideontimes",!0),_(C,me,ke,"\u22C9","\\ltimes",!0),_(C,me,ke,"\u22CA","\\rtimes",!0),_(C,me,ke,"\u22CB","\\leftthreetimes",!0),_(C,me,ke,"\u22CC","\\rightthreetimes",!0),_(C,me,ke,"\u22CF","\\curlywedge",!0),_(C,me,ke,"\u22CE","\\curlyvee",!0),_(C,me,ke,"\u229D","\\circleddash",!0),_(C,me,ke,"\u229B","\\circledast",!0),_(C,me,ke,"\u22C5","\\centerdot"),_(C,me,ke,"\u22BA","\\intercal",!0),_(C,me,ke,"\u22D2","\\doublecap"),_(C,me,ke,"\u22D3","\\doublecup"),_(C,me,ke,"\u22A0","\\boxtimes",!0),_(C,me,j,"\u21E2","\\dashrightarrow",!0),_(C,me,j,"\u21E0","\\dashleftarrow",!0),_(C,me,j,"\u21C7","\\leftleftarrows",!0),_(C,me,j,"\u21C6","\\leftrightarrows",!0),_(C,me,j,"\u21DA","\\Lleftarrow",!0),_(C,me,j,"\u219E","\\twoheadleftarrow",!0),_(C,me,j,"\u21A2","\\leftarrowtail",!0),_(C,me,j,"\u21AB","\\looparrowleft",!0),_(C,me,j,"\u21CB","\\leftrightharpoons",!0),_(C,me,j,"\u21B6","\\curvearrowleft",!0),_(C,me,j,"\u21BA","\\circlearrowleft",!0),_(C,me,j,"\u21B0","\\Lsh",!0),_(C,me,j,"\u21C8","\\upuparrows",!0),_(C,me,j,"\u21BF","\\upharpoonleft",!0),_(C,me,j,"\u21C3","\\downharpoonleft",!0),_(C,me,j,"\u22B8","\\multimap",!0),_(C,me,j,"\u21AD","\\leftrightsquigarrow",!0),_(C,me,j,"\u21C9","\\rightrightarrows",!0),_(C,me,j,"\u21C4","\\rightleftarrows",!0),_(C,me,j,"\u21A0","\\twoheadrightarrow",!0),_(C,me,j,"\u21A3","\\rightarrowtail",!0),_(C,me,j,"\u21AC","\\looparrowright",!0),_(C,me,j,"\u21B7","\\curvearrowright",!0),_(C,me,j,"\u21BB","\\circlearrowright",!0),_(C,me,j,"\u21B1","\\Rsh",!0),_(C,me,j,"\u21CA","\\downdownarrows",!0),_(C,me,j,"\u21BE","\\upharpoonright",!0),_(C,me,j,"\u21C2","\\downharpoonright",!0),_(C,me,j,"\u21DD","\\rightsquigarrow",!0),_(C,me,j,"\u21DD","\\leadsto"),_(C,me,j,"\u21DB","\\Rrightarrow",!0),_(C,me,j,"\u21BE","\\restriction"),_(C,$,Ae,"\u2018","`"),_(C,$,Ae,"$","\\$"),_(et,$,Ae,"$","\\$"),_(et,$,Ae,"$","\\textdollar"),_(C,$,Ae,"%","\\%"),_(et,$,Ae,"%","\\%"),_(C,$,Ae,"_","\\_"),_(et,$,Ae,"_","\\_"),_(et,$,Ae,"_","\\textunderscore"),_(C,$,Ae,"\u2220","\\angle",!0),_(C,$,Ae,"\u221E","\\infty",!0),_(C,$,Ae,"\u2032","\\prime"),_(C,$,Ae,"\u25B3","\\triangle"),_(C,$,Ae,"\u0393","\\Gamma",!0),_(C,$,Ae,"\u0394","\\Delta",!0),_(C,$,Ae,"\u0398","\\Theta",!0),_(C,$,Ae,"\u039B","\\Lambda",!0),_(C,$,Ae,"\u039E","\\Xi",!0),_(C,$,Ae,"\u03A0","\\Pi",!0),_(C,$,Ae,"\u03A3","\\Sigma",!0),_(C,$,Ae,"\u03A5","\\Upsilon",!0),_(C,$,Ae,"\u03A6","\\Phi",!0),_(C,$,Ae,"\u03A8","\\Psi",!0),_(C,$,Ae,"\u03A9","\\Omega",!0),_(C,$,Ae,"A","\u0391"),_(C,$,Ae,"B","\u0392"),_(C,$,Ae,"E","\u0395"),_(C,$,Ae,"Z","\u0396"),_(C,$,Ae,"H","\u0397"),_(C,$,Ae,"I","\u0399"),_(C,$,Ae,"K","\u039A"),_(C,$,Ae,"M","\u039C"),_(C,$,Ae,"N","\u039D"),_(C,$,Ae,"O","\u039F"),_(C,$,Ae,"P","\u03A1"),_(C,$,Ae,"T","\u03A4"),_(C,$,Ae,"X","\u03A7"),_(C,$,Ae,"\xAC","\\neg",!0),_(C,$,Ae,"\xAC","\\lnot"),_(C,$,Ae,"\u22A4","\\top"),_(C,$,Ae,"\u22A5","\\bot"),_(C,$,Ae,"\u2205","\\emptyset"),_(C,me,Ae,"\u2205","\\varnothing"),_(C,$,X,"\u03B1","\\alpha",!0),_(C,$,X,"\u03B2","\\beta",!0),_(C,$,X,"\u03B3","\\gamma",!0),_(C,$,X,"\u03B4","\\delta",!0),_(C,$,X,"\u03F5","\\epsilon",!0),_(C,$,X,"\u03B6","\\zeta",!0),_(C,$,X,"\u03B7","\\eta",!0),_(C,$,X,"\u03B8","\\theta",!0),_(C,$,X,"\u03B9","\\iota",!0),_(C,$,X,"\u03BA","\\kappa",!0),_(C,$,X,"\u03BB","\\lambda",!0),_(C,$,X,"\u03BC","\\mu",!0),_(C,$,X,"\u03BD","\\nu",!0),_(C,$,X,"\u03BE","\\xi",!0),_(C,$,X,"\u03BF","\\omicron",!0),_(C,$,X,"\u03C0","\\pi",!0),_(C,$,X,"\u03C1","\\rho",!0),_(C,$,X,"\u03C3","\\sigma",!0),_(C,$,X,"\u03C4","\\tau",!0),_(C,$,X,"\u03C5","\\upsilon",!0),_(C,$,X,"\u03D5","\\phi",!0),_(C,$,X,"\u03C7","\\chi",!0),_(C,$,X,"\u03C8","\\psi",!0),_(C,$,X,"\u03C9","\\omega",!0),_(C,$,X,"\u03B5","\\varepsilon",!0),_(C,$,X,"\u03D1","\\vartheta",!0),_(C,$,X,"\u03D6","\\varpi",!0),_(C,$,X,"\u03F1","\\varrho",!0),_(C,$,X,"\u03C2","\\varsigma",!0),_(C,$,X,"\u03C6","\\varphi",!0),_(C,$,ke,"\u2217","*"),_(C,$,ke,"+","+"),_(C,$,ke,"\u2212","-"),_(C,$,ke,"\u22C5","\\cdot",!0),_(C,$,ke,"\u2218","\\circ"),_(C,$,ke,"\xF7","\\div",!0),_(C,$,ke,"\xB1","\\pm",!0),_(C,$,ke,"\xD7","\\times",!0),_(C,$,ke,"\u2229","\\cap",!0),_(C,$,ke,"\u222A","\\cup",!0),_(C,$,ke,"\u2216","\\setminus"),_(C,$,ke,"\u2227","\\land"),_(C,$,ke,"\u2228","\\lor"),_(C,$,ke,"\u2227","\\wedge",!0),_(C,$,ke,"\u2228","\\vee",!0),_(C,$,Ae,"\u221A","\\surd"),_(C,$,De,"(","("),_(C,$,De,"[","["),_(C,$,De,"\u27E8","\\langle",!0),_(C,$,De,"\u2223","\\lvert"),_(C,$,De,"\u2225","\\lVert"),_(C,$,He,")",")"),_(C,$,He,"]","]"),_(C,$,He,"?","?"),_(C,$,He,"!","!"),_(C,$,He,"\u27E9","\\rangle",!0),_(C,$,He,"\u2223","\\rvert"),_(C,$,He,"\u2225","\\rVert"),_(C,$,j,"=","="),_(C,$,j,"<","<"),_(C,$,j,">",">"),_(C,$,j,":",":"),_(C,$,j,"\u2248","\\approx",!0),_(C,$,j,"\u2245","\\cong",!0),_(C,$,j,"\u2265","\\ge"),_(C,$,j,"\u2265","\\geq",!0),_(C,$,j,"\u2190","\\gets"),_(C,$,j,">","\\gt"),_(C,$,j,"\u2208","\\in",!0),_(C,$,j,"\uE020","\\@not"),_(C,$,j,"\u2282","\\subset",!0),_(C,$,j,"\u2283","\\supset",!0),_(C,$,j,"\u2286","\\subseteq",!0),_(C,$,j,"\u2287","\\supseteq",!0),_(C,me,j,"\u2288","\\nsubseteq",!0),_(C,me,j,"\u2289","\\nsupseteq",!0),_(C,$,j,"\u22A8","\\models"),_(C,$,j,"\u2190","\\leftarrow",!0),_(C,$,j,"\u2264","\\le"),_(C,$,j,"\u2264","\\leq",!0),_(C,$,j,"<","\\lt"),_(C,$,j,"\u2192","\\rightarrow",!0),_(C,$,j,"\u2192","\\to"),_(C,me,j,"\u2271","\\ngeq",!0),_(C,me,j,"\u2270","\\nleq",!0),_(C,$,Pt,"\xA0","\\ "),_(C,$,Pt,"\xA0","~"),_(C,$,Pt,"\xA0","\\space"),_(C,$,Pt,"\xA0","\\nobreakspace"),_(et,$,Pt,"\xA0","\\ "),_(et,$,Pt,"\xA0","~"),_(et,$,Pt,"\xA0","\\space"),_(et,$,Pt,"\xA0","\\nobreakspace"),_(C,$,Pt,null,"\\nobreak"),_(C,$,Pt,null,"\\allowbreak"),_(C,$,ze,",",","),_(C,$,ze,";",";"),_(C,me,ke,"\u22BC","\\barwedge",!0),_(C,me,ke,"\u22BB","\\veebar",!0),_(C,$,ke,"\u2299","\\odot",!0),_(C,$,ke,"\u2295","\\oplus",!0),_(C,$,ke,"\u2297","\\otimes",!0),_(C,$,Ae,"\u2202","\\partial",!0),_(C,$,ke,"\u2298","\\oslash",!0),_(C,me,ke,"\u229A","\\circledcirc",!0),_(C,me,ke,"\u22A1","\\boxdot",!0),_(C,$,ke,"\u25B3","\\bigtriangleup"),_(C,$,ke,"\u25BD","\\bigtriangledown"),_(C,$,ke,"\u2020","\\dagger"),_(C,$,ke,"\u22C4","\\diamond"),_(C,$,ke,"\u22C6","\\star"),_(C,$,ke,"\u25C3","\\triangleleft"),_(C,$,ke,"\u25B9","\\triangleright"),_(C,$,De,"{","\\{"),_(et,$,Ae,"{","\\{"),_(et,$,Ae,"{","\\textbraceleft"),_(C,$,He,"}","\\}"),_(et,$,Ae,"}","\\}"),_(et,$,Ae,"}","\\textbraceright"),_(C,$,De,"{","\\lbrace"),_(C,$,He,"}","\\rbrace"),_(C,$,De,"[","\\lbrack"),_(et,$,Ae,"[","\\lbrack"),_(C,$,He,"]","\\rbrack"),_(et,$,Ae,"]","\\rbrack"),_(C,$,De,"(","\\lparen"),_(C,$,He,")","\\rparen"),_(et,$,Ae,"<","\\textless"),_(et,$,Ae,">","\\textgreater"),_(C,$,De,"\u230A","\\lfloor",!0),_(C,$,He,"\u230B","\\rfloor",!0),_(C,$,De,"\u2308","\\lceil",!0),_(C,$,He,"\u2309","\\rceil",!0),_(C,$,Ae,"\\","\\backslash"),_(C,$,Ae,"\u2223","|"),_(C,$,Ae,"\u2223","\\vert"),_(et,$,Ae,"|","\\textbar"),_(C,$,Ae,"\u2225","\\|"),_(C,$,Ae,"\u2225","\\Vert"),_(et,$,Ae,"\u2225","\\textbardbl"),_(et,$,Ae,"~","\\textasciitilde"),_(et,$,Ae,"\\","\\textbackslash"),_(et,$,Ae,"^","\\textasciicircum"),_(C,$,j,"\u2191","\\uparrow",!0),_(C,$,j,"\u21D1","\\Uparrow",!0),_(C,$,j,"\u2193","\\downarrow",!0),_(C,$,j,"\u21D3","\\Downarrow",!0),_(C,$,j,"\u2195","\\updownarrow",!0),_(C,$,j,"\u21D5","\\Updownarrow",!0),_(C,$,oe,"\u2210","\\coprod"),_(C,$,oe,"\u22C1","\\bigvee"),_(C,$,oe,"\u22C0","\\bigwedge"),_(C,$,oe,"\u2A04","\\biguplus"),_(C,$,oe,"\u22C2","\\bigcap"),_(C,$,oe,"\u22C3","\\bigcup"),_(C,$,oe,"\u222B","\\int"),_(C,$,oe,"\u222B","\\intop"),_(C,$,oe,"\u222C","\\iint"),_(C,$,oe,"\u222D","\\iiint"),_(C,$,oe,"\u220F","\\prod"),_(C,$,oe,"\u2211","\\sum"),_(C,$,oe,"\u2A02","\\bigotimes"),_(C,$,oe,"\u2A01","\\bigoplus"),_(C,$,oe,"\u2A00","\\bigodot"),_(C,$,oe,"\u222E","\\oint"),_(C,$,oe,"\u222F","\\oiint"),_(C,$,oe,"\u2230","\\oiiint"),_(C,$,oe,"\u2A06","\\bigsqcup"),_(C,$,oe,"\u222B","\\smallint"),_(et,$,Ze,"\u2026","\\textellipsis"),_(C,$,Ze,"\u2026","\\mathellipsis"),_(et,$,Ze,"\u2026","\\ldots",!0),_(C,$,Ze,"\u2026","\\ldots",!0),_(C,$,Ze,"\u22EF","\\@cdots",!0),_(C,$,Ze,"\u22F1","\\ddots",!0),_(C,$,Ae,"\u22EE","\\varvdots"),_(C,$,tr,"\u02CA","\\acute"),_(C,$,tr,"\u02CB","\\grave"),_(C,$,tr,"\xA8","\\ddot"),_(C,$,tr,"~","\\tilde"),_(C,$,tr,"\u02C9","\\bar"),_(C,$,tr,"\u02D8","\\breve"),_(C,$,tr,"\u02C7","\\check"),_(C,$,tr,"^","\\hat"),_(C,$,tr,"\u20D7","\\vec"),_(C,$,tr,"\u02D9","\\dot"),_(C,$,tr,"\u02DA","\\mathring"),_(C,$,X,"\u0131","\\imath",!0),_(C,$,X,"\u0237","\\jmath",!0),_(et,$,Ae,"\u0131","\\i",!0),_(et,$,Ae,"\u0237","\\j",!0),_(et,$,Ae,"\xDF","\\ss",!0),_(et,$,Ae,"\xE6","\\ae",!0),_(et,$,Ae,"\xE6","\\ae",!0),_(et,$,Ae,"\u0153","\\oe",!0),_(et,$,Ae,"\xF8","\\o",!0),_(et,$,Ae,"\xC6","\\AE",!0),_(et,$,Ae,"\u0152","\\OE",!0),_(et,$,Ae,"\xD8","\\O",!0),_(et,$,tr,"\u02CA","\\'"),_(et,$,tr,"\u02CB","\\`"),_(et,$,tr,"\u02C6","\\^"),_(et,$,tr,"\u02DC","\\~"),_(et,$,tr,"\u02C9","\\="),_(et,$,tr,"\u02D8","\\u"),_(et,$,tr,"\u02D9","\\."),_(et,$,tr,"\u02DA","\\r"),_(et,$,tr,"\u02C7","\\v"),_(et,$,tr,"\xA8",'\\"'),_(et,$,tr,"\u02DD","\\H"),_(et,$,tr,"\u25EF","\\textcircled");var Zt={"--":!0,"---":!0,"``":!0,"''":!0};_(et,$,Ae,"\u2013","--"),_(et,$,Ae,"\u2013","\\textendash"),_(et,$,Ae,"\u2014","---"),_(et,$,Ae,"\u2014","\\textemdash"),_(et,$,Ae,"\u2018","`"),_(et,$,Ae,"\u2018","\\textquoteleft"),_(et,$,Ae,"\u2019","'"),_(et,$,Ae,"\u2019","\\textquoteright"),_(et,$,Ae,"\u201C","``"),_(et,$,Ae,"\u201C","\\textquotedblleft"),_(et,$,Ae,"\u201D","''"),_(et,$,Ae,"\u201D","\\textquotedblright"),_(C,$,Ae,"\xB0","\\degree",!0),_(et,$,Ae,"\xB0","\\degree"),_(et,$,Ae,"\xB0","\\textdegree",!0),_(C,$,X,"\xA3","\\pounds"),_(C,$,X,"\xA3","\\mathsterling",!0),_(et,$,X,"\xA3","\\pounds"),_(et,$,X,"\xA3","\\textsterling",!0),_(C,me,Ae,"\u2720","\\maltese"),_(et,me,Ae,"\u2720","\\maltese"),_(et,$,Pt,"\xA0","\\ "),_(et,$,Pt,"\xA0"," "),_(et,$,Pt,"\xA0","~");for(var lr='0123456789/@."',wt=0;wt<lr.length;wt++){var Mt=lr.charAt(wt);_(C,$,Ae,Mt,Mt)}for(var pt='0123456789!@*()-=+[]<>|";:?/.,',Et=0;Et<pt.length;Et++){var Re=pt.charAt(Et);_(et,$,Ae,Re,Re)}for(var st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ct=0;ct<st.length;ct++){var gt=st.charAt(ct);_(C,$,X,gt,gt),_(et,$,Ae,gt,gt)}_(C,me,Ae,"C","\u2102"),_(et,me,Ae,"C","\u2102"),_(C,me,Ae,"H","\u210D"),_(et,me,Ae,"H","\u210D"),_(C,me,Ae,"N","\u2115"),_(et,me,Ae,"N","\u2115"),_(C,me,Ae,"P","\u2119"),_(et,me,Ae,"P","\u2119"),_(C,me,Ae,"Q","\u211A"),_(et,me,Ae,"Q","\u211A"),_(C,me,Ae,"R","\u211D"),_(et,me,Ae,"R","\u211D"),_(C,me,Ae,"Z","\u2124"),_(et,me,Ae,"Z","\u2124"),_(C,$,X,"h","\u210E"),_(et,$,X,"h","\u210E");for(var Je="",Ft=0;Ft<st.length;Ft++){var $t=st.charAt(Ft);Je=String.fromCharCode(55349,56320+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56372+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56424+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56580+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56736+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56788+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56840+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56944+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Ft<26&&(Je=String.fromCharCode(55349,56632+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je),Je=String.fromCharCode(55349,56476+Ft),_(C,$,X,$t,Je),_(et,$,Ae,$t,Je))}Je="\u{1D55C}",_(C,$,X,"k",Je),_(et,$,Ae,"k",Je);for(var Wt=0;Wt<10;Wt++){var gr=Wt.toString();Je=String.fromCharCode(55349,57294+Wt),_(C,$,X,gr,Je),_(et,$,Ae,gr,Je),Je=String.fromCharCode(55349,57314+Wt),_(C,$,X,gr,Je),_(et,$,Ae,gr,Je),Je=String.fromCharCode(55349,57324+Wt),_(C,$,X,gr,Je),_(et,$,Ae,gr,Je),Je=String.fromCharCode(55349,57334+Wt),_(C,$,X,gr,Je),_(et,$,Ae,gr,Je)}for(var vr="\xC7\xD0\xDE\xE7\xFE",er=0;er<vr.length;er++){var yr=vr.charAt(er);_(C,$,X,yr,yr),_(et,$,Ae,yr,yr)}_(et,$,Ae,"\xF0","\xF0"),_(et,$,Ae,"\u2013","\u2013"),_(et,$,Ae,"\u2014","\u2014"),_(et,$,Ae,"\u2018","\u2018"),_(et,$,Ae,"\u2019","\u2019"),_(et,$,Ae,"\u201C","\u201C"),_(et,$,Ae,"\u201D","\u201D");var _r=[["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"]],Jt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Kt=function(l,d){var h=l.charCodeAt(0),m=l.charCodeAt(1),D=(h-55296)*1024+(m-56320)+65536,M=d==="math"?0:1;if(119808<=D&&D<120484){var pe=Math.floor((D-119808)/26);return[_r[pe][2],_r[pe][M]]}else if(120782<=D&&D<=120831){var Ce=Math.floor((D-120782)/10);return[Jt[Ce][2],Jt[Ce][M]]}else{if(D===120485||D===120486)return[_r[0][2],_r[0][M]];if(120486<D&&D<120782)return["",""];throw new se("Unsupported character: "+l)}},$e=[[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]],vt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],at=function(l,d){return d.size<2?l:$e[l-1][d.size-1]},yt=function(){function B(d){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=d.style,this.color=d.color,this.size=d.size||B.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=vt[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=B.prototype;return l.extend=function(h){var m={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var D in h)h.hasOwnProperty(D)&&(m[D]=h[D]);return new B(m)},l.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:at(this.textSize,h)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:vt[h-1]})},l.havingBaseStyle=function(h){h=h||this.style.text();var m=at(B.BASESIZE,h);return this.size===m&&this.textSize===B.BASESIZE&&this.style===h?this:this.extend({style:h,size:m})},l.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},l.withColor=function(h){return this.extend({color:h})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(h){return this.extend({font:h})},l.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},l.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},l.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},l.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==B.BASESIZE?["sizing","reset-size"+this.size,"size"+B.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ke(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},B}();yt.BASESIZE=6;var Nt=yt,Ot={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},ut={ex:!0,em:!0,mu:!0},Se=function(l){return typeof l!="string"&&(l=l.unit),l in Ot||l in ut||l==="ex"},We=function(l,d){var h;if(l.unit in Ot)h=Ot[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")h=d.fontMetrics().cssEmPerMu;else{var m;if(d.style.isTight()?m=d.havingStyle(d.style.text()):m=d,l.unit==="ex")h=m.fontMetrics().xHeight;else if(l.unit==="em")h=m.fontMetrics().quad;else throw new se("Invalid unit: '"+l.unit+"'");m!==d&&(h*=m.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*h,d.maxSize)},rt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],bt=function(l,d,h){return It[h][l]&&It[h][l].replace&&(l=It[h][l].replace),{value:l,metrics:kt(l,d,h)}},mt=function(l,d,h,m,D){var M=bt(l,d,h),pe=M.metrics;l=M.value;var Ce;if(pe){var je=pe.italic;(h==="text"||m&&m.font==="mathit")&&(je=0),Ce=new ee(l,pe.height,pe.depth,je,pe.skew,pe.width,D)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+h+"'")),Ce=new ee(l,0,0,0,0,0,D);if(m){Ce.maxFontSize=m.sizeMultiplier,m.style.isTight()&&Ce.classes.push("mtight");var dt=m.getColor();dt&&(Ce.style.color=dt)}return Ce},Ct=function(l,d,h,m){return m===void 0&&(m=[]),h.font==="boldsymbol"&&bt(l,"Main-Bold",d).metrics?mt(l,"Main-Bold",d,h,m.concat(["mathbf"])):l==="\\"||It[d][l].font==="main"?mt(l,"Main-Regular",d,h,m):mt(l,"AMS-Regular",d,h,m.concat(["amsrm"]))},Tt=function(l,d,h,m){return/[0-9]/.test(l.charAt(0))||R.contains(rt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ar=function(l,d,h,m){return R.contains(rt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},cr=function(l,d,h,m){return bt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ur=function(l,d,h){var m=l.mode,D=l.text,M=["mord"],pe=m==="math"||m==="text"&&d.font,Ce=pe?d.font:d.fontFamily;if(D.charCodeAt(0)===55349){var je=Kt(D,m),dt=je[0],St=je[1];return mt(D,dt,m,d,M.concat(St))}else if(Ce){var zt,rr;if(Ce==="boldsymbol"||Ce==="mathnormal"){var hr=Ce==="boldsymbol"?cr(D,m,d,M):ar(D,m,d,M);zt=hr.fontName,rr=[hr.fontClass]}else R.contains(rt,D)?(zt="Main-Italic",rr=["mathit"]):pe?(zt=ln[Ce].fontName,rr=[Ce]):(zt=Gr(Ce,d.fontWeight,d.fontShape),rr=[Ce,d.fontWeight,d.fontShape]);if(bt(D,zt,m).metrics)return mt(D,zt,m,d,M.concat(rr));if(Zt.hasOwnProperty(D)&&zt.substr(0,10)==="Typewriter"){for(var xr=[],Br=0;Br<D.length;Br++)xr.push(mt(D[Br],zt,m,d,M.concat(rr)));return zr(xr)}}if(h==="mathord"){var qr=Tt(D,m,d,M);return mt(D,qr.fontName,m,d,M.concat([qr.fontClass]))}else if(h==="textord"){var rn=It[m][D]&&It[m][D].font;if(rn==="ams"){var en=Gr("amsrm",d.fontWeight,d.fontShape);return mt(D,en,m,d,M.concat("amsrm",d.fontWeight,d.fontShape))}else if(rn==="main"||!rn){var Ln=Gr("textrm",d.fontWeight,d.fontShape);return mt(D,Ln,m,d,M.concat(d.fontWeight,d.fontShape))}else{var kn=Gr(rn,d.fontWeight,d.fontShape);return mt(D,kn,m,d,M.concat(kn,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},Er=function(l,d){if(Ht(l.classes)!==Ht(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var h in l.style)if(l.style.hasOwnProperty(h)&&l.style[h]!==d.style[h])return!1;for(var m in d.style)if(d.style.hasOwnProperty(m)&&l.style[m]!==d.style[m])return!1;return!0},Fr=function(l){for(var d=0;d<l.length-1;d++){var h=l[d],m=l[d+1];h instanceof ee&&m instanceof ee&&Er(h,m)&&(h.text+=m.text,h.height=Math.max(h.height,m.height),h.depth=Math.max(h.depth,m.depth),h.italic=m.italic,l.splice(d+1,1),d--)}return l},Lr=function(l){for(var d=0,h=0,m=0,D=0;D<l.children.length;D++){var M=l.children[D];M.height>d&&(d=M.height),M.depth>h&&(h=M.depth),M.maxFontSize>m&&(m=M.maxFontSize)}l.height=d,l.depth=h,l.maxFontSize=m},fr=function(l,d,h,m){var D=new F(l,d,h,m);return Lr(D),D},ir=function(l,d,h,m){return new F(l,d,h,m)},$r=function(l,d,h){var m=fr([l],[],d);return m.height=Math.max(h||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),m.style.borderBottomWidth=m.height+"em",m.maxFontSize=1,m},Ir=function(l,d,h,m){var D=new fe(l,d,h,m);return Lr(D),D},zr=function(l){var d=new Bt(l);return Lr(d),d},Tr=function(l,d){return l instanceof Bt?fr([],[l],d):l},Rr=function(l){if(l.positionType==="individualShift"){for(var d=l.children,h=[d[0]],m=-d[0].shift-d[0].elem.depth,D=m,M=1;M<d.length;M++){var pe=-d[M].shift-D-d[M].elem.depth,Ce=pe-(d[M-1].elem.height+d[M-1].elem.depth);D=D+pe,h.push({type:"kern",size:Ce}),h.push(d[M])}return{children:h,depth:m}}var je;if(l.positionType==="top"){for(var dt=l.positionData,St=0;St<l.children.length;St++){var zt=l.children[St];dt-=zt.type==="kern"?zt.size:zt.elem.height+zt.elem.depth}je=dt}else if(l.positionType==="bottom")je=-l.positionData;else{var rr=l.children[0];if(rr.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")je=-rr.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")je=-rr.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:je}},Mr=function(l,d){for(var h=Rr(l),m=h.children,D=h.depth,M=0,pe=0;pe<m.length;pe++){var Ce=m[pe];if(Ce.type==="elem"){var je=Ce.elem;M=Math.max(M,je.maxFontSize,je.height)}}M+=2;var dt=fr(["pstrut"],[]);dt.style.height=M+"em";for(var St=[],zt=D,rr=D,hr=D,xr=0;xr<m.length;xr++){var Br=m[xr];if(Br.type==="kern")hr+=Br.size;else{var qr=Br.elem,rn=Br.wrapperClasses||[],en=Br.wrapperStyle||{},Ln=fr(rn,[dt,qr],void 0,en);Ln.style.top=-M-hr-qr.depth+"em",Br.marginLeft&&(Ln.style.marginLeft=Br.marginLeft),Br.marginRight&&(Ln.style.marginRight=Br.marginRight),St.push(Ln),hr+=qr.height+qr.depth}zt=Math.min(zt,hr),rr=Math.max(rr,hr)}var kn=fr(["vlist"],St);kn.style.height=rr+"em";var Un;if(zt<0){var jn=fr([],[]),Yn=fr(["vlist"],[jn]);Yn.style.height=-zt+"em";var mi=fr(["vlist-s"],[new ee("\u200B")]);Un=[fr(["vlist-r"],[kn,mi]),fr(["vlist-r"],[Yn])]}else Un=[fr(["vlist-r"],[kn])];var ui=fr(["vlist-t"],Un);return Un.length===2&&ui.classes.push("vlist-t2"),ui.height=rr,ui.depth=-zt,ui},jr=function(l,d){var h=fr(["mspace"],[],d),m=We(l,d);return h.style.marginRight=m+"em",h},Gr=function(l,d,h){var m="";switch(l){case"amsrm":m="AMS";break;case"textrm":m="Main";break;case"textsf":m="SansSerif";break;case"texttt":m="Typewriter";break;default:m=l}var D;return d==="textbf"&&h==="textit"?D="BoldItalic":d==="textbf"?D="Bold":d==="textit"?D="Italic":D="Regular",m+"-"+D},ln={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"}},Hr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},br=function(l,d){var h=Hr[l],m=h[0],D=h[1],M=h[2],pe=new be(m),Ce=new he([pe],{width:D+"em",height:M+"em",style:"width:"+D+"em",viewBox:"0 0 "+1e3*D+" "+1e3*M,preserveAspectRatio:"xMinYMin"}),je=ir(["overlay"],[Ce],d);return je.height=M,je.style.height=M+"em",je.style.width=D+"em",je},Ye={fontMap:ln,makeSymbol:mt,mathsym:Ct,makeSpan:fr,makeSvgSpan:ir,makeLineSpan:$r,makeAnchor:Ir,makeFragment:zr,wrapFragment:Tr,makeVList:Mr,makeOrd:ur,makeGlue:jr,staticSvg:br,svgData:Hr,tryCombineChars:Fr};function wr(B,l){var d=Wr(B,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(B?"node of type "+B.type:String(B)));return d}function Wr(B,l){return B&&B.type===l?B:null}function Qr(B,l){var d=cn(B,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(B?B.type==="atom"?"atom of family "+B.family:"node of type "+B.type:String(B)));return d}function cn(B,l){return B&&B.type==="atom"&&B.family===l?B:null}function En(B){var l=Ar(B);if(!l)throw new Error("Expected node of symbol group type, but got "+(B?"node of type "+B.type:String(B)));return l}function Ar(B){return B&&(B.type==="atom"||ft.hasOwnProperty(B.type))?B:null}var Cr={number:3,unit:"mu"},Xr={number:4,unit:"mu"},Jr={number:5,unit:"mu"},Zr={mord:{mop:Cr,mbin:Xr,mrel:Jr,minner:Cr},mop:{mord:Cr,mop:Cr,mrel:Jr,minner:Cr},mbin:{mord:Xr,mop:Xr,mopen:Xr,minner:Xr},mrel:{mord:Jr,mop:Jr,mopen:Jr,minner:Jr},mopen:{},mclose:{mop:Cr,mbin:Xr,mrel:Jr,minner:Cr},mpunct:{mord:Cr,mop:Cr,mrel:Jr,mopen:Cr,mclose:Cr,mpunct:Cr,minner:Cr},minner:{mord:Cr,mop:Cr,mbin:Xr,mrel:Jr,mopen:Cr,mpunct:Cr,minner:Cr}},un={mord:{mop:Cr},mop:{mord:Cr,mop:Cr},mbin:{},mrel:{},mopen:{},mclose:{mop:Cr},mpunct:{},minner:{mop:Cr}},si={},Pn={},an={};function dr(B){for(var l=B.type,d=B.names,h=B.props,m=B.handler,D=B.htmlBuilder,M=B.mathmlBuilder,pe={type:l,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:m},Ce=0;Ce<d.length;++Ce)si[d[Ce]]=pe;l&&(D&&(Pn[l]=D),M&&(an[l]=M))}function dn(B){var l=B.type,d=B.htmlBuilder,h=B.mathmlBuilder;dr({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:h})}var fn=function(l){var d=Wr(l,"ordgroup");return d?d.body:[l]},Fn=Ye.makeSpan,ci=["leftmost","mbin","mopen","mrel","mop","mpunct"],Jn=["rightmost","mrel","mclose","mpunct"],Cn={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},Nn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bn=function(l,d,h,m){m===void 0&&(m=[null,null]);for(var D=[],M=0;M<l.length;M++){var pe=tn(l[M],d);if(pe instanceof Bt){var Ce=pe.children;D.push.apply(D,Ce)}else D.push(pe)}if(!h)return D;var je=d;if(l.length===1){var dt=Wr(l[0],"sizing")||Wr(l[0],"styling");dt&&(dt.type==="sizing"?je=d.havingSize(dt.size):dt.type==="styling"&&(je=d.havingStyle(Cn[dt.style])))}var St=Fn([m[0]||"leftmost"],[],d),zt=Fn([m[1]||"rightmost"],[],d);return ti(D,function(rr,hr){var xr=hr.classes[0],Br=rr.classes[0];xr==="mbin"&&R.contains(Jn,Br)?hr.classes[0]="mord":Br==="mbin"&&R.contains(ci,xr)&&(rr.classes[0]="mord")},{node:St},zt),ti(D,function(rr,hr){var xr=$n(hr),Br=$n(rr),qr=xr&&Br?rr.hasClass("mtight")?un[xr][Br]:Zr[xr][Br]:null;if(qr)return Ye.makeGlue(qr,je)},{node:St},zt),D},ti=function B(l,d,h,m){m&&l.push(m);for(var D=0;D<l.length;D++){var M=l[D],pe=Kn(M);if(pe){B(pe.children,d,h);continue}if(M.classes[0]!=="mspace"){var Ce=d(M,h.node);Ce&&(h.insertAfter?h.insertAfter(Ce):(l.unshift(Ce),D++)),h.node=M,h.insertAfter=function(je){return function(dt){l.splice(je+1,0,dt),D++}}(D)}}m&&l.pop()},Kn=function(l){return l instanceof Bt||l instanceof fe?l:null},ri=function B(l,d){var h=Kn(l);if(h){var m=h.children;if(m.length){if(d==="right")return B(m[m.length-1],"right");if(d==="left")return B(m[0],"left")}}return l},$n=function(l,d){return l?(d&&(l=ri(l,d)),Nn[l.classes[0]]||null):null},qn=function(l,d){var h=["nulldelimiter"].concat(l.baseSizingClasses());return Fn(d.concat(h))},tn=function(l,d,h){if(!l)return Fn();if(Pn[l.type]){var m=Pn[l.type](l,d);if(h&&d.size!==h.size){m=Fn(d.sizingClasses(h),[m],d);var D=d.sizeMultiplier/h.sizeMultiplier;m.height*=D,m.depth*=D}return m}else throw new se("Got group of unknown type: '"+l.type+"'")};function di(B,l){var d=Fn(["base"],B,l),h=Fn(["strut"]);return h.style.height=d.height+d.depth+"em",h.style.verticalAlign=-d.depth+"em",d.children.unshift(h),d}function vi(B,l){var d=null;B.length===1&&B[0].type==="tag"&&(d=B[0].tag,B=B[0].body);for(var h=bn(B,l,!0),m=[],D=[],M=0;M<h.length;M++)if(D.push(h[M]),h[M].hasClass("mbin")||h[M].hasClass("mrel")||h[M].hasClass("allowbreak")){for(var pe=!1;M<h.length-1&&h[M+1].hasClass("mspace")&&!h[M+1].hasClass("newline");)M++,D.push(h[M]),h[M].hasClass("nobreak")&&(pe=!0);pe||(m.push(di(D,l)),D=[])}else h[M].hasClass("newline")&&(D.pop(),D.length>0&&(m.push(di(D,l)),D=[]),m.push(h[M]));D.length>0&&m.push(di(D,l));var Ce;d&&(Ce=di(bn(d,l,!0)),Ce.classes=["tag"],m.push(Ce));var je=Fn(["katex-html"],m);if(je.setAttribute("aria-hidden","true"),Ce){var dt=Ce.children[0];dt.style.height=je.height+je.depth+"em",dt.style.verticalAlign=-je.depth+"em"}return je}function Kr(B){return new Bt(B)}var Ur=function(){function B(d,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=h||[]}var l=B.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.getAttribute=function(h){return this.attributes[h]},l.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&h.setAttribute(m,this.attributes[m]);for(var D=0;D<this.children.length;D++)h.appendChild(this.children[D].toNode());return h},l.toMarkup=function(){var h="<"+this.type;for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+'="',h+=R.escape(this.attributes[m]),h+='"');h+=">";for(var D=0;D<this.children.length;D++)h+=this.children[D].toMarkup();return h+="</"+this.type+">",h},l.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},B}(),pn=function(){function B(d){this.text=void 0,this.text=d}var l=B.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return R.escape(this.toText())},l.toText=function(){return this.text},B}(),Yr=function(){function B(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=B.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},B}(),Vt={MathNode:Ur,TextNode:pn,SpaceNode:Yr,newDocumentFragment:Kr},gn=function(l,d,h){return It[d][l]&&It[d][l].replace&&l.charCodeAt(0)!==55349&&!(Zt.hasOwnProperty(l)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(l=It[d][l].replace),new Vt.TextNode(l)},Gn=function(l){return l.length===1?l[0]:new Vt.MathNode("mrow",l)},Vn=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var h=d.font;if(!h||h==="mathnormal")return null;var m=l.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var D=l.text;if(R.contains(["\\imath","\\jmath"],D))return null;It[m][D]&&It[m][D].replace&&(D=It[m][D].replace);var M=Ye.fontMap[h].fontName;return kt(D,M,m)?Ye.fontMap[h].variant:null},wn=function(l,d,h){if(l.length===1){var m=hn(l[0],d);return h&&m instanceof Ur&&m.type==="mo"&&(m.setAttribute("lspace","0em"),m.setAttribute("rspace","0em")),[m]}for(var D=[],M,pe=0;pe<l.length;pe++){var Ce=hn(l[pe],d);if(Ce instanceof Ur&&M instanceof Ur){if(Ce.type==="mtext"&&M.type==="mtext"&&Ce.getAttribute("mathvariant")===M.getAttribute("mathvariant")){var je;(je=M.children).push.apply(je,Ce.children);continue}else if(Ce.type==="mn"&&M.type==="mn"){var dt;(dt=M.children).push.apply(dt,Ce.children);continue}else if(Ce.type==="mi"&&Ce.children.length===1&&M.type==="mn"){var St=Ce.children[0];if(St instanceof pn&&St.text==="."){var zt;(zt=M.children).push.apply(zt,Ce.children);continue}}else if(M.type==="mi"&&M.children.length===1){var rr=M.children[0];if(rr instanceof pn&&rr.text==="\u0338"&&(Ce.type==="mo"||Ce.type==="mi"||Ce.type==="mn")){var hr=Ce.children[0];hr instanceof pn&&hr.text.length>0&&(hr.text=hr.text.slice(0,1)+"\u0338"+hr.text.slice(1),D.pop())}}}D.push(Ce),M=Ce}return D},In=function(l,d,h){return Gn(wn(l,d,h))},hn=function(l,d){if(!l)return new Vt.MathNode("mrow");if(an[l.type]){var h=an[l.type](l,d);return h}else throw new se("Got group of unknown type: '"+l.type+"'")};function Mn(B,l,d,h){var m=wn(B,d),D;m.length===1&&m[0]instanceof Ur&&R.contains(["mrow","mtable"],m[0].type)?D=m[0]:D=new Vt.MathNode("mrow",m);var M=new Vt.MathNode("annotation",[new Vt.TextNode(l)]);M.setAttribute("encoding","application/x-tex");var pe=new Vt.MathNode("semantics",[D,M]),Ce=new Vt.MathNode("math",[pe]);Ce.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var je=h?"katex":"katex-mathml";return Ye.makeSpan([je],[Ce])}var ni=function(l){return new Nt({style:l.displayMode?g.DISPLAY:g.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},ai=function(l,d){if(d.displayMode){var h=["katex-display"];d.leqno&&h.push("leqno"),d.fleqn&&h.push("fleqn"),l=Ye.makeSpan(h,[l])}return l},Hn=function(l,d,h){var m=ni(h),D;if(h.output==="mathml")return Mn(l,d,m,!0);if(h.output==="html"){var M=vi(l,m);D=Ye.makeSpan(["katex"],[M])}else{var pe=Mn(l,d,m,!1),Ce=vi(l,m);D=Ye.makeSpan(["katex"],[pe,Ce])}return ai(D,h)},ei=function(l,d,h){var m=ni(h),D=vi(l,m),M=Ye.makeSpan(["katex"],[D]);return ai(M,h)},Mi=Hn,Hi={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 d=new Vt.MathNode("mo",[new Vt.TextNode(Hi[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},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]},Li=function(l){return l.type==="ordgroup"?l.body.length:1},ki=function(l,d){function h(){var Ce=4e5,je=l.label.substr(1);if(R.contains(["widehat","widecheck","widetilde","utilde"],je)){var dt=l,St=Li(dt.base),zt,rr,hr;if(St>5)je==="widehat"||je==="widecheck"?(zt=420,Ce=2364,hr=.42,rr=je+"4"):(zt=312,Ce=2340,hr=.34,rr="tilde4");else{var xr=[1,1,2,2,3,3][St];je==="widehat"||je==="widecheck"?(Ce=[0,1062,2364,2364,2364][xr],zt=[0,239,300,360,420][xr],hr=[0,.24,.3,.3,.36,.42][xr],rr=je+xr):(Ce=[0,600,1033,2339,2340][xr],zt=[0,260,286,306,312][xr],hr=[0,.26,.286,.3,.306,.34][xr],rr="tilde"+xr)}var Br=new be(rr),qr=new he([Br],{width:"100%",height:hr+"em",viewBox:"0 0 "+Ce+" "+zt,preserveAspectRatio:"none"});return{span:Ye.makeSvgSpan([],[qr],d),minWidth:0,height:hr}}else{var rn=[],en=Yi[je],Ln=en[0],kn=en[1],Un=en[2],jn=Un/1e3,Yn=Ln.length,mi,ui;if(Yn===1){var Dn=en[3];mi=["hide-tail"],ui=[Dn]}else if(Yn===2)mi=["halfarrow-left","halfarrow-right"],ui=["xMinYMin","xMaxYMin"];else if(Yn===3)mi=["brace-left","brace-center","brace-right"],ui=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Yn+" children.");for(var Ti=0;Ti<Yn;Ti++){var $i=new be(Ln[Ti]),Ii=new he([$i],{width:"400em",height:jn+"em",viewBox:"0 0 "+Ce+" "+Un,preserveAspectRatio:ui[Ti]+" slice"}),pi=Ye.makeSvgSpan([mi[Ti]],[Ii],d);if(Yn===1)return{span:pi,minWidth:kn,height:jn};pi.style.height=jn+"em",rn.push(pi)}return{span:Ye.makeSpan(["stretchy"],rn,d),minWidth:kn,height:jn}}}var m=h(),D=m.span,M=m.minWidth,pe=m.height;return D.height=pe,D.style.height=pe+"em",M>0&&(D.style.minWidth=M+"em"),D},kr=function(l,d,h,m){var D,M=l.height+l.depth+2*h;if(/fbox|color/.test(d)){if(D=Ye.makeSpan(["stretchy",d],[],m),d==="fbox"){var pe=m.color&&m.getColor();pe&&(D.style.borderColor=pe)}}else{var Ce=[];/^[bx]cancel$/.test(d)&&Ce.push(new Oe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Ce.push(new Oe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var je=new he(Ce,{width:"100%",height:M+"em"});D=Ye.makeSvgSpan([],[je],m)}return D.height=M,D.style.height=M+"em",D},Sr={encloseSpan:kr,mathMLnode:Si,svgSpan:ki},mn=function(l,d){var h,m,D=Wr(l,"supsub"),M;D?(m=wr(D.base,"accent"),h=m.base,D.base=h,M=Qe(tn(D,d)),D.base=m):(m=wr(l,"accent"),h=m.base);var pe=tn(h,d.havingCrampedStyle()),Ce=m.isShifty&&R.isCharacterBox(h),je=0;if(Ce){var dt=R.getBaseElem(h),St=tn(dt,d.havingCrampedStyle());je=Fe(St).skew}var zt=Math.min(pe.height,d.fontMetrics().xHeight),rr;if(m.isStretchy)rr=Sr.svgSpan(m,d),rr=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pe},{type:"elem",elem:rr,wrapperClasses:["svg-align"],wrapperStyle:je>0?{width:"calc(100% - "+2*je+"em)",marginLeft:2*je+"em"}:void 0}]},d);else{var hr,xr;m.label==="\\vec"?(hr=Ye.staticSvg("vec",d),xr=Ye.svgData.vec[1]):(hr=Ye.makeOrd({mode:m.mode,text:m.label},d,"textord"),hr=Fe(hr),hr.italic=0,xr=hr.width),rr=Ye.makeSpan(["accent-body"],[hr]);var Br=m.label==="\\textcircled";Br&&(rr.classes.push("accent-full"),zt=pe.height);var qr=je;Br||(qr-=xr/2),rr.style.left=qr+"em",m.label==="\\textcircled"&&(rr.style.top=".2em"),rr=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pe},{type:"kern",size:-zt},{type:"elem",elem:rr}]},d)}var rn=Ye.makeSpan(["mord","accent"],[rr],d);return M?(M.children[0]=rn,M.height=Math.max(rn.height,M.height),M.classes[0]="mord",M):rn},zn=function(l,d){var h=l.isStretchy?Sr.mathMLnode(l.label):new Vt.MathNode("mo",[gn(l.label,l.mode)]),m=new Vt.MathNode("mover",[hn(l.base,d),h]);return m.setAttribute("accent","true"),m},yn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(B){return"\\"+B}).join("|"));dr({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(l,d){var h=d[0],m=!yn.test(l.funcName),D=!m||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:m,isShifty:D,base:h}},htmlBuilder:mn,mathmlBuilder:zn}),dr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:mn,mathmlBuilder:zn}),dr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];return{type:"accentUnder",mode:h.mode,label:m,base:D}},htmlBuilder:function(l,d){var h=tn(l.base,d),m=Sr.svgSpan(l,d),D=l.label==="\\utilde"?.12:0,M=Ye.makeVList({positionType:"bottom",positionData:m.height+D,children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:D},{type:"elem",elem:h}]},d);return Ye.makeSpan(["mord","accentunder"],[M],d)},mathmlBuilder:function(l,d){var h=Sr.mathMLnode(l.label),m=new Vt.MathNode("munder",[hn(l.base,d),h]);return m.setAttribute("accentunder","true"),m}});var hi=function(l){var d=new Vt.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};dr({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var m=l.parser,D=l.funcName;return{type:"xArrow",mode:m.mode,label:D,body:d[0],below:h[0]}},htmlBuilder:function(l,d){var h=d.style,m=d.havingStyle(h.sup()),D=Ye.wrapFragment(tn(l.body,m,d),d);D.classes.push("x-arrow-pad");var M;l.below&&(m=d.havingStyle(h.sub()),M=Ye.wrapFragment(tn(l.below,m,d),d),M.classes.push("x-arrow-pad"));var pe=Sr.svgSpan(l,d),Ce=-d.fontMetrics().axisHeight+.5*pe.height,je=-d.fontMetrics().axisHeight-.5*pe.height-.111;(D.depth>.25||l.label==="\\xleftequilibrium")&&(je-=D.depth);var dt;if(M){var St=-d.fontMetrics().axisHeight+M.height+.5*pe.height+.111;dt=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:je},{type:"elem",elem:pe,shift:Ce},{type:"elem",elem:M,shift:St}]},d)}else dt=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:je},{type:"elem",elem:pe,shift:Ce}]},d);return dt.children[0].children[0].children[1].classes.push("svg-align"),Ye.makeSpan(["mrel","x-arrow"],[dt],d)},mathmlBuilder:function(l,d){var h=Sr.mathMLnode(l.label),m;if(l.body){var D=hi(hn(l.body,d));if(l.below){var M=hi(hn(l.below,d));m=new Vt.MathNode("munderover",[h,M,D])}else m=new Vt.MathNode("mover",[h,D])}else if(l.below){var pe=hi(hn(l.below,d));m=new Vt.MathNode("munder",[h,pe])}else m=hi(),m=new Vt.MathNode("mover",[h,m]);return m}}),dr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var h=l.parser,m=wr(d[0],"ordgroup"),D=m.body,M="",pe=0;pe<D.length;pe++){var Ce=wr(D[pe],"textord");M+=Ce.text}var je=parseInt(M);if(isNaN(je))throw new se("\\@char has non-numeric argument "+M);return{type:"textord",mode:h.mode,text:String.fromCharCode(je)}}});var Wi=function(l,d){var h=bn(l.body,d.withColor(l.color),!1);return Ye.makeFragment(h)},Bi=function(l,d){var h=wn(l.body,d.withColor(l.color)),m=new Vt.MathNode("mstyle",h);return m.setAttribute("mathcolor",l.color),m};dr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var h=l.parser,m=wr(d[0],"color-token").color,D=d[1];return{type:"color",mode:h.mode,color:m,body:fn(D)}},htmlBuilder:Wi,mathmlBuilder:Bi}),dr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var h=l.parser,m=l.breakOnTokenText,D=wr(d[0],"color-token").color;h.gullet.macros.set("\\current@color",D);var M=h.parseExpression(!0,m);return{type:"color",mode:h.mode,color:D,body:M}},htmlBuilder:Wi,mathmlBuilder:Bi}),dr({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,h){var m=l.parser,D=l.funcName,M=h[0],pe=D==="\\cr",Ce=!1;return pe||(m.settings.displayMode&&m.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Ce=!1:Ce=!0),{type:"cr",mode:m.mode,newLine:Ce,newRow:pe,size:M&&wr(M,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new se("\\cr valid only within a tabular/array environment");var h=Ye.makeSpan(["mspace"],[],d);return l.newLine&&(h.classes.push("newline"),l.size&&(h.style.marginTop=We(l.size,d)+"em")),h},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mspace");return l.newLine&&(h.setAttribute("linebreak","newline"),l.size&&h.setAttribute("height",We(l.size,d)+"em")),h}});var Ei=function(l,d,h){var m=It.math[l]&&It.math[l].replace,D=kt(m||l,d,h);if(!D)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return D},vs=function(l,d,h,m){var D=h.havingBaseStyle(d),M=Ye.makeSpan(m.concat(D.sizingClasses(h)),[l],h),pe=D.sizeMultiplier/h.sizeMultiplier;return M.height*=pe,M.depth*=pe,M.maxFontSize=D.sizeMultiplier,M},Ds=function(l,d,h){var m=d.havingBaseStyle(h),D=(1-d.sizeMultiplier/m.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=D+"em",l.height-=D,l.depth+=D},Rs=function(l,d,h,m,D,M){var pe=Ye.makeSymbol(l,"Main-Regular",D,m),Ce=vs(pe,d,m,M);return h&&Ds(Ce,m,d),Ce},ns=function(l,d,h,m){return Ye.makeSymbol(l,"Size"+d+"-Regular",h,m)},Is=function(l,d,h,m,D,M){var pe=ns(l,d,D,m),Ce=vs(Ye.makeSpan(["delimsizing","size"+d],[pe],m),g.TEXT,m,M);return h&&Ds(Ce,m,g.TEXT),Ce},Ai=function(l,d,h){var m;d==="Size1-Regular"?m="delim-size1":m="delim-size4";var D=Ye.makeSpan(["delimsizinginner",m],[Ye.makeSpan([],[Ye.makeSymbol(l,d,h)])]);return{type:"elem",elem:D}},Xn={type:"kern",size:-.005},ys=function(l,d,h,m,D,M){var pe,Ce,je,dt;pe=je=dt=l,Ce=null;var St="Size1-Regular";l==="\\uparrow"?je=dt="\u23D0":l==="\\Uparrow"?je=dt="\u2016":l==="\\downarrow"?pe=je="\u23D0":l==="\\Downarrow"?pe=je="\u2016":l==="\\updownarrow"?(pe="\\uparrow",je="\u23D0",dt="\\downarrow"):l==="\\Updownarrow"?(pe="\\Uparrow",je="\u2016",dt="\\Downarrow"):l==="["||l==="\\lbrack"?(pe="\u23A1",je="\u23A2",dt="\u23A3",St="Size4-Regular"):l==="]"||l==="\\rbrack"?(pe="\u23A4",je="\u23A5",dt="\u23A6",St="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(je=pe="\u23A2",dt="\u23A3",St="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(pe="\u23A1",je=dt="\u23A2",St="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(je=pe="\u23A5",dt="\u23A6",St="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(pe="\u23A4",je=dt="\u23A5",St="Size4-Regular"):l==="("||l==="\\lparen"?(pe="\u239B",je="\u239C",dt="\u239D",St="Size4-Regular"):l===")"||l==="\\rparen"?(pe="\u239E",je="\u239F",dt="\u23A0",St="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(pe="\u23A7",Ce="\u23A8",dt="\u23A9",je="\u23AA",St="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(pe="\u23AB",Ce="\u23AC",dt="\u23AD",je="\u23AA",St="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(pe="\u23A7",dt="\u23A9",je="\u23AA",St="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(pe="\u23AB",dt="\u23AD",je="\u23AA",St="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(pe="\u23A7",dt="\u23AD",je="\u23AA",St="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(pe="\u23AB",dt="\u23A9",je="\u23AA",St="Size4-Regular");var zt=Ei(pe,St,D),rr=zt.height+zt.depth,hr=Ei(je,St,D),xr=hr.height+hr.depth,Br=Ei(dt,St,D),qr=Br.height+Br.depth,rn=0,en=1;if(Ce!==null){var Ln=Ei(Ce,St,D);rn=Ln.height+Ln.depth,en=2}var kn=rr+qr+rn,Un=Math.max(0,Math.ceil((d-kn)/(en*xr))),jn=kn+Un*en*xr,Yn=m.fontMetrics().axisHeight;h&&(Yn*=m.sizeMultiplier);var mi=jn/2-Yn,ui=(Un+1)*.005-xr,Dn=[];if(Dn.push(Ai(dt,St,D)),Ce===null)for(var Ti=0;Ti<Un;Ti++)Dn.push(Xn),Dn.push(Ai(je,St,D));else{for(var $i=0;$i<Un;$i++)Dn.push(Xn),Dn.push(Ai(je,St,D));Dn.push({type:"kern",size:ui}),Dn.push(Ai(je,St,D)),Dn.push(Xn),Dn.push(Ai(Ce,St,D));for(var Ii=0;Ii<Un;Ii++)Dn.push(Xn),Dn.push(Ai(je,St,D))}Dn.push({type:"kern",size:ui}),Dn.push(Ai(je,St,D)),Dn.push(Xn),Dn.push(Ai(pe,St,D));var pi=m.havingBaseStyle(g.TEXT),ji=Ye.makeVList({positionType:"bottom",positionData:mi,children:Dn},pi);return vs(Ye.makeSpan(["delimsizing","mult"],[ji],pi),g.TEXT,m,M)},is=80,_i=.08,Ci=function(l,d,h,m,D){var M=Yt(l,m,h),pe=new be(l,M),Ce=new he([pe],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Ye.makeSvgSpan(["hide-tail"],[Ce],D)},Qs=function(l,d){var h=d.havingBaseSizing(),m=Ls("\\surd",l*h.sizeMultiplier,Ni,h),D=h.sizeMultiplier,M=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),pe,Ce=0,je=0,dt=0,St;return m.type==="small"?(dt=1e3+1e3*M+is,l<1?D=1:l<1.4&&(D=.7),Ce=(1+M+_i)/D,je=(1+M)/D,pe=Ci("sqrtMain",Ce,dt,M,d),pe.style.minWidth="0.853em",St=.833/D):m.type==="large"?(dt=(1e3+is)*ss[m.size],je=(ss[m.size]+M)/D,Ce=(ss[m.size]+M+_i)/D,pe=Ci("sqrtSize"+m.size,Ce,dt,M,d),pe.style.minWidth="1.02em",St=1/D):(Ce=l+M+_i,je=l+M,dt=Math.floor(1e3*l+M)+is,pe=Ci("sqrtTall",Ce,dt,M,d),pe.style.minWidth="0.742em",St=1.056),pe.height=je,pe.style.height=Ce+"em",{span:pe,advanceWidth:St,ruleWidth:(d.fontMetrics().sqrtRuleThickness+M)*D}},Di=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Js=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],_s=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ss=[0,1.2,1.8,2.4,3],qs=function(l,d,h,m,D){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),R.contains(Di,l)||R.contains(_s,l))return Is(l,d,!1,h,m,D);if(R.contains(Js,l))return ys(l,ss[d],!1,h,m,D);throw new se("Illegal delimiter: '"+l+"'")},Qn=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],Ni=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],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.")},Ls=function(l,d,h,m){for(var D=Math.min(2,3-m.style.size),M=D;M<h.length&&h[M].type!=="stack";M++){var pe=Ei(l,Ki(h[M]),"math"),Ce=pe.height+pe.depth;if(h[M].type==="small"){var je=m.havingBaseStyle(h[M].style);Ce*=je.sizeMultiplier}if(Ce>d)return h[M]}return h[h.length-1]},Tn=function(l,d,h,m,D,M){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var pe;R.contains(_s,l)?pe=Qn:R.contains(Di,l)?pe=Ni:pe=Xi;var Ce=Ls(l,d,pe,m);return Ce.type==="small"?Rs(l,Ce.style,h,m,D,M):Ce.type==="large"?Is(l,Ce.size,h,m,D,M):ys(l,d,h,m,D,M)},as=function(l,d,h,m,D,M){var pe=m.fontMetrics().axisHeight*m.sizeMultiplier,Ce=901,je=5/m.fontMetrics().ptPerEm,dt=Math.max(d-pe,h+pe),St=Math.max(dt/500*Ce,2*dt-je);return Tn(l,St,!0,m,D,M)},fi={sqrtImage:Qs,sizedDelim:qs,customSizedDelim:Tn,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(B,l){var d=Ar(B);if(d&&R.contains(ea,d.text))return d;throw new se("Invalid delimiter: '"+(d?d.text:JSON.stringify(B))+"' after '"+l.funcName+"'",B)}dr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Qi[l.funcName].size,mclass:Qi[l.funcName].mclass,delim:h.text}},htmlBuilder:function(l,d){return l.delim==="."?Ye.makeSpan([l.mclass]):fi.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(gn(l.delim,l.mode));var h=new Vt.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function ls(B){if(!B.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}dr({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var h=l.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new se("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:os(d[0],l).text,color:h}}}),dr({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l),m=l.parser;++m.leftrightDepth;var D=m.parseExpression(!1);--m.leftrightDepth,m.expect("\\right",!1);var M=wr(m.parseFunction(),"leftright-right");return{type:"leftright",mode:m.mode,body:D,left:h.text,right:M.delim,rightColor:M.color}},htmlBuilder:function(l,d){ls(l);for(var h=bn(l.body,d,!0,["mopen","mclose"]),m=0,D=0,M=!1,pe=0;pe<h.length;pe++)h[pe].isMiddle?M=!0:(m=Math.max(h[pe].height,m),D=Math.max(h[pe].depth,D));m*=d.sizeMultiplier,D*=d.sizeMultiplier;var Ce;if(l.left==="."?Ce=qn(d,["mopen"]):Ce=fi.leftRightDelim(l.left,m,D,d,l.mode,["mopen"]),h.unshift(Ce),M)for(var je=1;je<h.length;je++){var dt=h[je],St=dt.isMiddle;St&&(h[je]=fi.leftRightDelim(St.delim,m,D,St.options,l.mode,[]))}var zt;if(l.right===".")zt=qn(d,["mclose"]);else{var rr=l.rightColor?d.withColor(l.rightColor):d;zt=fi.leftRightDelim(l.right,m,D,rr,l.mode,["mclose"])}return h.push(zt),Ye.makeSpan(["minner"],h,d)},mathmlBuilder:function(l,d){ls(l);var h=wn(l.body,d);if(l.left!=="."){var m=new Vt.MathNode("mo",[gn(l.left,l.mode)]);m.setAttribute("fence","true"),h.unshift(m)}if(l.right!=="."){var D=new Vt.MathNode("mo",[gn(l.right,l.mode)]);D.setAttribute("fence","true"),l.rightColor&&D.setAttribute("mathcolor",l.rightColor),h.push(D)}return Gn(h)}}),dr({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l);if(!l.parser.leftrightDepth)throw new se("\\middle without preceding \\left",h);return{type:"middle",mode:l.parser.mode,delim:h.text}},htmlBuilder:function(l,d){var h;if(l.delim===".")h=qn(d,[]);else{h=fi.sizedDelim(l.delim,1,d,l.mode,[]);var m={delim:l.delim,options:d};h.isMiddle=m}return h},mathmlBuilder:function(l,d){var h=l.delim==="\\vert"||l.delim==="|"?gn("|","text"):gn(l.delim,l.mode),m=new Vt.MathNode("mo",[h]);return m.setAttribute("fence","true"),m.setAttribute("lspace","0.05em"),m.setAttribute("rspace","0.05em"),m}});var us=function(l,d){var h=Ye.wrapFragment(tn(l.body,d),d),m=l.label.substr(1),D=d.sizeMultiplier,M,pe=0,Ce=R.isCharacterBox(l.body);if(m==="sout")M=Ye.makeSpan(["stretchy","sout"]),M.height=d.fontMetrics().defaultRuleThickness/D,pe=-.5*d.fontMetrics().xHeight;else{/cancel/.test(m)?Ce||h.classes.push("cancel-pad"):h.classes.push("boxpad");var je=0,dt=0;/box/.test(m)?(dt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),je=d.fontMetrics().fboxsep+(m==="colorbox"?0:dt)):je=Ce?.2:0,M=Sr.encloseSpan(h,m,je,d),/fbox|boxed|fcolorbox/.test(m)&&(M.style.borderStyle="solid",M.style.borderWidth=dt+"em"),pe=h.depth+je,l.backgroundColor&&(M.style.backgroundColor=l.backgroundColor,l.borderColor&&(M.style.borderColor=l.borderColor))}var St;return l.backgroundColor?St=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:pe},{type:"elem",elem:h,shift:0}]},d):St=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:M,shift:pe,wrapperClasses:/cancel/.test(m)?["svg-align"]:[]}]},d),/cancel/.test(m)&&(St.height=h.height,St.depth=h.depth),/cancel/.test(m)&&!Ce?Ye.makeSpan(["mord","cancel-lap"],[St],d):Ye.makeSpan(["mord"],[St],d)},bs=function(l,d){var h=0,m=new Vt.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[hn(l.body,d)]);switch(l.label){case"\\cancel":m.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":m.setAttribute("notation","downdiagonalstrike");break;case"\\sout":m.setAttribute("notation","horizontalstrike");break;case"\\fbox":m.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,m.setAttribute("width","+"+2*h+"pt"),m.setAttribute("height","+"+2*h+"pt"),m.setAttribute("lspace",h+"pt"),m.setAttribute("voffset",h+"pt"),l.label==="\\fcolorbox"){var D=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);m.setAttribute("style","border: "+D+"em solid "+String(l.borderColor))}break;case"\\xcancel":m.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&m.setAttribute("mathbackground",l.backgroundColor),m};dr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,h){var m=l.parser,D=l.funcName,M=wr(d[0],"color-token").color,pe=d[1];return{type:"enclose",mode:m.mode,label:D,backgroundColor:M,body:pe}},htmlBuilder:us,mathmlBuilder:bs}),dr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,h){var m=l.parser,D=l.funcName,M=wr(d[0],"color-token").color,pe=wr(d[1],"color-token").color,Ce=d[2];return{type:"enclose",mode:m.mode,label:D,backgroundColor:pe,borderColor:M,body:Ce}},htmlBuilder:us,mathmlBuilder:bs}),dr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:d[0]}}}),dr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,h){var m=l.parser,D=l.funcName,M=d[0];return{type:"enclose",mode:m.mode,label:D,body:M}},htmlBuilder:us,mathmlBuilder:bs});var ks={};function wi(B){for(var l=B.type,d=B.names,h=B.props,m=B.handler,D=B.htmlBuilder,M=B.mathmlBuilder,pe={type:l,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:m},Ce=0;Ce<d.length;++Ce)ks[d[Ce]]=pe;D&&(Pn[l]=D),M&&(an[l]=M)}function xs(B){var l=[];B.consumeSpaces();for(var d=B.fetch().text;d==="\\hline"||d==="\\hdashline";)B.consume(),l.push(d==="\\hdashline"),B.consumeSpaces(),d=B.fetch().text;return l}function Sn(B,l,d){var h=l.hskipBeforeAndAfter,m=l.addJot,D=l.cols,M=l.arraystretch,pe=l.colSeparationType;if(B.gullet.beginGroup(),B.gullet.macros.set("\\\\","\\cr"),!M){var Ce=B.gullet.expandMacroAsText("\\arraystretch");if(Ce==null)M=1;else if(M=parseFloat(Ce),!M||M<0)throw new se("Invalid \\arraystretch: "+Ce)}B.gullet.beginGroup();var je=[],dt=[je],St=[],zt=[];for(zt.push(xs(B));;){var rr=B.parseExpression(!1,"\\cr");B.gullet.endGroup(),B.gullet.beginGroup(),rr={type:"ordgroup",mode:B.mode,body:rr},d&&(rr={type:"styling",mode:B.mode,style:d,body:[rr]}),je.push(rr);var hr=B.fetch().text;if(hr==="&")B.consume();else if(hr==="\\end"){je.length===1&&rr.type==="styling"&&rr.body[0].body.length===0&&dt.pop(),zt.length<dt.length+1&&zt.push([]);break}else if(hr==="\\cr"){var xr=wr(B.parseFunction(),"cr");St.push(xr.size),zt.push(xs(B)),je=[],dt.push(je)}else throw new se("Expected & or \\\\ or \\cr or \\end",B.nextToken)}return B.gullet.endGroup(),B.gullet.endGroup(),{type:"array",mode:B.mode,addJot:m,arraystretch:M,body:dt,cols:D,rowGaps:St,hskipBeforeAndAfter:h,hLinesBeforeRow:zt,colSeparationType:pe}}function xn(B){return B.substr(0,1)==="d"?"display":"text"}var _n=function(l,d){var h,m,D=l.body.length,M=l.hLinesBeforeRow,pe=0,Ce=new Array(D),je=[],dt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),St=1/d.fontMetrics().ptPerEm,zt=5*St;if(l.colSeparationType&&l.colSeparationType==="small"){var rr=d.havingStyle(g.SCRIPT).sizeMultiplier;zt=.2778*(rr/d.sizeMultiplier)}var hr=12*St,xr=3*St,Br=l.arraystretch*hr,qr=.7*Br,rn=.3*Br,en=0;function Ln(va){for(var rs=0;rs<va.length;++rs)rs>0&&(en+=.25),je.push({pos:en,isDashed:va[rs]})}for(Ln(M[0]),h=0;h<l.body.length;++h){var kn=l.body[h],Un=qr,jn=rn;pe<kn.length&&(pe=kn.length);var Yn=new Array(kn.length);for(m=0;m<kn.length;++m){var mi=tn(kn[m],d);jn<mi.depth&&(jn=mi.depth),Un<mi.height&&(Un=mi.height),Yn[m]=mi}var ui=l.rowGaps[h],Dn=0;ui&&(Dn=We(ui,d),Dn>0&&(Dn+=rn,jn<Dn&&(jn=Dn),Dn=0)),l.addJot&&(jn+=xr),Yn.height=Un,Yn.depth=jn,en+=Un,Yn.pos=en,en+=jn+Dn,Ce[h]=Yn,Ln(M[h+1])}var Ti=en/2+d.fontMetrics().axisHeight,$i=l.cols||[],Ii=[],pi,ji;for(m=0,ji=0;m<pe||ji<$i.length;++m,++ji){for(var ii=$i[ji]||{},Oi=!0;ii.type==="separator";){if(Oi||(pi=Ye.makeSpan(["arraycolsep"],[]),pi.style.width=d.fontMetrics().doubleRuleSep+"em",Ii.push(pi)),ii.separator==="|"||ii.separator===":"){var to=ii.separator==="|"?"solid":"dashed",ms=Ye.makeSpan(["vertical-separator"],[],d);ms.style.height=en+"em",ms.style.borderRightWidth=dt+"em",ms.style.borderRightStyle=to,ms.style.margin="0 -"+dt/2+"em",ms.style.verticalAlign=-(en-Ti)+"em",Ii.push(ms)}else throw new se("Invalid separator type: "+ii.separator);ji++,ii=$i[ji]||{},Oi=!1}if(!(m>=pe)){var ps=void 0;(m>0||l.hskipBeforeAndAfter)&&(ps=R.deflt(ii.pregap,zt),ps!==0&&(pi=Ye.makeSpan(["arraycolsep"],[]),pi.style.width=ps+"em",Ii.push(pi)));var gs=[];for(h=0;h<D;++h){var Gs=Ce[h],Vs=Gs[m];if(Vs){var ts=Gs.pos-Ti;Vs.depth=Gs.depth,Vs.height=Gs.height,gs.push({type:"elem",elem:Vs,shift:ts})}}gs=Ye.makeVList({positionType:"individualShift",children:gs},d),gs=Ye.makeSpan(["col-align-"+(ii.align||"c")],[gs]),Ii.push(gs),(m<pe-1||l.hskipBeforeAndAfter)&&(ps=R.deflt(ii.postgap,zt),ps!==0&&(pi=Ye.makeSpan(["arraycolsep"],[]),pi.style.width=ps+"em",Ii.push(pi)))}}if(Ce=Ye.makeSpan(["mtable"],Ii),je.length>0){for(var Ma=Ye.makeLineSpan("hline",d,dt),ro=Ye.makeLineSpan("hdashline",d,dt),pa=[{type:"elem",elem:Ce,shift:0}];je.length>0;){var Zs=je.pop(),ga=Zs.pos-Ti;Zs.isDashed?pa.push({type:"elem",elem:ro,shift:ga}):pa.push({type:"elem",elem:Ma,shift:ga})}Ce=Ye.makeVList({positionType:"individualShift",children:pa},d)}return Ye.makeSpan(["mord"],[Ce],d)},Wn={c:"center ",l:"left ",r:"right "},Zn=function(l,d){var h=new Vt.MathNode("mtable",l.body.map(function(en){return new Vt.MathNode("mtr",en.map(function(Ln){return new Vt.MathNode("mtd",[hn(Ln,d)])}))})),m=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);h.setAttribute("rowspacing",m+"em");var D="",M="";if(l.cols){var pe=l.cols,Ce="",je=!1,dt=0,St=pe.length;pe[0].type==="separator"&&(D+="top ",dt=1),pe[pe.length-1].type==="separator"&&(D+="bottom ",St-=1);for(var zt=dt;zt<St;zt++)pe[zt].type==="align"?(M+=Wn[pe[zt].align],je&&(Ce+="none "),je=!0):pe[zt].type==="separator"&&je&&(Ce+=pe[zt].separator==="|"?"solid ":"dashed ",je=!1);h.setAttribute("columnalign",M.trim()),/[sd]/.test(Ce)&&h.setAttribute("columnlines",Ce.trim())}if(l.colSeparationType==="align"){for(var rr=l.cols||[],hr="",xr=1;xr<rr.length;xr++)hr+=xr%2?"0em ":"1em ";h.setAttribute("columnspacing",hr.trim())}else l.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var Br="",qr=l.hLinesBeforeRow;D+=qr[0].length>0?"left ":"",D+=qr[qr.length-1].length>0?"right ":"";for(var rn=1;rn<qr.length-1;rn++)Br+=qr[rn].length===0?"none ":qr[rn][0]?"dashed ":"solid ";return/[sd]/.test(Br)&&h.setAttribute("rowlines",Br.trim()),D!==""&&(h=new Vt.MathNode("menclose",[h]),h.setAttribute("notation",D.trim())),l.arraystretch&&l.arraystretch<1&&(h=new Vt.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Ji=function(l,d){var h=[],m=Sn(l.parser,{cols:h,addJot:!0},"display"),D,M=0,pe={type:"ordgroup",mode:l.mode,body:[]},Ce=Wr(d[0],"ordgroup");if(Ce){for(var je="",dt=0;dt<Ce.body.length;dt++){var St=wr(Ce.body[dt],"textord");je+=St.text}D=Number(je),M=D*2}var zt=!M;m.body.forEach(function(Br){for(var qr=1;qr<Br.length;qr+=2){var rn=wr(Br[qr],"styling"),en=wr(rn.body[0],"ordgroup");en.body.unshift(pe)}if(zt)M<Br.length&&(M=Br.length);else{var Ln=Br.length/2;if(D<Ln)throw new se("Too many math in a row: "+("expected "+D+", but got "+Ln),Br[0])}});for(var rr=0;rr<M;++rr){var hr="r",xr=0;rr%2===1?hr="l":rr>0&&zt&&(xr=1),h[rr]={type:"align",align:hr,pregap:xr,postgap:0}}return m.colSeparationType=zt?"align":"alignat",m};wi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var h=Ar(d[0]),m=h?[d[0]]:wr(d[0],"ordgroup").body,D=m.map(function(pe){var Ce=En(pe),je=Ce.text;if("lcr".indexOf(je)!==-1)return{type:"align",align:je};if(je==="|")return{type:"separator",separator:"|"};if(je===":")return{type:"separator",separator:":"};throw new se("Unknown column alignment: "+je,pe)}),M={cols:D,hskipBeforeAndAfter:!0};return Sn(l.parser,M,xn(l.envName))},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],h={hskipBeforeAndAfter:!1},m=Sn(l.parser,h,xn(l.envName));return d?{type:"leftright",mode:l.mode,body:[m],left:d[0],right:d[1],rightColor:void 0}:m},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},h=Sn(l.parser,d,"script");return h.colSeparationType="small",h},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var h=Ar(d[0]),m=h?[d[0]]:wr(d[0],"ordgroup").body,D=m.map(function(pe){var Ce=En(pe),je=Ce.text;if("lc".indexOf(je)!==-1)return{type:"align",align:je};throw new se("Unknown column alignment: "+je,pe)});if(D.length>1)throw new se("{subarray} can contain only one column");var M={cols:D,hskipBeforeAndAfter:!1,arraystretch:.5};if(M=Sn(l.parser,M,"script"),M.body[0].length>1)throw new se("{subarray} can contain only one column");return M},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Sn(l.parser,d,xn(l.envName));return{type:"leftright",mode:l.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["aligned"],props:{numArgs:0},handler:Ji,htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Sn(l.parser,d,"display")},htmlBuilder:_n,mathmlBuilder:Zn}),wi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ji,htmlBuilder:_n,mathmlBuilder:Zn}),dr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new se(l.funcName+" valid only within array environment")}});var Es=ks,Os=Es;dr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];if(D.type!=="ordgroup")throw new se("Invalid environment name",D);for(var M="",pe=0;pe<D.body.length;++pe)M+=wr(D.body[pe],"textord").text;if(m==="\\begin"){if(!Os.hasOwnProperty(M))throw new se("No such environment: "+M,D);var Ce=Os[M],je=h.parseArguments("\\begin{"+M+"}",Ce),dt=je.args,St=je.optArgs,zt={mode:h.mode,envName:M,parser:h},rr=Ce.handler(zt,dt,St);h.expect("\\end",!1);var hr=h.nextToken,xr=wr(h.parseFunction(),"environment");if(xr.name!==M)throw new se("Mismatch: \\begin{"+M+"} matched by \\end{"+xr.name+"}",hr);return rr}return{type:"environment",mode:h.mode,name:M,nameGroup:D}}});var Ps=Ye.makeSpan;function qi(B,l){var d=bn(B.body,l,!0);return Ps([B.mclass],d,l)}function Gi(B,l){var d,h=wn(B.body,l);return B.mclass==="minner"?Vt.newDocumentFragment(h):(B.mclass==="mord"?B.isCharacterBox?(d=h[0],d.type="mi"):d=new Vt.MathNode("mi",h):(B.isCharacterBox?(d=h[0],d.type="mo"):d=new Vt.MathNode("mo",h),B.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):B.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(B.mclass==="mopen"||B.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}dr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];return{type:"mclass",mode:h.mode,mclass:"m"+m.substr(5),body:fn(D),isCharacterBox:R.isCharacterBox(D)}},htmlBuilder:qi,mathmlBuilder:Gi});var qt=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};dr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var h=l.parser;return{type:"mclass",mode:h.mode,mclass:qt(d[0]),body:[d[1]],isCharacterBox:R.isCharacterBox(d[1])}}}),dr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[1],M=d[0],pe;m!=="\\stackrel"?pe=qt(D):pe="mrel";var Ce={type:"op",mode:D.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:m!=="\\stackrel",body:fn(D)},je={type:"supsub",mode:M.mode,base:Ce,sup:m==="\\underset"?null:M,sub:m==="\\underset"?M:null};return{type:"mclass",mode:h.mode,mclass:pe,body:[je],isCharacterBox:R.isCharacterBox(je)}},htmlBuilder:qi,mathmlBuilder:Gi});var cs=function(l,d){var h=l.font,m=d.withFont(h);return tn(l.body,m)},ta=function(l,d){var h=l.font,m=d.withFont(h);return hn(l.body,m)},_a={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};dr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0],M=m;return M in _a&&(M=_a[M]),{type:"font",mode:h.mode,font:M.slice(1),body:D}},htmlBuilder:cs,mathmlBuilder:ta}),dr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,m=d[0],D=R.isCharacterBox(m);return{type:"mclass",mode:h.mode,mclass:qt(m),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:m}],isCharacterBox:D}}}),dr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,D=l.breakOnTokenText,M=h.mode,pe=h.parseExpression(!0,D),Ce="math"+m.slice(1);return{type:"font",mode:M,font:Ce,body:{type:"ordgroup",mode:h.mode,body:pe}}},htmlBuilder:cs,mathmlBuilder:ta});var ba=function(l,d){var h=d;return l==="display"?h=h.id>=g.SCRIPT.id?h.text():g.DISPLAY:l==="text"&&h.size===g.DISPLAY.size?h=g.TEXT:l==="script"?h=g.SCRIPT:l==="scriptscript"&&(h=g.SCRIPTSCRIPT),h},ra=function(l,d){var h=ba(l.size,d.style),m=h.fracNum(),D=h.fracDen(),M;M=d.havingStyle(m);var pe=tn(l.numer,M,d);if(l.continued){var Ce=8.5/d.fontMetrics().ptPerEm,je=3.5/d.fontMetrics().ptPerEm;pe.height=pe.height<Ce?Ce:pe.height,pe.depth=pe.depth<je?je:pe.depth}M=d.havingStyle(D);var dt=tn(l.denom,M,d),St,zt,rr;l.hasBarLine?(l.barSize?(zt=We(l.barSize,d),St=Ye.makeLineSpan("frac-line",d,zt)):St=Ye.makeLineSpan("frac-line",d),zt=St.height,rr=St.height):(St=null,zt=0,rr=d.fontMetrics().defaultRuleThickness);var hr,xr,Br;h.size===g.DISPLAY.size||l.size==="display"?(hr=d.fontMetrics().num1,zt>0?xr=3*rr:xr=7*rr,Br=d.fontMetrics().denom1):(zt>0?(hr=d.fontMetrics().num2,xr=rr):(hr=d.fontMetrics().num3,xr=3*rr),Br=d.fontMetrics().denom2);var qr;if(St){var en=d.fontMetrics().axisHeight;hr-pe.depth-(en+.5*zt)<xr&&(hr+=xr-(hr-pe.depth-(en+.5*zt))),en-.5*zt-(dt.height-Br)<xr&&(Br+=xr-(en-.5*zt-(dt.height-Br)));var Ln=-(en-.5*zt);qr=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:Br},{type:"elem",elem:St,shift:Ln},{type:"elem",elem:pe,shift:-hr}]},d)}else{var rn=hr-pe.depth-(dt.height-Br);rn<xr&&(hr+=.5*(xr-rn),Br+=.5*(xr-rn)),qr=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:Br},{type:"elem",elem:pe,shift:-hr}]},d)}M=d.havingStyle(h),qr.height*=M.sizeMultiplier/d.sizeMultiplier,qr.depth*=M.sizeMultiplier/d.sizeMultiplier;var kn;h.size===g.DISPLAY.size?kn=d.fontMetrics().delim1:kn=d.fontMetrics().delim2;var Un,jn;return l.leftDelim==null?Un=qn(d,["mopen"]):Un=fi.customSizedDelim(l.leftDelim,kn,!0,d.havingStyle(h),l.mode,["mopen"]),l.continued?jn=Ye.makeSpan([]):l.rightDelim==null?jn=qn(d,["mclose"]):jn=fi.customSizedDelim(l.rightDelim,kn,!0,d.havingStyle(h),l.mode,["mclose"]),Ye.makeSpan(["mord"].concat(M.sizingClasses(d)),[Un,Ye.makeSpan(["mfrac"],[qr]),jn],d)},na=function(l,d){var h=new Vt.MathNode("mfrac",[hn(l.numer,d),hn(l.denom,d)]);if(!l.hasBarLine)h.setAttribute("linethickness","0px");else if(l.barSize){var m=We(l.barSize,d);h.setAttribute("linethickness",m+"em")}var D=ba(l.size,d.style);if(D.size!==d.style.size){h=new Vt.MathNode("mstyle",[h]);var M=D.size===g.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",M),h.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var pe=[];if(l.leftDelim!=null){var Ce=new Vt.MathNode("mo",[new Vt.TextNode(l.leftDelim.replace("\\",""))]);Ce.setAttribute("fence","true"),pe.push(Ce)}if(pe.push(h),l.rightDelim!=null){var je=new Vt.MathNode("mo",[new Vt.TextNode(l.rightDelim.replace("\\",""))]);je.setAttribute("fence","true"),pe.push(je)}return Gn(pe)}return h};dr({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0],M=d[1],pe,Ce=null,je=null,dt="auto";switch(m){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":pe=!0;break;case"\\\\atopfrac":pe=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":pe=!1,Ce="(",je=")";break;case"\\\\bracefrac":pe=!1,Ce="\\{",je="\\}";break;case"\\\\brackfrac":pe=!1,Ce="[",je="]";break;default:throw new Error("Unrecognized genfrac command")}switch(m){case"\\cfrac":case"\\dfrac":case"\\dbinom":dt="display";break;case"\\tfrac":case"\\tbinom":dt="text";break}return{type:"genfrac",mode:h.mode,continued:m==="\\cfrac",numer:D,denom:M,hasBarLine:pe,leftDelim:Ce,rightDelim:je,size:dt,barSize:null}},htmlBuilder:ra,mathmlBuilder:na}),dr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,h=l.funcName,m=l.token,D;switch(h){case"\\over":D="\\frac";break;case"\\choose":D="\\binom";break;case"\\atop":D="\\\\atopfrac";break;case"\\brace":D="\\\\bracefrac";break;case"\\brack":D="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:D,token:m}}});var Ri=["display","text","script","scriptscript"],Fs=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};dr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var h=l.parser,m=d[4],D=d[5],M=Wr(d[0],"atom");M&&(M=Qr(d[0],"open"));var pe=M?Fs(M.text):null,Ce=Wr(d[1],"atom");Ce&&(Ce=Qr(d[1],"close"));var je=Ce?Fs(Ce.text):null,dt=wr(d[2],"size"),St,zt=null;dt.isBlank?St=!0:(zt=dt.value,St=zt.number>0);var rr="auto",hr=Wr(d[3],"ordgroup");if(hr){if(hr.body.length>0){var xr=wr(hr.body[0],"textord");rr=Ri[Number(xr.text)]}}else hr=wr(d[3],"textord"),rr=Ri[Number(hr.text)];return{type:"genfrac",mode:h.mode,numer:m,denom:D,continued:!1,hasBarLine:St,barSize:zt,leftDelim:pe,rightDelim:je,size:rr}},htmlBuilder:ra,mathmlBuilder:na}),dr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var h=l.parser,m=l.funcName,D=l.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:wr(d[0],"size").value,token:D}}}),dr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0],M=V(wr(d[1],"infix").size),pe=d[2],Ce=M.number>0;return{type:"genfrac",mode:h.mode,numer:D,denom:pe,continued:!1,hasBarLine:Ce,barSize:M,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ra,mathmlBuilder:na});var xa=function(l,d){var h=d.style,m,D,M=Wr(l,"supsub");M?(m=M.sup?tn(M.sup,d.havingStyle(h.sup()),d):tn(M.sub,d.havingStyle(h.sub()),d),D=wr(M.base,"horizBrace")):D=wr(l,"horizBrace");var pe=tn(D.base,d.havingBaseStyle(g.DISPLAY)),Ce=Sr.svgSpan(D,d),je;if(D.isOver?(je=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pe},{type:"kern",size:.1},{type:"elem",elem:Ce}]},d),je.children[0].children[0].children[1].classes.push("svg-align")):(je=Ye.makeVList({positionType:"bottom",positionData:pe.depth+.1+Ce.height,children:[{type:"elem",elem:Ce},{type:"kern",size:.1},{type:"elem",elem:pe}]},d),je.children[0].children[0].children[0].classes.push("svg-align")),m){var dt=Ye.makeSpan(["mord",D.isOver?"mover":"munder"],[je],d);D.isOver?je=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:dt},{type:"kern",size:.2},{type:"elem",elem:m}]},d):je=Ye.makeVList({positionType:"bottom",positionData:dt.depth+.2+m.height+m.depth,children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:dt}]},d)}return Ye.makeSpan(["mord",D.isOver?"mover":"munder"],[je],d)},Ha=function(l,d){var h=Sr.mathMLnode(l.label);return new Vt.MathNode(l.isOver?"mover":"munder",[hn(l.base,d),h])};dr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName;return{type:"horizBrace",mode:h.mode,label:m,isOver:/^\\over/.test(m),base:d[0]}},htmlBuilder:xa,mathmlBuilder:Ha}),dr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[1],D=wr(d[0],"url").url;return h.settings.isTrusted({command:"\\href",url:D})?{type:"href",mode:h.mode,href:D,body:fn(m)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var h=bn(l.body,d,!1);return Ye.makeAnchor(l.href,[],h,d)},mathmlBuilder:function(l,d){var h=In(l.body,d);return h instanceof Ur||(h=new Ur("mrow",[h])),h.setAttribute("href",l.href),h}}),dr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=wr(d[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:m}))return h.formatUnsupportedCmd("\\url");for(var D=[],M=0;M<m.length;M++){var pe=m[M];pe==="~"&&(pe="\\textasciitilde"),D.push({type:"textord",mode:"text",text:pe})}var Ce={type:"text",mode:h.mode,font:"\\texttt",body:D};return{type:"href",mode:h.mode,href:m,body:fn(Ce)}}}),dr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"htmlmathml",mode:h.mode,html:fn(d[0]),mathml:fn(d[1])}},htmlBuilder:function(l,d){var h=bn(l.html,d,!1);return Ye.makeFragment(h)},mathmlBuilder:function(l,d){return In(l.mathml,d)}});var Ms=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new se("Invalid size: '"+l+"' in \\includegraphics");var h={number:+(d[1]+d[2]),unit:d[3]};if(!Se(h))throw new se("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};dr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,h){var m=l.parser,D={number:0,unit:"em"},M={number:.9,unit:"em"},pe={number:0,unit:"em"},Ce="";if(h[0])for(var je=wr(h[0],"raw").string,dt=je.split(","),St=0;St<dt.length;St++){var zt=dt[St].split("=");if(zt.length===2){var rr=zt[1].trim();switch(zt[0].trim()){case"alt":Ce=rr;break;case"width":D=Ms(rr);break;case"height":M=Ms(rr);break;case"totalheight":pe=Ms(rr);break;default:throw new se("Invalid key: '"+zt[0]+"' in \\includegraphics.")}}}var hr=wr(d[0],"url").url;return Ce===""&&(Ce=hr,Ce=Ce.replace(/^.*[\\/]/,""),Ce=Ce.substring(0,Ce.lastIndexOf("."))),m.settings.isTrusted({command:"\\includegraphics",url:hr})?{type:"includegraphics",mode:m.mode,alt:Ce,width:D,height:M,totalheight:pe,src:hr}:m.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var h=We(l.height,d),m=0;l.totalheight.number>0&&(m=We(l.totalheight,d)-h,m=Number(m.toFixed(2)));var D=0;l.width.number>0&&(D=We(l.width,d));var M={height:h+m+"em"};D>0&&(M.width=D+"em"),m>0&&(M.verticalAlign=-m+"em");var pe=new Te(l.src,l.alt,M);return pe.height=h,pe.depth=m,pe},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mglyph",[]);h.setAttribute("alt",l.alt);var m=We(l.height,d),D=0;if(l.totalheight.number>0&&(D=We(l.totalheight,d)-m,D=D.toFixed(2),h.setAttribute("valign","-"+D+"em")),h.setAttribute("height",m+D+"em"),l.width.number>0){var M=We(l.width,d);h.setAttribute("width",M+"em")}return h.setAttribute("src",l.src),h}}),dr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,D=wr(d[0],"size");if(h.settings.strict){var M=m[1]==="m",pe=D.value.unit==="mu";M?(pe||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" supports only mu units, "+("not "+D.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" works only in math mode")):pe&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:D.value}},htmlBuilder:function(l,d){return Ye.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var h=We(l.dimension,d);return new Vt.SpaceNode(h)}}),dr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];return{type:"lap",mode:h.mode,alignment:m.slice(5),body:D}},htmlBuilder:function(l,d){var h;l.alignment==="clap"?(h=Ye.makeSpan([],[tn(l.body,d)]),h=Ye.makeSpan(["inner"],[h],d)):h=Ye.makeSpan(["inner"],[tn(l.body,d)]);var m=Ye.makeSpan(["fix"],[]),D=Ye.makeSpan([l.alignment],[h,m],d),M=Ye.makeSpan(["strut"]);return M.style.height=D.height+D.depth+"em",M.style.verticalAlign=-D.depth+"em",D.children.unshift(M),D=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},d),Ye.makeSpan(["mord"],[D],d)},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mpadded",[hn(l.body,d)]);if(l.alignment!=="rlap"){var m=l.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",m+"width")}return h.setAttribute("width","0px"),h}}),dr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=l.funcName,m=l.parser,D=m.mode;m.switchMode("math");var M=h==="\\("?"\\)":"$",pe=m.parseExpression(!1,M);return m.expect(M),m.switchMode(D),{type:"styling",mode:m.mode,style:"text",body:pe}}}),dr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new se("Mismatched "+l.funcName)}});var ia=function(l,d){switch(d.style.size){case g.DISPLAY.size:return l.display;case g.TEXT.size:return l.text;case g.SCRIPT.size:return l.script;case g.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};dr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var h=l.parser;return{type:"mathchoice",mode:h.mode,display:fn(d[0]),text:fn(d[1]),script:fn(d[2]),scriptscript:fn(d[3])}},htmlBuilder:function(l,d){var h=ia(l,d),m=bn(h,d,!1);return Ye.makeFragment(m)},mathmlBuilder:function(l,d){var h=ia(l,d);return In(h,d)}});var Bs=function(l,d,h,m,D,M,pe){l=Ye.makeSpan([],[l]);var Ce,je;if(d){var dt=tn(d,m.havingStyle(D.sup()),m);je={elem:dt,kern:Math.max(m.fontMetrics().bigOpSpacing1,m.fontMetrics().bigOpSpacing3-dt.depth)}}if(h){var St=tn(h,m.havingStyle(D.sub()),m);Ce={elem:St,kern:Math.max(m.fontMetrics().bigOpSpacing2,m.fontMetrics().bigOpSpacing4-St.height)}}var zt;if(je&&Ce){var rr=m.fontMetrics().bigOpSpacing5+Ce.elem.height+Ce.elem.depth+Ce.kern+l.depth+pe;zt=Ye.makeVList({positionType:"bottom",positionData:rr,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ce.elem,marginLeft:-M+"em"},{type:"kern",size:Ce.kern},{type:"elem",elem:l},{type:"kern",size:je.kern},{type:"elem",elem:je.elem,marginLeft:M+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else if(Ce){var hr=l.height-pe;zt=Ye.makeVList({positionType:"top",positionData:hr,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ce.elem,marginLeft:-M+"em"},{type:"kern",size:Ce.kern},{type:"elem",elem:l}]},m)}else if(je){var xr=l.depth+pe;zt=Ye.makeVList({positionType:"bottom",positionData:xr,children:[{type:"elem",elem:l},{type:"kern",size:je.kern},{type:"elem",elem:je.elem,marginLeft:M+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else return l;return Ye.makeSpan(["mop","op-limits"],[zt],m)},Ea=["\\smallint"],zi=function(l,d){var h,m,D=!1,M,pe=Wr(l,"supsub");pe?(h=pe.sup,m=pe.sub,M=wr(pe.base,"op"),D=!0):M=wr(l,"op");var Ce=d.style,je=!1;Ce.size===g.DISPLAY.size&&M.symbol&&!R.contains(Ea,M.name)&&(je=!0);var dt;if(M.symbol){var St=je?"Size2-Regular":"Size1-Regular",zt="";if((M.name==="\\oiint"||M.name==="\\oiiint")&&(zt=M.name.substr(1),M.name=zt==="oiint"?"\\iint":"\\iiint"),dt=Ye.makeSymbol(M.name,St,"math",d,["mop","op-symbol",je?"large-op":"small-op"]),zt.length>0){var rr=dt.italic,hr=Ye.staticSvg(zt+"Size"+(je?"2":"1"),d);dt=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:0},{type:"elem",elem:hr,shift:je?.08:0}]},d),M.name="\\"+zt,dt.classes.unshift("mop"),dt.italic=rr}}else if(M.body){var xr=bn(M.body,d,!0);xr.length===1&&xr[0]instanceof ee?(dt=xr[0],dt.classes[0]="mop"):dt=Ye.makeSpan(["mop"],Ye.tryCombineChars(xr),d)}else{for(var Br=[],qr=1;qr<M.name.length;qr++)Br.push(Ye.mathsym(M.name[qr],M.mode,d));dt=Ye.makeSpan(["mop"],Br,d)}var rn=0,en=0;return(dt instanceof ee||M.name==="\\oiint"||M.name==="\\oiiint")&&!M.suppressBaseShift&&(rn=(dt.height-dt.depth)/2-d.fontMetrics().axisHeight,en=dt.italic),D?Bs(dt,h,m,d,Ce,en,rn):(rn&&(dt.style.position="relative",dt.style.top=rn+"em"),dt)},ws=function(l,d){var h;if(l.symbol)h=new Ur("mo",[gn(l.name,l.mode)]),R.contains(Ea,l.name)&&h.setAttribute("largeop","false");else if(l.body)h=new Ur("mo",wn(l.body,d));else{h=new Ur("mi",[new pn(l.name.slice(1))]);var m=new Ur("mo",[gn("\u2061","text")]);l.parentIsSupSub?h=new Ur("mo",[h,m]):h=Kr([h,m])}return h},Wa={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};dr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(l,d){var h=l.parser,m=l.funcName,D=m;return D.length===1&&(D=Wa[D]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:zi,mathmlBuilder:ws}),dr({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=d[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:fn(m)}},htmlBuilder:zi,mathmlBuilder:ws});var wa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};dr({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:zi,mathmlBuilder:ws}),dr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:zi,mathmlBuilder:ws}),dr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName,m=h;return m.length===1&&(m=wa[m]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:zi,mathmlBuilder:ws});var sa=function(l,d){var h,m,D=!1,M,pe=Wr(l,"supsub");pe?(h=pe.sup,m=pe.sub,M=wr(pe.base,"operatorname"),D=!0):M=wr(l,"operatorname");var Ce;if(M.body.length>0){for(var je=M.body.map(function(rr){var hr=rr.text;return typeof hr=="string"?{type:"textord",mode:rr.mode,text:hr}:rr}),dt=bn(je,d.withFont("mathrm"),!0),St=0;St<dt.length;St++){var zt=dt[St];zt instanceof ee&&(zt.text=zt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Ce=Ye.makeSpan(["mop"],dt,d)}else Ce=Ye.makeSpan(["mop"],[],d);return D?Bs(Ce,h,m,d,d.style,0,0):Ce},Ka=function(l,d){for(var h=wn(l.body,d.withFont("mathrm")),m=!0,D=0;D<h.length;D++){var M=h[D];if(!(M instanceof Vt.SpaceNode))if(M instanceof Vt.MathNode)switch(M.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var pe=M.children[0];M.children.length===1&&pe instanceof Vt.TextNode?pe.text=pe.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):m=!1;break}default:m=!1}else m=!1}if(m){var Ce=h.map(function(St){return St.toText()}).join("");h=[new Vt.TextNode(Ce)]}var je=new Vt.MathNode("mi",h);je.setAttribute("mathvariant","normal");var dt=new Vt.MathNode("mo",[gn("\u2061","text")]);return l.parentIsSupSub?new Vt.MathNode("mo",[je,dt]):Vt.newDocumentFragment([je,dt])};dr({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];return{type:"operatorname",mode:h.mode,body:fn(D),alwaysHandleSupSub:m==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Ka}),dn({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?Ye.makeFragment(bn(l.body,d,!1)):Ye.makeSpan(["mord"],bn(l.body,d,!0),d)},mathmlBuilder:function(l,d){return In(l.body,d,!0)}}),dr({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=d[0];return{type:"overline",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=tn(l.body,d.havingCrampedStyle()),m=Ye.makeLineSpan("overline-line",d),D=d.fontMetrics().defaultRuleThickness,M=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*D},{type:"elem",elem:m},{type:"kern",size:D}]},d);return Ye.makeSpan(["mord","overline"],[M],d)},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mo",[new Vt.TextNode("\u203E")]);h.setAttribute("stretchy","true");var m=new Vt.MathNode("mover",[hn(l.body,d),h]);return m.setAttribute("accent","true"),m}}),dr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"phantom",mode:h.mode,body:fn(m)}},htmlBuilder:function(l,d){var h=bn(l.body,d.withPhantom(),!1);return Ye.makeFragment(h)},mathmlBuilder:function(l,d){var h=wn(l.body,d);return new Vt.MathNode("mphantom",h)}}),dr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"hphantom",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=Ye.makeSpan([],[tn(l.body,d.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var m=0;m<h.children.length;m++)h.children[m].height=0,h.children[m].depth=0;return h=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d),Ye.makeSpan(["mord"],[h],d)},mathmlBuilder:function(l,d){var h=wn(fn(l.body),d),m=new Vt.MathNode("mphantom",h),D=new Vt.MathNode("mpadded",[m]);return D.setAttribute("height","0px"),D.setAttribute("depth","0px"),D}}),dr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"vphantom",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=Ye.makeSpan(["inner"],[tn(l.body,d.withPhantom())]),m=Ye.makeSpan(["fix"],[]);return Ye.makeSpan(["mord","rlap"],[h,m],d)},mathmlBuilder:function(l,d){var h=wn(fn(l.body),d),m=new Vt.MathNode("mphantom",h),D=new Vt.MathNode("mpadded",[m]);return D.setAttribute("width","0px"),D}}),dr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=wr(d[0],"size").value,D=d[1];return{type:"raisebox",mode:h.mode,dy:m,body:D}},htmlBuilder:function(l,d){var h=tn(l.body,d),m=We(l.dy,d);return Ye.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h}]},d)},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mpadded",[hn(l.body,d)]),m=l.dy.number+l.dy.unit;return h.setAttribute("voffset",m),h}}),dr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,h){var m=l.parser,D=h[0],M=wr(d[0],"size"),pe=wr(d[1],"size");return{type:"rule",mode:m.mode,shift:D&&wr(D,"size").value,width:M.value,height:pe.value}},htmlBuilder:function(l,d){var h=Ye.makeSpan(["mord","rule"],[],d),m=We(l.width,d),D=We(l.height,d),M=l.shift?We(l.shift,d):0;return h.style.borderRightWidth=m+"em",h.style.borderTopWidth=D+"em",h.style.bottom=M+"em",h.width=m,h.height=D+M,h.depth=-M,h.maxFontSize=D*1.125*d.sizeMultiplier,h},mathmlBuilder:function(l,d){var h=We(l.width,d),m=We(l.height,d),D=l.shift?We(l.shift,d):0,M=d.color&&d.getColor()||"black",pe=new Vt.MathNode("mspace");pe.setAttribute("mathbackground",M),pe.setAttribute("width",h+"em"),pe.setAttribute("height",m+"em");var Ce=new Vt.MathNode("mpadded",[pe]);return D>=0?Ce.setAttribute("height","+"+D+"em"):(Ce.setAttribute("height",D+"em"),Ce.setAttribute("depth","+"+-D+"em")),Ce.setAttribute("voffset",D+"em"),Ce}});function aa(B,l,d){for(var h=bn(B,l,!1),m=l.sizeMultiplier/d.sizeMultiplier,D=0;D<h.length;D++){var M=h[D].classes.indexOf("sizing");M<0?Array.prototype.push.apply(h[D].classes,l.sizingClasses(d)):h[D].classes[M+1]==="reset-size"+l.size&&(h[D].classes[M+1]="reset-size"+d.size),h[D].height*=m,h[D].depth*=m}return Ye.makeFragment(h)}var Ss=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ga=function(l,d){var h=d.havingSize(l.size);return aa(l.body,h,d)};dr({type:"sizing",names:Ss,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,m=l.funcName,D=l.parser,M=D.parseExpression(!1,h);return{type:"sizing",mode:D.mode,size:Ss.indexOf(m)+1,body:M}},htmlBuilder:Ga,mathmlBuilder:function(l,d){var h=d.havingSize(l.size),m=wn(l.body,h),D=new Vt.MathNode("mstyle",m);return D.setAttribute("mathsize",h.sizeMultiplier+"em"),D}}),dr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,h){var m=l.parser,D=!1,M=!1,pe=h[0]&&wr(h[0],"ordgroup");if(pe)for(var Ce="",je=0;je<pe.body.length;++je){var dt=pe.body[je];if(Ce=dt.text,Ce==="t")D=!0;else if(Ce==="b")M=!0;else{D=!1,M=!1;break}}else D=!0,M=!0;var St=d[0];return{type:"smash",mode:m.mode,body:St,smashHeight:D,smashDepth:M}},htmlBuilder:function(l,d){var h=Ye.makeSpan([],[tn(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return h;if(l.smashHeight&&(h.height=0,h.children))for(var m=0;m<h.children.length;m++)h.children[m].height=0;if(l.smashDepth&&(h.depth=0,h.children))for(var D=0;D<h.children.length;D++)h.children[D].depth=0;var M=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d);return Ye.makeSpan(["mord"],[M],d)},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mpadded",[hn(l.body,d)]);return l.smashHeight&&h.setAttribute("height","0px"),l.smashDepth&&h.setAttribute("depth","0px"),h}}),dr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var m=l.parser,D=h[0],M=d[0];return{type:"sqrt",mode:m.mode,body:M,index:D}},htmlBuilder:function(l,d){var h=tn(l.body,d.havingCrampedStyle());h.height===0&&(h.height=d.fontMetrics().xHeight),h=Ye.wrapFragment(h,d);var m=d.fontMetrics(),D=m.defaultRuleThickness,M=D;d.style.id<g.TEXT.id&&(M=d.fontMetrics().xHeight);var pe=D+M/4,Ce=h.height+h.depth+pe+D,je=fi.sqrtImage(Ce,d),dt=je.span,St=je.ruleWidth,zt=je.advanceWidth,rr=dt.height-St;rr>h.height+h.depth+pe&&(pe=(pe+rr-h.height-h.depth)/2);var hr=dt.height-h.height-pe-St;h.style.paddingLeft=zt+"em";var xr=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+hr)},{type:"elem",elem:dt},{type:"kern",size:St}]},d);if(l.index){var Br=d.havingStyle(g.SCRIPTSCRIPT),qr=tn(l.index,Br,d),rn=.6*(xr.height-xr.depth),en=Ye.makeVList({positionType:"shift",positionData:-rn,children:[{type:"elem",elem:qr}]},d),Ln=Ye.makeSpan(["root"],[en]);return Ye.makeSpan(["mord","sqrt"],[Ln,xr],d)}else return Ye.makeSpan(["mord","sqrt"],[xr],d)},mathmlBuilder:function(l,d){var h=l.body,m=l.index;return m?new Vt.MathNode("mroot",[hn(h,d),hn(m,d)]):new Vt.MathNode("msqrt",[hn(h,d)])}});var Sa={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};dr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,m=l.funcName,D=l.parser,M=D.parseExpression(!0,h),pe=m.slice(1,m.length-5);return{type:"styling",mode:D.mode,style:pe,body:M}},htmlBuilder:function(l,d){var h=Sa[l.style],m=d.havingStyle(h).withFont("");return aa(l.body,m,d)},mathmlBuilder:function(l,d){var h=Sa[l.style],m=d.havingStyle(h),D=wn(l.body,m),M=new Vt.MathNode("mstyle",D),pe={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Ce=pe[l.style];return M.setAttribute("scriptlevel",Ce[0]),M.setAttribute("displaystyle",Ce[1]),M}});var Va=function(l,d){var h=l.base;if(h)if(h.type==="op"){var m=h.limits&&(d.style.size===g.DISPLAY.size||h.alwaysHandleSupSub);return m?zi:null}else if(h.type==="operatorname"){var D=h.alwaysHandleSupSub&&(d.style.size===g.DISPLAY.size||h.limits);return D?sa:null}else{if(h.type==="accent")return R.isCharacterBox(h.base)?mn:null;if(h.type==="horizBrace"){var M=!l.sub;return M===h.isOver?xa:null}else return null}else return null};dn({type:"supsub",htmlBuilder:function(l,d){var h=Va(l,d);if(h)return h(l,d);var m=l.base,D=l.sup,M=l.sub,pe=tn(m,d),Ce,je,dt=d.fontMetrics(),St=0,zt=0,rr=m&&R.isCharacterBox(m);if(D){var hr=d.havingStyle(d.style.sup());Ce=tn(D,hr,d),rr||(St=pe.height-hr.fontMetrics().supDrop*hr.sizeMultiplier/d.sizeMultiplier)}if(M){var xr=d.havingStyle(d.style.sub());je=tn(M,xr,d),rr||(zt=pe.depth+xr.fontMetrics().subDrop*xr.sizeMultiplier/d.sizeMultiplier)}var Br;d.style===g.DISPLAY?Br=dt.sup1:d.style.cramped?Br=dt.sup3:Br=dt.sup2;var qr=d.sizeMultiplier,rn=.5/dt.ptPerEm/qr+"em",en=null;if(je){var Ln=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(pe instanceof ee||Ln)&&(en=-pe.italic+"em")}var kn;if(Ce&&je){St=Math.max(St,Br,Ce.depth+.25*dt.xHeight),zt=Math.max(zt,dt.sub2);var Un=dt.defaultRuleThickness,jn=4*Un;if(St-Ce.depth-(je.height-zt)<jn){zt=jn-(St-Ce.depth)+je.height;var Yn=.8*dt.xHeight-(St-Ce.depth);Yn>0&&(St+=Yn,zt-=Yn)}var mi=[{type:"elem",elem:je,shift:zt,marginRight:rn,marginLeft:en},{type:"elem",elem:Ce,shift:-St,marginRight:rn}];kn=Ye.makeVList({positionType:"individualShift",children:mi},d)}else if(je){zt=Math.max(zt,dt.sub1,je.height-.8*dt.xHeight);var ui=[{type:"elem",elem:je,marginLeft:en,marginRight:rn}];kn=Ye.makeVList({positionType:"shift",positionData:zt,children:ui},d)}else if(Ce)St=Math.max(St,Br,Ce.depth+.25*dt.xHeight),kn=Ye.makeVList({positionType:"shift",positionData:-St,children:[{type:"elem",elem:Ce,marginRight:rn}]},d);else throw new Error("supsub must have either sup or sub.");var Dn=$n(pe,"right")||"mord";return Ye.makeSpan([Dn],[pe,Ye.makeSpan(["msupsub"],[kn])],d)},mathmlBuilder:function(l,d){var h=!1,m,D,M=Wr(l.base,"horizBrace");M&&(D=!!l.sup,D===M.isOver&&(h=!0,m=M.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var pe=[hn(l.base,d)];l.sub&&pe.push(hn(l.sub,d)),l.sup&&pe.push(hn(l.sup,d));var Ce;if(h)Ce=m?"mover":"munder";else if(l.sub)if(l.sup){var St=l.base;St&&St.type==="op"&&St.limits&&d.style===g.DISPLAY||St&&St.type==="operatorname"&&St.alwaysHandleSupSub&&(d.style===g.DISPLAY||St.limits)?Ce="munderover":Ce="msubsup"}else{var dt=l.base;dt&&dt.type==="op"&&dt.limits&&(d.style===g.DISPLAY||dt.alwaysHandleSupSub)||dt&&dt.type==="operatorname"&&dt.alwaysHandleSupSub&&(dt.limits||d.style===g.DISPLAY)?Ce="munder":Ce="msub"}else{var je=l.base;je&&je.type==="op"&&je.limits&&(d.style===g.DISPLAY||je.alwaysHandleSupSub)||je&&je.type==="operatorname"&&je.alwaysHandleSupSub&&(je.limits||d.style===g.DISPLAY)?Ce="mover":Ce="msup"}var zt=new Vt.MathNode(Ce,pe);return zt}}),dn({type:"atom",htmlBuilder:function(l,d){return Ye.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mo",[gn(l.text,l.mode)]);if(l.family==="bin"){var m=Vn(l,d);m==="bold-italic"&&h.setAttribute("mathvariant",m)}else l.family==="punct"?h.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&h.setAttribute("stretchy","false");return h}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};dn({type:"mathord",htmlBuilder:function(l,d){return Ye.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mi",[gn(l.text,l.mode,d)]),m=Vn(l,d)||"italic";return m!==Aa[h.type]&&h.setAttribute("mathvariant",m),h}}),dn({type:"textord",htmlBuilder:function(l,d){return Ye.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var h=gn(l.text,l.mode,d),m=Vn(l,d)||"normal",D;return l.mode==="text"?D=new Vt.MathNode("mtext",[h]):/[0-9]/.test(l.text)?D=new Vt.MathNode("mn",[h]):l.text==="\\prime"?D=new Vt.MathNode("mo",[h]):D=new Vt.MathNode("mi",[h]),m!==Aa[D.type]&&D.setAttribute("mathvariant",m),D}});var Ns={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};dn({type:"spacing",htmlBuilder:function(l,d){if(zs.hasOwnProperty(l.text)){var h=zs[l.text].className||"";if(l.mode==="text"){var m=Ye.makeOrd(l,d,"textord");return m.classes.push(h),m}else return Ye.makeSpan(["mspace",h],[Ye.mathsym(l.text,l.mode,d)],d)}else{if(Ns.hasOwnProperty(l.text))return Ye.makeSpan(["mspace",Ns[l.text]],[],d);throw new se('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var h;if(zs.hasOwnProperty(l.text))h=new Vt.MathNode("mtext",[new Vt.TextNode("\xA0")]);else{if(Ns.hasOwnProperty(l.text))return new Vt.MathNode("mspace");throw new se('Unknown type of space "'+l.text+'"')}return h}});var Us=function(){var l=new Vt.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};dn({type:"tag",mathmlBuilder:function(l,d){var h=new Vt.MathNode("mtable",[new Vt.MathNode("mtr",[Us(),new Vt.MathNode("mtd",[In(l.body,d)]),Us(),new Vt.MathNode("mtd",[In(l.tag,d)])])]);return h.setAttribute("width","100%"),h}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ca={"\\textbf":"textbf","\\textmd":"textmd"},Ta={"\\textit":"textit","\\textup":"textup"},Da=function(l,d){var h=l.font;return h?oa[h]?d.withTextFontFamily(oa[h]):Ca[h]?d.withTextFontWeight(Ca[h]):d.withTextFontShape(Ta[h]):d};dr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,D=d[0];return{type:"text",mode:h.mode,body:fn(D),font:m}},htmlBuilder:function(l,d){var h=Da(l,d),m=bn(l.body,h,!0);return Ye.makeSpan(["mord","text"],Ye.tryCombineChars(m),h)},mathmlBuilder:function(l,d){var h=Da(l,d);return In(l.body,h)}}),dr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"underline",mode:h.mode,body:d[0]}},htmlBuilder:function(l,d){var h=tn(l.body,d),m=Ye.makeLineSpan("underline-line",d),D=d.fontMetrics().defaultRuleThickness,M=Ye.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:D},{type:"elem",elem:m},{type:"kern",size:3*D},{type:"elem",elem:h}]},d);return Ye.makeSpan(["mord","underline"],[M],d)},mathmlBuilder:function(l,d){var h=new Vt.MathNode("mo",[new Vt.TextNode("\u203E")]);h.setAttribute("stretchy","true");var m=new Vt.MathNode("munder",[hn(l.body,d),h]);return m.setAttribute("accentunder","true"),m}}),dr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,h){throw new se("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var h=Ra(l),m=[],D=d.havingStyle(d.style.text()),M=0;M<h.length;M++){var pe=h[M];pe==="~"&&(pe="\\textasciitilde"),m.push(Ye.makeSymbol(pe,"Typewriter-Regular",l.mode,D,["mord","texttt"]))}return Ye.makeSpan(["mord","text"].concat(D.sizingClasses(d)),Ye.tryCombineChars(m),D)},mathmlBuilder:function(l,d){var h=new Vt.TextNode(Ra(l)),m=new Vt.MathNode("mtext",[h]);return m.setAttribute("mathvariant","monospace"),m}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Za=si,ds=Za,la=`[ \r
|
|
|
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",oi=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+")"),$s=function(){function B(d,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=h,this.tokenRegex=new RegExp(Vi,"g"),this.catcodes={"%":14}}var l=B.prototype;return l.setCatcode=function(h,m){this.catcodes[h]=m},l.lex=function(){var h=this.input,m=this.tokenRegex.lastIndex;if(m===h.length)return new Ie("EOF",new ge(this,m,m));var D=this.tokenRegex.exec(h);if(D===null||D.index!==m)throw new se("Unexpected character: '"+h[m]+"'",new Ie(h[m],new ge(this,m,m+1)));var M=D[2]||" ";if(this.catcodes[M]===14){var pe=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return pe===-1?(this.tokenRegex.lastIndex=h.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=pe+1,this.lex()}var Ce=M.match(Xa);return Ce&&(M=Ce[1]),new Ie(M,new ge(this,m,this.tokenRegex.lastIndex))},B}(),Qa=function(){function B(d,h){d===void 0&&(d={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=d,this.undefStack=[]}var l=B.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new se("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var m in h)h.hasOwnProperty(m)&&(h[m]===void 0?delete this.current[m]:this.current[m]=h[m])},l.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},l.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},l.set=function(h,m,D){if(D===void 0&&(D=!1),D){for(var M=0;M<this.undefStack.length;M++)delete this.undefStack[M][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=m)}else{var pe=this.undefStack[this.undefStack.length-1];pe&&!pe.hasOwnProperty(h)&&(pe[h]=this.current[h])}this.current[h]=m},B}(),La={},js=La;function Me(B,l){La[B]=l}Me("\\@firstoftwo",function(B){var l=B.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Me("\\@secondoftwo",function(B){var l=B.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Me("\\@ifnextchar",function(B){var l=B.consumeArgs(3),d=B.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Me("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Me("\\TextOrMath",function(B){var l=B.consumeArgs(2);return B.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};Me("\\char",function(B){var l=B.popToken(),d,h="";if(l.text==="'")d=8,l=B.popToken();else if(l.text==='"')d=16,l=B.popToken();else if(l.text==="`")if(l=B.popToken(),l.text[0]==="\\")h=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new se("\\char` missing argument");h=l.text.charCodeAt(0)}else d=10;if(d){if(h=es[l.text],h==null||h>=d)throw new se("Invalid base-"+d+" digit "+l.text);for(var m;(m=es[B.future().text])!=null&&m<d;)h*=d,h+=m,B.popToken()}return"\\@char{"+h+"}"});var da=function(l,d){var h=l.consumeArgs(1)[0];if(h.length!==1)throw new se("\\gdef's first argument must be a macro name");var m=h[0].text,D=0;for(h=l.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=l.consumeArgs(1)[0],h.length!==1)throw new se('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new se('Invalid argument number "'+h[0].text+'"');if(D++,parseInt(h[0].text)!==D)throw new se('Argument number "'+h[0].text+'" out of order');h=l.consumeArgs(1)[0]}return l.macros.set(m,{tokens:h,numArgs:D},d),""};Me("\\gdef",function(B){return da(B,!0)}),Me("\\def",function(B){return da(B,!1)}),Me("\\global",function(B){var l=B.consumeArgs(1)[0];if(l.length!==1)throw new se("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return da(B,!0);throw new se("Invalid command '"+d+"' after \\global")});var Hs=function(l,d,h){var m=l.consumeArgs(1)[0];if(m.length!==1)throw new se("\\newcommand's first argument must be a macro name");var D=m[0].text,M=l.isDefined(D);if(M&&!d)throw new se("\\newcommand{"+D+"} attempting to redefine "+(D+"; use \\renewcommand"));if(!M&&!h)throw new se("\\renewcommand{"+D+"} when command "+D+" does not yet exist; use \\newcommand");var pe=0;if(m=l.consumeArgs(1)[0],m.length===1&&m[0].text==="["){for(var Ce="",je=l.expandNextToken();je.text!=="]"&&je.text!=="EOF";)Ce+=je.text,je=l.expandNextToken();if(!Ce.match(/^\s*[0-9]+\s*$/))throw new se("Invalid number of arguments: "+Ce);pe=parseInt(Ce),m=l.consumeArgs(1)[0]}return l.macros.set(D,{tokens:m,numArgs:pe}),""};Me("\\newcommand",function(B){return Hs(B,!1,!0)}),Me("\\renewcommand",function(B){return Hs(B,!0,!1)}),Me("\\providecommand",function(B){return Hs(B,!0,!0)}),Me("\\bgroup","{"),Me("\\egroup","}"),Me("\\lq","`"),Me("\\rq","'"),Me("\\aa","\\r a"),Me("\\AA","\\r A"),Me("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Me("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Me("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Me("\u212C","\\mathscr{B}"),Me("\u2130","\\mathscr{E}"),Me("\u2131","\\mathscr{F}"),Me("\u210B","\\mathscr{H}"),Me("\u2110","\\mathscr{I}"),Me("\u2112","\\mathscr{L}"),Me("\u2133","\\mathscr{M}"),Me("\u211B","\\mathscr{R}"),Me("\u212D","\\mathfrak{C}"),Me("\u210C","\\mathfrak{H}"),Me("\u2128","\\mathfrak{Z}"),Me("\\Bbbk","\\Bbb{k}"),Me("\xB7","\\cdotp"),Me("\\llap","\\mathllap{\\textrm{#1}}"),Me("\\rlap","\\mathrlap{\\textrm{#1}}"),Me("\\clap","\\mathclap{\\textrm{#1}}"),Me("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Me("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Me("\\ne","\\neq"),Me("\u2260","\\neq"),Me("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Me("\u2209","\\notin"),Me("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Me("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Me("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Me("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Me("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Me("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Me("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Me("\u27C2","\\perp"),Me("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Me("\u220C","\\notni"),Me("\u231C","\\ulcorner"),Me("\u231D","\\urcorner"),Me("\u231E","\\llcorner"),Me("\u231F","\\lrcorner"),Me("\xA9","\\copyright"),Me("\xAE","\\textregistered"),Me("\uFE0F","\\textregistered"),Me("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Me("\u22EE","\\vdots"),Me("\\varGamma","\\mathit{\\Gamma}"),Me("\\varDelta","\\mathit{\\Delta}"),Me("\\varTheta","\\mathit{\\Theta}"),Me("\\varLambda","\\mathit{\\Lambda}"),Me("\\varXi","\\mathit{\\Xi}"),Me("\\varPi","\\mathit{\\Pi}"),Me("\\varSigma","\\mathit{\\Sigma}"),Me("\\varUpsilon","\\mathit{\\Upsilon}"),Me("\\varPhi","\\mathit{\\Phi}"),Me("\\varPsi","\\mathit{\\Psi}"),Me("\\varOmega","\\mathit{\\Omega}"),Me("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Me("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Me("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Me("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Me("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Me("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ui={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Me("\\dots",function(B){var l="\\dotso",d=B.expandAfterFuture().text;return d in Ui?l=Ui[d]:(d.substr(0,4)==="\\not"||d in It.math&&R.contains(["bin","rel"],It.math[d].group))&&(l="\\dotsb"),l});var Lt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Me("\\dotso",function(B){var l=B.future().text;return l in Lt?"\\ldots\\,":"\\ldots"}),Me("\\dotsc",function(B){var l=B.future().text;return l in Lt&&l!==","?"\\ldots\\,":"\\ldots"}),Me("\\cdots",function(B){var l=B.future().text;return l in Lt?"\\@cdots\\,":"\\@cdots"}),Me("\\dotsb","\\cdots"),Me("\\dotsm","\\cdots"),Me("\\dotsi","\\!\\cdots"),Me("\\dotsx","\\ldots\\,"),Me("\\DOTSI","\\relax"),Me("\\DOTSB","\\relax"),Me("\\DOTSX","\\relax"),Me("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Me("\\,","\\tmspace+{3mu}{.1667em}"),Me("\\thinspace","\\,"),Me("\\>","\\mskip{4mu}"),Me("\\:","\\tmspace+{4mu}{.2222em}"),Me("\\medspace","\\:"),Me("\\;","\\tmspace+{5mu}{.2777em}"),Me("\\thickspace","\\;"),Me("\\!","\\tmspace-{3mu}{.1667em}"),Me("\\negthinspace","\\!"),Me("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Me("\\negthickspace","\\tmspace-{5mu}{.277em}"),Me("\\enspace","\\kern.5em "),Me("\\enskip","\\hskip.5em\\relax"),Me("\\quad","\\hskip1em\\relax"),Me("\\qquad","\\hskip2em\\relax"),Me("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Me("\\tag@paren","\\tag@literal{({#1})}"),Me("\\tag@literal",function(B){if(B.macros.get("\\df@tag"))throw new se("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Me("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Me("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Me("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Me("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Me("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Me("\\\\","\\newline"),Me("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ha=ht["Main-Regular"][84][1]-.7*ht["Main-Regular"][65][1]+"em";Me("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Me("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Me("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Me("\\@hspace","\\hskip #1\\relax"),Me("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Me("\\ordinarycolon",":"),Me("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Me("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Me("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Me("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Me("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Me("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Me("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Me("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Me("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Me("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Me("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Me("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Me("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Me("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Me("\u2237","\\dblcolon"),Me("\u2239","\\eqcolon"),Me("\u2254","\\coloneqq"),Me("\u2255","\\eqqcolon"),Me("\u2A74","\\Coloneqq"),Me("\\ratio","\\vcentcolon"),Me("\\coloncolon","\\dblcolon"),Me("\\colonequals","\\coloneqq"),Me("\\coloncolonequals","\\Coloneqq"),Me("\\equalscolon","\\eqqcolon"),Me("\\equalscoloncolon","\\Eqqcolon"),Me("\\colonminus","\\coloneq"),Me("\\coloncolonminus","\\Coloneq"),Me("\\minuscolon","\\eqcolon"),Me("\\minuscoloncolon","\\Eqcolon"),Me("\\coloncolonapprox","\\Colonapprox"),Me("\\coloncolonsim","\\Colonsim"),Me("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Me("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Me("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Me("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Me("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Me("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Me("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Me("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Me("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Me("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Me("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Me("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Me("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Me("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Me("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Me("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Me("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Me("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Me("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Me("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Me("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Me("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Me("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Me("\u27E6","\\llbracket"),Me("\u27E7","\\rrbracket"),Me("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Me("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Me("\u2983","\\lBrace"),Me("\u2984","\\rBrace"),Me("\\darr","\\downarrow"),Me("\\dArr","\\Downarrow"),Me("\\Darr","\\Downarrow"),Me("\\lang","\\langle"),Me("\\rang","\\rangle"),Me("\\uarr","\\uparrow"),Me("\\uArr","\\Uparrow"),Me("\\Uarr","\\Uparrow"),Me("\\N","\\mathbb{N}"),Me("\\R","\\mathbb{R}"),Me("\\Z","\\mathbb{Z}"),Me("\\alef","\\aleph"),Me("\\alefsym","\\aleph"),Me("\\Alpha","\\mathrm{A}"),Me("\\Beta","\\mathrm{B}"),Me("\\bull","\\bullet"),Me("\\Chi","\\mathrm{X}"),Me("\\clubs","\\clubsuit"),Me("\\cnums","\\mathbb{C}"),Me("\\Complex","\\mathbb{C}"),Me("\\Dagger","\\ddagger"),Me("\\diamonds","\\diamondsuit"),Me("\\empty","\\emptyset"),Me("\\Epsilon","\\mathrm{E}"),Me("\\Eta","\\mathrm{H}"),Me("\\exist","\\exists"),Me("\\harr","\\leftrightarrow"),Me("\\hArr","\\Leftrightarrow"),Me("\\Harr","\\Leftrightarrow"),Me("\\hearts","\\heartsuit"),Me("\\image","\\Im"),Me("\\infin","\\infty"),Me("\\Iota","\\mathrm{I}"),Me("\\isin","\\in"),Me("\\Kappa","\\mathrm{K}"),Me("\\larr","\\leftarrow"),Me("\\lArr","\\Leftarrow"),Me("\\Larr","\\Leftarrow"),Me("\\lrarr","\\leftrightarrow"),Me("\\lrArr","\\Leftrightarrow"),Me("\\Lrarr","\\Leftrightarrow"),Me("\\Mu","\\mathrm{M}"),Me("\\natnums","\\mathbb{N}"),Me("\\Nu","\\mathrm{N}"),Me("\\Omicron","\\mathrm{O}"),Me("\\plusmn","\\pm"),Me("\\rarr","\\rightarrow"),Me("\\rArr","\\Rightarrow"),Me("\\Rarr","\\Rightarrow"),Me("\\real","\\Re"),Me("\\reals","\\mathbb{R}"),Me("\\Reals","\\mathbb{R}"),Me("\\Rho","\\mathrm{P}"),Me("\\sdot","\\cdot"),Me("\\sect","\\S"),Me("\\spades","\\spadesuit"),Me("\\sub","\\subset"),Me("\\sube","\\subseteq"),Me("\\supe","\\supseteq"),Me("\\Tau","\\mathrm{T}"),Me("\\thetasym","\\vartheta"),Me("\\weierp","\\wp"),Me("\\Zeta","\\mathrm{Z}"),Me("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Me("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Me("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Me("\\blue","\\textcolor{##6495ed}{#1}"),Me("\\orange","\\textcolor{##ffa500}{#1}"),Me("\\pink","\\textcolor{##ff00af}{#1}"),Me("\\red","\\textcolor{##df0030}{#1}"),Me("\\green","\\textcolor{##28ae7b}{#1}"),Me("\\gray","\\textcolor{gray}{#1}"),Me("\\purple","\\textcolor{##9d38bd}{#1}"),Me("\\blueA","\\textcolor{##ccfaff}{#1}"),Me("\\blueB","\\textcolor{##80f6ff}{#1}"),Me("\\blueC","\\textcolor{##63d9ea}{#1}"),Me("\\blueD","\\textcolor{##11accd}{#1}"),Me("\\blueE","\\textcolor{##0c7f99}{#1}"),Me("\\tealA","\\textcolor{##94fff5}{#1}"),Me("\\tealB","\\textcolor{##26edd5}{#1}"),Me("\\tealC","\\textcolor{##01d1c1}{#1}"),Me("\\tealD","\\textcolor{##01a995}{#1}"),Me("\\tealE","\\textcolor{##208170}{#1}"),Me("\\greenA","\\textcolor{##b6ffb0}{#1}"),Me("\\greenB","\\textcolor{##8af281}{#1}"),Me("\\greenC","\\textcolor{##74cf70}{#1}"),Me("\\greenD","\\textcolor{##1fab54}{#1}"),Me("\\greenE","\\textcolor{##0d923f}{#1}"),Me("\\goldA","\\textcolor{##ffd0a9}{#1}"),Me("\\goldB","\\textcolor{##ffbb71}{#1}"),Me("\\goldC","\\textcolor{##ff9c39}{#1}"),Me("\\goldD","\\textcolor{##e07d10}{#1}"),Me("\\goldE","\\textcolor{##a75a05}{#1}"),Me("\\redA","\\textcolor{##fca9a9}{#1}"),Me("\\redB","\\textcolor{##ff8482}{#1}"),Me("\\redC","\\textcolor{##f9685d}{#1}"),Me("\\redD","\\textcolor{##e84d39}{#1}"),Me("\\redE","\\textcolor{##bc2612}{#1}"),Me("\\maroonA","\\textcolor{##ffbde0}{#1}"),Me("\\maroonB","\\textcolor{##ff92c6}{#1}"),Me("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Me("\\maroonD","\\textcolor{##ca337c}{#1}"),Me("\\maroonE","\\textcolor{##9e034e}{#1}"),Me("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Me("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Me("\\purpleC","\\textcolor{##aa87ff}{#1}"),Me("\\purpleD","\\textcolor{##7854ab}{#1}"),Me("\\purpleE","\\textcolor{##543b78}{#1}"),Me("\\mintA","\\textcolor{##f5f9e8}{#1}"),Me("\\mintB","\\textcolor{##edf2df}{#1}"),Me("\\mintC","\\textcolor{##e0e5cc}{#1}"),Me("\\grayA","\\textcolor{##f6f7f7}{#1}"),Me("\\grayB","\\textcolor{##f0f1f2}{#1}"),Me("\\grayC","\\textcolor{##e3e5e6}{#1}"),Me("\\grayD","\\textcolor{##d6d8da}{#1}"),Me("\\grayE","\\textcolor{##babec2}{#1}"),Me("\\grayF","\\textcolor{##888d93}{#1}"),Me("\\grayG","\\textcolor{##626569}{#1}"),Me("\\grayH","\\textcolor{##3b3e40}{#1}"),Me("\\grayI","\\textcolor{##21242c}{#1}"),Me("\\kaBlue","\\textcolor{##314453}{#1}"),Me("\\kaGreen","\\textcolor{##71B307}{#1}");var Ws={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ja=function(){function B(d,h,m){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=h,this.expansionCount=0,this.feed(d),this.macros=new Qa(js,h.macros),this.mode=m,this.stack=[]}var l=B.prototype;return l.feed=function(h){this.lexer=new $s(h,this.settings)},l.switchMode=function(h){this.mode=h},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(h){this.stack.push(h)},l.pushTokens=function(h){var m;(m=this.stack).push.apply(m,h)},l.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},l.consumeArgs=function(h){for(var m=[],D=0;D<h;++D){this.consumeSpaces();var M=this.popToken();if(M.text==="{"){for(var pe=[],Ce=1;Ce!==0;){var je=this.popToken();if(pe.push(je),je.text==="{")++Ce;else if(je.text==="}")--Ce;else if(je.text==="EOF")throw new se("End of input in macro argument",M)}pe.pop(),pe.reverse(),m[D]=pe}else{if(M.text==="EOF")throw new se("End of input expecting macro argument");m[D]=[M]}}return m},l.expandOnce=function(){var h=this.popToken(),m=h.text,D=this._getExpansion(m);if(D==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new se("Too many expansions: infinite loop or need to increase maxExpand setting");var M=D.tokens;if(D.numArgs){var pe=this.consumeArgs(D.numArgs);M=M.slice();for(var Ce=M.length-1;Ce>=0;--Ce){var je=M[Ce];if(je.text==="#"){if(Ce===0)throw new se("Incomplete placeholder at end of macro body",je);if(je=M[--Ce],je.text==="#")M.splice(Ce+1,1);else if(/^[1-9]$/.test(je.text)){var dt;(dt=M).splice.apply(dt,[Ce,2].concat(pe[+je.text-1]))}else throw new se("Not a valid argument number",je)}}}return this.pushTokens(M),M},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof Ie)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(h){if(this.macros.get(h)){var m=[],D=this.stack.length;for(this.pushToken(new Ie(h));this.stack.length>D;){var M=this.expandOnce();M instanceof Ie&&m.push(this.stack.pop())}return m}},l.expandMacroAsText=function(h){var m=this.expandMacro(h);return m&&m.map(function(D){return D.text}).join("")},l._getExpansion=function(h){var m=this.macros.get(h);if(m==null)return m;var D=typeof m=="function"?m(this):m;if(typeof D=="string"){var M=0;if(D.indexOf("#")!==-1)for(var pe=D.replace(/##/g,"");pe.indexOf("#"+(M+1))!==-1;)++M;for(var Ce=new $s(D,this.settings),je=[],dt=Ce.lex();dt.text!=="EOF";)je.push(dt),dt=Ce.lex();je.reverse();var St={tokens:je,numArgs:M};return St}return D},l.isDefined=function(h){return this.macros.has(h)||ds.hasOwnProperty(h)||It.math.hasOwnProperty(h)||It.text.hasOwnProperty(h)||Ws.hasOwnProperty(h)},B}(),hs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},ka={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Ks=function(){function B(d,h){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Ja(d,h,this.mode),this.settings=h,this.leftrightDepth=0}var l=B.prototype;return l.expect=function(h,m){if(m===void 0&&(m=!0),this.fetch().text!==h)throw new se("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());m&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},l.parseExpression=function(h,m){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var M=this.fetch();if(B.endOfExpression.indexOf(M.text)!==-1||m&&M.text===m||h&&ds[M.text]&&ds[M.text].infix)break;var pe=this.parseAtom(m);if(!pe)break;D.push(pe)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)},l.handleInfixNodes=function(h){for(var m=-1,D,M=0;M<h.length;M++){var pe=Wr(h[M],"infix");if(pe){if(m!==-1)throw new se("only one infix operator per group",pe.token);m=M,D=pe.replaceWith}}if(m!==-1&&D){var Ce,je,dt=h.slice(0,m),St=h.slice(m+1);dt.length===1&&dt[0].type==="ordgroup"?Ce=dt[0]:Ce={type:"ordgroup",mode:this.mode,body:dt},St.length===1&&St[0].type==="ordgroup"?je=St[0]:je={type:"ordgroup",mode:this.mode,body:St};var zt;return D==="\\\\abovefrac"?zt=this.callFunction(D,[Ce,h[m],je],[]):zt=this.callFunction(D,[Ce,je],[]),[zt]}else return h},l.handleSupSubscript=function(h){var m=this.fetch(),D=m.text;this.consume();var M=this.parseGroup(h,!1,B.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!M)throw new se("Expected group after '"+D+"'",m);return M},l.formatUnsupportedCmd=function(h){for(var m=[],D=0;D<h.length;D++)m.push({type:"textord",mode:"text",text:h[D]});var M={type:"text",mode:this.mode,body:m},pe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[M]};return pe},l.parseAtom=function(h){var m=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return m;for(var D,M;;){this.consumeSpaces();var pe=this.fetch();if(pe.text==="\\limits"||pe.text==="\\nolimits"){var Ce=Wr(m,"op");if(Ce){var je=pe.text==="\\limits";Ce.limits=je,Ce.alwaysHandleSupSub=!0}else if(Ce=Wr(m,"operatorname"),Ce&&Ce.alwaysHandleSupSub){var dt=pe.text==="\\limits";Ce.limits=dt}else throw new se("Limit controls must follow a math operator",pe);this.consume()}else if(pe.text==="^"){if(D)throw new se("Double superscript",pe);D=this.handleSupSubscript("superscript")}else if(pe.text==="_"){if(M)throw new se("Double subscript",pe);M=this.handleSupSubscript("subscript")}else if(pe.text==="'"){if(D)throw new se("Double superscript",pe);var St={type:"textord",mode:this.mode,text:"\\prime"},zt=[St];for(this.consume();this.fetch().text==="'";)zt.push(St),this.consume();this.fetch().text==="^"&&zt.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:zt}}else break}return D||M?{type:"supsub",mode:this.mode,base:m,sup:D,sub:M}:m},l.parseFunction=function(h,m,D){var M=this.fetch(),pe=M.text,Ce=ds[pe];if(!Ce)return null;if(this.consume(),D!=null&&Ce.greediness<=D)throw new se("Got function '"+pe+"' with no arguments"+(m?" as "+m:""),M);if(this.mode==="text"&&!Ce.allowedInText)throw new se("Can't use function '"+pe+"' in text mode",M);if(this.mode==="math"&&Ce.allowedInMath===!1)throw new se("Can't use function '"+pe+"' in math mode",M);var je=this.parseArguments(pe,Ce),dt=je.args,St=je.optArgs;return this.callFunction(pe,dt,St,M,h)},l.callFunction=function(h,m,D,M,pe){var Ce={funcName:h,parser:this,token:M,breakOnTokenText:pe},je=ds[h];if(je&&je.handler)return je.handler(Ce,m,D);throw new se("No function handler for "+h)},l.parseArguments=function(h,m){var D=m.numArgs+m.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var M=m.greediness,pe=[],Ce=[],je=0;je<D;je++){var dt=m.argTypes&&m.argTypes[je],St=je<m.numOptionalArgs,zt=je>0&&!St||je===0&&!St&&this.mode==="math",rr=this.parseGroupOfType("argument to '"+h+"'",dt,St,M,zt);if(!rr){if(St){Ce.push(null);continue}throw new se("Expected group after '"+h+"'",this.fetch())}(St?Ce:pe).push(rr)}return{args:pe,optArgs:Ce}},l.parseGroupOfType=function(h,m,D,M,pe){switch(m){case"color":return pe&&this.consumeSpaces(),this.parseColorGroup(D);case"size":return pe&&this.consumeSpaces(),this.parseSizeGroup(D);case"url":return this.parseUrlGroup(D,pe);case"math":case"text":return this.parseGroup(h,D,M,void 0,m,pe);case"hbox":{var Ce=this.parseGroup(h,D,M,void 0,"text",pe);if(!Ce)return Ce;var je={type:"styling",mode:Ce.mode,body:[Ce],style:"text"};return je}case"raw":{if(pe&&this.consumeSpaces(),D&&this.fetch().text==="{")return null;var dt=this.parseStringGroup("raw",D,!0);if(dt)return{type:"raw",mode:"text",string:dt.text};throw new se("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,D,M,void 0,void 0,pe);default:throw new se("Unknown group type as "+h,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(h,m,D){var M=m?"[":"{",pe=m?"]":"}",Ce=this.fetch();if(Ce.text!==M){if(m)return null;if(D&&Ce.text!=="EOF"&&/[^{}[\]]/.test(Ce.text))return this.consume(),Ce}var je=this.mode;this.mode="text",this.expect(M);for(var dt="",St=this.fetch(),zt=0,rr=St,hr;(hr=this.fetch()).text!==pe||D&&zt>0;){switch(hr.text){case"EOF":throw new se("Unexpected end of input in "+h,St.range(rr,dt));case M:zt++;break;case pe:zt--;break}rr=hr,dt+=rr.text,this.consume()}return this.expect(pe),this.mode=je,St.range(rr,dt)},l.parseRegexGroup=function(h,m){var D=this.mode;this.mode="text";for(var M=this.fetch(),pe=M,Ce="",je;(je=this.fetch()).text!=="EOF"&&h.test(Ce+je.text);)pe=je,Ce+=pe.text,this.consume();if(Ce==="")throw new se("Invalid "+m+": '"+M.text+"'",M);return this.mode=D,M.range(pe,Ce)},l.parseColorGroup=function(h){var m=this.parseStringGroup("color",h);if(!m)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(m.text);if(!D)throw new se("Invalid color: '"+m.text+"'",m);var M=D[0];return/^[0-9a-f]{6}$/i.test(M)&&(M="#"+M),{type:"color-token",mode:this.mode,color:M}},l.parseSizeGroup=function(h){var m,D=!1;if(!h&&this.fetch().text!=="{"?m=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):m=this.parseStringGroup("size",h),!m)return null;!h&&m.text.length===0&&(m.text="0pt",D=!0);var M=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m.text);if(!M)throw new se("Invalid size: '"+m.text+"'",m);var pe={number:+(M[1]+M[2]),unit:M[3]};if(!Se(pe))throw new se("Invalid unit: '"+pe.unit+"'",m);return{type:"size",mode:this.mode,value:pe,isBlank:D}},l.parseUrlGroup=function(h,m){this.gullet.lexer.setCatcode("%",13);var D=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!D)return null;var M=D.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:M}},l.parseGroup=function(h,m,D,M,pe,Ce){var je=this.mode;pe&&this.switchMode(pe),Ce&&this.consumeSpaces();var dt=this.fetch(),St=dt.text,zt;if(m?St==="[":St==="{"||St==="\\begingroup"){this.consume();var rr=B.endOfGroup[St];this.gullet.beginGroup();var hr=this.parseExpression(!1,rr),xr=this.fetch();this.expect(rr),this.gullet.endGroup(),zt={type:"ordgroup",mode:this.mode,loc:ge.range(dt,xr),body:hr,semisimple:St==="\\begingroup"||void 0}}else if(m)zt=null;else if(zt=this.parseFunction(M,h,D)||this.parseSymbol(),zt==null&&St[0]==="\\"&&!Ws.hasOwnProperty(St)){if(this.settings.throwOnError)throw new se("Undefined control sequence: "+St,dt);zt=this.formatUnsupportedCmd(St),this.consume()}return pe&&this.switchMode(je),zt},l.formLigatures=function(h){for(var m=h.length-1,D=0;D<m;++D){var M=h[D],pe=M.text;pe==="-"&&h[D+1].text==="-"&&(D+1<m&&h[D+2].text==="-"?(h.splice(D,3,{type:"textord",mode:"text",loc:ge.range(M,h[D+2]),text:"---"}),m-=2):(h.splice(D,2,{type:"textord",mode:"text",loc:ge.range(M,h[D+1]),text:"--"}),m-=1)),(pe==="'"||pe==="`")&&h[D+1].text===pe&&(h.splice(D,2,{type:"textord",mode:"text",loc:ge.range(M,h[D+1]),text:pe+pe}),m-=1)}},l.parseSymbol=function(){var h=this.fetch(),m=h.text;if(/^\\verb[^a-zA-Z]/.test(m)){this.consume();var D=m.slice(5),M=D.charAt(0)==="*";if(M&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new se(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:M}}ka.hasOwnProperty(m[0])&&!It[this.mode][m[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+m[0]+'" used in math mode',h),m=ka[m[0]]+m.substr(1));var pe=oi.exec(m);pe&&(m=m.substring(0,pe.index),m==="i"?m="\u0131":m==="j"&&(m="\u0237"));var Ce;if(It[this.mode][m]){this.settings.strict&&this.mode==="math"&&vr.indexOf(m)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+m[0]+'" used in math mode',h);var je=It[this.mode][m].group,dt=ge.range(h),St;if(nt.hasOwnProperty(je)){var zt=je;St={type:"atom",mode:this.mode,family:zt,loc:dt,text:m}}else St={type:je,mode:this.mode,loc:dt,text:m};Ce=St}else if(m.charCodeAt(0)>=128)this.settings.strict&&(Pe(m.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+m[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+m[0]+'"'+(" ("+m.charCodeAt(0)+")"),h)),Ce={type:"textord",mode:"text",loc:ge.range(h),text:m};else return null;if(this.consume(),pe)for(var rr=0;rr<pe[0].length;rr++){var hr=pe[0][rr];if(!hs[hr])throw new se("Unknown accent ' "+hr+"'",h);var xr=hs[hr][this.mode];if(!xr)throw new se("Accent "+hr+" unsupported in "+this.mode+" mode",h);Ce={type:"accent",mode:this.mode,loc:ge.range(h),label:xr,isStretchy:!1,isShifty:!0,base:Ce}}return Ce},B}();Ks.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ks.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ks.SUPSUB_GREEDINESS=1;var Oa=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new Ks(l,d);delete h.gullet.macros.current["\\df@tag"];var m=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new se("\\tag works only in display equations");h.gullet.feed("\\df@tag"),m=[{type:"tag",mode:"text",body:m,tag:h.parse()}]}return m},fa=Oa,Pa=function(l,d,h){d.textContent="";var m=bi(l,h).toNode();d.appendChild(m)};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 se("KaTeX doesn't work in quirks mode.")});var fs=function(l,d){var h=bi(l,d).toMarkup();return h},ma=function(l,d){var h=new k(d);return fa(l,h)},As=function(l,d,h){if(h.throwOnError||!(l instanceof se))throw l;var m=Ye.makeSpan(["katex-error"],[new ee(d)]);return m.setAttribute("title",l.toString()),m.setAttribute("style","color:"+h.errorColor),m},bi=function(l,d){var h=new k(d);try{var m=fa(l,h);return Hn(m,l,h)}catch(D){return As(D,l,h)}},qa=function(l,d){var h=new k(d);try{var m=fa(l,h);return ei(m,l,h)}catch(D){return As(D,l,h)}},Fa={version:"0.11.1",render:Pa,renderToString:fs,ParseError:se,__parse:ma,__renderToDomTree:bi,__renderToHTMLTree:qa,__setFontMetrics:Dt,__defineSymbol:_,__defineMacro:Me,__domTree:{Span:F,Anchor:fe,SymbolNode:ee,SvgNode:he,PathNode:be,LineNode:Oe}},eo=y.default=Fa}]).default})},32834:function(Qt){(function(it,y){Qt.exports=y()})(this,function(){"use strict";function it(ke,He){for(var Ze=0;Ze<He.length;Ze++){var X=He[Ze];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ke,X.key,X)}}function y(ke,He,Ze){return He&&it(ke.prototype,He),Ze&&it(ke,Ze),ke}function v(ke,He){if(ke){if(typeof ke=="string")return Y(ke,He);var Ze=Object.prototype.toString.call(ke).slice(8,-1);if(Ze==="Object"&&ke.constructor&&(Ze=ke.constructor.name),Ze==="Map"||Ze==="Set")return Array.from(ke);if(Ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ze))return Y(ke,He)}}function Y(ke,He){(He==null||He>ke.length)&&(He=ke.length);for(var Ze=0,X=new Array(He);Ze<He;Ze++)X[Ze]=ke[Ze];return X}function ge(ke,He){var Ze=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(Ze)return(Ze=Ze.call(ke)).next.bind(Ze);if(Array.isArray(ke)||(Ze=v(ke))||He&&ke&&typeof ke.length=="number"){Ze&&(ke=Ze);var X=0;return function(){return X>=ke.length?{done:!0}:{done:!1,value:ke[X++]}}}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 Ie={exports:{}};function ne(){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 se(ke){Ie.exports.defaults=ke}Ie.exports={defaults:ne(),getDefaults:ne,changeDefaults:se};var ye=/[&<>"']/,ve=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,O={"&":"&","<":"<",">":">",'"':""","'":"'"},A=function(He){return O[He]};function c(ke,He){if(He){if(ye.test(ke))return ke.replace(ve,A)}else if(a.test(ke))return ke.replace(P,A);return ke}var w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function E(ke){return ke.replace(w,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 V=/(^|[^\[])\^/g;function te(ke,He){ke=ke.source||ke,He=He||"";var Ze={replace:function(oe,De){return De=De.source||De,De=De.replace(V,"$1"),ke=ke.replace(oe,De),Ze},getRegex:function(){return new RegExp(ke,He)}};return Ze}var R=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function U(ke,He,Ze){if(ke){var X;try{X=decodeURIComponent(E(Ze)).replace(R,"").toLowerCase()}catch(oe){return null}if(X.indexOf("javascript:")===0||X.indexOf("vbscript:")===0||X.indexOf("data:")===0)return null}He&&!k.test(Ze)&&(Ze=q(He,Ze));try{Ze=encodeURI(Ze).replace(/%25/g,"%")}catch(oe){return null}return Ze}var ae={},x=/^[^:]+:\/*[^/]*$/,z=/^([^:]+:)[\s\S]*$/,Q=/^([^:]+:\/*[^/]*)[\s\S]*$/;function q(ke,He){ae[" "+ke]||(x.test(ke)?ae[" "+ke]=ke+"/":ae[" "+ke]=Be(ke,"/",!0)),ke=ae[" "+ke];var Ze=ke.indexOf(":")===-1;return He.substring(0,2)==="//"?Ze?He:ke.replace(z,"$1")+He:He.charAt(0)==="/"?Ze?He:ke.replace(Q,"$1")+He:ke+He}var ce={exec:function(){}};function xe(ke){for(var He=1,Ze,X;He<arguments.length;He++){Ze=arguments[He];for(X in Ze)Object.prototype.hasOwnProperty.call(Ze,X)&&(ke[X]=Ze[X])}return ke}function we(ke,He){var Ze=ke.replace(/\|/g,function(De,ze,j){for(var Pt=!1,Ae=ze;--Ae>=0&&j[Ae]==="\\";)Pt=!Pt;return Pt?"|":" |"}),X=Ze.split(/ \|/),oe=0;if(X.length>He)X.splice(He);else for(;X.length<He;)X.push("");for(;oe<X.length;oe++)X[oe]=X[oe].trim().replace(/\\\|/g,"|");return X}function Be(ke,He,Ze){var X=ke.length;if(X===0)return"";for(var oe=0;oe<X;){var De=ke.charAt(X-oe-1);if(De===He&&!Ze)oe++;else if(De!==He&&Ze)oe++;else break}return ke.substr(0,X-oe)}function H(ke,He){if(ke.indexOf(He[1])===-1)return-1;for(var Ze=ke.length,X=0,oe=0;oe<Ze;oe++)if(ke[oe]==="\\")oe++;else if(ke[oe]===He[0])X++;else if(ke[oe]===He[1]&&(X--,X<0))return oe;return-1}function L(ke){ke&&ke.sanitize&&!ke.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 Z(ke,He){if(He<1)return"";for(var Ze="";He>1;)He&1&&(Ze+=ke),He>>=1,ke+=ke;return Ze+ke}var W={escape:c,unescape:E,edit:te,cleanUrl:U,resolveUrl:q,noopTest:ce,merge:xe,splitCells:we,rtrim:Be,findClosingBracket:H,checkSanitizeDeprecation:L,repeatString:Z},le=Ie.exports.defaults,J=W.rtrim,g=W.splitCells,S=W.escape,K=W.findClosingBracket;function G(ke,He,Ze){var X=He.href,oe=He.title?S(He.title):null,De=ke[1].replace(/\\([\[\]])/g,"$1");return ke[0].charAt(0)!=="!"?{type:"link",raw:Ze,href:X,title:oe,text:De}:{type:"image",raw:Ze,href:X,title:oe,text:S(De)}}function Pe(ke,He){var Ze=ke.match(/^(\s+)(?:```)/);if(Ze===null)return He;var X=Ze[1];return He.split(`
|
|
|
`).map(function(oe){var De=oe.match(/^\s+/);if(De===null)return oe;var ze=De[0];return ze.length>=X.length?oe.slice(X.length):oe}).join(`
|
|
|
`)}var Ne=function(){function ke(Ze){this.options=Ze||le}var He=ke.prototype;return He.space=function(X){var oe=this.rules.block.newline.exec(X);if(oe)return oe[0].length>1?{type:"space",raw:oe[0]}:{raw:`
|
|
|
`}},He.code=function(X){var oe=this.rules.block.code.exec(X);if(oe){var De=oe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:oe[0],codeBlockStyle:"indented",text:this.options.pedantic?De:J(De,`
|
|
|
`)}}},He.fences=function(X){var oe=this.rules.block.fences.exec(X);if(oe){var De=oe[0],ze=Pe(De,oe[3]||"");return{type:"code",raw:De,lang:oe[2]?oe[2].trim():oe[2],text:ze}}},He.heading=function(X){var oe=this.rules.block.heading.exec(X);if(oe){var De=oe[2].trim();if(/#$/.test(De)){var ze=J(De,"#");(this.options.pedantic||!ze||/ $/.test(ze))&&(De=ze.trim())}return{type:"heading",raw:oe[0],depth:oe[1].length,text:De}}},He.nptable=function(X){var oe=this.rules.block.nptable.exec(X);if(oe){var De={type:"table",header:g(oe[1].replace(/^ *| *\| *$/g,"")),align:oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:oe[3]?oe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:oe[0]};if(De.header.length===De.align.length){var ze=De.align.length,j;for(j=0;j<ze;j++)/^ *-+: *$/.test(De.align[j])?De.align[j]="right":/^ *:-+: *$/.test(De.align[j])?De.align[j]="center":/^ *:-+ *$/.test(De.align[j])?De.align[j]="left":De.align[j]=null;for(ze=De.cells.length,j=0;j<ze;j++)De.cells[j]=g(De.cells[j],De.header.length);return De}}},He.hr=function(X){var oe=this.rules.block.hr.exec(X);if(oe)return{type:"hr",raw:oe[0]}},He.blockquote=function(X){var oe=this.rules.block.blockquote.exec(X);if(oe){var De=oe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:oe[0],text:De}}},He.list=function(X){var oe=this.rules.block.list.exec(X);if(oe){var De=oe[0],ze=oe[2],j=ze.length>1,Pt={type:"list",raw:De,ordered:j,start:j?+ze.slice(0,-1):"",loose:!1,items:[]},Ae=oe[0].match(this.rules.block.item),Zt=!1,lr,wt,Mt,pt,Et,Re,st,ct,gt,Je=Ae.length;Mt=this.rules.block.listItemStart.exec(Ae[0]);for(var Ft=0;Ft<Je;Ft++){if(lr=Ae[Ft],De=lr,this.options.pedantic||(gt=lr.match(new RegExp("\\n\\s*\\n {0,"+(Mt[0].length-1)+"}\\S")),gt&&(Et=lr.length-gt.index+Ae.slice(Ft+1).join(`
|
|
|
`).length,Pt.raw=Pt.raw.substring(0,Pt.raw.length-Et),lr=lr.substring(0,gt.index),De=lr,Je=Ft+1)),Ft!==Je-1){if(pt=this.rules.block.listItemStart.exec(Ae[Ft+1]),this.options.pedantic?pt[1].length>Mt[1].length:pt[1].length>=Mt[0].length||pt[1].length>3){Ae.splice(Ft,2,Ae[Ft]+(!this.options.pedantic&&pt[1].length<Mt[0].length&&!Ae[Ft].match(/\n$/)?"":`
|
|
|
`)+Ae[Ft+1]),Ft--,Je--;continue}else(!this.options.pedantic||this.options.smartLists?pt[2][pt[2].length-1]!==ze[ze.length-1]:j===(pt[2].length===1))&&(Et=Ae.slice(Ft+1).join(`
|
|
|
`).length,Pt.raw=Pt.raw.substring(0,Pt.raw.length-Et),Ft=Je-1);Mt=pt}wt=lr.length,lr=lr.replace(/^ *([*+-]|\d+[.)]) ?/,""),~lr.indexOf(`
|
|
|
`)&&(wt-=lr.length,lr=this.options.pedantic?lr.replace(/^ {1,4}/gm,""):lr.replace(new RegExp("^ {1,"+wt+"}","gm"),"")),lr=J(lr,`
|
|
|
`),Ft!==Je-1&&(De=De+`
|
|
|
`),Re=Zt||/\n\n(?!\s*$)/.test(De),Ft!==Je-1&&(Zt=De.slice(-2)===`
|
|
|
|
|
|
`,Re||(Re=Zt)),Re&&(Pt.loose=!0),this.options.gfm&&(st=/^\[[ xX]\] /.test(lr),ct=void 0,st&&(ct=lr[1]!==" ",lr=lr.replace(/^\[[ xX]\] +/,""))),Pt.items.push({type:"list_item",raw:De,task:st,checked:ct,loose:Re,text:lr})}return Pt}},He.html=function(X){var oe=this.rules.block.html.exec(X);if(oe)return{type:this.options.sanitize?"paragraph":"html",raw:oe[0],pre:!this.options.sanitizer&&(oe[1]==="pre"||oe[1]==="script"||oe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(oe[0]):S(oe[0]):oe[0]}},He.def=function(X){var oe=this.rules.block.def.exec(X);if(oe){oe[3]&&(oe[3]=oe[3].substring(1,oe[3].length-1));var De=oe[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:De,raw:oe[0],href:oe[2],title:oe[3]}}},He.table=function(X){var oe=this.rules.block.table.exec(X);if(oe){var De={type:"table",header:g(oe[1].replace(/^ *| *\| *$/g,"")),align:oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:oe[3]?oe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(De.header.length===De.align.length){De.raw=oe[0];var ze=De.align.length,j;for(j=0;j<ze;j++)/^ *-+: *$/.test(De.align[j])?De.align[j]="right":/^ *:-+: *$/.test(De.align[j])?De.align[j]="center":/^ *:-+ *$/.test(De.align[j])?De.align[j]="left":De.align[j]=null;for(ze=De.cells.length,j=0;j<ze;j++)De.cells[j]=g(De.cells[j].replace(/^ *\| *| *\| *$/g,""),De.header.length);return De}}},He.lheading=function(X){var oe=this.rules.block.lheading.exec(X);if(oe)return{type:"heading",raw:oe[0],depth:oe[2].charAt(0)==="="?1:2,text:oe[1]}},He.paragraph=function(X){var oe=this.rules.block.paragraph.exec(X);if(oe)return{type:"paragraph",raw:oe[0],text:oe[1].charAt(oe[1].length-1)===`
|
|
|
`?oe[1].slice(0,-1):oe[1]}},He.text=function(X){var oe=this.rules.block.text.exec(X);if(oe)return{type:"text",raw:oe[0],text:oe[0]}},He.escape=function(X){var oe=this.rules.inline.escape.exec(X);if(oe)return{type:"escape",raw:oe[0],text:S(oe[1])}},He.tag=function(X,oe,De){var ze=this.rules.inline.tag.exec(X);if(ze)return!oe&&/^<a /i.test(ze[0])?oe=!0:oe&&/^<\/a>/i.test(ze[0])&&(oe=!1),!De&&/^<(pre|code|kbd|script)(\s|>)/i.test(ze[0])?De=!0:De&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ze[0])&&(De=!1),{type:this.options.sanitize?"text":"html",raw:ze[0],inLink:oe,inRawBlock:De,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):S(ze[0]):ze[0]}},He.link=function(X){var oe=this.rules.inline.link.exec(X);if(oe){var De=oe[2].trim();if(!this.options.pedantic&&/^</.test(De)){if(!/>$/.test(De))return;var ze=J(De.slice(0,-1),"\\");if((De.length-ze.length)%2===0)return}else{var j=K(oe[2],"()");if(j>-1){var Pt=oe[0].indexOf("!")===0?5:4,Ae=Pt+oe[1].length+j;oe[2]=oe[2].substring(0,j),oe[0]=oe[0].substring(0,Ae).trim(),oe[3]=""}}var Zt=oe[2],lr="";if(this.options.pedantic){var wt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Zt);wt&&(Zt=wt[1],lr=wt[3])}else lr=oe[3]?oe[3].slice(1,-1):"";return Zt=Zt.trim(),/^</.test(Zt)&&(this.options.pedantic&&!/>$/.test(De)?Zt=Zt.slice(1):Zt=Zt.slice(1,-1)),G(oe,{href:Zt&&Zt.replace(this.rules.inline._escapes,"$1"),title:lr&&lr.replace(this.rules.inline._escapes,"$1")},oe[0])}},He.reflink=function(X,oe){var De;if((De=this.rules.inline.reflink.exec(X))||(De=this.rules.inline.nolink.exec(X))){var ze=(De[2]||De[1]).replace(/\s+/g," ");if(ze=oe[ze.toLowerCase()],!ze||!ze.href){var j=De[0].charAt(0);return{type:"text",raw:j,text:j}}return G(De,ze,De[0])}},He.emStrong=function(X,oe,De){De===void 0&&(De="");var ze=this.rules.inline.emStrong.lDelim.exec(X);if(ze&&!(ze[3]&&De.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var j=ze[1]||ze[2]||"";if(!j||j&&(De===""||this.rules.inline.punctuation.exec(De))){var Pt=ze[0].length-1,Ae,Zt,lr=Pt,wt=0,Mt=ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Mt.lastIndex=0,oe=oe.slice(-1*X.length+Pt);(ze=Mt.exec(oe))!=null;)if(Ae=ze[1]||ze[2]||ze[3]||ze[4]||ze[5]||ze[6],!!Ae){if(Zt=Ae.length,ze[3]||ze[4]){lr+=Zt;continue}else if((ze[5]||ze[6])&&Pt%3&&!((Pt+Zt)%3)){wt+=Zt;continue}if(lr-=Zt,!(lr>0))return Zt=Math.min(Zt,Zt+lr+wt),Math.min(Pt,Zt)%2?{type:"em",raw:X.slice(0,Pt+ze.index+Zt+1),text:X.slice(1,Pt+ze.index+Zt)}:{type:"strong",raw:X.slice(0,Pt+ze.index+Zt+1),text:X.slice(2,Pt+ze.index+Zt-1)}}}}},He.codespan=function(X){var oe=this.rules.inline.code.exec(X);if(oe){var De=oe[2].replace(/\n/g," "),ze=/[^ ]/.test(De),j=/^ /.test(De)&&/ $/.test(De);return ze&&j&&(De=De.substring(1,De.length-1)),De=S(De,!0),{type:"codespan",raw:oe[0],text:De}}},He.br=function(X){var oe=this.rules.inline.br.exec(X);if(oe)return{type:"br",raw:oe[0]}},He.del=function(X){var oe=this.rules.inline.del.exec(X);if(oe)return{type:"del",raw:oe[0],text:oe[2]}},He.autolink=function(X,oe){var De=this.rules.inline.autolink.exec(X);if(De){var ze,j;return De[2]==="@"?(ze=S(this.options.mangle?oe(De[1]):De[1]),j="mailto:"+ze):(ze=S(De[1]),j=ze),{type:"link",raw:De[0],text:ze,href:j,tokens:[{type:"text",raw:ze,text:ze}]}}},He.url=function(X,oe){var De;if(De=this.rules.inline.url.exec(X)){var ze,j;if(De[2]==="@")ze=S(this.options.mangle?oe(De[0]):De[0]),j="mailto:"+ze;else{var Pt;do Pt=De[0],De[0]=this.rules.inline._backpedal.exec(De[0])[0];while(Pt!==De[0]);ze=S(De[0]),De[1]==="www."?j="http://"+ze:j=ze}return{type:"link",raw:De[0],text:ze,href:j,tokens:[{type:"text",raw:ze,text:ze}]}}},He.inlineText=function(X,oe,De){var ze=this.rules.inline.text.exec(X);if(ze){var j;return oe?j=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):S(ze[0]):ze[0]:j=S(this.options.smartypants?De(ze[0]):ze[0]),{type:"text",raw:ze[0],text:j}}},ke}(),Ue=W.noopTest,Ve=W.edit,qe=W.merge,tt={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:Ue,table:Ue,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};tt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,tt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,tt.def=Ve(tt.def).replace("label",tt._label).replace("title",tt._title).getRegex(),tt.bullet=/(?:[*+-]|\d{1,9}[.)])/,tt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,tt.item=Ve(tt.item,"gm").replace(/bull/g,tt.bullet).getRegex(),tt.listItemStart=Ve(/^( *)(bull) */).replace("bull",tt.bullet).getRegex(),tt.list=Ve(tt.list).replace(/bull/g,tt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+tt.def.source+")").getRegex(),tt._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",tt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,tt.html=Ve(tt.html,"i").replace("comment",tt._comment).replace("tag",tt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tt.paragraph=Ve(tt._paragraph).replace("hr",tt.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",tt._tag).getRegex(),tt.blockquote=Ve(tt.blockquote).replace("paragraph",tt.paragraph).getRegex(),tt.normal=qe({},tt),tt.gfm=qe({},tt.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*|$)"}),tt.gfm.nptable=Ve(tt.gfm.nptable).replace("hr",tt.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",tt._tag).getRegex(),tt.gfm.table=Ve(tt.gfm.table).replace("hr",tt.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",tt._tag).getRegex(),tt.pedantic=qe({},tt.normal,{html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tt._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:Ue,paragraph:Ve(tt.normal._paragraph).replace("hr",tt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",tt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var lt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ue,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:Ue,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};lt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",lt.punctuation=Ve(lt.punctuation).replace(/punctuation/g,lt._punctuation).getRegex(),lt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,lt.escapedEmSt=/\\\*|\\_/g,lt._comment=Ve(tt._comment).replace("(?:-->|$)","-->").getRegex(),lt.emStrong.lDelim=Ve(lt.emStrong.lDelim).replace(/punct/g,lt._punctuation).getRegex(),lt.emStrong.rDelimAst=Ve(lt.emStrong.rDelimAst,"g").replace(/punct/g,lt._punctuation).getRegex(),lt.emStrong.rDelimUnd=Ve(lt.emStrong.rDelimUnd,"g").replace(/punct/g,lt._punctuation).getRegex(),lt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,lt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,lt._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])?)+(?![-_])/,lt.autolink=Ve(lt.autolink).replace("scheme",lt._scheme).replace("email",lt._email).getRegex(),lt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,lt.tag=Ve(lt.tag).replace("comment",lt._comment).replace("attribute",lt._attribute).getRegex(),lt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,lt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,lt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,lt.link=Ve(lt.link).replace("label",lt._label).replace("href",lt._href).replace("title",lt._title).getRegex(),lt.reflink=Ve(lt.reflink).replace("label",lt._label).getRegex(),lt.reflinkSearch=Ve(lt.reflinkSearch,"g").replace("reflink",lt.reflink).replace("nolink",lt.nolink).getRegex(),lt.normal=qe({},lt),lt.pedantic=qe({},lt.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:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",lt._label).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt._label).getRegex()}),lt.gfm=qe({},lt.normal,{escape:Ve(lt.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),lt.gfm.url=Ve(lt.gfm.url,"i").replace("email",lt.gfm._extended_email).getRegex(),lt.breaks=qe({},lt.gfm,{br:Ve(lt.br).replace("{2,}","*").getRegex(),text:Ve(lt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ut={block:tt,inline:lt},Yt=Ne,sr=Ie.exports.defaults,Bt=Ut.block,Ht=Ut.inline,Xt=W.repeatString;function de(ke){return ke.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 Ee(ke){var He="",Ze,X,oe=ke.length;for(Ze=0;Ze<oe;Ze++)X=ke.charCodeAt(Ze),Math.random()>.5&&(X="x"+X.toString(16)),He+="&#"+X+";";return He}var F=function(){function ke(Ze){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ze||sr,this.options.tokenizer=this.options.tokenizer||new Yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var X={block:Bt.normal,inline:Ht.normal};this.options.pedantic?(X.block=Bt.pedantic,X.inline=Ht.pedantic):this.options.gfm&&(X.block=Bt.gfm,this.options.breaks?X.inline=Ht.breaks:X.inline=Ht.gfm),this.tokenizer.rules=X}ke.lex=function(X,oe){var De=new ke(oe);return De.lex(X)},ke.lexInline=function(X,oe){var De=new ke(oe);return De.inlineTokens(X)};var He=ke.prototype;return He.lex=function(X){return X=X.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(X,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(X,oe,De){oe===void 0&&(oe=[]),De===void 0&&(De=!0),this.options.pedantic&&(X=X.replace(/^ +$/gm,""));for(var ze,j,Pt,Ae;X;){if(ze=this.tokenizer.space(X)){X=X.substring(ze.raw.length),ze.type&&oe.push(ze);continue}if(ze=this.tokenizer.code(X)){X=X.substring(ze.raw.length),Ae=oe[oe.length-1],Ae&&Ae.type==="paragraph"?(Ae.raw+=`
|
|
|
`+ze.raw,Ae.text+=`
|
|
|
`+ze.text):oe.push(ze);continue}if(ze=this.tokenizer.fences(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.heading(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.nptable(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.hr(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.blockquote(X)){X=X.substring(ze.raw.length),ze.tokens=this.blockTokens(ze.text,[],De),oe.push(ze);continue}if(ze=this.tokenizer.list(X)){for(X=X.substring(ze.raw.length),Pt=ze.items.length,j=0;j<Pt;j++)ze.items[j].tokens=this.blockTokens(ze.items[j].text,[],!1);oe.push(ze);continue}if(ze=this.tokenizer.html(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(De&&(ze=this.tokenizer.def(X))){X=X.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(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.lheading(X)){X=X.substring(ze.raw.length),oe.push(ze);continue}if(De&&(ze=this.tokenizer.paragraph(X))){X=X.substring(ze.raw.length),oe.push(ze);continue}if(ze=this.tokenizer.text(X)){X=X.substring(ze.raw.length),Ae=oe[oe.length-1],Ae&&Ae.type==="text"?(Ae.raw+=`
|
|
|
`+ze.raw,Ae.text+=`
|
|
|
`+ze.text):oe.push(ze);continue}if(X){var Zt="Infinite loop on byte: "+X.charCodeAt(0);if(this.options.silent){console.error(Zt);break}else throw new Error(Zt)}}return oe},He.inline=function(X){var oe,De,ze,j,Pt,Ae,Zt=X.length;for(oe=0;oe<Zt;oe++)switch(Ae=X[oe],Ae.type){case"paragraph":case"text":case"heading":{Ae.tokens=[],this.inlineTokens(Ae.text,Ae.tokens);break}case"table":{for(Ae.tokens={header:[],cells:[]},j=Ae.header.length,De=0;De<j;De++)Ae.tokens.header[De]=[],this.inlineTokens(Ae.header[De],Ae.tokens.header[De]);for(j=Ae.cells.length,De=0;De<j;De++)for(Pt=Ae.cells[De],Ae.tokens.cells[De]=[],ze=0;ze<Pt.length;ze++)Ae.tokens.cells[De][ze]=[],this.inlineTokens(Pt[ze],Ae.tokens.cells[De][ze]);break}case"blockquote":{this.inline(Ae.tokens);break}case"list":{for(j=Ae.items.length,De=0;De<j;De++)this.inline(Ae.items[De].tokens);break}}return X},He.inlineTokens=function(X,oe,De,ze){oe===void 0&&(oe=[]),De===void 0&&(De=!1),ze===void 0&&(ze=!1);var j,Pt,Ae=X,Zt,lr,wt;if(this.tokens.links){var Mt=Object.keys(this.tokens.links);if(Mt.length>0)for(;(Zt=this.tokenizer.rules.inline.reflinkSearch.exec(Ae))!=null;)Mt.includes(Zt[0].slice(Zt[0].lastIndexOf("[")+1,-1))&&(Ae=Ae.slice(0,Zt.index)+"["+Xt("a",Zt[0].length-2)+"]"+Ae.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Zt=this.tokenizer.rules.inline.blockSkip.exec(Ae))!=null;)Ae=Ae.slice(0,Zt.index)+"["+Xt("a",Zt[0].length-2)+"]"+Ae.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Zt=this.tokenizer.rules.inline.escapedEmSt.exec(Ae))!=null;)Ae=Ae.slice(0,Zt.index)+"++"+Ae.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;X;){if(lr||(wt=""),lr=!1,j=this.tokenizer.escape(X)){X=X.substring(j.raw.length),oe.push(j);continue}if(j=this.tokenizer.tag(X,De,ze)){X=X.substring(j.raw.length),De=j.inLink,ze=j.inRawBlock;var pt=oe[oe.length-1];pt&&j.type==="text"&&pt.type==="text"?(pt.raw+=j.raw,pt.text+=j.text):oe.push(j);continue}if(j=this.tokenizer.link(X)){X=X.substring(j.raw.length),j.type==="link"&&(j.tokens=this.inlineTokens(j.text,[],!0,ze)),oe.push(j);continue}if(j=this.tokenizer.reflink(X,this.tokens.links)){X=X.substring(j.raw.length);var Et=oe[oe.length-1];j.type==="link"?(j.tokens=this.inlineTokens(j.text,[],!0,ze),oe.push(j)):Et&&j.type==="text"&&Et.type==="text"?(Et.raw+=j.raw,Et.text+=j.text):oe.push(j);continue}if(j=this.tokenizer.emStrong(X,Ae,wt)){X=X.substring(j.raw.length),j.tokens=this.inlineTokens(j.text,[],De,ze),oe.push(j);continue}if(j=this.tokenizer.codespan(X)){X=X.substring(j.raw.length),oe.push(j);continue}if(j=this.tokenizer.br(X)){X=X.substring(j.raw.length),oe.push(j);continue}if(j=this.tokenizer.del(X)){X=X.substring(j.raw.length),j.tokens=this.inlineTokens(j.text,[],De,ze),oe.push(j);continue}if(j=this.tokenizer.autolink(X,Ee)){X=X.substring(j.raw.length),oe.push(j);continue}if(!De&&(j=this.tokenizer.url(X,Ee))){X=X.substring(j.raw.length),oe.push(j);continue}if(j=this.tokenizer.inlineText(X,ze,de)){X=X.substring(j.raw.length),j.raw.slice(-1)!=="_"&&(wt=j.raw.slice(-1)),lr=!0,Pt=oe[oe.length-1],Pt&&Pt.type==="text"?(Pt.raw+=j.raw,Pt.text+=j.text):oe.push(j);continue}if(X){var Re="Infinite loop on byte: "+X.charCodeAt(0);if(this.options.silent){console.error(Re);break}else throw new Error(Re)}}return oe},y(ke,null,[{key:"rules",get:function(){return{block:Bt,inline:Ht}}}]),ke}(),fe=Ie.exports.defaults,Te=W.cleanUrl,I=W.escape,ee=function(){function ke(Ze){this.options=Ze||fe}var He=ke.prototype;return He.code=function(X,oe,De){var ze=(oe||"").match(/\S*/)[0];if(this.options.highlight){var j=this.options.highlight(X,ze);j!=null&&j!==X&&(De=!0,X=j)}return X=X.replace(/\n$/,"")+`
|
|
|
`,ze?'<pre><code class="'+this.options.langPrefix+I(ze,!0)+'">'+(De?X:I(X,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(De?X:I(X,!0))+`</code></pre>
|
|
|
`},He.blockquote=function(X){return`<blockquote>
|
|
|
`+X+`</blockquote>
|
|
|
`},He.html=function(X){return X},He.heading=function(X,oe,De,ze){return this.options.headerIds?"<h"+oe+' id="'+this.options.headerPrefix+ze.slug(De)+'">'+X+"</h"+oe+`>
|
|
|
`:"<h"+oe+">"+X+"</h"+oe+`>
|
|
|
`},He.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},He.list=function(X,oe,De){var ze=oe?"ol":"ul",j=oe&&De!==1?' start="'+De+'"':"";return"<"+ze+j+`>
|
|
|
`+X+"</"+ze+`>
|
|
|
`},He.listitem=function(X){return"<li>"+X+`</li>
|
|
|
`},He.checkbox=function(X){return"<input "+(X?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(X){return"<p>"+X+`</p>
|
|
|
`},He.table=function(X,oe){return oe&&(oe="<tbody>"+oe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+X+`</thead>
|
|
|
`+oe+`</table>
|
|
|
`},He.tablerow=function(X){return`<tr>
|
|
|
`+X+`</tr>
|
|
|
`},He.tablecell=function(X,oe){var De=oe.header?"th":"td",ze=oe.align?"<"+De+' align="'+oe.align+'">':"<"+De+">";return ze+X+"</"+De+`>
|
|
|
`},He.strong=function(X){return"<strong>"+X+"</strong>"},He.em=function(X){return"<em>"+X+"</em>"},He.codespan=function(X){return"<code>"+X+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(X){return"<del>"+X+"</del>"},He.link=function(X,oe,De){if(X=Te(this.options.sanitize,this.options.baseUrl,X),X===null)return De;var ze='<a href="'+I(X)+'"';return oe&&(ze+=' title="'+oe+'"'),ze+=">"+De+"</a>",ze},He.image=function(X,oe,De){if(X=Te(this.options.sanitize,this.options.baseUrl,X),X===null)return De;var ze='<img src="'+X+'" alt="'+De+'"';return oe&&(ze+=' title="'+oe+'"'),ze+=this.options.xhtml?"/>":">",ze},He.text=function(X){return X},ke}(),he=function(){function ke(){}var He=ke.prototype;return He.strong=function(X){return X},He.em=function(X){return X},He.codespan=function(X){return X},He.del=function(X){return X},He.html=function(X){return X},He.text=function(X){return X},He.link=function(X,oe,De){return""+De},He.image=function(X,oe,De){return""+De},He.br=function(){return""},ke}(),be=function(){function ke(){this.seen={}}var He=ke.prototype;return He.serialize=function(X){return X.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},He.getNextSafeSlug=function(X,oe){var De=X,ze=0;if(this.seen.hasOwnProperty(De)){ze=this.seen[X];do ze++,De=X+"-"+ze;while(this.seen.hasOwnProperty(De))}return oe||(this.seen[X]=ze,this.seen[De]=0),De},He.slug=function(X,oe){oe===void 0&&(oe={});var De=this.serialize(X);return this.getNextSafeSlug(De,oe.dryrun)},ke}(),Oe=ee,Fe=he,Qe=be,ht=Ie.exports.defaults,ot=W.unescape,Xe=function(){function ke(Ze){this.options=Ze||ht,this.options.renderer=this.options.renderer||new Oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fe,this.slugger=new Qe}ke.parse=function(X,oe){var De=new ke(oe);return De.parse(X)},ke.parseInline=function(X,oe){var De=new ke(oe);return De.parseInline(X)};var He=ke.prototype;return He.parse=function(X,oe){oe===void 0&&(oe=!0);var De="",ze,j,Pt,Ae,Zt,lr,wt,Mt,pt,Et,Re,st,ct,gt,Je,Ft,$t,Wt,gr=X.length;for(ze=0;ze<gr;ze++)switch(Et=X[ze],Et.type){case"space":continue;case"hr":{De+=this.renderer.hr();continue}case"heading":{De+=this.renderer.heading(this.parseInline(Et.tokens),Et.depth,ot(this.parseInline(Et.tokens,this.textRenderer)),this.slugger);continue}case"code":{De+=this.renderer.code(Et.text,Et.lang,Et.escaped);continue}case"table":{for(Mt="",wt="",Ae=Et.header.length,j=0;j<Ae;j++)wt+=this.renderer.tablecell(this.parseInline(Et.tokens.header[j]),{header:!0,align:Et.align[j]});for(Mt+=this.renderer.tablerow(wt),pt="",Ae=Et.cells.length,j=0;j<Ae;j++){for(lr=Et.tokens.cells[j],wt="",Zt=lr.length,Pt=0;Pt<Zt;Pt++)wt+=this.renderer.tablecell(this.parseInline(lr[Pt]),{header:!1,align:Et.align[Pt]});pt+=this.renderer.tablerow(wt)}De+=this.renderer.table(Mt,pt);continue}case"blockquote":{pt=this.parse(Et.tokens),De+=this.renderer.blockquote(pt);continue}case"list":{for(Re=Et.ordered,st=Et.start,ct=Et.loose,Ae=Et.items.length,pt="",j=0;j<Ae;j++)Je=Et.items[j],Ft=Je.checked,$t=Je.task,gt="",Je.task&&(Wt=this.renderer.checkbox(Ft),ct?Je.tokens.length>0&&Je.tokens[0].type==="text"?(Je.tokens[0].text=Wt+" "+Je.tokens[0].text,Je.tokens[0].tokens&&Je.tokens[0].tokens.length>0&&Je.tokens[0].tokens[0].type==="text"&&(Je.tokens[0].tokens[0].text=Wt+" "+Je.tokens[0].tokens[0].text)):Je.tokens.unshift({type:"text",text:Wt}):gt+=Wt),gt+=this.parse(Je.tokens,ct),pt+=this.renderer.listitem(gt,$t,Ft);De+=this.renderer.list(pt,Re,st);continue}case"html":{De+=this.renderer.html(Et.text);continue}case"paragraph":{De+=this.renderer.paragraph(this.parseInline(Et.tokens));continue}case"text":{for(pt=Et.tokens?this.parseInline(Et.tokens):Et.text;ze+1<gr&&X[ze+1].type==="text";)Et=X[++ze],pt+=`
|
|
|
`+(Et.tokens?this.parseInline(Et.tokens):Et.text);De+=oe?this.renderer.paragraph(pt):pt;continue}default:{var vr='Token with "'+Et.type+'" type was not found.';if(this.options.silent){console.error(vr);return}else throw new Error(vr)}}return De},He.parseInline=function(X,oe){oe=oe||this.renderer;var De="",ze,j,Pt=X.length;for(ze=0;ze<Pt;ze++)switch(j=X[ze],j.type){case"escape":{De+=oe.text(j.text);break}case"html":{De+=oe.html(j.text);break}case"link":{De+=oe.link(j.href,j.title,this.parseInline(j.tokens,oe));break}case"image":{De+=oe.image(j.href,j.title,j.text);break}case"strong":{De+=oe.strong(this.parseInline(j.tokens,oe));break}case"em":{De+=oe.em(this.parseInline(j.tokens,oe));break}case"codespan":{De+=oe.codespan(j.text);break}case"br":{De+=oe.br();break}case"del":{De+=oe.del(this.parseInline(j.tokens,oe));break}case"text":{De+=oe.text(j.text);break}default:{var Ae='Token with "'+j.type+'" type was not found.';if(this.options.silent){console.error(Ae);return}else throw new Error(Ae)}}return De},ke}(),Dt=F,kt=Xe,Le=Ne,Ke=ee,nt=he,ft=be,At=W.merge,It=W.checkSanitizeDeprecation,_=W.escape,C=Ie.exports.getDefaults,et=Ie.exports.changeDefaults,$=Ie.exports.defaults;function me(ke,He,Ze){if(typeof ke=="undefined"||ke===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");if(typeof He=="function"&&(Ze=He,He=null),He=At({},me.defaults,He||{}),It(He),Ze){var X=He.highlight,oe;try{oe=Dt.lex(ke,He)}catch(Pt){return Ze(Pt)}var De=function(Ae){var Zt;if(!Ae)try{He.walkTokens&&me.walkTokens(oe,He.walkTokens),Zt=kt.parse(oe,He)}catch(lr){Ae=lr}return He.highlight=X,Ae?Ze(Ae):Ze(null,Zt)};if(!X||X.length<3||(delete He.highlight,!oe.length))return De();var ze=0;me.walkTokens(oe,function(Pt){Pt.type==="code"&&(ze++,setTimeout(function(){X(Pt.text,Pt.lang,function(Ae,Zt){if(Ae)return De(Ae);Zt!=null&&Zt!==Pt.text&&(Pt.text=Zt,Pt.escaped=!0),ze--,ze===0&&De()})},0))}),ze===0&&De();return}try{var j=Dt.lex(ke,He);return He.walkTokens&&me.walkTokens(j,He.walkTokens),kt.parse(j,He)}catch(Pt){if(Pt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+_(Pt.message+"",!0)+"</pre>";throw Pt}}me.options=me.setOptions=function(ke){return At(me.defaults,ke),et(me.defaults),me},me.getDefaults=C,me.defaults=$,me.use=function(ke){var He=At({},ke);if(ke.renderer&&function(){var X=me.defaults.renderer||new Ke,oe=function(j){var Pt=X[j];X[j]=function(){for(var Ae=arguments.length,Zt=new Array(Ae),lr=0;lr<Ae;lr++)Zt[lr]=arguments[lr];var wt=ke.renderer[j].apply(X,Zt);return wt===!1&&(wt=Pt.apply(X,Zt)),wt}};for(var De in ke.renderer)oe(De);He.renderer=X}(),ke.tokenizer&&function(){var X=me.defaults.tokenizer||new Le,oe=function(j){var Pt=X[j];X[j]=function(){for(var Ae=arguments.length,Zt=new Array(Ae),lr=0;lr<Ae;lr++)Zt[lr]=arguments[lr];var wt=ke.tokenizer[j].apply(X,Zt);return wt===!1&&(wt=Pt.apply(X,Zt)),wt}};for(var De in ke.tokenizer)oe(De);He.tokenizer=X}(),ke.walkTokens){var Ze=me.defaults.walkTokens;He.walkTokens=function(X){ke.walkTokens(X),Ze&&Ze(X)}}me.setOptions(He)},me.walkTokens=function(ke,He){for(var Ze=ge(ke),X;!(X=Ze()).done;){var oe=X.value;switch(He(oe),oe.type){case"table":{for(var De=ge(oe.tokens.header),ze;!(ze=De()).done;){var j=ze.value;me.walkTokens(j,He)}for(var Pt=ge(oe.tokens.cells),Ae;!(Ae=Pt()).done;)for(var Zt=Ae.value,lr=ge(Zt),wt;!(wt=lr()).done;){var Mt=wt.value;me.walkTokens(Mt,He)}break}case"list":{me.walkTokens(oe.items,He);break}default:oe.tokens&&me.walkTokens(oe.tokens,He)}}},me.parseInline=function(ke,He){if(typeof ke=="undefined"||ke===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");He=At({},me.defaults,He||{}),It(He);try{var Ze=Dt.lexInline(ke,He);return He.walkTokens&&me.walkTokens(Ze,He.walkTokens),kt.parseInline(Ze,He)}catch(X){if(X.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+_(X.message+"",!0)+"</pre>";throw X}},me.Parser=kt,me.parser=kt.parse,me.Renderer=Ke,me.TextRenderer=nt,me.Lexer=Dt,me.lexer=Dt.lex,me.Tokenizer=Le,me.Slugger=ft,me.parse=me;var tr=me;return tr})},11690:function(Qt){const it=/[&<>"']/,y=/[&<>"']/g,v=/[<>"']|&(?!#?\w+;)/,Y=/[<>"']|&(?!#?\w+;)/g,ge={"&":"&","<":"<",">":">",'"':""","'":"'"},Ie=q=>ge[q];function ne(q,ce){if(ce){if(it.test(q))return q.replace(y,Ie)}else if(v.test(q))return q.replace(Y,Ie);return q}const se=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ye(q){return q.replace(se,(ce,xe)=>(xe=xe.toLowerCase(),xe==="colon"?":":xe.charAt(0)==="#"?xe.charAt(1)==="x"?String.fromCharCode(parseInt(xe.substring(2),16)):String.fromCharCode(+xe.substring(1)):""))}const ve=/(^|[^\[])\^/g;function a(q,ce){q=q.source||q,ce=ce||"";const xe={replace:(we,Be)=>(Be=Be.source||Be,Be=Be.replace(ve,"$1"),q=q.replace(we,Be),xe),getRegex:()=>new RegExp(q,ce)};return xe}const P=/[^\w:]/g,O=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(q,ce,xe){if(q){let we;try{we=decodeURIComponent(ye(xe)).replace(P,"").toLowerCase()}catch(Be){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}ce&&!O.test(xe)&&(xe=te(ce,xe));try{xe=encodeURI(xe).replace(/%25/g,"%")}catch(we){return null}return xe}const c={},w=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function te(q,ce){c[" "+q]||(w.test(q)?c[" "+q]=q+"/":c[" "+q]=ae(q,"/",!0)),q=c[" "+q];const xe=q.indexOf(":")===-1;return ce.substring(0,2)==="//"?xe?ce:q.replace(E,"$1")+ce:ce.charAt(0)==="/"?xe?ce:q.replace(V,"$1")+ce:q+ce}const R={exec:function(){}};function k(q){let ce=1,xe,we;for(;ce<arguments.length;ce++){xe=arguments[ce];for(we in xe)Object.prototype.hasOwnProperty.call(xe,we)&&(q[we]=xe[we])}return q}function U(q,ce){const xe=q.replace(/\|/g,(H,L,Z)=>{let W=!1,le=L;for(;--le>=0&&Z[le]==="\\";)W=!W;return W?"|":" |"}),we=xe.split(/ \|/);let Be=0;if(we.length>ce)we.splice(ce);else for(;we.length<ce;)we.push("");for(;Be<we.length;Be++)we[Be]=we[Be].trim().replace(/\\\|/g,"|");return we}function ae(q,ce,xe){const we=q.length;if(we===0)return"";let Be=0;for(;Be<we;){const H=q.charAt(we-Be-1);if(H===ce&&!xe)Be++;else if(H!==ce&&xe)Be++;else break}return q.substr(0,we-Be)}function x(q,ce){if(q.indexOf(ce[1])===-1)return-1;const xe=q.length;let we=0,Be=0;for(;Be<xe;Be++)if(q[Be]==="\\")Be++;else if(q[Be]===ce[0])we++;else if(q[Be]===ce[1]&&(we--,we<0))return Be;return-1}function z(q){q&&q.sanitize&&!q.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Q(q,ce){if(ce<1)return"";let xe="";for(;ce>1;)ce&1&&(xe+=q),ce>>=1,q+=q;return xe+q}Qt.exports={escape:ne,unescape:ye,edit:a,cleanUrl:A,resolveUrl:te,noopTest:R,merge:k,splitCells:U,rtrim:ae,findClosingBracket:x,checkSanitizeDeprecation:z,repeatString:Q}},75918:function(Qt,it,y){"use strict";y.d(it,{Wi:function(){return se},Z0:function(){return ye},aU:function(){return ne},eZ:function(){return a},wY:function(){return ve}});var v=y(4348),Y=y(69323),ge=y(13268),Ie=function(P,O,A,c){function w(E){return E instanceof A?E:new A(function(V){V(E)})}return new(A||(A=Promise))(function(E,V){function te(U){try{k(c.next(U))}catch(ae){V(ae)}}function R(U){try{k(c.throw(U))}catch(ae){V(ae)}}function k(U){U.done?E(U.value):w(U.value).then(te,R)}k((c=c.apply(P,O||[])).next())})};class ne extends Y.JT{constructor(O,A="",c="",w=!0,E){super(),this._onDidChange=this._register(new v.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=O,this._label=A,this._cssClass=c,this._enabled=w,this._actionCallback=E}get id(){return this._id}get label(){return this._label}set label(O){this._setLabel(O)}_setLabel(O){this._label!==O&&(this._label=O,this._onDidChange.fire({label:O}))}get tooltip(){return this._tooltip||""}set tooltip(O){this._setTooltip(O)}_setTooltip(O){this._tooltip!==O&&(this._tooltip=O,this._onDidChange.fire({tooltip:O}))}get class(){return this._cssClass}set class(O){this._setClass(O)}_setClass(O){this._cssClass!==O&&(this._cssClass=O,this._onDidChange.fire({class:O}))}get enabled(){return this._enabled}set enabled(O){this._setEnabled(O)}_setEnabled(O){this._enabled!==O&&(this._enabled=O,this._onDidChange.fire({enabled:O}))}get checked(){return this._checked}set checked(O){this._setChecked(O)}_setChecked(O){this._checked!==O&&(this._checked=O,this._onDidChange.fire({checked:O}))}run(O,A){return Ie(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(O))})}}class se extends Y.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new v.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new v.Q5),this.onDidRun=this._onDidRun.event}run(O,A){return Ie(this,void 0,void 0,function*(){if(!O.enabled)return;this._onBeforeRun.fire({action:O});let c;try{yield this.runAction(O,A)}catch(w){c=w}this._onDidRun.fire({action:O,error:c})})}runAction(O,A){return Ie(this,void 0,void 0,function*(){yield O.run(A)})}}class ye extends ne{constructor(O){super(ye.ID,O,O?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ye.ID="vs.actions.separator";class ve{constructor(O,A,c,w){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=O,this.label=A,this.class=w,this._actions=c}get actions(){return this._actions}dispose(){}run(){return Ie(this,void 0,void 0,function*(){})}}class a extends ne{constructor(){super(a.ID,ge.N("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},76068:function(Qt,it,y){"use strict";y.d(it,{ok:function(){return v}});function v(Y,ge){if(!Y)throw new Error(ge?`Assertion failed (${ge})`:"Assertion Failed")}},52615:function(Qt,it,y){"use strict";y.d(it,{CM:function(){return ne},JL:function(){return se},dT:function(){return ve},fK:function(){return Ie},lA:function(){return ye}});var v=y(4348);class Y{constructor(){this._icons=new Map,this._onDidRegister=new v.Q5}add(P){const O=this._icons.get(P.id);O?P.description?O.description=P.description:console.error(`Duplicate registration of codicon ${P.id}`):(this._icons.set(P.id,P),this._onDidRegister.fire(P))}get(P){return this._icons.get(P)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ge=new Y,Ie=ge;function ne(a,P){return new ye(a,P)}function se(a){return a?a.replace(/\$\((.*?)\)/g,(P,O)=>` ${O} `).trim():""}class ye{constructor(P,O,A){this.id=P,this.definition=O,this.description=A,ge.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var ve;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const P=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function O(w){if(w instanceof ye)return["codicon","codicon-"+w.id];const E=P.exec(w.id);if(!E)return O(ye.error);let[,V,te]=E;const R=["codicon","codicon-"+V];return te&&R.push("codicon-modifier-"+te.substr(1)),R}a.asClassNameArray=O;function A(w){return O(w).join(" ")}a.asClassName=A;function c(w){return"."+O(w).join(".")}a.asCSSSelector=c})(ve||(ve={})),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"})}(ye||(ye={}))},79881:function(Qt,it,y){"use strict";y.d(it,{B8:function(){return O},Cp:function(){return Ie},F0:function(){return ve},L6:function(){return P},VV:function(){return ye},b1:function(){return a},dL:function(){return ge},ri:function(){return ne}});class v{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
|
|
|
|
|
|
`+c.stack):c},0)}}emit(c){this.listeners.forEach(w=>{w(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const Y=new v;function ge(A){ye(A)||Y.onUnexpectedError(A)}function Ie(A){ye(A)||Y.onUnexpectedExternalError(A)}function ne(A){if(A instanceof Error){let{name:c,message:w}=A;const E=A.stacktrace||A.stack;return{$isError:!0,name:c,message:w,stack:E}}return A}const se="Canceled";function ye(A){return A instanceof Error&&A.name===se&&A.message===se}function ve(){const A=new Error(se);return A.name=A.message,A}function a(A){return A?new Error(`Illegal argument: ${A}`):new Error("Illegal argument")}function P(A){return A?new Error(`Illegal state: ${A}`):new Error("Illegal state")}class O extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}},4348:function(Qt,it,y){"use strict";y.d(it,{D0:function(){return O},E7:function(){return A},K3:function(){return P},Q5:function(){return a},ZD:function(){return c},ju:function(){return ne}});var v=y(79881),Y=y(69323),ge=y(34502),Ie=y(95830),ne;(function(w){w.None=()=>Y.JT.None;function E(Z){return(W,le=null,J)=>{let g=!1,S;return S=Z(K=>{if(!g)return S?S.dispose():g=!0,W.call(le,K)},null,J),g&&S.dispose(),S}}w.once=E;function V(Z,W){return x((le,J=null,g)=>Z(S=>le.call(J,W(S)),null,g))}w.map=V;function te(Z,W){return x((le,J=null,g)=>Z(S=>{W(S),le.call(J,S)},null,g))}w.forEach=te;function R(Z,W){return x((le,J=null,g)=>Z(S=>W(S)&&le.call(J,S),null,g))}w.filter=R;function k(Z){return Z}w.signal=k;function U(...Z){return(W,le=null,J)=>(0,Y.F8)(...Z.map(g=>g(S=>W.call(le,S),null,J)))}w.any=U;function ae(Z,W,le){let J=le;return V(Z,g=>(J=W(J,g),J))}w.reduce=ae;function x(Z){let W;const le=new a({onFirstListenerAdd(){W=Z(le.fire,le)},onLastListenerRemove(){W.dispose()}});return le.event}function z(Z,W,le=100,J=!1,g){let S,K,G,Pe=0;const Ne=new a({leakWarningThreshold:g,onFirstListenerAdd(){S=Z(Ue=>{Pe++,K=W(K,Ue),J&&!G&&(Ne.fire(K),K=void 0),clearTimeout(G),G=setTimeout(()=>{const Ve=K;K=void 0,G=void 0,(!J||Pe>1)&&Ne.fire(Ve),Pe=0},le)})},onLastListenerRemove(){S.dispose()}});return Ne.event}w.debounce=z;function Q(Z,W=(le,J)=>le===J){let le=!0,J;return R(Z,g=>{const S=le||!W(g,J);return le=!1,J=g,S})}w.latch=Q;function q(Z,W){return[w.filter(Z,W),w.filter(Z,le=>!W(le))]}w.split=q;function ce(Z,W=!1,le=[]){let J=le.slice(),g=Z(G=>{J?J.push(G):K.fire(G)});const S=()=>{J&&J.forEach(G=>K.fire(G)),J=null},K=new a({onFirstListenerAdd(){g||(g=Z(G=>K.fire(G)))},onFirstListenerDidAdd(){J&&(W?setTimeout(S):S())},onLastListenerRemove(){g&&g.dispose(),g=null}});return K.event}w.buffer=ce;class xe{constructor(W){this.event=W}map(W){return new xe(V(this.event,W))}forEach(W){return new xe(te(this.event,W))}filter(W){return new xe(R(this.event,W))}reduce(W,le){return new xe(ae(this.event,W,le))}latch(){return new xe(Q(this.event))}debounce(W,le=100,J=!1,g){return new xe(z(this.event,W,le,J,g))}on(W,le,J){return this.event(W,le,J)}once(W,le,J){return E(this.event)(W,le,J)}}function we(Z){return new xe(Z)}w.chain=we;function Be(Z,W,le=J=>J){const J=(...G)=>K.fire(le(...G)),g=()=>Z.on(W,J),S=()=>Z.removeListener(W,J),K=new a({onFirstListenerAdd:g,onLastListenerRemove:S});return K.event}w.fromNodeEventEmitter=Be;function H(Z,W,le=J=>J){const J=(...G)=>K.fire(le(...G)),g=()=>Z.addEventListener(W,J),S=()=>Z.removeEventListener(W,J),K=new a({onFirstListenerAdd:g,onLastListenerRemove:S});return K.event}w.fromDOMEventEmitter=H;function L(Z){return new Promise(W=>E(Z)(W))}w.toPromise=L})(ne||(ne={}));class se{constructor(E){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${E}_${se._idPool++}`}start(E){this._stopWatch=new Ie.G(!0),this._listenerCount=E}stop(){if(this._stopWatch){const E=this._stopWatch.elapsed();this._elapsedOverall+=E,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${E.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}se._idPool=0;let ye=-1;class ve{constructor(E,V=Math.random().toString(18).slice(2,5)){this.customThreshold=E,this.name=V,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(E){let V=ye;if(typeof this.customThreshold=="number"&&(V=this.customThreshold),V<=0||E<V)return;this._stacks||(this._stacks=new Map);const te=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),R=this._stacks.get(te)||0;if(this._stacks.set(te,R+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=V*.5;let k,U=0;for(const[ae,x]of this._stacks)(!k||U<x)&&(k=ae,U=x);console.warn(`[${this.name}] potential listener LEAK detected, having ${E} listeners already. MOST frequent listener (${U}):`),console.warn(k)}return()=>{const k=this._stacks.get(te)||0;this._stacks.set(te,k-1)}}}class a{constructor(E){var V;this._disposed=!1,this._options=E,this._leakageMon=ye>0?new ve(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((V=this._options)===null||V===void 0)&&V._profName?new se(this._options._profName):void 0}get event(){return this._event||(this._event=(E,V,te)=>{var R;this._listeners||(this._listeners=new ge.S);const k=this._listeners.isEmpty();k&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const U=this._listeners.push(V?[E,V]:E);k&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,E,V);const ae=(R=this._leakageMon)===null||R===void 0?void 0:R.check(this._listeners.size),x=(0,Y.OF)(()=>{ae&&ae(),this._disposed||(U(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return te instanceof Y.SL?te.add(x):Array.isArray(te)&&te.push(x),x}),this._event}fire(E){var V,te;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ge.S);for(let R of this._listeners)this._deliveryQueue.push([R,E]);for((V=this._perfMon)===null||V===void 0||V.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[R,k]=this._deliveryQueue.shift();try{typeof R=="function"?R.call(void 0,k):R[0].call(R[1],k)}catch(U){(0,v.dL)(U)}}(te=this._perfMon)===null||te===void 0||te.stop()}}dispose(){var E,V,te,R,k;this._disposed||(this._disposed=!0,(E=this._listeners)===null||E===void 0||E.clear(),(V=this._deliveryQueue)===null||V===void 0||V.clear(),(R=(te=this._options)===null||te===void 0?void 0:te.onLastListenerRemove)===null||R===void 0||R.call(te),(k=this._leakageMon)===null||k===void 0||k.dispose())}}class P extends a{constructor(E){super(E),this._isPaused=0,this._eventQueue=new ge.S,this._mergeFn=E==null?void 0:E.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const E=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(E))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(E){this._listeners&&(this._isPaused!==0?this._eventQueue.push(E):super.fire(E))}}class O extends P{constructor(E){var V;super(E),this._delay=(V=E.delay)!==null&&V!==void 0?V:100}fire(E){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(E)}}class A{constructor(){this.buffers=[]}wrapEvent(E){return(V,te,R)=>E(k=>{const U=this.buffers[this.buffers.length-1];U?U.push(()=>V.call(te,k)):V.call(te,k)},void 0,R)}bufferEvents(E){const V=[];this.buffers.push(V);const te=E();return this.buffers.pop(),V.forEach(R=>R()),te}}class c{constructor(){this.listening=!1,this.inputEvent=ne.None,this.inputEventListener=Y.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(E){this.inputEvent=E,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=E(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Qt,it,y){"use strict";y.d(it,{I:function(){return v}});function v(Y){const ge=this;let Ie=!1,ne;return function(){return Ie||(Ie=!0,ne=Y.apply(ge,arguments)),ne}}},88226:function(Qt,it,y){"use strict";y.d(it,{$:function(){return v}});var v;(function(Y){function ge(U){return U&&typeof U=="object"&&typeof U[Symbol.iterator]=="function"}Y.is=ge;const Ie=Object.freeze([]);function ne(){return Ie}Y.empty=ne;function*se(U){yield U}Y.single=se;function ye(U){return U||Ie}Y.from=ye;function ve(U){return!U||U[Symbol.iterator]().next().done===!0}Y.isEmpty=ve;function a(U){return U[Symbol.iterator]().next().value}Y.first=a;function P(U,ae){for(const x of U)if(ae(x))return!0;return!1}Y.some=P;function O(U,ae){for(const x of U)if(ae(x))return x}Y.find=O;function*A(U,ae){for(const x of U)ae(x)&&(yield x)}Y.filter=A;function*c(U,ae){let x=0;for(const z of U)yield ae(z,x++)}Y.map=c;function*w(...U){for(const ae of U)for(const x of ae)yield x}Y.concat=w;function*E(U){for(const ae of U)for(const x of ae)yield x}Y.concatNested=E;function V(U,ae,x){let z=x;for(const Q of U)z=ae(z,Q);return z}Y.reduce=V;function*te(U,ae,x=U.length){for(ae<0&&(ae+=U.length),x<0?x+=U.length:x>U.length&&(x=U.length);ae<x;ae++)yield U[ae]}Y.slice=te;function R(U,ae=Number.POSITIVE_INFINITY){const x=[];if(ae===0)return[x,U];const z=U[Symbol.iterator]();for(let Q=0;Q<ae;Q++){const q=z.next();if(q.done)return[x,Y.empty()];x.push(q.value)}return[x,{[Symbol.iterator](){return z}}]}Y.consume=R;function k(U,ae,x=(z,Q)=>z===Q){const z=U[Symbol.iterator](),Q=ae[Symbol.iterator]();for(;;){const q=z.next(),ce=Q.next();if(q.done!==ce.done)return!1;if(q.done)return!0;if(!x(q.value,ce.value))return!1}}Y.equals=k})(v||(v={}))},69323:function(Qt,it,y){"use strict";y.d(it,{B9:function(){return c},F8:function(){return w},JT:function(){return te},Jz:function(){return k},OF:function(){return E},SL:function(){return V},Wf:function(){return A},XK:function(){return R},dk:function(){return P}});var v=y(17845),Y=y(88226);const ge=!1;let Ie=null;function ne(U){Ie=U}if(ge){const U="__is_disposable_tracked__";ne(new class{trackDisposable(ae){const x=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ae[U]||console.log(x)},3e3)}setParent(ae,x){if(ae&&ae!==te.None)try{ae[U]=!0}catch(z){}}markAsDisposed(ae){if(ae&&ae!==te.None)try{ae[U]=!0}catch(x){}}markAsSingleton(ae){}})}function se(U){return Ie==null||Ie.trackDisposable(U),U}function ye(U){Ie==null||Ie.markAsDisposed(U)}function ve(U,ae){Ie==null||Ie.setParent(U,ae)}function a(U,ae){if(Ie)for(const x of U)Ie.setParent(x,ae)}function P(U){return Ie==null||Ie.markAsSingleton(U),U}class O extends Error{constructor(ae){super(`Encountered errors while disposing of store. Errors: [${ae.join(", ")}]`),this.errors=ae}}function A(U){return typeof U.dispose=="function"&&U.dispose.length===0}function c(U){if(Y.$.is(U)){let ae=[];for(const x of U)if(x)try{x.dispose()}catch(z){ae.push(z)}if(ae.length===1)throw ae[0];if(ae.length>1)throw new O(ae);return Array.isArray(U)?[]:U}else if(U)return U.dispose(),U}function w(...U){const ae=E(()=>c(U));return a(U,ae),ae}function E(U){const ae=se({dispose:(0,v.I)(()=>{ye(ae),U()})});return ae}class V{constructor(){this._toDispose=new Set,this._isDisposed=!1,se(this)}dispose(){this._isDisposed||(ye(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(ae){if(!ae)return ae;if(ae===this)throw new Error("Cannot register a disposable on itself!");return ve(ae,this),this._isDisposed?V.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(ae),ae}}V.DISABLE_DISPOSED_WARNING=!1;class te{constructor(){this._store=new V,se(this),ve(this._store,this)}dispose(){ye(this),this._store.dispose()}_register(ae){if(ae===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ae)}}te.None=Object.freeze({dispose(){}});class R{constructor(){this._isDisposed=!1,se(this)}get value(){return this._isDisposed?void 0:this._value}set value(ae){var x;this._isDisposed||ae===this._value||((x=this._value)===null||x===void 0||x.dispose(),ae&&ve(ae,this),this._value=ae)}clear(){this.value=void 0}dispose(){var ae;this._isDisposed=!0,ye(this),(ae=this._value)===null||ae===void 0||ae.dispose(),this._value=void 0}clearAndLeak(){const ae=this._value;return this._value=void 0,ae&&ve(ae,null),ae}}class k{constructor(ae){this.object=ae}dispose(){}}},34502:function(Qt,it,y){"use strict";y.d(it,{S:function(){return Y}});class v{constructor(Ie){this.element=Ie,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class Y{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let Ie=this._first;for(;Ie!==v.Undefined;){const ne=Ie.next;Ie.prev=v.Undefined,Ie.next=v.Undefined,Ie=ne}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(Ie){return this._insert(Ie,!1)}push(Ie){return this._insert(Ie,!0)}_insert(Ie,ne){const se=new v(Ie);if(this._first===v.Undefined)this._first=se,this._last=se;else if(ne){const ve=this._last;this._last=se,se.prev=ve,ve.next=se}else{const ve=this._first;this._first=se,se.next=ve,ve.prev=se}this._size+=1;let ye=!1;return()=>{ye||(ye=!0,this._remove(se))}}shift(){if(this._first!==v.Undefined){const Ie=this._first.element;return this._remove(this._first),Ie}}pop(){if(this._last!==v.Undefined){const Ie=this._last.element;return this._remove(this._last),Ie}}_remove(Ie){if(Ie.prev!==v.Undefined&&Ie.next!==v.Undefined){const ne=Ie.prev;ne.next=Ie.next,Ie.next.prev=ne}else Ie.prev===v.Undefined&&Ie.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):Ie.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):Ie.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let Ie=this._first;for(;Ie!==v.Undefined;)yield Ie.element,Ie=Ie.next}}},23345:function(Qt,it,y){"use strict";y.d(it,{$L:function(){return z},ED:function(){return k},IJ:function(){return ae},OS:function(){return xe},WE:function(){return q},dz:function(){return U},gn:function(){return Q},li:function(){return E},r:function(){return H},tY:function(){return x},xS:function(){return ce}});var v=y(97671),Y;const ge="en";let Ie=!1,ne=!1,se=!1,ye=!1,ve=!1,a=!1,P=!1,O,A=null,c=null,w;const E=typeof self=="object"?self:typeof y.g=="object"?y.g:{};let V;typeof E.vscode!="undefined"&&typeof E.vscode.process!="undefined"?V=E.vscode.process:typeof v!="undefined"&&(V=v);const te=typeof((Y=V==null?void 0:V.versions)===null||Y===void 0?void 0:Y.electron)=="string"&&V.type==="renderer";if(typeof navigator=="object"&&!te)w=navigator.userAgent,Ie=w.indexOf("Windows")>=0,ne=w.indexOf("Macintosh")>=0,P=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,se=w.indexOf("Linux")>=0,a=!0,O=navigator.language,A=O;else if(typeof V=="object"){Ie=V.platform==="win32",ne=V.platform==="darwin",se=V.platform==="linux",ye=se&&!!V.env.SNAP&&!!V.env.SNAP_REVISION,O=ge,A=ge;const L=V.env.VSCODE_NLS_CONFIG;if(L)try{const Z=JSON.parse(L),W=Z.availableLanguages["*"];O=Z.locale,A=W||ge,c=Z._translationsConfigFile}catch(Z){}ve=!0}else console.error("Unable to resolve platform.");let R=0;ne?R=1:Ie?R=3:se&&(R=2);const k=Ie,U=ne,ae=se,x=ve,z=a,Q=P,q=w,ce=function(){if(E.setImmediate)return E.setImmediate.bind(E);if(typeof E.postMessage=="function"&&!E.importScripts){let W=[];E.addEventListener("message",J=>{if(J.data&&J.data.vscodeSetImmediateId)for(let g=0,S=W.length;g<S;g++){const K=W[g];if(K.id===J.data.vscodeSetImmediateId){W.splice(g,1),K.callback();return}}});let le=0;return J=>{const g=++le;W.push({id:g,callback:J}),E.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(V==null?void 0:V.nextTick)=="function")return V.nextTick.bind(V);const Z=Promise.resolve();return W=>Z.then(W)}(),xe=ne||P?2:Ie?1:3;let we=!0,Be=!1;function H(){if(!Be){Be=!0;const L=new Uint8Array(2);L[0]=1,L[1]=2,we=new Uint16Array(L.buffer)[0]===513}return we}},95830:function(Qt,it,y){"use strict";y.d(it,{G:function(){return ge}});var v=y(23345);const Y=v.li.performance&&typeof v.li.performance.now=="function";class ge{constructor(ne){this._highResolution=Y&&ne,this._startTime=this._now(),this._stopTime=-1}static create(ne=!0){return new ge(ne)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?v.li.performance.now():Date.now()}}},82983:function(Qt,it,y){"use strict";y.d(it,{$i:function(){return Pe},C8:function(){return tt},GF:function(){return O},HO:function(){return le},IO:function(){return A},K7:function(){return qe},Kw:function(){return Yt},LC:function(){return E},Mh:function(){return ce},P1:function(){return xe},PJ:function(){return sr},Qe:function(){return Ne},R1:function(){return P},RP:function(){return K},S6:function(){return Bt},TT:function(){return k},Ut:function(){return g},V8:function(){return V},WU:function(){return ge},YK:function(){return Be},YU:function(){return Ie},ZG:function(){return we},ZH:function(){return L},ab:function(){return Ue},c1:function(){return lt},df:function(){return z},ec:function(){return ne},fi:function(){return Ht},fy:function(){return se},j3:function(){return ye},j_:function(){return ae},m5:function(){return v},mK:function(){return x},mr:function(){return c},oH:function(){return Ee},oL:function(){return ve},ok:function(){return q},ow:function(){return te},qq:function(){return Q},qu:function(){return R},rL:function(){return H},uS:function(){return Ut},un:function(){return a},uq:function(){return w},vH:function(){return W},xe:function(){return Ve},zY:function(){return U}});function v(I){return!I||typeof I!="string"?!0:I.trim().length===0}const Y=/{(\d+)}/g;function ge(I,...ee){return ee.length===0?I:I.replace(Y,function(he,be){const Oe=parseInt(be,10);return isNaN(Oe)||Oe<0||Oe>=ee.length?he:ee[Oe]})}function Ie(I){return I.replace(/[<>&]/g,function(ee){switch(ee){case"<":return"<";case">":return">";case"&":return"&";default:return ee}})}function ne(I){return I.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function se(I,ee=" "){const he=ye(I,ee);return ve(he,ee)}function ye(I,ee){if(!I||!ee)return I;const he=ee.length;if(he===0||I.length===0)return I;let be=0;for(;I.indexOf(ee,be)===be;)be=be+he;return I.substring(be)}function ve(I,ee){if(!I||!ee)return I;const he=ee.length,be=I.length;if(he===0||be===0)return I;let Oe=be,Fe=-1;for(;Fe=I.lastIndexOf(ee,Oe-1),!(Fe===-1||Fe+he!==Oe);){if(Fe===0)return"";Oe=Fe}return I.substring(0,Oe)}function a(I){return I.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function P(I){return I.replace(/\*/g,"")}function O(I,ee,he={}){if(!I)throw new Error("Cannot create regex from empty string");ee||(I=ne(I)),he.wholeWord&&(/\B/.test(I.charAt(0))||(I="\\b"+I),/\B/.test(I.charAt(I.length-1))||(I=I+"\\b"));let be="";return he.global&&(be+="g"),he.matchCase||(be+="i"),he.multiline&&(be+="m"),he.unicode&&(be+="u"),new RegExp(I,be)}function A(I){return I.source==="^"||I.source==="^$"||I.source==="$"||I.source==="^\\s*$"?!1:!!(I.exec("")&&I.lastIndex===0)}function c(I){return(I.global?"g":"")+(I.ignoreCase?"i":"")+(I.multiline?"m":"")+(I.unicode?"u":"")}function w(I){return I.split(/\r\n|\r|\n/)}function E(I){for(let ee=0,he=I.length;ee<he;ee++){const be=I.charCodeAt(ee);if(be!==32&&be!==9)return ee}return-1}function V(I,ee=0,he=I.length){for(let be=ee;be<he;be++){const Oe=I.charCodeAt(be);if(Oe!==32&&Oe!==9)return I.substring(ee,be)}return I.substring(ee,he)}function te(I,ee=I.length-1){for(let he=ee;he>=0;he--){const be=I.charCodeAt(he);if(be!==32&&be!==9)return he}return-1}function R(I,ee){return I<ee?-1:I>ee?1:0}function k(I,ee,he=0,be=I.length,Oe=0,Fe=ee.length){for(;he<be&&Oe<Fe;he++,Oe++){let ot=I.charCodeAt(he),Xe=ee.charCodeAt(Oe);if(ot<Xe)return-1;if(ot>Xe)return 1}const Qe=be-he,ht=Fe-Oe;return Qe<ht?-1:Qe>ht?1:0}function U(I,ee){return ae(I,ee,0,I.length,0,ee.length)}function ae(I,ee,he=0,be=I.length,Oe=0,Fe=ee.length){for(;he<be&&Oe<Fe;he++,Oe++){let ot=I.charCodeAt(he),Xe=ee.charCodeAt(Oe);if(ot===Xe)continue;if(ot>=128||Xe>=128)return k(I.toLowerCase(),ee.toLowerCase(),he,be,Oe,Fe);x(ot)&&(ot-=32),x(Xe)&&(Xe-=32);const Dt=ot-Xe;if(Dt!==0)return Dt}const Qe=be-he,ht=Fe-Oe;return Qe<ht?-1:Qe>ht?1:0}function x(I){return I>=97&&I<=122}function z(I){return I>=65&&I<=90}function Q(I,ee){return I.length===ee.length&&ae(I,ee)===0}function q(I,ee){const he=ee.length;return ee.length>I.length?!1:ae(I,ee,0,he)===0}function ce(I,ee){let he,be=Math.min(I.length,ee.length);for(he=0;he<be;he++)if(I.charCodeAt(he)!==ee.charCodeAt(he))return he;return be}function xe(I,ee){let he,be=Math.min(I.length,ee.length);const Oe=I.length-1,Fe=ee.length-1;for(he=0;he<be;he++)if(I.charCodeAt(Oe-he)!==ee.charCodeAt(Fe-he))return he;return be}function we(I){return 55296<=I&&I<=56319}function Be(I){return 56320<=I&&I<=57343}function H(I,ee){return(I-55296<<10)+(ee-56320)+65536}function L(I,ee,he){const be=I.charCodeAt(he);if(we(be)&&he+1<ee){const Oe=I.charCodeAt(he+1);if(Be(Oe))return H(be,Oe)}return be}function Z(I,ee){const he=I.charCodeAt(ee-1);if(Be(he)&&ee>1){const be=I.charCodeAt(ee-2);if(we(be))return H(be,he)}return he}function W(I,ee){const he=Xt.getInstance(),be=ee,Oe=I.length,Fe=L(I,Oe,ee);ee+=Fe>=65536?2:1;let Qe=he.getGraphemeBreakType(Fe);for(;ee<Oe;){const ht=L(I,Oe,ee),ot=he.getGraphemeBreakType(ht);if(Ht(Qe,ot))break;ee+=ht>=65536?2:1,Qe=ot}return ee-be}function le(I,ee){const he=Xt.getInstance(),be=ee,Oe=Z(I,ee);ee-=Oe>=65536?2:1;let Fe=he.getGraphemeBreakType(Oe);for(;ee>0;){const Qe=Z(I,ee),ht=he.getGraphemeBreakType(Qe);if(Ht(ht,Fe))break;ee-=Qe>=65536?2:1,Fe=ht}return be-ee}const J=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(I){return J.test(I)}const S=/(?:[\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 K(I){return S.test(I)}const G=/^[\t\n\r\x20-\x7E]*$/;function Pe(I){return G.test(I)}const Ne=/[\u2028\u2029]/;function Ue(I){return Ne.test(I)}function Ve(I){for(let ee=0,he=I.length;ee<he;ee++)if(qe(I.charCodeAt(ee)))return!0;return!1}function qe(I){return I=+I,I>=11904&&I<=55215||I>=63744&&I<=64255||I>=65281&&I<=65374}function tt(I){return I>=127462&&I<=127487||I===8986||I===8987||I===9200||I===9203||I>=9728&&I<=10175||I===11088||I===11093||I>=127744&&I<=128591||I>=128640&&I<=128764||I>=128992&&I<=129003||I>=129280&&I<=129535||I>=129648&&I<=129750}const lt="\uFEFF";function Ut(I){return!!(I&&I.length>0&&I.charCodeAt(0)===65279)}function Yt(I,ee=!1){return I?(ee&&(I=I.replace(/\\./g,"")),I.toLowerCase()!==I):!1}function sr(I){return I=I%(2*26),I<26?String.fromCharCode(97+I):String.fromCharCode(65+I-26)}function Bt(I){return Xt.getInstance().getGraphemeBreakType(I)}function Ht(I,ee){return I===0?ee!==5&&ee!==7:I===2&&ee===3?!1:I===4||I===2||I===3||ee===4||ee===2||ee===3?!0:!(I===8&&(ee===8||ee===9||ee===11||ee===12)||(I===11||I===9)&&(ee===9||ee===10)||(I===12||I===10)&&ee===10||ee===5||ee===13||ee===7||I===1||I===13&&ee===14||I===6&&ee===6)}class Xt{constructor(){this._data=de()}static getInstance(){return Xt._INSTANCE||(Xt._INSTANCE=new Xt),Xt._INSTANCE}getGraphemeBreakType(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;const he=this._data,be=he.length/3;let Oe=1;for(;Oe<=be;)if(ee<he[3*Oe])Oe=2*Oe;else if(ee>he[3*Oe+1])Oe=2*Oe+1;else return he[3*Oe+2];return 0}}Xt._INSTANCE=null;function de(){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 Ee(I,ee){if(I===0)return 0;const he=F(I,ee);if(he!==void 0)return he;const be=Z(ee,I);return I-=fe(be),I}function F(I,ee){let he=Z(ee,I);for(I-=fe(he);Te(he)||he===65039||he===8419;){if(I===0)return;he=Z(ee,I),I-=fe(he)}if(tt(he)){if(I>=0){const be=Z(ee,I);be===8205&&(I-=fe(be))}return I}}function fe(I){return I>=65536?2:1}function Te(I){return 127995<=I&&I<=127999}},72999:function(Qt,it,y){"use strict";y.d(it,{$E:function(){return E},$K:function(){return ye},D8:function(){return A},HD:function(){return Y},IU:function(){return V},Jp:function(){return ve},Kn:function(){return ge},cW:function(){return P},f6:function(){return te},hj:function(){return Ie},jn:function(){return ne},kJ:function(){return v},mf:function(){return O},o8:function(){return se},p_:function(){return a},vE:function(){return R}});function v(k){return Array.isArray(k)}function Y(k){return typeof k=="string"}function ge(k){return typeof k=="object"&&k!==null&&!Array.isArray(k)&&!(k instanceof RegExp)&&!(k instanceof Date)}function Ie(k){return typeof k=="number"&&!isNaN(k)}function ne(k){return k===!0||k===!1}function se(k){return typeof k=="undefined"}function ye(k){return!ve(k)}function ve(k){return se(k)||k===null}function a(k,U){if(!k)throw new Error(U?`Unexpected type, expected '${U}'`:"Unexpected type")}function P(k){if(ve(k))throw new Error("Assertion Failed: argument is undefined or null");return k}function O(k){return typeof k=="function"}function A(k,U){const ae=Math.min(k.length,U.length);for(let x=0;x<ae;x++)c(k[x],U[x])}function c(k,U){if(Y(U)){if(typeof k!==U)throw new Error(`argument does not match constraint: typeof ${U}`)}else if(O(U)){try{if(k instanceof U)return}catch(ae){}if(!ve(k)&&k.constructor===U||U.length===1&&U.call(void 0,k)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function w(k){let U=[],ae=Object.getPrototypeOf(k);for(;Object.prototype!==ae;)U=U.concat(Object.getOwnPropertyNames(ae)),ae=Object.getPrototypeOf(ae);return U}function E(k){const U=[];for(const ae of w(k))typeof k[ae]=="function"&&U.push(ae);return U}function V(k,U){const ae=z=>function(){const Q=Array.prototype.slice.call(arguments,0);return U(z,Q)};let x={};for(const z of k)x[z]=ae(z);return x}function te(k){return k===null?void 0:k}function R(k,U="Unreachable"){throw new Error(U)}},13268:function(Qt,it,y){"use strict";y.d(it,{N:function(){return Y}});function v(ge,Ie){let ne;return Ie.length===0?ne=ge:ne=ge.replace(/\{(\d+)\}/g,function(se,ye){const ve=ye[0];return typeof Ie[ve]!="undefined"?Ie[ve]:se}),ne}function Y(ge,Ie,...ne){return v(Ie,ne)}},96236:function(Qt,it,y){"use strict";y.d(it,{BH:function(){return V},NZ:function(){return te},U8:function(){return R},co:function(){return E},eH:function(){return w},vr:function(){return c}});var v=y(75918),Y=y(52615),ge=y(4348),Ie=y(88226),ne=y(69323),se=y(34502),ye=y(35884),ve=y(90689),a=y(16925),P=y(49055),O=function(k,U,ae,x){var z=arguments.length,Q=z<3?U:x===null?x=Object.getOwnPropertyDescriptor(U,ae):x,q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(k,U,ae,x);else for(var ce=k.length-1;ce>=0;ce--)(q=k[ce])&&(Q=(z<3?q(Q):z>3?q(U,ae,Q):q(U,ae))||Q);return z>3&&Q&&Object.defineProperty(U,ae,Q),Q},A=function(k,U){return function(ae,x){U(ae,x,k)}};function c(k){return k.command!==void 0}class w{constructor(U){this.id=w._idPool++,this._debugName=U}}w._idPool=0,w.CommandPalette=new w("CommandPalette"),w.EditorContext=new w("EditorContext"),w.SimpleEditorContext=new w("SimpleEditorContext"),w.EditorContextCopy=new w("EditorContextCopy"),w.EditorContextPeek=new w("EditorContextPeek"),w.MenubarEditMenu=new w("MenubarEditMenu"),w.MenubarCopy=new w("MenubarCopy"),w.MenubarGoMenu=new w("MenubarGoMenu"),w.MenubarSelectionMenu=new w("MenubarSelectionMenu"),w.InlineCompletionsActions=new w("InlineCompletionsActions");const E=(0,a.yh)("menuService"),V=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ge.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:k=>k===w.CommandPalette}}addCommand(k){return this.addCommands(Ie.$.single(k))}addCommands(k){for(const U of k)this._commands.set(U.id,U);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,ne.OF)(()=>{let U=!1;for(const ae of k)U=this._commands.delete(ae.id)||U;U&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(k){return this._commands.get(k)}getCommands(){const k=new Map;return this._commands.forEach((U,ae)=>k.set(ae,U)),k}appendMenuItem(k,U){return this.appendMenuItems(Ie.$.single({id:k,item:U}))}appendMenuItems(k){const U=new Set,ae=new se.S;for(const{id:x,item:z}of k){let Q=this._menuItems.get(x);Q||(Q=new se.S,this._menuItems.set(x,Q)),ae.push(Q.push(z)),U.add(x)}return this._onDidChangeMenu.fire(U),(0,ne.OF)(()=>{if(ae.size>0){for(let x of ae)x();this._onDidChangeMenu.fire(U),ae.clear()}})}getMenuItems(k){let U;return this._menuItems.has(k)?U=[...this._menuItems.get(k)]:U=[],k===w.CommandPalette&&this._appendImplicitItems(U),U}_appendImplicitItems(k){const U=new Set;for(const ae of k)c(ae)&&(U.add(ae.command.id),ae.alt&&U.add(ae.alt.id));this._commands.forEach((ae,x)=>{U.has(x)||k.push({command:ae})})}};class te extends v.wY{constructor(U,ae,x,z){super(`submenuitem.${U.submenu.id}`,typeof U.title=="string"?U.title:U.title.value,[],"submenu"),this.item=U,this._menuService=ae,this._contextKeyService=x,this._options=z}get actions(){const U=[],ae=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=ae.getActions(this._options);ae.dispose();for(const[,z]of x)z.length>0&&(U.push(...z),U.push(new v.Z0));return U.length&&U.pop(),U}}let R=class Qo{constructor(U,ae,x,z,Q){var q,ce;if(this._commandService=Q,this.id=U.id,this.label=x!=null&&x.renderShortTitle&&U.shortTitle?typeof U.shortTitle=="string"?U.shortTitle:U.shortTitle.value:typeof U.title=="string"?U.title:U.title.value,this.tooltip=(ce=typeof U.tooltip=="string"?U.tooltip:(q=U.tooltip)===null||q===void 0?void 0:q.value)!==null&&ce!==void 0?ce:"",this.enabled=!U.precondition||z.contextMatchesRules(U.precondition),this.checked=void 0,U.toggled){const xe=U.toggled.condition?U.toggled:{condition:U.toggled};this.checked=z.contextMatchesRules(xe.condition),this.checked&&xe.tooltip&&(this.tooltip=typeof xe.tooltip=="string"?xe.tooltip:xe.tooltip.value),xe.title&&(this.label=typeof xe.title=="string"?xe.title:xe.title.value)}this.item=U,this.alt=ae?new Qo(ae,void 0,x,z,Q):void 0,this._options=x,P.kS.isThemeIcon(U.icon)&&(this.class=Y.dT.asClassName(U.icon))}dispose(){}run(...U){var ae,x;let z=[];return!((ae=this._options)===null||ae===void 0)&&ae.arg&&(z=[...z,this._options.arg]),!((x=this._options)===null||x===void 0)&&x.shouldForwardArgs&&(z=[...z,...U]),this._commandService.executeCommand(this.id,...z)}};R=O([A(3,ve.i6),A(4,ye.H)],R)},35884:function(Qt,it,y){"use strict";y.d(it,{H:function(){return ye},P:function(){return ve}});var v=y(4348),Y=y(88226),ge=y(69323),Ie=y(34502),ne=y(72999),se=y(16925);const ye=(0,se.yh)("commandService"),ve=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new v.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,P){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!P)throw new Error("invalid command");return this.registerCommand({id:a,handler:P})}if(a.description){const E=[];for(let te of a.description.args)E.push(te.constraint);const V=a.handler;a.handler=function(te,...R){return(0,ne.D8)(R,E),V(te,...R)}}const{id:O}=a;let A=this._commands.get(O);A||(A=new Ie.S,this._commands.set(O,A));let c=A.unshift(a),w=(0,ge.OF)(()=>{c();const E=this._commands.get(O);E!=null&&E.isEmpty()&&this._commands.delete(O)});return this._onDidRegisterCommand.fire(O),w}registerCommandAlias(a,P){return ve.registerCommand(a,(O,...A)=>O.get(ye).executeCommand(P,...A))}getCommand(a){const P=this._commands.get(a);if(!(!P||P.isEmpty()))return Y.$.first(P)}getCommands(){const a=new Map;for(const P of this._commands.keys()){const O=this.getCommand(P);O&&a.set(P,O)}return a}};ve.registerCommand("noop",()=>{})},90689:function(Qt,it,y){"use strict";y.d(it,{Ao:function(){return ye},Eq:function(){return H},Fb:function(){return ve},K8:function(){return W},i6:function(){return Be},uy:function(){return we}});var v=y(23345),Y=y(82983),ge=y(16925);let Ie=v.WE||"";const ne=new Map;ne.set("false",!1),ne.set("true",!0),ne.set("isMac",v.dz),ne.set("isLinux",v.IJ),ne.set("isWindows",v.ED),ne.set("isWeb",v.$L),ne.set("isMacNative",v.dz&&!v.$L),ne.set("isEdge",Ie.indexOf("Edg/")>=0),ne.set("isFirefox",Ie.indexOf("Firefox")>=0),ne.set("isChrome",Ie.indexOf("Chrome")>=0),ne.set("isSafari",Ie.indexOf("Safari")>=0);const se=Object.prototype.hasOwnProperty;class ye{static has(g){return A.create(g)}static equals(g,S){return c.create(g,S)}static regex(g,S){return z.create(g,S)}static not(g){return te.create(g)}static and(...g){return ce.create(g,null)}static or(...g){return xe.create(g,null,!0)}static deserialize(g,S=!1){if(g)return this._deserializeOrExpression(g,S)}static _deserializeOrExpression(g,S){let K=g.split("||");return xe.create(K.map(G=>this._deserializeAndExpression(G,S)),null,!0)}static _deserializeAndExpression(g,S){let K=g.split("&&");return ce.create(K.map(G=>this._deserializeOne(G,S)),null)}static _deserializeOne(g,S){if(g=g.trim(),g.indexOf("!=")>=0){let K=g.split("!=");return V.create(K[0].trim(),this._deserializeValue(K[1],S))}if(g.indexOf("==")>=0){let K=g.split("==");return c.create(K[0].trim(),this._deserializeValue(K[1],S))}if(g.indexOf("=~")>=0){let K=g.split("=~");return z.create(K[0].trim(),this._deserializeRegexValue(K[1],S))}if(g.indexOf(" in ")>=0){let K=g.split(" in ");return w.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const K=g.split(">=");return U.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const K=g.split(">");return k.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const K=g.split("<=");return x.create(K[0].trim(),K[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const K=g.split("<");return ae.create(K[0].trim(),K[1].trim())}return/^\!\s*/.test(g)?te.create(g.substr(1).trim()):A.create(g)}static _deserializeValue(g,S){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let K=/^'([^']*)'$/.exec(g);return K?K[1].trim():g}static _deserializeRegexValue(g,S){if((0,Y.m5)(g)){if(S)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let K=g.indexOf("/"),G=g.lastIndexOf("/");if(K===G||K<0){if(S)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let Pe=g.slice(K+1,G),Ne=g[G+1]==="i"?"i":"";try{return new RegExp(Pe,Ne)}catch(Ue){if(S)throw new Error(`bad regexp-value '${g}', parse error: ${Ue}`);return console.warn(`bad regexp-value '${g}', parse error: ${Ue}`),null}}}function ve(J,g){const S=J?J.substituteConstants():void 0,K=g?g.substituteConstants():void 0;return!S&&!K?!0:!S||!K?!1:S.equals(K)}function a(J,g){return J.cmp(g)}class P{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return O.INSTANCE}}P.INSTANCE=new P;class O{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return P.INSTANCE}}O.INSTANCE=new O;class A{constructor(g,S){this.key=g,this.negated=S,this.type=2}static create(g,S=null){const K=ne.get(g);return typeof K=="boolean"?K?O.INSTANCE:P.INSTANCE:new A(g,S)}cmp(g){return g.type!==this.type?this.type-g.type:L(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=ne.get(this.key);return typeof g=="boolean"?g?O.INSTANCE:P.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this)),this.negated}}class c{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=4}static create(g,S,K=null){if(typeof S=="boolean")return S?A.create(g,K):te.create(g,K);const G=ne.get(g);return typeof G=="boolean"?S===(G?"true":"false")?O.INSTANCE:P.INSTANCE:new c(g,S,K)}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=ne.get(this.key);if(typeof g=="boolean"){const S=g?"true":"false";return this.value===S?O.INSTANCE:P.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class w{constructor(g,S){this.key=g,this.valueKey=S,this.type=10,this.negated=null}static create(g,S){return new w(g,S)}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const S=g.getValue(this.valueKey),K=g.getValue(this.key);return Array.isArray(S)?S.indexOf(K)>=0:typeof K=="string"&&typeof S=="object"&&S!==null?se.call(S,K):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=E.create(this)),this.negated}}class E{constructor(g){this._actual=g,this.type=11}static create(g){return new E(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class V{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=5}static create(g,S,K=null){if(typeof S=="boolean")return S?te.create(g,K):A.create(g,K);const G=ne.get(g);return typeof G=="boolean"?S===(G?"true":"false")?P.INSTANCE:O.INSTANCE:new V(g,S,K)}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=ne.get(this.key);if(typeof g=="boolean"){const S=g?"true":"false";return this.value===S?P.INSTANCE:O.INSTANCE}return this}evaluate(g){return g.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class te{constructor(g,S){this.key=g,this.negated=S,this.type=3}static create(g,S=null){const K=ne.get(g);return typeof K=="boolean"?K?P.INSTANCE:O.INSTANCE:new te(g,S)}cmp(g){return g.type!==this.type?this.type-g.type:L(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=ne.get(this.key);return typeof g=="boolean"?g?P.INSTANCE:O.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this)),this.negated}}function R(J,g){if(typeof J=="string"){const S=parseFloat(J);isNaN(S)||(J=S)}return typeof J=="string"||typeof J=="number"?g(J):P.INSTANCE}class k{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=12}static create(g,S,K=null){return R(S,G=>new k(g,G,K))}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class U{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=13}static create(g,S,K=null){return R(S,G=>new U(g,G,K))}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ae.create(this.key,this.value,this)),this.negated}}class ae{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=14}static create(g,S,K=null){return R(S,G=>new ae(g,G,K))}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class x{constructor(g,S,K){this.key=g,this.value=S,this.negated=K,this.type=15}static create(g,S,K=null){return R(S,G=>new x(g,G,K))}cmp(g){return g.type!==this.type?this.type-g.type:Z(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class z{constructor(g,S){this.key=g,this.regexp=S,this.type=7,this.negated=null}static create(g,S){return new z(g,S)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const S=this.regexp?this.regexp.source:"",K=g.regexp?g.regexp.source:"";return S<K?-1:S>K?1:0}equals(g){if(g.type===this.type){const S=this.regexp?this.regexp.source:"",K=g.regexp?g.regexp.source:"";return this.key===g.key&&S===K}return!1}substituteConstants(){return this}evaluate(g){let S=g.getValue(this.key);return this.regexp?this.regexp.test(S):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q.create(this)),this.negated}}class Q{constructor(g){this._actual=g,this.type=8}static create(g){return new Q(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function q(J){let g=null;for(let S=0,K=J.length;S<K;S++){const G=J[S].substituteConstants();if(J[S]!==G&&g===null){g=[];for(let Pe=0;Pe<S;Pe++)g[Pe]=J[Pe]}g!==null&&(g[S]=G)}return g===null?J:g}class ce{constructor(g,S){this.expr=g,this.negated=S,this.type=6}static create(g,S){return ce._normalizeArr(g,S)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let S=0,K=this.expr.length;S<K;S++){const G=a(this.expr[S],g.expr[S]);if(G!==0)return G}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let S=0,K=this.expr.length;S<K;S++)if(!this.expr[S].equals(g.expr[S]))return!1;return!0}return!1}substituteConstants(){const g=q(this.expr);return g===this.expr?this:ce.create(g,this.negated)}evaluate(g){for(let S=0,K=this.expr.length;S<K;S++)if(!this.expr[S].evaluate(g))return!1;return!0}static _normalizeArr(g,S){const K=[];let G=!1;for(const Pe of g)if(Pe){if(Pe.type===1){G=!0;continue}if(Pe.type===0)return P.INSTANCE;if(Pe.type===6){K.push(...Pe.expr);continue}K.push(Pe)}if(K.length===0&&G)return O.INSTANCE;if(K.length!==0){if(K.length===1)return K[0];K.sort(a);for(let Pe=1;Pe<K.length;Pe++)K[Pe-1].equals(K[Pe])&&(K.splice(Pe,1),Pe--);if(K.length===1)return K[0];for(;K.length>1;){const Pe=K[K.length-1];if(Pe.type!==9)break;K.pop();const Ne=K.pop(),Ue=K.length===0,Ve=xe.create(Pe.expr.map(qe=>ce.create([qe,Ne],null)),null,Ue);Ve&&(K.push(Ve),K.sort(a))}return K.length===1?K[0]:new ce(K,S)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let S of this.expr)g.push(...S.keys());return g}negate(){if(!this.negated){const g=[];for(let S of this.expr)g.push(S.negate());this.negated=xe.create(g,this,!0)}return this.negated}}class xe{constructor(g,S){this.expr=g,this.negated=S,this.type=9}static create(g,S,K){return xe._normalizeArr(g,S,K)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let S=0,K=this.expr.length;S<K;S++){const G=a(this.expr[S],g.expr[S]);if(G!==0)return G}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let S=0,K=this.expr.length;S<K;S++)if(!this.expr[S].equals(g.expr[S]))return!1;return!0}return!1}substituteConstants(){const g=q(this.expr);return g===this.expr?this:xe.create(g,this.negated,!1)}evaluate(g){for(let S=0,K=this.expr.length;S<K;S++)if(this.expr[S].evaluate(g))return!0;return!1}static _normalizeArr(g,S,K){let G=[],Pe=!1;if(g){for(let Ne=0,Ue=g.length;Ne<Ue;Ne++){const Ve=g[Ne];if(Ve){if(Ve.type===0){Pe=!0;continue}if(Ve.type===1)return O.INSTANCE;if(Ve.type===9){G=G.concat(Ve.expr);continue}G.push(Ve)}}if(G.length===0&&Pe)return P.INSTANCE;G.sort(a)}if(G.length!==0){if(G.length===1)return G[0];for(let Ne=1;Ne<G.length;Ne++)G[Ne-1].equals(G[Ne])&&(G.splice(Ne,1),Ne--);if(G.length===1)return G[0];if(K){for(let Ne=0;Ne<G.length;Ne++)for(let Ue=Ne+1;Ue<G.length;Ue++)W(G[Ne],G[Ue])&&(G.splice(Ue,1),Ue--);if(G.length===1)return G[0]}return new xe(G,S)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let S of this.expr)g.push(...S.keys());return g}negate(){if(!this.negated){let g=[];for(let S of this.expr)g.push(S.negate());for(;g.length>1;){const S=g.shift(),K=g.shift(),G=[];for(const Ne of le(S))for(const Ue of le(K))G.push(ce.create([Ne,Ue],null));const Pe=g.length===0;g.unshift(xe.create(G,null,Pe))}this.negated=g[0]}return this.negated}}class we extends A{constructor(g,S,K){super(g,null),this._defaultValue=S,typeof K=="object"?we._info.push(Object.assign(Object.assign({},K),{key:g})):K!==!0&&we._info.push({key:g,description:K,type:S!=null?typeof S:void 0})}static all(){return we._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return c.create(this.key,g)}}we._info=[];const Be=(0,ge.yh)("contextKeyService"),H="setContext";function L(J,g){return J<g?-1:J>g?1:0}function Z(J,g,S,K){return J<S?-1:J>S?1:g<K?-1:g>K?1:0}function W(J,g){if(g.type===6&&J.type!==9&&J.type!==6){for(const G of g.expr)if(J.equals(G))return!0}const S=J.negate(),K=le(S).concat(le(g));K.sort(a);for(let G=0;G<K.length;G++){const Ne=K[G].negate();for(let Ue=G+1;Ue<K.length;Ue++){const Ve=K[Ue];if(Ne.equals(Ve))return!0}}return!1}function le(J){return J.type===9?J.expr:[J]}},16925:function(Qt,it,y){"use strict";y.d(it,{I8:function(){return v},TG:function(){return Y},jt:function(){return ne},yh:function(){return Ie}});var v;(function(se){se.serviceIds=new Map,se.DI_TARGET="$di$target",se.DI_DEPENDENCIES="$di$dependencies";function ye(ve){return ve[se.DI_DEPENDENCIES]||[]}se.getServiceDependencies=ye})(v||(v={}));const Y=Ie("instantiationService");function ge(se,ye,ve,a){ye[v.DI_TARGET]===ye?ye[v.DI_DEPENDENCIES].push({id:se,index:ve,optional:a}):(ye[v.DI_DEPENDENCIES]=[{id:se,index:ve,optional:a}],ye[v.DI_TARGET]=ye)}function Ie(se){if(v.serviceIds.has(se))return v.serviceIds.get(se);const ye=function(ve,a,P){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(ye,ve,P,!1)};return ye.toString=()=>se,v.serviceIds.set(se,ye),ye}function ne(se){return function(ye,ve,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ge(se,ye,a,!0)}}},44650:function(Qt,it,y){"use strict";y.d(it,{B:function(){return Ie}});var v=y(76068),Y=y(72999);class ge{constructor(){this.data=new Map}add(se,ye){v.ok(Y.HD(se)),v.ok(Y.Kn(ye)),v.ok(!this.data.has(se),"There is already an extension with this id"),this.data.set(se,ye)}as(se){return this.data.get(se)||null}}const Ie=new ge},66213:function(Qt,it,y){"use strict";y.d(it,{e:function(){return v}});var v;(function(Y){Y.DARK="dark",Y.LIGHT="light",Y.HIGH_CONTRAST="hc"})(v||(v={}))},49055:function(Qt,it,y){"use strict";y.d(it,{EN:function(){return a},IP:function(){return A},Ic:function(){return E},XE:function(){return ye},bB:function(){return V},kS:function(){return P},m6:function(){return O}});var v=y(52615),Y=y(4348),ge=y(69323),Ie=y(16925),ne=y(44650),se=y(66213);const ye=(0,Ie.yh)("themeService");var ve;(function(te){function R(k){return k&&typeof k=="object"&&typeof k.id=="string"}te.isThemeColor=R})(ve||(ve={}));function a(te){return{id:te}}var P;(function(te){function R(Q){return Q&&typeof Q=="object"&&typeof Q.id=="string"&&(typeof Q.color=="undefined"||ve.isThemeColor(Q.color))}te.isThemeIcon=R;const k=new RegExp(`^\\$\\((${v.dT.iconNameExpression}(?:${v.dT.iconModifierExpression})?)\\)$`);function U(Q){const q=k.exec(Q);if(!q)return;let[,ce]=q;return{id:ce}}te.fromString=U;function ae(Q,q){let ce=Q.id;const xe=ce.lastIndexOf("~");return xe!==-1&&(ce=ce.substring(0,xe)),q&&(ce=`${ce}~${q}`),{id:ce}}te.modify=ae;function x(Q,q){var ce,xe;return Q.id===q.id&&((ce=Q.color)===null||ce===void 0?void 0:ce.id)===((xe=q.color)===null||xe===void 0?void 0:xe.id)}te.isEqual=x;function z(Q,q){return{id:Q.id,color:q?a(q):void 0}}te.asThemeIcon=z,te.asClassNameArray=v.dT.asClassNameArray,te.asClassName=v.dT.asClassName,te.asCSSSelector=v.dT.asCSSSelector})(P||(P={}));function O(te){switch(te){case se.e.DARK:return"vs-dark";case se.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const A={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Y.Q5}onColorThemeChange(R){return this.themingParticipants.push(R),this.onThemingParticipantAddedEmitter.fire(R),(0,ge.OF)(()=>{const k=this.themingParticipants.indexOf(R);this.themingParticipants.splice(k,1)})}getThemingParticipants(){return this.themingParticipants}}let w=new c;ne.B.add(A.ThemingContribution,w);function E(te){return w.onColorThemeChange(te)}class V extends ge.JT{constructor(R){super(),this.themeService=R,this.theme=R.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(k=>this.onThemeChange(k)))}onThemeChange(R){this.theme=R,this.updateStyles()}updateStyles(){}}},31561:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return Q}});var v=y(96663),Y=y(90493),ge=y(72071),Ie=y(6620),ne=y(35593),se=y(92310),ye=y.n(se),ve=y(8654),a=y(59301),P=y(10228),O=y(16089),A=P.Z.ESC,c=P.Z.TAB;function w(q){var ce=q.visible,xe=q.triggerRef,we=q.onVisibleChange,Be=q.autoFocus,H=q.overlayRef,L=a.useRef(!1),Z=function(){if(ce){var g,S;(g=xe.current)===null||g===void 0||(S=g.focus)===null||S===void 0||S.call(g),we==null||we(!1)}},W=function(){var g;return(g=H.current)!==null&&g!==void 0&&g.focus?(H.current.focus(),L.current=!0,!0):!1},le=function(g){switch(g.keyCode){case A:Z();break;case c:{var S=!1;L.current||(S=W()),S?g.preventDefault():Z();break}}};a.useEffect(function(){return ce?(window.addEventListener("keydown",le),Be&&(0,O.Z)(W,3),function(){window.removeEventListener("keydown",le),L.current=!1}):function(){L.current=!1}},[ce])}var E=(0,a.forwardRef)(function(q,ce){var xe=q.overlay,we=q.arrow,Be=q.prefixCls,H=(0,a.useMemo)(function(){var Z;return typeof xe=="function"?Z=xe():Z=xe,Z},[xe]),L=(0,ve.sQ)(ce,H==null?void 0:H.ref);return a.createElement(a.Fragment,null,we&&a.createElement("div",{className:"".concat(Be,"-arrow")}),a.cloneElement(H,{ref:(0,ve.Yr)(H)?L:void 0}))}),V=E,te={adjustX:1,adjustY:1},R=[0,0],k={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:R},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:R},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:R},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:R},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:R}},U=k,ae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(q,ce){var xe,we=q.arrow,Be=we===void 0?!1:we,H=q.prefixCls,L=H===void 0?"rc-dropdown":H,Z=q.transitionName,W=q.animation,le=q.align,J=q.placement,g=J===void 0?"bottomLeft":J,S=q.placements,K=S===void 0?U:S,G=q.getPopupContainer,Pe=q.showAction,Ne=q.hideAction,Ue=q.overlayClassName,Ve=q.overlayStyle,qe=q.visible,tt=q.trigger,lt=tt===void 0?["hover"]:tt,Ut=q.autoFocus,Yt=q.overlay,sr=q.children,Bt=q.onVisibleChange,Ht=(0,Ie.Z)(q,ae),Xt=a.useState(),de=(0,ge.Z)(Xt,2),Ee=de[0],F=de[1],fe="visible"in q?qe:Ee,Te=a.useRef(null),I=a.useRef(null),ee=a.useRef(null);a.useImperativeHandle(ce,function(){return Te.current});var he=function(kt){F(kt),Bt==null||Bt(kt)};w({visible:fe,triggerRef:ee,onVisibleChange:he,autoFocus:Ut,overlayRef:I});var be=function(kt){var Le=q.onOverlayClick;F(!1),Le&&Le(kt)},Oe=function(){return a.createElement(V,{ref:I,overlay:Yt,prefixCls:L,arrow:Be})},Fe=function(){return typeof Yt=="function"?Oe:Oe()},Qe=function(){var kt=q.minOverlayWidthMatchTrigger,Le=q.alignPoint;return"minOverlayWidthMatchTrigger"in q?kt:!Le},ht=function(){var kt=q.openClassName;return kt!==void 0?kt:"".concat(L,"-open")},ot=a.cloneElement(sr,{className:ye()((xe=sr.props)===null||xe===void 0?void 0:xe.className,fe&&ht()),ref:(0,ve.Yr)(sr)?(0,ve.sQ)(ee,sr.ref):void 0}),Xe=Ne;return!Xe&<.indexOf("contextMenu")!==-1&&(Xe=["click"]),a.createElement(ne.Z,(0,v.Z)({builtinPlacements:K},Ht,{prefixCls:L,ref:Te,popupClassName:ye()(Ue,(0,Y.Z)({},"".concat(L,"-show-arrow"),Be)),popupStyle:Ve,action:lt,showAction:Pe,hideAction:Xe,popupPlacement:g,popupAlign:le,popupTransitionName:Z,popupAnimation:W,popupVisible:fe,stretch:Qe()?"minWidth":"",popup:Fe(),onPopupVisibleChange:he,onPopupClick:be,getPopupContainer:G}),ot)}var z=a.forwardRef(x),Q=z},93681:function(Qt,it,y){"use strict";y.r(it),y.d(it,{BaseInput:function(){return P},default:function(){return k}});var v=y(96663),Y=y(44127),ge=y(90493),Ie=y(20135),ne=y(92310),se=y.n(ne),ye=y(59301),ve=y(5643),a=function(ae){var x,z,Q=ae.inputElement,q=ae.prefixCls,ce=ae.prefix,xe=ae.suffix,we=ae.addonBefore,Be=ae.addonAfter,H=ae.className,L=ae.style,Z=ae.disabled,W=ae.readOnly,le=ae.focused,J=ae.triggerFocus,g=ae.allowClear,S=ae.value,K=ae.handleReset,G=ae.hidden,Pe=ae.classes,Ne=ae.classNames,Ue=ae.dataAttrs,Ve=ae.styles,qe=ae.components,tt=(qe==null?void 0:qe.affixWrapper)||"span",lt=(qe==null?void 0:qe.groupWrapper)||"span",Ut=(qe==null?void 0:qe.wrapper)||"span",Yt=(qe==null?void 0:qe.groupAddon)||"span",sr=(0,ye.useRef)(null),Bt=function(Oe){var Fe;(Fe=sr.current)!==null&&Fe!==void 0&&Fe.contains(Oe.target)&&(J==null||J())},Ht=function(){var Oe;if(!g)return null;var Fe=!Z&&!W&&S,Qe="".concat(q,"-clear-icon"),ht=(0,Ie.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return ye.createElement("span",{onClick:K,onMouseDown:function(Xe){return Xe.preventDefault()},className:se()(Qe,(Oe={},(0,ge.Z)(Oe,"".concat(Qe,"-hidden"),!Fe),(0,ge.Z)(Oe,"".concat(Qe,"-has-suffix"),!!xe),Oe)),role:"button",tabIndex:-1},ht)},Xt=(0,ye.cloneElement)(Q,{value:S,hidden:G,className:se()((x=Q.props)===null||x===void 0?void 0:x.className,!(0,ve.X3)(ae)&&!(0,ve.He)(ae)&&H)||null,style:(0,Y.Z)((0,Y.Z)({},(z=Q.props)===null||z===void 0?void 0:z.style),!(0,ve.X3)(ae)&&!(0,ve.He)(ae)?L:{})});if((0,ve.X3)(ae)){var de,Ee="".concat(q,"-affix-wrapper"),F=se()(Ee,(de={},(0,ge.Z)(de,"".concat(Ee,"-disabled"),Z),(0,ge.Z)(de,"".concat(Ee,"-focused"),le),(0,ge.Z)(de,"".concat(Ee,"-readonly"),W),(0,ge.Z)(de,"".concat(Ee,"-input-with-clear-btn"),xe&&g&&S),de),!(0,ve.He)(ae)&&H,Pe==null?void 0:Pe.affixWrapper,Ne==null?void 0:Ne.affixWrapper),fe=(xe||g)&&ye.createElement("span",{className:se()("".concat(q,"-suffix"),Ne==null?void 0:Ne.suffix),style:Ve==null?void 0:Ve.suffix},Ht(),xe);Xt=ye.createElement(tt,(0,v.Z)({className:F,style:(0,Y.Z)((0,Y.Z)({},(0,ve.He)(ae)?void 0:L),Ve==null?void 0:Ve.affixWrapper),hidden:!(0,ve.He)(ae)&&G,onClick:Bt},Ue==null?void 0:Ue.affixWrapper,{ref:sr}),ce&&ye.createElement("span",{className:se()("".concat(q,"-prefix"),Ne==null?void 0:Ne.prefix),style:Ve==null?void 0:Ve.prefix},ce),(0,ye.cloneElement)(Q,{value:S,hidden:null}),fe)}if((0,ve.He)(ae)){var Te="".concat(q,"-group"),I="".concat(Te,"-addon"),ee=se()("".concat(q,"-wrapper"),Te,Pe==null?void 0:Pe.wrapper),he=se()("".concat(q,"-group-wrapper"),H,Pe==null?void 0:Pe.group);return ye.createElement(lt,{className:he,style:L,hidden:G},ye.createElement(Ut,{className:ee},we&&ye.createElement(Yt,{className:I},we),(0,ye.cloneElement)(Xt,{hidden:null}),Be&&ye.createElement(Yt,{className:I},Be)))}return Xt},P=a,O=y(19127),A=y(72071),c=y(6620),w=y(18929),E=y(2738),V=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],te=(0,ye.forwardRef)(function(U,ae){var x=U.autoComplete,z=U.onChange,Q=U.onFocus,q=U.onBlur,ce=U.onPressEnter,xe=U.onKeyDown,we=U.prefixCls,Be=we===void 0?"rc-input":we,H=U.disabled,L=U.htmlSize,Z=U.className,W=U.maxLength,le=U.suffix,J=U.showCount,g=U.type,S=g===void 0?"text":g,K=U.classes,G=U.classNames,Pe=U.styles,Ne=(0,c.Z)(U,V),Ue=(0,w.Z)(U.defaultValue,{value:U.value}),Ve=(0,A.Z)(Ue,2),qe=Ve[0],tt=Ve[1],lt=(0,ye.useState)(!1),Ut=(0,A.Z)(lt,2),Yt=Ut[0],sr=Ut[1],Bt=(0,ye.useRef)(null),Ht=function(he){Bt.current&&(0,ve.nH)(Bt.current,he)};(0,ye.useImperativeHandle)(ae,function(){return{focus:Ht,blur:function(){var he;(he=Bt.current)===null||he===void 0||he.blur()},setSelectionRange:function(he,be,Oe){var Fe;(Fe=Bt.current)===null||Fe===void 0||Fe.setSelectionRange(he,be,Oe)},select:function(){var he;(he=Bt.current)===null||he===void 0||he.select()},input:Bt.current}}),(0,ye.useEffect)(function(){sr(function(ee){return ee&&H?!1:ee})},[H]);var Xt=function(he){U.value===void 0&&tt(he.target.value),Bt.current&&(0,ve.rJ)(Bt.current,he,z)},de=function(he){ce&&he.key==="Enter"&&ce(he),xe==null||xe(he)},Ee=function(he){sr(!0),Q==null||Q(he)},F=function(he){sr(!1),q==null||q(he)},fe=function(he){tt(""),Ht(),Bt.current&&(0,ve.rJ)(Bt.current,he,z)},Te=function(){var he=(0,E.Z)(U,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ye.createElement("input",(0,v.Z)({autoComplete:x},he,{onChange:Xt,onFocus:Ee,onBlur:F,onKeyDown:de,className:se()(Be,(0,ge.Z)({},"".concat(Be,"-disabled"),H),G==null?void 0:G.input),style:Pe==null?void 0:Pe.input,ref:Bt,size:L,type:S}))},I=function(){var he=Number(W)>0;if(le||J){var be=(0,ve.D7)(qe),Oe=(0,O.Z)(be).length,Fe=(0,Ie.Z)(J)==="object"?J.formatter({value:be,count:Oe,maxLength:W}):"".concat(Oe).concat(he?" / ".concat(W):"");return ye.createElement(ye.Fragment,null,!!J&&ye.createElement("span",{className:se()("".concat(Be,"-show-count-suffix"),(0,ge.Z)({},"".concat(Be,"-show-count-has-suffix"),!!le),G==null?void 0:G.count),style:(0,Y.Z)({},Pe==null?void 0:Pe.count)},Fe),le)}return null};return ye.createElement(P,(0,v.Z)({},Ne,{prefixCls:Be,className:Z,inputElement:Te(),handleReset:fe,value:(0,ve.D7)(qe),focused:Yt,triggerFocus:Ht,suffix:I(),disabled:H,classes:K,classNames:G,styles:Pe}))}),R=te,k=R},5643:function(Qt,it,y){"use strict";y.d(it,{D7:function(){return ne},He:function(){return v},X3:function(){return Y},nH:function(){return Ie},rJ:function(){return ge}});function v(se){return!!(se.addonBefore||se.addonAfter)}function Y(se){return!!(se.prefix||se.suffix||se.allowClear)}function ge(se,ye,ve,a){if(ve){var P=ye;if(ye.type==="click"){var O=se.cloneNode(!0);P=Object.create(ye,{target:{value:O},currentTarget:{value:O}}),O.value="",ve(P);return}if(a!==void 0){P=Object.create(ye,{target:{value:se},currentTarget:{value:se}}),se.value=a,ve(P);return}ve(P)}}function Ie(se,ye){if(se){se.focus(ye);var ve=ye||{},a=ve.cursor;if(a){var P=se.value.length;switch(a){case"start":se.setSelectionRange(0,0);break;case"end":se.setSelectionRange(P,P);break;default:se.setSelectionRange(0,P)}}}}function ne(se){return typeof se=="undefined"||se===null?"":String(se)}},15285:function(Qt,it,y){"use strict";y.d(it,{iz:function(){return _r},ck:function(){return Ze},BW:function(){return yr},sN:function(){return Ze},Wd:function(){return $t},ZP:function(){return ut},Xl:function(){return xe}});var v=y(96663),Y=y(90493),ge=y(44127),Ie=y(19127),ne=y(72071),se=y(6620),ye=y(92310),ve=y.n(ye),a=y(11780),P=y(18929),O=y(13697),A=y(48736),c=y(59301),w=y(4676),E=c.createContext(null);function V(Se,We){return Se===void 0?null:"".concat(Se,"-").concat(We)}function te(Se){var We=c.useContext(E);return V(We,Se)}var R=y(80547),k=["children","locked"],U=c.createContext(null);function ae(Se,We){var rt=(0,ge.Z)({},Se);return Object.keys(We).forEach(function(bt){var mt=We[bt];mt!==void 0&&(rt[bt]=mt)}),rt}function x(Se){var We=Se.children,rt=Se.locked,bt=(0,se.Z)(Se,k),mt=c.useContext(U),Ct=(0,R.Z)(function(){return ae(mt,bt)},[mt,bt],function(Tt,ar){return!rt&&(Tt[0]!==ar[0]||!(0,O.Z)(Tt[1],ar[1],!0))});return c.createElement(U.Provider,{value:Ct},We)}var z=[],Q=c.createContext(null);function q(){return c.useContext(Q)}var ce=c.createContext(z);function xe(Se){var We=c.useContext(ce);return c.useMemo(function(){return Se!==void 0?[].concat((0,Ie.Z)(We),[Se]):We},[We,Se])}var we=c.createContext(null),Be=c.createContext({}),H=Be,L=y(29194);function Z(Se){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,L.Z)(Se)){var rt=Se.nodeName.toLowerCase(),bt=["input","select","textarea","button"].includes(rt)||Se.isContentEditable||rt==="a"&&!!Se.getAttribute("href"),mt=Se.getAttribute("tabindex"),Ct=Number(mt),Tt=null;return mt&&!Number.isNaN(Ct)?Tt=Ct:bt&&Tt===null&&(Tt=0),bt&&Se.disabled&&(Tt=null),Tt!==null&&(Tt>=0||We&&Tt<0)}return!1}function W(Se){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=(0,Ie.Z)(Se.querySelectorAll("*")).filter(function(bt){return Z(bt,We)});return Z(Se,We)&&rt.unshift(Se),rt}var le=null;function J(){le=document.activeElement}function g(){le=null}function S(){if(le)try{le.focus()}catch(Se){}}function K(Se,We){if(We.keyCode===9){var rt=W(Se),bt=rt[We.shiftKey?0:rt.length-1],mt=bt===document.activeElement||Se===document.activeElement;if(mt){var Ct=rt[We.shiftKey?rt.length-1:0];Ct.focus(),We.preventDefault()}}}var G=y(10228),Pe=y(16089),Ne=G.Z.LEFT,Ue=G.Z.RIGHT,Ve=G.Z.UP,qe=G.Z.DOWN,tt=G.Z.ENTER,lt=G.Z.ESC,Ut=G.Z.HOME,Yt=G.Z.END,sr=[Ve,qe,Ne,Ue];function Bt(Se,We,rt,bt){var mt,Ct,Tt,ar,cr="prev",ur="next",Er="children",Fr="parent";if(Se==="inline"&&bt===tt)return{inlineTrigger:!0};var Lr=(mt={},(0,Y.Z)(mt,Ve,cr),(0,Y.Z)(mt,qe,ur),mt),fr=(Ct={},(0,Y.Z)(Ct,Ne,rt?ur:cr),(0,Y.Z)(Ct,Ue,rt?cr:ur),(0,Y.Z)(Ct,qe,Er),(0,Y.Z)(Ct,tt,Er),Ct),ir=(Tt={},(0,Y.Z)(Tt,Ve,cr),(0,Y.Z)(Tt,qe,ur),(0,Y.Z)(Tt,tt,Er),(0,Y.Z)(Tt,lt,Fr),(0,Y.Z)(Tt,Ne,rt?Er:Fr),(0,Y.Z)(Tt,Ue,rt?Fr:Er),Tt),$r={inline:Lr,horizontal:fr,vertical:ir,inlineSub:Lr,horizontalSub:ir,verticalSub:ir},Ir=(ar=$r["".concat(Se).concat(We?"":"Sub")])===null||ar===void 0?void 0:ar[bt];switch(Ir){case cr:return{offset:-1,sibling:!0};case ur:return{offset:1,sibling:!0};case Fr:return{offset:-1,sibling:!1};case Er:return{offset:1,sibling:!1};default:return null}}function Ht(Se){for(var We=Se;We;){if(We.getAttribute("data-menu-list"))return We;We=We.parentElement}return null}function Xt(Se,We){for(var rt=Se||document.activeElement;rt;){if(We.has(rt))return rt;rt=rt.parentElement}return null}function de(Se,We){var rt=W(Se,!0);return rt.filter(function(bt){return We.has(bt)})}function Ee(Se,We,rt){var bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Se)return null;var mt=de(Se,We),Ct=mt.length,Tt=mt.findIndex(function(ar){return rt===ar});return bt<0?Tt===-1?Tt=Ct-1:Tt-=1:bt>0&&(Tt+=1),Tt=(Tt+Ct)%Ct,mt[Tt]}var F=function(We,rt){var bt=new Set,mt=new Map,Ct=new Map;return We.forEach(function(Tt){var ar=document.querySelector("[data-menu-id='".concat(V(rt,Tt),"']"));ar&&(bt.add(ar),Ct.set(ar,Tt),mt.set(Tt,ar))}),{elements:bt,key2element:mt,element2key:Ct}};function fe(Se,We,rt,bt,mt,Ct,Tt,ar,cr,ur){var Er=c.useRef(),Fr=c.useRef();Fr.current=We;var Lr=function(){Pe.Z.cancel(Er.current)};return c.useEffect(function(){return function(){Lr()}},[]),function(fr){var ir=fr.which;if([].concat(sr,[tt,lt,Ut,Yt]).includes(ir)){var $r=Ct(),Ir=F($r,bt),zr=Ir,Tr=zr.elements,Rr=zr.key2element,Mr=zr.element2key,jr=Rr.get(We),Gr=Xt(jr,Tr),ln=Mr.get(Gr),Hr=Bt(Se,Tt(ln,!0).length===1,rt,ir);if(!Hr&&ir!==Ut&&ir!==Yt)return;(sr.includes(ir)||[Ut,Yt].includes(ir))&&fr.preventDefault();var br=function(Cr){if(Cr){var Xr=Cr,Jr=Cr.querySelector("a");Jr!=null&&Jr.getAttribute("href")&&(Xr=Jr);var Zr=Mr.get(Cr);ar(Zr),Lr(),Er.current=(0,Pe.Z)(function(){Fr.current===Zr&&Xr.focus()})}};if([Ut,Yt].includes(ir)||Hr.sibling||!Gr){var Ye;!Gr||Se==="inline"?Ye=mt.current:Ye=Ht(Gr);var wr,Wr=de(Ye,Tr);ir===Ut?wr=Wr[0]:ir===Yt?wr=Wr[Wr.length-1]:wr=Ee(Ye,Tr,Gr,Hr.offset),br(wr)}else if(Hr.inlineTrigger)cr(ln);else if(Hr.offset>0)cr(ln,!0),Lr(),Er.current=(0,Pe.Z)(function(){Ir=F($r,bt);var Ar=Gr.getAttribute("aria-controls"),Cr=document.getElementById(Ar),Xr=Ee(Cr,Ir.elements);br(Xr)},5);else if(Hr.offset<0){var Qr=Tt(ln,!0),cn=Qr[Qr.length-2],En=Rr.get(cn);cr(cn,!1),br(En)}}ur==null||ur(fr)}}function Te(Se){Promise.resolve().then(Se)}var I="__RC_UTIL_PATH_SPLIT__",ee=function(We){return We.join(I)},he=function(We){return We.split(I)},be="rc-menu-more";function Oe(){var Se=c.useState({}),We=(0,ne.Z)(Se,2),rt=We[1],bt=(0,c.useRef)(new Map),mt=(0,c.useRef)(new Map),Ct=c.useState([]),Tt=(0,ne.Z)(Ct,2),ar=Tt[0],cr=Tt[1],ur=(0,c.useRef)(0),Er=(0,c.useRef)(!1),Fr=function(){Er.current||rt({})},Lr=(0,c.useCallback)(function(Rr,Mr){var jr=ee(Mr);mt.current.set(jr,Rr),bt.current.set(Rr,jr),ur.current+=1;var Gr=ur.current;Te(function(){Gr===ur.current&&Fr()})},[]),fr=(0,c.useCallback)(function(Rr,Mr){var jr=ee(Mr);mt.current.delete(jr),bt.current.delete(Rr)},[]),ir=(0,c.useCallback)(function(Rr){cr(Rr)},[]),$r=(0,c.useCallback)(function(Rr,Mr){var jr=bt.current.get(Rr)||"",Gr=he(jr);return Mr&&ar.includes(Gr[0])&&Gr.unshift(be),Gr},[ar]),Ir=(0,c.useCallback)(function(Rr,Mr){return Rr.some(function(jr){var Gr=$r(jr,!0);return Gr.includes(Mr)})},[$r]),zr=function(){var Mr=(0,Ie.Z)(bt.current.keys());return ar.length&&Mr.push(be),Mr},Tr=(0,c.useCallback)(function(Rr){var Mr="".concat(bt.current.get(Rr)).concat(I),jr=new Set;return(0,Ie.Z)(mt.current.keys()).forEach(function(Gr){Gr.startsWith(Mr)&&jr.add(mt.current.get(Gr))}),jr},[]);return c.useEffect(function(){return function(){Er.current=!0}},[]),{registerPath:Lr,unregisterPath:fr,refreshOverflowKeys:ir,isSubPathKey:Ir,getKeyPath:$r,getKeys:zr,getSubPathKeys:Tr}}function Fe(Se){var We=c.useRef(Se);We.current=Se;var rt=c.useCallback(function(){for(var bt,mt=arguments.length,Ct=new Array(mt),Tt=0;Tt<mt;Tt++)Ct[Tt]=arguments[Tt];return(bt=We.current)===null||bt===void 0?void 0:bt.call.apply(bt,[We].concat(Ct))},[]);return Se?rt:void 0}var Qe=Math.random().toFixed(5).toString().slice(2),ht=0;function ot(Se){var We=(0,P.Z)(Se,{value:Se}),rt=(0,ne.Z)(We,2),bt=rt[0],mt=rt[1];return c.useEffect(function(){ht+=1;var Ct="".concat(Qe,"-").concat(ht);mt("rc-menu-uuid-".concat(Ct))},[]),bt}var Xe=y(52884),Dt=y(95727),kt=y(65711),Le=y(85745),Ke=y(2738),nt=y(8654);function ft(Se,We,rt,bt){var mt=c.useContext(U),Ct=mt.activeKey,Tt=mt.onActive,ar=mt.onInactive,cr={active:Ct===Se};return We||(cr.onMouseEnter=function(ur){rt==null||rt({key:Se,domEvent:ur}),Tt(Se)},cr.onMouseLeave=function(ur){bt==null||bt({key:Se,domEvent:ur}),ar(Se)}),cr}function At(Se){var We=c.useContext(U),rt=We.mode,bt=We.rtl,mt=We.inlineIndent;if(rt!=="inline")return null;var Ct=Se;return bt?{paddingRight:Ct*mt}:{paddingLeft:Ct*mt}}function It(Se){var We=Se.icon,rt=Se.props,bt=Se.children,mt;return We===null||We===!1?null:(typeof We=="function"?mt=c.createElement(We,(0,ge.Z)({},rt)):typeof We!="boolean"&&(mt=We),mt||bt||null)}var _=["item"];function C(Se){var We=Se.item,rt=(0,se.Z)(Se,_);return Object.defineProperty(rt,"item",{get:function(){return(0,A.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),We}}),rt}var et=["title","attribute","elementRef"],$=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],me=["active"],tr=function(Se){(0,kt.Z)(rt,Se);var We=(0,Le.Z)(rt);function rt(){return(0,Xe.Z)(this,rt),We.apply(this,arguments)}return(0,Dt.Z)(rt,[{key:"render",value:function(){var mt=this.props,Ct=mt.title,Tt=mt.attribute,ar=mt.elementRef,cr=(0,se.Z)(mt,et),ur=(0,Ke.Z)(cr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,A.ZP)(!Tt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(a.Z.Item,(0,v.Z)({},Tt,{title:typeof Ct=="string"?Ct:void 0},ur,{ref:ar}))}}]),rt}(c.Component),ke=c.forwardRef(function(Se,We){var rt,bt=Se.style,mt=Se.className,Ct=Se.eventKey,Tt=Se.warnKey,ar=Se.disabled,cr=Se.itemIcon,ur=Se.children,Er=Se.role,Fr=Se.onMouseEnter,Lr=Se.onMouseLeave,fr=Se.onClick,ir=Se.onKeyDown,$r=Se.onFocus,Ir=(0,se.Z)(Se,$),zr=te(Ct),Tr=c.useContext(U),Rr=Tr.prefixCls,Mr=Tr.onItemClick,jr=Tr.disabled,Gr=Tr.overflowDisabled,ln=Tr.itemIcon,Hr=Tr.selectedKeys,br=Tr.onActive,Ye=c.useContext(H),wr=Ye._internalRenderMenuItem,Wr="".concat(Rr,"-item"),Qr=c.useRef(),cn=c.useRef(),En=jr||ar,Ar=(0,nt.x1)(We,cn),Cr=xe(Ct),Xr=function(Cn){return{key:Ct,keyPath:(0,Ie.Z)(Cr).reverse(),item:Qr.current,domEvent:Cn}},Jr=cr||ln,Zr=ft(Ct,En,Fr,Lr),un=Zr.active,si=(0,se.Z)(Zr,me),Pn=Hr.includes(Ct),an=At(Cr.length),dr=function(Cn){if(!En){var Nn=Xr(Cn);fr==null||fr(C(Nn)),Mr(Nn)}},dn=function(Cn){if(ir==null||ir(Cn),Cn.which===G.Z.ENTER){var Nn=Xr(Cn);fr==null||fr(C(Nn)),Mr(Nn)}},fn=function(Cn){br(Ct),$r==null||$r(Cn)},Fn={};Se.role==="option"&&(Fn["aria-selected"]=Pn);var ci=c.createElement(tr,(0,v.Z)({ref:Qr,elementRef:Ar,role:Er===null?"none":Er||"menuitem",tabIndex:ar?null:-1,"data-menu-id":Gr&&zr?null:zr},Ir,si,Fn,{component:"li","aria-disabled":ar,style:(0,ge.Z)((0,ge.Z)({},an),bt),className:ve()(Wr,(rt={},(0,Y.Z)(rt,"".concat(Wr,"-active"),un),(0,Y.Z)(rt,"".concat(Wr,"-selected"),Pn),(0,Y.Z)(rt,"".concat(Wr,"-disabled"),En),rt),mt),onClick:dr,onKeyDown:dn,onFocus:fn}),ur,c.createElement(It,{props:(0,ge.Z)((0,ge.Z)({},Se),{},{isSelected:Pn}),icon:Jr}));return wr&&(ci=wr(ci,Se,{selected:Pn})),ci});function He(Se,We){var rt=Se.eventKey,bt=q(),mt=xe(rt);return c.useEffect(function(){if(bt)return bt.registerPath(rt,mt),function(){bt.unregisterPath(rt,mt)}},[mt]),bt?null:c.createElement(ke,(0,v.Z)({},Se,{ref:We}))}var Ze=c.forwardRef(He),X=["className","children"],oe=function(We,rt){var bt=We.className,mt=We.children,Ct=(0,se.Z)(We,X),Tt=c.useContext(U),ar=Tt.prefixCls,cr=Tt.mode,ur=Tt.rtl;return c.createElement("ul",(0,v.Z)({className:ve()(ar,ur&&"".concat(ar,"-rtl"),"".concat(ar,"-sub"),"".concat(ar,"-").concat(cr==="inline"?"inline":"vertical"),bt),role:"menu"},Ct,{"data-menu-list":!0,ref:rt}),mt)},De=c.forwardRef(oe);De.displayName="SubMenuList";var ze=De,j=y(11592);function Pt(Se,We){return(0,j.Z)(Se).map(function(rt,bt){if(c.isValidElement(rt)){var mt,Ct,Tt=rt.key,ar=(mt=(Ct=rt.props)===null||Ct===void 0?void 0:Ct.eventKey)!==null&&mt!==void 0?mt:Tt,cr=ar==null;cr&&(ar="tmp_key-".concat([].concat((0,Ie.Z)(We),[bt]).join("-")));var ur={key:ar,eventKey:ar};return c.cloneElement(rt,ur)}return rt})}var Ae=y(35593),Zt={adjustX:1,adjustY:1},lr={topLeft:{points:["bl","tl"],overflow:Zt},topRight:{points:["br","tr"],overflow:Zt},bottomLeft:{points:["tl","bl"],overflow:Zt},bottomRight:{points:["tr","br"],overflow:Zt},leftTop:{points:["tr","tl"],overflow:Zt},leftBottom:{points:["br","bl"],overflow:Zt},rightTop:{points:["tl","tr"],overflow:Zt},rightBottom:{points:["bl","br"],overflow:Zt}},wt={topLeft:{points:["bl","tl"],overflow:Zt},topRight:{points:["br","tr"],overflow:Zt},bottomLeft:{points:["tl","bl"],overflow:Zt},bottomRight:{points:["tr","br"],overflow:Zt},rightTop:{points:["tr","tl"],overflow:Zt},rightBottom:{points:["br","bl"],overflow:Zt},leftTop:{points:["tl","tr"],overflow:Zt},leftBottom:{points:["bl","br"],overflow:Zt}},Mt=null;function pt(Se,We,rt){if(We)return We;if(rt)return rt[Se]||rt.other}var Et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Re(Se){var We=Se.prefixCls,rt=Se.visible,bt=Se.children,mt=Se.popup,Ct=Se.popupStyle,Tt=Se.popupClassName,ar=Se.popupOffset,cr=Se.disabled,ur=Se.mode,Er=Se.onVisibleChange,Fr=c.useContext(U),Lr=Fr.getPopupContainer,fr=Fr.rtl,ir=Fr.subMenuOpenDelay,$r=Fr.subMenuCloseDelay,Ir=Fr.builtinPlacements,zr=Fr.triggerSubMenuAction,Tr=Fr.forceSubMenuRender,Rr=Fr.rootClassName,Mr=Fr.motion,jr=Fr.defaultMotions,Gr=c.useState(!1),ln=(0,ne.Z)(Gr,2),Hr=ln[0],br=ln[1],Ye=fr?(0,ge.Z)((0,ge.Z)({},wt),Ir):(0,ge.Z)((0,ge.Z)({},lr),Ir),wr=Et[ur],Wr=pt(ur,Mr,jr),Qr=c.useRef(Wr);ur!=="inline"&&(Qr.current=Wr);var cn=(0,ge.Z)((0,ge.Z)({},Qr.current),{},{leavedClassName:"".concat(We,"-hidden"),removeOnLeave:!1,motionAppear:!0}),En=c.useRef();return c.useEffect(function(){return En.current=(0,Pe.Z)(function(){br(rt)}),function(){Pe.Z.cancel(En.current)}},[rt]),c.createElement(Ae.Z,{prefixCls:We,popupClassName:ve()("".concat(We,"-popup"),(0,Y.Z)({},"".concat(We,"-rtl"),fr),Tt,Rr),stretch:ur==="horizontal"?"minWidth":null,getPopupContainer:Lr,builtinPlacements:Ye,popupPlacement:wr,popupVisible:Hr,popup:mt,popupStyle:Ct,popupAlign:ar&&{offset:ar},action:cr?[]:[zr],mouseEnterDelay:ir,mouseLeaveDelay:$r,onPopupVisibleChange:Er,forceRender:Tr,popupMotion:cn,fresh:!0},bt)}var st=y(77900);function ct(Se){var We=Se.id,rt=Se.open,bt=Se.keyPath,mt=Se.children,Ct="inline",Tt=c.useContext(U),ar=Tt.prefixCls,cr=Tt.forceSubMenuRender,ur=Tt.motion,Er=Tt.defaultMotions,Fr=Tt.mode,Lr=c.useRef(!1);Lr.current=Fr===Ct;var fr=c.useState(!Lr.current),ir=(0,ne.Z)(fr,2),$r=ir[0],Ir=ir[1],zr=Lr.current?rt:!1;c.useEffect(function(){Lr.current&&Ir(!1)},[Fr]);var Tr=(0,ge.Z)({},pt(Ct,ur,Er));bt.length>1&&(Tr.motionAppear=!1);var Rr=Tr.onVisibleChanged;return Tr.onVisibleChanged=function(Mr){return!Lr.current&&!Mr&&Ir(!0),Rr==null?void 0:Rr(Mr)},$r?null:c.createElement(x,{mode:Ct,locked:!Lr.current},c.createElement(st.default,(0,v.Z)({visible:zr},Tr,{forceRender:cr,removeOnLeave:!1,leavedClassName:"".concat(ar,"-hidden")}),function(Mr){var jr=Mr.className,Gr=Mr.style;return c.createElement(ze,{id:We,className:jr,style:Gr},mt)}))}var gt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Je=["active"],Ft=function(We){var rt,bt=We.style,mt=We.className,Ct=We.title,Tt=We.eventKey,ar=We.warnKey,cr=We.disabled,ur=We.internalPopupClose,Er=We.children,Fr=We.itemIcon,Lr=We.expandIcon,fr=We.popupClassName,ir=We.popupOffset,$r=We.popupStyle,Ir=We.onClick,zr=We.onMouseEnter,Tr=We.onMouseLeave,Rr=We.onTitleClick,Mr=We.onTitleMouseEnter,jr=We.onTitleMouseLeave,Gr=(0,se.Z)(We,gt),ln=te(Tt),Hr=c.useContext(U),br=Hr.prefixCls,Ye=Hr.mode,wr=Hr.openKeys,Wr=Hr.disabled,Qr=Hr.overflowDisabled,cn=Hr.activeKey,En=Hr.selectedKeys,Ar=Hr.itemIcon,Cr=Hr.expandIcon,Xr=Hr.onItemClick,Jr=Hr.onOpenChange,Zr=Hr.onActive,un=c.useContext(H),si=un._internalRenderSubMenuItem,Pn=c.useContext(we),an=Pn.isSubPathKey,dr=xe(),dn="".concat(br,"-submenu"),fn=Wr||cr,Fn=c.useRef(),ci=c.useRef(),Jn=Fr!=null?Fr:Ar,Cn=Lr!=null?Lr:Cr,Nn=wr.includes(Tt),bn=!Qr&&Nn,ti=an(En,Tt),Kn=ft(Tt,fn,Mr,jr),ri=Kn.active,$n=(0,se.Z)(Kn,Je),qn=c.useState(!1),tn=(0,ne.Z)(qn,2),di=tn[0],vi=tn[1],Kr=function(ei){fn||vi(ei)},Ur=function(ei){Kr(!0),zr==null||zr({key:Tt,domEvent:ei})},pn=function(ei){Kr(!1),Tr==null||Tr({key:Tt,domEvent:ei})},Yr=c.useMemo(function(){return ri||(Ye!=="inline"?di||an([cn],Tt):!1)},[Ye,ri,cn,di,Tt,an]),Vt=At(dr.length),gn=function(ei){fn||(Rr==null||Rr({key:Tt,domEvent:ei}),Ye==="inline"&&Jr(Tt,!Nn))},Gn=Fe(function(Hn){Ir==null||Ir(C(Hn)),Xr(Hn)}),Vn=function(ei){Ye!=="inline"&&Jr(Tt,ei)},wn=function(){Zr(Tt)},In=ln&&"".concat(ln,"-popup"),hn=c.createElement("div",(0,v.Z)({role:"menuitem",style:Vt,className:"".concat(dn,"-title"),tabIndex:fn?null:-1,ref:Fn,title:typeof Ct=="string"?Ct:null,"data-menu-id":Qr&&ln?null:ln,"aria-expanded":bn,"aria-haspopup":!0,"aria-controls":In,"aria-disabled":fn,onClick:gn,onFocus:wn},$n),Ct,c.createElement(It,{icon:Ye!=="horizontal"?Cn:void 0,props:(0,ge.Z)((0,ge.Z)({},We),{},{isOpen:bn,isSubMenu:!0})},c.createElement("i",{className:"".concat(dn,"-arrow")}))),Mn=c.useRef(Ye);if(Ye!=="inline"&&dr.length>1?Mn.current="vertical":Mn.current=Ye,!Qr){var ni=Mn.current;hn=c.createElement(Re,{mode:ni,prefixCls:dn,visible:!ur&&bn&&Ye!=="inline",popupClassName:fr,popupOffset:ir,popupStyle:$r,popup:c.createElement(x,{mode:ni==="horizontal"?"vertical":ni},c.createElement(ze,{id:In,ref:ci},Er)),disabled:fn,onVisibleChange:Vn},hn)}var ai=c.createElement(a.Z.Item,(0,v.Z)({role:"none"},Gr,{component:"li",style:bt,className:ve()(dn,"".concat(dn,"-").concat(Ye),mt,(rt={},(0,Y.Z)(rt,"".concat(dn,"-open"),bn),(0,Y.Z)(rt,"".concat(dn,"-active"),Yr),(0,Y.Z)(rt,"".concat(dn,"-selected"),ti),(0,Y.Z)(rt,"".concat(dn,"-disabled"),fn),rt)),onMouseEnter:Ur,onMouseLeave:pn}),hn,!Qr&&c.createElement(ct,{id:In,open:bn,keyPath:dr},Er));return si&&(ai=si(ai,We,{selected:ti,active:Yr,open:bn,disabled:fn})),c.createElement(x,{onItemClick:Gn,mode:Ye==="horizontal"?"vertical":Ye,itemIcon:Jn,expandIcon:Cn},ai)};function $t(Se){var We=Se.eventKey,rt=Se.children,bt=xe(We),mt=Pt(rt,bt),Ct=q();c.useEffect(function(){if(Ct)return Ct.registerPath(We,bt),function(){Ct.unregisterPath(We,bt)}},[bt]);var Tt;return Ct?Tt=mt:Tt=c.createElement(Ft,Se,mt),c.createElement(ce.Provider,{value:bt},Tt)}var Wt=y(20135),gr=["className","title","eventKey","children"],vr=["children"],er=function(We){var rt=We.className,bt=We.title,mt=We.eventKey,Ct=We.children,Tt=(0,se.Z)(We,gr),ar=c.useContext(U),cr=ar.prefixCls,ur="".concat(cr,"-item-group");return c.createElement("li",(0,v.Z)({role:"presentation"},Tt,{onClick:function(Fr){return Fr.stopPropagation()},className:ve()(ur,rt)}),c.createElement("div",{role:"presentation",className:"".concat(ur,"-title"),title:typeof bt=="string"?bt:void 0},bt),c.createElement("ul",{role:"group",className:"".concat(ur,"-list")},Ct))};function yr(Se){var We=Se.children,rt=(0,se.Z)(Se,vr),bt=xe(rt.eventKey),mt=Pt(We,bt),Ct=q();return Ct?mt:c.createElement(er,(0,Ke.Z)(rt,["warnKey"]),mt)}function _r(Se){var We=Se.className,rt=Se.style,bt=c.useContext(U),mt=bt.prefixCls,Ct=q();return Ct?null:c.createElement("li",{role:"separator",className:ve()("".concat(mt,"-item-divider"),We),style:rt})}var Jt=["label","children","key","type"];function Kt(Se){return(Se||[]).map(function(We,rt){if(We&&(0,Wt.Z)(We)==="object"){var bt=We,mt=bt.label,Ct=bt.children,Tt=bt.key,ar=bt.type,cr=(0,se.Z)(bt,Jt),ur=Tt!=null?Tt:"tmp-".concat(rt);return Ct||ar==="group"?ar==="group"?c.createElement(yr,(0,v.Z)({key:ur},cr,{title:mt}),Kt(Ct)):c.createElement($t,(0,v.Z)({key:ur},cr,{title:mt}),Kt(Ct)):ar==="divider"?c.createElement(_r,(0,v.Z)({key:ur},cr)):c.createElement(Ze,(0,v.Z)({key:ur},cr),mt)}return null}).filter(function(We){return We})}function $e(Se,We,rt){var bt=Se;return We&&(bt=Kt(We)),Pt(bt,rt)}var vt=["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"],at=[],yt=c.forwardRef(function(Se,We){var rt,bt,mt=Se,Ct=mt.prefixCls,Tt=Ct===void 0?"rc-menu":Ct,ar=mt.rootClassName,cr=mt.style,ur=mt.className,Er=mt.tabIndex,Fr=Er===void 0?0:Er,Lr=mt.items,fr=mt.children,ir=mt.direction,$r=mt.id,Ir=mt.mode,zr=Ir===void 0?"vertical":Ir,Tr=mt.inlineCollapsed,Rr=mt.disabled,Mr=mt.disabledOverflow,jr=mt.subMenuOpenDelay,Gr=jr===void 0?.1:jr,ln=mt.subMenuCloseDelay,Hr=ln===void 0?.1:ln,br=mt.forceSubMenuRender,Ye=mt.defaultOpenKeys,wr=mt.openKeys,Wr=mt.activeKey,Qr=mt.defaultActiveFirst,cn=mt.selectable,En=cn===void 0?!0:cn,Ar=mt.multiple,Cr=Ar===void 0?!1:Ar,Xr=mt.defaultSelectedKeys,Jr=mt.selectedKeys,Zr=mt.onSelect,un=mt.onDeselect,si=mt.inlineIndent,Pn=si===void 0?24:si,an=mt.motion,dr=mt.defaultMotions,dn=mt.triggerSubMenuAction,fn=dn===void 0?"hover":dn,Fn=mt.builtinPlacements,ci=mt.itemIcon,Jn=mt.expandIcon,Cn=mt.overflowedIndicator,Nn=Cn===void 0?"...":Cn,bn=mt.overflowedIndicatorPopupClassName,ti=mt.getPopupContainer,Kn=mt.onClick,ri=mt.onOpenChange,$n=mt.onKeyDown,qn=mt.openAnimation,tn=mt.openTransitionName,di=mt._internalRenderMenuItem,vi=mt._internalRenderSubMenuItem,Kr=(0,se.Z)(mt,vt),Ur=c.useMemo(function(){return $e(fr,Lr,at)},[fr,Lr]),pn=c.useState(!1),Yr=(0,ne.Z)(pn,2),Vt=Yr[0],gn=Yr[1],Gn=c.useRef(),Vn=ot($r),wn=ir==="rtl",In=(0,P.Z)(Ye,{value:wr,postState:function(xn){return xn||at}}),hn=(0,ne.Z)(In,2),Mn=hn[0],ni=hn[1],ai=function(xn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wn(){ni(xn),ri==null||ri(xn)}_n?(0,w.flushSync)(Wn):Wn()},Hn=c.useState(Mn),ei=(0,ne.Z)(Hn,2),Mi=ei[0],Hi=ei[1],Si=c.useRef(!1),Yi=c.useMemo(function(){return(zr==="inline"||zr==="vertical")&&Tr?["vertical",Tr]:[zr,!1]},[zr,Tr]),Li=(0,ne.Z)(Yi,2),ki=Li[0],kr=Li[1],Sr=ki==="inline",mn=c.useState(ki),zn=(0,ne.Z)(mn,2),yn=zn[0],hi=zn[1],Wi=c.useState(kr),Bi=(0,ne.Z)(Wi,2),Ei=Bi[0],vs=Bi[1];c.useEffect(function(){hi(ki),vs(kr),Si.current&&(Sr?ni(Mi):ai(at))},[ki,kr]);var Ds=c.useState(0),Rs=(0,ne.Z)(Ds,2),ns=Rs[0],Is=Rs[1],Ai=ns>=Ur.length-1||yn!=="horizontal"||Mr;c.useEffect(function(){Sr&&Hi(Mn)},[Mn]),c.useEffect(function(){return Si.current=!0,function(){Si.current=!1}},[]);var Xn=Oe(),ys=Xn.registerPath,is=Xn.unregisterPath,_i=Xn.refreshOverflowKeys,Ci=Xn.isSubPathKey,Qs=Xn.getKeyPath,Di=Xn.getKeys,Js=Xn.getSubPathKeys,_s=c.useMemo(function(){return{registerPath:ys,unregisterPath:is}},[ys,is]),ss=c.useMemo(function(){return{isSubPathKey:Ci}},[Ci]);c.useEffect(function(){_i(Ai?at:Ur.slice(ns+1).map(function(Sn){return Sn.key}))},[ns,Ai]);var qs=(0,P.Z)(Wr||Qr&&((rt=Ur[0])===null||rt===void 0?void 0:rt.key),{value:Wr}),Qn=(0,ne.Z)(qs,2),Xi=Qn[0],Ni=Qn[1],Ki=Fe(function(Sn){Ni(Sn)}),Ls=Fe(function(){Ni(void 0)});(0,c.useImperativeHandle)(We,function(){return{list:Gn.current,focus:function(xn){var _n,Wn=Di(),Zn=F(Wn,Vn),Ji=Zn.elements,Es=Zn.key2element,Os=Zn.element2key,Ps=de(Gn.current,Ji),qi=Xi!=null?Xi:Ps[0]?Os.get(Ps[0]):(_n=Ur.find(function(cs){return!cs.props.disabled}))===null||_n===void 0?void 0:_n.key,Gi=Es.get(qi);if(qi&&Gi){var qt;Gi==null||(qt=Gi.focus)===null||qt===void 0||qt.call(Gi,xn)}}}});var Tn=(0,P.Z)(Xr||[],{value:Jr,postState:function(xn){return Array.isArray(xn)?xn:xn==null?at:[xn]}}),as=(0,ne.Z)(Tn,2),fi=as[0],Qi=as[1],ea=function(xn){if(En){var _n=xn.key,Wn=fi.includes(_n),Zn;Cr?Wn?Zn=fi.filter(function(Es){return Es!==_n}):Zn=[].concat((0,Ie.Z)(fi),[_n]):Zn=[_n],Qi(Zn);var Ji=(0,ge.Z)((0,ge.Z)({},xn),{},{selectedKeys:Zn});Wn?un==null||un(Ji):Zr==null||Zr(Ji)}!Cr&&Mn.length&&yn!=="inline"&&ai(at)},os=Fe(function(Sn){Kn==null||Kn(C(Sn)),ea(Sn)}),ls=Fe(function(Sn,xn){var _n=Mn.filter(function(Zn){return Zn!==Sn});if(xn)_n.push(Sn);else if(yn!=="inline"){var Wn=Js(Sn);_n=_n.filter(function(Zn){return!Wn.has(Zn)})}(0,O.Z)(Mn,_n,!0)||ai(_n,!0)}),us=function(xn,_n){var Wn=_n!=null?_n:!Mn.includes(xn);ls(xn,Wn)},bs=fe(yn,Xi,wn,Vn,Gn,Di,Qs,Ni,us,$n);c.useEffect(function(){gn(!0)},[]);var ks=c.useMemo(function(){return{_internalRenderMenuItem:di,_internalRenderSubMenuItem:vi}},[di,vi]),wi=yn!=="horizontal"||Mr?Ur:Ur.map(function(Sn,xn){return c.createElement(x,{key:Sn.key,overflowDisabled:xn>ns},Sn)}),xs=c.createElement(a.Z,(0,v.Z)({id:$r,ref:Gn,prefixCls:"".concat(Tt,"-overflow"),component:"ul",itemComponent:Ze,className:ve()(Tt,"".concat(Tt,"-root"),"".concat(Tt,"-").concat(yn),ur,(bt={},(0,Y.Z)(bt,"".concat(Tt,"-inline-collapsed"),Ei),(0,Y.Z)(bt,"".concat(Tt,"-rtl"),wn),bt),ar),dir:ir,style:cr,role:"menu",tabIndex:Fr,data:wi,renderRawItem:function(xn){return xn},renderRawRest:function(xn){var _n=xn.length,Wn=_n?Ur.slice(-_n):null;return c.createElement($t,{eventKey:be,title:Nn,disabled:Ai,internalPopupClose:_n===0,popupClassName:bn},Wn)},maxCount:yn!=="horizontal"||Mr?a.Z.INVALIDATE:a.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(xn){Is(xn)},onKeyDown:bs},Kr));return c.createElement(H.Provider,{value:ks},c.createElement(E.Provider,{value:Vn},c.createElement(x,{prefixCls:Tt,rootClassName:ar,mode:yn,openKeys:Mn,rtl:wn,disabled:Rr,motion:Vt?an:null,defaultMotions:Vt?dr:null,activeKey:Xi,onActive:Ki,onInactive:Ls,selectedKeys:fi,inlineIndent:Pn,subMenuOpenDelay:Gr,subMenuCloseDelay:Hr,forceSubMenuRender:br,builtinPlacements:Fn,triggerSubMenuAction:fn,getPopupContainer:ti,itemIcon:ci,expandIcon:Jn,onItemClick:os,onOpenChange:ls},c.createElement(we.Provider,{value:ss},xs),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Q.Provider,{value:_s},Ur)))))}),Nt=yt,Ot=Nt;Ot.Item=Ze,Ot.SubMenu=$t,Ot.ItemGroup=yr,Ot.Divider=_r;var ut=Ot},11780:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return J}});var v=y(96663),Y=y(44127),ge=y(72071),Ie=y(6620),ne=y(59301),se=y(92310),ye=y.n(se),ve=y(29301),a=y(34280),P=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],O=void 0;function A(g,S){var K=g.prefixCls,G=g.invalidate,Pe=g.item,Ne=g.renderItem,Ue=g.responsive,Ve=g.responsiveDisabled,qe=g.registerSize,tt=g.itemKey,lt=g.className,Ut=g.style,Yt=g.children,sr=g.display,Bt=g.order,Ht=g.component,Xt=Ht===void 0?"div":Ht,de=(0,Ie.Z)(g,P),Ee=Ue&&!sr;function F(he){qe(tt,he)}ne.useEffect(function(){return function(){F(null)}},[]);var fe=Ne&&Pe!==O?Ne(Pe,{index:Bt}):Yt,Te;G||(Te={opacity:Ee?0:1,height:Ee?0:O,overflowY:Ee?"hidden":O,order:Ue?Bt:O,pointerEvents:Ee?"none":O,position:Ee?"absolute":O});var I={};Ee&&(I["aria-hidden"]=!0);var ee=ne.createElement(Xt,(0,v.Z)({className:ye()(!G&&K,lt),style:(0,Y.Z)((0,Y.Z)({},Te),Ut)},I,de,{ref:S}),fe);return Ue&&(ee=ne.createElement(ve.Z,{onResize:function(be){var Oe=be.offsetWidth;F(Oe)},disabled:Ve},ee)),ee}var c=ne.forwardRef(A);c.displayName="Item";var w=c,E=y(6089),V=y(4676),te=y(16089);function R(g){if(typeof MessageChannel=="undefined")(0,te.Z)(g);else{var S=new MessageChannel;S.port1.onmessage=function(){return g()},S.port2.postMessage(void 0)}}function k(){var g=ne.useRef(null),S=function(G){g.current||(g.current=[],R(function(){(0,V.unstable_batchedUpdates)(function(){g.current.forEach(function(Pe){Pe()}),g.current=null})})),g.current.push(G)};return S}function U(g,S){var K=ne.useState(S),G=(0,ge.Z)(K,2),Pe=G[0],Ne=G[1],Ue=(0,E.Z)(function(Ve){g(function(){Ne(Ve)})});return[Pe,Ue]}var ae=ne.createContext(null),x=["component"],z=["className"],Q=["className"],q=function(S,K){var G=ne.useContext(ae);if(!G){var Pe=S.component,Ne=Pe===void 0?"div":Pe,Ue=(0,Ie.Z)(S,x);return ne.createElement(Ne,(0,v.Z)({},Ue,{ref:K}))}var Ve=G.className,qe=(0,Ie.Z)(G,z),tt=S.className,lt=(0,Ie.Z)(S,Q);return ne.createElement(ae.Provider,{value:null},ne.createElement(w,(0,v.Z)({ref:K,className:ye()(Ve,tt)},qe,lt)))},ce=ne.forwardRef(q);ce.displayName="RawItem";var xe=ce,we=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Be="responsive",H="invalidate";function L(g){return"+ ".concat(g.length," ...")}function Z(g,S){var K=g.prefixCls,G=K===void 0?"rc-overflow":K,Pe=g.data,Ne=Pe===void 0?[]:Pe,Ue=g.renderItem,Ve=g.renderRawItem,qe=g.itemKey,tt=g.itemWidth,lt=tt===void 0?10:tt,Ut=g.ssr,Yt=g.style,sr=g.className,Bt=g.maxCount,Ht=g.renderRest,Xt=g.renderRawRest,de=g.suffix,Ee=g.component,F=Ee===void 0?"div":Ee,fe=g.itemComponent,Te=g.onVisibleChange,I=(0,Ie.Z)(g,we),ee=Ut==="full",he=k(),be=U(he,null),Oe=(0,ge.Z)(be,2),Fe=Oe[0],Qe=Oe[1],ht=Fe||0,ot=U(he,new Map),Xe=(0,ge.Z)(ot,2),Dt=Xe[0],kt=Xe[1],Le=U(he,0),Ke=(0,ge.Z)(Le,2),nt=Ke[0],ft=Ke[1],At=U(he,0),It=(0,ge.Z)(At,2),_=It[0],C=It[1],et=U(he,0),$=(0,ge.Z)(et,2),me=$[0],tr=$[1],ke=(0,ne.useState)(null),He=(0,ge.Z)(ke,2),Ze=He[0],X=He[1],oe=(0,ne.useState)(null),De=(0,ge.Z)(oe,2),ze=De[0],j=De[1],Pt=ne.useMemo(function(){return ze===null&&ee?Number.MAX_SAFE_INTEGER:ze||0},[ze,Fe]),Ae=(0,ne.useState)(!1),Zt=(0,ge.Z)(Ae,2),lr=Zt[0],wt=Zt[1],Mt="".concat(G,"-item"),pt=Math.max(nt,_),Et=Bt===Be,Re=Ne.length&&Et,st=Bt===H,ct=Re||typeof Bt=="number"&&Ne.length>Bt,gt=(0,ne.useMemo)(function(){var ut=Ne;return Re?Fe===null&&ee?ut=Ne:ut=Ne.slice(0,Math.min(Ne.length,ht/lt)):typeof Bt=="number"&&(ut=Ne.slice(0,Bt)),ut},[Ne,lt,Fe,Bt,Re]),Je=(0,ne.useMemo)(function(){return Re?Ne.slice(Pt+1):Ne.slice(gt.length)},[Ne,gt,Re,Pt]),Ft=(0,ne.useCallback)(function(ut,Se){var We;return typeof qe=="function"?qe(ut):(We=qe&&(ut==null?void 0:ut[qe]))!==null&&We!==void 0?We:Se},[qe]),$t=(0,ne.useCallback)(Ue||function(ut){return ut},[Ue]);function Wt(ut,Se,We){ze===ut&&(Se===void 0||Se===Ze)||(j(ut),We||(wt(ut<Ne.length-1),Te==null||Te(ut)),Se!==void 0&&X(Se))}function gr(ut,Se){Qe(Se.clientWidth)}function vr(ut,Se){kt(function(We){var rt=new Map(We);return Se===null?rt.delete(ut):rt.set(ut,Se),rt})}function er(ut,Se){C(Se),ft(_)}function yr(ut,Se){tr(Se)}function _r(ut){return Dt.get(Ft(gt[ut],ut))}(0,a.Z)(function(){if(ht&&typeof pt=="number"&>){var ut=me,Se=gt.length,We=Se-1;if(!Se){Wt(0,null);return}for(var rt=0;rt<Se;rt+=1){var bt=_r(rt);if(ee&&(bt=bt||0),bt===void 0){Wt(rt-1,void 0,!0);break}if(ut+=bt,We===0&&ut<=ht||rt===We-1&&ut+_r(We)<=ht){Wt(We,null);break}else if(ut+pt>ht){Wt(rt-1,ut-bt-me+_);break}}de&&_r(0)+me>ht&&X(null)}},[ht,Dt,_,me,Ft,gt]);var Jt=lr&&!!Je.length,Kt={};Ze!==null&&Re&&(Kt={position:"absolute",left:Ze,top:0});var $e={prefixCls:Mt,responsive:Re,component:fe,invalidate:st},vt=Ve?function(ut,Se){var We=Ft(ut,Se);return ne.createElement(ae.Provider,{key:We,value:(0,Y.Z)((0,Y.Z)({},$e),{},{order:Se,item:ut,itemKey:We,registerSize:vr,display:Se<=Pt})},Ve(ut,Se))}:function(ut,Se){var We=Ft(ut,Se);return ne.createElement(w,(0,v.Z)({},$e,{order:Se,key:We,item:ut,renderItem:$t,itemKey:We,registerSize:vr,display:Se<=Pt}))},at={order:Jt?Pt:Number.MAX_SAFE_INTEGER,className:"".concat(Mt,"-rest"),registerSize:er,display:Jt},yt=Ht||L,Nt=Xt?ne.createElement(ae.Provider,{value:(0,Y.Z)((0,Y.Z)({},$e),at)},Xt(Je)):ne.createElement(w,(0,v.Z)({},$e,at),typeof yt=="function"?yt(Je):yt),Ot=ne.createElement(F,(0,v.Z)({className:ye()(!st&&G,sr),style:Yt,ref:S},I),gt.map(vt),ct?Nt:null,de&&ne.createElement(w,(0,v.Z)({},$e,{responsive:Et,responsiveDisabled:!Re,order:Pt,className:"".concat(Mt,"-suffix"),registerSize:yr,display:!0,style:Kt}),de));return Et?ne.createElement(ve.Z,{onResize:gr,disabled:!Re},Ot):Ot}var W=ne.forwardRef(Z);W.displayName="Overflow",W.Item=xe,W.RESPONSIVE=Be,W.INVALIDATE=H;var le=W,J=le},29301:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return H}});var v=y(96663),Y=y(59301),ge=y(11592),Ie=y(48736),ne=y(44127),se=y(20135),ye=y(76846),ve=y(8654),a=Y.createContext(null);function P(L){var Z=L.children,W=L.onBatchResize,le=Y.useRef(0),J=Y.useRef([]),g=Y.useContext(a),S=Y.useCallback(function(K,G,Pe){le.current+=1;var Ne=le.current;J.current.push({size:K,element:G,data:Pe}),Promise.resolve().then(function(){Ne===le.current&&(W==null||W(J.current),J.current=[])}),g==null||g(K,G,Pe)},[W,g]);return Y.createElement(a.Provider,{value:S},Z)}var O=y(76374),A=new Map;function c(L){L.forEach(function(Z){var W,le=Z.target;(W=A.get(le))===null||W===void 0||W.forEach(function(J){return J(le)})})}var w=new O.Z(c),E=null,V=null;function te(L,Z){A.has(L)||(A.set(L,new Set),w.observe(L)),A.get(L).add(Z)}function R(L,Z){A.has(L)&&(A.get(L).delete(Z),A.get(L).size||(w.unobserve(L),A.delete(L)))}var k=y(52884),U=y(95727),ae=y(65711),x=y(85745),z=function(L){(0,ae.Z)(W,L);var Z=(0,x.Z)(W);function W(){return(0,k.Z)(this,W),Z.apply(this,arguments)}return(0,U.Z)(W,[{key:"render",value:function(){return this.props.children}}]),W}(Y.Component);function Q(L,Z){var W=L.children,le=L.disabled,J=Y.useRef(null),g=Y.useRef(null),S=Y.useContext(a),K=typeof W=="function",G=K?W(J):W,Pe=Y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ne=!K&&Y.isValidElement(G)&&(0,ve.Yr)(G),Ue=Ne?(0,ve.C4)(G):null,Ve=(0,ve.x1)(Ue,J),qe=function(){var Yt;return(0,ye.ZP)(J.current)||(J.current&&(0,se.Z)(J.current)==="object"?(0,ye.ZP)((Yt=J.current)===null||Yt===void 0?void 0:Yt.nativeElement):null)||(0,ye.ZP)(g.current)};Y.useImperativeHandle(Z,function(){return qe()});var tt=Y.useRef(L);tt.current=L;var lt=Y.useCallback(function(Ut){var Yt=tt.current,sr=Yt.onResize,Bt=Yt.data,Ht=Ut.getBoundingClientRect(),Xt=Ht.width,de=Ht.height,Ee=Ut.offsetWidth,F=Ut.offsetHeight,fe=Math.floor(Xt),Te=Math.floor(de);if(Pe.current.width!==fe||Pe.current.height!==Te||Pe.current.offsetWidth!==Ee||Pe.current.offsetHeight!==F){var I={width:fe,height:Te,offsetWidth:Ee,offsetHeight:F};Pe.current=I;var ee=Ee===Math.round(Xt)?Xt:Ee,he=F===Math.round(de)?de:F,be=(0,ne.Z)((0,ne.Z)({},I),{},{offsetWidth:ee,offsetHeight:he});S==null||S(be,Ut,Bt),sr&&Promise.resolve().then(function(){sr(be,Ut)})}},[]);return Y.useEffect(function(){var Ut=qe();return Ut&&!le&&te(Ut,lt),function(){return R(Ut,lt)}},[J.current,le]),Y.createElement(z,{ref:g},Ne?Y.cloneElement(G,{ref:Ve}):G)}var q=Y.forwardRef(Q),ce=q,xe="rc-observer-key";function we(L,Z){var W=L.children,le=typeof W=="function"?[W]:(0,ge.Z)(W);return le.map(function(J,g){var S=(J==null?void 0:J.key)||"".concat(xe,"-").concat(g);return Y.createElement(ce,(0,v.Z)({},L,{key:S,ref:g===0?Z:void 0}),J)})}var Be=Y.forwardRef(we);Be.Collection=P;var H=Be},9296:function(Qt,it,y){"use strict";y.r(it),y.d(it,{ResizableTextArea:function(){return we},default:function(){return le}});var v=y(96663),Y=y(44127),ge=y(90493),Ie=y(20135),ne=y(72071),se=y(6620),ye=y(19127),ve=y(92310),a=y.n(ve),P=y(93681),O=y(5643),A=y(18929),c=y(59301),w=y(29301),E=y(34280),V=y(16089),te=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,R=["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"],k={},U;function ae(J){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(g&&k[S])return k[S];var K=window.getComputedStyle(J),G=K.getPropertyValue("box-sizing")||K.getPropertyValue("-moz-box-sizing")||K.getPropertyValue("-webkit-box-sizing"),Pe=parseFloat(K.getPropertyValue("padding-bottom"))+parseFloat(K.getPropertyValue("padding-top")),Ne=parseFloat(K.getPropertyValue("border-bottom-width"))+parseFloat(K.getPropertyValue("border-top-width")),Ue=R.map(function(qe){return"".concat(qe,":").concat(K.getPropertyValue(qe))}).join(";"),Ve={sizingStyle:Ue,paddingSize:Pe,borderSize:Ne,boxSizing:G};return g&&S&&(k[S]=Ve),Ve}function x(J){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),J.getAttribute("wrap")?U.setAttribute("wrap",J.getAttribute("wrap")):U.removeAttribute("wrap");var G=ae(J,g),Pe=G.paddingSize,Ne=G.borderSize,Ue=G.boxSizing,Ve=G.sizingStyle;U.setAttribute("style","".concat(Ve,";").concat(te)),U.value=J.value||J.placeholder||"";var qe=void 0,tt=void 0,lt,Ut=U.scrollHeight;if(Ue==="border-box"?Ut+=Ne:Ue==="content-box"&&(Ut-=Pe),S!==null||K!==null){U.value=" ";var Yt=U.scrollHeight-Pe;S!==null&&(qe=Yt*S,Ue==="border-box"&&(qe=qe+Pe+Ne),Ut=Math.max(qe,Ut)),K!==null&&(tt=Yt*K,Ue==="border-box"&&(tt=tt+Pe+Ne),lt=Ut>tt?"":"hidden",Ut=Math.min(tt,Ut))}var sr={height:Ut,overflowY:lt,resize:"none"};return qe&&(sr.minHeight=qe),tt&&(sr.maxHeight=tt),sr}var z=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Q=0,q=1,ce=2,xe=c.forwardRef(function(J,g){var S=J,K=S.prefixCls,G=S.onPressEnter,Pe=S.defaultValue,Ne=S.value,Ue=S.autoSize,Ve=S.onResize,qe=S.className,tt=S.style,lt=S.disabled,Ut=S.onChange,Yt=S.onInternalAutoSize,sr=(0,se.Z)(S,z),Bt=(0,A.Z)(Pe,{value:Ne,postState:function(C){return C!=null?C:""}}),Ht=(0,ne.Z)(Bt,2),Xt=Ht[0],de=Ht[1],Ee=function(C){de(C.target.value),Ut==null||Ut(C)},F=c.useRef();c.useImperativeHandle(g,function(){return{textArea:F.current}});var fe=c.useMemo(function(){return Ue&&(0,Ie.Z)(Ue)==="object"?[Ue.minRows,Ue.maxRows]:[]},[Ue]),Te=(0,ne.Z)(fe,2),I=Te[0],ee=Te[1],he=!!Ue,be=function(){try{if(document.activeElement===F.current){var C=F.current,et=C.selectionStart,$=C.selectionEnd,me=C.scrollTop;F.current.setSelectionRange(et,$),F.current.scrollTop=me}}catch(tr){}},Oe=c.useState(ce),Fe=(0,ne.Z)(Oe,2),Qe=Fe[0],ht=Fe[1],ot=c.useState(),Xe=(0,ne.Z)(ot,2),Dt=Xe[0],kt=Xe[1],Le=function(){ht(Q)};(0,E.Z)(function(){he&&Le()},[Ne,I,ee,he]),(0,E.Z)(function(){if(Qe===Q)ht(q);else if(Qe===q){var _=x(F.current,!1,I,ee);ht(ce),kt(_)}else be()},[Qe]);var Ke=c.useRef(),nt=function(){V.Z.cancel(Ke.current)},ft=function(C){Qe===ce&&(Ve==null||Ve(C),Ue&&(nt(),Ke.current=(0,V.Z)(function(){Le()})))};c.useEffect(function(){return nt},[]);var At=he?Dt:null,It=(0,Y.Z)((0,Y.Z)({},tt),At);return(Qe===Q||Qe===q)&&(It.overflowY="hidden",It.overflowX="hidden"),c.createElement(w.Z,{onResize:ft,disabled:!(Ue||Ve)},c.createElement("textarea",(0,v.Z)({},sr,{ref:F,style:It,className:a()(K,qe,(0,ge.Z)({},"".concat(K,"-disabled"),lt)),disabled:lt,value:Xt,onChange:Ee})))}),we=xe,Be=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function H(J,g){return(0,ye.Z)(J||"").slice(0,g).join("")}function L(J,g,S,K){var G=S;return J?G=H(S,K):(0,ye.Z)(g||"").length<S.length&&(0,ye.Z)(S||"").length>K&&(G=g),G}var Z=c.forwardRef(function(J,g){var S,K=J.defaultValue,G=J.value,Pe=J.onFocus,Ne=J.onBlur,Ue=J.onChange,Ve=J.allowClear,qe=J.maxLength,tt=J.onCompositionStart,lt=J.onCompositionEnd,Ut=J.suffix,Yt=J.prefixCls,sr=Yt===void 0?"rc-textarea":Yt,Bt=J.classes,Ht=J.showCount,Xt=J.className,de=J.style,Ee=J.disabled,F=J.hidden,fe=J.classNames,Te=J.styles,I=J.onResize,ee=(0,se.Z)(J,Be),he=(0,A.Z)(K,{value:G,defaultValue:K}),be=(0,ne.Z)(he,2),Oe=be[0],Fe=be[1],Qe=(0,c.useRef)(null),ht=c.useState(!1),ot=(0,ne.Z)(ht,2),Xe=ot[0],Dt=ot[1],kt=c.useState(!1),Le=(0,ne.Z)(kt,2),Ke=Le[0],nt=Le[1],ft=c.useRef(),At=c.useRef(0),It=c.useState(null),_=(0,ne.Z)(It,2),C=_[0],et=_[1],$=function(){var pt;(pt=Qe.current)===null||pt===void 0||pt.textArea.focus()};(0,c.useImperativeHandle)(g,function(){return{resizableTextArea:Qe.current,focus:$,blur:function(){var pt;(pt=Qe.current)===null||pt===void 0||pt.textArea.blur()}}}),(0,c.useEffect)(function(){Dt(function(Mt){return!Ee&&Mt})},[Ee]);var me=Number(qe)>0,tr=function(pt){nt(!0),ft.current=Oe,At.current=pt.currentTarget.selectionStart,tt==null||tt(pt)},ke=function(pt){nt(!1);var Et=pt.currentTarget.value;if(me){var Re,st=At.current>=qe+1||At.current===((Re=ft.current)===null||Re===void 0?void 0:Re.length);Et=L(st,ft.current,Et,qe)}Et!==Oe&&(Fe(Et),(0,O.rJ)(pt.currentTarget,pt,Ue,Et)),lt==null||lt(pt)},He=function(pt){var Et=pt.target.value;if(!Ke&&me){var Re=pt.target.selectionStart>=qe+1||pt.target.selectionStart===Et.length||!pt.target.selectionStart;Et=L(Re,Oe,Et,qe)}Fe(Et),(0,O.rJ)(pt.currentTarget,pt,Ue,Et)},Ze=function(pt){var Et=ee.onPressEnter,Re=ee.onKeyDown;pt.key==="Enter"&&Et&&Et(pt),Re==null||Re(pt)},X=function(pt){Dt(!0),Pe==null||Pe(pt)},oe=function(pt){Dt(!1),Ne==null||Ne(pt)},De=function(pt){var Et;Fe(""),$(),(0,O.rJ)((Et=Qe.current)===null||Et===void 0?void 0:Et.textArea,pt,Ue)},ze=(0,O.D7)(Oe);!Ke&&me&&G==null&&(ze=H(ze,qe));var j=Ut,Pt;if(Ht){var Ae=(0,ye.Z)(ze).length;(0,Ie.Z)(Ht)==="object"?Pt=Ht.formatter({value:ze,count:Ae,maxLength:qe}):Pt="".concat(Ae).concat(me?" / ".concat(qe):""),j=c.createElement(c.Fragment,null,j,c.createElement("span",{className:a()("".concat(sr,"-data-count"),fe==null?void 0:fe.count),style:Te==null?void 0:Te.count},Pt))}var Zt=function(pt){var Et;I==null||I(pt),(Et=Qe.current)!==null&&Et!==void 0&&Et.textArea.style.height&&et(!0)},lr=!ee.autoSize&&!Ht&&!Ve,wt=c.createElement(P.BaseInput,{value:ze,allowClear:Ve,handleReset:De,suffix:j,prefixCls:sr,classes:{affixWrapper:a()(Bt==null?void 0:Bt.affixWrapper,(S={},(0,ge.Z)(S,"".concat(sr,"-show-count"),Ht),(0,ge.Z)(S,"".concat(sr,"-textarea-allow-clear"),Ve),S))},disabled:Ee,focused:Xe,className:Xt,style:(0,Y.Z)((0,Y.Z)({},de),C&&!lr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pt=="string"?Pt:void 0}},hidden:F,inputElement:c.createElement(we,(0,v.Z)({},ee,{onKeyDown:Ze,onChange:He,onFocus:X,onBlur:oe,onCompositionStart:tr,onCompositionEnd:ke,className:fe==null?void 0:fe.textarea,style:(0,Y.Z)((0,Y.Z)({},Te==null?void 0:Te.textarea),{},{resize:de==null?void 0:de.resize}),disabled:Ee,prefixCls:sr,onResize:Zt,ref:Qe}))});return wt}),W=Z,le=W},55477:function(Qt,it,y){"use strict";y.d(it,{G:function(){return c},Z:function(){return te}});var v=y(96663),Y=y(44127),ge=y(6620),Ie=y(35593),ne=y(59301),se={shiftX:64,adjustY:1},ye={adjustX:1,shiftY:!0},ve=[0,0],a={left:{points:["cr","cl"],overflow:ye,offset:[-4,0],targetOffset:ve},right:{points:["cl","cr"],overflow:ye,offset:[4,0],targetOffset:ve},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:ve},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:ve},topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:ve},leftTop:{points:["tr","tl"],overflow:ye,offset:[-4,0],targetOffset:ve},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:ve},rightTop:{points:["tl","tr"],overflow:ye,offset:[4,0],targetOffset:ve},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:ve},rightBottom:{points:["bl","br"],overflow:ye,offset:[4,0],targetOffset:ve},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:ve},leftBottom:{points:["br","bl"],overflow:ye,offset:[-4,0],targetOffset:ve}},P=null,O=y(92310),A=y.n(O);function c(R){var k=R.children,U=R.prefixCls,ae=R.id,x=R.overlayInnerStyle,z=R.className,Q=R.style;return ne.createElement("div",{className:A()("".concat(U,"-content"),z),style:Q},ne.createElement("div",{className:"".concat(U,"-inner"),id:ae,role:"tooltip",style:x},typeof k=="function"?k():k))}var w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],E=function(k,U){var ae=k.overlayClassName,x=k.trigger,z=x===void 0?["hover"]:x,Q=k.mouseEnterDelay,q=Q===void 0?0:Q,ce=k.mouseLeaveDelay,xe=ce===void 0?.1:ce,we=k.overlayStyle,Be=k.prefixCls,H=Be===void 0?"rc-tooltip":Be,L=k.children,Z=k.onVisibleChange,W=k.afterVisibleChange,le=k.transitionName,J=k.animation,g=k.motion,S=k.placement,K=S===void 0?"right":S,G=k.align,Pe=G===void 0?{}:G,Ne=k.destroyTooltipOnHide,Ue=Ne===void 0?!1:Ne,Ve=k.defaultVisible,qe=k.getTooltipContainer,tt=k.overlayInnerStyle,lt=k.arrowContent,Ut=k.overlay,Yt=k.id,sr=k.showArrow,Bt=sr===void 0?!0:sr,Ht=(0,ge.Z)(k,w),Xt=(0,ne.useRef)(null);(0,ne.useImperativeHandle)(U,function(){return Xt.current});var de=(0,Y.Z)({},Ht);"visible"in k&&(de.popupVisible=k.visible);var Ee=function(){return ne.createElement(c,{key:"content",prefixCls:H,id:Yt,overlayInnerStyle:tt},Ut)};return ne.createElement(Ie.Z,(0,v.Z)({popupClassName:ae,prefixCls:H,popup:Ee,action:z,builtinPlacements:a,popupPlacement:K,ref:Xt,popupAlign:Pe,getPopupContainer:qe,onPopupVisibleChange:Z,afterPopupVisibleChange:W,popupTransitionName:le,popupAnimation:J,popupMotion:g,defaultPopupVisible:Ve,autoDestroy:Ue,mouseLeaveDelay:xe,popupStyle:we,mouseEnterDelay:q,arrow:Bt},de),L)},V=(0,ne.forwardRef)(E),te=V},49658:function(Qt,it){"use strict";it.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var y=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(y)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(y==null?void 0:y.substr(0,4))}},83145:function(Qt,it,y){"use strict";Object.defineProperty(it,"__esModule",{value:!0}),it.CopyToClipboard=void 0;var v=ge(y(59301)),Y=ge(y(25769));function ge(k){return k&&k.__esModule?k:{default:k}}function Ie(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(ae){return typeof ae}:Ie=function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},Ie(k)}function ne(k,U){var ae=Object.keys(k);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(k);U&&(x=x.filter(function(z){return Object.getOwnPropertyDescriptor(k,z).enumerable})),ae.push.apply(ae,x)}return ae}function se(k){for(var U=1;U<arguments.length;U++){var ae=arguments[U]!=null?arguments[U]:{};U%2?ne(ae,!0).forEach(function(x){te(k,x,ae[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(ae)):ne(ae).forEach(function(x){Object.defineProperty(k,x,Object.getOwnPropertyDescriptor(ae,x))})}return k}function ye(k,U){if(k==null)return{};var ae=ve(k,U),x,z;if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(k);for(z=0;z<Q.length;z++)x=Q[z],!(U.indexOf(x)>=0)&&Object.prototype.propertyIsEnumerable.call(k,x)&&(ae[x]=k[x])}return ae}function ve(k,U){if(k==null)return{};var ae={},x=Object.keys(k),z,Q;for(Q=0;Q<x.length;Q++)z=x[Q],!(U.indexOf(z)>=0)&&(ae[z]=k[z]);return ae}function a(k,U){if(!(k instanceof U))throw new TypeError("Cannot call a class as a function")}function P(k,U){for(var ae=0;ae<U.length;ae++){var x=U[ae];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(k,x.key,x)}}function O(k,U,ae){return U&&P(k.prototype,U),ae&&P(k,ae),k}function A(k,U){return U&&(Ie(U)==="object"||typeof U=="function")?U:w(k)}function c(k){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},c(k)}function w(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function E(k,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(U&&U.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),U&&V(k,U)}function V(k,U){return V=Object.setPrototypeOf||function(x,z){return x.__proto__=z,x},V(k,U)}function te(k,U,ae){return U in k?Object.defineProperty(k,U,{value:ae,enumerable:!0,configurable:!0,writable:!0}):k[U]=ae,k}var R=function(k){E(U,k);function U(){var ae,x;a(this,U);for(var z=arguments.length,Q=new Array(z),q=0;q<z;q++)Q[q]=arguments[q];return x=A(this,(ae=c(U)).call.apply(ae,[this].concat(Q))),te(w(x),"onClick",function(ce){var xe=x.props,we=xe.text,Be=xe.onCopy,H=xe.children,L=xe.options,Z=v.default.Children.only(H),W=(0,Y.default)(we,L);Be&&Be(we,W),Z&&Z.props&&typeof Z.props.onClick=="function"&&Z.props.onClick(ce)}),x}return O(U,[{key:"render",value:function(){var x=this.props,z=x.text,Q=x.onCopy,q=x.options,ce=x.children,xe=ye(x,["text","onCopy","options","children"]),we=v.default.Children.only(ce);return v.default.cloneElement(we,se({},xe,{onClick:this.onClick}))}}]),U}(v.default.PureComponent);it.CopyToClipboard=R,te(R,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Qt,it,y){"use strict";var v=y(83145),Y=v.CopyToClipboard;Y.CopyToClipboard=Y,Qt.exports=Y},76374:function(Qt,it,y){"use strict";var v=function(){if(typeof Map!="undefined")return Map;function H(L,Z){var W=-1;return L.some(function(le,J){return le[0]===Z?(W=J,!0):!1}),W}return function(){function L(){this.__entries__=[]}return Object.defineProperty(L.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),L.prototype.get=function(Z){var W=H(this.__entries__,Z),le=this.__entries__[W];return le&&le[1]},L.prototype.set=function(Z,W){var le=H(this.__entries__,Z);~le?this.__entries__[le][1]=W:this.__entries__.push([Z,W])},L.prototype.delete=function(Z){var W=this.__entries__,le=H(W,Z);~le&&W.splice(le,1)},L.prototype.has=function(Z){return!!~H(this.__entries__,Z)},L.prototype.clear=function(){this.__entries__.splice(0)},L.prototype.forEach=function(Z,W){W===void 0&&(W=null);for(var le=0,J=this.__entries__;le<J.length;le++){var g=J[le];Z.call(W,g[1],g[0])}},L}()}(),Y=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ge=function(){return typeof y.g!="undefined"&&y.g.Math===Math?y.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Ie=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ge):function(H){return setTimeout(function(){return H(Date.now())},1e3/60)}}(),ne=2;function se(H,L){var Z=!1,W=!1,le=0;function J(){Z&&(Z=!1,H()),W&&S()}function g(){Ie(J)}function S(){var K=Date.now();if(Z){if(K-le<ne)return;W=!0}else Z=!0,W=!1,setTimeout(g,L);le=K}return S}var ye=20,ve=["top","right","bottom","left","width","height","size","weight"],a=typeof MutationObserver!="undefined",P=function(){function H(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=se(this.refresh.bind(this),ye)}return H.prototype.addObserver=function(L){~this.observers_.indexOf(L)||this.observers_.push(L),this.connected_||this.connect_()},H.prototype.removeObserver=function(L){var Z=this.observers_,W=Z.indexOf(L);~W&&Z.splice(W,1),!Z.length&&this.connected_&&this.disconnect_()},H.prototype.refresh=function(){var L=this.updateObservers_();L&&this.refresh()},H.prototype.updateObservers_=function(){var L=this.observers_.filter(function(Z){return Z.gatherActive(),Z.hasActive()});return L.forEach(function(Z){return Z.broadcastActive()}),L.length>0},H.prototype.connect_=function(){!Y||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)},H.prototype.disconnect_=function(){!Y||!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)},H.prototype.onTransitionEnd_=function(L){var Z=L.propertyName,W=Z===void 0?"":Z,le=ve.some(function(J){return!!~W.indexOf(J)});le&&this.refresh()},H.getInstance=function(){return this.instance_||(this.instance_=new H),this.instance_},H.instance_=null,H}(),O=function(H,L){for(var Z=0,W=Object.keys(L);Z<W.length;Z++){var le=W[Z];Object.defineProperty(H,le,{value:L[le],enumerable:!1,writable:!1,configurable:!0})}return H},A=function(H){var L=H&&H.ownerDocument&&H.ownerDocument.defaultView;return L||ge},c=z(0,0,0,0);function w(H){return parseFloat(H)||0}function E(H){for(var L=[],Z=1;Z<arguments.length;Z++)L[Z-1]=arguments[Z];return L.reduce(function(W,le){var J=H["border-"+le+"-width"];return W+w(J)},0)}function V(H){for(var L=["top","right","bottom","left"],Z={},W=0,le=L;W<le.length;W++){var J=le[W],g=H["padding-"+J];Z[J]=w(g)}return Z}function te(H){var L=H.getBBox();return z(0,0,L.width,L.height)}function R(H){var L=H.clientWidth,Z=H.clientHeight;if(!L&&!Z)return c;var W=A(H).getComputedStyle(H),le=V(W),J=le.left+le.right,g=le.top+le.bottom,S=w(W.width),K=w(W.height);if(W.boxSizing==="border-box"&&(Math.round(S+J)!==L&&(S-=E(W,"left","right")+J),Math.round(K+g)!==Z&&(K-=E(W,"top","bottom")+g)),!U(H)){var G=Math.round(S+J)-L,Pe=Math.round(K+g)-Z;Math.abs(G)!==1&&(S-=G),Math.abs(Pe)!==1&&(K-=Pe)}return z(le.left,le.top,S,K)}var k=function(){return typeof SVGGraphicsElement!="undefined"?function(H){return H instanceof A(H).SVGGraphicsElement}:function(H){return H instanceof A(H).SVGElement&&typeof H.getBBox=="function"}}();function U(H){return H===A(H).document.documentElement}function ae(H){return Y?k(H)?te(H):R(H):c}function x(H){var L=H.x,Z=H.y,W=H.width,le=H.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(J.prototype);return O(g,{x:L,y:Z,width:W,height:le,top:Z,right:L+W,bottom:le+Z,left:L}),g}function z(H,L,Z,W){return{x:H,y:L,width:Z,height:W}}var Q=function(){function H(L){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=z(0,0,0,0),this.target=L}return H.prototype.isActive=function(){var L=ae(this.target);return this.contentRect_=L,L.width!==this.broadcastWidth||L.height!==this.broadcastHeight},H.prototype.broadcastRect=function(){var L=this.contentRect_;return this.broadcastWidth=L.width,this.broadcastHeight=L.height,L},H}(),q=function(){function H(L,Z){var W=x(Z);O(this,{target:L,contentRect:W})}return H}(),ce=function(){function H(L,Z,W){if(this.activeObservations_=[],this.observations_=new v,typeof L!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=L,this.controller_=Z,this.callbackCtx_=W}return H.prototype.observe=function(L){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(L instanceof A(L).Element))throw new TypeError('parameter 1 is not of type "Element".');var Z=this.observations_;Z.has(L)||(Z.set(L,new Q(L)),this.controller_.addObserver(this),this.controller_.refresh())}},H.prototype.unobserve=function(L){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(L instanceof A(L).Element))throw new TypeError('parameter 1 is not of type "Element".');var Z=this.observations_;Z.has(L)&&(Z.delete(L),Z.size||this.controller_.removeObserver(this))}},H.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},H.prototype.gatherActive=function(){var L=this;this.clearActive(),this.observations_.forEach(function(Z){Z.isActive()&&L.activeObservations_.push(Z)})},H.prototype.broadcastActive=function(){if(this.hasActive()){var L=this.callbackCtx_,Z=this.activeObservations_.map(function(W){return new q(W.target,W.broadcastRect())});this.callback_.call(L,Z,L),this.clearActive()}},H.prototype.clearActive=function(){this.activeObservations_.splice(0)},H.prototype.hasActive=function(){return this.activeObservations_.length>0},H}(),xe=typeof WeakMap!="undefined"?new WeakMap:new v,we=function(){function H(L){if(!(this instanceof H))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Z=P.getInstance(),W=new ce(L,Z,this);xe.set(this,W)}return H}();["observe","unobserve","disconnect"].forEach(function(H){we.prototype[H]=function(){var L;return(L=xe.get(this))[H].apply(L,arguments)}});var Be=function(){return typeof ge.ResizeObserver!="undefined"?ge.ResizeObserver:we}();it.Z=Be},98040:function(Qt){Qt.exports=function(){var it=document.getSelection();if(!it.rangeCount)return function(){};for(var y=document.activeElement,v=[],Y=0;Y<it.rangeCount;Y++)v.push(it.getRangeAt(Y));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return it.removeAllRanges(),function(){it.type==="Caret"&&it.removeAllRanges(),it.rangeCount||v.forEach(function(ge){it.addRange(ge)}),y&&y.focus()}}},1012:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return A}});var v=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Y=new Uint8Array(16);function ge(){if(!v)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return v(Y)}var Ie=/^(?:[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 ne(c){return typeof c=="string"&&Ie.test(c)}for(var se=ne,ye=[],ve=0;ve<256;++ve)ye.push((ve+256).toString(16).substr(1));function a(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=(ye[c[w+0]]+ye[c[w+1]]+ye[c[w+2]]+ye[c[w+3]]+"-"+ye[c[w+4]]+ye[c[w+5]]+"-"+ye[c[w+6]]+ye[c[w+7]]+"-"+ye[c[w+8]]+ye[c[w+9]]+"-"+ye[c[w+10]]+ye[c[w+11]]+ye[c[w+12]]+ye[c[w+13]]+ye[c[w+14]]+ye[c[w+15]]).toLowerCase();if(!se(E))throw TypeError("Stringified UUID is invalid");return E}var P=a;function O(c,w,E){c=c||{};var V=c.random||(c.rng||ge)();if(V[6]=V[6]&15|64,V[8]=V[8]&63|128,w){E=E||0;for(var te=0;te<16;++te)w[E+te]=V[te];return w}return P(V)}var A=O},93314:function(Qt){"use strict";Qt.exports="data:image/png;base64,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"},96908:function(Qt){"use strict";Qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Qt){"use strict";Qt.exports="data:image/png;base64,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"},81378:function(Qt){"use strict";Qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},40846:function(Qt,it,y){"use strict";y.d(it,{ZP:function(){return Ts}});function v(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Y={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,p,b){if(b=b||{},f=f.trim(),p=p.trim(),!p){if(!b.alwaysNormalize)return f;var T=u.parseURL(f);if(!T)throw new Error("Error trying to parse base URL.");return T.path=u.normalizePath(T.path),u.buildURLFromParts(T)}var N=u.parseURL(p);if(!N)throw new Error("Error trying to parse relative URL.");if(N.scheme)return b.alwaysNormalize?(N.path=u.normalizePath(N.path),u.buildURLFromParts(N)):p;var ie=u.parseURL(f);if(!ie)throw new Error("Error trying to parse base URL.");if(!ie.netLoc&&ie.path&&ie.path[0]!=="/"){var re=n.exec(ie.path);ie.netLoc=re[1],ie.path=re[2]}ie.netLoc&&!ie.path&&(ie.path="/");var ue={scheme:ie.scheme,netLoc:N.netLoc,path:null,params:N.params,query:N.query,fragment:N.fragment};if(!N.netLoc&&(ue.netLoc=ie.netLoc,N.path[0]!=="/"))if(!N.path)ue.path=ie.path,N.params||(ue.params=ie.params,N.query||(ue.query=ie.query));else{var _e=ie.path,Ge=_e.substring(0,_e.lastIndexOf("/")+1)+N.path;ue.path=u.normalizePath(Ge)}return ue.path===null&&(ue.path=b.alwaysNormalize?u.normalizePath(N.path):N.path),u.buildURLFromParts(ue)},parseURL:function(f){var p=r.exec(f);return p?{scheme:p[1]||"",netLoc:p[2]||"",path:p[3]||"",params:p[4]||"",query:p[5]||"",fragment:p[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})()})(Y);var ge=Y.exports;function Ie(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 ne(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ie(Object(t),!0).forEach(function(r){ve(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function se(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 ye(o){var e=se(o,"string");return typeof e=="symbol"?e:String(e)}function ve(o,e,t){return e=ye(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 P=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},O=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=A},A=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}({}),w=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}({}),E=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 V=function(){},te={trace:V,debug:V,log:V,warn:V,info:V,error:V};let R=te;function k(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):V}function U(o,...e){e.forEach(function(t){R[t]=o[t]?o[t].bind(o):k(t)})}function ae(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){U(o,"debug","log","info","warn","error");try{R.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){R=te}}else R=te}const x=R,z=/^(\d+)x(\d+)$/,Q=/(.+?)=(".*?"|.*?)(?:,|$)/g;class q{constructor(e){typeof e=="string"&&(e=q.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=z.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(Q.lastIndex=0;(t=Q.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 ce(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function xe(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class we{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]){x.warn(`DATERANGE tag attribute: "${n}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=n;break}e=a(new q({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);P(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(P(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&&P(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Be{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 H={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class L{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[H.AUDIO]:null,[H.VIDEO]:null,[H.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=ge.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class Z extends L{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 Be,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||!P(this.programDateTime))return null;const e=P(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[H.AUDIO]=null,e[H.VIDEO]=null,e[H.AUDIOVIDEO]=null}}class W extends L{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 Be,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 le=10;class J{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?P(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||le}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 g(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function S(o){const e=Pe(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function K(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 G(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=g(s)):t=S(s)}}return t}function Pe(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const Ne=typeof self!="undefined"?self:void 0;var Ue={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ve={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function qe(o){switch(o){case Ve.FAIRPLAY:return Ue.FAIRPLAY;case Ve.PLAYREADY:return Ue.PLAYREADY;case Ve.WIDEVINE:return Ue.WIDEVINE;case Ve.CLEARKEY:return Ue.CLEARKEY}}var tt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function lt(o){if(o===tt.WIDEVINE)return Ue.WIDEVINE;if(o===tt.PLAYREADY)return Ue.PLAYREADY;if(o===tt.CENC||o===tt.CLEARKEY)return Ue.CLEARKEY}function Ut(o){switch(o){case Ue.FAIRPLAY:return Ve.FAIRPLAY;case Ue.PLAYREADY:return Ve.PLAYREADY;case Ue.WIDEVINE:return Ve.WIDEVINE;case Ue.CLEARKEY:return Ve.CLEARKEY}}function Yt(o){const{drmSystems:e,widevineLicenseUrl:t}=o,r=e?[Ue.FAIRPLAY,Ue.WIDEVINE,Ue.PLAYREADY,Ue.CLEARKEY].filter(n=>!!e[n]):[];return!r[Ue.WIDEVINE]&&t&&r.push(Ue.WIDEVINE),r}const sr=function(o){return Ne!=null&&(o=Ne.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Bt(o,e,t,r){let n;switch(o){case Ue.FAIRPLAY:n=["cenc","sinf"];break;case Ue.WIDEVINE:case Ue.PLAYREADY:n=["cenc"];break;case Ue.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Ht(n,e,t,r)}function Ht(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 Xt(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=g(u).subarray(0,16);return K(f),f}}return null}function de(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const Ee=(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,F=(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,fe=(o,e)=>{const t=e;let r=0;for(;Ee(o,e);){r+=10;const n=Te(o,e+6);r+=n,F(o,e+10)&&(r+=10),e+=r}if(r>0)return o.subarray(t,t+r)},Te=(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},I=(o,e)=>Ee(o,e)&&Te(o,e+6)+10<=o.length-e,ee=o=>{const e=Oe(o);for(let t=0;t<e.length;t++){const r=e[t];if(he(r))return Xe(r)}},he=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",be=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=Te(o,4),r=10;return{type:e,size:t,data:o.subarray(r,r+t)}},Oe=o=>{let e=0;const t=[];for(;Ee(o,e);){const r=Te(o,e+6);e+=10;const n=e+r;for(;e+8<n;){const i=be(o.subarray(e)),s=Fe(i);s&&t.push(s),e+=i.size+10}F(o,e)&&(e+=10)}return t},Fe=o=>o.type==="PRIV"?Qe(o):o.type[0]==="W"?ot(o):ht(o),Qe=o=>{if(o.size<2)return;const e=Dt(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}},ht=o=>{if(o.size<2)return;if(o.type==="TXXX"){let t=1;const r=Dt(o.data.subarray(t),!0);t+=r.length+1;const n=Dt(o.data.subarray(t));return{key:o.type,info:r,data:n}}const e=Dt(o.data.subarray(1));return{key:o.type,data:e}},ot=o=>{if(o.type==="WXXX"){if(o.size<2)return;let t=1;const r=Dt(o.data.subarray(t),!0);t+=r.length+1;const n=Dt(o.data.subarray(t));return{key:o.type,info:r,data:n}}const e=Dt(o.data);return{key:o.type,data:e}},Xe=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)}},Dt=(o,e=!1)=>{const t=Le();if(t){const p=t.decode(o);if(e){const b=p.indexOf("\0");return b!==-1?p.substring(0,b):p}return p.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 kt;function Le(){if(!navigator.userAgent.includes("PlayStation 4"))return!kt&&typeof self.TextDecoder!="undefined"&&(kt=new self.TextDecoder("utf-8")),kt}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}},nt=Math.pow(2,32)-1,ft=[].push,At={video:1,audio:2,id3:3,text:4};function It(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 C(o,e){const t=$(o,e);return t<0?4294967296+t:t}function et(o,e){let t=C(o,e);return t*=Math.pow(2,32),t+=C(o,e+4),t}function $(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function me(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 tr(o){const e=o.byteLength;for(let t=0;t<e;){const r=C(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 ke(o,e){const t=[];if(!e.length)return t;const r=o.byteLength;for(let n=0;n<r;){const i=C(o,n),s=It(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=ke(o.subarray(n+8,u),e.slice(1));f.length&&ft.apply(t,f)}n=u}return t}function He(o){const e=[],t=o[0];let r=8;const n=C(o,r);r+=4;let i=0,s=0;t===0?(i=C(o,r),s=C(o,r+4),r+=8):(i=et(o,r),s=et(o,r+8),r+=16),r+=2;let u=o.length+s;const f=_(o,r);r+=2;for(let p=0;p<f;p++){let b=r;const T=C(o,b);b+=4;const N=T&2147483647;if((T&2147483648)>>>31===1)return x.warn("SIDX has hierarchical references (not supported)"),null;const re=C(o,b);b+=4,e.push({referenceSize:N,subsegmentDuration:re,info:{duration:re/n,start:u,end:u+N-1}}),u+=N,b+=4,r=b}return{earliestPresentationTime:i,timescale:n,version:t,referencesCount:f,references:e}}function Ze(o){const e=[],t=ke(o,["moov","trak"]);for(let n=0;n<t.length;n++){const i=t[n],s=ke(i,["tkhd"])[0];if(s){let u=s[0];const f=C(s,u===0?12:20),p=ke(i,["mdia","mdhd"])[0];if(p){u=p[0];const b=C(p,u===0?12:20),T=ke(i,["mdia","hdlr"])[0];if(T){const N=It(T.subarray(8,12)),ie={soun:H.AUDIO,vide:H.VIDEO}[N];if(ie){const re=ke(i,["mdia","minf","stbl","stsd"])[0],ue=X(re);e[f]={timescale:b,type:ie},e[ie]=ne({timescale:b,id:f},ue)}}}}}return ke(o,["moov","mvex","trex"]).forEach(n=>{const i=C(n,4),s=e[i];s&&(s.default={duration:C(n,12),flags:C(n,20)})}),e}function X(o){const e=o.subarray(8),t=e.subarray(86),r=It(e.subarray(4,8));let n=r;const i=r==="enca"||r==="encv";if(i){const u=ke(e,[r])[0].subarray(r==="enca"?28:78);ke(u,["sinf"]).forEach(p=>{const b=ke(p,["schm"])[0];if(b){const T=It(b.subarray(4,8));if(T==="cbcs"||T==="cenc"){const N=ke(p,["frma"])[0];N&&(n=It(N))}}})}switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const s=ke(t,["avcC"])[0];n+="."+De(s[1])+De(s[2])+De(s[3]);break}case"mp4a":{const s=ke(e,[r])[0],u=ke(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=oe(u,f),f+=2;const p=u[f++];if(p&128&&(f+=2),p&64&&(f+=u[f++]),u[f++]!==4)break;f=oe(u,f);const b=u[f++];if(b===64)n+="."+De(b);else break;if(f+=12,u[f++]!==5)break;f=oe(u,f);const T=u[f++];let N=(T&248)>>3;N===31&&(N+=1+((T&7)<<3)+((u[f]&224)>>5)),n+="."+N}break}case"hvc1":case"hev1":{const s=ke(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],p=u&31,b=C(s,2),T=(u&32)>>5?"H":"L",N=s[12],ie=s.subarray(6,12);n+="."+f+p,n+="."+b.toString(16).toUpperCase(),n+="."+T+N;let re="";for(let ue=ie.length;ue--;){const _e=ie[ue];(_e||re)&&(re="."+_e.toString(16).toUpperCase()+re)}n+=re;break}case"dvh1":case"dvhe":{const s=ke(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=ke(t,["vpcC"])[0],u=s[4],f=s[5],p=s[6]>>4&15;n+="."+ze(u)+"."+ze(f)+"."+ze(p);break}case"av01":{const s=ke(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,p=s[2]>>>7?"H":"M",b=(s[2]&64)>>6,T=(s[2]&32)>>5,N=u===2&&b?T?12:10:b?10:8,ie=(s[2]&16)>>4,re=(s[2]&8)>>3,ue=(s[2]&4)>>2,_e=s[2]&3;n+="."+u+"."+ze(f)+p+"."+ze(N)+"."+ie+"."+re+ue+_e+"."+ze(1)+"."+ze(1)+"."+ze(1)+"."+0;break}}return{codec:n,encrypted:i}}function oe(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function De(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function ze(o){return(o<10?"0":"")+o}function j(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&ke(o,["moov","trak"]).forEach(n=>{const s=ke(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=ke(s,["enca"]);const f=u.length>0;f||(u=ke(s,["encv"])),u.forEach(p=>{const b=f?p.subarray(28):p.subarray(78);ke(b,["sinf"]).forEach(N=>{const ie=Pt(N);if(ie){const re=ie.subarray(8,24);re.some(ue=>ue!==0)||(x.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${Ke.hexDump(re)} -> ${Ke.hexDump(t)}`),ie.set(t,8))}})})}),o}function Pt(o){const e=ke(o,["schm"])[0];if(e){const t=It(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return ke(o,["schi","tenc"])[0]}return null}function Ae(o,e){return ke(e,["moof","traf"]).reduce((t,r)=>{const n=ke(r,["tfdt"])[0],i=n[0],s=ke(r,["tfhd"]).reduce((u,f)=>{const p=C(f,4),b=o[p];if(b){let T=C(n,4);if(i===1){if(T===nt)return x.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;T*=nt+1,T+=C(n,8)}const N=b.timescale||9e4,ie=T/N;if(P(ie)&&(u===null||ie<u))return ie}return u},null);return s!==null&&P(s)&&(t===null||s<t)?s:t},null)}function Zt(o,e){let t=0,r=0,n=0;const i=ke(o,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=ke(u,["tfhd"])[0],p=C(f,4),b=e[p];if(!b)continue;const T=b.default,N=C(f,0)|(T==null?void 0:T.flags);let ie=T==null?void 0:T.duration;N&8&&(N&2?ie=C(f,12):ie=C(f,8));const re=b.timescale||9e4,ue=ke(u,["trun"]);for(let _e=0;_e<ue.length;_e++){if(t=lr(ue[_e]),!t&&ie){const Ge=C(ue[_e],4);t=ie*Ge}b.type===H.VIDEO?r+=t/re:b.type===H.AUDIO&&(n+=t/re)}}if(r===0&&n===0){let s=1/0,u=0,f=0;const p=ke(o,["sidx"]);for(let b=0;b<p.length;b++){const T=He(p[b]);if(T!=null&&T.references){s=Math.min(s,T.earliestPresentationTime/T.timescale);const N=T.references.reduce((ie,re)=>ie+re.info.duration||0,0);u=Math.max(u,N+T.earliestPresentationTime/T.timescale),f=u-s}}if(f&&P(f))return f}return r||n}function lr(o){const e=C(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=C(o,4);for(let i=0;i<n;i++){if(e&256){const s=C(o,t);r+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function wt(o,e,t){ke(e,["moof","traf"]).forEach(r=>{ke(r,["tfhd"]).forEach(n=>{const i=C(n,4),s=o[i];if(!s)return;const u=s.timescale||9e4;ke(r,["tfdt"]).forEach(f=>{const p=f[0],b=t*u;if(b){let T=C(f,4);if(p===0)T-=b,T=Math.max(T,0),me(f,4,T);else{T*=Math.pow(2,32),T+=C(f,8),T-=b,T=Math.max(T,0);const N=Math.floor(T/(nt+1)),ie=Math.floor(T%(nt+1));me(f,4,N),me(f,8,ie)}}})})})}function Mt(o){const e={valid:null,remainder:null},t=ke(o,["moof"]);if(t.length<2)return e.remainder=o,e;const r=t[t.length-1];return e.valid=de(o,0,r.byteOffset-8),e.remainder=de(o,r.byteOffset-8),e}function pt(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function Et(o,e){const t=[],r=e.samples,n=e.timescale,i=e.id;let s=!1;return ke(r,["moof"]).map(f=>{const p=f.byteOffset-8;ke(f,["traf"]).map(T=>{const N=ke(T,["tfdt"]).map(ie=>{const re=ie[0];let ue=C(ie,4);return re===1&&(ue*=Math.pow(2,32),ue+=C(ie,8)),ue/n})[0];return N!==void 0&&(o=N),ke(T,["tfhd"]).map(ie=>{const re=C(ie,4),ue=C(ie,0)&16777215,_e=(ue&1)!==0,Ge=(ue&2)!==0,xt=(ue&8)!==0;let _t=0;const Gt=(ue&16)!==0;let Rt=0;const or=(ue&32)!==0;let jt=8;re===i&&(_e&&(jt+=8),Ge&&(jt+=4),xt&&(_t=C(ie,jt),jt+=4),Gt&&(Rt=C(ie,jt),jt+=4),or&&(jt+=4),e.type==="video"&&(s=Re(e.codec)),ke(T,["trun"]).map(mr=>{const Dr=mr[0],nr=C(mr,0)&16777215,pr=(nr&1)!==0;let on=0;const Or=(nr&4)!==0,sn=(nr&256)!==0;let nn=0;const Vr=(nr&512)!==0;let An=0;const Bn=(nr&1024)!==0,Nr=(nr&2048)!==0;let Pr=0;const Rn=C(mr,4);let vn=8;pr&&(on=C(mr,vn),vn+=4),Or&&(vn+=4);let On=on+p;for(let li=0;li<Rn;li++){if(sn?(nn=C(mr,vn),vn+=4):nn=_t,Vr?(An=C(mr,vn),vn+=4):An=Rt,Bn&&(vn+=4),Nr&&(Dr===0?Pr=C(mr,vn):Pr=$(mr,vn),vn+=4),e.type===H.VIDEO){let gi=0;for(;gi<An;){const yi=C(r,On);if(On+=4,st(s,r[On])){const Fi=r.subarray(On,On+yi);ct(Fi,s?2:1,o+Pr/n,t)}On+=yi,gi+=yi+4}}o+=nn/n}}))})})}),t}function Re(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 st(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function ct(o,e,t,r){const n=gt(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 p=n.length-i;let b=i;if(u<p)i+=u;else if(u>p){x.error(`Malformed SEI payload. ${u} is too small, only ${p} bytes left to parse.`);break}if(s===4){if(n[b++]===181){const N=_(n,b);if(b+=2,N===49){const ie=C(n,b);if(b+=4,ie===1195456820){const re=n[b++];if(re===3){const ue=n[b++],_e=31&ue,Ge=64&ue,xt=Ge?2+_e*3:0,_t=new Uint8Array(xt);if(Ge){_t[0]=ue;for(let Gt=1;Gt<xt;Gt++)_t[Gt]=n[b++]}r.push({type:re,payloadType:s,pts:t,bytes:_t})}}}}}else if(s===5&&u>16){const T=[];for(let re=0;re<16;re++){const ue=n[b++].toString(16);T.push(ue.length==1?"0"+ue:ue),(re===3||re===5||re===7||re===9)&&T.push("-")}const N=u-16,ie=new Uint8Array(N);for(let re=0;re<N;re++)ie[re]=n[b++];r.push({payloadType:s,pts:t,uuid:T.join(""),userData:Dt(ie),userDataBytes:ie})}}}function gt(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 Je(o){const e=o[0];let t="",r="",n=0,i=0,s=0,u=0,f=0,p=0;if(e===0){for(;It(o.subarray(p,p+1))!=="\0";)t+=It(o.subarray(p,p+1)),p+=1;for(t+=It(o.subarray(p,p+1)),p+=1;It(o.subarray(p,p+1))!=="\0";)r+=It(o.subarray(p,p+1)),p+=1;r+=It(o.subarray(p,p+1)),p+=1,n=C(o,12),i=C(o,16),u=C(o,20),f=C(o,24),p=28}else if(e===1){p+=4,n=C(o,p),p+=4;const T=C(o,p);p+=4;const N=C(o,p);for(p+=4,s=Yo(2,32)*T+N,O(s)||(s=Number.MAX_SAFE_INTEGER,x.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=C(o,p),p+=4,f=C(o,p),p+=4;It(o.subarray(p,p+1))!=="\0";)t+=It(o.subarray(p,p+1)),p+=1;for(t+=It(o.subarray(p,p+1)),p+=1;It(o.subarray(p,p+1))!=="\0";)r+=It(o.subarray(p,p+1)),p+=1;r+=It(o.subarray(p,p+1)),p+=1}const b=o.subarray(p,o.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:b}}function Ft(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 $t(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),Ft([112,115,115,104],new Uint8Array([r,0,0,0]),o,i,n,s,t||new Uint8Array)}function Wt(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=gr(n);e.push(i),r+=i.size}}return e}function gr(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 p=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};p=[];for(let T=0;T<f;T++)p.push(new Uint8Array(s,t+32+T*16,16))}return{version:i,systemId:u,kids:p,data:b,offset:t,size:e}}let vr={};class er{static clearKeyUriToKeyIdMap(){vr={}}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 Ve.FAIRPLAY:case Ve.WIDEVINE:case Ve.PLAYREADY:case Ve.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&&x.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=yr(e);return new er(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=G(this.uri);if(t)switch(this.keyFormat){case Ve.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ve.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=$t(r,null,t),this.keyId=Xt(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=vr[this.uri];if(!r){const n=Object.keys(vr).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),vr[this.uri]=r}this.keyId=r}return this}}function yr(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const _r=/\{\$([a-zA-Z0-9-_]+)\}/g;function Jt(o){return _r.test(o)}function Kt(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]=$e(o,i))}}function $e(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(_r,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 vt(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 at(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 yt(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Nt(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const Ot={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 ut(o,e){const t=Ot[e];return!!t&&!!t[o.slice(0,4)]}function Se(o,e,t=!0){return!o.split(",").some(r=>!We(r,e,t))}function We(o,e,t=!0){var r;const n=yt(t);return(r=n==null?void 0:n.isTypeSupported(rt(o,e)))!=null?r:!1}function rt(o,e){return`${e}/mp4;codecs="${o}"`}function bt(o){if(o){const e=o.substring(0,4);return Ot.video[e]}return 2}function mt(o){return o.split(",").reduce((e,t)=>{const r=Ot.video[t];return r?(r*2+e)/(e?3:2):(Ot.audio[t]+e)/(e?2:1)},0)}const Ct={};function Tt(o,e=!0){if(Ct[o])return Ct[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let r=0;r<t.length;r++)if(We(t[r],"audio",e))return Ct[o]=t[r],t[r];return o}const ar=/flac|opus/i;function cr(o,e=!0){return o.replace(ar,t=>Tt(t.toLowerCase(),e))}function ur(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function Er(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 Fr=/#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,Lr=/#EXT-X-MEDIA:(.*)/g,fr=/^#EXT(?:INF|-X-TARGETDURATION):/m,ir=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"),$r=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 Ir{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 ge.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return fr.test(e)}static parseMasterPlaylist(e,t){const r=Jt(e),n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];Fr.lastIndex=0;let s;for(;(s=Fr.exec(e))!=null;)if(s[1]){var u;const p=new q(s[1]);Kt(n,p,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const b=$e(n,s[2]),T={attrs:p,bitrate:p.decimalInteger("BANDWIDTH")||p.decimalInteger("AVERAGE-BANDWIDTH"),name:p.NAME,url:Ir.resolve(b,t)},N=p.decimalResolution("RESOLUTION");N&&(T.width=N.width,T.height=N.height),Rr(p.CODECS,T),(u=T.unknownCodecs)!=null&&u.length||i.push(T),n.levels.push(T)}else if(s[3]){const p=s[3],b=s[4];switch(p){case"SESSION-DATA":{const T=new q(b);Kt(n,T,["DATA-ID","LANGUAGE","VALUE","URI"]);const N=T["DATA-ID"];N&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[N]=T);break}case"SESSION-KEY":{const T=zr(b,t,n);T.encrypted&&T.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(T)):x.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${b}"`);break}case"DEFINE":{{const T=new q(b);Kt(n,T,["NAME","VALUE","QUERYPARAM"]),vt(n,T,t)}break}case"CONTENT-STEERING":{const T=new q(b);Kt(n,T,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:Ir.resolve(T["SERVER-URI"],t),pathwayId:T["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Tr(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(p=>({id:p.attrs.AUDIO,audioCodec:p.audioCodec})),SUBTITLES:s.map(p=>({id:p.attrs.SUBTITLES,textCodec:p.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(Lr.lastIndex=0;(n=Lr.exec(e))!==null;){const p=new q(n[1]),b=p.TYPE;if(b){const T=u[b],N=i[b]||[];i[b]=N,Kt(r,p,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const ie=p.LANGUAGE,re=p["ASSOC-LANGUAGE"],ue=p.CHANNELS,_e=p.CHARACTERISTICS,Ge=p["INSTREAM-ID"],xt={attrs:p,bitrate:0,id:f++,groupId:p["GROUP-ID"]||"",name:p.NAME||ie||"",type:b,default:p.bool("DEFAULT"),autoselect:p.bool("AUTOSELECT"),forced:p.bool("FORCED"),lang:ie,url:p.URI?Ir.resolve(p.URI,t):""};if(re&&(xt.assocLang=re),ue&&(xt.channels=ue),_e&&(xt.characteristics=_e),Ge&&(xt.instreamId=Ge),T!=null&&T.length){const _t=Ir.findGroup(T,xt.groupId)||T[0];Mr(xt,_t,"audioCodec"),Mr(xt,_t,"textCodec")}N.push(xt)}}return i}static parseLevelPlaylist(e,t,r,n,i,s){const u=new J(t),f=u.fragments;let p=null,b=0,T=0,N=0,ie=0,re=null,ue=new Z(n,t),_e,Ge,xt,_t=-1,Gt=!1,Rt=null;for(ir.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Jt(e);(_e=ir.exec(e))!==null;){Gt&&(Gt=!1,ue=new Z(n,t),ue.start=N,ue.sn=b,ue.cc=ie,ue.level=r,p&&(ue.initSegment=p,ue.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null,Rt&&(ue.setByteRange(Rt),Rt=null)));const Dr=_e[1];if(Dr){ue.duration=parseFloat(Dr);const nr=(" "+_e[2]).slice(1);ue.title=nr||null,ue.tagList.push(nr?["INF",Dr,nr]:["INF",Dr])}else if(_e[3]){if(P(ue.duration)){ue.start=N,xt&&Hr(ue,xt,u),ue.sn=b,ue.level=r,ue.cc=ie,f.push(ue);const nr=(" "+_e[3]).slice(1);ue.relurl=$e(u,nr),Gr(ue,re),re=ue,N+=ue.duration,b++,T=0,Gt=!0}}else if(_e[4]){const nr=(" "+_e[4]).slice(1);re?ue.setByteRange(nr,re):ue.setByteRange(nr)}else if(_e[5])ue.rawProgramDateTime=(" "+_e[5]).slice(1),ue.tagList.push(["PROGRAM-DATE-TIME",ue.rawProgramDateTime]),_t===-1&&(_t=f.length);else{if(_e=_e[0].match($r),!_e){x.warn("No matches on slow regex match for level playlist!");continue}for(Ge=1;Ge<_e.length&&typeof _e[Ge]=="undefined";Ge++);const nr=(" "+_e[Ge]).slice(1),pr=(" "+_e[Ge+1]).slice(1),on=_e[Ge+2]?(" "+_e[Ge+2]).slice(1):"";switch(nr){case"PLAYLIST-TYPE":u.type=pr.toUpperCase();break;case"MEDIA-SEQUENCE":b=u.startSN=parseInt(pr);break;case"SKIP":{const Or=new q(pr);Kt(u,Or,["RECENTLY-REMOVED-DATERANGES"]);const sn=Or.decimalInteger("SKIPPED-SEGMENTS");if(P(sn)){u.skippedSegments=sn;for(let Vr=sn;Vr--;)f.unshift(null);b+=sn}const nn=Or.enumeratedString("RECENTLY-REMOVED-DATERANGES");nn&&(u.recentlyRemovedDateranges=nn.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(pr),1);break;case"VERSION":u.version=parseInt(pr);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(pr||on)&&ue.tagList.push(on?[pr,on]:[pr]);break;case"DISCONTINUITY":ie++,ue.tagList.push(["DIS"]);break;case"GAP":ue.gap=!0,ue.tagList.push([nr]);break;case"BITRATE":ue.tagList.push([nr,pr]);break;case"DATERANGE":{const Or=new q(pr);Kt(u,Or,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Kt(u,Or,Or.clientAttrs);const sn=new we(Or,u.dateRanges[Or.ID]);sn.isValid||u.skippedSegments?u.dateRanges[sn.id]=sn:x.warn(`Ignoring invalid DATERANGE tag: "${pr}"`),ue.tagList.push(["EXT-X-DATERANGE",pr]);break}case"DEFINE":{{const Or=new q(pr);Kt(u,Or,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Or?at(u,Or,s):vt(u,Or,t)}break}case"DISCONTINUITY-SEQUENCE":ie=parseInt(pr);break;case"KEY":{const Or=zr(pr,t,u);if(Or.isSupported()){if(Or.method==="NONE"){xt=void 0;break}xt||(xt={}),xt[Or.keyFormat]&&(xt=a({},xt)),xt[Or.keyFormat]=Or}else x.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${pr}"`);break}case"START":u.startTimeOffset=Tr(pr);break;case"MAP":{const Or=new q(pr);if(Kt(u,Or,["BYTERANGE","URI"]),ue.duration){const sn=new Z(n,t);ln(sn,Or,r,xt),p=sn,ue.initSegment=p,p.rawProgramDateTime&&!ue.rawProgramDateTime&&(ue.rawProgramDateTime=p.rawProgramDateTime)}else{const sn=ue.byteRangeEndOffset;if(sn){const nn=ue.byteRangeStartOffset;Rt=`${sn-nn}@${nn}`}else Rt=null;ln(ue,Or,r,xt),p=ue,Gt=!0}break}case"SERVER-CONTROL":{const Or=new q(pr);u.canBlockReload=Or.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Or.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Or.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Or.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Or.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Or=new q(pr);u.partTarget=Or.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Or=u.partList;Or||(Or=u.partList=[]);const sn=T>0?Or[Or.length-1]:void 0,nn=T++,Vr=new q(pr);Kt(u,Vr,["BYTERANGE","URI"]);const An=new W(Vr,ue,t,nn,sn);Or.push(An),ue.duration+=An.duration;break}case"PRELOAD-HINT":{const Or=new q(pr);Kt(u,Or,["URI"]),u.preloadHint=Or;break}case"RENDITION-REPORT":{const Or=new q(pr);Kt(u,Or,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(Or);break}default:x.warn(`line parsed but not handled: ${_e}`);break}}}re&&!re.relurl?(f.pop(),N-=re.duration,u.partList&&(u.fragmentHint=re)):u.partList&&(Gr(ue,re),ue.cc=ie,u.fragmentHint=ue,xt&&Hr(ue,xt,u));const or=f.length,jt=f[0],mr=f[or-1];if(N+=u.skippedSegments*u.targetduration,N>0&&or&&mr){u.averagetargetduration=N/or;const Dr=mr.sn;u.endSN=Dr!=="initSegment"?Dr:0,u.live||(mr.endList=!0),jt&&(u.startCC=jt.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(N+=u.fragmentHint.duration),u.totalduration=N,u.endCC=ie,_t>0&&jr(f,_t),u}}function zr(o,e,t){var r,n;const i=new q(o);Kt(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(r=i.METHOD)!=null?r:"",u=i.URI,f=i.hexadecimalInteger("IV"),p=i.KEYFORMATVERSIONS,b=(n=i.KEYFORMAT)!=null?n:"identity";u&&i.IV&&!f&&x.error(`Invalid IV: ${i.IV}`);const T=u?Ir.resolve(u,e):"",N=(p||"1").split("/").map(Number).filter(Number.isFinite);return new er(s,T,b,N,f)}function Tr(o){const t=new q(o).decimalFloatingPoint("TIME-OFFSET");return P(t)?t:null}function Rr(o,e){let t=(o||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(i=>ut(i,r));n.length&&(e[`${r}Codec`]=n.join(","),t=t.filter(i=>n.indexOf(i)===-1))}),e.unknownCodecs=t}function Mr(o,e,t){const r=e[t];r&&(o[t]=r)}function jr(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 Gr(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),P(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function ln(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 Hr(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 br={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ye={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function wr(o){const{type:e}=o;switch(e){case br.AUDIO_TRACK:return Ye.AUDIO;case br.SUBTITLE_TRACK:return Ye.SUBTITLE;default:return Ye.MAIN}}function Wr(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Qr{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:br.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:br.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:br.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:br.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const p=n.context;if(p&&p.url===e.url&&p.level===e.level){x.trace("[playlist-loader]: playlist request ongoing");return}x.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let i;if(e.type===br.MANIFEST?i=r.manifestLoadPolicy.default:i=a({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),P((t=e.deliveryDirectives)==null?void 0:t.part)){let p;if(e.type===br.LEVEL&&e.level!==null?p=this.hls.levels[e.level].details:e.type===br.AUDIO_TRACK&&e.id!==null?p=this.hls.audioTracks[e.id].details:e.type===br.SUBTITLE_TRACK&&e.id!==null&&(p=this.hls.subtitleTracks[e.id].details),p){const b=p.partTarget,T=p.targetduration;if(b&&T){const N=Math.max(b*3,T*.8)*1e3;i=a({},i,{maxTimeToFirstByteMs:Math.min(N,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(N,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:(p,b,T,N)=>{const ie=this.getInternalLoader(T);this.resetInternalLoader(T.type);const re=p.data;if(re.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(p,T,new Error("no EXTM3U delimiter"),N||null,b);return}b.parsing.start=performance.now(),Ir.isMediaPlaylist(re)?this.handleTrackOrLevelPlaylist(p,b,T,N||null,ie):this.handleMasterPlaylist(p,b,T,N)},onError:(p,b,T,N)=>{this.handleNetworkError(b,T,!1,p,N)},onTimeout:(p,b,T)=>{this.handleNetworkError(b,T,!0,void 0,p)}};n.load(e,u,f)}handleMasterPlaylist(e,t,r,n){const i=this.hls,s=e.data,u=Wr(e,r),f=Ir.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,r,f.playlistParsingError,n,t);return}const{contentSteering:p,levels:b,sessionData:T,sessionKeys:N,startTimeOffset:ie,variableList:re}=f;this.variableList=re;const{AUDIO:ue=[],SUBTITLES:_e,"CLOSED-CAPTIONS":Ge}=Ir.parseMasterPlaylistMedia(s,u,f);ue.length&&!ue.some(_t=>!_t.url)&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(x.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),ue.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new q({}),bitrate:0,url:""})),i.trigger(c.MANIFEST_LOADED,{levels:b,audioTracks:ue,subtitles:_e,captions:Ge,contentSteering:p,url:u,stats:t,networkDetails:n,sessionData:T,sessionKeys:N,startTimeOffset:ie,variableList:re})}handleTrackOrLevelPlaylist(e,t,r,n,i){const s=this.hls,{id:u,level:f,type:p}=r,b=Wr(e,r),T=0,N=P(f)?f:P(u)?u:0,ie=wr(r),re=Ir.parseLevelPlaylist(e.data,b,N,ie,T,this.variableList);if(p===br.MANIFEST){const ue={attrs:new q({}),bitrate:0,details:re,name:"",url:b};s.trigger(c.MANIFEST_LOADED,{levels:[ue],audioTracks:[],url:b,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=re,this.handlePlaylistLoaded(re,e,t,r,n,i)}handleManifestParsingError(e,t,r,n,i){this.hls.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:E.MANIFEST_PARSING_ERROR,fatal:t.type===br.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===br.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===br.AUDIO_TRACK||e.type===br.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);x.warn(`[playlist-loader]: ${s}`);let f=E.UNKNOWN,p=!1;const b=this.getInternalLoader(e);switch(e.type){case br.MANIFEST:f=r?E.MANIFEST_LOAD_TIMEOUT:E.MANIFEST_LOAD_ERROR,p=!0;break;case br.LEVEL:f=r?E.LEVEL_LOAD_TIMEOUT:E.LEVEL_LOAD_ERROR,p=!1;break;case br.AUDIO_TRACK:f=r?E.AUDIO_TRACK_LOAD_TIMEOUT:E.AUDIO_TRACK_LOAD_ERROR,p=!1;break;case br.SUBTITLE_TRACK:f=r?E.SUBTITLE_TRACK_LOAD_TIMEOUT:E.SUBTITLE_LOAD_ERROR,p=!1;break}b&&this.resetInternalLoader(e.type);const T={type:w.NETWORK_ERROR,details:f,fatal:p,url:e.url,loader:b,context:e,error:u,networkDetails:t,stats:i};if(n){const N=(t==null?void 0:t.url)||e.url;T.response=ne({url:N,data:void 0},n)}this.hls.trigger(c.ERROR,T)}handlePlaylistLoaded(e,t,r,n,i,s){const u=this.hls,{type:f,level:p,id:b,groupId:T,deliveryDirectives:N}=n,ie=Wr(t,n),re=wr(n),ue=typeof n.level=="number"&&re===Ye.MAIN?p:void 0;if(!e.fragments.length){const Ge=new Error("No Segments found in Playlist");u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:E.LEVEL_EMPTY_ERROR,fatal:!1,url:ie,error:Ge,reason:Ge.message,response:t,context:n,level:ue,parent:re,networkDetails:i,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const _e=e.playlistParsingError;if(_e){u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:E.LEVEL_PARSING_ERROR,fatal:!1,url:ie,error:_e,reason:_e.message,response:t,context:n,level:ue,parent:re,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 br.MANIFEST:case br.LEVEL:u.trigger(c.LEVEL_LOADED,{details:e,level:ue||0,id:b||0,stats:r,networkDetails:i,deliveryDirectives:N});break;case br.AUDIO_TRACK:u.trigger(c.AUDIO_TRACK_LOADED,{details:e,id:b||0,groupId:T||"",stats:r,networkDetails:i,deliveryDirectives:N});break;case br.SUBTITLE_TRACK:u.trigger(c.SUBTITLE_TRACK_LOADED,{details:e,id:b||0,groupId:T||"",stats:r,networkDetails:i,deliveryDirectives:N});break}}}function cn(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){x.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){x.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(o.mode=t)}function Ar(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 Cr(o,e,t,r){const n=o.mode;if(n==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=Jr(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 Xr(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 Jr(o,e,t){const r=[],n=Xr(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 Zr(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 un={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const si=.25;function Pn(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function an(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?ne({type:n},r):r))}return i}const dr=(()=>{const o=Pn();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function dn(o,e){return o.getTime()/1e3-e}function fn(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Fn{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&&(Ar(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 cn(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=Pn();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===un.emsg&&!r||!n)continue;const p=Oe(i[u].data);if(p){const b=i[u].pts;let T=b+i[u].duration;T>dr&&(T=dr),T-b<=0&&(T=b+si);for(let ie=0;ie<p.length;ie++){const re=p[ie];if(!he(re)){this.updateId3CueEnds(b,f);const ue=an(s,b,T,re,f);ue&&this.id3Track.addCue(ue)}}}}}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===dr&&(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 p;n==="audio"?p=b=>b.type===un.audioId3&&f:n==="video"?p=b=>b.type===un.emsg&&u:p=b=>b.type===un.audioId3&&f||b.type===un.emsg&&u,Cr(i,t,r,p)}}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(T=>!s.includes(T));for(let T=b.length;T--;){const N=b[T];Object.keys(r[N].cues).forEach(ie=>{n.removeCue(r[N].cues[ie])}),delete r[N]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!P(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,p=Pn();for(let b=0;b<s.length;b++){const T=s[b],N=i[T],ie=dn(N.startDate,f),re=r[T],ue=(re==null?void 0:re.cues)||{};let _e=(re==null?void 0:re.durationKnown)||!1,Ge=dr;const xt=N.endDate;if(xt)Ge=dn(xt,f),_e=!0;else if(N.endOnNext&&!_e){const Gt=s.reduce((Rt,or)=>{if(or!==N.id){const jt=i[or];if(jt.class===N.class&&jt.startDate>N.startDate&&(!Rt||N.startDate<Rt.startDate))return jt}return Rt},null);Gt&&(Ge=dn(Gt.startDate,f),_e=!0)}const _t=Object.keys(N.attr);for(let Gt=0;Gt<_t.length;Gt++){const Rt=_t[Gt];if(!ce(Rt))continue;const or=ue[Rt];if(or)_e&&!re.durationKnown&&(or.endTime=Ge);else if(p){let jt=N.attr[Rt];xe(Rt)&&(jt=fn(jt));const mr=an(p,ie,Ge,{key:Rt,data:jt},un.dateRange);mr&&(mr.id=T,this.id3Track.addCue(mr),ue[Rt]=mr)}}r[T]={cues:ue,dateRange:N,durationKnown:_e}}}}class ci{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 p=u&&r||t;(f.liveSyncDuration||f.liveSyncDurationCount||p===0)&&(p=i!==void 0?i:s*n);const b=n;return p+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===E.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&x.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)),T=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(b,Math.max(1,T))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Jn=["NONE","TYPE-0","TYPE-1",null];function Cn(o){return Jn.indexOf(o)>-1}const Nn=["SDR","PQ","HLG"];function bn(o){return!!o&&Nn.indexOf(o)>-1}var ti={No:"",Yes:"YES",v2:"v2"};function Kn(o){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=o,n=r<e/2;return e&&n?t?ti.v2:ti.Yes:ti.No}class ri{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 $n{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 tn(o,e){const t=e.startPTS;if(P(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 di(o,e,t,r,n,i){r-t<=0&&(x.warn("Fragment should have a positive duration",e),r=t+e.duration,i=n+e.duration);let u=t,f=r;const p=e.startPTS,b=e.endPTS;if(P(p)){const _e=Math.abs(p-t);P(e.deltaPTS)?e.deltaPTS=Math.max(_e,e.deltaPTS):e.deltaPTS=_e,u=Math.max(t,p),t=Math.min(t,p),n=Math.min(n,e.startDTS),f=Math.min(r,b),r=Math.max(r,b),i=Math.max(i,e.endDTS)}const T=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=u,e.startDTS=n,e.endPTS=r,e.minEndPTS=f,e.endDTS=i;const N=e.sn;if(!o||N<o.startSN||N>o.endSN)return 0;let ie;const re=N-o.startSN,ue=o.fragments;for(ue[re]=e,ie=re;ie>0;ie--)tn(ue[ie],ue[ie-1]);for(ie=re;ie<ue.length-1;ie++)tn(ue[ie],ue[ie+1]);return o.fragmentHint&&tn(ue[ue.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,T}function vi(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;pn(o,e,(u,f,p,b)=>{if(e.skippedSegments&&f.cc!==u.cc){const T=u.cc-f.cc;for(let N=p;N<b.length;N++)b[N].cc+=T}P(u.startPTS)&&P(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 p;f&&(!f.initSegment||f.initSegment.relurl===((p=t)==null?void 0:p.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){x.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=Kr(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}Ur(o.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),n?di(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):Yr(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 Kr(o,e,t){const r=a({},o);return t&&t.forEach(n=>{delete r[n]}),Object.keys(e).forEach(n=>{const i=new we(e[n].attr,r[n]);i.isValid?r[n]=i:x.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[n].attr)}"`)}),r}function Ur(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 pn(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 p=n;p<=i;p++){const b=f[s+p];let T=u[p];r&&!T&&p<r&&(T=e.fragments[p]=b),b&&T&&t(b,T,p,u)}}function Yr(o,e){const t=e.startSN+e.skippedSegments-o.startSN,r=o.fragments;t<0||t>=r.length||Vt(e,r[t].start)}function Vt(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 gn(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 Gn(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 Vn(o,e,t){var r;return o!=null&&o.details?wn((r=o.details)==null?void 0:r.partList,e,t):null}function wn(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 In(o){o.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(n=>{n.level=t})})}function hn(o){switch(o.details){case E.FRAG_LOAD_TIMEOUT:case E.KEY_LOAD_TIMEOUT:case E.LEVEL_LOAD_TIMEOUT:case E.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Mn(o,e){const t=hn(e);return o.default[`${t?"timeout":"error"}Retry`]}function ni(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function ai(o){return ne(ne({},o),{errorRetry:null,timeoutRetry:null})}function Hn(o,e,t,r){if(!o)return!1;const n=r==null?void 0:r.code,i=e<o.maxNumRetry&&(ei(n)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,r,i):i}function ei(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Mi={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 Hi(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!P(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(ki(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)&&Li(t,r,i)===0||Yi(i,o,Math.min(n,r))))return i;const s=Mi.search(e,Li.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 Li(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 ki(o,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>o}function kr(o,e){return Mi.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var Sr={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},mn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class zn{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=x.log.bind(x,"[info]:"),this.warn=x.warn.bind(x,"[warning]:"),this.error=x.error.bind(x,"[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)===Ye.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 E.FRAG_LOAD_ERROR:case E.FRAG_LOAD_TIMEOUT:case E.KEY_LOAD_ERROR:case E.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case E.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:Sr.DoNothing,flags:mn.None};return}case E.FRAG_GAP:case E.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Sr.SendAlternateToPenaltyBox;return}case E.LEVEL_EMPTY_ERROR:case E.LEVEL_PARSING_ERROR:{var u,f;const p=t.parent===Ye.MAIN?t.level:i.loadLevel;t.details===E.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,p):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,p))}return;case E.LEVEL_LOAD_ERROR:case E.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case E.AUDIO_TRACK_LOAD_ERROR:case E.AUDIO_TRACK_LOAD_TIMEOUT:case E.SUBTITLE_LOAD_ERROR:case E.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const p=i.levels[i.loadLevel];if(p&&(s.type===br.AUDIO_TRACK&&p.hasAudioGroup(s.groupId)||s.type===br.SUBTITLE_TRACK&&p.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Sr.SendAlternateToPenaltyBox,t.errorAction.flags=mn.MoveAllAlternatesMatchingHost;return}}return;case E.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const p=i.levels[i.loadLevel],b=p==null?void 0:p.attrs["HDCP-LEVEL"];b?t.errorAction={action:Sr.SendAlternateToPenaltyBox,flags:mn.MoveAllAlternatesMatchingHDCP,hdcpLevel:b}:this.keySystemError(t)}return;case E.BUFFER_ADD_CODEC_ERROR:case E.REMUX_ALLOC_ERROR:case E.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(n=t.level)!=null?n:i.loadLevel);return;case E.INTERNAL_EXCEPTION:case E.BUFFER_APPENDING_ERROR:case E.BUFFER_FULL_ERROR:case E.LEVEL_SWITCH_ERROR:case E.BUFFER_STALLED_ERROR:case E.BUFFER_SEEK_OVER_HOLE:case E.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Sr.DoNothing,flags:mn.None};return}t.type===w.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,n=Mn(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(Hn(n,i,hn(e),e.response))return{action:Sr.RetryRequest,flags:mn.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=Mn(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((b,T)=>b+T.fragmentError,0);if(n&&(e.details!==E.FRAG_GAP&&n.fragmentError++,Hn(u,f,hn(e),e.response)))return{action:Sr.RetryRequest,flags:mn.None,retryConfig:u,retryCount:f};const p=this.getLevelSwitchAction(e,r);return u&&(p.retryConfig=u,p.retryCount=f),p}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var i,s;const p=e.details;n.loadError++,p===E.BUFFER_APPEND_ERROR&&n.fragmentError++;let b=-1;const{levels:T,loadLevel:N,minAutoLevel:ie,maxAutoLevel:re}=r;r.autoLevelEnabled||(r.loadLevel=-1);const ue=(i=e.frag)==null?void 0:i.type,Ge=(ue===Ye.AUDIO&&p===E.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(p===E.BUFFER_ADD_CODEC_ERROR||p===E.BUFFER_APPEND_ERROR))&&T.some(({audioCodec:or})=>n.audioCodec!==or),_t=e.sourceBufferName==="video"&&(p===E.BUFFER_ADD_CODEC_ERROR||p===E.BUFFER_APPEND_ERROR)&&T.some(({codecSet:or,audioCodec:jt})=>n.codecSet!==or&&n.audioCodec===jt),{type:Gt,groupId:Rt}=(s=e.context)!=null?s:{};for(let or=T.length;or--;){const jt=(or+N)%T.length;if(jt!==N&&jt>=ie&&jt<=re&&T[jt].loadError===0){var u,f;const mr=T[jt];if(p===E.FRAG_GAP&&ue===Ye.MAIN&&e.frag){const Dr=T[jt].details;if(Dr){const nr=Si(e.frag,Dr.fragments,e.frag.start);if(nr!=null&&nr.gap)continue}}else{if(Gt===br.AUDIO_TRACK&&mr.hasAudioGroup(Rt)||Gt===br.SUBTITLE_TRACK&&mr.hasSubtitleGroup(Rt))continue;if(ue===Ye.AUDIO&&(u=n.audioGroups)!=null&&u.some(Dr=>mr.hasAudioGroup(Dr))||ue===Ye.SUBTITLE&&(f=n.subtitleGroups)!=null&&f.some(Dr=>mr.hasSubtitleGroup(Dr))||Ge&&n.audioCodec===mr.audioCodec||!Ge&&n.audioCodec!==mr.audioCodec||_t&&n.codecSet===mr.codecSet)continue}b=jt;break}}if(b>-1&&r.loadLevel!==b)return e.levelRetry=!0,this.playlistError=0,{action:Sr.SendAlternateToPenaltyBox,flags:mn.None,nextAutoLevel:b}}return{action:Sr.SendAlternateToPenaltyBox,flags:mn.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case Sr.DoNothing:break;case Sr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==E.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 Sr.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 mn.None:this.switchLevel(e,s);break;case mn.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Jn[Jn.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 yn{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=x.log.bind(x,`${t}:`),this.warn=x.warn.bind(x,`${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(p){x.warn(`Could not construct new URL for Rendition Report: ${p}`),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 p=r&&Kn(r);return new ri(u,f>=0?f:void 0,p)}}}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&&vi(r,n),!this.canLoad||!n.live)return;let f,p,b;if(n.canBlockReload&&n.endSN&&n.advanced){const _e=this.hls.config.lowLatencyMode,Ge=n.lastPartSn,xt=n.endSN,_t=n.lastPartIndex,Gt=_t!==-1,Rt=Ge===xt,or=_e?0:_t;Gt?(p=Rt?xt+1:Ge,b=Rt?or:_t+1):p=xt+1;const jt=n.age,mr=jt+n.ageHeader;let Dr=Math.min(mr-n.partTarget,n.targetduration*1.5);if(Dr>0){if(r&&Dr>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${Dr} with playlist age: ${n.age}`),Dr=0;else{const nr=Math.floor(Dr/n.targetduration);if(p+=nr,b!==void 0){const pr=Math.round(Dr%n.targetduration/n.partTarget);b+=pr}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${jt.toFixed(2)}s goal: ${Dr} skip sn ${nr} to part ${b}`)}n.tuneInGoal=Dr}if(f=this.getDeliveryDirectives(n,t.deliveryDirectives,p,b),_e||!Rt){this.loadPlaylist(f);return}}else(n.canBlockReload||n.canSkipUntil)&&(f=this.getDeliveryDirectives(n,t.deliveryDirectives,p,b));const T=this.hls.mainForwardBufferInfo,N=T?T.end-T.len:0,ie=(n.edge-N)*1e3,re=gn(n,ie);n.updated&&s>this.requestScheduled+re&&(this.requestScheduled=i.loading.start),p!==void 0&&n.canBlockReload?this.requestScheduled=i.loading.first+re-(n.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+re<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=re);let ue=this.requestScheduled-s;ue=Math.max(0,ue),this.log(`reload live playlist ${e} in ${Math.round(ue)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),ue)}else this.clearTimer()}getDeliveryDirectives(e,t,r,n){let i=Kn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=ti.No),new ri(r,n,i)}checkRetry(e){const t=e.details,r=hn(e),n=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=n||{},f=!!n&&!!u&&(i===Sr.RetryRequest||!n.resolved&&i===Sr.SendAlternateToPenaltyBox);if(f){var p;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(r&&(p=e.context)!=null&&p.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const b=ni(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 hi{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 Wi{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 hi(e),this.fast_=new hi(t),this.defaultTTFB_=n,this.ttfb_=new hi(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new hi(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new hi(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new hi(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}]},Ei={};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,p=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((T,N)=>{if(N){const ie=e.groups[N];if(!ie)throw new Error(`Audio track group ${N} not found`);Object.keys(ie.channels).forEach(re=>{T[re]=(T[re]||0)+ie.channels[re]})}return T},{2:0})}catch(T){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&&P(p)&&Object.keys(b).some(T=>parseInt(T)>p)}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:ne(ne({},i),{},{contentType:rt(f,"video")})}));return n&&o.audioGroups&&o.audioGroups.forEach(f=>{var p;f&&((p=e.groups[f])==null||p.tracks.forEach(b=>{if(b.groupId===f){const T=b.channels||"",N=parseFloat(T);P(N)&&N>2&&u.push.apply(u,n.split(",").map(ie=>({type:"media-source",audio:{contentType:rt(ie,"audio"),channels:""+N}})))}}))}),Promise.all(u.map(f=>{const p=Rs(f);return Ei[p]||(Ei[p]=t.decodingInfo(f))})).then(f=>({supported:!f.some(p=>!p.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||Nn.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ns(),t?r=r.filter(n=>n!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ai(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 p=!0,b=!1,T=1/0,N=1/0,ie=1/0,re=0,ue=[];const{preferHDR:_e,allowedVideoRanges:Ge}=Is(e,n);for(let Rt=i.length;Rt--;){const or=o[i[Rt]];p=or.channels[2]>0,T=Math.min(T,or.minHeight),N=Math.min(N,or.minFramerate),ie=Math.min(ie,or.minBitrate);const jt=Ge.filter(mr=>or.videoRanges[mr]>0);jt.length>0&&(b=!0,ue=jt)}T=P(T)?T:0,N=P(N)?N:0;const xt=Math.max(1080,T),_t=Math.max(30,N);return ie=P(ie)?ie:t,t=Math.max(ie,t),b||(e=void 0,ue=[]),{codecSet:i.reduce((Rt,or)=>{const jt=o[or];if(or===Rt)return Rt;if(jt.minBitrate>t)return Xn(or,`min bitrate of ${jt.minBitrate} > current estimate of ${t}`),Rt;if(!jt.hasDefaultAudio)return Xn(or,"no renditions with default or auto-select sound found"),Rt;if(u&&or.indexOf(u.substring(0,4))%5!==0)return Xn(or,`audio codec preference "${u}" not found`),Rt;if(s&&!f){if(!jt.channels[s])return Xn(or,`no renditions with ${s} channel sound found (channels options: ${Object.keys(jt.channels)})`),Rt}else if((!u||f)&&p&&jt.channels[2]===0)return Xn(or,"no renditions with stereo sound found"),Rt;return jt.minHeight>xt?(Xn(or,`min resolution of ${jt.minHeight} > maximum of ${xt}`),Rt):jt.minFramerate>_t?(Xn(or,`min framerate of ${jt.minFramerate} > maximum of ${_t}`),Rt):ue.some(mr=>jt.videoRanges[mr]>0)?jt.maxScore<re?(Xn(or,`max score of ${jt.maxScore} < selected max of ${re}`),Rt):Rt&&(mt(or)>=mt(Rt)||jt.fragmentError>o[Rt].fragmentError)?Rt:(re=jt.maxScore,or):(Xn(or,`no variants with VIDEO-RANGE of ${JSON.stringify(ue)} found`),Rt)},void 0),videoRanges:ue,preferHDR:_e,minFramerate:N,minBitrate:ie}}function Xn(o,e){x.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function ys(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(p=>{if(!p)return;const b=e.groups[p];b&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?b.hasDefault:b.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(b.channels).forEach(T=>{u.channels[T]=(u.channels[T]||0)+b.channels[T]}))}),n},{})}function _i(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(Ci(o,n,t))return r}return-1}function Ci(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 Js(o,e,t,r,n){const i=e[r],u=e.reduce((N,ie,re)=>{const ue=ie.uri;return(N[ue]||(N[ue]=[])).push(re),N},{})[i.uri];u.length>1&&(r=Math.max.apply(Math,u));const f=i.videoRange,p=i.frameRate,b=i.codecSet.substring(0,4),T=_s(e,r,N=>{if(N.videoRange!==f||N.frameRate!==p||N.codecSet.substring(0,4)!==b)return!1;const ie=N.audioGroups,re=t.filter(ue=>!ie||ie.indexOf(ue.groupId)!==-1);return _i(o,re,n)>-1});return T>-1?T:_s(e,r,N=>{const ie=N.audioGroups,re=t.filter(ue=>!ie||ie.indexOf(ue.groupId)!==-1);return _i(o,re,n)>-1})}function _s(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,p=r?r.duration:t.duration,b=u-f.loading.start,T=n.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=T){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const N=n.mainForwardBufferInfo;if(N===null)return;const ie=this.bwEstimator.getEstimateTTFB(),re=Math.abs(s.playbackRate);if(b<=Math.max(ie,1e3*(p/(re*2))))return;const ue=N.len/re,_e=f.loading.first?f.loading.first-f.loading.start:-1,Ge=f.loaded&&_e>-1,xt=this.getBwEstimate(),_t=n.levels,Gt=_t[t.level],Rt=f.total||Math.max(f.loaded,Math.round(p*Gt.averageBitrate/8));let or=Ge?b-_e:b;or<1&&Ge&&(or=Math.min(b,f.loaded*8/xt));const jt=Ge?f.loaded*1e3/or:0,mr=jt?(Rt-f.loaded)/jt:Rt*8/xt+ie/1e3;if(mr<=ue)return;const Dr=jt?jt*8:xt;let nr=Number.POSITIVE_INFINITY,pr;for(pr=t.level-1;pr>T;pr--){const Or=_t[pr].maxBitrate;if(nr=this.getTimeToLoadFrag(ie/1e3,Dr,p*Or,!_t[pr].details),nr<ue)break}if(nr>=mr||nr>p*10)return;n.nextLoadLevel=n.nextAutoLevel=pr,Ge?this.bwEstimator.sample(b-Math.min(ie,_e),f.loaded):this.bwEstimator.sampleTTFB(b);const on=_t[pr].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>on&&this.resetEstimator(on),this.clearTimer(),x.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${ue.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${mr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${nr.toFixed(3)} s
|
|
|
TTFB estimate: ${_e|0} ms
|
|
|
Current BW estimate: ${P(xt)?xt|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${pr} @ ${on|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&&(x.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 Wi(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 E.BUFFER_ADD_CODEC_ERROR:case E.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case E.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,p=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&p>-1){const T=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(T,p),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;P(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===Ye.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!==Ye.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 x.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(),p=this.getStarvationDelay();let b=i.abrBandWidthFactor,T=i.abrBandWidthUpFactor;if(p){const _e=this.findBestLevel(f,s,n,p,0,b,T);if(_e>=0)return _e}let N=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!p){const _e=this.bitrateTestDelay;_e&&(N=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-_e,x.info(`[abr] bitrate test took ${Math.round(1e3*_e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*N)} ms`),b=T=1)}const ie=this.findBestLevel(f,s,n,p,N,b,T);if(x.info(`[abr] ${p?"rebuffering expected":"buffer is empty"}, optimal quality level ${ie}`),ie>-1)return ie;const re=r.levels[s],ue=r.levels[r.loadLevel];return(re==null?void 0:re.bitrate)<(ue==null?void 0:ue.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 p=n+i,b=this.lastLoadedFragLevel,T=b===-1?this.hls.firstLevel:b,{fragCurrent:N,partCurrent:ie}=this,{levels:re,allAudioTracks:ue,loadLevel:_e,config:Ge}=this.hls;if(re.length===1)return 0;const xt=re[T],_t=!!(xt!=null&&(f=xt.details)!=null&&f.live),Gt=_e===-1||b===-1;let Rt,or="SDR",jt=(xt==null?void 0:xt.frameRate)||0;const{audioPreference:mr,videoPreference:Dr}=Ge,nr=this.audioTracksByGroup||(this.audioTracksByGroup=ys(ue));if(Gt){if(this.firstSelection!==-1)return this.firstSelection;const nn=this.codecTiers||(this.codecTiers=is(re,nr,t,r)),Vr=Ai(nn,or,e,mr,Dr),{codecSet:An,videoRanges:Bn,minFramerate:Nr,minBitrate:Pr,preferHDR:Rn}=Vr;Rt=An,or=Rn?Bn[Bn.length-1]:Bn[0],jt=Nr,e=Math.max(e,Pr),x.log(`[abr] picked start tier ${JSON.stringify(Vr)}`)}else Rt=xt==null?void 0:xt.codecSet,or=xt==null?void 0:xt.videoRange;const pr=ie?ie.duration:N?N.duration:0,on=this.bwEstimator.getEstimateTTFB()/1e3,Or=[];for(let nn=r;nn>=t;nn--){var sn;const Vr=re[nn],An=nn>T;if(!Vr)continue;if(Ge.useMediaCapabilities&&!Vr.supportedResult&&!Vr.supportedPromise){const li=navigator.mediaCapabilities;typeof(li==null?void 0:li.decodingInfo)=="function"&&vs(Vr,nr,or,jt,e,mr)?(Vr.supportedPromise=Ds(Vr,nr,li),Vr.supportedPromise.then(gi=>{if(!this.hls)return;Vr.supportedResult=gi;const yi=this.hls.levels,Fi=yi.indexOf(Vr);gi.error?x.warn(`[abr] MediaCapabilities decodingInfo error: "${gi.error}" for level ${Fi} ${JSON.stringify(gi)}`):gi.supported||(x.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Fi} ${JSON.stringify(gi)}`),Fi>-1&&yi.length>1&&(x.log(`[abr] Removing unsupported level ${Fi}`),this.hls.removeLevel(Fi)))})):Vr.supportedResult=Bi}if(Rt&&Vr.codecSet!==Rt||or&&Vr.videoRange!==or||An&&jt>Vr.frameRate||!An&&jt>0&&jt<Vr.frameRate||Vr.supportedResult&&!((sn=Vr.supportedResult.decodingInfoResults)!=null&&sn[0].smooth)){Or.push(nn);continue}const Bn=Vr.details,Nr=(ie?Bn==null?void 0:Bn.partTarget:Bn==null?void 0:Bn.averagetargetduration)||pr;let Pr;An?Pr=u*e:Pr=s*e;const Rn=pr&&n>=pr*2&&i===0?re[nn].averageBitrate:re[nn].maxBitrate,vn=this.getTimeToLoadFrag(on,Pr,Rn*Nr,Bn===void 0);if(Pr>=Rn&&(nn===b||Vr.loadError===0&&Vr.fragmentError===0)&&(vn<=on||!P(vn)||_t&&!this.bitrateTestDelay||vn<p)){const li=this.forcedAutoLevel;return nn!==_e&&(li===-1||li!==_e)&&(Or.length&&x.trace(`[abr] Skipped level(s) ${Or.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${re[Or[0]].codecs}" ${re[Or[0]].videoRange}; not compatible with "${xt.codecs}" ${or}`),x.info(`[abr] switch candidate:${T}->${nn} adjustedbw(${Math.round(Pr)})-bitrate=${Math.round(Pr-Rn)} ttfb:${on.toFixed(1)} avgDuration:${Nr.toFixed(1)} maxFetchDuration:${p.toFixed(1)} fetchDuration:${vn.toFixed(1)} firstSelection:${Gt} codecSet:${Rt} videoRange:${or} hls.loadLevel:${_e}`)),Gt&&(this.firstSelection=nn),nn}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,n=Math.min(Math.max(e,r),t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}class qs{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Qn={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(p=>{const b=!this.isTimeBuffered(p.startPTS,p.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 p=r.elementaryStreams[f];if(!p)return;const b=t[f],T=u||p.partial===!0;s.range[f]=this.getBufferedTimes(r,n,T,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),Ni(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,p=e.maxStartPTS||s;for(let b=0;b<n.length;b++){const T=n.start(b)-this.bufferPadding,N=n.end(b)+this.bufferPadding;if(p>=T&&f<=N){i.time.push({startPTS:Math.max(s,n.start(b)),endPTS:Math.min(u,n.end(b))});break}else if(s<N&&u>T){const ie=Math.max(s,n.start(b)),re=Math.min(u,n.end(b));re>ie&&(i.partial=!0,i.time.push({startPTS:ie,endPTS:re}))}else if(u<=T)break}return i}getPartialFragment(e){let t=null,r,n,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(p=>{const b=f[p];b&&Ni(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||Ni(t))}getState(e){const t=Ki(e),r=this.fragments[t];return r?r.buffered?Ni(r)?Qn.PARTIAL:Qn.OK:Qn.APPENDING:Qn.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 Ni(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 Ls={length:0,start:()=>0,end:()=>0};class Tn{static isBuffered(e,t){try{if(e){const r=Tn.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=Tn.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(p,b){const T=p.start-b.start;return T||b.end-p.end});let n=[];if(r)for(let p=0;p<e.length;p++){const b=n.length;if(b){const T=n[b-1].end;e[p].start-T<r?e[p].end>T&&(n[b-1].end=e[p].end):n.push(e[p])}else n.push(e[p])}else n=e;let i=0,s,u=t,f=t;for(let p=0;p<n.length;p++){const b=n[p].start,T=n[p].end;if(t+r>=b&&t<T)u=b,f=T,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 x.log("failed to get media.buffered",t),Ls}}}class as{constructor(e,t,r,n=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=fi(),this.buffering={audio:fi(),video:fi(),audiovideo:fi()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=s}}function fi(){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){x.log("No fragments to align");return}const n=Qi(t,r[0].cc);if(!n||n&&!n.startPTS){x.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&&(ks(o,t,e),!t.alignedSliding&&e&&wi(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&Yr(e,t))}function ks(o,e,t){if(ea(o,t,e)){const r=os(t,e);r&&P(r.start)&&(x.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),us(r.start,e))}}function wi(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 p=(f-u)/1e3-(i.start-n.start);us(p,o)}const xs=Math.pow(2,17);class Sn{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const r=e.url;if(!r)return Promise.reject(new Wn({type:w.NETWORK_ERROR,details:E.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(ie=>ie[0]==="GAP")){f(_n(e));return}else e.gap=!1;const p=this.loader=e.loader=i?new i(n):new s(n),b=xn(e),T=ai(n.fragLoadPolicy.default),N={loadPolicy:T,timeout:T.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:xs};e.stats=p.stats,p.load(b,N,{onSuccess:(ie,re,ue,_e)=>{this.resetLoader(e,p);let Ge=ie.data;ue.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ge.slice(0,16)),Ge=Ge.slice(16)),u({frag:e,part:null,payload:Ge,networkDetails:_e})},onError:(ie,re,ue,_e)=>{this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ne({url:r,data:void 0},ie),error:new Error(`HTTP Error ${ie.code} ${ie.text}`),networkDetails:ue,stats:_e}))},onAbort:(ie,re,ue)=>{this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:ue,stats:ie}))},onTimeout:(ie,re,ue)=>{this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${N.timeout}ms`),networkDetails:ue,stats:ie}))},onProgress:(ie,re,ue,_e)=>{t&&t({frag:e,part:null,payload:ue,networkDetails:_e})}})})}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(_n(e,t));return}const p=this.loader=e.loader=i?new i(n):new s(n),b=xn(e,t),T=ai(n.fragLoadPolicy.default),N={loadPolicy:T,timeout:T.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xs};t.stats=p.stats,p.load(b,N,{onSuccess:(ie,re,ue,_e)=>{this.resetLoader(e,p),this.updateStatsFromPart(e,t);const Ge={frag:e,part:t,payload:ie.data,networkDetails:_e};r(Ge),u(Ge)},onError:(ie,re,ue,_e)=>{this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ne({url:b.url,data:void 0},ie),error:new Error(`HTTP Error ${ie.code} ${ie.text}`),networkDetails:ue,stats:_e}))},onAbort:(ie,re,ue)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:ue,stats:ie}))},onTimeout:(ie,re,ue)=>{this.resetLoader(e,p),f(new Wn({type:w.NETWORK_ERROR,details:E.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${N.timeout}ms`),networkDetails:ue,stats:ie}))}})})}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),p=Math.min(Math.round(r.loaded/i),f),T=(f-p)*Math.round(r.loaded/p);r.total=r.loaded+T}else r.total=Math.max(r.loaded,r.total);const s=r.loading,u=n.loading;s.start?s.first+=u.first-u.start:(s.start=u.start,s.first=u.first),s.end=u.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function xn(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(P(n)&&P(i)){var s;let u=n,f=i;if(o.sn==="initSegment"&&((s=o.decryptdata)==null?void 0:s.method)==="AES-128"){const p=i-n;p%16&&(f=i+(16-p%16)),n!==0&&(r.resetIV=!0,u=n-16)}r.rangeStart=u,r.rangeEnd=f}return r}function _n(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),r={type:w.MEDIA_ERROR,details:E.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(r.part=e),(e||o).stats.aborted=!0,new Wn(r)}class Wn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Zn{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class Ji{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Es(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?de(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,p=f[0],b=f[1],T=f[2],N=f[3],ie=new Uint32Array(256);let re=0,ue=0,_e=0;for(_e=0;_e<256;_e++)_e<128?ie[_e]=_e<<1:ie[_e]=_e<<1^283;for(_e=0;_e<256;_e++){let Ge=ue^ue<<1^ue<<2^ue<<3^ue<<4;Ge=Ge>>>8^Ge&255^99,e[re]=Ge,t[Ge]=re;const xt=ie[re],_t=ie[xt],Gt=ie[_t];let Rt=ie[Ge]*257^Ge*16843008;n[re]=Rt<<24|Rt>>>8,i[re]=Rt<<16|Rt>>>16,s[re]=Rt<<8|Rt>>>24,u[re]=Rt,Rt=Gt*16843009^_t*65537^xt*257^re*16843008,p[Ge]=Rt<<24|Rt>>>8,b[Ge]=Rt<<16|Rt>>>16,T[Ge]=Rt<<8|Rt>>>24,N[Ge]=Rt,re?(re=xt^ie[ie[ie[Gt^xt]]],ue^=ie[ie[ue]]):re=ue=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 p=this.keySchedule=new Uint32Array(s),b=this.invKeySchedule=new Uint32Array(s),T=this.sBox,N=this.rcon,ie=this.invSubMix,re=ie[0],ue=ie[1],_e=ie[2],Ge=ie[3];let xt,_t;for(u=0;u<s;u++){if(u<i){xt=p[u]=t[u];continue}_t=xt,u%i===0?(_t=_t<<8|_t>>>24,_t=T[_t>>>24]<<24|T[_t>>>16&255]<<16|T[_t>>>8&255]<<8|T[_t&255],_t^=N[u/i|0]<<24):i>6&&u%i===4&&(_t=T[_t>>>24]<<24|T[_t>>>16&255]<<16|T[_t>>>8&255]<<8|T[_t&255]),p[u]=xt=(p[u-i]^_t)>>>0}for(f=0;f<s;f++)u=s-f,f&3?_t=p[u]:_t=p[u-4],f<4||u<=4?b[f]=_t:b[f]=re[T[_t>>>24]]^ue[T[_t>>>16&255]]^_e[T[_t>>>8&255]]^Ge[T[_t&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],p=u[1],b=u[2],T=u[3],N=this.uint8ArrayToUint32Array_(r);let ie=N[0],re=N[1],ue=N[2],_e=N[3];const Ge=new Int32Array(e),xt=new Int32Array(Ge.length);let _t,Gt,Rt,or,jt,mr,Dr,nr,pr,on,Or,sn,nn,Vr;const An=this.networkToHostOrderSwap;for(;t<Ge.length;){for(pr=An(Ge[t]),on=An(Ge[t+1]),Or=An(Ge[t+2]),sn=An(Ge[t+3]),jt=pr^i[0],mr=sn^i[1],Dr=Or^i[2],nr=on^i[3],nn=4,Vr=1;Vr<n;Vr++)_t=f[jt>>>24]^p[mr>>16&255]^b[Dr>>8&255]^T[nr&255]^i[nn],Gt=f[mr>>>24]^p[Dr>>16&255]^b[nr>>8&255]^T[jt&255]^i[nn+1],Rt=f[Dr>>>24]^p[nr>>16&255]^b[jt>>8&255]^T[mr&255]^i[nn+2],or=f[nr>>>24]^p[jt>>16&255]^b[mr>>8&255]^T[Dr&255]^i[nn+3],jt=_t,mr=Gt,Dr=Rt,nr=or,nn=nn+4;_t=s[jt>>>24]<<24^s[mr>>16&255]<<16^s[Dr>>8&255]<<8^s[nr&255]^i[nn],Gt=s[mr>>>24]<<24^s[Dr>>16&255]<<16^s[nr>>8&255]<<8^s[jt&255]^i[nn+1],Rt=s[Dr>>>24]<<24^s[nr>>16&255]<<16^s[jt>>8&255]<<8^s[mr&255]^i[nn+2],or=s[nr>>>24]<<24^s[jt>>16&255]<<16^s[mr>>8&255]<<8^s[Dr&255]^i[nn+3],xt[t]=An(_t^ie),xt[t+1]=An(or^re),xt[t+2]=An(Rt^ue),xt[t+3]=An(Gt^_e),ie=pr,re=on,ue=Or,_e=sn,t=t+4}return xt.buffer}}const Ps=16;class qi{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Es(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((n,i)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const s=this.flush();s?n(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:n,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=pt(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 p=i;return this.currentResult=f.decrypt(u.buffer,0,r),this.currentIV=de(u,-16).buffer,p||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new Ji(this.subtle,t)}return this.fastAesKey.expandKey().then(n=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Zn(this.subtle,new Uint8Array(r)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(x.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=de(e,0,r),this.remainderData=de(e,r)),t}logOnce(e){this.logEnabled&&(x.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Gi={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}},qt={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class cs extends qs{constructor(e,t,r,n,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=qt.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=x.log.bind(x,`${n}:`),this.warn=x.warn.bind(x,`${n}:`),this.hls=e,this.fragmentLoader=new Sn(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new qi(e.config),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=qt.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 Tn.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===qt.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=Tn.bufferInfo(n||r,s,e.maxBufferHole);if(this.log(`media seeking to ${P(s)?s.toFixed(3):s}, state: ${i}`),this.state===qt.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,p=t.start-f,b=t.start+t.duration+f;if(!u.len||b<u.start||p>u.end){const T=s>b;(s<p||T)&&(T&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!u.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=qt.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===qt.FRAG_LOADING||!this.fragCurrent&&s===qt.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=qt.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===qt.STOPPED||this.state===qt.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)===Qn.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)===Qn.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:r};this.hls.trigger(c.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:n}=this,{payload:i}=r,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const u=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(f=>{throw n.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const p=self.performance.now();return n.trigger(c.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:p}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===qt.STOPPED||this.state===qt.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=qt.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===Ye.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((n=e.endPTS)!=null?n:NaN).toFixed(3)}] > buffer:${u?Gi.toString(Tn.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==Ye.SUBTITLE){const b=e.elementaryStreams;if(!Object.keys(b).some(T=>!!b[T])){this.state=qt.IDLE;return}}const p=(f=this.levels)==null?void 0:f[e.level];p!=null&&p.fragmentError&&(this.log(`Resetting level fragment error count of ${p.fragmentError} on frag buffered`),p.fragmentError=0)}this.state=qt.IDLE,u&&(!this.loadedmetadata&&e.type==Ye.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=qt.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===qt.KEY_LOADING&&(this.state=qt.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 T=this.getNextPart(b,e,r);if(T>-1){const N=b[T];this.log(`Loading part sn: ${e.sn} p: ${N.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${T}-${b.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=N.start+N.duration,this.state=qt.FRAG_LOADING;let ie;return u?ie=u.then(re=>!re||this.fragContextChanged(re.frag)?null:this.doFragPartsLoad(e,N,t,n)).catch(re=>this.handleFragLoadError(re)):ie=this.doFragPartsLoad(e,N,t,n).catch(re=>this.handleFragLoadError(re)),this.hls.trigger(c.FRAG_LOADING,{frag:e,part:N,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ie}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))}`),P(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=qt.FRAG_LOADING;const f=this.config.progressive;let p;return f&&u?p=u.then(b=>!b||this.fragContextChanged(b==null?void 0:b.frag)?null:this.fragmentLoader.load(e,n)).catch(b=>this.handleFragLoadError(b)):p=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")):p}doFragPartsLoad(e,t,r,n){return new Promise((i,s)=>{var u;const f=[],p=(u=r.details)==null?void 0:u.partList,b=T=>{this.fragmentLoader.loadPart(e,T,n).then(N=>{f[T.index]=N;const ie=N.part;this.hls.trigger(c.FRAG_LOADED,N);const re=Vn(r,e.sn,T.index+1)||wn(p,e.sn,T.index+1);if(re)b(re);else return i({frag:e,part:ie,partsLoaded:f})}).catch(s)};b(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===E.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(c.ERROR,t)}else this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:E.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==qt.PARSING){!this.fragCurrent&&this.state!==qt.STOPPED&&this.state!==qt.ERROR&&(this.state=qt.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?Vn(u,i,s):null,p=f?f.fragment:Gn(u,i,r);return p?(r&&r!==p&&(p.stats=r.stats),{frag:p,part:f,level:u}):null}bufferFragmentData(e,t,r,n,i){var s;if(!e||this.state!==qt.PARSING)return;const{data1:u,data2:f}=e;let p=u;if(u&&f&&(p=pt(u,f)),!((s=p)!=null&&s.length))return;const b={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:p};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(!Tn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=Tn.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 P(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:n}}=this,i=Tn.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 Tn.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=Ye.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Ye.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===Qn.OK||r===Qn.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 p=e[u];if(s=s&&!p.independent,n>-1&&r<p.start)break;const b=p.loaded;b?n=-1:(i||p.independent||s)&&p.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=Hi(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=kr(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:p}=n,b=r.partList,T=!!(n.lowLatencyMode&&b!=null&&b.length&&f);T&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let N;if(e<t){const ie=e>t-p?0:p;N=Si(i,s,e,ie)}else N=s[s.length-1];if(N){const ie=N.sn-r.startSN,re=this.fragmentTracker.getState(N);if((re===Qn.OK||re===Qn.PARTIAL&&N.gap)&&(i=N),i&&N.sn===i.sn&&(!T||b[0].fragment.sn>N.sn)&&i&&N.level===i.level){const _e=s[ie+1];N.sn<u&&this.fragmentTracker.getState(_e)!==Qn.OK?N=_e:N=null}}return N}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 p=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&r.readyState<4||i<u-p)&&(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&&P(i);if(s||!u&&!i){const{fragPrevious:f}=this;bs(f,r,e);const p=e.fragments[0].start;return this.log(`Live playlist sliding: ${p.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${n}`),p}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&&P(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!==qt.FRAG_LOADING_WAITING_RETRY)&&(this.state=qt.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===E.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(r,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:p}=s||{};if(s&&u===Sr.RetryRequest&&p){this.resetStartWhenNotLoaded(this.levelLastLoaded);const b=ni(p,f);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${p.maxNumRetry} in ${b}ms`),s.resolved=!0,this.retryDate=self.performance.now()+b,this.state=qt.FRAG_LOADING_WAITING_RETRY}else if(p&&s)if(this.resetFragmentErrors(e),f<p.maxNumRetry)!i&&u!==Sr.RemoveAlternatePermanently&&(s.resolved=!0);else{x.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===Sr.SendAlternateToPenaltyBox?this.state=qt.WAITING_LEVEL:this.state=qt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===qt.PARSING||this.state===qt.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===Ye.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==qt.STOPPED&&(this.state=qt.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=Tn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===qt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=qt.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,p)=>{const b=e.elementaryStreams[p];if(b){const T=b.endPTS-b.startPTS;if(T<=0)return this.warn(`Could not parse fragment ${e.sn} ${p} duration reliably (${T})`),f||!1;const N=n?0:di(s,e,b.startPTS,b.endPTS,b.startDTS,b.endDTS);return this.hls.trigger(c.LEVEL_PTS_UPDATED,{details:s,level:r,drift:N,type:p,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:w.MEDIA_ERROR,details:E.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=qt.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=_a(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function _a(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 Fs{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=pt(this.cachedData,e),this.cachedData=null);let r=fe(e,0),n=r?r.length:0,i;const s=this._audioTrack,u=this._id3Track,f=r?ee(r):void 0,p=e.length;for((this.basePTS===null||this.frameIndex===0&&P(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:un.audioId3,duration:Number.POSITIVE_INFINITY});n<p;){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=p}else I(e,n)?(r=fe(e,n),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:un.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,i=n):n++;if(n===p&&i!==p){const b=de(e,i);this.cachedData?this.cachedData=pt(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(P(o))return o*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function Ha(o,e,t,r){let n,i,s,u;const f=navigator.userAgent.toLowerCase(),p=r,b=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=((e[t+2]&192)>>>6)+1;const T=(e[t+2]&60)>>>2;if(T>b.length-1){const N=new Error(`invalid ADTS sampling index:${T}`);o.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:E.FRAG_PARSING_ERROR,fatal:!0,error:N,reason:N.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,x.log(`manifest codec:${r}, ADTS type:${n}, samplingIndex:${T}`),/firefox/i.test(f)?T>=6?(n=5,u=new Array(4),i=T-3):(n=2,u=new Array(2),i=T):f.indexOf("android")!==-1?(n=2,u=new Array(2),i=T):(n=5,u=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&T>=6?i=T-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(T>=6&&s===1||/vivaldi/i.test(f))||!r&&s===1)&&(n=2,u=new Array(2)),i=T)),u[0]=n<<3,u[0]|=(T&14)>>1,u[1]|=(T&1)<<7,u[1]|=s<<3,n===5&&(u[1]|=(i&14)>>1,u[2]=(i&1)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:b[T],channelCount:s,codec:"mp4a.40."+n,manifestCodec:p}}function Ms(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 zi(o,e){return e+1<o.length&&Ms(o,e)}function ws(o,e){return Ea(o,e)&&Ms(o,e)&&Bs(o,e)<=o.length-e}function Wa(o,e){if(zi(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||zi(o,n)}return!1}function wa(o,e,t,r,n){if(!o.samplerate){const i=Ha(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,x.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:T,headerLength:N}=u,ie=N+T,re=Math.max(0,t+ie-e.length);re?(f=new Uint8Array(ie-N),f.set(e.subarray(t+N,e.length),0)):f=e.subarray(t+N,t+ie);const ue={unit:f,pts:s};return re||o.samples.push(ue),{sample:ue,length:ie,missing:re}}const p=e.length-t;return f=new Uint8Array(p),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:p,missing:-1}}let Ss=null;const Ga=[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]],Aa=[0,1,1,4];function Ns(o,e,t,r,n){if(t+24>e.length)return;const i=zs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=r+n*s,f={unit:e.subarray(t,t+i.frameLength),pts:u,dts:u};return o.config=[],o.channelCount=i.channelCount,o.samplerate=i.sampleRate,o.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function zs(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,p=Ga[f*14+n-1]*1e3,T=Sa[(t===3?0:t===2?1:2)*3+i],N=u===3?1:2,ie=Va[t][r],re=Aa[r],ue=ie*8*re,_e=Math.floor(ie*p/T+s)*re;if(Ss===null){const _t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ss=_t?parseInt(_t[1]):0}return!!Ss&&Ss<=87&&r===2&&p>=224e3&&u===0&&(o[e+3]=o[e+3]|128),{sampleRate:T,channelCount:N,frameLength:_e,samplesPerFrame:ue}}}function Us(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&&Us(o,e)}function Ca(o,e){return Us(o,e)&&4<=o.length-e}function Ta(o,e){if(e+1<o.length&&Us(o,e)){const r=zs(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 Fs{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=fe(e,0);let r=(t==null?void 0:t.length)||0;if(Ta(e,r))return!1;for(let n=e.length;r<n;r++)if(Wa(e,r))return x.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:p,timescale:b,codec:T}=f.video;i.id=p,i.timescale=u.timescale=b,i.codec=T}if(f.audio){const{id:p,timescale:b,codec:T}=f.audio;s.id=p,s.timescale=b,s.codec=T}u.id=At.text,i.sampleDuration=0,i.duration=s.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return tr(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=pt(this.remainderData,e));const u=Mt(r);this.remainderData=u.remainder,n.samples=u.valid||new Uint8Array}else n.samples=r;const s=this.extractID3Track(n,t);return i.samples=Et(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=Et(e,t),{videoTrack:t,audioTrack:Ri(),id3Track:n,textTrack:Ri()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=ke(e.samples,["emsg"]);n&&n.forEach(i=>{const s=Je(i);if(Ra.test(s.schemeIdUri)){const u=P(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 p=s.payload;r.samples.push({data:p,len:p.byteLength,dts:u,pts:u,type:un.emsg,duration:f})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const ds=(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 Fs{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=fe(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&ee(t)!==void 0&&ds(e,r)<16}}function ua(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 T=e[t+6]>>5;let N=0;T===2?N+=2:(T&1&&T!==1&&(N+=2),T&4&&(N+=2));const ie=(e[t+6]<<8|e[t+7])>>12-N&1,ue=[2,1,2,3,3,4,4,5][T]+ie,_e=e[t+5]>>3,Ge=e[t+5]&7,xt=new Uint8Array([i<<6|_e<<1|Ge>>2,(Ge&3)<<6|T<<3|ie<<2|f>>4,f<<4&224]),_t=1536/u*9e4,Gt=r+n*_t,Rt=e.subarray(t,t+b);return o.config=xt,o.channelCount=ue,o.samplerate=u,o.samples.push({unit:Rt,pts:Gt}),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&&x.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&&x.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),p=this.readBits.bind(this),b=this.readUEG.bind(this),T=this.readBoolean.bind(this),N=this.skipBits.bind(this),ie=this.skipEG.bind(this),re=this.skipUEG.bind(this),ue=this.skipScalingList.bind(this);f();const _e=f();if(p(5),N(3),f(),re(),_e===100||_e===110||_e===122||_e===244||_e===44||_e===83||_e===86||_e===118||_e===128){const or=b();if(or===3&&N(1),re(),re(),N(1),T())for(s=or!==3?8:12,u=0;u<s;u++)T()&&(u<6?ue(16):ue(64))}re();const Ge=b();if(Ge===0)b();else if(Ge===1)for(N(1),ie(),ie(),i=b(),u=0;u<i;u++)ie();re(),N(1);const xt=b(),_t=b(),Gt=p(1);Gt===0&&N(1),N(1),T()&&(e=b(),t=b(),r=b(),n=b());let Rt=[1,1];if(T()&&T())switch(f()){case 1:Rt=[1,1];break;case 2:Rt=[12,11];break;case 3:Rt=[10,11];break;case 4:Rt=[16,11];break;case 5:Rt=[40,33];break;case 6:Rt=[24,11];break;case 7:Rt=[20,11];break;case 8:Rt=[32,11];break;case 9:Rt=[80,33];break;case 10:Rt=[18,11];break;case 11:Rt=[15,11];break;case 12:Rt=[64,33];break;case 13:Rt=[160,99];break;case 14:Rt=[4,3];break;case 15:Rt=[3,2];break;case 16:Rt=[2,1];break;case 255:{Rt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((xt+1)*16-e*2-t*2),height:(2-Gt)*(_t+1)*16-(Gt?2:4)*(r+n),pixelRatio:Rt}}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,p=!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 T;switch(b.type){case 1:{let ue=!1;f=!0;const _e=b.data;if(p&&_e.length>4){const Ge=new Ia(_e).readSliceType();(Ge===2||Ge===4||Ge===7||Ge===9)&&(ue=!0)}if(ue){var N;(N=u)!=null&&N.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=ue;break}case 5:f=!0,(T=u)!=null&&T.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),u.key=!0,u.frame=!0;break;case 6:{f=!0,ct(b.data,1,r.pts,t.samples);break}case 7:{var ie,re;f=!0,p=!0;const ue=b.data,Ge=new Ia(ue).readSPS();if(!e.sps||e.width!==Ge.width||e.height!==Ge.height||((ie=e.pixelRatio)==null?void 0:ie[0])!==Ge.pixelRatio[0]||((re=e.pixelRatio)==null?void 0:re[1])!==Ge.pixelRatio[1]){e.width=Ge.width,e.height=Ge.height,e.pixelRatio=Ge.pixelRatio,e.sps=[ue],e.duration=i;const xt=ue.subarray(1,4);let _t="avc1.";for(let Gt=0;Gt<3;Gt++){let Rt=xt[Gt].toString(16);Rt.length<2&&(Rt="0"+Rt),_t+=Rt}e.codec=_t}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,p,b,T=-1,N=0;for(n===-1&&(T=0,N=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(p=u-n-1,T>=0){const ie={data:t.subarray(T,p),type:N};s.push(ie)}else{const ie=this.getLastNalUnit(e.samples);ie&&(i&&u<=4-i&&ie.state&&(ie.data=ie.data.subarray(0,ie.data.byteLength-i)),p>0&&(ie.data=pt(ie.data,t.subarray(0,p)),ie.state=0))}u<r?(b=t[u]&31,T=u,N=b,n=0):n=-1}else n=0}if(T>=0&&n>=0){const ie={data:t.subarray(T,r),type:N,state:n};s.push(ie)}if(s.length===0){const ie=this.getLastNalUnit(e.samples);ie&&(ie.data=pt(ie.data,t))}return e.naluState=n,s}}class ca{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new qi(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,r){const n=e[t].unit;if(n.length<=16)return;const i=n.subarray(16,n.length-n.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(u=>{const f=new Uint8Array(u);n.set(f,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)e.set(r.subarray(n,n+16),i);return e}decryptAvcSample(e,t,r,n,i){const s=gt(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 oi=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&&x.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(oi*5,t-oi)+1,n=0;for(;n<r;){let i=!1,s=-1,u=0;for(let f=n;f<t;f+=oi)if(e[f]===71&&(t-f===oi||e[f+oi]===71)){if(u++,s===-1&&(s=f,s!==0&&(r=Math.min(s+oi*99,e.length-oi)+1)),i||(i=$s(e,f)===0),i&&u>1&&(s===0&&u>2||f+oi>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:At[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,p=this._txtTrack;let b=s.pid,T=s.pesData,N=u.pid,ie=f.pid,re=u.pesData,ue=f.pesData,_e=null,Ge=this.pmtParsed,xt=this._pmtId,_t=e.length;if(this.remainderData&&(e=pt(this.remainderData,e),_t=e.length,this.remainderData=null),_t<oi&&!n)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};const Gt=Math.max(0,Vi.syncOffset(e));_t-=(_t-Gt)%oi,_t<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,_t,e.buffer.byteLength-_t));let Rt=0;for(let jt=Gt;jt<_t;jt+=oi)if(e[jt]===71){const mr=!!(e[jt+1]&64),Dr=$s(e,jt),nr=(e[jt+3]&48)>>4;let pr;if(nr>1){if(pr=jt+5+e[jt+4],pr===jt+oi)continue}else pr=jt+4;switch(Dr){case b:mr&&(T&&(i=es(T))&&this.videoParser.parseAVCPES(s,p,i,!1,this._duration),T={data:[],size:0}),T&&(T.data.push(e.subarray(pr,jt+oi)),T.size+=jt+oi-pr);break;case N:if(mr){if(re&&(i=es(re)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}re={data:[],size:0}}re&&(re.data.push(e.subarray(pr,jt+oi)),re.size+=jt+oi-pr);break;case ie:mr&&(ue&&(i=es(ue))&&this.parseID3PES(f,i),ue={data:[],size:0}),ue&&(ue.data.push(e.subarray(pr,jt+oi)),ue.size+=jt+oi-pr);break;case 0:mr&&(pr+=e[pr]+1),xt=this._pmtId=Qa(e,pr);break;case xt:{mr&&(pr+=e[pr]+1);const on=La(e,pr,this.typeSupported,r,this.observer);b=on.videoPid,b>0&&(s.pid=b,s.segmentCodec=on.segmentVideoCodec),N=on.audioPid,N>0&&(u.pid=N,u.segmentCodec=on.segmentAudioCodec),ie=on.id3Pid,ie>0&&(f.pid=ie),_e!==null&&!Ge&&(x.warn(`MPEG-TS PMT found at ${jt} after unknown PID '${_e}'. Backtracking to sync byte @${Gt} to parse all TS packets.`),_e=null,jt=Gt-188),Ge=this.pmtParsed=!0;break}case 17:case 8191:break;default:_e=Dr;break}}else Rt++;Rt>0&&js(this.observer,new Error(`Found ${Rt} TS packet/s that do not start with 0x47`)),s.pesData=T,u.pesData=re,f.pesData=ue;const or={audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};return n&&this.extractRemainingSamples(or),or}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 p;if(s&&(p=es(s))?(this.videoParser.parseAVCPES(r,i,p,!0,this._duration),r.pesData=null):r.pesData=s,u&&(p=es(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,p);break;case"mp3":this.parseMPEGPES(t,p);break;case"ac3":this.parseAC3PES(t,p);break}t.pesData=null}else u!=null&&u.size&&x.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(p=es(f))?(this.parseID3PES(n,p),n.pesData=null):n.pesData=f}demuxSampleAes(e,t,r){const n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new ca(this.observer,this.config,t);return this.decrypt(n,i)}decrypt(e,t){return new Promise(r=>{const{audioTrack:n,videoTrack:i}=e;n.samples&&n.segmentCodec==="aac"?t.decryptAacSamples(n.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{r(e)}):r(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{r(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let r=0;const n=this.aacOverFlow;let i=t.data;if(n){this.aacOverFlow=null;const T=n.missing,N=n.sample.unit.byteLength;if(T===-1)i=pt(n.sample.unit,i);else{const ie=N-T;n.sample.unit.set(i.subarray(0,T),ie),e.samples.push(n.sample),r=n.missing}}let s,u;for(s=r,u=i.length;s<u-1&&!zi(i,s);s++);if(s!==r){let T;const N=s<u-1;if(N?T=`AAC PES did not start with ADTS header,offset:${s}`:T="No ADTS header found in AAC PES",js(this.observer,new Error(T),N),!N)return}wa(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(n){const T=sa(e.samplerate);f=n.sample.pts+T}else{x.warn("[tsdemuxer]: AAC PES unknown PTS");return}let p=0,b;for(;s<u;)if(b=aa(e,i,s,f,p),s+=b.length,b.missing){this.aacOverFlow=b;break}else for(p++;s<u-1&&!zi(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){x.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<n;)if(oa(r,s)){const f=Ns(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){x.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){x.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=a({},t,{type:this._videoTrack?un.emsg:un.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function $s(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 La(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 p=$s(o,e),b=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!r){Me("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=p);break;case 21:i.id3Pid===-1&&(i.id3Pid=p);break;case 219:if(!r){Me("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=p,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?x.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="mp3");break;case 193:if(!r){Me("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="ac3"):x.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&b>0){let T=e+5,N=b;for(;N>2;){switch(o[T]){case 106:t.ac3!==!0?x.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=p,i.segmentAudioCodec="ac3");break}const re=o[T+1]+2;T+=re,N-=re}}break;case 194:case 135:return js(n,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return js(n,new Error("Unsupported HEVC in M2TS found")),i}e+=b+5}return i}function js(o,e,t){x.warn(`parsing error: ${e.message}`),o.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:E.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Me(o){x.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]=pt(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 p=t[7];p&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,p&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&&(x.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 T=new Uint8Array(o.size);for(let N=0,ie=u.length;N<ie;N++){t=u[N];let re=t.byteLength;if(b)if(b>re){b-=re;continue}else t=t.subarray(b),re-=b,b=0;T.set(t,e),e+=re}return r&&(r-=n+3),{data:T,pts:i,dts:s,len:r}}return null}class da extends Fs{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=fe(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&ee(t)!==void 0&&ds(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(Ta(e,r))return x.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ca(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Ns(e,t,r,this.basePTS,this.frameIndex)}}class Hs{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Ui=Math.pow(2,32)-1;class Lt{static init(){Lt.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 Lt.types)Lt.types.hasOwnProperty(e)&&(Lt.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]);Lt.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]);Lt.STTS=Lt.STSC=Lt.STCO=i,Lt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Lt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Lt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Lt.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]);Lt.FTYP=Lt.box(Lt.types.ftyp,s,f,s,u),Lt.DINF=Lt.box(Lt.types.dinf,Lt.box(Lt.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 Lt.box(Lt.types.hdlr,Lt.HDLR_TYPES[e])}static mdat(e){return Lt.box(Lt.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(Ui+1)),n=Math.floor(t%(Ui+1));return Lt.box(Lt.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 Lt.box(Lt.types.mdia,Lt.mdhd(e.timescale,e.duration),Lt.hdlr(e.type),Lt.minf(e))}static mfhd(e){return Lt.box(Lt.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"?Lt.box(Lt.types.minf,Lt.box(Lt.types.smhd,Lt.SMHD),Lt.DINF,Lt.stbl(e)):Lt.box(Lt.types.minf,Lt.box(Lt.types.vmhd,Lt.VMHD),Lt.DINF,Lt.stbl(e))}static moof(e,t,r){return Lt.box(Lt.types.moof,Lt.mfhd(e),Lt.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=Lt.trak(e[t]);return Lt.box.apply(null,[Lt.types.moov,Lt.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(Lt.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=Lt.trex(e[t]);return Lt.box.apply(null,[Lt.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(Ui+1)),n=Math.floor(t%(Ui+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 Lt.box(Lt.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 Lt.box(Lt.types.sdtp,r)}static stbl(e){return Lt.box(Lt.types.stbl,Lt.stsd(e),Lt.box(Lt.types.stts,Lt.STTS),Lt.box(Lt.types.stsc,Lt.STSC),Lt.box(Lt.types.stsz,Lt.STSZ),Lt.box(Lt.types.stco,Lt.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=Lt.box(Lt.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,p=e.height,b=e.pixelRatio[0],T=e.pixelRatio[1];return Lt.box(Lt.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,p>>8&255,p&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,Lt.box(Lt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Lt.box(Lt.types.pasp,new Uint8Array([b>>24,b>>16&255,b>>8&255,b&255,T>>24,T>>16&255,T>>8&255,T&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Lt.box(Lt.types.mp4a,Lt.audioStsd(e),Lt.box(Lt.types.esds,Lt.esds(e)))}static mp3(e){return Lt.box(Lt.types[".mp3"],Lt.audioStsd(e))}static ac3(e){return Lt.box(Lt.types["ac-3"],Lt.audioStsd(e),Lt.box(Lt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?Lt.box(Lt.types.stsd,Lt.STSD,Lt.mp3(e)):e.segmentCodec==="ac3"?Lt.box(Lt.types.stsd,Lt.STSD,Lt.ac3(e)):Lt.box(Lt.types.stsd,Lt.STSD,Lt.mp4a(e)):Lt.box(Lt.types.stsd,Lt.STSD,Lt.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,n=e.width,i=e.height,s=Math.floor(r/(Ui+1)),u=Math.floor(r%(Ui+1));return Lt.box(Lt.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=Lt.sdtp(e),n=e.id,i=Math.floor(t/(Ui+1)),s=Math.floor(t%(Ui+1));return Lt.box(Lt.types.traf,Lt.box(Lt.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),Lt.box(Lt.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])),Lt.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,Lt.box(Lt.types.trak,Lt.tkhd(e),Lt.mdia(e))}static trex(e){const t=e.id;return Lt.box(Lt.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,p,b,T,N;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],p=f.duration,b=f.size,T=f.flags,N=f.cts,s.set([p>>>24&255,p>>>16&255,p>>>8&255,p&255,b>>>24&255,b>>>16&255,b>>>8&255,b&255,T.isLeading<<2|T.dependsOn,T.isDependedOn<<6|T.hasRedundancy<<4|T.paddingValue<<1|T.isNonSync,T.degradPrio&61440,T.degradPrio&15,N>>>24&255,N>>>16&255,N>>>8&255,N&255],12+16*u);return Lt.box(Lt.types.trun,s)}static initSegment(e){Lt.types||Lt.init();const t=Lt.moov(e);return pt(Lt.FTYP,t)}}Lt.types=void 0,Lt.HDLR_TYPES=void 0,Lt.STTS=void 0,Lt.STSC=void 0,Lt.STCO=void 0,Lt.STSZ=void 0,Lt.VMHD=void 0,Lt.SMHD=void 0,Lt.STSD=void 0,Lt.FTYP=void 0,Lt.DINF=void 0;const ha=9e4;function Ws(o,e,t=1,r=!1){const n=o*e*t;return r?Math.round(n):n}function Ja(o,e,t=1,r=!1){return Ws(o,e,1/t,r)}function hs(o,e=!1){return Ws(o,1e3,1/ha,e)}function ka(o,e=1){return Ws(o,ha,1/e)}const Ks=10*1e3,Oa=1024,fa=1152,Pa=1536;let fs=null,ma=null;class As{constructor(e,t,r,n=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,fs===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);fs=s?parseInt(s[1]):0}if(ma===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ma=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){x.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){x.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){x.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=bi(u,r),f=u-i),f>0?i:u},r);return t&&x.debug("PTS rollover detected"),n}remux(e,t,r,n,i,s,u,f){let p,b,T,N,ie,re,ue=i,_e=i;const Ge=e.pid>-1,xt=t.pid>-1,_t=t.samples.length,Gt=e.samples.length>0,Rt=u&&_t>0||_t>1;if((!Ge||Gt)&&(!xt||Rt)||this.ISGenerated||u){if(this.ISGenerated){var jt,mr,Dr,nr;const sn=this.videoTrackConfig;sn&&(t.width!==sn.width||t.height!==sn.height||((jt=t.pixelRatio)==null?void 0:jt[0])!==((mr=sn.pixelRatio)==null?void 0:mr[0])||((Dr=t.pixelRatio)==null?void 0:Dr[1])!==((nr=sn.pixelRatio)==null?void 0:nr[1]))&&this.resetInitSegment()}else T=this.generateIS(e,t,i,s);const pr=this.isVideoContiguous;let on=-1,Or;if(Rt&&(on=qa(t.samples),!pr&&this.config.forceKeyFrameOnDiscontinuity))if(re=!0,on>0){x.warn(`[mp4-remuxer]: Dropped ${on} out of ${_t} video samples due to a missing keyframe`);const sn=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(on),t.dropped+=on,_e+=(t.samples[0].pts-sn)/t.inputTimeScale,Or=_e}else on===-1&&(x.warn(`[mp4-remuxer]: No keyframe found out of ${_t} video samples`),re=!1);if(this.ISGenerated){if(Gt&&Rt){const sn=this.getVideoStartPts(t.samples),Vr=(bi(e.samples[0].pts,sn)-sn)/t.inputTimeScale;ue+=Math.max(0,Vr),_e+=Math.max(0,-Vr)}if(Gt){if(e.samplerate||(x.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),T=this.generateIS(e,t,i,s)),b=this.remuxAudio(e,ue,this.isAudioContiguous,s,xt||Rt||f===Ye.AUDIO?_e:void 0),Rt){const sn=b?b.endPTS-b.startPTS:0;t.inputTimeScale||(x.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),T=this.generateIS(e,t,i,s)),p=this.remuxVideo(t,_e,pr,sn)}}else Rt&&(p=this.remuxVideo(t,_e,pr,0));p&&(p.firstKeyFrame=on,p.independent=on!==-1,p.firstKeyFramePTS=Or)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(ie=Fa(r,i,this._initPTS,this._initDTS)),n.samples.length&&(N=eo(n,i,this._initPTS))),{audio:b,video:p,initSegment:T,independent:re,text:N,id3:ie}}generateIS(e,t,r,n){const i=e.samples,s=t.samples,u=this.typeSupported,f={},p=this._initPTS;let b=!p||n,T="audio/mp4",N,ie,re;if(b&&(N=ie=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(T="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:T,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):Lt.initSegment([e]),metadata:{channelCount:e.channelCount}},b&&(re=e.inputTimeScale,!p||re!==p.timescale?N=ie=i[0].pts-Math.round(re*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:Lt.initSegment([t]),metadata:{width:t.width,height:t.height}},b)if(re=t.inputTimeScale,!p||re!==p.timescale){const ue=this.getVideoStartPts(s),_e=Math.round(re*r);ie=Math.min(ie,bi(s[0].dts,ue)-_e),N=Math.min(N,ue-_e)}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:N,timescale:re},this._initDTS={baseTime:ie,timescale:re}):N=re=void 0,{tracks:f,initPTS:N,timescale:re}}remuxVideo(e,t,r,n){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,p=this._initPTS;let b=this.nextAvcDts,T=8,N=this.videoSampleDuration,ie,re,ue=Number.POSITIVE_INFINITY,_e=Number.NEGATIVE_INFINITY,Ge=!1;if(!r||b===null){const Nr=t*i,Pr=s[0].pts-bi(s[0].dts,s[0].pts);fs&&b!==null&&Math.abs(Nr-Pr-b)<15e3?r=!0:b=Nr-Pr}const xt=p.baseTime*i/p.timescale;for(let Nr=0;Nr<f;Nr++){const Pr=s[Nr];Pr.pts=bi(Pr.pts-xt,b),Pr.dts=bi(Pr.dts-xt,b),Pr.dts<s[Nr>0?Nr-1:Nr].dts&&(Ge=!0)}Ge&&s.sort(function(Nr,Pr){const Rn=Nr.dts-Pr.dts,vn=Nr.pts-Pr.pts;return Rn||vn}),ie=s[0].dts,re=s[s.length-1].dts;const _t=re-ie,Gt=_t?Math.round(_t/(f-1)):N||e.inputTimeScale/30;if(r){const Nr=ie-b,Pr=Nr>Gt,Rn=Nr<-1;if((Pr||Rn)&&(Pr?x.warn(`AVC: ${hs(Nr,!0)} ms (${Nr}dts) hole between fragments detected at ${t.toFixed(3)}`):x.warn(`AVC: ${hs(-Nr,!0)} ms (${Nr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Rn||b>=s[0].pts||fs)){ie=b;const vn=s[0].pts-Nr;if(Pr)s[0].dts=ie,s[0].pts=vn;else for(let On=0;On<s.length&&!(s[On].dts>vn);On++)s[On].dts-=Nr,s[On].pts-=Nr;x.log(`Video: Initial PTS/DTS adjusted: ${hs(vn,!0)}/${hs(ie,!0)}, delta: ${hs(Nr,!0)} ms`)}}ie=Math.max(0,ie);let Rt=0,or=0,jt=ie;for(let Nr=0;Nr<f;Nr++){const Pr=s[Nr],Rn=Pr.units,vn=Rn.length;let On=0;for(let li=0;li<vn;li++)On+=Rn[li].data.length;or+=On,Rt+=vn,Pr.length=On,Pr.dts<jt?(Pr.dts=jt,jt+=Gt/4|0||1):jt=Pr.dts,ue=Math.min(Pr.pts,ue),_e=Math.max(Pr.pts,_e)}re=s[f-1].dts;const mr=or+4*Rt+8;let Dr;try{Dr=new Uint8Array(mr)}catch(Nr){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:E.REMUX_ALLOC_ERROR,fatal:!1,error:Nr,bytes:mr,reason:`fail allocating video mdat ${mr}`});return}const nr=new DataView(Dr.buffer);nr.setUint32(0,mr),Dr.set(Lt.types.mdat,4);let pr=!1,on=Number.POSITIVE_INFINITY,Or=Number.POSITIVE_INFINITY,sn=Number.NEGATIVE_INFINITY,nn=Number.NEGATIVE_INFINITY;for(let Nr=0;Nr<f;Nr++){const Pr=s[Nr],Rn=Pr.units;let vn=0;for(let gi=0,yi=Rn.length;gi<yi;gi++){const Fi=Rn[gi],ya=Fi.data,bo=Fi.data.byteLength;nr.setUint32(T,bo),T+=4,Dr.set(ya,T),T+=bo,vn+=4+bo}let On;if(Nr<f-1)N=s[Nr+1].dts-Pr.dts,On=s[Nr+1].pts-Pr.pts;else{const gi=this.config,yi=Nr>0?Pr.dts-s[Nr-1].dts:Gt;if(On=Nr>0?Pr.pts-s[Nr-1].pts:Gt,gi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Fi=Math.floor(gi.maxBufferHole*i),ya=(n?ue+n*i:this.nextAudioPts)-Pr.pts;ya>Fi?(N=ya-yi,N<0?N=yi:pr=!0,x.log(`[mp4-remuxer]: It is approximately ${ya/90} ms to the next segment; using duration ${N/90} ms for the last video frame.`)):N=yi}else N=yi}const li=Math.round(Pr.pts-Pr.dts);on=Math.min(on,N),sn=Math.max(sn,N),Or=Math.min(Or,On),nn=Math.max(nn,On),u.push(new B(Pr.key,N,vn,li))}if(u.length){if(fs){if(fs<70){const Nr=u[0].flags;Nr.dependsOn=2,Nr.isNonSync=0}}else if(ma&&nn-Or<sn-on&&Gt/sn<.025&&u[0].cts===0){x.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Nr=ie;for(let Pr=0,Rn=u.length;Pr<Rn;Pr++){const vn=Nr+u[Pr].duration,On=Nr+u[Pr].cts;if(Pr<Rn-1){const li=vn+u[Pr+1].cts;u[Pr].duration=li-On}else u[Pr].duration=Pr?u[Pr-1].duration:Gt;u[Pr].cts=0,Nr=vn}}}N=pr||!N?Gt:N,this.nextAvcDts=b=re+N,this.videoSampleDuration=N,this.isVideoContiguous=!0;const Bn={data1:Lt.moof(e.sequenceNumber++,ie,a({},e,{samples:u})),data2:Dr,startPTS:ue/i,endPTS:(_e+N)/i,startDTS:ie/i,endDTS:b/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Bn}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fa;case"ac3":return Pa;default:return Oa}}remuxAudio(e,t,r,n,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,p=this.getSamplesPerFrame(e),b=p*f,T=this._initPTS,N=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,ie=[],re=i!==void 0;let ue=e.samples,_e=N?0:8,Ge=this.nextAudioPts||-1;const xt=t*s,_t=T.baseTime*s/T.timescale;if(this.isAudioContiguous=r=r||ue.length&&Ge>0&&(n&&Math.abs(xt-Ge)<9e3||Math.abs(bi(ue[0].pts-_t,xt)-Ge)<20*b),ue.forEach(function(Vr){Vr.pts=bi(Vr.pts-_t,xt)}),!r||Ge<0){if(ue=ue.filter(Vr=>Vr.pts>=0),!ue.length)return;i===0?Ge=0:n&&!re?Ge=Math.max(0,xt):Ge=ue[0].pts}if(e.segmentCodec==="aac"){const Vr=this.config.maxAudioFramesDrift;for(let An=0,Bn=Ge;An<ue.length;An++){const Nr=ue[An],Pr=Nr.pts,Rn=Pr-Bn,vn=Math.abs(1e3*Rn/s);if(Rn<=-Vr*b&&re)An===0&&(x.warn(`Audio frame @ ${(Pr/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Rn/s)} ms.`),this.nextAudioPts=Ge=Bn=Pr);else if(Rn>=Vr*b&&vn<Ks&&re){let On=Math.round(Rn/b);Bn=Pr-On*b,Bn<0&&(On--,Bn+=b),An===0&&(this.nextAudioPts=Ge=Bn),x.warn(`[mp4-remuxer]: Injecting ${On} audio frame @ ${(Bn/s).toFixed(3)}s due to ${Math.round(1e3*Rn/s)} ms gap.`);for(let li=0;li<On;li++){const gi=Math.max(Bn,0);let yi=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);yi||(x.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),yi=Nr.unit.subarray()),ue.splice(An,0,{unit:yi,pts:gi}),Bn+=b,An++}}Nr.pts=Bn,Bn+=b}}let Gt=null,Rt=null,or,jt=0,mr=ue.length;for(;mr--;)jt+=ue[mr].unit.byteLength;for(let Vr=0,An=ue.length;Vr<An;Vr++){const Bn=ue[Vr],Nr=Bn.unit;let Pr=Bn.pts;if(Rt!==null){const vn=ie[Vr-1];vn.duration=Math.round((Pr-Rt)/f)}else if(r&&e.segmentCodec==="aac"&&(Pr=Ge),Gt=Pr,jt>0){jt+=_e;try{or=new Uint8Array(jt)}catch(vn){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:E.REMUX_ALLOC_ERROR,fatal:!1,error:vn,bytes:jt,reason:`fail allocating audio mdat ${jt}`});return}N||(new DataView(or.buffer).setUint32(0,jt),or.set(Lt.types.mdat,4))}else return;or.set(Nr,_e);const Rn=Nr.byteLength;_e+=Rn,ie.push(new B(!0,p,Rn,0)),Rt=Pr}const Dr=ie.length;if(!Dr)return;const nr=ie[ie.length-1];this.nextAudioPts=Ge=Rt+f*nr.duration;const pr=N?new Uint8Array(0):Lt.moof(e.sequenceNumber++,Gt/f,a({},e,{samples:ie}));e.samples=[];const on=Gt/s,Or=Ge/s,nn={data1:pr,data2:or,startPTS:on,endPTS:Or,startDTS:on,endDTS:Or,type:"audio",hasAudio:!0,hasVideo:!1,nb:Dr};return this.isAudioContiguous=!0,nn}remuxEmptyAudio(e,t,r,n){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,p=this._initDTS,b=p.baseTime*9e4/p.timescale,T=(f!==null?f:n.startDTS*i)+b,N=n.endDTS*i+b,ie=u*Oa,re=Math.ceil((N-T)/ie),ue=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(x.warn("[mp4-remuxer]: remux empty Audio"),!ue){x.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const _e=[];for(let Ge=0;Ge<re;Ge++){const xt=T+Ge*ie;_e.push({unit:ue,pts:xt,dts:xt})}return e.samples=_e,this.remuxAudio(e,t,r,!1)}}function bi(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 qa(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Fa(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=bi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=bi(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=bi(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 B{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(j(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=h(n.audio,H.AUDIO)),n.video&&(r=h(n.video,H.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"}:x.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:p,lastEndTime:b}=this;const T={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};P(b)||(b=this.lastEndTime=i||0);const N=t.samples;if(!(N!=null&&N.length))return T;const ie={initPTS:void 0,timescale:1};let re=this.initData;if((u=re)!=null&&u.length||(this.generateInitSegment(N),re=this.initData),!((f=re)!=null&&f.length))return x.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),T;this.emitInitSegment&&(ie.tracks=this.initTracks,this.emitInitSegment=!1);const ue=Zt(N,re),_e=Ae(re,N),Ge=_e===null?i:_e;(d(p,Ge,i,ue)||ie.timescale!==p.timescale&&s)&&(ie.initPTS=Ge-i,p&&p.timescale===1&&x.warn(`Adjusting initPTS by ${ie.initPTS-p.baseTime}`),this.initPTS=p={baseTime:ie.initPTS,timescale:1});const xt=e?Ge-p.baseTime/p.timescale:b,_t=xt+ue;wt(re,N,p.baseTime/p.timescale),ue>0?this.lastEndTime=_t:(x.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Gt=!!re.audio,Rt=!!re.video;let or="";Gt&&(or+="audio"),Rt&&(or+="video");const jt={data1:N,startPTS:xt,startDTS:xt,endPTS:_t,endDTS:_t,type:or,hasAudio:Gt,hasVideo:Rt,nb:1,dropped:0};return T.audio=jt.type==="audio"?jt:void 0,T.video=jt.type!=="audio"?jt:void 0,T.initSegment=ie,T.id3=Fa(r,i,p,p),n.samples.length&&(T.text=eo(n,i,p)),T}}function d(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 h(o,e){const t=o==null?void 0:o.codec;if(t&&t.length>4)return t;if(e===H.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return cr(t,!1);const r="mp4a.40.5";return x.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return x.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let m;try{m=self.performance.now.bind(self.performance)}catch(o){x.debug("Unable to use Performance API on this environment"),m=Ne==null?void 0:Ne.Date.now}const D=[{demux:Za,remux:l},{demux:Vi,remux:As},{demux:Da,remux:As},{demux:da,remux:As}];D.splice(2,0,{demux:la,remux:As});class M{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=m();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;n&&(this.currentTransmuxState=n);const{contiguous:p,discontinuity:b,trackSwitch:T,accurateTimeOffset:N,timeOffset:ie,initSegmentChange:re}=n||u,{audioCodec:ue,videoCodec:_e,defaultInitPts:Ge,duration:xt,initSegmentData:_t}=f,Gt=pe(s,t);if(Gt&&Gt.method==="AES-128"){const mr=this.getDecrypter();if(mr.isSync()){let Dr=mr.softwareDecrypt(s,Gt.key.buffer,Gt.iv.buffer);if(r.part>-1&&(Dr=mr.flush()),!Dr)return i.executeEnd=m(),Ce(r);s=new Uint8Array(Dr)}else return this.decryptionPromise=mr.webCryptoDecrypt(s,Gt.key.buffer,Gt.iv.buffer).then(Dr=>{const nr=this.push(Dr,null,r);return this.decryptionPromise=null,nr}),this.decryptionPromise}const Rt=this.needsProbing(b,T);if(Rt){const mr=this.configureTransmuxer(s);if(mr)return x.warn(`[transmuxer] ${mr.message}`),this.observer.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:E.FRAG_PARSING_ERROR,fatal:!1,error:mr,reason:mr.message}),i.executeEnd=m(),Ce(r)}(b||T||re||Rt)&&this.resetInitSegment(_t,ue,_e,xt,t),(b||re||Rt)&&this.resetInitialTimestamp(Ge),p||this.resetContiguity();const or=this.transmux(s,Gt,ie,N,r),jt=this.currentTransmuxState;return jt.contiguous=!0,jt.discontinuity=!1,jt.trackSwitch=!1,i.executeEnd=m(),or}flush(e){const t=e.transmuxing;t.executeStart=m();const{decrypter:r,currentTransmuxState:n,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:u}=n;if(r){const T=r.flush();T&&s.push(this.push(T,null,e))}const{demuxer:f,remuxer:p}=this;if(!f||!p)return t.executeEnd=m(),[Ce(e)];const b=f.flush(u);return je(b)?b.then(T=>(this.flushRemux(s,T,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:p}=this.currentTransmuxState;x.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,p,f,!0,this.id);e.push({remuxResult:b,chunkMeta:r}),r.transmuxing.executeEnd=m()}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 N=0,ie=D.length;N<ie;N++){var u;if((u=D[N].demux)!=null&&u.probe(e)){s=D[N];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,p=this.remuxer,b=s.remux,T=s.demux;(!p||!(p instanceof b))&&(this.remuxer=new b(r,t,n,i)),(!f||!(f instanceof T))&&(this.demuxer=new T(r,t,n),this.probe=T.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new qi(this.config)),e}}function pe(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 Ce=o=>({remuxResult:{},chunkMeta:o});function je(o){return"then"in o&&o.then instanceof Function}class dt{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 St{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 zt={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,p,b){this.fn=f,this.context=p,this.once=b||!1}function i(f,p,b,T,N){if(typeof b!="function")throw new TypeError("The listener must be a function");var ie=new n(b,T||f,N),re=t?t+p:p;return f._events[re]?f._events[re].fn?f._events[re]=[f._events[re],ie]:f._events[re].push(ie):(f._events[re]=ie,f._eventsCount++),f}function s(f,p){--f._eventsCount===0?f._events=new r:delete f._events[p]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],b,T;if(this._eventsCount===0)return p;for(T in b=this._events)e.call(b,T)&&p.push(t?T.slice(1):T);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(b)):p},u.prototype.listeners=function(p){var b=t?t+p:p,T=this._events[b];if(!T)return[];if(T.fn)return[T.fn];for(var N=0,ie=T.length,re=new Array(ie);N<ie;N++)re[N]=T[N].fn;return re},u.prototype.listenerCount=function(p){var b=t?t+p:p,T=this._events[b];return T?T.fn?1:T.length:0},u.prototype.emit=function(p,b,T,N,ie,re){var ue=t?t+p:p;if(!this._events[ue])return!1;var _e=this._events[ue],Ge=arguments.length,xt,_t;if(_e.fn){switch(_e.once&&this.removeListener(p,_e.fn,void 0,!0),Ge){case 1:return _e.fn.call(_e.context),!0;case 2:return _e.fn.call(_e.context,b),!0;case 3:return _e.fn.call(_e.context,b,T),!0;case 4:return _e.fn.call(_e.context,b,T,N),!0;case 5:return _e.fn.call(_e.context,b,T,N,ie),!0;case 6:return _e.fn.call(_e.context,b,T,N,ie,re),!0}for(_t=1,xt=new Array(Ge-1);_t<Ge;_t++)xt[_t-1]=arguments[_t];_e.fn.apply(_e.context,xt)}else{var Gt=_e.length,Rt;for(_t=0;_t<Gt;_t++)switch(_e[_t].once&&this.removeListener(p,_e[_t].fn,void 0,!0),Ge){case 1:_e[_t].fn.call(_e[_t].context);break;case 2:_e[_t].fn.call(_e[_t].context,b);break;case 3:_e[_t].fn.call(_e[_t].context,b,T);break;case 4:_e[_t].fn.call(_e[_t].context,b,T,N);break;default:if(!xt)for(Rt=1,xt=new Array(Ge-1);Rt<Ge;Rt++)xt[Rt-1]=arguments[Rt];_e[_t].fn.apply(_e[_t].context,xt)}}return!0},u.prototype.on=function(p,b,T){return i(this,p,b,T,!1)},u.prototype.once=function(p,b,T){return i(this,p,b,T,!0)},u.prototype.removeListener=function(p,b,T,N){var ie=t?t+p:p;if(!this._events[ie])return this;if(!b)return s(this,ie),this;var re=this._events[ie];if(re.fn)re.fn===b&&(!N||re.once)&&(!T||re.context===T)&&s(this,ie);else{for(var ue=0,_e=[],Ge=re.length;ue<Ge;ue++)(re[ue].fn!==b||N&&!re[ue].once||T&&re[ue].context!==T)&&_e.push(re[ue]);_e.length?this._events[ie]=_e.length===1?_e[0]:_e:s(this,ie)}return this},u.prototype.removeAllListeners=function(p){var b;return p?(b=t?t+p:p,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})(zt);var rr=zt.exports,hr=v(rr);class xr{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=(p,b)=>{b=b||{},b.frag=this.frag,b.id=this.id,p===c.ERROR&&(this.error=b.error),this.hls.trigger(p,b)};this.observer=new hr,this.observer.on(c.FRAG_DECRYPTED,s),this.observer.on(c.ERROR,s);const u=yt(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?(x.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=na(i.workerPath)):(x.log(`injecting Web Worker for "${t}"`),this.workerContext=ra()),this.onwmsg=T=>this.onWorkerMessage(T);const{worker:b}=this.workerContext;b.addEventListener("message",this.onwmsg),b.onerror=T=>{const N=new Error(`${T.message} (${T.filename}:${T.lineno})`);i.enableWorker=!1,x.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:E.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:N})},b.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(b){x.warn(`Error setting up "${t}" Web Worker, fallback to inline`,b),this.resetWorker(),this.error=null,this.transmuxer=new M(this.observer,f,i,"",t)}return}this.transmuxer=new M(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,p,b){var T,N;p.transmuxing.start=self.performance.now();const{transmuxer:ie}=this,re=s?s.start:i.start,ue=i.decryptdata,_e=this.frag,Ge=!(_e&&i.cc===_e.cc),xt=!(_e&&p.level===_e.level),_t=_e?p.sn-_e.sn:-1,Gt=this.part?p.part-this.part.index:-1,Rt=_t===0&&p.id>1&&p.id===(_e==null?void 0:_e.stats.chunkCount),or=!xt&&(_t===1||_t===0&&(Gt===1||Rt&&Gt<=0)),jt=self.performance.now();(xt||_t||i.stats.parsing.start===0)&&(i.stats.parsing.start=jt),s&&(Gt||!or)&&(s.stats.parsing.start=jt);const mr=!(_e&&((T=i.initSegment)==null?void 0:T.url)===((N=_e.initSegment)==null?void 0:N.url)),Dr=new St(Ge,or,f,xt,re,mr);if(!or||Ge||mr){x.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${p.sn} p: ${p.part} level: ${p.level} id: ${p.id}
|
|
|
discontinuity: ${Ge}
|
|
|
trackSwitch: ${xt}
|
|
|
contiguous: ${or}
|
|
|
accurateTimeOffset: ${f}
|
|
|
timeOffset: ${re}
|
|
|
initSegmentChange: ${mr}`);const nr=new dt(r,n,t,u,b);this.configureTransmuxer(nr)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:ue,chunkMeta:p,state:Dr},e instanceof ArrayBuffer?[e]:[]);else if(ie){const nr=ie.push(e,ue,p,Dr);je(nr)?(ie.async=!0,nr.then(pr=>{this.handleTransmuxComplete(pr)}).catch(pr=>{this.transmuxerError(pr,p,"transmuxer-interface push error")})):(ie.async=!1,this.handleTransmuxComplete(nr))}}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);je(r)||t.async?(je(r)||(r=Promise.resolve(r)),r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.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)){x.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":x[t.data.logType]&&x[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 Br=100;class qr extends cs{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Ye.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===qt.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=qt.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Br),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=qt.IDLE):(this.loadedmetadata=!1,this.state=qt.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case qt.IDLE:this.doTickIdle();break;case qt.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=qt.WAITING_INIT_PTS}break}case qt.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=qt.IDLE}break}case qt.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=qt.FRAG_LOADING;const f=s.flush(),p={frag:n,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(p),u&&super._handleFragmentLoadComplete(p)}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(),p=Tn.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);Li(p.end,this.config.maxFragLookUpTolerance,n)<0&&(this.log(`Waiting fragment cc (${n.cc}) @ ${n.start} cancelled because another fragment at ${p.end} is needed`),this.clearWaitingFragment())}}else this.state=qt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=qt.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=qt.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,H.AUDIO,Ye.AUDIO));const p=this.getFwdBufferInfo(f,Ye.AUDIO);if(p===null)return;if(!this.switchingTrack&&this._streamEnded(p,u)){e.trigger(c.BUFFER_EOS,{type:"audio"}),this.state=qt.ENDED;return}const b=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ye.MAIN),T=p.len,N=this.getMaxBufferLength(b==null?void 0:b.len),ie=u.fragments,re=ie[0].start,ue=this.getLoadPosition(),_e=this.flushing?ue:p.end;if(this.switchingTrack&&r){const Gt=ue;u.PTSKnown&&Gt<re&&(p.end>re||p.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=re+.05)}if(T>=N&&!this.switchingTrack&&_e<ie[ie.length-1].start)return;let Ge=this.getNextFragment(_e,u),xt=!1;if(Ge&&this.isLoopLoading(Ge,_e)&&(xt=!!Ge.gap,Ge=this.getNextFragmentLoopLoading(Ge,u,p,Ye.MAIN,N)),!Ge){this.bufferFlushed=!0;return}const _t=b&&Ge.start>b.end+u.targetduration;if(_t||!(b!=null&&b.len)&&p.len){const Gt=this.getAppendedFrag(Ge.start,Ye.MAIN);if(Gt===null||(xt||(xt=!!Gt.gap||!!_t&&b.len===0),_t&&!xt||xt&&p.nextStart&&p.nextStart<Gt.end))return}this.loadFragment(Ge,s,_e)}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 $n(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(Br):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=qt.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=qt.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)wi(i,b),f=i.fragments[0].start;else{var p;f=this.alignPlaylists(i,u.details,(p=this.levelLastLoaded)==null?void 0:p.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===qt.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=qt.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 p=f[u];if(!p){this.warn("Audio track is undefined on fragment load progress");return}const b=p.details;if(!b){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const T=s.defaultAudioCodec||p.audioCodec||"mp4a.40.2";let N=this.transmuxer;N||(N=this.transmuxer=new xr(this.hls,Ye.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const ie=this.initPTS[r.cc],re=(t=r.initSegment)==null?void 0:t.data;if(ie!==void 0){const _e=n?n.index:-1,Ge=_e!==-1,xt=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,_e,Ge);N.push(i,re,T,"",r,n,b.totalduration,!1,xt,ie)}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:ue}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new ta,complete:!1};ue.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=qt.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!==Ye.AUDIO){if(!this.loadedmetadata&&r.type===Ye.MAIN){const i=this.videoBuffer||this.media;i&&Tn.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,ne({},i)))}this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=qt.ERROR;return}switch(t.details){case E.FRAG_GAP:case E.FRAG_PARSING_ERROR:case E.FRAG_DECRYPT_ERROR:case E.FRAG_LOAD_ERROR:case E.FRAG_LOAD_TIMEOUT:case E.KEY_LOAD_ERROR:case E.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.AUDIO,t);break;case E.AUDIO_TRACK_LOAD_ERROR:case E.AUDIO_TRACK_LOAD_TIMEOUT:case E.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===qt.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===br.AUDIO_TRACK&&(this.state=qt.IDLE);break;case E.BUFFER_APPEND_ERROR:case E.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===E.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case E.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==H.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==H.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===qt.ENDED&&(this.state=qt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Ye.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:p,level:b}=u,{details:T}=b,{audio:N,text:ie,id3:re,initSegment:ue}=i;if(this.fragContextChanged(f)||!T){this.fragmentTracker.removeFragment(f);return}if(this.state=qt.PARSING,this.switchingTrack&&N&&this.completeAudioSwitch(this.switchingTrack),ue!=null&&ue.tracks){const _e=f.initSegment||f;this._bufferInitSegment(b,ue.tracks,_e,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:_e,id:r,tracks:ue.tracks})}if(N){const{startPTS:_e,endPTS:Ge,startDTS:xt,endDTS:_t}=N;p&&(p.elementaryStreams[H.AUDIO]={startPTS:_e,endPTS:Ge,startDTS:xt,endDTS:_t}),f.setElementaryStreamInfo(H.AUDIO,_e,Ge,xt,_t),this.bufferFragmentData(N,f,p,s)}if(re!=null&&(t=re.samples)!=null&&t.length){const _e=a({id:r,frag:f,details:T},re);n.trigger(c.FRAG_PARSING_METADATA,_e)}if(ie){const _e=a({id:r,frag:f,details:T},ie);n.trigger(c.FRAG_PARSING_USERDATA,_e)}}_bufferInitSegment(e,t,r,n){if(this.state!==qt.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===Qn.NOT_LOADED||n===Qn.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=qt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&wi(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;Ci({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,ne({},e))}}function rn(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!en(o[t].attrs,e[t].attrs))return!1;return!0}function en(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 Ln(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class kn extends yn{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(N=>!r||r.indexOf(N.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(N=>N.default)&&(this.selectDefaultTrack=!1),u.forEach((N,ie)=>{N.id=ie});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const N=_i(f,u,Di);if(N>-1)i=u[N];else{const ie=_i(f,this.tracks);i=this.tracks[ie]}}let p=this.findTrackId(i);p===-1&&i&&(p=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 T=this.trackId;if(p!==-1&&T===-1)this.setAudioTrack(p);else if(u.length&&T===-1){var s;const N=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(N.message),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:N})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===br.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&&Ci(e,n,Di))return n;const i=_i(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=Js(e,t.levels,r,s,Di);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=_i(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,ne({},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||Ci(e,n,Di)))return r}if(e){const{name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let p=0;p<t.length;p++){const b=t[p];if(Ci({name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f},b,Di))return p}for(let p=0;p<t.length;p++){const b=t[p];if(en(e.attrs,b.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return p}for(let p=0;p<t.length;p++){const b=t[p];if(en(e.attrs,b.attrs,["LANGUAGE"]))return p}}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 Un=500;class jn extends cs{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Ye.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=qt.IDLE,this.setInterval(Un),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=qt.IDLE,!n)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=r.start;for(let p=0;p<i.length;p++)if(u>=i[p].start&&u<=i[p].end){s=i[p];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,Ye.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ye.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)===Ye.SUBTITLE&&(t.details===E.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==qt.STOPPED&&(this.state=qt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&rn(this.levels,t)){this.levels=t.map(r=>new $n(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new $n(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ye.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(Un)}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 p=0;if(s.live||(r=f.details)!=null&&r.live){const T=this.mainDetails;if(s.deltaUpdateFailed||!T)return;const N=T.fragments[0];if(!f.details)s.hasProgramDateTime&&T.hasProgramDateTime?(wi(s,T),p=s.fragments[0].start):N&&(p=N.start,Vt(s,p));else{var b;p=this.alignPlaylists(s,f.details,(b=this.levelLastLoaded)==null?void 0:b.details),p===0&&N&&(p=N.start,Vt(s,p))}}f.details=s,this.levelLastLoaded=f,u===n&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,p),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===qt.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:w.MEDIA_ERROR,details:E.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=qt.IDLE})}}doTick(){if(!this.media){this.state=qt.IDLE;return}if(this.state===qt.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=Tn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),{end:u,len:f}=s,p=this.getFwdBufferInfo(this.media,Ye.MAIN),b=r.details,T=this.getMaxBufferLength(p==null?void 0:p.len)+b.levelTargetDuration;if(f>T)return;const N=b.fragments,ie=N.length,re=b.edge;let ue=null;const _e=this.fragPrevious;if(u<re){const Ge=n.maxFragLookUpTolerance,xt=u>re-Ge?0:Ge;ue=Si(_e,N,Math.max(N[0].start,u),xt),!ue&&_e&&_e.start<N[0].start&&(ue=N[0])}else ue=N[ie-1];if(!ue)return;if(ue=this.mapToInitFragWhenRequired(ue),ue.sn!=="initSegment"){const Ge=ue.sn-b.startSN,xt=N[Ge-1];xt&&xt.cc===ue.cc&&this.fragmentTracker.getState(xt)===Qn.NOT_LOADED&&(ue=xt)}this.fragmentTracker.getState(ue)===Qn.NOT_LOADED&&this.loadFragment(ue,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 Yn(this.tracksBuffered[this.currentTrackId]||[])}}class Yn{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 mi extends yn{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=Zr(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),Zr(this.media.textTracks).forEach(t=>{Ar(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,T)=>{b.id=T});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const b=_i(u,s);if(b>-1)i=s[b];else{const T=_i(u,this.tracks);i=this.tracks[T]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const p={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,p),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||Ci(i,e)))return n}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(en(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(en(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(Ln(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===br.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&&Ci(e,r))return r;const n=_i(e,this.tracksInGroup);if(n>-1){const i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}else{if(r)return null;{const i=_i(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=Zr(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(i=>Ln(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||!P(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:p,url:b}=n;this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:p,url:b});const T=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(T)}}class ui{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){x.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 Dn=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ti{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&&x.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Nt(yt(e.config.preferManagedMediaSource)),this.log=x.log.bind(x,t),this.warn=x.warn.bind(x,t),this.error=x.error.bind(x,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 ui(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=yt(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,$i(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&&$i(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:p,codec:b,levelCodec:T,container:N,metadata:ie}=t[s],re=ur(f.codec,f.levelCodec),ue=re==null?void 0:re.replace(Dn,"$1");let _e=ur(b,T);const Ge=(u=_e)==null?void 0:u.replace(Dn,"$1");if(_e&&ue!==Ge){s.slice(0,5)==="audio"&&(_e=cr(_e,this.appendSource));const xt=`${N};codecs=${_e}`;this.appendChangeType(s,xt),this.log(`switching codec ${re} to ${_e}`),this.tracks[s]={buffer:f.buffer,codec:b,container:N,levelCodec:T,metadata:ie,id:p}}}}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:p,chunkMeta:b}=t,T=b.buffering[u],N=self.performance.now();T.start=N;const ie=f.stats.buffering,re=p?p.stats.buffering:null;ie.start===0&&(ie.start=N),re&&re.start===0&&(re.start=N);const ue=i.audio;let _e=!1;u==="audio"&&(ue==null?void 0:ue.container)==="audio/mpeg"&&(_e=!this.lastMpegAudioChunk||b.id===1||this.lastMpegAudioChunk.sn!==b.sn,this.lastMpegAudioChunk=b);const Ge=f.start,xt={execute:()=>{if(T.executeStart=self.performance.now(),_e){const _t=this.sourceBuffer[u];if(_t){const Gt=Ge-_t.timestampOffset;Math.abs(Gt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ge} (delta: ${Gt}) sn: ${f.sn})`),_t.timestampOffset=Ge)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const _t=self.performance.now();T.executeEnd=T.end=_t,ie.first===0&&(ie.first=_t),re&&re.first===0&&(re.first=_t);const{sourceBuffer:Gt}=this,Rt={};for(const or in Gt)Rt[or]=Tn.getBuffered(Gt[or]);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:p,chunkMeta:b,parent:f.type,timeRanges:Rt})},onError:_t=>{const Gt={type:w.MEDIA_ERROR,parent:f.type,details:E.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:p,chunkMeta:b,error:_t,err:_t,fatal:!1};if(_t.code===DOMException.QUOTA_EXCEEDED_ERR)Gt.details=E.BUFFER_FULL_ERROR;else{const Rt=++this.appendErrors[u];Gt.details=E.BUFFER_APPEND_ERROR,this.warn(`Failed ${Rt}/${r.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),Rt>=r.config.appendErrorMaxRetry&&(Gt.fatal=!0)}r.trigger(c.ERROR,Gt)}};n.append(xt,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[H.AUDIOVIDEO]?i.push("audiovideo"):(s[H.AUDIO]&&i.push("audio"),s[H.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();r.stats.buffering.end=f,n&&(n.stats.buffering.end=f);const p=n?n.stats:r.stats;this.hls.trigger(c.FRAG_BUFFERED,{frag:r,part:n,stats:p,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(P(f)&&f>0){const p=Math.max(f,u),b=Math.floor(s/u)*u-p;this.flushBackBuffer(s,u,b)}if(P(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const p=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),b=Math.max(p,u),T=Math.floor(s/u)*u+b;this.flushFrontBuffer(s,u,T)}}flushBackBuffer(e,t,r){const{details:n,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const p=Tn.getBuffered(f);if(p.length>0&&r>p.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&&p.end(p.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=Tn.getBuffered(u),p=f.length;if(p<2)return;const b=f.start(p-1),T=f.end(p-1);if(r>b||e>=b&&e<=T)return;if(u.ended&&e-T<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset: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=P(n.duration)?n.duration:0;e.live&&t.config.liveDurationInfinity?(n.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!P(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),n.duration=i)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,r[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,n=Object.keys(r).length;if(n&&(!e||n===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(c.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.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=cr(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const p=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",(T,N)=>{const ie=N.removedRanges;ie!=null&&ie.length&&this.hls.trigger(c.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:p,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(p){this.error(`error while trying to add sourceBuffer: ${p.message}`),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:p,sourceBufferName:i,mimeType:f})}}}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var r;const n=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${n}`,t),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.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 p=P(n.duration)?n.duration:1/0,b=P(i.duration)?i.duration:1/0,T=Math.max(0,t),N=Math.min(r,p,b);N>T&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${T},${N}] from the ${e} SourceBuffer`),f.remove(T,N)):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 $i(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 pi={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},ji=o=>String.fromCharCode(pi[o]||o),ii=15,Oi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ms={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ps={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},gs={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Gs=["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;x.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 Ma{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 Ma}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class pa{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ma,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=ji(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=ii-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<ii;t++)this.rows.push(new pa(e));this.logger=e}reset(){for(let e=0;e<ii;e++)this.rows[e].clear();this.currRow=ii-1}equals(e){let t=!0;for(let r=0;r<ii;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<ii;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<ii;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<ii;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 p=0;p<this.nrRollUpRows;p++)this.rows[t-this.nrRollUpRows+p+1].copy(s.rows[i+p])}}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<ii;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[ii-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[ii-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const r=Math.floor(e/2)-16,n=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=n[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class va{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qo(),this.logger=void 0;const n=this.logger=new 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(Jo(n,i,f)){rs(null,null,f),this.logger.log(3,()=>"Repeated command ("+ts([n,i])+") is dropped");continue}rs(n,i,this.cmdHistory),s=this.parseCmd(n,i),s||(s=this.parseMidrow(n,i)),s||(s=this.parsePAC(n,i)),s||(s=this.parseBackgroundAttributes(n,i))}else rs(null,null,f);if(!s&&(u=this.parseChars(n,i),u)){const 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]:ps[e]:r=s===1?ms[e]:gs[e];const u=this.channels[s];return u?(u.setPAC(this.interpretPAC(r,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let r;const n={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,n.underline=(r&1)===1,r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=Math.floor((r-16)/2)*4,n}parseChars(e,t){let r,n=null,i=null;if(e>=25?(r=2,i=e-8):(r=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+ji(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=Gs[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 Jo(o,e,t){return t.a===o&&t.b===e}function qo(){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(Ne!=null&&Ne.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 p=f.toLowerCase();return~u.indexOf(p)?p:!1}function r(u){return t(o,u)}function n(u){return t(e,u)}function i(u,...f){let p=1;for(;p<arguments.length;p++){const b=arguments[p];for(const T in b)u[T]=b[T]}return u}function s(u,f,p){const b=this,T={enumerable:!0};b.hasBeenReset=!1;let N="",ie=!1,re=u,ue=f,_e=p,Ge=null,xt="",_t=!0,Gt="auto",Rt="start",or=50,jt="middle",mr=50,Dr="middle";Object.defineProperty(b,"id",i({},T,{get:function(){return N},set:function(nr){N=""+nr}})),Object.defineProperty(b,"pauseOnExit",i({},T,{get:function(){return ie},set:function(nr){ie=!!nr}})),Object.defineProperty(b,"startTime",i({},T,{get:function(){return re},set:function(nr){if(typeof nr!="number")throw new TypeError("Start time must be set to a number.");re=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"endTime",i({},T,{get:function(){return ue},set:function(nr){if(typeof nr!="number")throw new TypeError("End time must be set to a number.");ue=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"text",i({},T,{get:function(){return _e},set:function(nr){_e=""+nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"region",i({},T,{get:function(){return Ge},set:function(nr){Ge=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"vertical",i({},T,{get:function(){return xt},set:function(nr){const pr=r(nr);if(pr===!1)throw new SyntaxError("An invalid or illegal string was specified.");xt=pr,this.hasBeenReset=!0}})),Object.defineProperty(b,"snapToLines",i({},T,{get:function(){return _t},set:function(nr){_t=!!nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"line",i({},T,{get:function(){return Gt},set:function(nr){if(typeof nr!="number"&&nr!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Gt=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"lineAlign",i({},T,{get:function(){return Rt},set:function(nr){const pr=n(nr);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");Rt=pr,this.hasBeenReset=!0}})),Object.defineProperty(b,"position",i({},T,{get:function(){return or},set:function(nr){if(nr<0||nr>100)throw new Error("Position must be between 0 and 100.");or=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"positionAlign",i({},T,{get:function(){return jt},set:function(nr){const pr=n(nr);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");jt=pr,this.hasBeenReset=!0}})),Object.defineProperty(b,"size",i({},T,{get:function(){return mr},set:function(nr){if(nr<0||nr>100)throw new Error("Size must be between 0 and 100.");mr=nr,this.hasBeenReset=!0}})),Object.defineProperty(b,"align",i({},T,{get:function(){return Dr},set:function(nr){const pr=n(nr);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");Dr=pr,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,""),Na=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 p=new tl;Eo(u,function(N,ie){let re;switch(N){case"region":for(let ue=t.length-1;ue>=0;ue--)if(t[ue].id===ie){p.set(N,t[ue].region);break}break;case"vertical":p.alt(N,ie,["rl","lr"]);break;case"line":re=ie.split(","),p.integer(N,re[0]),p.percent(N,re[0])&&p.set("snapToLines",!1),p.alt(N,re[0],["auto"]),re.length===2&&p.alt("lineAlign",re[1],["start",Na,"end"]);break;case"position":re=ie.split(","),p.percent(N,re[0]),re.length===2&&p.alt("positionAlign",re[1],["start",Na,"end","line-left","line-right","auto"]);break;case"size":p.percent(N,ie);break;case"align":p.alt(N,ie,["start",Na,"end","left","right"]);break}},/:/,/\s/),f.region=p.get("region",null),f.vertical=p.get("vertical","");let b=p.get("line","auto");b==="auto"&&io.line===-1&&(b=-1),f.line=b,f.lineAlign=p.get("lineAlign","start"),f.snapToLines=p.get("snapToLines",!0),f.size=p.get("size",100),f.align=p.get("align",Na);let T=p.get("position","auto");T==="auto"&&io.position===50&&(T=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=T}function s(){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(!P(t)||!P(r)||!P(n)||!P(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=Dt(new Uint8Array(o)).trim().replace(il,`
|
|
|
`).split(`
|
|
|
`),p=[],b=e?ka(e.baseTime,e.timescale):0;let T="00:00.000",N=0,ie=0,re,ue=!0;u.oncue=function(_e){const Ge=t[r];let xt=t.ccOffset;const _t=(N-b)/9e4;if(Ge!=null&&Ge.new&&(ie!==void 0?xt=t.ccOffset=Ge.start:al(t,r,_t)),_t){if(!e){re=new Error("Missing initPTS for VTT MPEGTS");return}xt=_t-t.presentationOffset}const Gt=_e.endTime-_e.startTime,Rt=bi((_e.startTime+xt-ie)*9e4,n*9e4)/9e4;_e.startTime=Math.max(Rt,0),_e.endTime=Math.max(Rt+Gt,0);const or=_e.text.trim();_e.text=decodeURIComponent(encodeURIComponent(or)),_e.id||(_e.id=oo(_e.startTime,_e.endTime,or)),_e.endTime>0&&p.push(_e)},u.onparsingerror=function(_e){re=_e},u.onflush=function(){if(re){s(re);return}i(p)},f.forEach(_e=>{if(ue)if(so(_e,"X-TIMESTAMP-MAP=")){ue=!1,_e.slice(16).split(",").forEach(Ge=>{so(Ge,"LOCAL:")?T=Ge.slice(6):so(Ge,"MPEGTS:")&&(N=parseInt(Ge.slice(7)))});try{ie=sl(T)/1e3}catch(Ge){re=Ge}return}else _e===""&&(ue=!1);u.parse(_e+`
|
|
|
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ao=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function Co(o,e,t,r){const n=ke(new Uint8Array(o),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=n.map(u=>Dt(u)),s=Ja(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((T,N)=>(T[N]=n.getAttribute(`ttp:${N}`)||i[N],T),{}),u=n.getAttribute("xml:space")!=="preserve",f=To(uo(n,"styling","style")),p=To(uo(n,"layout","region")),b=uo(n,"body","[begin]");return[].map.call(b,T=>{const N=Do(T,u);if(!N||!T.hasAttribute("begin"))return null;const ie=ho(T.getAttribute("begin"),s),re=ho(T.getAttribute("dur"),s);let ue=ho(T.getAttribute("end"),s);if(ie===null)throw Ro(T);if(ue===null){if(re===null)throw Ro(T);ue=ie+re}const _e=new no(ie-e,ue-e,N);_e.id=oo(_e.startTime,_e.endTime,_e.text);const Ge=p[T.getAttribute("region")],xt=f[T.getAttribute("style")],_t=cl(Ge,xt,f),{textAlign:Gt}=_t;if(Gt){const Rt=ll[Gt];Rt&&(_e.lineAlign=Rt),_e.align=Gt}return a(_e,_t),_e}).filter(T=>T!==null)}function uo(o,e,t){const r=o.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function To(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 p=co(e,r,f)||co(o,r,f)||co(n,r,f);return p&&(u[f]=p),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=dl(o,e):Ao.test(o)&&(t=hl(o,e))),t}function dl(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 hl(o,e){const t=Ao.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=ko(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new 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],p=ml(f[0],f[1],t,r);if(p>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],r),s=!0,p/(r-t)>.5))return}if(s||i.push([t,r]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,r,n)}else{const u=this.Cues.newCue(null,t,r,n);this.hls.trigger(c.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){const{unparsedVttFrags:s}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:n,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(c.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let n=0;n<r.textTracks.length;n++){const i=r.textTracks[n];if(Lo(i,{name:e,lang:t,attrs:{}}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,media:n}=this,{label:i,languageCode:s}=t[e],u=this.getExistingTrack(i,s);if(u)r[e]=u,Ar(r[e]),cn(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=>{Ar(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ko(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let r=0;r<t.length;r++)Ar(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(rn(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,u=s?Zr(s.textTracks):null;if(this.tracks.forEach((f,p)=>{let b;if(u){let T=null;for(let N=0;N<u.length;N++)if(u[N]&&Lo(u[N],f)){T=u[N],u[N]=null;break}T&&(b=T)}if(b)Ar(b);else{const T=Io(f);b=this.createTextTrack(T,f.name,f.lang),b&&(b.mode="disabled")}b&&this.textTracks.push(b)}),u!=null&&u.length){const f=u.filter(p=>p!==null).map(p=>p.label);f.length&&x.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===Ye.MAIN){var r,n;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:p}=t.frag,b=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;i&&s&&(p!==u+1||p===u&&b!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=p,this.lastPartIndex=b}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===Ye.SUBTITLE)if(n.byteLength){const i=r.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[r.level],f=this.vttCCs;f[r.cc]||(f[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),u&&u.textCodec===lo?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;Co(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{x.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,p=(t=r.initSegment)!=null&&t.data?pt(r.initSegment.data,new Uint8Array(n)):n;ol(p,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 T=b.message==="Missing initPTS for VTT MPEGTS";T?s.push(e):this._fallbackToIMSC1(r,n),x.log(`Failed to parse VTT cue: ${b}`),!(T&&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||Co(t,this.initPTS[e.cc],()=>{r.textCodec=lo,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||n.mode==="disabled")return;e.forEach(i=>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===Ye.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===Ye.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const p=this.extractCea608Data(f);r.addData(s[u].pts,p[0]),n.addData(s[u].pts,p[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=>Cr(u[f],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>Cr(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 Lo(o,e){return!!o&&o.kind===Io(e)&&Ln(e,o)}function ml(o,e,t,r){return Math.min(e,r)-Math.max(o,t)}function ko(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class fo{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&P(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&&x.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const r=t.filter((n,i)=>this.isLevelAllowed(n)&&i<=e);return this.clientRect=null,fo.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const n=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,r);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&n(f,e[u+1])){i=u;break}}return i}}class pl{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,r){const n=performance.now();if(t){if(this.lastTime){const i=n-this.lastTime,s=r-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,p=this.hls;if(p.trigger(c.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:r}),f>0&&s>p.config.fpsDroppedMonitoringThreshold*u){let b=p.currentLevel;x.warn("drop FPS ratio greater than max allowed value for currentLevel: "+b),b>0&&(p.autoLevelCapping===-1||p.autoLevelCapping>=b)&&(b=b-1,p.trigger(c.FPS_DROP_LEVEL_CAPPING,{level:b,droppedLevel:p.currentLevel}),p.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 za="[eme]";class Ys{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ys.CDMCleanupPromise?[Ys.CDMCleanupPromise]:[],this.debug=x.debug.bind(x,za),this.log=x.log.bind(x,za),this.warn=x.warn.bind(x,za),this.error=x.error.bind(x,za),this.onMediaEncrypted=t=>{const{initDataType:r,initData:n}=t,i=`"${t.type}" event: init data type: "${r}"`;if(this.debug(i),n!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Yt(this.config));const u=s.map(Ut).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=qe(s);let f,p;if(r==="sinf"){if(u!==Ue.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const re=It(new Uint8Array(n));try{const ue=g(JSON.parse(re).sinf),_e=Pt(ue);if(!_e)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=_e.subarray(8,24),p=Ue.FAIRPLAY}catch(ue){this.warn(`${i} Failed to parse sinf: ${ue}`);return}}else{if(u!==Ue.WIDEVINE&&u!==Ue.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const re=Wt(n),ue=re.filter(Ge=>!!Ge.systemId&<(Ge.systemId)===u);ue.length>1&&this.warn(`${i} Using first of ${ue.length} pssh found for selected key-system ${u}`);const _e=ue[0];if(!_e){re.length===0||re.some(Ge=>!Ge.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${re.map(Ge=>lt(Ge.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(p=lt(_e.systemId),_e.version===0&&_e.data)if(p===Ue.WIDEVINE){const Ge=_e.data.length-22;f=_e.data.subarray(Ge,Ge+16)}else p===Ue.PLAYREADY&&(f=Xt(_e.data))}if(!p||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const b=Ke.hexDump(f),{keyIdToKeySessionPromise:T,mediaKeySessions:N}=this;let ie=T[b];for(let re=0;re<N.length;re++){const ue=N[re],_e=ue.decryptdata;if(!_e.keyId)continue;const Ge=Ke.hexDump(_e.keyId);if(b===Ge||_e.uri.replace(/-/g,"").indexOf(b)!==-1){if(ie=T[Ge],_e.pssh)break;delete T[Ge],_e.pssh=new Uint8Array(n),_e.keyId=f,ie=T[b]=ie.then(()=>this.generateRequestWithPreferredKeySession(ue,r,n,"encrypted-event-key-match")),ie.catch(xt=>this.handleError(xt));break}}if(!ie){if(p!==u){this.log(`Ignoring "${i}" with ${p} init data for selected key-system ${u}`);return}ie=T[b]=this.getKeySystemSelectionPromise([p]).then(({keySystem:re,mediaKeys:ue})=>{var _e;this.throwIfDestroyed();const Ge=new er("ISO-23001-7",b,(_e=Ut(re))!=null?_e:"");return Ge.pssh=new Uint8Array(n),Ge.keyId=f,this.attemptSetMediaKeys(re,ue).then(()=>{this.throwIfDestroyed();const xt=this.createMediaKeySessionContext({decryptdata:Ge,keySystem:re,mediaKeys:ue});return this.generateRequestWithPreferredKeySession(xt,r,n,"encrypted-event-no-match")})}),ie.catch(re=>this.handleError(re))}})}},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===Ue.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=p=>{const b=p.shift();this.getMediaKeysPromise(b,n,i).then(T=>s({keySystem:b,mediaKeys:T})).catch(T=>{p.length?f(p):T instanceof Pi?u(T):u(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_NO_ACCESS,error:T,fatal:!0},T.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let n=`Configured requestMediaKeySystemAccess is not a function ${r}`;return sr===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=Bt(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 p=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(b=>(this.log(`Media-keys created for "${e}"`),p.then(T=>T?this.setMediaKeysServerCertificate(b,e,T):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=Yt(this.config),i=e.map(qe).filter(s=>!!s&&n.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=Ut(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:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=qe(e.keyFormat),i=n?[n]:Yt(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Yt(this.config)),e.length===0)throw new Pi({type:w.KEY_SYSTEM_ERROR,details:E.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 re=u.call(this.hls,t,r,e);if(!re)throw new Error("Invalid response from configured generateRequest filter");t=re.initDataType,r=e.decryptdata.pssh=re.initData?new Uint8Array(re.initData):null}catch(re){var f;if(this.warn(re.message),(f=this.hls)!=null&&f.config.debug)throw re}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const p=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${p} (init data type: ${t} length: ${r?r.byteLength:null})`);const b=new hr,T=e._onmessage=re=>{const ue=e.mediaKeysSession;if(!ue){b.emit("error",new Error("invalid state"));return}const{messageType:_e,message:Ge}=re;this.log(`"${_e}" message event for session "${ue.sessionId}" message size: ${Ge.byteLength}`),_e==="license-request"||_e==="license-renewal"?this.renewLicense(e,Ge).catch(xt=>{this.handleError(xt),b.emit("error",xt)}):_e==="license-release"?e.keySystem===Ue.FAIRPLAY&&(this.updateKeySession(e,Pe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${_e}"`)},N=e._onkeystatuseschange=re=>{if(!e.mediaKeysSession){b.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const _e=e.keyStatus;b.emit("keyStatus",_e),_e==="expired"&&(this.warn(`${e.keySystem} expired for key ${p}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",T),e.mediaKeysSession.addEventListener("keystatuseschange",N);const ie=new Promise((re,ue)=>{b.on("error",ue),b.on("keyStatus",_e=>{_e.startsWith("usable")?re():_e==="output-restricted"?ue(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):_e==="internal-error"?ue(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${_e}"`)):_e==="expired"?ue(new Error("key expired while generating request")):this.warn(`unhandled key status change "${_e}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var re;this.log(`Request generated for key-session "${(re=e.mediaKeysSession)==null?void 0:re.sessionId}" keyId: ${p}`)}).catch(re=>{throw new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_NO_SESSION,error:re,fatal:!1},`Error generating key-session request: ${re}`)}).then(()=>ie).catch(re=>{throw b.removeAllListeners(),this.removeSession(e),re}).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},p=t.certLoadPolicy.default,b={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},T={onSuccess:(N,ie,re,ue)=>{s(N.data)},onError:(N,ie,re,ue)=>{u(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:re,response:ne({url:f.url,data:void 0},N)},`"${e}" certificate request failed (${i}). Status: ${N.code} (${N.text})`))},onTimeout:(N,ie,re)=>{u(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:re,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(N,ie,re)=>{u(new Error("aborted"))}};n.load(f,b,T)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((n,i)=>{e.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),n(e)}).catch(s=>{i(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.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:w.KEY_SYSTEM_ERROR,details:E.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 T=0,N=i.length;T<N;T++){var s,u;b=i[T];const ie=(s=b.querySelector("name"))==null?void 0:s.textContent,re=(u=b.querySelector("value"))==null?void 0:u.textContent;ie&&re&&e.setRequestHeader(ie,re)}}const f=n.querySelector("Challenge"),p=f==null?void 0:f.textContent;if(!p)throw new Error("Cannot find <Challenge> in key message");return Pe(atob(p))}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 p=this.config.licenseResponseCallback;if(p)try{f=p.call(this.hls,u,s,e)}catch(b){this.error(b)}n(f)}else{const f=r.errorRetry,p=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p||u.status>=400&&u.status<500)i(new Pi({type:w.KEY_SYSTEM_ERROR,details:E.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=p-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:p})=>{e.keySystem==Ue.PLAYREADY&&(p=this.unpackPlayReadyKeyMessage(f,p)),f.send(p)})})}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={},er.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 xi;(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"})(xi||(xi={}));var mo;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(mo||(mo={}));var Cs;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(Cs||(Cs={}));const gl={[Cs.OBJECT]:["br","d","ot","tb"],[Cs.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Cs.SESSION]:["cid","pr","sf","sid","st","v"],[Cs.STATUS]:["bs","rtp"]};class Xs{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof Xs?r:new Xs(r))),this.value=e,this.params=t}}class Oo{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function yl(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 _l(o,e,t,r){return new Error(`failed to ${o} "${yl(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 Al=/[\x00-\x1f\x7f]+/,Cl="Token",Tl="Key";function Zi(o,e,t){return _l("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 Fo(o){if(Sl(o))throw Zi(o,wl);return o.toString()}function Ll(o){return`@${Fo(o.getTime()/1e3)}`}function Mo(o,e){if(o<0)return-Mo(-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 kl(o){const e=Mo(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(Al.test(o))throw Zi(o,Ol);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Fl(o){return o.description||o.toString().slice(7,-1)}function Bo(o){const e=Fl(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Zi(e,Cl);return e}function po(o){switch(typeof o){case"number":if(!P(o))throw Zi(o,Po);return Number.isInteger(o)?Fo(o):kl(o);case"string":return Pl(o);case"symbol":return Bo(o);case"boolean":return Dl(o);case"object":if(o instanceof Date)return Ll(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,Tl);return o}function vo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${po(t)}`).join("")}function No(o){return o instanceof Xs?`${po(o.value)}${vo(o.params)}`:po(o)}function Ml(o){return`(${o.value.map(No).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+=Ml(i):s+=No(i)),s}).join(`,${r}`)}function Nl(o,e){return Bl(o,e)}const zl=o=>o==="ot"||o==="sf"||o==="st",Ul=o=>typeof o=="number"?P(o):o!=null&&o!==""&&o!==!1;function $l(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 jl(){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 Ua=o=>Math.round(o),Hl=(o,e)=>(e!=null&&e.baseUrl&&(o=$l(o,e.baseUrl)),encodeURIComponent(o)),$a=o=>Ua(o/100)*100,Wl={br:Ua,d:Ua,bl:$a,dl:$a,mtp:$a,nor:Hl,rtp:$a,tb:Ua};function Kl(o,e){const t={};if(o==null||typeof o!="object")return t;const r=Object.keys(o).sort(),n=a({},Wl,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||Ul(u)&&(zl(s)&&typeof u=="string"&&(u=new Oo(u)),t[s]=u))}),t}function zo(o,e={}){return o?Nl(Kl(o,e),a({whitespace:!1},e)):""}function Gl(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[p,b]=s,T=((u=r.find(N=>N[1].includes(p)))==null?void 0:u[0])||Cs.REQUEST;return(f=i[T])!=null||(i[T]={}),i[T][p]=b,i},{});return Object.entries(n).reduce((i,[s,u])=>(i[s]=zo(u,e),i),{})}function Vl(o,e,t){return a(o,Gl(e,t))}const Zl="CMCD";function Yl(o,e={}){if(!o)return"";const t=zo(o,e);return`${Zl}=${encodeURIComponent(t)}`}const Uo=/CMCD=[^&#]+/;function Xl(o,e,t){const r=Yl(e,t);if(!r)return o;if(Uo.test(o))return o.replace(Uo,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:xi.MANIFEST,su:!this.initialized})}catch(i){x.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===xi.VIDEO||u===xi.AUDIO||u==xi.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(n,f)}catch(i){x.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||jl(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHED,this.onMediaDetached,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHED,this.onMediaDetached,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var r,n;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(n=t.tracks.video)==null?void 0:n.buffer}createData(){var e;return{v:1,sf:mo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){a(t,this.createData());const r=t.ot===xi.INIT||t.ot===xi.VIDEO||t.ot===xi.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 xi.TIMED_TEXT;if(e.sn==="initSegment")return xi.INIT;if(t==="audio")return xi.AUDIO;if(t==="main")return this.hls.audioTracks.length?xi.VIDEO:xi.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===xi.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===xi.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Tn.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}}const Jl=3e5;class ql{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=x.log.bind(x,"[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)===Sr.SendAlternateToPenaltyBox&&r.flags===mn.MoveAllAlternatesMatchingHost){const n=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:p}=t.context;u&&n?s=this.getPathwayForGroupId(u,p,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||x.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${n&&n.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach(i=>{n-r[i]>Jl&&delete r[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in r)continue;if(s===this.pathwayId)return;const u=this.hls.nextLoadLevel,f=this.hls.levels[u];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,In(t),this.hls.trigger(c.LEVELS_UPDATED,{levels:t});const p=this.hls.levels[u];f&&p&&this.levels&&(p.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&p.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${p.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===br.AUDIO_TRACK&&n[i].hasAudioGroup(e)||t===br.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 p=this.getLevelsForPathway(u).map(b=>{const T=new q(b.attrs);T["PATHWAY-ID"]=s;const N=T.AUDIO&&`${T.AUDIO}_clone_${s}`,ie=T.SUBTITLES&&`${T.SUBTITLES}_clone_${s}`;N&&(r[T.AUDIO]=N,T.AUDIO=N),ie&&(n[T.SUBTITLES]=ie,T.SUBTITLES=ie);const re=jo(b.uri,T["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),ue=new $n({attrs:T,audioCodec:b.audioCodec,bitrate:b.bitrate,height:b.height,name:b.name,url:re,videoCodec:b.videoCodec,width:b.width});if(b.audioGroups)for(let _e=1;_e<b.audioGroups.length;_e++)ue.addGroupId("audio",`${b.audioGroups[_e]}_clone_${s}`);if(b.subtitleGroups)for(let _e=1;_e<b.subtitleGroups.length;_e++)ue.addGroupId("text",`${b.subtitleGroups[_e]}_clone_${s}`);return ue});t.push(...p),$o(this.audioTracks,r,f,s),$o(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},p={onSuccess:(b,T,N,ie)=>{this.log(`Loaded steering manifest: "${n}"`);const re=b.data;if(re.VERSION!==1){this.log(`Steering VERSION ${re.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=re.TTL;const{"RELOAD-URI":ue,"PATHWAY-CLONES":_e,"PATHWAY-PRIORITY":Ge}=re;if(ue)try{this.uri=new self.URL(ue,n).href}catch(_t){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${ue}`);return}this.scheduleRefresh(this.uri||N.url),_e&&this.clonePathways(_e);const xt={steeringManifest:re,url:n.toString()};this.hls.trigger(c.STEERING_MANIFEST_LOADED,xt),Ge&&this.updatePathwayPriority(Ge)},onError:(b,T,N,ie)=>{if(this.log(`Error loading steering manifest: ${b.code} ${b.text} (${T.url})`),this.stopLoad(),b.code===410){this.enabled=!1,this.log(`Steering manifest ${T.url} no longer available`);return}let re=this.timeToLoad*1e3;if(b.code===429){const ue=this.loader;if(typeof(ue==null?void 0:ue.getResponseHeader)=="function"){const _e=ue.getResponseHeader("Retry-After");_e&&(re=parseFloat(_e)*1e3)}this.log(`Steering manifest ${T.url} rate limited`);return}this.scheduleRefresh(this.uri||T.url,re)},onTimeout:(b,T,N)=>{this.log(`Timeout loading steering manifest (${T.url})`),this.scheduleRefresh(this.uri||T.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(i,f,p)}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 $o(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 q(u.attrs),u.url=u.attrs.URI=jo(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[n],u.attrs["PATHWAY-ID"]=r,u});o.push(...i)})}function jo(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(p=>{p&&f.searchParams.set(p,i[p])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class Ho{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Be,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&&P(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const n=t.readyState,i=this.config;if(!r.aborted&&n>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),n===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const s=t.status,u=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const T=u!=null?u:t.response;if(T!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const N=t.responseType==="arraybuffer"?T.byteLength:T.length;if(r.loaded=r.total=N,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const ie=this.callbacks.onProgress;if(ie&&ie(r,e,T,t),!this.callbacks)return;const re={url:t.responseURL,data:T,code:s};this.callbacks.onSuccess(re,r,e,t);return}}const f=i.loadPolicy.errorRetry,p=r.retry,b={url:e.url,data:void 0,code:s};Hn(f,p,!1,b)?this.retry(f):(x.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(Hn(e,t,!0))this.retry(e);else{var r;x.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=ni(e,r.retry),r.retry++,x.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 Wo{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 Be}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:p,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=p&&P(p)?p:b,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},t.timeout),self.fetch(this.request).then(T=>{this.response=this.loader=T;const N=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-(N-n.loading.start)),!T.ok){const{status:ie,statusText:re}=T;throw new ou(re||"fetch, bad network response",ie,T)}return n.loading.first=N,n.total=su(T.headers)||n.total,s&&P(t.highWaterMark)?this.loadProgressively(T,n,e,t.highWaterMark,s):u?T.arrayBuffer():e.responseType==="json"?T.json():T.text()}).then(T=>{const N=this.response;if(!N)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const ie=T[f];ie&&(n.loaded=n.total=ie);const re={url:N.url,data:T,code:N.status};s&&!P(t.highWaterMark)&&s(n,e,T,N),r.onSuccess(re,n,e,N)}).catch(T=>{if(self.clearTimeout(this.requestTimeout),n.aborted)return;const N=T&&T.code||0,ie=T?T.message:null;r.onError({code:N,text:ie},e,T?T.details:null,n)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,r,n=0,i){const s=new ta,u=e.body.getReader(),f=()=>u.read().then(p=>{if(p.done)return s.dataLength&&i(t,r,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const b=p.value,T=b.length;return t.loaded+=T,T<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(P(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,p;const b=self.VTTCue||self.TextTrackCue;for(let N=0;N<r.rows.length;N++)if(i=r.rows[N],u=!0,f=0,p="",!i.isEmpty()){var T;for(let ue=0;ue<i.chars.length;ue++)lu.test(i.chars[ue].uchar)&&u?f++:(p+=i.chars[ue].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const ie=wo(p.trim()),re=oo(e,t,ie);o!=null&&(T=o.cues)!=null&&T.getCueById(re)||(s=new b(e,t,ie),s.id=re,s.line=N+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((N,ie)=>N.line==="auto"||ie.line==="auto"?0:N.line>8&&ie.line>8?ie.line-N.line:N.line-ie.line),n.forEach(N=>En(o,N))),n}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Ko=ne(ne({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Ho,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ss,bufferController:Ti,capLevelController:fo,errorController:zn,fpsController:pl,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:sr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},du()),{},{subtitleStreamController:jn,subtitleTrackController:mi,timelineController:fl,audioStreamController:qr,audioTrackController:kn,emeController:Ys,cmcdController:Ql,contentSteeringController:ql});function du(){return{cueHandler:uu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function hu(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=yo(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(p=>{const b=`${i}Loading${p}`,T=e[b];if(T!==void 0&&u){f.push(b);const N=t[s].default;switch(e[s]={default:N},p){case"TimeOut":N.maxLoadTimeMs=T,N.maxTimeToFirstByteMs=T;break;case"MaxRetry":N.errorRetry.maxNumRetry=T,N.timeoutRetry.maxNumRetry=T;break;case"RetryDelay":N.errorRetry.retryDelayMs=T,N.timeoutRetry.retryDelayMs=T;break;case"MaxRetryTimeout":N.errorRetry.maxRetryDelayMs=T,N.timeoutRetry.maxRetryDelayMs=T;break}}}),f.length&&x.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),ne(ne({},t),e)}function yo(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(yo):Object.keys(o).reduce((e,t)=>(e[t]=yo(o[t]),e),{}):o}function fu(o){const e=o.loader;e!==Wo&&e!==Ho?(x.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=Wo,o.progressive=!0,o.enableSoftwareAES=!0,x.log("[config]: Progressive streaming enabled, using FetchLoader"))}let _o;class mu extends yn{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,p=!1;t.levels.forEach(b=>{var T,N;const ie=b.attrs;let{audioCodec:re,videoCodec:ue}=b;((T=re)==null?void 0:T.indexOf("mp4a.40.34"))!==-1&&(_o||(_o=/chrome|firefox/i.test(navigator.userAgent)),_o&&(b.audioCodec=re=void 0)),re&&(b.audioCodec=re=cr(re,r)),((N=ue)==null?void 0:N.indexOf("avc1"))===0&&(ue=b.videoCodec=Er(ue));const{width:_e,height:Ge,unknownCodecs:xt}=b;if(u||(u=!!(_e&&Ge)),f||(f=!!ue),p||(p=!!re),xt!=null&&xt.length||re&&!Se(re,"audio",r)||ue&&!Se(ue,"video",r))return;const{CODECS:_t,"FRAME-RATE":Gt,"HDCP-LEVEL":Rt,"PATHWAY-ID":or,RESOLUTION:jt,"VIDEO-RANGE":mr}=ie,nr=`${`${or||"."}-`}${b.bitrate}-${jt}-${Gt}-${_t}-${mr}-${Rt}`;if(i[nr])if(i[nr].uri!==b.url&&!b.attrs["PATHWAY-ID"]){const pr=s[nr]+=1;b.attrs["PATHWAY-ID"]=new Array(pr+1).join(".");const on=new $n(b);i[nr]=on,n.push(on)}else i[nr].addGroupId("audio",ie.AUDIO),i[nr].addGroupId("text",ie.SUBTITLES);else{const pr=new $n(b);i[nr]=pr,s[nr]=1,n.push(pr)}}),this.filterAndSortMediaOptions(n,t,u,f,p)}filterAndSortMediaOptions(e,t,r,n,i){let s=[],u=[],f=e;if((r||n)&&i&&(f=f.filter(({videoCodec:re,videoRange:ue,width:_e,height:Ge})=>(!!re||!!(_e&&Ge))&&bn(ue))),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 re=new Error("no level with compatible codecs found in manifest");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:re,reason:re.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:re}=this.hls.config;s=t.audioTracks.filter(ue=>!ue.audioCodec||Se(ue.audioCodec,"audio",re)),Go(s)}t.subtitles&&(u=t.subtitles,Go(u));const p=f.slice(0);f.sort((re,ue)=>{if(re.attrs["HDCP-LEVEL"]!==ue.attrs["HDCP-LEVEL"])return(re.attrs["HDCP-LEVEL"]||"")>(ue.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&re.height!==ue.height)return re.height-ue.height;if(re.frameRate!==ue.frameRate)return re.frameRate-ue.frameRate;if(re.videoRange!==ue.videoRange)return Nn.indexOf(re.videoRange)-Nn.indexOf(ue.videoRange);if(re.videoCodec!==ue.videoCodec){const _e=bt(re.videoCodec),Ge=bt(ue.videoCodec);if(_e!==Ge)return Ge-_e}if(re.uri===ue.uri&&re.codecSet!==ue.codecSet){const _e=mt(re.codecSet),Ge=mt(ue.codecSet);if(_e!==Ge)return Ge-_e}return re.averageBitrate!==ue.averageBitrate?re.averageBitrate-ue.averageBitrate:0});let b=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let re=0;re<p.length;re++)if(p[re].pathwayId===f[0].pathwayId){b=p[re];break}}this._levels=f;for(let re=0;re<f.length;re++)if(f[re]===b){var T;this._firstLevel=re;const ue=b.bitrate,_e=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${ue}`),((T=this.hls.userConfig)==null?void 0:T.abrEwmaDefaultEstimate)===void 0){const Ge=Math.min(ue,this.hls.config.abrEwmaDefaultEstimateMax);Ge>_e&&_e===Ko.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ge)}break}const N=i&&!n,ie={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!N&&s.some(re=>!!re.url)};this.hls.trigger(c.MANIFEST_PARSED,ie),(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"),T=e<0;if(this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:E.LEVEL_SWITCH_ERROR,level:e,fatal:T,error:b,reason:b.message}),T)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,n=this.currentLevel,i=n?n.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,r===e&&s.details&&n&&i===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${r}${i?" with Pathway "+i:""}`);const f={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(c.LEVEL_SWITCHING,f);const p=s.details;if(!p||p.live){const b=this.switchParams(s.uri,n==null?void 0:n.details,p);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===br.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ye.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));In(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 Go(o){const e={};o.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class pu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[r].loader;if(n){var t;if(e&&e!==((t=n.context)==null?void 0:t.frag.type))return;n.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=E.KEY_LOAD_ERROR,r,n,i){return new Wn({type:w.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:r,networkDetails:n})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:n}=e;for(let i=0;i<t.length;i++){const s=t[i];if(n<=s.cc&&(r==="initSegment"||s.sn==="initSegment"||r<s.sn)){this.emeController.selectKeySystemFormat(s).then(u=>{s.setKeyFormat(u)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var r,n;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const p=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,E.KEY_LOAD_ERROR,p))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,E.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(p=>(i.key=p.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,E.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},p=r.keyLoadPolicy.default,b={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},T={onSuccess:(N,ie,re,ue)=>{const{frag:_e,keyInfo:Ge,url:xt}=re;if(!_e.decryptdata||Ge!==this.keyUriToKeyInfo[xt])return u(this.createKeyLoadError(_e,E.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),ue));Ge.decryptdata.key=_e.decryptdata.key=new Uint8Array(N.data),_e.keyLoader=null,Ge.loader=null,s({frag:_e,keyInfo:Ge})},onError:(N,ie,re,ue)=>{this.resetLoader(ie),u(this.createKeyLoadError(t,E.KEY_LOAD_ERROR,new Error(`HTTP Error ${N.code} loading key ${N.text}`),re,ne({url:f.url,data:void 0},N)))},onTimeout:(N,ie,re)=>{this.resetLoader(ie),u(this.createKeyLoadError(t,E.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),re))},onAbort:(N,ie,re)=>{this.resetLoader(ie),u(this.createKeyLoadError(t,E.INTERNAL_ABORTED,new Error("key loading aborted"),re))}};i.load(f,b,T)})}resetLoader(e){const{frag:t,keyInfo:r,url:n}=e,i=r.loader;t.keyLoader===i&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()}}function Vo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Zo(){if(!yt())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=yt();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(rt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(rt(e,"audio"))))}function vu(){var o;const e=Vo();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const yu=250,ja=2,_u=.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,p=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const _e=self.performance.now()-i;x.warn(`playback not stuck anymore @${s}, after ${Math.round(_e)}ms`),this.stallReported=!1}this.stalled=null}return}if(p||f){this.stalled=null;return}if(n.paused&&!u||n.ended||n.playbackRate===0||!Tn.getBuffered(n).length){this.nudgeRetry=0;return}const b=Tn.bufferInfo(n,s,0),T=b.nextStart||0;if(u){const _e=b.len>ja,Ge=!T||t&&t.start<=s||T-s>ja&&!this.fragmentTracker.getPartialFragment(s);if(_e||Ge)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var N;if(!(b.len>0)&&!T)return;const Ge=Math.max(T,b.start||0)-s,xt=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Gt=(xt==null||(N=xt.details)==null?void 0:N.live)?xt.details.targetduration*2:ja,Rt=this.fragmentTracker.getPartialFragment(s);if(Ge>0&&(Ge<=Gt||Rt)){n.paused||this._trySkipBufferHole(Rt);return}}const ie=self.performance.now();if(i===null){this.stalled=ie;return}const re=ie-i;if(!u&&re>=yu&&(this._reportStall(b),!this.media))return;const ue=Tn.bufferInfo(n,s,r.maxBufferHole);this._tryFixBufferStall(ue,re)}_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&&(x.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)})`);x.warn(i.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.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=Tn.bufferInfo(n,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,p=s.len>0&&s.len<1&&n.readyState<3,b=u-i;if(b>0&&(f||p)){if(b>t.maxBufferHole){const{fragmentTracker:N}=this;let ie=!1;if(i===0){const re=N.getAppendedFrag(0,Ye.MAIN);re&&u<re.end&&(ie=!0)}if(!ie){const re=e||N.getAppendedFrag(i,Ye.MAIN);if(re){let ue=!1,_e=re.end;for(;_e<u;){const Ge=N.getPartialFragment(_e);if(Ge)_e+=Ge.duration;else{ue=!0;break}}if(ue)return 0}}}const T=Math.max(u+bu,i+_u);if(x.warn(`skipping hole, adjusting currentTime from ${i} to ${T}`),this.moved=!0,this.stalled=null,n.currentTime=T,e&&!e.gap){const N=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${T}`);r.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:N,reason:N.message,frag:e})}return T}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:n}=this;if(r===null)return;const i=r.currentTime;if(this.nudgeRetry++,n<e.nudgeMaxRetry){const s=i+(n+1)*e.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${i} to ${s}`);x.warn(u.message),r.currentTime=s,t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.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`);x.error(s.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:E.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends cs{constructor(e,t,r){super(e,t,r,"[stream-controller]",Ye.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=qt.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=qt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case qt.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=qt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=qt.IDLE;break}break}case qt.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=qt.IDLE}}break}this.state===qt.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 ue={};this.altAudio&&(ue.type="video"),this.hls.trigger(c.BUFFER_EOS,ue),this.state=qt.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 p=s.details;if(!p||this.state===qt.WAITING_LEVEL||p.live&&this.levelLastLoaded!==s){this.level=i,this.state=qt.WAITING_LEVEL;return}const b=u.len,T=this.getMaxBufferLength(s.maxBitrate);if(b>=T)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const N=this.backtrackFragment?this.backtrackFragment.start:u.end;let ie=this.getNextFragment(N,p);if(this.couldBacktrack&&!this.fragPrevious&&ie&&ie.sn!=="initSegment"&&this.fragmentTracker.getState(ie)!==Qn.OK){var re;const _e=((re=this.backtrackFragment)!=null?re:ie).sn-p.startSN,Ge=p.fragments[_e-1];Ge&&ie.cc===Ge.cc&&(ie=Ge,this.fragmentTracker.removeFragment(Ge))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(ie&&this.isLoopLoading(ie,N)){if(!ie.gap){const _e=this.audioOnly&&!this.altAudio?H.AUDIO:H.VIDEO,Ge=(_e===H.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ge&&this.afterBufferFlushed(Ge,_e,Ye.MAIN)}ie=this.getNextFragmentLoopLoading(ie,p,u,Ye.MAIN,T)}ie&&(ie.initSegment&&!ie.initSegment.data&&!this.bitrateTest&&(ie=ie.initSegment),this.loadFragment(ie,s,N))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===Qn.NOT_LOADED||n===Qn.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,Ye.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],p=this.fragLastKbps;p&&this.fragCurrent?r=this.fragCurrent.duration*f.maxBitrate/(1e3*p)+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,p=u.duration,b=Math.max(s.end,f+Math.min(Math.max(p-this.config.maxFragLookUpTolerance,p*(this.couldBacktrack?.5:.125)),p*(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 qt.KEY_LOADING:case qt.FRAG_LOADING:case qt.FRAG_LOADING_WAITING_RETRY:case qt.PARSING:case qt.PARSED:this.state=qt.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;P(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!==qt.IDLE)return;const n=r[t.level];(!n.details||n.details.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(n.details))&&(this.state=qt.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],p=this.fragCurrent;p&&(this.state===qt.FRAG_LOADING||this.state===qt.FRAG_LOADING_WAITING_RETRY)&&p.level!==t.level&&p.loader&&this.abortCurrentFrag();let b=0;if(s.live||(r=f.details)!=null&&r.live){var T;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;b=this.alignPlaylists(s,f.details,(T=this.levelLastLoaded)==null?void 0:T.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(c.LEVEL_UPDATED,{details:s,level:i}),this.state===qt.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=qt.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 p=u.videoCodec,b=f.PTSKnown||!f.live,T=(t=r.initSegment)==null?void 0:t.data,N=this._getAudioCodec(u),ie=this.transmuxer=this.transmuxer||new xr(this.hls,Ye.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),re=n?n.index:-1,ue=re!==-1,_e=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,re,ue),Ge=this.initPTS[r.cc];ie.push(i,T,N,p,r,n,f.totalduration,b,_e,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 p=r[u];p&&(this.videoBuffer=p.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!==Ye.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===qt.PARSED&&(this.state=qt.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=qt.ERROR;return}switch(t.details){case E.FRAG_GAP:case E.FRAG_PARSING_ERROR:case E.FRAG_DECRYPT_ERROR:case E.FRAG_LOAD_ERROR:case E.FRAG_LOAD_TIMEOUT:case E.KEY_LOAD_ERROR:case E.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.MAIN,t);break;case E.LEVEL_LOAD_ERROR:case E.LEVEL_LOAD_TIMEOUT:case E.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===qt.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===br.LEVEL&&(this.state=qt.IDLE);break;case E.BUFFER_APPEND_ERROR:case E.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===E.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case E.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Tn.getBuffered(e).length){const r=this.state!==qt.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=qt.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==H.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===H.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,Ye.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=Tn.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=qt.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:p,level:b}=u,{video:T,text:N,id3:ie,initSegment:re}=i,{details:ue}=b,_e=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=qt.PARSING,re){if(re!=null&&re.tracks){const _t=f.initSegment||f;this._bufferInitSegment(b,re.tracks,_t,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:_t,id:r,tracks:re.tracks})}const Ge=re.initPTS,xt=re.timescale;P(Ge)&&(this.initPTS[f.cc]={baseTime:Ge,timescale:xt},n.trigger(c.INIT_PTS_FOUND,{frag:f,id:r,initPTS:Ge,timescale:xt}))}if(T&&ue&&f.sn!=="initSegment"){const Ge=ue.fragments[f.sn-1-ue.startSN],xt=f.sn===ue.startSN,_t=!Ge||f.cc>Ge.cc;if(i.independent!==!1){const{startPTS:Gt,endPTS:Rt,startDTS:or,endDTS:jt}=T;if(p)p.elementaryStreams[T.type]={startPTS:Gt,endPTS:Rt,startDTS:or,endDTS:jt};else if(T.firstKeyFrame&&T.independent&&s.id===1&&!_t&&(this.couldBacktrack=!0),T.dropped&&T.independent){const mr=this.getMainFwdBufferInfo(),Dr=(mr?mr.end:this.getLoadPosition())+this.config.maxBufferHole,nr=T.firstKeyFramePTS?T.firstKeyFramePTS:Gt;if(!xt&&Dr<nr-this.config.maxBufferHole&&!_t){this.backtrack(f);return}else _t&&(f.gap=!0);f.setElementaryStreamInfo(T.type,f.start,Rt,f.start,jt,!0)}else xt&&Gt>ja&&(f.gap=!0);f.setElementaryStreamInfo(T.type,Gt,Rt,or,jt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(T,f,p,s,xt||_t)}else if(xt||_t)f.gap=!0;else{this.backtrack(f);return}}if(_e){const{startPTS:Ge,endPTS:xt,startDTS:_t,endDTS:Gt}=_e;p&&(p.elementaryStreams[H.AUDIO]={startPTS:Ge,endPTS:xt,startDTS:_t,endDTS:Gt}),f.setElementaryStreamInfo(H.AUDIO,Ge,xt,_t,Gt),this.bufferFragmentData(_e,f,p,s)}if(ue&&ie!=null&&(t=ie.samples)!=null&&t.length){const Ge={id:r,frag:f,details:ue,samples:ie.samples};n.trigger(c.FRAG_PARSING_METADATA,Ge)}if(ue&&N){const Ge={id:r,frag:f,details:ue,samples:N.samples};n.trigger(c.FRAG_PARSING_USERDATA,Ge)}}_bufferInitSegment(e,t,r,n){if(this.state!==qt.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 p=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&&p.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&p.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,Ye.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=qt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Tn.isBuffered(e,r)?t=this.getAppendedFrag(r):Tn.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&&P(t)&&P(r.programDateTime)){const n=r.programDateTime+(t-r.start)*1e3;return new Date(n)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Ts{static get version(){return"1.5.20"}static isMSESupported(){return Zo()}static isSupported(){return gu()}static getMediaSource(){return yt()}static get Events(){return c}static get ErrorTypes(){return w}static get ErrorDetails(){return E}static get DefaultConfig(){return Ts.defaultConfig?Ts.defaultConfig:Ko}static set DefaultConfig(e){Ts.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new hr,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ae(e.debug||!1,"Hls instance");const t=this.config=hu(Ts.DefaultConfig,e);this.userConfig=e,t.progressive&&fu(t);const{abrController:r,bufferController:n,capLevelController:i,errorController:s,fpsController:u}=t,f=new s(this),p=this.abrController=new r(this),b=this.bufferController=new n(this),T=this.capLevelController=new i(this),N=new u(this),ie=new Qr(this),re=new Fn(this),ue=t.contentSteeringController,_e=ue?new ue(this):null,Ge=this.levelController=new mu(this,_e),xt=new Xi(this),_t=new pu(this.config),Gt=this.streamController=new wu(this,xt,_t);T.setStreamController(Gt),N.setStreamController(Gt);const Rt=[ie,Ge,Gt];_e&&Rt.splice(1,0,_e),this.networkControllers=Rt;const or=[p,b,T,N,re,xt];this.audioTrackController=this.createController(t.audioTrackController,Rt);const jt=t.audioStreamController;jt&&Rt.push(new jt(this,xt,_t)),this.subtitleTrackController=this.createController(t.subtitleTrackController,Rt);const mr=t.subtitleStreamController;mr&&Rt.push(new mr(this,xt,_t)),this.createController(t.timelineController,or),_t.emeController=this.emeController=this.createController(t.emeController,or),this.cmcdController=this.createController(t.cmcdController,or),this.latencyController=this.createController(ci,or),this.coreComponents=or,Rt.push(f);const Dr=f.onErrorOut;typeof Dr=="function"&&this.on(c.ERROR,Dr,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(x.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const n=e===c.ERROR;this.trigger(c.ERROR,{type:w.OTHER_ERROR,details:E.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){x.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){x.log("attachMedia"),this._media=e,this.trigger(c.MEDIA_ATTACHING,{media:e})}detachMedia(){x.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=ge.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,x.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){x.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(){x.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){x.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){x.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){x.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){x.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){x.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){x.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){x.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){x.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){x.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&&(x.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Cn(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const r=e.length;for(let n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let n;if(t===-1&&e!=null&&e.length?n=e.length-1:n=t,r)for(let i=n;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=r)return i}return n}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ts.defaultConfig=void 0},16722:function(Qt,it,y){"use strict";y.d(it,{Z:function(){return ve}});const v=a=>typeof a=="object"&&a!=null&&a.nodeType===1,Y=(a,P)=>(!P||a!=="hidden")&&a!=="visible"&&a!=="clip",ge=(a,P)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const O=getComputedStyle(a,null);return Y(O.overflowY,P)||Y(O.overflowX,P)||(A=>{const c=(w=>{if(!w.ownerDocument||!w.ownerDocument.defaultView)return null;try{return w.ownerDocument.defaultView.frameElement}catch(E){return null}})(A);return!!c&&(c.clientHeight<A.scrollHeight||c.clientWidth<A.scrollWidth)})(a)}return!1},Ie=(a,P,O,A,c,w,E,V)=>w<a&&E>P||w>a&&E<P?0:w<=a&&V<=O||E>=P&&V>=O?w-a-A:E>P&&V<O||w<a&&V>O?E-P+c:0,ne=a=>{const P=a.parentElement;return P==null?a.getRootNode().host||null:P},se=(a,P)=>{var O,A,c,w;if(typeof document=="undefined")return[];const{scrollMode:E,block:V,inline:te,boundary:R,skipOverflowHiddenElements:k}=P,U=typeof R=="function"?R:Ne=>Ne!==R;if(!v(a))throw new TypeError("Invalid target");const ae=document.scrollingElement||document.documentElement,x=[];let z=a;for(;v(z)&&U(z);){if(z=ne(z),z===ae){x.push(z);break}z!=null&&z===document.body&&ge(z)&&!ge(document.documentElement)||z!=null&&ge(z,k)&&x.push(z)}const Q=(A=(O=window.visualViewport)==null?void 0:O.width)!=null?A:innerWidth,q=(w=(c=window.visualViewport)==null?void 0:c.height)!=null?w:innerHeight,{scrollX:ce,scrollY:xe}=window,{height:we,width:Be,top:H,right:L,bottom:Z,left:W}=a.getBoundingClientRect(),{top:le,right:J,bottom:g,left:S}=(Ne=>{const Ue=window.getComputedStyle(Ne);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(a);let K=V==="start"||V==="nearest"?H-le:V==="end"?Z+g:H+we/2-le+g,G=te==="center"?W+Be/2-S+J:te==="end"?L+J:W-S;const Pe=[];for(let Ne=0;Ne<x.length;Ne++){const Ue=x[Ne],{height:Ve,width:qe,top:tt,right:lt,bottom:Ut,left:Yt}=Ue.getBoundingClientRect();if(E==="if-needed"&&H>=0&&W>=0&&Z<=q&&L<=Q&&(Ue===ae&&!ge(Ue)||H>=tt&&Z<=Ut&&W>=Yt&&L<=lt))return Pe;const sr=getComputedStyle(Ue),Bt=parseInt(sr.borderLeftWidth,10),Ht=parseInt(sr.borderTopWidth,10),Xt=parseInt(sr.borderRightWidth,10),de=parseInt(sr.borderBottomWidth,10);let Ee=0,F=0;const fe="offsetWidth"in Ue?Ue.offsetWidth-Ue.clientWidth-Bt-Xt:0,Te="offsetHeight"in Ue?Ue.offsetHeight-Ue.clientHeight-Ht-de:0,I="offsetWidth"in Ue?Ue.offsetWidth===0?0:qe/Ue.offsetWidth:0,ee="offsetHeight"in Ue?Ue.offsetHeight===0?0:Ve/Ue.offsetHeight:0;if(ae===Ue)Ee=V==="start"?K:V==="end"?K-q:V==="nearest"?Ie(xe,xe+q,q,Ht,de,xe+K,xe+K+we,we):K-q/2,F=te==="start"?G:te==="center"?G-Q/2:te==="end"?G-Q:Ie(ce,ce+Q,Q,Bt,Xt,ce+G,ce+G+Be,Be),Ee=Math.max(0,Ee+xe),F=Math.max(0,F+ce);else{Ee=V==="start"?K-tt-Ht:V==="end"?K-Ut+de+Te:V==="nearest"?Ie(tt,Ut,Ve,Ht,de+Te,K,K+we,we):K-(tt+Ve/2)+Te/2,F=te==="start"?G-Yt-Bt:te==="center"?G-(Yt+qe/2)+fe/2:te==="end"?G-lt+Xt+fe:Ie(Yt,lt,qe,Bt,Xt+fe,G,G+Be,Be);const{scrollLeft:he,scrollTop:be}=Ue;Ee=ee===0?0:Math.max(0,Math.min(be+Ee/ee,Ue.scrollHeight-Ve/ee+Te)),F=I===0?0:Math.max(0,Math.min(he+F/I,Ue.scrollWidth-qe/I+fe)),K+=be-Ee,G+=he-F}Pe.push({el:Ue,top:Ee,left:F})}return Pe},ye=a=>a===!1?{block:"end",inline:"nearest"}:(P=>P===Object(P)&&Object.keys(P).length!==0)(a)?a:{block:"start",inline:"nearest"};function ve(a,P){if(!a.isConnected||!(c=>{let w=c;for(;w&&w.parentNode;){if(w.parentNode===document)return!0;w=w.parentNode instanceof ShadowRoot?w.parentNode.host:w.parentNode}return!1})(a))return;const O=(c=>{const w=window.getComputedStyle(c);return{top:parseFloat(w.scrollMarginTop)||0,right:parseFloat(w.scrollMarginRight)||0,bottom:parseFloat(w.scrollMarginBottom)||0,left:parseFloat(w.scrollMarginLeft)||0}})(a);if((c=>typeof c=="object"&&typeof c.behavior=="function")(P))return P.behavior(se(a,P));const A=typeof P=="boolean"||P==null?void 0:P.behavior;for(const{el:c,top:w,left:E}of se(a,ye(P))){const V=w-O.top+O.bottom,te=E-O.left+O.right;c.scroll({top:V,left:te,behavior:A})}}}}]);
|
|
|
}()); |