|
|
!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[1006],{70557:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},40001:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},84105:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},18785:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},73331:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},15277:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},52671:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},8657:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},56082:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},33853:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},15075:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},43531:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},61485:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},38819:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},47472:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(A,L){return Y.createElement(j.Z,(0,M.Z)({},A,{ref:L,icon:Ce}))},ve=Y.forwardRef(X),xe=ve},35593:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Et}});var M=p(44127),Y=p(72071),de=p(6620),Ce=p(43403),j=p(92310),X=p.n(j),ve=p(29301),xe=p(76846),s=p(96452),A=p(6089),L=p(80402),v=p(34280),u=p(49658),y=p(59301),b=p(96663),k=p(77900),ae=p(8654);function P(q){var ge=q.prefixCls,ne=q.align,z=q.arrow,De=q.arrowPos,O=z||{},oe=O.className,Q=O.content,le=De.x,ce=le===void 0?0:le,Ae=De.y,_e=Ae===void 0?0:Ae,Pe=y.useRef();if(!ne||!ne.points)return null;var Ie={position:"absolute"};if(ne.autoArrow!==!1){var Fe=ne.points[0],Qe=ne.points[1],et=Fe[0],Ye=Fe[1],ut=Qe[0],dt=Qe[1];et===ut||!["t","b"].includes(et)?Ie.top=_e:et==="t"?Ie.top=0:Ie.bottom=0,Ye===dt||!["l","r"].includes(Ye)?Ie.left=ce:Ye==="l"?Ie.left=0:Ie.right=0}return y.createElement("div",{ref:Pe,className:X()("".concat(ge,"-arrow"),oe),style:Ie},Q)}function N(q){var ge=q.prefixCls,ne=q.open,z=q.zIndex,De=q.mask,O=q.motion;return De?y.createElement(k.default,(0,b.Z)({},O,{motionAppear:!0,visible:ne,removeOnLeave:!0}),function(oe){var Q=oe.className;return y.createElement("div",{style:{zIndex:z},className:X()("".concat(ge,"-mask"),Q)})}):null}var G=y.memo(function(q){var ge=q.children;return ge},function(q,ge){return ge.cache}),U=G,x=y.forwardRef(function(q,ge){var ne=q.popup,z=q.className,De=q.prefixCls,O=q.style,oe=q.target,Q=q.onVisibleChanged,le=q.open,ce=q.keepDom,Ae=q.fresh,_e=q.onClick,Pe=q.mask,Ie=q.arrow,Fe=q.arrowPos,Qe=q.align,et=q.motion,Ye=q.maskMotion,ut=q.forceRender,dt=q.getPopupContainer,ot=q.autoDestroy,Ct=q.portal,Lt=q.zIndex,w=q.onMouseEnter,C=q.onMouseLeave,lt=q.onPointerEnter,ie=q.ready,Oe=q.offsetX,mn=q.offsetY,$e=q.offsetR,Ze=q.offsetB,tt=q.onAlign,ue=q.onPrepare,V=q.stretch,we=q.targetWidth,Ne=q.targetHeight,H=typeof ne=="function"?ne():ne,it=le||ce,Ee=(dt==null?void 0:dt.length)>0,Tt=y.useState(!dt||!Ee),Mt=(0,Y.Z)(Tt,2),Ut=Mt[0],dn=Mt[1];if((0,v.Z)(function(){!Ut&&Ee&&oe&&dn(!0)},[Ut,Ee,oe]),!Ut)return null;var wt="auto",Yt={left:"-1000vw",top:"-1000vh",right:wt,bottom:wt};if(ie||!le){var Ue,mt=Qe.points,xt=Qe.dynamicInset||((Ue=Qe._experimental)===null||Ue===void 0?void 0:Ue.dynamicInset),Me=xt&&mt[0][1]==="r",Te=xt&&mt[0][0]==="b";Me?(Yt.right=$e,Yt.left=wt):(Yt.left=Oe,Yt.right=wt),Te?(Yt.bottom=Ze,Yt.top=wt):(Yt.top=mn,Yt.bottom=wt)}var st={};return V&&(V.includes("height")&&Ne?st.height=Ne:V.includes("minHeight")&&Ne&&(st.minHeight=Ne),V.includes("width")&&we?st.width=we:V.includes("minWidth")&&we&&(st.minWidth=we)),le||(st.pointerEvents="none"),y.createElement(Ct,{open:ut||it,getContainer:dt&&function(){return dt(oe)},autoDestroy:ot},y.createElement(N,{prefixCls:De,open:le,zIndex:Lt,mask:Pe,motion:Ye}),y.createElement(ve.Z,{onResize:tt,disabled:!le},function(ct){return y.createElement(k.default,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ut,leavedClassName:"".concat(De,"-hidden")},et,{onAppearPrepare:ue,onEnterPrepare:ue,visible:le,onVisibleChanged:function(Ot){var $t;et==null||($t=et.onVisibleChanged)===null||$t===void 0||$t.call(et,Ot),Q(Ot)}}),function(kt,Ot){var $t=kt.className,Bt=kt.style,Xt=X()(De,$t,z);return y.createElement("div",{ref:(0,ae.sQ)(ct,ge,Ot),className:Xt,style:(0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)({"--arrow-x":"".concat(Fe.x||0,"px"),"--arrow-y":"".concat(Fe.y||0,"px")},Yt),st),Bt),{},{boxSizing:"border-box",zIndex:Lt},O),onMouseEnter:w,onMouseLeave:C,onPointerEnter:lt,onClick:_e},Ie&&y.createElement(P,{prefixCls:De,arrow:Ie,arrowPos:Fe,align:Qe}),y.createElement(U,{cache:!le&&!Ae},H))})}))}),T=x,B=y.forwardRef(function(q,ge){var ne=q.children,z=q.getTriggerDOMNode,De=(0,ae.Yr)(ne),O=y.useCallback(function(Q){(0,ae.mH)(ge,z?z(Q):Q)},[z]),oe=(0,ae.x1)(O,ne.ref);return De?y.cloneElement(ne,{ref:oe}):ne}),F=B,fe=y.createContext(null),be=fe;function Re(q){return q?Array.isArray(q)?q:[q]:[]}function he(q,ge,ne,z){return y.useMemo(function(){var De=Re(ne!=null?ne:ge),O=Re(z!=null?z:ge),oe=new Set(De),Q=new Set(O);return q&&(oe.has("hover")&&(oe.delete("hover"),oe.add("click")),Q.has("hover")&&(Q.delete("hover"),Q.add("click"))),[oe,Q]},[q,ge,ne,z])}var W=p(29194);function $(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=arguments.length>2?arguments[2]:void 0;return ne?q[0]===ge[0]:q[0]===ge[0]&&q[1]===ge[1]}function se(q,ge,ne,z){for(var De=ne.points,O=Object.keys(q),oe=0;oe<O.length;oe+=1){var Q,le=O[oe];if($((Q=q[le])===null||Q===void 0?void 0:Q.points,De,z))return"".concat(ge,"-placement-").concat(le)}return""}function D(q,ge,ne,z){return ge||(ne?{motionName:"".concat(q,"-").concat(ne)}:z?{motionName:z}:null)}function J(q){return q.ownerDocument.defaultView}function K(q){for(var ge=[],ne=q==null?void 0:q.parentElement,z=["hidden","scroll","clip","auto"];ne;){var De=J(ne).getComputedStyle(ne),O=De.overflowX,oe=De.overflowY,Q=De.overflow;[O,oe,Q].some(function(le){return z.includes(le)})&&ge.push(ne),ne=ne.parentElement}return ge}function g(q){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(q)?ge:q}function E(q){return g(parseFloat(q),0)}function Z(q,ge){var ne=(0,M.Z)({},q);return(ge||[]).forEach(function(z){if(!(z instanceof HTMLBodyElement||z instanceof HTMLHtmlElement)){var De=J(z).getComputedStyle(z),O=De.overflow,oe=De.overflowClipMargin,Q=De.borderTopWidth,le=De.borderBottomWidth,ce=De.borderLeftWidth,Ae=De.borderRightWidth,_e=z.getBoundingClientRect(),Pe=z.offsetHeight,Ie=z.clientHeight,Fe=z.offsetWidth,Qe=z.clientWidth,et=E(Q),Ye=E(le),ut=E(ce),dt=E(Ae),ot=g(Math.round(_e.width/Fe*1e3)/1e3),Ct=g(Math.round(_e.height/Pe*1e3)/1e3),Lt=(Fe-Qe-ut-dt)*ot,w=(Pe-Ie-et-Ye)*Ct,C=et*Ct,lt=Ye*Ct,ie=ut*ot,Oe=dt*ot,mn=0,$e=0;if(O==="clip"){var Ze=E(oe);mn=Ze*ot,$e=Ze*Ct}var tt=_e.x+ie-mn,ue=_e.y+C-$e,V=tt+_e.width+2*mn-ie-Oe-Lt,we=ue+_e.height+2*$e-C-lt-w;ne.left=Math.max(ne.left,tt),ne.top=Math.max(ne.top,ue),ne.right=Math.min(ne.right,V),ne.bottom=Math.min(ne.bottom,we)}}),ne}function pe(q){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ne="".concat(ge),z=ne.match(/^(.*)\%$/);return z?q*(parseFloat(z[1])/100):parseFloat(ne)}function ze(q,ge){var ne=ge||[],z=(0,Y.Z)(ne,2),De=z[0],O=z[1];return[pe(q.width,De),pe(q.height,O)]}function We(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[q[0],q[1]]}function je(q,ge){var ne=ge[0],z=ge[1],De,O;return ne==="t"?O=q.y:ne==="b"?O=q.y+q.height:O=q.y+q.height/2,z==="l"?De=q.x:z==="r"?De=q.x+q.width:De=q.x+q.width/2,{x:De,y:O}}function Ge(q,ge){var ne={t:"b",b:"t",l:"r",r:"l"};return q.map(function(z,De){return De===ge?ne[z]||"c":z}).join("")}function pt(q,ge,ne,z,De,O,oe){var Q=y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:De[z]||{}}),le=(0,Y.Z)(Q,2),ce=le[0],Ae=le[1],_e=y.useRef(0),Pe=y.useMemo(function(){return ge?K(ge):[]},[ge]),Ie=y.useRef({}),Fe=function(){Ie.current={}};q||Fe();var Qe=(0,A.Z)(function(){if(ge&&ne&&q){let xn=function(Xn,ur){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xt,Tr=H.x+Xn,Rr=H.y+ur,Mr=Tr+Ue,ui=Rr+Yt,Yr=Math.max(Tr,Pr.left),pi=Math.max(Rr,Pr.top),Bi=Math.min(Mr,Pr.right),bi=Math.min(ui,Pr.bottom);return Math.max(0,(Bi-Yr)*(bi-pi))},bn=function(){un=H.y+rn,On=un+Yt,Hn=H.x+cn,Gn=Hn+Ue};var ut,dt,ot=ge,Ct=ot.ownerDocument,Lt=J(ot),w=Lt.getComputedStyle(ot),C=w.width,lt=w.height,ie=w.position,Oe=ot.style.left,mn=ot.style.top,$e=ot.style.right,Ze=ot.style.bottom,tt=ot.style.overflow,ue=(0,M.Z)((0,M.Z)({},De[z]),O),V=Ct.createElement("div");(ut=ot.parentElement)===null||ut===void 0||ut.appendChild(V),V.style.left="".concat(ot.offsetLeft,"px"),V.style.top="".concat(ot.offsetTop,"px"),V.style.position=ie,V.style.height="".concat(ot.offsetHeight,"px"),V.style.width="".concat(ot.offsetWidth,"px"),ot.style.left="0",ot.style.top="0",ot.style.right="auto",ot.style.bottom="auto",ot.style.overflow="hidden";var we;if(Array.isArray(ne))we={x:ne[0],y:ne[1],width:0,height:0};else{var Ne=ne.getBoundingClientRect();we={x:Ne.x,y:Ne.y,width:Ne.width,height:Ne.height}}var H=ot.getBoundingClientRect(),it=Ct.documentElement,Ee=it.clientWidth,Tt=it.clientHeight,Mt=it.scrollWidth,Ut=it.scrollHeight,dn=it.scrollTop,wt=it.scrollLeft,Yt=H.height,Ue=H.width,mt=we.height,xt=we.width,Me={left:0,top:0,right:Ee,bottom:Tt},Te={left:-wt,top:-dn,right:Mt-wt,bottom:Ut-dn},st=ue.htmlRegion,ct="visible",kt="visibleFirst";st!=="scroll"&&st!==kt&&(st=ct);var Ot=st===kt,$t=Z(Te,Pe),Bt=Z(Me,Pe),Xt=st===ct?Bt:$t,hn=Ot?Bt:Xt;ot.style.left="auto",ot.style.top="auto",ot.style.right="0",ot.style.bottom="0";var Dt=ot.getBoundingClientRect();ot.style.left=Oe,ot.style.top=mn,ot.style.right=$e,ot.style.bottom=Ze,ot.style.overflow=tt,(dt=ot.parentElement)===null||dt===void 0||dt.removeChild(V);var yt=g(Math.round(Ue/parseFloat(C)*1e3)/1e3),Ht=g(Math.round(Yt/parseFloat(lt)*1e3)/1e3);if(yt===0||Ht===0||(0,xe.Sh)(ne)&&!(0,W.Z)(ne))return;var zt=ue.offset,Gt=ue.targetOffset,sn=ze(H,zt),Rn=(0,Y.Z)(sn,2),pn=Rn[0],Ft=Rn[1],Je=ze(we,Gt),nt=(0,Y.Z)(Je,2),vt=nt[0],bt=nt[1];we.x-=vt,we.y-=bt;var ft=ue.points||[],It=(0,Y.Z)(ft,2),_t=It[0],jt=It[1],an=We(jt),nn=We(_t),Sn=je(we,an),Ln=je(H,nn),Fn=(0,M.Z)({},ue),cn=Sn.x-Ln.x+pn,rn=Sn.y-Ln.y+Ft,$n=xn(cn,rn),An=xn(cn,rn,Bt),Wn=je(we,["t","l"]),Cn=je(H,["t","l"]),Nn=je(we,["b","r"]),zn=je(H,["b","r"]),Pn=ue.overflow||{},Yn=Pn.adjustX,or=Pn.adjustY,Tn=Pn.shiftX,tn=Pn.shiftY,Ke=function(ur){return typeof ur=="boolean"?ur:ur>=0},un,On,Hn,Gn;bn();var nr=Ke(or),rr=nn[0]===an[0];if(nr&&nn[0]==="t"&&(On>hn.bottom||Ie.current.bt)){var Un=rn;rr?Un-=Yt-mt:Un=Wn.y-zn.y-Ft;var qn=xn(cn,Un),yn=xn(cn,Un,Bt);qn>$n||qn===$n&&(!Ot||yn>=An)?(Ie.current.bt=!0,rn=Un,Ft=-Ft,Fn.points=[Ge(nn,0),Ge(an,0)]):Ie.current.bt=!1}if(nr&&nn[0]==="b"&&(un<hn.top||Ie.current.tb)){var ln=rn;rr?ln+=Yt-mt:ln=Nn.y-Cn.y-Ft;var Bn=xn(cn,ln),tr=xn(cn,ln,Bt);Bn>$n||Bn===$n&&(!Ot||tr>=An)?(Ie.current.tb=!0,rn=ln,Ft=-Ft,Fn.points=[Ge(nn,0),Ge(an,0)]):Ie.current.tb=!1}var lr=Ke(Yn),kr=nn[1]===an[1];if(lr&&nn[1]==="l"&&(Gn>hn.right||Ie.current.rl)){var En=cn;kr?En-=Ue-xt:En=Wn.x-zn.x-pn;var hr=xn(En,rn),dr=xn(En,rn,Bt);hr>$n||hr===$n&&(!Ot||dr>=An)?(Ie.current.rl=!0,cn=En,pn=-pn,Fn.points=[Ge(nn,1),Ge(an,1)]):Ie.current.rl=!1}if(lr&&nn[1]==="r"&&(Hn<hn.left||Ie.current.lr)){var mr=cn;kr?mr+=Ue-xt:mr=Nn.x-Cn.x-pn;var Fr=xn(mr,rn),Ur=xn(mr,rn,Bt);Fr>$n||Fr===$n&&(!Ot||Ur>=An)?(Ie.current.lr=!0,cn=mr,pn=-pn,Fn.points=[Ge(nn,1),Ge(an,1)]):Ie.current.lr=!1}bn();var br=Tn===!0?0:Tn;typeof br=="number"&&(Hn<Bt.left&&(cn-=Hn-Bt.left-pn,we.x+xt<Bt.left+br&&(cn+=we.x-Bt.left+xt-br)),Gn>Bt.right&&(cn-=Gn-Bt.right-pn,we.x>Bt.right-br&&(cn+=we.x-Bt.right+br)));var Dr=tn===!0?0:tn;typeof Dr=="number"&&(un<Bt.top&&(rn-=un-Bt.top-Ft,we.y+mt<Bt.top+Dr&&(rn+=we.y-Bt.top+mt-Dr)),On>Bt.bottom&&(rn-=On-Bt.bottom-Ft,we.y>Bt.bottom-Dr&&(rn+=we.y-Bt.bottom+Dr)));var gr=H.x+cn,jr=gr+Ue,Vr=H.y+rn,ii=Vr+Yt,Br=we.x,ti=Br+xt,ar=we.y,si=ar+mt,vi=Math.max(gr,Br),fi=Math.min(jr,ti),Lr=(vi+fi)/2,hi=Lr-gr,pr=Math.max(Vr,ar),Wt=Math.min(ii,si),sr=(pr+Wt)/2,vr=sr-Vr;oe==null||oe(ge,Fn);var Dn=Dt.right-H.x-(cn+H.width),Mn=Dt.bottom-H.y-(rn+H.height);Ae({ready:!0,offsetX:cn/yt,offsetY:rn/Ht,offsetR:Dn/yt,offsetB:Mn/Ht,arrowX:hi/yt,arrowY:vr/Ht,scaleX:yt,scaleY:Ht,align:Fn})}}),et=function(){_e.current+=1;var dt=_e.current;Promise.resolve().then(function(){_e.current===dt&&Qe()})},Ye=function(){Ae(function(dt){return(0,M.Z)((0,M.Z)({},dt),{},{ready:!1})})};return(0,v.Z)(Ye,[z]),(0,v.Z)(function(){q||Ye()},[q]),[ce.ready,ce.offsetX,ce.offsetY,ce.offsetR,ce.offsetB,ce.arrowX,ce.arrowY,ce.scaleX,ce.scaleY,ce.align,et]}var ht=p(19127);function rt(q,ge,ne,z,De){(0,v.Z)(function(){if(q&&ge&&ne){let _e=function(){z(),De()};var O=ge,oe=ne,Q=K(O),le=K(oe),ce=J(oe),Ae=new Set([ce].concat((0,ht.Z)(Q),(0,ht.Z)(le)));return Ae.forEach(function(Pe){Pe.addEventListener("scroll",_e,{passive:!0})}),ce.addEventListener("resize",_e,{passive:!0}),z(),function(){Ae.forEach(function(Pe){Pe.removeEventListener("scroll",_e),ce.removeEventListener("resize",_e)})}}},[q,ge,ne])}var Vt=p(48736),Jt=p(16089);function on(q,ge,ne,z,De,O,oe,Q){var le=y.useRef(q),ce=y.useRef(!1);le.current!==q&&(ce.current=!0,le.current=q),y.useEffect(function(){var Ae=(0,Jt.Z)(function(){ce.current=!1});return function(){Jt.Z.cancel(Ae)}},[q]),y.useEffect(function(){if(ge&&z&&(!De||O)){var Ae=function(){var ie=!1,Oe=function(Ze){var tt=Ze.target;ie=oe(tt)},mn=function(Ze){var tt=Ze.target;!ce.current&&le.current&&!ie&&!oe(tt)&&Q(!1)};return[Oe,mn]},_e=Ae(),Pe=(0,Y.Z)(_e,2),Ie=Pe[0],Fe=Pe[1],Qe=Ae(),et=(0,Y.Z)(Qe,2),Ye=et[0],ut=et[1],dt=J(z);dt.addEventListener("mousedown",Ie,!0),dt.addEventListener("click",Fe,!0),dt.addEventListener("contextmenu",Fe,!0);var ot=(0,s.A)(ne);if(ot&&(ot.addEventListener("mousedown",Ye,!0),ot.addEventListener("click",ut,!0),ot.addEventListener("contextmenu",ut,!0)),0)var Ct,Lt,w,C;return function(){dt.removeEventListener("mousedown",Ie,!0),dt.removeEventListener("click",Fe,!0),dt.removeEventListener("contextmenu",Fe,!0),ot&&(ot.removeEventListener("mousedown",Ye,!0),ot.removeEventListener("click",ut,!0),ot.removeEventListener("contextmenu",ut,!0))}}},[ge,ne,z,De,O])}var Kt=["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 at(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ce.Z,ge=y.forwardRef(function(ne,z){var De=ne.prefixCls,O=De===void 0?"rc-trigger-popup":De,oe=ne.children,Q=ne.action,le=Q===void 0?"hover":Q,ce=ne.showAction,Ae=ne.hideAction,_e=ne.popupVisible,Pe=ne.defaultPopupVisible,Ie=ne.onPopupVisibleChange,Fe=ne.afterPopupVisibleChange,Qe=ne.mouseEnterDelay,et=ne.mouseLeaveDelay,Ye=et===void 0?.1:et,ut=ne.focusDelay,dt=ne.blurDelay,ot=ne.mask,Ct=ne.maskClosable,Lt=Ct===void 0?!0:Ct,w=ne.getPopupContainer,C=ne.forceRender,lt=ne.autoDestroy,ie=ne.destroyPopupOnHide,Oe=ne.popup,mn=ne.popupClassName,$e=ne.popupStyle,Ze=ne.popupPlacement,tt=ne.builtinPlacements,ue=tt===void 0?{}:tt,V=ne.popupAlign,we=ne.zIndex,Ne=ne.stretch,H=ne.getPopupClassNameFromAlign,it=ne.fresh,Ee=ne.alignPoint,Tt=ne.onPopupClick,Mt=ne.onPopupAlign,Ut=ne.arrow,dn=ne.popupMotion,wt=ne.maskMotion,Yt=ne.popupTransitionName,Ue=ne.popupAnimation,mt=ne.maskTransitionName,xt=ne.maskAnimation,Me=ne.className,Te=ne.getTriggerDOMNode,st=(0,de.Z)(ne,Kt),ct=lt||ie||!1,kt=y.useState(!1),Ot=(0,Y.Z)(kt,2),$t=Ot[0],Bt=Ot[1];(0,v.Z)(function(){Bt((0,u.Z)())},[]);var Xt=y.useRef({}),hn=y.useContext(be),Dt=y.useMemo(function(){return{registerSubPopup:function(Zn,yr){Xt.current[Zn]=yr,hn==null||hn.registerSubPopup(Zn,yr)}}},[hn]),yt=(0,L.Z)(),Ht=y.useState(null),zt=(0,Y.Z)(Ht,2),Gt=zt[0],sn=zt[1],Rn=(0,A.Z)(function(jn){(0,xe.Sh)(jn)&&Gt!==jn&&sn(jn),hn==null||hn.registerSubPopup(yt,jn)}),pn=y.useState(null),Ft=(0,Y.Z)(pn,2),Je=Ft[0],nt=Ft[1],vt=y.useRef(null),bt=(0,A.Z)(function(jn){(0,xe.Sh)(jn)&&Je!==jn&&(nt(jn),vt.current=jn)}),ft=y.Children.only(oe),It=(ft==null?void 0:ft.props)||{},_t={},jt=(0,A.Z)(function(jn){var Zn,yr,Jr=Je;return(Jr==null?void 0:Jr.contains(jn))||((Zn=(0,s.A)(Jr))===null||Zn===void 0?void 0:Zn.host)===jn||jn===Jr||(Gt==null?void 0:Gt.contains(jn))||((yr=(0,s.A)(Gt))===null||yr===void 0?void 0:yr.host)===jn||jn===Gt||Object.values(Xt.current).some(function(Ir){return(Ir==null?void 0:Ir.contains(jn))||jn===Ir})}),an=D(O,dn,Ue,Yt),nn=D(O,wt,xt,mt),Sn=y.useState(Pe||!1),Ln=(0,Y.Z)(Sn,2),Fn=Ln[0],cn=Ln[1],rn=_e!=null?_e:Fn,$n=(0,A.Z)(function(jn){_e===void 0&&cn(jn)});(0,v.Z)(function(){cn(_e||!1)},[_e]);var An=y.useRef(rn);An.current=rn;var Wn=y.useRef([]);Wn.current=[];var Cn=(0,A.Z)(function(jn){var Zn;$n(jn),((Zn=Wn.current[Wn.current.length-1])!==null&&Zn!==void 0?Zn:rn)!==jn&&(Wn.current.push(jn),Ie==null||Ie(jn))}),Nn=y.useRef(),zn=function(){clearTimeout(Nn.current)},Pn=function(Zn){var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zn(),yr===0?Cn(Zn):Nn.current=setTimeout(function(){Cn(Zn)},yr*1e3)};y.useEffect(function(){return zn},[]);var Yn=y.useState(!1),or=(0,Y.Z)(Yn,2),Tn=or[0],tn=or[1];(0,v.Z)(function(jn){(!jn||rn)&&tn(!0)},[rn]);var Ke=y.useState(null),un=(0,Y.Z)(Ke,2),On=un[0],Hn=un[1],Gn=y.useState([0,0]),nr=(0,Y.Z)(Gn,2),rr=nr[0],Un=nr[1],qn=function(Zn){Un([Zn.clientX,Zn.clientY])},yn=pt(rn,Gt,Ee?rr:Je,Ze,ue,V,Mt),ln=(0,Y.Z)(yn,11),Bn=ln[0],tr=ln[1],lr=ln[2],kr=ln[3],En=ln[4],hr=ln[5],dr=ln[6],mr=ln[7],Fr=ln[8],Ur=ln[9],br=ln[10],Dr=he($t,le,ce,Ae),gr=(0,Y.Z)(Dr,2),jr=gr[0],Vr=gr[1],ii=jr.has("click"),Br=Vr.has("click")||Vr.has("contextMenu"),ti=(0,A.Z)(function(){Tn||br()}),ar=function(){An.current&&Ee&&Br&&Pn(!1)};rt(rn,Je,Gt,ti,ar),(0,v.Z)(function(){ti()},[rr,Ze]),(0,v.Z)(function(){rn&&!(ue!=null&&ue[Ze])&&ti()},[JSON.stringify(V)]);var si=y.useMemo(function(){var jn=se(ue,O,Ur,Ee);return X()(jn,H==null?void 0:H(Ur))},[Ur,H,ue,O,Ee]);y.useImperativeHandle(z,function(){return{nativeElement:vt.current,forceAlign:ti}});var vi=y.useState(0),fi=(0,Y.Z)(vi,2),Lr=fi[0],hi=fi[1],pr=y.useState(0),Wt=(0,Y.Z)(pr,2),sr=Wt[0],vr=Wt[1],Dn=function(){if(Ne&&Je){var Zn=Je.getBoundingClientRect();hi(Zn.width),vr(Zn.height)}},Mn=function(){Dn(),ti()},xn=function(Zn){tn(!1),br(),Fe==null||Fe(Zn)},bn=function(){return new Promise(function(Zn){Dn(),Hn(function(){return Zn})})};(0,v.Z)(function(){On&&(br(),On(),Hn(null))},[On]);function Xn(jn,Zn,yr,Jr){_t[jn]=function(Ir){var _i;Jr==null||Jr(Ir),Pn(Zn,yr);for(var Wi=arguments.length,Hi=new Array(Wi>1?Wi-1:0),Ai=1;Ai<Wi;Ai++)Hi[Ai-1]=arguments[Ai];(_i=It[jn])===null||_i===void 0||_i.call.apply(_i,[It,Ir].concat(Hi))}}(ii||Br)&&(_t.onClick=function(jn){var Zn;An.current&&Br?Pn(!1):!An.current&&ii&&(qn(jn),Pn(!0));for(var yr=arguments.length,Jr=new Array(yr>1?yr-1:0),Ir=1;Ir<yr;Ir++)Jr[Ir-1]=arguments[Ir];(Zn=It.onClick)===null||Zn===void 0||Zn.call.apply(Zn,[It,jn].concat(Jr))}),on(rn,Br,Je,Gt,ot,Lt,jt,Pn);var ur=jr.has("hover"),Pr=Vr.has("hover"),Tr,Rr;ur&&(Xn("onMouseEnter",!0,Qe,function(jn){qn(jn)}),Xn("onPointerEnter",!0,Qe,function(jn){qn(jn)}),Tr=function(Zn){(rn||Tn)&&Gt!==null&&Gt!==void 0&&Gt.contains(Zn.target)&&Pn(!0,Qe)},Ee&&(_t.onMouseMove=function(jn){var Zn;(Zn=It.onMouseMove)===null||Zn===void 0||Zn.call(It,jn)})),Pr&&(Xn("onMouseLeave",!1,Ye),Xn("onPointerLeave",!1,Ye),Rr=function(){Pn(!1,Ye)}),jr.has("focus")&&Xn("onFocus",!0,ut),Vr.has("focus")&&Xn("onBlur",!1,dt),jr.has("contextMenu")&&(_t.onContextMenu=function(jn){var Zn;An.current&&Vr.has("contextMenu")?Pn(!1):(qn(jn),Pn(!0)),jn.preventDefault();for(var yr=arguments.length,Jr=new Array(yr>1?yr-1:0),Ir=1;Ir<yr;Ir++)Jr[Ir-1]=arguments[Ir];(Zn=It.onContextMenu)===null||Zn===void 0||Zn.call.apply(Zn,[It,jn].concat(Jr))}),Me&&(_t.className=X()(It.className,Me));var Mr=(0,M.Z)((0,M.Z)({},It),_t),ui={},Yr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yr.forEach(function(jn){st[jn]&&(ui[jn]=function(){for(var Zn,yr=arguments.length,Jr=new Array(yr),Ir=0;Ir<yr;Ir++)Jr[Ir]=arguments[Ir];(Zn=Mr[jn])===null||Zn===void 0||Zn.call.apply(Zn,[Mr].concat(Jr)),st[jn].apply(st,Jr)})});var pi=y.cloneElement(ft,(0,M.Z)((0,M.Z)({},Mr),ui)),Bi={x:hr,y:dr},bi=Ut?(0,M.Z)({},Ut!==!0?Ut:{}):null;return y.createElement(y.Fragment,null,y.createElement(ve.Z,{disabled:!rn,ref:bt,onResize:Mn},y.createElement(F,{getTriggerDOMNode:Te},pi)),y.createElement(be.Provider,{value:Dt},y.createElement(T,{portal:q,ref:Rn,prefixCls:O,popup:Oe,className:X()(mn,si),style:$e,target:Je,onMouseEnter:Tr,onMouseLeave:Rr,onPointerEnter:Tr,zIndex:we,open:rn,keepDom:Tn,fresh:it,onClick:Tt,mask:ot,motion:an,maskMotion:nn,onVisibleChanged:xn,onPrepare:bn,forceRender:C,autoDestroy:ct,getPopupContainer:w,align:Ur,arrow:bi,arrowPos:Bi,ready:Bn,offsetX:tr,offsetY:lr,offsetR:kr,offsetB:En,onAlign:ti,stretch:Ne,targetWidth:Lr/mr,targetHeight:sr/Fr})))});return ge}var Et=at(Ce.Z)},50304:function(){"use strict"},8797:function(qt,qe,p){"use strict";var M=p(59301),Y=p(93314),de=p(3113),Ce=Object.defineProperty,j=Object.defineProperties,X=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,A=(y,b,k)=>b in y?Ce(y,b,{enumerable:!0,configurable:!0,writable:!0,value:k}):y[b]=k,L=(y,b)=>{for(var k in b||(b={}))xe.call(b,k)&&A(y,k,b[k]);if(ve)for(var k of ve(b))s.call(b,k)&&A(y,k,b[k]);return y},v=(y,b)=>j(y,X(b));const u=({img:y,buttonProps:b={},styles:k={},customText:ae,ButtonText:P,ButtonClick:N,Buttonclass:G,ButtonTwo:U,imgStyles:x,loading:T=!1})=>M.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:T?"hidden":"visible"}),k)},M.createElement("img",{src:y||Y,style:v(L({},x),{pointerEvents:"none",userSelect:"none"})}),M.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&M.createElement(de.ZP,L({className:G,onClick:N},b),P),U&&U);qe.Z=u},23210:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return G}});var M=p(59301),Y={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},de=p(3113),Ce=p(70557),j=p(23954),X=p(6848),ve=p(955),xe=p(94941),s=p(8797),A=p(3294),L=p(19381),v=p(59301),u=Object.defineProperty,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,ae=(U,x,T)=>x in U?u(U,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):U[x]=T,P=(U,x)=>{for(var T in x||(x={}))b.call(x,T)&&ae(U,T,x[T]);if(y)for(var T of y(x))k.call(x,T)&&ae(U,T,x[T]);return U},N=(U,x,T)=>new Promise((B,F)=>{var fe=he=>{try{Re(T.next(he))}catch(W){F(W)}},be=he=>{try{Re(T.throw(he))}catch(W){F(W)}},Re=he=>he.done?B(he.value):Promise.resolve(he.value).then(fe,be);Re((T=T.apply(U,x)).next())}),G=({editOffice:U="view",data:x,theme:T,type:B,filename:F,monacoEditor:fe,className:be,style:Re,close:he,onClose:W,hasMask:$,disabledDownload:se,onImgDimensions:D,showNodata:J,recordInfo:K})=>{const[g,E]=(0,M.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Z,pe]=(0,M.useState)(""),[ze,We]=(0,M.useState)(),je=window.ENV==="build"?"/react/build":"",Ge=location.host.startsWith("localhost")?A.Z.PROXY_SERVER:A.Z.API_SERVER,ht=10*(1024*1024),rt=(0,M.useRef)();x!=null&&x.startsWith("/api")&&B!=="txt"&&(x=A.Z.API_SERVER+x);const Vt=at=>at.substring(at.lastIndexOf("/")+1).split(".").pop();F&&fe&&(fe.filename=F),(0,M.useEffect)(()=>{var at,Et;const q=(Et=(at=document.cookie)==null?void 0:at.replace(/\s/g,""))==null?void 0:Et.split(";");q==null||q.map(ge=>{let ne=ge.split("=");ne[0]==="_educoder_session"&&pe(ne[1])})},[]),(0,M.useEffect)(()=>{B==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?We({url:x,fileType:Vt(x),model:x.indexOf("model=edit")?"edit":"view"}):Jt())},[B,x]);const Jt=()=>N(void 0,null,function*(){console.log("data:",x);let at=x;x.startsWith("http")||(at=location.origin+at);let Et=new URL(at).pathname.split("/").pop();const q=yield(0,xe.gJ)({attachment_id:Et});q.url=Ge+q.url,We(q)}),on=()=>{if(x.startsWith("http")||x.startsWith("blob:")){Kt();return}(0,ve.Sv)(F||"educoder",x,F)},Kt=()=>{K&&(0,L.fc)({id:K==null?void 0:K.id,watch_type:1,course_id:K==null?void 0:K.course_id}),(0,ve.Nd)(F||"educoder",decodeURIComponent(x))};return v.createElement("div",{style:P({},Re||{}),className:`${$&&Y.bgBlack} ${B?Y.wrp:"hide"}`},he&&v.createElement("div",{className:Y.close,ref:rt},!!D&&v.createElement(X.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rt.current},v.createElement("span",{onClick:()=>{W(),D()}},v.createElement("i",{className:"icon-yulanpizhu"}))),!se&&v.createElement(X.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rt.current},v.createElement("span",{onClick:Kt},v.createElement("i",{className:"icon-quxiaozhiding"}))),v.createElement(X.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rt.current},v.createElement("span",{className:"",onClick:W},v.createElement("i",{className:"icon-guanbi1"})))),v.createElement("div",{className:`${Y[be]} ${be} ${Y.monaco} ${B==="txt"?"show":"hide"}`},B==="txt"&&v.createElement(v.Fragment,null,v.createElement(j.ZP,P({},fe)))),B==="audio"&&v.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}),B==="video"&&v.createElement(v.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?v.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):v.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),B==="office"&&ze&&v.createElement("iframe",{src:`${je}/office.html?key=${ze.key}&url=${btoa(ze.url)}&callbackUrl=${Ge+(ze.callbackUrl||"")}&fileType=${ze.fileType}&title=${ze.title||""}&model=${U}&officeServer=${A.Z.ONLYOFFICE}&disabledDownload=${!!se}`}),B==="html"&&v.createElement("iframe",{src:x+"&disposition=inline"}),B==="pdf"&&v.createElement("iframe",{src:`${je}/js/pdfview/index.html?filename=${F||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!se}`}),B==="image"&&v.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),(B==="other"||B==="download")&&v.createElement(v.Fragment,null,J?v.createElement(s.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:v.createElement(de.ZP,{icon:v.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:on,disabled:se},"\u4E0B\u8F7D")}):v.createElement(de.ZP,{type:"primary",size:"middle",onClick:on,disabled:se},v.createElement(Ce.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(qt,qe,p){"use strict";p.d(qe,{z:function(){return B},Z:function(){return F}});var M=p(59301),Y=p(50304),de=p(24768),Ce=p(64018),j=p(40846),X=p(3294),ve=p(955),xe=p(15342),s=p(1012),A=p(23210),L=p(59301),u=({html:fe})=>{const be=(0,M.useRef)(null),Re=(0,M.useRef)(null),he=`.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,M.useEffect)(()=>{const W=be.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=fe,W.appendChild(Re.current);const $=document.createElement("style");return $.textContent=he,W.appendChild($),()=>{W.innerHTML=""}},[]),(0,M.useEffect)(()=>{Re.current&&(Re.current.innerHTML=fe)},[fe]),L.createElement("div",{ref:be})},y=Object.defineProperty,b=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,P=(fe,be,Re)=>be in fe?y(fe,be,{enumerable:!0,configurable:!0,writable:!0,value:Re}):fe[be]=Re,N=(fe,be)=>{for(var Re in be||(be={}))k.call(be,Re)&&P(fe,Re,be[Re]);if(b)for(var Re of b(be))ae.call(be,Re)&&P(fe,Re,be[Re]);return fe};const G="@\u2581\u2581@",U="@\u2581@",x=/<pre[^>]*>/g;function T(fe){let be=document.createElement("div");return be.innerHTML=fe,be.childNodes.length===0?"":be.childNodes[0].nodeValue}const B=(fe,be)=>{fe=fe||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,he=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,W=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return be?fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(se,D,J,K,g,E,Z)=>{const pe=D||K||E,ze=J||g||Z||"?";return X.Z.API_SERVER+"/api/attachments/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(se.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(fe=fe.replace($,(se,D,J,K,g,E,Z)=>{const pe=D||K||E,ze=J||g||Z||"?";return X.Z.API_SERVER+"/attachments/download/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(se.indexOf(")")>-1?")":"&")}).replace(Re,(se,D,J,K,g,E,Z)=>{const pe=D||K||E,ze=J||g||Z||"?";return X.Z.API_SERVER+"/api/attachments/"+pe+ze+"&t="+(0,ve.Jn)(pe,Date.now())+(se.indexOf(")")>-1?")":"&")}).replace(he,(se,D,J,K,g)=>{const E=D||K,Z=J||g||"";return'"'+X.Z.API_SERVER+"/api/attachments/"+E+Z+E+Z+"&t="+(0,ve.Jn)(E,Date.now())}).replace(W,(se,D,J,K,g)=>{const E=D||K,Z=J||g||"";return"("+X.Z.API_SERVER+"/files/uploads/"+E+Z+E+Z+"&t="+(0,ve.Jn)(E,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,`
|
|
|
`),fe)};var F=({value:fe="",className:be,showTextOnly:Re,showLines:he,style:W={},stylesPrev:$={},highlightKeywords:se,showProgramFill:D,isProgramFill:J,disabledFill:K=!1,programFillValue:g,onFillChange:E=ze=>{},onFillBlur:Z=()=>{},onFillFocus:pe=()=>{}})=>{let ze=String(fe);const[We,je]=(0,M.useState)(""),[Ge,pt]=(0,M.useState)("office"),[ht,rt]=(0,M.useState)([]),Vt=(0,M.useRef)("a"+(0,s.Z)()),Jt={},on=(le,ce,Ae)=>{const _e=document.createElement(le===U?"input":"textarea");_e.style.width="100%",_e.style.height=le===U?"40px":"151px",_e.rows=5,_e.spellcheck=!1,_e.name="edu-program-fill",_e.placeholder="\u8BF7\u8F93\u5165",_e.dataset.id=ce;const Pe=Object.keys(Jt).length;return Jt[Pe]=_e,`<span class="edu-program-fill-wrap ${le===U?"":"show"}" style="width:${le===U?"400px":"100%"}" title=${Ae||""}><span>${_e.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Kt(le){return le=le.replace(/!\[.*?\]\(.*?\)/g,""),le=le.replace(/\[.*?\]\(.*?\)/g,""),le=le.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),le=le.replace(/<embed.*?>/g,""),le=le.replace(/<img.*?>/g,""),le=le.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),le=le.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),le=le.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),le=le.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),le}const at=le=>le.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ce,Ae){let _e=Ae.replace(/(\n|\r)/g,"").split("}"),Pe=[];return _e.map(Ie=>{Ie!=""&&Pe.push(`.${Vt.current} ${Ie}`)}),`<style>${Pe.join("}")}</style>`}),Et=(0,M.useMemo)(()=>{try{const _e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ie=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Fe=/\(\/attachments\/download\//g;ze=ze.replace(Fe,"("+X.Z.API_SERVER+"/attachments/download/").replace(_e,"("+X.Z.API_SERVER+"/api/attachments/").replace(Pe,'"'+X.Z.API_SERVER+"/api/attachments/").replace(Ie,'"'+X.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(_e){}if(D){let _e=-1;return ze=ze.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Pe,Ie,Fe){var Qe;return++_e,on(Pe,_e,(Qe=g==null?void 0:g[_e])==null?void 0:Qe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${at(ze||"")}</pre>`}let le=at(ze);le=(0,de.ZP)(le);const ce=(0,de.ez)();ze.match(/\[TOC\]/)&&(le=le.replace("<p>[TOC]</p>",(0,de.Qv)()),(0,de.Iy)()),le=le.replace(/(__special_katext_id_\d+__)/g,(_e,Pe)=>{const{type:Ie,expression:Fe}=ce[Pe];return(0,xe.renderToString)(T(Fe)||"",{displayMode:Ie==="block",throwOnError:!1,output:"html"})}),le=le.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,de.AL)();const Ae=document.createElement("div");if(Ae.innerHTML=le,Re)return Ae.innerText;if(se){const _e=se.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return z(Ae,_e),Ae.innerHTML}return setTimeout(()=>oe(),500),Ae.innerHTML},[ze,se]);(0,M.useEffect)(()=>{De.current&&De.current.querySelectorAll(["input","textarea"]).forEach(ce=>{ce.oninput=q,ce.onblur=ge,ce.onfocus=ne})},[ht]),(0,M.useEffect)(()=>{var le,ce,Ae,_e,Pe;if(g!=null&&g.length)try{const Ie=De.current.querySelectorAll(".edu-program-fill-score"),Fe=De.current.querySelectorAll('[name="edu-program-fill"]');for(const[Qe,et]of Fe.entries())et.value=((le=g==null?void 0:g[Qe])==null?void 0:le.value)||"",((ce=g==null?void 0:g[Qe])==null?void 0:ce.type)==="warning"?et.className="program-fill-warning":((Ae=g==null?void 0:g[Qe])==null?void 0:Ae.type)==="success"?et.className="program-fill-success":et.className="";for(const[Qe,et]of Ie.entries())et.innerHTML=(_e=g==null?void 0:g[Qe])!=null&&_e.score?`${(Pe=g==null?void 0:g[Qe])==null?void 0:Pe.score}\u5206`:"";rt(g)}catch(Ie){console.log(Ie,"error")}},[g]);const q=le=>{ht[le.target.dataset.id]=ht[le.target.dataset.id]||{},ht[le.target.dataset.id].value=le.target.value,rt([...ht]),E(ht,le.target.dataset.id)},ge=le=>{ht[le.target.dataset.id]=ht[le.target.dataset.id]||{},ht[le.target.dataset.id].value=le.target.value,rt([...ht]),Z(ht,le.target.dataset.id)},ne=le=>{ht[le.target.dataset.id]=ht[le.target.dataset.id]||{},ht[le.target.dataset.id].value=le.target.value,rt([...ht]),pe(ht,le.target.dataset.id)};function z(le,ce){return le.childNodes.forEach(Ae=>{var _e;if(Ae.childNodes.length>0)z(Ae,ce);else if(Ae.nodeName!=="IMG")if(Ae.innerHTML)Ae.innerHTML=(_e=Ae.innerHTML)==null?void 0:_e.replace(new RegExp(ce,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Pe=document.createElement("span");Pe.innerHTML=Ae.textContent.replace(new RegExp(ce,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ae.replaceWith(Pe)}})}const De=(0,M.useRef)();de.jb.WebkitLineClamp=he,he&&(W=N(N({},W),de.jb));function O(le){let ce=le.target;if(ce.tagName.toUpperCase()==="A"){let Ae=ce.getAttribute("href");if(Ae.indexOf("office")>-1)le.preventDefault(),je(Ae),pt("office");else if(Ae.indexOf("application/pdf")>-1)le.preventDefault(),je(Ae),pt("pdf");else if(Ae.indexOf("text/html")>-1)le.preventDefault(),je(Ae),pt("html");else if(Ae.startsWith("#")){le.preventDefault();let _e=document.getElementById(Ae.replace("#",""));_e&&_e.scrollIntoView(!0)}}}const oe=()=>{var le;const ce=(le=De.current)==null?void 0:le.querySelectorAll("video");ce==null||ce.forEach(Ae=>{if(Ae.oncontextmenu=()=>!1,Ae.src.indexOf(".m3u8")>-1&&!Ae.canPlayType("application/vnd.apple.mpegurl")){if(j.ZP.isSupported()){var _e=new j.ZP;_e.loadSource(Ae.src),_e.attachMedia(Ae)}}})};(0,M.useEffect)(()=>{if(De.current&&Et&&Et.match(x)&&window.PR.prettyPrint(),De.current)return De.current.addEventListener("click",O),()=>{var le;(le=De.current)==null||le.removeEventListener("click",O),(0,de.AL)(),(0,de.Iy)()}},[Et,De.current,O]),(0,M.useEffect)(()=>{var le;const ce=Ae=>{Ae.preventDefault(),Ae.clipboardData.setData("text",window.getSelection().toString())};return(le=De.current)==null||le.addEventListener("copy",ce),()=>{var Ae;(Ae=De.current)==null||Ae.removeEventListener("copy",ce)}},[De.current]);const Q=le=>/<style[\s\S]*?>/i.test(le||"");return M.createElement(M.Fragment,null,Re&&M.createElement("div",{ref:De},Et),!Re&&!Q(Et)&&M.createElement("div",{ref:De,style:N({},W),className:`${be||""} ${K?"disabled-fill":""} markdown-body ${Vt.current}`,dangerouslySetInnerHTML:{__html:Et}}),!Re&&Q(Et)&&M.createElement(u,{html:Et}),M.createElement(A.Z,{close:!0,data:We,type:We!=null&&We.length?Ge:"",style:N({},$),onClose:()=>je("")}))}},23954:function(qt,qe,p){"use strict";p.d(qe,{SV:function(){return De},ZP:function(){return z}});var M=p(59301),Y=p(76374);const de={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"]},Ce={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"]},j={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},X={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},ve={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 xe=p(53184),s=p.n(xe),A=Object.defineProperty,L=Object.defineProperties,v=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,k=(O,oe,Q)=>oe in O?A(O,oe,{enumerable:!0,configurable:!0,writable:!0,value:Q}):O[oe]=Q,ae=(O,oe)=>{for(var Q in oe||(oe={}))y.call(oe,Q)&&k(O,Q,oe[Q]);if(u)for(var Q of u(oe))b.call(oe,Q)&&k(O,Q,oe[Q]);return O},P=(O,oe)=>L(O,v(oe)),N=(O,oe,Q)=>new Promise((le,ce)=>{var Ae=Ie=>{try{Pe(Q.next(Ie))}catch(Fe){ce(Fe)}},_e=Ie=>{try{Pe(Q.throw(Ie))}catch(Fe){ce(Fe)}},Pe=Ie=>Ie.done?le(Ie.value):Promise.resolve(Ie.value).then(Ae,_e);Pe((Q=Q.apply(O,oe)).next())});const G={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"]}},U=(O,oe)=>oe.map(Q=>({label:Q,kind:O.languages.CompletionItemKind.Keyword,insertText:Q})),x=O=>Object.keys(G.tables).map(oe=>({label:oe,kind:O.languages.CompletionItemKind.Variable,insertText:oe})),T=(O,oe)=>{const Q=G.tables[O];return Q?Q.map(le=>({label:le,kind:oe.languages.CompletionItemKind.Field,insertText:le})):[]};function B(O,oe,Q,le,ce){let Ae=oe.getWordUntilPosition(Q),_e={startLineNumber:Q.lineNumber,endLineNumber:Q.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},Pe=le.map(Ie=>({label:Ie,kind:O.languages.CompletionItemKind.Keyword,insertText:Ie,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:_e}));return ce.map(Ie=>{Pe.push(P(ae({},Ie),{range:_e}))}),Pe}var F=O=>{G.languages.map(ce=>(O.languages.registerDocumentFormattingEditProvider(ce,{provideDocumentFormattingEdits(Ae,_e,Pe){return N(this,null,function*(){const Ie=s()(Ae.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:Ae.getFullModelRange(),text:Ie}]})}}),ce));const oe=j.quickKey.map(ce=>({label:ce.label,kind:O.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Q=X.quickKey.map(ce=>({label:ce.label,kind:O.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),le=Ce.quickKey.map(ce=>({label:ce.label,kind:O.languages.CompletionItemKind.Method,insertText:ce.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet}));O.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ce,Ae){var _e=ce.getWordUntilPosition(Ae),Pe={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},Ie=ce.getLineContent(Ae.lineNumber).substring(_e.startColumn-2,_e.endColumn);return{suggestions:[...j.keywords.map(Fe=>({label:Fe,kind:O.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe})),...j.quickKey.map(Fe=>({label:Fe.label,kind:O.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Ie.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}}),O.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ce,Ae){var _e=ce.getWordUntilPosition(Ae),Pe={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn};return{suggestions:[...de.keywords.map(Ie=>({label:Ie,kind:O.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}}),O.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ce,Ae){var _e=ce.getWordUntilPosition(Ae),Pe={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},Ie=ce.getLineContent(Ae.lineNumber).substring(_e.startColumn-2,_e.endColumn);return{suggestions:[...Ce.keywords.map(Fe=>({label:Fe,kind:O.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe})),...Ce.quickKey.map(Fe=>({label:Fe.label,kind:O.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Ie.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}}),O.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ce,Ae){var _e=ce.getWordUntilPosition(Ae),Pe={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},Ie=ce.getLineContent(Ae.lineNumber).substring(_e.startColumn-2,_e.endColumn);return{suggestions:[...ve.keywords.map(Fe=>({label:Fe,kind:O.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe})),...ve.quickKey.map(Fe=>({label:Fe.label,kind:O.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Ie.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}}),O.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ce,Ae){var _e=ce.getWordUntilPosition(Ae),Pe={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},Ie=ce.getLineContent(Ae.lineNumber).substring(_e.startColumn-2,_e.endColumn);return{suggestions:[...X.keywords.map(Fe=>({label:Fe,kind:O.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe})),...X.quickKey.map(Fe=>({label:Fe.label,kind:O.languages.CompletionItemKind.Function,documentation:Fe.content,insertText:Ie.startsWith("#")?Fe.content.replace(/#/,""):Fe.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Pe}))]}}})};const fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var be=Object.defineProperty,Re=(O,oe,Q)=>oe in O?be(O,oe,{enumerable:!0,configurable:!0,writable:!0,value:Q}):O[oe]=Q,he=(O,oe,Q)=>Re(O,typeof oe!="symbol"?oe+"":oe,Q);const W=class Xo{constructor(oe,Q,le){this.placeholder=oe,this.editor=Q,this.monaco=le,Q.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)}};he(W,"ID","editor.widget.placeholderHint");var se=W,D=p(96236),J=p(8591),K=p(6848),g=p(89392),E=p(34604),Z=p(56102),pe=Object.defineProperty,ze=Object.defineProperties,We=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ht=(O,oe,Q)=>oe in O?pe(O,oe,{enumerable:!0,configurable:!0,writable:!0,value:Q}):O[oe]=Q,rt=(O,oe)=>{for(var Q in oe||(oe={}))Ge.call(oe,Q)&&ht(O,Q,oe[Q]);if(je)for(var Q of je(oe))pt.call(oe,Q)&&ht(O,Q,oe[Q]);return O},Vt=(O,oe)=>ze(O,We(oe)),Jt=(O,oe)=>{var Q={};for(var le in O)Ge.call(O,le)&&oe.indexOf(le)<0&&(Q[le]=O[le]);if(O!=null&&je)for(var le of je(O))oe.indexOf(le)<0&&pt.call(O,le)&&(Q[le]=O[le]);return Q},on=(O,oe,Q)=>new Promise((le,ce)=>{var Ae=Ie=>{try{Pe(Q.next(Ie))}catch(Fe){ce(Fe)}},_e=Ie=>{try{Pe(Q.throw(Ie))}catch(Fe){ce(Fe)}},Pe=Ie=>Ie.done?le(Ie.value):Promise.resolve(Ie.value).then(Ae,_e);Pe((Q=Q.apply(O,oe)).next())});function Kt(O){return/^\d+$/.test(O)?`${O}px`:O}function at(){}let Et=!1;const q={"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 ge(O=[]){let oe=O;if(Array.isArray(O)){for(let Q=0;Q<O.length;Q++){let le=q[O[Q]];if(le)return le}return oe[0]}return q[oe]||oe}let ne=null;var z=O=>{var oe=O,{width:Q="100%",height:le="100%",value:ce,language:Ae="javascript",style:_e={},options:Pe={},overrideServices:Ie={},theme:Fe="vs-dark",onEditBlur:Qe,isCopy:et=!1,onSave:Ye,autoHeight:ut=!1,forbidCopy:dt=!1,onChange:ot=at,editorDidMount:Ct=at,onFocus:Lt=at,onBreakPoint:w=at,breakPointValue:C=[],filename:lt="educoder.txt",errorLine:ie,errorContent:Oe="",highlightLine:mn,openBreakPoint:$e=!1,placeholder:Ze=""}=oe,tt=Jt(oe,["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 ue=(0,M.useRef)(),V=(0,M.useRef)({}),we=(0,M.useRef)(),Ne=(0,M.useRef)(),H=(0,M.useRef)([]),it=(0,M.useRef)(!1),Ee=(0,M.useRef)(),Tt=(0,M.useRef)(),Mt=(0,M.useRef)(!1),[Ut,dn]=(0,M.useState)(!1);function wt(){let Dt;return ue.current&&(Dt=new Y.Z(yt=>{for(let Ht of yt)(Ht.target.offsetHeight>0||Ht.target.offsetWidth>0)&&V.current.instance.layout()}),Dt.observe(ue.current)),Dt}function Yt(){J.ZP.warning({content:decodeURIComponent(fe),key:"monaco-editor-tip"})}const Ue=()=>{let Dt=V.current.instance;if(ce!=null&&Dt&&Ut){const yt=Dt.getModel();yt&&ce!==yt.getValue()&&(Et=!0,yt.setValue(ce),Dt.layout(),Et=!1)}};(0,M.useEffect)(()=>{const Dt=E.Z.subscribe("formatDocument",yt=>{var Ht;let zt=V.current.instance;(Ht=zt==null?void 0:zt.getAction)==null||Ht.call(zt,"editor.action.formatDocument").run()});return window.updateMonacoValue=yt=>{ot(yt)},Dt},[]),(0,M.useEffect)(()=>{var Dt;let yt=V.current.instance;Ne.current&&clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Ue()},500),ce&&(ce!=null&&ce.length)&&((Dt=yt==null?void 0:yt.updateOptions)==null||Dt.call(yt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ce.split(/\r\n|\r|\n/g).length))+3,5)}))},[ce,Ut,V.current]),(0,M.useEffect)(()=>{if(ie&&V.current&&V.current.instance){let yt=V.current.instance;yt.changeViewZones(function(Ht){var zt=document.createElement("div");zt.style.padding="10px 20px",zt.style.width="calc(100% - 20px)",zt.className="my-error-line-wrp",zt.innerHTML=Oe,Ht.addZone({afterLineNumber:ie||11,heightInLines:3,domNode:zt})});var Dt={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}};yt.addOverlayWidget(Dt),yt.revealPositionInCenter({lineNumber:20,column:1})}},[ie,V.current,Ut]);const mt=(Dt="",yt)=>{if(!Dt||Dt.trim()==="")return!0;const zt=V.current.instance.getModel().getLineTokens(yt);let Gt=!1;for(let sn=0;sn<2;sn++)zt.getStandardTokenType(sn)===1&&(Gt=!0);return Gt};(0,M.useEffect)(()=>{var Dt;const yt=(Dt=V.current)==null?void 0:Dt.instance;if(yt&&Ut&&dt){const Ht=yt.onDidBlurEditorWidget(()=>{Mt.current=!1}),zt=yt.onDidFocusEditorText(()=>{Mt.current=!0});return()=>{Ht.dispose(),zt.dispose()}}},[V.current,Ut,dt]),(0,M.useEffect)(()=>{var Dt;if((Dt=V.current)!=null&&Dt.instance&&Ut&&$e){let yt=V.current.instance,Ht=yt.getModel();if(!Ht)return;(()=>{var It;let _t=[],jt=[];const an=Ht.getAllDecorations();for(let Sn of an)Sn.options.className==="highlighted-line"&&(_t.push((It=Sn==null?void 0:Sn.range)==null?void 0:It.startLineNumber),jt.push(Sn==null?void 0:Sn.id));if(mn===_t[0])return;Ht.deltaDecorations(jt,[]);const nn=Ht.getLineCount();mn&&mn<=nn&&(yt.deltaDecorations([],[{range:new ne.Range(mn,1,mn,Ht.getLineMaxColumn(mn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yt.revealLineInCenter(mn))})();const Gt=(It=!1)=>{var _t;let jt=[],an=[];const nn=Ht.getAllDecorations();for(let Sn of nn)Sn.options.linesDecorationsClassName==="breakpoints-select"&&(jt.push((_t=Sn==null?void 0:Sn.range)==null?void 0:_t.startLineNumber),an.push(Sn==null?void 0:Sn.id));if(It)return{lines:jt,ids:an};w(jt)},sn=It=>on(void 0,null,function*(){let _t={range:new ne.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ht.deltaDecorations([],[_t]),Gt()}),Rn=It=>on(void 0,null,function*(){let _t=[];const jt=yt.getLineDecorations(It);for(let an of jt)an.options.linesDecorationsClassName==="breakpoints-select"&&_t.push(an.id);yield Ht.deltaDecorations(_t,[]),Gt()}),pn=It=>{let _t=yt.getLineDecorations(It);for(let jt of _t)if(jt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(C,Gt(!0).lines)){Ht.deltaDecorations(Gt(!0).ids,[]);const It=C.map(_t=>({range:new ne.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ht.deltaDecorations([],It)}const Ft=yt.onDidChangeModelContent(It=>{let _t=yt.getPosition();if(_t){let jt=_t.lineNumber;clearTimeout(Tt.current),Tt.current=setTimeout(()=>{mt(Ht.getLineContent(jt),jt)?Rn(jt):pn(jt)?(Rn(jt),sn(jt)):Gt()},100)}}),Je=yt.onMouseDown(It=>{var _t,jt,an;if(It.target.detail&&((an=(jt=(_t=It.target)==null?void 0:_t.element)==null?void 0:jt.className)!=null&&an.includes("line-numbers"))){let nn=It.target.position.lineNumber;if(mt(Ht.getLineContent(nn),nn))return;pn(nn)?Rn(nn):sn(nn)}}),nt=It=>{let _t={range:new ne.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};H.current=yt.deltaDecorations(H.current,[_t])},vt=()=>{H.current=yt.deltaDecorations(H.current,[])},bt=yt.onMouseMove(It=>{var _t,jt,an;if(vt(),It.target.detail&&((an=(jt=(_t=It.target)==null?void 0:_t.element)==null?void 0:jt.className)!=null&&an.includes("line-numbers"))){let nn=It.target.position.lineNumber;if(mt(Ht.getLineContent(nn),nn))return;nt(nn)}}),ft=yt.onMouseLeave(()=>{vt()});return()=>{Ft.dispose(),Je.dispose(),bt.dispose(),ft.dispose()}}},[V.current,Ut,C,mn,$e,Ae]),(0,M.useEffect)(()=>{var Dt;(Dt=V.current)!=null&&Dt.instance&&$e&&V.current.instance.setPosition({lineNumber:0,column:0})},[mn]);function xt(){let Dt=V.current.instance;if(Dt){const yt=Dt.getSelection(),Ht=V.current.pastePos||{},zt=new ne.Range(Ht.startLineNumber||yt.endLineNumber,Ht.startColumn||yt.endColumn,Ht.endLineNumber||yt.endLineNumber,Ht.endColumn||yt.endColumn);setTimeout(()=>{Dt.executeEdits("",[{range:zt,text:""}])},300)}}function Me(Dt){(window.navigator.platform.match("Mac")?Dt.metaKey:Dt.ctrlKey)&&Dt.keyCode==83&&(Dt.preventDefault(),Ye())}const Te=()=>{if(ut&&V.current.instance){const Dt=V.current.instance.getContentHeight();Xt(Dt<le?le:Dt)}else Xt(le)};function st(Dt){var yt=document.createEvent("MouseEvents");yt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Dt.dispatchEvent(yt)}const ct=Dt=>{if(!Mt.current)return;const{keyCode:yt,ctrlKey:Ht,metaKey:zt,target:Gt,type:sn}=Dt;return(sn==="paste"||(yt===67||yt===86)&&(zt||Ht))&&Gt.nodeName==="TEXTAREA"&&(Yt(),Dt.preventDefault()),!1};function kt(Dt,yt){var Ht=window.URL||window.webkitURL||window,zt=new Blob([yt]),Gt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Gt.href=Ht.createObjectURL(zt),Gt.download=Dt,st(Gt)}(0,M.useEffect)(()=>{Te()},[Te]),(0,M.useEffect)(()=>{ue.current&&!Ut&&Promise.all([p.e(8909),p.e(3267)]).then(p.bind(p,71448)).then(Dt=>{try{ne=Dt,V.current.instance=ne.editor.create(ue.current,{value:ce,language:ge(Ae),theme:Fe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ie);const yt=V.current.instance;let Gt=[...D.BH._menuItems].find(Ft=>Ft[0]._debugName=="EditorContext")[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rn=(Ft,Je)=>{var nt,vt;let bt=Ft._first;do Je.includes((vt=(nt=bt.element)==null?void 0:nt.command)==null?void 0:vt.id)&&Ft._remove(bt);while(bt=bt.next)};if(Ct(yt,ne),setTimeout(()=>{Te(),V.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{kt(lt||"educoder.txt",yt.getValue())}})},500),V.current.subscription=yt.onDidChangeModelContent(Ft=>{it.current?clearTimeout(Ee.current):(Te(),ot(yt.getValue(),Ft)),Ee.current=setTimeout(()=>{it.current=!1},500)}),window.Monaco||F(ne,ge(Ae)),dt&&(Rn(Gt,sn),ue.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ct),window.removeEventListener("paste",ct),window.addEventListener("keydown",ct),window.addEventListener("paste",ct)),window.Monaco=ne,Qe&&yt.onDidBlurEditorWidget(()=>{Qe(yt.getValue())}),Lt&&yt.onDidFocusEditorText(()=>{Lt(yt.getValue())}),dt)try{yt.onDidPaste(Ft=>{const Je=yt.getSelection(),nt=V.current.pastePos||{},vt=new ne.Range(nt.startLineNumber||Je.endLineNumber,nt.startColumn||Je.endColumn,nt.endLineNumber||Je.endLineNumber,nt.endColumn||Je.endColumn);yt.executeEdits("",[{range:Ft.range,text:""}])})}catch(Ft){}let pn=wt();return Ze&&typeof Ze=="string"&&new se(Ze,yt,ne),dn(!0),()=>{const Ft=V.current.instance;Ft.dispose();const Je=Ft.getModel();Je&&Je.dispose(),V.current.subscription&&V.current.subscription.dispose(),pn.unobserve(ue.current)}}catch(yt){}})},[]),(0,M.useEffect)(()=>{if(V.current.instance&&Ut)return document.addEventListener("keydown",Me,!1),()=>{document.removeEventListener("keydown",Me)}},[Ye,Ut]),(0,M.useEffect)(()=>{let Dt=V.current.instance;if(Dt&&Ut){let yt=ge(Ae);ne.editor.setModelLanguage(Dt.getModel(),yt)}},[Ae,Ut]),(0,M.useEffect)(()=>{V.current.instance&&Ut&&ne.editor.setTheme(Fe)},[Fe,Ut]),(0,M.useEffect)(()=>{let Dt=V.current.instance;we.current=Pe,Dt&&Ut&&(Dt.updateOptions(rt({},Pe)),setTimeout(()=>{Dt.getModel().updateOptions(rt({},Pe))},200))},[JSON.stringify(Pe),Ut]),(0,M.useEffect)(()=>{let Dt=V.current.instance;Dt&&Ut&&Dt.layout()},[Q,le,Ut]);const[Ot,$t]=(0,M.useState)(Kt(Q)),[Bt,Xt]=(0,M.useState)(Kt(le)),hn=Vt(rt({},_e),{width:Ot,height:Bt,position:"relative"});return M.createElement("div",{className:"my-monaco-editor",ref:ue,style:hn},et&&M.createElement(Z.CopyToClipboard,{text:ce,onCopy:()=>J.ZP.success("\u590D\u5236\u6210\u529F")},M.createElement(K.Z,{title:"\u590D\u5236\u4EE3\u7801"},M.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},M.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function De({width:O="100%",height:oe="100%",original:Q,modified:le,language:ce,options:Ae={}}){const _e=(0,M.useRef)(),[Pe,Ie]=(0,M.useState)(null);function Fe(ut){let dt;return _e.current&&(dt=new Y.Z(ot=>{for(let Ct of ot)(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&ut.layout()}),dt.observe(_e.current)),dt}(0,M.useEffect)(()=>(_e.current&&Promise.all([p.e(8909),p.e(9404)]).then(p.bind(p,2550)).then(ut=>{ne=ut;const dt=ne.editor.createDiffEditor(_e.current,Vt(rt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ae),{wordWrap:!0}));Ie(dt);let ot=Fe(dt);return()=>{dt.dispose();const Ct=dt.getModel();Ct&&Ct.dispose(),ot.unobserve(_e.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,M.useEffect)(()=>{Pe&&Pe.setModel({original:ne.editor.createModel(Q,ce),modified:ne.editor.createModel(le,ce)})},[Q,le,ce,Pe]);const Qe=Kt(O),et=Kt(oe),Ye={width:Qe,height:et};return M.createElement("div",{className:"my-diff-editor",ref:_e,style:Ye})}},98537:function(qt,qe,p){"use strict";p.r(qe),p.d(qe,{default:function(){return Ae}});var M=p(59301),Y=p(89070),de=p(66104),Ce=p(95237),j=p(43604),X=p(6848),ve=p(85149),xe=p(24065),s={flex_box_center:"flex_box_center___iOjMJ",flex_space_between:"flex_space_between___aidWN",flex_box_vertical_center:"flex_box_vertical_center___z01Y6",flex_box_center_end:"flex_box_center_end___bizdK",flex_box_column:"flex_box_column___T3eUo",info:"info___PTCcN",bar:"bar___F2ZHD"},A=p(92832),L=p(17574),v=p(78241),u=p(43418),y=p(8591),b=p(60324),k=p(98228),ae=p(99064),P=Object.defineProperty,N=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,x=(_e,Pe,Ie)=>Pe in _e?P(_e,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):_e[Pe]=Ie,T=(_e,Pe)=>{for(var Ie in Pe||(Pe={}))G.call(Pe,Ie)&&x(_e,Ie,Pe[Ie]);if(N)for(var Ie of N(Pe))U.call(Pe,Ie)&&x(_e,Ie,Pe[Ie]);return _e},B=(_e,Pe,Ie)=>new Promise((Fe,Qe)=>{var et=dt=>{try{ut(Ie.next(dt))}catch(ot){Qe(ot)}},Ye=dt=>{try{ut(Ie.throw(dt))}catch(ot){Qe(ot)}},ut=dt=>dt.done?Fe(dt.value):Promise.resolve(dt.value).then(et,Ye);ut((Ie=Ie.apply(_e,Pe)).next())});const{TreeNode:F}=k.default,fe=({restful:_e,loading:Pe,dispatch:Ie})=>{const Fe=(0,Y.useParams)(),Qe=(0,Y.useLocation)(),[et,Ye]=(0,M.useState)(!1),[ut,dt]=(0,M.useState)(),{actionTabs:ot}=_e,[Ct]=v.default.useForm();return(0,M.useEffect)(()=>{_e.actionTabs.key=="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"&&Ct.resetFields()},[_e.actionTabs.key]),_e.actionTabs.key!=="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"?null:M.createElement(u.default,{centered:!0,title:"\u65B0\u5EFA\u76EE\u5F55",open:_e.actionTabs.key==="\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:et,onOk:()=>B(void 0,null,function*(){yield Ct.validateFields();const Lt=Ct.getFieldValue();Ye(!0),(yield(0,ae.ZP)("/api/restfuls.json",{method:"post",body:T({file_type:1},Lt)})).status===0&&(y.ZP.success("\u6DFB\u52A0\u6210\u529F"),Ie({type:"restful/setActionTabs",payload:{}}),Ie({type:"restful/getRestful"})),Ye(!1)}),onCancel:()=>{Ie({type:"restful/setActionTabs",payload:{}})}},M.createElement("div",{className:"pl30 pr30"},M.createElement(v.default,{form:Ct,initialValues:{name:""}},M.createElement(v.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},M.createElement(Ce.Z,{className:"mt30"},M.createElement(j.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),M.createElement(j.Z,{flex:"1"},M.createElement(A.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
|
|
|
`,maxLength:60})))))))};var be=(0,Y.connect)(({restful:_e,loading:Pe})=>({restful:_e,loading:Pe}))(fe),Re=Object.defineProperty,he=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,se=(_e,Pe,Ie)=>Pe in _e?Re(_e,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):_e[Pe]=Ie,D=(_e,Pe)=>{for(var Ie in Pe||(Pe={}))W.call(Pe,Ie)&&se(_e,Ie,Pe[Ie]);if(he)for(var Ie of he(Pe))$.call(Pe,Ie)&&se(_e,Ie,Pe[Ie]);return _e},J=(_e,Pe,Ie)=>new Promise((Fe,Qe)=>{var et=dt=>{try{ut(Ie.next(dt))}catch(ot){Qe(ot)}},Ye=dt=>{try{ut(Ie.throw(dt))}catch(ot){Qe(ot)}},ut=dt=>dt.done?Fe(dt.value):Promise.resolve(dt.value).then(et,Ye);ut((Ie=Ie.apply(_e,Pe)).next())});const{TreeNode:K}=k.default,g=({restful:_e,loading:Pe,dispatch:Ie})=>{const Fe=(0,Y.useParams)(),Qe=(0,Y.useLocation)(),[et,Ye]=(0,M.useState)(!1),[ut,dt]=(0,M.useState)(),{actionTabs:ot}=_e,[Ct]=v.default.useForm();return(0,M.useEffect)(()=>{_e.actionTabs.key=="\u91CD\u547D\u540D"&&(Ct.resetFields(),Ct.setFieldsValue({name:_e.actionTabs.data.title}))},[_e.actionTabs.key]),_e.actionTabs.key!=="\u91CD\u547D\u540D"?null:M.createElement(u.default,{centered:!0,title:"\u91CD\u547D\u540D",open:_e.actionTabs.key==="\u91CD\u547D\u540D",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:et,onOk:()=>J(void 0,null,function*(){yield Ct.validateFields();const Lt=Ct.getFieldValue();Ye(!0);let w=`/api/restfuls/${_e.actionTabs.data.id}.json`;(yield(0,ae.ZP)(w,{method:"put",body:D({file_type:1},Lt)})).status===0&&(y.ZP.success("\u4FEE\u6539\u6210\u529F"),Ie({type:"restful/setActionTabs",payload:{}}),Ie({type:"restful/getRestful"})),Ye(!1)}),onCancel:()=>{Ie({type:"restful/setActionTabs",payload:{}})}},M.createElement("div",{className:"pl30 pr30"},M.createElement(v.default,{form:Ct,initialValues:{name:""}},M.createElement(Ce.Z,{className:"mt30"},M.createElement(j.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),M.createElement(j.Z,{flex:"1"},M.createElement(v.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u65B0\u540D\u79F0"}]},M.createElement(A.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26
|
|
|
`,maxLength:60})))))))};var E=(0,Y.connect)(({restful:_e,loading:Pe})=>({restful:_e,loading:Pe}))(g),Z=p(52403),pe={flex_box_center:"flex_box_center___EW6x1",flex_space_between:"flex_space_between___aSZFN",flex_box_vertical_center:"flex_box_vertical_center___MsqeW",flex_box_center_end:"flex_box_center_end___YMP0b",flex_box_column:"flex_box_column___KXrxt",tree:"tree___Zx4EL",actions:"actions___zwp8u"},ze=Object.defineProperty,We=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,rt=(_e,Pe,Ie)=>Pe in _e?ze(_e,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):_e[Pe]=Ie,Vt=(_e,Pe)=>{for(var Ie in Pe||(Pe={}))pt.call(Pe,Ie)&&rt(_e,Ie,Pe[Ie]);if(Ge)for(var Ie of Ge(Pe))ht.call(Pe,Ie)&&rt(_e,Ie,Pe[Ie]);return _e},Jt=(_e,Pe)=>We(_e,je(Pe)),on=(_e,Pe,Ie)=>new Promise((Fe,Qe)=>{var et=dt=>{try{ut(Ie.next(dt))}catch(ot){Qe(ot)}},Ye=dt=>{try{ut(Ie.throw(dt))}catch(ot){Qe(ot)}},ut=dt=>dt.done?Fe(dt.value):Promise.resolve(dt.value).then(et,Ye);ut((Ie=Ie.apply(_e,Pe)).next())});const{Search:Kt}=A.default,{DirectoryTree:at}=L.default,Et=({user:_e,globalSetting:Pe,loading:Ie,dispatch:Fe,restful:Qe})=>{const et=(0,Y.useParams)(),[Ye,ut]=(0,M.useState)(!0),[dt]=v.default.useForm(),[ot,Ct]=(0,M.useState)(""),[Lt]=(0,M.useState)([{id:1,name:"\u65B0\u5EFA\u6587\u4EF6"},{id:2,name:"\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"},{id:3,name:"\u91CD\u547D\u540D"},{id:4,name:"\u7F16\u8F91"},{id:5,name:"\u5220\u9664"}]),[w,C]=(0,M.useState)([]),[lt,ie]=(0,M.useState)([]),[Oe,mn]=(0,M.useState)(!1),[$e,Ze]=(0,M.useState)([]);(0,M.useEffect)(()=>{var it,Ee,Tt,Mt;if((it=Qe.restful)!=null&&it.data){Ze([...(Ee=Qe.restful)==null?void 0:Ee.data]);let Ut=0,dn;if((Mt=(Tt=Qe.restful)==null?void 0:Tt.data)==null||Mt.map(wt=>{var Yt;wt.id==et.id&&(Ut=wt.id),wt.file_type==0&&!dn&&(dn=wt.id),(Yt=wt==null?void 0:wt.children)==null||Yt.map(Ue=>{dn||(dn=Ue.id),Ue.id==et.id&&(Ut=wt.id)}),!wt.children&&!dn&&(dn=wt.id)}),!et.id&&dn){Y.history.push(`/ch/rest/${dn}`);return}Ut&&setTimeout(()=>{C([Ut]),ie([Number(et.id||dn)])},200)}},[Qe.restful]);const tt=(it,Ee)=>{Ee.node.file_type===0?Y.history.push(`/ch/rest/${it[0]}`):ie([...it]),console.log("Trigger Select",it,Ee)},ue=it=>{C(it),console.log("Trigger Expand",it)},V=it=>M.createElement("div",null,Lt.map((Ee,Tt)=>M.createElement("p",{key:Ee.id,className:"current",onClick:()=>{switch(Ee.id){case 1:Y.history.push(`/ch/rest/edit/${it.id}/0`);break;case 2:case 3:Fe({type:"restful/setActionTabs",payload:{key:Ee.name,data:it}});break;case 4:document.location.href=`/ch/rest/edit/${it.pid||0}/${it.id}`;break;case 5:u.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u5220\u9664\uFF1F",onOk:()=>on(void 0,null,function*(){const Mt=yield(0,Z.E1)({id:it.id});(Mt==null?void 0:Mt.status)==0&&(y.ZP.success("\u5220\u9664\u6210\u529F"),Fe({type:"restful/getRestful"}))})});break}}},Ee.name)).filter(Ee=>!!Ee).filter(Ee=>it.pid||it.file_type==0?Ee.key>3:Ee.key!=4)),we=it=>it.map(Ee=>{var Tt;const Mt=Ee.title.indexOf(ot),Ut=Ee.title.substr(0,Mt),dn=Ee.title.substr(Mt+ot.length),wt=M.createElement("span",null,Ut,M.createElement("span",{className:"c-blue"},ot),dn,(0,xe.ag)()&&M.createElement(b.Z,{placement:"right",title:ot,content:()=>V(Ee),trigger:"hover"},M.createElement("span",{className:`iconfont icon-sandian ${pe.actions}`})));return ot!==""&&Mt===-1&&!((Tt=Ee.children)!=null&&Tt.length)?null:Ee.children&&Ee.file_type===1?Jt(Vt({},Ee),{title:wt,key:Ee.key,children:we(Ee.children)}):Jt(Vt({},Ee),{title:wt,key:Ee.key,isLeaf:!0})}).filter(Ee=>!!Ee),Ne=(it,Ee)=>{let Tt;for(let Mt=0;Mt<Ee.length;Mt++){const Ut=Ee[Mt];Ut.children&&(Ut.children.some(dn=>dn.key===it)?Tt=Ut.key:Ne(it,Ut.children)&&(Tt=Ne(it,Ut.children)))}return Tt},H=it=>{const{value:Ee}=it.target,Tt=$e.map(Mt=>{var Ut;return Mt!=null&&Mt.children&&(Ut=Mt==null?void 0:Mt.children.filter(dn=>dn.title.indexOf(Ee)>-1))!=null&&Ut.length?Mt.id:null});Ct(Ee),mn(!0),console.log("expandedKeys:",Tt),C(Tt)};return console.log("loop(treeData):",we($e)),M.createElement("div",{className:pe.tree},M.createElement(Kt,{style:{marginBottom:8},placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u68C0\u7D22",onChange:H}),M.createElement(at,{multiple:!0,defaultExpandAll:!0,onSelect:tt,onExpand:ue,expandedKeys:w,selectedKeys:lt,autoExpandParent:Oe,treeData:we($e)}),M.createElement(be,null),M.createElement(E,null))};var q=(0,Y.connect)(({user:_e,loading:Pe,globalSetting:Ie,restful:Fe})=>({user:_e,globalSetting:Ie,restful:Fe,loading:Pe.models.index}))(Et),ge=Object.defineProperty,ne=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,O=(_e,Pe,Ie)=>Pe in _e?ge(_e,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):_e[Pe]=Ie,oe=(_e,Pe)=>{for(var Ie in Pe||(Pe={}))z.call(Pe,Ie)&&O(_e,Ie,Pe[Ie]);if(ne)for(var Ie of ne(Pe))De.call(Pe,Ie)&&O(_e,Ie,Pe[Ie]);return _e},Q=(_e,Pe)=>{var Ie={};for(var Fe in _e)z.call(_e,Fe)&&Pe.indexOf(Fe)<0&&(Ie[Fe]=_e[Fe]);if(_e!=null&&ne)for(var Fe of ne(_e))Pe.indexOf(Fe)<0&&De.call(_e,Fe)&&(Ie[Fe]=_e[Fe]);return Ie},le=(_e,Pe,Ie)=>new Promise((Fe,Qe)=>{var et=dt=>{try{ut(Ie.next(dt))}catch(ot){Qe(ot)}},Ye=dt=>{try{ut(Ie.throw(dt))}catch(ot){Qe(ot)}},ut=dt=>dt.done?Fe(dt.value):Promise.resolve(dt.value).then(et,Ye);ut((Ie=Ie.apply(_e,Pe)).next())});const ce=_e=>{var Pe=_e,{user:Ie,globalSetting:Fe,loading:Qe,dispatch:et,restful:Ye}=Pe,ut=Q(Pe,["user","globalSetting","loading","dispatch","restful"]),dt,ot;const Ct=(0,Y.useParams)(),[Lt,w]=(0,M.useState)(!0),C=()=>le(void 0,null,function*(){et({type:"restful/getRestful"}),Ct.id&&et({type:"restful/getRestfulDetail",payload:oe({},Ct)})});(0,M.useEffect)(()=>{w(!0),C()},[Ct.id]);const lt=()=>{et({type:"restful/setActionTabs",payload:{key:"\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"}})},ie=()=>{var Oe,mn,$e;if((Oe=Ye.restful)!=null&&Oe.data){let Ze=0;return($e=(mn=Ye.restful)==null?void 0:mn.data)==null||$e.map(tt=>{var ue;(ue=tt==null?void 0:tt.children)==null||ue.map(V=>{V.id==Ct.id&&(Ze=tt.id)}),!tt.children&&!Ze&&(Ze=tt.id)}),Ze}return 0};return M.createElement("section",null,M.createElement("aside",{className:"edu-container mt20"},M.createElement(de.Z,null,M.createElement(de.Z.Item,null,M.createElement(Y.Link,{to:"/"},"\u9996\u9875")),M.createElement(de.Z.Item,null,M.createElement(Y.Link,{to:"/ch/rest"},"API\u6587\u6863"))),M.createElement("div",{className:"mt20"},M.createElement(Ce.Z,{gutter:[20,20]},M.createElement(j.Z,{flex:"300px"},M.createElement(q,oe({},ut))),M.createElement(j.Z,{flex:"1"},M.createElement("div",{className:s.info},M.createElement("h1",{style:{fontSize:28,paddingBottom:15,borderBottom:"1px solid #eaeaea",textAlign:"center"}},(dt=Ye.restfulDetail)==null?void 0:dt.name),M.createElement(ve.Z,{value:(ot=Ye.restfulDetail)==null?void 0:ot.description}))))),(0,xe.ag)()&&M.createElement("div",{className:s.bar},M.createElement(Ce.Z,null,!!ie()&&M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u7F16\u8F91\u6587\u4EF6"},M.createElement(Y.Link,{to:`/ch/rest/edit/${ie()}/${Ct.id}`,className:"icon-zhongmingming current"}))),M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u6DFB\u52A0\u6587\u4EF6"},M.createElement(Y.Link,{to:`/ch/rest/edit/${ie()}/0`,className:"icon-tianjiatimu current"}))),M.createElement(j.Z,null,M.createElement(X.Z,{title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},M.createElement("span",{className:"icon-wenjianjia1 current",onClick:lt})))))))};var Ae=(0,Y.connect)(({user:_e,loading:Pe,globalSetting:Ie,restful:Fe})=>({user:_e,globalSetting:Ie,restful:Fe,loading:Pe.models.index}))(ce)},24768:function(qt,qe,p){"use strict";p.d(qe,{AL:function(){return U},Iy:function(){return L},Qv:function(){return y},ez:function(){return G},jb:function(){return v}});var M=p(32834),Y=p.n(M),de=p(11690),Ce=p.n(de);let j=1;function X(fe,be){const Re=fe.match(/^(\s+)(?:```)/);if(Re===null)return be;const he=Re[1];return be.split(`
|
|
|
`).map(W=>{const $=W.match(/^\s+/);if($===null)return W;const[se]=$;return se.length>=he.length?W.slice(he.length):W}).join(`
|
|
|
`)}let ve=[],xe=["<ul>"];const s=new(Y()).Renderer,A=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){ve.length=0,xe=["<ul>"]}const v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function u(fe,be,Re,he){if(be>=fe.length||fe[be].level<=Re)return be;var W=fe[be];he.push("<li><a href='#"+j+W.anchor+"'>"+W.text+"</a>"),be++;var $=[];return be=u(fe,be,W.level,$),$.length>0&&(he.push("<ul>"),$.forEach(function(se){he.push(se)}),he.push("</ul>")),he.push("</li>"),be=u(fe,be,Re,he),be}function y(){return u(ve,0,0,xe),xe.push("</ul>"),xe.join("")}const b={heading(fe){const be=A.exec(fe);if(j+=1,be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences(fe){const be=this.rules.block.fences.exec(fe);if(be){const Re=be[0];let he=X(Re,be[3]||"");const W=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(W)>=0){const $=P(),se=he;he=$,N[$]={type:"block",expression:se}}return{type:"code",raw:Re,lang:W,text:he}}}},k=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const P=()=>`__special_katext_id_${ae++}__`;let N={};function G(){return N}function U(){ae=0,N={}}function x(fe){return fe=fe.replace(k,(be,Re)=>{const he=P();return N[he]={type:"inline",expression:Re},he}),fe}const T=s.listitem;s.listitem=function(fe){return T(x(fe))};const B=s.paragraph;s.paragraph=function(fe){return B(x(fe))};const F=s.tablecell;s.tablecell=function(fe,be){return F(x(fe),be)},s.code=function(fe,be,Re){const he=(be||"").match(/\S*/)[0];return he?["latex","katex","math"].indexOf(he)>=0?`<p class='editormd-tex'>${fe}</p>`:`<pre class="prettyprint linenums"><code class="language-${be}">${Re?fe:(0,de.escape)(fe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Re?fe:(0,de.escape)(fe,!0))+"</code></pre>"},s.heading=function(fe,be,Re){let he=this.options.headerPrefix+Re.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ve.push({anchor:he,level:be,text:fe}),"<h"+be+' id="'+j+he+'">'+fe+"</h"+be+">"},Y().setOptions({silent:!0,gfm:!0,pedantic:!1}),Y().use({tokenizer:b,renderer:s}),qe.ZP=Y()},36785:function(qt,qe,p){"use strict";p.d(qe,{o2:function(){return j},yT:function(){return X}});var M=p(19127),Y=p(33166);const de=Y.i.map(ve=>`${ve}-inverse`),Ce=["success","processing","error","default","warning"];function j(ve){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,M.Z)(de),(0,M.Z)(Y.i)).includes(ve):Y.i.includes(ve)}function X(ve){return Ce.includes(ve)}},77578:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return M}});const M=Y=>Y?typeof Y=="function"?Y():Y:null},79676:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return X}});var M=p(19447);function Y(ve,xe,s,A){if(A===!1)return{adjustX:!1,adjustY:!1};const L=A&&typeof A=="object"?A:{},v={};switch(ve){case"top":case"bottom":v.shiftX=xe.dropdownArrowOffset*2+s;break;case"left":case"right":v.shiftY=xe.dropdownArrowOffsetVertical*2+s;break}const u=Object.assign(Object.assign({},v),L);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const de={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"]}},Ce={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"]}},j=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function X(ve){const{arrowWidth:xe,autoAdjustOverflow:s,arrowPointAtCenter:A,offset:L,borderRadius:v,visibleFirst:u}=ve,y=xe/2,b={};return Object.keys(de).forEach(k=>{const ae=A&&Ce[k]||de[k],P=Object.assign(Object.assign({},ae),{offset:[0,0]});switch(b[k]=P,j.has(k)&&(P.autoArrow=!1),k){case"top":case"topLeft":case"topRight":P.offset[1]=-y-L;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=y+L;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-y-L;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=y+L;break}const N=(0,M.fS)({contentRadius:v,limitVerticalRadius:!0});if(A)switch(k){case"topLeft":case"bottomLeft":P.offset[0]=-N.dropdownArrowOffset-y;break;case"topRight":case"bottomRight":P.offset[0]=N.dropdownArrowOffset+y;break;case"leftTop":case"rightTop":P.offset[1]=-N.dropdownArrowOffset-y;break;case"leftBottom":case"rightBottom":P.offset[1]=N.dropdownArrowOffset+y;break}P.overflow=Y(k,N,xe,s),u&&(P.htmlRegion="visibleFirst")}),b}},19080:function(qt,qe,p){"use strict";p.d(qe,{F:function(){return j},Z:function(){return Ce}});var M=p(92310),Y=p.n(M);const de=null;function Ce(X,ve,xe){return Y()({[`${X}-status-success`]:ve==="success",[`${X}-status-warning`]:ve==="warning",[`${X}-status-error`]:ve==="error",[`${X}-status-validating`]:ve==="validating",[`${X}-has-feedback`]:xe})}const j=(X,ve)=>ve||X},66104:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return se}});var M=p(92310),Y=p.n(M),de=p(11592),Ce=p(26112),j=p(59301),X=p(92343),ve=p(36355),xe=p(84105),s=p(91857);const A=D=>{let{children:J}=D;const{getPrefixCls:K}=j.useContext(ve.E_),g=K("breadcrumb");return j.createElement("li",{className:`${g}-separator`,"aria-hidden":"true"},J===""?J:J||"/")};A.__ANT_BREADCRUMB_SEPARATOR=!0;var L=A,v=function(D,J){var K={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&J.indexOf(g)<0&&(K[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)J.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(K[g[E]]=D[g[E]]);return K};function u(D,J){if(D.title===void 0||D.title===null)return null;const K=Object.keys(J).join("|");return typeof D.title=="object"?D.title:String(D.title).replace(new RegExp(`:(${K})`,"g"),(g,E)=>J[E]||g)}function y(D,J,K,g){if(K==null)return null;const{className:E,onClick:Z}=J,pe=v(J,["className","onClick"]),ze=Object.assign(Object.assign({},(0,Ce.Z)(pe,{data:!0,aria:!0})),{onClick:Z});return g!==void 0?j.createElement("a",Object.assign({},ze,{className:Y()(`${D}-link`,E),href:g}),K):j.createElement("span",Object.assign({},ze,{className:Y()(`${D}-link`,E)}),K)}function b(D,J){return(g,E,Z,pe,ze)=>{if(J)return J(g,E,Z,pe);const We=u(g,E);return y(D,g,We,ze)}}var k=function(D,J){var K={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&J.indexOf(g)<0&&(K[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)J.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(K[g[E]]=D[g[E]]);return K};const ae=D=>{const{prefixCls:J,separator:K="/",children:g,menu:E,overlay:Z,dropdownProps:pe,href:ze}=D,je=(Ge=>{if(E||Z){const pt=Object.assign({},pe);if(E){const ht=E||{},{items:rt}=ht,Vt=k(ht,["items"]);pt.menu=Object.assign(Object.assign({},Vt),{items:rt==null?void 0:rt.map((Jt,on)=>{var{key:Kt,title:at,label:Et,path:q}=Jt,ge=k(Jt,["key","title","label","path"]);let ne=Et!=null?Et:at;return q&&(ne=j.createElement("a",{href:`${ze}${q}`},ne)),Object.assign(Object.assign({},ge),{key:Kt!=null?Kt:on,label:ne})})})}else Z&&(pt.overlay=Z);return j.createElement(s.Z,Object.assign({placement:"bottom"},pt),j.createElement("span",{className:`${J}-overlay-link`},Ge,j.createElement(xe.Z,null)))}return Ge})(g);return je!=null?j.createElement(j.Fragment,null,j.createElement("li",null,je),K&&j.createElement(L,null,K)):null},P=D=>{const{prefixCls:J,children:K,href:g}=D,E=k(D,["prefixCls","children","href"]),{getPrefixCls:Z}=j.useContext(ve.E_),pe=Z("breadcrumb",J);return j.createElement(ae,Object.assign({},E,{prefixCls:pe}),y(pe,E,K,g))};P.__ANT_BREADCRUMB_ITEM=!0;var N=P,G=p(17313),U=p(83116),x=p(37613);const T=D=>{const{componentCls:J,iconCls:K}=D;return{[J]:Object.assign(Object.assign({},(0,G.Wf)(D)),{color:D.itemColor,fontSize:D.fontSize,[K]:{fontSize:D.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:D.linkColor,transition:`color ${D.motionDurationMid}`,padding:`0 ${D.paddingXXS}px`,borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",marginInline:-D.marginXXS,"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover}},(0,G.Qy)(D)),"li:last-child":{color:D.lastItemColor},[`${J}-separator`]:{marginInline:D.separatorMargin,color:D.separatorColor},[`${J}-link`]:{[`
|
|
|
> ${K} + span,
|
|
|
> ${K} + a
|
|
|
`]:{marginInlineStart:D.marginXXS}},[`${J}-overlay-link`]:{borderRadius:D.borderRadiusSM,height:D.lineHeight*D.fontSize,display:"inline-block",padding:`0 ${D.paddingXXS}px`,marginInline:-D.marginXXS,[`> ${K}`]:{marginInlineStart:D.marginXXS,fontSize:D.fontSizeIcon},"&:hover":{color:D.linkHoverColor,backgroundColor:D.colorBgTextHover,a:{color:D.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${D.componentCls}-rtl`]:{direction:"rtl"}})}};var B=(0,U.Z)("Breadcrumb",D=>{const J=(0,x.TS)(D,{});return[T(J)]},D=>({itemColor:D.colorTextDescription,lastItemColor:D.colorText,iconFontSize:D.fontSize,linkColor:D.colorTextDescription,linkHoverColor:D.colorText,separatorColor:D.colorTextDescription,separatorMargin:D.marginXS})),F=function(D,J){var K={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&J.indexOf(g)<0&&(K[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)J.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(K[g[E]]=D[g[E]]);return K};function fe(D){const{breadcrumbName:J,children:K}=D,g=F(D,["breadcrumbName","children"]),E=Object.assign({title:J},g);return K&&(E.menu={items:K.map(Z=>{var{breadcrumbName:pe}=Z,ze=F(Z,["breadcrumbName"]);return Object.assign(Object.assign({},ze),{title:pe})})}),E}function be(D,J){return(0,j.useMemo)(()=>D||(J?J.map(fe):null),[D,J])}var Re=function(D,J){var K={};for(var g in D)Object.prototype.hasOwnProperty.call(D,g)&&J.indexOf(g)<0&&(K[g]=D[g]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,g=Object.getOwnPropertySymbols(D);E<g.length;E++)J.indexOf(g[E])<0&&Object.prototype.propertyIsEnumerable.call(D,g[E])&&(K[g[E]]=D[g[E]]);return K};const he=(D,J)=>{if(J===void 0)return J;let K=(J||"").replace(/^\//,"");return Object.keys(D).forEach(g=>{K=K.replace(`:${g}`,D[g])}),K},W=D=>{const{prefixCls:J,separator:K="/",style:g,className:E,rootClassName:Z,routes:pe,items:ze,children:We,itemRender:je,params:Ge={}}=D,pt=Re(D,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:rt,breadcrumb:Vt}=j.useContext(ve.E_);let Jt;const on=ht("breadcrumb",J),[Kt,at]=B(on),Et=be(ze,pe),q=b(on,je);if(Et&&Et.length>0){const z=[],De=ze||pe;Jt=Et.map((O,oe)=>{const{path:Q,key:le,type:ce,menu:Ae,overlay:_e,onClick:Pe,className:Ie,separator:Fe,dropdownProps:Qe}=O,et=he(Ge,Q);et!==void 0&&z.push(et);const Ye=le!=null?le:oe;if(ce==="separator")return j.createElement(L,{key:Ye},Fe);const ut={},dt=oe===Et.length-1;Ae?ut.menu=Ae:_e&&(ut.overlay=_e);let{href:ot}=O;return z.length&&et!==void 0&&(ot=`#/${z.join("/")}`),j.createElement(ae,Object.assign({key:Ye},ut,(0,Ce.Z)(O,{data:!0,aria:!0}),{className:Ie,dropdownProps:Qe,href:ot,separator:dt?"":K,onClick:Pe,prefixCls:on}),q(O,Ge,De,z,ot))})}else if(We){const z=(0,de.Z)(We).length;Jt=(0,de.Z)(We).map((De,O)=>{if(!De)return De;const oe=O===z-1;return(0,X.Tm)(De,{separator:oe?"":K,key:O})})}const ge=Y()(on,Vt==null?void 0:Vt.className,{[`${on}-rtl`]:rt==="rtl"},E,Z,at),ne=Object.assign(Object.assign({},Vt==null?void 0:Vt.style),g);return Kt(j.createElement("nav",Object.assign({className:ge,style:ne},pt),j.createElement("ol",null,Jt)))};W.Item=N,W.Separator=L;var $=W,se=$},98447:function(qt,qe,p){"use strict";p.d(qe,{C2:function(){return j}});var M=p(17313),Y=p(37613),de=p(83116);const Ce=X=>{const{checkboxCls:ve}=X,xe=`${ve}-wrapper`;return[{[`${ve}-group`]:Object.assign(Object.assign({},(0,M.Wf)(X)),{display:"inline-flex",flexWrap:"wrap",columnGap:X.marginXS,[`> ${X.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,M.Wf)(X)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ve]:Object.assign(Object.assign({},(0,M.Wf)(X)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:X.borderRadiusSM,alignSelf:"center",[`${ve}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ve}-inner`]:Object.assign({},(0,M.oN)(X))},[`${ve}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:X.checkboxSize,height:X.checkboxSize,direction:"ltr",backgroundColor:X.colorBgContainer,border:`${X.lineWidth}px ${X.lineType} ${X.colorBorder}`,borderRadius:X.borderRadiusSM,borderCollapse:"separate",transition:`all ${X.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:X.checkboxSize/14*5,height:X.checkboxSize/14*8,border:`${X.lineWidthBold}px solid ${X.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${X.motionDurationFast} ${X.motionEaseInBack}, opacity ${X.motionDurationFast}`}},"& + span":{paddingInlineStart:X.paddingXS,paddingInlineEnd:X.paddingXS}})},{[`
|
|
|
${xe}:not(${xe}-disabled),
|
|
|
${ve}:not(${ve}-disabled)
|
|
|
`]:{[`&:hover ${ve}-inner`]:{borderColor:X.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${ve}-checked:not(${ve}-disabled) ${ve}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ve}-checked:not(${ve}-disabled):after`]:{borderColor:X.colorPrimaryHover}}},{[`${ve}-checked`]:{[`${ve}-inner`]:{backgroundColor:X.colorPrimary,borderColor:X.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${X.motionDurationMid} ${X.motionEaseOutBack} ${X.motionDurationFast}`}}},[`
|
|
|
${xe}-checked:not(${xe}-disabled),
|
|
|
${ve}-checked:not(${ve}-disabled)
|
|
|
`]:{[`&:hover ${ve}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"}}},{[ve]:{"&-indeterminate":{[`${ve}-inner`]:{backgroundColor:X.colorBgContainer,borderColor:X.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:X.fontSizeLG/2,height:X.fontSizeLG/2,backgroundColor:X.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${ve}-disabled`]:{[`&, ${ve}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ve}-inner`]:{background:X.colorBgContainerDisabled,borderColor:X.colorBorder,"&:after":{borderColor:X.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:X.colorTextDisabled},[`&${ve}-indeterminate ${ve}-inner::after`]:{background:X.colorTextDisabled}}}]};function j(X,ve){const xe=(0,Y.TS)(ve,{checkboxCls:`.${X}`,checkboxSize:ve.controlInteractiveSize});return[Ce(xe)]}qe.ZP=(0,de.Z)("Checkbox",(X,ve)=>{let{prefixCls:xe}=ve;return[j(xe,X)]})},93891:function(qt,qe,p){"use strict";var M=p(59301),Y=p(36355),de=p(64165);const Ce=j=>{const{componentName:X}=j,{getPrefixCls:ve}=(0,M.useContext)(Y.E_),xe=ve("empty");switch(X){case"Table":case"List":return M.createElement(de.Z,{image:de.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M.createElement(de.Z,{image:de.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return M.createElement(de.Z,null)}};qe.Z=Ce},91857:function(qt,qe,p){"use strict";var M=p(59301),Y=p(38819),de=p(92310),Ce=p.n(de),j=p(31561),X=p(70425),ve=p(18929),xe=p(2738),s=p(79676),A=p(53487),L=p(92343),v=p(36355),u=p(20834),y=p(40875),b=p(88088),k=p(47211);const ae=null,P=x=>{const{menu:T,arrow:B,prefixCls:F,children:fe,trigger:be,disabled:Re,dropdownRender:he,getPopupContainer:W,overlayClassName:$,rootClassName:se,open:D,onOpenChange:J,visible:K,onVisibleChange:g,mouseEnterDelay:E=.15,mouseLeaveDelay:Z=.1,autoAdjustOverflow:pe=!0,placement:ze="",overlay:We,transitionName:je}=x,{getPopupContainer:Ge,getPrefixCls:pt,direction:ht}=M.useContext(v.E_),rt=M.useMemo(()=>{const Ae=pt();return je!==void 0?je:ze.includes("top")?`${Ae}-slide-down`:`${Ae}-slide-up`},[pt,ze,je]),Vt=M.useMemo(()=>ze?ze.includes("Center")?ze.slice(0,ze.indexOf("Center")):ze:ht==="rtl"?"bottomRight":"bottomLeft",[ze,ht]),Jt=pt("dropdown",F),[on,Kt]=(0,k.Z)(Jt),[,at]=(0,b.Z)(),Et=M.Children.only(fe),q=(0,L.Tm)(Et,{className:Ce()(`${Jt}-trigger`,{[`${Jt}-rtl`]:ht==="rtl"},Et.props.className),disabled:Re}),ge=Re?[]:be;let ne;ge&&ge.includes("contextMenu")&&(ne=!0);const[z,De]=(0,ve.Z)(!1,{value:D!=null?D:K}),O=(0,X.useEvent)(Ae=>{J==null||J(Ae),g==null||g(Ae),De(Ae)}),oe=Ce()($,se,Kt,{[`${Jt}-rtl`]:ht==="rtl"}),Q=(0,s.Z)({arrowPointAtCenter:typeof B=="object"&&B.pointAtCenter,autoAdjustOverflow:pe,offset:at.marginXXS,arrowWidth:B?at.sizePopupArrow:0,borderRadius:at.borderRadius}),le=M.useCallback(()=>{De(!1)},[]),ce=()=>{let Ae;return T!=null&&T.items?Ae=M.createElement(u.default,Object.assign({},T)):typeof We=="function"?Ae=We():Ae=We,he&&(Ae=he(Ae)),Ae=M.Children.only(typeof Ae=="string"?M.createElement("span",null,Ae):Ae),M.createElement(y.J,{prefixCls:`${Jt}-menu`,expandIcon:M.createElement("span",{className:`${Jt}-menu-submenu-arrow`},M.createElement(Y.Z,{className:`${Jt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:_e=>{let{mode:Pe}=_e}},Ae)};return on(M.createElement(j.Z,Object.assign({alignPoint:ne},(0,xe.Z)(x,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:Z,visible:z,builtinPlacements:Q,arrow:!!B,overlayClassName:oe,prefixCls:Jt,getPopupContainer:W||Ge,transitionName:rt,trigger:ge,overlay:ce,placement:Vt,onVisibleChange:O}),q))};function N(x){return Object.assign(Object.assign({},x),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const G=(0,A.Z)(P,"dropdown",x=>x,N),U=x=>M.createElement(G,Object.assign({},x),M.createElement("span",null));P._InternalPanelDoNotUseOrYouWillBeFired=U,qe.Z=P},47211:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return L}});var M=p(17313),Y=p(13826),de=p(92899),Ce=p(29878),j=p(19447),X=p(83116),ve=p(37613),s=v=>{const{componentCls:u,menuCls:y,colorError:b,colorTextLightSolid:k}=v,ae=`${y}-item`;return{[`${u}, ${u}-menu-submenu`]:{[`${y} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:b,"&:hover":{color:k,backgroundColor:b}}}}}};const A=v=>{const{componentCls:u,menuCls:y,zIndexPopup:b,dropdownArrowDistance:k,sizePopupArrow:ae,antCls:P,iconCls:N,motionDurationMid:G,dropdownPaddingVertical:U,fontSize:x,dropdownEdgeChildPadding:T,colorTextDisabled:B,fontSizeIcon:F,controlPaddingHorizontal:fe,colorBgElevated:be}=v;return[{[u]:Object.assign(Object.assign({},(0,M.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-k+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${N}-down, & > ${P}-btn-icon > ${N}-down`]:{fontSize:F}},[`${u}-wrap`]:{position:"relative",[`${P}-btn > ${N}-down`]:{fontSize:F},[`${N}-down::before`]:{transition:`transform ${G}`}},[`${u}-wrap-open`]:{[`${N}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottomLeft,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottomLeft,
|
|
|
&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottom,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottom,
|
|
|
&${P}-slide-down-enter${P}-slide-down-enter-active${u}-placement-bottomRight,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${u}-placement-bottomRight`]:{animationName:Y.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-topLeft,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-topLeft,
|
|
|
&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-top,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-top,
|
|
|
&${P}-slide-up-enter${P}-slide-up-enter-active${u}-placement-topRight,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${u}-placement-topRight`]:{animationName:Y.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottomLeft,
|
|
|
&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottom,
|
|
|
&${P}-slide-down-leave${P}-slide-down-leave-active${u}-placement-bottomRight`]:{animationName:Y.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-topLeft,
|
|
|
&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-top,
|
|
|
&${P}-slide-up-leave${P}-slide-up-leave-active${u}-placement-topRight`]:{animationName:Y.ly}})},(0,j.ZP)(v,{colorBg:be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${u} ${y}`]:{position:"relative",margin:0},[`${y}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${u}, ${u}-menu-submenu`]:{[y]:Object.assign(Object.assign({padding:T,listStyleType:"none",backgroundColor:be,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,M.Qy)(v)),{[`${y}-item-group-title`]:{padding:`${U}px ${fe}px`,color:v.colorTextDescription,transition:`all ${G}`},[`${y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${y}-item-icon`]:{minWidth:x,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${G}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${y}-item, ${y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${U}px ${fe}px`,color:v.colorText,fontWeight:"normal",fontSize:x,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${G}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,M.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:B,cursor:"not-allowed","&:hover":{color:B,backgroundColor:be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${u}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${u}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:F,fontStyle:"normal"}}}),[`${y}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${y}-submenu-title`]:{paddingInlineEnd:fe+v.fontSizeSM},[`${y}-submenu-vertical`]:{position:"relative"},[`${y}-submenu${y}-submenu-disabled ${u}-menu-submenu-title`]:{[`&, ${u}-menu-submenu-arrow-icon`]:{color:B,backgroundColor:be,cursor:"not-allowed"}},[`${y}-submenu-selected ${u}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,Y.oN)(v,"slide-up"),(0,Y.oN)(v,"slide-down"),(0,de.Fm)(v,"move-up"),(0,de.Fm)(v,"move-down"),(0,Ce._y)(v,"zoom-big")]]};var L=(0,X.Z)("Dropdown",(v,u)=>{let{rootPrefixCls:y}=u;const{marginXXS:b,sizePopupArrow:k,controlHeight:ae,fontSize:P,lineHeight:N,paddingXXS:G,componentCls:U,borderRadiusLG:x}=v,T=(ae-P*N)/2,{dropdownArrowOffset:B}=(0,j.fS)({contentRadius:x}),F=(0,ve.TS)(v,{menuCls:`${U}-menu`,rootPrefixCls:y,dropdownArrowDistance:k/2+b,dropdownArrowOffset:B,dropdownPaddingVertical:T,dropdownEdgeChildPadding:G});return[A(F),s(F)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},64165:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return G}});var M=p(92310),Y=p.n(M),de=p(59301),Ce=p(36355),j=p(9763),X=p(64993),ve=p(88088),s=()=>{const[,U]=(0,ve.Z)(),T=new X.C(U.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return de.createElement("svg",{style:T,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},de.createElement("g",{fill:"none",fillRule:"evenodd"},de.createElement("g",{transform:"translate(24 31.67)"},de.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),de.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),de.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),de.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),de.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),de.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),de.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},de.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),de.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},L=()=>{const[,U]=(0,ve.Z)(),{colorFill:x,colorFillTertiary:T,colorFillQuaternary:B,colorBgContainer:F}=U,{borderColor:fe,shadowColor:be,contentColor:Re}=(0,de.useMemo)(()=>({borderColor:new X.C(x).onBackground(F).toHexShortString(),shadowColor:new X.C(T).onBackground(F).toHexShortString(),contentColor:new X.C(B).onBackground(F).toHexShortString()}),[x,T,B,F]);return de.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},de.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},de.createElement("ellipse",{fill:be,cx:"32",cy:"33",rx:"32",ry:"7"}),de.createElement("g",{fillRule:"nonzero",stroke:fe},de.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),de.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Re}))))},v=p(83116),u=p(37613);const y=U=>{const{componentCls:x,margin:T,marginXS:B,marginXL:F,fontSize:fe,lineHeight:be}=U;return{[x]:{marginInline:B,fontSize:fe,lineHeight:be,textAlign:"center",[`${x}-image`]:{height:U.emptyImgHeight,marginBottom:B,opacity:U.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${x}-description`]:{color:U.colorText},[`${x}-footer`]:{marginTop:T},"&-normal":{marginBlock:F,color:U.colorTextDisabled,[`${x}-description`]:{color:U.colorTextDisabled},[`${x}-image`]:{height:U.emptyImgHeightMD}},"&-small":{marginBlock:B,color:U.colorTextDisabled,[`${x}-image`]:{height:U.emptyImgHeightSM}}}}};var b=(0,v.Z)("Empty",U=>{const{componentCls:x,controlHeightLG:T}=U,B=(0,u.TS)(U,{emptyImgCls:`${x}-img`,emptyImgHeight:T*2.5,emptyImgHeightMD:T,emptyImgHeightSM:T*.875});return[y(B)]}),k=function(U,x){var T={};for(var B in U)Object.prototype.hasOwnProperty.call(U,B)&&x.indexOf(B)<0&&(T[B]=U[B]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,B=Object.getOwnPropertySymbols(U);F<B.length;F++)x.indexOf(B[F])<0&&Object.prototype.propertyIsEnumerable.call(U,B[F])&&(T[B[F]]=U[B[F]]);return T};const ae=de.createElement(s,null),P=de.createElement(L,null),N=U=>{var{className:x,rootClassName:T,prefixCls:B,image:F=ae,description:fe,children:be,imageStyle:Re,style:he}=U,W=k(U,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:$,direction:se,empty:D}=de.useContext(Ce.E_),J=$("empty",B),[K,g]=b(J),[E]=(0,j.Z)("Empty"),Z=typeof fe!="undefined"?fe:E==null?void 0:E.description,pe=typeof Z=="string"?Z:"empty";let ze=null;return typeof F=="string"?ze=de.createElement("img",{alt:pe,src:F}):ze=F,K(de.createElement("div",Object.assign({className:Y()(g,J,D==null?void 0:D.className,{[`${J}-normal`]:F===P,[`${J}-rtl`]:se==="rtl"},x,T),style:Object.assign(Object.assign({},D==null?void 0:D.style),he)},W),de.createElement("div",{className:`${J}-image`,style:Re},ze),Z&&de.createElement("div",{className:`${J}-description`},Z),be&&de.createElement("div",{className:`${J}-footer`},be)))};N.PRESENTED_IMAGE_DEFAULT=ae,N.PRESENTED_IMAGE_SIMPLE=P;var G=N},78241:function(qt,qe,p){"use strict";p.d(qe,{default:function(){return Yt}});var M=p(19127),Y=p(92310),de=p.n(Y),Ce=p(77900),j=p(59301),X=p(62892),ve=p(32441);function xe(Ue){const[mt,xt]=j.useState(Ue);return j.useEffect(()=>{const Me=setTimeout(()=>{xt(Ue)},Ue.length?0:10);return()=>{clearTimeout(Me)}},[Ue]),mt}var s=p(17313),A=p(29878),L=p(8378),v=p(37613),u=p(83116),b=Ue=>{const{componentCls:mt}=Ue,xt=`${mt}-show-help`,Me=`${mt}-show-help-item`;return{[xt]:{transition:`opacity ${Ue.motionDurationSlow} ${Ue.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Me]:{overflow:"hidden",transition:`height ${Ue.motionDurationSlow} ${Ue.motionEaseInOut},
|
|
|
opacity ${Ue.motionDurationSlow} ${Ue.motionEaseInOut},
|
|
|
transform ${Ue.motionDurationSlow} ${Ue.motionEaseInOut} !important`,[`&${Me}-appear, &${Me}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Me}-leave-active`]:{transform:"translateY(-5px)"}}}}};const k=Ue=>({legend:{display:"block",width:"100%",marginBottom:Ue.marginLG,padding:0,color:Ue.colorTextDescription,fontSize:Ue.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ue.lineWidth}px ${Ue.lineType} ${Ue.colorBorder}`},label:{fontSize:Ue.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 ${Ue.controlOutlineWidth}px ${Ue.controlOutline}`},output:{display:"block",paddingTop:15,color:Ue.colorText,fontSize:Ue.fontSize,lineHeight:Ue.lineHeight}}),ae=(Ue,mt)=>{const{formItemCls:xt}=Ue;return{[xt]:{[`${xt}-label > label`]:{height:mt},[`${xt}-control-input`]:{minHeight:mt}}}},P=Ue=>{const{componentCls:mt}=Ue;return{[Ue.componentCls]:Object.assign(Object.assign(Object.assign({},(0,s.Wf)(Ue)),k(Ue)),{[`${mt}-text`]:{display:"inline-block",paddingInlineEnd:Ue.paddingSM},"&-small":Object.assign({},ae(Ue,Ue.controlHeightSM)),"&-large":Object.assign({},ae(Ue,Ue.controlHeightLG))})}},N=Ue=>{const{formItemCls:mt,iconCls:xt,componentCls:Me,rootPrefixCls:Te,labelRequiredMarkColor:st,labelColor:ct,labelFontSize:kt,labelHeight:Ot,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:Bt,itemMarginBottom:Xt}=Ue;return{[mt]:Object.assign(Object.assign({},(0,s.Wf)(Ue)),{marginBottom:Xt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Te}-row`]:{display:"none"},"&-has-warning":{[`${mt}-split`]:{color:Ue.colorError}},"&-has-error":{[`${mt}-split`]:{color:Ue.colorWarning}},[`${mt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ue.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ot,color:ct,fontSize:kt,[`> ${xt}`]:{fontSize:Ue.fontSize,verticalAlign:"top"},[`&${mt}-required:not(${mt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ue.marginXXS,color:st,fontSize:Ue.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Me}-hide-required-mark &`]:{display:"none"}},[`${mt}-optional`]:{display:"inline-block",marginInlineStart:Ue.marginXXS,color:Ue.colorTextDescription,[`${Me}-hide-required-mark &`]:{display:"none"}},[`${mt}-tooltip`]:{color:Ue.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ue.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:Bt},[`&${mt}-no-colon::after`]:{content:'"\\a0"'}}},[`${mt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Te}-col-'"]):not([class*="' ${Te}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ue.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[mt]:{"&-explain, &-extra":{clear:"both",color:Ue.colorTextDescription,fontSize:Ue.fontSize,lineHeight:Ue.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ue.controlHeightSM,transition:`color ${Ue.motionDurationMid} ${Ue.motionEaseOut}`},"&-explain":{"&-error":{color:Ue.colorError},"&-warning":{color:Ue.colorWarning}}},[`&-with-help ${mt}-explain`]:{height:"auto",opacity:1},[`${mt}-feedback-icon`]:{fontSize:Ue.fontSize,textAlign:"center",visibility:"visible",animationName:A.kr,animationDuration:Ue.motionDurationMid,animationTimingFunction:Ue.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ue.colorSuccess},"&-error":{color:Ue.colorError},"&-warning":{color:Ue.colorWarning},"&-validating":{color:Ue.colorPrimary}}})}},G=Ue=>{const{componentCls:mt,formItemCls:xt}=Ue;return{[`${mt}-horizontal`]:{[`${xt}-label`]:{flexGrow:0},[`${xt}-control`]:{flex:"1 1 0",minWidth:0},[`${xt}-label[class$='-24'], ${xt}-label[class*='-24 ']`]:{[`& + ${xt}-control`]:{minWidth:"unset"}}}}},U=Ue=>{const{componentCls:mt,formItemCls:xt}=Ue;return{[`${mt}-inline`]:{display:"flex",flexWrap:"wrap",[xt]:{flex:"none",marginInlineEnd:Ue.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${xt}-label,
|
|
|
> ${xt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xt}-label`]:{flex:"none"},[`${mt}-text`]:{display:"inline-block"},[`${xt}-has-feedback`]:{display:"inline-block"}}}}},x=Ue=>({padding:Ue.verticalLabelPadding,margin:Ue.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),T=Ue=>{const{componentCls:mt,formItemCls:xt,rootPrefixCls:Me}=Ue;return{[`${xt} ${xt}-label`]:x(Ue),[mt]:{[xt]:{flexWrap:"wrap",[`${xt}-label, ${xt}-control`]:{[`&:not([class*=" ${Me}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},B=Ue=>{const{componentCls:mt,formItemCls:xt,rootPrefixCls:Me}=Ue;return{[`${mt}-vertical`]:{[xt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${mt}-item-control`]:{width:"100%"}}},[`${mt}-vertical ${xt}-label,
|
|
|
.${Me}-col-24${xt}-label,
|
|
|
.${Me}-col-xl-24${xt}-label`]:x(Ue),[`@media (max-width: ${Ue.screenXSMax}px)`]:[T(Ue),{[mt]:{[`.${Me}-col-xs-24${xt}-label`]:x(Ue)}}],[`@media (max-width: ${Ue.screenSMMax}px)`]:{[mt]:{[`.${Me}-col-sm-24${xt}-label`]:x(Ue)}},[`@media (max-width: ${Ue.screenMDMax}px)`]:{[mt]:{[`.${Me}-col-md-24${xt}-label`]:x(Ue)}},[`@media (max-width: ${Ue.screenLGMax}px)`]:{[mt]:{[`.${Me}-col-lg-24${xt}-label`]:x(Ue)}}}},F=(Ue,mt)=>(0,v.TS)(Ue,{formItemCls:`${Ue.componentCls}-item`,rootPrefixCls:mt});var fe=(0,u.Z)("Form",(Ue,mt)=>{let{rootPrefixCls:xt}=mt;const Me=F(Ue,xt);return[P(Me),N(Me),b(Me),G(Me),U(Me),B(Me),(0,L.Z)(Me),A.kr]},Ue=>({labelRequiredMarkColor:Ue.colorError,labelColor:Ue.colorTextHeading,labelFontSize:Ue.fontSize,labelHeight:Ue.controlHeight,labelColonMarginInlineStart:Ue.marginXXS/2,labelColonMarginInlineEnd:Ue.marginXS,itemMarginBottom:Ue.marginLG,verticalLabelPadding:`0 0 ${Ue.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const be=[];function Re(Ue,mt,xt){let Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ue=="string"?Ue:`${mt}-${Me}`,error:Ue,errorStatus:xt}}var W=Ue=>{let{help:mt,helpStatus:xt,errors:Me=be,warnings:Te=be,className:st,fieldId:ct,onVisibleChanged:kt}=Ue;const{prefixCls:Ot}=j.useContext(ve.Rk),$t=`${Ot}-item-explain`,[,Bt]=fe(Ot),Xt=(0,j.useMemo)(()=>(0,X.Z)(Ot),[Ot]),hn=xe(Me),Dt=xe(Te),yt=j.useMemo(()=>mt!=null?[Re(mt,"help",xt)]:[].concat((0,M.Z)(hn.map((zt,Gt)=>Re(zt,"error","error",Gt))),(0,M.Z)(Dt.map((zt,Gt)=>Re(zt,"warning","warning",Gt)))),[mt,xt,hn,Dt]),Ht={};return ct&&(Ht.id=`${ct}_help`),j.createElement(Ce.default,{motionDeadline:Xt.motionDeadline,motionName:`${Ot}-show-help`,visible:!!yt.length,onVisibleChanged:kt},zt=>{const{className:Gt,style:sn}=zt;return j.createElement("div",Object.assign({},Ht,{className:de()($t,Gt,st,Bt),style:sn,role:"alert"}),j.createElement(Ce.CSSMotionList,Object.assign({keys:yt},(0,X.Z)(Ot),{motionName:`${Ot}-show-help-item`,component:!1}),Rn=>{const{key:pn,error:Ft,errorStatus:Je,className:nt,style:vt}=Rn;return j.createElement("div",{key:pn,className:de()(nt,{[`${$t}-${Je}`]:Je}),style:vt},Ft)}))})},$=p(95013),se=p(36355),D=p(1684),J=p(52946),K=p(19716),g=p(16722);const E=["parentNode"],Z="form_item";function pe(Ue){return Ue===void 0||Ue===!1?[]:Array.isArray(Ue)?Ue:[Ue]}function ze(Ue,mt){if(!Ue.length)return;const xt=Ue.join("_");return mt?`${mt}_${xt}`:E.includes(xt)?`${Z}_${xt}`:xt}function We(Ue,mt,xt,Me,Te,st){let ct=Me;return st!==void 0?ct=st:xt.validating?ct="validating":Ue.length?ct="error":mt.length?ct="warning":(xt.touched||Te&&xt.validated)&&(ct="success"),ct}function je(Ue){return pe(Ue).join("_")}function Ge(Ue){const[mt]=(0,$.useForm)(),xt=j.useRef({}),Me=j.useMemo(()=>Ue!=null?Ue:Object.assign(Object.assign({},mt),{__INTERNAL__:{itemRef:Te=>st=>{const ct=je(Te);st?xt.current[ct]=st:delete xt.current[ct]}},scrollToField:function(Te){let st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ct=pe(Te),kt=ze(ct,Me.__INTERNAL__.name),Ot=kt?document.getElementById(kt):null;Ot&&(0,g.Z)(Ot,Object.assign({scrollMode:"if-needed",block:"nearest"},st))},getFieldInstance:Te=>{const st=je(Te);return xt.current[st]}}),[Ue,mt]);return[Me]}var pt=p(28726),ht=function(Ue,mt){var xt={};for(var Me in Ue)Object.prototype.hasOwnProperty.call(Ue,Me)&&mt.indexOf(Me)<0&&(xt[Me]=Ue[Me]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(Ue);Te<Me.length;Te++)mt.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Me[Te])&&(xt[Me[Te]]=Ue[Me[Te]]);return xt};const rt=(Ue,mt)=>{const xt=j.useContext(D.Z),{getPrefixCls:Me,direction:Te,form:st}=j.useContext(se.E_),{prefixCls:ct,className:kt,rootClassName:Ot,size:$t,disabled:Bt=xt,form:Xt,colon:hn,labelAlign:Dt,labelWrap:yt,labelCol:Ht,wrapperCol:zt,hideRequiredMark:Gt,layout:sn="horizontal",scrollToFirstError:Rn,requiredMark:pn,onFinishFailed:Ft,name:Je,style:nt,feedbackIcons:vt}=Ue,bt=ht(Ue,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ft=(0,K.Z)($t),It=j.useContext(pt.Z),_t=(0,j.useMemo)(()=>pn!==void 0?pn:st&&st.requiredMark!==void 0?st.requiredMark:!Gt,[Gt,pn,st]),jt=hn!=null?hn:st==null?void 0:st.colon,an=Me("form",ct),[nn,Sn]=fe(an),Ln=de()(an,`${an}-${sn}`,{[`${an}-hide-required-mark`]:_t===!1,[`${an}-rtl`]:Te==="rtl",[`${an}-${ft}`]:ft},Sn,st==null?void 0:st.className,kt,Ot),[Fn]=Ge(Xt),{__INTERNAL__:cn}=Fn;cn.name=Je;const rn=(0,j.useMemo)(()=>({name:Je,labelAlign:Dt,labelCol:Ht,labelWrap:yt,wrapperCol:zt,vertical:sn==="vertical",colon:jt,requiredMark:_t,itemRef:cn.itemRef,form:Fn,feedbackIcons:vt}),[Je,Dt,Ht,zt,sn,jt,_t,Fn,vt]);j.useImperativeHandle(mt,()=>Fn);const $n=(Wn,Cn)=>{if(Wn){let Nn={block:"nearest"};typeof Wn=="object"&&(Nn=Wn),Fn.scrollToField(Cn,Nn)}},An=Wn=>{if(Ft==null||Ft(Wn),Wn.errorFields.length){const Cn=Wn.errorFields[0].name;if(Rn!==void 0){$n(Rn,Cn);return}st&&st.scrollToFirstError!==void 0&&$n(st.scrollToFirstError,Cn)}};return nn(j.createElement(D.n,{disabled:Bt},j.createElement(J.q,{size:ft},j.createElement(ve.RV,Object.assign({},{validateMessages:It}),j.createElement(ve.q3.Provider,{value:rn},j.createElement($.default,Object.assign({id:Je},bt,{name:Je,onFinishFailed:An,form:Fn,style:Object.assign(Object.assign({},st==null?void 0:st.style),nt),className:Ln})))))))};var Jt=j.forwardRef(rt),on=p(41799),Kt=p(8654),at=p(92343),Et=p(11592);function q(Ue){if(typeof Ue=="function")return Ue;const mt=(0,Et.Z)(Ue);return mt.length<=1?mt[0]:mt}const ge=()=>{const{status:Ue,errors:mt=[],warnings:xt=[]}=(0,j.useContext)(ve.aM);return{status:Ue,errors:mt,warnings:xt}};ge.Context=ve.aM;var ne=ge,z=p(16089);function De(Ue){const[mt,xt]=j.useState(Ue),Me=(0,j.useRef)(null),Te=(0,j.useRef)([]),st=(0,j.useRef)(!1);j.useEffect(()=>(st.current=!1,()=>{st.current=!0,z.Z.cancel(Me.current),Me.current=null}),[]);function ct(kt){st.current||(Me.current===null&&(Te.current=[],Me.current=(0,z.Z)(()=>{Me.current=null,xt(Ot=>{let $t=Ot;return Te.current.forEach(Bt=>{$t=Bt($t)}),$t})})),Te.current.push(kt))}return[mt,ct]}function O(){const{itemRef:Ue}=j.useContext(ve.q3),mt=j.useRef({});function xt(Me,Te){const st=Te&&typeof Te=="object"&&Te.ref,ct=Me.join("_");return(mt.current.name!==ct||mt.current.originRef!==st)&&(mt.current.name=ct,mt.current.originRef=st,mt.current.ref=(0,Kt.sQ)(Ue(Me),st)),mt.current.ref}return xt}var oe=p(29194),Q=p(34280),le=p(2738),ce=p(27382),Ae=p(37028);const _e=Ue=>{const{formItemCls:mt}=Ue;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${mt}-control`]:{display:"flex"}}}};var Pe=(0,u.b)(["Form","item-item"],(Ue,mt)=>{let{rootPrefixCls:xt}=mt;const Me=F(Ue,xt);return[_e(Me)]}),Fe=Ue=>{const{prefixCls:mt,status:xt,wrapperCol:Me,children:Te,errors:st,warnings:ct,_internalItemRender:kt,extra:Ot,help:$t,fieldId:Bt,marginBottom:Xt,onErrorVisibleChanged:hn}=Ue,Dt=`${mt}-item`,yt=j.useContext(ve.q3),Ht=Me||yt.wrapperCol||{},zt=de()(`${Dt}-control`,Ht.className),Gt=j.useMemo(()=>Object.assign({},yt),[yt]);delete Gt.labelCol,delete Gt.wrapperCol;const sn=j.createElement("div",{className:`${Dt}-control-input`},j.createElement("div",{className:`${Dt}-control-input-content`},Te)),Rn=j.useMemo(()=>({prefixCls:mt,status:xt}),[mt,xt]),pn=Xt!==null||st.length||ct.length?j.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},j.createElement(ve.Rk.Provider,{value:Rn},j.createElement(W,{fieldId:Bt,errors:st,warnings:ct,help:$t,helpStatus:xt,className:`${Dt}-explain-connected`,onVisibleChanged:hn})),!!Xt&&j.createElement("div",{style:{width:0,height:Xt}})):null,Ft={};Bt&&(Ft.id=`${Bt}_extra`);const Je=Ot?j.createElement("div",Object.assign({},Ft,{className:`${Dt}-extra`}),Ot):null,nt=kt&&kt.mark==="pro_table_render"&&kt.render?kt.render(Ue,{input:sn,errorList:pn,extra:Je}):j.createElement(j.Fragment,null,sn,pn,Je);return j.createElement(ve.q3.Provider,{value:Gt},j.createElement(Ae.Z,Object.assign({},Ht,{className:zt}),nt),j.createElement(Pe,{prefixCls:mt}))},Qe=p(61485),et=p(31724),Ye=p(9763),ut=p(6848),dt=function(Ue,mt){var xt={};for(var Me in Ue)Object.prototype.hasOwnProperty.call(Ue,Me)&&mt.indexOf(Me)<0&&(xt[Me]=Ue[Me]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(Ue);Te<Me.length;Te++)mt.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Me[Te])&&(xt[Me[Te]]=Ue[Me[Te]]);return xt};function ot(Ue){return Ue?typeof Ue=="object"&&!j.isValidElement(Ue)?Ue:{title:Ue}:null}var Lt=Ue=>{let{prefixCls:mt,label:xt,htmlFor:Me,labelCol:Te,labelAlign:st,colon:ct,required:kt,requiredMark:Ot,tooltip:$t}=Ue;var Bt;const[Xt]=(0,Ye.Z)("Form"),{vertical:hn,labelAlign:Dt,labelCol:yt,labelWrap:Ht,colon:zt}=j.useContext(ve.q3);if(!xt)return null;const Gt=Te||yt||{},sn=st||Dt,Rn=`${mt}-item-label`,pn=de()(Rn,sn==="left"&&`${Rn}-left`,Gt.className,{[`${Rn}-wrap`]:!!Ht});let Ft=xt;const Je=ct===!0||zt!==!1&&ct!==!1;Je&&!hn&&typeof xt=="string"&&xt.trim()!==""&&(Ft=xt.replace(/[:|:]\s*$/,""));const vt=ot($t);if(vt){const{icon:_t=j.createElement(Qe.Z,null)}=vt,jt=dt(vt,["icon"]),an=j.createElement(ut.Z,Object.assign({},jt),j.cloneElement(_t,{className:`${mt}-item-tooltip`,title:""}));Ft=j.createElement(j.Fragment,null,Ft,an)}const bt=Ot==="optional",ft=typeof Ot=="function";ft?Ft=Ot(Ft,{required:!!kt}):bt&&!kt&&(Ft=j.createElement(j.Fragment,null,Ft,j.createElement("span",{className:`${mt}-item-optional`,title:""},(Xt==null?void 0:Xt.optional)||((Bt=et.Z.Form)===null||Bt===void 0?void 0:Bt.optional))));const It=de()({[`${mt}-item-required`]:kt,[`${mt}-item-required-mark-optional`]:bt||ft,[`${mt}-item-no-colon`]:!Je});return j.createElement(Ae.Z,Object.assign({},Gt,{className:pn}),j.createElement("label",{htmlFor:Me,className:It,title:typeof xt=="string"?xt:""},Ft))},w=p(29679),C=p(19248),lt=p(96512),ie=p(58617);const Oe={success:w.Z,warning:lt.Z,error:C.Z,validating:ie.Z};function mn(Ue){let{children:mt,errors:xt,warnings:Me,hasFeedback:Te,validateStatus:st,prefixCls:ct,meta:kt,noStyle:Ot}=Ue;const $t=`${ct}-item`,{feedbackIcons:Bt}=j.useContext(ve.q3),Xt=We(xt,Me,kt,null,!!Te,st),{isFormItemInput:hn,status:Dt}=j.useContext(ve.aM),yt=j.useMemo(()=>{var Ht;let zt;if(Te){const Rn=Te!==!0&&Te.icons||Bt,pn=Xt&&((Ht=Rn==null?void 0:Rn({status:Xt,errors:xt,warnings:Me}))===null||Ht===void 0?void 0:Ht[Xt]),Ft=Xt&&Oe[Xt];zt=pn!==!1&&Ft?j.createElement("span",{className:de()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Xt}`)},pn||j.createElement(Ft,null)):null}let Gt=!0,sn=Xt||"";return Ot&&(Gt=hn,sn=(Xt!=null?Xt:Dt)||""),{status:sn,errors:xt,warnings:Me,hasFeedback:!!Te,feedbackIcon:zt,isFormItemInput:Gt}},[Xt,Te,Ot,hn,Dt]);return j.createElement(ve.aM.Provider,{value:yt},mt)}var $e=function(Ue,mt){var xt={};for(var Me in Ue)Object.prototype.hasOwnProperty.call(Ue,Me)&&mt.indexOf(Me)<0&&(xt[Me]=Ue[Me]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(Ue);Te<Me.length;Te++)mt.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Me[Te])&&(xt[Me[Te]]=Ue[Me[Te]]);return xt};function Ze(Ue){const{prefixCls:mt,className:xt,rootClassName:Me,style:Te,help:st,errors:ct,warnings:kt,validateStatus:Ot,meta:$t,hasFeedback:Bt,hidden:Xt,children:hn,fieldId:Dt,required:yt,isRequired:Ht,onSubItemMetaChange:zt}=Ue,Gt=$e(Ue,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),sn=`${mt}-item`,{requiredMark:Rn}=j.useContext(ve.q3),pn=j.useRef(null),Ft=xe(ct),Je=xe(kt),nt=st!=null,vt=!!(nt||ct.length||kt.length),bt=!!pn.current&&(0,oe.Z)(pn.current),[ft,It]=j.useState(null);(0,Q.Z)(()=>{if(vt&&pn.current){const Sn=getComputedStyle(pn.current);It(parseInt(Sn.marginBottom,10))}},[vt,bt]);const _t=Sn=>{Sn||It(null)},an=function(){let Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ln=Sn?Ft:$t.errors,Fn=Sn?Je:$t.warnings;return We(Ln,Fn,$t,"",!!Bt,Ot)}(),nn=de()(sn,xt,Me,{[`${sn}-with-help`]:nt||Ft.length||Je.length,[`${sn}-has-feedback`]:an&&Bt,[`${sn}-has-success`]:an==="success",[`${sn}-has-warning`]:an==="warning",[`${sn}-has-error`]:an==="error",[`${sn}-is-validating`]:an==="validating",[`${sn}-hidden`]:Xt});return j.createElement("div",{className:nn,style:Te,ref:pn},j.createElement(ce.Z,Object.assign({className:`${sn}-row`},(0,le.Z)(Gt,["_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"])),j.createElement(Lt,Object.assign({htmlFor:Dt},Ue,{requiredMark:Rn,required:yt!=null?yt:Ht,prefixCls:mt})),j.createElement(Fe,Object.assign({},Ue,$t,{errors:Ft,warnings:Je,prefixCls:mt,status:an,help:st,marginBottom:ft,onErrorVisibleChanged:_t}),j.createElement(ve.qI.Provider,{value:zt},j.createElement(mn,{prefixCls:mt,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:Bt,validateStatus:an},hn)))),!!ft&&j.createElement("div",{className:`${sn}-margin-offset`,style:{marginBottom:-ft}}))}const tt="__SPLIT__",ue=null,V=j.memo(Ue=>{let{children:mt}=Ue;return mt},(Ue,mt)=>Ue.value===mt.value&&Ue.update===mt.update&&Ue.childProps.length===mt.childProps.length&&Ue.childProps.every((xt,Me)=>xt===mt.childProps[Me]));function we(Ue){return Ue!=null}function Ne(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function H(Ue){const{name:mt,noStyle:xt,className:Me,dependencies:Te,prefixCls:st,shouldUpdate:ct,rules:kt,children:Ot,required:$t,label:Bt,messageVariables:Xt,trigger:hn="onChange",validateTrigger:Dt,hidden:yt,help:Ht}=Ue,{getPrefixCls:zt}=j.useContext(se.E_),{name:Gt}=j.useContext(ve.q3),sn=q(Ot),Rn=typeof sn=="function",pn=j.useContext(ve.qI),{validateTrigger:Ft}=j.useContext($.FieldContext),Je=Dt!==void 0?Dt:Ft,nt=we(mt),vt=zt("form",st),[bt,ft]=fe(vt),It=j.useContext($.ListContext),_t=j.useRef(),[jt,an]=De({}),[nn,Sn]=(0,on.Z)(()=>Ne()),Ln=Cn=>{const Nn=It==null?void 0:It.getKey(Cn.name);if(Sn(Cn.destroy?Ne():Cn,!0),xt&&Ht!==!1&&pn){let zn=Cn.name;if(Cn.destroy)zn=_t.current||zn;else if(Nn!==void 0){const[Pn,Yn]=Nn;zn=[Pn].concat((0,M.Z)(Yn)),_t.current=zn}pn(Cn,zn)}},Fn=(Cn,Nn)=>{an(zn=>{const Pn=Object.assign({},zn),or=[].concat((0,M.Z)(Cn.name.slice(0,-1)),(0,M.Z)(Nn)).join(tt);return Cn.destroy?delete Pn[or]:Pn[or]=Cn,Pn})},[cn,rn]=j.useMemo(()=>{const Cn=(0,M.Z)(nn.errors),Nn=(0,M.Z)(nn.warnings);return Object.values(jt).forEach(zn=>{Cn.push.apply(Cn,(0,M.Z)(zn.errors||[])),Nn.push.apply(Nn,(0,M.Z)(zn.warnings||[]))}),[Cn,Nn]},[jt,nn.errors,nn.warnings]),$n=O();function An(Cn,Nn,zn){return xt&&!yt?j.createElement(mn,{prefixCls:vt,hasFeedback:Ue.hasFeedback,validateStatus:Ue.validateStatus,meta:nn,errors:cn,warnings:rn,noStyle:!0},Cn):j.createElement(Ze,Object.assign({key:"row"},Ue,{className:de()(Me,ft),prefixCls:vt,fieldId:Nn,isRequired:zn,errors:cn,warnings:rn,meta:nn,onSubItemMetaChange:Fn}),Cn)}if(!nt&&!Rn&&!Te)return bt(An(sn));let Wn={};return typeof Bt=="string"?Wn.label=Bt:mt&&(Wn.label=String(mt)),Xt&&(Wn=Object.assign(Object.assign({},Wn),Xt)),bt(j.createElement($.Field,Object.assign({},Ue,{messageVariables:Wn,trigger:hn,validateTrigger:Je,onMetaChange:Ln}),(Cn,Nn,zn)=>{const Pn=pe(mt).length&&Nn?Nn.name:[],Yn=ze(Pn,Gt),or=$t!==void 0?$t:!!(kt&&kt.some(Ke=>{if(Ke&&typeof Ke=="object"&&Ke.required&&!Ke.warningOnly)return!0;if(typeof Ke=="function"){const un=Ke(zn);return un&&un.required&&!un.warningOnly}return!1})),Tn=Object.assign({},Cn);let tn=null;if(Array.isArray(sn)&&nt)tn=sn;else if(!(Rn&&(!(ct||Te)||nt))){if(!(Te&&!Rn&&!nt))if((0,at.l$)(sn)){const Ke=Object.assign(Object.assign({},sn.props),Tn);if(Ke.id||(Ke.id=Yn),Ht||cn.length>0||rn.length>0||Ue.extra){const Hn=[];(Ht||cn.length>0)&&Hn.push(`${Yn}_help`),Ue.extra&&Hn.push(`${Yn}_extra`),Ke["aria-describedby"]=Hn.join(" ")}cn.length>0&&(Ke["aria-invalid"]="true"),or&&(Ke["aria-required"]="true"),(0,Kt.Yr)(sn)&&(Ke.ref=$n(Pn,sn)),new Set([].concat((0,M.Z)(pe(hn)),(0,M.Z)(pe(Je)))).forEach(Hn=>{Ke[Hn]=function(){for(var Gn,nr,rr,Un,qn,yn=arguments.length,ln=new Array(yn),Bn=0;Bn<yn;Bn++)ln[Bn]=arguments[Bn];(rr=Tn[Hn])===null||rr===void 0||(Gn=rr).call.apply(Gn,[Tn].concat(ln)),(qn=(Un=sn.props)[Hn])===null||qn===void 0||(nr=qn).call.apply(nr,[Un].concat(ln))}});const On=[Ke["aria-required"],Ke["aria-invalid"],Ke["aria-describedby"]];tn=j.createElement(V,{value:Tn[Ue.valuePropName||"value"],update:sn,childProps:On},(0,at.Tm)(sn,Ke))}else Rn&&(ct||Te)&&!nt?tn=sn(zn):tn=sn}return An(tn,Yn,or)}))}const it=H;it.useStatus=ne;var Ee=it,Tt=function(Ue,mt){var xt={};for(var Me in Ue)Object.prototype.hasOwnProperty.call(Ue,Me)&&mt.indexOf(Me)<0&&(xt[Me]=Ue[Me]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(Ue);Te<Me.length;Te++)mt.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Me[Te])&&(xt[Me[Te]]=Ue[Me[Te]]);return xt},Ut=Ue=>{var{prefixCls:mt,children:xt}=Ue,Me=Tt(Ue,["prefixCls","children"]);const{getPrefixCls:Te}=j.useContext(se.E_),st=Te("form",mt),ct=j.useMemo(()=>({prefixCls:st,status:"error"}),[st]);return j.createElement($.List,Object.assign({},Me),(kt,Ot,$t)=>j.createElement(ve.Rk.Provider,{value:ct},xt(kt.map(Bt=>Object.assign(Object.assign({},Bt),{fieldKey:Bt.key})),Ot,{errors:$t.errors,warnings:$t.warnings})))};function dn(){const{form:Ue}=(0,j.useContext)(ve.q3);return Ue}const wt=Jt;wt.Item=Ee,wt.List=Ut,wt.ErrorList=W,wt.useForm=Ge,wt.useFormInstance=dn,wt.useWatch=$.useWatch,wt.Provider=ve.RV,wt.create=()=>{};var Yt=wt},9432:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return N},n:function(){return ae}});var M=p(19248),Y=p(92310),de=p.n(Y),Ce=p(93681),j=p(8654),X=p(59301),ve=p(19080),xe=p(36355),s=p(1684),A=p(19716),L=p(32441),v=p(33234),u=p(59412),y=p(9937);function b(G){return!!(G.prefix||G.suffix||G.allowClear)}var k=function(G,U){var x={};for(var T in G)Object.prototype.hasOwnProperty.call(G,T)&&U.indexOf(T)<0&&(x[T]=G[T]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,T=Object.getOwnPropertySymbols(G);B<T.length;B++)U.indexOf(T[B])<0&&Object.prototype.propertyIsEnumerable.call(G,T[B])&&(x[T[B]]=G[T[B]]);return x};function ae(G,U){if(!G)return;G.focus(U);const{cursor:x}=U||{};if(x){const T=G.value.length;switch(x){case"start":G.setSelectionRange(0,0);break;case"end":G.setSelectionRange(T,T);break;default:G.setSelectionRange(0,T);break}}}var N=(0,X.forwardRef)((G,U)=>{var x;const{prefixCls:T,bordered:B=!0,status:F,size:fe,disabled:be,onBlur:Re,onFocus:he,suffix:W,allowClear:$,addonAfter:se,addonBefore:D,className:J,style:K,styles:g,rootClassName:E,onChange:Z,classNames:pe}=G,ze=k(G,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:We,direction:je,input:Ge}=X.useContext(xe.E_),pt=We("input",T),ht=(0,X.useRef)(null),[rt,Vt]=(0,y.ZP)(pt),{compactSize:Jt,compactItemClassnames:on}=(0,v.ri)(pt,je),Kt=(0,A.Z)(Pe=>{var Ie;return(Ie=fe!=null?fe:Jt)!==null&&Ie!==void 0?Ie:Pe}),at=X.useContext(s.Z),Et=be!=null?be:at,{status:q,hasFeedback:ge,feedbackIcon:ne}=(0,X.useContext)(L.aM),z=(0,ve.F)(q,F),De=b(G)||!!ge,O=(0,X.useRef)(De);(0,X.useEffect)(()=>{var Pe;De&&O.current,O.current=De},[De]);const oe=(0,u.Z)(ht,!0),Q=Pe=>{oe(),Re==null||Re(Pe)},le=Pe=>{oe(),he==null||he(Pe)},ce=Pe=>{oe(),Z==null||Z(Pe)},Ae=(ge||W)&&X.createElement(X.Fragment,null,W,ge&&ne);let _e;return typeof $=="object"&&($!=null&&$.clearIcon)?_e=$:$&&(_e={clearIcon:X.createElement(M.Z,null)}),rt(X.createElement(Ce.default,Object.assign({ref:(0,j.sQ)(U,ht),prefixCls:pt,autoComplete:Ge==null?void 0:Ge.autoComplete},ze,{disabled:Et,onBlur:Q,onFocus:le,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),K),styles:Object.assign(Object.assign({},Ge==null?void 0:Ge.styles),g),suffix:Ae,allowClear:_e,className:de()(J,E,on,Ge==null?void 0:Ge.className),onChange:ce,addonAfter:se&&X.createElement(v.BR,null,X.createElement(L.Ux,{override:!0,status:!0},se)),addonBefore:D&&X.createElement(v.BR,null,X.createElement(L.Ux,{override:!0,status:!0},D)),classNames:Object.assign(Object.assign(Object.assign({},pe),Ge==null?void 0:Ge.classNames),{input:de()({[`${pt}-sm`]:Kt==="small",[`${pt}-lg`]:Kt==="large",[`${pt}-rtl`]:je==="rtl",[`${pt}-borderless`]:!B},!De&&(0,ve.Z)(pt,z),pe==null?void 0:pe.input,(x=Ge==null?void 0:Ge.classNames)===null||x===void 0?void 0:x.input,Vt)}),classes:{affixWrapper:de()({[`${pt}-affix-wrapper-sm`]:Kt==="small",[`${pt}-affix-wrapper-lg`]:Kt==="large",[`${pt}-affix-wrapper-rtl`]:je==="rtl",[`${pt}-affix-wrapper-borderless`]:!B},(0,ve.Z)(`${pt}-affix-wrapper`,z,ge),Vt),wrapper:de()({[`${pt}-group-rtl`]:je==="rtl"},Vt),group:de()({[`${pt}-group-wrapper-sm`]:Kt==="small",[`${pt}-group-wrapper-lg`]:Kt==="large",[`${pt}-group-wrapper-rtl`]:je==="rtl",[`${pt}-group-wrapper-disabled`]:Et},(0,ve.Z)(`${pt}-group-wrapper`,z,ge),Vt)}})))})},1643:function(qt,qe,p){"use strict";var M=p(19248),Y=p(92310),de=p.n(Y),Ce=p(9296),j=p(59301),X=p(19080),ve=p(36355),xe=p(1684),s=p(19716),A=p(32441),L=p(9432),v=p(9937),u=function(b,k){var ae={};for(var P in b)Object.prototype.hasOwnProperty.call(b,P)&&k.indexOf(P)<0&&(ae[P]=b[P]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,P=Object.getOwnPropertySymbols(b);N<P.length;N++)k.indexOf(P[N])<0&&Object.prototype.propertyIsEnumerable.call(b,P[N])&&(ae[P[N]]=b[P[N]]);return ae};const y=(0,j.forwardRef)((b,k)=>{const{prefixCls:ae,bordered:P=!0,size:N,disabled:G,status:U,allowClear:x,showCount:T,classNames:B,rootClassName:F,className:fe}=b,be=u(b,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Re,direction:he}=j.useContext(ve.E_),W=(0,s.Z)(N),$=j.useContext(xe.Z),se=G!=null?G:$,{status:D,hasFeedback:J,feedbackIcon:K}=j.useContext(A.aM),g=(0,X.F)(D,U),E=j.useRef(null);j.useImperativeHandle(k,()=>{var je;return{resizableTextArea:(je=E.current)===null||je===void 0?void 0:je.resizableTextArea,focus:Ge=>{var pt,ht;(0,L.n)((ht=(pt=E.current)===null||pt===void 0?void 0:pt.resizableTextArea)===null||ht===void 0?void 0:ht.textArea,Ge)},blur:()=>{var Ge;return(Ge=E.current)===null||Ge===void 0?void 0:Ge.blur()}}});const Z=Re("input",ae);let pe;typeof x=="object"&&(x!=null&&x.clearIcon)?pe=x:x&&(pe={clearIcon:j.createElement(M.Z,null)});const[ze,We]=(0,v.ZP)(Z);return ze(j.createElement(Ce.default,Object.assign({},be,{disabled:se,allowClear:pe,className:de()(fe,F),classes:{affixWrapper:de()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:he==="rtl",[`${Z}-affix-wrapper-borderless`]:!P,[`${Z}-affix-wrapper-sm`]:W==="small",[`${Z}-affix-wrapper-lg`]:W==="large",[`${Z}-textarea-show-count`]:T},(0,X.Z)(`${Z}-affix-wrapper`,g),We)},classNames:Object.assign(Object.assign({},B),{textarea:de()({[`${Z}-borderless`]:!P,[`${Z}-sm`]:W==="small",[`${Z}-lg`]:W==="large"},(0,X.Z)(Z,g),We,B==null?void 0:B.textarea)}),prefixCls:Z,suffix:J&&j.createElement("span",{className:`${Z}-textarea-suffix`},K),showCount:T,ref:E})))});qe.Z=y},59412:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Y}});var M=p(59301);function Y(de,Ce){const j=(0,M.useRef)([]),X=()=>{j.current.push(setTimeout(()=>{var ve,xe,s,A;!((ve=de.current)===null||ve===void 0)&&ve.input&&((xe=de.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((s=de.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((A=de.current)===null||A===void 0||A.input.removeAttribute("value"))}))};return(0,M.useEffect)(()=>(Ce&&X(),()=>j.current.forEach(ve=>{ve&&clearTimeout(ve)})),[]),X}},92832:function(qt,qe,p){"use strict";p.d(qe,{default:function(){return W}});var M=p(92310),Y=p.n(M),de=p(59301),Ce=p(36355),j=p(32441),X=p(9937),xe=$=>{const{getPrefixCls:se,direction:D}=(0,de.useContext)(Ce.E_),{prefixCls:J,className:K}=$,g=se("input-group",J),E=se("input"),[Z,pe]=(0,X.ZP)(E),ze=Y()(g,{[`${g}-lg`]:$.size==="large",[`${g}-sm`]:$.size==="small",[`${g}-compact`]:$.compact,[`${g}-rtl`]:D==="rtl"},pe,K),We=(0,de.useContext)(j.aM),je=(0,de.useMemo)(()=>Object.assign(Object.assign({},We),{isFormItemInput:!1}),[We]);return Z(de.createElement("span",{className:ze,style:$.style,onMouseEnter:$.onMouseEnter,onMouseLeave:$.onMouseLeave,onFocus:$.onFocus,onBlur:$.onBlur},de.createElement(j.aM.Provider,{value:je},$.children)))},s=p(9432),A=p(73331),L=p(15277),v=p(2738),u=p(8654),y=p(59412),b=function($,se){var D={};for(var J in $)Object.prototype.hasOwnProperty.call($,J)&&se.indexOf(J)<0&&(D[J]=$[J]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,J=Object.getOwnPropertySymbols($);K<J.length;K++)se.indexOf(J[K])<0&&Object.prototype.propertyIsEnumerable.call($,J[K])&&(D[J[K]]=$[J[K]]);return D};const k=$=>$?de.createElement(L.Z,null):de.createElement(A.Z,null),ae={click:"onClick",hover:"onMouseOver"};var N=de.forwardRef(($,se)=>{const{visibilityToggle:D=!0}=$,J=typeof D=="object"&&D.visible!==void 0,[K,g]=(0,de.useState)(()=>J?D.visible:!1),E=(0,de.useRef)(null);de.useEffect(()=>{J&&g(D.visible)},[J,D]);const Z=(0,y.Z)(E),pe=()=>{const{disabled:Et}=$;Et||(K&&Z(),g(q=>{var ge;const ne=!q;return typeof D=="object"&&((ge=D.onVisibleChange)===null||ge===void 0||ge.call(D,ne)),ne}))},ze=Et=>{const{action:q="click",iconRender:ge=k}=$,ne=ae[q]||"",z=ge(K),De={[ne]:pe,className:`${Et}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return de.cloneElement(de.isValidElement(z)?z:de.createElement("span",null,z),De)},{className:We,prefixCls:je,inputPrefixCls:Ge,size:pt}=$,ht=b($,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rt}=de.useContext(Ce.E_),Vt=rt("input",Ge),Jt=rt("input-password",je),on=D&&ze(Jt),Kt=Y()(Jt,We,{[`${Jt}-${pt}`]:!!pt}),at=Object.assign(Object.assign({},(0,v.Z)(ht,["suffix","iconRender","visibilityToggle"])),{type:K?"text":"password",className:Kt,prefixCls:Vt,suffix:on});return pt&&(at.size=pt),de.createElement(s.Z,Object.assign({ref:(0,u.sQ)(se,E)},at))}),G=p(47472),U=p(92343),x=p(3113),T=p(19716),B=p(33234),F=function($,se){var D={};for(var J in $)Object.prototype.hasOwnProperty.call($,J)&&se.indexOf(J)<0&&(D[J]=$[J]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,J=Object.getOwnPropertySymbols($);K<J.length;K++)se.indexOf(J[K])<0&&Object.prototype.propertyIsEnumerable.call($,J[K])&&(D[J[K]]=$[J[K]]);return D},be=de.forwardRef(($,se)=>{const{prefixCls:D,inputPrefixCls:J,className:K,size:g,suffix:E,enterButton:Z=!1,addonAfter:pe,loading:ze,disabled:We,onSearch:je,onChange:Ge,onCompositionStart:pt,onCompositionEnd:ht}=$,rt=F($,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Vt,direction:Jt}=de.useContext(Ce.E_),on=de.useRef(!1),Kt=Vt("input-search",D),at=Vt("input",J),{compactSize:Et}=(0,B.ri)(Kt,Jt),q=(0,T.Z)(Fe=>{var Qe;return(Qe=g!=null?g:Et)!==null&&Qe!==void 0?Qe:Fe}),ge=de.useRef(null),ne=Fe=>{Fe&&Fe.target&&Fe.type==="click"&&je&&je(Fe.target.value,Fe,{source:"clear"}),Ge&&Ge(Fe)},z=Fe=>{var Qe;document.activeElement===((Qe=ge.current)===null||Qe===void 0?void 0:Qe.input)&&Fe.preventDefault()},De=Fe=>{var Qe,et;je&&je((et=(Qe=ge.current)===null||Qe===void 0?void 0:Qe.input)===null||et===void 0?void 0:et.value,Fe,{source:"input"})},O=Fe=>{on.current||ze||De(Fe)},oe=typeof Z=="boolean"?de.createElement(G.Z,null):null,Q=`${Kt}-button`;let le;const ce=Z||{},Ae=ce.type&&ce.type.__ANT_BUTTON===!0;Ae||ce.type==="button"?le=(0,U.Tm)(ce,Object.assign({onMouseDown:z,onClick:Fe=>{var Qe,et;(et=(Qe=ce==null?void 0:ce.props)===null||Qe===void 0?void 0:Qe.onClick)===null||et===void 0||et.call(Qe,Fe),De(Fe)},key:"enterButton"},Ae?{className:Q,size:q}:{})):le=de.createElement(x.ZP,{className:Q,type:Z?"primary":void 0,size:q,disabled:We,key:"enterButton",onMouseDown:z,onClick:De,loading:ze,icon:oe},Z),pe&&(le=[le,(0,U.Tm)(pe,{key:"addonAfter"})]);const _e=Y()(Kt,{[`${Kt}-rtl`]:Jt==="rtl",[`${Kt}-${q}`]:!!q,[`${Kt}-with-button`]:!!Z},K),Pe=Fe=>{on.current=!0,pt==null||pt(Fe)},Ie=Fe=>{on.current=!1,ht==null||ht(Fe)};return de.createElement(s.Z,Object.assign({ref:(0,u.sQ)(ge,se),onPressEnter:O},rt,{size:q,onCompositionStart:Pe,onCompositionEnd:Ie,prefixCls:at,addonAfter:le,suffix:E,onChange:ne,className:_e,disabled:We}))}),Re=p(1643);const he=s.Z;he.Group=xe,he.Search=be,he.TextArea=Re.Z,he.Password=N;var W=he},9937:function(qt,qe,p){"use strict";p.d(qe,{M1:function(){return ve},TM:function(){return U},Xy:function(){return xe},bi:function(){return L},e5:function(){return G},ik:function(){return v},nz:function(){return j},pU:function(){return X},s7:function(){return u},x0:function(){return A}});var M=p(17313),Y=p(74207),de=p(37613),Ce=p(83116);const j=x=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:x,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),X=x=>({borderColor:x.hoverBorderColor}),ve=x=>({borderColor:x.activeBorderColor,boxShadow:x.activeShadow,outline:0}),xe=x=>({color:x.colorTextDisabled,backgroundColor:x.colorBgContainerDisabled,borderColor:x.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},X((0,de.TS)(x,{hoverBorderColor:x.colorBorder})))}),s=x=>{const{paddingBlockLG:T,fontSizeLG:B,lineHeightLG:F,borderRadiusLG:fe,paddingInlineLG:be}=x;return{padding:`${T}px ${be}px`,fontSize:B,lineHeight:F,borderRadius:fe}},A=x=>({padding:`${x.paddingBlockSM}px ${x.paddingInlineSM}px`,borderRadius:x.borderRadiusSM}),L=(x,T)=>{const{componentCls:B,colorError:F,colorWarning:fe,errorActiveShadow:be,warningActiveShadow:Re,colorErrorBorderHover:he,colorWarningBorderHover:W}=x;return{[`&-status-error:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:F,"&:hover":{borderColor:he},"&:focus, &-focused":Object.assign({},ve((0,de.TS)(x,{activeBorderColor:F,activeShadow:be}))),[`${B}-prefix, ${B}-suffix`]:{color:F}},[`&-status-warning:not(${T}-disabled):not(${T}-borderless)${T}`]:{borderColor:fe,"&:hover":{borderColor:W},"&:focus, &-focused":Object.assign({},ve((0,de.TS)(x,{activeBorderColor:fe,activeShadow:Re}))),[`${B}-prefix, ${B}-suffix`]:{color:fe}}}},v=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}`},j(x.colorTextPlaceholder)),{"&:hover":Object.assign({},X(x)),"&:focus, &-focused":Object.assign({},ve(x)),"&-disabled, &[disabled]":Object.assign({},xe(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({},s(x)),"&-sm":Object.assign({},A(x)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u=x=>{const{componentCls:T,antCls:B}=x;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:x.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${T}, &-lg > ${T}-group-addon`]:Object.assign({},s(x)),[`&-sm ${T}, &-sm > ${T}-group-addon`]:Object.assign({},A(x)),[`&-lg ${B}-select-single ${B}-select-selector`]:{height:x.controlHeightLG},[`&-sm ${B}-select-single ${B}-select-selector`]:{height:x.controlHeightSM},[`> ${T}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${T}-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,[`${B}-select`]:{margin:`-${x.paddingBlock+1}px -${x.paddingInline}px`,[`&${B}-select-single:not(${B}-select-customize-input)`]:{[`${B}-select-selector`]:{backgroundColor:"inherit",border:`${x.lineWidth}px ${x.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${B}-select-selector`]:{color:x.colorPrimary}}},[`${B}-cascader-picker`]:{margin:`-9px -${x.paddingInline}px`,backgroundColor:"transparent",[`${B}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${T}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${T}-search-with-button &`]:{zIndex:0}}},[`> ${T}:first-child, ${T}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${B}-select ${B}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${T}-affix-wrapper`]:{[`&:not(:first-child) ${T}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${T}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${T}:last-child, ${T}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${B}-select ${B}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${T}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${T}-search &`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius}},[`&:not(:first-child), ${T}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${T}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,M.dF)()),{[`${T}-group-addon, ${T}-group-wrap, > ${T}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:x.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${T}-affix-wrapper,
|
|
|
& > ${T}-number-affix-wrapper,
|
|
|
& > ${B}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-x.lineWidth,borderInlineEndWidth:x.lineWidth},[`${T}`]:{float:"none"},[`& > ${B}-select > ${B}-select-selector,
|
|
|
& > ${B}-select-auto-complete ${T},
|
|
|
& > ${B}-cascader-picker ${T},
|
|
|
& > ${T}-group-wrapper ${T}`]:{borderInlineEndWidth:x.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${B}-select-focused`]:{zIndex:1},[`& > ${B}-select > ${B}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${B}-select:first-child > ${B}-select-selector,
|
|
|
& > ${B}-select-auto-complete:first-child ${T},
|
|
|
& > ${B}-cascader-picker:first-child ${T}`]:{borderStartStartRadius:x.borderRadius,borderEndStartRadius:x.borderRadius},[`& > *:last-child,
|
|
|
& > ${B}-select:last-child > ${B}-select-selector,
|
|
|
& > ${B}-cascader-picker:last-child ${T},
|
|
|
& > ${B}-cascader-picker-focused:last-child ${T}`]:{borderInlineEndWidth:x.lineWidth,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius},[`& > ${B}-select-auto-complete ${T}`]:{verticalAlign:"top"},[`${T}-group-wrapper + ${T}-group-wrapper`]:{marginInlineStart:-x.lineWidth,[`${T}-affix-wrapper`]:{borderRadius:0}},[`${T}-group-wrapper:not(:last-child)`]:{[`&${T}-search > ${T}-group`]:{[`& > ${T}-group-addon > ${T}-search-button`]:{borderRadius:0},[`& > ${T}`]:{borderStartStartRadius:x.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x.borderRadius}}}})}},y=x=>{const{componentCls:T,controlHeightSM:B,lineWidth:F}=x,be=(B-F*2-16)/2;return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,M.Wf)(x)),v(x)),L(x,T)),{'&[type="color"]':{height:x.controlHeight,[`&${T}-lg`]:{height:x.controlHeightLG},[`&${T}-sm`]:{height:B,paddingTop:be,paddingBottom:be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},b=x=>{const{componentCls:T}=x;return{[`${T}-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`}}}},k=x=>{const{componentCls:T,inputAffixPadding:B,colorTextDescription:F,motionDurationSlow:fe,colorIcon:be,colorIconHover:Re,iconCls:he}=x;return{[`${T}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(x)),{display:"inline-flex",[`&:not(${T}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},X(x)),{zIndex:1,[`${T}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${T}[disabled]`]:{background:"transparent"}},[`> input${T}`]:{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"'},[`${T}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:x.paddingXS}},"&-show-count-suffix":{color:F},"&-show-count-has-suffix":{marginInlineEnd:x.paddingXXS},"&-prefix":{marginInlineEnd:B},"&-suffix":{marginInlineStart:B}}}),b(x)),{[`${he}${T}-password-icon`]:{color:be,cursor:"pointer",transition:`all ${fe}`,"&:hover":{color:Re}}}),L(x,`${T}-affix-wrapper`))}},ae=x=>{const{componentCls:T,colorError:B,colorWarning:F,borderRadiusLG:fe,borderRadiusSM:be}=x;return{[`${T}-group`]:Object.assign(Object.assign(Object.assign({},(0,M.Wf)(x)),u(x)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${T}-group-addon`]:{borderRadius:fe,fontSize:x.fontSizeLG}},"&-sm":{[`${T}-group-addon`]:{borderRadius:be}},"&-status-error":{[`${T}-group-addon`]:{color:B,borderColor:B}},"&-status-warning":{[`${T}-group-addon`]:{color:F,borderColor:F}},"&-disabled":{[`${T}-group-addon`]:Object.assign({},xe(x))},[`&:not(${T}-compact-first-item):not(${T}-compact-last-item)${T}-compact-item`]:{[`${T}, ${T}-group-addon`]:{borderRadius:0}},[`&:not(${T}-compact-last-item)${T}-compact-first-item`]:{[`${T}, ${T}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${T}-compact-first-item)${T}-compact-last-item`]:{[`${T}, ${T}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},P=x=>{const{componentCls:T,antCls:B}=x,F=`${T}-search`;return{[F]:{[`${T}`]:{"&:hover, &:focus":{borderColor:x.colorPrimaryHover,[`+ ${T}-group-addon ${F}-button:not(${B}-btn-primary)`]:{borderInlineStartColor:x.colorPrimaryHover}}},[`${T}-affix-wrapper`]:{borderRadius:0},[`${T}-lg`]:{lineHeight:x.lineHeightLG-2e-4},[`> ${T}-group`]:{[`> ${T}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${F}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:x.borderRadius,borderEndEndRadius:x.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${F}-button:not(${B}-btn-primary)`]:{color:x.colorTextDescription,"&:hover":{color:x.colorPrimaryHover},"&:active":{color:x.colorPrimaryActive},[`&${B}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${F}-button`]:{height:x.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${F}-button`]:{height:x.controlHeightLG},[`&-small ${F}-button`]:{height:x.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${T}-compact-item`]:{[`&:not(${T}-compact-last-item)`]:{[`${T}-group-addon`]:{[`${T}-search-button`]:{marginInlineEnd:-x.lineWidth,borderRadius:0}}},[`&:not(${T}-compact-first-item)`]:{[`${T},${T}-affix-wrapper`]:{borderRadius:0}},[`> ${T}-group-addon ${T}-search-button,
|
|
|
> ${T},
|
|
|
${T}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${T}-affix-wrapper-focused`]:{zIndex:2}}}}},N=x=>{const{componentCls:T,paddingLG:B}=x,F=`${T}-textarea`;return{[F]:{position:"relative","&-show-count":{[`> ${T}`]:{height:"100%"},[`${T}-data-count`]:{position:"absolute",bottom:-x.fontSize*x.lineHeight,insetInlineEnd:0,color:x.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${T}`]:{paddingInlineEnd:B}},[`&-affix-wrapper${F}-has-feedback`]:{[`${T}`]:{paddingInlineEnd:B}},[`&-affix-wrapper${T}-affix-wrapper`]:{padding:0,[`> textarea${T}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${T}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${T}-clear-icon`]:{position:"absolute",insetInlineEnd:x.paddingXS,insetBlockStart:x.paddingXS},[`${F}-suffix`]:{position:"absolute",top:0,insetInlineEnd:x.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function G(x){return(0,de.TS)(x,{inputAffixPadding:x.paddingXXS})}const U=x=>{const{controlHeight:T,fontSize:B,lineHeight:F,lineWidth:fe,controlHeightSM:be,controlHeightLG:Re,fontSizeLG:he,lineHeightLG:W,paddingSM:$,controlPaddingHorizontalSM:se,controlPaddingHorizontal:D,colorFillAlter:J,colorPrimaryHover:K,controlOutlineWidth:g,controlOutline:E,colorErrorOutline:Z,colorWarningOutline:pe}=x;return{paddingBlock:Math.max(Math.round((T-B*F)/2*10)/10-fe,3),paddingBlockSM:Math.max(Math.round((be-B*F)/2*10)/10-fe,0),paddingBlockLG:Math.ceil((Re-he*W)/2*10)/10-fe,paddingInline:$-fe,paddingInlineSM:se-fe,paddingInlineLG:D-fe,addonBg:J,activeBorderColor:K,hoverBorderColor:K,activeShadow:`0 0 0 ${g}px ${E}`,errorActiveShadow:`0 0 0 ${g}px ${Z}`,warningActiveShadow:`0 0 0 ${g}px ${pe}`}};qe.ZP=(0,Ce.Z)("Input",x=>{const T=(0,de.TS)(x,G(x));return[y(T),N(T),k(T),ae(T),P(T),(0,Y.c)(T)]},U)},45818:function(qt,qe,p){"use strict";p.d(qe,{D:function(){return G},Z:function(){return T}});var M=p(96663),Y=p(59301),de={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"},Ce=de,j=p(7657),X=function(F,fe){return Y.createElement(j.Z,(0,M.Z)({},F,{ref:fe,icon:Ce}))},ve=Y.forwardRef(X),xe=ve,s=p(33853),A=p(38819),L=p(92310),v=p.n(L),u=p(2738),b=B=>!isNaN(parseFloat(B))&&isFinite(B),k=p(36355),ae=p(84966),P=function(B,F){var fe={};for(var be in B)Object.prototype.hasOwnProperty.call(B,be)&&F.indexOf(be)<0&&(fe[be]=B[be]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,be=Object.getOwnPropertySymbols(B);Re<be.length;Re++)F.indexOf(be[Re])<0&&Object.prototype.propertyIsEnumerable.call(B,be[Re])&&(fe[be[Re]]=B[be[Re]]);return fe};const N={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},G=Y.createContext({}),U=(()=>{let B=0;return function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return B+=1,`${F}${B}`}})();var T=Y.forwardRef((B,F)=>{const{prefixCls:fe,className:be,trigger:Re,children:he,defaultCollapsed:W=!1,theme:$="dark",style:se={},collapsible:D=!1,reverseArrow:J=!1,width:K=200,collapsedWidth:g=80,zeroWidthTriggerStyle:E,breakpoint:Z,onCollapse:pe,onBreakpoint:ze}=B,We=P(B,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,Y.useContext)(ae.Gs),[Ge,pt]=(0,Y.useState)("collapsed"in B?B.collapsed:W),[ht,rt]=(0,Y.useState)(!1);(0,Y.useEffect)(()=>{"collapsed"in B&&pt(B.collapsed)},[B.collapsed]);const Vt=(q,ge)=>{"collapsed"in B||pt(q),pe==null||pe(q,ge)},Jt=(0,Y.useRef)();Jt.current=q=>{rt(q.matches),ze==null||ze(q.matches),Ge!==q.matches&&Vt(q.matches,"responsive")},(0,Y.useEffect)(()=>{function q(ne){return Jt.current(ne)}let ge;if(typeof window!="undefined"){const{matchMedia:ne}=window;if(ne&&Z&&Z in N){ge=ne(`(max-width: ${N[Z]})`);try{ge.addEventListener("change",q)}catch(z){ge.addListener(q)}q(ge)}}return()=>{try{ge==null||ge.removeEventListener("change",q)}catch(ne){ge==null||ge.removeListener(q)}}},[Z]),(0,Y.useEffect)(()=>{const q=U("ant-sider-");return je.addSider(q),()=>je.removeSider(q)},[]);const on=()=>{Vt(!Ge,"clickTrigger")},{getPrefixCls:Kt}=(0,Y.useContext)(k.E_),at=()=>{const q=Kt("layout-sider",fe),ge=(0,u.Z)(We,["collapsed"]),ne=Ge?g:K,z=b(ne)?`${ne}px`:String(ne),De=parseFloat(String(g||0))===0?Y.createElement("span",{onClick:on,className:v()(`${q}-zero-width-trigger`,`${q}-zero-width-trigger-${J?"right":"left"}`),style:E},Re||Y.createElement(xe,null)):null,Q={expanded:J?Y.createElement(A.Z,null):Y.createElement(s.Z,null),collapsed:J?Y.createElement(s.Z,null):Y.createElement(A.Z,null)}[Ge?"collapsed":"expanded"],le=Re!==null?De||Y.createElement("div",{className:`${q}-trigger`,onClick:on,style:{width:z}},Re||Q):null,ce=Object.assign(Object.assign({},se),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),Ae=v()(q,`${q}-${$}`,{[`${q}-collapsed`]:!!Ge,[`${q}-has-trigger`]:D&&Re!==null&&!De,[`${q}-below`]:!!ht,[`${q}-zero-width`]:parseFloat(z)===0},be);return Y.createElement("aside",Object.assign({className:Ae},ge,{style:ce,ref:F}),Y.createElement("div",{className:`${q}-children`},he),D||ht&&De?le:null)},Et=Y.useMemo(()=>({siderCollapsed:Ge}),[Ge]);return Y.createElement(G.Provider,{value:Et},at())})},84966:function(qt,qe,p){"use strict";p.d(qe,{VY:function(){return G},$_:function(){return N},h4:function(){return P},Gs:function(){return u},ZP:function(){return U}});var M=p(19127),Y=p(92310),de=p.n(Y),Ce=p(2738),j=p(59301),X=p(36355),ve=p(83116),s=x=>{const{componentCls:T,bodyBg:B,lightSiderBg:F,lightTriggerBg:fe,lightTriggerColor:be}=x;return{[`${T}-sider-light`]:{background:F,[`${T}-sider-trigger`]:{color:be,background:fe},[`${T}-sider-zero-width-trigger`]:{color:be,background:fe,border:`1px solid ${B}`,borderInlineStart:0}}}};const A=x=>{const{antCls:T,componentCls:B,colorText:F,triggerColor:fe,footerBg:be,triggerBg:Re,headerHeight:he,headerPadding:W,headerColor:$,footerPadding:se,triggerHeight:D,zeroTriggerHeight:J,zeroTriggerWidth:K,motionDurationMid:g,motionDurationSlow:E,fontSize:Z,borderRadius:pe,bodyBg:ze,headerBg:We,siderBg:je}=x;return{[B]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ze,"&, *":{boxSizing:"border-box"},[`&${B}-has-sider`]:{flexDirection:"row",[`> ${B}, > ${B}-content`]:{width:0}},[`${B}-header, &${B}-footer`]:{flex:"0 0 auto"},[`${B}-sider`]:{position:"relative",minWidth:0,background:je,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${T}-menu${T}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:D},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:D,color:fe,lineHeight:`${D}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-K,zIndex:1,width:K,height:J,color:fe,fontSize:x.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:je,borderStartStartRadius:0,borderStartEndRadius:pe,borderEndEndRadius:pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${E} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${E}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-K,borderStartStartRadius:pe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pe}}}}},s(x)),{"&-rtl":{direction:"rtl"}}),[`${B}-header`]:{height:he,padding:W,color:$,lineHeight:`${he}px`,background:We,[`${T}-menu`]:{lineHeight:"inherit"}},[`${B}-footer`]:{padding:se,color:F,fontSize:Z,background:be},[`${B}-content`]:{flex:"auto",minHeight:0}}};var L=(0,ve.Z)("Layout",x=>[A(x)],x=>{const{colorBgLayout:T,controlHeight:B,controlHeightLG:F,colorText:fe,controlHeightSM:be,marginXXS:Re,colorTextLightSolid:he,colorBgContainer:W}=x,$=F*1.25;return{colorBgHeader:"#001529",colorBgBody:T,colorBgTrigger:"#002140",bodyBg:T,headerBg:"#001529",headerHeight:B*2,headerPadding:`0 ${$}px`,headerColor:fe,footerPadding:`${be}px ${$}px`,footerBg:T,siderBg:"#001529",triggerHeight:F+Re*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:F,zeroTriggerHeight:F,lightSiderBg:W,lightTriggerBg:W,lightTriggerColor:fe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(x,T){var B={};for(var F in x)Object.prototype.hasOwnProperty.call(x,F)&&T.indexOf(F)<0&&(B[F]=x[F]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,F=Object.getOwnPropertySymbols(x);fe<F.length;fe++)T.indexOf(F[fe])<0&&Object.prototype.propertyIsEnumerable.call(x,F[fe])&&(B[F[fe]]=x[F[fe]]);return B};const u=j.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function y(x){let{suffixCls:T,tagName:B,displayName:F}=x;return fe=>j.forwardRef((Re,he)=>j.createElement(fe,Object.assign({ref:he,suffixCls:T,tagName:B},Re)))}const b=j.forwardRef((x,T)=>{const{prefixCls:B,suffixCls:F,className:fe,tagName:be}=x,Re=v(x,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=j.useContext(X.E_),W=he("layout",B),[$,se]=L(W),D=F?`${W}-${F}`:W;return $(j.createElement(be,Object.assign({className:de()(B||D,fe,se),ref:T},Re)))}),k=j.forwardRef((x,T)=>{const{direction:B}=j.useContext(X.E_),[F,fe]=j.useState([]),{prefixCls:be,className:Re,rootClassName:he,children:W,hasSider:$,tagName:se,style:D}=x,J=v(x,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),K=(0,Ce.Z)(J,["suffixCls"]),{getPrefixCls:g,layout:E}=j.useContext(X.E_),Z=g("layout",be),[pe,ze]=L(Z),We=de()(Z,{[`${Z}-has-sider`]:typeof $=="boolean"?$:F.length>0,[`${Z}-rtl`]:B==="rtl"},E==null?void 0:E.className,Re,he,ze),je=j.useMemo(()=>({siderHook:{addSider:Ge=>{fe(pt=>[].concat((0,M.Z)(pt),[Ge]))},removeSider:Ge=>{fe(pt=>pt.filter(ht=>ht!==Ge))}}}),[]);return pe(j.createElement(u.Provider,{value:je},j.createElement(se,Object.assign({ref:T,className:We,style:Object.assign(Object.assign({},E==null?void 0:E.style),D)},K),W)))}),ae=y({tagName:"div",displayName:"Layout"})(k),P=y({suffixCls:"header",tagName:"header",displayName:"Header"})(b),N=y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),G=y({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var U=ae},40875:function(qt,qe,p){"use strict";p.d(qe,{J:function(){return X}});var M=p(59301),Y=p(33234),de=p(70425),Ce=function(ve,xe){var s={};for(var A in ve)Object.prototype.hasOwnProperty.call(ve,A)&&xe.indexOf(A)<0&&(s[A]=ve[A]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(ve);L<A.length;L++)xe.indexOf(A[L])<0&&Object.prototype.propertyIsEnumerable.call(ve,A[L])&&(s[A[L]]=ve[A[L]]);return s};const j=M.createContext(null),X=M.forwardRef((ve,xe)=>{const{children:s}=ve,A=Ce(ve,["children"]),L=M.useContext(j),v=M.useMemo(()=>Object.assign(Object.assign({},L),A),[L,A.prefixCls,A.mode,A.selectable]);return M.createElement(j.Provider,{value:v},M.createElement(Y.BR,null,(0,de.supportNodeRef)(s)?M.cloneElement(s,{ref:xe}):s))});qe.Z=j},20834:function(qt,qe,p){"use strict";p.d(qe,{default:function(){return Et}});var M=p(15285),Y=p(59301),de=p(45818),Ce=p(92310),j=p.n(Ce),X=p(36355),ve=function(q,ge){var ne={};for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&ge.indexOf(z)<0&&(ne[z]=q[z]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(q);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(q,z[De])&&(ne[z[De]]=q[z[De]]);return ne},s=q=>{const{prefixCls:ge,className:ne,dashed:z}=q,De=ve(q,["prefixCls","className","dashed"]),{getPrefixCls:O}=Y.useContext(X.E_),oe=O("menu",ge),Q=j()({[`${oe}-item-divider-dashed`]:!!z},ne);return Y.createElement(M.iz,Object.assign({className:Q},De))},A=p(11592),L=p(2738),v=p(6848),u=p(92343),b=(0,Y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=q=>{var ge;const{className:ne,children:z,icon:De,title:O,danger:oe}=q,{prefixCls:Q,firstLevel:le,direction:ce,disableMenuItemTitleTooltip:Ae,inlineCollapsed:_e}=Y.useContext(b),Pe=ut=>{const dt=Y.createElement("span",{className:`${Q}-title-content`},z);return(!De||(0,u.l$)(z)&&z.type==="span")&&z&&ut&&le&&typeof z=="string"?Y.createElement("div",{className:`${Q}-inline-collapsed-noicon`},z.charAt(0)):dt},{siderCollapsed:Ie}=Y.useContext(de.D);let Fe=O;typeof O=="undefined"?Fe=le?z:"":O===!1&&(Fe="");const Qe={title:Fe};!Ie&&!_e&&(Qe.title=null,Qe.open=!1);const et=(0,A.Z)(z).length;let Ye=Y.createElement(M.ck,Object.assign({},(0,L.Z)(q,["title","icon","danger"]),{className:j()({[`${Q}-item-danger`]:oe,[`${Q}-item-only-child`]:(De?et+1:et)===1},ne),title:typeof O=="string"?O:void 0}),(0,u.Tm)(De,{className:j()((0,u.l$)(De)?(ge=De.props)===null||ge===void 0?void 0:ge.className:"",`${Q}-item-icon`)}),Pe(_e));return Ae||(Ye=Y.createElement(v.Z,Object.assign({},Qe,{placement:ce==="rtl"?"left":"right",overlayClassName:`${Q}-inline-collapsed-tooltip`}),Ye)),Ye},N=q=>{var ge;const{popupClassName:ne,icon:z,title:De,theme:O}=q,oe=Y.useContext(b),{prefixCls:Q,inlineCollapsed:le,theme:ce}=oe,Ae=(0,M.Xl)();let _e;if(!z)_e=le&&!Ae.length&&De&&typeof De=="string"?Y.createElement("div",{className:`${Q}-inline-collapsed-noicon`},De.charAt(0)):Y.createElement("span",{className:`${Q}-title-content`},De);else{const Ie=(0,u.l$)(De)&&De.type==="span";_e=Y.createElement(Y.Fragment,null,(0,u.Tm)(z,{className:j()((0,u.l$)(z)?(ge=z.props)===null||ge===void 0?void 0:ge.className:"",`${Q}-item-icon`)}),Ie?De:Y.createElement("span",{className:`${Q}-title-content`},De))}const Pe=Y.useMemo(()=>Object.assign(Object.assign({},oe),{firstLevel:!1}),[oe]);return Y.createElement(b.Provider,{value:Pe},Y.createElement(M.Wd,Object.assign({},(0,L.Z)(q,["icon"]),{title:_e,popupClassName:j()(Q,ne,`${Q}-${O||ce}`)})))},G=p(18785),U=p(70425),x=p(62892),T=p(40875),B=function(q,ge){var ne={};for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&ge.indexOf(z)<0&&(ne[z]=q[z]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(q);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(q,z[De])&&(ne[z[De]]=q[z[De]]);return ne};function F(q){return(q||[]).map((ge,ne)=>{if(ge&&typeof ge=="object"){const z=ge,{label:De,children:O,key:oe,type:Q}=z,le=B(z,["label","children","key","type"]),ce=oe!=null?oe:`tmp-${ne}`;return O||Q==="group"?Q==="group"?Y.createElement(M.BW,Object.assign({key:ce},le,{title:De}),F(O)):Y.createElement(N,Object.assign({key:ce},le,{title:De}),F(O)):Q==="divider"?Y.createElement(s,Object.assign({key:ce},le)):Y.createElement(ae,Object.assign({key:ce},le),De)}return null}).filter(ge=>ge)}function fe(q){return Y.useMemo(()=>q&&F(q),[q])}var be=p(64993),Re=p(17313),he=p(8378),W=p(13826),$=p(29878),se=p(83116),D=p(37613),K=q=>{const{componentCls:ge,motionDurationSlow:ne,horizontalLineHeight:z,colorSplit:De,lineWidth:O,lineType:oe,itemPaddingInline:Q}=q;return{[`${ge}-horizontal`]:{lineHeight:z,border:0,borderBottom:`${O}px ${oe} ${De}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ge}-item, ${ge}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Q},[`> ${ge}-item:hover,
|
|
|
> ${ge}-item-active,
|
|
|
> ${ge}-submenu ${ge}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ge}-item, ${ge}-submenu-title`]:{transition:[`border-color ${ne}`,`background ${ne}`].join(",")},[`${ge}-submenu-arrow`]:{display:"none"}}}},E=q=>{let{componentCls:ge,menuArrowOffset:ne}=q;return{[`${ge}-rtl`]:{direction:"rtl"},[`${ge}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ge}-rtl${ge}-vertical,
|
|
|
${ge}-submenu-rtl ${ge}-vertical`]:{[`${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ne})`},"&::after":{transform:`rotate(45deg) translateY(${ne})`}}}}};const Z=q=>Object.assign({},(0,Re.oN)(q));var ze=(q,ge)=>{const{componentCls:ne,itemColor:z,itemSelectedColor:De,groupTitleColor:O,itemBg:oe,subMenuItemBg:Q,itemSelectedBg:le,activeBarHeight:ce,activeBarWidth:Ae,activeBarBorderWidth:_e,motionDurationSlow:Pe,motionEaseInOut:Ie,motionEaseOut:Fe,itemPaddingInline:Qe,motionDurationMid:et,itemHoverColor:Ye,lineType:ut,colorSplit:dt,itemDisabledColor:ot,dangerItemColor:Ct,dangerItemHoverColor:Lt,dangerItemSelectedColor:w,dangerItemActiveBg:C,dangerItemSelectedBg:lt,itemHoverBg:ie,itemActiveBg:Oe,menuSubMenuBg:mn,horizontalItemSelectedColor:$e,horizontalItemSelectedBg:Ze,horizontalItemBorderRadius:tt,horizontalItemHoverBg:ue,popupBg:V}=q;return{[`${ne}-${ge}, ${ne}-${ge} > ${ne}`]:{color:z,background:oe,[`&${ne}-root:focus-visible`]:Object.assign({},Z(q)),[`${ne}-item-group-title`]:{color:O},[`${ne}-submenu-selected`]:{[`> ${ne}-submenu-title`]:{color:De}},[`${ne}-item-disabled, ${ne}-submenu-disabled`]:{color:`${ot} !important`},[`${ne}-item:not(${ne}-item-selected):not(${ne}-submenu-selected)`]:{[`&:hover, > ${ne}-submenu-title:hover`]:{color:Ye}},[`&:not(${ne}-horizontal)`]:{[`${ne}-item:not(${ne}-item-selected)`]:{"&:hover":{backgroundColor:ie},"&:active":{backgroundColor:Oe}},[`${ne}-submenu-title`]:{"&:hover":{backgroundColor:ie},"&:active":{backgroundColor:Oe}}},[`${ne}-item-danger`]:{color:Ct,[`&${ne}-item:hover`]:{[`&:not(${ne}-item-selected):not(${ne}-submenu-selected)`]:{color:Lt}},[`&${ne}-item:active`]:{background:C}},[`${ne}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ne}-item-selected`]:{color:De,[`&${ne}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${ne}-item-selected`]:{backgroundColor:le,[`&${ne}-item-danger`]:{backgroundColor:lt}},[`${ne}-item, ${ne}-submenu-title`]:{[`&:not(${ne}-item-disabled):focus-visible`]:Object.assign({},Z(q))},[`&${ne}-submenu > ${ne}`]:{backgroundColor:mn},[`&${ne}-popup > ${ne}`]:{backgroundColor:V},[`&${ne}-horizontal`]:Object.assign(Object.assign({},ge==="dark"?{borderBottom:0}:{}),{[`> ${ne}-item, > ${ne}-submenu`]:{top:_e,marginTop:-_e,marginBottom:0,borderRadius:tt,"&::after":{position:"absolute",insetInline:Qe,bottom:0,borderBottom:`${ce}px solid transparent`,transition:`border-color ${Pe} ${Ie}`,content:'""'},"&:hover, &-active, &-open":{background:ue,"&::after":{borderBottomWidth:ce,borderBottomColor:$e}},"&-selected":{color:$e,backgroundColor:Ze,"&:hover":{backgroundColor:Ze},"&::after":{borderBottomWidth:ce,borderBottomColor:$e}}}}),[`&${ne}-root`]:{[`&${ne}-inline, &${ne}-vertical`]:{borderInlineEnd:`${_e}px ${ut} ${dt}`}},[`&${ne}-inline`]:{[`${ne}-sub${ne}-inline`]:{background:Q},[`${ne}-item, ${ne}-submenu-title`]:_e&&Ae?{width:`calc(100% + ${_e}px)`}:{},[`${ne}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ae}px solid ${De}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${et} ${Fe}`,`opacity ${et} ${Fe}`].join(","),content:'""'},[`&${ne}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${ne}-selected, ${ne}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${et} ${Ie}`,`opacity ${et} ${Ie}`].join(",")}}}}}};const We=q=>{const{componentCls:ge,itemHeight:ne,itemMarginInline:z,padding:De,menuArrowSize:O,marginXS:oe,itemMarginBlock:Q}=q,le=De+O+oe;return{[`${ge}-item`]:{position:"relative",overflow:"hidden"},[`${ge}-item, ${ge}-submenu-title`]:{height:ne,lineHeight:`${ne}px`,paddingInline:De,overflow:"hidden",textOverflow:"ellipsis",marginInline:z,marginBlock:Q,width:`calc(100% - ${z*2}px)`},[`> ${ge}-item,
|
|
|
> ${ge}-submenu > ${ge}-submenu-title`]:{height:ne,lineHeight:`${ne}px`},[`${ge}-item-group-list ${ge}-submenu-title,
|
|
|
${ge}-submenu-title`]:{paddingInlineEnd:le}}};var Ge=q=>{const{componentCls:ge,iconCls:ne,itemHeight:z,colorTextLightSolid:De,dropdownWidth:O,controlHeightLG:oe,motionDurationMid:Q,motionEaseOut:le,paddingXL:ce,itemMarginInline:Ae,fontSizeLG:_e,motionDurationSlow:Pe,paddingXS:Ie,boxShadowSecondary:Fe,collapsedWidth:Qe,collapsedIconSize:et}=q,Ye={height:z,lineHeight:`${z}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ge]:{"&-inline, &-vertical":Object.assign({[`&${ge}-root`]:{boxShadow:"none"}},We(q))},[`${ge}-submenu-popup`]:{[`${ge}-vertical`]:Object.assign(Object.assign({},We(q)),{boxShadow:Fe})}},{[`${ge}-submenu-popup ${ge}-vertical${ge}-sub`]:{minWidth:O,maxHeight:`calc(100vh - ${oe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ge}-inline`]:{width:"100%",[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Q} ${le}`].join(","),[`> ${ge}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ge}-sub${ge}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ge}-submenu > ${ge}-submenu-title`]:Ye,[`& ${ge}-item-group-title`]:{paddingInlineStart:ce}},[`${ge}-item`]:Ye}},{[`${ge}-inline-collapsed`]:{width:Qe,[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu ${ge}-submenu-title`]:{[`> ${ge}-inline-collapsed-noicon`]:{fontSize:_e,textAlign:"center"}}},[`> ${ge}-item,
|
|
|
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-item,
|
|
|
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-submenu > ${ge}-submenu-title,
|
|
|
> ${ge}-submenu > ${ge}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${_e/2}px - ${Ae}px)`,textOverflow:"clip",[`
|
|
|
${ge}-submenu-arrow,
|
|
|
${ge}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ge}-item-icon, ${ne}`]:{margin:0,fontSize:et,lineHeight:`${z}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ge}-item-icon, ${ne}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ge}-item-icon, ${ne}`]:{display:"none"},"a, a:hover":{color:De}},[`${ge}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:Ie})}}]};const pt=q=>{const{componentCls:ge,motionDurationSlow:ne,motionDurationMid:z,motionEaseInOut:De,motionEaseOut:O,iconCls:oe,iconSize:Q,iconMarginInlineEnd:le}=q;return{[`${ge}-item, ${ge}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ne}`,`background ${ne}`,`padding ${ne} ${De}`].join(","),[`${ge}-item-icon, ${oe}`]:{minWidth:Q,fontSize:Q,transition:[`font-size ${z} ${O}`,`margin ${ne} ${De}`,`color ${ne}`].join(","),"+ span":{marginInlineStart:le,opacity:1,transition:[`opacity ${ne} ${De}`,`margin ${ne}`,`color ${ne}`].join(",")}},[`${ge}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${ge}-item-only-child`]:{[`> ${oe}, > ${ge}-item-icon`]:{marginInlineEnd:0}}},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ge}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ht=q=>{const{componentCls:ge,motionDurationSlow:ne,motionEaseInOut:z,borderRadius:De,menuArrowSize:O,menuArrowOffset:oe}=q;return{[`${ge}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:q.margin,width:O,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ne} ${z}, opacity ${ne}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:O*.6,height:O*.15,backgroundColor:"currentcolor",borderRadius:De,transition:[`background ${ne} ${z}`,`transform ${ne} ${z}`,`top ${ne} ${z}`,`color ${ne} ${z}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${oe})`},"&::after":{transform:`rotate(-45deg) translateY(${oe})`}}}}},rt=q=>{const{antCls:ge,componentCls:ne,fontSize:z,motionDurationSlow:De,motionDurationMid:O,motionEaseInOut:oe,paddingXS:Q,padding:le,colorSplit:ce,lineWidth:Ae,zIndexPopup:_e,borderRadiusLG:Pe,subMenuItemBorderRadius:Ie,menuArrowSize:Fe,menuArrowOffset:Qe,lineType:et,menuPanelMaskInset:Ye,groupTitleLineHeight:ut,groupTitleFontSize:dt}=q;return[{"":{[`${ne}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${ne}-submenu-hidden`]:{display:"none"}},{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(q)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:z,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${De} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ne}-item`]:{flex:"none"}},[`${ne}-item, ${ne}-submenu, ${ne}-submenu-title`]:{borderRadius:q.itemBorderRadius},[`${ne}-item-group-title`]:{padding:`${Q}px ${le}px`,fontSize:dt,lineHeight:ut,transition:`all ${De}`},[`&-horizontal ${ne}-submenu`]:{transition:[`border-color ${De} ${oe}`,`background ${De} ${oe}`].join(",")},[`${ne}-submenu, ${ne}-submenu-inline`]:{transition:[`border-color ${De} ${oe}`,`background ${De} ${oe}`,`padding ${O} ${oe}`].join(",")},[`${ne}-submenu ${ne}-sub`]:{cursor:"initial",transition:[`background ${De} ${oe}`,`padding ${De} ${oe}`].join(",")},[`${ne}-title-content`]:{transition:`color ${De}`},[`${ne}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ne}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ce,borderStyle:et,borderWidth:0,borderTopWidth:Ae,marginBlock:Ae,padding:0,"&-dashed":{borderStyle:"dashed"}}}),pt(q)),{[`${ne}-item-group`]:{[`${ne}-item-group-list`]:{margin:0,padding:0,[`${ne}-item, ${ne}-submenu-title`]:{paddingInline:`${z*2}px ${le}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_e,borderRadius:Pe,boxShadow:"none",transformOrigin:"0 0",[`&${ne}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ye},"\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:q.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:q.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:q.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:q.paddingXS},[`> ${ne}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pe},pt(q)),ht(q)),{[`${ne}-item, ${ne}-submenu > ${ne}-submenu-title`]:{borderRadius:Ie},[`${ne}-submenu-title::after`]:{transition:`transform ${De} ${oe}`}})}}),ht(q)),{[`&-inline-collapsed ${ne}-submenu-arrow,
|
|
|
&-inline ${ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qe})`},"&::after":{transform:`rotate(45deg) translateX(-${Qe})`}},[`${ne}-submenu-open${ne}-submenu-inline > ${ne}-submenu-title > ${ne}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Qe})`},"&::before":{transform:`rotate(45deg) translateX(${Qe})`}}})},{[`${ge}-layout-header`]:{[ne]:{lineHeight:"inherit"}}}]};var Vt=(q,ge)=>(0,se.Z)("Menu",z=>{if(ge===!1)return[];const{colorBgElevated:De,colorPrimary:O,colorTextLightSolid:oe,controlHeightLG:Q,fontSize:le,darkItemColor:ce,darkDangerItemColor:Ae,darkItemBg:_e,darkSubMenuItemBg:Pe,darkItemSelectedColor:Ie,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Qe,darkItemHoverBg:et,darkGroupTitleColor:Ye,darkItemHoverColor:ut,darkItemDisabledColor:dt,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:Ct,darkDangerItemActiveBg:Lt}=z,w=le/7*5,C=(0,D.TS)(z,{menuArrowSize:w,menuHorizontalHeight:Q*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:De}),lt=(0,D.TS)(C,{itemColor:ce,itemHoverColor:ut,groupTitleColor:Ye,itemSelectedColor:Ie,itemBg:_e,popupBg:_e,subMenuItemBg:Pe,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:et,itemDisabledColor:dt,dangerItemColor:Ae,dangerItemHoverColor:ot,dangerItemSelectedColor:Ct,dangerItemActiveBg:Lt,dangerItemSelectedBg:Qe,menuSubMenuBg:Pe,horizontalItemSelectedColor:oe,horizontalItemSelectedBg:O});return[rt(C),K(C),Ge(C),ze(C,"light"),ze(lt,"dark"),E(C),(0,he.Z)(C),(0,W.oN)(C,"slide-up"),(0,W.oN)(C,"slide-down"),(0,$._y)(C,"zoom-big")]},z=>{const{colorPrimary:De,colorError:O,colorTextDisabled:oe,colorErrorBg:Q,colorText:le,colorTextDescription:ce,colorBgContainer:Ae,colorFillAlter:_e,colorFillContent:Pe,lineWidth:Ie,lineWidthBold:Fe,controlItemBgActive:Qe,colorBgTextHover:et,controlHeightLG:Ye,lineHeight:ut,colorBgElevated:dt,marginXXS:ot,padding:Ct,fontSize:Lt,controlHeightSM:w,fontSizeLG:C,colorTextLightSolid:lt,colorErrorHover:ie}=z,Oe=new be.C(lt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:z.zIndexPopupBase+50,radiusItem:z.borderRadiusLG,itemBorderRadius:z.borderRadiusLG,radiusSubMenuItem:z.borderRadiusSM,subMenuItemBorderRadius:z.borderRadiusSM,colorItemText:le,itemColor:le,colorItemTextHover:le,itemHoverColor:le,colorItemTextHoverHorizontal:De,horizontalItemHoverColor:De,colorGroupTitle:ce,groupTitleColor:ce,colorItemTextSelected:De,itemSelectedColor:De,colorItemTextSelectedHorizontal:De,horizontalItemSelectedColor:De,colorItemBg:Ae,itemBg:Ae,colorItemBgHover:et,itemHoverBg:et,colorItemBgActive:Pe,itemActiveBg:Qe,colorSubItemBg:_e,subMenuItemBg:_e,colorItemBgSelected:Qe,itemSelectedBg:Qe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:Ie,activeBarBorderWidth:Ie,colorItemTextDisabled:oe,itemDisabledColor:oe,colorDangerItemText:O,dangerItemColor:O,colorDangerItemTextHover:O,dangerItemHoverColor:O,colorDangerItemTextSelected:O,dangerItemSelectedColor:O,colorDangerItemBgActive:Q,dangerItemActiveBg:Q,colorDangerItemBgSelected:Q,dangerItemSelectedBg:Q,itemMarginInline:z.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ye,groupTitleLineHeight:ut,collapsedWidth:Ye*2,popupBg:dt,itemMarginBlock:ot,itemPaddingInline:Ct,horizontalLineHeight:`${Ye*1.15}px`,iconSize:Lt,iconMarginInlineEnd:w-Lt,collapsedIconSize:C,groupTitleFontSize:Lt,darkItemDisabledColor:new be.C(lt).setAlpha(.25).toRgbString(),darkItemColor:Oe,darkDangerItemColor:O,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:lt,darkItemSelectedBg:De,darkDangerItemSelectedBg:O,darkItemHoverBg:"transparent",darkGroupTitleColor:Oe,darkItemHoverColor:lt,darkDangerItemHoverColor:ie,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:O}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(q),Jt=function(q,ge){var ne={};for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&ge.indexOf(z)<0&&(ne[z]=q[z]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(q);De<z.length;De++)ge.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(q,z[De])&&(ne[z[De]]=q[z[De]]);return ne},Kt=(0,Y.forwardRef)((q,ge)=>{var ne,z;const De=Y.useContext(T.Z),O=De||{},{getPrefixCls:oe,getPopupContainer:Q,direction:le,menu:ce}=Y.useContext(X.E_),Ae=oe(),{prefixCls:_e,className:Pe,style:Ie,theme:Fe="light",expandIcon:Qe,_internalDisableMenuItemTitleTooltip:et,inlineCollapsed:Ye,siderCollapsed:ut,items:dt,children:ot,rootClassName:Ct,mode:Lt,selectable:w,onClick:C,overflowedIndicatorPopupClassName:lt}=q,ie=Jt(q,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Oe=(0,L.Z)(ie,["collapsedWidth"]),mn=fe(dt)||ot;(ne=O.validator)===null||ne===void 0||ne.call(O,{mode:Lt});const $e=(0,U.useEvent)(function(){var Mt;C==null||C.apply(void 0,arguments),(Mt=O.onClick)===null||Mt===void 0||Mt.call(O)}),Ze=O.mode||Lt,tt=w!=null?w:O.selectable,ue=Y.useMemo(()=>ut!==void 0?ut:Ye,[Ye,ut]),V={horizontal:{motionName:`${Ae}-slide-up`},inline:(0,x.Z)(Ae),other:{motionName:`${Ae}-zoom-big`}},we=oe("menu",_e||O.prefixCls),[Ne,H]=Vt(we,!De),it=j()(`${we}-${Fe}`,ce==null?void 0:ce.className,Pe);let Ee;if(typeof Qe=="function")Ee=Qe;else if(Qe===null||Qe===!1)Ee=null;else if(O.expandIcon===null||O.expandIcon===!1)Ee=null;else{const Mt=Qe!=null?Qe:O.expandIcon;Ee=(0,u.Tm)(Mt,{className:j()(`${we}-submenu-expand-icon`,(0,u.l$)(Mt)?(z=Mt.props)===null||z===void 0?void 0:z.className:"")})}const Tt=Y.useMemo(()=>({prefixCls:we,inlineCollapsed:ue||!1,direction:le,firstLevel:!0,theme:Fe,mode:Ze,disableMenuItemTitleTooltip:et}),[we,ue,le,et,Fe]);return Ne(Y.createElement(T.Z.Provider,{value:null},Y.createElement(b.Provider,{value:Tt},Y.createElement(M.ZP,Object.assign({getPopupContainer:Q,overflowedIndicator:Y.createElement(G.Z,null),overflowedIndicatorPopupClassName:j()(we,`${we}-${Fe}`,lt),mode:Ze,selectable:tt,onClick:$e},Oe,{inlineCollapsed:ue,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),Ie),className:it,prefixCls:we,direction:le,defaultMotions:V,expandIcon:Ee,ref:ge,rootClassName:j()(Ct,H)}),mn))))});const at=(0,Y.forwardRef)((q,ge)=>{const ne=(0,Y.useRef)(null),z=Y.useContext(de.D);return(0,Y.useImperativeHandle)(ge,()=>({menu:ne.current,focus:De=>{var O;(O=ne.current)===null||O===void 0||O.focus(De)}})),Y.createElement(Kt,Object.assign({ref:ne},q,z))});at.Item=ae,at.SubMenu=N,at.Divider=s,at.ItemGroup=M.BW;var Et=at},39722:function(qt,qe,p){"use strict";p.d(qe,{t5:function(){return A}});var M=p(92310),Y=p.n(M),de=p(55477),Ce=p(59301),j=p(36355),X=p(77578),ve=p(17356),xe=function(v,u){var y={};for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&u.indexOf(b)<0&&(y[b]=v[b]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,b=Object.getOwnPropertySymbols(v);k<b.length;k++)u.indexOf(b[k])<0&&Object.prototype.propertyIsEnumerable.call(v,b[k])&&(y[b[k]]=v[b[k]]);return y};const s=(v,u,y)=>{if(!(!u&&!y))return Ce.createElement(Ce.Fragment,null,u&&Ce.createElement("div",{className:`${v}-title`},(0,X.Z)(u)),Ce.createElement("div",{className:`${v}-inner-content`},(0,X.Z)(y)))},A=v=>{const{hashId:u,prefixCls:y,className:b,style:k,placement:ae="top",title:P,content:N,children:G}=v;return Ce.createElement("div",{className:Y()(u,y,`${y}-pure`,`${y}-placement-${ae}`,b),style:k},Ce.createElement("div",{className:`${y}-arrow`}),Ce.createElement(de.G,Object.assign({},v,{className:u,prefixCls:y}),G||s(y,P,N)))},L=v=>{const{prefixCls:u}=v,y=xe(v,["prefixCls"]),{getPrefixCls:b}=Ce.useContext(j.E_),k=b("popover",u),[ae,P]=(0,ve.Z)(k);return ae(Ce.createElement(A,Object.assign({},y,{prefixCls:k,hashId:P})))};qe.ZP=L},60324:function(qt,qe,p){"use strict";var M=p(92310),Y=p.n(M),de=p(59301),Ce=p(77578),j=p(62892),X=p(36355),ve=p(6848),xe=p(39722),s=p(17356),A=function(u,y){var b={};for(var k in u)Object.prototype.hasOwnProperty.call(u,k)&&y.indexOf(k)<0&&(b[k]=u[k]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,k=Object.getOwnPropertySymbols(u);ae<k.length;ae++)y.indexOf(k[ae])<0&&Object.prototype.propertyIsEnumerable.call(u,k[ae])&&(b[k[ae]]=u[k[ae]]);return b};const L=u=>{let{title:y,content:b,prefixCls:k}=u;return de.createElement(de.Fragment,null,y&&de.createElement("div",{className:`${k}-title`},(0,Ce.Z)(y)),de.createElement("div",{className:`${k}-inner-content`},(0,Ce.Z)(b)))},v=de.forwardRef((u,y)=>{const{prefixCls:b,title:k,content:ae,overlayClassName:P,placement:N="top",trigger:G="hover",mouseEnterDelay:U=.1,mouseLeaveDelay:x=.1,overlayStyle:T={}}=u,B=A(u,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:F}=de.useContext(X.E_),fe=F("popover",b),[be,Re]=(0,s.Z)(fe),he=F(),W=Y()(P,Re);return be(de.createElement(ve.Z,Object.assign({placement:N,trigger:G,mouseEnterDelay:U,mouseLeaveDelay:x,overlayStyle:T},B,{prefixCls:fe,overlayClassName:W,ref:y,overlay:k||ae?de.createElement(L,{prefixCls:fe,title:k,content:ae}):null,transitionName:(0,j.m)(he,"zoom-big",B.transitionName),"data-popover-inject":!0})))});v._InternalPanelDoNotUseOrYouWillBeFired=xe.ZP,qe.Z=v},17356:function(qt,qe,p){"use strict";var M=p(17313),Y=p(29878),de=p(19447),Ce=p(33166),j=p(83116),X=p(37613);const ve=A=>{const{componentCls:L,popoverColor:v,minWidth:u,fontWeightStrong:y,popoverPadding:b,boxShadowSecondary:k,colorTextHeading:ae,borderRadiusLG:P,zIndexPopup:N,marginXS:G,colorBgElevated:U,popoverBg:x}=A;return[{[L]:Object.assign(Object.assign({},(0,M.Wf)(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:N,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":U,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${L}-content`]:{position:"relative"},[`${L}-inner`]:{backgroundColor:x,backgroundClip:"padding-box",borderRadius:P,boxShadow:k,padding:b},[`${L}-title`]:{minWidth:u,marginBottom:G,color:ae,fontWeight:y},[`${L}-inner-content`]:{color:v}})},(0,de.ZP)(A,{colorBg:"var(--antd-arrow-background-color)"}),{[`${L}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${L}-content`]:{display:"inline-block"}}}]},xe=A=>{const{componentCls:L}=A;return{[L]:Ce.i.map(v=>{const u=A[`${v}6`];return{[`&${L}-${v}`]:{"--antd-arrow-background-color":u,[`${L}-inner`]:{backgroundColor:u},[`${L}-arrow`]:{background:"transparent"}}}})}},s=A=>{const{componentCls:L,lineWidth:v,lineType:u,colorSplit:y,paddingSM:b,controlHeight:k,fontSize:ae,lineHeight:P,padding:N}=A,G=k-Math.round(ae*P),U=G/2,x=G/2-v,T=N;return{[L]:{[`${L}-inner`]:{padding:0},[`${L}-title`]:{margin:0,padding:`${U}px ${T}px ${x}px`,borderBottom:`${v}px ${u} ${y}`},[`${L}-inner-content`]:{padding:`${b}px ${T}px`}}}};qe.Z=(0,j.Z)("Popover",A=>{const{colorBgElevated:L,colorText:v,wireframe:u}=A,y=(0,X.TS)(A,{popoverPadding:12,popoverBg:L,popoverColor:v});return[ve(y),xe(y),u&&s(y),(0,Y._y)(y,"zoom-big")]},A=>({width:177,minWidth:177,zIndexPopup:A.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},14154:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return x}});var M=p(17313),Y=p(74207),de=p(37613),Ce=p(83116),j=p(13826),X=p(92899);const ve=T=>{const{optionHeight:B,optionFontSize:F,optionLineHeight:fe,optionPadding:be}=T;return{position:"relative",display:"block",minHeight:B,padding:be,color:T.colorText,fontWeight:"normal",fontSize:F,lineHeight:fe,boxSizing:"border-box"}};var s=T=>{const{antCls:B,componentCls:F}=T,fe=`${F}-item`,be=`&${B}-slide-up-enter${B}-slide-up-enter-active`,Re=`&${B}-slide-up-appear${B}-slide-up-appear-active`,he=`&${B}-slide-up-leave${B}-slide-up-leave-active`,W=`${F}-dropdown-placement-`;return[{[`${F}-dropdown`]:Object.assign(Object.assign({},(0,M.Wf)(T)),{position:"absolute",top:-9999,zIndex:T.zIndexPopup,boxSizing:"border-box",padding:T.paddingXXS,overflow:"hidden",fontSize:T.fontSize,fontVariant:"initial",backgroundColor:T.colorBgElevated,borderRadius:T.borderRadiusLG,outline:"none",boxShadow:T.boxShadowSecondary,[`
|
|
|
${be}${W}bottomLeft,
|
|
|
${Re}${W}bottomLeft
|
|
|
`]:{animationName:j.fJ},[`
|
|
|
${be}${W}topLeft,
|
|
|
${Re}${W}topLeft,
|
|
|
${be}${W}topRight,
|
|
|
${Re}${W}topRight
|
|
|
`]:{animationName:j.Qt},[`${he}${W}bottomLeft`]:{animationName:j.Uw},[`
|
|
|
${he}${W}topLeft,
|
|
|
${he}${W}topRight
|
|
|
`]:{animationName:j.ly},"&-hidden":{display:"none"},[`${fe}`]:Object.assign(Object.assign({},ve(T)),{cursor:"pointer",transition:`background ${T.motionDurationSlow} ease`,borderRadius:T.borderRadiusSM,"&-group":{color:T.colorTextDescription,fontSize:T.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},M.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${fe}-option-disabled)`]:{backgroundColor:T.optionActiveBg},[`&-selected:not(${fe}-option-disabled)`]:{color:T.optionSelectedColor,fontWeight:T.optionSelectedFontWeight,backgroundColor:T.optionSelectedBg,[`${fe}-option-state`]:{color:T.colorPrimary}},"&-disabled":{[`&${fe}-option-selected`]:{backgroundColor:T.colorBgContainerDisabled},color:T.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:T.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,j.oN)(T,"slide-up"),(0,j.oN)(T,"slide-down"),(0,X.Fm)(T,"move-up"),(0,X.Fm)(T,"move-down")]};const A=2,L=T=>{let{controlHeightSM:B,controlHeight:F,lineWidth:fe}=T;const be=(F-B)/2-fe,Re=Math.ceil(be/2);return[be,Re]};function v(T,B){const{componentCls:F,iconCls:fe}=T,be=`${F}-selection-overflow`,Re=T.multipleSelectItemHeight,[he]=L(T),W=B?`${F}-${B}`:"";return{[`${F}-multiple${W}`]:{fontSize:T.fontSize,[be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${F}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${he-A}px ${A*2}px`,borderRadius:T.borderRadius,[`${F}-show-search&`]:{cursor:"text"},[`${F}-disabled&`]:{background:T.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${A}px 0`,lineHeight:`${Re}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${F}-show-arrow ${F}-selector,
|
|
|
&${F}-allow-clear ${F}-selector
|
|
|
`]:{paddingInlineEnd:T.fontSizeIcon+T.controlPaddingHorizontal},[`${F}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Re,marginTop:A,marginBottom:A,lineHeight:`${Re-T.lineWidth*2}px`,background:T.multipleItemBg,border:`${T.lineWidth}px ${T.lineType} ${T.multipleItemBorderColor}`,borderRadius:T.borderRadiusSM,cursor:"default",transition:`font-size ${T.motionDurationSlow}, line-height ${T.motionDurationSlow}, height ${T.motionDurationSlow}`,userSelect:"none",marginInlineEnd:A*2,paddingInlineStart:T.paddingXS,paddingInlineEnd:T.paddingXS/2,[`${F}-disabled&`]:{color:T.multipleItemColorDisabled,borderColor:T.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:T.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,M.Ro)()),{display:"inline-flex",alignItems:"center",color:T.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${fe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:T.colorIconHover}})},[`${be}-item + ${be}-item`]:{[`${F}-selection-search`]:{marginInlineStart:0}},[`${F}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:T.inputPaddingHorizontalBase-he,"\n &-input,\n &-mirror\n ":{height:Re,fontFamily:T.fontFamily,lineHeight:`${Re}px`,transition:`all ${T.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${F}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:T.inputPaddingHorizontalBase,insetInlineEnd:T.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${T.motionDurationSlow}`}}}}var y=T=>{const{componentCls:B}=T,F=(0,de.TS)(T,{controlHeight:T.controlHeightSM,multipleSelectItemHeight:T.controlHeightXS,borderRadius:T.borderRadiusSM,borderRadiusSM:T.borderRadiusXS}),fe=(0,de.TS)(T,{fontSize:T.fontSizeLG,controlHeight:T.controlHeightLG,multipleSelectItemHeight:T.multipleItemHeightLG,borderRadius:T.borderRadiusLG,borderRadiusSM:T.borderRadius}),[,be]=L(T);return[v(T),v(F,"sm"),{[`${B}-multiple${B}-sm`]:{[`${B}-selection-placeholder`]:{insetInline:T.controlPaddingHorizontalSM-T.lineWidth},[`${B}-selection-search`]:{marginInlineStart:be}}},v(fe,"lg")]};function b(T,B){const{componentCls:F,inputPaddingHorizontalBase:fe,borderRadius:be}=T,Re=T.controlHeight-T.lineWidth*2,he=Math.ceil(T.fontSize*1.25),W=B?`${F}-${B}`:"";return{[`${F}-single${W}`]:{fontSize:T.fontSize,[`${F}-selector`]:Object.assign(Object.assign({},(0,M.Wf)(T)),{display:"flex",borderRadius:be,[`${F}-selection-search`]:{position:"absolute",top:0,insetInlineStart:fe,insetInlineEnd:fe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${F}-selection-item,
|
|
|
${F}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Re}px`,transition:`all ${T.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Re}px`}},[`${F}-selection-item`]:{position:"relative",userSelect:"none"},[`${F}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${F}-selection-item:after`,`${F}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${F}-show-arrow ${F}-selection-item,
|
|
|
&${F}-show-arrow ${F}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:he},[`&${F}-open ${F}-selection-item`]:{color:T.colorTextPlaceholder},[`&:not(${F}-customize-input)`]:{[`${F}-selector`]:{width:"100%",height:T.controlHeight,padding:`0 ${fe}px`,[`${F}-selection-search-input`]:{height:Re},"&:after":{lineHeight:`${Re}px`}}},[`&${F}-customize-input`]:{[`${F}-selector`]:{"&:after":{display:"none"},[`${F}-selection-search`]:{position:"static",width:"100%"},[`${F}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${fe}px`,"&:after":{display:"none"}}}}}}}function k(T){const{componentCls:B}=T,F=T.controlPaddingHorizontalSM-T.lineWidth;return[b(T),b((0,de.TS)(T,{controlHeight:T.controlHeightSM,borderRadius:T.borderRadiusSM}),"sm"),{[`${B}-single${B}-sm`]:{[`&:not(${B}-customize-input)`]:{[`${B}-selection-search`]:{insetInlineStart:F,insetInlineEnd:F},[`${B}-selector`]:{padding:`0 ${F}px`},[`&${B}-show-arrow ${B}-selection-search`]:{insetInlineEnd:F+T.fontSize*1.5},[`
|
|
|
&${B}-show-arrow ${B}-selection-item,
|
|
|
&${B}-show-arrow ${B}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:T.fontSize*1.5}}}},b((0,de.TS)(T,{controlHeight:T.singleItemHeightLG,fontSize:T.fontSizeLG,borderRadius:T.borderRadiusLG}),"lg")]}const ae=T=>{const{componentCls:B,selectorBg:F}=T;return{position:"relative",backgroundColor:F,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,input:{cursor:"pointer"},[`${B}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${B}-disabled&`]:{color:T.colorTextDisabled,background:T.colorBgContainerDisabled,cursor:"not-allowed",[`${B}-multiple&`]:{background:T.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},P=function(T,B){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:fe,borderHoverColor:be,outlineColor:Re,antCls:he}=B,W=F?{[`${fe}-selector`]:{borderColor:be}}:{};return{[T]:{[`&:not(${fe}-disabled):not(${fe}-customize-input):not(${he}-pagination-size-changer)`]:Object.assign(Object.assign({},W),{[`${fe}-focused& ${fe}-selector`]:{borderColor:be,boxShadow:`0 0 0 ${B.controlOutlineWidth}px ${Re}`,outline:0},[`&:hover ${fe}-selector`]:{borderColor:be}})}}},N=T=>{const{componentCls:B}=T;return{[`${B}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},G=T=>{const{componentCls:B,inputPaddingHorizontalBase:F,iconCls:fe}=T;return{[B]:Object.assign(Object.assign({},(0,M.Wf)(T)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${B}-customize-input) ${B}-selector`]:Object.assign(Object.assign({},ae(T)),N(T)),[`${B}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},M.vS),[`${B}-selection-placeholder`]:Object.assign(Object.assign({},M.vS),{flex:1,color:T.colorTextPlaceholder,pointerEvents:"none"}),[`${B}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:F,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[fe]:{verticalAlign:"top",transition:`transform ${T.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${B}-suffix)`]:{pointerEvents:"auto"}},[`${B}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${B}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:F,zIndex:1,display:"inline-block",width:T.fontSizeIcon,height:T.fontSizeIcon,marginTop:-T.fontSizeIcon/2,color:T.colorTextQuaternary,fontSize:T.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:T.clearBg,cursor:"pointer",opacity:0,transition:`color ${T.motionDurationMid} ease, opacity ${T.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:T.colorTextTertiary}},"&:hover":{[`${B}-clear`]:{opacity:1}}}),[`${B}-has-feedback`]:{[`${B}-clear`]:{insetInlineEnd:F+T.fontSize+T.paddingXS}}}},U=T=>{const{componentCls:B}=T;return[{[B]:{[`&-borderless ${B}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${B}-in-form-item`]:{width:"100%"}}},G(T),k(T),y(T),s(T),{[`${B}-rtl`]:{direction:"rtl"}},P(B,(0,de.TS)(T,{borderHoverColor:T.colorPrimaryHover,outlineColor:T.controlOutline})),P(`${B}-status-error`,(0,de.TS)(T,{borderHoverColor:T.colorErrorHover,outlineColor:T.colorErrorOutline}),!0),P(`${B}-status-warning`,(0,de.TS)(T,{borderHoverColor:T.colorWarningHover,outlineColor:T.colorWarningOutline}),!0),(0,Y.c)(T,{borderElCls:`${B}-selector`,focusElCls:`${B}-focused`})]};var x=(0,Ce.Z)("Select",(T,B)=>{let{rootPrefixCls:F}=B;const fe=(0,de.TS)(T,{rootPrefixCls:F,inputPaddingHorizontalBase:T.paddingSM-1,multipleSelectItemHeight:T.multipleItemHeight});return[U(fe)]},T=>{const{fontSize:B,lineHeight:F,controlHeight:fe,controlPaddingHorizontal:be,zIndexPopupBase:Re,colorText:he,fontWeightStrong:W,controlItemBgActive:$,controlItemBgHover:se,colorBgContainer:D,colorFillSecondary:J,controlHeightLG:K,controlHeightSM:g,colorBgContainerDisabled:E,colorTextDisabled:Z}=T;return{zIndexPopup:Re+50,optionSelectedColor:he,optionSelectedFontWeight:W,optionSelectedBg:$,optionActiveBg:se,optionPadding:`${(fe-B*F)/2}px ${be}px`,optionFontSize:B,optionLineHeight:F,optionHeight:fe,selectorBg:D,clearBg:D,singleItemHeightLG:K,multipleItemBg:J,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:fe,multipleSelectorBgDisabled:E,multipleItemColorDisabled:Z,multipleItemBorderColorDisabled:"transparent"}})},58582:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Y}});const M=de=>{const j={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:de==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},j),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},j),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},j),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},j),{points:["br","tr"],offset:[0,-4]})}};function Y(de,Ce){return de||M(Ce)}},84443:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return M}});function M(Y,de){return de!==void 0?de:Y!==null}},66339:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});var M=p(40001),Y=p(19248),de=p(99267),Ce=p(84105),j=p(58617),X=p(47472),ve=p(59301);function xe(s){let{suffixIcon:A,clearIcon:L,menuItemSelectedIcon:v,removeIcon:u,loading:y,multiple:b,hasFeedback:k,prefixCls:ae,showSuffixIcon:P,feedbackIcon:N,showArrow:G,componentName:U}=s;const x=L!=null?L:ve.createElement(Y.Z,null),T=be=>A===null&&!k&&!G?null:ve.createElement(ve.Fragment,null,P!==!1&&be,k&&N);let B=null;if(A!==void 0)B=T(A);else if(y)B=T(ve.createElement(j.Z,{spin:!0}));else{const be=`${ae}-suffix`;B=Re=>{let{open:he,showSearch:W}=Re;return T(he&&W?ve.createElement(X.Z,{className:be}):ve.createElement(Ce.Z,{className:be}))}}let F=null;v!==void 0?F=v:b?F=ve.createElement(M.Z,null):F=null;let fe=null;return u!==void 0?fe=u:fe=ve.createElement(de.Z,null),{clearIcon:x,suffixIcon:B,itemIcon:F,removeIcon:fe}}},8378:function(qt,qe){"use strict";const p=M=>({[M.componentCls]:{[`${M.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${M.motionDurationMid} ${M.motionEaseInOut},
|
|
|
opacity ${M.motionDurationMid} ${M.motionEaseInOut} !important`}},[`${M.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${M.motionDurationMid} ${M.motionEaseInOut},
|
|
|
opacity ${M.motionDurationMid} ${M.motionEaseInOut} !important`}}});qe.Z=p},92899:function(qt,qe,p){"use strict";p.d(qe,{Fm:function(){return v}});var M=p(93083),Y=p(95406);const de=new M.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ce=new M.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),j=new M.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new M.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ve=new M.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new M.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new M.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A=new M.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),L={"move-up":{inKeyframes:s,outKeyframes:A},"move-down":{inKeyframes:de,outKeyframes:Ce},"move-left":{inKeyframes:j,outKeyframes:X},"move-right":{inKeyframes:ve,outKeyframes:xe}},v=(u,y)=>{const{antCls:b}=u,k=`${b}-${y}`,{inKeyframes:ae,outKeyframes:P}=L[y];return[(0,Y.R)(k,ae,P,u.motionDurationMid),{[`
|
|
|
${k}-enter,
|
|
|
${k}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:u.motionEaseOutCirc},[`${k}-leave`]:{animationTimingFunction:u.motionEaseInOutCirc}}]}},13826:function(qt,qe,p){"use strict";p.d(qe,{Qt:function(){return j},Uw:function(){return Ce},fJ:function(){return de},ly:function(){return X},oN:function(){return v}});var M=p(93083),Y=p(95406);const de=new M.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ce=new M.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),j=new M.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),X=new M.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ve=new M.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new M.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new M.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),A=new M.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),L={"slide-up":{inKeyframes:de,outKeyframes:Ce},"slide-down":{inKeyframes:j,outKeyframes:X},"slide-left":{inKeyframes:ve,outKeyframes:xe},"slide-right":{inKeyframes:s,outKeyframes:A}},v=(u,y)=>{const{antCls:b}=u,k=`${b}-${y}`,{inKeyframes:ae,outKeyframes:P}=L[y];return[(0,Y.R)(k,ae,P,u.motionDurationMid),{[`
|
|
|
${k}-enter,
|
|
|
${k}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:u.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${k}-leave`]:{animationTimingFunction:u.motionEaseInQuint}}]}},19447:function(qt,qe,p){"use strict";p.d(qe,{ZP:function(){return j},fS:function(){return de},qN:function(){return Y}});var M=p(47585);const Y=8;function de(X){const ve=Y,{contentRadius:xe,limitVerticalRadius:s}=X,A=xe>12?xe+2:12;return{dropdownArrowOffset:A,dropdownArrowOffsetVertical:s?ve:A}}function Ce(X,ve){return X?ve:{}}function j(X,ve){const{componentCls:xe,sizePopupArrow:s,borderRadiusXS:A,borderRadiusOuter:L,boxShadowPopoverArrow:v}=X,{colorBg:u,contentRadius:y=X.borderRadiusLG,limitVerticalRadius:b,arrowDistance:k=0,arrowPlacement:ae={left:!0,right:!0,top:!0,bottom:!0}}=ve,{dropdownArrowOffsetVertical:P,dropdownArrowOffset:N}=de({contentRadius:y,limitVerticalRadius:b});return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign({[`${xe}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,M.r)(s,A,L,u,v)),{"&:before":{background:u}})]},Ce(!!ae.top,{[[`&-placement-top ${xe}-arrow`,`&-placement-topLeft ${xe}-arrow`,`&-placement-topRight ${xe}-arrow`].join(",")]:{bottom:k,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${xe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${xe}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-topRight ${xe}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Ce(!!ae.bottom,{[[`&-placement-bottom ${xe}-arrow`,`&-placement-bottomLeft ${xe}-arrow`,`&-placement-bottomRight ${xe}-arrow`].join(",")]:{top:k,transform:"translateY(-100%)"},[`&-placement-bottom ${xe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${xe}-arrow`]:{left:{_skip_check_:!0,value:N}},[`&-placement-bottomRight ${xe}-arrow`]:{right:{_skip_check_:!0,value:N}}})),Ce(!!ae.left,{[[`&-placement-left ${xe}-arrow`,`&-placement-leftTop ${xe}-arrow`,`&-placement-leftBottom ${xe}-arrow`].join(",")]:{right:{_skip_check_:!0,value:k},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${xe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${xe}-arrow`]:{top:P},[`&-placement-leftBottom ${xe}-arrow`]:{bottom:P}})),Ce(!!ae.right,{[[`&-placement-right ${xe}-arrow`,`&-placement-rightTop ${xe}-arrow`,`&-placement-rightBottom ${xe}-arrow`].join(",")]:{left:{_skip_check_:!0,value:k},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${xe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${xe}-arrow`]:{top:P},[`&-placement-rightBottom ${xe}-arrow`]:{bottom:P}}))}}},47585:function(qt,qe,p){"use strict";p.d(qe,{r:function(){return M}});const M=(Y,de,Ce,j,X)=>{const ve=Y/2,xe=0,s=ve,A=Ce*1/Math.sqrt(2),L=ve-Ce*(1-1/Math.sqrt(2)),v=ve-de*(1/Math.sqrt(2)),u=Ce*(Math.sqrt(2)-1)+de*(1/Math.sqrt(2)),y=2*ve-v,b=u,k=2*ve-A,ae=L,P=2*ve-xe,N=s,G=ve*Math.sqrt(2)+Ce*(Math.sqrt(2)-2),U=Ce*(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:j,clipPath:{_multi_value_:!0,value:[`polygon(${U}px 100%, 50% ${U}px, ${2*ve-U}px 100%, ${U}px 100%)`,`path('M ${xe} ${s} A ${Ce} ${Ce} 0 0 0 ${A} ${L} L ${v} ${u} A ${de} ${de} 0 0 1 ${y} ${b} L ${k} ${ae} A ${Ce} ${Ce} 0 0 0 ${P} ${N} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:G,height:G,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${de}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:X,zIndex:0,background:"transparent"}}}},33166:function(qt,qe,p){"use strict";p.d(qe,{i:function(){return M}});const M=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Y}});var M=p(33166);function Y(de,Ce){return M.i.reduce((j,X)=>{const ve=de[`${X}1`],xe=de[`${X}3`],s=de[`${X}6`],A=de[`${X}7`];return Object.assign(Object.assign({},j),Ce(X,{lightColor:ve,lightBorderColor:xe,darkColor:s,textColor:A}))},{})}},6848:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Re}});var M=p(59301),Y=p(92310),de=p.n(Y),Ce=p(55477),j=p(18929),X=p(62892),ve=p(79676),xe=p(92343),s=p(36355),A=p(33234),L=p(88088),v=p(17313),u=p(29878),y=p(19447),b=p(45157),k=p(37613),ae=p(83116);const P=he=>{const{componentCls:W,tooltipMaxWidth:$,tooltipColor:se,tooltipBg:D,tooltipBorderRadius:J,zIndexPopup:K,controlHeight:g,boxShadowSecondary:E,paddingSM:Z,paddingXS:pe,tooltipRadiusOuter:ze}=he;return[{[W]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(he)),{position:"absolute",zIndex:K,display:"block",width:"max-content",maxWidth:$,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":D,[`${W}-inner`]:{minWidth:g,minHeight:g,padding:`${Z/2}px ${pe}px`,color:se,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:D,borderRadius:J,boxShadow:E,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${W}-inner`]:{borderRadius:Math.min(J,y.qN)}},[`${W}-content`]:{position:"relative"}}),(0,b.Z)(he,(We,je)=>{let{darkColor:Ge}=je;return{[`&${W}-${We}`]:{[`${W}-inner`]:{backgroundColor:Ge},[`${W}-arrow`]:{"--antd-arrow-background-color":Ge}}}})),{"&-rtl":{direction:"rtl"}})},(0,y.ZP)((0,k.TS)(he,{borderRadiusOuter:ze}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:J,limitVerticalRadius:!0}),{[`${W}-pure`]:{position:"relative",maxWidth:"none",margin:he.sizePopupArrow}}]};var N=(he,W)=>(0,ae.Z)("Tooltip",se=>{if(W===!1)return[];const{borderRadius:D,colorTextLightSolid:J,colorBgDefault:K,borderRadiusOuter:g}=se,E=(0,k.TS)(se,{tooltipMaxWidth:250,tooltipColor:J,tooltipBorderRadius:D,tooltipBg:K,tooltipRadiusOuter:g>4?4:g});return[P(E),(0,u._y)(se,"zoom-big-fast")]},se=>{let{zIndexPopupBase:D,colorBgSpotlight:J}=se;return{zIndexPopup:D+70,colorBgDefault:J}},{resetStyle:!1})(he),G=p(36785);function U(he,W){const $=(0,G.o2)(W),se=de()({[`${he}-${W}`]:W&&$}),D={},J={};return W&&!$&&(D.background=W,J["--antd-arrow-background-color"]=W),{className:se,overlayStyle:D,arrowStyle:J}}var T=he=>{const{prefixCls:W,className:$,placement:se="top",title:D,color:J,overlayInnerStyle:K}=he,{getPrefixCls:g}=M.useContext(s.E_),E=g("tooltip",W),[Z,pe]=N(E,!0),ze=U(E,J),We=ze.arrowStyle,je=Object.assign(Object.assign({},K),ze.overlayStyle),Ge=de()(pe,E,`${E}-pure`,`${E}-placement-${se}`,$,ze.className);return Z(M.createElement("div",{className:Ge,style:We},M.createElement("div",{className:`${E}-arrow`}),M.createElement(Ce.G,Object.assign({},he,{className:pe,prefixCls:E,overlayInnerStyle:je}),D)))},B=function(he,W){var $={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&W.indexOf(se)<0&&($[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,se=Object.getOwnPropertySymbols(he);D<se.length;D++)W.indexOf(se[D])<0&&Object.prototype.propertyIsEnumerable.call(he,se[D])&&($[se[D]]=he[se[D]]);return $};const F=(he,W)=>{const $={},se=Object.assign({},he);return W.forEach(D=>{he&&D in he&&($[D]=he[D],delete se[D])}),{picked:$,omitted:se}};function fe(he,W){const $=he.type;if(($.__ANT_BUTTON===!0||he.type==="button")&&he.props.disabled||$.__ANT_SWITCH===!0&&(he.props.disabled||he.props.loading)||$.__ANT_RADIO===!0&&he.props.disabled){const{picked:se,omitted:D}=F(he.props.style,["position","left","right","top","bottom","float","display","zIndex"]),J=Object.assign(Object.assign({display:"inline-block"},se),{cursor:"not-allowed",width:he.props.block?"100%":void 0}),K=Object.assign(Object.assign({},D),{pointerEvents:"none"}),g=(0,xe.Tm)(he,{style:K,className:null});return M.createElement("span",{style:J,className:de()(he.props.className,`${W}-disabled-compatible-wrapper`)},g)}return he}const be=M.forwardRef((he,W)=>{var $,se;const{prefixCls:D,openClassName:J,getTooltipContainer:K,overlayClassName:g,color:E,overlayInnerStyle:Z,children:pe,afterOpenChange:ze,afterVisibleChange:We,destroyTooltipOnHide:je,arrow:Ge=!0,title:pt,overlay:ht,builtinPlacements:rt,arrowPointAtCenter:Vt=!1,autoAdjustOverflow:Jt=!0}=he,on=!!Ge,[,Kt]=(0,L.Z)(),{getPopupContainer:at,getPrefixCls:Et,direction:q}=M.useContext(s.E_),ge=M.useRef(null),ne=()=>{var Ze;(Ze=ge.current)===null||Ze===void 0||Ze.forceAlign()};M.useImperativeHandle(W,()=>({forceAlign:ne,forcePopupAlign:()=>{ne()}}));const[z,De]=(0,j.Z)(!1,{value:($=he.open)!==null&&$!==void 0?$:he.visible,defaultValue:(se=he.defaultOpen)!==null&&se!==void 0?se:he.defaultVisible}),O=!pt&&!ht&&pt!==0,oe=Ze=>{var tt,ue;De(O?!1:Ze),O||((tt=he.onOpenChange)===null||tt===void 0||tt.call(he,Ze),(ue=he.onVisibleChange)===null||ue===void 0||ue.call(he,Ze))},Q=M.useMemo(()=>{var Ze,tt;let ue=Vt;return typeof Ge=="object"&&(ue=(tt=(Ze=Ge.pointAtCenter)!==null&&Ze!==void 0?Ze:Ge.arrowPointAtCenter)!==null&&tt!==void 0?tt:Vt),rt||(0,ve.Z)({arrowPointAtCenter:ue,autoAdjustOverflow:Jt,arrowWidth:on?Kt.sizePopupArrow:0,borderRadius:Kt.borderRadius,offset:Kt.marginXXS,visibleFirst:!0})},[Vt,Ge,rt,Kt]),le=M.useMemo(()=>pt===0?pt:ht||pt||"",[ht,pt]),ce=M.createElement(A.BR,null,typeof le=="function"?le():le),{getPopupContainer:Ae,placement:_e="top",mouseEnterDelay:Pe=.1,mouseLeaveDelay:Ie=.1,overlayStyle:Fe,rootClassName:Qe}=he,et=B(he,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ye=Et("tooltip",D),ut=Et(),dt=he["data-popover-inject"];let ot=z;!("open"in he)&&!("visible"in he)&&O&&(ot=!1);const Ct=fe((0,xe.l$)(pe)&&!(0,xe.M2)(pe)?pe:M.createElement("span",null,pe),Ye),Lt=Ct.props,w=!Lt.className||typeof Lt.className=="string"?de()(Lt.className,J||`${Ye}-open`):Lt.className,[C,lt]=N(Ye,!dt),ie=U(Ye,E),Oe=ie.arrowStyle,mn=Object.assign(Object.assign({},Z),ie.overlayStyle),$e=de()(g,{[`${Ye}-rtl`]:q==="rtl"},ie.className,Qe,lt);return C(M.createElement(Ce.Z,Object.assign({},et,{showArrow:on,placement:_e,mouseEnterDelay:Pe,mouseLeaveDelay:Ie,prefixCls:Ye,overlayClassName:$e,overlayStyle:Object.assign(Object.assign({},Oe),Fe),getTooltipContainer:Ae||K||at,ref:ge,builtinPlacements:Q,overlay:ce,visible:ot,onVisibleChange:oe,afterVisibleChange:ze!=null?ze:We,overlayInnerStyle:mn,arrowContent:M.createElement("span",{className:`${Ye}-arrow-content`}),motion:{motionName:(0,X.m)(ut,"zoom-big-fast",he.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!je}),ot?(0,xe.Tm)(Ct,{className:w}):Ct))});be._InternalPanelDoNotUseOrYouWillBeFired=T;var Re=be},98228:function(qt,qe,p){"use strict";p.d(qe,{default:function(){return ue}});var M=p(92310),Y=p.n(M),de=p(96663),Ce=p(19127),j=p(44127),X=p(72071),ve=p(6620),xe=p(20135),s=p(77861),A=p(17115),L=p(90782),v=p(18929),u=p(48736),y=p(59301),b=function(V){var we=y.useRef({valueLabels:new Map});return y.useMemo(function(){var Ne=we.current.valueLabels,H=new Map,it=V.map(function(Ee){var Tt,Mt=Ee.value,Ut=(Tt=Ee.label)!==null&&Tt!==void 0?Tt:Ne.get(Mt);return H.set(Mt,Ut),(0,j.Z)((0,j.Z)({},Ee),{},{label:Ut})});return we.current.valueLabels=H,[it]},[V])},k=function(V,we,Ne,H){return y.useMemo(function(){var it=V.map(function(Ut){var dn=Ut.value;return dn}),Ee=we.map(function(Ut){var dn=Ut.value;return dn}),Tt=it.filter(function(Ut){return!H[Ut]});if(Ne){var Mt=(0,L.S)(it,!0,H);it=Mt.checkedKeys,Ee=Mt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ce.Z)(Tt),(0,Ce.Z)(it)))),Ee]},[V,we,Ne,H])},ae=p(71430),P=function(V,we){return y.useMemo(function(){var Ne=(0,ae.I8)(V,{fieldNames:we,initWrapper:function(it){return(0,j.Z)((0,j.Z)({},it),{},{valueEntities:new Map})},processEntity:function(it,Ee){var Tt=it.node[we.value];if(0)var Mt;Ee.valueEntities.set(Tt,it)}});return Ne},[V,we])},N=p(90493),G=p(11592),U=function(){return null},x=U,T=["children","value"];function B(V){return(0,G.Z)(V).map(function(we){if(!y.isValidElement(we)||!we.type)return null;var Ne=we,H=Ne.key,it=Ne.props,Ee=it.children,Tt=it.value,Mt=(0,ve.Z)(it,T),Ut=(0,j.Z)({key:H,value:Tt},Mt),dn=B(Ee);return dn.length&&(Ut.children=dn),Ut}).filter(function(we){return we})}function F(V){if(!V)return V;var we=(0,j.Z)({},V);return"props"in we||Object.defineProperty(we,"props",{get:function(){return(0,u.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),we}}),we}function fe(V,we,Ne,H,it,Ee){var Tt=null,Mt=null;function Ut(){function dn(wt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return wt.map(function(mt,xt){var Me="".concat(Yt,"-").concat(xt),Te=mt[Ee.value],st=Ne.includes(Te),ct=dn(mt[Ee.children]||[],Me,st),kt=y.createElement(x,mt,ct.map(function($t){return $t.node}));if(we===Te&&(Tt=kt),st){var Ot={pos:Me,node:kt,children:ct};return Ue||Mt.push(Ot),Ot}return null}).filter(function(mt){return mt})}Mt||(Mt=[],dn(H),Mt.sort(function(wt,Yt){var Ue=wt.node.props.value,mt=Yt.node.props.value,xt=Ne.indexOf(Ue),Me=Ne.indexOf(mt);return xt-Me}))}Object.defineProperty(V,"triggerNode",{get:function(){return(0,u.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ut(),Tt}}),Object.defineProperty(V,"allCheckedNodes",{get:function(){return(0,u.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ut(),it?Mt:Mt.map(function(wt){var Yt=wt.node;return Yt})}})}var be=function(V,we,Ne){var H=Ne.treeNodeFilterProp,it=Ne.filterTreeNode,Ee=Ne.fieldNames,Tt=Ee.children;return y.useMemo(function(){if(!we||it===!1)return V;var Mt;if(typeof it=="function")Mt=it;else{var Ut=we.toUpperCase();Mt=function(Yt,Ue){var mt=Ue[H];return String(mt).toUpperCase().includes(Ut)}}function dn(wt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wt.reduce(function(Ue,mt){var xt=mt[Tt],Me=Yt||Mt(we,F(mt)),Te=dn(xt||[],Me);return(Me||Te.length)&&Ue.push((0,j.Z)((0,j.Z)({},mt),{},(0,N.Z)({isLeaf:void 0},Tt,Te))),Ue},[])}return dn(V)},[V,we,Tt,H,it])};function Re(V){var we=y.useRef();we.current=V;var Ne=y.useCallback(function(){return we.current.apply(we,arguments)},[]);return Ne}function he(V,we){var Ne=we.id,H=we.pId,it=we.rootPId,Ee={},Tt=[],Mt=V.map(function(Ut){var dn=(0,j.Z)({},Ut),wt=dn[Ne];return Ee[wt]=dn,dn.key=dn.key||wt,dn});return Mt.forEach(function(Ut){var dn=Ut[H],wt=Ee[dn];wt&&(wt.children=wt.children||[],wt.children.push(Ut)),(dn===it||!wt&&it===null)&&Tt.push(Ut)}),Tt}function W(V,we,Ne){return y.useMemo(function(){return V?Ne?he(V,(0,j.Z)({id:"id",pId:"pId",rootPId:null},Ne!==!0?Ne:{})):V:B(we)},[we,Ne,V])}var $=y.createContext(null),se=$,D=p(10228),J=p(80547),K=p(43858),g=y.createContext(null),E=g;function Z(V){return Array.isArray(V)?V:V!==void 0?[V]:[]}function pe(V){var we=V||{},Ne=we.label,H=we.value,it=we.children,Ee=H||"value";return{_title:Ne?[Ne]:["title","label"],value:Ee,key:Ee,children:it||"children"}}function ze(V){return!V||V.disabled||V.disableCheckbox||V.checkable===!1}function We(V,we){var Ne=[];function H(it){it.forEach(function(Ee){var Tt=Ee[we.children];Tt&&(Ne.push(Ee[we.value]),H(Tt))})}return H(V),Ne}function je(V){return V==null}var Ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pt=function(we,Ne){var H=(0,s.lk)(),it=H.prefixCls,Ee=H.multiple,Tt=H.searchValue,Mt=H.toggleOpen,Ut=H.open,dn=H.notFoundContent,wt=y.useContext(E),Yt=wt.virtual,Ue=wt.listHeight,mt=wt.listItemHeight,xt=wt.treeData,Me=wt.fieldNames,Te=wt.onSelect,st=wt.dropdownMatchSelectWidth,ct=wt.treeExpandAction,kt=y.useContext(se),Ot=kt.checkable,$t=kt.checkedKeys,Bt=kt.halfCheckedKeys,Xt=kt.treeExpandedKeys,hn=kt.treeDefaultExpandAll,Dt=kt.treeDefaultExpandedKeys,yt=kt.onTreeExpand,Ht=kt.treeIcon,zt=kt.showTreeIcon,Gt=kt.switcherIcon,sn=kt.treeLine,Rn=kt.treeNodeFilterProp,pn=kt.loadData,Ft=kt.treeLoadedKeys,Je=kt.treeMotion,nt=kt.onTreeLoad,vt=kt.keyEntities,bt=y.useRef(),ft=(0,J.Z)(function(){return xt},[Ut,xt],function(Ke,un){return un[0]&&Ke[1]!==un[1]}),It=y.useState(null),_t=(0,X.Z)(It,2),jt=_t[0],an=_t[1],nn=vt[jt],Sn=y.useMemo(function(){return Ot?{checked:$t,halfChecked:Bt}:null},[Ot,$t,Bt]);y.useEffect(function(){if(Ut&&!Ee&&$t.length){var Ke;(Ke=bt.current)===null||Ke===void 0||Ke.scrollTo({key:$t[0]}),an($t[0])}},[Ut]);var Ln=String(Tt).toLowerCase(),Fn=function(un){return Ln?String(un[Rn]).toLowerCase().includes(Ln):!1},cn=y.useState(Dt),rn=(0,X.Z)(cn,2),$n=rn[0],An=rn[1],Wn=y.useState(null),Cn=(0,X.Z)(Wn,2),Nn=Cn[0],zn=Cn[1],Pn=y.useMemo(function(){return Xt?(0,Ce.Z)(Xt):Tt?Nn:$n},[$n,Nn,Xt,Tt]);y.useEffect(function(){Tt&&zn(We(xt,Me))},[Tt]);var Yn=function(un){An(un),zn(un),yt&&yt(un)},or=function(un){un.preventDefault()},Tn=function(un,On){var Hn=On.node;Ot&&ze(Hn)||(Te(Hn.key,{selected:!$t.includes(Hn.key)}),Ee||Mt(!1))};if(y.useImperativeHandle(Ne,function(){var Ke;return{scrollTo:(Ke=bt.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(On){var Hn,Gn=On.which;switch(Gn){case D.Z.UP:case D.Z.DOWN:case D.Z.LEFT:case D.Z.RIGHT:(Hn=bt.current)===null||Hn===void 0||Hn.onKeyDown(On);break;case D.Z.ENTER:{if(nn){var nr=(nn==null?void 0:nn.node)||{},rr=nr.selectable,Un=nr.value;rr!==!1&&Tn(null,{node:{key:jt},selected:!$t.includes(Un)})}break}case D.Z.ESC:Mt(!1)}},onKeyUp:function(){}}}),ft.length===0)return y.createElement("div",{role:"listbox",className:"".concat(it,"-empty"),onMouseDown:or},dn);var tn={fieldNames:Me};return Ft&&(tn.loadedKeys=Ft),Pn&&(tn.expandedKeys=Pn),y.createElement("div",{onMouseDown:or},nn&&Ut&&y.createElement("span",{style:Ge,"aria-live":"assertive"},nn.node.value),y.createElement(K.Z,(0,de.Z)({ref:bt,focusable:!1,prefixCls:"".concat(it,"-tree"),treeData:ft,height:Ue,itemHeight:mt,virtual:Yt!==!1&&st!==!1,multiple:Ee,icon:Ht,showIcon:zt,switcherIcon:Gt,showLine:sn,loadData:Tt?null:pn,motion:Je,activeKey:jt,checkable:Ot,checkStrictly:!0,checkedKeys:Sn,selectedKeys:Ot?[]:$t,defaultExpandAll:hn},tn,{onActiveChange:an,onSelect:Tn,onCheck:Tn,onExpand:Yn,onLoad:nt,filterTreeNode:Fn,expandAction:ct})))},ht=y.forwardRef(pt);ht.displayName="OptionList";var rt=ht,Vt="SHOW_ALL",Jt="SHOW_PARENT",on="SHOW_CHILD";function Kt(V,we,Ne,H){var it=new Set(V);return we===on?V.filter(function(Ee){var Tt=Ne[Ee];return!(Tt&&Tt.children&&Tt.children.some(function(Mt){var Ut=Mt.node;return it.has(Ut[H.value])})&&Tt.children.every(function(Mt){var Ut=Mt.node;return ze(Ut)||it.has(Ut[H.value])}))}):we===Jt?V.filter(function(Ee){var Tt=Ne[Ee],Mt=Tt?Tt.parent:null;return!(Mt&&!ze(Mt.node)&&it.has(Mt.key))}):V}function at(V){var we=V.searchPlaceholder,Ne=V.treeCheckStrictly,H=V.treeCheckable,it=V.labelInValue,Ee=V.value,Tt=V.multiple;warning(!we,"`searchPlaceholder` has been removed."),Ne&&it===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(it||Ne)&&warning(toArray(Ee).every(function(Mt){return Mt&&_typeof(Mt)==="object"&&"value"in Mt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ne||Tt||H?warning(!Ee||Array.isArray(Ee),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ee),"`value` should not be array when `TreeSelect` is single mode.")}var Et=null,q=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ge(V){return!V||(0,xe.Z)(V)!=="object"}var ne=y.forwardRef(function(V,we){var Ne=V.id,H=V.prefixCls,it=H===void 0?"rc-tree-select":H,Ee=V.value,Tt=V.defaultValue,Mt=V.onChange,Ut=V.onSelect,dn=V.onDeselect,wt=V.searchValue,Yt=V.inputValue,Ue=V.onSearch,mt=V.autoClearSearchValue,xt=mt===void 0?!0:mt,Me=V.filterTreeNode,Te=V.treeNodeFilterProp,st=Te===void 0?"value":Te,ct=V.showCheckedStrategy,kt=V.treeNodeLabelProp,Ot=V.multiple,$t=V.treeCheckable,Bt=V.treeCheckStrictly,Xt=V.labelInValue,hn=V.fieldNames,Dt=V.treeDataSimpleMode,yt=V.treeData,Ht=V.children,zt=V.loadData,Gt=V.treeLoadedKeys,sn=V.onTreeLoad,Rn=V.treeDefaultExpandAll,pn=V.treeExpandedKeys,Ft=V.treeDefaultExpandedKeys,Je=V.onTreeExpand,nt=V.treeExpandAction,vt=V.virtual,bt=V.listHeight,ft=bt===void 0?200:bt,It=V.listItemHeight,_t=It===void 0?20:It,jt=V.onDropdownVisibleChange,an=V.dropdownMatchSelectWidth,nn=an===void 0?!0:an,Sn=V.treeLine,Ln=V.treeIcon,Fn=V.showTreeIcon,cn=V.switcherIcon,rn=V.treeMotion,$n=(0,ve.Z)(V,q),An=(0,A.ZP)(Ne),Wn=$t&&!Bt,Cn=$t||Bt,Nn=Bt||Xt,zn=Cn||Ot,Pn=(0,v.Z)(Tt,{value:Ee}),Yn=(0,X.Z)(Pn,2),or=Yn[0],Tn=Yn[1],tn=y.useMemo(function(){return $t?ct||on:Vt},[ct,$t]),Ke=y.useMemo(function(){return pe(hn)},[JSON.stringify(hn)]),un=(0,v.Z)("",{value:wt!==void 0?wt:Yt,postState:function(Wt){return Wt||""}}),On=(0,X.Z)(un,2),Hn=On[0],Gn=On[1],nr=function(Wt){Gn(Wt),Ue==null||Ue(Wt)},rr=W(yt,Ht,Dt),Un=P(rr,Ke),qn=Un.keyEntities,yn=Un.valueEntities,ln=y.useCallback(function(pr){var Wt=[],sr=[];return pr.forEach(function(vr){yn.has(vr)?sr.push(vr):Wt.push(vr)}),{missingRawValues:Wt,existRawValues:sr}},[yn]),Bn=be(rr,Hn,{fieldNames:Ke,treeNodeFilterProp:st,filterTreeNode:Me}),tr=y.useCallback(function(pr){if(pr){if(kt)return pr[kt];for(var Wt=Ke._title,sr=0;sr<Wt.length;sr+=1){var vr=pr[Wt[sr]];if(vr!==void 0)return vr}}},[Ke,kt]),lr=y.useCallback(function(pr){var Wt=Z(pr);return Wt.map(function(sr){return ge(sr)?{value:sr}:sr})},[]),kr=y.useCallback(function(pr){var Wt=lr(pr);return Wt.map(function(sr){var vr=sr.label,Dn=sr.value,Mn=sr.halfChecked,xn,bn=yn.get(Dn);if(bn){var Xn;vr=(Xn=vr)!==null&&Xn!==void 0?Xn:tr(bn.node),xn=bn.node.disabled}else if(vr===void 0){var ur=lr(or).find(function(Pr){return Pr.value===Dn});vr=ur.label}return{label:vr,value:Dn,halfChecked:Mn,disabled:xn}})},[yn,tr,lr,or]),En=y.useMemo(function(){return lr(or)},[lr,or]),hr=y.useMemo(function(){var pr=[],Wt=[];return En.forEach(function(sr){sr.halfChecked?Wt.push(sr):pr.push(sr)}),[pr,Wt]},[En]),dr=(0,X.Z)(hr,2),mr=dr[0],Fr=dr[1],Ur=y.useMemo(function(){return mr.map(function(pr){return pr.value})},[mr]),br=k(mr,Fr,Wn,qn),Dr=(0,X.Z)(br,2),gr=Dr[0],jr=Dr[1],Vr=y.useMemo(function(){var pr=Kt(gr,tn,qn,Ke),Wt=pr.map(function(Mn){var xn,bn,Xn;return(xn=(bn=qn[Mn])===null||bn===void 0||(Xn=bn.node)===null||Xn===void 0?void 0:Xn[Ke.value])!==null&&xn!==void 0?xn:Mn}),sr=Wt.map(function(Mn){var xn=mr.find(function(bn){return bn.value===Mn});return{value:Mn,label:xn==null?void 0:xn.label}}),vr=kr(sr),Dn=vr[0];return!zn&&Dn&&je(Dn.value)&&je(Dn.label)?[]:vr.map(function(Mn){var xn;return(0,j.Z)((0,j.Z)({},Mn),{},{label:(xn=Mn.label)!==null&&xn!==void 0?xn:Mn.value})})},[Ke,zn,gr,mr,kr,tn,qn]),ii=b(Vr),Br=(0,X.Z)(ii,1),ti=Br[0],ar=Re(function(pr,Wt,sr){var vr=kr(pr);if(Tn(vr),xt&&Gn(""),Mt){var Dn=pr;if(Wn){var Mn=Kt(pr,tn,qn,Ke);Dn=Mn.map(function(Yr){var pi=yn.get(Yr);return pi?pi.node[Ke.value]:Yr})}var xn=Wt||{triggerValue:void 0,selected:void 0},bn=xn.triggerValue,Xn=xn.selected,ur=Dn;if(Bt){var Pr=Fr.filter(function(Yr){return!Dn.includes(Yr.value)});ur=[].concat((0,Ce.Z)(ur),(0,Ce.Z)(Pr))}var Tr=kr(ur),Rr={preValue:mr,triggerValue:bn},Mr=!0;(Bt||sr==="selection"&&!Xn)&&(Mr=!1),fe(Rr,bn,pr,rr,Mr,Ke),Cn?Rr.checked=Xn:Rr.selected=Xn;var ui=Nn?Tr:Tr.map(function(Yr){return Yr.value});Mt(zn?ui:ui[0],Nn?null:Tr.map(function(Yr){return Yr.label}),Rr)}}),si=y.useCallback(function(pr,Wt){var sr,vr=Wt.selected,Dn=Wt.source,Mn=qn[pr],xn=Mn==null?void 0:Mn.node,bn=(sr=xn==null?void 0:xn[Ke.value])!==null&&sr!==void 0?sr:pr;if(!zn)ar([bn],{selected:!0,triggerValue:bn},"option");else{var Xn=vr?[].concat((0,Ce.Z)(Ur),[bn]):gr.filter(function(pi){return pi!==bn});if(Wn){var ur=ln(Xn),Pr=ur.missingRawValues,Tr=ur.existRawValues,Rr=Tr.map(function(pi){return yn.get(pi).key}),Mr;if(vr){var ui=(0,L.S)(Rr,!0,qn);Mr=ui.checkedKeys}else{var Yr=(0,L.S)(Rr,{checked:!1,halfCheckedKeys:jr},qn);Mr=Yr.checkedKeys}Xn=[].concat((0,Ce.Z)(Pr),(0,Ce.Z)(Mr.map(function(pi){return qn[pi].node[Ke.value]})))}ar(Xn,{selected:vr,triggerValue:bn},Dn||"option")}vr||!zn?Ut==null||Ut(bn,F(xn)):dn==null||dn(bn,F(xn))},[ln,yn,qn,Ke,zn,Ur,ar,Wn,Ut,dn,gr,jr]),vi=y.useCallback(function(pr){if(jt){var Wt={};Object.defineProperty(Wt,"documentClickClose",{get:function(){return(0,u.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),jt(pr,Wt)}},[jt]),fi=Re(function(pr,Wt){var sr=pr.map(function(vr){return vr.value});if(Wt.type==="clear"){ar(sr,{},"selection");return}Wt.values.length&&si(Wt.values[0].value,{selected:!1,source:"selection"})}),Lr=y.useMemo(function(){return{virtual:vt,dropdownMatchSelectWidth:nn,listHeight:ft,listItemHeight:_t,treeData:Bn,fieldNames:Ke,onSelect:si,treeExpandAction:nt}},[vt,nn,ft,_t,Bn,Ke,si,nt]),hi=y.useMemo(function(){return{checkable:Cn,loadData:zt,treeLoadedKeys:Gt,onTreeLoad:sn,checkedKeys:gr,halfCheckedKeys:jr,treeDefaultExpandAll:Rn,treeExpandedKeys:pn,treeDefaultExpandedKeys:Ft,onTreeExpand:Je,treeIcon:Ln,treeMotion:rn,showTreeIcon:Fn,switcherIcon:cn,treeLine:Sn,treeNodeFilterProp:st,keyEntities:qn}},[Cn,zt,Gt,sn,gr,jr,Rn,pn,Ft,Je,Ln,rn,Fn,cn,Sn,st,qn]);return y.createElement(E.Provider,{value:Lr},y.createElement(se.Provider,{value:hi},y.createElement(s.Ac,(0,de.Z)({ref:we},$n,{id:An,prefixCls:it,mode:zn?"multiple":void 0,displayValues:ti,onDisplayValuesChange:fi,searchValue:Hn,onSearch:nr,OptionList:rt,emptyOptions:!rr.length,onDropdownVisibleChange:vi,dropdownMatchSelectWidth:nn}))))}),z=ne;z.TreeNode=x,z.SHOW_ALL=Vt,z.SHOW_PARENT=Jt,z.SHOW_CHILD=on;var De=z,O=De,oe=p(2738),Q=p(53487),le=p(62892),ce=p(19080),Ae=p(36355),_e=p(1684),Pe=p(93891),Ie=p(19716),Fe=p(32441),Qe=p(14154),et=p(58582),Ye=p(84443),ut=p(66339),dt=p(33234),ot=p(71997),Ct=p(98447),Lt=p(37613),w=p(83116),C=p(20648);const lt=V=>{const{componentCls:we,treePrefixCls:Ne,colorBgElevated:H}=V,it=`.${Ne}`;return[{[`${we}-dropdown`]:[{padding:`${V.paddingXS}px ${V.paddingXS/2}px`},(0,C.Yk)(Ne,(0,Lt.TS)(V,{colorBgContainer:H})),{[it]:{borderRadius:0,[`${it}-list-holder-inner`]:{alignItems:"stretch",[`${it}-treenode`]:{[`${it}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ct.C2)(`${Ne}-checkbox`,V),{"&-rtl":{direction:"rtl",[`${it}-switcher${it}-switcher_close`]:{[`${it}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function ie(V,we){return(0,w.Z)("TreeSelect",Ne=>{const H=(0,Lt.TS)(Ne,{treePrefixCls:we});return[lt(H)]},C.TM)(V)}var Oe=function(V,we){var Ne={};for(var H in V)Object.prototype.hasOwnProperty.call(V,H)&&we.indexOf(H)<0&&(Ne[H]=V[H]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,H=Object.getOwnPropertySymbols(V);it<H.length;it++)we.indexOf(H[it])<0&&Object.prototype.propertyIsEnumerable.call(V,H[it])&&(Ne[H[it]]=V[H[it]]);return Ne};const mn=(V,we)=>{var Ne,{prefixCls:H,size:it,disabled:Ee,bordered:Tt=!0,className:Mt,rootClassName:Ut,treeCheckable:dn,multiple:wt,listHeight:Yt=256,listItemHeight:Ue=26,placement:mt,notFoundContent:xt,switcherIcon:Me,treeLine:Te,getPopupContainer:st,popupClassName:ct,dropdownClassName:kt,treeIcon:Ot=!1,transitionName:$t,choiceTransitionName:Bt="",status:Xt,treeExpandAction:hn,builtinPlacements:Dt,dropdownMatchSelectWidth:yt,popupMatchSelectWidth:Ht,allowClear:zt}=V,Gt=Oe(V,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:sn,getPrefixCls:Rn,renderEmpty:pn,direction:Ft,virtual:Je,popupMatchSelectWidth:nt,popupOverflow:vt}=y.useContext(Ae.E_),bt=Rn(),ft=Rn("select",H),It=Rn("select-tree",H),_t=Rn("tree-select",H),{compactSize:jt,compactItemClassnames:an}=(0,dt.ri)(ft,Ft),[nn,Sn]=(0,Qe.Z)(ft),[Ln]=ie(_t,It),Fn=Y()(ct||kt,`${_t}-dropdown`,{[`${_t}-dropdown-rtl`]:Ft==="rtl"},Ut,Sn),cn=!!(dn||wt),rn=(0,Ye.Z)(Gt.suffixIcon,Gt.showArrow),$n=(Ne=Ht!=null?Ht:yt)!==null&&Ne!==void 0?Ne:nt,{status:An,hasFeedback:Wn,isFormItemInput:Cn,feedbackIcon:Nn}=y.useContext(Fe.aM),zn=(0,ce.F)(An,Xt),{suffixIcon:Pn,removeIcon:Yn,clearIcon:or}=(0,ut.Z)(Object.assign(Object.assign({},Gt),{multiple:cn,showSuffixIcon:rn,hasFeedback:Wn,feedbackIcon:Nn,prefixCls:ft,componentName:"TreeSelect"})),Tn=zt===!0?{clearIcon:or}:zt;let tn;xt!==void 0?tn=xt:tn=(pn==null?void 0:pn("Select"))||y.createElement(Pe.Z,{componentName:"Select"});const Ke=(0,oe.Z)(Gt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),un=y.useMemo(()=>mt!==void 0?mt:Ft==="rtl"?"bottomRight":"bottomLeft",[mt,Ft]),On=(0,et.Z)(Dt,vt),Hn=(0,Ie.Z)(yn=>{var ln;return(ln=it!=null?it:jt)!==null&&ln!==void 0?ln:yn}),Gn=y.useContext(_e.Z),nr=Ee!=null?Ee:Gn,rr=Y()(!H&&_t,{[`${ft}-lg`]:Hn==="large",[`${ft}-sm`]:Hn==="small",[`${ft}-rtl`]:Ft==="rtl",[`${ft}-borderless`]:!Tt,[`${ft}-in-form-item`]:Cn},(0,ce.Z)(ft,zn,Wn),an,Mt,Ut,Sn),Un=yn=>y.createElement(ot.Z,{prefixCls:It,switcherIcon:Me,treeNodeProps:yn,showLine:Te}),qn=y.createElement(O,Object.assign({virtual:Je,disabled:nr},Ke,{dropdownMatchSelectWidth:$n,builtinPlacements:On,ref:we,prefixCls:ft,className:rr,listHeight:Yt,listItemHeight:Ue,treeCheckable:dn&&y.createElement("span",{className:`${ft}-tree-checkbox-inner`}),treeLine:!!Te,suffixIcon:Pn,multiple:cn,placement:un,removeIcon:Yn,allowClear:Tn,switcherIcon:Un,showTreeIcon:Ot,notFoundContent:tn,getPopupContainer:st||sn,treeMotion:null,dropdownClassName:Fn,choiceTransitionName:(0,le.m)(bt,"",Bt),transitionName:(0,le.m)(bt,"slide-up",$t),treeExpandAction:hn}));return nn(Ln(qn))},Ze=y.forwardRef(mn),tt=(0,Q.Z)(Ze);Ze.TreeNode=x,Ze.SHOW_ALL=Vt,Ze.SHOW_PARENT=Jt,Ze.SHOW_CHILD=on,Ze._InternalPanelDoNotUseOrYouWillBeFired=tt;var ue=Ze},17574:function(qt,qe,p){"use strict";p.d(qe,{default:function(){return E}});var M=p(43858),Y=p(19127),de=p(52671),Ce=p(8657),j=p(96663),X=p(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},xe=ve,s=p(7657),A=function(pe,ze){return X.createElement(s.Z,(0,j.Z)({},pe,{ref:ze,icon:xe}))},L=X.forwardRef(A),v=L,u=p(92310),y=p.n(u),b=p(35654),k=p(71430),ae=p(36355),P=p(56082),N=p(62892),G=p(20648);const U=4;function x(Z){const{dropPosition:pe,dropLevelOffset:ze,prefixCls:We,indent:je,direction:Ge="ltr"}=Z,pt=Ge==="ltr"?"left":"right",ht=Ge==="ltr"?"right":"left",rt={[pt]:-ze*je+U,[ht]:0};switch(pe){case-1:rt.top=-3;break;case 1:rt.bottom=-3;break;default:rt.bottom=-3,rt[pt]=je+U;break}return X.createElement("div",{style:rt,className:`${We}-drop-indicator`})}var T=p(71997),F=X.forwardRef((Z,pe)=>{const{getPrefixCls:ze,direction:We,virtual:je,tree:Ge}=X.useContext(ae.E_),{prefixCls:pt,className:ht,showIcon:rt=!1,showLine:Vt,switcherIcon:Jt,blockNode:on=!1,children:Kt,checkable:at=!1,selectable:Et=!0,draggable:q,motion:ge,style:ne}=Z,z=ze("tree",pt),De=ze(),O=ge!=null?ge:Object.assign(Object.assign({},(0,N.Z)(De)),{motionAppear:!1}),oe=Object.assign(Object.assign({},Z),{checkable:at,selectable:Et,showIcon:rt,motion:O,blockNode:on,showLine:!!Vt,dropIndicatorRender:x}),[Q,le]=(0,G.ZP)(z),ce=X.useMemo(()=>{if(!q)return!1;let _e={};switch(typeof q){case"function":_e.nodeDraggable=q;break;case"object":_e=Object.assign({},q);break;default:break}return _e.icon!==!1&&(_e.icon=_e.icon||X.createElement(P.Z,null)),_e},[q]),Ae=_e=>X.createElement(T.Z,{prefixCls:z,switcherIcon:Jt,treeNodeProps:_e,showLine:Vt});return Q(X.createElement(M.Z,Object.assign({itemHeight:20,ref:pe,virtual:je},oe,{style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),ne),prefixCls:z,className:y()({[`${z}-icon-hide`]:!rt,[`${z}-block-node`]:on,[`${z}-unselectable`]:!Et,[`${z}-rtl`]:We==="rtl"},Ge==null?void 0:Ge.className,ht,le),direction:We,checkable:at&&X.createElement("span",{className:`${z}-checkbox-inner`}),selectable:Et,switcherIcon:Ae,draggable:ce}),Kt))}),fe;(function(Z){Z[Z.None=0]="None",Z[Z.Start=1]="Start",Z[Z.End=2]="End"})(fe||(fe={}));function be(Z,pe){function ze(We){const{key:je,children:Ge}=We;pe(je,We)!==!1&&be(Ge||[],pe)}Z.forEach(ze)}function Re(Z){let{treeData:pe,expandedKeys:ze,startKey:We,endKey:je}=Z;const Ge=[];let pt=fe.None;if(We&&We===je)return[We];if(!We||!je)return[];function ht(rt){return rt===We||rt===je}return be(pe,rt=>{if(pt===fe.End)return!1;if(ht(rt)){if(Ge.push(rt),pt===fe.None)pt=fe.Start;else if(pt===fe.Start)return pt=fe.End,!1}else pt===fe.Start&&Ge.push(rt);return ze.includes(rt)}),Ge}function he(Z,pe){const ze=(0,Y.Z)(pe),We=[];return be(Z,(je,Ge)=>{const pt=ze.indexOf(je);return pt!==-1&&(We.push(Ge),ze.splice(pt,1)),!!ze.length}),We}var W=function(Z,pe){var ze={};for(var We in Z)Object.prototype.hasOwnProperty.call(Z,We)&&pe.indexOf(We)<0&&(ze[We]=Z[We]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,We=Object.getOwnPropertySymbols(Z);je<We.length;je++)pe.indexOf(We[je])<0&&Object.prototype.propertyIsEnumerable.call(Z,We[je])&&(ze[We[je]]=Z[We[je]]);return ze};function $(Z){const{isLeaf:pe,expanded:ze}=Z;return pe?X.createElement(de.Z,null):ze?X.createElement(Ce.Z,null):X.createElement(v,null)}function se(Z){let{treeData:pe,children:ze}=Z;return pe||(0,k.zn)(ze)}const D=(Z,pe)=>{var{defaultExpandAll:ze,defaultExpandParent:We,defaultExpandedKeys:je}=Z,Ge=W(Z,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const pt=X.useRef(),ht=X.useRef(),rt=()=>{const{keyEntities:ce}=(0,k.I8)(se(Ge));let Ae;return ze?Ae=Object.keys(ce):We?Ae=(0,b.r7)(Ge.expandedKeys||je||[],ce):Ae=Ge.expandedKeys||je,Ae},[Vt,Jt]=X.useState(Ge.selectedKeys||Ge.defaultSelectedKeys||[]),[on,Kt]=X.useState(()=>rt());X.useEffect(()=>{"selectedKeys"in Ge&&Jt(Ge.selectedKeys)},[Ge.selectedKeys]),X.useEffect(()=>{"expandedKeys"in Ge&&Kt(Ge.expandedKeys)},[Ge.expandedKeys]);const at=(ce,Ae)=>{var _e;return"expandedKeys"in Ge||Kt(ce),(_e=Ge.onExpand)===null||_e===void 0?void 0:_e.call(Ge,ce,Ae)},Et=(ce,Ae)=>{var _e;const{multiple:Pe}=Ge,{node:Ie,nativeEvent:Fe}=Ae,{key:Qe=""}=Ie,et=se(Ge),Ye=Object.assign(Object.assign({},Ae),{selected:!0}),ut=(Fe==null?void 0:Fe.ctrlKey)||(Fe==null?void 0:Fe.metaKey),dt=Fe==null?void 0:Fe.shiftKey;let ot;Pe&&ut?(ot=ce,pt.current=Qe,ht.current=ot,Ye.selectedNodes=he(et,ot)):Pe&&dt?(ot=Array.from(new Set([].concat((0,Y.Z)(ht.current||[]),(0,Y.Z)(Re({treeData:et,expandedKeys:on,startKey:Qe,endKey:pt.current}))))),Ye.selectedNodes=he(et,ot)):(ot=[Qe],pt.current=Qe,ht.current=ot,Ye.selectedNodes=he(et,ot)),(_e=Ge.onSelect)===null||_e===void 0||_e.call(Ge,ot,Ye),"selectedKeys"in Ge||Jt(ot)},{getPrefixCls:q,direction:ge}=X.useContext(ae.E_),{prefixCls:ne,className:z,showIcon:De=!0,expandAction:O="click"}=Ge,oe=W(Ge,["prefixCls","className","showIcon","expandAction"]),Q=q("tree",ne),le=y()(`${Q}-directory`,{[`${Q}-directory-rtl`]:ge==="rtl"},z);return X.createElement(F,Object.assign({icon:$,ref:pe,blockNode:!0},oe,{showIcon:De,expandAction:O,prefixCls:Q,className:le,expandedKeys:on,selectedKeys:Vt,onSelect:Et,onExpand:at}))};var K=X.forwardRef(D);const g=F;g.DirectoryTree=K,g.TreeNode=M.O;var E=g},20648:function(qt,qe,p){"use strict";p.d(qe,{TM:function(){return u},Yk:function(){return v}});var M=p(93083),Y=p(98447),de=p(17313),Ce=p(8378),j=p(37613),X=p(83116);const ve=new M.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(y,b)=>({[`.${y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${b.motionDurationSlow}`}}}),s=(y,b)=>({[`.${y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:b.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${b.lineWidthBold}px solid ${b.colorPrimary}`,borderRadius:"50%",content:'""'}}}),A=(y,b)=>{const{treeCls:k,treeNodeCls:ae,treeNodePadding:P,titleHeight:N,nodeSelectedBg:G,nodeHoverBg:U}=b,x=b.paddingXS;return{[k]:Object.assign(Object.assign({},(0,de.Wf)(b)),{background:b.colorBgContainer,borderRadius:b.borderRadius,transition:`background-color ${b.motionDurationSlow}`,[`&${k}-rtl`]:{[`${k}-switcher`]:{"&_close":{[`${k}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${k}-active-focused)`]:Object.assign({},(0,de.oN)(b)),[`${k}-list-holder-inner`]:{alignItems:"flex-start"},[`&${k}-block-node`]:{[`${k}-list-holder-inner`]:{alignItems:"stretch",[`${k}-node-content-wrapper`]:{flex:"auto"},[`${ae}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:P,insetInlineStart:0,border:`1px solid ${b.colorPrimary}`,opacity:0,animationName:ve,animationDuration:b.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ae}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${P}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${k}-node-content-wrapper`]:{color:b.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${k}-node-content-wrapper`]:Object.assign({},(0,de.oN)(b)),[`&:not(${ae}-disabled).filter-node ${k}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${k}-draggable-icon`]:{flexShrink:0,width:N,lineHeight:`${N}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${b.motionDurationSlow}`,[`${ae}:hover &`]:{opacity:.45}},[`&${ae}-disabled`]:{[`${k}-draggable-icon`]:{visibility:"hidden"}}}},[`${k}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:N}},[`${k}-draggable-icon`]:{visibility:"hidden"},[`${k}-switcher`]:Object.assign(Object.assign({},xe(y,b)),{position:"relative",flex:"none",alignSelf:"stretch",width:N,margin:0,lineHeight:`${N}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${k}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:b.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-P,marginInlineStart:-1,borderInlineEnd:`1px solid ${b.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:N/2*.8,height:N/2,borderBottom:`1px solid ${b.colorBorder}`,content:'""'}}}),[`${k}-checkbox`]:{top:"initial",marginInlineEnd:x},[`${k}-node-content-wrapper, ${k}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:N,margin:0,padding:`0 ${b.paddingXS/2}px`,color:"inherit",lineHeight:`${N}px`,background:"transparent",borderRadius:b.borderRadius,cursor:"pointer",transition:`all ${b.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:U},[`&${k}-node-selected`]:{backgroundColor:G},[`${k}-iconEle`]:{display:"inline-block",width:N,height:N,lineHeight:`${N}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${k}-unselectable ${k}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${k}-node-content-wrapper`]:Object.assign({lineHeight:`${N}px`,userSelect:"none"},s(y,b)),[`${ae}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${b.colorPrimary}`}},"&-show-line":{[`${k}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-P,borderInlineEnd:`1px solid ${b.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${k}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ae}-leaf-last`]:{[`${k}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${N/2}px !important`}}}}})}},L=y=>{const{treeCls:b,treeNodeCls:k,treeNodePadding:ae,directoryNodeSelectedBg:P,directoryNodeSelectedColor:N}=y;return{[`${b}${b}-directory`]:{[k]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${y.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:y.controlItemBgHover}},"> *":{zIndex:1},[`${b}-switcher`]:{transition:`color ${y.motionDurationMid}`},[`${b}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${b}-node-selected`]:{color:N,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:P},[`${b}-switcher`]:{color:N},[`${b}-node-content-wrapper`]:{color:N,background:"transparent"}}}}}},v=(y,b)=>{const k=`.${y}`,ae=`${k}-treenode`,P=b.paddingXS/2,N=(0,j.TS)(b,{treeCls:k,treeNodeCls:ae,treeNodePadding:P});return[A(y,N),L(N)]},u=y=>{const{controlHeightSM:b}=y;return{titleHeight:b,nodeHoverBg:y.controlItemBgHover,nodeSelectedBg:y.controlItemBgActive}};qe.ZP=(0,X.Z)("Tree",(y,b)=>{let{prefixCls:k}=b;return[{[y.componentCls]:(0,Y.C2)(`${k}-checkbox`,y)},v(k,y),(0,Ce.Z)(y)]},y=>{const{colorTextLightSolid:b,colorPrimary:k}=y;return Object.assign(Object.assign({},u(y)),{directoryNodeSelectedColor:b,directoryNodeSelectedBg:k})})},71997:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return ae}});var M=p(96663),Y=p(59301),de={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ce=de,j=p(7657),X=function(N,G){return Y.createElement(j.Z,(0,M.Z)({},N,{ref:G,icon:Ce}))},ve=Y.forwardRef(X),xe=ve,s=p(52671),A=p(58617),L=p(15075),v=p(43531),u=p(92310),y=p.n(u),b=p(92343),ae=P=>{const{prefixCls:N,switcherIcon:G,treeNodeProps:U,showLine:x}=P,{isLeaf:T,expanded:B,loading:F}=U;if(F)return Y.createElement(A.Z,{className:`${N}-switcher-loading-icon`});let fe;if(x&&typeof x=="object"&&(fe=x.showLeafIcon),T){if(!x)return null;if(typeof fe!="boolean"&&fe){const he=typeof fe=="function"?fe(U):fe,W=`${N}-switcher-line-custom-icon`;return(0,b.l$)(he)?(0,b.Tm)(he,{className:y()(he.props.className||"",W)}):he}return fe?Y.createElement(s.Z,{className:`${N}-switcher-line-icon`}):Y.createElement("span",{className:`${N}-switcher-leaf-line`})}const be=`${N}-switcher-icon`,Re=typeof G=="function"?G(U):G;return(0,b.l$)(Re)?(0,b.Tm)(Re,{className:y()(Re.props.className||"",be)}):Re!==void 0?Re:x?B?Y.createElement(L.Z,{className:`${N}-switcher-line-icon`}):Y.createElement(v.Z,{className:`${N}-switcher-line-icon`}):Y.createElement(xe,{className:be})}},64018:function(){var qt,qe,p,M=!1,Y,de;window.PR_SHOULD_USE_CONTINUATION=!0;var Ce,j;(function(){var X=window,ve=["break,continue,do,else,for,if,return,while"],xe=[ve,"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"],s=[xe,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],A=[s,"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"],L=[s,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[s,"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"],u="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",y=[s,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],b="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",k=[ve,"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"],ae=[ve,"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"],P=[ve,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[A,v,L,y,b,k,ae,P],G=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,U="str",x="kwd",T="com",B="typ",F="lit",fe="pun",be="pln",Re="tag",he="dec",W="src",$="atn",se="atv",D="nocode",J="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(q){for(var ge=0,ne=!1,z=!1,De=0,O=q.length;De<O;++De){var oe=q[De];if(oe.ignoreCase)z=!0;else if(/[a-z]/i.test(oe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ne=!0,z=!1;break}}var Q={b:8,t:9,n:10,v:11,f:12,r:13};function le(Ie){var Fe=Ie.charCodeAt(0);if(Fe!==92)return Fe;var Qe=Ie.charAt(1);return Fe=Q[Qe],Fe||("0"<=Qe&&Qe<="7"?parseInt(Ie.substring(1),8):Qe==="u"||Qe==="x"?parseInt(Ie.substring(2),16):Ie.charCodeAt(1))}function ce(Ie){if(Ie<32)return(Ie<16?"\\x0":"\\x")+Ie.toString(16);var Fe=String.fromCharCode(Ie);return Fe==="\\"||Fe==="-"||Fe==="]"||Fe==="^"?"\\"+Fe:Fe}function Ae(Ie){var Fe=Ie.substring(1,Ie.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")),Qe=[],et=Fe[0]==="^",Ye=["["];et&&Ye.push("^");for(var ut=et?1:0,dt=Fe.length;ut<dt;++ut){var ot=Fe[ut];if(/\\[bdsw]/i.test(ot))Ye.push(ot);else{var Ct=le(ot),Lt;ut+2<dt&&Fe[ut+1]==="-"?(Lt=le(Fe[ut+2]),ut+=2):Lt=Ct,Qe.push([Ct,Lt]),Lt<65||Ct>122||(Lt<65||Ct>90||Qe.push([Math.max(65,Ct)|32,Math.min(Lt,90)|32]),Lt<97||Ct>122||Qe.push([Math.max(97,Ct)&-33,Math.min(Lt,122)&-33]))}}Qe.sort(function(ie,Oe){return ie[0]-Oe[0]||Oe[1]-ie[1]});for(var w=[],C=[],ut=0;ut<Qe.length;++ut){var lt=Qe[ut];lt[0]<=C[1]+1?C[1]=Math.max(C[1],lt[1]):w.push(C=lt)}for(var ut=0;ut<w.length;++ut){var lt=w[ut];Ye.push(ce(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&Ye.push("-"),Ye.push(ce(lt[1])))}return Ye.push("]"),Ye.join("")}function _e(Ie){for(var Fe=Ie.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")),Qe=Fe.length,et=[],Ye=0,ut=0;Ye<Qe;++Ye){var dt=Fe[Ye];if(dt==="(")++ut;else if(dt.charAt(0)==="\\"){var ot=+dt.substring(1);ot&&(ot<=ut?et[ot]=-1:Fe[Ye]=ce(ot))}}for(var Ye=1;Ye<et.length;++Ye)et[Ye]===-1&&(et[Ye]=++ge);for(var Ye=0,ut=0;Ye<Qe;++Ye){var dt=Fe[Ye];if(dt==="(")++ut,et[ut]||(Fe[Ye]="(?:");else if(dt.charAt(0)==="\\"){var ot=+dt.substring(1);ot&&ot<=ut&&(Fe[Ye]="\\"+et[ot])}}for(var Ye=0;Ye<Qe;++Ye)Fe[Ye]==="^"&&Fe[Ye+1]!=="^"&&(Fe[Ye]="");if(Ie.ignoreCase&&ne)for(var Ye=0;Ye<Qe;++Ye){var dt=Fe[Ye],Ct=dt.charAt(0);dt.length>=2&&Ct==="["?Fe[Ye]=Ae(dt):Ct!=="\\"&&(Fe[Ye]=dt.replace(/[a-zA-Z]/g,function(C){var lt=C.charCodeAt(0);return"["+String.fromCharCode(lt&-33,lt|32)+"]"}))}return Fe.join("")}for(var Pe=[],De=0,O=q.length;De<O;++De){var oe=q[De];if(oe.global||oe.multiline)throw new Error(""+oe);Pe.push("(?:"+_e(oe)+")")}return new RegExp(Pe.join("|"),z?"gi":"g")}function g(q,ge){var ne=/(?:^|\s)nocode(?:\s|$)/,z=[],De=0,O=[],oe=0;function Q(le){var ce=le.nodeType;if(ce==1){if(ne.test(le.className))return;for(var Ae=le.firstChild;Ae;Ae=Ae.nextSibling)Q(Ae);var _e=le.nodeName.toLowerCase();(_e==="br"||_e==="li")&&(z[oe]=`
|
|
|
`,O[oe<<1]=De++,O[oe++<<1|1]=le)}else if(ce==3||ce==4){var Pe=le.nodeValue;Pe.length&&(ge?Pe=Pe.replace(/\r\n?/g,`
|
|
|
`):Pe=Pe.replace(/[ \t\r\n]+/g," "),z[oe]=Pe,O[oe<<1]=De,De+=Pe.length,O[oe++<<1|1]=le)}}return Q(q),{sourceCode:z.join("").replace(/\n$/,""),spans:O}}function E(q,ge,ne,z,De){if(ne){var O={sourceNode:q,pre:1,langExtension:null,numberLines:null,sourceCode:ne,spans:null,basePos:ge,decorations:null};z(O),De.push.apply(De,O.decorations)}}var Z=/\S/;function pe(q){for(var ge=void 0,ne=q.firstChild;ne;ne=ne.nextSibling){var z=ne.nodeType;ge=z===1?ge?q:ne:z===3&&Z.test(ne.nodeValue)?q:ge}return ge===q?void 0:ge}function ze(q,ge){var ne={},z;(function(){for(var oe=q.concat(ge),Q=[],le={},ce=0,Ae=oe.length;ce<Ae;++ce){var _e=oe[ce],Pe=_e[3];if(Pe)for(var Ie=Pe.length;--Ie>=0;)ne[Pe.charAt(Ie)]=_e;var Fe=_e[1],Qe=""+Fe;le.hasOwnProperty(Qe)||(Q.push(Fe),le[Qe]=null)}Q.push(/[\0-\uffff]/),z=K(Q)})();var De=ge.length,O=function(oe){for(var Q=oe.sourceCode,le=oe.basePos,ce=oe.sourceNode,Ae=[le,be],_e=0,Pe=Q.match(z)||[],Ie={},Fe=0,Qe=Pe.length;Fe<Qe;++Fe){var et=Pe[Fe],Ye=Ie[et],ut=void 0,dt;if(typeof Ye=="string")dt=!1;else{var ot=ne[et.charAt(0)];if(ot)ut=et.match(ot[1]),Ye=ot[0];else{for(var Ct=0;Ct<De;++Ct)if(ot=ge[Ct],ut=et.match(ot[1]),ut){Ye=ot[0];break}ut||(Ye=be)}dt=Ye.length>=5&&Ye.substring(0,5)==="lang-",dt&&!(ut&&typeof ut[1]=="string")&&(dt=!1,Ye=W),dt||(Ie[et]=Ye)}var Lt=_e;if(_e+=et.length,!dt)Ae.push(le+Lt,Ye);else{var w=ut[1],C=et.indexOf(w),lt=C+w.length;ut[2]&&(lt=et.length-ut[2].length,C=lt-w.length);var ie=Ye.substring(5);E(ce,le+Lt,et.substring(0,C),O,Ae),E(ce,le+Lt+C,w,Vt(ie,w),Ae),E(ce,le+Lt+lt,et.substring(lt),O,Ae)}}oe.decorations=Ae};return O}function We(q){var ge=[],ne=[];q.tripleQuotedStrings?ge.push([U,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):q.multiLineStrings?ge.push([U,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ge.push([U,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),q.verbatimStrings&&ne.push([U,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var z=q.hashComments;z&&(q.cStyleComments?(z>1?ge.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ge.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ne.push([U,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ge.push([T,/^#[^\r\n]*/,null,"#"])),q.cStyleComments&&(ne.push([T,/^\/\/[^\r\n]*/,null]),ne.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var De=q.regexLiterals;if(De){var O=De>1?"":`
|
|
|
\r`,oe=O?".":"[\\S\\s]",Q="/(?=[^/*"+O+"])(?:[^/\\x5B\\x5C"+O+"]|\\x5C"+oe+"|\\x5B(?:[^\\x5C\\x5D"+O+"]|\\x5C"+oe+")*(?:\\x5D|$))+/";ne.push(["lang-regex",RegExp("^"+J+"("+Q+")")])}var le=q.types;le&&ne.push([B,le]);var ce=(""+q.keywords).replace(/^ | $/g,"");ce.length&&ne.push([x,new RegExp("^(?:"+ce.replace(/[\s,]+/g,"|")+")\\b"),null]),ge.push([be,/^\s+/,null,` \r
|
|
|
\xA0`]);var Ae="^.[^\\s\\w.$@'\"`/\\\\]*";return q.regexLiterals&&(Ae+="(?!s*/)"),ne.push([F,/^@[a-z_$][a-z_$@0-9]*/i,null],[B,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[be,/^[a-z_$][a-z_$@0-9]*/i,null],[F,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[be,/^\\[\s\S]?/,null],[fe,new RegExp(Ae),null]),ze(ge,ne)}var je=We({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ge(q,ge,ne){for(var z=/(?:^|\s)nocode(?:\s|$)/,De=/\r\n?|\n/,O=q.ownerDocument,oe=O.createElement("li");q.firstChild;)oe.appendChild(q.firstChild);var Q=[oe];function le(Fe){var Qe=Fe.nodeType;if(Qe==1&&!z.test(Fe.className))if(Fe.nodeName==="br")ce(Fe),Fe.parentNode&&Fe.parentNode.removeChild(Fe);else for(var et=Fe.firstChild;et;et=et.nextSibling)le(et);else if((Qe==3||Qe==4)&&ne){var Ye=Fe.nodeValue,ut=Ye.match(De);if(ut){var dt=Ye.substring(0,ut.index);Fe.nodeValue=dt;var ot=Ye.substring(ut.index+ut[0].length);if(ot){var Ct=Fe.parentNode;Ct.insertBefore(O.createTextNode(ot),Fe.nextSibling)}ce(Fe),dt||Fe.parentNode.removeChild(Fe)}}}function ce(Fe){for(;!Fe.nextSibling;)if(Fe=Fe.parentNode,!Fe)return;function Qe(ut,dt){var ot=dt?ut.cloneNode(!1):ut,Ct=ut.parentNode;if(Ct){var Lt=Qe(Ct,1),w=ut.nextSibling;Lt.appendChild(ot);for(var C=w;C;C=w)w=C.nextSibling,Lt.appendChild(C)}return ot}for(var et=Qe(Fe.nextSibling,0),Ye;(Ye=et.parentNode)&&Ye.nodeType===1;)et=Ye;Q.push(et)}for(var Ae=0;Ae<Q.length;++Ae)le(Q[Ae]);ge===(ge|0)&&Q[0].setAttribute("value",ge);var _e=O.createElement("ol");_e.className="linenums";for(var Pe=Math.max(0,ge-1|0)||0,Ae=0,Ie=Q.length;Ae<Ie;++Ae)oe=Q[Ae],oe.className="L"+(Ae+Pe)%10,oe.firstChild||oe.appendChild(O.createTextNode("\xA0")),_e.appendChild(oe);q.appendChild(_e)}function pt(q){var ge=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ge=ge&&+ge[1]<=8;var ne=/\n/g,z=q.sourceCode,De=z.length,O=0,oe=q.spans,Q=oe.length,le=0,ce=q.decorations,Ae=ce.length,_e=0;ce[Ae]=De;var Pe,Ie;for(Ie=Pe=0;Ie<Ae;)ce[Ie]!==ce[Ie+2]?(ce[Pe++]=ce[Ie++],ce[Pe++]=ce[Ie++]):Ie+=2;for(Ae=Pe,Ie=Pe=0;Ie<Ae;){for(var Fe=ce[Ie],Qe=ce[Ie+1],et=Ie+2;et+2<=Ae&&ce[et+1]===Qe;)et+=2;ce[Pe++]=Fe,ce[Pe++]=Qe,Ie=et}Ae=ce.length=Pe;var Ye=q.sourceNode,ut="";Ye&&(ut=Ye.style.display,Ye.style.display="none");try{for(var dt=null;le<Q;){var ot=oe[le],Ct=oe[le+2]||De,Lt=ce[_e+2]||De,et=Math.min(Ct,Lt),w=oe[le+1],C;if(w.nodeType!==1&&(C=z.substring(O,et))){ge&&(C=C.replace(ne,"\r")),w.nodeValue=C;var lt=w.ownerDocument,ie=lt.createElement("span");ie.className=ce[_e+1];var Oe=w.parentNode;Oe.replaceChild(ie,w),ie.appendChild(w),O<Ct&&(oe[le+1]=w=lt.createTextNode(z.substring(et,Ct)),Oe.insertBefore(w,ie.nextSibling))}O=et,O>=Ct&&(le+=2),O>=Lt&&(_e+=2)}}finally{Ye&&(Ye.style.display=ut)}}var ht={};function rt(q,ge){for(var ne=ge.length;--ne>=0;){var z=ge[ne];ht.hasOwnProperty(z)?X.console&&console.warn("cannot override language handler %s",z):ht[z]=q}}function Vt(q,ge){return q&&ht.hasOwnProperty(q)||(q=/^\s*</.test(ge)?"default-markup":"default-code"),ht[q]}rt(je,["default-code"]),rt(ze([],[[be,/^[^<?]+/],[he,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[fe,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),rt(ze([[be,/^[\s]+/,null,` \r
|
|
|
`],[se,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Re,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[$,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[fe,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),rt(ze([],[[se,/^[\s\S]+/]]),["uq.val"]),rt(We({keywords:A,hashComments:!0,cStyleComments:!0,types:G}),["c","cc","cpp","cxx","cyc","m"]),rt(We({keywords:"null,true,false"}),["json"]),rt(We({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:G}),["cs"]),rt(We({keywords:L,cStyleComments:!0}),["java"]),rt(We({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),rt(We({keywords:k,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),rt(We({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),rt(We({keywords:ae,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),rt(We({keywords:y,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),rt(We({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),rt(ze([],[[U,/^[\s\S]+/]]),["regex"]);function Jt(q){var ge=q.langExtension;try{var ne=g(q.sourceNode,q.pre),z=ne.sourceCode;q.sourceCode=z,q.spans=ne.spans,q.basePos=0,Vt(ge,z)(q),pt(q)}catch(De){X.console&&console.log(De&&De.stack||De)}}function on(q,ge,ne){var z=ne||!1,De=ge||null,O=document.createElement("div");O.innerHTML="<pre>"+q+"</pre>",O=O.firstChild,z&&Ge(O,z,!0);var oe={langExtension:De,numberLines:z,sourceNode:O,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Jt(oe),O.innerHTML}function Kt(q,ge){var ne=ge||document.body,z=ne.ownerDocument||document;function De(ot){return ne.getElementsByTagName(ot)}for(var O=[De("pre"),De("code"),De("xmp")],oe=[],Q=0;Q<O.length;++Q)for(var le=0,ce=O[Q].length;le<ce;++le)oe.push(O[Q][le]);O=null;var Ae=Date;Ae.now||(Ae={now:function(){return+new Date}});var _e=0,Pe=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ie=/\bprettyprint\b/,Fe=/\bprettyprinted\b/,Qe=/pre|xmp/i,et=/^code$/i,Ye=/^(?:pre|code|xmp)$/i,ut={};function dt(){for(var ot=X.PR_SHOULD_USE_CONTINUATION?Ae.now()+250:1/0;_e<oe.length&&Ae.now()<ot;_e++){for(var Ct=oe[_e],Lt=ut,w=Ct;w=w.previousSibling;){var C=w.nodeType,lt=(C===7||C===8)&&w.nodeValue;if(lt?!/^\??prettify\b/.test(lt):C!==3||/\S/.test(w.nodeValue))break;if(lt){Lt={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ee,Tt,Mt){Lt[Tt]=Mt});break}}var ie=Ct.className;if((Lt!==ut||Ie.test(ie))&&!Fe.test(ie)){for(var Oe=!1,mn=Ct.parentNode;mn;mn=mn.parentNode){var $e=mn.tagName;if(Ye.test($e)&&mn.className&&Ie.test(mn.className)){Oe=!0;break}}if(!Oe){Ct.className+=" prettyprinted";var Ze=Lt.lang;if(!Ze){Ze=ie.match(Pe);var tt;!Ze&&(tt=pe(Ct))&&et.test(tt.tagName)&&(Ze=tt.className.match(Pe)),Ze&&(Ze=Ze[1])}var ue;if(Qe.test(Ct.tagName))ue=1;else{var V=Ct.currentStyle,we=z.defaultView,Ne=V?V.whiteSpace:we&&we.getComputedStyle?we.getComputedStyle(Ct,null).getPropertyValue("white-space"):0;ue=Ne&&Ne.substring(0,3)==="pre"}var H=Lt.linenums;(H=H==="true"||+H)||(H=ie.match(/\blinenums\b(?::(\d+))?/),H=H?H[1]&&H[1].length?+H[1]:!0:!1),H&&Ge(Ct,H,ue);var it={langExtension:Ze,sourceNode:Ct,numberLines:H,pre:ue,sourceCode:null,basePos:null,spans:null,decorations:null};Jt(it)}}}_e<oe.length?X.setTimeout(dt,250):typeof q=="function"&&q()}dt()}var at=X.PR={createSimpleLexer:ze,registerLangHandler:rt,sourceDecorator:We,PR_ATTRIB_NAME:$,PR_ATTRIB_VALUE:se,PR_COMMENT:T,PR_DECLARATION:he,PR_KEYWORD:x,PR_LITERAL:F,PR_NOCODE:D,PR_PLAIN:be,PR_PUNCTUATION:fe,PR_SOURCE:W,PR_STRING:U,PR_TAG:Re,PR_TYPE:B,prettyPrintOne:M?X.prettyPrintOne=on:Ce=on,prettyPrint:j=M?X.prettyPrint=Kt:j=Kt},Et=X.define;typeof Et=="function"&&Et.amd&&Et("google-code-prettify",[],function(){return at})})()},25769:function(qt,qe,p){"use strict";var M=p(98040),Y={"text/plain":"Text","text/html":"Url",default:"Text"},de="Copy to clipboard: #{key}, Enter";function Ce(X){var ve=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return X.replace(/#{\s*key\s*}/g,ve)}function j(X,ve){var xe,s,A,L,v,u,y=!1;ve||(ve={}),xe=ve.debug||!1;try{A=M(),L=document.createRange(),v=document.getSelection(),u=document.createElement("span"),u.textContent=X,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(k){if(k.stopPropagation(),ve.format)if(k.preventDefault(),typeof k.clipboardData=="undefined"){xe&&console.warn("unable to use e.clipboardData"),xe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ae=Y[ve.format]||Y.default;window.clipboardData.setData(ae,X)}else k.clipboardData.clearData(),k.clipboardData.setData(ve.format,X);ve.onCopy&&(k.preventDefault(),ve.onCopy(k.clipboardData))}),document.body.appendChild(u),L.selectNodeContents(u),v.addRange(L);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(k){xe&&console.error("unable to copy using execCommand: ",k),xe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ve.format||"text",X),ve.onCopy&&ve.onCopy(window.clipboardData),y=!0}catch(ae){xe&&console.error("unable to copy using clipboardData: ",ae),xe&&console.error("falling back to prompt"),s=Ce("message"in ve?ve.message:de),window.prompt(s,X)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(L):v.removeAllRanges()),u&&document.body.removeChild(u),A()}return y}qt.exports=j},53184:function(qt,qe,p){"use strict";var M,Y;function de(Ce,j,X){var ve=function(xe,s){return Ce.js_beautify(xe,s)};return ve.js=Ce.js_beautify,ve.css=j.css_beautify,ve.html=X.html_beautify,ve.js_beautify=Ce.js_beautify,ve.css_beautify=j.css_beautify,ve.html_beautify=X.html_beautify,ve}M=[p(58553),p(87804),p(40998)],Y=function(Ce,j,X){return de(Ce,j,X)}.apply(qe,M),Y!==void 0&&(qt.exports=Y)},87804:function(qt,qe){var p,M;(function(){var Y;(function(){"use strict";var Ce=[,,function(xe){function s(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var v=new s(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},s.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},s.prototype.has_match=function(v){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(v))return!0;return!1},s.prototype.set_indent=function(v,u){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.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)},s.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},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(v){this.__items.push(v);var u=v.lastIndexOf(`
|
|
|
`);u!==-1?this.__character_count=v.length-u:this.__character_count+=v.length},s.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function A(v,u){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),u=u||"",v.indent_level>0&&(u=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}A.prototype.get_indent_size=function(v,u){var y=this.__base_string_length;return u=u||0,v<0&&(y=0),y+=v*this.__indent_size,y+=u,y},A.prototype.get_indent_string=function(v,u){var y=this.__base_string;return u=u||0,v<0&&(v=0,y=""),u+=v*this.__indent_size,this.__ensure_cache(u),y+=this.__cache[u],y},A.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var v=this.__cache.length,u=0,y="";this.__indent_size&&v>=this.__indent_size&&(u=Math.floor(v/this.__indent_size),v-=u*this.__indent_size,y=new Array(u+1).join(this.__indent_string)),v&&(y+=new Array(v+1).join(" ")),this.__cache.push(y)};function L(v,u){this.__indent_cache=new A(v,u),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(v,u){return this.__indent_cache.get_indent_string(v,u)},L.prototype.get_indent_size=function(v,u){return this.__indent_cache.get_indent_size(v,u)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(v){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
|
|
|
`);return v!==`
|
|
|
`&&(y=y.replace(/[\n]/g,v)),y},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(v,u){return v=v||0,u=u||0,this.next_line.set_indent(v,u),this.__lines.length>1?(this.current_line.set_indent(v,u),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(v){for(var u=0;u<v.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(v){for(var u=this.__lines.length;v<u;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(v,u){for(var y=this.__lines.length-2;y>=0;){var b=this.__lines[y];if(b.is_empty())break;if(b.item(0).indexOf(v)!==0&&b.item(-1)!==u){this.__lines.splice(y+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},xe.exports.Output=L},,,,function(xe){function s(v,u){this.raw_options=A(v,u),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"])}s.prototype._get_array=function(v,u){var y=this.raw_options[v],b=u||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(b=y.concat()):typeof y=="string"&&(b=y.split(/[^a-zA-Z0-9_\/\-]+/)),b},s.prototype._get_boolean=function(v,u){var y=this.raw_options[v],b=y===void 0?!!u:!!y;return b},s.prototype._get_characters=function(v,u){var y=this.raw_options[v],b=u||"";return typeof y=="string"&&(b=y.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),b},s.prototype._get_number=function(v,u){var y=this.raw_options[v];u=parseInt(u,10),isNaN(u)&&(u=0);var b=parseInt(y,10);return isNaN(b)&&(b=u),b},s.prototype._get_selection=function(v,u,y){var b=this._get_selection_list(v,u,y);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
|
`+u+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return b[0]},s.prototype._get_selection_list=function(v,u,y){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[u[0]],!this._is_valid_selection(y,u))throw new Error("Invalid Default Value!");var b=this._get_array(v,y);if(!this._is_valid_selection(b,u))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
|
`+u+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return b},s.prototype._is_valid_selection=function(v,u){return v.length&&u.length&&!v.some(function(y){return u.indexOf(y)===-1})};function A(v,u){var y={};v=L(v);var b;for(b in v)b!==u&&(y[b]=v[b]);if(u&&v[u])for(b in v[u])y[b]=v[u][b];return y}function L(v){var u={},y;for(y in v){var b=y.replace(/-/g,"_");u[b]=v[y]}return u}xe.exports.Options=s,xe.exports.normalizeOpts=L,xe.exports.mergeOpts=A},,function(xe){var s=RegExp.prototype.hasOwnProperty("sticky");function A(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},A.prototype.peek=function(L){var v=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(v=this.__input.charAt(L)),v},A.prototype.__match=function(L,v){L.lastIndex=v;var u=L.exec(this.__input);return u&&!(s&&L.sticky)&&u.index!==v&&(u=null),u},A.prototype.test=function(L,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(L,v):!1},A.prototype.testChar=function(L,v){var u=this.peek(v);return L.lastIndex=0,u!==null&&L.test(u)},A.prototype.match=function(L){var v=this.__match(L,this.__position);return v?this.__position+=v[0].length:v=null,v},A.prototype.read=function(L,v,u){var y="",b;return L&&(b=this.match(L),b&&(y+=b[0])),v&&(b||!L)&&(y+=this.readUntil(v,u)),y},A.prototype.readUntil=function(L,v){var u="",y=this.__position;L.lastIndex=this.__position;var b=L.exec(this.__input);return b?(y=b.index,v&&(y+=b[0].length)):y=this.__input_length,u=this.__input.substring(this.__position,y),this.__position=y,u},A.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},A.prototype.get_regexp=function(L,v){var u=null,y="g";return v&&s&&(y="y"),typeof L=="string"&&L!==""?u=new RegExp(L,y):L&&(u=new RegExp(L.source,y)),u},A.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(L){var v=this.__position,u=this.readUntilAfter(L);return this.__position=v,u},A.prototype.lookBack=function(L){var v=this.__position-1;return v>=L.length&&this.__input.substring(v-L.length,v).toLowerCase()===L},xe.exports.InputScanner=A},,,,,function(xe){function s(A,L){A=typeof A=="string"?A:A.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+L,"g")}s.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(A);v;)L[v[1]]=v[2],v=this.__directive_pattern.exec(A);return L},s.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},xe.exports.Directives=s},,function(xe,s,A){var L=A(16).Beautifier,v=A(17).Options;function u(y,b){var k=new L(y,b);return k.beautify()}xe.exports=u,xe.exports.defaultOptions=function(){return new v}},function(xe,s,A){var L=A(17).Options,v=A(2).Output,u=A(8).InputScanner,y=A(13).Directives,b=new y(/\/\*/,/\*\//),k=/\r\n|[\r\n]/,ae=/\r\n|[\r\n]/g,P=/\s/,N=/(?:\s|\n)+/g,G=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,U=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(T,B){this._source_text=T||"",this._options=new L(B),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(T){var B="";for(this._ch=this._input.next();this._ch;){if(B+=this._ch,this._ch==="\\")B+=this._input.next();else if(T.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return B},x.prototype.eatWhitespace=function(T){for(var B=P.test(this._input.peek()),F=0;P.test(this._input.peek());)this._ch=this._input.next(),T&&this._ch===`
|
|
|
`&&(F===0||F<this._options.max_preserve_newlines)&&(F++,this._output.add_new_line(!0));return B},x.prototype.foundNestedPseudoClass=function(){for(var T=0,B=1,F=this._input.peek(B);F;){if(F==="{")return!0;if(F==="(")T+=1;else if(F===")"){if(T===0)return!1;T-=1}else if(F===";"||F==="}")return!1;B++,F=this._input.peek(B)}return!1},x.prototype.print_string=function(T){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(T)},x.prototype.preserveSingleSpace=function(T){T&&(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 T=this._source_text,B=this._options.eol;B==="auto"&&(B=`
|
|
|
`,T&&k.test(T||"")&&(B=T.match(k)[0])),T=T.replace(ae,`
|
|
|
`);var F=T.match(/^[\t ]*/)[0];this._output=new v(this._options,F),this._input=new u(T),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var fe=0,be=!1,Re=!1,he=!1,W=!1,$=!1,se=this._ch,D=!1,J,K,g;J=this._input.read(N),K=J!=="",g=se,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),se=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var E=this._input.read(G),Z=b.get_directives(E);Z&&Z.ignore==="start"&&(E+=b.readIgnored(this._input)),this.print_string(E),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(U)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(K),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),fe===0&&pe.indexOf(":")!==-1&&(Re=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(K),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ze=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ze.match(/[ :]$/)&&(ze=this.eatString(": ").replace(/\s+$/,""),this.print_string(ze),this._output.space_before_token=!0),fe===0&&ze.indexOf(":")!==-1?(Re=!0,this.indent()):ze in this.NESTED_AT_RULE?(this._nestedLevel+=1,ze in this.CONDITIONAL_GROUP_RULE&&(he=!0)):fe===0&&!Re&&(W=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(K),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Re&&(Re=!1,this.outdent()),W=!1,he?(he=!1,be=this._indentLevel>=this._nestedLevel):be=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&be&&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),Re&&(this.outdent(),Re=!1),this.print_string(this._ch),be=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var We=0;We<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;We++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[We])){D=!0;break}(be||he)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!W&&fe===0?(this.print_string(":"),Re||(Re=!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 je=g==='"'||g==="'";this.preserveSingleSpace(je||K),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,fe===0?(Re&&(this.outdent(),Re=!1),W=!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(),fe++,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(")")),fe&&(fe--,this.outdent()));else{var Ge=!1;this._input.lookBack("with")&&(Ge=!0),this.preserveSingleSpace(K||Ge),this.print_string(this._ch),Re&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),$=!0):(this.eatWhitespace(),fe++,this.indent())}else if(this._ch===")")fe&&(fe--,this.outdent()),$&&this._input.peek()===";"&&this._options.selector_separator_newline&&($=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Re||$)&&fe===0&&!W?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Re&&fe===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&&P.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(K),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),P.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 pt=g==='"'||g==="'";this.preserveSingleSpace(pt||K),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&D&&this._output.add_new_line()}var ht=this._output.get_code(B);return ht},xe.exports.Beautifier=x},function(xe,s,A){var L=A(6).Options;function v(u){L.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var y=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||y;var b=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var k=0;k<b.length;k++)b[k]!=="expand"?this.brace_style="collapse":this.brace_style=b[k]}v.prototype=new L,xe.exports.Options=v}],j={};function X(xe){var s=j[xe];if(s!==void 0)return s.exports;var A=j[xe]={exports:{}};return Ce[xe](A,A.exports,X),A.exports}var ve=X(15);Y=ve})();var de=Y;p=[],M=function(){return{css_beautify:de}}.apply(qe,p),M!==void 0&&(qt.exports=M)})()},40998:function(qt,qe,p){var M,Y;(function(){var de;(function(){"use strict";var ve=[,,function(L){function v(b){this.__parent=b,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var b=new v(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},v.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},v.prototype.has_match=function(b){for(var k=this.__items.length-1;k>=0;k--)if(this.__items[k].match(b))return!0;return!1},v.prototype.set_indent=function(b,k){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=k||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(b){this.__items.push(b);var k=b.lastIndexOf(`
|
|
|
`);k!==-1?this.__character_count=b.length-k:this.__character_count+=b.length},v.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function u(b,k){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),k=k||"",b.indent_level>0&&(k=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=k,this.__base_string_length=k.length}u.prototype.get_indent_size=function(b,k){var ae=this.__base_string_length;return k=k||0,b<0&&(ae=0),ae+=b*this.__indent_size,ae+=k,ae},u.prototype.get_indent_string=function(b,k){var ae=this.__base_string;return k=k||0,b<0&&(b=0,ae=""),k+=b*this.__indent_size,this.__ensure_cache(k),ae+=this.__cache[k],ae},u.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var b=this.__cache.length,k=0,ae="";this.__indent_size&&b>=this.__indent_size&&(k=Math.floor(b/this.__indent_size),b-=k*this.__indent_size,ae=new Array(k+1).join(this.__indent_string)),b&&(ae+=new Array(b+1).join(" ")),this.__cache.push(ae)};function y(b,k){this.__indent_cache=new u(b,k),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}y.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},y.prototype.get_line_number=function(){return this.__lines.length},y.prototype.get_indent_string=function(b,k){return this.__indent_cache.get_indent_string(b,k)},y.prototype.get_indent_size=function(b,k){return this.__indent_cache.get_indent_size(b,k)},y.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},y.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},y.prototype.get_code=function(b){this.trim(!0);var k=this.current_line.pop();k&&(k[k.length-1]===`
|
|
|
`&&(k=k.replace(/\n+$/g,"")),this.current_line.push(k)),this._end_with_newline&&this.__add_outputline();var ae=this.__lines.join(`
|
|
|
`);return b!==`
|
|
|
`&&(ae=ae.replace(/[\n]/g,b)),ae},y.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},y.prototype.set_indent=function(b,k){return b=b||0,k=k||0,this.next_line.set_indent(b,k),this.__lines.length>1?(this.current_line.set_indent(b,k),!0):(this.current_line.set_indent(),!1)},y.prototype.add_raw_token=function(b){for(var k=0;k<b.newlines;k++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},y.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},y.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},y.prototype.remove_indent=function(b){for(var k=this.__lines.length;b<k;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},y.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},y.prototype.just_added_newline=function(){return this.current_line.is_empty()},y.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},y.prototype.ensure_empty_line_above=function(b,k){for(var ae=this.__lines.length-2;ae>=0;){var P=this.__lines[ae];if(P.is_empty())break;if(P.item(0).indexOf(b)!==0&&P.item(-1)!==k){this.__lines.splice(ae+1,0,new v(this)),this.previous_line=this.__lines[this.__lines.length-2];break}ae--}},L.exports.Output=y},function(L){function v(u,y,b,k){this.type=u,this.text=y,this.comments_before=null,this.newlines=b||0,this.whitespace_before=k||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=v},,,function(L){function v(b,k){this.raw_options=u(b,k),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}v.prototype._get_array=function(b,k){var ae=this.raw_options[b],P=k||[];return typeof ae=="object"?ae!==null&&typeof ae.concat=="function"&&(P=ae.concat()):typeof ae=="string"&&(P=ae.split(/[^a-zA-Z0-9_\/\-]+/)),P},v.prototype._get_boolean=function(b,k){var ae=this.raw_options[b],P=ae===void 0?!!k:!!ae;return P},v.prototype._get_characters=function(b,k){var ae=this.raw_options[b],P=k||"";return typeof ae=="string"&&(P=ae.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),P},v.prototype._get_number=function(b,k){var ae=this.raw_options[b];k=parseInt(k,10),isNaN(k)&&(k=0);var P=parseInt(ae,10);return isNaN(P)&&(P=k),P},v.prototype._get_selection=function(b,k,ae){var P=this._get_selection_list(b,k,ae);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
|
|
|
`+k+`
|
|
|
You passed in: '`+this.raw_options[b]+"'");return P[0]},v.prototype._get_selection_list=function(b,k,ae){if(!k||k.length===0)throw new Error("Selection list cannot be empty.");if(ae=ae||[k[0]],!this._is_valid_selection(ae,k))throw new Error("Invalid Default Value!");var P=this._get_array(b,ae);if(!this._is_valid_selection(P,k))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
|
|
|
`+k+`
|
|
|
You passed in: '`+this.raw_options[b]+"'");return P},v.prototype._is_valid_selection=function(b,k){return b.length&&k.length&&!b.some(function(ae){return k.indexOf(ae)===-1})};function u(b,k){var ae={};b=y(b);var P;for(P in b)P!==k&&(ae[P]=b[P]);if(k&&b[k])for(P in b[k])ae[P]=b[k][P];return ae}function y(b){var k={},ae;for(ae in b){var P=ae.replace(/-/g,"_");k[P]=b[ae]}return k}L.exports.Options=v,L.exports.normalizeOpts=y,L.exports.mergeOpts=u},,function(L){var v=RegExp.prototype.hasOwnProperty("sticky");function u(y){this.__input=y||"",this.__input_length=this.__input.length,this.__position=0}u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position<this.__input_length},u.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__input.charAt(this.__position),this.__position+=1),y},u.prototype.peek=function(y){var b=null;return y=y||0,y+=this.__position,y>=0&&y<this.__input_length&&(b=this.__input.charAt(y)),b},u.prototype.__match=function(y,b){y.lastIndex=b;var k=y.exec(this.__input);return k&&!(v&&y.sticky)&&k.index!==b&&(k=null),k},u.prototype.test=function(y,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(y,b):!1},u.prototype.testChar=function(y,b){var k=this.peek(b);return y.lastIndex=0,k!==null&&y.test(k)},u.prototype.match=function(y){var b=this.__match(y,this.__position);return b?this.__position+=b[0].length:b=null,b},u.prototype.read=function(y,b,k){var ae="",P;return y&&(P=this.match(y),P&&(ae+=P[0])),b&&(P||!y)&&(ae+=this.readUntil(b,k)),ae},u.prototype.readUntil=function(y,b){var k="",ae=this.__position;y.lastIndex=this.__position;var P=y.exec(this.__input);return P?(ae=P.index,b&&(ae+=P[0].length)):ae=this.__input_length,k=this.__input.substring(this.__position,ae),this.__position=ae,k},u.prototype.readUntilAfter=function(y){return this.readUntil(y,!0)},u.prototype.get_regexp=function(y,b){var k=null,ae="g";return b&&v&&(ae="y"),typeof y=="string"&&y!==""?k=new RegExp(y,ae):y&&(k=new RegExp(y.source,ae)),k},u.prototype.get_literal_regexp=function(y){return RegExp(y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},u.prototype.peekUntilAfter=function(y){var b=this.__position,k=this.readUntilAfter(y);return this.__position=b,k},u.prototype.lookBack=function(y){var b=this.__position-1;return b>=y.length&&this.__input.substring(b-y.length,b).toLowerCase()===y},L.exports.InputScanner=u},function(L,v,u){var y=u(8).InputScanner,b=u(3).Token,k=u(10).TokenStream,ae=u(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},N=function(G,U){this._input=new y(G),this._options=U||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new ae(this._input)};N.prototype.tokenize=function(){this._input.restart(),this.__tokens=new k,this._reset();for(var G,U=new b(P.START,""),x=null,T=[],B=new k;U.type!==P.EOF;){for(G=this._get_next_token(U,x);this._is_comment(G);)B.add(G),G=this._get_next_token(U,x);B.isEmpty()||(G.comments_before=B,B=new k),G.parent=x,this._is_opening(G)?(T.push(x),x=G):x&&this._is_closing(G,x)&&(G.opened=x,x.closed=G,x=T.pop(),G.parent=x),G.previous=U,U.next=G,this.__tokens.add(G),U=G}return this.__tokens},N.prototype._is_first_token=function(){return this.__tokens.isEmpty()},N.prototype._reset=function(){},N.prototype._get_next_token=function(G,U){this._readWhitespace();var x=this._input.read(/.+/g);return x?this._create_token(P.RAW,x):this._create_token(P.EOF,"")},N.prototype._is_comment=function(G){return!1},N.prototype._is_opening=function(G){return!1},N.prototype._is_closing=function(G,U){return!1},N.prototype._create_token=function(G,U){var x=new b(G,U,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return x},N.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=N,L.exports.TOKEN=P},function(L){function v(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}v.prototype.restart=function(){this.__position=0},v.prototype.isEmpty=function(){return this.__tokens_length===0},v.prototype.hasNext=function(){return this.__position<this.__tokens_length},v.prototype.next=function(){var u=null;return this.hasNext()&&(u=this.__tokens[this.__position],this.__position+=1),u},v.prototype.peek=function(u){var y=null;return u=u||0,u+=this.__position,u>=0&&u<this.__tokens_length&&(y=this.__tokens[u]),y},v.prototype.add=function(u){this.__parent_token&&(u.parent=this.__parent_token),this.__tokens.push(u),this.__tokens_length+=1},L.exports.TokenStream=v},function(L,v,u){var y=u(12).Pattern;function b(k,ae){y.call(this,k,ae),ae?this._line_regexp=this._input.get_regexp(ae._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new y,b.prototype.__set_whitespace_patterns=function(k,ae){k+="\\t ",ae+="\\n\\r",this._match_pattern=this._input.get_regexp("["+k+ae+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+ae+"]")},b.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var k=this._input.read(this._match_pattern);if(k===" ")this.whitespace_before_token=" ";else if(k){var ae=this.__split(this._newline_regexp,k);this.newline_count=ae.length-1,this.whitespace_before_token=ae[this.newline_count]}return k},b.prototype.matching=function(k,ae){var P=this._create();return P.__set_whitespace_patterns(k,ae),P._update(),P},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(k,ae){k.lastIndex=0;for(var P=0,N=[],G=k.exec(ae);G;)N.push(ae.substring(P,G.index)),P=G.index+G[0].length,G=k.exec(ae);return P<ae.length?N.push(ae.substring(P,ae.length)):N.push(""),N},L.exports.WhitespacePattern=b},function(L){function v(u,y){this._input=u,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,y&&(this._starting_pattern=this._input.get_regexp(y._starting_pattern,!0),this._match_pattern=this._input.get_regexp(y._match_pattern,!0),this._until_pattern=this._input.get_regexp(y._until_pattern),this._until_after=y._until_after)}v.prototype.read=function(){var u=this._input.read(this._starting_pattern);return(!this._starting_pattern||u)&&(u+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),u},v.prototype.read_match=function(){return this._input.match(this._match_pattern)},v.prototype.until_after=function(u){var y=this._create();return y._until_after=!0,y._until_pattern=this._input.get_regexp(u),y._update(),y},v.prototype.until=function(u){var y=this._create();return y._until_after=!1,y._until_pattern=this._input.get_regexp(u),y._update(),y},v.prototype.starting_with=function(u){var y=this._create();return y._starting_pattern=this._input.get_regexp(u,!0),y._update(),y},v.prototype.matching=function(u){var y=this._create();return y._match_pattern=this._input.get_regexp(u,!0),y._update(),y},v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){},L.exports.Pattern=v},function(L){function v(u,y){u=typeof u=="string"?u:u.source,y=typeof y=="string"?y:y.source,this.__directives_block_pattern=new RegExp(u+/ beautify( \w+[:]\w+)+ /.source+y,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(u+/\sbeautify\signore:end\s/.source+y,"g")}v.prototype.get_directives=function(u){if(!u.match(this.__directives_block_pattern))return null;var y={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(u);b;)y[b[1]]=b[2],b=this.__directive_pattern.exec(u);return y},v.prototype.readIgnored=function(u){return u.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=v},function(L,v,u){var y=u(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function k(ae,P){y.call(this,ae,P),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),P&&(this.__template_pattern=this._input.get_regexp(P.__template_pattern),this._excluded=Object.assign(this._excluded,P._excluded),this._disabled=Object.assign(this._disabled,P._disabled));var N=new y(ae);this.__patterns={handlebars_comment:N.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:N.starting_with(/{{{/).until_after(/}}}/),handlebars:N.starting_with(/{{/).until_after(/}}/),php:N.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:N.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:N.starting_with(/{%/).until_after(/%}/),django_value:N.starting_with(/{{/).until_after(/}}/),django_comment:N.starting_with(/{#/).until_after(/#}/),smarty:N.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:N.starting_with(/{\*/).until_after(/\*}/),smarty_literal:N.starting_with(/{literal}/).until_after(/{\/literal}/)}}k.prototype=new y,k.prototype._create=function(){return new k(this._input,this)},k.prototype._update=function(){this.__set_templated_pattern()},k.prototype.disable=function(ae){var P=this._create();return P._disabled[ae]=!0,P._update(),P},k.prototype.read_options=function(ae){var P=this._create();for(var N in b)P._disabled[N]=ae.templating.indexOf(N)===-1;return P._update(),P},k.prototype.exclude=function(ae){var P=this._create();return P._excluded[ae]=!0,P._update(),P},k.prototype.read=function(){var ae="";this._match_pattern?ae=this._input.read(this._starting_pattern):ae=this._input.read(this._starting_pattern,this.__template_pattern);for(var P=this._read_template();P;)this._match_pattern?P+=this._input.read(this._match_pattern):P+=this._input.readUntil(this.__template_pattern),ae+=P,P=this._read_template();return this._until_after&&(ae+=this._input.readUntilAfter(this._until_pattern)),ae},k.prototype.__set_templated_pattern=function(){var ae=[];this._disabled.php||ae.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||ae.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||ae.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||ae.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(ae.push(this.__patterns.django._starting_pattern.source),ae.push(this.__patterns.django_value._starting_pattern.source),ae.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||ae.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&ae.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+ae.join("|")+")")},k.prototype._read_template=function(){var ae="",P=this._input.peek();if(P==="<"){var N=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&N==="?"&&(ae=ae||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&N==="%"&&(ae=ae||this.__patterns.erb.read())}else P==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(ae=ae||this.__patterns.handlebars_comment.read(),ae=ae||this.__patterns.handlebars_unescaped.read(),ae=ae||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(ae=ae||this.__patterns.django_value.read()),this._excluded.django||(ae=ae||this.__patterns.django_comment.read(),ae=ae||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(ae=ae||this.__patterns.smarty_comment.read(),ae=ae||this.__patterns.smarty_literal.read(),ae=ae||this.__patterns.smarty.read()));return ae},L.exports.TemplatablePattern=k},,,,function(L,v,u){var y=u(19).Beautifier,b=u(20).Options;function k(ae,P,N,G){var U=new y(ae,P,N,G);return U.beautify()}L.exports=k,L.exports.defaultOptions=function(){return new b}},function(L,v,u){var y=u(20).Options,b=u(2).Output,k=u(21).Tokenizer,ae=u(21).TOKEN,P=/\r\n|[\r\n]/,N=/\r\n|[\r\n]/g,G=function(W,$){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=W.max_preserve_newlines,this.preserve_newlines=W.preserve_newlines,this._output=new b(W,$)};G.prototype.current_line_has_match=function(W){return this._output.current_line.has_match(W)},G.prototype.set_space_before_token=function(W,$){this._output.space_before_token=W,this._output.non_breaking_space=$},G.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},G.prototype.add_raw_token=function(W){this._output.add_raw_token(W)},G.prototype.print_preserved_newlines=function(W){var $=0;W.type!==ae.TEXT&&W.previous.type!==ae.TEXT&&($=W.newlines?1:0),this.preserve_newlines&&($=W.newlines<this.max_preserve_newlines+1?W.newlines:this.max_preserve_newlines+1);for(var se=0;se<$;se++)this.print_newline(se>0);return $!==0},G.prototype.traverse_whitespace=function(W){return W.whitespace_before||W.newlines?(this.print_preserved_newlines(W)||(this._output.space_before_token=!0),!0):!1},G.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},G.prototype.print_newline=function(W){this._output.add_new_line(W)},G.prototype.print_token=function(W){W.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(W.text))},G.prototype.indent=function(){this.indent_level++},G.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},G.prototype.get_full_indent=function(W){return W=this.indent_level+(W||0),W<1?"":this._output.get_indent_string(W)};var U=function(W){for(var $=null,se=W.next;se.type!==ae.EOF&&W.closed!==se;){if(se.type===ae.ATTRIBUTE&&se.text==="type"){se.next&&se.next.type===ae.EQUALS&&se.next.next&&se.next.next.type===ae.VALUE&&($=se.next.next.text);break}se=se.next}return $},x=function(W,$){var se=null,D=null;return $.closed?(W==="script"?se="text/javascript":W==="style"&&(se="text/css"),se=U($)||se,se.search("text/css")>-1?D="css":se.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?D="javascript":se.search(/(text|application|dojo)\/(x-)?(html)/)>-1?D="html":se.search(/test\/null/)>-1&&(D="null"),D):null};function T(W,$){return $.indexOf(W)!==-1}function B(W,$,se){this.parent=W||null,this.tag=$?$.tag_name:"",this.indent_level=se||0,this.parser_token=$||null}function F(W){this._printer=W,this._current_frame=null}F.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},F.prototype.record_tag=function(W){var $=new B(this._current_frame,W,this._printer.indent_level);this._current_frame=$},F.prototype._try_pop_frame=function(W){var $=null;return W&&($=W.parser_token,this._printer.indent_level=W.indent_level,this._current_frame=W.parent),$},F.prototype._get_frame=function(W,$){for(var se=this._current_frame;se&&W.indexOf(se.tag)===-1;){if($&&$.indexOf(se.tag)!==-1){se=null;break}se=se.parent}return se},F.prototype.try_pop=function(W,$){var se=this._get_frame([W],$);return this._try_pop_frame(se)},F.prototype.indent_to_tag=function(W){var $=this._get_frame(W);$&&(this._printer.indent_level=$.indent_level)};function fe(W,$,se,D){this._source_text=W||"",$=$||{},this._js_beautify=se,this._css_beautify=D,this._tag_stack=null;var J=new y($,"html");this._options=J,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"}fe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var W=this._source_text,$=this._options.eol;this._options.eol==="auto"&&($=`
|
|
|
`,W&&P.test(W)&&($=W.match(P)[0])),W=W.replace(N,`
|
|
|
`);var se=W.match(/^[\t ]*/)[0],D={text:"",type:""},J=new be(this._options),K=new G(this._options,se),g=new k(W,this._options).tokenize();this._tag_stack=new F(K);for(var E=null,Z=g.next();Z.type!==ae.EOF;)Z.type===ae.TAG_OPEN||Z.type===ae.COMMENT?(E=this._handle_tag_open(K,Z,J,D,g),J=E):Z.type===ae.ATTRIBUTE||Z.type===ae.EQUALS||Z.type===ae.VALUE||Z.type===ae.TEXT&&!J.tag_complete?E=this._handle_inside_tag(K,Z,J,D):Z.type===ae.TAG_CLOSE?E=this._handle_tag_close(K,Z,J):Z.type===ae.TEXT?E=this._handle_text(K,Z,J):Z.type===ae.CONTROL_FLOW_OPEN?E=this._handle_control_flow_open(K,Z):Z.type===ae.CONTROL_FLOW_CLOSE?E=this._handle_control_flow_close(K,Z):K.add_raw_token(Z),D=E,Z=g.next();var pe=K._output.get_code($);return pe},fe.prototype._handle_control_flow_open=function(W,$){var se={text:$.text,type:$.type};return W.set_space_before_token($.newlines||$.whitespace_before!=="",!0),$.newlines?W.print_preserved_newlines($):W.set_space_before_token($.newlines||$.whitespace_before!=="",!0),W.print_token($),W.indent(),se},fe.prototype._handle_control_flow_close=function(W,$){var se={text:$.text,type:$.type};return W.deindent(),$.newlines?W.print_preserved_newlines($):W.set_space_before_token($.newlines||$.whitespace_before!=="",!0),W.print_token($),se},fe.prototype._handle_tag_close=function(W,$,se){var D={text:$.text,type:$.type};return W.alignment_size=0,se.tag_complete=!0,W.set_space_before_token($.newlines||$.whitespace_before!=="",!0),se.is_unformatted?W.add_raw_token($):(se.tag_start_char==="<"&&(W.set_space_before_token($.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&se.has_wrapped_attrs&&W.print_newline(!1)),W.print_token($)),se.indent_content&&!(se.is_unformatted||se.is_content_unformatted)&&(W.indent(),se.indent_content=!1),!se.is_inline_element&&!(se.is_unformatted||se.is_content_unformatted)&&W.set_wrap_point(),D},fe.prototype._handle_inside_tag=function(W,$,se,D){var J=se.has_wrapped_attrs,K={text:$.text,type:$.type};return W.set_space_before_token($.newlines||$.whitespace_before!=="",!0),se.is_unformatted?W.add_raw_token($):se.tag_start_char==="{"&&$.type===ae.TEXT?W.print_preserved_newlines($)?($.newlines=0,W.add_raw_token($)):W.print_token($):($.type===ae.ATTRIBUTE?W.set_space_before_token(!0):($.type===ae.EQUALS||$.type===ae.VALUE&&$.previous.type===ae.EQUALS)&&W.set_space_before_token(!1),$.type===ae.ATTRIBUTE&&se.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(W.traverse_whitespace($),J=J||$.newlines!==0),this._is_wrap_attributes_force&&se.attr_count>=this._options.wrap_attributes_min_attrs&&(D.type!==ae.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(W.print_newline(!1),J=!0)),W.print_token($),J=J||W.previous_token_wrapped(),se.has_wrapped_attrs=J),K},fe.prototype._handle_text=function(W,$,se){var D={text:$.text,type:"TK_CONTENT"};return se.custom_beautifier_name?this._print_custom_beatifier_text(W,$,se):se.is_unformatted||se.is_content_unformatted?W.add_raw_token($):(W.traverse_whitespace($),W.print_token($)),D},fe.prototype._print_custom_beatifier_text=function(W,$,se){var D=this;if($.text!==""){var J=$.text,K,g=1,E="",Z="";se.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?K=this._js_beautify:se.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?K=this._css_beautify:se.custom_beautifier_name==="html"&&(K=function(pt,ht){var rt=new fe(pt,ht,D._js_beautify,D._css_beautify);return rt.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-W.indent_level);var pe=W.get_full_indent(g);if(J=J.replace(/\n[ \t]*$/,""),se.custom_beautifier_name!=="html"&&J[0]==="<"&&J.match(/^(<!--|<!\[CDATA\[)/)){var ze=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(J);if(!ze){W.add_raw_token($);return}E=pe+ze[1]+`
|
|
|
`,J=ze[4],ze[5]&&(Z=pe+ze[5]),J=J.replace(/\n[ \t]*$/,""),(ze[2]||ze[3].indexOf(`
|
|
|
`)!==-1)&&(ze=ze[3].match(/[ \t]+$/),ze&&($.whitespace_before=ze[0]))}if(J)if(K){var We=function(){this.eol=`
|
|
|
`};We.prototype=this._options.raw_options;var je=new We;J=K(pe+J,je)}else{var Ge=$.whitespace_before;Ge&&(J=J.replace(new RegExp(`
|
|
|
(`+Ge+")?","g"),`
|
|
|
`)),J=pe+J.replace(/\n/g,`
|
|
|
`+pe)}E&&(J?J=E+J+`
|
|
|
`+Z:J=E+Z),W.print_newline(!1),J&&($.text=J,$.whitespace_before="",$.newlines=0,W.add_raw_token($),W.print_newline(!0))}},fe.prototype._handle_tag_open=function(W,$,se,D,J){var K=this._get_tag_open_token($);if((se.is_unformatted||se.is_content_unformatted)&&!se.is_empty_element&&$.type===ae.TAG_OPEN&&!K.is_start_tag?(W.add_raw_token($),K.start_tag_token=this._tag_stack.try_pop(K.tag_name)):(W.traverse_whitespace($),this._set_tag_position(W,$,K,se,D),K.is_inline_element||W.set_wrap_point(),W.print_token($)),K.is_start_tag&&this._is_wrap_attributes_force){var g=0,E;do E=J.peek(g),E.type===ae.ATTRIBUTE&&(K.attr_count+=1),g+=1;while(E.type!==ae.EOF&&E.type!==ae.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(K.alignment_size=$.text.length+1),!K.tag_complete&&!K.is_unformatted&&(W.alignment_size=K.alignment_size),K};var be=function(W,$,se){if(this.parent=$||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="",!se)this.tag_complete=!0;else{var D;this.tag_start_char=se.text[0],this.text=se.text,this.tag_start_char==="<"?(D=se.text.match(/^<([^\s>]*)/),this.tag_check=D?D[1]:""):(D=se.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=D?D[1]:"",(se.text.startsWith("{{#>")||se.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&se.next!==null?this.tag_check=se.next.text.split(" ")[0]:this.tag_check=se.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),se.type===ae.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||se.closed&&se.closed.text==="/>";var J=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(J=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!W.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(J)))}};fe.prototype._get_tag_open_token=function(W){var $=new be(this._options,this._tag_stack.get_parser_token(),W);return $.alignment_size=this._options.wrap_attributes_indent_size,$.is_end_tag=$.is_end_tag||T($.tag_check,this._options.void_elements),$.is_empty_element=$.tag_complete||$.is_start_tag&&$.is_end_tag,$.is_unformatted=!$.tag_complete&&T($.tag_check,this._options.unformatted),$.is_content_unformatted=!$.is_empty_element&&T($.tag_check,this._options.content_unformatted),$.is_inline_element=T($.tag_name,this._options.inline)||this._options.inline_custom_elements&&$.tag_name.includes("-")||$.tag_start_char==="{",$},fe.prototype._set_tag_position=function(W,$,se,D,J){if(se.is_empty_element||(se.is_end_tag?se.start_tag_token=this._tag_stack.try_pop(se.tag_name):(this._do_optional_end_element(se)&&(se.is_inline_element||W.print_newline(!1)),this._tag_stack.record_tag(se),(se.tag_name==="script"||se.tag_name==="style")&&!(se.is_unformatted||se.is_content_unformatted)&&(se.custom_beautifier_name=x(se.tag_check,$)))),T(se.tag_check,this._options.extra_liners)&&(W.print_newline(!1),W._output.just_added_blankline()||W.print_newline(!0)),se.is_empty_element){if(se.tag_start_char==="{"&&se.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),se.indent_content=!0;var K=W.current_line_has_match(/{{#if/);K||W.print_newline(!1)}se.tag_name==="!--"&&J.type===ae.TAG_CLOSE&&D.is_end_tag&&se.text.indexOf(`
|
|
|
`)===-1||(se.is_inline_element||se.is_unformatted||W.print_newline(!1),this._calcluate_parent_multiline(W,se))}else if(se.is_end_tag){var g=!1;g=se.start_tag_token&&se.start_tag_token.multiline_content,g=g||!se.is_inline_element&&!(D.is_inline_element||D.is_unformatted)&&!(J.type===ae.TAG_CLOSE&&se.start_tag_token===D)&&J.type!=="TK_CONTENT",(se.is_content_unformatted||se.is_unformatted)&&(g=!1),g&&W.print_newline(!1)}else se.indent_content=!se.custom_beautifier_name,se.tag_start_char==="<"&&(se.tag_name==="html"?se.indent_content=this._options.indent_inner_html:se.tag_name==="head"?se.indent_content=this._options.indent_head_inner_html:se.tag_name==="body"&&(se.indent_content=this._options.indent_body_inner_html)),!(se.is_inline_element||se.is_unformatted)&&(J.type!=="TK_CONTENT"||se.is_content_unformatted)&&W.print_newline(!1),this._calcluate_parent_multiline(W,se)},fe.prototype._calcluate_parent_multiline=function(W,$){$.parent&&W._output.just_added_newline()&&!(($.is_inline_element||$.is_unformatted)&&$.parent.is_inline_element)&&($.parent.multiline_content=!0)};var Re=["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"],he=["a","audio","del","ins","map","noscript","video"];fe.prototype._do_optional_end_element=function(W){var $=null;if(!(W.is_empty_element||!W.is_start_tag||!W.parent)){if(W.tag_name==="body")$=$||this._tag_stack.try_pop("head");else if(W.tag_name==="li")$=$||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(W.tag_name==="dd"||W.tag_name==="dt")$=$||this._tag_stack.try_pop("dt",["dl"]),$=$||this._tag_stack.try_pop("dd",["dl"]);else if(W.parent.tag_name==="p"&&Re.indexOf(W.tag_name)!==-1){var se=W.parent.parent;(!se||he.indexOf(se.tag_name)===-1)&&($=$||this._tag_stack.try_pop("p"))}else W.tag_name==="rp"||W.tag_name==="rt"?($=$||this._tag_stack.try_pop("rt",["ruby","rtc"]),$=$||this._tag_stack.try_pop("rp",["ruby","rtc"])):W.tag_name==="optgroup"?$=$||this._tag_stack.try_pop("optgroup",["select"]):W.tag_name==="option"?$=$||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):W.tag_name==="colgroup"?$=$||this._tag_stack.try_pop("caption",["table"]):W.tag_name==="thead"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"])):W.tag_name==="tbody"||W.tag_name==="tfoot"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"]),$=$||this._tag_stack.try_pop("thead",["table"]),$=$||this._tag_stack.try_pop("tbody",["table"])):W.tag_name==="tr"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"]),$=$||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(W.tag_name==="th"||W.tag_name==="td")&&($=$||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),$=$||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return W.parent=this._tag_stack.get_parser_token(),$}},L.exports.Beautifier=fe},function(L,v,u){var y=u(6).Options;function b(k){y.call(this,k,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}b.prototype=new y,L.exports.Options=b},function(L,v,u){var y=u(9).Tokenizer,b=u(9).TOKEN,k=u(13).Directives,ae=u(14).TemplatablePattern,P=u(12).Pattern,N={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:b.START,RAW:b.RAW,EOF:b.EOF},G=new k(/<\!--/,/-->/),U=function(x,T){y.call(this,x,T),this._current_tag_name="";var B=new ae(this._input).read_options(this._options),F=new P(this._input);if(this.__patterns={word:B.until(/[\n\r\t <]/),word_control_flow_close_excluded:B.until(/[\n\r\t <}]/),single_quote:B.until_after(/'/),double_quote:B.until_after(/"/),attribute:B.until(/[\n\r\t =>]|\/>/),element_name:B.until(/[\n\r\t >\/]/),angular_control_flow_start:F.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),handlebars_open:F.until(/[\n\r\t }]/),handlebars_raw_close:F.until(/}}/),comment:F.starting_with(/<!--/).until_after(/-->/),cdata:F.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:F.starting_with(/<!\[/).until_after(/]>/),processing:F.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 fe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=F.matching(fe).until_after(fe)}};U.prototype=new y,U.prototype._is_comment=function(x){return!1},U.prototype._is_opening=function(x){return x.type===N.TAG_OPEN||x.type===N.CONTROL_FLOW_OPEN},U.prototype._is_closing=function(x,T){return x.type===N.TAG_CLOSE&&T&&((x.text===">"||x.text==="/>")&&T.text[0]==="<"||x.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||x.type===N.CONTROL_FLOW_CLOSE&&x.text==="}"&&T.text.endsWith("{")},U.prototype._reset=function(){this._current_tag_name=""},U.prototype._get_next_token=function(x,T){var B=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(N.EOF,""):(B=B||this._read_open_handlebars(F,T),B=B||this._read_attribute(F,x,T),B=B||this._read_close(F,T),B=B||this._read_script_and_style(F,x),B=B||this._read_control_flows(F,T),B=B||this._read_raw_content(F,x,T),B=B||this._read_content_word(F,T),B=B||this._read_comment_or_cdata(F),B=B||this._read_processing(F),B=B||this._read_open(F,T),B=B||this._create_token(N.UNKNOWN,this._input.next()),B)},U.prototype._read_comment_or_cdata=function(x){var T=null,B=null,F=null;if(x==="<"){var fe=this._input.peek(1);fe==="!"&&(B=this.__patterns.comment.read(),B?(F=G.get_directives(B),F&&F.ignore==="start"&&(B+=G.readIgnored(this._input))):B=this.__patterns.cdata.read()),B&&(T=this._create_token(N.COMMENT,B),T.directives=F)}return T},U.prototype._read_processing=function(x){var T=null,B=null,F=null;if(x==="<"){var fe=this._input.peek(1);(fe==="!"||fe==="?")&&(B=this.__patterns.conditional_comment.read(),B=B||this.__patterns.processing.read()),B&&(T=this._create_token(N.COMMENT,B),T.directives=F)}return T},U.prototype._read_open=function(x,T){var B=null,F=null;return(!T||T.type===N.CONTROL_FLOW_OPEN)&&x==="<"&&(B=this._input.next(),this._input.peek()==="/"&&(B+=this._input.next()),B+=this.__patterns.element_name.read(),F=this._create_token(N.TAG_OPEN,B)),F},U.prototype._read_open_handlebars=function(x,T){var B=null,F=null;return(!T||T.type===N.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)==="!"?(B=this.__patterns.handlebars_comment.read(),B=B||this.__patterns.handlebars.read(),F=this._create_token(N.COMMENT,B)):(B=this.__patterns.handlebars_open.read(),F=this._create_token(N.TAG_OPEN,B))),F},U.prototype._read_control_flows=function(x,T){var B="",F=null;if(!this._options.templating.includes("angular"))return F;if(x==="@"){if(B=this.__patterns.angular_control_flow_start.read(),B==="")return F;for(var fe=B.endsWith("(")?1:0,be=0;!(B.endsWith("{")&&fe===be);){var Re=this._input.next();if(Re===null)break;Re==="("?fe++:Re===")"&&be++,B+=Re}F=this._create_token(N.CONTROL_FLOW_OPEN,B)}else x==="}"&&T&&T.type===N.CONTROL_FLOW_OPEN&&(B=this._input.next(),F=this._create_token(N.CONTROL_FLOW_CLOSE,B));return F},U.prototype._read_close=function(x,T){var B=null,F=null;return T&&T.type===N.TAG_OPEN&&(T.text[0]==="<"&&(x===">"||x==="/"&&this._input.peek(1)===">")?(B=this._input.next(),x==="/"&&(B+=this._input.next()),F=this._create_token(N.TAG_CLOSE,B)):T.text[0]==="{"&&x==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),F=this._create_token(N.TAG_CLOSE,"}}"))),F},U.prototype._read_attribute=function(x,T,B){var F=null,fe="";if(B&&B.text[0]==="<")if(x==="=")F=this._create_token(N.EQUALS,this._input.next());else if(x==='"'||x==="'"){var be=this._input.next();x==='"'?be+=this.__patterns.double_quote.read():be+=this.__patterns.single_quote.read(),F=this._create_token(N.VALUE,be)}else fe=this.__patterns.attribute.read(),fe&&(T.type===N.EQUALS?F=this._create_token(N.VALUE,fe):F=this._create_token(N.ATTRIBUTE,fe));return F},U.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)},U.prototype._read_raw_content=function(x,T,B){var F="";if(B&&B.text[0]==="{")F=this.__patterns.handlebars_raw_close.read();else if(T.type===N.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var fe=T.opened.text.substr(1).toLowerCase();this._is_content_unformatted(fe)&&(F=this._input.readUntil(new RegExp("</"+fe+"[\\n\\r\\t ]*?>","ig")))}return F?this._create_token(N.TEXT,F):null},U.prototype._read_script_and_style=function(x,T){if(T.type===N.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var B=T.opened.text.substr(1).toLowerCase();if(B==="script"||B==="style"){var F=this._read_comment_or_cdata(x);if(F)return F.type=N.TEXT,F;var fe=this._input.readUntil(new RegExp("</"+B+"[\\n\\r\\t ]*?>","ig"));if(fe)return this._create_token(N.TEXT,fe)}}return null},U.prototype._read_content_word=function(x,T){var B="";return this._options.unformatted_content_delimiter&&x===this._options.unformatted_content_delimiter[0]&&(B=this.__patterns.unformatted_content_delimiter.read()),B||(B=T&&T.type===N.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),B?this._create_token(N.TEXT,B):null},L.exports.Tokenizer=U,L.exports.TOKEN=N}],xe={};function s(L){var v=xe[L];if(v!==void 0)return v.exports;var u=xe[L]={exports:{}};return ve[L](u,u.exports,s),u.exports}var A=s(18);de=A})();var Ce=de;if(1)M=[p,p(58553),p(87804)],Y=function(ve){var xe=p(58553),s=p(87804);return{html_beautify:function(A,L){return Ce(A,L,xe.js_beautify,s.css_beautify)}}}.apply(qe,M),Y!==void 0&&(qt.exports=Y);else var j,X})()},58553:function(qt,qe){var p,M;(function(){var Y;(function(){"use strict";var Ce=[function(xe,s,A){var L=A(1).Beautifier,v=A(5).Options;function u(y,b){var k=new L(y,b);return k.beautify()}xe.exports=u,xe.exports.defaultOptions=function(){return new v}},function(xe,s,A){var L=A(2).Output,v=A(3).Token,u=A(4),y=A(5).Options,b=A(7).Tokenizer,k=A(7).line_starters,ae=A(7).positionable_operators,P=A(7).TOKEN;function N(E,Z){return Z.indexOf(E)!==-1}function G(E){return E.replace(/^\s+/g,"")}function U(E){for(var Z={},pe=0;pe<E.length;pe++)Z[E[pe].replace(/-/g,"_")]=E[pe];return Z}function x(E,Z){return E&&E.type===P.RESERVED&&E.text===Z}function T(E,Z){return E&&E.type===P.RESERVED&&N(E.text,Z)}var B=["case","return","do","if","throw","else","await","break","continue","async"],F=["before-newline","after-newline","preserve-newline"],fe=U(F),be=[fe.before_newline,fe.preserve_newline],Re={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function he(E,Z){Z.multiline_frame||Z.mode===Re.ForInitializer||Z.mode===Re.Conditional||E.remove_indent(Z.start_line_index)}function W(E){E=E.replace(u.allLineBreaks,`
|
|
|
`);for(var Z=[],pe=E.indexOf(`
|
|
|
`);pe!==-1;)Z.push(E.substring(0,pe)),E=E.substring(pe+1),pe=E.indexOf(`
|
|
|
`);return E.length&&Z.push(E),Z}function $(E){return E===Re.ArrayLiteral}function se(E){return N(E,[Re.Expression,Re.ForInitializer,Re.Conditional])}function D(E,Z){for(var pe=0;pe<E.length;pe++){var ze=E[pe].trim();if(ze.charAt(0)!==Z)return!1}return!0}function J(E,Z){for(var pe=0,ze=E.length,We;pe<ze;pe++)if(We=E[pe],We&&We.indexOf(Z)!==0)return!1;return!0}function K(E,Z){Z=Z||{},this._source_text=E||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new y(Z)}K.prototype.create_flags=function(E,Z){var pe=0;E&&(pe=E.indentation_level,!this._output.just_added_newline()&&E.line_indent_level>pe&&(pe=E.line_indent_level));var ze={mode:Z,parent:E,last_token:E?E.last_token:new v(P.START_BLOCK,""),last_word:E?E.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:pe,alignment:0,line_indent_level:E?E.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return ze},K.prototype._reset=function(E){var Z=E.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Re.BlockStatement);var pe=new b(E,this._options);return this._tokens=pe.tokenize(),E},K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E,Z=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
|
|
|
`,Z&&u.lineBreak.test(Z||"")&&(pe=Z.match(u.lineBreak)[0]));for(var ze=this._tokens.next();ze;)this.handle_token(ze),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ze,ze=this._tokens.next();return E=this._output.get_code(pe),E},K.prototype.handle_token=function(E,Z){E.type===P.START_EXPR?this.handle_start_expr(E):E.type===P.END_EXPR?this.handle_end_expr(E):E.type===P.START_BLOCK?this.handle_start_block(E):E.type===P.END_BLOCK?this.handle_end_block(E):E.type===P.WORD?this.handle_word(E):E.type===P.RESERVED?this.handle_word(E):E.type===P.SEMICOLON?this.handle_semicolon(E):E.type===P.STRING?this.handle_string(E):E.type===P.EQUALS?this.handle_equals(E):E.type===P.OPERATOR?this.handle_operator(E):E.type===P.COMMA?this.handle_comma(E):E.type===P.BLOCK_COMMENT?this.handle_block_comment(E,Z):E.type===P.COMMENT?this.handle_comment(E,Z):E.type===P.DOT?this.handle_dot(E):E.type===P.EOF?this.handle_eof(E):E.type===P.UNKNOWN?this.handle_unknown(E,Z):this.handle_unknown(E,Z)},K.prototype.handle_whitespace_and_comments=function(E,Z){var pe=E.newlines,ze=this._options.keep_array_indentation&&$(this._flags.mode);if(E.comments_before)for(var We=E.comments_before.next();We;)this.handle_whitespace_and_comments(We,Z),this.handle_token(We,Z),We=E.comments_before.next();if(ze)for(var je=0;je<pe;je+=1)this.print_newline(je>0,Z);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,Z);for(var Ge=1;Ge<pe;Ge+=1)this.print_newline(!0,Z)}};var g=["async","break","continue","return","throw","yield"];K.prototype.allow_wrap_or_preserved_newline=function(E,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&E.newlines||Z,ze=N(this._flags.last_token.text,ae)||N(E.text,ae);if(ze){var We=N(this._flags.last_token.text,ae)&&N(this._options.operator_position,be)||N(E.text,ae);pe=pe&&We}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(T(this._flags.last_token,g))return;this._output.set_wrap_point()}}},K.prototype.print_newline=function(E,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&x(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(E)&&(this._flags.multiline_frame=!0)},K.prototype.print_token_line_indentation=function(E){this._output.just_added_newline()&&(this._options.keep_array_indentation&&E.newlines&&(E.text==="["||$(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(E.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},K.prototype.print_token=function(E){if(this._output.raw){this._output.add_raw_token(E);return}if(this._options.comma_first&&E.previous&&E.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(E),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(E),this._output.non_breaking_space=!0,this._output.add_token(E.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},K.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.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))},K.prototype.set_mode=function(E){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,E),this._flags=this.create_flags(this._previous_flags,E),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Re.Statement&&he(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.start_of_object_property=function(){return this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"]))},K.prototype.start_of_statement=function(E){var Z=!1;return Z=Z||T(this._flags.last_token,["var","let","const"])&&E.type===P.WORD,Z=Z||x(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement)&&T(this._flags.last_token,g)&&!E.newlines,Z=Z||x(this._flags.last_token,"else")&&!(x(E,"if")&&!E.comments_before),Z=Z||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===Re.ForInitializer||this._previous_flags.mode===Re.Conditional),Z=Z||this._flags.last_token.type===P.WORD&&this._flags.mode===Re.BlockStatement&&!this._flags.in_case&&!(E.text==="--"||E.text==="++")&&this._last_last_text!=="function"&&E.type!==P.WORD&&E.type!==P.RESERVED,Z=Z||this._flags.mode===Re.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"])),Z?(this.set_mode(Re.Statement),this.indent(),this.handle_whitespace_and_comments(E,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E,T(E,["do","for","if","while"])),!0):!1},K.prototype.handle_start_expr=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E);var Z=Re.Expression;if(E.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){T(this._flags.last_token,k)&&(this._output.space_before_token=!0),this.print_token(E),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=Re.ArrayLiteral,$(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()),N(this._flags.last_token.type,[P.START_EXPR,P.END_EXPR,P.WORD,P.OPERATOR,P.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===P.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=Re.ForInitializer):N(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=Re.Conditional):N(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&E.whitespace_before===""?this._output.space_before_token=!1:(N(this._flags.last_token.text,k)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var ze=this._tokens.peek(-4);T(pe,["async","function"])||pe.text==="*"&&T(ze,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Re.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(ze.text==="{"||ze.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(E);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&N(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===P.START_BLOCK?this.print_newline():(this._flags.last_token.type===P.END_EXPR||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===P.COMMA)&&this.allow_wrap_or_preserved_newline(E,E.newlines),this.print_token(E),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},K.prototype.handle_end_expr=function(E){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(E,E.text==="]"&&$(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===P.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(E),this.restore_mode(),he(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Re.Conditional&&(this._previous_flags.mode=Re.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},K.prototype.handle_start_block=function(E){this.handle_whitespace_and_comments(E);var Z=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(Re.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Re.BlockStatement):pe&&(N(pe.text,[":",","])&&N(Z.type,[P.STRING,P.WORD,P.RESERVED])||N(Z.text,["get","set","..."])&&N(pe.type,[P.WORD,P.RESERVED]))?N(this._last_last_text,["class","interface"])&&!N(pe.text,[":",","])?this.set_mode(Re.BlockStatement):this.set_mode(Re.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Re.BlockStatement):N(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||T(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Re.ObjectLiteral):this.set_mode(Re.BlockStatement),this._flags.last_token&&T(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ze=!Z.comments_before&&Z.text==="}",We=ze&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var je=0,Ge=null;this._flags.inline_frame=!0;do if(je+=1,Ge=this._tokens.peek(je-1),Ge.newlines){this._flags.inline_frame=!1;break}while(Ge.type!==P.EOF&&!(Ge.type===P.END_BLOCK&&Ge.opened===E))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(We||this._flags.last_token.type===P.EQUALS||T(this._flags.last_token,B)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):($(this._previous_flags.mode)&&(this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.COMMA)&&((this._flags.last_token.type===P.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(E),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==P.OPERATOR&&this._flags.last_token.type!==P.START_EXPR&&(N(this._flags.last_token.type,[P.START_BLOCK,P.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(E),this.indent(),!ze&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},K.prototype.handle_end_block=function(E){for(this.handle_whitespace_and_comments(E);this._flags.mode===Re.Statement;)this.restore_mode();var Z=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||($(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(E)},K.prototype.handle_word=function(E){if(E.type===P.RESERVED){if(N(E.text,["set","get"])&&this._flags.mode!==Re.ObjectLiteral)E.type=P.WORD;else if(E.text==="import"&&N(this._tokens.peek().text,["(","."]))E.type=P.WORD;else if(N(E.text,["as","from"])&&!this._flags.import_block)E.type=P.WORD;else if(this._flags.mode===Re.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(E.type=P.WORD)}}if(this.start_of_statement(E)?T(this._flags.last_token,["var","let","const"])&&E.type===P.WORD&&(this._flags.declaration_statement=!0):E.newlines&&!se(this._flags.mode)&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==P.EQUALS&&(this._options.preserve_newlines||!T(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(E),this.print_newline()):this.handle_whitespace_and_comments(E),this._flags.do_block&&!this._flags.do_while)if(x(E,"while")){this._output.space_before_token=!0,this.print_token(E),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(E,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Re.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&T(E,["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(E),this._flags.in_case=!0;return}if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)&&!this.start_of_object_property()&&!(N(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Re.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(E),x(E,"function")){(N(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(N(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!E.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?T(this._flags.last_token,["get","set","new","export"])||T(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===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(se(this._flags.mode)||$(this._flags.mode))||this.print_newline(),this.print_token(E),this._flags.last_word=E.text;return}var pe="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":T(E,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===Re.BlockStatement?pe="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&se(this._flags.mode)?pe="SPACE":this._flags.last_token.type===P.STRING?pe="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&N(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),T(E,k)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),T(E,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===Re.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&E.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ze=this._output.current_line;ze.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?T(this._flags.last_token,B)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&T(E,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==P.END_EXPR?(this._flags.last_token.type!==P.START_EXPR||!T(E,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(E,"if")&&x(E.previous,"else")?this._output.space_before_token=!0:this.print_newline()):T(E,k)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&$(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);E.previous&&(E.previous.type===P.WORD||E.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(E),this._flags.last_word=E.text,E.type===P.RESERVED&&(E.text==="do"?this._flags.do_block=!0:E.text==="if"?this._flags.if_block=!0:E.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(E,"from")&&(this._flags.import_block=!1))},K.prototype.handle_semicolon=function(E){this.start_of_statement(E)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(E);for(var Z=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&x(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(E)},K.prototype.handle_string=function(E){E.text.startsWith("`")&&E.newlines===0&&E.whitespace_before===""&&(E.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(E)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(E),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(E):E.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(E.previous.text==="]"||E.previous.text===")")&&E.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(E)},K.prototype.handle_equals=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0},K.prototype.handle_comma=function(E){this.handle_whitespace_and_comments(E,!0),this.print_token(E),this._output.space_before_token=!0,this._flags.declaration_statement?(se(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(E)):this._flags.mode===Re.ObjectLiteral||this._flags.mode===Re.Statement&&this._flags.parent.mode===Re.ObjectLiteral?(this._flags.mode===Re.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(E)},K.prototype.handle_operator=function(E){var Z=E.text==="*"&&(T(this._flags.last_token,["function","yield"])||N(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),pe=N(E.text,["-","+"])&&(N(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||N(this._flags.last_token.text,k)||this._flags.last_token.text===",");if(!this.start_of_statement(E)){var ze=!Z;this.handle_whitespace_and_comments(E,ze)}if(E.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(E);return}if(E.text==="::"){this.print_token(E);return}if(N(E.text,["-","+"])&&this.start_of_object_property()){this.print_token(E);return}if(this._flags.last_token.type===P.OPERATOR&&N(this._options.operator_position,be)&&this.allow_wrap_or_preserved_newline(E),E.text===":"&&this._flags.in_case){this.print_token(E),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==P.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var We=!0,je=!0,Ge=!1;if(E.text===":"?this._flags.ternary_depth===0?We=!1:(this._flags.ternary_depth-=1,Ge=!0):E.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!Z&&this._options.preserve_newlines&&N(E.text,ae)){var pt=E.text===":",ht=pt&&Ge,rt=pt&&!Ge;switch(this._options.operator_position){case fe.before_newline:this._output.space_before_token=!rt,this.print_token(E),(!pt||ht)&&this.allow_wrap_or_preserved_newline(E),this._output.space_before_token=!0;return;case fe.after_newline:this._output.space_before_token=!0,!pt||ht?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(E):this._output.space_before_token=!1,this.print_token(E),this._output.space_before_token=!0;return;case fe.preserve_newline:rt||this.allow_wrap_or_preserved_newline(E),We=!(this._output.just_added_newline()||rt),this._output.space_before_token=We,this.print_token(E),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(E),We=!1;var Vt=this._tokens.peek();je=Vt&&N(Vt.type,[P.WORD,P.RESERVED])}else if(E.text==="...")this.allow_wrap_or_preserved_newline(E),We=this._flags.last_token.type===P.START_BLOCK,je=!1;else if(N(E.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(E),We=!1,je=!1,E.newlines&&(E.text==="--"||E.text==="++"||E.text==="~")){var Jt=T(this._flags.last_token,B)&&E.newlines;Jt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Jt,!0)}this._flags.last_token.text===";"&&se(this._flags.mode)&&(We=!0),this._flags.last_token.type===P.RESERVED?We=!0:this._flags.last_token.type===P.END_EXPR?We=!(this._flags.last_token.text==="]"&&(E.text==="--"||E.text==="++")):this._flags.last_token.type===P.OPERATOR&&(We=N(E.text,["--","-","++","+"])&&N(this._flags.last_token.text,["--","-","++","+"]),N(E.text,["+","-"])&&N(this._flags.last_token.text,["--","++"])&&(je=!0)),(this._flags.mode===Re.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Re.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||We,this.print_token(E),this._output.space_before_token=je},K.prototype.handle_block_comment=function(E,Z){if(this._output.raw){this._output.add_raw_token(E),E.directives&&E.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(E.directives){this.print_newline(!1,Z),this.print_token(E),E.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!u.newline.test(E.text)&&!E.newlines){this._output.space_before_token=!0,this.print_token(E),this._output.space_before_token=!0;return}else this.print_block_commment(E,Z)},K.prototype.print_block_commment=function(E,Z){var pe=W(E.text),ze,We=!1,je=!1,Ge=E.whitespace_before,pt=Ge.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(E),this._output.add_token(pe[0]),this.print_newline(!1,Z),pe.length>1){for(pe=pe.slice(1),We=D(pe,"*"),je=J(pe,Ge),We&&(this._flags.alignment=1),ze=0;ze<pe.length;ze++)We?(this.print_token_line_indentation(E),this._output.add_token(G(pe[ze]))):je&&pe[ze]?(this.print_token_line_indentation(E),this._output.add_token(pe[ze].substring(pt))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[ze])),this.print_newline(!1,Z);this._flags.alignment=0}},K.prototype.handle_comment=function(E,Z){E.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(E),this.print_newline(!1,Z)},K.prototype.handle_dot=function(E){this.start_of_statement(E)||this.handle_whitespace_and_comments(E,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),T(this._flags.last_token,B)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(E,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(E)},K.prototype.handle_unknown=function(E,Z){this.print_token(E),E.text[E.text.length-1]===`
|
|
|
`&&this.print_newline(!1,Z)},K.prototype.handle_eof=function(E){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(E)},xe.exports.Beautifier=K},function(xe){function s(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var v=new s(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},s.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},s.prototype.has_match=function(v){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(v))return!0;return!1},s.prototype.set_indent=function(v,u){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.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)},s.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},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(v){this.__items.push(v);var u=v.lastIndexOf(`
|
|
|
`);u!==-1?this.__character_count=v.length-u:this.__character_count+=v.length},s.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function A(v,u){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),u=u||"",v.indent_level>0&&(u=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}A.prototype.get_indent_size=function(v,u){var y=this.__base_string_length;return u=u||0,v<0&&(y=0),y+=v*this.__indent_size,y+=u,y},A.prototype.get_indent_string=function(v,u){var y=this.__base_string;return u=u||0,v<0&&(v=0,y=""),u+=v*this.__indent_size,this.__ensure_cache(u),y+=this.__cache[u],y},A.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var v=this.__cache.length,u=0,y="";this.__indent_size&&v>=this.__indent_size&&(u=Math.floor(v/this.__indent_size),v-=u*this.__indent_size,y=new Array(u+1).join(this.__indent_string)),v&&(y+=new Array(v+1).join(" ")),this.__cache.push(y)};function L(v,u){this.__indent_cache=new A(v,u),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(v,u){return this.__indent_cache.get_indent_string(v,u)},L.prototype.get_indent_size=function(v,u){return this.__indent_cache.get_indent_size(v,u)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(v){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
|
|
|
`&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var y=this.__lines.join(`
|
|
|
`);return v!==`
|
|
|
`&&(y=y.replace(/[\n]/g,v)),y},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(v,u){return v=v||0,u=u||0,this.next_line.set_indent(v,u),this.__lines.length>1?(this.current_line.set_indent(v,u),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(v){for(var u=0;u<v.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(v){for(var u=this.__lines.length;v<u;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(v,u){for(var y=this.__lines.length-2;y>=0;){var b=this.__lines[y];if(b.is_empty())break;if(b.item(0).indexOf(v)!==0&&b.item(-1)!==u){this.__lines.splice(y+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},xe.exports.Output=L},function(xe){function s(A,L,v,u){this.type=A,this.text=L,this.comments_before=null,this.newlines=v||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}xe.exports.Token=s},function(xe,s){var A="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",u="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",y="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",b="(?:"+y+"|["+A+v+"])",k="(?:"+y+"|["+L+v+u+"])*";s.identifier=new RegExp(b+k,"g"),s.identifierStart=new RegExp(b),s.identifierMatch=new RegExp("(?:"+y+"|["+L+v+u+"])+");var ae=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;s.newline=/[\n\r\u2028\u2029]/,s.lineBreak=new RegExp(`\r
|
|
|
|`+s.newline.source),s.allLineBreaks=new RegExp(s.lineBreak.source,"g")},function(xe,s,A){var L=A(6).Options,v=["before-newline","after-newline","preserve-newline"];function u(y){L.call(this,y,"js");var b=this.raw_options.brace_style||null;b==="expand-strict"?this.raw_options.brace_style="expand":b==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var k=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var ae=0;ae<k.length;ae++)k[ae]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=k[ae];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",v),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}u.prototype=new L,xe.exports.Options=u},function(xe){function s(v,u){this.raw_options=A(v,u),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"])}s.prototype._get_array=function(v,u){var y=this.raw_options[v],b=u||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(b=y.concat()):typeof y=="string"&&(b=y.split(/[^a-zA-Z0-9_\/\-]+/)),b},s.prototype._get_boolean=function(v,u){var y=this.raw_options[v],b=y===void 0?!!u:!!y;return b},s.prototype._get_characters=function(v,u){var y=this.raw_options[v],b=u||"";return typeof y=="string"&&(b=y.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),b},s.prototype._get_number=function(v,u){var y=this.raw_options[v];u=parseInt(u,10),isNaN(u)&&(u=0);var b=parseInt(y,10);return isNaN(b)&&(b=u),b},s.prototype._get_selection=function(v,u,y){var b=this._get_selection_list(v,u,y);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
|
`+u+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return b[0]},s.prototype._get_selection_list=function(v,u,y){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[u[0]],!this._is_valid_selection(y,u))throw new Error("Invalid Default Value!");var b=this._get_array(v,y);if(!this._is_valid_selection(b,u))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
|
`+u+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return b},s.prototype._is_valid_selection=function(v,u){return v.length&&u.length&&!v.some(function(y){return u.indexOf(y)===-1})};function A(v,u){var y={};v=L(v);var b;for(b in v)b!==u&&(y[b]=v[b]);if(u&&v[u])for(b in v[u])y[b]=v[u][b];return y}function L(v){var u={},y;for(y in v){var b=y.replace(/-/g,"_");u[b]=v[y]}return u}xe.exports.Options=s,xe.exports.normalizeOpts=L,xe.exports.mergeOpts=A},function(xe,s,A){var L=A(8).InputScanner,v=A(9).Tokenizer,u=A(9).TOKEN,y=A(13).Directives,b=A(4),k=A(12).Pattern,ae=A(14).TemplatablePattern;function P(D,J){return J.indexOf(D)!==-1}var N={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:u.START,RAW:u.RAW,EOF:u.EOF},G=new y(/\/\*/,/\*\//),U=/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]/,T=/[^\d\.]/,B=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),F=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";F=F.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),F="\\?\\.(?!\\d) "+F,F=F.replace(/ /g,"|");var fe=new RegExp(F),be="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Re=be.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),he=new RegExp("^(?:"+Re.join("|")+")$"),W,$=function(D,J){v.call(this,D,J),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var K=new k(this._input),g=new ae(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(b.identifier).matching(b.identifierMatch),number:K.matching(U),punct:K.matching(fe),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(/<!--/),html_comment_end:K.matching(/-->/),include:K.starting_with(/#include/).until_after(b.lineBreak),shebang:K.starting_with(/#!/).until_after(b.lineBreak),xml:K.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(/[`}\\]/)}};$.prototype=new v,$.prototype._is_comment=function(D){return D.type===N.COMMENT||D.type===N.BLOCK_COMMENT||D.type===N.UNKNOWN},$.prototype._is_opening=function(D){return D.type===N.START_BLOCK||D.type===N.START_EXPR},$.prototype._is_closing=function(D,J){return(D.type===N.END_BLOCK||D.type===N.END_EXPR)&&J&&(D.text==="]"&&J.text==="["||D.text===")"&&J.text==="("||D.text==="}"&&J.text==="{")},$.prototype._reset=function(){W=!1},$.prototype._get_next_token=function(D,J){var K=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(N.EOF,""):(K=K||this._read_non_javascript(g),K=K||this._read_string(g),K=K||this._read_pair(g,this._input.peek(1)),K=K||this._read_word(D),K=K||this._read_singles(g),K=K||this._read_comment(g),K=K||this._read_regexp(g,D),K=K||this._read_xml(g,D),K=K||this._read_punctuation(),K=K||this._create_token(N.UNKNOWN,this._input.next()),K)},$.prototype._read_word=function(D){var J;if(J=this.__patterns.identifier.read(),J!=="")return J=J.replace(b.allLineBreaks,`
|
|
|
`),!(D.type===N.DOT||D.type===N.RESERVED&&(D.text==="set"||D.text==="get"))&&he.test(J)?(J==="in"||J==="of")&&(D.type===N.WORD||D.type===N.STRING)?this._create_token(N.OPERATOR,J):this._create_token(N.RESERVED,J):this._create_token(N.WORD,J);if(J=this.__patterns.number.read(),J!=="")return this._create_token(N.WORD,J)},$.prototype._read_singles=function(D){var J=null;return D==="("||D==="["?J=this._create_token(N.START_EXPR,D):D===")"||D==="]"?J=this._create_token(N.END_EXPR,D):D==="{"?J=this._create_token(N.START_BLOCK,D):D==="}"?J=this._create_token(N.END_BLOCK,D):D===";"?J=this._create_token(N.SEMICOLON,D):D==="."&&T.test(this._input.peek(1))?J=this._create_token(N.DOT,D):D===","&&(J=this._create_token(N.COMMA,D)),J&&this._input.next(),J},$.prototype._read_pair=function(D,J){var K=null;return D==="#"&&J==="{"&&(K=this._create_token(N.START_BLOCK,D+J)),K&&(this._input.next(),this._input.next()),K},$.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(N.EQUALS,D):D==="?."?this._create_token(N.DOT,D):this._create_token(N.OPERATOR,D)},$.prototype._read_non_javascript=function(D){var J="";if(D==="#"){if(this._is_first_token()&&(J=this.__patterns.shebang.read(),J))return this._create_token(N.UNKNOWN,J.trim()+`
|
|
|
`);if(J=this.__patterns.include.read(),J)return this._create_token(N.UNKNOWN,J.trim()+`
|
|
|
`);D=this._input.next();var K="#";if(this._input.hasNext()&&this._input.testChar(x)){do D=this._input.next(),K+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(K+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(K+="{}",this._input.next(),this._input.next())),this._create_token(N.WORD,K)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(J=this.__patterns.html_comment_start.read(),J){for(;this._input.hasNext()&&!this._input.testChar(b.newline);)J+=this._input.next();return W=!0,this._create_token(N.COMMENT,J)}}else if(W&&D==="-"&&(J=this.__patterns.html_comment_end.read(),J))return W=!1,this._create_token(N.COMMENT,J);return null},$.prototype._read_comment=function(D){var J=null;if(D==="/"){var K="";if(this._input.peek(1)==="*"){K=this.__patterns.block_comment.read();var g=G.get_directives(K);g&&g.ignore==="start"&&(K+=G.readIgnored(this._input)),K=K.replace(b.allLineBreaks,`
|
|
|
`),J=this._create_token(N.BLOCK_COMMENT,K),J.directives=g}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),J=this._create_token(N.COMMENT,K))}return J},$.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var J=this._input.next();return this.has_char_escapes=!1,D==="`"?J+=this._read_string_recursive("`",!0,"${"):J+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(J=se(J)),this._input.peek()===D&&(J+=this._input.next()),J=J.replace(b.allLineBreaks,`
|
|
|
`),this._create_token(N.STRING,J)}return null},$.prototype._allow_regexp_or_xml=function(D){return D.type===N.RESERVED&&P(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===N.END_EXPR&&D.text===")"&&D.opened.previous.type===N.RESERVED&&P(D.opened.previous.text,["if","while","for"])||P(D.type,[N.COMMENT,N.START_EXPR,N.START_BLOCK,N.START,N.END_BLOCK,N.OPERATOR,N.EQUALS,N.EOF,N.SEMICOLON,N.COMMA])},$.prototype._read_regexp=function(D,J){if(D==="/"&&this._allow_regexp_or_xml(J)){for(var K=this._input.next(),g=!1,E=!1;this._input.hasNext()&&(g||E||this._input.peek()!==D)&&!this._input.testChar(b.newline);)K+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?E=!0:this._input.peek()==="]"&&(E=!1)),this._input.next();return this._input.peek()===D&&(K+=this._input.next(),K+=this._input.read(b.identifier)),this._create_token(N.STRING,K)}return null},$.prototype._read_xml=function(D,J){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(J)){var K="",g=this.__patterns.xml.read_match();if(g){for(var E=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=E.indexOf("{")===0,pe=0;g;){var ze=!!g[1],We=g[2],je=!!g[g.length-1]||We.slice(0,8)==="![CDATA[";if(!je&&(We===E||Z&&We.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ze?--pe:++pe),K+=g[0],pe<=0)break;g=this.__patterns.xml.read_match()}return g||(K+=this._input.match(/[\s\S]*/g)[0]),K=K.replace(b.allLineBreaks,`
|
|
|
`),this._create_token(N.STRING,K)}}return null};function se(D){for(var J="",K=0,g=new L(D),E=null;g.hasNext();)if(E=g.match(/([\s]|[^\\]|\\\\)+/g),E&&(J+=E[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")E=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")E=g.match(/u([0-9A-Fa-f]{4})/g),E||(E=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{J+="\\",g.hasNext()&&(J+=g.next());continue}if(!E||(K=parseInt(E[1],16),K>126&&K<=255&&E[0].indexOf("x")===0))return D;K>=0&&K<32||K>1114111?J+="\\"+E[0]:K===34||K===39||K===92?J+="\\"+String.fromCharCode(K):J+=String.fromCharCode(K)}return J}$.prototype._read_string_recursive=function(D,J,K){var g,E;D==="'"?E=this.__patterns.single_quote:D==='"'?E=this.__patterns.double_quote:D==="`"?E=this.__patterns.template_text:D==="}"&&(E=this.__patterns.template_expression);for(var Z=E.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===D||!J&&b.newline.test(pe)){this._input.back();break}else pe==="\\"&&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(),pe+=this._input.next()):K&&(K==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),K===pe&&(D==="`"?pe+=this._read_string_recursive("}",J,"`"):pe+=this._read_string_recursive("`",J,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=E.read(),Z+=pe}return Z},xe.exports.Tokenizer=$,xe.exports.TOKEN=N,xe.exports.positionable_operators=B.slice(),xe.exports.line_starters=be.slice()},function(xe){var s=RegExp.prototype.hasOwnProperty("sticky");function A(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},A.prototype.peek=function(L){var v=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(v=this.__input.charAt(L)),v},A.prototype.__match=function(L,v){L.lastIndex=v;var u=L.exec(this.__input);return u&&!(s&&L.sticky)&&u.index!==v&&(u=null),u},A.prototype.test=function(L,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(L,v):!1},A.prototype.testChar=function(L,v){var u=this.peek(v);return L.lastIndex=0,u!==null&&L.test(u)},A.prototype.match=function(L){var v=this.__match(L,this.__position);return v?this.__position+=v[0].length:v=null,v},A.prototype.read=function(L,v,u){var y="",b;return L&&(b=this.match(L),b&&(y+=b[0])),v&&(b||!L)&&(y+=this.readUntil(v,u)),y},A.prototype.readUntil=function(L,v){var u="",y=this.__position;L.lastIndex=this.__position;var b=L.exec(this.__input);return b?(y=b.index,v&&(y+=b[0].length)):y=this.__input_length,u=this.__input.substring(this.__position,y),this.__position=y,u},A.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},A.prototype.get_regexp=function(L,v){var u=null,y="g";return v&&s&&(y="y"),typeof L=="string"&&L!==""?u=new RegExp(L,y):L&&(u=new RegExp(L.source,y)),u},A.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(L){var v=this.__position,u=this.readUntilAfter(L);return this.__position=v,u},A.prototype.lookBack=function(L){var v=this.__position-1;return v>=L.length&&this.__input.substring(v-L.length,v).toLowerCase()===L},xe.exports.InputScanner=A},function(xe,s,A){var L=A(8).InputScanner,v=A(3).Token,u=A(10).TokenStream,y=A(11).WhitespacePattern,b={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},k=function(ae,P){this._input=new L(ae),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new y(this._input)};k.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var ae,P=new v(b.START,""),N=null,G=[],U=new u;P.type!==b.EOF;){for(ae=this._get_next_token(P,N);this._is_comment(ae);)U.add(ae),ae=this._get_next_token(P,N);U.isEmpty()||(ae.comments_before=U,U=new u),ae.parent=N,this._is_opening(ae)?(G.push(N),N=ae):N&&this._is_closing(ae,N)&&(ae.opened=N,N.closed=ae,N=G.pop(),ae.parent=N),ae.previous=P,P.next=ae,this.__tokens.add(ae),P=ae}return this.__tokens},k.prototype._is_first_token=function(){return this.__tokens.isEmpty()},k.prototype._reset=function(){},k.prototype._get_next_token=function(ae,P){this._readWhitespace();var N=this._input.read(/.+/g);return N?this._create_token(b.RAW,N):this._create_token(b.EOF,"")},k.prototype._is_comment=function(ae){return!1},k.prototype._is_opening=function(ae){return!1},k.prototype._is_closing=function(ae,P){return!1},k.prototype._create_token=function(ae,P){var N=new v(ae,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return N},k.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},xe.exports.Tokenizer=k,xe.exports.TOKEN=b},function(xe){function s(A){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=A}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position<this.__tokens_length},s.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__tokens[this.__position],this.__position+=1),A},s.prototype.peek=function(A){var L=null;return A=A||0,A+=this.__position,A>=0&&A<this.__tokens_length&&(L=this.__tokens[A]),L},s.prototype.add=function(A){this.__parent_token&&(A.parent=this.__parent_token),this.__tokens.push(A),this.__tokens_length+=1},xe.exports.TokenStream=s},function(xe,s,A){var L=A(12).Pattern;function v(u,y){L.call(this,u,y),y?this._line_regexp=this._input.get_regexp(y._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new L,v.prototype.__set_whitespace_patterns=function(u,y){u+="\\t ",y+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+y+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+y+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var y=this.__split(this._newline_regexp,u);this.newline_count=y.length-1,this.whitespace_before_token=y[this.newline_count]}return u},v.prototype.matching=function(u,y){var b=this._create();return b.__set_whitespace_patterns(u,y),b._update(),b},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(u,y){u.lastIndex=0;for(var b=0,k=[],ae=u.exec(y);ae;)k.push(y.substring(b,ae.index)),b=ae.index+ae[0].length,ae=u.exec(y);return b<y.length?k.push(y.substring(b,y.length)):k.push(""),k},xe.exports.WhitespacePattern=v},function(xe){function s(A,L){this._input=A,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}s.prototype.read=function(){var A=this._input.read(this._starting_pattern);return(!this._starting_pattern||A)&&(A+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),A},s.prototype.read_match=function(){return this._input.match(this._match_pattern)},s.prototype.until_after=function(A){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(A),L._update(),L},s.prototype.until=function(A){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(A),L._update(),L},s.prototype.starting_with=function(A){var L=this._create();return L._starting_pattern=this._input.get_regexp(A,!0),L._update(),L},s.prototype.matching=function(A){var L=this._create();return L._match_pattern=this._input.get_regexp(A,!0),L._update(),L},s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){},xe.exports.Pattern=s},function(xe){function s(A,L){A=typeof A=="string"?A:A.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+L,"g")}s.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(A);v;)L[v[1]]=v[2],v=this.__directive_pattern.exec(A);return L},s.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},xe.exports.Directives=s},function(xe,s,A){var L=A(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(y,b){L.call(this,y,b),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),b&&(this.__template_pattern=this._input.get_regexp(b.__template_pattern),this._excluded=Object.assign(this._excluded,b._excluded),this._disabled=Object.assign(this._disabled,b._disabled));var k=new L(y);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}/)}}u.prototype=new L,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(y){var b=this._create();return b._disabled[y]=!0,b._update(),b},u.prototype.read_options=function(y){var b=this._create();for(var k in v)b._disabled[k]=y.templating.indexOf(k)===-1;return b._update(),b},u.prototype.exclude=function(y){var b=this._create();return b._excluded[y]=!0,b._update(),b},u.prototype.read=function(){var y="";this._match_pattern?y=this._input.read(this._starting_pattern):y=this._input.read(this._starting_pattern,this.__template_pattern);for(var b=this._read_template();b;)this._match_pattern?b+=this._input.read(this._match_pattern):b+=this._input.readUntil(this.__template_pattern),y+=b,b=this._read_template();return this._until_after&&(y+=this._input.readUntilAfter(this._until_pattern)),y},u.prototype.__set_templated_pattern=function(){var y=[];this._disabled.php||y.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||y.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(y.push(this.__patterns.django._starting_pattern.source),y.push(this.__patterns.django_value._starting_pattern.source),y.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||y.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&y.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+y.join("|")+")")},u.prototype._read_template=function(){var y="",b=this._input.peek();if(b==="<"){var k=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&k==="?"&&(y=y||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&k==="%"&&(y=y||this.__patterns.erb.read())}else b==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(y=y||this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars_unescaped.read(),y=y||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(y=y||this.__patterns.django_value.read()),this._excluded.django||(y=y||this.__patterns.django_comment.read(),y=y||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(y=y||this.__patterns.smarty_comment.read(),y=y||this.__patterns.smarty_literal.read(),y=y||this.__patterns.smarty.read()));return y},xe.exports.TemplatablePattern=u}],j={};function X(xe){var s=j[xe];if(s!==void 0)return s.exports;var A=j[xe]={exports:{}};return Ce[xe](A,A.exports,X),A.exports}var ve=X(0);Y=ve})();var de=Y;p=[],M=function(){return{js_beautify:de}}.apply(qe,p),M!==void 0&&(qt.exports=M)})()},15342:function(qt){(function(p,M){qt.exports=M()})(typeof self!="undefined"?self:this,function(){return function(qe){var p={};function M(Y){if(p[Y])return p[Y].exports;var de=p[Y]={i:Y,l:!1,exports:{}};return qe[Y].call(de.exports,de,de.exports,M),de.l=!0,de.exports}return M.m=qe,M.c=p,M.d=function(Y,de,Ce){M.o(Y,de)||Object.defineProperty(Y,de,{enumerable:!0,get:Ce})},M.r=function(Y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},M.t=function(Y,de){if(de&1&&(Y=M(Y)),de&8||de&4&&typeof Y=="object"&&Y&&Y.__esModule)return Y;var Ce=Object.create(null);if(M.r(Ce),Object.defineProperty(Ce,"default",{enumerable:!0,value:Y}),de&2&&typeof Y!="string")for(var j in Y)M.d(Ce,j,function(X){return Y[X]}.bind(null,j));return Ce},M.n=function(Y){var de=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return M.d(de,"a",de),de},M.o=function(Y,de){return Object.prototype.hasOwnProperty.call(Y,de)},M.p="",M(M.s=1)}([function(qe,p,M){},function(qe,p,M){"use strict";M.r(p);var Y=M(0),de=function(){function te(l,d,f){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=f}return te.range=function(d,f){return f?!d||!d.loc||!f.loc||d.loc.lexer!==f.loc.lexer?null:new te(d.loc.lexer,d.loc.start,f.loc.end):d&&d.loc},te}(),Ce=function(){function te(d,f){this.text=void 0,this.loc=void 0,this.text=d,this.loc=f}var l=te.prototype;return l.range=function(f,m){return new te(m,de.range(this,f))},te}(),j=function te(l,d){this.position=void 0;var f="KaTeX parse error: "+l,m,I=d&&d.loc;if(I&&I.start<=I.end){var ee=I.lexer.input;m=I.start;var Le=I.end;m===ee.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";var Be=ee.slice(m,Le).replace(/[^]/g,"$&\u0332"),Ve;m>15?Ve="\u2026"+ee.slice(m-15,m):Ve=ee.slice(0,m);var gt;Le+15<ee.length?gt=ee.slice(Le,Le+15)+"\u2026":gt=ee.slice(Le),f+=Ve+Be+gt}var Rt=new Error(f);return Rt.name="ParseError",Rt.__proto__=te.prototype,Rt.position=m,Rt};j.prototype.__proto__=Error.prototype;var X=j,ve=function(l,d){return l.indexOf(d)!==-1},xe=function(l,d){return l===void 0?d:l},s=/([A-Z])/g,A=function(l){return l.replace(s,"-$1").toLowerCase()},L={"&":"&",">":">","<":"<",'"':""","'":"'"},v=/[&><"']/g;function u(te){return String(te).replace(v,function(l){return L[l]})}var y=function te(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?te(l.body[0]):l:l.type==="font"?te(l.body):l},b=function(l){var d=y(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},k=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},ae=function(l){var d=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return d!=null?d[1]:"_relative"},P={contains:ve,deflt:xe,escape:u,hyphenate:A,getBaseElem:y,isCharacterBox:b,protocolFromUrl:ae},N=function(){function te(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=P.deflt(d.displayMode,!1),this.output=P.deflt(d.output,"htmlAndMathml"),this.leqno=P.deflt(d.leqno,!1),this.fleqn=P.deflt(d.fleqn,!1),this.throwOnError=P.deflt(d.throwOnError,!0),this.errorColor=P.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,P.deflt(d.minRuleThickness,0)),this.colorIsTextColor=P.deflt(d.colorIsTextColor,!1),this.strict=P.deflt(d.strict,"warn"),this.trust=P.deflt(d.trust,!1),this.maxSize=Math.max(0,P.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(d.maxExpand,1e3))}var l=te.prototype;return l.reportNonstrict=function(f,m,I){var ee=this.strict;if(typeof ee=="function"&&(ee=ee(f,m,I)),!(!ee||ee==="ignore")){if(ee===!0||ee==="error")throw new X("LaTeX-incompatible input and strict mode is set to 'error': "+(m+" ["+f+"]"),I);ee==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ee+"': "+m+" ["+f+"]"))}},l.useStrictBehavior=function(f,m,I){var ee=this.strict;if(typeof ee=="function")try{ee=ee(f,m,I)}catch(Le){ee="error"}return!ee||ee==="ignore"?!1:ee===!0||ee==="error"?!0:ee==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ee+"': "+m+" ["+f+"]")),!1)},l.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=P.protocolFromUrl(f.url));var m=typeof this.trust=="function"?this.trust(f):this.trust;return!!m},te}(),G=function(){function te(d,f,m){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=f,this.cramped=m}var l=te.prototype;return l.sup=function(){return he[W[this.id]]},l.sub=function(){return he[$[this.id]]},l.fracNum=function(){return he[se[this.id]]},l.fracDen=function(){return he[D[this.id]]},l.cramp=function(){return he[J[this.id]]},l.text=function(){return he[K[this.id]]},l.isTight=function(){return this.size>=2},te}(),U=0,x=1,T=2,B=3,F=4,fe=5,be=6,Re=7,he=[new G(U,0,!1),new G(x,0,!0),new G(T,1,!1),new G(B,1,!0),new G(F,2,!1),new G(fe,2,!0),new G(be,3,!1),new G(Re,3,!0)],W=[F,fe,F,fe,be,Re,be,Re],$=[fe,fe,fe,fe,Re,Re,Re,Re],se=[T,B,F,fe,be,Re,be,Re],D=[B,B,fe,fe,Re,Re,Re,Re],J=[x,x,B,B,fe,fe,Re,Re],K=[U,x,T,B,T,B,T,B],g={DISPLAY:he[U],TEXT:he[T],SCRIPT:he[F],SCRIPTSCRIPT:he[be]},E=[{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 Z(te){for(var l=0;l<E.length;l++)for(var d=E[l],f=0;f<d.blocks.length;f++){var m=d.blocks[f];if(te>=m[0]&&te<=m[1])return d.name}return null}var pe=[];E.forEach(function(te){return te.blocks.forEach(function(l){return pe.push.apply(pe,l)})});function ze(te){for(var l=0;l<pe.length;l+=2)if(te>=pe[l]&&te<=pe[l+1])return!0;return!1}var We=80,je=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"},Ge=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"},pt=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"},ht=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"},rt=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"},Vt=function(l,d,f){var m=f-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"},Jt=function(l,d,f){d=1e3*d;var m="";switch(l){case"sqrtMain":m=je(d,We);break;case"sqrtSize1":m=Ge(d,We);break;case"sqrtSize2":m=pt(d,We);break;case"sqrtSize3":m=ht(d,We);break;case"sqrtSize4":m=rt(d,We);break;case"sqrtTall":m=Vt(d,We,f)}return m},on={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`},Kt=function(){function te(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=te.prototype;return l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){for(var f=document.createDocumentFragment(),m=0;m<this.children.length;m++)f.appendChild(this.children[m].toNode());return f},l.toMarkup=function(){for(var f="",m=0;m<this.children.length;m++)f+=this.children[m].toMarkup();return f},l.toText=function(){var f=function(I){return I.toText()};return this.children.map(f).join("")},te}(),at=function(l){return l.filter(function(d){return d}).join(" ")},Et=function(l,d,f){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=f||{},d){d.style.isTight()&&this.classes.push("mtight");var m=d.getColor();m&&(this.style.color=m)}},q=function(l){var d=document.createElement(l);d.className=at(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(d.style[f]=this.style[f]);for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&d.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)d.appendChild(this.children[I].toNode());return d},ge=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+P.escape(at(this.classes))+'"');var f="";for(var m in this.style)this.style.hasOwnProperty(m)&&(f+=P.hyphenate(m)+":"+this.style[m]+";");f&&(d+=' style="'+P.escape(f)+'"');for(var I in this.attributes)this.attributes.hasOwnProperty(I)&&(d+=" "+I+'="'+P.escape(this.attributes[I])+'"');d+=">";for(var ee=0;ee<this.children.length;ee++)d+=this.children[ee].toMarkup();return d+="</"+l+">",d},ne=function(){function te(d,f,m,I){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,Et.call(this,d,m,I),this.children=f||[]}var l=te.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){return q.call(this,"span")},l.toMarkup=function(){return ge.call(this,"span")},te}(),z=function(){function te(d,f,m,I){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,Et.call(this,f,I),this.children=m||[],this.setAttribute("href",d)}var l=te.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){return q.call(this,"a")},l.toMarkup=function(){return ge.call(this,"a")},te}(),De=function(){function te(d,f,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=f,this.src=d,this.classes=["mord"],this.style=m}var l=te.prototype;return l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var m in this.style)this.style.hasOwnProperty(m)&&(f.style[m]=this.style[m]);return f},l.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",m="";for(var I in this.style)this.style.hasOwnProperty(I)&&(m+=P.hyphenate(I)+":"+this.style[I]+";");return m&&(f+=' style="'+P.escape(m)+'"'),f+="'/>",f},te}(),O={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},oe=function(){function te(d,f,m,I,ee,Le,Be,Ve){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=f||0,this.depth=m||0,this.italic=I||0,this.skew=ee||0,this.width=Le||0,this.classes=Be||[],this.style=Ve||{},this.maxFontSize=0;var gt=Z(this.text.charCodeAt(0));gt&&this.classes.push(gt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O[this.text])}var l=te.prototype;return l.hasClass=function(f){return P.contains(this.classes,f)},l.toNode=function(){var f=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=at(this.classes));for(var I in this.style)this.style.hasOwnProperty(I)&&(m=m||document.createElement("span"),m.style[I]=this.style[I]);return m?(m.appendChild(f),m):f},l.toMarkup=function(){var f=!1,m="<span";this.classes.length&&(f=!0,m+=' class="',m+=P.escape(at(this.classes)),m+='"');var I="";this.italic>0&&(I+="margin-right:"+this.italic+"em;");for(var ee in this.style)this.style.hasOwnProperty(ee)&&(I+=P.hyphenate(ee)+":"+this.style[ee]+";");I&&(f=!0,m+=' style="'+P.escape(I)+'"');var Le=P.escape(this.text);return f?(m+=">",m+=Le,m+="</span>",m):Le},te}(),Q=function(){function te(d,f){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=f||{}}var l=te.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"svg");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);for(var ee=0;ee<this.children.length;ee++)m.appendChild(this.children[ee].toNode());return m},l.toMarkup=function(){var f="<svg";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+"='"+this.attributes[m]+"'");f+=">";for(var I=0;I<this.children.length;I++)f+=this.children[I].toMarkup();return f+="</svg>",f},te}(),le=function(){function te(d,f){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=f}var l=te.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"path");return this.alternate?m.setAttribute("d",this.alternate):m.setAttribute("d",on[this.pathName]),m},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+on[this.pathName]+"'/>"},te}(),ce=function(){function te(d){this.attributes=void 0,this.attributes=d||{}}var l=te.prototype;return l.toNode=function(){var f="http://www.w3.org/2000/svg",m=document.createElementNS(f,"line");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);return m},l.toMarkup=function(){var f="<line";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+"='"+this.attributes[m]+"'");return f+="/>",f},te}();function Ae(te){if(te instanceof oe)return te;throw new Error("Expected symbolNode but got "+String(te)+".")}function _e(te){if(te instanceof ne)return te;throw new Error("Expected span<HtmlDomNode> but got "+String(te)+".")}var Pe={"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]}},Ie={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]},Fe={\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 Qe(te,l){Pe[te]=l}function et(te,l,d){if(!Pe[l])throw new Error("Font metrics not found for font: "+l+".");var f=te.charCodeAt(0),m=Pe[l][f];if(!m&&te[0]in Fe&&(f=Fe[te[0]].charCodeAt(0),m=Pe[l][f]),!m&&d==="text"&&ze(f)&&(m=Pe[l][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}var Ye={};function ut(te){var l;if(te>=5?l=0:te>=3?l=1:l=2,!Ye[l]){var d=Ye[l]={cssEmPerMu:Ie.quad[l]/18};for(var f in Ie)Ie.hasOwnProperty(f)&&(d[f]=Ie[f][l])}return Ye[l]}var dt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ot={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ct={math:{},text:{}},Lt=Ct;function w(te,l,d,f,m,I){Ct[te][m]={font:l,group:d,replace:f},I&&f&&(Ct[te][f]=Ct[te][m])}var C="math",lt="text",ie="main",Oe="ams",mn="accent-token",$e="bin",Ze="close",tt="inner",ue="mathord",V="op-token",we="open",Ne="punct",H="rel",it="spacing",Ee="textord";w(C,ie,H,"\u2261","\\equiv",!0),w(C,ie,H,"\u227A","\\prec",!0),w(C,ie,H,"\u227B","\\succ",!0),w(C,ie,H,"\u223C","\\sim",!0),w(C,ie,H,"\u22A5","\\perp"),w(C,ie,H,"\u2AAF","\\preceq",!0),w(C,ie,H,"\u2AB0","\\succeq",!0),w(C,ie,H,"\u2243","\\simeq",!0),w(C,ie,H,"\u2223","\\mid",!0),w(C,ie,H,"\u226A","\\ll",!0),w(C,ie,H,"\u226B","\\gg",!0),w(C,ie,H,"\u224D","\\asymp",!0),w(C,ie,H,"\u2225","\\parallel"),w(C,ie,H,"\u22C8","\\bowtie",!0),w(C,ie,H,"\u2323","\\smile",!0),w(C,ie,H,"\u2291","\\sqsubseteq",!0),w(C,ie,H,"\u2292","\\sqsupseteq",!0),w(C,ie,H,"\u2250","\\doteq",!0),w(C,ie,H,"\u2322","\\frown",!0),w(C,ie,H,"\u220B","\\ni",!0),w(C,ie,H,"\u221D","\\propto",!0),w(C,ie,H,"\u22A2","\\vdash",!0),w(C,ie,H,"\u22A3","\\dashv",!0),w(C,ie,H,"\u220B","\\owns"),w(C,ie,Ne,".","\\ldotp"),w(C,ie,Ne,"\u22C5","\\cdotp"),w(C,ie,Ee,"#","\\#"),w(lt,ie,Ee,"#","\\#"),w(C,ie,Ee,"&","\\&"),w(lt,ie,Ee,"&","\\&"),w(C,ie,Ee,"\u2135","\\aleph",!0),w(C,ie,Ee,"\u2200","\\forall",!0),w(C,ie,Ee,"\u210F","\\hbar",!0),w(C,ie,Ee,"\u2203","\\exists",!0),w(C,ie,Ee,"\u2207","\\nabla",!0),w(C,ie,Ee,"\u266D","\\flat",!0),w(C,ie,Ee,"\u2113","\\ell",!0),w(C,ie,Ee,"\u266E","\\natural",!0),w(C,ie,Ee,"\u2663","\\clubsuit",!0),w(C,ie,Ee,"\u2118","\\wp",!0),w(C,ie,Ee,"\u266F","\\sharp",!0),w(C,ie,Ee,"\u2662","\\diamondsuit",!0),w(C,ie,Ee,"\u211C","\\Re",!0),w(C,ie,Ee,"\u2661","\\heartsuit",!0),w(C,ie,Ee,"\u2111","\\Im",!0),w(C,ie,Ee,"\u2660","\\spadesuit",!0),w(lt,ie,Ee,"\xA7","\\S",!0),w(lt,ie,Ee,"\xB6","\\P",!0),w(C,ie,Ee,"\u2020","\\dag"),w(lt,ie,Ee,"\u2020","\\dag"),w(lt,ie,Ee,"\u2020","\\textdagger"),w(C,ie,Ee,"\u2021","\\ddag"),w(lt,ie,Ee,"\u2021","\\ddag"),w(lt,ie,Ee,"\u2021","\\textdaggerdbl"),w(C,ie,Ze,"\u23B1","\\rmoustache",!0),w(C,ie,we,"\u23B0","\\lmoustache",!0),w(C,ie,Ze,"\u27EF","\\rgroup",!0),w(C,ie,we,"\u27EE","\\lgroup",!0),w(C,ie,$e,"\u2213","\\mp",!0),w(C,ie,$e,"\u2296","\\ominus",!0),w(C,ie,$e,"\u228E","\\uplus",!0),w(C,ie,$e,"\u2293","\\sqcap",!0),w(C,ie,$e,"\u2217","\\ast"),w(C,ie,$e,"\u2294","\\sqcup",!0),w(C,ie,$e,"\u25EF","\\bigcirc"),w(C,ie,$e,"\u2219","\\bullet"),w(C,ie,$e,"\u2021","\\ddagger"),w(C,ie,$e,"\u2240","\\wr",!0),w(C,ie,$e,"\u2A3F","\\amalg"),w(C,ie,$e,"&","\\And"),w(C,ie,H,"\u27F5","\\longleftarrow",!0),w(C,ie,H,"\u21D0","\\Leftarrow",!0),w(C,ie,H,"\u27F8","\\Longleftarrow",!0),w(C,ie,H,"\u27F6","\\longrightarrow",!0),w(C,ie,H,"\u21D2","\\Rightarrow",!0),w(C,ie,H,"\u27F9","\\Longrightarrow",!0),w(C,ie,H,"\u2194","\\leftrightarrow",!0),w(C,ie,H,"\u27F7","\\longleftrightarrow",!0),w(C,ie,H,"\u21D4","\\Leftrightarrow",!0),w(C,ie,H,"\u27FA","\\Longleftrightarrow",!0),w(C,ie,H,"\u21A6","\\mapsto",!0),w(C,ie,H,"\u27FC","\\longmapsto",!0),w(C,ie,H,"\u2197","\\nearrow",!0),w(C,ie,H,"\u21A9","\\hookleftarrow",!0),w(C,ie,H,"\u21AA","\\hookrightarrow",!0),w(C,ie,H,"\u2198","\\searrow",!0),w(C,ie,H,"\u21BC","\\leftharpoonup",!0),w(C,ie,H,"\u21C0","\\rightharpoonup",!0),w(C,ie,H,"\u2199","\\swarrow",!0),w(C,ie,H,"\u21BD","\\leftharpoondown",!0),w(C,ie,H,"\u21C1","\\rightharpoondown",!0),w(C,ie,H,"\u2196","\\nwarrow",!0),w(C,ie,H,"\u21CC","\\rightleftharpoons",!0),w(C,Oe,H,"\u226E","\\nless",!0),w(C,Oe,H,"\uE010","\\@nleqslant"),w(C,Oe,H,"\uE011","\\@nleqq"),w(C,Oe,H,"\u2A87","\\lneq",!0),w(C,Oe,H,"\u2268","\\lneqq",!0),w(C,Oe,H,"\uE00C","\\@lvertneqq"),w(C,Oe,H,"\u22E6","\\lnsim",!0),w(C,Oe,H,"\u2A89","\\lnapprox",!0),w(C,Oe,H,"\u2280","\\nprec",!0),w(C,Oe,H,"\u22E0","\\npreceq",!0),w(C,Oe,H,"\u22E8","\\precnsim",!0),w(C,Oe,H,"\u2AB9","\\precnapprox",!0),w(C,Oe,H,"\u2241","\\nsim",!0),w(C,Oe,H,"\uE006","\\@nshortmid"),w(C,Oe,H,"\u2224","\\nmid",!0),w(C,Oe,H,"\u22AC","\\nvdash",!0),w(C,Oe,H,"\u22AD","\\nvDash",!0),w(C,Oe,H,"\u22EA","\\ntriangleleft"),w(C,Oe,H,"\u22EC","\\ntrianglelefteq",!0),w(C,Oe,H,"\u228A","\\subsetneq",!0),w(C,Oe,H,"\uE01A","\\@varsubsetneq"),w(C,Oe,H,"\u2ACB","\\subsetneqq",!0),w(C,Oe,H,"\uE017","\\@varsubsetneqq"),w(C,Oe,H,"\u226F","\\ngtr",!0),w(C,Oe,H,"\uE00F","\\@ngeqslant"),w(C,Oe,H,"\uE00E","\\@ngeqq"),w(C,Oe,H,"\u2A88","\\gneq",!0),w(C,Oe,H,"\u2269","\\gneqq",!0),w(C,Oe,H,"\uE00D","\\@gvertneqq"),w(C,Oe,H,"\u22E7","\\gnsim",!0),w(C,Oe,H,"\u2A8A","\\gnapprox",!0),w(C,Oe,H,"\u2281","\\nsucc",!0),w(C,Oe,H,"\u22E1","\\nsucceq",!0),w(C,Oe,H,"\u22E9","\\succnsim",!0),w(C,Oe,H,"\u2ABA","\\succnapprox",!0),w(C,Oe,H,"\u2246","\\ncong",!0),w(C,Oe,H,"\uE007","\\@nshortparallel"),w(C,Oe,H,"\u2226","\\nparallel",!0),w(C,Oe,H,"\u22AF","\\nVDash",!0),w(C,Oe,H,"\u22EB","\\ntriangleright"),w(C,Oe,H,"\u22ED","\\ntrianglerighteq",!0),w(C,Oe,H,"\uE018","\\@nsupseteqq"),w(C,Oe,H,"\u228B","\\supsetneq",!0),w(C,Oe,H,"\uE01B","\\@varsupsetneq"),w(C,Oe,H,"\u2ACC","\\supsetneqq",!0),w(C,Oe,H,"\uE019","\\@varsupsetneqq"),w(C,Oe,H,"\u22AE","\\nVdash",!0),w(C,Oe,H,"\u2AB5","\\precneqq",!0),w(C,Oe,H,"\u2AB6","\\succneqq",!0),w(C,Oe,H,"\uE016","\\@nsubseteqq"),w(C,Oe,$e,"\u22B4","\\unlhd"),w(C,Oe,$e,"\u22B5","\\unrhd"),w(C,Oe,H,"\u219A","\\nleftarrow",!0),w(C,Oe,H,"\u219B","\\nrightarrow",!0),w(C,Oe,H,"\u21CD","\\nLeftarrow",!0),w(C,Oe,H,"\u21CF","\\nRightarrow",!0),w(C,Oe,H,"\u21AE","\\nleftrightarrow",!0),w(C,Oe,H,"\u21CE","\\nLeftrightarrow",!0),w(C,Oe,H,"\u25B3","\\vartriangle"),w(C,Oe,Ee,"\u210F","\\hslash"),w(C,Oe,Ee,"\u25BD","\\triangledown"),w(C,Oe,Ee,"\u25CA","\\lozenge"),w(C,Oe,Ee,"\u24C8","\\circledS"),w(C,Oe,Ee,"\xAE","\\circledR"),w(lt,Oe,Ee,"\xAE","\\circledR"),w(C,Oe,Ee,"\u2221","\\measuredangle",!0),w(C,Oe,Ee,"\u2204","\\nexists"),w(C,Oe,Ee,"\u2127","\\mho"),w(C,Oe,Ee,"\u2132","\\Finv",!0),w(C,Oe,Ee,"\u2141","\\Game",!0),w(C,Oe,Ee,"\u2035","\\backprime"),w(C,Oe,Ee,"\u25B2","\\blacktriangle"),w(C,Oe,Ee,"\u25BC","\\blacktriangledown"),w(C,Oe,Ee,"\u25A0","\\blacksquare"),w(C,Oe,Ee,"\u29EB","\\blacklozenge"),w(C,Oe,Ee,"\u2605","\\bigstar"),w(C,Oe,Ee,"\u2222","\\sphericalangle",!0),w(C,Oe,Ee,"\u2201","\\complement",!0),w(C,Oe,Ee,"\xF0","\\eth",!0),w(C,Oe,Ee,"\u2571","\\diagup"),w(C,Oe,Ee,"\u2572","\\diagdown"),w(C,Oe,Ee,"\u25A1","\\square"),w(C,Oe,Ee,"\u25A1","\\Box"),w(C,Oe,Ee,"\u25CA","\\Diamond"),w(C,Oe,Ee,"\xA5","\\yen",!0),w(lt,Oe,Ee,"\xA5","\\yen",!0),w(C,Oe,Ee,"\u2713","\\checkmark",!0),w(lt,Oe,Ee,"\u2713","\\checkmark"),w(C,Oe,Ee,"\u2136","\\beth",!0),w(C,Oe,Ee,"\u2138","\\daleth",!0),w(C,Oe,Ee,"\u2137","\\gimel",!0),w(C,Oe,Ee,"\u03DD","\\digamma",!0),w(C,Oe,Ee,"\u03F0","\\varkappa"),w(C,Oe,we,"\u250C","\\ulcorner",!0),w(C,Oe,Ze,"\u2510","\\urcorner",!0),w(C,Oe,we,"\u2514","\\llcorner",!0),w(C,Oe,Ze,"\u2518","\\lrcorner",!0),w(C,Oe,H,"\u2266","\\leqq",!0),w(C,Oe,H,"\u2A7D","\\leqslant",!0),w(C,Oe,H,"\u2A95","\\eqslantless",!0),w(C,Oe,H,"\u2272","\\lesssim",!0),w(C,Oe,H,"\u2A85","\\lessapprox",!0),w(C,Oe,H,"\u224A","\\approxeq",!0),w(C,Oe,$e,"\u22D6","\\lessdot"),w(C,Oe,H,"\u22D8","\\lll",!0),w(C,Oe,H,"\u2276","\\lessgtr",!0),w(C,Oe,H,"\u22DA","\\lesseqgtr",!0),w(C,Oe,H,"\u2A8B","\\lesseqqgtr",!0),w(C,Oe,H,"\u2251","\\doteqdot"),w(C,Oe,H,"\u2253","\\risingdotseq",!0),w(C,Oe,H,"\u2252","\\fallingdotseq",!0),w(C,Oe,H,"\u223D","\\backsim",!0),w(C,Oe,H,"\u22CD","\\backsimeq",!0),w(C,Oe,H,"\u2AC5","\\subseteqq",!0),w(C,Oe,H,"\u22D0","\\Subset",!0),w(C,Oe,H,"\u228F","\\sqsubset",!0),w(C,Oe,H,"\u227C","\\preccurlyeq",!0),w(C,Oe,H,"\u22DE","\\curlyeqprec",!0),w(C,Oe,H,"\u227E","\\precsim",!0),w(C,Oe,H,"\u2AB7","\\precapprox",!0),w(C,Oe,H,"\u22B2","\\vartriangleleft"),w(C,Oe,H,"\u22B4","\\trianglelefteq"),w(C,Oe,H,"\u22A8","\\vDash",!0),w(C,Oe,H,"\u22AA","\\Vvdash",!0),w(C,Oe,H,"\u2323","\\smallsmile"),w(C,Oe,H,"\u2322","\\smallfrown"),w(C,Oe,H,"\u224F","\\bumpeq",!0),w(C,Oe,H,"\u224E","\\Bumpeq",!0),w(C,Oe,H,"\u2267","\\geqq",!0),w(C,Oe,H,"\u2A7E","\\geqslant",!0),w(C,Oe,H,"\u2A96","\\eqslantgtr",!0),w(C,Oe,H,"\u2273","\\gtrsim",!0),w(C,Oe,H,"\u2A86","\\gtrapprox",!0),w(C,Oe,$e,"\u22D7","\\gtrdot"),w(C,Oe,H,"\u22D9","\\ggg",!0),w(C,Oe,H,"\u2277","\\gtrless",!0),w(C,Oe,H,"\u22DB","\\gtreqless",!0),w(C,Oe,H,"\u2A8C","\\gtreqqless",!0),w(C,Oe,H,"\u2256","\\eqcirc",!0),w(C,Oe,H,"\u2257","\\circeq",!0),w(C,Oe,H,"\u225C","\\triangleq",!0),w(C,Oe,H,"\u223C","\\thicksim"),w(C,Oe,H,"\u2248","\\thickapprox"),w(C,Oe,H,"\u2AC6","\\supseteqq",!0),w(C,Oe,H,"\u22D1","\\Supset",!0),w(C,Oe,H,"\u2290","\\sqsupset",!0),w(C,Oe,H,"\u227D","\\succcurlyeq",!0),w(C,Oe,H,"\u22DF","\\curlyeqsucc",!0),w(C,Oe,H,"\u227F","\\succsim",!0),w(C,Oe,H,"\u2AB8","\\succapprox",!0),w(C,Oe,H,"\u22B3","\\vartriangleright"),w(C,Oe,H,"\u22B5","\\trianglerighteq"),w(C,Oe,H,"\u22A9","\\Vdash",!0),w(C,Oe,H,"\u2223","\\shortmid"),w(C,Oe,H,"\u2225","\\shortparallel"),w(C,Oe,H,"\u226C","\\between",!0),w(C,Oe,H,"\u22D4","\\pitchfork",!0),w(C,Oe,H,"\u221D","\\varpropto"),w(C,Oe,H,"\u25C0","\\blacktriangleleft"),w(C,Oe,H,"\u2234","\\therefore",!0),w(C,Oe,H,"\u220D","\\backepsilon"),w(C,Oe,H,"\u25B6","\\blacktriangleright"),w(C,Oe,H,"\u2235","\\because",!0),w(C,Oe,H,"\u22D8","\\llless"),w(C,Oe,H,"\u22D9","\\gggtr"),w(C,Oe,$e,"\u22B2","\\lhd"),w(C,Oe,$e,"\u22B3","\\rhd"),w(C,Oe,H,"\u2242","\\eqsim",!0),w(C,ie,H,"\u22C8","\\Join"),w(C,Oe,H,"\u2251","\\Doteq",!0),w(C,Oe,$e,"\u2214","\\dotplus",!0),w(C,Oe,$e,"\u2216","\\smallsetminus"),w(C,Oe,$e,"\u22D2","\\Cap",!0),w(C,Oe,$e,"\u22D3","\\Cup",!0),w(C,Oe,$e,"\u2A5E","\\doublebarwedge",!0),w(C,Oe,$e,"\u229F","\\boxminus",!0),w(C,Oe,$e,"\u229E","\\boxplus",!0),w(C,Oe,$e,"\u22C7","\\divideontimes",!0),w(C,Oe,$e,"\u22C9","\\ltimes",!0),w(C,Oe,$e,"\u22CA","\\rtimes",!0),w(C,Oe,$e,"\u22CB","\\leftthreetimes",!0),w(C,Oe,$e,"\u22CC","\\rightthreetimes",!0),w(C,Oe,$e,"\u22CF","\\curlywedge",!0),w(C,Oe,$e,"\u22CE","\\curlyvee",!0),w(C,Oe,$e,"\u229D","\\circleddash",!0),w(C,Oe,$e,"\u229B","\\circledast",!0),w(C,Oe,$e,"\u22C5","\\centerdot"),w(C,Oe,$e,"\u22BA","\\intercal",!0),w(C,Oe,$e,"\u22D2","\\doublecap"),w(C,Oe,$e,"\u22D3","\\doublecup"),w(C,Oe,$e,"\u22A0","\\boxtimes",!0),w(C,Oe,H,"\u21E2","\\dashrightarrow",!0),w(C,Oe,H,"\u21E0","\\dashleftarrow",!0),w(C,Oe,H,"\u21C7","\\leftleftarrows",!0),w(C,Oe,H,"\u21C6","\\leftrightarrows",!0),w(C,Oe,H,"\u21DA","\\Lleftarrow",!0),w(C,Oe,H,"\u219E","\\twoheadleftarrow",!0),w(C,Oe,H,"\u21A2","\\leftarrowtail",!0),w(C,Oe,H,"\u21AB","\\looparrowleft",!0),w(C,Oe,H,"\u21CB","\\leftrightharpoons",!0),w(C,Oe,H,"\u21B6","\\curvearrowleft",!0),w(C,Oe,H,"\u21BA","\\circlearrowleft",!0),w(C,Oe,H,"\u21B0","\\Lsh",!0),w(C,Oe,H,"\u21C8","\\upuparrows",!0),w(C,Oe,H,"\u21BF","\\upharpoonleft",!0),w(C,Oe,H,"\u21C3","\\downharpoonleft",!0),w(C,Oe,H,"\u22B8","\\multimap",!0),w(C,Oe,H,"\u21AD","\\leftrightsquigarrow",!0),w(C,Oe,H,"\u21C9","\\rightrightarrows",!0),w(C,Oe,H,"\u21C4","\\rightleftarrows",!0),w(C,Oe,H,"\u21A0","\\twoheadrightarrow",!0),w(C,Oe,H,"\u21A3","\\rightarrowtail",!0),w(C,Oe,H,"\u21AC","\\looparrowright",!0),w(C,Oe,H,"\u21B7","\\curvearrowright",!0),w(C,Oe,H,"\u21BB","\\circlearrowright",!0),w(C,Oe,H,"\u21B1","\\Rsh",!0),w(C,Oe,H,"\u21CA","\\downdownarrows",!0),w(C,Oe,H,"\u21BE","\\upharpoonright",!0),w(C,Oe,H,"\u21C2","\\downharpoonright",!0),w(C,Oe,H,"\u21DD","\\rightsquigarrow",!0),w(C,Oe,H,"\u21DD","\\leadsto"),w(C,Oe,H,"\u21DB","\\Rrightarrow",!0),w(C,Oe,H,"\u21BE","\\restriction"),w(C,ie,Ee,"\u2018","`"),w(C,ie,Ee,"$","\\$"),w(lt,ie,Ee,"$","\\$"),w(lt,ie,Ee,"$","\\textdollar"),w(C,ie,Ee,"%","\\%"),w(lt,ie,Ee,"%","\\%"),w(C,ie,Ee,"_","\\_"),w(lt,ie,Ee,"_","\\_"),w(lt,ie,Ee,"_","\\textunderscore"),w(C,ie,Ee,"\u2220","\\angle",!0),w(C,ie,Ee,"\u221E","\\infty",!0),w(C,ie,Ee,"\u2032","\\prime"),w(C,ie,Ee,"\u25B3","\\triangle"),w(C,ie,Ee,"\u0393","\\Gamma",!0),w(C,ie,Ee,"\u0394","\\Delta",!0),w(C,ie,Ee,"\u0398","\\Theta",!0),w(C,ie,Ee,"\u039B","\\Lambda",!0),w(C,ie,Ee,"\u039E","\\Xi",!0),w(C,ie,Ee,"\u03A0","\\Pi",!0),w(C,ie,Ee,"\u03A3","\\Sigma",!0),w(C,ie,Ee,"\u03A5","\\Upsilon",!0),w(C,ie,Ee,"\u03A6","\\Phi",!0),w(C,ie,Ee,"\u03A8","\\Psi",!0),w(C,ie,Ee,"\u03A9","\\Omega",!0),w(C,ie,Ee,"A","\u0391"),w(C,ie,Ee,"B","\u0392"),w(C,ie,Ee,"E","\u0395"),w(C,ie,Ee,"Z","\u0396"),w(C,ie,Ee,"H","\u0397"),w(C,ie,Ee,"I","\u0399"),w(C,ie,Ee,"K","\u039A"),w(C,ie,Ee,"M","\u039C"),w(C,ie,Ee,"N","\u039D"),w(C,ie,Ee,"O","\u039F"),w(C,ie,Ee,"P","\u03A1"),w(C,ie,Ee,"T","\u03A4"),w(C,ie,Ee,"X","\u03A7"),w(C,ie,Ee,"\xAC","\\neg",!0),w(C,ie,Ee,"\xAC","\\lnot"),w(C,ie,Ee,"\u22A4","\\top"),w(C,ie,Ee,"\u22A5","\\bot"),w(C,ie,Ee,"\u2205","\\emptyset"),w(C,Oe,Ee,"\u2205","\\varnothing"),w(C,ie,ue,"\u03B1","\\alpha",!0),w(C,ie,ue,"\u03B2","\\beta",!0),w(C,ie,ue,"\u03B3","\\gamma",!0),w(C,ie,ue,"\u03B4","\\delta",!0),w(C,ie,ue,"\u03F5","\\epsilon",!0),w(C,ie,ue,"\u03B6","\\zeta",!0),w(C,ie,ue,"\u03B7","\\eta",!0),w(C,ie,ue,"\u03B8","\\theta",!0),w(C,ie,ue,"\u03B9","\\iota",!0),w(C,ie,ue,"\u03BA","\\kappa",!0),w(C,ie,ue,"\u03BB","\\lambda",!0),w(C,ie,ue,"\u03BC","\\mu",!0),w(C,ie,ue,"\u03BD","\\nu",!0),w(C,ie,ue,"\u03BE","\\xi",!0),w(C,ie,ue,"\u03BF","\\omicron",!0),w(C,ie,ue,"\u03C0","\\pi",!0),w(C,ie,ue,"\u03C1","\\rho",!0),w(C,ie,ue,"\u03C3","\\sigma",!0),w(C,ie,ue,"\u03C4","\\tau",!0),w(C,ie,ue,"\u03C5","\\upsilon",!0),w(C,ie,ue,"\u03D5","\\phi",!0),w(C,ie,ue,"\u03C7","\\chi",!0),w(C,ie,ue,"\u03C8","\\psi",!0),w(C,ie,ue,"\u03C9","\\omega",!0),w(C,ie,ue,"\u03B5","\\varepsilon",!0),w(C,ie,ue,"\u03D1","\\vartheta",!0),w(C,ie,ue,"\u03D6","\\varpi",!0),w(C,ie,ue,"\u03F1","\\varrho",!0),w(C,ie,ue,"\u03C2","\\varsigma",!0),w(C,ie,ue,"\u03C6","\\varphi",!0),w(C,ie,$e,"\u2217","*"),w(C,ie,$e,"+","+"),w(C,ie,$e,"\u2212","-"),w(C,ie,$e,"\u22C5","\\cdot",!0),w(C,ie,$e,"\u2218","\\circ"),w(C,ie,$e,"\xF7","\\div",!0),w(C,ie,$e,"\xB1","\\pm",!0),w(C,ie,$e,"\xD7","\\times",!0),w(C,ie,$e,"\u2229","\\cap",!0),w(C,ie,$e,"\u222A","\\cup",!0),w(C,ie,$e,"\u2216","\\setminus"),w(C,ie,$e,"\u2227","\\land"),w(C,ie,$e,"\u2228","\\lor"),w(C,ie,$e,"\u2227","\\wedge",!0),w(C,ie,$e,"\u2228","\\vee",!0),w(C,ie,Ee,"\u221A","\\surd"),w(C,ie,we,"(","("),w(C,ie,we,"[","["),w(C,ie,we,"\u27E8","\\langle",!0),w(C,ie,we,"\u2223","\\lvert"),w(C,ie,we,"\u2225","\\lVert"),w(C,ie,Ze,")",")"),w(C,ie,Ze,"]","]"),w(C,ie,Ze,"?","?"),w(C,ie,Ze,"!","!"),w(C,ie,Ze,"\u27E9","\\rangle",!0),w(C,ie,Ze,"\u2223","\\rvert"),w(C,ie,Ze,"\u2225","\\rVert"),w(C,ie,H,"=","="),w(C,ie,H,"<","<"),w(C,ie,H,">",">"),w(C,ie,H,":",":"),w(C,ie,H,"\u2248","\\approx",!0),w(C,ie,H,"\u2245","\\cong",!0),w(C,ie,H,"\u2265","\\ge"),w(C,ie,H,"\u2265","\\geq",!0),w(C,ie,H,"\u2190","\\gets"),w(C,ie,H,">","\\gt"),w(C,ie,H,"\u2208","\\in",!0),w(C,ie,H,"\uE020","\\@not"),w(C,ie,H,"\u2282","\\subset",!0),w(C,ie,H,"\u2283","\\supset",!0),w(C,ie,H,"\u2286","\\subseteq",!0),w(C,ie,H,"\u2287","\\supseteq",!0),w(C,Oe,H,"\u2288","\\nsubseteq",!0),w(C,Oe,H,"\u2289","\\nsupseteq",!0),w(C,ie,H,"\u22A8","\\models"),w(C,ie,H,"\u2190","\\leftarrow",!0),w(C,ie,H,"\u2264","\\le"),w(C,ie,H,"\u2264","\\leq",!0),w(C,ie,H,"<","\\lt"),w(C,ie,H,"\u2192","\\rightarrow",!0),w(C,ie,H,"\u2192","\\to"),w(C,Oe,H,"\u2271","\\ngeq",!0),w(C,Oe,H,"\u2270","\\nleq",!0),w(C,ie,it,"\xA0","\\ "),w(C,ie,it,"\xA0","~"),w(C,ie,it,"\xA0","\\space"),w(C,ie,it,"\xA0","\\nobreakspace"),w(lt,ie,it,"\xA0","\\ "),w(lt,ie,it,"\xA0","~"),w(lt,ie,it,"\xA0","\\space"),w(lt,ie,it,"\xA0","\\nobreakspace"),w(C,ie,it,null,"\\nobreak"),w(C,ie,it,null,"\\allowbreak"),w(C,ie,Ne,",",","),w(C,ie,Ne,";",";"),w(C,Oe,$e,"\u22BC","\\barwedge",!0),w(C,Oe,$e,"\u22BB","\\veebar",!0),w(C,ie,$e,"\u2299","\\odot",!0),w(C,ie,$e,"\u2295","\\oplus",!0),w(C,ie,$e,"\u2297","\\otimes",!0),w(C,ie,Ee,"\u2202","\\partial",!0),w(C,ie,$e,"\u2298","\\oslash",!0),w(C,Oe,$e,"\u229A","\\circledcirc",!0),w(C,Oe,$e,"\u22A1","\\boxdot",!0),w(C,ie,$e,"\u25B3","\\bigtriangleup"),w(C,ie,$e,"\u25BD","\\bigtriangledown"),w(C,ie,$e,"\u2020","\\dagger"),w(C,ie,$e,"\u22C4","\\diamond"),w(C,ie,$e,"\u22C6","\\star"),w(C,ie,$e,"\u25C3","\\triangleleft"),w(C,ie,$e,"\u25B9","\\triangleright"),w(C,ie,we,"{","\\{"),w(lt,ie,Ee,"{","\\{"),w(lt,ie,Ee,"{","\\textbraceleft"),w(C,ie,Ze,"}","\\}"),w(lt,ie,Ee,"}","\\}"),w(lt,ie,Ee,"}","\\textbraceright"),w(C,ie,we,"{","\\lbrace"),w(C,ie,Ze,"}","\\rbrace"),w(C,ie,we,"[","\\lbrack"),w(lt,ie,Ee,"[","\\lbrack"),w(C,ie,Ze,"]","\\rbrack"),w(lt,ie,Ee,"]","\\rbrack"),w(C,ie,we,"(","\\lparen"),w(C,ie,Ze,")","\\rparen"),w(lt,ie,Ee,"<","\\textless"),w(lt,ie,Ee,">","\\textgreater"),w(C,ie,we,"\u230A","\\lfloor",!0),w(C,ie,Ze,"\u230B","\\rfloor",!0),w(C,ie,we,"\u2308","\\lceil",!0),w(C,ie,Ze,"\u2309","\\rceil",!0),w(C,ie,Ee,"\\","\\backslash"),w(C,ie,Ee,"\u2223","|"),w(C,ie,Ee,"\u2223","\\vert"),w(lt,ie,Ee,"|","\\textbar"),w(C,ie,Ee,"\u2225","\\|"),w(C,ie,Ee,"\u2225","\\Vert"),w(lt,ie,Ee,"\u2225","\\textbardbl"),w(lt,ie,Ee,"~","\\textasciitilde"),w(lt,ie,Ee,"\\","\\textbackslash"),w(lt,ie,Ee,"^","\\textasciicircum"),w(C,ie,H,"\u2191","\\uparrow",!0),w(C,ie,H,"\u21D1","\\Uparrow",!0),w(C,ie,H,"\u2193","\\downarrow",!0),w(C,ie,H,"\u21D3","\\Downarrow",!0),w(C,ie,H,"\u2195","\\updownarrow",!0),w(C,ie,H,"\u21D5","\\Updownarrow",!0),w(C,ie,V,"\u2210","\\coprod"),w(C,ie,V,"\u22C1","\\bigvee"),w(C,ie,V,"\u22C0","\\bigwedge"),w(C,ie,V,"\u2A04","\\biguplus"),w(C,ie,V,"\u22C2","\\bigcap"),w(C,ie,V,"\u22C3","\\bigcup"),w(C,ie,V,"\u222B","\\int"),w(C,ie,V,"\u222B","\\intop"),w(C,ie,V,"\u222C","\\iint"),w(C,ie,V,"\u222D","\\iiint"),w(C,ie,V,"\u220F","\\prod"),w(C,ie,V,"\u2211","\\sum"),w(C,ie,V,"\u2A02","\\bigotimes"),w(C,ie,V,"\u2A01","\\bigoplus"),w(C,ie,V,"\u2A00","\\bigodot"),w(C,ie,V,"\u222E","\\oint"),w(C,ie,V,"\u222F","\\oiint"),w(C,ie,V,"\u2230","\\oiiint"),w(C,ie,V,"\u2A06","\\bigsqcup"),w(C,ie,V,"\u222B","\\smallint"),w(lt,ie,tt,"\u2026","\\textellipsis"),w(C,ie,tt,"\u2026","\\mathellipsis"),w(lt,ie,tt,"\u2026","\\ldots",!0),w(C,ie,tt,"\u2026","\\ldots",!0),w(C,ie,tt,"\u22EF","\\@cdots",!0),w(C,ie,tt,"\u22F1","\\ddots",!0),w(C,ie,Ee,"\u22EE","\\varvdots"),w(C,ie,mn,"\u02CA","\\acute"),w(C,ie,mn,"\u02CB","\\grave"),w(C,ie,mn,"\xA8","\\ddot"),w(C,ie,mn,"~","\\tilde"),w(C,ie,mn,"\u02C9","\\bar"),w(C,ie,mn,"\u02D8","\\breve"),w(C,ie,mn,"\u02C7","\\check"),w(C,ie,mn,"^","\\hat"),w(C,ie,mn,"\u20D7","\\vec"),w(C,ie,mn,"\u02D9","\\dot"),w(C,ie,mn,"\u02DA","\\mathring"),w(C,ie,ue,"\u0131","\\imath",!0),w(C,ie,ue,"\u0237","\\jmath",!0),w(lt,ie,Ee,"\u0131","\\i",!0),w(lt,ie,Ee,"\u0237","\\j",!0),w(lt,ie,Ee,"\xDF","\\ss",!0),w(lt,ie,Ee,"\xE6","\\ae",!0),w(lt,ie,Ee,"\xE6","\\ae",!0),w(lt,ie,Ee,"\u0153","\\oe",!0),w(lt,ie,Ee,"\xF8","\\o",!0),w(lt,ie,Ee,"\xC6","\\AE",!0),w(lt,ie,Ee,"\u0152","\\OE",!0),w(lt,ie,Ee,"\xD8","\\O",!0),w(lt,ie,mn,"\u02CA","\\'"),w(lt,ie,mn,"\u02CB","\\`"),w(lt,ie,mn,"\u02C6","\\^"),w(lt,ie,mn,"\u02DC","\\~"),w(lt,ie,mn,"\u02C9","\\="),w(lt,ie,mn,"\u02D8","\\u"),w(lt,ie,mn,"\u02D9","\\."),w(lt,ie,mn,"\u02DA","\\r"),w(lt,ie,mn,"\u02C7","\\v"),w(lt,ie,mn,"\xA8",'\\"'),w(lt,ie,mn,"\u02DD","\\H"),w(lt,ie,mn,"\u25EF","\\textcircled");var Tt={"--":!0,"---":!0,"``":!0,"''":!0};w(lt,ie,Ee,"\u2013","--"),w(lt,ie,Ee,"\u2013","\\textendash"),w(lt,ie,Ee,"\u2014","---"),w(lt,ie,Ee,"\u2014","\\textemdash"),w(lt,ie,Ee,"\u2018","`"),w(lt,ie,Ee,"\u2018","\\textquoteleft"),w(lt,ie,Ee,"\u2019","'"),w(lt,ie,Ee,"\u2019","\\textquoteright"),w(lt,ie,Ee,"\u201C","``"),w(lt,ie,Ee,"\u201C","\\textquotedblleft"),w(lt,ie,Ee,"\u201D","''"),w(lt,ie,Ee,"\u201D","\\textquotedblright"),w(C,ie,Ee,"\xB0","\\degree",!0),w(lt,ie,Ee,"\xB0","\\degree"),w(lt,ie,Ee,"\xB0","\\textdegree",!0),w(C,ie,ue,"\xA3","\\pounds"),w(C,ie,ue,"\xA3","\\mathsterling",!0),w(lt,ie,ue,"\xA3","\\pounds"),w(lt,ie,ue,"\xA3","\\textsterling",!0),w(C,Oe,Ee,"\u2720","\\maltese"),w(lt,Oe,Ee,"\u2720","\\maltese"),w(lt,ie,it,"\xA0","\\ "),w(lt,ie,it,"\xA0"," "),w(lt,ie,it,"\xA0","~");for(var Mt='0123456789/@."',Ut=0;Ut<Mt.length;Ut++){var dn=Mt.charAt(Ut);w(C,ie,Ee,dn,dn)}for(var wt='0123456789!@*()-=+[]<>|";:?/.,',Yt=0;Yt<wt.length;Yt++){var Ue=wt.charAt(Yt);w(lt,ie,Ee,Ue,Ue)}for(var mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",xt=0;xt<mt.length;xt++){var Me=mt.charAt(xt);w(C,ie,ue,Me,Me),w(lt,ie,Ee,Me,Me)}w(C,Oe,Ee,"C","\u2102"),w(lt,Oe,Ee,"C","\u2102"),w(C,Oe,Ee,"H","\u210D"),w(lt,Oe,Ee,"H","\u210D"),w(C,Oe,Ee,"N","\u2115"),w(lt,Oe,Ee,"N","\u2115"),w(C,Oe,Ee,"P","\u2119"),w(lt,Oe,Ee,"P","\u2119"),w(C,Oe,Ee,"Q","\u211A"),w(lt,Oe,Ee,"Q","\u211A"),w(C,Oe,Ee,"R","\u211D"),w(lt,Oe,Ee,"R","\u211D"),w(C,Oe,Ee,"Z","\u2124"),w(lt,Oe,Ee,"Z","\u2124"),w(C,ie,ue,"h","\u210E"),w(lt,ie,ue,"h","\u210E");for(var Te="",st=0;st<mt.length;st++){var ct=mt.charAt(st);Te=String.fromCharCode(55349,56320+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56372+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56424+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56580+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56736+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56788+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56840+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56944+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),st<26&&(Te=String.fromCharCode(55349,56632+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te),Te=String.fromCharCode(55349,56476+st),w(C,ie,ue,ct,Te),w(lt,ie,Ee,ct,Te))}Te="\u{1D55C}",w(C,ie,ue,"k",Te),w(lt,ie,Ee,"k",Te);for(var kt=0;kt<10;kt++){var Ot=kt.toString();Te=String.fromCharCode(55349,57294+kt),w(C,ie,ue,Ot,Te),w(lt,ie,Ee,Ot,Te),Te=String.fromCharCode(55349,57314+kt),w(C,ie,ue,Ot,Te),w(lt,ie,Ee,Ot,Te),Te=String.fromCharCode(55349,57324+kt),w(C,ie,ue,Ot,Te),w(lt,ie,Ee,Ot,Te),Te=String.fromCharCode(55349,57334+kt),w(C,ie,ue,Ot,Te),w(lt,ie,Ee,Ot,Te)}for(var $t="\xC7\xD0\xDE\xE7\xFE",Bt=0;Bt<$t.length;Bt++){var Xt=$t.charAt(Bt);w(C,ie,ue,Xt,Xt),w(lt,ie,Ee,Xt,Xt)}w(lt,ie,Ee,"\xF0","\xF0"),w(lt,ie,Ee,"\u2013","\u2013"),w(lt,ie,Ee,"\u2014","\u2014"),w(lt,ie,Ee,"\u2018","\u2018"),w(lt,ie,Ee,"\u2019","\u2019"),w(lt,ie,Ee,"\u201C","\u201C"),w(lt,ie,Ee,"\u201D","\u201D");var hn=[["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"]],Dt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],yt=function(l,d){var f=l.charCodeAt(0),m=l.charCodeAt(1),I=(f-55296)*1024+(m-56320)+65536,ee=d==="math"?0:1;if(119808<=I&&I<120484){var Le=Math.floor((I-119808)/26);return[hn[Le][2],hn[Le][ee]]}else if(120782<=I&&I<=120831){var Be=Math.floor((I-120782)/10);return[Dt[Be][2],Dt[Be][ee]]}else{if(I===120485||I===120486)return[hn[0][2],hn[0][ee]];if(120486<I&&I<120782)return["",""];throw new X("Unsupported character: "+l)}},Ht=[[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]],zt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Gt=function(l,d){return d.size<2?l:Ht[l-1][d.size-1]},sn=function(){function te(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||te.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=zt[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=te.prototype;return l.extend=function(f){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 I in f)f.hasOwnProperty(I)&&(m[I]=f[I]);return new te(m)},l.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:Gt(this.textSize,f)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:zt[f-1]})},l.havingBaseStyle=function(f){f=f||this.style.text();var m=Gt(te.BASESIZE,f);return this.size===m&&this.textSize===te.BASESIZE&&this.style===f?this:this.extend({style:f,size:m})},l.havingBaseSizing=function(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})},l.withColor=function(f){return this.extend({color:f})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(f){return this.extend({font:f})},l.withTextFontFamily=function(f){return this.extend({fontFamily:f,font:""})},l.withTextFontWeight=function(f){return this.extend({fontWeight:f,font:""})},l.withTextFontShape=function(f){return this.extend({fontShape:f,font:""})},l.sizingClasses=function(f){return f.size!==this.size?["sizing","reset-size"+f.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==te.BASESIZE?["sizing","reset-size"+this.size,"size"+te.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=ut(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},te}();sn.BASESIZE=6;var Rn=sn,pn={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},Ft={ex:!0,em:!0,mu:!0},Je=function(l){return typeof l!="string"&&(l=l.unit),l in pn||l in Ft||l==="ex"},nt=function(l,d){var f;if(l.unit in pn)f=pn[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")f=d.fontMetrics().cssEmPerMu;else{var m;if(d.style.isTight()?m=d.havingStyle(d.style.text()):m=d,l.unit==="ex")f=m.fontMetrics().xHeight;else if(l.unit==="em")f=m.fontMetrics().quad;else throw new X("Invalid unit: '"+l.unit+"'");m!==d&&(f*=m.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*f,d.maxSize)},vt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],bt=function(l,d,f){return Lt[f][l]&&Lt[f][l].replace&&(l=Lt[f][l].replace),{value:l,metrics:et(l,d,f)}},ft=function(l,d,f,m,I){var ee=bt(l,d,f),Le=ee.metrics;l=ee.value;var Be;if(Le){var Ve=Le.italic;(f==="text"||m&&m.font==="mathit")&&(Ve=0),Be=new oe(l,Le.height,Le.depth,Ve,Le.skew,Le.width,I)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+f+"'")),Be=new oe(l,0,0,0,0,0,I);if(m){Be.maxFontSize=m.sizeMultiplier,m.style.isTight()&&Be.classes.push("mtight");var gt=m.getColor();gt&&(Be.style.color=gt)}return Be},It=function(l,d,f,m){return m===void 0&&(m=[]),f.font==="boldsymbol"&&bt(l,"Main-Bold",d).metrics?ft(l,"Main-Bold",d,f,m.concat(["mathbf"])):l==="\\"||Lt[d][l].font==="main"?ft(l,"Main-Regular",d,f,m):ft(l,"AMS-Regular",d,f,m.concat(["amsrm"]))},_t=function(l,d,f,m){return/[0-9]/.test(l.charAt(0))||P.contains(vt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},jt=function(l,d,f,m){return P.contains(vt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},an=function(l,d,f,m){return bt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},nn=function(l,d,f){var m=l.mode,I=l.text,ee=["mord"],Le=m==="math"||m==="text"&&d.font,Be=Le?d.font:d.fontFamily;if(I.charCodeAt(0)===55349){var Ve=yt(I,m),gt=Ve[0],Rt=Ve[1];return ft(I,gt,m,d,ee.concat(Rt))}else if(Be){var Zt,gn;if(Be==="boldsymbol"||Be==="mathnormal"){var wn=Be==="boldsymbol"?an(I,m,d,ee):jt(I,m,d,ee);Zt=wn.fontName,gn=[wn.fontClass]}else P.contains(vt,I)?(Zt="Main-Italic",gn=["mathit"]):Le?(Zt=or[Be].fontName,gn=[Be]):(Zt=Yn(Be,d.fontWeight,d.fontShape),gn=[Be,d.fontWeight,d.fontShape]);if(bt(I,Zt,m).metrics)return ft(I,Zt,m,d,ee.concat(gn));if(Tt.hasOwnProperty(I)&&Zt.substr(0,10)==="Typewriter"){for(var Kn=[],er=0;er<I.length;er++)Kn.push(ft(I[er],Zt,m,d,ee.concat(gn)));return Wn(Kn)}}if(f==="mathord"){var _r=_t(I,m,d,ee);return ft(I,_r.fontName,m,d,ee.concat([_r.fontClass]))}else if(f==="textord"){var Er=Lt[m][I]&&Lt[m][I].font;if(Er==="ams"){var xr=Yn("amsrm",d.fontWeight,d.fontShape);return ft(I,xr,m,d,ee.concat("amsrm",d.fontWeight,d.fontShape))}else if(Er==="main"||!Er){var Xr=Yn("textrm",d.fontWeight,d.fontShape);return ft(I,Xr,m,d,ee.concat(d.fontWeight,d.fontShape))}else{var Qr=Yn(Er,d.fontWeight,d.fontShape);return ft(I,Qr,m,d,ee.concat(Qr,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},Sn=function(l,d){if(at(l.classes)!==at(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var f in l.style)if(l.style.hasOwnProperty(f)&&l.style[f]!==d.style[f])return!1;for(var m in d.style)if(d.style.hasOwnProperty(m)&&l.style[m]!==d.style[m])return!1;return!0},Ln=function(l){for(var d=0;d<l.length-1;d++){var f=l[d],m=l[d+1];f instanceof oe&&m instanceof oe&&Sn(f,m)&&(f.text+=m.text,f.height=Math.max(f.height,m.height),f.depth=Math.max(f.depth,m.depth),f.italic=m.italic,l.splice(d+1,1),d--)}return l},Fn=function(l){for(var d=0,f=0,m=0,I=0;I<l.children.length;I++){var ee=l.children[I];ee.height>d&&(d=ee.height),ee.depth>f&&(f=ee.depth),ee.maxFontSize>m&&(m=ee.maxFontSize)}l.height=d,l.depth=f,l.maxFontSize=m},cn=function(l,d,f,m){var I=new ne(l,d,f,m);return Fn(I),I},rn=function(l,d,f,m){return new ne(l,d,f,m)},$n=function(l,d,f){var m=cn([l],[],d);return m.height=Math.max(f||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),m.style.borderBottomWidth=m.height+"em",m.maxFontSize=1,m},An=function(l,d,f,m){var I=new z(l,d,f,m);return Fn(I),I},Wn=function(l){var d=new Kt(l);return Fn(d),d},Cn=function(l,d){return l instanceof Kt?cn([],[l],d):l},Nn=function(l){if(l.positionType==="individualShift"){for(var d=l.children,f=[d[0]],m=-d[0].shift-d[0].elem.depth,I=m,ee=1;ee<d.length;ee++){var Le=-d[ee].shift-I-d[ee].elem.depth,Be=Le-(d[ee-1].elem.height+d[ee-1].elem.depth);I=I+Le,f.push({type:"kern",size:Be}),f.push(d[ee])}return{children:f,depth:m}}var Ve;if(l.positionType==="top"){for(var gt=l.positionData,Rt=0;Rt<l.children.length;Rt++){var Zt=l.children[Rt];gt-=Zt.type==="kern"?Zt.size:Zt.elem.height+Zt.elem.depth}Ve=gt}else if(l.positionType==="bottom")Ve=-l.positionData;else{var gn=l.children[0];if(gn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Ve=-gn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Ve=-gn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Ve}},zn=function(l,d){for(var f=Nn(l),m=f.children,I=f.depth,ee=0,Le=0;Le<m.length;Le++){var Be=m[Le];if(Be.type==="elem"){var Ve=Be.elem;ee=Math.max(ee,Ve.maxFontSize,Ve.height)}}ee+=2;var gt=cn(["pstrut"],[]);gt.style.height=ee+"em";for(var Rt=[],Zt=I,gn=I,wn=I,Kn=0;Kn<m.length;Kn++){var er=m[Kn];if(er.type==="kern")wn+=er.size;else{var _r=er.elem,Er=er.wrapperClasses||[],xr=er.wrapperStyle||{},Xr=cn(Er,[gt,_r],void 0,xr);Xr.style.top=-ee-wn-_r.depth+"em",er.marginLeft&&(Xr.style.marginLeft=er.marginLeft),er.marginRight&&(Xr.style.marginRight=er.marginRight),Rt.push(Xr),wn+=_r.height+_r.depth}Zt=Math.min(Zt,wn),gn=Math.max(gn,wn)}var Qr=cn(["vlist"],Rt);Qr.style.height=gn+"em";var ri;if(Zt<0){var ai=cn([],[]),di=cn(["vlist"],[ai]);di.style.height=-Zt+"em";var Ii=cn(["vlist-s"],[new oe("\u200B")]);ri=[cn(["vlist-r"],[Qr,Ii]),cn(["vlist-r"],[di])]}else ri=[cn(["vlist-r"],[Qr])];var Ti=cn(["vlist-t"],ri);return ri.length===2&&Ti.classes.push("vlist-t2"),Ti.height=gn,Ti.depth=-Zt,Ti},Pn=function(l,d){var f=cn(["mspace"],[],d),m=nt(l,d);return f.style.marginRight=m+"em",f},Yn=function(l,d,f){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 I;return d==="textbf"&&f==="textit"?I="BoldItalic":d==="textbf"?I="Bold":d==="textit"?I="Italic":I="Regular",m+"-"+I},or={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"}},Tn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},tn=function(l,d){var f=Tn[l],m=f[0],I=f[1],ee=f[2],Le=new le(m),Be=new Q([Le],{width:I+"em",height:ee+"em",style:"width:"+I+"em",viewBox:"0 0 "+1e3*I+" "+1e3*ee,preserveAspectRatio:"xMinYMin"}),Ve=rn(["overlay"],[Be],d);return Ve.height=ee,Ve.style.height=ee+"em",Ve.style.width=I+"em",Ve},Ke={fontMap:or,makeSymbol:ft,mathsym:It,makeSpan:cn,makeSvgSpan:rn,makeLineSpan:$n,makeAnchor:An,makeFragment:Wn,wrapFragment:Cn,makeVList:zn,makeOrd:nn,makeGlue:Pn,staticSvg:tn,svgData:Tn,tryCombineChars:Ln};function un(te,l){var d=On(te,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(te?"node of type "+te.type:String(te)));return d}function On(te,l){return te&&te.type===l?te:null}function Hn(te,l){var d=Gn(te,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(te?te.type==="atom"?"atom of family "+te.family:"node of type "+te.type:String(te)));return d}function Gn(te,l){return te&&te.type==="atom"&&te.family===l?te:null}function nr(te){var l=rr(te);if(!l)throw new Error("Expected node of symbol group type, but got "+(te?"node of type "+te.type:String(te)));return l}function rr(te){return te&&(te.type==="atom"||ot.hasOwnProperty(te.type))?te:null}var Un={number:3,unit:"mu"},qn={number:4,unit:"mu"},yn={number:5,unit:"mu"},ln={mord:{mop:Un,mbin:qn,mrel:yn,minner:Un},mop:{mord:Un,mop:Un,mrel:yn,minner:Un},mbin:{mord:qn,mop:qn,mopen:qn,minner:qn},mrel:{mord:yn,mop:yn,mopen:yn,minner:yn},mopen:{},mclose:{mop:Un,mbin:qn,mrel:yn,minner:Un},mpunct:{mord:Un,mop:Un,mrel:yn,mopen:Un,mclose:Un,mpunct:Un,minner:Un},minner:{mord:Un,mop:Un,mbin:qn,mrel:yn,mopen:Un,mpunct:Un,minner:Un}},Bn={mord:{mop:Un},mop:{mord:Un,mop:Un},mbin:{},mrel:{},mopen:{},mclose:{mop:Un},mpunct:{},minner:{mop:Un}},tr={},lr={},kr={};function En(te){for(var l=te.type,d=te.names,f=te.props,m=te.handler,I=te.htmlBuilder,ee=te.mathmlBuilder,Le={type:l,numArgs:f.numArgs,argTypes:f.argTypes,greediness:f.greediness===void 0?1:f.greediness,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,handler:m},Be=0;Be<d.length;++Be)tr[d[Be]]=Le;l&&(I&&(lr[l]=I),ee&&(kr[l]=ee))}function hr(te){var l=te.type,d=te.htmlBuilder,f=te.mathmlBuilder;En({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:f})}var dr=function(l){var d=On(l,"ordgroup");return d?d.body:[l]},mr=Ke.makeSpan,Fr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Ur=["rightmost","mrel","mclose","mpunct"],br={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},Dr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},gr=function(l,d,f,m){m===void 0&&(m=[null,null]);for(var I=[],ee=0;ee<l.length;ee++){var Le=ar(l[ee],d);if(Le instanceof Kt){var Be=Le.children;I.push.apply(I,Be)}else I.push(Le)}if(!f)return I;var Ve=d;if(l.length===1){var gt=On(l[0],"sizing")||On(l[0],"styling");gt&&(gt.type==="sizing"?Ve=d.havingSize(gt.size):gt.type==="styling"&&(Ve=d.havingStyle(br[gt.style])))}var Rt=mr([m[0]||"leftmost"],[],d),Zt=mr([m[1]||"rightmost"],[],d);return jr(I,function(gn,wn){var Kn=wn.classes[0],er=gn.classes[0];Kn==="mbin"&&P.contains(Ur,er)?wn.classes[0]="mord":er==="mbin"&&P.contains(Fr,Kn)&&(gn.classes[0]="mord")},{node:Rt},Zt),jr(I,function(gn,wn){var Kn=Br(wn),er=Br(gn),_r=Kn&&er?gn.hasClass("mtight")?Bn[Kn][er]:ln[Kn][er]:null;if(_r)return Ke.makeGlue(_r,Ve)},{node:Rt},Zt),I},jr=function te(l,d,f,m){m&&l.push(m);for(var I=0;I<l.length;I++){var ee=l[I],Le=Vr(ee);if(Le){te(Le.children,d,f);continue}if(ee.classes[0]!=="mspace"){var Be=d(ee,f.node);Be&&(f.insertAfter?f.insertAfter(Be):(l.unshift(Be),I++)),f.node=ee,f.insertAfter=function(Ve){return function(gt){l.splice(Ve+1,0,gt),I++}}(I)}}m&&l.pop()},Vr=function(l){return l instanceof Kt||l instanceof z?l:null},ii=function te(l,d){var f=Vr(l);if(f){var m=f.children;if(m.length){if(d==="right")return te(m[m.length-1],"right");if(d==="left")return te(m[0],"left")}}return l},Br=function(l,d){return l?(d&&(l=ii(l,d)),Dr[l.classes[0]]||null):null},ti=function(l,d){var f=["nulldelimiter"].concat(l.baseSizingClasses());return mr(d.concat(f))},ar=function(l,d,f){if(!l)return mr();if(lr[l.type]){var m=lr[l.type](l,d);if(f&&d.size!==f.size){m=mr(d.sizingClasses(f),[m],d);var I=d.sizeMultiplier/f.sizeMultiplier;m.height*=I,m.depth*=I}return m}else throw new X("Got group of unknown type: '"+l.type+"'")};function si(te,l){var d=mr(["base"],te,l),f=mr(["strut"]);return f.style.height=d.height+d.depth+"em",f.style.verticalAlign=-d.depth+"em",d.children.unshift(f),d}function vi(te,l){var d=null;te.length===1&&te[0].type==="tag"&&(d=te[0].tag,te=te[0].body);for(var f=gr(te,l,!0),m=[],I=[],ee=0;ee<f.length;ee++)if(I.push(f[ee]),f[ee].hasClass("mbin")||f[ee].hasClass("mrel")||f[ee].hasClass("allowbreak")){for(var Le=!1;ee<f.length-1&&f[ee+1].hasClass("mspace")&&!f[ee+1].hasClass("newline");)ee++,I.push(f[ee]),f[ee].hasClass("nobreak")&&(Le=!0);Le||(m.push(si(I,l)),I=[])}else f[ee].hasClass("newline")&&(I.pop(),I.length>0&&(m.push(si(I,l)),I=[]),m.push(f[ee]));I.length>0&&m.push(si(I,l));var Be;d&&(Be=si(gr(d,l,!0)),Be.classes=["tag"],m.push(Be));var Ve=mr(["katex-html"],m);if(Ve.setAttribute("aria-hidden","true"),Be){var gt=Be.children[0];gt.style.height=Ve.height+Ve.depth+"em",gt.style.verticalAlign=-Ve.depth+"em"}return Ve}function fi(te){return new Kt(te)}var Lr=function(){function te(d,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=f||[]}var l=te.prototype;return l.setAttribute=function(f,m){this.attributes[f]=m},l.getAttribute=function(f){return this.attributes[f]},l.toNode=function(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&f.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)f.appendChild(this.children[I].toNode());return f},l.toMarkup=function(){var f="<"+this.type;for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(f+=" "+m+'="',f+=P.escape(this.attributes[m]),f+='"');f+=">";for(var I=0;I<this.children.length;I++)f+=this.children[I].toMarkup();return f+="</"+this.type+">",f},l.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},te}(),hi=function(){function te(d){this.text=void 0,this.text=d}var l=te.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return P.escape(this.toText())},l.toText=function(){return this.text},te}(),pr=function(){function te(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=te.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",this.width+"em"),f},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},te}(),Wt={MathNode:Lr,TextNode:hi,SpaceNode:pr,newDocumentFragment:fi},sr=function(l,d,f){return Lt[d][l]&&Lt[d][l].replace&&l.charCodeAt(0)!==55349&&!(Tt.hasOwnProperty(l)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(l=Lt[d][l].replace),new Wt.TextNode(l)},vr=function(l){return l.length===1?l[0]:new Wt.MathNode("mrow",l)},Dn=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 f=d.font;if(!f||f==="mathnormal")return null;var m=l.mode;if(f==="mathit")return"italic";if(f==="boldsymbol")return"bold-italic";if(f==="mathbf")return"bold";if(f==="mathbb")return"double-struck";if(f==="mathfrak")return"fraktur";if(f==="mathscr"||f==="mathcal")return"script";if(f==="mathsf")return"sans-serif";if(f==="mathtt")return"monospace";var I=l.text;if(P.contains(["\\imath","\\jmath"],I))return null;Lt[m][I]&&Lt[m][I].replace&&(I=Lt[m][I].replace);var ee=Ke.fontMap[f].fontName;return et(I,ee,m)?Ke.fontMap[f].variant:null},Mn=function(l,d,f){if(l.length===1){var m=bn(l[0],d);return f&&m instanceof Lr&&m.type==="mo"&&(m.setAttribute("lspace","0em"),m.setAttribute("rspace","0em")),[m]}for(var I=[],ee,Le=0;Le<l.length;Le++){var Be=bn(l[Le],d);if(Be instanceof Lr&&ee instanceof Lr){if(Be.type==="mtext"&&ee.type==="mtext"&&Be.getAttribute("mathvariant")===ee.getAttribute("mathvariant")){var Ve;(Ve=ee.children).push.apply(Ve,Be.children);continue}else if(Be.type==="mn"&&ee.type==="mn"){var gt;(gt=ee.children).push.apply(gt,Be.children);continue}else if(Be.type==="mi"&&Be.children.length===1&&ee.type==="mn"){var Rt=Be.children[0];if(Rt instanceof hi&&Rt.text==="."){var Zt;(Zt=ee.children).push.apply(Zt,Be.children);continue}}else if(ee.type==="mi"&&ee.children.length===1){var gn=ee.children[0];if(gn instanceof hi&&gn.text==="\u0338"&&(Be.type==="mo"||Be.type==="mi"||Be.type==="mn")){var wn=Be.children[0];wn instanceof hi&&wn.text.length>0&&(wn.text=wn.text.slice(0,1)+"\u0338"+wn.text.slice(1),I.pop())}}}I.push(Be),ee=Be}return I},xn=function(l,d,f){return vr(Mn(l,d,f))},bn=function(l,d){if(!l)return new Wt.MathNode("mrow");if(kr[l.type]){var f=kr[l.type](l,d);return f}else throw new X("Got group of unknown type: '"+l.type+"'")};function Xn(te,l,d,f){var m=Mn(te,d),I;m.length===1&&m[0]instanceof Lr&&P.contains(["mrow","mtable"],m[0].type)?I=m[0]:I=new Wt.MathNode("mrow",m);var ee=new Wt.MathNode("annotation",[new Wt.TextNode(l)]);ee.setAttribute("encoding","application/x-tex");var Le=new Wt.MathNode("semantics",[I,ee]),Be=new Wt.MathNode("math",[Le]);Be.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Ve=f?"katex":"katex-mathml";return Ke.makeSpan([Ve],[Be])}var ur=function(l){return new Rn({style:l.displayMode?g.DISPLAY:g.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Pr=function(l,d){if(d.displayMode){var f=["katex-display"];d.leqno&&f.push("leqno"),d.fleqn&&f.push("fleqn"),l=Ke.makeSpan(f,[l])}return l},Tr=function(l,d,f){var m=ur(f),I;if(f.output==="mathml")return Xn(l,d,m,!0);if(f.output==="html"){var ee=vi(l,m);I=Ke.makeSpan(["katex"],[ee])}else{var Le=Xn(l,d,m,!1),Be=vi(l,m);I=Ke.makeSpan(["katex"],[Le,Be])}return Pr(I,f)},Rr=function(l,d,f){var m=ur(f),I=vi(l,m),ee=Ke.makeSpan(["katex"],[I]);return Pr(ee,f)},Mr=Tr,ui={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"},Yr=function(l){var d=new Wt.MathNode("mo",[new Wt.TextNode(ui[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},pi={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]},Bi=function(l){return l.type==="ordgroup"?l.body.length:1},bi=function(l,d){function f(){var Be=4e5,Ve=l.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],Ve)){var gt=l,Rt=Bi(gt.base),Zt,gn,wn;if(Rt>5)Ve==="widehat"||Ve==="widecheck"?(Zt=420,Be=2364,wn=.42,gn=Ve+"4"):(Zt=312,Be=2340,wn=.34,gn="tilde4");else{var Kn=[1,1,2,2,3,3][Rt];Ve==="widehat"||Ve==="widecheck"?(Be=[0,1062,2364,2364,2364][Kn],Zt=[0,239,300,360,420][Kn],wn=[0,.24,.3,.3,.36,.42][Kn],gn=Ve+Kn):(Be=[0,600,1033,2339,2340][Kn],Zt=[0,260,286,306,312][Kn],wn=[0,.26,.286,.3,.306,.34][Kn],gn="tilde"+Kn)}var er=new le(gn),_r=new Q([er],{width:"100%",height:wn+"em",viewBox:"0 0 "+Be+" "+Zt,preserveAspectRatio:"none"});return{span:Ke.makeSvgSpan([],[_r],d),minWidth:0,height:wn}}else{var Er=[],xr=pi[Ve],Xr=xr[0],Qr=xr[1],ri=xr[2],ai=ri/1e3,di=Xr.length,Ii,Ti;if(di===1){var Wr=xr[3];Ii=["hide-tail"],Ti=[Wr]}else if(di===2)Ii=["halfarrow-left","halfarrow-right"],Ti=["xMinYMin","xMaxYMin"];else if(di===3)Ii=["brace-left","brace-center","brace-right"],Ti=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+di+" children.");for(var Ki=0;Ki<di;Ki++){var Ji=new le(Xr[Ki]),ji=new Q([Ji],{width:"400em",height:ai+"em",viewBox:"0 0 "+Be+" "+ri,preserveAspectRatio:Ti[Ki]+" slice"}),Li=Ke.makeSvgSpan([Ii[Ki]],[ji],d);if(di===1)return{span:Li,minWidth:Qr,height:ai};Li.style.height=ai+"em",Er.push(Li)}return{span:Ke.makeSpan(["stretchy"],Er,d),minWidth:Qr,height:ai}}}var m=f(),I=m.span,ee=m.minWidth,Le=m.height;return I.height=Le,I.style.height=Le+"em",ee>0&&(I.style.minWidth=ee+"em"),I},jn=function(l,d,f,m){var I,ee=l.height+l.depth+2*f;if(/fbox|color/.test(d)){if(I=Ke.makeSpan(["stretchy",d],[],m),d==="fbox"){var Le=m.color&&m.getColor();Le&&(I.style.borderColor=Le)}}else{var Be=[];/^[bx]cancel$/.test(d)&&Be.push(new ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Be.push(new ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ve=new Q(Be,{width:"100%",height:ee+"em"});I=Ke.makeSvgSpan([],[Ve],m)}return I.height=ee,I.style.height=ee+"em",I},Zn={encloseSpan:jn,mathMLnode:Yr,svgSpan:bi},yr=function(l,d){var f,m,I=On(l,"supsub"),ee;I?(m=un(I.base,"accent"),f=m.base,I.base=f,ee=_e(ar(I,d)),I.base=m):(m=un(l,"accent"),f=m.base);var Le=ar(f,d.havingCrampedStyle()),Be=m.isShifty&&P.isCharacterBox(f),Ve=0;if(Be){var gt=P.getBaseElem(f),Rt=ar(gt,d.havingCrampedStyle());Ve=Ae(Rt).skew}var Zt=Math.min(Le.height,d.fontMetrics().xHeight),gn;if(m.isStretchy)gn=Zn.svgSpan(m,d),gn=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"elem",elem:gn,wrapperClasses:["svg-align"],wrapperStyle:Ve>0?{width:"calc(100% - "+2*Ve+"em)",marginLeft:2*Ve+"em"}:void 0}]},d);else{var wn,Kn;m.label==="\\vec"?(wn=Ke.staticSvg("vec",d),Kn=Ke.svgData.vec[1]):(wn=Ke.makeOrd({mode:m.mode,text:m.label},d,"textord"),wn=Ae(wn),wn.italic=0,Kn=wn.width),gn=Ke.makeSpan(["accent-body"],[wn]);var er=m.label==="\\textcircled";er&&(gn.classes.push("accent-full"),Zt=Le.height);var _r=Ve;er||(_r-=Kn/2),gn.style.left=_r+"em",m.label==="\\textcircled"&&(gn.style.top=".2em"),gn=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:-Zt},{type:"elem",elem:gn}]},d)}var Er=Ke.makeSpan(["mord","accent"],[gn],d);return ee?(ee.children[0]=Er,ee.height=Math.max(Er.height,ee.height),ee.classes[0]="mord",ee):Er},Jr=function(l,d){var f=l.isStretchy?Zn.mathMLnode(l.label):new Wt.MathNode("mo",[sr(l.label,l.mode)]),m=new Wt.MathNode("mover",[bn(l.base,d),f]);return m.setAttribute("accent","true"),m},Ir=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(te){return"\\"+te}).join("|"));En({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 f=d[0],m=!Ir.test(l.funcName),I=!m||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:m,isShifty:I,base:f}},htmlBuilder:yr,mathmlBuilder:Jr}),En({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:f}},htmlBuilder:yr,mathmlBuilder:Jr}),En({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"accentUnder",mode:f.mode,label:m,base:I}},htmlBuilder:function(l,d){var f=ar(l.base,d),m=Zn.svgSpan(l,d),I=l.label==="\\utilde"?.12:0,ee=Ke.makeVList({positionType:"bottom",positionData:m.height+I,children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:I},{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord","accentunder"],[ee],d)},mathmlBuilder:function(l,d){var f=Zn.mathMLnode(l.label),m=new Wt.MathNode("munder",[bn(l.base,d),f]);return m.setAttribute("accentunder","true"),m}});var _i=function(l){var d=new Wt.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};En({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,f){var m=l.parser,I=l.funcName;return{type:"xArrow",mode:m.mode,label:I,body:d[0],below:f[0]}},htmlBuilder:function(l,d){var f=d.style,m=d.havingStyle(f.sup()),I=Ke.wrapFragment(ar(l.body,m,d),d);I.classes.push("x-arrow-pad");var ee;l.below&&(m=d.havingStyle(f.sub()),ee=Ke.wrapFragment(ar(l.below,m,d),d),ee.classes.push("x-arrow-pad"));var Le=Zn.svgSpan(l,d),Be=-d.fontMetrics().axisHeight+.5*Le.height,Ve=-d.fontMetrics().axisHeight-.5*Le.height-.111;(I.depth>.25||l.label==="\\xleftequilibrium")&&(Ve-=I.depth);var gt;if(ee){var Rt=-d.fontMetrics().axisHeight+ee.height+.5*Le.height+.111;gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ve},{type:"elem",elem:Le,shift:Be},{type:"elem",elem:ee,shift:Rt}]},d)}else gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ve},{type:"elem",elem:Le,shift:Be}]},d);return gt.children[0].children[0].children[1].classes.push("svg-align"),Ke.makeSpan(["mrel","x-arrow"],[gt],d)},mathmlBuilder:function(l,d){var f=Zn.mathMLnode(l.label),m;if(l.body){var I=_i(bn(l.body,d));if(l.below){var ee=_i(bn(l.below,d));m=new Wt.MathNode("munderover",[f,ee,I])}else m=new Wt.MathNode("mover",[f,I])}else if(l.below){var Le=_i(bn(l.below,d));m=new Wt.MathNode("munder",[f,Le])}else m=_i(),m=new Wt.MathNode("mover",[f,m]);return m}}),En({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var f=l.parser,m=un(d[0],"ordgroup"),I=m.body,ee="",Le=0;Le<I.length;Le++){var Be=un(I[Le],"textord");ee+=Be.text}var Ve=parseInt(ee);if(isNaN(Ve))throw new X("\\@char has non-numeric argument "+ee);return{type:"textord",mode:f.mode,text:String.fromCharCode(Ve)}}});var Wi=function(l,d){var f=gr(l.body,d.withColor(l.color),!1);return Ke.makeFragment(f)},Hi=function(l,d){var f=Mn(l.body,d.withColor(l.color)),m=new Wt.MathNode("mstyle",f);return m.setAttribute("mathcolor",l.color),m};En({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var f=l.parser,m=un(d[0],"color-token").color,I=d[1];return{type:"color",mode:f.mode,color:m,body:dr(I)}},htmlBuilder:Wi,mathmlBuilder:Hi}),En({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var f=l.parser,m=l.breakOnTokenText,I=un(d[0],"color-token").color;f.gullet.macros.set("\\current@color",I);var ee=f.parseExpression(!0,m);return{type:"color",mode:f.mode,color:I,body:ee}},htmlBuilder:Wi,mathmlBuilder:Hi}),En({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=f[0],Le=I==="\\cr",Be=!1;return Le||(m.settings.displayMode&&m.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Be=!1:Be=!0),{type:"cr",mode:m.mode,newLine:Be,newRow:Le,size:ee&&un(ee,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new X("\\cr valid only within a tabular/array environment");var f=Ke.makeSpan(["mspace"],[],d);return l.newLine&&(f.classes.push("newline"),l.size&&(f.style.marginTop=nt(l.size,d)+"em")),f},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mspace");return l.newLine&&(f.setAttribute("linebreak","newline"),l.size&&f.setAttribute("height",nt(l.size,d)+"em")),f}});var Ai=function(l,d,f){var m=Lt.math[l]&&Lt.math[l].replace,I=et(m||l,d,f);if(!I)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return I},aa=function(l,d,f,m){var I=f.havingBaseStyle(d),ee=Ke.makeSpan(m.concat(I.sizingClasses(f)),[l],f),Le=I.sizeMultiplier/f.sizeMultiplier;return ee.height*=Le,ee.depth*=Le,ee.maxFontSize=I.sizeMultiplier,ee},sa=function(l,d,f){var m=d.havingBaseStyle(f),I=(1-d.sizeMultiplier/m.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=I+"em",l.height-=I,l.depth+=I},oa=function(l,d,f,m,I,ee){var Le=Ke.makeSymbol(l,"Main-Regular",I,m),Be=aa(Le,d,m,ee);return f&&sa(Be,m,d),Be},ea=function(l,d,f,m){return Ke.makeSymbol(l,"Size"+d+"-Regular",f,m)},la=function(l,d,f,m,I,ee){var Le=ea(l,d,I,m),Be=aa(Ke.makeSpan(["delimsizing","size"+d],[Le],m),g.TEXT,m,ee);return f&&sa(Be,m,g.TEXT),Be},Mi=function(l,d,f){var m;d==="Size1-Regular"?m="delim-size1":m="delim-size4";var I=Ke.makeSpan(["delimsizinginner",m],[Ke.makeSpan([],[Ke.makeSymbol(l,d,f)])]);return{type:"elem",elem:I}},oi={type:"kern",size:-.005},ua=function(l,d,f,m,I,ee){var Le,Be,Ve,gt;Le=Ve=gt=l,Be=null;var Rt="Size1-Regular";l==="\\uparrow"?Ve=gt="\u23D0":l==="\\Uparrow"?Ve=gt="\u2016":l==="\\downarrow"?Le=Ve="\u23D0":l==="\\Downarrow"?Le=Ve="\u2016":l==="\\updownarrow"?(Le="\\uparrow",Ve="\u23D0",gt="\\downarrow"):l==="\\Updownarrow"?(Le="\\Uparrow",Ve="\u2016",gt="\\Downarrow"):l==="["||l==="\\lbrack"?(Le="\u23A1",Ve="\u23A2",gt="\u23A3",Rt="Size4-Regular"):l==="]"||l==="\\rbrack"?(Le="\u23A4",Ve="\u23A5",gt="\u23A6",Rt="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Ve=Le="\u23A2",gt="\u23A3",Rt="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Le="\u23A1",Ve=gt="\u23A2",Rt="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Ve=Le="\u23A5",gt="\u23A6",Rt="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Le="\u23A4",Ve=gt="\u23A5",Rt="Size4-Regular"):l==="("||l==="\\lparen"?(Le="\u239B",Ve="\u239C",gt="\u239D",Rt="Size4-Regular"):l===")"||l==="\\rparen"?(Le="\u239E",Ve="\u239F",gt="\u23A0",Rt="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Le="\u23A7",Be="\u23A8",gt="\u23A9",Ve="\u23AA",Rt="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Le="\u23AB",Be="\u23AC",gt="\u23AD",Ve="\u23AA",Rt="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Le="\u23A7",gt="\u23A9",Ve="\u23AA",Rt="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Le="\u23AB",gt="\u23AD",Ve="\u23AA",Rt="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Le="\u23A7",gt="\u23AD",Ve="\u23AA",Rt="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Le="\u23AB",gt="\u23A9",Ve="\u23AA",Rt="Size4-Regular");var Zt=Ai(Le,Rt,I),gn=Zt.height+Zt.depth,wn=Ai(Ve,Rt,I),Kn=wn.height+wn.depth,er=Ai(gt,Rt,I),_r=er.height+er.depth,Er=0,xr=1;if(Be!==null){var Xr=Ai(Be,Rt,I);Er=Xr.height+Xr.depth,xr=2}var Qr=gn+_r+Er,ri=Math.max(0,Math.ceil((d-Qr)/(xr*Kn))),ai=Qr+ri*xr*Kn,di=m.fontMetrics().axisHeight;f&&(di*=m.sizeMultiplier);var Ii=ai/2-di,Ti=(ri+1)*.005-Kn,Wr=[];if(Wr.push(Mi(gt,Rt,I)),Be===null)for(var Ki=0;Ki<ri;Ki++)Wr.push(oi),Wr.push(Mi(Ve,Rt,I));else{for(var Ji=0;Ji<ri;Ji++)Wr.push(oi),Wr.push(Mi(Ve,Rt,I));Wr.push({type:"kern",size:Ti}),Wr.push(Mi(Ve,Rt,I)),Wr.push(oi),Wr.push(Mi(Be,Rt,I));for(var ji=0;ji<ri;ji++)Wr.push(oi),Wr.push(Mi(Ve,Rt,I))}Wr.push({type:"kern",size:Ti}),Wr.push(Mi(Ve,Rt,I)),Wr.push(oi),Wr.push(Mi(Le,Rt,I));var Li=m.havingBaseStyle(g.TEXT),qi=Ke.makeVList({positionType:"bottom",positionData:Ii,children:Wr},Li);return aa(Ke.makeSpan(["delimsizing","mult"],[qi],Li),g.TEXT,m,ee)},ta=80,Si=.08,Di=function(l,d,f,m,I){var ee=Jt(l,m,f),Le=new le(l,ee),Be=new Q([Le],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return Ke.makeSvgSpan(["hide-tail"],[Be],I)},Ar=function(l,d){var f=d.havingBaseSizing(),m=zi("\\surd",l*f.sizeMultiplier,xi,f),I=f.sizeMultiplier,ee=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Le,Be=0,Ve=0,gt=0,Rt;return m.type==="small"?(gt=1e3+1e3*ee+ta,l<1?I=1:l<1.4&&(I=.7),Be=(1+ee+Si)/I,Ve=(1+ee)/I,Le=Di("sqrtMain",Be,gt,ee,d),Le.style.minWidth="0.853em",Rt=.833/I):m.type==="large"?(gt=(1e3+ta)*qr[m.size],Ve=(qr[m.size]+ee)/I,Be=(qr[m.size]+ee+Si)/I,Le=Di("sqrtSize"+m.size,Be,gt,ee,d),Le.style.minWidth="1.02em",Rt=1/I):(Be=l+ee+Si,Ve=l+ee,gt=Math.floor(1e3*l+ee)+ta,Le=Di("sqrtTall",Be,gt,ee,d),Le.style.minWidth="0.742em",Rt=1.056),Le.height=Ve,Le.style.height=Be+"em",{span:Le,advanceWidth:Rt,ruleWidth:(d.fontMetrics().sqrtRuleThickness+ee)*I}},cr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],mi=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],gi=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qr=[0,1.2,1.8,2.4,3],Ci=function(l,d,f,m,I){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),P.contains(cr,l)||P.contains(gi,l))return la(l,d,!1,f,m,I);if(P.contains(mi,l))return ua(l,qr[d],!1,f,m,I);throw new X("Illegal delimiter: '"+l+"'")},$r=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$i=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],xi=[{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.")},zi=function(l,d,f,m){for(var I=Math.min(2,3-m.style.size),ee=I;ee<f.length&&f[ee].type!=="stack";ee++){var Le=Ai(l,ki(f[ee]),"math"),Be=Le.height+Le.depth;if(f[ee].type==="small"){var Ve=m.havingBaseStyle(f[ee].style);Be*=Ve.sizeMultiplier}if(Be>d)return f[ee]}return f[f.length-1]},Kr=function(l,d,f,m,I,ee){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Le;P.contains(gi,l)?Le=$r:P.contains(cr,l)?Le=xi:Le=$i;var Be=zi(l,d,Le,m);return Be.type==="small"?oa(l,Be.style,f,m,I,ee):Be.type==="large"?la(l,Be.size,f,m,I,ee):ua(l,d,f,m,I,ee)},ga=function(l,d,f,m,I,ee){var Le=m.fontMetrics().axisHeight*m.sizeMultiplier,Be=901,Ve=5/m.fontMetrics().ptPerEm,gt=Math.max(d-Le,f+Le),Rt=Math.max(gt/500*Be,2*gt-Ve);return Kr(l,Rt,!0,m,I,ee)},Ri={sqrtImage:Ar,sizedDelim:Ci,customSizedDelim:Kr,leftRightDelim:ga},ca={"\\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}},es=["(","\\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 va(te,l){var d=rr(te);if(d&&P.contains(es,d.text))return d;throw new X("Invalid delimiter: '"+(d?d.text:JSON.stringify(te))+"' after '"+l.funcName+"'",te)}En({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 f=va(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:ca[l.funcName].size,mclass:ca[l.funcName].mclass,delim:f.text}},htmlBuilder:function(l,d){return l.delim==="."?Ke.makeSpan([l.mclass]):Ri.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(sr(l.delim,l.mode));var f=new Wt.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function ya(te){if(!te.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}En({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var f=l.parser.gullet.macros.get("\\current@color");if(f&&typeof f!="string")throw new X("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:va(d[0],l).text,color:f}}}),En({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var f=va(d[0],l),m=l.parser;++m.leftrightDepth;var I=m.parseExpression(!1);--m.leftrightDepth,m.expect("\\right",!1);var ee=un(m.parseFunction(),"leftright-right");return{type:"leftright",mode:m.mode,body:I,left:f.text,right:ee.delim,rightColor:ee.color}},htmlBuilder:function(l,d){ya(l);for(var f=gr(l.body,d,!0,["mopen","mclose"]),m=0,I=0,ee=!1,Le=0;Le<f.length;Le++)f[Le].isMiddle?ee=!0:(m=Math.max(f[Le].height,m),I=Math.max(f[Le].depth,I));m*=d.sizeMultiplier,I*=d.sizeMultiplier;var Be;if(l.left==="."?Be=ti(d,["mopen"]):Be=Ri.leftRightDelim(l.left,m,I,d,l.mode,["mopen"]),f.unshift(Be),ee)for(var Ve=1;Ve<f.length;Ve++){var gt=f[Ve],Rt=gt.isMiddle;Rt&&(f[Ve]=Ri.leftRightDelim(Rt.delim,m,I,Rt.options,l.mode,[]))}var Zt;if(l.right===".")Zt=ti(d,["mclose"]);else{var gn=l.rightColor?d.withColor(l.rightColor):d;Zt=Ri.leftRightDelim(l.right,m,I,gn,l.mode,["mclose"])}return f.push(Zt),Ke.makeSpan(["minner"],f,d)},mathmlBuilder:function(l,d){ya(l);var f=Mn(l.body,d);if(l.left!=="."){var m=new Wt.MathNode("mo",[sr(l.left,l.mode)]);m.setAttribute("fence","true"),f.unshift(m)}if(l.right!=="."){var I=new Wt.MathNode("mo",[sr(l.right,l.mode)]);I.setAttribute("fence","true"),l.rightColor&&I.setAttribute("mathcolor",l.rightColor),f.push(I)}return vr(f)}}),En({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var f=va(d[0],l);if(!l.parser.leftrightDepth)throw new X("\\middle without preceding \\left",f);return{type:"middle",mode:l.parser.mode,delim:f.text}},htmlBuilder:function(l,d){var f;if(l.delim===".")f=ti(d,[]);else{f=Ri.sizedDelim(l.delim,1,d,l.mode,[]);var m={delim:l.delim,options:d};f.isMiddle=m}return f},mathmlBuilder:function(l,d){var f=l.delim==="\\vert"||l.delim==="|"?sr("|","text"):sr(l.delim,l.mode),m=new Wt.MathNode("mo",[f]);return m.setAttribute("fence","true"),m.setAttribute("lspace","0.05em"),m.setAttribute("rspace","0.05em"),m}});var ba=function(l,d){var f=Ke.wrapFragment(ar(l.body,d),d),m=l.label.substr(1),I=d.sizeMultiplier,ee,Le=0,Be=P.isCharacterBox(l.body);if(m==="sout")ee=Ke.makeSpan(["stretchy","sout"]),ee.height=d.fontMetrics().defaultRuleThickness/I,Le=-.5*d.fontMetrics().xHeight;else{/cancel/.test(m)?Be||f.classes.push("cancel-pad"):f.classes.push("boxpad");var Ve=0,gt=0;/box/.test(m)?(gt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Ve=d.fontMetrics().fboxsep+(m==="colorbox"?0:gt)):Ve=Be?.2:0,ee=Zn.encloseSpan(f,m,Ve,d),/fbox|boxed|fcolorbox/.test(m)&&(ee.style.borderStyle="solid",ee.style.borderWidth=gt+"em"),Le=f.depth+Ve,l.backgroundColor&&(ee.style.backgroundColor=l.backgroundColor,l.borderColor&&(ee.style.borderColor=l.borderColor))}var Rt;return l.backgroundColor?Rt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ee,shift:Le},{type:"elem",elem:f,shift:0}]},d):Rt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:ee,shift:Le,wrapperClasses:/cancel/.test(m)?["svg-align"]:[]}]},d),/cancel/.test(m)&&(Rt.height=f.height,Rt.depth=f.depth),/cancel/.test(m)&&!Be?Ke.makeSpan(["mord","cancel-lap"],[Rt],d):Ke.makeSpan(["mord"],[Rt],d)},Aa=function(l,d){var f=0,m=new Wt.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[bn(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(f=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,m.setAttribute("width","+"+2*f+"pt"),m.setAttribute("height","+"+2*f+"pt"),m.setAttribute("lspace",f+"pt"),m.setAttribute("voffset",f+"pt"),l.label==="\\fcolorbox"){var I=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);m.setAttribute("style","border: "+I+"em solid "+String(l.borderColor))}break;case"\\xcancel":m.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&m.setAttribute("mathbackground",l.backgroundColor),m};En({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=un(d[0],"color-token").color,Le=d[1];return{type:"enclose",mode:m.mode,label:I,backgroundColor:ee,body:Le}},htmlBuilder:ba,mathmlBuilder:Aa}),En({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=un(d[0],"color-token").color,Le=un(d[1],"color-token").color,Be=d[2];return{type:"enclose",mode:m.mode,label:I,backgroundColor:Le,borderColor:ee,body:Be}},htmlBuilder:ba,mathmlBuilder:Aa}),En({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"enclose",mode:f.mode,label:"\\fbox",body:d[0]}}}),En({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,f){var m=l.parser,I=l.funcName,ee=d[0];return{type:"enclose",mode:m.mode,label:I,body:ee}},htmlBuilder:ba,mathmlBuilder:Aa});var Ma={};function Ui(te){for(var l=te.type,d=te.names,f=te.props,m=te.handler,I=te.htmlBuilder,ee=te.mathmlBuilder,Le={type:l,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:m},Be=0;Be<d.length;++Be)Ma[d[Be]]=Le;I&&(lr[l]=I),ee&&(kr[l]=ee)}function Da(te){var l=[];te.consumeSpaces();for(var d=te.fetch().text;d==="\\hline"||d==="\\hdashline";)te.consume(),l.push(d==="\\hdashline"),te.consumeSpaces(),d=te.fetch().text;return l}function Hr(te,l,d){var f=l.hskipBeforeAndAfter,m=l.addJot,I=l.cols,ee=l.arraystretch,Le=l.colSeparationType;if(te.gullet.beginGroup(),te.gullet.macros.set("\\\\","\\cr"),!ee){var Be=te.gullet.expandMacroAsText("\\arraystretch");if(Be==null)ee=1;else if(ee=parseFloat(Be),!ee||ee<0)throw new X("Invalid \\arraystretch: "+Be)}te.gullet.beginGroup();var Ve=[],gt=[Ve],Rt=[],Zt=[];for(Zt.push(Da(te));;){var gn=te.parseExpression(!1,"\\cr");te.gullet.endGroup(),te.gullet.beginGroup(),gn={type:"ordgroup",mode:te.mode,body:gn},d&&(gn={type:"styling",mode:te.mode,style:d,body:[gn]}),Ve.push(gn);var wn=te.fetch().text;if(wn==="&")te.consume();else if(wn==="\\end"){Ve.length===1&&gn.type==="styling"&&gn.body[0].body.length===0&>.pop(),Zt.length<gt.length+1&&Zt.push([]);break}else if(wn==="\\cr"){var Kn=un(te.parseFunction(),"cr");Rt.push(Kn.size),Zt.push(Da(te)),Ve=[],gt.push(Ve)}else throw new X("Expected & or \\\\ or \\cr or \\end",te.nextToken)}return te.gullet.endGroup(),te.gullet.endGroup(),{type:"array",mode:te.mode,addJot:m,arraystretch:ee,body:gt,cols:I,rowGaps:Rt,hskipBeforeAndAfter:f,hLinesBeforeRow:Zt,colSeparationType:Le}}function zr(te){return te.substr(0,1)==="d"?"display":"text"}var Nr=function(l,d){var f,m,I=l.body.length,ee=l.hLinesBeforeRow,Le=0,Be=new Array(I),Ve=[],gt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),Rt=1/d.fontMetrics().ptPerEm,Zt=5*Rt;if(l.colSeparationType&&l.colSeparationType==="small"){var gn=d.havingStyle(g.SCRIPT).sizeMultiplier;Zt=.2778*(gn/d.sizeMultiplier)}var wn=12*Rt,Kn=3*Rt,er=l.arraystretch*wn,_r=.7*er,Er=.3*er,xr=0;function Xr(vs){for(var ma=0;ma<vs.length;++ma)ma>0&&(xr+=.25),Ve.push({pos:xr,isDashed:vs[ma]})}for(Xr(ee[0]),f=0;f<l.body.length;++f){var Qr=l.body[f],ri=_r,ai=Er;Le<Qr.length&&(Le=Qr.length);var di=new Array(Qr.length);for(m=0;m<Qr.length;++m){var Ii=ar(Qr[m],d);ai<Ii.depth&&(ai=Ii.depth),ri<Ii.height&&(ri=Ii.height),di[m]=Ii}var Ti=l.rowGaps[f],Wr=0;Ti&&(Wr=nt(Ti,d),Wr>0&&(Wr+=Er,ai<Wr&&(ai=Wr),Wr=0)),l.addJot&&(ai+=Kn),di.height=ri,di.depth=ai,xr+=ri,di.pos=xr,xr+=ai+Wr,Be[f]=di,Xr(ee[f+1])}var Ki=xr/2+d.fontMetrics().axisHeight,Ji=l.cols||[],ji=[],Li,qi;for(m=0,qi=0;m<Le||qi<Ji.length;++m,++qi){for(var yi=Ji[qi]||{},Gi=!0;yi.type==="separator";){if(Gi||(Li=Ke.makeSpan(["arraycolsep"],[]),Li.style.width=d.fontMetrics().doubleRuleSep+"em",ji.push(Li)),yi.separator==="|"||yi.separator===":"){var to=yi.separator==="|"?"solid":"dashed",Sa=Ke.makeSpan(["vertical-separator"],[],d);Sa.style.height=xr+"em",Sa.style.borderRightWidth=gt+"em",Sa.style.borderRightStyle=to,Sa.style.margin="0 -"+gt/2+"em",Sa.style.verticalAlign=-(xr-Ki)+"em",ji.push(Sa)}else throw new X("Invalid separator type: "+yi.separator);qi++,yi=Ji[qi]||{},Gi=!1}if(!(m>=Le)){var Ca=void 0;(m>0||l.hskipBeforeAndAfter)&&(Ca=P.deflt(yi.pregap,Zt),Ca!==0&&(Li=Ke.makeSpan(["arraycolsep"],[]),Li.style.width=Ca+"em",ji.push(Li)));var Ta=[];for(f=0;f<I;++f){var Ya=Be[f],Xa=Ya[m];if(Xa){var pa=Ya.pos-Ki;Xa.depth=Ya.depth,Xa.height=Ya.height,Ta.push({type:"elem",elem:Xa,shift:pa})}}Ta=Ke.makeVList({positionType:"individualShift",children:Ta},d),Ta=Ke.makeSpan(["col-align-"+(yi.align||"c")],[Ta]),ji.push(Ta),(m<Le-1||l.hskipBeforeAndAfter)&&(Ca=P.deflt(yi.postgap,Zt),Ca!==0&&(Li=Ke.makeSpan(["arraycolsep"],[]),Li.style.width=Ca+"em",ji.push(Li)))}}if(Be=Ke.makeSpan(["mtable"],ji),Ve.length>0){for(var Ns=Ke.makeLineSpan("hline",d,gt),no=Ke.makeLineSpan("hdashline",d,gt),ms=[{type:"elem",elem:Be,shift:0}];Ve.length>0;){var Qa=Ve.pop(),gs=Qa.pos-Ki;Qa.isDashed?ms.push({type:"elem",elem:no,shift:gs}):ms.push({type:"elem",elem:Ns,shift:gs})}Be=Ke.makeVList({positionType:"individualShift",children:ms},d)}return Ke.makeSpan(["mord"],[Be],d)},li={c:"center ",l:"left ",r:"right "},ci=function(l,d){var f=new Wt.MathNode("mtable",l.body.map(function(xr){return new Wt.MathNode("mtr",xr.map(function(Xr){return new Wt.MathNode("mtd",[bn(Xr,d)])}))})),m=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);f.setAttribute("rowspacing",m+"em");var I="",ee="";if(l.cols){var Le=l.cols,Be="",Ve=!1,gt=0,Rt=Le.length;Le[0].type==="separator"&&(I+="top ",gt=1),Le[Le.length-1].type==="separator"&&(I+="bottom ",Rt-=1);for(var Zt=gt;Zt<Rt;Zt++)Le[Zt].type==="align"?(ee+=li[Le[Zt].align],Ve&&(Be+="none "),Ve=!0):Le[Zt].type==="separator"&&Ve&&(Be+=Le[Zt].separator==="|"?"solid ":"dashed ",Ve=!1);f.setAttribute("columnalign",ee.trim()),/[sd]/.test(Be)&&f.setAttribute("columnlines",Be.trim())}if(l.colSeparationType==="align"){for(var gn=l.cols||[],wn="",Kn=1;Kn<gn.length;Kn++)wn+=Kn%2?"0em ":"1em ";f.setAttribute("columnspacing",wn.trim())}else l.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var er="",_r=l.hLinesBeforeRow;I+=_r[0].length>0?"left ":"",I+=_r[_r.length-1].length>0?"right ":"";for(var Er=1;Er<_r.length-1;Er++)er+=_r[Er].length===0?"none ":_r[Er][0]?"dashed ":"solid ";return/[sd]/.test(er)&&f.setAttribute("rowlines",er.trim()),I!==""&&(f=new Wt.MathNode("menclose",[f]),f.setAttribute("notation",I.trim())),l.arraystretch&&l.arraystretch<1&&(f=new Wt.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},da=function(l,d){var f=[],m=Hr(l.parser,{cols:f,addJot:!0},"display"),I,ee=0,Le={type:"ordgroup",mode:l.mode,body:[]},Be=On(d[0],"ordgroup");if(Be){for(var Ve="",gt=0;gt<Be.body.length;gt++){var Rt=un(Be.body[gt],"textord");Ve+=Rt.text}I=Number(Ve),ee=I*2}var Zt=!ee;m.body.forEach(function(er){for(var _r=1;_r<er.length;_r+=2){var Er=un(er[_r],"styling"),xr=un(Er.body[0],"ordgroup");xr.body.unshift(Le)}if(Zt)ee<er.length&&(ee=er.length);else{var Xr=er.length/2;if(I<Xr)throw new X("Too many math in a row: "+("expected "+I+", but got "+Xr),er[0])}});for(var gn=0;gn<ee;++gn){var wn="r",Kn=0;gn%2===1?wn="l":gn>0&&Zt&&(Kn=1),f[gn]={type:"align",align:wn,pregap:Kn,postgap:0}}return m.colSeparationType=Zt?"align":"alignat",m};Ui({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var f=rr(d[0]),m=f?[d[0]]:un(d[0],"ordgroup").body,I=m.map(function(Le){var Be=nr(Le),Ve=Be.text;if("lcr".indexOf(Ve)!==-1)return{type:"align",align:Ve};if(Ve==="|")return{type:"separator",separator:"|"};if(Ve===":")return{type:"separator",separator:":"};throw new X("Unknown column alignment: "+Ve,Le)}),ee={cols:I,hskipBeforeAndAfter:!0};return Hr(l.parser,ee,zr(l.envName))},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({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],f={hskipBeforeAndAfter:!1},m=Hr(l.parser,f,zr(l.envName));return d?{type:"leftright",mode:l.mode,body:[m],left:d[0],right:d[1],rightColor:void 0}:m},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},f=Hr(l.parser,d,"script");return f.colSeparationType="small",f},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var f=rr(d[0]),m=f?[d[0]]:un(d[0],"ordgroup").body,I=m.map(function(Le){var Be=nr(Le),Ve=Be.text;if("lc".indexOf(Ve)!==-1)return{type:"align",align:Ve};throw new X("Unknown column alignment: "+Ve,Le)});if(I.length>1)throw new X("{subarray} can contain only one column");var ee={cols:I,hskipBeforeAndAfter:!1,arraystretch:.5};if(ee=Hr(l.parser,ee,"script"),ee.body[0].length>1)throw new X("{subarray} can contain only one column");return ee},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({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}]},f=Hr(l.parser,d,zr(l.envName));return{type:"leftright",mode:l.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["aligned"],props:{numArgs:0},handler:da,htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Hr(l.parser,d,"display")},htmlBuilder:Nr,mathmlBuilder:ci}),Ui({type:"array",names:["alignedat"],props:{numArgs:1},handler:da,htmlBuilder:Nr,mathmlBuilder:ci}),En({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new X(l.funcName+" valid only within array environment")}});var Ra=Ma,Na=Ra;En({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];if(I.type!=="ordgroup")throw new X("Invalid environment name",I);for(var ee="",Le=0;Le<I.body.length;++Le)ee+=un(I.body[Le],"textord").text;if(m==="\\begin"){if(!Na.hasOwnProperty(ee))throw new X("No such environment: "+ee,I);var Be=Na[ee],Ve=f.parseArguments("\\begin{"+ee+"}",Be),gt=Ve.args,Rt=Ve.optArgs,Zt={mode:f.mode,envName:ee,parser:f},gn=Be.handler(Zt,gt,Rt);f.expect("\\end",!1);var wn=f.nextToken,Kn=un(f.parseFunction(),"environment");if(Kn.name!==ee)throw new X("Mismatch: \\begin{"+ee+"} matched by \\end{"+Kn.name+"}",wn);return gn}return{type:"environment",mode:f.mode,name:ee,nameGroup:I}}});var Fa=Ke.makeSpan;function fa(te,l){var d=gr(te.body,l,!0);return Fa([te.mclass],d,l)}function na(te,l){var d,f=Mn(te.body,l);return te.mclass==="minner"?Wt.newDocumentFragment(f):(te.mclass==="mord"?te.isCharacterBox?(d=f[0],d.type="mi"):d=new Wt.MathNode("mi",f):(te.isCharacterBox?(d=f[0],d.type="mo"):d=new Wt.MathNode("mo",f),te.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):te.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(te.mclass==="mopen"||te.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}En({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"mclass",mode:f.mode,mclass:"m"+m.substr(5),body:dr(I),isCharacterBox:P.isCharacterBox(I)}},htmlBuilder:fa,mathmlBuilder:na});var fn=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"};En({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var f=l.parser;return{type:"mclass",mode:f.mode,mclass:fn(d[0]),body:[d[1]],isCharacterBox:P.isCharacterBox(d[1])}}}),En({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[1],ee=d[0],Le;m!=="\\stackrel"?Le=fn(I):Le="mrel";var Be={type:"op",mode:I.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:m!=="\\stackrel",body:dr(I)},Ve={type:"supsub",mode:ee.mode,base:Be,sup:m==="\\underset"?null:ee,sub:m==="\\underset"?ee:null};return{type:"mclass",mode:f.mode,mclass:Le,body:[Ve],isCharacterBox:P.isCharacterBox(Ve)}},htmlBuilder:fa,mathmlBuilder:na});var _a=function(l,d){var f=l.font,m=d.withFont(f);return ar(l.body,m)},ts=function(l,d){var f=l.font,m=d.withFont(f);return bn(l.body,m)},bs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};En({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 f=l.parser,m=l.funcName,I=d[0],ee=m;return ee in bs&&(ee=bs[ee]),{type:"font",mode:f.mode,font:ee.slice(1),body:I}},htmlBuilder:_a,mathmlBuilder:ts}),En({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var f=l.parser,m=d[0],I=P.isCharacterBox(m);return{type:"mclass",mode:f.mode,mclass:fn(m),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:m}],isCharacterBox:I}}}),En({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=l.breakOnTokenText,ee=f.mode,Le=f.parseExpression(!0,I),Be="math"+m.slice(1);return{type:"font",mode:ee,font:Be,body:{type:"ordgroup",mode:f.mode,body:Le}}},htmlBuilder:_a,mathmlBuilder:ts});var _s=function(l,d){var f=d;return l==="display"?f=f.id>=g.SCRIPT.id?f.text():g.DISPLAY:l==="text"&&f.size===g.DISPLAY.size?f=g.TEXT:l==="script"?f=g.SCRIPT:l==="scriptscript"&&(f=g.SCRIPTSCRIPT),f},ns=function(l,d){var f=_s(l.size,d.style),m=f.fracNum(),I=f.fracDen(),ee;ee=d.havingStyle(m);var Le=ar(l.numer,ee,d);if(l.continued){var Be=8.5/d.fontMetrics().ptPerEm,Ve=3.5/d.fontMetrics().ptPerEm;Le.height=Le.height<Be?Be:Le.height,Le.depth=Le.depth<Ve?Ve:Le.depth}ee=d.havingStyle(I);var gt=ar(l.denom,ee,d),Rt,Zt,gn;l.hasBarLine?(l.barSize?(Zt=nt(l.barSize,d),Rt=Ke.makeLineSpan("frac-line",d,Zt)):Rt=Ke.makeLineSpan("frac-line",d),Zt=Rt.height,gn=Rt.height):(Rt=null,Zt=0,gn=d.fontMetrics().defaultRuleThickness);var wn,Kn,er;f.size===g.DISPLAY.size||l.size==="display"?(wn=d.fontMetrics().num1,Zt>0?Kn=3*gn:Kn=7*gn,er=d.fontMetrics().denom1):(Zt>0?(wn=d.fontMetrics().num2,Kn=gn):(wn=d.fontMetrics().num3,Kn=3*gn),er=d.fontMetrics().denom2);var _r;if(Rt){var xr=d.fontMetrics().axisHeight;wn-Le.depth-(xr+.5*Zt)<Kn&&(wn+=Kn-(wn-Le.depth-(xr+.5*Zt))),xr-.5*Zt-(gt.height-er)<Kn&&(er+=Kn-(xr-.5*Zt-(gt.height-er)));var Xr=-(xr-.5*Zt);_r=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:er},{type:"elem",elem:Rt,shift:Xr},{type:"elem",elem:Le,shift:-wn}]},d)}else{var Er=wn-Le.depth-(gt.height-er);Er<Kn&&(wn+=.5*(Kn-Er),er+=.5*(Kn-Er)),_r=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:er},{type:"elem",elem:Le,shift:-wn}]},d)}ee=d.havingStyle(f),_r.height*=ee.sizeMultiplier/d.sizeMultiplier,_r.depth*=ee.sizeMultiplier/d.sizeMultiplier;var Qr;f.size===g.DISPLAY.size?Qr=d.fontMetrics().delim1:Qr=d.fontMetrics().delim2;var ri,ai;return l.leftDelim==null?ri=ti(d,["mopen"]):ri=Ri.customSizedDelim(l.leftDelim,Qr,!0,d.havingStyle(f),l.mode,["mopen"]),l.continued?ai=Ke.makeSpan([]):l.rightDelim==null?ai=ti(d,["mclose"]):ai=Ri.customSizedDelim(l.rightDelim,Qr,!0,d.havingStyle(f),l.mode,["mclose"]),Ke.makeSpan(["mord"].concat(ee.sizingClasses(d)),[ri,Ke.makeSpan(["mfrac"],[_r]),ai],d)},rs=function(l,d){var f=new Wt.MathNode("mfrac",[bn(l.numer,d),bn(l.denom,d)]);if(!l.hasBarLine)f.setAttribute("linethickness","0px");else if(l.barSize){var m=nt(l.barSize,d);f.setAttribute("linethickness",m+"em")}var I=_s(l.size,d.style);if(I.size!==d.style.size){f=new Wt.MathNode("mstyle",[f]);var ee=I.size===g.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",ee),f.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Le=[];if(l.leftDelim!=null){var Be=new Wt.MathNode("mo",[new Wt.TextNode(l.leftDelim.replace("\\",""))]);Be.setAttribute("fence","true"),Le.push(Be)}if(Le.push(f),l.rightDelim!=null){var Ve=new Wt.MathNode("mo",[new Wt.TextNode(l.rightDelim.replace("\\",""))]);Ve.setAttribute("fence","true"),Le.push(Ve)}return vr(Le)}return f};En({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0],ee=d[1],Le,Be=null,Ve=null,gt="auto";switch(m){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Le=!0;break;case"\\\\atopfrac":Le=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Le=!1,Be="(",Ve=")";break;case"\\\\bracefrac":Le=!1,Be="\\{",Ve="\\}";break;case"\\\\brackfrac":Le=!1,Be="[",Ve="]";break;default:throw new Error("Unrecognized genfrac command")}switch(m){case"\\cfrac":case"\\dfrac":case"\\dbinom":gt="display";break;case"\\tfrac":case"\\tbinom":gt="text";break}return{type:"genfrac",mode:f.mode,continued:m==="\\cfrac",numer:I,denom:ee,hasBarLine:Le,leftDelim:Be,rightDelim:Ve,size:gt,barSize:null}},htmlBuilder:ns,mathmlBuilder:rs}),En({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,f=l.funcName,m=l.token,I;switch(f){case"\\over":I="\\frac";break;case"\\choose":I="\\binom";break;case"\\atop":I="\\\\atopfrac";break;case"\\brace":I="\\\\bracefrac";break;case"\\brack":I="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:I,token:m}}});var Zi=["display","text","script","scriptscript"],Ba=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};En({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var f=l.parser,m=d[4],I=d[5],ee=On(d[0],"atom");ee&&(ee=Hn(d[0],"open"));var Le=ee?Ba(ee.text):null,Be=On(d[1],"atom");Be&&(Be=Hn(d[1],"close"));var Ve=Be?Ba(Be.text):null,gt=un(d[2],"size"),Rt,Zt=null;gt.isBlank?Rt=!0:(Zt=gt.value,Rt=Zt.number>0);var gn="auto",wn=On(d[3],"ordgroup");if(wn){if(wn.body.length>0){var Kn=un(wn.body[0],"textord");gn=Zi[Number(Kn.text)]}}else wn=un(d[3],"textord"),gn=Zi[Number(wn.text)];return{type:"genfrac",mode:f.mode,numer:m,denom:I,continued:!1,hasBarLine:Rt,barSize:Zt,leftDelim:Le,rightDelim:Ve,size:gn}},htmlBuilder:ns,mathmlBuilder:rs}),En({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=l.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:un(d[0],"size").value,token:I}}}),En({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0],ee=k(un(d[1],"infix").size),Le=d[2],Be=ee.number>0;return{type:"genfrac",mode:f.mode,numer:I,denom:Le,continued:!1,hasBarLine:Be,barSize:ee,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ns,mathmlBuilder:rs});var xs=function(l,d){var f=d.style,m,I,ee=On(l,"supsub");ee?(m=ee.sup?ar(ee.sup,d.havingStyle(f.sup()),d):ar(ee.sub,d.havingStyle(f.sub()),d),I=un(ee.base,"horizBrace")):I=un(l,"horizBrace");var Le=ar(I.base,d.havingBaseStyle(g.DISPLAY)),Be=Zn.svgSpan(I,d),Ve;if(I.isOver?(Ve=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:.1},{type:"elem",elem:Be}]},d),Ve.children[0].children[0].children[1].classes.push("svg-align")):(Ve=Ke.makeVList({positionType:"bottom",positionData:Le.depth+.1+Be.height,children:[{type:"elem",elem:Be},{type:"kern",size:.1},{type:"elem",elem:Le}]},d),Ve.children[0].children[0].children[0].classes.push("svg-align")),m){var gt=Ke.makeSpan(["mord",I.isOver?"mover":"munder"],[Ve],d);I.isOver?Ve=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:gt},{type:"kern",size:.2},{type:"elem",elem:m}]},d):Ve=Ke.makeVList({positionType:"bottom",positionData:gt.depth+.2+m.height+m.depth,children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:gt}]},d)}return Ke.makeSpan(["mord",I.isOver?"mover":"munder"],[Ve],d)},Hs=function(l,d){var f=Zn.mathMLnode(l.label);return new Wt.MathNode(l.isOver?"mover":"munder",[bn(l.base,d),f])};En({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName;return{type:"horizBrace",mode:f.mode,label:m,isOver:/^\\over/.test(m),base:d[0]}},htmlBuilder:xs,mathmlBuilder:Hs}),En({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[1],I=un(d[0],"url").url;return f.settings.isTrusted({command:"\\href",url:I})?{type:"href",mode:f.mode,href:I,body:dr(m)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var f=gr(l.body,d,!1);return Ke.makeAnchor(l.href,[],f,d)},mathmlBuilder:function(l,d){var f=xn(l.body,d);return f instanceof Lr||(f=new Lr("mrow",[f])),f.setAttribute("href",l.href),f}}),En({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=un(d[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:m}))return f.formatUnsupportedCmd("\\url");for(var I=[],ee=0;ee<m.length;ee++){var Le=m[ee];Le==="~"&&(Le="\\textasciitilde"),I.push({type:"textord",mode:"text",text:Le})}var Be={type:"text",mode:f.mode,font:"\\texttt",body:I};return{type:"href",mode:f.mode,href:m,body:dr(Be)}}}),En({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"htmlmathml",mode:f.mode,html:dr(d[0]),mathml:dr(d[1])}},htmlBuilder:function(l,d){var f=gr(l.html,d,!1);return Ke.makeFragment(f)},mathmlBuilder:function(l,d){return xn(l.mathml,d)}});var $a=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new X("Invalid size: '"+l+"' in \\includegraphics");var f={number:+(d[1]+d[2]),unit:d[3]};if(!Je(f))throw new X("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};En({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,f){var m=l.parser,I={number:0,unit:"em"},ee={number:.9,unit:"em"},Le={number:0,unit:"em"},Be="";if(f[0])for(var Ve=un(f[0],"raw").string,gt=Ve.split(","),Rt=0;Rt<gt.length;Rt++){var Zt=gt[Rt].split("=");if(Zt.length===2){var gn=Zt[1].trim();switch(Zt[0].trim()){case"alt":Be=gn;break;case"width":I=$a(gn);break;case"height":ee=$a(gn);break;case"totalheight":Le=$a(gn);break;default:throw new X("Invalid key: '"+Zt[0]+"' in \\includegraphics.")}}}var wn=un(d[0],"url").url;return Be===""&&(Be=wn,Be=Be.replace(/^.*[\\/]/,""),Be=Be.substring(0,Be.lastIndexOf("."))),m.settings.isTrusted({command:"\\includegraphics",url:wn})?{type:"includegraphics",mode:m.mode,alt:Be,width:I,height:ee,totalheight:Le,src:wn}:m.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var f=nt(l.height,d),m=0;l.totalheight.number>0&&(m=nt(l.totalheight,d)-f,m=Number(m.toFixed(2)));var I=0;l.width.number>0&&(I=nt(l.width,d));var ee={height:f+m+"em"};I>0&&(ee.width=I+"em"),m>0&&(ee.verticalAlign=-m+"em");var Le=new De(l.src,l.alt,ee);return Le.height=f,Le.depth=m,Le},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mglyph",[]);f.setAttribute("alt",l.alt);var m=nt(l.height,d),I=0;if(l.totalheight.number>0&&(I=nt(l.totalheight,d)-m,I=I.toFixed(2),f.setAttribute("valign","-"+I+"em")),f.setAttribute("height",m+I+"em"),l.width.number>0){var ee=nt(l.width,d);f.setAttribute("width",ee+"em")}return f.setAttribute("src",l.src),f}}),En({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=un(d[0],"size");if(f.settings.strict){var ee=m[1]==="m",Le=I.value.unit==="mu";ee?(Le||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" supports only mu units, "+("not "+I.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" works only in math mode")):Le&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:I.value}},htmlBuilder:function(l,d){return Ke.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var f=nt(l.dimension,d);return new Wt.SpaceNode(f)}}),En({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"lap",mode:f.mode,alignment:m.slice(5),body:I}},htmlBuilder:function(l,d){var f;l.alignment==="clap"?(f=Ke.makeSpan([],[ar(l.body,d)]),f=Ke.makeSpan(["inner"],[f],d)):f=Ke.makeSpan(["inner"],[ar(l.body,d)]);var m=Ke.makeSpan(["fix"],[]),I=Ke.makeSpan([l.alignment],[f,m],d),ee=Ke.makeSpan(["strut"]);return ee.style.height=I.height+I.depth+"em",ee.style.verticalAlign=-I.depth+"em",I.children.unshift(ee),I=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I}]},d),Ke.makeSpan(["mord"],[I],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]);if(l.alignment!=="rlap"){var m=l.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",m+"width")}return f.setAttribute("width","0px"),f}}),En({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var f=l.funcName,m=l.parser,I=m.mode;m.switchMode("math");var ee=f==="\\("?"\\)":"$",Le=m.parseExpression(!1,ee);return m.expect(ee),m.switchMode(I),{type:"styling",mode:m.mode,style:"text",body:Le}}}),En({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new X("Mismatched "+l.funcName)}});var is=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}};En({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var f=l.parser;return{type:"mathchoice",mode:f.mode,display:dr(d[0]),text:dr(d[1]),script:dr(d[2]),scriptscript:dr(d[3])}},htmlBuilder:function(l,d){var f=is(l,d),m=gr(f,d,!1);return Ke.makeFragment(m)},mathmlBuilder:function(l,d){var f=is(l,d);return xn(f,d)}});var za=function(l,d,f,m,I,ee,Le){l=Ke.makeSpan([],[l]);var Be,Ve;if(d){var gt=ar(d,m.havingStyle(I.sup()),m);Ve={elem:gt,kern:Math.max(m.fontMetrics().bigOpSpacing1,m.fontMetrics().bigOpSpacing3-gt.depth)}}if(f){var Rt=ar(f,m.havingStyle(I.sub()),m);Be={elem:Rt,kern:Math.max(m.fontMetrics().bigOpSpacing2,m.fontMetrics().bigOpSpacing4-Rt.height)}}var Zt;if(Ve&&Be){var gn=m.fontMetrics().bigOpSpacing5+Be.elem.height+Be.elem.depth+Be.kern+l.depth+Le;Zt=Ke.makeVList({positionType:"bottom",positionData:gn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Be.elem,marginLeft:-ee+"em"},{type:"kern",size:Be.kern},{type:"elem",elem:l},{type:"kern",size:Ve.kern},{type:"elem",elem:Ve.elem,marginLeft:ee+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else if(Be){var wn=l.height-Le;Zt=Ke.makeVList({positionType:"top",positionData:wn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Be.elem,marginLeft:-ee+"em"},{type:"kern",size:Be.kern},{type:"elem",elem:l}]},m)}else if(Ve){var Kn=l.depth+Le;Zt=Ke.makeVList({positionType:"bottom",positionData:Kn,children:[{type:"elem",elem:l},{type:"kern",size:Ve.kern},{type:"elem",elem:Ve.elem,marginLeft:ee+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else return l;return Ke.makeSpan(["mop","op-limits"],[Zt],m)},Es=["\\smallint"],Xi=function(l,d){var f,m,I=!1,ee,Le=On(l,"supsub");Le?(f=Le.sup,m=Le.sub,ee=un(Le.base,"op"),I=!0):ee=un(l,"op");var Be=d.style,Ve=!1;Be.size===g.DISPLAY.size&&ee.symbol&&!P.contains(Es,ee.name)&&(Ve=!0);var gt;if(ee.symbol){var Rt=Ve?"Size2-Regular":"Size1-Regular",Zt="";if((ee.name==="\\oiint"||ee.name==="\\oiiint")&&(Zt=ee.name.substr(1),ee.name=Zt==="oiint"?"\\iint":"\\iiint"),gt=Ke.makeSymbol(ee.name,Rt,"math",d,["mop","op-symbol",Ve?"large-op":"small-op"]),Zt.length>0){var gn=gt.italic,wn=Ke.staticSvg(Zt+"Size"+(Ve?"2":"1"),d);gt=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:gt,shift:0},{type:"elem",elem:wn,shift:Ve?.08:0}]},d),ee.name="\\"+Zt,gt.classes.unshift("mop"),gt.italic=gn}}else if(ee.body){var Kn=gr(ee.body,d,!0);Kn.length===1&&Kn[0]instanceof oe?(gt=Kn[0],gt.classes[0]="mop"):gt=Ke.makeSpan(["mop"],Ke.tryCombineChars(Kn),d)}else{for(var er=[],_r=1;_r<ee.name.length;_r++)er.push(Ke.mathsym(ee.name[_r],ee.mode,d));gt=Ke.makeSpan(["mop"],er,d)}var Er=0,xr=0;return(gt instanceof oe||ee.name==="\\oiint"||ee.name==="\\oiiint")&&!ee.suppressBaseShift&&(Er=(gt.height-gt.depth)/2-d.fontMetrics().axisHeight,xr=gt.italic),I?za(gt,f,m,d,Be,xr,Er):(Er&&(gt.style.position="relative",gt.style.top=Er+"em"),gt)},Ia=function(l,d){var f;if(l.symbol)f=new Lr("mo",[sr(l.name,l.mode)]),P.contains(Es,l.name)&&f.setAttribute("largeop","false");else if(l.body)f=new Lr("mo",Mn(l.body,d));else{f=new Lr("mi",[new hi(l.name.slice(1))]);var m=new Lr("mo",[sr("\u2061","text")]);l.parentIsSupSub?f=new Lr("mo",[f,m]):f=fi([f,m])}return f},Zs={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};En({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 f=l.parser,m=l.funcName,I=m;return I.length===1&&(I=Zs[I]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:I}},htmlBuilder:Xi,mathmlBuilder:Ia}),En({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=d[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:dr(m)}},htmlBuilder:Xi,mathmlBuilder:Ia});var ws={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};En({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,f=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Xi,mathmlBuilder:Ia}),En({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,f=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:Xi,mathmlBuilder:Ia}),En({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,f=l.funcName,m=f;return m.length===1&&(m=ws[m]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:Xi,mathmlBuilder:Ia});var as=function(l,d){var f,m,I=!1,ee,Le=On(l,"supsub");Le?(f=Le.sup,m=Le.sub,ee=un(Le.base,"operatorname"),I=!0):ee=un(l,"operatorname");var Be;if(ee.body.length>0){for(var Ve=ee.body.map(function(gn){var wn=gn.text;return typeof wn=="string"?{type:"textord",mode:gn.mode,text:wn}:gn}),gt=gr(Ve,d.withFont("mathrm"),!0),Rt=0;Rt<gt.length;Rt++){var Zt=gt[Rt];Zt instanceof oe&&(Zt.text=Zt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Be=Ke.makeSpan(["mop"],gt,d)}else Be=Ke.makeSpan(["mop"],[],d);return I?za(Be,f,m,d,d.style,0,0):Be},js=function(l,d){for(var f=Mn(l.body,d.withFont("mathrm")),m=!0,I=0;I<f.length;I++){var ee=f[I];if(!(ee instanceof Wt.SpaceNode))if(ee instanceof Wt.MathNode)switch(ee.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Le=ee.children[0];ee.children.length===1&&Le instanceof Wt.TextNode?Le.text=Le.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):m=!1;break}default:m=!1}else m=!1}if(m){var Be=f.map(function(Rt){return Rt.toText()}).join("");f=[new Wt.TextNode(Be)]}var Ve=new Wt.MathNode("mi",f);Ve.setAttribute("mathvariant","normal");var gt=new Wt.MathNode("mo",[sr("\u2061","text")]);return l.parentIsSupSub?new Wt.MathNode("mo",[Ve,gt]):Wt.newDocumentFragment([Ve,gt])};En({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=l.funcName,I=d[0];return{type:"operatorname",mode:f.mode,body:dr(I),alwaysHandleSupSub:m==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:as,mathmlBuilder:js}),hr({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?Ke.makeFragment(gr(l.body,d,!1)):Ke.makeSpan(["mord"],gr(l.body,d,!0),d)},mathmlBuilder:function(l,d){return xn(l.body,d,!0)}}),En({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var f=l.parser,m=d[0];return{type:"overline",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=ar(l.body,d.havingCrampedStyle()),m=Ke.makeLineSpan("overline-line",d),I=d.fontMetrics().defaultRuleThickness,ee=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*I},{type:"elem",elem:m},{type:"kern",size:I}]},d);return Ke.makeSpan(["mord","overline"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[new Wt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var m=new Wt.MathNode("mover",[bn(l.body,d),f]);return m.setAttribute("accent","true"),m}}),En({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"phantom",mode:f.mode,body:dr(m)}},htmlBuilder:function(l,d){var f=gr(l.body,d.withPhantom(),!1);return Ke.makeFragment(f)},mathmlBuilder:function(l,d){var f=Mn(l.body,d);return new Wt.MathNode("mphantom",f)}}),En({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"hphantom",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=Ke.makeSpan([],[ar(l.body,d.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var m=0;m<f.children.length;m++)f.children[m].height=0,f.children[m].depth=0;return f=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d),Ke.makeSpan(["mord"],[f],d)},mathmlBuilder:function(l,d){var f=Mn(dr(l.body),d),m=new Wt.MathNode("mphantom",f),I=new Wt.MathNode("mpadded",[m]);return I.setAttribute("height","0px"),I.setAttribute("depth","0px"),I}}),En({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser,m=d[0];return{type:"vphantom",mode:f.mode,body:m}},htmlBuilder:function(l,d){var f=Ke.makeSpan(["inner"],[ar(l.body,d.withPhantom())]),m=Ke.makeSpan(["fix"],[]);return Ke.makeSpan(["mord","rlap"],[f,m],d)},mathmlBuilder:function(l,d){var f=Mn(dr(l.body),d),m=new Wt.MathNode("mphantom",f),I=new Wt.MathNode("mpadded",[m]);return I.setAttribute("width","0px"),I}}),En({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var f=l.parser,m=un(d[0],"size").value,I=d[1];return{type:"raisebox",mode:f.mode,dy:m,body:I}},htmlBuilder:function(l,d){var f=ar(l.body,d),m=nt(l.dy,d);return Ke.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]),m=l.dy.number+l.dy.unit;return f.setAttribute("voffset",m),f}}),En({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,f){var m=l.parser,I=f[0],ee=un(d[0],"size"),Le=un(d[1],"size");return{type:"rule",mode:m.mode,shift:I&&un(I,"size").value,width:ee.value,height:Le.value}},htmlBuilder:function(l,d){var f=Ke.makeSpan(["mord","rule"],[],d),m=nt(l.width,d),I=nt(l.height,d),ee=l.shift?nt(l.shift,d):0;return f.style.borderRightWidth=m+"em",f.style.borderTopWidth=I+"em",f.style.bottom=ee+"em",f.width=m,f.height=I+ee,f.depth=-ee,f.maxFontSize=I*1.125*d.sizeMultiplier,f},mathmlBuilder:function(l,d){var f=nt(l.width,d),m=nt(l.height,d),I=l.shift?nt(l.shift,d):0,ee=d.color&&d.getColor()||"black",Le=new Wt.MathNode("mspace");Le.setAttribute("mathbackground",ee),Le.setAttribute("width",f+"em"),Le.setAttribute("height",m+"em");var Be=new Wt.MathNode("mpadded",[Le]);return I>=0?Be.setAttribute("height","+"+I+"em"):(Be.setAttribute("height",I+"em"),Be.setAttribute("depth","+"+-I+"em")),Be.setAttribute("voffset",I+"em"),Be}});function ss(te,l,d){for(var f=gr(te,l,!1),m=l.sizeMultiplier/d.sizeMultiplier,I=0;I<f.length;I++){var ee=f[I].classes.indexOf("sizing");ee<0?Array.prototype.push.apply(f[I].classes,l.sizingClasses(d)):f[I].classes[ee+1]==="reset-size"+l.size&&(f[I].classes[ee+1]="reset-size"+d.size),f[I].height*=m,f[I].depth*=m}return Ke.makeFragment(f)}var La=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ws=function(l,d){var f=d.havingSize(l.size);return ss(l.body,f,d)};En({type:"sizing",names:La,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,m=l.funcName,I=l.parser,ee=I.parseExpression(!1,f);return{type:"sizing",mode:I.mode,size:La.indexOf(m)+1,body:ee}},htmlBuilder:Ws,mathmlBuilder:function(l,d){var f=d.havingSize(l.size),m=Mn(l.body,f),I=new Wt.MathNode("mstyle",m);return I.setAttribute("mathsize",f.sizeMultiplier+"em"),I}}),En({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,f){var m=l.parser,I=!1,ee=!1,Le=f[0]&&un(f[0],"ordgroup");if(Le)for(var Be="",Ve=0;Ve<Le.body.length;++Ve){var gt=Le.body[Ve];if(Be=gt.text,Be==="t")I=!0;else if(Be==="b")ee=!0;else{I=!1,ee=!1;break}}else I=!0,ee=!0;var Rt=d[0];return{type:"smash",mode:m.mode,body:Rt,smashHeight:I,smashDepth:ee}},htmlBuilder:function(l,d){var f=Ke.makeSpan([],[ar(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return f;if(l.smashHeight&&(f.height=0,f.children))for(var m=0;m<f.children.length;m++)f.children[m].height=0;if(l.smashDepth&&(f.depth=0,f.children))for(var I=0;I<f.children.length;I++)f.children[I].depth=0;var ee=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mpadded",[bn(l.body,d)]);return l.smashHeight&&f.setAttribute("height","0px"),l.smashDepth&&f.setAttribute("depth","0px"),f}}),En({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,f){var m=l.parser,I=f[0],ee=d[0];return{type:"sqrt",mode:m.mode,body:ee,index:I}},htmlBuilder:function(l,d){var f=ar(l.body,d.havingCrampedStyle());f.height===0&&(f.height=d.fontMetrics().xHeight),f=Ke.wrapFragment(f,d);var m=d.fontMetrics(),I=m.defaultRuleThickness,ee=I;d.style.id<g.TEXT.id&&(ee=d.fontMetrics().xHeight);var Le=I+ee/4,Be=f.height+f.depth+Le+I,Ve=Ri.sqrtImage(Be,d),gt=Ve.span,Rt=Ve.ruleWidth,Zt=Ve.advanceWidth,gn=gt.height-Rt;gn>f.height+f.depth+Le&&(Le=(Le+gn-f.height-f.depth)/2);var wn=gt.height-f.height-Le-Rt;f.style.paddingLeft=Zt+"em";var Kn=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+wn)},{type:"elem",elem:gt},{type:"kern",size:Rt}]},d);if(l.index){var er=d.havingStyle(g.SCRIPTSCRIPT),_r=ar(l.index,er,d),Er=.6*(Kn.height-Kn.depth),xr=Ke.makeVList({positionType:"shift",positionData:-Er,children:[{type:"elem",elem:_r}]},d),Xr=Ke.makeSpan(["root"],[xr]);return Ke.makeSpan(["mord","sqrt"],[Xr,Kn],d)}else return Ke.makeSpan(["mord","sqrt"],[Kn],d)},mathmlBuilder:function(l,d){var f=l.body,m=l.index;return m?new Wt.MathNode("mroot",[bn(f,d),bn(m,d)]):new Wt.MathNode("msqrt",[bn(f,d)])}});var Ss={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};En({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var f=l.breakOnTokenText,m=l.funcName,I=l.parser,ee=I.parseExpression(!0,f),Le=m.slice(1,m.length-5);return{type:"styling",mode:I.mode,style:Le,body:ee}},htmlBuilder:function(l,d){var f=Ss[l.style],m=d.havingStyle(f).withFont("");return ss(l.body,m,d)},mathmlBuilder:function(l,d){var f=Ss[l.style],m=d.havingStyle(f),I=Mn(l.body,m),ee=new Wt.MathNode("mstyle",I),Le={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Be=Le[l.style];return ee.setAttribute("scriptlevel",Be[0]),ee.setAttribute("displaystyle",Be[1]),ee}});var Gs=function(l,d){var f=l.base;if(f)if(f.type==="op"){var m=f.limits&&(d.style.size===g.DISPLAY.size||f.alwaysHandleSupSub);return m?Xi:null}else if(f.type==="operatorname"){var I=f.alwaysHandleSupSub&&(d.style.size===g.DISPLAY.size||f.limits);return I?as:null}else{if(f.type==="accent")return P.isCharacterBox(f.base)?yr:null;if(f.type==="horizBrace"){var ee=!l.sub;return ee===f.isOver?xs:null}else return null}else return null};hr({type:"supsub",htmlBuilder:function(l,d){var f=Gs(l,d);if(f)return f(l,d);var m=l.base,I=l.sup,ee=l.sub,Le=ar(m,d),Be,Ve,gt=d.fontMetrics(),Rt=0,Zt=0,gn=m&&P.isCharacterBox(m);if(I){var wn=d.havingStyle(d.style.sup());Be=ar(I,wn,d),gn||(Rt=Le.height-wn.fontMetrics().supDrop*wn.sizeMultiplier/d.sizeMultiplier)}if(ee){var Kn=d.havingStyle(d.style.sub());Ve=ar(ee,Kn,d),gn||(Zt=Le.depth+Kn.fontMetrics().subDrop*Kn.sizeMultiplier/d.sizeMultiplier)}var er;d.style===g.DISPLAY?er=gt.sup1:d.style.cramped?er=gt.sup3:er=gt.sup2;var _r=d.sizeMultiplier,Er=.5/gt.ptPerEm/_r+"em",xr=null;if(Ve){var Xr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Le instanceof oe||Xr)&&(xr=-Le.italic+"em")}var Qr;if(Be&&Ve){Rt=Math.max(Rt,er,Be.depth+.25*gt.xHeight),Zt=Math.max(Zt,gt.sub2);var ri=gt.defaultRuleThickness,ai=4*ri;if(Rt-Be.depth-(Ve.height-Zt)<ai){Zt=ai-(Rt-Be.depth)+Ve.height;var di=.8*gt.xHeight-(Rt-Be.depth);di>0&&(Rt+=di,Zt-=di)}var Ii=[{type:"elem",elem:Ve,shift:Zt,marginRight:Er,marginLeft:xr},{type:"elem",elem:Be,shift:-Rt,marginRight:Er}];Qr=Ke.makeVList({positionType:"individualShift",children:Ii},d)}else if(Ve){Zt=Math.max(Zt,gt.sub1,Ve.height-.8*gt.xHeight);var Ti=[{type:"elem",elem:Ve,marginLeft:xr,marginRight:Er}];Qr=Ke.makeVList({positionType:"shift",positionData:Zt,children:Ti},d)}else if(Be)Rt=Math.max(Rt,er,Be.depth+.25*gt.xHeight),Qr=Ke.makeVList({positionType:"shift",positionData:-Rt,children:[{type:"elem",elem:Be,marginRight:Er}]},d);else throw new Error("supsub must have either sup or sub.");var Wr=Br(Le,"right")||"mord";return Ke.makeSpan([Wr],[Le,Ke.makeSpan(["msupsub"],[Qr])],d)},mathmlBuilder:function(l,d){var f=!1,m,I,ee=On(l.base,"horizBrace");ee&&(I=!!l.sup,I===ee.isOver&&(f=!0,m=ee.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Le=[bn(l.base,d)];l.sub&&Le.push(bn(l.sub,d)),l.sup&&Le.push(bn(l.sup,d));var Be;if(f)Be=m?"mover":"munder";else if(l.sub)if(l.sup){var Rt=l.base;Rt&&Rt.type==="op"&&Rt.limits&&d.style===g.DISPLAY||Rt&&Rt.type==="operatorname"&&Rt.alwaysHandleSupSub&&(d.style===g.DISPLAY||Rt.limits)?Be="munderover":Be="msubsup"}else{var gt=l.base;gt&>.type==="op"&>.limits&&(d.style===g.DISPLAY||gt.alwaysHandleSupSub)||gt&>.type==="operatorname"&>.alwaysHandleSupSub&&(gt.limits||d.style===g.DISPLAY)?Be="munder":Be="msub"}else{var Ve=l.base;Ve&&Ve.type==="op"&&Ve.limits&&(d.style===g.DISPLAY||Ve.alwaysHandleSupSub)||Ve&&Ve.type==="operatorname"&&Ve.alwaysHandleSupSub&&(Ve.limits||d.style===g.DISPLAY)?Be="mover":Be="msup"}var Zt=new Wt.MathNode(Be,Le);return Zt}}),hr({type:"atom",htmlBuilder:function(l,d){return Ke.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[sr(l.text,l.mode)]);if(l.family==="bin"){var m=Dn(l,d);m==="bold-italic"&&f.setAttribute("mathvariant",m)}else l.family==="punct"?f.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&f.setAttribute("stretchy","false");return f}});var Cs={mi:"italic",mn:"normal",mtext:"normal"};hr({type:"mathord",htmlBuilder:function(l,d){return Ke.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mi",[sr(l.text,l.mode,d)]),m=Dn(l,d)||"italic";return m!==Cs[f.type]&&f.setAttribute("mathvariant",m),f}}),hr({type:"textord",htmlBuilder:function(l,d){return Ke.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var f=sr(l.text,l.mode,d),m=Dn(l,d)||"normal",I;return l.mode==="text"?I=new Wt.MathNode("mtext",[f]):/[0-9]/.test(l.text)?I=new Wt.MathNode("mn",[f]):l.text==="\\prime"?I=new Wt.MathNode("mo",[f]):I=new Wt.MathNode("mi",[f]),m!==Cs[I.type]&&I.setAttribute("mathvariant",m),I}});var Ua={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ka={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};hr({type:"spacing",htmlBuilder:function(l,d){if(Ka.hasOwnProperty(l.text)){var f=Ka[l.text].className||"";if(l.mode==="text"){var m=Ke.makeOrd(l,d,"textord");return m.classes.push(f),m}else return Ke.makeSpan(["mspace",f],[Ke.mathsym(l.text,l.mode,d)],d)}else{if(Ua.hasOwnProperty(l.text))return Ke.makeSpan(["mspace",Ua[l.text]],[],d);throw new X('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var f;if(Ka.hasOwnProperty(l.text))f=new Wt.MathNode("mtext",[new Wt.TextNode("\xA0")]);else{if(Ua.hasOwnProperty(l.text))return new Wt.MathNode("mspace");throw new X('Unknown type of space "'+l.text+'"')}return f}});var Ha=function(){var l=new Wt.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};hr({type:"tag",mathmlBuilder:function(l,d){var f=new Wt.MathNode("mtable",[new Wt.MathNode("mtr",[Ha(),new Wt.MathNode("mtd",[xn(l.body,d)]),Ha(),new Wt.MathNode("mtd",[xn(l.tag,d)])])]);return f.setAttribute("width","100%"),f}});var os={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ts={"\\textbf":"textbf","\\textmd":"textmd"},As={"\\textit":"textit","\\textup":"textup"},Ds=function(l,d){var f=l.font;return f?os[f]?d.withTextFontFamily(os[f]):Ts[f]?d.withTextFontWeight(Ts[f]):d.withTextFontShape(As[f]):d};En({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 f=l.parser,m=l.funcName,I=d[0];return{type:"text",mode:f.mode,body:dr(I),font:m}},htmlBuilder:function(l,d){var f=Ds(l,d),m=gr(l.body,f,!0);return Ke.makeSpan(["mord","text"],Ke.tryCombineChars(m),f)},mathmlBuilder:function(l,d){var f=Ds(l,d);return xn(l.body,f)}}),En({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var f=l.parser;return{type:"underline",mode:f.mode,body:d[0]}},htmlBuilder:function(l,d){var f=ar(l.body,d),m=Ke.makeLineSpan("underline-line",d),I=d.fontMetrics().defaultRuleThickness,ee=Ke.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:I},{type:"elem",elem:m},{type:"kern",size:3*I},{type:"elem",elem:f}]},d);return Ke.makeSpan(["mord","underline"],[ee],d)},mathmlBuilder:function(l,d){var f=new Wt.MathNode("mo",[new Wt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var m=new Wt.MathNode("munder",[bn(l.body,d),f]);return m.setAttribute("accentunder","true"),m}}),En({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,f){throw new X("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var f=Rs(l),m=[],I=d.havingStyle(d.style.text()),ee=0;ee<f.length;ee++){var Le=f[ee];Le==="~"&&(Le="\\textasciitilde"),m.push(Ke.makeSymbol(Le,"Typewriter-Regular",l.mode,I,["mord","texttt"]))}return Ke.makeSpan(["mord","text"].concat(I.sizingClasses(d)),Ke.tryCombineChars(m),I)},mathmlBuilder:function(l,d){var f=new Wt.TextNode(Rs(l)),m=new Wt.MathNode("mtext",[f]);return m.setAttribute("mathvariant","monospace"),m}});var Rs=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Vs=tr,xa=Vs,ls=`[ \r
|
|
|
]`,us="\\\\[a-zA-Z@]+",Ys="\\\\[^\uD800-\uDFFF]",Is=""+us+ls+"*",Xs=new RegExp("^("+us+")"+ls+"*$"),cs="[\u0300-\u036F]",Ei=new RegExp(cs+"+$"),ra="("+ls+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(cs+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(cs+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Is)+("|"+Ys+")"),Za=function(){function te(d,f){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=f,this.tokenRegex=new RegExp(ra,"g"),this.catcodes={"%":14}}var l=te.prototype;return l.setCatcode=function(f,m){this.catcodes[f]=m},l.lex=function(){var f=this.input,m=this.tokenRegex.lastIndex;if(m===f.length)return new Ce("EOF",new de(this,m,m));var I=this.tokenRegex.exec(f);if(I===null||I.index!==m)throw new X("Unexpected character: '"+f[m]+"'",new Ce(f[m],new de(this,m,m+1)));var ee=I[2]||" ";if(this.catcodes[ee]===14){var Le=f.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Le===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Le+1,this.lex()}var Be=ee.match(Xs);return Be&&(ee=Be[1]),new Ce(ee,new de(this,m,this.tokenRegex.lastIndex))},te}(),Qs=function(){function te(d,f){d===void 0&&(d={}),f===void 0&&(f={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=f,this.builtins=d,this.undefStack=[]}var l=te.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var m in f)f.hasOwnProperty(m)&&(f[m]===void 0?delete this.current[m]:this.current[m]=f[m])},l.has=function(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)},l.get=function(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]},l.set=function(f,m,I){if(I===void 0&&(I=!1),I){for(var ee=0;ee<this.undefStack.length;ee++)delete this.undefStack[ee][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=m)}else{var Le=this.undefStack[this.undefStack.length-1];Le&&!Le.hasOwnProperty(f)&&(Le[f]=this.current[f])}this.current[f]=m},te}(),Ls={},ja=Ls;function He(te,l){Ls[te]=l}He("\\@firstoftwo",function(te){var l=te.consumeArgs(2);return{tokens:l[0],numArgs:0}}),He("\\@secondoftwo",function(te){var l=te.consumeArgs(2);return{tokens:l[1],numArgs:0}}),He("\\@ifnextchar",function(te){var l=te.consumeArgs(3),d=te.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),He("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),He("\\TextOrMath",function(te){var l=te.consumeArgs(2);return te.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var ha={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};He("\\char",function(te){var l=te.popToken(),d,f="";if(l.text==="'")d=8,l=te.popToken();else if(l.text==='"')d=16,l=te.popToken();else if(l.text==="`")if(l=te.popToken(),l.text[0]==="\\")f=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new X("\\char` missing argument");f=l.text.charCodeAt(0)}else d=10;if(d){if(f=ha[l.text],f==null||f>=d)throw new X("Invalid base-"+d+" digit "+l.text);for(var m;(m=ha[te.future().text])!=null&&m<d;)f*=d,f+=m,te.popToken()}return"\\@char{"+f+"}"});var ds=function(l,d){var f=l.consumeArgs(1)[0];if(f.length!==1)throw new X("\\gdef's first argument must be a macro name");var m=f[0].text,I=0;for(f=l.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=l.consumeArgs(1)[0],f.length!==1)throw new X('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new X('Invalid argument number "'+f[0].text+'"');if(I++,parseInt(f[0].text)!==I)throw new X('Argument number "'+f[0].text+'" out of order');f=l.consumeArgs(1)[0]}return l.macros.set(m,{tokens:f,numArgs:I},d),""};He("\\gdef",function(te){return ds(te,!0)}),He("\\def",function(te){return ds(te,!1)}),He("\\global",function(te){var l=te.consumeArgs(1)[0];if(l.length!==1)throw new X("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return ds(te,!0);throw new X("Invalid command '"+d+"' after \\global")});var Wa=function(l,d,f){var m=l.consumeArgs(1)[0];if(m.length!==1)throw new X("\\newcommand's first argument must be a macro name");var I=m[0].text,ee=l.isDefined(I);if(ee&&!d)throw new X("\\newcommand{"+I+"} attempting to redefine "+(I+"; use \\renewcommand"));if(!ee&&!f)throw new X("\\renewcommand{"+I+"} when command "+I+" does not yet exist; use \\newcommand");var Le=0;if(m=l.consumeArgs(1)[0],m.length===1&&m[0].text==="["){for(var Be="",Ve=l.expandNextToken();Ve.text!=="]"&&Ve.text!=="EOF";)Be+=Ve.text,Ve=l.expandNextToken();if(!Be.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+Be);Le=parseInt(Be),m=l.consumeArgs(1)[0]}return l.macros.set(I,{tokens:m,numArgs:Le}),""};He("\\newcommand",function(te){return Wa(te,!1,!0)}),He("\\renewcommand",function(te){return Wa(te,!0,!1)}),He("\\providecommand",function(te){return Wa(te,!0,!0)}),He("\\bgroup","{"),He("\\egroup","}"),He("\\lq","`"),He("\\rq","'"),He("\\aa","\\r a"),He("\\AA","\\r A"),He("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),He("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),He("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),He("\u212C","\\mathscr{B}"),He("\u2130","\\mathscr{E}"),He("\u2131","\\mathscr{F}"),He("\u210B","\\mathscr{H}"),He("\u2110","\\mathscr{I}"),He("\u2112","\\mathscr{L}"),He("\u2133","\\mathscr{M}"),He("\u211B","\\mathscr{R}"),He("\u212D","\\mathfrak{C}"),He("\u210C","\\mathfrak{H}"),He("\u2128","\\mathfrak{Z}"),He("\\Bbbk","\\Bbb{k}"),He("\xB7","\\cdotp"),He("\\llap","\\mathllap{\\textrm{#1}}"),He("\\rlap","\\mathrlap{\\textrm{#1}}"),He("\\clap","\\mathclap{\\textrm{#1}}"),He("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),He("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),He("\\ne","\\neq"),He("\u2260","\\neq"),He("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),He("\u2209","\\notin"),He("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),He("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),He("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),He("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),He("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),He("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),He("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),He("\u27C2","\\perp"),He("\u203C","\\mathclose{!\\mkern-0.8mu!}"),He("\u220C","\\notni"),He("\u231C","\\ulcorner"),He("\u231D","\\urcorner"),He("\u231E","\\llcorner"),He("\u231F","\\lrcorner"),He("\xA9","\\copyright"),He("\xAE","\\textregistered"),He("\uFE0F","\\textregistered"),He("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),He("\u22EE","\\vdots"),He("\\varGamma","\\mathit{\\Gamma}"),He("\\varDelta","\\mathit{\\Delta}"),He("\\varTheta","\\mathit{\\Theta}"),He("\\varLambda","\\mathit{\\Lambda}"),He("\\varXi","\\mathit{\\Xi}"),He("\\varPi","\\mathit{\\Pi}"),He("\\varSigma","\\mathit{\\Sigma}"),He("\\varUpsilon","\\mathit{\\Upsilon}"),He("\\varPhi","\\mathit{\\Phi}"),He("\\varPsi","\\mathit{\\Psi}"),He("\\varOmega","\\mathit{\\Omega}"),He("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),He("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),He("\\boxed","\\fbox{$\\displaystyle{#1}$}"),He("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),He("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),He("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Qi={",":"\\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"};He("\\dots",function(te){var l="\\dotso",d=te.expandAfterFuture().text;return d in Qi?l=Qi[d]:(d.substr(0,4)==="\\not"||d in Lt.math&&P.contains(["bin","rel"],Lt.math[d].group))&&(l="\\dotsb"),l});var Nt={")":!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};He("\\dotso",function(te){var l=te.future().text;return l in Nt?"\\ldots\\,":"\\ldots"}),He("\\dotsc",function(te){var l=te.future().text;return l in Nt&&l!==","?"\\ldots\\,":"\\ldots"}),He("\\cdots",function(te){var l=te.future().text;return l in Nt?"\\@cdots\\,":"\\@cdots"}),He("\\dotsb","\\cdots"),He("\\dotsm","\\cdots"),He("\\dotsi","\\!\\cdots"),He("\\dotsx","\\ldots\\,"),He("\\DOTSI","\\relax"),He("\\DOTSB","\\relax"),He("\\DOTSX","\\relax"),He("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),He("\\,","\\tmspace+{3mu}{.1667em}"),He("\\thinspace","\\,"),He("\\>","\\mskip{4mu}"),He("\\:","\\tmspace+{4mu}{.2222em}"),He("\\medspace","\\:"),He("\\;","\\tmspace+{5mu}{.2777em}"),He("\\thickspace","\\;"),He("\\!","\\tmspace-{3mu}{.1667em}"),He("\\negthinspace","\\!"),He("\\negmedspace","\\tmspace-{4mu}{.2222em}"),He("\\negthickspace","\\tmspace-{5mu}{.277em}"),He("\\enspace","\\kern.5em "),He("\\enskip","\\hskip.5em\\relax"),He("\\quad","\\hskip1em\\relax"),He("\\qquad","\\hskip2em\\relax"),He("\\tag","\\@ifstar\\tag@literal\\tag@paren"),He("\\tag@paren","\\tag@literal{({#1})}"),He("\\tag@literal",function(te){if(te.macros.get("\\df@tag"))throw new X("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),He("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),He("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),He("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),He("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),He("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),He("\\\\","\\newline"),He("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var fs=Pe["Main-Regular"][84][1]-.7*Pe["Main-Regular"][65][1]+"em";He("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+fs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),He("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+fs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),He("\\hspace","\\@ifstar\\@hspacer\\@hspace"),He("\\@hspace","\\hskip #1\\relax"),He("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),He("\\ordinarycolon",":"),He("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),He("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),He("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),He("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),He("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),He("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),He("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),He("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),He("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),He("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),He("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),He("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),He("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),He("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),He("\u2237","\\dblcolon"),He("\u2239","\\eqcolon"),He("\u2254","\\coloneqq"),He("\u2255","\\eqqcolon"),He("\u2A74","\\Coloneqq"),He("\\ratio","\\vcentcolon"),He("\\coloncolon","\\dblcolon"),He("\\colonequals","\\coloneqq"),He("\\coloncolonequals","\\Coloneqq"),He("\\equalscolon","\\eqqcolon"),He("\\equalscoloncolon","\\Eqqcolon"),He("\\colonminus","\\coloneq"),He("\\coloncolonminus","\\Coloneq"),He("\\minuscolon","\\eqcolon"),He("\\minuscoloncolon","\\Eqcolon"),He("\\coloncolonapprox","\\Colonapprox"),He("\\coloncolonsim","\\Colonsim"),He("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),He("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),He("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),He("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),He("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),He("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),He("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),He("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),He("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),He("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),He("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),He("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),He("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),He("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),He("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),He("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),He("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),He("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),He("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),He("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),He("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),He("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),He("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),He("\u27E6","\\llbracket"),He("\u27E7","\\rrbracket"),He("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),He("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),He("\u2983","\\lBrace"),He("\u2984","\\rBrace"),He("\\darr","\\downarrow"),He("\\dArr","\\Downarrow"),He("\\Darr","\\Downarrow"),He("\\lang","\\langle"),He("\\rang","\\rangle"),He("\\uarr","\\uparrow"),He("\\uArr","\\Uparrow"),He("\\Uarr","\\Uparrow"),He("\\N","\\mathbb{N}"),He("\\R","\\mathbb{R}"),He("\\Z","\\mathbb{Z}"),He("\\alef","\\aleph"),He("\\alefsym","\\aleph"),He("\\Alpha","\\mathrm{A}"),He("\\Beta","\\mathrm{B}"),He("\\bull","\\bullet"),He("\\Chi","\\mathrm{X}"),He("\\clubs","\\clubsuit"),He("\\cnums","\\mathbb{C}"),He("\\Complex","\\mathbb{C}"),He("\\Dagger","\\ddagger"),He("\\diamonds","\\diamondsuit"),He("\\empty","\\emptyset"),He("\\Epsilon","\\mathrm{E}"),He("\\Eta","\\mathrm{H}"),He("\\exist","\\exists"),He("\\harr","\\leftrightarrow"),He("\\hArr","\\Leftrightarrow"),He("\\Harr","\\Leftrightarrow"),He("\\hearts","\\heartsuit"),He("\\image","\\Im"),He("\\infin","\\infty"),He("\\Iota","\\mathrm{I}"),He("\\isin","\\in"),He("\\Kappa","\\mathrm{K}"),He("\\larr","\\leftarrow"),He("\\lArr","\\Leftarrow"),He("\\Larr","\\Leftarrow"),He("\\lrarr","\\leftrightarrow"),He("\\lrArr","\\Leftrightarrow"),He("\\Lrarr","\\Leftrightarrow"),He("\\Mu","\\mathrm{M}"),He("\\natnums","\\mathbb{N}"),He("\\Nu","\\mathrm{N}"),He("\\Omicron","\\mathrm{O}"),He("\\plusmn","\\pm"),He("\\rarr","\\rightarrow"),He("\\rArr","\\Rightarrow"),He("\\Rarr","\\Rightarrow"),He("\\real","\\Re"),He("\\reals","\\mathbb{R}"),He("\\Reals","\\mathbb{R}"),He("\\Rho","\\mathrm{P}"),He("\\sdot","\\cdot"),He("\\sect","\\S"),He("\\spades","\\spadesuit"),He("\\sub","\\subset"),He("\\sube","\\subseteq"),He("\\supe","\\supseteq"),He("\\Tau","\\mathrm{T}"),He("\\thetasym","\\vartheta"),He("\\weierp","\\wp"),He("\\Zeta","\\mathrm{Z}"),He("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),He("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),He("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),He("\\blue","\\textcolor{##6495ed}{#1}"),He("\\orange","\\textcolor{##ffa500}{#1}"),He("\\pink","\\textcolor{##ff00af}{#1}"),He("\\red","\\textcolor{##df0030}{#1}"),He("\\green","\\textcolor{##28ae7b}{#1}"),He("\\gray","\\textcolor{gray}{#1}"),He("\\purple","\\textcolor{##9d38bd}{#1}"),He("\\blueA","\\textcolor{##ccfaff}{#1}"),He("\\blueB","\\textcolor{##80f6ff}{#1}"),He("\\blueC","\\textcolor{##63d9ea}{#1}"),He("\\blueD","\\textcolor{##11accd}{#1}"),He("\\blueE","\\textcolor{##0c7f99}{#1}"),He("\\tealA","\\textcolor{##94fff5}{#1}"),He("\\tealB","\\textcolor{##26edd5}{#1}"),He("\\tealC","\\textcolor{##01d1c1}{#1}"),He("\\tealD","\\textcolor{##01a995}{#1}"),He("\\tealE","\\textcolor{##208170}{#1}"),He("\\greenA","\\textcolor{##b6ffb0}{#1}"),He("\\greenB","\\textcolor{##8af281}{#1}"),He("\\greenC","\\textcolor{##74cf70}{#1}"),He("\\greenD","\\textcolor{##1fab54}{#1}"),He("\\greenE","\\textcolor{##0d923f}{#1}"),He("\\goldA","\\textcolor{##ffd0a9}{#1}"),He("\\goldB","\\textcolor{##ffbb71}{#1}"),He("\\goldC","\\textcolor{##ff9c39}{#1}"),He("\\goldD","\\textcolor{##e07d10}{#1}"),He("\\goldE","\\textcolor{##a75a05}{#1}"),He("\\redA","\\textcolor{##fca9a9}{#1}"),He("\\redB","\\textcolor{##ff8482}{#1}"),He("\\redC","\\textcolor{##f9685d}{#1}"),He("\\redD","\\textcolor{##e84d39}{#1}"),He("\\redE","\\textcolor{##bc2612}{#1}"),He("\\maroonA","\\textcolor{##ffbde0}{#1}"),He("\\maroonB","\\textcolor{##ff92c6}{#1}"),He("\\maroonC","\\textcolor{##ed5fa6}{#1}"),He("\\maroonD","\\textcolor{##ca337c}{#1}"),He("\\maroonE","\\textcolor{##9e034e}{#1}"),He("\\purpleA","\\textcolor{##ddd7ff}{#1}"),He("\\purpleB","\\textcolor{##c6b9fc}{#1}"),He("\\purpleC","\\textcolor{##aa87ff}{#1}"),He("\\purpleD","\\textcolor{##7854ab}{#1}"),He("\\purpleE","\\textcolor{##543b78}{#1}"),He("\\mintA","\\textcolor{##f5f9e8}{#1}"),He("\\mintB","\\textcolor{##edf2df}{#1}"),He("\\mintC","\\textcolor{##e0e5cc}{#1}"),He("\\grayA","\\textcolor{##f6f7f7}{#1}"),He("\\grayB","\\textcolor{##f0f1f2}{#1}"),He("\\grayC","\\textcolor{##e3e5e6}{#1}"),He("\\grayD","\\textcolor{##d6d8da}{#1}"),He("\\grayE","\\textcolor{##babec2}{#1}"),He("\\grayF","\\textcolor{##888d93}{#1}"),He("\\grayG","\\textcolor{##626569}{#1}"),He("\\grayH","\\textcolor{##3b3e40}{#1}"),He("\\grayI","\\textcolor{##21242c}{#1}"),He("\\kaBlue","\\textcolor{##314453}{#1}"),He("\\kaGreen","\\textcolor{##71B307}{#1}");var Ga={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Js=function(){function te(d,f,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=f,this.expansionCount=0,this.feed(d),this.macros=new Qs(ja,f.macros),this.mode=m,this.stack=[]}var l=te.prototype;return l.feed=function(f){this.lexer=new Za(f,this.settings)},l.switchMode=function(f){this.mode=f},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(f){this.stack.push(f)},l.pushTokens=function(f){var m;(m=this.stack).push.apply(m,f)},l.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},l.consumeArgs=function(f){for(var m=[],I=0;I<f;++I){this.consumeSpaces();var ee=this.popToken();if(ee.text==="{"){for(var Le=[],Be=1;Be!==0;){var Ve=this.popToken();if(Le.push(Ve),Ve.text==="{")++Be;else if(Ve.text==="}")--Be;else if(Ve.text==="EOF")throw new X("End of input in macro argument",ee)}Le.pop(),Le.reverse(),m[I]=Le}else{if(ee.text==="EOF")throw new X("End of input expecting macro argument");m[I]=[ee]}}return m},l.expandOnce=function(){var f=this.popToken(),m=f.text,I=this._getExpansion(m);if(I==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new X("Too many expansions: infinite loop or need to increase maxExpand setting");var ee=I.tokens;if(I.numArgs){var Le=this.consumeArgs(I.numArgs);ee=ee.slice();for(var Be=ee.length-1;Be>=0;--Be){var Ve=ee[Be];if(Ve.text==="#"){if(Be===0)throw new X("Incomplete placeholder at end of macro body",Ve);if(Ve=ee[--Be],Ve.text==="#")ee.splice(Be+1,1);else if(/^[1-9]$/.test(Ve.text)){var gt;(gt=ee).splice.apply(gt,[Be,2].concat(Le[+Ve.text-1]))}else throw new X("Not a valid argument number",Ve)}}}return this.pushTokens(ee),ee},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof Ce)if(f.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(f){if(this.macros.get(f)){var m=[],I=this.stack.length;for(this.pushToken(new Ce(f));this.stack.length>I;){var ee=this.expandOnce();ee instanceof Ce&&m.push(this.stack.pop())}return m}},l.expandMacroAsText=function(f){var m=this.expandMacro(f);return m&&m.map(function(I){return I.text}).join("")},l._getExpansion=function(f){var m=this.macros.get(f);if(m==null)return m;var I=typeof m=="function"?m(this):m;if(typeof I=="string"){var ee=0;if(I.indexOf("#")!==-1)for(var Le=I.replace(/##/g,"");Le.indexOf("#"+(ee+1))!==-1;)++ee;for(var Be=new Za(I,this.settings),Ve=[],gt=Be.lex();gt.text!=="EOF";)Ve.push(gt),gt=Be.lex();Ve.reverse();var Rt={tokens:Ve,numArgs:ee};return Rt}return I},l.isDefined=function(f){return this.macros.has(f)||xa.hasOwnProperty(f)||Lt.math.hasOwnProperty(f)||Lt.text.hasOwnProperty(f)||Ga.hasOwnProperty(f)},te}(),Ea={"\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"}},Os={\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"},Va=function(){function te(d,f){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Js(d,f,this.mode),this.settings=f,this.leftrightDepth=0}var l=te.prototype;return l.expect=function(f,m){if(m===void 0&&(m=!0),this.fetch().text!==f)throw new X("Expected '"+f+"', 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(f){this.mode=f,this.gullet.switchMode(f)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var f=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),f},l.parseExpression=function(f,m){for(var I=[];;){this.mode==="math"&&this.consumeSpaces();var ee=this.fetch();if(te.endOfExpression.indexOf(ee.text)!==-1||m&&ee.text===m||f&&xa[ee.text]&&xa[ee.text].infix)break;var Le=this.parseAtom(m);if(!Le)break;I.push(Le)}return this.mode==="text"&&this.formLigatures(I),this.handleInfixNodes(I)},l.handleInfixNodes=function(f){for(var m=-1,I,ee=0;ee<f.length;ee++){var Le=On(f[ee],"infix");if(Le){if(m!==-1)throw new X("only one infix operator per group",Le.token);m=ee,I=Le.replaceWith}}if(m!==-1&&I){var Be,Ve,gt=f.slice(0,m),Rt=f.slice(m+1);gt.length===1&>[0].type==="ordgroup"?Be=gt[0]:Be={type:"ordgroup",mode:this.mode,body:gt},Rt.length===1&&Rt[0].type==="ordgroup"?Ve=Rt[0]:Ve={type:"ordgroup",mode:this.mode,body:Rt};var Zt;return I==="\\\\abovefrac"?Zt=this.callFunction(I,[Be,f[m],Ve],[]):Zt=this.callFunction(I,[Be,Ve],[]),[Zt]}else return f},l.handleSupSubscript=function(f){var m=this.fetch(),I=m.text;this.consume();var ee=this.parseGroup(f,!1,te.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ee)throw new X("Expected group after '"+I+"'",m);return ee},l.formatUnsupportedCmd=function(f){for(var m=[],I=0;I<f.length;I++)m.push({type:"textord",mode:"text",text:f[I]});var ee={type:"text",mode:this.mode,body:m},Le={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ee]};return Le},l.parseAtom=function(f){var m=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return m;for(var I,ee;;){this.consumeSpaces();var Le=this.fetch();if(Le.text==="\\limits"||Le.text==="\\nolimits"){var Be=On(m,"op");if(Be){var Ve=Le.text==="\\limits";Be.limits=Ve,Be.alwaysHandleSupSub=!0}else if(Be=On(m,"operatorname"),Be&&Be.alwaysHandleSupSub){var gt=Le.text==="\\limits";Be.limits=gt}else throw new X("Limit controls must follow a math operator",Le);this.consume()}else if(Le.text==="^"){if(I)throw new X("Double superscript",Le);I=this.handleSupSubscript("superscript")}else if(Le.text==="_"){if(ee)throw new X("Double subscript",Le);ee=this.handleSupSubscript("subscript")}else if(Le.text==="'"){if(I)throw new X("Double superscript",Le);var Rt={type:"textord",mode:this.mode,text:"\\prime"},Zt=[Rt];for(this.consume();this.fetch().text==="'";)Zt.push(Rt),this.consume();this.fetch().text==="^"&&Zt.push(this.handleSupSubscript("superscript")),I={type:"ordgroup",mode:this.mode,body:Zt}}else break}return I||ee?{type:"supsub",mode:this.mode,base:m,sup:I,sub:ee}:m},l.parseFunction=function(f,m,I){var ee=this.fetch(),Le=ee.text,Be=xa[Le];if(!Be)return null;if(this.consume(),I!=null&&Be.greediness<=I)throw new X("Got function '"+Le+"' with no arguments"+(m?" as "+m:""),ee);if(this.mode==="text"&&!Be.allowedInText)throw new X("Can't use function '"+Le+"' in text mode",ee);if(this.mode==="math"&&Be.allowedInMath===!1)throw new X("Can't use function '"+Le+"' in math mode",ee);var Ve=this.parseArguments(Le,Be),gt=Ve.args,Rt=Ve.optArgs;return this.callFunction(Le,gt,Rt,ee,f)},l.callFunction=function(f,m,I,ee,Le){var Be={funcName:f,parser:this,token:ee,breakOnTokenText:Le},Ve=xa[f];if(Ve&&Ve.handler)return Ve.handler(Be,m,I);throw new X("No function handler for "+f)},l.parseArguments=function(f,m){var I=m.numArgs+m.numOptionalArgs;if(I===0)return{args:[],optArgs:[]};for(var ee=m.greediness,Le=[],Be=[],Ve=0;Ve<I;Ve++){var gt=m.argTypes&&m.argTypes[Ve],Rt=Ve<m.numOptionalArgs,Zt=Ve>0&&!Rt||Ve===0&&!Rt&&this.mode==="math",gn=this.parseGroupOfType("argument to '"+f+"'",gt,Rt,ee,Zt);if(!gn){if(Rt){Be.push(null);continue}throw new X("Expected group after '"+f+"'",this.fetch())}(Rt?Be:Le).push(gn)}return{args:Le,optArgs:Be}},l.parseGroupOfType=function(f,m,I,ee,Le){switch(m){case"color":return Le&&this.consumeSpaces(),this.parseColorGroup(I);case"size":return Le&&this.consumeSpaces(),this.parseSizeGroup(I);case"url":return this.parseUrlGroup(I,Le);case"math":case"text":return this.parseGroup(f,I,ee,void 0,m,Le);case"hbox":{var Be=this.parseGroup(f,I,ee,void 0,"text",Le);if(!Be)return Be;var Ve={type:"styling",mode:Be.mode,body:[Be],style:"text"};return Ve}case"raw":{if(Le&&this.consumeSpaces(),I&&this.fetch().text==="{")return null;var gt=this.parseStringGroup("raw",I,!0);if(gt)return{type:"raw",mode:"text",string:gt.text};throw new X("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,I,ee,void 0,void 0,Le);default:throw new X("Unknown group type as "+f,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(f,m,I){var ee=m?"[":"{",Le=m?"]":"}",Be=this.fetch();if(Be.text!==ee){if(m)return null;if(I&&Be.text!=="EOF"&&/[^{}[\]]/.test(Be.text))return this.consume(),Be}var Ve=this.mode;this.mode="text",this.expect(ee);for(var gt="",Rt=this.fetch(),Zt=0,gn=Rt,wn;(wn=this.fetch()).text!==Le||I&&Zt>0;){switch(wn.text){case"EOF":throw new X("Unexpected end of input in "+f,Rt.range(gn,gt));case ee:Zt++;break;case Le:Zt--;break}gn=wn,gt+=gn.text,this.consume()}return this.expect(Le),this.mode=Ve,Rt.range(gn,gt)},l.parseRegexGroup=function(f,m){var I=this.mode;this.mode="text";for(var ee=this.fetch(),Le=ee,Be="",Ve;(Ve=this.fetch()).text!=="EOF"&&f.test(Be+Ve.text);)Le=Ve,Be+=Le.text,this.consume();if(Be==="")throw new X("Invalid "+m+": '"+ee.text+"'",ee);return this.mode=I,ee.range(Le,Be)},l.parseColorGroup=function(f){var m=this.parseStringGroup("color",f);if(!m)return null;var I=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(m.text);if(!I)throw new X("Invalid color: '"+m.text+"'",m);var ee=I[0];return/^[0-9a-f]{6}$/i.test(ee)&&(ee="#"+ee),{type:"color-token",mode:this.mode,color:ee}},l.parseSizeGroup=function(f){var m,I=!1;if(!f&&this.fetch().text!=="{"?m=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):m=this.parseStringGroup("size",f),!m)return null;!f&&m.text.length===0&&(m.text="0pt",I=!0);var ee=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m.text);if(!ee)throw new X("Invalid size: '"+m.text+"'",m);var Le={number:+(ee[1]+ee[2]),unit:ee[3]};if(!Je(Le))throw new X("Invalid unit: '"+Le.unit+"'",m);return{type:"size",mode:this.mode,value:Le,isBlank:I}},l.parseUrlGroup=function(f,m){this.gullet.lexer.setCatcode("%",13);var I=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!I)return null;var ee=I.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ee}},l.parseGroup=function(f,m,I,ee,Le,Be){var Ve=this.mode;Le&&this.switchMode(Le),Be&&this.consumeSpaces();var gt=this.fetch(),Rt=gt.text,Zt;if(m?Rt==="[":Rt==="{"||Rt==="\\begingroup"){this.consume();var gn=te.endOfGroup[Rt];this.gullet.beginGroup();var wn=this.parseExpression(!1,gn),Kn=this.fetch();this.expect(gn),this.gullet.endGroup(),Zt={type:"ordgroup",mode:this.mode,loc:de.range(gt,Kn),body:wn,semisimple:Rt==="\\begingroup"||void 0}}else if(m)Zt=null;else if(Zt=this.parseFunction(ee,f,I)||this.parseSymbol(),Zt==null&&Rt[0]==="\\"&&!Ga.hasOwnProperty(Rt)){if(this.settings.throwOnError)throw new X("Undefined control sequence: "+Rt,gt);Zt=this.formatUnsupportedCmd(Rt),this.consume()}return Le&&this.switchMode(Ve),Zt},l.formLigatures=function(f){for(var m=f.length-1,I=0;I<m;++I){var ee=f[I],Le=ee.text;Le==="-"&&f[I+1].text==="-"&&(I+1<m&&f[I+2].text==="-"?(f.splice(I,3,{type:"textord",mode:"text",loc:de.range(ee,f[I+2]),text:"---"}),m-=2):(f.splice(I,2,{type:"textord",mode:"text",loc:de.range(ee,f[I+1]),text:"--"}),m-=1)),(Le==="'"||Le==="`")&&f[I+1].text===Le&&(f.splice(I,2,{type:"textord",mode:"text",loc:de.range(ee,f[I+1]),text:Le+Le}),m-=1)}},l.parseSymbol=function(){var f=this.fetch(),m=f.text;if(/^\\verb[^a-zA-Z]/.test(m)){this.consume();var I=m.slice(5),ee=I.charAt(0)==="*";if(ee&&(I=I.slice(1)),I.length<2||I.charAt(0)!==I.slice(-1))throw new X(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return I=I.slice(1,-1),{type:"verb",mode:"text",body:I,star:ee}}Os.hasOwnProperty(m[0])&&!Lt[this.mode][m[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+m[0]+'" used in math mode',f),m=Os[m[0]]+m.substr(1));var Le=Ei.exec(m);Le&&(m=m.substring(0,Le.index),m==="i"?m="\u0131":m==="j"&&(m="\u0237"));var Be;if(Lt[this.mode][m]){this.settings.strict&&this.mode==="math"&&$t.indexOf(m)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+m[0]+'" used in math mode',f);var Ve=Lt[this.mode][m].group,gt=de.range(f),Rt;if(dt.hasOwnProperty(Ve)){var Zt=Ve;Rt={type:"atom",mode:this.mode,family:Zt,loc:gt,text:m}}else Rt={type:Ve,mode:this.mode,loc:gt,text:m};Be=Rt}else if(m.charCodeAt(0)>=128)this.settings.strict&&(ze(m.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+m[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+m[0]+'"'+(" ("+m.charCodeAt(0)+")"),f)),Be={type:"textord",mode:"text",loc:de.range(f),text:m};else return null;if(this.consume(),Le)for(var gn=0;gn<Le[0].length;gn++){var wn=Le[0][gn];if(!Ea[wn])throw new X("Unknown accent ' "+wn+"'",f);var Kn=Ea[wn][this.mode];if(!Kn)throw new X("Accent "+wn+" unsupported in "+this.mode+" mode",f);Be={type:"accent",mode:this.mode,loc:de.range(f),label:Kn,isStretchy:!1,isShifty:!0,base:Be}}return Be},te}();Va.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Va.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Va.SUPSUB_GREEDINESS=1;var ks=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new Va(l,d);delete f.gullet.macros.current["\\df@tag"];var m=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new X("\\tag works only in display equations");f.gullet.feed("\\df@tag"),m=[{type:"tag",mode:"text",body:m,tag:f.parse()}]}return m},hs=ks,Ps=function(l,d,f){d.textContent="";var m=Ni(l,f).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."),Ps=function(){throw new X("KaTeX doesn't work in quirks mode.")});var wa=function(l,d){var f=Ni(l,d).toMarkup();return f},ps=function(l,d){var f=new N(d);return hs(l,f)},Oa=function(l,d,f){if(f.throwOnError||!(l instanceof X))throw l;var m=Ke.makeSpan(["katex-error"],[new oe(d)]);return m.setAttribute("title",l.toString()),m.setAttribute("style","color:"+f.errorColor),m},Ni=function(l,d){var f=new N(d);try{var m=hs(l,f);return Tr(m,l,f)}catch(I){return Oa(I,l,f)}},qs=function(l,d){var f=new N(d);try{var m=hs(l,f);return Rr(m,l,f)}catch(I){return Oa(I,l,f)}},Ms={version:"0.11.1",render:Ps,renderToString:wa,ParseError:X,__parse:ps,__renderToDomTree:Ni,__renderToHTMLTree:qs,__setFontMetrics:Qe,__defineSymbol:w,__defineMacro:He,__domTree:{Span:ne,Anchor:z,SymbolNode:oe,SvgNode:Q,PathNode:le,LineNode:ce}},eo=p.default=Ms}]).default})},32834:function(qt){(function(qe,p){qt.exports=p()})(this,function(){"use strict";function qe($e,Ze){for(var tt=0;tt<Ze.length;tt++){var ue=Ze[tt];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty($e,ue.key,ue)}}function p($e,Ze,tt){return Ze&&qe($e.prototype,Ze),tt&&qe($e,tt),$e}function M($e,Ze){if($e){if(typeof $e=="string")return Y($e,Ze);var tt=Object.prototype.toString.call($e).slice(8,-1);if(tt==="Object"&&$e.constructor&&(tt=$e.constructor.name),tt==="Map"||tt==="Set")return Array.from($e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return Y($e,Ze)}}function Y($e,Ze){(Ze==null||Ze>$e.length)&&(Ze=$e.length);for(var tt=0,ue=new Array(Ze);tt<Ze;tt++)ue[tt]=$e[tt];return ue}function de($e,Ze){var tt=typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(tt)return(tt=tt.call($e)).next.bind(tt);if(Array.isArray($e)||(tt=M($e))||Ze&&$e&&typeof $e.length=="number"){tt&&($e=tt);var ue=0;return function(){return ue>=$e.length?{done:!0}:{done:!1,value:$e[ue++]}}}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 Ce={exports:{}};function j(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function X($e){Ce.exports.defaults=$e}Ce.exports={defaults:j(),getDefaults:j,changeDefaults:X};var ve=/[&<>"']/,xe=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},v=function(Ze){return L[Ze]};function u($e,Ze){if(Ze){if(ve.test($e))return $e.replace(xe,v)}else if(s.test($e))return $e.replace(A,v);return $e}var y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b($e){return $e.replace(y,function(Ze,tt){return tt=tt.toLowerCase(),tt==="colon"?":":tt.charAt(0)==="#"?tt.charAt(1)==="x"?String.fromCharCode(parseInt(tt.substring(2),16)):String.fromCharCode(+tt.substring(1)):""})}var k=/(^|[^\[])\^/g;function ae($e,Ze){$e=$e.source||$e,Ze=Ze||"";var tt={replace:function(V,we){return we=we.source||we,we=we.replace(k,"$1"),$e=$e.replace(V,we),tt},getRegex:function(){return new RegExp($e,Ze)}};return tt}var P=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function G($e,Ze,tt){if($e){var ue;try{ue=decodeURIComponent(b(tt)).replace(P,"").toLowerCase()}catch(V){return null}if(ue.indexOf("javascript:")===0||ue.indexOf("vbscript:")===0||ue.indexOf("data:")===0)return null}Ze&&!N.test(tt)&&(tt=F(Ze,tt));try{tt=encodeURI(tt).replace(/%25/g,"%")}catch(V){return null}return tt}var U={},x=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,B=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F($e,Ze){U[" "+$e]||(x.test($e)?U[" "+$e]=$e+"/":U[" "+$e]=he($e,"/",!0)),$e=U[" "+$e];var tt=$e.indexOf(":")===-1;return Ze.substring(0,2)==="//"?tt?Ze:$e.replace(T,"$1")+Ze:Ze.charAt(0)==="/"?tt?Ze:$e.replace(B,"$1")+Ze:$e+Ze}var fe={exec:function(){}};function be($e){for(var Ze=1,tt,ue;Ze<arguments.length;Ze++){tt=arguments[Ze];for(ue in tt)Object.prototype.hasOwnProperty.call(tt,ue)&&($e[ue]=tt[ue])}return $e}function Re($e,Ze){var tt=$e.replace(/\|/g,function(we,Ne,H){for(var it=!1,Ee=Ne;--Ee>=0&&H[Ee]==="\\";)it=!it;return it?"|":" |"}),ue=tt.split(/ \|/),V=0;if(ue.length>Ze)ue.splice(Ze);else for(;ue.length<Ze;)ue.push("");for(;V<ue.length;V++)ue[V]=ue[V].trim().replace(/\\\|/g,"|");return ue}function he($e,Ze,tt){var ue=$e.length;if(ue===0)return"";for(var V=0;V<ue;){var we=$e.charAt(ue-V-1);if(we===Ze&&!tt)V++;else if(we!==Ze&&tt)V++;else break}return $e.substr(0,ue-V)}function W($e,Ze){if($e.indexOf(Ze[1])===-1)return-1;for(var tt=$e.length,ue=0,V=0;V<tt;V++)if($e[V]==="\\")V++;else if($e[V]===Ze[0])ue++;else if($e[V]===Ze[1]&&(ue--,ue<0))return V;return-1}function $($e){$e&&$e.sanitize&&!$e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function se($e,Ze){if(Ze<1)return"";for(var tt="";Ze>1;)Ze&1&&(tt+=$e),Ze>>=1,$e+=$e;return tt+$e}var D={escape:u,unescape:b,edit:ae,cleanUrl:G,resolveUrl:F,noopTest:fe,merge:be,splitCells:Re,rtrim:he,findClosingBracket:W,checkSanitizeDeprecation:$,repeatString:se},J=Ce.exports.defaults,K=D.rtrim,g=D.splitCells,E=D.escape,Z=D.findClosingBracket;function pe($e,Ze,tt){var ue=Ze.href,V=Ze.title?E(Ze.title):null,we=$e[1].replace(/\\([\[\]])/g,"$1");return $e[0].charAt(0)!=="!"?{type:"link",raw:tt,href:ue,title:V,text:we}:{type:"image",raw:tt,href:ue,title:V,text:E(we)}}function ze($e,Ze){var tt=$e.match(/^(\s+)(?:```)/);if(tt===null)return Ze;var ue=tt[1];return Ze.split(`
|
|
|
`).map(function(V){var we=V.match(/^\s+/);if(we===null)return V;var Ne=we[0];return Ne.length>=ue.length?V.slice(ue.length):V}).join(`
|
|
|
`)}var We=function(){function $e(tt){this.options=tt||J}var Ze=$e.prototype;return Ze.space=function(ue){var V=this.rules.block.newline.exec(ue);if(V)return V[0].length>1?{type:"space",raw:V[0]}:{raw:`
|
|
|
`}},Ze.code=function(ue){var V=this.rules.block.code.exec(ue);if(V){var we=V[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:V[0],codeBlockStyle:"indented",text:this.options.pedantic?we:K(we,`
|
|
|
`)}}},Ze.fences=function(ue){var V=this.rules.block.fences.exec(ue);if(V){var we=V[0],Ne=ze(we,V[3]||"");return{type:"code",raw:we,lang:V[2]?V[2].trim():V[2],text:Ne}}},Ze.heading=function(ue){var V=this.rules.block.heading.exec(ue);if(V){var we=V[2].trim();if(/#$/.test(we)){var Ne=K(we,"#");(this.options.pedantic||!Ne||/ $/.test(Ne))&&(we=Ne.trim())}return{type:"heading",raw:V[0],depth:V[1].length,text:we}}},Ze.nptable=function(ue){var V=this.rules.block.nptable.exec(ue);if(V){var we={type:"table",header:g(V[1].replace(/^ *| *\| *$/g,"")),align:V[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:V[3]?V[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:V[0]};if(we.header.length===we.align.length){var Ne=we.align.length,H;for(H=0;H<Ne;H++)/^ *-+: *$/.test(we.align[H])?we.align[H]="right":/^ *:-+: *$/.test(we.align[H])?we.align[H]="center":/^ *:-+ *$/.test(we.align[H])?we.align[H]="left":we.align[H]=null;for(Ne=we.cells.length,H=0;H<Ne;H++)we.cells[H]=g(we.cells[H],we.header.length);return we}}},Ze.hr=function(ue){var V=this.rules.block.hr.exec(ue);if(V)return{type:"hr",raw:V[0]}},Ze.blockquote=function(ue){var V=this.rules.block.blockquote.exec(ue);if(V){var we=V[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:V[0],text:we}}},Ze.list=function(ue){var V=this.rules.block.list.exec(ue);if(V){var we=V[0],Ne=V[2],H=Ne.length>1,it={type:"list",raw:we,ordered:H,start:H?+Ne.slice(0,-1):"",loose:!1,items:[]},Ee=V[0].match(this.rules.block.item),Tt=!1,Mt,Ut,dn,wt,Yt,Ue,mt,xt,Me,Te=Ee.length;dn=this.rules.block.listItemStart.exec(Ee[0]);for(var st=0;st<Te;st++){if(Mt=Ee[st],we=Mt,this.options.pedantic||(Me=Mt.match(new RegExp("\\n\\s*\\n {0,"+(dn[0].length-1)+"}\\S")),Me&&(Yt=Mt.length-Me.index+Ee.slice(st+1).join(`
|
|
|
`).length,it.raw=it.raw.substring(0,it.raw.length-Yt),Mt=Mt.substring(0,Me.index),we=Mt,Te=st+1)),st!==Te-1){if(wt=this.rules.block.listItemStart.exec(Ee[st+1]),this.options.pedantic?wt[1].length>dn[1].length:wt[1].length>=dn[0].length||wt[1].length>3){Ee.splice(st,2,Ee[st]+(!this.options.pedantic&&wt[1].length<dn[0].length&&!Ee[st].match(/\n$/)?"":`
|
|
|
`)+Ee[st+1]),st--,Te--;continue}else(!this.options.pedantic||this.options.smartLists?wt[2][wt[2].length-1]!==Ne[Ne.length-1]:H===(wt[2].length===1))&&(Yt=Ee.slice(st+1).join(`
|
|
|
`).length,it.raw=it.raw.substring(0,it.raw.length-Yt),st=Te-1);dn=wt}Ut=Mt.length,Mt=Mt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Mt.indexOf(`
|
|
|
`)&&(Ut-=Mt.length,Mt=this.options.pedantic?Mt.replace(/^ {1,4}/gm,""):Mt.replace(new RegExp("^ {1,"+Ut+"}","gm"),"")),Mt=K(Mt,`
|
|
|
`),st!==Te-1&&(we=we+`
|
|
|
`),Ue=Tt||/\n\n(?!\s*$)/.test(we),st!==Te-1&&(Tt=we.slice(-2)===`
|
|
|
|
|
|
`,Ue||(Ue=Tt)),Ue&&(it.loose=!0),this.options.gfm&&(mt=/^\[[ xX]\] /.test(Mt),xt=void 0,mt&&(xt=Mt[1]!==" ",Mt=Mt.replace(/^\[[ xX]\] +/,""))),it.items.push({type:"list_item",raw:we,task:mt,checked:xt,loose:Ue,text:Mt})}return it}},Ze.html=function(ue){var V=this.rules.block.html.exec(ue);if(V)return{type:this.options.sanitize?"paragraph":"html",raw:V[0],pre:!this.options.sanitizer&&(V[1]==="pre"||V[1]==="script"||V[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(V[0]):E(V[0]):V[0]}},Ze.def=function(ue){var V=this.rules.block.def.exec(ue);if(V){V[3]&&(V[3]=V[3].substring(1,V[3].length-1));var we=V[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:we,raw:V[0],href:V[2],title:V[3]}}},Ze.table=function(ue){var V=this.rules.block.table.exec(ue);if(V){var we={type:"table",header:g(V[1].replace(/^ *| *\| *$/g,"")),align:V[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:V[3]?V[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(we.header.length===we.align.length){we.raw=V[0];var Ne=we.align.length,H;for(H=0;H<Ne;H++)/^ *-+: *$/.test(we.align[H])?we.align[H]="right":/^ *:-+: *$/.test(we.align[H])?we.align[H]="center":/^ *:-+ *$/.test(we.align[H])?we.align[H]="left":we.align[H]=null;for(Ne=we.cells.length,H=0;H<Ne;H++)we.cells[H]=g(we.cells[H].replace(/^ *\| *| *\| *$/g,""),we.header.length);return we}}},Ze.lheading=function(ue){var V=this.rules.block.lheading.exec(ue);if(V)return{type:"heading",raw:V[0],depth:V[2].charAt(0)==="="?1:2,text:V[1]}},Ze.paragraph=function(ue){var V=this.rules.block.paragraph.exec(ue);if(V)return{type:"paragraph",raw:V[0],text:V[1].charAt(V[1].length-1)===`
|
|
|
`?V[1].slice(0,-1):V[1]}},Ze.text=function(ue){var V=this.rules.block.text.exec(ue);if(V)return{type:"text",raw:V[0],text:V[0]}},Ze.escape=function(ue){var V=this.rules.inline.escape.exec(ue);if(V)return{type:"escape",raw:V[0],text:E(V[1])}},Ze.tag=function(ue,V,we){var Ne=this.rules.inline.tag.exec(ue);if(Ne)return!V&&/^<a /i.test(Ne[0])?V=!0:V&&/^<\/a>/i.test(Ne[0])&&(V=!1),!we&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ne[0])?we=!0:we&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ne[0])&&(we=!1),{type:this.options.sanitize?"text":"html",raw:Ne[0],inLink:V,inRawBlock:we,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):E(Ne[0]):Ne[0]}},Ze.link=function(ue){var V=this.rules.inline.link.exec(ue);if(V){var we=V[2].trim();if(!this.options.pedantic&&/^</.test(we)){if(!/>$/.test(we))return;var Ne=K(we.slice(0,-1),"\\");if((we.length-Ne.length)%2===0)return}else{var H=Z(V[2],"()");if(H>-1){var it=V[0].indexOf("!")===0?5:4,Ee=it+V[1].length+H;V[2]=V[2].substring(0,H),V[0]=V[0].substring(0,Ee).trim(),V[3]=""}}var Tt=V[2],Mt="";if(this.options.pedantic){var Ut=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Tt);Ut&&(Tt=Ut[1],Mt=Ut[3])}else Mt=V[3]?V[3].slice(1,-1):"";return Tt=Tt.trim(),/^</.test(Tt)&&(this.options.pedantic&&!/>$/.test(we)?Tt=Tt.slice(1):Tt=Tt.slice(1,-1)),pe(V,{href:Tt&&Tt.replace(this.rules.inline._escapes,"$1"),title:Mt&&Mt.replace(this.rules.inline._escapes,"$1")},V[0])}},Ze.reflink=function(ue,V){var we;if((we=this.rules.inline.reflink.exec(ue))||(we=this.rules.inline.nolink.exec(ue))){var Ne=(we[2]||we[1]).replace(/\s+/g," ");if(Ne=V[Ne.toLowerCase()],!Ne||!Ne.href){var H=we[0].charAt(0);return{type:"text",raw:H,text:H}}return pe(we,Ne,we[0])}},Ze.emStrong=function(ue,V,we){we===void 0&&(we="");var Ne=this.rules.inline.emStrong.lDelim.exec(ue);if(Ne&&!(Ne[3]&&we.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 H=Ne[1]||Ne[2]||"";if(!H||H&&(we===""||this.rules.inline.punctuation.exec(we))){var it=Ne[0].length-1,Ee,Tt,Mt=it,Ut=0,dn=Ne[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(dn.lastIndex=0,V=V.slice(-1*ue.length+it);(Ne=dn.exec(V))!=null;)if(Ee=Ne[1]||Ne[2]||Ne[3]||Ne[4]||Ne[5]||Ne[6],!!Ee){if(Tt=Ee.length,Ne[3]||Ne[4]){Mt+=Tt;continue}else if((Ne[5]||Ne[6])&&it%3&&!((it+Tt)%3)){Ut+=Tt;continue}if(Mt-=Tt,!(Mt>0))return Tt=Math.min(Tt,Tt+Mt+Ut),Math.min(it,Tt)%2?{type:"em",raw:ue.slice(0,it+Ne.index+Tt+1),text:ue.slice(1,it+Ne.index+Tt)}:{type:"strong",raw:ue.slice(0,it+Ne.index+Tt+1),text:ue.slice(2,it+Ne.index+Tt-1)}}}}},Ze.codespan=function(ue){var V=this.rules.inline.code.exec(ue);if(V){var we=V[2].replace(/\n/g," "),Ne=/[^ ]/.test(we),H=/^ /.test(we)&&/ $/.test(we);return Ne&&H&&(we=we.substring(1,we.length-1)),we=E(we,!0),{type:"codespan",raw:V[0],text:we}}},Ze.br=function(ue){var V=this.rules.inline.br.exec(ue);if(V)return{type:"br",raw:V[0]}},Ze.del=function(ue){var V=this.rules.inline.del.exec(ue);if(V)return{type:"del",raw:V[0],text:V[2]}},Ze.autolink=function(ue,V){var we=this.rules.inline.autolink.exec(ue);if(we){var Ne,H;return we[2]==="@"?(Ne=E(this.options.mangle?V(we[1]):we[1]),H="mailto:"+Ne):(Ne=E(we[1]),H=Ne),{type:"link",raw:we[0],text:Ne,href:H,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Ze.url=function(ue,V){var we;if(we=this.rules.inline.url.exec(ue)){var Ne,H;if(we[2]==="@")Ne=E(this.options.mangle?V(we[0]):we[0]),H="mailto:"+Ne;else{var it;do it=we[0],we[0]=this.rules.inline._backpedal.exec(we[0])[0];while(it!==we[0]);Ne=E(we[0]),we[1]==="www."?H="http://"+Ne:H=Ne}return{type:"link",raw:we[0],text:Ne,href:H,tokens:[{type:"text",raw:Ne,text:Ne}]}}},Ze.inlineText=function(ue,V,we){var Ne=this.rules.inline.text.exec(ue);if(Ne){var H;return V?H=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ne[0]):E(Ne[0]):Ne[0]:H=E(this.options.smartypants?we(Ne[0]):Ne[0]),{type:"text",raw:Ne[0],text:H}}},$e}(),je=D.noopTest,Ge=D.edit,pt=D.merge,ht={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:je,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};ht._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ht._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ht.def=Ge(ht.def).replace("label",ht._label).replace("title",ht._title).getRegex(),ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,ht.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,ht.item=Ge(ht.item,"gm").replace(/bull/g,ht.bullet).getRegex(),ht.listItemStart=Ge(/^( *)(bull) */).replace("bull",ht.bullet).getRegex(),ht.list=Ge(ht.list).replace(/bull/g,ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ht.def.source+")").getRegex(),ht._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",ht._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ht.html=Ge(ht.html,"i").replace("comment",ht._comment).replace("tag",ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ht.paragraph=Ge(ht._paragraph).replace("hr",ht.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",ht._tag).getRegex(),ht.blockquote=Ge(ht.blockquote).replace("paragraph",ht.paragraph).getRegex(),ht.normal=pt({},ht),ht.gfm=pt({},ht.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*|$)"}),ht.gfm.nptable=Ge(ht.gfm.nptable).replace("hr",ht.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",ht._tag).getRegex(),ht.gfm.table=Ge(ht.gfm.table).replace("hr",ht.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",ht._tag).getRegex(),ht.pedantic=pt({},ht.normal,{html:Ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ht._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:je,paragraph:Ge(ht.normal._paragraph).replace("hr",ht.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var rt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,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:je,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};rt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",rt.punctuation=Ge(rt.punctuation).replace(/punctuation/g,rt._punctuation).getRegex(),rt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,rt.escapedEmSt=/\\\*|\\_/g,rt._comment=Ge(ht._comment).replace("(?:-->|$)","-->").getRegex(),rt.emStrong.lDelim=Ge(rt.emStrong.lDelim).replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimAst=Ge(rt.emStrong.rDelimAst,"g").replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimUnd=Ge(rt.emStrong.rDelimUnd,"g").replace(/punct/g,rt._punctuation).getRegex(),rt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,rt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,rt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,rt.autolink=Ge(rt.autolink).replace("scheme",rt._scheme).replace("email",rt._email).getRegex(),rt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,rt.tag=Ge(rt.tag).replace("comment",rt._comment).replace("attribute",rt._attribute).getRegex(),rt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,rt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,rt.link=Ge(rt.link).replace("label",rt._label).replace("href",rt._href).replace("title",rt._title).getRegex(),rt.reflink=Ge(rt.reflink).replace("label",rt._label).getRegex(),rt.reflinkSearch=Ge(rt.reflinkSearch,"g").replace("reflink",rt.reflink).replace("nolink",rt.nolink).getRegex(),rt.normal=pt({},rt),rt.pedantic=pt({},rt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ge(/^!?\[(label)\]\((.*?)\)/).replace("label",rt._label).getRegex(),reflink:Ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rt._label).getRegex()}),rt.gfm=pt({},rt.normal,{escape:Ge(rt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),rt.gfm.url=Ge(rt.gfm.url,"i").replace("email",rt.gfm._extended_email).getRegex(),rt.breaks=pt({},rt.gfm,{br:Ge(rt.br).replace("{2,}","*").getRegex(),text:Ge(rt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Vt={block:ht,inline:rt},Jt=We,on=Ce.exports.defaults,Kt=Vt.block,at=Vt.inline,Et=D.repeatString;function q($e){return $e.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 ge($e){var Ze="",tt,ue,V=$e.length;for(tt=0;tt<V;tt++)ue=$e.charCodeAt(tt),Math.random()>.5&&(ue="x"+ue.toString(16)),Ze+="&#"+ue+";";return Ze}var ne=function(){function $e(tt){this.tokens=[],this.tokens.links=Object.create(null),this.options=tt||on,this.options.tokenizer=this.options.tokenizer||new Jt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ue={block:Kt.normal,inline:at.normal};this.options.pedantic?(ue.block=Kt.pedantic,ue.inline=at.pedantic):this.options.gfm&&(ue.block=Kt.gfm,this.options.breaks?ue.inline=at.breaks:ue.inline=at.gfm),this.tokenizer.rules=ue}$e.lex=function(ue,V){var we=new $e(V);return we.lex(ue)},$e.lexInline=function(ue,V){var we=new $e(V);return we.inlineTokens(ue)};var Ze=$e.prototype;return Ze.lex=function(ue){return ue=ue.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(ue,this.tokens,!0),this.inline(this.tokens),this.tokens},Ze.blockTokens=function(ue,V,we){V===void 0&&(V=[]),we===void 0&&(we=!0),this.options.pedantic&&(ue=ue.replace(/^ +$/gm,""));for(var Ne,H,it,Ee;ue;){if(Ne=this.tokenizer.space(ue)){ue=ue.substring(Ne.raw.length),Ne.type&&V.push(Ne);continue}if(Ne=this.tokenizer.code(ue)){ue=ue.substring(Ne.raw.length),Ee=V[V.length-1],Ee&&Ee.type==="paragraph"?(Ee.raw+=`
|
|
|
`+Ne.raw,Ee.text+=`
|
|
|
`+Ne.text):V.push(Ne);continue}if(Ne=this.tokenizer.fences(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.heading(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.nptable(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.hr(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.blockquote(ue)){ue=ue.substring(Ne.raw.length),Ne.tokens=this.blockTokens(Ne.text,[],we),V.push(Ne);continue}if(Ne=this.tokenizer.list(ue)){for(ue=ue.substring(Ne.raw.length),it=Ne.items.length,H=0;H<it;H++)Ne.items[H].tokens=this.blockTokens(Ne.items[H].text,[],!1);V.push(Ne);continue}if(Ne=this.tokenizer.html(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(we&&(Ne=this.tokenizer.def(ue))){ue=ue.substring(Ne.raw.length),this.tokens.links[Ne.tag]||(this.tokens.links[Ne.tag]={href:Ne.href,title:Ne.title});continue}if(Ne=this.tokenizer.table(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.lheading(ue)){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(we&&(Ne=this.tokenizer.paragraph(ue))){ue=ue.substring(Ne.raw.length),V.push(Ne);continue}if(Ne=this.tokenizer.text(ue)){ue=ue.substring(Ne.raw.length),Ee=V[V.length-1],Ee&&Ee.type==="text"?(Ee.raw+=`
|
|
|
`+Ne.raw,Ee.text+=`
|
|
|
`+Ne.text):V.push(Ne);continue}if(ue){var Tt="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(Tt);break}else throw new Error(Tt)}}return V},Ze.inline=function(ue){var V,we,Ne,H,it,Ee,Tt=ue.length;for(V=0;V<Tt;V++)switch(Ee=ue[V],Ee.type){case"paragraph":case"text":case"heading":{Ee.tokens=[],this.inlineTokens(Ee.text,Ee.tokens);break}case"table":{for(Ee.tokens={header:[],cells:[]},H=Ee.header.length,we=0;we<H;we++)Ee.tokens.header[we]=[],this.inlineTokens(Ee.header[we],Ee.tokens.header[we]);for(H=Ee.cells.length,we=0;we<H;we++)for(it=Ee.cells[we],Ee.tokens.cells[we]=[],Ne=0;Ne<it.length;Ne++)Ee.tokens.cells[we][Ne]=[],this.inlineTokens(it[Ne],Ee.tokens.cells[we][Ne]);break}case"blockquote":{this.inline(Ee.tokens);break}case"list":{for(H=Ee.items.length,we=0;we<H;we++)this.inline(Ee.items[we].tokens);break}}return ue},Ze.inlineTokens=function(ue,V,we,Ne){V===void 0&&(V=[]),we===void 0&&(we=!1),Ne===void 0&&(Ne=!1);var H,it,Ee=ue,Tt,Mt,Ut;if(this.tokens.links){var dn=Object.keys(this.tokens.links);if(dn.length>0)for(;(Tt=this.tokenizer.rules.inline.reflinkSearch.exec(Ee))!=null;)dn.includes(Tt[0].slice(Tt[0].lastIndexOf("[")+1,-1))&&(Ee=Ee.slice(0,Tt.index)+"["+Et("a",Tt[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Tt=this.tokenizer.rules.inline.blockSkip.exec(Ee))!=null;)Ee=Ee.slice(0,Tt.index)+"["+Et("a",Tt[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Tt=this.tokenizer.rules.inline.escapedEmSt.exec(Ee))!=null;)Ee=Ee.slice(0,Tt.index)+"++"+Ee.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;ue;){if(Mt||(Ut=""),Mt=!1,H=this.tokenizer.escape(ue)){ue=ue.substring(H.raw.length),V.push(H);continue}if(H=this.tokenizer.tag(ue,we,Ne)){ue=ue.substring(H.raw.length),we=H.inLink,Ne=H.inRawBlock;var wt=V[V.length-1];wt&&H.type==="text"&&wt.type==="text"?(wt.raw+=H.raw,wt.text+=H.text):V.push(H);continue}if(H=this.tokenizer.link(ue)){ue=ue.substring(H.raw.length),H.type==="link"&&(H.tokens=this.inlineTokens(H.text,[],!0,Ne)),V.push(H);continue}if(H=this.tokenizer.reflink(ue,this.tokens.links)){ue=ue.substring(H.raw.length);var Yt=V[V.length-1];H.type==="link"?(H.tokens=this.inlineTokens(H.text,[],!0,Ne),V.push(H)):Yt&&H.type==="text"&&Yt.type==="text"?(Yt.raw+=H.raw,Yt.text+=H.text):V.push(H);continue}if(H=this.tokenizer.emStrong(ue,Ee,Ut)){ue=ue.substring(H.raw.length),H.tokens=this.inlineTokens(H.text,[],we,Ne),V.push(H);continue}if(H=this.tokenizer.codespan(ue)){ue=ue.substring(H.raw.length),V.push(H);continue}if(H=this.tokenizer.br(ue)){ue=ue.substring(H.raw.length),V.push(H);continue}if(H=this.tokenizer.del(ue)){ue=ue.substring(H.raw.length),H.tokens=this.inlineTokens(H.text,[],we,Ne),V.push(H);continue}if(H=this.tokenizer.autolink(ue,ge)){ue=ue.substring(H.raw.length),V.push(H);continue}if(!we&&(H=this.tokenizer.url(ue,ge))){ue=ue.substring(H.raw.length),V.push(H);continue}if(H=this.tokenizer.inlineText(ue,Ne,q)){ue=ue.substring(H.raw.length),H.raw.slice(-1)!=="_"&&(Ut=H.raw.slice(-1)),Mt=!0,it=V[V.length-1],it&&it.type==="text"?(it.raw+=H.raw,it.text+=H.text):V.push(H);continue}if(ue){var Ue="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(Ue);break}else throw new Error(Ue)}}return V},p($e,null,[{key:"rules",get:function(){return{block:Kt,inline:at}}}]),$e}(),z=Ce.exports.defaults,De=D.cleanUrl,O=D.escape,oe=function(){function $e(tt){this.options=tt||z}var Ze=$e.prototype;return Ze.code=function(ue,V,we){var Ne=(V||"").match(/\S*/)[0];if(this.options.highlight){var H=this.options.highlight(ue,Ne);H!=null&&H!==ue&&(we=!0,ue=H)}return ue=ue.replace(/\n$/,"")+`
|
|
|
`,Ne?'<pre><code class="'+this.options.langPrefix+O(Ne,!0)+'">'+(we?ue:O(ue,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(we?ue:O(ue,!0))+`</code></pre>
|
|
|
`},Ze.blockquote=function(ue){return`<blockquote>
|
|
|
`+ue+`</blockquote>
|
|
|
`},Ze.html=function(ue){return ue},Ze.heading=function(ue,V,we,Ne){return this.options.headerIds?"<h"+V+' id="'+this.options.headerPrefix+Ne.slug(we)+'">'+ue+"</h"+V+`>
|
|
|
`:"<h"+V+">"+ue+"</h"+V+`>
|
|
|
`},Ze.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Ze.list=function(ue,V,we){var Ne=V?"ol":"ul",H=V&&we!==1?' start="'+we+'"':"";return"<"+Ne+H+`>
|
|
|
`+ue+"</"+Ne+`>
|
|
|
`},Ze.listitem=function(ue){return"<li>"+ue+`</li>
|
|
|
`},Ze.checkbox=function(ue){return"<input "+(ue?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ze.paragraph=function(ue){return"<p>"+ue+`</p>
|
|
|
`},Ze.table=function(ue,V){return V&&(V="<tbody>"+V+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+ue+`</thead>
|
|
|
`+V+`</table>
|
|
|
`},Ze.tablerow=function(ue){return`<tr>
|
|
|
`+ue+`</tr>
|
|
|
`},Ze.tablecell=function(ue,V){var we=V.header?"th":"td",Ne=V.align?"<"+we+' align="'+V.align+'">':"<"+we+">";return Ne+ue+"</"+we+`>
|
|
|
`},Ze.strong=function(ue){return"<strong>"+ue+"</strong>"},Ze.em=function(ue){return"<em>"+ue+"</em>"},Ze.codespan=function(ue){return"<code>"+ue+"</code>"},Ze.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ze.del=function(ue){return"<del>"+ue+"</del>"},Ze.link=function(ue,V,we){if(ue=De(this.options.sanitize,this.options.baseUrl,ue),ue===null)return we;var Ne='<a href="'+O(ue)+'"';return V&&(Ne+=' title="'+V+'"'),Ne+=">"+we+"</a>",Ne},Ze.image=function(ue,V,we){if(ue=De(this.options.sanitize,this.options.baseUrl,ue),ue===null)return we;var Ne='<img src="'+ue+'" alt="'+we+'"';return V&&(Ne+=' title="'+V+'"'),Ne+=this.options.xhtml?"/>":">",Ne},Ze.text=function(ue){return ue},$e}(),Q=function(){function $e(){}var Ze=$e.prototype;return Ze.strong=function(ue){return ue},Ze.em=function(ue){return ue},Ze.codespan=function(ue){return ue},Ze.del=function(ue){return ue},Ze.html=function(ue){return ue},Ze.text=function(ue){return ue},Ze.link=function(ue,V,we){return""+we},Ze.image=function(ue,V,we){return""+we},Ze.br=function(){return""},$e}(),le=function(){function $e(){this.seen={}}var Ze=$e.prototype;return Ze.serialize=function(ue){return ue.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ze.getNextSafeSlug=function(ue,V){var we=ue,Ne=0;if(this.seen.hasOwnProperty(we)){Ne=this.seen[ue];do Ne++,we=ue+"-"+Ne;while(this.seen.hasOwnProperty(we))}return V||(this.seen[ue]=Ne,this.seen[we]=0),we},Ze.slug=function(ue,V){V===void 0&&(V={});var we=this.serialize(ue);return this.getNextSafeSlug(we,V.dryrun)},$e}(),ce=oe,Ae=Q,_e=le,Pe=Ce.exports.defaults,Ie=D.unescape,Fe=function(){function $e(tt){this.options=tt||Pe,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new _e}$e.parse=function(ue,V){var we=new $e(V);return we.parse(ue)},$e.parseInline=function(ue,V){var we=new $e(V);return we.parseInline(ue)};var Ze=$e.prototype;return Ze.parse=function(ue,V){V===void 0&&(V=!0);var we="",Ne,H,it,Ee,Tt,Mt,Ut,dn,wt,Yt,Ue,mt,xt,Me,Te,st,ct,kt,Ot=ue.length;for(Ne=0;Ne<Ot;Ne++)switch(Yt=ue[Ne],Yt.type){case"space":continue;case"hr":{we+=this.renderer.hr();continue}case"heading":{we+=this.renderer.heading(this.parseInline(Yt.tokens),Yt.depth,Ie(this.parseInline(Yt.tokens,this.textRenderer)),this.slugger);continue}case"code":{we+=this.renderer.code(Yt.text,Yt.lang,Yt.escaped);continue}case"table":{for(dn="",Ut="",Ee=Yt.header.length,H=0;H<Ee;H++)Ut+=this.renderer.tablecell(this.parseInline(Yt.tokens.header[H]),{header:!0,align:Yt.align[H]});for(dn+=this.renderer.tablerow(Ut),wt="",Ee=Yt.cells.length,H=0;H<Ee;H++){for(Mt=Yt.tokens.cells[H],Ut="",Tt=Mt.length,it=0;it<Tt;it++)Ut+=this.renderer.tablecell(this.parseInline(Mt[it]),{header:!1,align:Yt.align[it]});wt+=this.renderer.tablerow(Ut)}we+=this.renderer.table(dn,wt);continue}case"blockquote":{wt=this.parse(Yt.tokens),we+=this.renderer.blockquote(wt);continue}case"list":{for(Ue=Yt.ordered,mt=Yt.start,xt=Yt.loose,Ee=Yt.items.length,wt="",H=0;H<Ee;H++)Te=Yt.items[H],st=Te.checked,ct=Te.task,Me="",Te.task&&(kt=this.renderer.checkbox(st),xt?Te.tokens.length>0&&Te.tokens[0].type==="text"?(Te.tokens[0].text=kt+" "+Te.tokens[0].text,Te.tokens[0].tokens&&Te.tokens[0].tokens.length>0&&Te.tokens[0].tokens[0].type==="text"&&(Te.tokens[0].tokens[0].text=kt+" "+Te.tokens[0].tokens[0].text)):Te.tokens.unshift({type:"text",text:kt}):Me+=kt),Me+=this.parse(Te.tokens,xt),wt+=this.renderer.listitem(Me,ct,st);we+=this.renderer.list(wt,Ue,mt);continue}case"html":{we+=this.renderer.html(Yt.text);continue}case"paragraph":{we+=this.renderer.paragraph(this.parseInline(Yt.tokens));continue}case"text":{for(wt=Yt.tokens?this.parseInline(Yt.tokens):Yt.text;Ne+1<Ot&&ue[Ne+1].type==="text";)Yt=ue[++Ne],wt+=`
|
|
|
`+(Yt.tokens?this.parseInline(Yt.tokens):Yt.text);we+=V?this.renderer.paragraph(wt):wt;continue}default:{var $t='Token with "'+Yt.type+'" type was not found.';if(this.options.silent){console.error($t);return}else throw new Error($t)}}return we},Ze.parseInline=function(ue,V){V=V||this.renderer;var we="",Ne,H,it=ue.length;for(Ne=0;Ne<it;Ne++)switch(H=ue[Ne],H.type){case"escape":{we+=V.text(H.text);break}case"html":{we+=V.html(H.text);break}case"link":{we+=V.link(H.href,H.title,this.parseInline(H.tokens,V));break}case"image":{we+=V.image(H.href,H.title,H.text);break}case"strong":{we+=V.strong(this.parseInline(H.tokens,V));break}case"em":{we+=V.em(this.parseInline(H.tokens,V));break}case"codespan":{we+=V.codespan(H.text);break}case"br":{we+=V.br();break}case"del":{we+=V.del(this.parseInline(H.tokens,V));break}case"text":{we+=V.text(H.text);break}default:{var Ee='Token with "'+H.type+'" type was not found.';if(this.options.silent){console.error(Ee);return}else throw new Error(Ee)}}return we},$e}(),Qe=ne,et=Fe,Ye=We,ut=oe,dt=Q,ot=le,Ct=D.merge,Lt=D.checkSanitizeDeprecation,w=D.escape,C=Ce.exports.getDefaults,lt=Ce.exports.changeDefaults,ie=Ce.exports.defaults;function Oe($e,Ze,tt){if(typeof $e=="undefined"||$e===null)throw new Error("marked(): input parameter is undefined or null");if(typeof $e!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call($e)+", string expected");if(typeof Ze=="function"&&(tt=Ze,Ze=null),Ze=Ct({},Oe.defaults,Ze||{}),Lt(Ze),tt){var ue=Ze.highlight,V;try{V=Qe.lex($e,Ze)}catch(it){return tt(it)}var we=function(Ee){var Tt;if(!Ee)try{Ze.walkTokens&&Oe.walkTokens(V,Ze.walkTokens),Tt=et.parse(V,Ze)}catch(Mt){Ee=Mt}return Ze.highlight=ue,Ee?tt(Ee):tt(null,Tt)};if(!ue||ue.length<3||(delete Ze.highlight,!V.length))return we();var Ne=0;Oe.walkTokens(V,function(it){it.type==="code"&&(Ne++,setTimeout(function(){ue(it.text,it.lang,function(Ee,Tt){if(Ee)return we(Ee);Tt!=null&&Tt!==it.text&&(it.text=Tt,it.escaped=!0),Ne--,Ne===0&&we()})},0))}),Ne===0&&we();return}try{var H=Qe.lex($e,Ze);return Ze.walkTokens&&Oe.walkTokens(H,Ze.walkTokens),et.parse(H,Ze)}catch(it){if(it.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ze.silent)return"<p>An error occurred:</p><pre>"+w(it.message+"",!0)+"</pre>";throw it}}Oe.options=Oe.setOptions=function($e){return Ct(Oe.defaults,$e),lt(Oe.defaults),Oe},Oe.getDefaults=C,Oe.defaults=ie,Oe.use=function($e){var Ze=Ct({},$e);if($e.renderer&&function(){var ue=Oe.defaults.renderer||new ut,V=function(H){var it=ue[H];ue[H]=function(){for(var Ee=arguments.length,Tt=new Array(Ee),Mt=0;Mt<Ee;Mt++)Tt[Mt]=arguments[Mt];var Ut=$e.renderer[H].apply(ue,Tt);return Ut===!1&&(Ut=it.apply(ue,Tt)),Ut}};for(var we in $e.renderer)V(we);Ze.renderer=ue}(),$e.tokenizer&&function(){var ue=Oe.defaults.tokenizer||new Ye,V=function(H){var it=ue[H];ue[H]=function(){for(var Ee=arguments.length,Tt=new Array(Ee),Mt=0;Mt<Ee;Mt++)Tt[Mt]=arguments[Mt];var Ut=$e.tokenizer[H].apply(ue,Tt);return Ut===!1&&(Ut=it.apply(ue,Tt)),Ut}};for(var we in $e.tokenizer)V(we);Ze.tokenizer=ue}(),$e.walkTokens){var tt=Oe.defaults.walkTokens;Ze.walkTokens=function(ue){$e.walkTokens(ue),tt&&tt(ue)}}Oe.setOptions(Ze)},Oe.walkTokens=function($e,Ze){for(var tt=de($e),ue;!(ue=tt()).done;){var V=ue.value;switch(Ze(V),V.type){case"table":{for(var we=de(V.tokens.header),Ne;!(Ne=we()).done;){var H=Ne.value;Oe.walkTokens(H,Ze)}for(var it=de(V.tokens.cells),Ee;!(Ee=it()).done;)for(var Tt=Ee.value,Mt=de(Tt),Ut;!(Ut=Mt()).done;){var dn=Ut.value;Oe.walkTokens(dn,Ze)}break}case"list":{Oe.walkTokens(V.items,Ze);break}default:V.tokens&&Oe.walkTokens(V.tokens,Ze)}}},Oe.parseInline=function($e,Ze){if(typeof $e=="undefined"||$e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof $e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call($e)+", string expected");Ze=Ct({},Oe.defaults,Ze||{}),Lt(Ze);try{var tt=Qe.lexInline($e,Ze);return Ze.walkTokens&&Oe.walkTokens(tt,Ze.walkTokens),et.parseInline(tt,Ze)}catch(ue){if(ue.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ze.silent)return"<p>An error occurred:</p><pre>"+w(ue.message+"",!0)+"</pre>";throw ue}},Oe.Parser=et,Oe.parser=et.parse,Oe.Renderer=ut,Oe.TextRenderer=dt,Oe.Lexer=Qe,Oe.lexer=Qe.lex,Oe.Tokenizer=Ye,Oe.Slugger=ot,Oe.parse=Oe;var mn=Oe;return mn})},11690:function(qt){const qe=/[&<>"']/,p=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,Y=/[<>"']|&(?!#?\w+;)/g,de={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce=F=>de[F];function j(F,fe){if(fe){if(qe.test(F))return F.replace(p,Ce)}else if(M.test(F))return F.replace(Y,Ce);return F}const X=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ve(F){return F.replace(X,(fe,be)=>(be=be.toLowerCase(),be==="colon"?":":be.charAt(0)==="#"?be.charAt(1)==="x"?String.fromCharCode(parseInt(be.substring(2),16)):String.fromCharCode(+be.substring(1)):""))}const xe=/(^|[^\[])\^/g;function s(F,fe){F=F.source||F,fe=fe||"";const be={replace:(Re,he)=>(he=he.source||he,he=he.replace(xe,"$1"),F=F.replace(Re,he),be),getRegex:()=>new RegExp(F,fe)};return be}const A=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(F,fe,be){if(F){let Re;try{Re=decodeURIComponent(ve(be)).replace(A,"").toLowerCase()}catch(he){return null}if(Re.indexOf("javascript:")===0||Re.indexOf("vbscript:")===0||Re.indexOf("data:")===0)return null}fe&&!L.test(be)&&(be=ae(fe,be));try{be=encodeURI(be).replace(/%25/g,"%")}catch(Re){return null}return be}const u={},y=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ae(F,fe){u[" "+F]||(y.test(F)?u[" "+F]=F+"/":u[" "+F]=U(F,"/",!0)),F=u[" "+F];const be=F.indexOf(":")===-1;return fe.substring(0,2)==="//"?be?fe:F.replace(b,"$1")+fe:fe.charAt(0)==="/"?be?fe:F.replace(k,"$1")+fe:F+fe}const P={exec:function(){}};function N(F){let fe=1,be,Re;for(;fe<arguments.length;fe++){be=arguments[fe];for(Re in be)Object.prototype.hasOwnProperty.call(be,Re)&&(F[Re]=be[Re])}return F}function G(F,fe){const be=F.replace(/\|/g,(W,$,se)=>{let D=!1,J=$;for(;--J>=0&&se[J]==="\\";)D=!D;return D?"|":" |"}),Re=be.split(/ \|/);let he=0;if(Re.length>fe)Re.splice(fe);else for(;Re.length<fe;)Re.push("");for(;he<Re.length;he++)Re[he]=Re[he].trim().replace(/\\\|/g,"|");return Re}function U(F,fe,be){const Re=F.length;if(Re===0)return"";let he=0;for(;he<Re;){const W=F.charAt(Re-he-1);if(W===fe&&!be)he++;else if(W!==fe&&be)he++;else break}return F.substr(0,Re-he)}function x(F,fe){if(F.indexOf(fe[1])===-1)return-1;const be=F.length;let Re=0,he=0;for(;he<be;he++)if(F[he]==="\\")he++;else if(F[he]===fe[0])Re++;else if(F[he]===fe[1]&&(Re--,Re<0))return he;return-1}function T(F){F&&F.sanitize&&!F.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 B(F,fe){if(fe<1)return"";let be="";for(;fe>1;)fe&1&&(be+=F),fe>>=1,F+=F;return be+F}qt.exports={escape:j,unescape:ve,edit:s,cleanUrl:v,resolveUrl:ae,noopTest:P,merge:N,splitCells:G,rtrim:U,findClosingBracket:x,checkSanitizeDeprecation:T,repeatString:B}},75918:function(qt,qe,p){"use strict";p.d(qe,{Wi:function(){return X},Z0:function(){return ve},aU:function(){return j},eZ:function(){return s},wY:function(){return xe}});var M=p(4348),Y=p(69323),de=p(13268),Ce=function(A,L,v,u){function y(b){return b instanceof v?b:new v(function(k){k(b)})}return new(v||(v=Promise))(function(b,k){function ae(G){try{N(u.next(G))}catch(U){k(U)}}function P(G){try{N(u.throw(G))}catch(U){k(U)}}function N(G){G.done?b(G.value):y(G.value).then(ae,P)}N((u=u.apply(A,L||[])).next())})};class j extends Y.JT{constructor(L,v="",u="",y=!0,b){super(),this._onDidChange=this._register(new M.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=v,this._cssClass=u,this._enabled=y,this._actionCallback=b}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,v){return Ce(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class X extends Y.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new M.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new M.Q5),this.onDidRun=this._onDidRun.event}run(L,v){return Ce(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let u;try{yield this.runAction(L,v)}catch(y){u=y}this._onDidRun.fire({action:L,error:u})})}runAction(L,v){return Ce(this,void 0,void 0,function*(){yield L.run(v)})}}class ve extends j{constructor(L){super(ve.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ve.ID="vs.actions.separator";class xe{constructor(L,v,u,y){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=v,this.class=y,this._actions=u}get actions(){return this._actions}dispose(){}run(){return Ce(this,void 0,void 0,function*(){})}}class s extends j{constructor(){super(s.ID,de.N("submenu.empty","(empty)"),void 0,!1)}}s.ID="vs.actions.empty"},76068:function(qt,qe,p){"use strict";p.d(qe,{ok:function(){return M}});function M(Y,de){if(!Y)throw new Error(de?`Assertion failed (${de})`:"Assertion Failed")}},52615:function(qt,qe,p){"use strict";p.d(qe,{CM:function(){return j},JL:function(){return X},dT:function(){return xe},fK:function(){return Ce},lA:function(){return ve}});var M=p(4348);class Y{constructor(){this._icons=new Map,this._onDidRegister=new M.Q5}add(A){const L=this._icons.get(A.id);L?A.description?L.description=A.description:console.error(`Duplicate registration of codicon ${A.id}`):(this._icons.set(A.id,A),this._onDidRegister.fire(A))}get(A){return this._icons.get(A)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const de=new Y,Ce=de;function j(s,A){return new ve(s,A)}function X(s){return s?s.replace(/\$\((.*?)\)/g,(A,L)=>` ${L} `).trim():""}class ve{constructor(A,L,v){this.id=A,this.definition=L,this.description=v,de.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var xe;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9\\-]+",s.iconModifierExpression="~[A-Za-z]+";const A=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function L(y){if(y instanceof ve)return["codicon","codicon-"+y.id];const b=A.exec(y.id);if(!b)return L(ve.error);let[,k,ae]=b;const P=["codicon","codicon-"+k];return ae&&P.push("codicon-modifier-"+ae.substr(1)),P}s.asClassNameArray=L;function v(y){return L(y).join(" ")}s.asClassName=v;function u(y){return"."+L(y).join(".")}s.asCSSSelector=u})(xe||(xe={})),function(s){s.add=new s("add",{fontCharacter:"\\ea60"}),s.plus=new s("plus",s.add.definition),s.gistNew=new s("gist-new",s.add.definition),s.repoCreate=new s("repo-create",s.add.definition),s.lightbulb=new s("lightbulb",{fontCharacter:"\\ea61"}),s.lightBulb=new s("light-bulb",{fontCharacter:"\\ea61"}),s.repo=new s("repo",{fontCharacter:"\\ea62"}),s.repoDelete=new s("repo-delete",{fontCharacter:"\\ea62"}),s.gistFork=new s("gist-fork",{fontCharacter:"\\ea63"}),s.repoForked=new s("repo-forked",{fontCharacter:"\\ea63"}),s.gitPullRequest=new s("git-pull-request",{fontCharacter:"\\ea64"}),s.gitPullRequestAbandoned=new s("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),s.recordKeys=new s("record-keys",{fontCharacter:"\\ea65"}),s.keyboard=new s("keyboard",{fontCharacter:"\\ea65"}),s.tag=new s("tag",{fontCharacter:"\\ea66"}),s.tagAdd=new s("tag-add",{fontCharacter:"\\ea66"}),s.tagRemove=new s("tag-remove",{fontCharacter:"\\ea66"}),s.person=new s("person",{fontCharacter:"\\ea67"}),s.personFollow=new s("person-follow",{fontCharacter:"\\ea67"}),s.personOutline=new s("person-outline",{fontCharacter:"\\ea67"}),s.personFilled=new s("person-filled",{fontCharacter:"\\ea67"}),s.gitBranch=new s("git-branch",{fontCharacter:"\\ea68"}),s.gitBranchCreate=new s("git-branch-create",{fontCharacter:"\\ea68"}),s.gitBranchDelete=new s("git-branch-delete",{fontCharacter:"\\ea68"}),s.sourceControl=new s("source-control",{fontCharacter:"\\ea68"}),s.mirror=new s("mirror",{fontCharacter:"\\ea69"}),s.mirrorPublic=new s("mirror-public",{fontCharacter:"\\ea69"}),s.star=new s("star",{fontCharacter:"\\ea6a"}),s.starAdd=new s("star-add",{fontCharacter:"\\ea6a"}),s.starDelete=new s("star-delete",{fontCharacter:"\\ea6a"}),s.starEmpty=new s("star-empty",{fontCharacter:"\\ea6a"}),s.comment=new s("comment",{fontCharacter:"\\ea6b"}),s.commentAdd=new s("comment-add",{fontCharacter:"\\ea6b"}),s.alert=new s("alert",{fontCharacter:"\\ea6c"}),s.warning=new s("warning",{fontCharacter:"\\ea6c"}),s.search=new s("search",{fontCharacter:"\\ea6d"}),s.searchSave=new s("search-save",{fontCharacter:"\\ea6d"}),s.logOut=new s("log-out",{fontCharacter:"\\ea6e"}),s.signOut=new s("sign-out",{fontCharacter:"\\ea6e"}),s.logIn=new s("log-in",{fontCharacter:"\\ea6f"}),s.signIn=new s("sign-in",{fontCharacter:"\\ea6f"}),s.eye=new s("eye",{fontCharacter:"\\ea70"}),s.eyeUnwatch=new s("eye-unwatch",{fontCharacter:"\\ea70"}),s.eyeWatch=new s("eye-watch",{fontCharacter:"\\ea70"}),s.circleFilled=new s("circle-filled",{fontCharacter:"\\ea71"}),s.primitiveDot=new s("primitive-dot",{fontCharacter:"\\ea71"}),s.closeDirty=new s("close-dirty",{fontCharacter:"\\ea71"}),s.debugBreakpoint=new s("debug-breakpoint",{fontCharacter:"\\ea71"}),s.debugBreakpointDisabled=new s("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),s.debugHint=new s("debug-hint",{fontCharacter:"\\ea71"}),s.primitiveSquare=new s("primitive-square",{fontCharacter:"\\ea72"}),s.edit=new s("edit",{fontCharacter:"\\ea73"}),s.pencil=new s("pencil",{fontCharacter:"\\ea73"}),s.info=new s("info",{fontCharacter:"\\ea74"}),s.issueOpened=new s("issue-opened",{fontCharacter:"\\ea74"}),s.gistPrivate=new s("gist-private",{fontCharacter:"\\ea75"}),s.gitForkPrivate=new s("git-fork-private",{fontCharacter:"\\ea75"}),s.lock=new s("lock",{fontCharacter:"\\ea75"}),s.mirrorPrivate=new s("mirror-private",{fontCharacter:"\\ea75"}),s.close=new s("close",{fontCharacter:"\\ea76"}),s.removeClose=new s("remove-close",{fontCharacter:"\\ea76"}),s.x=new s("x",{fontCharacter:"\\ea76"}),s.repoSync=new s("repo-sync",{fontCharacter:"\\ea77"}),s.sync=new s("sync",{fontCharacter:"\\ea77"}),s.clone=new s("clone",{fontCharacter:"\\ea78"}),s.desktopDownload=new s("desktop-download",{fontCharacter:"\\ea78"}),s.beaker=new s("beaker",{fontCharacter:"\\ea79"}),s.microscope=new s("microscope",{fontCharacter:"\\ea79"}),s.vm=new s("vm",{fontCharacter:"\\ea7a"}),s.deviceDesktop=new s("device-desktop",{fontCharacter:"\\ea7a"}),s.file=new s("file",{fontCharacter:"\\ea7b"}),s.fileText=new s("file-text",{fontCharacter:"\\ea7b"}),s.more=new s("more",{fontCharacter:"\\ea7c"}),s.ellipsis=new s("ellipsis",{fontCharacter:"\\ea7c"}),s.kebabHorizontal=new s("kebab-horizontal",{fontCharacter:"\\ea7c"}),s.mailReply=new s("mail-reply",{fontCharacter:"\\ea7d"}),s.reply=new s("reply",{fontCharacter:"\\ea7d"}),s.organization=new s("organization",{fontCharacter:"\\ea7e"}),s.organizationFilled=new s("organization-filled",{fontCharacter:"\\ea7e"}),s.organizationOutline=new s("organization-outline",{fontCharacter:"\\ea7e"}),s.newFile=new s("new-file",{fontCharacter:"\\ea7f"}),s.fileAdd=new s("file-add",{fontCharacter:"\\ea7f"}),s.newFolder=new s("new-folder",{fontCharacter:"\\ea80"}),s.fileDirectoryCreate=new s("file-directory-create",{fontCharacter:"\\ea80"}),s.trash=new s("trash",{fontCharacter:"\\ea81"}),s.trashcan=new s("trashcan",{fontCharacter:"\\ea81"}),s.history=new s("history",{fontCharacter:"\\ea82"}),s.clock=new s("clock",{fontCharacter:"\\ea82"}),s.folder=new s("folder",{fontCharacter:"\\ea83"}),s.fileDirectory=new s("file-directory",{fontCharacter:"\\ea83"}),s.symbolFolder=new s("symbol-folder",{fontCharacter:"\\ea83"}),s.logoGithub=new s("logo-github",{fontCharacter:"\\ea84"}),s.markGithub=new s("mark-github",{fontCharacter:"\\ea84"}),s.github=new s("github",{fontCharacter:"\\ea84"}),s.terminal=new s("terminal",{fontCharacter:"\\ea85"}),s.console=new s("console",{fontCharacter:"\\ea85"}),s.repl=new s("repl",{fontCharacter:"\\ea85"}),s.zap=new s("zap",{fontCharacter:"\\ea86"}),s.symbolEvent=new s("symbol-event",{fontCharacter:"\\ea86"}),s.error=new s("error",{fontCharacter:"\\ea87"}),s.stop=new s("stop",{fontCharacter:"\\ea87"}),s.variable=new s("variable",{fontCharacter:"\\ea88"}),s.symbolVariable=new s("symbol-variable",{fontCharacter:"\\ea88"}),s.array=new s("array",{fontCharacter:"\\ea8a"}),s.symbolArray=new s("symbol-array",{fontCharacter:"\\ea8a"}),s.symbolModule=new s("symbol-module",{fontCharacter:"\\ea8b"}),s.symbolPackage=new s("symbol-package",{fontCharacter:"\\ea8b"}),s.symbolNamespace=new s("symbol-namespace",{fontCharacter:"\\ea8b"}),s.symbolObject=new s("symbol-object",{fontCharacter:"\\ea8b"}),s.symbolMethod=new s("symbol-method",{fontCharacter:"\\ea8c"}),s.symbolFunction=new s("symbol-function",{fontCharacter:"\\ea8c"}),s.symbolConstructor=new s("symbol-constructor",{fontCharacter:"\\ea8c"}),s.symbolBoolean=new s("symbol-boolean",{fontCharacter:"\\ea8f"}),s.symbolNull=new s("symbol-null",{fontCharacter:"\\ea8f"}),s.symbolNumeric=new s("symbol-numeric",{fontCharacter:"\\ea90"}),s.symbolNumber=new s("symbol-number",{fontCharacter:"\\ea90"}),s.symbolStructure=new s("symbol-structure",{fontCharacter:"\\ea91"}),s.symbolStruct=new s("symbol-struct",{fontCharacter:"\\ea91"}),s.symbolParameter=new s("symbol-parameter",{fontCharacter:"\\ea92"}),s.symbolTypeParameter=new s("symbol-type-parameter",{fontCharacter:"\\ea92"}),s.symbolKey=new s("symbol-key",{fontCharacter:"\\ea93"}),s.symbolText=new s("symbol-text",{fontCharacter:"\\ea93"}),s.symbolReference=new s("symbol-reference",{fontCharacter:"\\ea94"}),s.goToFile=new s("go-to-file",{fontCharacter:"\\ea94"}),s.symbolEnum=new s("symbol-enum",{fontCharacter:"\\ea95"}),s.symbolValue=new s("symbol-value",{fontCharacter:"\\ea95"}),s.symbolRuler=new s("symbol-ruler",{fontCharacter:"\\ea96"}),s.symbolUnit=new s("symbol-unit",{fontCharacter:"\\ea96"}),s.activateBreakpoints=new s("activate-breakpoints",{fontCharacter:"\\ea97"}),s.archive=new s("archive",{fontCharacter:"\\ea98"}),s.arrowBoth=new s("arrow-both",{fontCharacter:"\\ea99"}),s.arrowDown=new s("arrow-down",{fontCharacter:"\\ea9a"}),s.arrowLeft=new s("arrow-left",{fontCharacter:"\\ea9b"}),s.arrowRight=new s("arrow-right",{fontCharacter:"\\ea9c"}),s.arrowSmallDown=new s("arrow-small-down",{fontCharacter:"\\ea9d"}),s.arrowSmallLeft=new s("arrow-small-left",{fontCharacter:"\\ea9e"}),s.arrowSmallRight=new s("arrow-small-right",{fontCharacter:"\\ea9f"}),s.arrowSmallUp=new s("arrow-small-up",{fontCharacter:"\\eaa0"}),s.arrowUp=new s("arrow-up",{fontCharacter:"\\eaa1"}),s.bell=new s("bell",{fontCharacter:"\\eaa2"}),s.bold=new s("bold",{fontCharacter:"\\eaa3"}),s.book=new s("book",{fontCharacter:"\\eaa4"}),s.bookmark=new s("bookmark",{fontCharacter:"\\eaa5"}),s.debugBreakpointConditionalUnverified=new s("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),s.debugBreakpointConditional=new s("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),s.debugBreakpointConditionalDisabled=new s("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),s.debugBreakpointDataUnverified=new s("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),s.debugBreakpointData=new s("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),s.debugBreakpointDataDisabled=new s("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),s.debugBreakpointLogUnverified=new s("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),s.debugBreakpointLog=new s("debug-breakpoint-log",{fontCharacter:"\\eaab"}),s.debugBreakpointLogDisabled=new s("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),s.briefcase=new s("briefcase",{fontCharacter:"\\eaac"}),s.broadcast=new s("broadcast",{fontCharacter:"\\eaad"}),s.browser=new s("browser",{fontCharacter:"\\eaae"}),s.bug=new s("bug",{fontCharacter:"\\eaaf"}),s.calendar=new s("calendar",{fontCharacter:"\\eab0"}),s.caseSensitive=new s("case-sensitive",{fontCharacter:"\\eab1"}),s.check=new s("check",{fontCharacter:"\\eab2"}),s.checklist=new s("checklist",{fontCharacter:"\\eab3"}),s.chevronDown=new s("chevron-down",{fontCharacter:"\\eab4"}),s.dropDownButton=new s("drop-down-button",s.chevronDown.definition),s.chevronLeft=new s("chevron-left",{fontCharacter:"\\eab5"}),s.chevronRight=new s("chevron-right",{fontCharacter:"\\eab6"}),s.chevronUp=new s("chevron-up",{fontCharacter:"\\eab7"}),s.chromeClose=new s("chrome-close",{fontCharacter:"\\eab8"}),s.chromeMaximize=new s("chrome-maximize",{fontCharacter:"\\eab9"}),s.chromeMinimize=new s("chrome-minimize",{fontCharacter:"\\eaba"}),s.chromeRestore=new s("chrome-restore",{fontCharacter:"\\eabb"}),s.circleOutline=new s("circle-outline",{fontCharacter:"\\eabc"}),s.debugBreakpointUnverified=new s("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),s.circleSlash=new s("circle-slash",{fontCharacter:"\\eabd"}),s.circuitBoard=new s("circuit-board",{fontCharacter:"\\eabe"}),s.clearAll=new s("clear-all",{fontCharacter:"\\eabf"}),s.clippy=new s("clippy",{fontCharacter:"\\eac0"}),s.closeAll=new s("close-all",{fontCharacter:"\\eac1"}),s.cloudDownload=new s("cloud-download",{fontCharacter:"\\eac2"}),s.cloudUpload=new s("cloud-upload",{fontCharacter:"\\eac3"}),s.code=new s("code",{fontCharacter:"\\eac4"}),s.collapseAll=new s("collapse-all",{fontCharacter:"\\eac5"}),s.colorMode=new s("color-mode",{fontCharacter:"\\eac6"}),s.commentDiscussion=new s("comment-discussion",{fontCharacter:"\\eac7"}),s.compareChanges=new s("compare-changes",{fontCharacter:"\\eafd"}),s.creditCard=new s("credit-card",{fontCharacter:"\\eac9"}),s.dash=new s("dash",{fontCharacter:"\\eacc"}),s.dashboard=new s("dashboard",{fontCharacter:"\\eacd"}),s.database=new s("database",{fontCharacter:"\\eace"}),s.debugContinue=new s("debug-continue",{fontCharacter:"\\eacf"}),s.debugDisconnect=new s("debug-disconnect",{fontCharacter:"\\ead0"}),s.debugPause=new s("debug-pause",{fontCharacter:"\\ead1"}),s.debugRestart=new s("debug-restart",{fontCharacter:"\\ead2"}),s.debugStart=new s("debug-start",{fontCharacter:"\\ead3"}),s.debugStepInto=new s("debug-step-into",{fontCharacter:"\\ead4"}),s.debugStepOut=new s("debug-step-out",{fontCharacter:"\\ead5"}),s.debugStepOver=new s("debug-step-over",{fontCharacter:"\\ead6"}),s.debugStop=new s("debug-stop",{fontCharacter:"\\ead7"}),s.debug=new s("debug",{fontCharacter:"\\ead8"}),s.deviceCameraVideo=new s("device-camera-video",{fontCharacter:"\\ead9"}),s.deviceCamera=new s("device-camera",{fontCharacter:"\\eada"}),s.deviceMobile=new s("device-mobile",{fontCharacter:"\\eadb"}),s.diffAdded=new s("diff-added",{fontCharacter:"\\eadc"}),s.diffIgnored=new s("diff-ignored",{fontCharacter:"\\eadd"}),s.diffModified=new s("diff-modified",{fontCharacter:"\\eade"}),s.diffRemoved=new s("diff-removed",{fontCharacter:"\\eadf"}),s.diffRenamed=new s("diff-renamed",{fontCharacter:"\\eae0"}),s.diff=new s("diff",{fontCharacter:"\\eae1"}),s.discard=new s("discard",{fontCharacter:"\\eae2"}),s.editorLayout=new s("editor-layout",{fontCharacter:"\\eae3"}),s.emptyWindow=new s("empty-window",{fontCharacter:"\\eae4"}),s.exclude=new s("exclude",{fontCharacter:"\\eae5"}),s.extensions=new s("extensions",{fontCharacter:"\\eae6"}),s.eyeClosed=new s("eye-closed",{fontCharacter:"\\eae7"}),s.fileBinary=new s("file-binary",{fontCharacter:"\\eae8"}),s.fileCode=new s("file-code",{fontCharacter:"\\eae9"}),s.fileMedia=new s("file-media",{fontCharacter:"\\eaea"}),s.filePdf=new s("file-pdf",{fontCharacter:"\\eaeb"}),s.fileSubmodule=new s("file-submodule",{fontCharacter:"\\eaec"}),s.fileSymlinkDirectory=new s("file-symlink-directory",{fontCharacter:"\\eaed"}),s.fileSymlinkFile=new s("file-symlink-file",{fontCharacter:"\\eaee"}),s.fileZip=new s("file-zip",{fontCharacter:"\\eaef"}),s.files=new s("files",{fontCharacter:"\\eaf0"}),s.filter=new s("filter",{fontCharacter:"\\eaf1"}),s.flame=new s("flame",{fontCharacter:"\\eaf2"}),s.foldDown=new s("fold-down",{fontCharacter:"\\eaf3"}),s.foldUp=new s("fold-up",{fontCharacter:"\\eaf4"}),s.fold=new s("fold",{fontCharacter:"\\eaf5"}),s.folderActive=new s("folder-active",{fontCharacter:"\\eaf6"}),s.folderOpened=new s("folder-opened",{fontCharacter:"\\eaf7"}),s.gear=new s("gear",{fontCharacter:"\\eaf8"}),s.gift=new s("gift",{fontCharacter:"\\eaf9"}),s.gistSecret=new s("gist-secret",{fontCharacter:"\\eafa"}),s.gist=new s("gist",{fontCharacter:"\\eafb"}),s.gitCommit=new s("git-commit",{fontCharacter:"\\eafc"}),s.gitCompare=new s("git-compare",{fontCharacter:"\\eafd"}),s.gitMerge=new s("git-merge",{fontCharacter:"\\eafe"}),s.githubAction=new s("github-action",{fontCharacter:"\\eaff"}),s.githubAlt=new s("github-alt",{fontCharacter:"\\eb00"}),s.globe=new s("globe",{fontCharacter:"\\eb01"}),s.grabber=new s("grabber",{fontCharacter:"\\eb02"}),s.graph=new s("graph",{fontCharacter:"\\eb03"}),s.gripper=new s("gripper",{fontCharacter:"\\eb04"}),s.heart=new s("heart",{fontCharacter:"\\eb05"}),s.home=new s("home",{fontCharacter:"\\eb06"}),s.horizontalRule=new s("horizontal-rule",{fontCharacter:"\\eb07"}),s.hubot=new s("hubot",{fontCharacter:"\\eb08"}),s.inbox=new s("inbox",{fontCharacter:"\\eb09"}),s.issueClosed=new s("issue-closed",{fontCharacter:"\\eba4"}),s.issueReopened=new s("issue-reopened",{fontCharacter:"\\eb0b"}),s.issues=new s("issues",{fontCharacter:"\\eb0c"}),s.italic=new s("italic",{fontCharacter:"\\eb0d"}),s.jersey=new s("jersey",{fontCharacter:"\\eb0e"}),s.json=new s("json",{fontCharacter:"\\eb0f"}),s.kebabVertical=new s("kebab-vertical",{fontCharacter:"\\eb10"}),s.key=new s("key",{fontCharacter:"\\eb11"}),s.law=new s("law",{fontCharacter:"\\eb12"}),s.lightbulbAutofix=new s("lightbulb-autofix",{fontCharacter:"\\eb13"}),s.linkExternal=new s("link-external",{fontCharacter:"\\eb14"}),s.link=new s("link",{fontCharacter:"\\eb15"}),s.listOrdered=new s("list-ordered",{fontCharacter:"\\eb16"}),s.listUnordered=new s("list-unordered",{fontCharacter:"\\eb17"}),s.liveShare=new s("live-share",{fontCharacter:"\\eb18"}),s.loading=new s("loading",{fontCharacter:"\\eb19"}),s.location=new s("location",{fontCharacter:"\\eb1a"}),s.mailRead=new s("mail-read",{fontCharacter:"\\eb1b"}),s.mail=new s("mail",{fontCharacter:"\\eb1c"}),s.markdown=new s("markdown",{fontCharacter:"\\eb1d"}),s.megaphone=new s("megaphone",{fontCharacter:"\\eb1e"}),s.mention=new s("mention",{fontCharacter:"\\eb1f"}),s.milestone=new s("milestone",{fontCharacter:"\\eb20"}),s.mortarBoard=new s("mortar-board",{fontCharacter:"\\eb21"}),s.move=new s("move",{fontCharacter:"\\eb22"}),s.multipleWindows=new s("multiple-windows",{fontCharacter:"\\eb23"}),s.mute=new s("mute",{fontCharacter:"\\eb24"}),s.noNewline=new s("no-newline",{fontCharacter:"\\eb25"}),s.note=new s("note",{fontCharacter:"\\eb26"}),s.octoface=new s("octoface",{fontCharacter:"\\eb27"}),s.openPreview=new s("open-preview",{fontCharacter:"\\eb28"}),s.package_=new s("package",{fontCharacter:"\\eb29"}),s.paintcan=new s("paintcan",{fontCharacter:"\\eb2a"}),s.pin=new s("pin",{fontCharacter:"\\eb2b"}),s.play=new s("play",{fontCharacter:"\\eb2c"}),s.run=new s("run",{fontCharacter:"\\eb2c"}),s.plug=new s("plug",{fontCharacter:"\\eb2d"}),s.preserveCase=new s("preserve-case",{fontCharacter:"\\eb2e"}),s.preview=new s("preview",{fontCharacter:"\\eb2f"}),s.project=new s("project",{fontCharacter:"\\eb30"}),s.pulse=new s("pulse",{fontCharacter:"\\eb31"}),s.question=new s("question",{fontCharacter:"\\eb32"}),s.quote=new s("quote",{fontCharacter:"\\eb33"}),s.radioTower=new s("radio-tower",{fontCharacter:"\\eb34"}),s.reactions=new s("reactions",{fontCharacter:"\\eb35"}),s.references=new s("references",{fontCharacter:"\\eb36"}),s.refresh=new s("refresh",{fontCharacter:"\\eb37"}),s.regex=new s("regex",{fontCharacter:"\\eb38"}),s.remoteExplorer=new s("remote-explorer",{fontCharacter:"\\eb39"}),s.remote=new s("remote",{fontCharacter:"\\eb3a"}),s.remove=new s("remove",{fontCharacter:"\\eb3b"}),s.replaceAll=new s("replace-all",{fontCharacter:"\\eb3c"}),s.replace=new s("replace",{fontCharacter:"\\eb3d"}),s.repoClone=new s("repo-clone",{fontCharacter:"\\eb3e"}),s.repoForcePush=new s("repo-force-push",{fontCharacter:"\\eb3f"}),s.repoPull=new s("repo-pull",{fontCharacter:"\\eb40"}),s.repoPush=new s("repo-push",{fontCharacter:"\\eb41"}),s.report=new s("report",{fontCharacter:"\\eb42"}),s.requestChanges=new s("request-changes",{fontCharacter:"\\eb43"}),s.rocket=new s("rocket",{fontCharacter:"\\eb44"}),s.rootFolderOpened=new s("root-folder-opened",{fontCharacter:"\\eb45"}),s.rootFolder=new s("root-folder",{fontCharacter:"\\eb46"}),s.rss=new s("rss",{fontCharacter:"\\eb47"}),s.ruby=new s("ruby",{fontCharacter:"\\eb48"}),s.saveAll=new s("save-all",{fontCharacter:"\\eb49"}),s.saveAs=new s("save-as",{fontCharacter:"\\eb4a"}),s.save=new s("save",{fontCharacter:"\\eb4b"}),s.screenFull=new s("screen-full",{fontCharacter:"\\eb4c"}),s.screenNormal=new s("screen-normal",{fontCharacter:"\\eb4d"}),s.searchStop=new s("search-stop",{fontCharacter:"\\eb4e"}),s.server=new s("server",{fontCharacter:"\\eb50"}),s.settingsGear=new s("settings-gear",{fontCharacter:"\\eb51"}),s.settings=new s("settings",{fontCharacter:"\\eb52"}),s.shield=new s("shield",{fontCharacter:"\\eb53"}),s.smiley=new s("smiley",{fontCharacter:"\\eb54"}),s.sortPrecedence=new s("sort-precedence",{fontCharacter:"\\eb55"}),s.splitHorizontal=new s("split-horizontal",{fontCharacter:"\\eb56"}),s.splitVertical=new s("split-vertical",{fontCharacter:"\\eb57"}),s.squirrel=new s("squirrel",{fontCharacter:"\\eb58"}),s.starFull=new s("star-full",{fontCharacter:"\\eb59"}),s.starHalf=new s("star-half",{fontCharacter:"\\eb5a"}),s.symbolClass=new s("symbol-class",{fontCharacter:"\\eb5b"}),s.symbolColor=new s("symbol-color",{fontCharacter:"\\eb5c"}),s.symbolConstant=new s("symbol-constant",{fontCharacter:"\\eb5d"}),s.symbolEnumMember=new s("symbol-enum-member",{fontCharacter:"\\eb5e"}),s.symbolField=new s("symbol-field",{fontCharacter:"\\eb5f"}),s.symbolFile=new s("symbol-file",{fontCharacter:"\\eb60"}),s.symbolInterface=new s("symbol-interface",{fontCharacter:"\\eb61"}),s.symbolKeyword=new s("symbol-keyword",{fontCharacter:"\\eb62"}),s.symbolMisc=new s("symbol-misc",{fontCharacter:"\\eb63"}),s.symbolOperator=new s("symbol-operator",{fontCharacter:"\\eb64"}),s.symbolProperty=new s("symbol-property",{fontCharacter:"\\eb65"}),s.wrench=new s("wrench",{fontCharacter:"\\eb65"}),s.wrenchSubaction=new s("wrench-subaction",{fontCharacter:"\\eb65"}),s.symbolSnippet=new s("symbol-snippet",{fontCharacter:"\\eb66"}),s.tasklist=new s("tasklist",{fontCharacter:"\\eb67"}),s.telescope=new s("telescope",{fontCharacter:"\\eb68"}),s.textSize=new s("text-size",{fontCharacter:"\\eb69"}),s.threeBars=new s("three-bars",{fontCharacter:"\\eb6a"}),s.thumbsdown=new s("thumbsdown",{fontCharacter:"\\eb6b"}),s.thumbsup=new s("thumbsup",{fontCharacter:"\\eb6c"}),s.tools=new s("tools",{fontCharacter:"\\eb6d"}),s.triangleDown=new s("triangle-down",{fontCharacter:"\\eb6e"}),s.triangleLeft=new s("triangle-left",{fontCharacter:"\\eb6f"}),s.triangleRight=new s("triangle-right",{fontCharacter:"\\eb70"}),s.triangleUp=new s("triangle-up",{fontCharacter:"\\eb71"}),s.twitter=new s("twitter",{fontCharacter:"\\eb72"}),s.unfold=new s("unfold",{fontCharacter:"\\eb73"}),s.unlock=new s("unlock",{fontCharacter:"\\eb74"}),s.unmute=new s("unmute",{fontCharacter:"\\eb75"}),s.unverified=new s("unverified",{fontCharacter:"\\eb76"}),s.verified=new s("verified",{fontCharacter:"\\eb77"}),s.versions=new s("versions",{fontCharacter:"\\eb78"}),s.vmActive=new s("vm-active",{fontCharacter:"\\eb79"}),s.vmOutline=new s("vm-outline",{fontCharacter:"\\eb7a"}),s.vmRunning=new s("vm-running",{fontCharacter:"\\eb7b"}),s.watch=new s("watch",{fontCharacter:"\\eb7c"}),s.whitespace=new s("whitespace",{fontCharacter:"\\eb7d"}),s.wholeWord=new s("whole-word",{fontCharacter:"\\eb7e"}),s.window=new s("window",{fontCharacter:"\\eb7f"}),s.wordWrap=new s("word-wrap",{fontCharacter:"\\eb80"}),s.zoomIn=new s("zoom-in",{fontCharacter:"\\eb81"}),s.zoomOut=new s("zoom-out",{fontCharacter:"\\eb82"}),s.listFilter=new s("list-filter",{fontCharacter:"\\eb83"}),s.listFlat=new s("list-flat",{fontCharacter:"\\eb84"}),s.listSelection=new s("list-selection",{fontCharacter:"\\eb85"}),s.selection=new s("selection",{fontCharacter:"\\eb85"}),s.listTree=new s("list-tree",{fontCharacter:"\\eb86"}),s.debugBreakpointFunctionUnverified=new s("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),s.debugBreakpointFunction=new s("debug-breakpoint-function",{fontCharacter:"\\eb88"}),s.debugBreakpointFunctionDisabled=new s("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),s.debugStackframeActive=new s("debug-stackframe-active",{fontCharacter:"\\eb89"}),s.debugStackframeDot=new s("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),s.debugStackframe=new s("debug-stackframe",{fontCharacter:"\\eb8b"}),s.debugStackframeFocused=new s("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),s.debugBreakpointUnsupported=new s("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),s.symbolString=new s("symbol-string",{fontCharacter:"\\eb8d"}),s.debugReverseContinue=new s("debug-reverse-continue",{fontCharacter:"\\eb8e"}),s.debugStepBack=new s("debug-step-back",{fontCharacter:"\\eb8f"}),s.debugRestartFrame=new s("debug-restart-frame",{fontCharacter:"\\eb90"}),s.callIncoming=new s("call-incoming",{fontCharacter:"\\eb92"}),s.callOutgoing=new s("call-outgoing",{fontCharacter:"\\eb93"}),s.menu=new s("menu",{fontCharacter:"\\eb94"}),s.expandAll=new s("expand-all",{fontCharacter:"\\eb95"}),s.feedback=new s("feedback",{fontCharacter:"\\eb96"}),s.groupByRefType=new s("group-by-ref-type",{fontCharacter:"\\eb97"}),s.ungroupByRefType=new s("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),s.account=new s("account",{fontCharacter:"\\eb99"}),s.bellDot=new s("bell-dot",{fontCharacter:"\\eb9a"}),s.debugConsole=new s("debug-console",{fontCharacter:"\\eb9b"}),s.library=new s("library",{fontCharacter:"\\eb9c"}),s.output=new s("output",{fontCharacter:"\\eb9d"}),s.runAll=new s("run-all",{fontCharacter:"\\eb9e"}),s.syncIgnored=new s("sync-ignored",{fontCharacter:"\\eb9f"}),s.pinned=new s("pinned",{fontCharacter:"\\eba0"}),s.githubInverted=new s("github-inverted",{fontCharacter:"\\eba1"}),s.debugAlt=new s("debug-alt",{fontCharacter:"\\eb91"}),s.serverProcess=new s("server-process",{fontCharacter:"\\eba2"}),s.serverEnvironment=new s("server-environment",{fontCharacter:"\\eba3"}),s.pass=new s("pass",{fontCharacter:"\\eba4"}),s.stopCircle=new s("stop-circle",{fontCharacter:"\\eba5"}),s.playCircle=new s("play-circle",{fontCharacter:"\\eba6"}),s.record=new s("record",{fontCharacter:"\\eba7"}),s.debugAltSmall=new s("debug-alt-small",{fontCharacter:"\\eba8"}),s.vmConnect=new s("vm-connect",{fontCharacter:"\\eba9"}),s.cloud=new s("cloud",{fontCharacter:"\\ebaa"}),s.merge=new s("merge",{fontCharacter:"\\ebab"}),s.exportIcon=new s("export",{fontCharacter:"\\ebac"}),s.graphLeft=new s("graph-left",{fontCharacter:"\\ebad"}),s.magnet=new s("magnet",{fontCharacter:"\\ebae"}),s.notebook=new s("notebook",{fontCharacter:"\\ebaf"}),s.redo=new s("redo",{fontCharacter:"\\ebb0"}),s.checkAll=new s("check-all",{fontCharacter:"\\ebb1"}),s.pinnedDirty=new s("pinned-dirty",{fontCharacter:"\\ebb2"}),s.passFilled=new s("pass-filled",{fontCharacter:"\\ebb3"}),s.circleLargeFilled=new s("circle-large-filled",{fontCharacter:"\\ebb4"}),s.circleLargeOutline=new s("circle-large-outline",{fontCharacter:"\\ebb5"}),s.combine=new s("combine",{fontCharacter:"\\ebb6"}),s.gather=new s("gather",{fontCharacter:"\\ebb6"}),s.table=new s("table",{fontCharacter:"\\ebb7"}),s.variableGroup=new s("variable-group",{fontCharacter:"\\ebb8"}),s.typeHierarchy=new s("type-hierarchy",{fontCharacter:"\\ebb9"}),s.typeHierarchySub=new s("type-hierarchy-sub",{fontCharacter:"\\ebba"}),s.typeHierarchySuper=new s("type-hierarchy-super",{fontCharacter:"\\ebbb"}),s.gitPullRequestCreate=new s("git-pull-request-create",{fontCharacter:"\\ebbc"}),s.runAbove=new s("run-above",{fontCharacter:"\\ebbd"}),s.runBelow=new s("run-below",{fontCharacter:"\\ebbe"}),s.notebookTemplate=new s("notebook-template",{fontCharacter:"\\ebbf"}),s.debugRerun=new s("debug-rerun",{fontCharacter:"\\ebc0"}),s.workspaceTrusted=new s("workspace-trusted",{fontCharacter:"\\ebc1"}),s.workspaceUntrusted=new s("workspace-untrusted",{fontCharacter:"\\ebc2"}),s.workspaceUnspecified=new s("workspace-unspecified",{fontCharacter:"\\ebc3"}),s.terminalCmd=new s("terminal-cmd",{fontCharacter:"\\ebc4"}),s.terminalDebian=new s("terminal-debian",{fontCharacter:"\\ebc5"}),s.terminalLinux=new s("terminal-linux",{fontCharacter:"\\ebc6"}),s.terminalPowershell=new s("terminal-powershell",{fontCharacter:"\\ebc7"}),s.terminalTmux=new s("terminal-tmux",{fontCharacter:"\\ebc8"}),s.terminalUbuntu=new s("terminal-ubuntu",{fontCharacter:"\\ebc9"}),s.terminalBash=new s("terminal-bash",{fontCharacter:"\\ebca"}),s.arrowSwap=new s("arrow-swap",{fontCharacter:"\\ebcb"}),s.copy=new s("copy",{fontCharacter:"\\ebcc"}),s.personAdd=new s("person-add",{fontCharacter:"\\ebcd"}),s.filterFilled=new s("filter-filled",{fontCharacter:"\\ebce"}),s.wand=new s("wand",{fontCharacter:"\\ebcf"}),s.debugLineByLine=new s("debug-line-by-line",{fontCharacter:"\\ebd0"}),s.inspect=new s("inspect",{fontCharacter:"\\ebd1"}),s.layers=new s("layers",{fontCharacter:"\\ebd2"}),s.layersDot=new s("layers-dot",{fontCharacter:"\\ebd3"}),s.layersActive=new s("layers-active",{fontCharacter:"\\ebd4"}),s.compass=new s("compass",{fontCharacter:"\\ebd5"}),s.compassDot=new s("compass-dot",{fontCharacter:"\\ebd6"}),s.compassActive=new s("compass-active",{fontCharacter:"\\ebd7"}),s.azure=new s("azure",{fontCharacter:"\\ebd8"}),s.issueDraft=new s("issue-draft",{fontCharacter:"\\ebd9"}),s.gitPullRequestClosed=new s("git-pull-request-closed",{fontCharacter:"\\ebda"}),s.gitPullRequestDraft=new s("git-pull-request-draft",{fontCharacter:"\\ebdb"}),s.debugAll=new s("debug-all",{fontCharacter:"\\ebdc"}),s.debugCoverage=new s("debug-coverage",{fontCharacter:"\\ebdd"}),s.runErrors=new s("run-errors",{fontCharacter:"\\ebde"}),s.folderLibrary=new s("folder-library",{fontCharacter:"\\ebdf"}),s.debugContinueSmall=new s("debug-continue-small",{fontCharacter:"\\ebe0"}),s.beakerStop=new s("beaker-stop",{fontCharacter:"\\ebe1"}),s.graphLine=new s("graph-line",{fontCharacter:"\\ebe2"}),s.graphScatter=new s("graph-scatter",{fontCharacter:"\\ebe3"}),s.pieChart=new s("pie-chart",{fontCharacter:"\\ebe4"}),s.bracket=new s("bracket",s.json.definition),s.bracketDot=new s("bracket-dot",{fontCharacter:"\\ebe5"}),s.bracketError=new s("bracket-error",{fontCharacter:"\\ebe6"}),s.lockSmall=new s("lock-small",{fontCharacter:"\\ebe7"}),s.azureDevops=new s("azure-devops",{fontCharacter:"\\ebe8"}),s.verifiedFilled=new s("verified-filled",{fontCharacter:"\\ebe9"})}(ve||(ve={}))},79881:function(qt,qe,p){"use strict";p.d(qe,{B8:function(){return L},Cp:function(){return Ce},F0:function(){return xe},L6:function(){return A},VV:function(){return ve},b1:function(){return s},dL:function(){return de},ri:function(){return j}});class M{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+`
|
|
|
|
|
|
`+u.stack):u},0)}}emit(u){this.listeners.forEach(y=>{y(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const Y=new M;function de(v){ve(v)||Y.onUnexpectedError(v)}function Ce(v){ve(v)||Y.onUnexpectedExternalError(v)}function j(v){if(v instanceof Error){let{name:u,message:y}=v;const b=v.stacktrace||v.stack;return{$isError:!0,name:u,message:y,stack:b}}return v}const X="Canceled";function ve(v){return v instanceof Error&&v.name===X&&v.message===X}function xe(){const v=new Error(X);return v.name=v.message,v}function s(v){return v?new Error(`Illegal argument: ${v}`):new Error("Illegal argument")}function A(v){return v?new Error(`Illegal state: ${v}`):new Error("Illegal state")}class L extends Error{constructor(u){super("NotSupported"),u&&(this.message=u)}}},4348:function(qt,qe,p){"use strict";p.d(qe,{D0:function(){return L},E7:function(){return v},K3:function(){return A},Q5:function(){return s},ZD:function(){return u},ju:function(){return j}});var M=p(79881),Y=p(69323),de=p(34502),Ce=p(95830),j;(function(y){y.None=()=>Y.JT.None;function b(se){return(D,J=null,K)=>{let g=!1,E;return E=se(Z=>{if(!g)return E?E.dispose():g=!0,D.call(J,Z)},null,K),g&&E.dispose(),E}}y.once=b;function k(se,D){return x((J,K=null,g)=>se(E=>J.call(K,D(E)),null,g))}y.map=k;function ae(se,D){return x((J,K=null,g)=>se(E=>{D(E),J.call(K,E)},null,g))}y.forEach=ae;function P(se,D){return x((J,K=null,g)=>se(E=>D(E)&&J.call(K,E),null,g))}y.filter=P;function N(se){return se}y.signal=N;function G(...se){return(D,J=null,K)=>(0,Y.F8)(...se.map(g=>g(E=>D.call(J,E),null,K)))}y.any=G;function U(se,D,J){let K=J;return k(se,g=>(K=D(K,g),K))}y.reduce=U;function x(se){let D;const J=new s({onFirstListenerAdd(){D=se(J.fire,J)},onLastListenerRemove(){D.dispose()}});return J.event}function T(se,D,J=100,K=!1,g){let E,Z,pe,ze=0;const We=new s({leakWarningThreshold:g,onFirstListenerAdd(){E=se(je=>{ze++,Z=D(Z,je),K&&!pe&&(We.fire(Z),Z=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Ge=Z;Z=void 0,pe=void 0,(!K||ze>1)&&We.fire(Ge),ze=0},J)})},onLastListenerRemove(){E.dispose()}});return We.event}y.debounce=T;function B(se,D=(J,K)=>J===K){let J=!0,K;return P(se,g=>{const E=J||!D(g,K);return J=!1,K=g,E})}y.latch=B;function F(se,D){return[y.filter(se,D),y.filter(se,J=>!D(J))]}y.split=F;function fe(se,D=!1,J=[]){let K=J.slice(),g=se(pe=>{K?K.push(pe):Z.fire(pe)});const E=()=>{K&&K.forEach(pe=>Z.fire(pe)),K=null},Z=new s({onFirstListenerAdd(){g||(g=se(pe=>Z.fire(pe)))},onFirstListenerDidAdd(){K&&(D?setTimeout(E):E())},onLastListenerRemove(){g&&g.dispose(),g=null}});return Z.event}y.buffer=fe;class be{constructor(D){this.event=D}map(D){return new be(k(this.event,D))}forEach(D){return new be(ae(this.event,D))}filter(D){return new be(P(this.event,D))}reduce(D,J){return new be(U(this.event,D,J))}latch(){return new be(B(this.event))}debounce(D,J=100,K=!1,g){return new be(T(this.event,D,J,K,g))}on(D,J,K){return this.event(D,J,K)}once(D,J,K){return b(this.event)(D,J,K)}}function Re(se){return new be(se)}y.chain=Re;function he(se,D,J=K=>K){const K=(...pe)=>Z.fire(J(...pe)),g=()=>se.on(D,K),E=()=>se.removeListener(D,K),Z=new s({onFirstListenerAdd:g,onLastListenerRemove:E});return Z.event}y.fromNodeEventEmitter=he;function W(se,D,J=K=>K){const K=(...pe)=>Z.fire(J(...pe)),g=()=>se.addEventListener(D,K),E=()=>se.removeEventListener(D,K),Z=new s({onFirstListenerAdd:g,onLastListenerRemove:E});return Z.event}y.fromDOMEventEmitter=W;function $(se){return new Promise(D=>b(se)(D))}y.toPromise=$})(j||(j={}));class X{constructor(b){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${b}_${X._idPool++}`}start(b){this._stopWatch=new Ce.G(!0),this._listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this._elapsedOverall+=b,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${b.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}X._idPool=0;let ve=-1;class xe{constructor(b,k=Math.random().toString(18).slice(2,5)){this.customThreshold=b,this.name=k,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(b){let k=ve;if(typeof this.customThreshold=="number"&&(k=this.customThreshold),k<=0||b<k)return;this._stacks||(this._stacks=new Map);const ae=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),P=this._stacks.get(ae)||0;if(this._stacks.set(ae,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=k*.5;let N,G=0;for(const[U,x]of this._stacks)(!N||G<x)&&(N=U,G=x);console.warn(`[${this.name}] potential listener LEAK detected, having ${b} listeners already. MOST frequent listener (${G}):`),console.warn(N)}return()=>{const N=this._stacks.get(ae)||0;this._stacks.set(ae,N-1)}}}class s{constructor(b){var k;this._disposed=!1,this._options=b,this._leakageMon=ve>0?new xe(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((k=this._options)===null||k===void 0)&&k._profName?new X(this._options._profName):void 0}get event(){return this._event||(this._event=(b,k,ae)=>{var P;this._listeners||(this._listeners=new de.S);const N=this._listeners.isEmpty();N&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const G=this._listeners.push(k?[b,k]:b);N&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,b,k);const U=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),x=(0,Y.OF)(()=>{U&&U(),this._disposed||(G(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return ae instanceof Y.SL?ae.add(x):Array.isArray(ae)&&ae.push(x),x}),this._event}fire(b){var k,ae;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new de.S);for(let P of this._listeners)this._deliveryQueue.push([P,b]);for((k=this._perfMon)===null||k===void 0||k.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,N]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,N):P[0].call(P[1],N)}catch(G){(0,M.dL)(G)}}(ae=this._perfMon)===null||ae===void 0||ae.stop()}}dispose(){var b,k,ae,P,N;this._disposed||(this._disposed=!0,(b=this._listeners)===null||b===void 0||b.clear(),(k=this._deliveryQueue)===null||k===void 0||k.clear(),(P=(ae=this._options)===null||ae===void 0?void 0:ae.onLastListenerRemove)===null||P===void 0||P.call(ae),(N=this._leakageMon)===null||N===void 0||N.dispose())}}class A extends s{constructor(b){super(b),this._isPaused=0,this._eventQueue=new de.S,this._mergeFn=b==null?void 0:b.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const b=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(b))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(b){this._listeners&&(this._isPaused!==0?this._eventQueue.push(b):super.fire(b))}}class L extends A{constructor(b){var k;super(b),this._delay=(k=b.delay)!==null&&k!==void 0?k:100}fire(b){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(b)}}class v{constructor(){this.buffers=[]}wrapEvent(b){return(k,ae,P)=>b(N=>{const G=this.buffers[this.buffers.length-1];G?G.push(()=>k.call(ae,N)):k.call(ae,N)},void 0,P)}bufferEvents(b){const k=[];this.buffers.push(k);const ae=b();return this.buffers.pop(),k.forEach(P=>P()),ae}}class u{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=Y.JT.None,this.emitter=new s({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(b){this.inputEvent=b,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=b(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(qt,qe,p){"use strict";p.d(qe,{I:function(){return M}});function M(Y){const de=this;let Ce=!1,j;return function(){return Ce||(Ce=!0,j=Y.apply(de,arguments)),j}}},88226:function(qt,qe,p){"use strict";p.d(qe,{$:function(){return M}});var M;(function(Y){function de(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}Y.is=de;const Ce=Object.freeze([]);function j(){return Ce}Y.empty=j;function*X(G){yield G}Y.single=X;function ve(G){return G||Ce}Y.from=ve;function xe(G){return!G||G[Symbol.iterator]().next().done===!0}Y.isEmpty=xe;function s(G){return G[Symbol.iterator]().next().value}Y.first=s;function A(G,U){for(const x of G)if(U(x))return!0;return!1}Y.some=A;function L(G,U){for(const x of G)if(U(x))return x}Y.find=L;function*v(G,U){for(const x of G)U(x)&&(yield x)}Y.filter=v;function*u(G,U){let x=0;for(const T of G)yield U(T,x++)}Y.map=u;function*y(...G){for(const U of G)for(const x of U)yield x}Y.concat=y;function*b(G){for(const U of G)for(const x of U)yield x}Y.concatNested=b;function k(G,U,x){let T=x;for(const B of G)T=U(T,B);return T}Y.reduce=k;function*ae(G,U,x=G.length){for(U<0&&(U+=G.length),x<0?x+=G.length:x>G.length&&(x=G.length);U<x;U++)yield G[U]}Y.slice=ae;function P(G,U=Number.POSITIVE_INFINITY){const x=[];if(U===0)return[x,G];const T=G[Symbol.iterator]();for(let B=0;B<U;B++){const F=T.next();if(F.done)return[x,Y.empty()];x.push(F.value)}return[x,{[Symbol.iterator](){return T}}]}Y.consume=P;function N(G,U,x=(T,B)=>T===B){const T=G[Symbol.iterator](),B=U[Symbol.iterator]();for(;;){const F=T.next(),fe=B.next();if(F.done!==fe.done)return!1;if(F.done)return!0;if(!x(F.value,fe.value))return!1}}Y.equals=N})(M||(M={}))},69323:function(qt,qe,p){"use strict";p.d(qe,{B9:function(){return u},F8:function(){return y},JT:function(){return ae},Jz:function(){return N},OF:function(){return b},SL:function(){return k},Wf:function(){return v},XK:function(){return P},dk:function(){return A}});var M=p(17845),Y=p(88226);const de=!1;let Ce=null;function j(G){Ce=G}if(de){const G="__is_disposable_tracked__";j(new class{trackDisposable(U){const x=new Error("Potentially leaked disposable").stack;setTimeout(()=>{U[G]||console.log(x)},3e3)}setParent(U,x){if(U&&U!==ae.None)try{U[G]=!0}catch(T){}}markAsDisposed(U){if(U&&U!==ae.None)try{U[G]=!0}catch(x){}}markAsSingleton(U){}})}function X(G){return Ce==null||Ce.trackDisposable(G),G}function ve(G){Ce==null||Ce.markAsDisposed(G)}function xe(G,U){Ce==null||Ce.setParent(G,U)}function s(G,U){if(Ce)for(const x of G)Ce.setParent(x,U)}function A(G){return Ce==null||Ce.markAsSingleton(G),G}class L extends Error{constructor(U){super(`Encountered errors while disposing of store. Errors: [${U.join(", ")}]`),this.errors=U}}function v(G){return typeof G.dispose=="function"&&G.dispose.length===0}function u(G){if(Y.$.is(G)){let U=[];for(const x of G)if(x)try{x.dispose()}catch(T){U.push(T)}if(U.length===1)throw U[0];if(U.length>1)throw new L(U);return Array.isArray(G)?[]:G}else if(G)return G.dispose(),G}function y(...G){const U=b(()=>u(G));return s(G,U),U}function b(G){const U=X({dispose:(0,M.I)(()=>{ve(U),G()})});return U}class k{constructor(){this._toDispose=new Set,this._isDisposed=!1,X(this)}dispose(){this._isDisposed||(ve(this),this._isDisposed=!0,this.clear())}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(U){if(!U)return U;if(U===this)throw new Error("Cannot register a disposable on itself!");return xe(U,this),this._isDisposed?k.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(U),U}}k.DISABLE_DISPOSED_WARNING=!1;class ae{constructor(){this._store=new k,X(this),xe(this._store,this)}dispose(){ve(this),this._store.dispose()}_register(U){if(U===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(U)}}ae.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,X(this)}get value(){return this._isDisposed?void 0:this._value}set value(U){var x;this._isDisposed||U===this._value||((x=this._value)===null||x===void 0||x.dispose(),U&&xe(U,this),this._value=U)}clear(){this.value=void 0}dispose(){var U;this._isDisposed=!0,ve(this),(U=this._value)===null||U===void 0||U.dispose(),this._value=void 0}clearAndLeak(){const U=this._value;return this._value=void 0,U&&xe(U,null),U}}class N{constructor(U){this.object=U}dispose(){}}},34502:function(qt,qe,p){"use strict";p.d(qe,{S:function(){return Y}});class M{constructor(Ce){this.element=Ce,this.next=M.Undefined,this.prev=M.Undefined}}M.Undefined=new M(void 0);class Y{constructor(){this._first=M.Undefined,this._last=M.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===M.Undefined}clear(){let Ce=this._first;for(;Ce!==M.Undefined;){const j=Ce.next;Ce.prev=M.Undefined,Ce.next=M.Undefined,Ce=j}this._first=M.Undefined,this._last=M.Undefined,this._size=0}unshift(Ce){return this._insert(Ce,!1)}push(Ce){return this._insert(Ce,!0)}_insert(Ce,j){const X=new M(Ce);if(this._first===M.Undefined)this._first=X,this._last=X;else if(j){const xe=this._last;this._last=X,X.prev=xe,xe.next=X}else{const xe=this._first;this._first=X,X.next=xe,xe.prev=X}this._size+=1;let ve=!1;return()=>{ve||(ve=!0,this._remove(X))}}shift(){if(this._first!==M.Undefined){const Ce=this._first.element;return this._remove(this._first),Ce}}pop(){if(this._last!==M.Undefined){const Ce=this._last.element;return this._remove(this._last),Ce}}_remove(Ce){if(Ce.prev!==M.Undefined&&Ce.next!==M.Undefined){const j=Ce.prev;j.next=Ce.next,Ce.next.prev=j}else Ce.prev===M.Undefined&&Ce.next===M.Undefined?(this._first=M.Undefined,this._last=M.Undefined):Ce.next===M.Undefined?(this._last=this._last.prev,this._last.next=M.Undefined):Ce.prev===M.Undefined&&(this._first=this._first.next,this._first.prev=M.Undefined);this._size-=1}*[Symbol.iterator](){let Ce=this._first;for(;Ce!==M.Undefined;)yield Ce.element,Ce=Ce.next}}},23345:function(qt,qe,p){"use strict";p.d(qe,{$L:function(){return T},ED:function(){return N},IJ:function(){return U},OS:function(){return be},WE:function(){return F},dz:function(){return G},gn:function(){return B},li:function(){return b},r:function(){return W},tY:function(){return x},xS:function(){return fe}});var M=p(97671),Y;const de="en";let Ce=!1,j=!1,X=!1,ve=!1,xe=!1,s=!1,A=!1,L,v=null,u=null,y;const b=typeof self=="object"?self:typeof p.g=="object"?p.g:{};let k;typeof b.vscode!="undefined"&&typeof b.vscode.process!="undefined"?k=b.vscode.process:typeof M!="undefined"&&(k=M);const ae=typeof((Y=k==null?void 0:k.versions)===null||Y===void 0?void 0:Y.electron)=="string"&&k.type==="renderer";if(typeof navigator=="object"&&!ae)y=navigator.userAgent,Ce=y.indexOf("Windows")>=0,j=y.indexOf("Macintosh")>=0,A=(y.indexOf("Macintosh")>=0||y.indexOf("iPad")>=0||y.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X=y.indexOf("Linux")>=0,s=!0,L=navigator.language,v=L;else if(typeof k=="object"){Ce=k.platform==="win32",j=k.platform==="darwin",X=k.platform==="linux",ve=X&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,L=de,v=de;const $=k.env.VSCODE_NLS_CONFIG;if($)try{const se=JSON.parse($),D=se.availableLanguages["*"];L=se.locale,v=D||de,u=se._translationsConfigFile}catch(se){}xe=!0}else console.error("Unable to resolve platform.");let P=0;j?P=1:Ce?P=3:X&&(P=2);const N=Ce,G=j,U=X,x=xe,T=s,B=A,F=y,fe=function(){if(b.setImmediate)return b.setImmediate.bind(b);if(typeof b.postMessage=="function"&&!b.importScripts){let D=[];b.addEventListener("message",K=>{if(K.data&&K.data.vscodeSetImmediateId)for(let g=0,E=D.length;g<E;g++){const Z=D[g];if(Z.id===K.data.vscodeSetImmediateId){D.splice(g,1),Z.callback();return}}});let J=0;return K=>{const g=++J;D.push({id:g,callback:K}),b.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(k==null?void 0:k.nextTick)=="function")return k.nextTick.bind(k);const se=Promise.resolve();return D=>se.then(D)}(),be=j||A?2:Ce?1:3;let Re=!0,he=!1;function W(){if(!he){he=!0;const $=new Uint8Array(2);$[0]=1,$[1]=2,Re=new Uint16Array($.buffer)[0]===513}return Re}},95830:function(qt,qe,p){"use strict";p.d(qe,{G:function(){return de}});var M=p(23345);const Y=M.li.performance&&typeof M.li.performance.now=="function";class de{constructor(j){this._highResolution=Y&&j,this._startTime=this._now(),this._stopTime=-1}static create(j=!0){return new de(j)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?M.li.performance.now():Date.now()}}},82983:function(qt,qe,p){"use strict";p.d(qe,{$i:function(){return ze},C8:function(){return ht},GF:function(){return L},HO:function(){return J},IO:function(){return v},K7:function(){return pt},Kw:function(){return Jt},LC:function(){return b},Mh:function(){return fe},P1:function(){return be},PJ:function(){return on},Qe:function(){return We},R1:function(){return A},RP:function(){return Z},S6:function(){return Kt},TT:function(){return N},Ut:function(){return g},V8:function(){return k},WU:function(){return de},YK:function(){return he},YU:function(){return Ce},ZG:function(){return Re},ZH:function(){return $},ab:function(){return je},c1:function(){return rt},df:function(){return T},ec:function(){return j},fi:function(){return at},fy:function(){return X},j3:function(){return ve},j_:function(){return U},m5:function(){return M},mK:function(){return x},mr:function(){return u},oH:function(){return ge},oL:function(){return xe},ok:function(){return F},ow:function(){return ae},qq:function(){return B},qu:function(){return P},rL:function(){return W},uS:function(){return Vt},un:function(){return s},uq:function(){return y},vH:function(){return D},xe:function(){return Ge},zY:function(){return G}});function M(O){return!O||typeof O!="string"?!0:O.trim().length===0}const Y=/{(\d+)}/g;function de(O,...oe){return oe.length===0?O:O.replace(Y,function(Q,le){const ce=parseInt(le,10);return isNaN(ce)||ce<0||ce>=oe.length?Q:oe[ce]})}function Ce(O){return O.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function j(O){return O.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function X(O,oe=" "){const Q=ve(O,oe);return xe(Q,oe)}function ve(O,oe){if(!O||!oe)return O;const Q=oe.length;if(Q===0||O.length===0)return O;let le=0;for(;O.indexOf(oe,le)===le;)le=le+Q;return O.substring(le)}function xe(O,oe){if(!O||!oe)return O;const Q=oe.length,le=O.length;if(Q===0||le===0)return O;let ce=le,Ae=-1;for(;Ae=O.lastIndexOf(oe,ce-1),!(Ae===-1||Ae+Q!==ce);){if(Ae===0)return"";ce=Ae}return O.substring(0,ce)}function s(O){return O.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A(O){return O.replace(/\*/g,"")}function L(O,oe,Q={}){if(!O)throw new Error("Cannot create regex from empty string");oe||(O=j(O)),Q.wholeWord&&(/\B/.test(O.charAt(0))||(O="\\b"+O),/\B/.test(O.charAt(O.length-1))||(O=O+"\\b"));let le="";return Q.global&&(le+="g"),Q.matchCase||(le+="i"),Q.multiline&&(le+="m"),Q.unicode&&(le+="u"),new RegExp(O,le)}function v(O){return O.source==="^"||O.source==="^$"||O.source==="$"||O.source==="^\\s*$"?!1:!!(O.exec("")&&O.lastIndex===0)}function u(O){return(O.global?"g":"")+(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")}function y(O){return O.split(/\r\n|\r|\n/)}function b(O){for(let oe=0,Q=O.length;oe<Q;oe++){const le=O.charCodeAt(oe);if(le!==32&&le!==9)return oe}return-1}function k(O,oe=0,Q=O.length){for(let le=oe;le<Q;le++){const ce=O.charCodeAt(le);if(ce!==32&&ce!==9)return O.substring(oe,le)}return O.substring(oe,Q)}function ae(O,oe=O.length-1){for(let Q=oe;Q>=0;Q--){const le=O.charCodeAt(Q);if(le!==32&&le!==9)return Q}return-1}function P(O,oe){return O<oe?-1:O>oe?1:0}function N(O,oe,Q=0,le=O.length,ce=0,Ae=oe.length){for(;Q<le&&ce<Ae;Q++,ce++){let Ie=O.charCodeAt(Q),Fe=oe.charCodeAt(ce);if(Ie<Fe)return-1;if(Ie>Fe)return 1}const _e=le-Q,Pe=Ae-ce;return _e<Pe?-1:_e>Pe?1:0}function G(O,oe){return U(O,oe,0,O.length,0,oe.length)}function U(O,oe,Q=0,le=O.length,ce=0,Ae=oe.length){for(;Q<le&&ce<Ae;Q++,ce++){let Ie=O.charCodeAt(Q),Fe=oe.charCodeAt(ce);if(Ie===Fe)continue;if(Ie>=128||Fe>=128)return N(O.toLowerCase(),oe.toLowerCase(),Q,le,ce,Ae);x(Ie)&&(Ie-=32),x(Fe)&&(Fe-=32);const Qe=Ie-Fe;if(Qe!==0)return Qe}const _e=le-Q,Pe=Ae-ce;return _e<Pe?-1:_e>Pe?1:0}function x(O){return O>=97&&O<=122}function T(O){return O>=65&&O<=90}function B(O,oe){return O.length===oe.length&&U(O,oe)===0}function F(O,oe){const Q=oe.length;return oe.length>O.length?!1:U(O,oe,0,Q)===0}function fe(O,oe){let Q,le=Math.min(O.length,oe.length);for(Q=0;Q<le;Q++)if(O.charCodeAt(Q)!==oe.charCodeAt(Q))return Q;return le}function be(O,oe){let Q,le=Math.min(O.length,oe.length);const ce=O.length-1,Ae=oe.length-1;for(Q=0;Q<le;Q++)if(O.charCodeAt(ce-Q)!==oe.charCodeAt(Ae-Q))return Q;return le}function Re(O){return 55296<=O&&O<=56319}function he(O){return 56320<=O&&O<=57343}function W(O,oe){return(O-55296<<10)+(oe-56320)+65536}function $(O,oe,Q){const le=O.charCodeAt(Q);if(Re(le)&&Q+1<oe){const ce=O.charCodeAt(Q+1);if(he(ce))return W(le,ce)}return le}function se(O,oe){const Q=O.charCodeAt(oe-1);if(he(Q)&&oe>1){const le=O.charCodeAt(oe-2);if(Re(le))return W(le,Q)}return Q}function D(O,oe){const Q=Et.getInstance(),le=oe,ce=O.length,Ae=$(O,ce,oe);oe+=Ae>=65536?2:1;let _e=Q.getGraphemeBreakType(Ae);for(;oe<ce;){const Pe=$(O,ce,oe),Ie=Q.getGraphemeBreakType(Pe);if(at(_e,Ie))break;oe+=Pe>=65536?2:1,_e=Ie}return oe-le}function J(O,oe){const Q=Et.getInstance(),le=oe,ce=se(O,oe);oe-=ce>=65536?2:1;let Ae=Q.getGraphemeBreakType(ce);for(;oe>0;){const _e=se(O,oe),Pe=Q.getGraphemeBreakType(_e);if(at(Pe,Ae))break;oe-=_e>=65536?2:1,Ae=Pe}return le-oe}const K=/(?:[\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(O){return K.test(O)}const E=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Z(O){return E.test(O)}const pe=/^[\t\n\r\x20-\x7E]*$/;function ze(O){return pe.test(O)}const We=/[\u2028\u2029]/;function je(O){return We.test(O)}function Ge(O){for(let oe=0,Q=O.length;oe<Q;oe++)if(pt(O.charCodeAt(oe)))return!0;return!1}function pt(O){return O=+O,O>=11904&&O<=55215||O>=63744&&O<=64255||O>=65281&&O<=65374}function ht(O){return O>=127462&&O<=127487||O===8986||O===8987||O===9200||O===9203||O>=9728&&O<=10175||O===11088||O===11093||O>=127744&&O<=128591||O>=128640&&O<=128764||O>=128992&&O<=129003||O>=129280&&O<=129535||O>=129648&&O<=129750}const rt="\uFEFF";function Vt(O){return!!(O&&O.length>0&&O.charCodeAt(0)===65279)}function Jt(O,oe=!1){return O?(oe&&(O=O.replace(/\\./g,"")),O.toLowerCase()!==O):!1}function on(O){return O=O%(2*26),O<26?String.fromCharCode(97+O):String.fromCharCode(65+O-26)}function Kt(O){return Et.getInstance().getGraphemeBreakType(O)}function at(O,oe){return O===0?oe!==5&&oe!==7:O===2&&oe===3?!1:O===4||O===2||O===3||oe===4||oe===2||oe===3?!0:!(O===8&&(oe===8||oe===9||oe===11||oe===12)||(O===11||O===9)&&(oe===9||oe===10)||(O===12||O===10)&&oe===10||oe===5||oe===13||oe===7||O===1||O===13&&oe===14||O===6&&oe===6)}class Et{constructor(){this._data=q()}static getInstance(){return Et._INSTANCE||(Et._INSTANCE=new Et),Et._INSTANCE}getGraphemeBreakType(oe){if(oe<32)return oe===10?3:oe===13?2:4;if(oe<127)return 0;const Q=this._data,le=Q.length/3;let ce=1;for(;ce<=le;)if(oe<Q[3*ce])ce=2*ce;else if(oe>Q[3*ce+1])ce=2*ce+1;else return Q[3*ce+2];return 0}}Et._INSTANCE=null;function q(){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 ge(O,oe){if(O===0)return 0;const Q=ne(O,oe);if(Q!==void 0)return Q;const le=se(oe,O);return O-=z(le),O}function ne(O,oe){let Q=se(oe,O);for(O-=z(Q);De(Q)||Q===65039||Q===8419;){if(O===0)return;Q=se(oe,O),O-=z(Q)}if(ht(Q)){if(O>=0){const le=se(oe,O);le===8205&&(O-=z(le))}return O}}function z(O){return O>=65536?2:1}function De(O){return 127995<=O&&O<=127999}},72999:function(qt,qe,p){"use strict";p.d(qe,{$E:function(){return b},$K:function(){return ve},D8:function(){return v},HD:function(){return Y},IU:function(){return k},Jp:function(){return xe},Kn:function(){return de},cW:function(){return A},f6:function(){return ae},hj:function(){return Ce},jn:function(){return j},kJ:function(){return M},mf:function(){return L},o8:function(){return X},p_:function(){return s},vE:function(){return P}});function M(N){return Array.isArray(N)}function Y(N){return typeof N=="string"}function de(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)&&!(N instanceof RegExp)&&!(N instanceof Date)}function Ce(N){return typeof N=="number"&&!isNaN(N)}function j(N){return N===!0||N===!1}function X(N){return typeof N=="undefined"}function ve(N){return!xe(N)}function xe(N){return X(N)||N===null}function s(N,G){if(!N)throw new Error(G?`Unexpected type, expected '${G}'`:"Unexpected type")}function A(N){if(xe(N))throw new Error("Assertion Failed: argument is undefined or null");return N}function L(N){return typeof N=="function"}function v(N,G){const U=Math.min(N.length,G.length);for(let x=0;x<U;x++)u(N[x],G[x])}function u(N,G){if(Y(G)){if(typeof N!==G)throw new Error(`argument does not match constraint: typeof ${G}`)}else if(L(G)){try{if(N instanceof G)return}catch(U){}if(!xe(N)&&N.constructor===G||G.length===1&&G.call(void 0,N)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function y(N){let G=[],U=Object.getPrototypeOf(N);for(;Object.prototype!==U;)G=G.concat(Object.getOwnPropertyNames(U)),U=Object.getPrototypeOf(U);return G}function b(N){const G=[];for(const U of y(N))typeof N[U]=="function"&&G.push(U);return G}function k(N,G){const U=T=>function(){const B=Array.prototype.slice.call(arguments,0);return G(T,B)};let x={};for(const T of N)x[T]=U(T);return x}function ae(N){return N===null?void 0:N}function P(N,G="Unreachable"){throw new Error(G)}},13268:function(qt,qe,p){"use strict";p.d(qe,{N:function(){return Y}});function M(de,Ce){let j;return Ce.length===0?j=de:j=de.replace(/\{(\d+)\}/g,function(X,ve){const xe=ve[0];return typeof Ce[xe]!="undefined"?Ce[xe]:X}),j}function Y(de,Ce,...j){return M(Ce,j)}},96236:function(qt,qe,p){"use strict";p.d(qe,{BH:function(){return k},NZ:function(){return ae},U8:function(){return P},co:function(){return b},eH:function(){return y},vr:function(){return u}});var M=p(75918),Y=p(52615),de=p(4348),Ce=p(88226),j=p(69323),X=p(34502),ve=p(35884),xe=p(90689),s=p(16925),A=p(49055),L=function(N,G,U,x){var T=arguments.length,B=T<3?G:x===null?x=Object.getOwnPropertyDescriptor(G,U):x,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(N,G,U,x);else for(var fe=N.length-1;fe>=0;fe--)(F=N[fe])&&(B=(T<3?F(B):T>3?F(G,U,B):F(G,U))||B);return T>3&&B&&Object.defineProperty(G,U,B),B},v=function(N,G){return function(U,x){G(U,x,N)}};function u(N){return N.command!==void 0}class y{constructor(G){this.id=y._idPool++,this._debugName=G}}y._idPool=0,y.CommandPalette=new y("CommandPalette"),y.EditorContext=new y("EditorContext"),y.SimpleEditorContext=new y("SimpleEditorContext"),y.EditorContextCopy=new y("EditorContextCopy"),y.EditorContextPeek=new y("EditorContextPeek"),y.MenubarEditMenu=new y("MenubarEditMenu"),y.MenubarCopy=new y("MenubarCopy"),y.MenubarGoMenu=new y("MenubarGoMenu"),y.MenubarSelectionMenu=new y("MenubarSelectionMenu"),y.InlineCompletionsActions=new y("InlineCompletionsActions");const b=(0,s.yh)("menuService"),k=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new de.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:N=>N===y.CommandPalette}}addCommand(N){return this.addCommands(Ce.$.single(N))}addCommands(N){for(const G of N)this._commands.set(G.id,G);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,j.OF)(()=>{let G=!1;for(const U of N)G=this._commands.delete(U.id)||G;G&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(N){return this._commands.get(N)}getCommands(){const N=new Map;return this._commands.forEach((G,U)=>N.set(U,G)),N}appendMenuItem(N,G){return this.appendMenuItems(Ce.$.single({id:N,item:G}))}appendMenuItems(N){const G=new Set,U=new X.S;for(const{id:x,item:T}of N){let B=this._menuItems.get(x);B||(B=new X.S,this._menuItems.set(x,B)),U.push(B.push(T)),G.add(x)}return this._onDidChangeMenu.fire(G),(0,j.OF)(()=>{if(U.size>0){for(let x of U)x();this._onDidChangeMenu.fire(G),U.clear()}})}getMenuItems(N){let G;return this._menuItems.has(N)?G=[...this._menuItems.get(N)]:G=[],N===y.CommandPalette&&this._appendImplicitItems(G),G}_appendImplicitItems(N){const G=new Set;for(const U of N)u(U)&&(G.add(U.command.id),U.alt&&G.add(U.alt.id));this._commands.forEach((U,x)=>{G.has(x)||N.push({command:U})})}};class ae extends M.wY{constructor(G,U,x,T){super(`submenuitem.${G.submenu.id}`,typeof G.title=="string"?G.title:G.title.value,[],"submenu"),this.item=G,this._menuService=U,this._contextKeyService=x,this._options=T}get actions(){const G=[],U=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=U.getActions(this._options);U.dispose();for(const[,T]of x)T.length>0&&(G.push(...T),G.push(new M.Z0));return G.length&&G.pop(),G}}let P=class Qo{constructor(G,U,x,T,B){var F,fe;if(this._commandService=B,this.id=G.id,this.label=x!=null&&x.renderShortTitle&&G.shortTitle?typeof G.shortTitle=="string"?G.shortTitle:G.shortTitle.value:typeof G.title=="string"?G.title:G.title.value,this.tooltip=(fe=typeof G.tooltip=="string"?G.tooltip:(F=G.tooltip)===null||F===void 0?void 0:F.value)!==null&&fe!==void 0?fe:"",this.enabled=!G.precondition||T.contextMatchesRules(G.precondition),this.checked=void 0,G.toggled){const be=G.toggled.condition?G.toggled:{condition:G.toggled};this.checked=T.contextMatchesRules(be.condition),this.checked&&be.tooltip&&(this.tooltip=typeof be.tooltip=="string"?be.tooltip:be.tooltip.value),be.title&&(this.label=typeof be.title=="string"?be.title:be.title.value)}this.item=G,this.alt=U?new Qo(U,void 0,x,T,B):void 0,this._options=x,A.kS.isThemeIcon(G.icon)&&(this.class=Y.dT.asClassName(G.icon))}dispose(){}run(...G){var U,x;let T=[];return!((U=this._options)===null||U===void 0)&&U.arg&&(T=[...T,this._options.arg]),!((x=this._options)===null||x===void 0)&&x.shouldForwardArgs&&(T=[...T,...G]),this._commandService.executeCommand(this.id,...T)}};P=L([v(3,xe.i6),v(4,ve.H)],P)},35884:function(qt,qe,p){"use strict";p.d(qe,{H:function(){return ve},P:function(){return xe}});var M=p(4348),Y=p(88226),de=p(69323),Ce=p(34502),j=p(72999),X=p(16925);const ve=(0,X.yh)("commandService"),xe=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new M.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,A){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!A)throw new Error("invalid command");return this.registerCommand({id:s,handler:A})}if(s.description){const b=[];for(let ae of s.description.args)b.push(ae.constraint);const k=s.handler;s.handler=function(ae,...P){return(0,j.D8)(P,b),k(ae,...P)}}const{id:L}=s;let v=this._commands.get(L);v||(v=new Ce.S,this._commands.set(L,v));let u=v.unshift(s),y=(0,de.OF)(()=>{u();const b=this._commands.get(L);b!=null&&b.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),y}registerCommandAlias(s,A){return xe.registerCommand(s,(L,...v)=>L.get(ve).executeCommand(A,...v))}getCommand(s){const A=this._commands.get(s);if(!(!A||A.isEmpty()))return Y.$.first(A)}getCommands(){const s=new Map;for(const A of this._commands.keys()){const L=this.getCommand(A);L&&s.set(A,L)}return s}};xe.registerCommand("noop",()=>{})},90689:function(qt,qe,p){"use strict";p.d(qe,{Ao:function(){return ve},Eq:function(){return W},Fb:function(){return xe},K8:function(){return D},i6:function(){return he},uy:function(){return Re}});var M=p(23345),Y=p(82983),de=p(16925);let Ce=M.WE||"";const j=new Map;j.set("false",!1),j.set("true",!0),j.set("isMac",M.dz),j.set("isLinux",M.IJ),j.set("isWindows",M.ED),j.set("isWeb",M.$L),j.set("isMacNative",M.dz&&!M.$L),j.set("isEdge",Ce.indexOf("Edg/")>=0),j.set("isFirefox",Ce.indexOf("Firefox")>=0),j.set("isChrome",Ce.indexOf("Chrome")>=0),j.set("isSafari",Ce.indexOf("Safari")>=0);const X=Object.prototype.hasOwnProperty;class ve{static has(g){return v.create(g)}static equals(g,E){return u.create(g,E)}static regex(g,E){return T.create(g,E)}static not(g){return ae.create(g)}static and(...g){return fe.create(g,null)}static or(...g){return be.create(g,null,!0)}static deserialize(g,E=!1){if(g)return this._deserializeOrExpression(g,E)}static _deserializeOrExpression(g,E){let Z=g.split("||");return be.create(Z.map(pe=>this._deserializeAndExpression(pe,E)),null,!0)}static _deserializeAndExpression(g,E){let Z=g.split("&&");return fe.create(Z.map(pe=>this._deserializeOne(pe,E)),null)}static _deserializeOne(g,E){if(g=g.trim(),g.indexOf("!=")>=0){let Z=g.split("!=");return k.create(Z[0].trim(),this._deserializeValue(Z[1],E))}if(g.indexOf("==")>=0){let Z=g.split("==");return u.create(Z[0].trim(),this._deserializeValue(Z[1],E))}if(g.indexOf("=~")>=0){let Z=g.split("=~");return T.create(Z[0].trim(),this._deserializeRegexValue(Z[1],E))}if(g.indexOf(" in ")>=0){let Z=g.split(" in ");return y.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const Z=g.split(">=");return G.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const Z=g.split(">");return N.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const Z=g.split("<=");return x.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const Z=g.split("<");return U.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(g)?ae.create(g.substr(1).trim()):v.create(g)}static _deserializeValue(g,E){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let Z=/^'([^']*)'$/.exec(g);return Z?Z[1].trim():g}static _deserializeRegexValue(g,E){if((0,Y.m5)(g)){if(E)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=g.indexOf("/"),pe=g.lastIndexOf("/");if(Z===pe||Z<0){if(E)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let ze=g.slice(Z+1,pe),We=g[pe+1]==="i"?"i":"";try{return new RegExp(ze,We)}catch(je){if(E)throw new Error(`bad regexp-value '${g}', parse error: ${je}`);return console.warn(`bad regexp-value '${g}', parse error: ${je}`),null}}}function xe(K,g){const E=K?K.substituteConstants():void 0,Z=g?g.substituteConstants():void 0;return!E&&!Z?!0:!E||!Z?!1:E.equals(Z)}function s(K,g){return K.cmp(g)}class A{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 L.INSTANCE}}A.INSTANCE=new A;class L{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 A.INSTANCE}}L.INSTANCE=new L;class v{constructor(g,E){this.key=g,this.negated=E,this.type=2}static create(g,E=null){const Z=j.get(g);return typeof Z=="boolean"?Z?L.INSTANCE:A.INSTANCE:new v(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:$(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=j.get(this.key);return typeof g=="boolean"?g?L.INSTANCE:A.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=ae.create(this.key,this)),this.negated}}class u{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=4}static create(g,E,Z=null){if(typeof E=="boolean")return E?v.create(g,Z):ae.create(g,Z);const pe=j.get(g);return typeof pe=="boolean"?E===(pe?"true":"false")?L.INSTANCE:A.INSTANCE:new u(g,E,Z)}cmp(g){return g.type!==this.type?this.type-g.type:se(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=j.get(this.key);if(typeof g=="boolean"){const E=g?"true":"false";return this.value===E?L.INSTANCE:A.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=k.create(this.key,this.value,this)),this.negated}}class y{constructor(g,E){this.key=g,this.valueKey=E,this.type=10,this.negated=null}static create(g,E){return new y(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:se(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 E=g.getValue(this.valueKey),Z=g.getValue(this.key);return Array.isArray(E)?E.indexOf(Z)>=0:typeof Z=="string"&&typeof E=="object"&&E!==null?X.call(E,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=b.create(this)),this.negated}}class b{constructor(g){this._actual=g,this.type=11}static create(g){return new b(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 k{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=5}static create(g,E,Z=null){if(typeof E=="boolean")return E?ae.create(g,Z):v.create(g,Z);const pe=j.get(g);return typeof pe=="boolean"?E===(pe?"true":"false")?A.INSTANCE:L.INSTANCE:new k(g,E,Z)}cmp(g){return g.type!==this.type?this.type-g.type:se(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=j.get(this.key);if(typeof g=="boolean"){const E=g?"true":"false";return this.value===E?A.INSTANCE:L.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=u.create(this.key,this.value,this)),this.negated}}class ae{constructor(g,E){this.key=g,this.negated=E,this.type=3}static create(g,E=null){const Z=j.get(g);return typeof Z=="boolean"?Z?A.INSTANCE:L.INSTANCE:new ae(g,E)}cmp(g){return g.type!==this.type?this.type-g.type:$(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=j.get(this.key);return typeof g=="boolean"?g?A.INSTANCE:L.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this)),this.negated}}function P(K,g){if(typeof K=="string"){const E=parseFloat(K);isNaN(E)||(K=E)}return typeof K=="string"||typeof K=="number"?g(K):A.INSTANCE}class N{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=12}static create(g,E,Z=null){return P(E,pe=>new N(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:se(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 G{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=13}static create(g,E,Z=null){return P(E,pe=>new G(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:se(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 U{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=14}static create(g,E,Z=null){return P(E,pe=>new U(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:se(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=G.create(this.key,this.value,this)),this.negated}}class x{constructor(g,E,Z){this.key=g,this.value=E,this.negated=Z,this.type=15}static create(g,E,Z=null){return P(E,pe=>new x(g,pe,Z))}cmp(g){return g.type!==this.type?this.type-g.type:se(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=N.create(this.key,this.value,this)),this.negated}}class T{constructor(g,E){this.key=g,this.regexp=E,this.type=7,this.negated=null}static create(g,E){return new T(g,E)}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 E=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return E<Z?-1:E>Z?1:0}equals(g){if(g.type===this.type){const E=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return this.key===g.key&&E===Z}return!1}substituteConstants(){return this}evaluate(g){let E=g.getValue(this.key);return this.regexp?this.regexp.test(E):!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=B.create(this)),this.negated}}class B{constructor(g){this._actual=g,this.type=8}static create(g){return new B(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 F(K){let g=null;for(let E=0,Z=K.length;E<Z;E++){const pe=K[E].substituteConstants();if(K[E]!==pe&&g===null){g=[];for(let ze=0;ze<E;ze++)g[ze]=K[ze]}g!==null&&(g[E]=pe)}return g===null?K:g}class fe{constructor(g,E){this.expr=g,this.negated=E,this.type=6}static create(g,E){return fe._normalizeArr(g,E)}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 E=0,Z=this.expr.length;E<Z;E++){const pe=s(this.expr[E],g.expr[E]);if(pe!==0)return pe}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1}substituteConstants(){const g=F(this.expr);return g===this.expr?this:fe.create(g,this.negated)}evaluate(g){for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].evaluate(g))return!1;return!0}static _normalizeArr(g,E){const Z=[];let pe=!1;for(const ze of g)if(ze){if(ze.type===1){pe=!0;continue}if(ze.type===0)return A.INSTANCE;if(ze.type===6){Z.push(...ze.expr);continue}Z.push(ze)}if(Z.length===0&&pe)return L.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(s);for(let ze=1;ze<Z.length;ze++)Z[ze-1].equals(Z[ze])&&(Z.splice(ze,1),ze--);if(Z.length===1)return Z[0];for(;Z.length>1;){const ze=Z[Z.length-1];if(ze.type!==9)break;Z.pop();const We=Z.pop(),je=Z.length===0,Ge=be.create(ze.expr.map(pt=>fe.create([pt,We],null)),null,je);Ge&&(Z.push(Ge),Z.sort(s))}return Z.length===1?Z[0]:new fe(Z,E)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let E of this.expr)g.push(...E.keys());return g}negate(){if(!this.negated){const g=[];for(let E of this.expr)g.push(E.negate());this.negated=be.create(g,this,!0)}return this.negated}}class be{constructor(g,E){this.expr=g,this.negated=E,this.type=9}static create(g,E,Z){return be._normalizeArr(g,E,Z)}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 E=0,Z=this.expr.length;E<Z;E++){const pe=s(this.expr[E],g.expr[E]);if(pe!==0)return pe}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let E=0,Z=this.expr.length;E<Z;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1}substituteConstants(){const g=F(this.expr);return g===this.expr?this:be.create(g,this.negated,!1)}evaluate(g){for(let E=0,Z=this.expr.length;E<Z;E++)if(this.expr[E].evaluate(g))return!0;return!1}static _normalizeArr(g,E,Z){let pe=[],ze=!1;if(g){for(let We=0,je=g.length;We<je;We++){const Ge=g[We];if(Ge){if(Ge.type===0){ze=!0;continue}if(Ge.type===1)return L.INSTANCE;if(Ge.type===9){pe=pe.concat(Ge.expr);continue}pe.push(Ge)}}if(pe.length===0&&ze)return A.INSTANCE;pe.sort(s)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let We=1;We<pe.length;We++)pe[We-1].equals(pe[We])&&(pe.splice(We,1),We--);if(pe.length===1)return pe[0];if(Z){for(let We=0;We<pe.length;We++)for(let je=We+1;je<pe.length;je++)D(pe[We],pe[je])&&(pe.splice(je,1),je--);if(pe.length===1)return pe[0]}return new be(pe,E)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let E of this.expr)g.push(...E.keys());return g}negate(){if(!this.negated){let g=[];for(let E of this.expr)g.push(E.negate());for(;g.length>1;){const E=g.shift(),Z=g.shift(),pe=[];for(const We of J(E))for(const je of J(Z))pe.push(fe.create([We,je],null));const ze=g.length===0;g.unshift(be.create(pe,null,ze))}this.negated=g[0]}return this.negated}}class Re extends v{constructor(g,E,Z){super(g,null),this._defaultValue=E,typeof Z=="object"?Re._info.push(Object.assign(Object.assign({},Z),{key:g})):Z!==!0&&Re._info.push({key:g,description:Z,type:E!=null?typeof E:void 0})}static all(){return Re._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 u.create(this.key,g)}}Re._info=[];const he=(0,de.yh)("contextKeyService"),W="setContext";function $(K,g){return K<g?-1:K>g?1:0}function se(K,g,E,Z){return K<E?-1:K>E?1:g<Z?-1:g>Z?1:0}function D(K,g){if(g.type===6&&K.type!==9&&K.type!==6){for(const pe of g.expr)if(K.equals(pe))return!0}const E=K.negate(),Z=J(E).concat(J(g));Z.sort(s);for(let pe=0;pe<Z.length;pe++){const We=Z[pe].negate();for(let je=pe+1;je<Z.length;je++){const Ge=Z[je];if(We.equals(Ge))return!0}}return!1}function J(K){return K.type===9?K.expr:[K]}},16925:function(qt,qe,p){"use strict";p.d(qe,{I8:function(){return M},TG:function(){return Y},jt:function(){return j},yh:function(){return Ce}});var M;(function(X){X.serviceIds=new Map,X.DI_TARGET="$di$target",X.DI_DEPENDENCIES="$di$dependencies";function ve(xe){return xe[X.DI_DEPENDENCIES]||[]}X.getServiceDependencies=ve})(M||(M={}));const Y=Ce("instantiationService");function de(X,ve,xe,s){ve[M.DI_TARGET]===ve?ve[M.DI_DEPENDENCIES].push({id:X,index:xe,optional:s}):(ve[M.DI_DEPENDENCIES]=[{id:X,index:xe,optional:s}],ve[M.DI_TARGET]=ve)}function Ce(X){if(M.serviceIds.has(X))return M.serviceIds.get(X);const ve=function(xe,s,A){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");de(ve,xe,A,!1)};return ve.toString=()=>X,M.serviceIds.set(X,ve),ve}function j(X){return function(ve,xe,s){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");de(X,ve,s,!0)}}},44650:function(qt,qe,p){"use strict";p.d(qe,{B:function(){return Ce}});var M=p(76068),Y=p(72999);class de{constructor(){this.data=new Map}add(X,ve){M.ok(Y.HD(X)),M.ok(Y.Kn(ve)),M.ok(!this.data.has(X),"There is already an extension with this id"),this.data.set(X,ve)}as(X){return this.data.get(X)||null}}const Ce=new de},66213:function(qt,qe,p){"use strict";p.d(qe,{e:function(){return M}});var M;(function(Y){Y.DARK="dark",Y.LIGHT="light",Y.HIGH_CONTRAST="hc"})(M||(M={}))},49055:function(qt,qe,p){"use strict";p.d(qe,{EN:function(){return s},IP:function(){return v},Ic:function(){return b},XE:function(){return ve},bB:function(){return k},kS:function(){return A},m6:function(){return L}});var M=p(52615),Y=p(4348),de=p(69323),Ce=p(16925),j=p(44650),X=p(66213);const ve=(0,Ce.yh)("themeService");var xe;(function(ae){function P(N){return N&&typeof N=="object"&&typeof N.id=="string"}ae.isThemeColor=P})(xe||(xe={}));function s(ae){return{id:ae}}var A;(function(ae){function P(B){return B&&typeof B=="object"&&typeof B.id=="string"&&(typeof B.color=="undefined"||xe.isThemeColor(B.color))}ae.isThemeIcon=P;const N=new RegExp(`^\\$\\((${M.dT.iconNameExpression}(?:${M.dT.iconModifierExpression})?)\\)$`);function G(B){const F=N.exec(B);if(!F)return;let[,fe]=F;return{id:fe}}ae.fromString=G;function U(B,F){let fe=B.id;const be=fe.lastIndexOf("~");return be!==-1&&(fe=fe.substring(0,be)),F&&(fe=`${fe}~${F}`),{id:fe}}ae.modify=U;function x(B,F){var fe,be;return B.id===F.id&&((fe=B.color)===null||fe===void 0?void 0:fe.id)===((be=F.color)===null||be===void 0?void 0:be.id)}ae.isEqual=x;function T(B,F){return{id:B.id,color:F?s(F):void 0}}ae.asThemeIcon=T,ae.asClassNameArray=M.dT.asClassNameArray,ae.asClassName=M.dT.asClassName,ae.asCSSSelector=M.dT.asCSSSelector})(A||(A={}));function L(ae){switch(ae){case X.e.DARK:return"vs-dark";case X.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const v={ThemingContribution:"base.contributions.theming"};class u{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Y.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,de.OF)(()=>{const N=this.themingParticipants.indexOf(P);this.themingParticipants.splice(N,1)})}getThemingParticipants(){return this.themingParticipants}}let y=new u;j.B.add(v.ThemingContribution,y);function b(ae){return y.onColorThemeChange(ae)}class k extends de.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(N=>this.onThemeChange(N)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},31561:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return B}});var M=p(96663),Y=p(90493),de=p(72071),Ce=p(6620),j=p(35593),X=p(92310),ve=p.n(X),xe=p(8654),s=p(59301),A=p(10228),L=p(16089),v=A.Z.ESC,u=A.Z.TAB;function y(F){var fe=F.visible,be=F.triggerRef,Re=F.onVisibleChange,he=F.autoFocus,W=F.overlayRef,$=s.useRef(!1),se=function(){if(fe){var g,E;(g=be.current)===null||g===void 0||(E=g.focus)===null||E===void 0||E.call(g),Re==null||Re(!1)}},D=function(){var g;return(g=W.current)!==null&&g!==void 0&&g.focus?(W.current.focus(),$.current=!0,!0):!1},J=function(g){switch(g.keyCode){case v:se();break;case u:{var E=!1;$.current||(E=D()),E?g.preventDefault():se();break}}};s.useEffect(function(){return fe?(window.addEventListener("keydown",J),he&&(0,L.Z)(D,3),function(){window.removeEventListener("keydown",J),$.current=!1}):function(){$.current=!1}},[fe])}var b=(0,s.forwardRef)(function(F,fe){var be=F.overlay,Re=F.arrow,he=F.prefixCls,W=(0,s.useMemo)(function(){var se;return typeof be=="function"?se=be():se=be,se},[be]),$=(0,xe.sQ)(fe,W==null?void 0:W.ref);return s.createElement(s.Fragment,null,Re&&s.createElement("div",{className:"".concat(he,"-arrow")}),s.cloneElement(W,{ref:(0,xe.Yr)(W)?$:void 0}))}),k=b,ae={adjustX:1,adjustY:1},P=[0,0],N={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-4],targetOffset:P},top:{points:["bc","tc"],overflow:ae,offset:[0,-4],targetOffset:P},topRight:{points:["br","tr"],overflow:ae,offset:[0,-4],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,4],targetOffset:P},bottom:{points:["tc","bc"],overflow:ae,offset:[0,4],targetOffset:P},bottomRight:{points:["tr","br"],overflow:ae,offset:[0,4],targetOffset:P}},G=N,U=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(F,fe){var be,Re=F.arrow,he=Re===void 0?!1:Re,W=F.prefixCls,$=W===void 0?"rc-dropdown":W,se=F.transitionName,D=F.animation,J=F.align,K=F.placement,g=K===void 0?"bottomLeft":K,E=F.placements,Z=E===void 0?G:E,pe=F.getPopupContainer,ze=F.showAction,We=F.hideAction,je=F.overlayClassName,Ge=F.overlayStyle,pt=F.visible,ht=F.trigger,rt=ht===void 0?["hover"]:ht,Vt=F.autoFocus,Jt=F.overlay,on=F.children,Kt=F.onVisibleChange,at=(0,Ce.Z)(F,U),Et=s.useState(),q=(0,de.Z)(Et,2),ge=q[0],ne=q[1],z="visible"in F?pt:ge,De=s.useRef(null),O=s.useRef(null),oe=s.useRef(null);s.useImperativeHandle(fe,function(){return De.current});var Q=function(et){ne(et),Kt==null||Kt(et)};y({visible:z,triggerRef:oe,onVisibleChange:Q,autoFocus:Vt,overlayRef:O});var le=function(et){var Ye=F.onOverlayClick;ne(!1),Ye&&Ye(et)},ce=function(){return s.createElement(k,{ref:O,overlay:Jt,prefixCls:$,arrow:he})},Ae=function(){return typeof Jt=="function"?ce:ce()},_e=function(){var et=F.minOverlayWidthMatchTrigger,Ye=F.alignPoint;return"minOverlayWidthMatchTrigger"in F?et:!Ye},Pe=function(){var et=F.openClassName;return et!==void 0?et:"".concat($,"-open")},Ie=s.cloneElement(on,{className:ve()((be=on.props)===null||be===void 0?void 0:be.className,z&&Pe()),ref:(0,xe.Yr)(on)?(0,xe.sQ)(oe,on.ref):void 0}),Fe=We;return!Fe&&rt.indexOf("contextMenu")!==-1&&(Fe=["click"]),s.createElement(j.Z,(0,M.Z)({builtinPlacements:Z},at,{prefixCls:$,ref:De,popupClassName:ve()(je,(0,Y.Z)({},"".concat($,"-show-arrow"),he)),popupStyle:Ge,action:rt,showAction:ze,hideAction:Fe,popupPlacement:g,popupAlign:J,popupTransitionName:se,popupAnimation:D,popupVisible:z,stretch:_e()?"minWidth":"",popup:Ae(),onPopupVisibleChange:Q,onPopupClick:le,getPopupContainer:pe}),Ie)}var T=s.forwardRef(x),B=T},93681:function(qt,qe,p){"use strict";p.r(qe),p.d(qe,{BaseInput:function(){return A},default:function(){return N}});var M=p(96663),Y=p(44127),de=p(90493),Ce=p(20135),j=p(92310),X=p.n(j),ve=p(59301),xe=p(5643),s=function(U){var x,T,B=U.inputElement,F=U.prefixCls,fe=U.prefix,be=U.suffix,Re=U.addonBefore,he=U.addonAfter,W=U.className,$=U.style,se=U.disabled,D=U.readOnly,J=U.focused,K=U.triggerFocus,g=U.allowClear,E=U.value,Z=U.handleReset,pe=U.hidden,ze=U.classes,We=U.classNames,je=U.dataAttrs,Ge=U.styles,pt=U.components,ht=(pt==null?void 0:pt.affixWrapper)||"span",rt=(pt==null?void 0:pt.groupWrapper)||"span",Vt=(pt==null?void 0:pt.wrapper)||"span",Jt=(pt==null?void 0:pt.groupAddon)||"span",on=(0,ve.useRef)(null),Kt=function(ce){var Ae;(Ae=on.current)!==null&&Ae!==void 0&&Ae.contains(ce.target)&&(K==null||K())},at=function(){var ce;if(!g)return null;var Ae=!se&&!D&&E,_e="".concat(F,"-clear-icon"),Pe=(0,Ce.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return ve.createElement("span",{onClick:Z,onMouseDown:function(Fe){return Fe.preventDefault()},className:X()(_e,(ce={},(0,de.Z)(ce,"".concat(_e,"-hidden"),!Ae),(0,de.Z)(ce,"".concat(_e,"-has-suffix"),!!be),ce)),role:"button",tabIndex:-1},Pe)},Et=(0,ve.cloneElement)(B,{value:E,hidden:pe,className:X()((x=B.props)===null||x===void 0?void 0:x.className,!(0,xe.X3)(U)&&!(0,xe.He)(U)&&W)||null,style:(0,Y.Z)((0,Y.Z)({},(T=B.props)===null||T===void 0?void 0:T.style),!(0,xe.X3)(U)&&!(0,xe.He)(U)?$:{})});if((0,xe.X3)(U)){var q,ge="".concat(F,"-affix-wrapper"),ne=X()(ge,(q={},(0,de.Z)(q,"".concat(ge,"-disabled"),se),(0,de.Z)(q,"".concat(ge,"-focused"),J),(0,de.Z)(q,"".concat(ge,"-readonly"),D),(0,de.Z)(q,"".concat(ge,"-input-with-clear-btn"),be&&g&&E),q),!(0,xe.He)(U)&&W,ze==null?void 0:ze.affixWrapper,We==null?void 0:We.affixWrapper),z=(be||g)&&ve.createElement("span",{className:X()("".concat(F,"-suffix"),We==null?void 0:We.suffix),style:Ge==null?void 0:Ge.suffix},at(),be);Et=ve.createElement(ht,(0,M.Z)({className:ne,style:(0,Y.Z)((0,Y.Z)({},(0,xe.He)(U)?void 0:$),Ge==null?void 0:Ge.affixWrapper),hidden:!(0,xe.He)(U)&&pe,onClick:Kt},je==null?void 0:je.affixWrapper,{ref:on}),fe&&ve.createElement("span",{className:X()("".concat(F,"-prefix"),We==null?void 0:We.prefix),style:Ge==null?void 0:Ge.prefix},fe),(0,ve.cloneElement)(B,{value:E,hidden:null}),z)}if((0,xe.He)(U)){var De="".concat(F,"-group"),O="".concat(De,"-addon"),oe=X()("".concat(F,"-wrapper"),De,ze==null?void 0:ze.wrapper),Q=X()("".concat(F,"-group-wrapper"),W,ze==null?void 0:ze.group);return ve.createElement(rt,{className:Q,style:$,hidden:pe},ve.createElement(Vt,{className:oe},Re&&ve.createElement(Jt,{className:O},Re),(0,ve.cloneElement)(Et,{hidden:null}),he&&ve.createElement(Jt,{className:O},he)))}return Et},A=s,L=p(19127),v=p(72071),u=p(6620),y=p(18929),b=p(2738),k=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ae=(0,ve.forwardRef)(function(G,U){var x=G.autoComplete,T=G.onChange,B=G.onFocus,F=G.onBlur,fe=G.onPressEnter,be=G.onKeyDown,Re=G.prefixCls,he=Re===void 0?"rc-input":Re,W=G.disabled,$=G.htmlSize,se=G.className,D=G.maxLength,J=G.suffix,K=G.showCount,g=G.type,E=g===void 0?"text":g,Z=G.classes,pe=G.classNames,ze=G.styles,We=(0,u.Z)(G,k),je=(0,y.Z)(G.defaultValue,{value:G.value}),Ge=(0,v.Z)(je,2),pt=Ge[0],ht=Ge[1],rt=(0,ve.useState)(!1),Vt=(0,v.Z)(rt,2),Jt=Vt[0],on=Vt[1],Kt=(0,ve.useRef)(null),at=function(Q){Kt.current&&(0,xe.nH)(Kt.current,Q)};(0,ve.useImperativeHandle)(U,function(){return{focus:at,blur:function(){var Q;(Q=Kt.current)===null||Q===void 0||Q.blur()},setSelectionRange:function(Q,le,ce){var Ae;(Ae=Kt.current)===null||Ae===void 0||Ae.setSelectionRange(Q,le,ce)},select:function(){var Q;(Q=Kt.current)===null||Q===void 0||Q.select()},input:Kt.current}}),(0,ve.useEffect)(function(){on(function(oe){return oe&&W?!1:oe})},[W]);var Et=function(Q){G.value===void 0&&ht(Q.target.value),Kt.current&&(0,xe.rJ)(Kt.current,Q,T)},q=function(Q){fe&&Q.key==="Enter"&&fe(Q),be==null||be(Q)},ge=function(Q){on(!0),B==null||B(Q)},ne=function(Q){on(!1),F==null||F(Q)},z=function(Q){ht(""),at(),Kt.current&&(0,xe.rJ)(Kt.current,Q,T)},De=function(){var Q=(0,b.Z)(G,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ve.createElement("input",(0,M.Z)({autoComplete:x},Q,{onChange:Et,onFocus:ge,onBlur:ne,onKeyDown:q,className:X()(he,(0,de.Z)({},"".concat(he,"-disabled"),W),pe==null?void 0:pe.input),style:ze==null?void 0:ze.input,ref:Kt,size:$,type:E}))},O=function(){var Q=Number(D)>0;if(J||K){var le=(0,xe.D7)(pt),ce=(0,L.Z)(le).length,Ae=(0,Ce.Z)(K)==="object"?K.formatter({value:le,count:ce,maxLength:D}):"".concat(ce).concat(Q?" / ".concat(D):"");return ve.createElement(ve.Fragment,null,!!K&&ve.createElement("span",{className:X()("".concat(he,"-show-count-suffix"),(0,de.Z)({},"".concat(he,"-show-count-has-suffix"),!!J),pe==null?void 0:pe.count),style:(0,Y.Z)({},ze==null?void 0:ze.count)},Ae),J)}return null};return ve.createElement(A,(0,M.Z)({},We,{prefixCls:he,className:se,inputElement:De(),handleReset:z,value:(0,xe.D7)(pt),focused:Jt,triggerFocus:at,suffix:O(),disabled:W,classes:Z,classNames:pe,styles:ze}))}),P=ae,N=P},5643:function(qt,qe,p){"use strict";p.d(qe,{D7:function(){return j},He:function(){return M},X3:function(){return Y},nH:function(){return Ce},rJ:function(){return de}});function M(X){return!!(X.addonBefore||X.addonAfter)}function Y(X){return!!(X.prefix||X.suffix||X.allowClear)}function de(X,ve,xe,s){if(xe){var A=ve;if(ve.type==="click"){var L=X.cloneNode(!0);A=Object.create(ve,{target:{value:L},currentTarget:{value:L}}),L.value="",xe(A);return}if(s!==void 0){A=Object.create(ve,{target:{value:X},currentTarget:{value:X}}),X.value=s,xe(A);return}xe(A)}}function Ce(X,ve){if(X){X.focus(ve);var xe=ve||{},s=xe.cursor;if(s){var A=X.value.length;switch(s){case"start":X.setSelectionRange(0,0);break;case"end":X.setSelectionRange(A,A);break;default:X.setSelectionRange(0,A)}}}}function j(X){return typeof X=="undefined"||X===null?"":String(X)}},15285:function(qt,qe,p){"use strict";p.d(qe,{iz:function(){return hn},ck:function(){return tt},BW:function(){return Xt},sN:function(){return tt},Wd:function(){return ct},ZP:function(){return Ft},Xl:function(){return be}});var M=p(96663),Y=p(90493),de=p(44127),Ce=p(19127),j=p(72071),X=p(6620),ve=p(92310),xe=p.n(ve),s=p(11780),A=p(18929),L=p(13697),v=p(48736),u=p(59301),y=p(4676),b=u.createContext(null);function k(Je,nt){return Je===void 0?null:"".concat(Je,"-").concat(nt)}function ae(Je){var nt=u.useContext(b);return k(nt,Je)}var P=p(80547),N=["children","locked"],G=u.createContext(null);function U(Je,nt){var vt=(0,de.Z)({},Je);return Object.keys(nt).forEach(function(bt){var ft=nt[bt];ft!==void 0&&(vt[bt]=ft)}),vt}function x(Je){var nt=Je.children,vt=Je.locked,bt=(0,X.Z)(Je,N),ft=u.useContext(G),It=(0,P.Z)(function(){return U(ft,bt)},[ft,bt],function(_t,jt){return!vt&&(_t[0]!==jt[0]||!(0,L.Z)(_t[1],jt[1],!0))});return u.createElement(G.Provider,{value:It},nt)}var T=[],B=u.createContext(null);function F(){return u.useContext(B)}var fe=u.createContext(T);function be(Je){var nt=u.useContext(fe);return u.useMemo(function(){return Je!==void 0?[].concat((0,Ce.Z)(nt),[Je]):nt},[nt,Je])}var Re=u.createContext(null),he=u.createContext({}),W=he,$=p(29194);function se(Je){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,$.Z)(Je)){var vt=Je.nodeName.toLowerCase(),bt=["input","select","textarea","button"].includes(vt)||Je.isContentEditable||vt==="a"&&!!Je.getAttribute("href"),ft=Je.getAttribute("tabindex"),It=Number(ft),_t=null;return ft&&!Number.isNaN(It)?_t=It:bt&&_t===null&&(_t=0),bt&&Je.disabled&&(_t=null),_t!==null&&(_t>=0||nt&&_t<0)}return!1}function D(Je){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=(0,Ce.Z)(Je.querySelectorAll("*")).filter(function(bt){return se(bt,nt)});return se(Je,nt)&&vt.unshift(Je),vt}var J=null;function K(){J=document.activeElement}function g(){J=null}function E(){if(J)try{J.focus()}catch(Je){}}function Z(Je,nt){if(nt.keyCode===9){var vt=D(Je),bt=vt[nt.shiftKey?0:vt.length-1],ft=bt===document.activeElement||Je===document.activeElement;if(ft){var It=vt[nt.shiftKey?vt.length-1:0];It.focus(),nt.preventDefault()}}}var pe=p(10228),ze=p(16089),We=pe.Z.LEFT,je=pe.Z.RIGHT,Ge=pe.Z.UP,pt=pe.Z.DOWN,ht=pe.Z.ENTER,rt=pe.Z.ESC,Vt=pe.Z.HOME,Jt=pe.Z.END,on=[Ge,pt,We,je];function Kt(Je,nt,vt,bt){var ft,It,_t,jt,an="prev",nn="next",Sn="children",Ln="parent";if(Je==="inline"&&bt===ht)return{inlineTrigger:!0};var Fn=(ft={},(0,Y.Z)(ft,Ge,an),(0,Y.Z)(ft,pt,nn),ft),cn=(It={},(0,Y.Z)(It,We,vt?nn:an),(0,Y.Z)(It,je,vt?an:nn),(0,Y.Z)(It,pt,Sn),(0,Y.Z)(It,ht,Sn),It),rn=(_t={},(0,Y.Z)(_t,Ge,an),(0,Y.Z)(_t,pt,nn),(0,Y.Z)(_t,ht,Sn),(0,Y.Z)(_t,rt,Ln),(0,Y.Z)(_t,We,vt?Sn:Ln),(0,Y.Z)(_t,je,vt?Ln:Sn),_t),$n={inline:Fn,horizontal:cn,vertical:rn,inlineSub:Fn,horizontalSub:rn,verticalSub:rn},An=(jt=$n["".concat(Je).concat(nt?"":"Sub")])===null||jt===void 0?void 0:jt[bt];switch(An){case an:return{offset:-1,sibling:!0};case nn:return{offset:1,sibling:!0};case Ln:return{offset:-1,sibling:!1};case Sn:return{offset:1,sibling:!1};default:return null}}function at(Je){for(var nt=Je;nt;){if(nt.getAttribute("data-menu-list"))return nt;nt=nt.parentElement}return null}function Et(Je,nt){for(var vt=Je||document.activeElement;vt;){if(nt.has(vt))return vt;vt=vt.parentElement}return null}function q(Je,nt){var vt=D(Je,!0);return vt.filter(function(bt){return nt.has(bt)})}function ge(Je,nt,vt){var bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Je)return null;var ft=q(Je,nt),It=ft.length,_t=ft.findIndex(function(jt){return vt===jt});return bt<0?_t===-1?_t=It-1:_t-=1:bt>0&&(_t+=1),_t=(_t+It)%It,ft[_t]}var ne=function(nt,vt){var bt=new Set,ft=new Map,It=new Map;return nt.forEach(function(_t){var jt=document.querySelector("[data-menu-id='".concat(k(vt,_t),"']"));jt&&(bt.add(jt),It.set(jt,_t),ft.set(_t,jt))}),{elements:bt,key2element:ft,element2key:It}};function z(Je,nt,vt,bt,ft,It,_t,jt,an,nn){var Sn=u.useRef(),Ln=u.useRef();Ln.current=nt;var Fn=function(){ze.Z.cancel(Sn.current)};return u.useEffect(function(){return function(){Fn()}},[]),function(cn){var rn=cn.which;if([].concat(on,[ht,rt,Vt,Jt]).includes(rn)){var $n=It(),An=ne($n,bt),Wn=An,Cn=Wn.elements,Nn=Wn.key2element,zn=Wn.element2key,Pn=Nn.get(nt),Yn=Et(Pn,Cn),or=zn.get(Yn),Tn=Kt(Je,_t(or,!0).length===1,vt,rn);if(!Tn&&rn!==Vt&&rn!==Jt)return;(on.includes(rn)||[Vt,Jt].includes(rn))&&cn.preventDefault();var tn=function(Un){if(Un){var qn=Un,yn=Un.querySelector("a");yn!=null&&yn.getAttribute("href")&&(qn=yn);var ln=zn.get(Un);jt(ln),Fn(),Sn.current=(0,ze.Z)(function(){Ln.current===ln&&qn.focus()})}};if([Vt,Jt].includes(rn)||Tn.sibling||!Yn){var Ke;!Yn||Je==="inline"?Ke=ft.current:Ke=at(Yn);var un,On=q(Ke,Cn);rn===Vt?un=On[0]:rn===Jt?un=On[On.length-1]:un=ge(Ke,Cn,Yn,Tn.offset),tn(un)}else if(Tn.inlineTrigger)an(or);else if(Tn.offset>0)an(or,!0),Fn(),Sn.current=(0,ze.Z)(function(){An=ne($n,bt);var rr=Yn.getAttribute("aria-controls"),Un=document.getElementById(rr),qn=ge(Un,An.elements);tn(qn)},5);else if(Tn.offset<0){var Hn=_t(or,!0),Gn=Hn[Hn.length-2],nr=Nn.get(Gn);an(Gn,!1),tn(nr)}}nn==null||nn(cn)}}function De(Je){Promise.resolve().then(Je)}var O="__RC_UTIL_PATH_SPLIT__",oe=function(nt){return nt.join(O)},Q=function(nt){return nt.split(O)},le="rc-menu-more";function ce(){var Je=u.useState({}),nt=(0,j.Z)(Je,2),vt=nt[1],bt=(0,u.useRef)(new Map),ft=(0,u.useRef)(new Map),It=u.useState([]),_t=(0,j.Z)(It,2),jt=_t[0],an=_t[1],nn=(0,u.useRef)(0),Sn=(0,u.useRef)(!1),Ln=function(){Sn.current||vt({})},Fn=(0,u.useCallback)(function(Nn,zn){var Pn=oe(zn);ft.current.set(Pn,Nn),bt.current.set(Nn,Pn),nn.current+=1;var Yn=nn.current;De(function(){Yn===nn.current&&Ln()})},[]),cn=(0,u.useCallback)(function(Nn,zn){var Pn=oe(zn);ft.current.delete(Pn),bt.current.delete(Nn)},[]),rn=(0,u.useCallback)(function(Nn){an(Nn)},[]),$n=(0,u.useCallback)(function(Nn,zn){var Pn=bt.current.get(Nn)||"",Yn=Q(Pn);return zn&&jt.includes(Yn[0])&&Yn.unshift(le),Yn},[jt]),An=(0,u.useCallback)(function(Nn,zn){return Nn.some(function(Pn){var Yn=$n(Pn,!0);return Yn.includes(zn)})},[$n]),Wn=function(){var zn=(0,Ce.Z)(bt.current.keys());return jt.length&&zn.push(le),zn},Cn=(0,u.useCallback)(function(Nn){var zn="".concat(bt.current.get(Nn)).concat(O),Pn=new Set;return(0,Ce.Z)(ft.current.keys()).forEach(function(Yn){Yn.startsWith(zn)&&Pn.add(ft.current.get(Yn))}),Pn},[]);return u.useEffect(function(){return function(){Sn.current=!0}},[]),{registerPath:Fn,unregisterPath:cn,refreshOverflowKeys:rn,isSubPathKey:An,getKeyPath:$n,getKeys:Wn,getSubPathKeys:Cn}}function Ae(Je){var nt=u.useRef(Je);nt.current=Je;var vt=u.useCallback(function(){for(var bt,ft=arguments.length,It=new Array(ft),_t=0;_t<ft;_t++)It[_t]=arguments[_t];return(bt=nt.current)===null||bt===void 0?void 0:bt.call.apply(bt,[nt].concat(It))},[]);return Je?vt:void 0}var _e=Math.random().toFixed(5).toString().slice(2),Pe=0;function Ie(Je){var nt=(0,A.Z)(Je,{value:Je}),vt=(0,j.Z)(nt,2),bt=vt[0],ft=vt[1];return u.useEffect(function(){Pe+=1;var It="".concat(_e,"-").concat(Pe);ft("rc-menu-uuid-".concat(It))},[]),bt}var Fe=p(52884),Qe=p(95727),et=p(65711),Ye=p(85745),ut=p(2738),dt=p(8654);function ot(Je,nt,vt,bt){var ft=u.useContext(G),It=ft.activeKey,_t=ft.onActive,jt=ft.onInactive,an={active:It===Je};return nt||(an.onMouseEnter=function(nn){vt==null||vt({key:Je,domEvent:nn}),_t(Je)},an.onMouseLeave=function(nn){bt==null||bt({key:Je,domEvent:nn}),jt(Je)}),an}function Ct(Je){var nt=u.useContext(G),vt=nt.mode,bt=nt.rtl,ft=nt.inlineIndent;if(vt!=="inline")return null;var It=Je;return bt?{paddingRight:It*ft}:{paddingLeft:It*ft}}function Lt(Je){var nt=Je.icon,vt=Je.props,bt=Je.children,ft;return nt===null||nt===!1?null:(typeof nt=="function"?ft=u.createElement(nt,(0,de.Z)({},vt)):typeof nt!="boolean"&&(ft=nt),ft||bt||null)}var w=["item"];function C(Je){var nt=Je.item,vt=(0,X.Z)(Je,w);return Object.defineProperty(vt,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),nt}}),vt}var lt=["title","attribute","elementRef"],ie=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Oe=["active"],mn=function(Je){(0,et.Z)(vt,Je);var nt=(0,Ye.Z)(vt);function vt(){return(0,Fe.Z)(this,vt),nt.apply(this,arguments)}return(0,Qe.Z)(vt,[{key:"render",value:function(){var ft=this.props,It=ft.title,_t=ft.attribute,jt=ft.elementRef,an=(0,X.Z)(ft,lt),nn=(0,ut.Z)(an,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.ZP)(!_t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(s.Z.Item,(0,M.Z)({},_t,{title:typeof It=="string"?It:void 0},nn,{ref:jt}))}}]),vt}(u.Component),$e=u.forwardRef(function(Je,nt){var vt,bt=Je.style,ft=Je.className,It=Je.eventKey,_t=Je.warnKey,jt=Je.disabled,an=Je.itemIcon,nn=Je.children,Sn=Je.role,Ln=Je.onMouseEnter,Fn=Je.onMouseLeave,cn=Je.onClick,rn=Je.onKeyDown,$n=Je.onFocus,An=(0,X.Z)(Je,ie),Wn=ae(It),Cn=u.useContext(G),Nn=Cn.prefixCls,zn=Cn.onItemClick,Pn=Cn.disabled,Yn=Cn.overflowDisabled,or=Cn.itemIcon,Tn=Cn.selectedKeys,tn=Cn.onActive,Ke=u.useContext(W),un=Ke._internalRenderMenuItem,On="".concat(Nn,"-item"),Hn=u.useRef(),Gn=u.useRef(),nr=Pn||jt,rr=(0,dt.x1)(nt,Gn),Un=be(It),qn=function(br){return{key:It,keyPath:(0,Ce.Z)(Un).reverse(),item:Hn.current,domEvent:br}},yn=an||or,ln=ot(It,nr,Ln,Fn),Bn=ln.active,tr=(0,X.Z)(ln,Oe),lr=Tn.includes(It),kr=Ct(Un.length),En=function(br){if(!nr){var Dr=qn(br);cn==null||cn(C(Dr)),zn(Dr)}},hr=function(br){if(rn==null||rn(br),br.which===pe.Z.ENTER){var Dr=qn(br);cn==null||cn(C(Dr)),zn(Dr)}},dr=function(br){tn(It),$n==null||$n(br)},mr={};Je.role==="option"&&(mr["aria-selected"]=lr);var Fr=u.createElement(mn,(0,M.Z)({ref:Hn,elementRef:rr,role:Sn===null?"none":Sn||"menuitem",tabIndex:jt?null:-1,"data-menu-id":Yn&&Wn?null:Wn},An,tr,mr,{component:"li","aria-disabled":jt,style:(0,de.Z)((0,de.Z)({},kr),bt),className:xe()(On,(vt={},(0,Y.Z)(vt,"".concat(On,"-active"),Bn),(0,Y.Z)(vt,"".concat(On,"-selected"),lr),(0,Y.Z)(vt,"".concat(On,"-disabled"),nr),vt),ft),onClick:En,onKeyDown:hr,onFocus:dr}),nn,u.createElement(Lt,{props:(0,de.Z)((0,de.Z)({},Je),{},{isSelected:lr}),icon:yn}));return un&&(Fr=un(Fr,Je,{selected:lr})),Fr});function Ze(Je,nt){var vt=Je.eventKey,bt=F(),ft=be(vt);return u.useEffect(function(){if(bt)return bt.registerPath(vt,ft),function(){bt.unregisterPath(vt,ft)}},[ft]),bt?null:u.createElement($e,(0,M.Z)({},Je,{ref:nt}))}var tt=u.forwardRef(Ze),ue=["className","children"],V=function(nt,vt){var bt=nt.className,ft=nt.children,It=(0,X.Z)(nt,ue),_t=u.useContext(G),jt=_t.prefixCls,an=_t.mode,nn=_t.rtl;return u.createElement("ul",(0,M.Z)({className:xe()(jt,nn&&"".concat(jt,"-rtl"),"".concat(jt,"-sub"),"".concat(jt,"-").concat(an==="inline"?"inline":"vertical"),bt),role:"menu"},It,{"data-menu-list":!0,ref:vt}),ft)},we=u.forwardRef(V);we.displayName="SubMenuList";var Ne=we,H=p(11592);function it(Je,nt){return(0,H.Z)(Je).map(function(vt,bt){if(u.isValidElement(vt)){var ft,It,_t=vt.key,jt=(ft=(It=vt.props)===null||It===void 0?void 0:It.eventKey)!==null&&ft!==void 0?ft:_t,an=jt==null;an&&(jt="tmp_key-".concat([].concat((0,Ce.Z)(nt),[bt]).join("-")));var nn={key:jt,eventKey:jt};return u.cloneElement(vt,nn)}return vt})}var Ee=p(35593),Tt={adjustX:1,adjustY:1},Mt={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},leftTop:{points:["tr","tl"],overflow:Tt},leftBottom:{points:["br","bl"],overflow:Tt},rightTop:{points:["tl","tr"],overflow:Tt},rightBottom:{points:["bl","br"],overflow:Tt}},Ut={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},rightTop:{points:["tr","tl"],overflow:Tt},rightBottom:{points:["br","bl"],overflow:Tt},leftTop:{points:["tl","tr"],overflow:Tt},leftBottom:{points:["bl","br"],overflow:Tt}},dn=null;function wt(Je,nt,vt){if(nt)return nt;if(vt)return vt[Je]||vt.other}var Yt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ue(Je){var nt=Je.prefixCls,vt=Je.visible,bt=Je.children,ft=Je.popup,It=Je.popupStyle,_t=Je.popupClassName,jt=Je.popupOffset,an=Je.disabled,nn=Je.mode,Sn=Je.onVisibleChange,Ln=u.useContext(G),Fn=Ln.getPopupContainer,cn=Ln.rtl,rn=Ln.subMenuOpenDelay,$n=Ln.subMenuCloseDelay,An=Ln.builtinPlacements,Wn=Ln.triggerSubMenuAction,Cn=Ln.forceSubMenuRender,Nn=Ln.rootClassName,zn=Ln.motion,Pn=Ln.defaultMotions,Yn=u.useState(!1),or=(0,j.Z)(Yn,2),Tn=or[0],tn=or[1],Ke=cn?(0,de.Z)((0,de.Z)({},Ut),An):(0,de.Z)((0,de.Z)({},Mt),An),un=Yt[nn],On=wt(nn,zn,Pn),Hn=u.useRef(On);nn!=="inline"&&(Hn.current=On);var Gn=(0,de.Z)((0,de.Z)({},Hn.current),{},{leavedClassName:"".concat(nt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),nr=u.useRef();return u.useEffect(function(){return nr.current=(0,ze.Z)(function(){tn(vt)}),function(){ze.Z.cancel(nr.current)}},[vt]),u.createElement(Ee.Z,{prefixCls:nt,popupClassName:xe()("".concat(nt,"-popup"),(0,Y.Z)({},"".concat(nt,"-rtl"),cn),_t,Nn),stretch:nn==="horizontal"?"minWidth":null,getPopupContainer:Fn,builtinPlacements:Ke,popupPlacement:un,popupVisible:Tn,popup:ft,popupStyle:It,popupAlign:jt&&{offset:jt},action:an?[]:[Wn],mouseEnterDelay:rn,mouseLeaveDelay:$n,onPopupVisibleChange:Sn,forceRender:Cn,popupMotion:Gn,fresh:!0},bt)}var mt=p(77900);function xt(Je){var nt=Je.id,vt=Je.open,bt=Je.keyPath,ft=Je.children,It="inline",_t=u.useContext(G),jt=_t.prefixCls,an=_t.forceSubMenuRender,nn=_t.motion,Sn=_t.defaultMotions,Ln=_t.mode,Fn=u.useRef(!1);Fn.current=Ln===It;var cn=u.useState(!Fn.current),rn=(0,j.Z)(cn,2),$n=rn[0],An=rn[1],Wn=Fn.current?vt:!1;u.useEffect(function(){Fn.current&&An(!1)},[Ln]);var Cn=(0,de.Z)({},wt(It,nn,Sn));bt.length>1&&(Cn.motionAppear=!1);var Nn=Cn.onVisibleChanged;return Cn.onVisibleChanged=function(zn){return!Fn.current&&!zn&&An(!0),Nn==null?void 0:Nn(zn)},$n?null:u.createElement(x,{mode:It,locked:!Fn.current},u.createElement(mt.default,(0,M.Z)({visible:Wn},Cn,{forceRender:an,removeOnLeave:!1,leavedClassName:"".concat(jt,"-hidden")}),function(zn){var Pn=zn.className,Yn=zn.style;return u.createElement(Ne,{id:nt,className:Pn,style:Yn},ft)}))}var Me=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],st=function(nt){var vt,bt=nt.style,ft=nt.className,It=nt.title,_t=nt.eventKey,jt=nt.warnKey,an=nt.disabled,nn=nt.internalPopupClose,Sn=nt.children,Ln=nt.itemIcon,Fn=nt.expandIcon,cn=nt.popupClassName,rn=nt.popupOffset,$n=nt.popupStyle,An=nt.onClick,Wn=nt.onMouseEnter,Cn=nt.onMouseLeave,Nn=nt.onTitleClick,zn=nt.onTitleMouseEnter,Pn=nt.onTitleMouseLeave,Yn=(0,X.Z)(nt,Me),or=ae(_t),Tn=u.useContext(G),tn=Tn.prefixCls,Ke=Tn.mode,un=Tn.openKeys,On=Tn.disabled,Hn=Tn.overflowDisabled,Gn=Tn.activeKey,nr=Tn.selectedKeys,rr=Tn.itemIcon,Un=Tn.expandIcon,qn=Tn.onItemClick,yn=Tn.onOpenChange,ln=Tn.onActive,Bn=u.useContext(W),tr=Bn._internalRenderSubMenuItem,lr=u.useContext(Re),kr=lr.isSubPathKey,En=be(),hr="".concat(tn,"-submenu"),dr=On||an,mr=u.useRef(),Fr=u.useRef(),Ur=Ln!=null?Ln:rr,br=Fn!=null?Fn:Un,Dr=un.includes(_t),gr=!Hn&&Dr,jr=kr(nr,_t),Vr=ot(_t,dr,zn,Pn),ii=Vr.active,Br=(0,X.Z)(Vr,Te),ti=u.useState(!1),ar=(0,j.Z)(ti,2),si=ar[0],vi=ar[1],fi=function(Rr){dr||vi(Rr)},Lr=function(Rr){fi(!0),Wn==null||Wn({key:_t,domEvent:Rr})},hi=function(Rr){fi(!1),Cn==null||Cn({key:_t,domEvent:Rr})},pr=u.useMemo(function(){return ii||(Ke!=="inline"?si||kr([Gn],_t):!1)},[Ke,ii,Gn,si,_t,kr]),Wt=Ct(En.length),sr=function(Rr){dr||(Nn==null||Nn({key:_t,domEvent:Rr}),Ke==="inline"&&yn(_t,!Dr))},vr=Ae(function(Tr){An==null||An(C(Tr)),qn(Tr)}),Dn=function(Rr){Ke!=="inline"&&yn(_t,Rr)},Mn=function(){ln(_t)},xn=or&&"".concat(or,"-popup"),bn=u.createElement("div",(0,M.Z)({role:"menuitem",style:Wt,className:"".concat(hr,"-title"),tabIndex:dr?null:-1,ref:mr,title:typeof It=="string"?It:null,"data-menu-id":Hn&&or?null:or,"aria-expanded":gr,"aria-haspopup":!0,"aria-controls":xn,"aria-disabled":dr,onClick:sr,onFocus:Mn},Br),It,u.createElement(Lt,{icon:Ke!=="horizontal"?br:void 0,props:(0,de.Z)((0,de.Z)({},nt),{},{isOpen:gr,isSubMenu:!0})},u.createElement("i",{className:"".concat(hr,"-arrow")}))),Xn=u.useRef(Ke);if(Ke!=="inline"&&En.length>1?Xn.current="vertical":Xn.current=Ke,!Hn){var ur=Xn.current;bn=u.createElement(Ue,{mode:ur,prefixCls:hr,visible:!nn&&gr&&Ke!=="inline",popupClassName:cn,popupOffset:rn,popupStyle:$n,popup:u.createElement(x,{mode:ur==="horizontal"?"vertical":ur},u.createElement(Ne,{id:xn,ref:Fr},Sn)),disabled:dr,onVisibleChange:Dn},bn)}var Pr=u.createElement(s.Z.Item,(0,M.Z)({role:"none"},Yn,{component:"li",style:bt,className:xe()(hr,"".concat(hr,"-").concat(Ke),ft,(vt={},(0,Y.Z)(vt,"".concat(hr,"-open"),gr),(0,Y.Z)(vt,"".concat(hr,"-active"),pr),(0,Y.Z)(vt,"".concat(hr,"-selected"),jr),(0,Y.Z)(vt,"".concat(hr,"-disabled"),dr),vt)),onMouseEnter:Lr,onMouseLeave:hi}),bn,!Hn&&u.createElement(xt,{id:xn,open:gr,keyPath:En},Sn));return tr&&(Pr=tr(Pr,nt,{selected:jr,active:pr,open:gr,disabled:dr})),u.createElement(x,{onItemClick:vr,mode:Ke==="horizontal"?"vertical":Ke,itemIcon:Ur,expandIcon:br},Pr)};function ct(Je){var nt=Je.eventKey,vt=Je.children,bt=be(nt),ft=it(vt,bt),It=F();u.useEffect(function(){if(It)return It.registerPath(nt,bt),function(){It.unregisterPath(nt,bt)}},[bt]);var _t;return It?_t=ft:_t=u.createElement(st,Je,ft),u.createElement(fe.Provider,{value:bt},_t)}var kt=p(20135),Ot=["className","title","eventKey","children"],$t=["children"],Bt=function(nt){var vt=nt.className,bt=nt.title,ft=nt.eventKey,It=nt.children,_t=(0,X.Z)(nt,Ot),jt=u.useContext(G),an=jt.prefixCls,nn="".concat(an,"-item-group");return u.createElement("li",(0,M.Z)({role:"presentation"},_t,{onClick:function(Ln){return Ln.stopPropagation()},className:xe()(nn,vt)}),u.createElement("div",{role:"presentation",className:"".concat(nn,"-title"),title:typeof bt=="string"?bt:void 0},bt),u.createElement("ul",{role:"group",className:"".concat(nn,"-list")},It))};function Xt(Je){var nt=Je.children,vt=(0,X.Z)(Je,$t),bt=be(vt.eventKey),ft=it(nt,bt),It=F();return It?ft:u.createElement(Bt,(0,ut.Z)(vt,["warnKey"]),ft)}function hn(Je){var nt=Je.className,vt=Je.style,bt=u.useContext(G),ft=bt.prefixCls,It=F();return It?null:u.createElement("li",{role:"separator",className:xe()("".concat(ft,"-item-divider"),nt),style:vt})}var Dt=["label","children","key","type"];function yt(Je){return(Je||[]).map(function(nt,vt){if(nt&&(0,kt.Z)(nt)==="object"){var bt=nt,ft=bt.label,It=bt.children,_t=bt.key,jt=bt.type,an=(0,X.Z)(bt,Dt),nn=_t!=null?_t:"tmp-".concat(vt);return It||jt==="group"?jt==="group"?u.createElement(Xt,(0,M.Z)({key:nn},an,{title:ft}),yt(It)):u.createElement(ct,(0,M.Z)({key:nn},an,{title:ft}),yt(It)):jt==="divider"?u.createElement(hn,(0,M.Z)({key:nn},an)):u.createElement(tt,(0,M.Z)({key:nn},an),ft)}return null}).filter(function(nt){return nt})}function Ht(Je,nt,vt){var bt=Je;return nt&&(bt=yt(nt)),it(bt,vt)}var zt=["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"],Gt=[],sn=u.forwardRef(function(Je,nt){var vt,bt,ft=Je,It=ft.prefixCls,_t=It===void 0?"rc-menu":It,jt=ft.rootClassName,an=ft.style,nn=ft.className,Sn=ft.tabIndex,Ln=Sn===void 0?0:Sn,Fn=ft.items,cn=ft.children,rn=ft.direction,$n=ft.id,An=ft.mode,Wn=An===void 0?"vertical":An,Cn=ft.inlineCollapsed,Nn=ft.disabled,zn=ft.disabledOverflow,Pn=ft.subMenuOpenDelay,Yn=Pn===void 0?.1:Pn,or=ft.subMenuCloseDelay,Tn=or===void 0?.1:or,tn=ft.forceSubMenuRender,Ke=ft.defaultOpenKeys,un=ft.openKeys,On=ft.activeKey,Hn=ft.defaultActiveFirst,Gn=ft.selectable,nr=Gn===void 0?!0:Gn,rr=ft.multiple,Un=rr===void 0?!1:rr,qn=ft.defaultSelectedKeys,yn=ft.selectedKeys,ln=ft.onSelect,Bn=ft.onDeselect,tr=ft.inlineIndent,lr=tr===void 0?24:tr,kr=ft.motion,En=ft.defaultMotions,hr=ft.triggerSubMenuAction,dr=hr===void 0?"hover":hr,mr=ft.builtinPlacements,Fr=ft.itemIcon,Ur=ft.expandIcon,br=ft.overflowedIndicator,Dr=br===void 0?"...":br,gr=ft.overflowedIndicatorPopupClassName,jr=ft.getPopupContainer,Vr=ft.onClick,ii=ft.onOpenChange,Br=ft.onKeyDown,ti=ft.openAnimation,ar=ft.openTransitionName,si=ft._internalRenderMenuItem,vi=ft._internalRenderSubMenuItem,fi=(0,X.Z)(ft,zt),Lr=u.useMemo(function(){return Ht(cn,Fn,Gt)},[cn,Fn]),hi=u.useState(!1),pr=(0,j.Z)(hi,2),Wt=pr[0],sr=pr[1],vr=u.useRef(),Dn=Ie($n),Mn=rn==="rtl",xn=(0,A.Z)(Ke,{value:un,postState:function(zr){return zr||Gt}}),bn=(0,j.Z)(xn,2),Xn=bn[0],ur=bn[1],Pr=function(zr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function li(){ur(zr),ii==null||ii(zr)}Nr?(0,y.flushSync)(li):li()},Tr=u.useState(Xn),Rr=(0,j.Z)(Tr,2),Mr=Rr[0],ui=Rr[1],Yr=u.useRef(!1),pi=u.useMemo(function(){return(Wn==="inline"||Wn==="vertical")&&Cn?["vertical",Cn]:[Wn,!1]},[Wn,Cn]),Bi=(0,j.Z)(pi,2),bi=Bi[0],jn=Bi[1],Zn=bi==="inline",yr=u.useState(bi),Jr=(0,j.Z)(yr,2),Ir=Jr[0],_i=Jr[1],Wi=u.useState(jn),Hi=(0,j.Z)(Wi,2),Ai=Hi[0],aa=Hi[1];u.useEffect(function(){_i(bi),aa(jn),Yr.current&&(Zn?ur(Mr):Pr(Gt))},[bi,jn]);var sa=u.useState(0),oa=(0,j.Z)(sa,2),ea=oa[0],la=oa[1],Mi=ea>=Lr.length-1||Ir!=="horizontal"||zn;u.useEffect(function(){Zn&&ui(Xn)},[Xn]),u.useEffect(function(){return Yr.current=!0,function(){Yr.current=!1}},[]);var oi=ce(),ua=oi.registerPath,ta=oi.unregisterPath,Si=oi.refreshOverflowKeys,Di=oi.isSubPathKey,Ar=oi.getKeyPath,cr=oi.getKeys,mi=oi.getSubPathKeys,gi=u.useMemo(function(){return{registerPath:ua,unregisterPath:ta}},[ua,ta]),qr=u.useMemo(function(){return{isSubPathKey:Di}},[Di]);u.useEffect(function(){Si(Mi?Gt:Lr.slice(ea+1).map(function(Hr){return Hr.key}))},[ea,Mi]);var Ci=(0,A.Z)(On||Hn&&((vt=Lr[0])===null||vt===void 0?void 0:vt.key),{value:On}),$r=(0,j.Z)(Ci,2),$i=$r[0],xi=$r[1],ki=Ae(function(Hr){xi(Hr)}),zi=Ae(function(){xi(void 0)});(0,u.useImperativeHandle)(nt,function(){return{list:vr.current,focus:function(zr){var Nr,li=cr(),ci=ne(li,Dn),da=ci.elements,Ra=ci.key2element,Na=ci.element2key,Fa=q(vr.current,da),fa=$i!=null?$i:Fa[0]?Na.get(Fa[0]):(Nr=Lr.find(function(_a){return!_a.props.disabled}))===null||Nr===void 0?void 0:Nr.key,na=Ra.get(fa);if(fa&&na){var fn;na==null||(fn=na.focus)===null||fn===void 0||fn.call(na,zr)}}}});var Kr=(0,A.Z)(qn||[],{value:yn,postState:function(zr){return Array.isArray(zr)?zr:zr==null?Gt:[zr]}}),ga=(0,j.Z)(Kr,2),Ri=ga[0],ca=ga[1],es=function(zr){if(nr){var Nr=zr.key,li=Ri.includes(Nr),ci;Un?li?ci=Ri.filter(function(Ra){return Ra!==Nr}):ci=[].concat((0,Ce.Z)(Ri),[Nr]):ci=[Nr],ca(ci);var da=(0,de.Z)((0,de.Z)({},zr),{},{selectedKeys:ci});li?Bn==null||Bn(da):ln==null||ln(da)}!Un&&Xn.length&&Ir!=="inline"&&Pr(Gt)},va=Ae(function(Hr){Vr==null||Vr(C(Hr)),es(Hr)}),ya=Ae(function(Hr,zr){var Nr=Xn.filter(function(ci){return ci!==Hr});if(zr)Nr.push(Hr);else if(Ir!=="inline"){var li=mi(Hr);Nr=Nr.filter(function(ci){return!li.has(ci)})}(0,L.Z)(Xn,Nr,!0)||Pr(Nr,!0)}),ba=function(zr,Nr){var li=Nr!=null?Nr:!Xn.includes(zr);ya(zr,li)},Aa=z(Ir,$i,Mn,Dn,vr,cr,Ar,xi,ba,Br);u.useEffect(function(){sr(!0)},[]);var Ma=u.useMemo(function(){return{_internalRenderMenuItem:si,_internalRenderSubMenuItem:vi}},[si,vi]),Ui=Ir!=="horizontal"||zn?Lr:Lr.map(function(Hr,zr){return u.createElement(x,{key:Hr.key,overflowDisabled:zr>ea},Hr)}),Da=u.createElement(s.Z,(0,M.Z)({id:$n,ref:vr,prefixCls:"".concat(_t,"-overflow"),component:"ul",itemComponent:tt,className:xe()(_t,"".concat(_t,"-root"),"".concat(_t,"-").concat(Ir),nn,(bt={},(0,Y.Z)(bt,"".concat(_t,"-inline-collapsed"),Ai),(0,Y.Z)(bt,"".concat(_t,"-rtl"),Mn),bt),jt),dir:rn,style:an,role:"menu",tabIndex:Ln,data:Ui,renderRawItem:function(zr){return zr},renderRawRest:function(zr){var Nr=zr.length,li=Nr?Lr.slice(-Nr):null;return u.createElement(ct,{eventKey:le,title:Dr,disabled:Mi,internalPopupClose:Nr===0,popupClassName:gr},li)},maxCount:Ir!=="horizontal"||zn?s.Z.INVALIDATE:s.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(zr){la(zr)},onKeyDown:Aa},fi));return u.createElement(W.Provider,{value:Ma},u.createElement(b.Provider,{value:Dn},u.createElement(x,{prefixCls:_t,rootClassName:jt,mode:Ir,openKeys:Xn,rtl:Mn,disabled:Nn,motion:Wt?kr:null,defaultMotions:Wt?En:null,activeKey:$i,onActive:ki,onInactive:zi,selectedKeys:Ri,inlineIndent:lr,subMenuOpenDelay:Yn,subMenuCloseDelay:Tn,forceSubMenuRender:tn,builtinPlacements:mr,triggerSubMenuAction:dr,getPopupContainer:jr,itemIcon:Fr,expandIcon:Ur,onItemClick:va,onOpenChange:ya},u.createElement(Re.Provider,{value:qr},Da),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(B.Provider,{value:gi},Lr)))))}),Rn=sn,pn=Rn;pn.Item=tt,pn.SubMenu=ct,pn.ItemGroup=Xt,pn.Divider=hn;var Ft=pn},11780:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return K}});var M=p(96663),Y=p(44127),de=p(72071),Ce=p(6620),j=p(59301),X=p(92310),ve=p.n(X),xe=p(29301),s=p(34280),A=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function v(g,E){var Z=g.prefixCls,pe=g.invalidate,ze=g.item,We=g.renderItem,je=g.responsive,Ge=g.responsiveDisabled,pt=g.registerSize,ht=g.itemKey,rt=g.className,Vt=g.style,Jt=g.children,on=g.display,Kt=g.order,at=g.component,Et=at===void 0?"div":at,q=(0,Ce.Z)(g,A),ge=je&&!on;function ne(Q){pt(ht,Q)}j.useEffect(function(){return function(){ne(null)}},[]);var z=We&&ze!==L?We(ze,{index:Kt}):Jt,De;pe||(De={opacity:ge?0:1,height:ge?0:L,overflowY:ge?"hidden":L,order:je?Kt:L,pointerEvents:ge?"none":L,position:ge?"absolute":L});var O={};ge&&(O["aria-hidden"]=!0);var oe=j.createElement(Et,(0,M.Z)({className:ve()(!pe&&Z,rt),style:(0,Y.Z)((0,Y.Z)({},De),Vt)},O,q,{ref:E}),z);return je&&(oe=j.createElement(xe.Z,{onResize:function(le){var ce=le.offsetWidth;ne(ce)},disabled:Ge},oe)),oe}var u=j.forwardRef(v);u.displayName="Item";var y=u,b=p(6089),k=p(4676),ae=p(16089);function P(g){if(typeof MessageChannel=="undefined")(0,ae.Z)(g);else{var E=new MessageChannel;E.port1.onmessage=function(){return g()},E.port2.postMessage(void 0)}}function N(){var g=j.useRef(null),E=function(pe){g.current||(g.current=[],P(function(){(0,k.unstable_batchedUpdates)(function(){g.current.forEach(function(ze){ze()}),g.current=null})})),g.current.push(pe)};return E}function G(g,E){var Z=j.useState(E),pe=(0,de.Z)(Z,2),ze=pe[0],We=pe[1],je=(0,b.Z)(function(Ge){g(function(){We(Ge)})});return[ze,je]}var U=j.createContext(null),x=["component"],T=["className"],B=["className"],F=function(E,Z){var pe=j.useContext(U);if(!pe){var ze=E.component,We=ze===void 0?"div":ze,je=(0,Ce.Z)(E,x);return j.createElement(We,(0,M.Z)({},je,{ref:Z}))}var Ge=pe.className,pt=(0,Ce.Z)(pe,T),ht=E.className,rt=(0,Ce.Z)(E,B);return j.createElement(U.Provider,{value:null},j.createElement(y,(0,M.Z)({ref:Z,className:ve()(Ge,ht)},pt,rt)))},fe=j.forwardRef(F);fe.displayName="RawItem";var be=fe,Re=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],he="responsive",W="invalidate";function $(g){return"+ ".concat(g.length," ...")}function se(g,E){var Z=g.prefixCls,pe=Z===void 0?"rc-overflow":Z,ze=g.data,We=ze===void 0?[]:ze,je=g.renderItem,Ge=g.renderRawItem,pt=g.itemKey,ht=g.itemWidth,rt=ht===void 0?10:ht,Vt=g.ssr,Jt=g.style,on=g.className,Kt=g.maxCount,at=g.renderRest,Et=g.renderRawRest,q=g.suffix,ge=g.component,ne=ge===void 0?"div":ge,z=g.itemComponent,De=g.onVisibleChange,O=(0,Ce.Z)(g,Re),oe=Vt==="full",Q=N(),le=G(Q,null),ce=(0,de.Z)(le,2),Ae=ce[0],_e=ce[1],Pe=Ae||0,Ie=G(Q,new Map),Fe=(0,de.Z)(Ie,2),Qe=Fe[0],et=Fe[1],Ye=G(Q,0),ut=(0,de.Z)(Ye,2),dt=ut[0],ot=ut[1],Ct=G(Q,0),Lt=(0,de.Z)(Ct,2),w=Lt[0],C=Lt[1],lt=G(Q,0),ie=(0,de.Z)(lt,2),Oe=ie[0],mn=ie[1],$e=(0,j.useState)(null),Ze=(0,de.Z)($e,2),tt=Ze[0],ue=Ze[1],V=(0,j.useState)(null),we=(0,de.Z)(V,2),Ne=we[0],H=we[1],it=j.useMemo(function(){return Ne===null&&oe?Number.MAX_SAFE_INTEGER:Ne||0},[Ne,Ae]),Ee=(0,j.useState)(!1),Tt=(0,de.Z)(Ee,2),Mt=Tt[0],Ut=Tt[1],dn="".concat(pe,"-item"),wt=Math.max(dt,w),Yt=Kt===he,Ue=We.length&&Yt,mt=Kt===W,xt=Ue||typeof Kt=="number"&&We.length>Kt,Me=(0,j.useMemo)(function(){var Ft=We;return Ue?Ae===null&&oe?Ft=We:Ft=We.slice(0,Math.min(We.length,Pe/rt)):typeof Kt=="number"&&(Ft=We.slice(0,Kt)),Ft},[We,rt,Ae,Kt,Ue]),Te=(0,j.useMemo)(function(){return Ue?We.slice(it+1):We.slice(Me.length)},[We,Me,Ue,it]),st=(0,j.useCallback)(function(Ft,Je){var nt;return typeof pt=="function"?pt(Ft):(nt=pt&&(Ft==null?void 0:Ft[pt]))!==null&&nt!==void 0?nt:Je},[pt]),ct=(0,j.useCallback)(je||function(Ft){return Ft},[je]);function kt(Ft,Je,nt){Ne===Ft&&(Je===void 0||Je===tt)||(H(Ft),nt||(Ut(Ft<We.length-1),De==null||De(Ft)),Je!==void 0&&ue(Je))}function Ot(Ft,Je){_e(Je.clientWidth)}function $t(Ft,Je){et(function(nt){var vt=new Map(nt);return Je===null?vt.delete(Ft):vt.set(Ft,Je),vt})}function Bt(Ft,Je){C(Je),ot(w)}function Xt(Ft,Je){mn(Je)}function hn(Ft){return Qe.get(st(Me[Ft],Ft))}(0,s.Z)(function(){if(Pe&&typeof wt=="number"&&Me){var Ft=Oe,Je=Me.length,nt=Je-1;if(!Je){kt(0,null);return}for(var vt=0;vt<Je;vt+=1){var bt=hn(vt);if(oe&&(bt=bt||0),bt===void 0){kt(vt-1,void 0,!0);break}if(Ft+=bt,nt===0&&Ft<=Pe||vt===nt-1&&Ft+hn(nt)<=Pe){kt(nt,null);break}else if(Ft+wt>Pe){kt(vt-1,Ft-bt-Oe+w);break}}q&&hn(0)+Oe>Pe&&ue(null)}},[Pe,Qe,w,Oe,st,Me]);var Dt=Mt&&!!Te.length,yt={};tt!==null&&Ue&&(yt={position:"absolute",left:tt,top:0});var Ht={prefixCls:dn,responsive:Ue,component:z,invalidate:mt},zt=Ge?function(Ft,Je){var nt=st(Ft,Je);return j.createElement(U.Provider,{key:nt,value:(0,Y.Z)((0,Y.Z)({},Ht),{},{order:Je,item:Ft,itemKey:nt,registerSize:$t,display:Je<=it})},Ge(Ft,Je))}:function(Ft,Je){var nt=st(Ft,Je);return j.createElement(y,(0,M.Z)({},Ht,{order:Je,key:nt,item:Ft,renderItem:ct,itemKey:nt,registerSize:$t,display:Je<=it}))},Gt={order:Dt?it:Number.MAX_SAFE_INTEGER,className:"".concat(dn,"-rest"),registerSize:Bt,display:Dt},sn=at||$,Rn=Et?j.createElement(U.Provider,{value:(0,Y.Z)((0,Y.Z)({},Ht),Gt)},Et(Te)):j.createElement(y,(0,M.Z)({},Ht,Gt),typeof sn=="function"?sn(Te):sn),pn=j.createElement(ne,(0,M.Z)({className:ve()(!mt&&pe,on),style:Jt,ref:E},O),Me.map(zt),xt?Rn:null,q&&j.createElement(y,(0,M.Z)({},Ht,{responsive:Yt,responsiveDisabled:!Ue,order:it,className:"".concat(dn,"-suffix"),registerSize:Xt,display:!0,style:yt}),q));return Yt?j.createElement(xe.Z,{onResize:Ot,disabled:!Ue},pn):pn}var D=j.forwardRef(se);D.displayName="Overflow",D.Item=be,D.RESPONSIVE=he,D.INVALIDATE=W;var J=D,K=J},29301:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return W}});var M=p(96663),Y=p(59301),de=p(11592),Ce=p(48736),j=p(44127),X=p(20135),ve=p(76846),xe=p(8654),s=Y.createContext(null);function A($){var se=$.children,D=$.onBatchResize,J=Y.useRef(0),K=Y.useRef([]),g=Y.useContext(s),E=Y.useCallback(function(Z,pe,ze){J.current+=1;var We=J.current;K.current.push({size:Z,element:pe,data:ze}),Promise.resolve().then(function(){We===J.current&&(D==null||D(K.current),K.current=[])}),g==null||g(Z,pe,ze)},[D,g]);return Y.createElement(s.Provider,{value:E},se)}var L=p(76374),v=new Map;function u($){$.forEach(function(se){var D,J=se.target;(D=v.get(J))===null||D===void 0||D.forEach(function(K){return K(J)})})}var y=new L.Z(u),b=null,k=null;function ae($,se){v.has($)||(v.set($,new Set),y.observe($)),v.get($).add(se)}function P($,se){v.has($)&&(v.get($).delete(se),v.get($).size||(y.unobserve($),v.delete($)))}var N=p(52884),G=p(95727),U=p(65711),x=p(85745),T=function($){(0,U.Z)(D,$);var se=(0,x.Z)(D);function D(){return(0,N.Z)(this,D),se.apply(this,arguments)}return(0,G.Z)(D,[{key:"render",value:function(){return this.props.children}}]),D}(Y.Component);function B($,se){var D=$.children,J=$.disabled,K=Y.useRef(null),g=Y.useRef(null),E=Y.useContext(s),Z=typeof D=="function",pe=Z?D(K):D,ze=Y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),We=!Z&&Y.isValidElement(pe)&&(0,xe.Yr)(pe),je=We?(0,xe.C4)(pe):null,Ge=(0,xe.x1)(je,K),pt=function(){var Jt;return(0,ve.ZP)(K.current)||(K.current&&(0,X.Z)(K.current)==="object"?(0,ve.ZP)((Jt=K.current)===null||Jt===void 0?void 0:Jt.nativeElement):null)||(0,ve.ZP)(g.current)};Y.useImperativeHandle(se,function(){return pt()});var ht=Y.useRef($);ht.current=$;var rt=Y.useCallback(function(Vt){var Jt=ht.current,on=Jt.onResize,Kt=Jt.data,at=Vt.getBoundingClientRect(),Et=at.width,q=at.height,ge=Vt.offsetWidth,ne=Vt.offsetHeight,z=Math.floor(Et),De=Math.floor(q);if(ze.current.width!==z||ze.current.height!==De||ze.current.offsetWidth!==ge||ze.current.offsetHeight!==ne){var O={width:z,height:De,offsetWidth:ge,offsetHeight:ne};ze.current=O;var oe=ge===Math.round(Et)?Et:ge,Q=ne===Math.round(q)?q:ne,le=(0,j.Z)((0,j.Z)({},O),{},{offsetWidth:oe,offsetHeight:Q});E==null||E(le,Vt,Kt),on&&Promise.resolve().then(function(){on(le,Vt)})}},[]);return Y.useEffect(function(){var Vt=pt();return Vt&&!J&&ae(Vt,rt),function(){return P(Vt,rt)}},[K.current,J]),Y.createElement(T,{ref:g},We?Y.cloneElement(pe,{ref:Ge}):pe)}var F=Y.forwardRef(B),fe=F,be="rc-observer-key";function Re($,se){var D=$.children,J=typeof D=="function"?[D]:(0,de.Z)(D);return J.map(function(K,g){var E=(K==null?void 0:K.key)||"".concat(be,"-").concat(g);return Y.createElement(fe,(0,M.Z)({},$,{key:E,ref:g===0?se:void 0}),K)})}var he=Y.forwardRef(Re);he.Collection=A;var W=he},17115:function(qt,qe,p){"use strict";p.d(qe,{ZP:function(){return ve}});var M=p(72071),Y=p(59301),de=p(47273),Ce=0,j=(0,de.Z)();function X(){var xe;return j?(xe=Ce,Ce+=1):xe="TEST_OR_SSR",xe}function ve(xe){var s=Y.useState(),A=(0,M.Z)(s,2),L=A[0],v=A[1];return Y.useEffect(function(){v("rc_select_".concat(X()))},[]),xe||L}},77861:function(qt,qe,p){"use strict";p.d(qe,{Ac:function(){return _e},Xo:function(){return C},Wx:function(){return ie},ZP:function(){return xt},lk:function(){return U}});var M=p(96663),Y=p(19127),de=p(90493),Ce=p(44127),j=p(72071),X=p(6620),ve=p(20135),xe=p(18929),s=p(48736),A=p(59301),L=p(92310),v=p.n(L),u=p(34280),y=p(49658),b=p(10228),k=p(8654),ae=function(Te){var st=Te.className,ct=Te.customizeIcon,kt=Te.customizeIconProps,Ot=Te.onMouseDown,$t=Te.onClick,Bt=Te.children,Xt;return typeof ct=="function"?Xt=ct(kt):Xt=ct,A.createElement("span",{className:st,onMouseDown:function(Dt){Dt.preventDefault(),Ot&&Ot(Dt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:$t,"aria-hidden":!0},Xt!==void 0?Xt:A.createElement("span",{className:v()(st.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Bt))},P=ae;function N(Me,Te,st,ct,kt){var Ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,$t=arguments.length>6?arguments[6]:void 0,Bt=arguments.length>7?arguments[7]:void 0,Xt=A.useMemo(function(){if((0,ve.Z)(ct)==="object")return ct.clearIcon;if(kt)return kt},[ct,kt]),hn=A.useMemo(function(){return!!(!Ot&&ct&&(st.length||$t)&&!(Bt==="combobox"&&$t===""))},[ct,Ot,st.length,$t,Bt]);return{allowClear:hn,clearIcon:A.createElement(P,{className:"".concat(Me,"-clear"),onMouseDown:Te,customizeIcon:Xt},"\xD7")}}var G=A.createContext(null);function U(){return A.useContext(G)}function x(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Te=A.useState(!1),st=(0,j.Z)(Te,2),ct=st[0],kt=st[1],Ot=A.useRef(null),$t=function(){window.clearTimeout(Ot.current)};A.useEffect(function(){return $t},[]);var Bt=function(hn,Dt){$t(),Ot.current=window.setTimeout(function(){kt(hn),Dt&&Dt()},Me)};return[ct,Bt,$t]}function T(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Te=A.useRef(null),st=A.useRef(null);A.useEffect(function(){return function(){window.clearTimeout(st.current)}},[]);function ct(kt){(kt||Te.current===null)&&(Te.current=kt),window.clearTimeout(st.current),st.current=window.setTimeout(function(){Te.current=null},Me)}return[function(){return Te.current},ct]}function B(Me,Te,st,ct){var kt=A.useRef(null);kt.current={open:Te,triggerOpen:st,customizedTrigger:ct},A.useEffect(function(){function Ot($t){var Bt;if(!((Bt=kt.current)!==null&&Bt!==void 0&&Bt.customizedTrigger)){var Xt=$t.target;Xt.shadowRoot&&$t.composed&&(Xt=$t.composedPath()[0]||Xt),kt.current.open&&Me().filter(function(hn){return hn}).every(function(hn){return!hn.contains(Xt)&&hn!==Xt})&&kt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ot),function(){return window.removeEventListener("mousedown",Ot)}},[])}var F=p(26112),fe=p(11780),be=function(Te,st){var ct,kt,Ot=Te.prefixCls,$t=Te.id,Bt=Te.inputElement,Xt=Te.disabled,hn=Te.tabIndex,Dt=Te.autoFocus,yt=Te.autoComplete,Ht=Te.editable,zt=Te.activeDescendantId,Gt=Te.value,sn=Te.maxLength,Rn=Te.onKeyDown,pn=Te.onMouseDown,Ft=Te.onChange,Je=Te.onPaste,nt=Te.onCompositionStart,vt=Te.onCompositionEnd,bt=Te.open,ft=Te.attrs,It=Bt||A.createElement("input",null),_t=It,jt=_t.ref,an=_t.props,nn=an.onKeyDown,Sn=an.onChange,Ln=an.onMouseDown,Fn=an.onCompositionStart,cn=an.onCompositionEnd,rn=an.style;return(0,s.Kp)(!("maxLength"in It.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),It=A.cloneElement(It,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({type:"search"},an),{},{id:$t,ref:(0,k.sQ)(st,jt),disabled:Xt,tabIndex:hn,autoComplete:yt||"off",autoFocus:Dt,className:v()("".concat(Ot,"-selection-search-input"),(ct=It)===null||ct===void 0||(kt=ct.props)===null||kt===void 0?void 0:kt.className),role:"combobox","aria-label":"Search","aria-expanded":bt||!1,"aria-haspopup":"listbox","aria-owns":"".concat($t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($t,"_list"),"aria-activedescendant":bt?zt:void 0},ft),{},{value:Ht?Gt:"",maxLength:sn,readOnly:!Ht,unselectable:Ht?null:"on",style:(0,Ce.Z)((0,Ce.Z)({},rn),{},{opacity:Ht?null:0}),onKeyDown:function(An){Rn(An),nn&&nn(An)},onMouseDown:function(An){pn(An),Ln&&Ln(An)},onChange:function(An){Ft(An),Sn&&Sn(An)},onCompositionStart:function(An){nt(An),Fn&&Fn(An)},onCompositionEnd:function(An){vt(An),cn&&cn(An)},onPaste:Je})),It},Re=A.forwardRef(be);Re.displayName="Input";var he=Re;function W(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}var $=typeof window!="undefined"&&window.document&&window.document.documentElement,se=$;function D(Me){return Me!=null}function J(Me){return!Me&&Me!==0}function K(Me){return["string","number"].includes((0,ve.Z)(Me))}function g(Me){var Te=void 0;return Me&&(K(Me.title)?Te=Me.title.toString():K(Me.label)&&(Te=Me.label.toString())),Te}function E(Me,Te){se?A.useLayoutEffect(Me,Te):A.useEffect(Me,Te)}function Z(Me){var Te;return(Te=Me.key)!==null&&Te!==void 0?Te:Me.value}var pe=function(Te){Te.preventDefault(),Te.stopPropagation()},ze=function(Te){var st=Te.id,ct=Te.prefixCls,kt=Te.values,Ot=Te.open,$t=Te.searchValue,Bt=Te.autoClearSearchValue,Xt=Te.inputRef,hn=Te.placeholder,Dt=Te.disabled,yt=Te.mode,Ht=Te.showSearch,zt=Te.autoFocus,Gt=Te.autoComplete,sn=Te.activeDescendantId,Rn=Te.tabIndex,pn=Te.removeIcon,Ft=Te.maxTagCount,Je=Te.maxTagTextLength,nt=Te.maxTagPlaceholder,vt=nt===void 0?function(Gn){return"+ ".concat(Gn.length," ...")}:nt,bt=Te.tagRender,ft=Te.onToggleOpen,It=Te.onRemove,_t=Te.onInputChange,jt=Te.onInputPaste,an=Te.onInputKeyDown,nn=Te.onInputMouseDown,Sn=Te.onInputCompositionStart,Ln=Te.onInputCompositionEnd,Fn=A.useRef(null),cn=(0,A.useState)(0),rn=(0,j.Z)(cn,2),$n=rn[0],An=rn[1],Wn=(0,A.useState)(!1),Cn=(0,j.Z)(Wn,2),Nn=Cn[0],zn=Cn[1],Pn="".concat(ct,"-selection"),Yn=Ot||yt==="multiple"&&Bt===!1||yt==="tags"?$t:"",or=yt==="tags"||yt==="multiple"&&Bt===!1||Ht&&(Ot||Nn);E(function(){An(Fn.current.scrollWidth)},[Yn]);function Tn(Gn,nr,rr,Un,qn){return A.createElement("span",{className:v()("".concat(Pn,"-item"),(0,de.Z)({},"".concat(Pn,"-item-disabled"),rr)),title:g(Gn)},A.createElement("span",{className:"".concat(Pn,"-item-content")},nr),Un&&A.createElement(P,{className:"".concat(Pn,"-item-remove"),onMouseDown:pe,onClick:qn,customizeIcon:pn},"\xD7"))}function tn(Gn,nr,rr,Un,qn){var yn=function(Bn){pe(Bn),ft(!Ot)};return A.createElement("span",{onMouseDown:yn},bt({label:nr,value:Gn,disabled:rr,closable:Un,onClose:qn}))}function Ke(Gn){var nr=Gn.disabled,rr=Gn.label,Un=Gn.value,qn=!Dt&&!nr,yn=rr;if(typeof Je=="number"&&(typeof rr=="string"||typeof rr=="number")){var ln=String(yn);ln.length>Je&&(yn="".concat(ln.slice(0,Je),"..."))}var Bn=function(lr){lr&&lr.stopPropagation(),It(Gn)};return typeof bt=="function"?tn(Un,yn,nr,qn,Bn):Tn(Gn,yn,nr,qn,Bn)}function un(Gn){var nr=typeof vt=="function"?vt(Gn):vt;return Tn({title:nr},nr,!1)}var On=A.createElement("div",{className:"".concat(Pn,"-search"),style:{width:$n},onFocus:function(){zn(!0)},onBlur:function(){zn(!1)}},A.createElement(he,{ref:Xt,open:Ot,prefixCls:ct,id:st,inputElement:null,disabled:Dt,autoFocus:zt,autoComplete:Gt,editable:or,activeDescendantId:sn,value:Yn,onKeyDown:an,onMouseDown:nn,onChange:_t,onPaste:jt,onCompositionStart:Sn,onCompositionEnd:Ln,tabIndex:Rn,attrs:(0,F.Z)(Te,!0)}),A.createElement("span",{ref:Fn,className:"".concat(Pn,"-search-mirror"),"aria-hidden":!0},Yn,"\xA0")),Hn=A.createElement(fe.Z,{prefixCls:"".concat(Pn,"-overflow"),data:kt,renderItem:Ke,renderRest:un,suffix:On,itemKey:Z,maxCount:Ft});return A.createElement(A.Fragment,null,Hn,!kt.length&&!Yn&&A.createElement("span",{className:"".concat(Pn,"-placeholder")},hn))},We=ze,je=function(Te){var st=Te.inputElement,ct=Te.prefixCls,kt=Te.id,Ot=Te.inputRef,$t=Te.disabled,Bt=Te.autoFocus,Xt=Te.autoComplete,hn=Te.activeDescendantId,Dt=Te.mode,yt=Te.open,Ht=Te.values,zt=Te.placeholder,Gt=Te.tabIndex,sn=Te.showSearch,Rn=Te.searchValue,pn=Te.activeValue,Ft=Te.maxLength,Je=Te.onInputKeyDown,nt=Te.onInputMouseDown,vt=Te.onInputChange,bt=Te.onInputPaste,ft=Te.onInputCompositionStart,It=Te.onInputCompositionEnd,_t=Te.title,jt=A.useState(!1),an=(0,j.Z)(jt,2),nn=an[0],Sn=an[1],Ln=Dt==="combobox",Fn=Ln||sn,cn=Ht[0],rn=Rn||"";Ln&&pn&&!nn&&(rn=pn),A.useEffect(function(){Ln&&Sn(!1)},[Ln,pn]);var $n=Dt!=="combobox"&&!yt&&!sn?!1:!!rn,An=_t===void 0?g(cn):_t,Wn=function(){if(cn)return null;var Nn=$n?{visibility:"hidden"}:void 0;return A.createElement("span",{className:"".concat(ct,"-selection-placeholder"),style:Nn},zt)};return A.createElement(A.Fragment,null,A.createElement("span",{className:"".concat(ct,"-selection-search")},A.createElement(he,{ref:Ot,prefixCls:ct,id:kt,open:yt,inputElement:st,disabled:$t,autoFocus:Bt,autoComplete:Xt,editable:Fn,activeDescendantId:hn,value:rn,onKeyDown:Je,onMouseDown:nt,onChange:function(Nn){Sn(!0),vt(Nn)},onPaste:bt,onCompositionStart:ft,onCompositionEnd:It,tabIndex:Gt,attrs:(0,F.Z)(Te,!0),maxLength:Ln?Ft:void 0})),!Ln&&cn?A.createElement("span",{className:"".concat(ct,"-selection-item"),title:An,style:$n?{visibility:"hidden"}:void 0},cn.label):null,Wn())},Ge=je;function pt(Me){return![b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(Me)}var ht=function(Te,st){var ct=(0,A.useRef)(null),kt=(0,A.useRef)(!1),Ot=Te.prefixCls,$t=Te.open,Bt=Te.mode,Xt=Te.showSearch,hn=Te.tokenWithEnter,Dt=Te.autoClearSearchValue,yt=Te.onSearch,Ht=Te.onSearchSubmit,zt=Te.onToggleOpen,Gt=Te.onInputKeyDown,sn=Te.domRef;A.useImperativeHandle(st,function(){return{focus:function(){ct.current.focus()},blur:function(){ct.current.blur()}}});var Rn=T(0),pn=(0,j.Z)(Rn,2),Ft=pn[0],Je=pn[1],nt=function(rn){var $n=rn.which;($n===b.Z.UP||$n===b.Z.DOWN)&&rn.preventDefault(),Gt&&Gt(rn),$n===b.Z.ENTER&&Bt==="tags"&&!kt.current&&!$t&&(Ht==null||Ht(rn.target.value)),pt($n)&&zt(!0)},vt=function(){Je(!0)},bt=(0,A.useRef)(null),ft=function(rn){yt(rn,!0,kt.current)!==!1&&zt(!0)},It=function(){kt.current=!0},_t=function(rn){kt.current=!1,Bt!=="combobox"&&ft(rn.target.value)},jt=function(rn){var $n=rn.target.value;if(hn&&bt.current&&/[\r\n]/.test(bt.current)){var An=bt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$n=$n.replace(An,bt.current)}bt.current=null,ft($n)},an=function(rn){var $n=rn.clipboardData,An=$n.getData("text");bt.current=An},nn=function(rn){var $n=rn.target;if($n!==ct.current){var An=document.body.style.msTouchAction!==void 0;An?setTimeout(function(){ct.current.focus()}):ct.current.focus()}},Sn=function(rn){var $n=Ft();rn.target!==ct.current&&!$n&&Bt!=="combobox"&&rn.preventDefault(),(Bt!=="combobox"&&(!Xt||!$n)||!$t)&&($t&&Dt!==!1&&yt("",!0,!1),zt())},Ln={inputRef:ct,onInputKeyDown:nt,onInputMouseDown:vt,onInputChange:jt,onInputPaste:an,onInputCompositionStart:It,onInputCompositionEnd:_t},Fn=Bt==="multiple"||Bt==="tags"?A.createElement(We,(0,M.Z)({},Te,Ln)):A.createElement(Ge,(0,M.Z)({},Te,Ln));return A.createElement("div",{ref:sn,className:"".concat(Ot,"-selector"),onClick:nn,onMouseDown:Sn},Fn)},rt=A.forwardRef(ht);rt.displayName="Selector";var Vt=rt,Jt=p(35593),on=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Kt=function(Te){var st=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:st,adjustY:1},htmlRegion:"scroll"}}},at=function(Te,st){var ct=Te.prefixCls,kt=Te.disabled,Ot=Te.visible,$t=Te.children,Bt=Te.popupElement,Xt=Te.animation,hn=Te.transitionName,Dt=Te.dropdownStyle,yt=Te.dropdownClassName,Ht=Te.direction,zt=Ht===void 0?"ltr":Ht,Gt=Te.placement,sn=Te.builtinPlacements,Rn=Te.dropdownMatchSelectWidth,pn=Te.dropdownRender,Ft=Te.dropdownAlign,Je=Te.getPopupContainer,nt=Te.empty,vt=Te.getTriggerDOMNode,bt=Te.onPopupVisibleChange,ft=Te.onPopupMouseEnter,It=(0,X.Z)(Te,on),_t="".concat(ct,"-dropdown"),jt=Bt;pn&&(jt=pn(Bt));var an=A.useMemo(function(){return sn||Kt(Rn)},[sn,Rn]),nn=Xt?"".concat(_t,"-").concat(Xt):hn,Sn=typeof Rn=="number",Ln=A.useMemo(function(){return Sn?null:Rn===!1?"minWidth":"width"},[Rn,Sn]),Fn=Dt;Sn&&(Fn=(0,Ce.Z)((0,Ce.Z)({},Fn),{},{width:Rn}));var cn=A.useRef(null);return A.useImperativeHandle(st,function(){return{getPopupElement:function(){return cn.current}}}),A.createElement(Jt.Z,(0,M.Z)({},It,{showAction:bt?["click"]:[],hideAction:bt?["click"]:[],popupPlacement:Gt||(zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:an,prefixCls:_t,popupTransitionName:nn,popup:A.createElement("div",{ref:cn,onMouseEnter:ft},jt),stretch:Ln,popupAlign:Ft,popupVisible:Ot,getPopupContainer:Je,popupClassName:v()(yt,(0,de.Z)({},"".concat(_t,"-empty"),nt)),popupStyle:Fn,getTriggerDOMNode:vt,onPopupVisibleChange:bt}),$t)},Et=A.forwardRef(at);Et.displayName="SelectTrigger";var q=Et,ge=p(4537);function ne(Me,Te){var st=Me.key,ct;return"value"in Me&&(ct=Me.value),st!=null?st:ct!==void 0?ct:"rc-index-key-".concat(Te)}function z(Me,Te){var st=Me||{},ct=st.label,kt=st.value,Ot=st.options,$t=st.groupLabel,Bt=ct||(Te?"children":"label");return{label:Bt,value:kt||"value",options:Ot||"options",groupLabel:$t||Bt}}function De(Me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=Te.fieldNames,ct=Te.childrenAsData,kt=[],Ot=z(st,!1),$t=Ot.label,Bt=Ot.value,Xt=Ot.options,hn=Ot.groupLabel;function Dt(yt,Ht){yt.forEach(function(zt){if(Ht||!(Xt in zt)){var Gt=zt[Bt];kt.push({key:ne(zt,kt.length),groupOption:Ht,data:zt,label:zt[$t],value:Gt})}else{var sn=zt[hn];sn===void 0&&ct&&(sn=zt.label),kt.push({key:ne(zt,kt.length),group:!0,data:zt,label:sn}),Dt(zt[Xt],!0)}})}return Dt(Me,!1),kt}function O(Me){var Te=(0,Ce.Z)({},Me);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,s.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Te}}),Te}function oe(Me,Te){if(!Te||!Te.length)return null;var st=!1;function ct(Ot,$t){var Bt=(0,ge.Z)($t),Xt=Bt[0],hn=Bt.slice(1);if(!Xt)return[Ot];var Dt=Ot.split(Xt);return st=st||Dt.length>1,Dt.reduce(function(yt,Ht){return[].concat((0,Y.Z)(yt),(0,Y.Z)(ct(Ht,hn)))},[]).filter(function(yt){return yt})}var kt=ct(Me,Te);return st?kt:null}var Q=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],le=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ce(Me){return Me==="tags"||Me==="multiple"}var Ae=A.forwardRef(function(Me,Te){var st,ct,kt=Me.id,Ot=Me.prefixCls,$t=Me.className,Bt=Me.showSearch,Xt=Me.tagRender,hn=Me.direction,Dt=Me.omitDomProps,yt=Me.displayValues,Ht=Me.onDisplayValuesChange,zt=Me.emptyOptions,Gt=Me.notFoundContent,sn=Gt===void 0?"Not Found":Gt,Rn=Me.onClear,pn=Me.mode,Ft=Me.disabled,Je=Me.loading,nt=Me.getInputElement,vt=Me.getRawInputElement,bt=Me.open,ft=Me.defaultOpen,It=Me.onDropdownVisibleChange,_t=Me.activeValue,jt=Me.onActiveValueChange,an=Me.activeDescendantId,nn=Me.searchValue,Sn=Me.autoClearSearchValue,Ln=Me.onSearch,Fn=Me.onSearchSplit,cn=Me.tokenSeparators,rn=Me.allowClear,$n=Me.suffixIcon,An=Me.clearIcon,Wn=Me.OptionList,Cn=Me.animation,Nn=Me.transitionName,zn=Me.dropdownStyle,Pn=Me.dropdownClassName,Yn=Me.dropdownMatchSelectWidth,or=Me.dropdownRender,Tn=Me.dropdownAlign,tn=Me.placement,Ke=Me.builtinPlacements,un=Me.getPopupContainer,On=Me.showAction,Hn=On===void 0?[]:On,Gn=Me.onFocus,nr=Me.onBlur,rr=Me.onKeyUp,Un=Me.onKeyDown,qn=Me.onMouseDown,yn=(0,X.Z)(Me,Q),ln=ce(pn),Bn=(Bt!==void 0?Bt:ln)||pn==="combobox",tr=(0,Ce.Z)({},yn);le.forEach(function(Ar){delete tr[Ar]}),Dt==null||Dt.forEach(function(Ar){delete tr[Ar]});var lr=A.useState(!1),kr=(0,j.Z)(lr,2),En=kr[0],hr=kr[1];A.useEffect(function(){hr((0,y.Z)())},[]);var dr=A.useRef(null),mr=A.useRef(null),Fr=A.useRef(null),Ur=A.useRef(null),br=A.useRef(null),Dr=x(),gr=(0,j.Z)(Dr,3),jr=gr[0],Vr=gr[1],ii=gr[2];A.useImperativeHandle(Te,function(){var Ar,cr;return{focus:(Ar=Ur.current)===null||Ar===void 0?void 0:Ar.focus,blur:(cr=Ur.current)===null||cr===void 0?void 0:cr.blur,scrollTo:function(gi){var qr;return(qr=br.current)===null||qr===void 0?void 0:qr.scrollTo(gi)}}});var Br=A.useMemo(function(){var Ar;if(pn!=="combobox")return nn;var cr=(Ar=yt[0])===null||Ar===void 0?void 0:Ar.value;return typeof cr=="string"||typeof cr=="number"?String(cr):""},[nn,pn,yt]),ti=pn==="combobox"&&typeof nt=="function"&&nt()||null,ar=typeof vt=="function"&&vt(),si=(0,k.x1)(mr,ar==null||(st=ar.props)===null||st===void 0?void 0:st.ref),vi=A.useState(!1),fi=(0,j.Z)(vi,2),Lr=fi[0],hi=fi[1];(0,u.Z)(function(){hi(!0)},[]);var pr=(0,xe.Z)(!1,{defaultValue:ft,value:bt}),Wt=(0,j.Z)(pr,2),sr=Wt[0],vr=Wt[1],Dn=Lr?sr:!1,Mn=!sn&&zt;(Ft||Mn&&Dn&&pn==="combobox")&&(Dn=!1);var xn=Mn?!1:Dn,bn=A.useCallback(function(Ar){var cr=Ar!==void 0?Ar:!Dn;Ft||(vr(cr),Dn!==cr&&(It==null||It(cr)))},[Ft,Dn,vr,It]),Xn=A.useMemo(function(){return(cn||[]).some(function(Ar){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ar)})},[cn]),ur=function(cr,mi,gi){var qr=!0,Ci=cr;jt==null||jt(null);var $r=gi?null:oe(cr,cn);return pn!=="combobox"&&$r&&(Ci="",Fn==null||Fn($r),bn(!1),qr=!1),Ln&&Br!==Ci&&Ln(Ci,{source:mi?"typing":"effect"}),qr},Pr=function(cr){!cr||!cr.trim()||Ln(cr,{source:"submit"})};A.useEffect(function(){!Dn&&!ln&&pn!=="combobox"&&ur("",!1,!1)},[Dn]),A.useEffect(function(){sr&&Ft&&vr(!1),Ft&&Vr(!1)},[Ft]);var Tr=T(),Rr=(0,j.Z)(Tr,2),Mr=Rr[0],ui=Rr[1],Yr=function(cr){var mi=Mr(),gi=cr.which;if(gi===b.Z.ENTER&&(pn!=="combobox"&&cr.preventDefault(),Dn||bn(!0)),ui(!!Br),gi===b.Z.BACKSPACE&&!mi&&ln&&!Br&&yt.length){for(var qr=(0,Y.Z)(yt),Ci=null,$r=qr.length-1;$r>=0;$r-=1){var $i=qr[$r];if(!$i.disabled){qr.splice($r,1),Ci=$i;break}}Ci&&Ht(qr,{type:"remove",values:[Ci]})}for(var xi=arguments.length,ki=new Array(xi>1?xi-1:0),zi=1;zi<xi;zi++)ki[zi-1]=arguments[zi];if(Dn&&br.current){var Kr;(Kr=br.current).onKeyDown.apply(Kr,[cr].concat(ki))}Un==null||Un.apply(void 0,[cr].concat(ki))},pi=function(cr){for(var mi=arguments.length,gi=new Array(mi>1?mi-1:0),qr=1;qr<mi;qr++)gi[qr-1]=arguments[qr];if(Dn&&br.current){var Ci;(Ci=br.current).onKeyUp.apply(Ci,[cr].concat(gi))}rr==null||rr.apply(void 0,[cr].concat(gi))},Bi=function(cr){var mi=yt.filter(function(gi){return gi!==cr});Ht(mi,{type:"remove",values:[cr]})},bi=A.useRef(!1),jn=function(){Vr(!0),Ft||(Gn&&!bi.current&&Gn.apply(void 0,arguments),Hn.includes("focus")&&bn(!0)),bi.current=!0},Zn=function(){Vr(!1,function(){bi.current=!1,bn(!1)}),!Ft&&(Br&&(pn==="tags"?Ln(Br,{source:"submit"}):pn==="multiple"&&Ln("",{source:"blur"})),nr&&nr.apply(void 0,arguments))},yr=[];A.useEffect(function(){return function(){yr.forEach(function(Ar){return clearTimeout(Ar)}),yr.splice(0,yr.length)}},[]);var Jr=function(cr){var mi,gi=cr.target,qr=(mi=Fr.current)===null||mi===void 0?void 0:mi.getPopupElement();if(qr&&qr.contains(gi)){var Ci=setTimeout(function(){var ki=yr.indexOf(Ci);if(ki!==-1&&yr.splice(ki,1),ii(),!En&&!qr.contains(document.activeElement)){var zi;(zi=Ur.current)===null||zi===void 0||zi.focus()}});yr.push(Ci)}for(var $r=arguments.length,$i=new Array($r>1?$r-1:0),xi=1;xi<$r;xi++)$i[xi-1]=arguments[xi];qn==null||qn.apply(void 0,[cr].concat($i))},Ir=A.useState({}),_i=(0,j.Z)(Ir,2),Wi=_i[1];function Hi(){Wi({})}var Ai;ar&&(Ai=function(cr){bn(cr)}),B(function(){var Ar;return[dr.current,(Ar=Fr.current)===null||Ar===void 0?void 0:Ar.getPopupElement()]},xn,bn,!!ar);var aa=A.useMemo(function(){return(0,Ce.Z)((0,Ce.Z)({},Me),{},{notFoundContent:sn,open:Dn,triggerOpen:xn,id:kt,showSearch:Bn,multiple:ln,toggleOpen:bn})},[Me,sn,xn,Dn,kt,Bn,ln,bn]),sa=!!$n||Je,oa;sa&&(oa=A.createElement(P,{className:v()("".concat(Ot,"-arrow"),(0,de.Z)({},"".concat(Ot,"-arrow-loading"),Je)),customizeIcon:$n,customizeIconProps:{loading:Je,searchValue:Br,open:Dn,focused:jr,showSearch:Bn}}));var ea=function(){var cr;Rn==null||Rn(),(cr=Ur.current)===null||cr===void 0||cr.focus(),Ht([],{type:"clear",values:yt}),ur("",!1,!1)},la=N(Ot,ea,yt,rn,An,Ft,Br,pn),Mi=la.allowClear,oi=la.clearIcon,ua=A.createElement(Wn,{ref:br}),ta=v()(Ot,$t,(ct={},(0,de.Z)(ct,"".concat(Ot,"-focused"),jr),(0,de.Z)(ct,"".concat(Ot,"-multiple"),ln),(0,de.Z)(ct,"".concat(Ot,"-single"),!ln),(0,de.Z)(ct,"".concat(Ot,"-allow-clear"),rn),(0,de.Z)(ct,"".concat(Ot,"-show-arrow"),sa),(0,de.Z)(ct,"".concat(Ot,"-disabled"),Ft),(0,de.Z)(ct,"".concat(Ot,"-loading"),Je),(0,de.Z)(ct,"".concat(Ot,"-open"),Dn),(0,de.Z)(ct,"".concat(Ot,"-customize-input"),ti),(0,de.Z)(ct,"".concat(Ot,"-show-search"),Bn),ct)),Si=A.createElement(q,{ref:Fr,disabled:Ft,prefixCls:Ot,visible:xn,popupElement:ua,animation:Cn,transitionName:Nn,dropdownStyle:zn,dropdownClassName:Pn,direction:hn,dropdownMatchSelectWidth:Yn,dropdownRender:or,dropdownAlign:Tn,placement:tn,builtinPlacements:Ke,getPopupContainer:un,empty:zt,getTriggerDOMNode:function(){return mr.current},onPopupVisibleChange:Ai,onPopupMouseEnter:Hi},ar?A.cloneElement(ar,{ref:si}):A.createElement(Vt,(0,M.Z)({},Me,{domRef:mr,prefixCls:Ot,inputElement:ti,ref:Ur,id:kt,showSearch:Bn,autoClearSearchValue:Sn,mode:pn,activeDescendantId:an,tagRender:Xt,values:yt,open:Dn,onToggleOpen:bn,activeValue:_t,searchValue:Br,onSearch:ur,onSearchSubmit:Pr,onRemove:Bi,tokenWithEnter:Xn}))),Di;return ar?Di=Si:Di=A.createElement("div",(0,M.Z)({className:ta},tr,{ref:dr,onMouseDown:Jr,onKeyDown:Yr,onKeyUp:pi,onFocus:jn,onBlur:Zn}),jr&&!Dn&&A.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yt.map(function(Ar){var cr=Ar.label,mi=Ar.value;return["number","string"].includes((0,ve.Z)(cr))?cr:mi}).join(", "))),Si,oa,Mi&&oi),A.createElement(G.Provider,{value:aa},Di)}),_e=Ae,Pe=function(Me,Te){var st=A.useRef({values:new Map,options:new Map}),ct=A.useMemo(function(){var Ot=st.current,$t=Ot.values,Bt=Ot.options,Xt=Me.map(function(yt){if(yt.label===void 0){var Ht;return(0,Ce.Z)((0,Ce.Z)({},yt),{},{label:(Ht=$t.get(yt.value))===null||Ht===void 0?void 0:Ht.label})}return yt}),hn=new Map,Dt=new Map;return Xt.forEach(function(yt){hn.set(yt.value,yt),Dt.set(yt.value,Te.get(yt.value)||Bt.get(yt.value))}),st.current.values=hn,st.current.options=Dt,Xt},[Me,Te]),kt=A.useCallback(function(Ot){return Te.get(Ot)||st.current.options.get(Ot)},[Te]);return[ct,kt]};function Ie(Me,Te){return W(Me).join("").toUpperCase().includes(Te)}var Fe=function(Me,Te,st,ct,kt){return A.useMemo(function(){if(!st||ct===!1)return Me;var Ot=Te.options,$t=Te.label,Bt=Te.value,Xt=[],hn=typeof ct=="function",Dt=st.toUpperCase(),yt=hn?ct:function(zt,Gt){return kt?Ie(Gt[kt],Dt):Gt[Ot]?Ie(Gt[$t!=="children"?$t:"label"],Dt):Ie(Gt[Bt],Dt)},Ht=hn?function(zt){return O(zt)}:function(zt){return zt};return Me.forEach(function(zt){if(zt[Ot]){var Gt=yt(st,Ht(zt));if(Gt)Xt.push(zt);else{var sn=zt[Ot].filter(function(Rn){return yt(st,Ht(Rn))});sn.length&&Xt.push((0,Ce.Z)((0,Ce.Z)({},zt),{},(0,de.Z)({},Ot,sn)))}return}yt(st,Ht(zt))&&Xt.push(zt)}),Xt},[Me,ct,kt,st,Te])},Qe=p(17115),et=p(11592),Ye=["children","value"],ut=["children"];function dt(Me){var Te=Me,st=Te.key,ct=Te.props,kt=ct.children,Ot=ct.value,$t=(0,X.Z)(ct,Ye);return(0,Ce.Z)({key:st,value:Ot!==void 0?Ot:st,children:kt},$t)}function ot(Me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,et.Z)(Me).map(function(st,ct){if(!A.isValidElement(st)||!st.type)return null;var kt=st,Ot=kt.type.isSelectOptGroup,$t=kt.key,Bt=kt.props,Xt=Bt.children,hn=(0,X.Z)(Bt,ut);return Te||!Ot?dt(st):(0,Ce.Z)((0,Ce.Z)({key:"__RC_SELECT_GRP__".concat($t===null?ct:$t,"__"),label:$t},hn),{},{options:ot(Xt)})}).filter(function(st){return st})}function Ct(Me,Te,st,ct,kt){return A.useMemo(function(){var Ot=Me,$t=!Me;$t&&(Ot=ot(Te));var Bt=new Map,Xt=new Map,hn=function(Ht,zt,Gt){Gt&&typeof Gt=="string"&&Ht.set(zt[Gt],zt)};function Dt(yt){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=0;zt<yt.length;zt+=1){var Gt=yt[zt];!Gt[st.options]||Ht?(Bt.set(Gt[st.value],Gt),hn(Xt,Gt,st.label),hn(Xt,Gt,ct),hn(Xt,Gt,kt)):Dt(Gt[st.options],!0)}}return Dt(Ot),{options:Ot,valueOptions:Bt,labelOptions:Xt}},[Me,Te,st,ct,kt])}function Lt(Me){var Te=A.useRef();Te.current=Me;var st=A.useCallback(function(){return Te.current.apply(Te,arguments)},[]);return st}var w=function(){return null};w.isSelectOptGroup=!0;var C=w,lt=function(){return null};lt.isSelectOption=!0;var ie=lt,Oe=p(80547),mn=p(2738),$e=p(24916),Ze=A.createContext(null),tt=Ze;function ue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var V=["disabled","title","children","style","className"];function we(Me){return typeof Me=="string"||typeof Me=="number"}var Ne=function(Te,st){var ct=U(),kt=ct.prefixCls,Ot=ct.id,$t=ct.open,Bt=ct.multiple,Xt=ct.mode,hn=ct.searchValue,Dt=ct.toggleOpen,yt=ct.notFoundContent,Ht=ct.onPopupScroll,zt=A.useContext(tt),Gt=zt.flattenOptions,sn=zt.onActiveValue,Rn=zt.defaultActiveFirstOption,pn=zt.onSelect,Ft=zt.menuItemSelectedIcon,Je=zt.rawValues,nt=zt.fieldNames,vt=zt.virtual,bt=zt.direction,ft=zt.listHeight,It=zt.listItemHeight,_t="".concat(kt,"-item"),jt=(0,Oe.Z)(function(){return Gt},[$t,Gt],function(Tn,tn){return tn[0]&&Tn[1]!==tn[1]}),an=A.useRef(null),nn=function(tn){tn.preventDefault()},Sn=function(tn){an.current&&an.current.scrollTo(typeof tn=="number"?{index:tn}:tn)},Ln=function(tn){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,un=jt.length,On=0;On<un;On+=1){var Hn=(tn+On*Ke+un)%un,Gn=jt[Hn],nr=Gn.group,rr=Gn.data;if(!nr&&!rr.disabled)return Hn}return-1},Fn=A.useState(function(){return Ln(0)}),cn=(0,j.Z)(Fn,2),rn=cn[0],$n=cn[1],An=function(tn){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$n(tn);var un={source:Ke?"keyboard":"mouse"},On=jt[tn];if(!On){sn(null,-1,un);return}sn(On.value,tn,un)};(0,A.useEffect)(function(){An(Rn!==!1?Ln(0):-1)},[jt.length,hn]);var Wn=A.useCallback(function(Tn){return Je.has(Tn)&&Xt!=="combobox"},[Xt,(0,Y.Z)(Je).toString(),Je.size]);(0,A.useEffect)(function(){var Tn=setTimeout(function(){if(!Bt&&$t&&Je.size===1){var Ke=Array.from(Je)[0],un=jt.findIndex(function(On){var Hn=On.data;return Hn.value===Ke});un!==-1&&(An(un),Sn(un))}});if($t){var tn;(tn=an.current)===null||tn===void 0||tn.scrollTo(void 0)}return function(){return clearTimeout(Tn)}},[$t,hn,Gt.length]);var Cn=function(tn){tn!==void 0&&pn(tn,{selected:!Je.has(tn)}),Bt||Dt(!1)};if(A.useImperativeHandle(st,function(){return{onKeyDown:function(tn){var Ke=tn.which,un=tn.ctrlKey;switch(Ke){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:{var On=0;if(Ke===b.Z.UP?On=-1:Ke===b.Z.DOWN?On=1:ue()&&un&&(Ke===b.Z.N?On=1:Ke===b.Z.P&&(On=-1)),On!==0){var Hn=Ln(rn+On,On);Sn(Hn),An(Hn,!0)}break}case b.Z.ENTER:{var Gn=jt[rn];Gn&&!Gn.data.disabled?Cn(Gn.value):Cn(void 0),$t&&tn.preventDefault();break}case b.Z.ESC:Dt(!1),$t&&tn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(tn){Sn(tn)}}}),jt.length===0)return A.createElement("div",{role:"listbox",id:"".concat(Ot,"_list"),className:"".concat(_t,"-empty"),onMouseDown:nn},yt);var Nn=Object.keys(nt).map(function(Tn){return nt[Tn]}),zn=function(tn){return tn.label};function Pn(Tn,tn){var Ke=Tn.group;return{role:Ke?"presentation":"option",id:"".concat(Ot,"_list_").concat(tn)}}var Yn=function(tn){var Ke=jt[tn];if(!Ke)return null;var un=Ke.data||{},On=un.value,Hn=Ke.group,Gn=(0,F.Z)(un,!0),nr=zn(Ke);return Ke?A.createElement("div",(0,M.Z)({"aria-label":typeof nr=="string"&&!Hn?nr:null},Gn,{key:tn},Pn(Ke,tn),{"aria-selected":Wn(On)}),On):null},or={role:"listbox",id:"".concat(Ot,"_list")};return A.createElement(A.Fragment,null,vt&&A.createElement("div",(0,M.Z)({},or,{style:{height:0,width:0,overflow:"hidden"}}),Yn(rn-1),Yn(rn),Yn(rn+1)),A.createElement($e.Z,{itemKey:"key",ref:an,data:jt,height:ft,itemHeight:It,fullHeight:!1,onMouseDown:nn,onScroll:Ht,virtual:vt,direction:bt,innerProps:vt?null:or},function(Tn,tn){var Ke,un=Tn.group,On=Tn.groupOption,Hn=Tn.data,Gn=Tn.label,nr=Tn.value,rr=Hn.key;if(un){var Un,qn=(Un=Hn.title)!==null&&Un!==void 0?Un:we(Gn)?Gn.toString():void 0;return A.createElement("div",{className:v()(_t,"".concat(_t,"-group")),title:qn},Gn!==void 0?Gn:rr)}var yn=Hn.disabled,ln=Hn.title,Bn=Hn.children,tr=Hn.style,lr=Hn.className,kr=(0,X.Z)(Hn,V),En=(0,mn.Z)(kr,Nn),hr=Wn(nr),dr="".concat(_t,"-option"),mr=v()(_t,dr,lr,(Ke={},(0,de.Z)(Ke,"".concat(dr,"-grouped"),On),(0,de.Z)(Ke,"".concat(dr,"-active"),rn===tn&&!yn),(0,de.Z)(Ke,"".concat(dr,"-disabled"),yn),(0,de.Z)(Ke,"".concat(dr,"-selected"),hr),Ke)),Fr=zn(Tn),Ur=!Ft||typeof Ft=="function"||hr,br=typeof Fr=="number"?Fr:Fr||nr,Dr=we(br)?br.toString():void 0;return ln!==void 0&&(Dr=ln),A.createElement("div",(0,M.Z)({},(0,F.Z)(En),vt?{}:Pn(Tn,tn),{"aria-selected":hr,className:mr,title:Dr,onMouseMove:function(){rn===tn||yn||An(tn)},onClick:function(){yn||Cn(nr)},style:tr}),A.createElement("div",{className:"".concat(dr,"-content")},br),A.isValidElement(Ft)||hr,Ur&&A.createElement(P,{className:"".concat(_t,"-option-state"),customizeIcon:Ft,customizeIconProps:{isSelected:hr}},hr?"\u2713":null))}))},H=A.forwardRef(Ne);H.displayName="OptionList";var it=H;function Ee(Me){var Te=Me.mode,st=Me.options,ct=Me.children,kt=Me.backfill,Ot=Me.allowClear,$t=Me.placeholder,Bt=Me.getInputElement,Xt=Me.showSearch,hn=Me.onSearch,Dt=Me.defaultOpen,yt=Me.autoFocus,Ht=Me.labelInValue,zt=Me.value,Gt=Me.inputValue,sn=Me.optionLabelProp,Rn=isMultiple(Te),pn=Xt!==void 0?Xt:Rn||Te==="combobox",Ft=st||convertChildrenToData(ct);if(warning(Te!=="tags"||Ft.every(function(bt){return!bt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Te==="tags"||Te==="combobox"){var Je=Ft.some(function(bt){return bt.options?bt.options.some(function(ft){return typeof("value"in ft?ft.value:ft.key)=="number"}):typeof("value"in bt?bt.value:bt.key)=="number"});warning(!Je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Te!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Te==="combobox"||!kt,"`backfill` only works with `combobox` mode."),warning(Te==="combobox"||!Bt,"`getInputElement` only work with `combobox` mode."),noteOnce(Te!=="combobox"||!Bt||!Ot||!$t,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!pn&&Te!=="combobox"&&Te!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Dt||yt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),zt!=null){var nt=toArray(zt);warning(!Ht||nt.every(function(bt){return _typeof(bt)==="object"&&("key"in bt||"value"in bt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Rn||Array.isArray(zt),"`value` should be array when `mode` is `multiple` or `tags`")}if(ct){var vt=null;toNodeArray(ct).some(function(bt){if(!React.isValidElement(bt)||!bt.type)return!1;var ft=bt,It=ft.type;if(It.isSelectOption)return!1;if(It.isSelectOptGroup){var _t=toNodeArray(bt.props.children).every(function(jt){return!React.isValidElement(jt)||!bt.type||jt.type.isSelectOption?!0:(vt=jt.type,!1)});return!_t}return vt=It,!0}),vt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vt.displayName||vt.name||vt,"`.")),warning(Gt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Tt(Me,Te){if(Me){var st=function ct(kt){for(var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=0;$t<kt.length;$t++){var Bt=kt[$t];if(Bt[Te==null?void 0:Te.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ot&&Array.isArray(Bt[Te==null?void 0:Te.options])&&ct(Bt[Te==null?void 0:Te.options],!0))break}};st(Me)}}var Mt=null,Ut=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],dn=["inputValue"];function wt(Me){return!Me||(0,ve.Z)(Me)!=="object"}var Yt=A.forwardRef(function(Me,Te){var st=Me.id,ct=Me.mode,kt=Me.prefixCls,Ot=kt===void 0?"rc-select":kt,$t=Me.backfill,Bt=Me.fieldNames,Xt=Me.inputValue,hn=Me.searchValue,Dt=Me.onSearch,yt=Me.autoClearSearchValue,Ht=yt===void 0?!0:yt,zt=Me.onSelect,Gt=Me.onDeselect,sn=Me.dropdownMatchSelectWidth,Rn=sn===void 0?!0:sn,pn=Me.filterOption,Ft=Me.filterSort,Je=Me.optionFilterProp,nt=Me.optionLabelProp,vt=Me.options,bt=Me.children,ft=Me.defaultActiveFirstOption,It=Me.menuItemSelectedIcon,_t=Me.virtual,jt=Me.direction,an=Me.listHeight,nn=an===void 0?200:an,Sn=Me.listItemHeight,Ln=Sn===void 0?20:Sn,Fn=Me.value,cn=Me.defaultValue,rn=Me.labelInValue,$n=Me.onChange,An=(0,X.Z)(Me,Ut),Wn=(0,Qe.ZP)(st),Cn=ce(ct),Nn=!!(!vt&&bt),zn=A.useMemo(function(){return pn===void 0&&ct==="combobox"?!1:pn},[pn,ct]),Pn=A.useMemo(function(){return z(Bt,Nn)},[JSON.stringify(Bt),Nn]),Yn=(0,xe.Z)("",{value:hn!==void 0?hn:Xt,postState:function(Mn){return Mn||""}}),or=(0,j.Z)(Yn,2),Tn=or[0],tn=or[1],Ke=Ct(vt,bt,Pn,Je,nt),un=Ke.valueOptions,On=Ke.labelOptions,Hn=Ke.options,Gn=A.useCallback(function(Dn){var Mn=W(Dn);return Mn.map(function(xn){var bn,Xn,ur,Pr,Tr;if(wt(xn))bn=xn;else{var Rr;ur=xn.key,Xn=xn.label,bn=(Rr=xn.value)!==null&&Rr!==void 0?Rr:ur}var Mr=un.get(bn);if(Mr){var ui;if(Xn===void 0&&(Xn=Mr==null?void 0:Mr[nt||Pn.label]),ur===void 0&&(ur=(ui=Mr==null?void 0:Mr.key)!==null&&ui!==void 0?ui:bn),Pr=Mr==null?void 0:Mr.disabled,Tr=Mr==null?void 0:Mr.title,0)var Yr}return{label:Xn,value:bn,key:ur,disabled:Pr,title:Tr}})},[Pn,nt,un]),nr=(0,xe.Z)(cn,{value:Fn}),rr=(0,j.Z)(nr,2),Un=rr[0],qn=rr[1],yn=A.useMemo(function(){var Dn,Mn=Gn(Un);return ct==="combobox"&&J((Dn=Mn[0])===null||Dn===void 0?void 0:Dn.value)?[]:Mn},[Un,Gn,ct]),ln=Pe(yn,un),Bn=(0,j.Z)(ln,2),tr=Bn[0],lr=Bn[1],kr=A.useMemo(function(){if(!ct&&tr.length===1){var Dn=tr[0];if(Dn.value===null&&(Dn.label===null||Dn.label===void 0))return[]}return tr.map(function(Mn){var xn;return(0,Ce.Z)((0,Ce.Z)({},Mn),{},{label:(xn=Mn.label)!==null&&xn!==void 0?xn:Mn.value})})},[ct,tr]),En=A.useMemo(function(){return new Set(tr.map(function(Dn){return Dn.value}))},[tr]);A.useEffect(function(){if(ct==="combobox"){var Dn,Mn=(Dn=tr[0])===null||Dn===void 0?void 0:Dn.value;tn(D(Mn)?String(Mn):"")}},[tr]);var hr=Lt(function(Dn,Mn){var xn,bn=Mn!=null?Mn:Dn;return xn={},(0,de.Z)(xn,Pn.value,Dn),(0,de.Z)(xn,Pn.label,bn),xn}),dr=A.useMemo(function(){if(ct!=="tags")return Hn;var Dn=(0,Y.Z)(Hn),Mn=function(bn){return un.has(bn)};return(0,Y.Z)(tr).sort(function(xn,bn){return xn.value<bn.value?-1:1}).forEach(function(xn){var bn=xn.value;Mn(bn)||Dn.push(hr(bn,xn.label))}),Dn},[hr,Hn,un,tr,ct]),mr=Fe(dr,Pn,Tn,zn,Je),Fr=A.useMemo(function(){return ct!=="tags"||!Tn||mr.some(function(Dn){return Dn[Je||"value"]===Tn})||mr.some(function(Dn){return Dn[Pn.value]===Tn})?mr:[hr(Tn)].concat((0,Y.Z)(mr))},[hr,Je,ct,mr,Tn,Pn]),Ur=A.useMemo(function(){return Ft?(0,Y.Z)(Fr).sort(function(Dn,Mn){return Ft(Dn,Mn)}):Fr},[Fr,Ft]),br=A.useMemo(function(){return De(Ur,{fieldNames:Pn,childrenAsData:Nn})},[Ur,Pn,Nn]),Dr=function(Mn){var xn=Gn(Mn);if(qn(xn),$n&&(xn.length!==tr.length||xn.some(function(ur,Pr){var Tr;return((Tr=tr[Pr])===null||Tr===void 0?void 0:Tr.value)!==(ur==null?void 0:ur.value)}))){var bn=rn?xn:xn.map(function(ur){return ur.value}),Xn=xn.map(function(ur){return O(lr(ur.value))});$n(Cn?bn:bn[0],Cn?Xn:Xn[0])}},gr=A.useState(null),jr=(0,j.Z)(gr,2),Vr=jr[0],ii=jr[1],Br=A.useState(0),ti=(0,j.Z)(Br,2),ar=ti[0],si=ti[1],vi=ft!==void 0?ft:ct!=="combobox",fi=A.useCallback(function(Dn,Mn){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},bn=xn.source,Xn=bn===void 0?"keyboard":bn;si(Mn),$t&&ct==="combobox"&&Dn!==null&&Xn==="keyboard"&&ii(String(Dn))},[$t,ct]),Lr=function(Mn,xn,bn){var Xn=function(){var bi,jn=lr(Mn);return[rn?{label:jn==null?void 0:jn[Pn.label],value:Mn,key:(bi=jn==null?void 0:jn.key)!==null&&bi!==void 0?bi:Mn}:Mn,O(jn)]};if(xn&&zt){var ur=Xn(),Pr=(0,j.Z)(ur,2),Tr=Pr[0],Rr=Pr[1];zt(Tr,Rr)}else if(!xn&&Gt&&bn!=="clear"){var Mr=Xn(),ui=(0,j.Z)(Mr,2),Yr=ui[0],pi=ui[1];Gt(Yr,pi)}},hi=Lt(function(Dn,Mn){var xn,bn=Cn?Mn.selected:!0;bn?xn=Cn?[].concat((0,Y.Z)(tr),[Dn]):[Dn]:xn=tr.filter(function(Xn){return Xn.value!==Dn}),Dr(xn),Lr(Dn,bn),ct==="combobox"?ii(""):(!ce||Ht)&&(tn(""),ii(""))}),pr=function(Mn,xn){Dr(Mn);var bn=xn.type,Xn=xn.values;(bn==="remove"||bn==="clear")&&Xn.forEach(function(ur){Lr(ur.value,!1,bn)})},Wt=function(Mn,xn){if(tn(Mn),ii(null),xn.source==="submit"){var bn=(Mn||"").trim();if(bn){var Xn=Array.from(new Set([].concat((0,Y.Z)(En),[bn])));Dr(Xn),Lr(bn,!0),tn("")}return}xn.source!=="blur"&&(ct==="combobox"&&Dr(Mn),Dt==null||Dt(Mn))},sr=function(Mn){var xn=Mn;ct!=="tags"&&(xn=Mn.map(function(Xn){var ur=On.get(Xn);return ur==null?void 0:ur.value}).filter(function(Xn){return Xn!==void 0}));var bn=Array.from(new Set([].concat((0,Y.Z)(En),(0,Y.Z)(xn))));Dr(bn),bn.forEach(function(Xn){Lr(Xn,!0)})},vr=A.useMemo(function(){var Dn=_t!==!1&&Rn!==!1;return(0,Ce.Z)((0,Ce.Z)({},Ke),{},{flattenOptions:br,onActiveValue:fi,defaultActiveFirstOption:vi,onSelect:hi,menuItemSelectedIcon:It,rawValues:En,fieldNames:Pn,virtual:Dn,direction:jt,listHeight:nn,listItemHeight:Ln,childrenAsData:Nn})},[Ke,br,fi,vi,hi,It,En,Pn,_t,Rn,nn,Ln,Nn]);return A.createElement(tt.Provider,{value:vr},A.createElement(_e,(0,M.Z)({},An,{id:Wn,prefixCls:Ot,ref:Te,omitDomProps:dn,mode:ct,displayValues:kr,onDisplayValuesChange:pr,direction:jt,searchValue:Tn,onSearch:Wt,autoClearSearchValue:Ht,onSearchSplit:sr,dropdownMatchSelectWidth:Rn,OptionList:it,emptyOptions:!br.length,activeValue:Vr,activeDescendantId:"".concat(Wn,"_list_").concat(ar)})))}),Ue=Yt;Ue.Option=ie,Ue.OptGroup=C;var mt=Ue,xt=mt},9296:function(qt,qe,p){"use strict";p.r(qe),p.d(qe,{ResizableTextArea:function(){return Re},default:function(){return J}});var M=p(96663),Y=p(44127),de=p(90493),Ce=p(20135),j=p(72071),X=p(6620),ve=p(19127),xe=p(92310),s=p.n(xe),A=p(93681),L=p(5643),v=p(18929),u=p(59301),y=p(29301),b=p(34280),k=p(16089),ae=`
|
|
|
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;
|
|
|
`,P=["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"],N={},G;function U(K){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=K.getAttribute("id")||K.getAttribute("data-reactid")||K.getAttribute("name");if(g&&N[E])return N[E];var Z=window.getComputedStyle(K),pe=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),ze=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),We=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),je=P.map(function(pt){return"".concat(pt,":").concat(Z.getPropertyValue(pt))}).join(";"),Ge={sizingStyle:je,paddingSize:ze,borderSize:We,boxSizing:pe};return g&&E&&(N[E]=Ge),Ge}function x(K){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),K.getAttribute("wrap")?G.setAttribute("wrap",K.getAttribute("wrap")):G.removeAttribute("wrap");var pe=U(K,g),ze=pe.paddingSize,We=pe.borderSize,je=pe.boxSizing,Ge=pe.sizingStyle;G.setAttribute("style","".concat(Ge,";").concat(ae)),G.value=K.value||K.placeholder||"";var pt=void 0,ht=void 0,rt,Vt=G.scrollHeight;if(je==="border-box"?Vt+=We:je==="content-box"&&(Vt-=ze),E!==null||Z!==null){G.value=" ";var Jt=G.scrollHeight-ze;E!==null&&(pt=Jt*E,je==="border-box"&&(pt=pt+ze+We),Vt=Math.max(pt,Vt)),Z!==null&&(ht=Jt*Z,je==="border-box"&&(ht=ht+ze+We),rt=Vt>ht?"":"hidden",Vt=Math.min(ht,Vt))}var on={height:Vt,overflowY:rt,resize:"none"};return pt&&(on.minHeight=pt),ht&&(on.maxHeight=ht),on}var T=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],B=0,F=1,fe=2,be=u.forwardRef(function(K,g){var E=K,Z=E.prefixCls,pe=E.onPressEnter,ze=E.defaultValue,We=E.value,je=E.autoSize,Ge=E.onResize,pt=E.className,ht=E.style,rt=E.disabled,Vt=E.onChange,Jt=E.onInternalAutoSize,on=(0,X.Z)(E,T),Kt=(0,v.Z)(ze,{value:We,postState:function(C){return C!=null?C:""}}),at=(0,j.Z)(Kt,2),Et=at[0],q=at[1],ge=function(C){q(C.target.value),Vt==null||Vt(C)},ne=u.useRef();u.useImperativeHandle(g,function(){return{textArea:ne.current}});var z=u.useMemo(function(){return je&&(0,Ce.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),De=(0,j.Z)(z,2),O=De[0],oe=De[1],Q=!!je,le=function(){try{if(document.activeElement===ne.current){var C=ne.current,lt=C.selectionStart,ie=C.selectionEnd,Oe=C.scrollTop;ne.current.setSelectionRange(lt,ie),ne.current.scrollTop=Oe}}catch(mn){}},ce=u.useState(fe),Ae=(0,j.Z)(ce,2),_e=Ae[0],Pe=Ae[1],Ie=u.useState(),Fe=(0,j.Z)(Ie,2),Qe=Fe[0],et=Fe[1],Ye=function(){Pe(B)};(0,b.Z)(function(){Q&&Ye()},[We,O,oe,Q]),(0,b.Z)(function(){if(_e===B)Pe(F);else if(_e===F){var w=x(ne.current,!1,O,oe);Pe(fe),et(w)}else le()},[_e]);var ut=u.useRef(),dt=function(){k.Z.cancel(ut.current)},ot=function(C){_e===fe&&(Ge==null||Ge(C),je&&(dt(),ut.current=(0,k.Z)(function(){Ye()})))};u.useEffect(function(){return dt},[]);var Ct=Q?Qe:null,Lt=(0,Y.Z)((0,Y.Z)({},ht),Ct);return(_e===B||_e===F)&&(Lt.overflowY="hidden",Lt.overflowX="hidden"),u.createElement(y.Z,{onResize:ot,disabled:!(je||Ge)},u.createElement("textarea",(0,M.Z)({},on,{ref:ne,style:Lt,className:s()(Z,pt,(0,de.Z)({},"".concat(Z,"-disabled"),rt)),disabled:rt,value:Et,onChange:ge})))}),Re=be,he=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function W(K,g){return(0,ve.Z)(K||"").slice(0,g).join("")}function $(K,g,E,Z){var pe=E;return K?pe=W(E,Z):(0,ve.Z)(g||"").length<E.length&&(0,ve.Z)(E||"").length>Z&&(pe=g),pe}var se=u.forwardRef(function(K,g){var E,Z=K.defaultValue,pe=K.value,ze=K.onFocus,We=K.onBlur,je=K.onChange,Ge=K.allowClear,pt=K.maxLength,ht=K.onCompositionStart,rt=K.onCompositionEnd,Vt=K.suffix,Jt=K.prefixCls,on=Jt===void 0?"rc-textarea":Jt,Kt=K.classes,at=K.showCount,Et=K.className,q=K.style,ge=K.disabled,ne=K.hidden,z=K.classNames,De=K.styles,O=K.onResize,oe=(0,X.Z)(K,he),Q=(0,v.Z)(Z,{value:pe,defaultValue:Z}),le=(0,j.Z)(Q,2),ce=le[0],Ae=le[1],_e=(0,u.useRef)(null),Pe=u.useState(!1),Ie=(0,j.Z)(Pe,2),Fe=Ie[0],Qe=Ie[1],et=u.useState(!1),Ye=(0,j.Z)(et,2),ut=Ye[0],dt=Ye[1],ot=u.useRef(),Ct=u.useRef(0),Lt=u.useState(null),w=(0,j.Z)(Lt,2),C=w[0],lt=w[1],ie=function(){var wt;(wt=_e.current)===null||wt===void 0||wt.textArea.focus()};(0,u.useImperativeHandle)(g,function(){return{resizableTextArea:_e.current,focus:ie,blur:function(){var wt;(wt=_e.current)===null||wt===void 0||wt.textArea.blur()}}}),(0,u.useEffect)(function(){Qe(function(dn){return!ge&&dn})},[ge]);var Oe=Number(pt)>0,mn=function(wt){dt(!0),ot.current=ce,Ct.current=wt.currentTarget.selectionStart,ht==null||ht(wt)},$e=function(wt){dt(!1);var Yt=wt.currentTarget.value;if(Oe){var Ue,mt=Ct.current>=pt+1||Ct.current===((Ue=ot.current)===null||Ue===void 0?void 0:Ue.length);Yt=$(mt,ot.current,Yt,pt)}Yt!==ce&&(Ae(Yt),(0,L.rJ)(wt.currentTarget,wt,je,Yt)),rt==null||rt(wt)},Ze=function(wt){var Yt=wt.target.value;if(!ut&&Oe){var Ue=wt.target.selectionStart>=pt+1||wt.target.selectionStart===Yt.length||!wt.target.selectionStart;Yt=$(Ue,ce,Yt,pt)}Ae(Yt),(0,L.rJ)(wt.currentTarget,wt,je,Yt)},tt=function(wt){var Yt=oe.onPressEnter,Ue=oe.onKeyDown;wt.key==="Enter"&&Yt&&Yt(wt),Ue==null||Ue(wt)},ue=function(wt){Qe(!0),ze==null||ze(wt)},V=function(wt){Qe(!1),We==null||We(wt)},we=function(wt){var Yt;Ae(""),ie(),(0,L.rJ)((Yt=_e.current)===null||Yt===void 0?void 0:Yt.textArea,wt,je)},Ne=(0,L.D7)(ce);!ut&&Oe&&pe==null&&(Ne=W(Ne,pt));var H=Vt,it;if(at){var Ee=(0,ve.Z)(Ne).length;(0,Ce.Z)(at)==="object"?it=at.formatter({value:Ne,count:Ee,maxLength:pt}):it="".concat(Ee).concat(Oe?" / ".concat(pt):""),H=u.createElement(u.Fragment,null,H,u.createElement("span",{className:s()("".concat(on,"-data-count"),z==null?void 0:z.count),style:De==null?void 0:De.count},it))}var Tt=function(wt){var Yt;O==null||O(wt),(Yt=_e.current)!==null&&Yt!==void 0&&Yt.textArea.style.height&<(!0)},Mt=!oe.autoSize&&!at&&!Ge,Ut=u.createElement(A.BaseInput,{value:Ne,allowClear:Ge,handleReset:we,suffix:H,prefixCls:on,classes:{affixWrapper:s()(Kt==null?void 0:Kt.affixWrapper,(E={},(0,de.Z)(E,"".concat(on,"-show-count"),at),(0,de.Z)(E,"".concat(on,"-textarea-allow-clear"),Ge),E))},disabled:ge,focused:Fe,className:Et,style:(0,Y.Z)((0,Y.Z)({},q),C&&!Mt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof it=="string"?it:void 0}},hidden:ne,inputElement:u.createElement(Re,(0,M.Z)({},oe,{onKeyDown:tt,onChange:Ze,onFocus:ue,onBlur:V,onCompositionStart:mn,onCompositionEnd:$e,className:z==null?void 0:z.textarea,style:(0,Y.Z)((0,Y.Z)({},De==null?void 0:De.textarea),{},{resize:q==null?void 0:q.resize}),disabled:ge,prefixCls:on,onResize:Tt,ref:_e}))});return Ut}),D=se,J=D},55477:function(qt,qe,p){"use strict";p.d(qe,{G:function(){return u},Z:function(){return ae}});var M=p(96663),Y=p(44127),de=p(6620),Ce=p(35593),j=p(59301),X={shiftX:64,adjustY:1},ve={adjustX:1,shiftY:!0},xe=[0,0],s={left:{points:["cr","cl"],overflow:ve,offset:[-4,0],targetOffset:xe},right:{points:["cl","cr"],overflow:ve,offset:[4,0],targetOffset:xe},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:xe},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:xe},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:xe},leftTop:{points:["tr","tl"],overflow:ve,offset:[-4,0],targetOffset:xe},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:xe},rightTop:{points:["tl","tr"],overflow:ve,offset:[4,0],targetOffset:xe},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:xe},rightBottom:{points:["bl","br"],overflow:ve,offset:[4,0],targetOffset:xe},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:xe},leftBottom:{points:["br","bl"],overflow:ve,offset:[-4,0],targetOffset:xe}},A=null,L=p(92310),v=p.n(L);function u(P){var N=P.children,G=P.prefixCls,U=P.id,x=P.overlayInnerStyle,T=P.className,B=P.style;return j.createElement("div",{className:v()("".concat(G,"-content"),T),style:B},j.createElement("div",{className:"".concat(G,"-inner"),id:U,role:"tooltip",style:x},typeof N=="function"?N():N))}var y=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],b=function(N,G){var U=N.overlayClassName,x=N.trigger,T=x===void 0?["hover"]:x,B=N.mouseEnterDelay,F=B===void 0?0:B,fe=N.mouseLeaveDelay,be=fe===void 0?.1:fe,Re=N.overlayStyle,he=N.prefixCls,W=he===void 0?"rc-tooltip":he,$=N.children,se=N.onVisibleChange,D=N.afterVisibleChange,J=N.transitionName,K=N.animation,g=N.motion,E=N.placement,Z=E===void 0?"right":E,pe=N.align,ze=pe===void 0?{}:pe,We=N.destroyTooltipOnHide,je=We===void 0?!1:We,Ge=N.defaultVisible,pt=N.getTooltipContainer,ht=N.overlayInnerStyle,rt=N.arrowContent,Vt=N.overlay,Jt=N.id,on=N.showArrow,Kt=on===void 0?!0:on,at=(0,de.Z)(N,y),Et=(0,j.useRef)(null);(0,j.useImperativeHandle)(G,function(){return Et.current});var q=(0,Y.Z)({},at);"visible"in N&&(q.popupVisible=N.visible);var ge=function(){return j.createElement(u,{key:"content",prefixCls:W,id:Jt,overlayInnerStyle:ht},Vt)};return j.createElement(Ce.Z,(0,M.Z)({popupClassName:U,prefixCls:W,popup:ge,action:T,builtinPlacements:s,popupPlacement:Z,ref:Et,popupAlign:ze,getPopupContainer:pt,onPopupVisibleChange:se,afterPopupVisibleChange:D,popupTransitionName:J,popupAnimation:K,popupMotion:g,defaultPopupVisible:Ge,autoDestroy:je,mouseLeaveDelay:be,popupStyle:Re,mouseEnterDelay:F,arrow:Kt},q),$)},k=(0,j.forwardRef)(b),ae=k},39417:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return F}});var M=p(96663),Y=p(90493),de=p(6620),Ce=p(44127),j=p(52884),X=p(95727),ve=p(89866),xe=p(65711),s=p(85745),A=p(92310),L=p.n(A),v=p(26112),u=p(59301),y=p(39378),b=function(be){for(var Re=be.prefixCls,he=be.level,W=be.isStart,$=be.isEnd,se="".concat(Re,"-indent-unit"),D=[],J=0;J<he;J+=1){var K;D.push(u.createElement("span",{key:J,className:L()(se,(K={},(0,Y.Z)(K,"".concat(se,"-start"),W[J]),(0,Y.Z)(K,"".concat(se,"-end"),$[J]),K))}))}return u.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},D)},k=u.memo(b),ae=p(67841),P=p(71430),N=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],G="open",U="close",x="---",T=function(fe){(0,xe.Z)(Re,fe);var be=(0,s.Z)(Re);function Re(){var he;(0,j.Z)(this,Re);for(var W=arguments.length,$=new Array(W),se=0;se<W;se++)$[se]=arguments[se];return he=be.call.apply(be,[this].concat($)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(D){var J=he.props.context.onNodeClick;J(D,(0,P.F)(he.props)),he.isSelectable()?he.onSelect(D):he.onCheck(D)},he.onSelectorDoubleClick=function(D){var J=he.props.context.onNodeDoubleClick;J(D,(0,P.F)(he.props))},he.onSelect=function(D){if(!he.isDisabled()){var J=he.props.context.onNodeSelect;J(D,(0,P.F)(he.props))}},he.onCheck=function(D){if(!he.isDisabled()){var J=he.props,K=J.disableCheckbox,g=J.checked,E=he.props.context.onNodeCheck;if(!(!he.isCheckable()||K)){var Z=!g;E(D,(0,P.F)(he.props),Z)}}},he.onMouseEnter=function(D){var J=he.props.context.onNodeMouseEnter;J(D,(0,P.F)(he.props))},he.onMouseLeave=function(D){var J=he.props.context.onNodeMouseLeave;J(D,(0,P.F)(he.props))},he.onContextMenu=function(D){var J=he.props.context.onNodeContextMenu;J(D,(0,P.F)(he.props))},he.onDragStart=function(D){var J=he.props.context.onNodeDragStart;D.stopPropagation(),he.setState({dragNodeHighlight:!0}),J(D,(0,ve.Z)(he));try{D.dataTransfer.setData("text/plain","")}catch(K){}},he.onDragEnter=function(D){var J=he.props.context.onNodeDragEnter;D.preventDefault(),D.stopPropagation(),J(D,(0,ve.Z)(he))},he.onDragOver=function(D){var J=he.props.context.onNodeDragOver;D.preventDefault(),D.stopPropagation(),J(D,(0,ve.Z)(he))},he.onDragLeave=function(D){var J=he.props.context.onNodeDragLeave;D.stopPropagation(),J(D,(0,ve.Z)(he))},he.onDragEnd=function(D){var J=he.props.context.onNodeDragEnd;D.stopPropagation(),he.setState({dragNodeHighlight:!1}),J(D,(0,ve.Z)(he))},he.onDrop=function(D){var J=he.props.context.onNodeDrop;D.preventDefault(),D.stopPropagation(),he.setState({dragNodeHighlight:!1}),J(D,(0,ve.Z)(he))},he.onExpand=function(D){var J=he.props,K=J.loading,g=J.context.onNodeExpand;K||g(D,(0,P.F)(he.props))},he.setSelectHandle=function(D){he.selectHandle=D},he.getNodeState=function(){var D=he.props.expanded;return he.isLeaf()?null:D?G:U},he.hasChildren=function(){var D=he.props.eventKey,J=he.props.context.keyEntities,K=(0,ae.Z)(J,D)||{},g=K.children;return!!(g||[]).length},he.isLeaf=function(){var D=he.props,J=D.isLeaf,K=D.loaded,g=he.props.context.loadData,E=he.hasChildren();return J===!1?!1:J||!g&&!E||g&&K&&!E},he.isDisabled=function(){var D=he.props.disabled,J=he.props.context.disabled;return!!(J||D)},he.isCheckable=function(){var D=he.props.checkable,J=he.props.context.checkable;return!J||D===!1?!1:J},he.syncLoadData=function(D){var J=D.expanded,K=D.loading,g=D.loaded,E=he.props.context,Z=E.loadData,pe=E.onNodeLoad;K||Z&&J&&!he.isLeaf()&&!he.hasChildren()&&!g&&pe((0,P.F)(he.props))},he.isDraggable=function(){var D=he.props,J=D.data,K=D.context.draggable;return!!(K&&(!K.nodeDraggable||K.nodeDraggable(J)))},he.renderDragHandler=function(){var D=he.props.context,J=D.draggable,K=D.prefixCls;return J!=null&&J.icon?u.createElement("span",{className:"".concat(K,"-draggable-icon")},J.icon):null},he.renderSwitcherIconDom=function(D){var J=he.props.switcherIcon,K=he.props.context.switcherIcon,g=J||K;return typeof g=="function"?g((0,Ce.Z)((0,Ce.Z)({},he.props),{},{isLeaf:D})):g},he.renderSwitcher=function(){var D=he.props.expanded,J=he.props.context.prefixCls;if(he.isLeaf()){var K=he.renderSwitcherIconDom(!0);return K!==!1?u.createElement("span",{className:L()("".concat(J,"-switcher"),"".concat(J,"-switcher-noop"))},K):null}var g=L()("".concat(J,"-switcher"),"".concat(J,"-switcher_").concat(D?G:U)),E=he.renderSwitcherIconDom(!1);return E!==!1?u.createElement("span",{onClick:he.onExpand,className:g},E):null},he.renderCheckbox=function(){var D=he.props,J=D.checked,K=D.halfChecked,g=D.disableCheckbox,E=he.props.context.prefixCls,Z=he.isDisabled(),pe=he.isCheckable();if(!pe)return null;var ze=typeof pe!="boolean"?pe:null;return u.createElement("span",{className:L()("".concat(E,"-checkbox"),J&&"".concat(E,"-checkbox-checked"),!J&&K&&"".concat(E,"-checkbox-indeterminate"),(Z||g)&&"".concat(E,"-checkbox-disabled")),onClick:he.onCheck},ze)},he.renderIcon=function(){var D=he.props.loading,J=he.props.context.prefixCls;return u.createElement("span",{className:L()("".concat(J,"-iconEle"),"".concat(J,"-icon__").concat(he.getNodeState()||"docu"),D&&"".concat(J,"-icon_loading"))})},he.renderSelector=function(){var D=he.state.dragNodeHighlight,J=he.props,K=J.title,g=K===void 0?x:K,E=J.selected,Z=J.icon,pe=J.loading,ze=J.data,We=he.props.context,je=We.prefixCls,Ge=We.showIcon,pt=We.icon,ht=We.loadData,rt=We.titleRender,Vt=he.isDisabled(),Jt="".concat(je,"-node-content-wrapper"),on;if(Ge){var Kt=Z||pt;on=Kt?u.createElement("span",{className:L()("".concat(je,"-iconEle"),"".concat(je,"-icon__customize"))},typeof Kt=="function"?Kt(he.props):Kt):he.renderIcon()}else ht&&pe&&(on=he.renderIcon());var at;typeof g=="function"?at=g(ze):rt?at=rt(ze):at=g;var Et=u.createElement("span",{className:"".concat(je,"-title")},at);return u.createElement("span",{ref:he.setSelectHandle,title:typeof g=="string"?g:"",className:L()("".concat(Jt),"".concat(Jt,"-").concat(he.getNodeState()||"normal"),!Vt&&(E||D)&&"".concat(je,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},on,Et,he.renderDropIndicator())},he.renderDropIndicator=function(){var D=he.props,J=D.disabled,K=D.eventKey,g=he.props.context,E=g.draggable,Z=g.dropLevelOffset,pe=g.dropPosition,ze=g.prefixCls,We=g.indent,je=g.dropIndicatorRender,Ge=g.dragOverNodeKey,pt=g.direction,ht=!!E,rt=!J&&ht&&Ge===K,Vt=We!=null?We:he.cacheIndent;return he.cacheIndent=We,rt?je({dropPosition:pe,dropLevelOffset:Z,indent:Vt,prefixCls:ze,direction:pt}):null},he}return(0,X.Z)(Re,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var W=this.props.selectable,$=this.props.context.selectable;return typeof W=="boolean"?W:$}},{key:"render",value:function(){var W,$=this.props,se=$.eventKey,D=$.className,J=$.style,K=$.dragOver,g=$.dragOverGapTop,E=$.dragOverGapBottom,Z=$.isLeaf,pe=$.isStart,ze=$.isEnd,We=$.expanded,je=$.selected,Ge=$.checked,pt=$.halfChecked,ht=$.loading,rt=$.domRef,Vt=$.active,Jt=$.data,on=$.onMouseMove,Kt=$.selectable,at=(0,de.Z)($,N),Et=this.props.context,q=Et.prefixCls,ge=Et.filterTreeNode,ne=Et.keyEntities,z=Et.dropContainerKey,De=Et.dropTargetKey,O=Et.draggingNodeKey,oe=this.isDisabled(),Q=(0,v.Z)(at,{aria:!0,data:!0}),le=(0,ae.Z)(ne,se)||{},ce=le.level,Ae=ze[ze.length-1],_e=this.isDraggable(),Pe=!oe&&_e,Ie=O===se,Fe=Kt!==void 0?{"aria-selected":!!Kt}:void 0;return u.createElement("div",(0,M.Z)({ref:rt,className:L()(D,"".concat(q,"-treenode"),(W={},(0,Y.Z)(W,"".concat(q,"-treenode-disabled"),oe),(0,Y.Z)(W,"".concat(q,"-treenode-switcher-").concat(We?"open":"close"),!Z),(0,Y.Z)(W,"".concat(q,"-treenode-checkbox-checked"),Ge),(0,Y.Z)(W,"".concat(q,"-treenode-checkbox-indeterminate"),pt),(0,Y.Z)(W,"".concat(q,"-treenode-selected"),je),(0,Y.Z)(W,"".concat(q,"-treenode-loading"),ht),(0,Y.Z)(W,"".concat(q,"-treenode-active"),Vt),(0,Y.Z)(W,"".concat(q,"-treenode-leaf-last"),Ae),(0,Y.Z)(W,"".concat(q,"-treenode-draggable"),_e),(0,Y.Z)(W,"dragging",Ie),(0,Y.Z)(W,"drop-target",De===se),(0,Y.Z)(W,"drop-container",z===se),(0,Y.Z)(W,"drag-over",!oe&&K),(0,Y.Z)(W,"drag-over-gap-top",!oe&&g),(0,Y.Z)(W,"drag-over-gap-bottom",!oe&&E),(0,Y.Z)(W,"filter-node",ge&&ge((0,P.F)(this.props))),W)),style:J,draggable:Pe,"aria-grabbed":Ie,onDragStart:Pe?this.onDragStart:void 0,onDragEnter:_e?this.onDragEnter:void 0,onDragOver:_e?this.onDragOver:void 0,onDragLeave:_e?this.onDragLeave:void 0,onDrop:_e?this.onDrop:void 0,onDragEnd:_e?this.onDragEnd:void 0,onMouseMove:on},Fe,Q),u.createElement(k,{prefixCls:q,level:ce,isStart:pe,isEnd:ze}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Re}(u.Component),B=function(be){return u.createElement(y.k.Consumer,null,function(Re){return u.createElement(T,(0,M.Z)({},be,{context:Re}))})};B.displayName="TreeNode",B.isTreeNode=1;var F=B},39378:function(qt,qe,p){"use strict";p.d(qe,{k:function(){return Y}});var M=p(59301),Y=M.createContext(null)},43858:function(qt,qe,p){"use strict";p.d(qe,{O:function(){return F.Z},Z:function(){return Et}});var M=p(96663),Y=p(90493),de=p(20135),Ce=p(44127),j=p(19127),X=p(52884),ve=p(95727),xe=p(89866),s=p(65711),A=p(85745),L=p(92310),v=p.n(L),u=p(10228),y=p(26112),b=p(48736),k=p(59301),ae=p(39378);function P(q){var ge=q.dropPosition,ne=q.dropLevelOffset,z=q.indent,De={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ge){case-1:De.top=0,De.left=-ne*z;break;case 1:De.bottom=0,De.left=-ne*z;break;case 0:De.bottom=0,De.left=z;break}return k.createElement("div",{style:De})}function N(q){if(q==null)throw new TypeError("Cannot destructure "+q)}var G=p(72071),U=p(6620),x=p(34280),T=p(24916),B=p(77900),F=p(39417);function fe(q,ge){var ne=k.useState(!1),z=(0,G.Z)(ne,2),De=z[0],O=z[1];k.useLayoutEffect(function(){if(De)return q(),function(){ge()}},[De]),k.useLayoutEffect(function(){return O(!0),function(){O(!1)}},[])}var be=p(71430),Re=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function(ge,ne){var z=ge.className,De=ge.style,O=ge.motion,oe=ge.motionNodes,Q=ge.motionType,le=ge.onMotionStart,ce=ge.onMotionEnd,Ae=ge.active,_e=ge.treeNodeRequiredProps,Pe=(0,U.Z)(ge,Re),Ie=k.useState(!0),Fe=(0,G.Z)(Ie,2),Qe=Fe[0],et=Fe[1],Ye=k.useContext(ae.k),ut=Ye.prefixCls,dt=oe&&Q!=="hide";(0,x.Z)(function(){oe&&dt!==Qe&&et(dt)},[oe]);var ot=function(){oe&&le()},Ct=k.useRef(!1),Lt=function(){oe&&!Ct.current&&(Ct.current=!0,ce())};fe(ot,Lt);var w=function(lt){dt===lt&&Lt()};return oe?k.createElement(B.default,(0,M.Z)({ref:ne,visible:Qe},O,{motionAppear:Q==="show",onVisibleChanged:w}),function(C,lt){var ie=C.className,Oe=C.style;return k.createElement("div",{ref:lt,className:v()("".concat(ut,"-treenode-motion"),ie),style:Oe},oe.map(function(mn){var $e=(0,M.Z)({},(N(mn.data),mn.data)),Ze=mn.title,tt=mn.key,ue=mn.isStart,V=mn.isEnd;delete $e.children;var we=(0,be.H8)(tt,_e);return k.createElement(F.Z,(0,M.Z)({},$e,we,{title:Ze,active:Ae,data:mn.data,key:tt,isStart:ue,isEnd:V}))}))}):k.createElement(F.Z,(0,M.Z)({domRef:ne,className:z,style:De},Pe,{active:Ae}))};he.displayName="MotionTreeNode";var W=k.forwardRef(he),$=W;function se(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=q.length,z=ge.length;if(Math.abs(ne-z)!==1)return{add:!1,key:null};function De(O,oe){var Q=new Map;O.forEach(function(ce){Q.set(ce,!0)});var le=oe.filter(function(ce){return!Q.has(ce)});return le.length===1?le[0]:null}return ne<z?{add:!0,key:De(q,ge)}:{add:!1,key:De(ge,q)}}function D(q,ge,ne){var z=q.findIndex(function(Q){return Q.key===ne}),De=q[z+1],O=ge.findIndex(function(Q){return Q.key===ne});if(De){var oe=ge.findIndex(function(Q){return Q.key===De.key});return ge.slice(O+1,oe)}return ge.slice(O+1)}var J=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],K={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},g=function(){},E="RC_TREE_MOTION_".concat(Math.random()),Z={key:E},pe={key:E,level:0,index:0,pos:"0",node:Z,nodes:[Z]},ze={parent:null,children:[],pos:pe.pos,data:Z,title:null,key:E,isStart:[],isEnd:[]};function We(q,ge,ne,z){return ge===!1||!ne?q:q.slice(0,Math.ceil(ne/z)+1)}function je(q){var ge=q.key,ne=q.pos;return(0,be.km)(ge,ne)}function Ge(q){for(var ge=String(q.data.key),ne=q;ne.parent;)ne=ne.parent,ge="".concat(ne.data.key," > ").concat(ge);return ge}var pt=k.forwardRef(function(q,ge){var ne=q.prefixCls,z=q.data,De=q.selectable,O=q.checkable,oe=q.expandedKeys,Q=q.selectedKeys,le=q.checkedKeys,ce=q.loadedKeys,Ae=q.loadingKeys,_e=q.halfCheckedKeys,Pe=q.keyEntities,Ie=q.disabled,Fe=q.dragging,Qe=q.dragOverNodeKey,et=q.dropPosition,Ye=q.motion,ut=q.height,dt=q.itemHeight,ot=q.virtual,Ct=q.focusable,Lt=q.activeItem,w=q.focused,C=q.tabIndex,lt=q.onKeyDown,ie=q.onFocus,Oe=q.onBlur,mn=q.onActiveChange,$e=q.onListChangeStart,Ze=q.onListChangeEnd,tt=(0,U.Z)(q,J),ue=k.useRef(null),V=k.useRef(null);k.useImperativeHandle(ge,function(){return{scrollTo:function(yt){ue.current.scrollTo(yt)},getIndentWidth:function(){return V.current.offsetWidth}}});var we=k.useState(oe),Ne=(0,G.Z)(we,2),H=Ne[0],it=Ne[1],Ee=k.useState(z),Tt=(0,G.Z)(Ee,2),Mt=Tt[0],Ut=Tt[1],dn=k.useState(z),wt=(0,G.Z)(dn,2),Yt=wt[0],Ue=wt[1],mt=k.useState([]),xt=(0,G.Z)(mt,2),Me=xt[0],Te=xt[1],st=k.useState(null),ct=(0,G.Z)(st,2),kt=ct[0],Ot=ct[1],$t=k.useRef(z);$t.current=z;function Bt(){var Dt=$t.current;Ut(Dt),Ue(Dt),Te([]),Ot(null),Ze()}(0,x.Z)(function(){it(oe);var Dt=se(H,oe);if(Dt.key!==null)if(Dt.add){var yt=Mt.findIndex(function(pn){var Ft=pn.key;return Ft===Dt.key}),Ht=We(D(Mt,z,Dt.key),ot,ut,dt),zt=Mt.slice();zt.splice(yt+1,0,ze),Ue(zt),Te(Ht),Ot("show")}else{var Gt=z.findIndex(function(pn){var Ft=pn.key;return Ft===Dt.key}),sn=We(D(z,Mt,Dt.key),ot,ut,dt),Rn=z.slice();Rn.splice(Gt+1,0,ze),Ue(Rn),Te(sn),Ot("hide")}else Mt!==z&&(Ut(z),Ue(z))},[oe,z]),k.useEffect(function(){Fe||Bt()},[Fe]);var Xt=Ye?Yt:z,hn={expandedKeys:oe,selectedKeys:Q,loadedKeys:ce,loadingKeys:Ae,checkedKeys:le,halfCheckedKeys:_e,dragOverNodeKey:Qe,dropPosition:et,keyEntities:Pe};return k.createElement(k.Fragment,null,w&&Lt&&k.createElement("span",{style:K,"aria-live":"assertive"},Ge(Lt)),k.createElement("div",null,k.createElement("input",{style:K,disabled:Ct===!1||Ie,tabIndex:Ct!==!1?C:null,onKeyDown:lt,onFocus:ie,onBlur:Oe,value:"",onChange:g,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},k.createElement("div",{className:"".concat(ne,"-indent")},k.createElement("div",{ref:V,className:"".concat(ne,"-indent-unit")}))),k.createElement(T.Z,(0,M.Z)({},tt,{data:Xt,itemKey:je,height:ut,fullHeight:!1,virtual:ot,itemHeight:dt,prefixCls:"".concat(ne,"-list"),ref:ue,onVisibleChange:function(yt,Ht){var zt=new Set(yt),Gt=Ht.filter(function(sn){return!zt.has(sn)});Gt.some(function(sn){return je(sn)===E})&&Bt()}}),function(Dt){var yt=Dt.pos,Ht=(0,M.Z)({},(N(Dt.data),Dt.data)),zt=Dt.title,Gt=Dt.key,sn=Dt.isStart,Rn=Dt.isEnd,pn=(0,be.km)(Gt,yt);delete Ht.key,delete Ht.children;var Ft=(0,be.H8)(pn,hn);return k.createElement($,(0,M.Z)({},Ht,Ft,{title:zt,active:!!Lt&&Gt===Lt.key,pos:yt,data:Dt.data,isStart:sn,isEnd:Rn,motion:Ye,motionNodes:Gt===E?Me:null,motionType:kt,onMotionStart:$e,onMotionEnd:Bt,treeNodeRequiredProps:hn,onMouseMove:function(){mn(null)}}))}))});pt.displayName="NodeList";var ht=pt,rt=p(35654),Vt=p(90782),Jt=p(67841),on=10,Kt=function(q){(0,s.Z)(ne,q);var ge=(0,A.Z)(ne);function ne(){var z;(0,X.Z)(this,ne);for(var De=arguments.length,O=new Array(De),oe=0;oe<De;oe++)O[oe]=arguments[oe];return z=ge.call.apply(ge,[this].concat(O)),z.destroyed=!1,z.delayedDragEnterLogic=void 0,z.loadingRetryTimes={},z.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,be.w$)()},z.dragStartMousePosition=null,z.dragNode=void 0,z.currentMouseOverDroppableNodeKey=null,z.listRef=k.createRef(),z.onNodeDragStart=function(Q,le){var ce=z.state,Ae=ce.expandedKeys,_e=ce.keyEntities,Pe=z.props.onDragStart,Ie=le.props.eventKey;z.dragNode=le,z.dragStartMousePosition={x:Q.clientX,y:Q.clientY};var Fe=(0,rt._5)(Ae,Ie);z.setState({draggingNodeKey:Ie,dragChildrenKeys:(0,rt.wA)(Ie,_e),indent:z.listRef.current.getIndentWidth()}),z.setExpandedKeys(Fe),window.addEventListener("dragend",z.onWindowDragEnd),Pe==null||Pe({event:Q,node:(0,be.F)(le.props)})},z.onNodeDragEnter=function(Q,le){var ce=z.state,Ae=ce.expandedKeys,_e=ce.keyEntities,Pe=ce.dragChildrenKeys,Ie=ce.flattenNodes,Fe=ce.indent,Qe=z.props,et=Qe.onDragEnter,Ye=Qe.onExpand,ut=Qe.allowDrop,dt=Qe.direction,ot=le.props,Ct=ot.pos,Lt=ot.eventKey,w=(0,xe.Z)(z),C=w.dragNode;if(z.currentMouseOverDroppableNodeKey!==Lt&&(z.currentMouseOverDroppableNodeKey=Lt),!C){z.resetDragState();return}var lt=(0,rt.OM)(Q,C,le,Fe,z.dragStartMousePosition,ut,Ie,_e,Ae,dt),ie=lt.dropPosition,Oe=lt.dropLevelOffset,mn=lt.dropTargetKey,$e=lt.dropContainerKey,Ze=lt.dropTargetPos,tt=lt.dropAllowed,ue=lt.dragOverNodeKey;if(Pe.indexOf(mn)!==-1||!tt){z.resetDragState();return}if(z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(V){clearTimeout(z.delayedDragEnterLogic[V])}),C.props.eventKey!==le.props.eventKey&&(Q.persist(),z.delayedDragEnterLogic[Ct]=window.setTimeout(function(){if(z.state.draggingNodeKey!==null){var V=(0,j.Z)(Ae),we=(0,Jt.Z)(_e,le.props.eventKey);we&&(we.children||[]).length&&(V=(0,rt.L0)(Ae,le.props.eventKey)),"expandedKeys"in z.props||z.setExpandedKeys(V),Ye==null||Ye(V,{node:(0,be.F)(le.props),expanded:!0,nativeEvent:Q.nativeEvent})}},800)),C.props.eventKey===mn&&Oe===0){z.resetDragState();return}z.setState({dragOverNodeKey:ue,dropPosition:ie,dropLevelOffset:Oe,dropTargetKey:mn,dropContainerKey:$e,dropTargetPos:Ze,dropAllowed:tt}),et==null||et({event:Q,node:(0,be.F)(le.props),expandedKeys:Ae})},z.onNodeDragOver=function(Q,le){var ce=z.state,Ae=ce.dragChildrenKeys,_e=ce.flattenNodes,Pe=ce.keyEntities,Ie=ce.expandedKeys,Fe=ce.indent,Qe=z.props,et=Qe.onDragOver,Ye=Qe.allowDrop,ut=Qe.direction,dt=(0,xe.Z)(z),ot=dt.dragNode;if(ot){var Ct=(0,rt.OM)(Q,ot,le,Fe,z.dragStartMousePosition,Ye,_e,Pe,Ie,ut),Lt=Ct.dropPosition,w=Ct.dropLevelOffset,C=Ct.dropTargetKey,lt=Ct.dropContainerKey,ie=Ct.dropAllowed,Oe=Ct.dropTargetPos,mn=Ct.dragOverNodeKey;Ae.indexOf(C)!==-1||!ie||(ot.props.eventKey===C&&w===0?z.state.dropPosition===null&&z.state.dropLevelOffset===null&&z.state.dropTargetKey===null&&z.state.dropContainerKey===null&&z.state.dropTargetPos===null&&z.state.dropAllowed===!1&&z.state.dragOverNodeKey===null||z.resetDragState():Lt===z.state.dropPosition&&w===z.state.dropLevelOffset&&C===z.state.dropTargetKey&<===z.state.dropContainerKey&&Oe===z.state.dropTargetPos&&ie===z.state.dropAllowed&&mn===z.state.dragOverNodeKey||z.setState({dropPosition:Lt,dropLevelOffset:w,dropTargetKey:C,dropContainerKey:lt,dropTargetPos:Oe,dropAllowed:ie,dragOverNodeKey:mn}),et==null||et({event:Q,node:(0,be.F)(le.props)}))}},z.onNodeDragLeave=function(Q,le){z.currentMouseOverDroppableNodeKey===le.props.eventKey&&!Q.currentTarget.contains(Q.relatedTarget)&&(z.resetDragState(),z.currentMouseOverDroppableNodeKey=null);var ce=z.props.onDragLeave;ce==null||ce({event:Q,node:(0,be.F)(le.props)})},z.onWindowDragEnd=function(Q){z.onNodeDragEnd(Q,null,!0),window.removeEventListener("dragend",z.onWindowDragEnd)},z.onNodeDragEnd=function(Q,le){var ce=z.props.onDragEnd;z.setState({dragOverNodeKey:null}),z.cleanDragState(),ce==null||ce({event:Q,node:(0,be.F)(le.props)}),z.dragNode=null,window.removeEventListener("dragend",z.onWindowDragEnd)},z.onNodeDrop=function(Q,le){var ce,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_e=z.state,Pe=_e.dragChildrenKeys,Ie=_e.dropPosition,Fe=_e.dropTargetKey,Qe=_e.dropTargetPos,et=_e.dropAllowed;if(et){var Ye=z.props.onDrop;if(z.setState({dragOverNodeKey:null}),z.cleanDragState(),Fe!==null){var ut=(0,Ce.Z)((0,Ce.Z)({},(0,be.H8)(Fe,z.getTreeNodeRequiredProps())),{},{active:((ce=z.getActiveItem())===null||ce===void 0?void 0:ce.key)===Fe,data:(0,Jt.Z)(z.state.keyEntities,Fe).node}),dt=Pe.indexOf(Fe)!==-1;(0,b.ZP)(!dt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ot=(0,rt.yx)(Qe),Ct={event:Q,node:(0,be.F)(ut),dragNode:z.dragNode?(0,be.F)(z.dragNode.props):null,dragNodesKeys:[z.dragNode.props.eventKey].concat(Pe),dropToGap:Ie!==0,dropPosition:Ie+Number(ot[ot.length-1])};Ae||Ye==null||Ye(Ct),z.dragNode=null}}},z.cleanDragState=function(){var Q=z.state.draggingNodeKey;Q!==null&&z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z.dragStartMousePosition=null,z.currentMouseOverDroppableNodeKey=null},z.triggerExpandActionExpand=function(Q,le){var ce=z.state,Ae=ce.expandedKeys,_e=ce.flattenNodes,Pe=le.expanded,Ie=le.key,Fe=le.isLeaf;if(!(Fe||Q.shiftKey||Q.metaKey||Q.ctrlKey)){var Qe=_e.filter(function(Ye){return Ye.key===Ie})[0],et=(0,be.F)((0,Ce.Z)((0,Ce.Z)({},(0,be.H8)(Ie,z.getTreeNodeRequiredProps())),{},{data:Qe.data}));z.setExpandedKeys(Pe?(0,rt._5)(Ae,Ie):(0,rt.L0)(Ae,Ie)),z.onNodeExpand(Q,et)}},z.onNodeClick=function(Q,le){var ce=z.props,Ae=ce.onClick,_e=ce.expandAction;_e==="click"&&z.triggerExpandActionExpand(Q,le),Ae==null||Ae(Q,le)},z.onNodeDoubleClick=function(Q,le){var ce=z.props,Ae=ce.onDoubleClick,_e=ce.expandAction;_e==="doubleClick"&&z.triggerExpandActionExpand(Q,le),Ae==null||Ae(Q,le)},z.onNodeSelect=function(Q,le){var ce=z.state.selectedKeys,Ae=z.state,_e=Ae.keyEntities,Pe=Ae.fieldNames,Ie=z.props,Fe=Ie.onSelect,Qe=Ie.multiple,et=le.selected,Ye=le[Pe.key],ut=!et;ut?Qe?ce=(0,rt.L0)(ce,Ye):ce=[Ye]:ce=(0,rt._5)(ce,Ye);var dt=ce.map(function(ot){var Ct=(0,Jt.Z)(_e,ot);return Ct?Ct.node:null}).filter(function(ot){return ot});z.setUncontrolledState({selectedKeys:ce}),Fe==null||Fe(ce,{event:"select",selected:ut,node:le,selectedNodes:dt,nativeEvent:Q.nativeEvent})},z.onNodeCheck=function(Q,le,ce){var Ae=z.state,_e=Ae.keyEntities,Pe=Ae.checkedKeys,Ie=Ae.halfCheckedKeys,Fe=z.props,Qe=Fe.checkStrictly,et=Fe.onCheck,Ye=le.key,ut,dt={event:"check",node:le,checked:ce,nativeEvent:Q.nativeEvent};if(Qe){var ot=ce?(0,rt.L0)(Pe,Ye):(0,rt._5)(Pe,Ye),Ct=(0,rt._5)(Ie,Ye);ut={checked:ot,halfChecked:Ct},dt.checkedNodes=ot.map(function(Oe){return(0,Jt.Z)(_e,Oe)}).filter(function(Oe){return Oe}).map(function(Oe){return Oe.node}),z.setUncontrolledState({checkedKeys:ot})}else{var Lt=(0,Vt.S)([].concat((0,j.Z)(Pe),[Ye]),!0,_e),w=Lt.checkedKeys,C=Lt.halfCheckedKeys;if(!ce){var lt=new Set(w);lt.delete(Ye);var ie=(0,Vt.S)(Array.from(lt),{checked:!1,halfCheckedKeys:C},_e);w=ie.checkedKeys,C=ie.halfCheckedKeys}ut=w,dt.checkedNodes=[],dt.checkedNodesPositions=[],dt.halfCheckedKeys=C,w.forEach(function(Oe){var mn=(0,Jt.Z)(_e,Oe);if(mn){var $e=mn.node,Ze=mn.pos;dt.checkedNodes.push($e),dt.checkedNodesPositions.push({node:$e,pos:Ze})}}),z.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:C})}et==null||et(ut,dt)},z.onNodeLoad=function(Q){var le=Q.key,ce=new Promise(function(Ae,_e){z.setState(function(Pe){var Ie=Pe.loadedKeys,Fe=Ie===void 0?[]:Ie,Qe=Pe.loadingKeys,et=Qe===void 0?[]:Qe,Ye=z.props,ut=Ye.loadData,dt=Ye.onLoad;if(!ut||Fe.indexOf(le)!==-1||et.indexOf(le)!==-1)return null;var ot=ut(Q);return ot.then(function(){var Ct=z.state.loadedKeys,Lt=(0,rt.L0)(Ct,le);dt==null||dt(Lt,{event:"load",node:Q}),z.setUncontrolledState({loadedKeys:Lt}),z.setState(function(w){return{loadingKeys:(0,rt._5)(w.loadingKeys,le)}}),Ae()}).catch(function(Ct){if(z.setState(function(w){return{loadingKeys:(0,rt._5)(w.loadingKeys,le)}}),z.loadingRetryTimes[le]=(z.loadingRetryTimes[le]||0)+1,z.loadingRetryTimes[le]>=on){var Lt=z.state.loadedKeys;(0,b.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),z.setUncontrolledState({loadedKeys:(0,rt.L0)(Lt,le)}),Ae()}_e(Ct)}),{loadingKeys:(0,rt.L0)(et,le)}})});return ce.catch(function(){}),ce},z.onNodeMouseEnter=function(Q,le){var ce=z.props.onMouseEnter;ce==null||ce({event:Q,node:le})},z.onNodeMouseLeave=function(Q,le){var ce=z.props.onMouseLeave;ce==null||ce({event:Q,node:le})},z.onNodeContextMenu=function(Q,le){var ce=z.props.onRightClick;ce&&(Q.preventDefault(),ce({event:Q,node:le}))},z.onFocus=function(){var Q=z.props.onFocus;z.setState({focused:!0});for(var le=arguments.length,ce=new Array(le),Ae=0;Ae<le;Ae++)ce[Ae]=arguments[Ae];Q==null||Q.apply(void 0,ce)},z.onBlur=function(){var Q=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null);for(var le=arguments.length,ce=new Array(le),Ae=0;Ae<le;Ae++)ce[Ae]=arguments[Ae];Q==null||Q.apply(void 0,ce)},z.getTreeNodeRequiredProps=function(){var Q=z.state,le=Q.expandedKeys,ce=Q.selectedKeys,Ae=Q.loadedKeys,_e=Q.loadingKeys,Pe=Q.checkedKeys,Ie=Q.halfCheckedKeys,Fe=Q.dragOverNodeKey,Qe=Q.dropPosition,et=Q.keyEntities;return{expandedKeys:le||[],selectedKeys:ce||[],loadedKeys:Ae||[],loadingKeys:_e||[],checkedKeys:Pe||[],halfCheckedKeys:Ie||[],dragOverNodeKey:Fe,dropPosition:Qe,keyEntities:et}},z.setExpandedKeys=function(Q){var le=z.state,ce=le.treeData,Ae=le.fieldNames,_e=(0,be.oH)(ce,Q,Ae);z.setUncontrolledState({expandedKeys:Q,flattenNodes:_e},!0)},z.onNodeExpand=function(Q,le){var ce=z.state.expandedKeys,Ae=z.state,_e=Ae.listChanging,Pe=Ae.fieldNames,Ie=z.props,Fe=Ie.onExpand,Qe=Ie.loadData,et=le.expanded,Ye=le[Pe.key];if(!_e){var ut=ce.indexOf(Ye),dt=!et;if((0,b.ZP)(et&&ut!==-1||!et&&ut===-1,"Expand state not sync with index check"),dt?ce=(0,rt.L0)(ce,Ye):ce=(0,rt._5)(ce,Ye),z.setExpandedKeys(ce),Fe==null||Fe(ce,{node:le,expanded:dt,nativeEvent:Q.nativeEvent}),dt&&Qe){var ot=z.onNodeLoad(le);ot&&ot.then(function(){var Ct=(0,be.oH)(z.state.treeData,ce,Pe);z.setUncontrolledState({flattenNodes:Ct})}).catch(function(){var Ct=z.state.expandedKeys,Lt=(0,rt._5)(Ct,Ye);z.setExpandedKeys(Lt)})}}},z.onListChangeStart=function(){z.setUncontrolledState({listChanging:!0})},z.onListChangeEnd=function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})},z.onActiveChange=function(Q){var le=z.state.activeKey,ce=z.props.onActiveChange;le!==Q&&(z.setState({activeKey:Q}),Q!==null&&z.scrollTo({key:Q}),ce==null||ce(Q))},z.getActiveItem=function(){var Q=z.state,le=Q.activeKey,ce=Q.flattenNodes;return le===null?null:ce.find(function(Ae){var _e=Ae.key;return _e===le})||null},z.offsetActiveKey=function(Q){var le=z.state,ce=le.flattenNodes,Ae=le.activeKey,_e=ce.findIndex(function(Fe){var Qe=Fe.key;return Qe===Ae});_e===-1&&Q<0&&(_e=ce.length),_e=(_e+Q+ce.length)%ce.length;var Pe=ce[_e];if(Pe){var Ie=Pe.key;z.onActiveChange(Ie)}else z.onActiveChange(null)},z.onKeyDown=function(Q){var le=z.state,ce=le.activeKey,Ae=le.expandedKeys,_e=le.checkedKeys,Pe=le.fieldNames,Ie=z.props,Fe=Ie.onKeyDown,Qe=Ie.checkable,et=Ie.selectable;switch(Q.which){case u.Z.UP:{z.offsetActiveKey(-1),Q.preventDefault();break}case u.Z.DOWN:{z.offsetActiveKey(1),Q.preventDefault();break}}var Ye=z.getActiveItem();if(Ye&&Ye.data){var ut=z.getTreeNodeRequiredProps(),dt=Ye.data.isLeaf===!1||!!(Ye.data[Pe.children]||[]).length,ot=(0,be.F)((0,Ce.Z)((0,Ce.Z)({},(0,be.H8)(ce,ut)),{},{data:Ye.data,active:!0}));switch(Q.which){case u.Z.LEFT:{dt&&Ae.includes(ce)?z.onNodeExpand({},ot):Ye.parent&&z.onActiveChange(Ye.parent.key),Q.preventDefault();break}case u.Z.RIGHT:{dt&&!Ae.includes(ce)?z.onNodeExpand({},ot):Ye.children&&Ye.children.length&&z.onActiveChange(Ye.children[0].key),Q.preventDefault();break}case u.Z.ENTER:case u.Z.SPACE:{Qe&&!ot.disabled&&ot.checkable!==!1&&!ot.disableCheckbox?z.onNodeCheck({},ot,!_e.includes(ce)):!Qe&&et&&!ot.disabled&&ot.selectable!==!1&&z.onNodeSelect({},ot);break}}}Fe==null||Fe(Q)},z.setUncontrolledState=function(Q){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!z.destroyed){var Ae=!1,_e=!0,Pe={};Object.keys(Q).forEach(function(Ie){if(Ie in z.props){_e=!1;return}Ae=!0,Pe[Ie]=Q[Ie]}),Ae&&(!le||_e)&&z.setState((0,Ce.Z)((0,Ce.Z)({},Pe),ce))}},z.scrollTo=function(Q){z.listRef.current.scrollTo(Q)},z}return(0,ve.Z)(ne,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var De=this.props.activeKey;De!==void 0&&De!==this.state.activeKey&&(this.setState({activeKey:De}),De!==null&&this.scrollTo({key:De}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var De,O=this.state,oe=O.focused,Q=O.flattenNodes,le=O.keyEntities,ce=O.draggingNodeKey,Ae=O.activeKey,_e=O.dropLevelOffset,Pe=O.dropContainerKey,Ie=O.dropTargetKey,Fe=O.dropPosition,Qe=O.dragOverNodeKey,et=O.indent,Ye=this.props,ut=Ye.prefixCls,dt=Ye.className,ot=Ye.style,Ct=Ye.showLine,Lt=Ye.focusable,w=Ye.tabIndex,C=w===void 0?0:w,lt=Ye.selectable,ie=Ye.showIcon,Oe=Ye.icon,mn=Ye.switcherIcon,$e=Ye.draggable,Ze=Ye.checkable,tt=Ye.checkStrictly,ue=Ye.disabled,V=Ye.motion,we=Ye.loadData,Ne=Ye.filterTreeNode,H=Ye.height,it=Ye.itemHeight,Ee=Ye.virtual,Tt=Ye.titleRender,Mt=Ye.dropIndicatorRender,Ut=Ye.onContextMenu,dn=Ye.onScroll,wt=Ye.direction,Yt=Ye.rootClassName,Ue=Ye.rootStyle,mt=(0,y.Z)(this.props,{aria:!0,data:!0}),xt;return $e&&((0,de.Z)($e)==="object"?xt=$e:typeof $e=="function"?xt={nodeDraggable:$e}:xt={}),k.createElement(ae.k.Provider,{value:{prefixCls:ut,selectable:lt,showIcon:ie,icon:Oe,switcherIcon:mn,draggable:xt,draggingNodeKey:ce,checkable:Ze,checkStrictly:tt,disabled:ue,keyEntities:le,dropLevelOffset:_e,dropContainerKey:Pe,dropTargetKey:Ie,dropPosition:Fe,dragOverNodeKey:Qe,indent:et,direction:wt,dropIndicatorRender:Mt,loadData:we,filterTreeNode:Ne,titleRender:Tt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},k.createElement("div",{role:"tree",className:v()(ut,dt,Yt,(De={},(0,Y.Z)(De,"".concat(ut,"-show-line"),Ct),(0,Y.Z)(De,"".concat(ut,"-focused"),oe),(0,Y.Z)(De,"".concat(ut,"-active-focused"),Ae!==null),De)),style:Ue},k.createElement(ht,(0,M.Z)({ref:this.listRef,prefixCls:ut,style:ot,data:Q,disabled:ue,selectable:lt,checkable:!!Ze,motion:V,dragging:ce!==null,height:H,itemHeight:it,virtual:Ee,focusable:Lt,focused:oe,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ut,onScroll:dn},this.getTreeNodeRequiredProps(),mt))))}}],[{key:"getDerivedStateFromProps",value:function(De,O){var oe=O.prevProps,Q={prevProps:De};function le(Lt){return!oe&&Lt in De||oe&&oe[Lt]!==De[Lt]}var ce,Ae=O.fieldNames;if(le("fieldNames")&&(Ae=(0,be.w$)(De.fieldNames),Q.fieldNames=Ae),le("treeData")?ce=De.treeData:le("children")&&((0,b.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ce=(0,be.zn)(De.children)),ce){Q.treeData=ce;var _e=(0,be.I8)(ce,{fieldNames:Ae});Q.keyEntities=(0,Ce.Z)((0,Y.Z)({},E,pe),_e.keyEntities)}var Pe=Q.keyEntities||O.keyEntities;if(le("expandedKeys")||oe&&le("autoExpandParent"))Q.expandedKeys=De.autoExpandParent||!oe&&De.defaultExpandParent?(0,rt.r7)(De.expandedKeys,Pe):De.expandedKeys;else if(!oe&&De.defaultExpandAll){var Ie=(0,Ce.Z)({},Pe);delete Ie[E],Q.expandedKeys=Object.keys(Ie).map(function(Lt){return Ie[Lt].key})}else!oe&&De.defaultExpandedKeys&&(Q.expandedKeys=De.autoExpandParent||De.defaultExpandParent?(0,rt.r7)(De.defaultExpandedKeys,Pe):De.defaultExpandedKeys);if(Q.expandedKeys||delete Q.expandedKeys,ce||Q.expandedKeys){var Fe=(0,be.oH)(ce||O.treeData,Q.expandedKeys||O.expandedKeys,Ae);Q.flattenNodes=Fe}if(De.selectable&&(le("selectedKeys")?Q.selectedKeys=(0,rt.BT)(De.selectedKeys,De):!oe&&De.defaultSelectedKeys&&(Q.selectedKeys=(0,rt.BT)(De.defaultSelectedKeys,De))),De.checkable){var Qe;if(le("checkedKeys")?Qe=(0,rt.E6)(De.checkedKeys)||{}:!oe&&De.defaultCheckedKeys?Qe=(0,rt.E6)(De.defaultCheckedKeys)||{}:ce&&(Qe=(0,rt.E6)(De.checkedKeys)||{checkedKeys:O.checkedKeys,halfCheckedKeys:O.halfCheckedKeys}),Qe){var et=Qe,Ye=et.checkedKeys,ut=Ye===void 0?[]:Ye,dt=et.halfCheckedKeys,ot=dt===void 0?[]:dt;if(!De.checkStrictly){var Ct=(0,Vt.S)(ut,!0,Pe);ut=Ct.checkedKeys,ot=Ct.halfCheckedKeys}Q.checkedKeys=ut,Q.halfCheckedKeys=ot}}return le("loadedKeys")&&(Q.loadedKeys=De.loadedKeys),Q}}]),ne}(k.Component);Kt.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:P,allowDrop:function(){return!0},expandAction:!1},Kt.TreeNode=F.Z;var at=Kt,Et=at},35654:function(qt,qe,p){"use strict";p.d(qe,{BT:function(){return k},E6:function(){return N},L0:function(){return A},OM:function(){return b},_5:function(){return s},r7:function(){return G},wA:function(){return v},yx:function(){return L}});var M=p(19127),Y=p(20135),de=p(48736),Ce=p(59301),j=p(39417),X=p(67841),ve=p(71430),xe=null;function s(U,x){if(!U)return[];var T=U.slice(),B=T.indexOf(x);return B>=0&&T.splice(B,1),T}function A(U,x){var T=(U||[]).slice();return T.indexOf(x)===-1&&T.push(x),T}function L(U){return U.split("-")}function v(U,x){var T=[],B=(0,X.Z)(x,U);function F(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];fe.forEach(function(be){var Re=be.key,he=be.children;T.push(Re),F(he)})}return F(B.children),T}function u(U){if(U.parent){var x=L(U.pos);return Number(x[x.length-1])===U.parent.children.length-1}return!1}function y(U){var x=L(U.pos);return Number(x[x.length-1])===0}function b(U,x,T,B,F,fe,be,Re,he,W){var $,se=U.clientX,D=U.clientY,J=U.target.getBoundingClientRect(),K=J.top,g=J.height,E=(W==="rtl"?-1:1)*(((F==null?void 0:F.x)||0)-se),Z=(E-12)/B,pe=(0,X.Z)(Re,T.props.eventKey);if(D<K+g/2){var ze=be.findIndex(function(Et){return Et.key===pe.key}),We=ze<=0?0:ze-1,je=be[We].key;pe=(0,X.Z)(Re,je)}var Ge=pe.key,pt=pe,ht=pe.key,rt=0,Vt=0;if(!he.includes(Ge))for(var Jt=0;Jt<Z&&u(pe);Jt+=1)pe=pe.parent,Vt+=1;var on=x.props.data,Kt=pe.node,at=!0;return y(pe)&&pe.level===0&&D<K+g/2&&fe({dragNode:on,dropNode:Kt,dropPosition:-1})&&pe.key===T.props.eventKey?rt=-1:(pt.children||[]).length&&he.includes(ht)?fe({dragNode:on,dropNode:Kt,dropPosition:0})?rt=0:at=!1:Vt===0?Z>-1.5?fe({dragNode:on,dropNode:Kt,dropPosition:1})?rt=1:at=!1:fe({dragNode:on,dropNode:Kt,dropPosition:0})?rt=0:fe({dragNode:on,dropNode:Kt,dropPosition:1})?rt=1:at=!1:fe({dragNode:on,dropNode:Kt,dropPosition:1})?rt=1:at=!1,{dropPosition:rt,dropLevelOffset:Vt,dropTargetKey:pe.key,dropTargetPos:pe.pos,dragOverNodeKey:ht,dropContainerKey:rt===0?null:(($=pe.parent)===null||$===void 0?void 0:$.key)||null,dropAllowed:at}}function k(U,x){if(U){var T=x.multiple;return T?U.slice():U.length?[U[0]]:U}}var ae=function(x){return x};function P(U,x){if(!U)return[];var T=x||{},B=T.processProps,F=B===void 0?ae:B,fe=Array.isArray(U)?U:[U];return fe.map(function(be){var Re=be.children,he=_objectWithoutProperties(be,xe),W=P(Re,x);return React.createElement(TreeNode,_extends({key:he.key},F(he)),W)})}function N(U){if(!U)return null;var x;if(Array.isArray(U))x={checkedKeys:U,halfCheckedKeys:void 0};else if((0,Y.Z)(U)==="object")x={checkedKeys:U.checked||void 0,halfCheckedKeys:U.halfChecked||void 0};else return(0,de.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return x}function G(U,x){var T=new Set;function B(F){if(!T.has(F)){var fe=(0,X.Z)(x,F);if(fe){T.add(F);var be=fe.parent,Re=fe.node;Re.disabled||be&&B(be.key)}}}return(U||[]).forEach(function(F){B(F)}),(0,M.Z)(T)}},90782:function(qt,qe,p){"use strict";p.d(qe,{S:function(){return ve}});var M=p(48736),Y=p(67841);function de(xe,s){var A=new Set;return xe.forEach(function(L){s.has(L)||A.add(L)}),A}function Ce(xe){var s=xe||{},A=s.disabled,L=s.disableCheckbox,v=s.checkable;return!!(A||L)||v===!1}function j(xe,s,A,L){for(var v=new Set(xe),u=new Set,y=0;y<=A;y+=1){var b=s.get(y)||new Set;b.forEach(function(N){var G=N.key,U=N.node,x=N.children,T=x===void 0?[]:x;v.has(G)&&!L(U)&&T.filter(function(B){return!L(B.node)}).forEach(function(B){v.add(B.key)})})}for(var k=new Set,ae=A;ae>=0;ae-=1){var P=s.get(ae)||new Set;P.forEach(function(N){var G=N.parent,U=N.node;if(!(L(U)||!N.parent||k.has(N.parent.key))){if(L(N.parent.node)){k.add(G.key);return}var x=!0,T=!1;(G.children||[]).filter(function(B){return!L(B.node)}).forEach(function(B){var F=B.key,fe=v.has(F);x&&!fe&&(x=!1),!T&&(fe||u.has(F))&&(T=!0)}),x&&v.add(G.key),T&&u.add(G.key),k.add(G.key)}})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(de(u,v))}}function X(xe,s,A,L,v){for(var u=new Set(xe),y=new Set(s),b=0;b<=L;b+=1){var k=A.get(b)||new Set;k.forEach(function(G){var U=G.key,x=G.node,T=G.children,B=T===void 0?[]:T;!u.has(U)&&!y.has(U)&&!v(x)&&B.filter(function(F){return!v(F.node)}).forEach(function(F){u.delete(F.key)})})}y=new Set;for(var ae=new Set,P=L;P>=0;P-=1){var N=A.get(P)||new Set;N.forEach(function(G){var U=G.parent,x=G.node;if(!(v(x)||!G.parent||ae.has(G.parent.key))){if(v(G.parent.node)){ae.add(U.key);return}var T=!0,B=!1;(U.children||[]).filter(function(F){return!v(F.node)}).forEach(function(F){var fe=F.key,be=u.has(fe);T&&!be&&(T=!1),!B&&(be||y.has(fe))&&(B=!0)}),T||u.delete(U.key),B&&y.add(U.key),ae.add(U.key)}})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(de(y,u))}}function ve(xe,s,A,L){var v=[],u;L?u=L:u=Ce;var y=new Set(xe.filter(function(P){var N=!!(0,Y.Z)(A,P);return N||v.push(P),N})),b=new Map,k=0;Object.keys(A).forEach(function(P){var N=A[P],G=N.level,U=b.get(G);U||(U=new Set,b.set(G,U)),U.add(N),k=Math.max(k,G)}),(0,M.ZP)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var ae;return s===!0?ae=j(y,b,k,u):ae=X(y,s.halfCheckedKeys,b,k,u),ae}},67841:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return M}});function M(Y,de){return Y[de]}},71430:function(qt,qe,p){"use strict";p.d(qe,{F:function(){return G},H8:function(){return N},I8:function(){return P},km:function(){return v},oH:function(){return k},w$:function(){return u},zn:function(){return b}});var M=p(20135),Y=p(19127),de=p(44127),Ce=p(6620),j=p(11592),X=p(2738),ve=p(48736),xe=p(67841),s=["children"];function A(U,x){return"".concat(U,"-").concat(x)}function L(U){return U&&U.type&&U.type.isTreeNode}function v(U,x){return U!=null?U:x}function u(U){var x=U||{},T=x.title,B=x._title,F=x.key,fe=x.children,be=T||"title";return{title:be,_title:B||[be],key:F||"key",children:fe||"children"}}function y(U,x){var T=new Map;function B(F){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(F||[]).forEach(function(be){var Re=be[x.key],he=be[x.children];warning(Re!=null,"Tree node must have a certain key: [".concat(fe).concat(Re,"]"));var W=String(Re);warning(!T.has(W)||Re===null||Re===void 0,"Same 'key' exist in the Tree: ".concat(W)),T.set(W,!0),B(he,"".concat(fe).concat(W," > "))})}B(U)}function b(U){function x(T){var B=(0,j.Z)(T);return B.map(function(F){if(!L(F))return(0,ve.ZP)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=F.key,be=F.props,Re=be.children,he=(0,Ce.Z)(be,s),W=(0,de.Z)({key:fe},he),$=x(Re);return $.length&&(W.children=$),W}).filter(function(F){return F})}return x(U)}function k(U,x,T){var B=u(T),F=B._title,fe=B.key,be=B.children,Re=new Set(x===!0?[]:x),he=[];function W($){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return $.map(function(D,J){for(var K=A(se?se.pos:"0",J),g=v(D[fe],K),E,Z=0;Z<F.length;Z+=1){var pe=F[Z];if(D[pe]!==void 0){E=D[pe];break}}var ze=(0,de.Z)((0,de.Z)({},(0,X.Z)(D,[].concat((0,Y.Z)(F),[fe,be]))),{},{title:E,key:g,parent:se,pos:K,children:null,data:D,isStart:[].concat((0,Y.Z)(se?se.isStart:[]),[J===0]),isEnd:[].concat((0,Y.Z)(se?se.isEnd:[]),[J===$.length-1])});return he.push(ze),x===!0||Re.has(g)?ze.children=W(D[be]||[],ze):ze.children=[],ze})}return W(U),he}function ae(U,x,T){var B={};(0,M.Z)(T)==="object"?B=T:B={externalGetKey:T},B=B||{};var F=B,fe=F.childrenPropName,be=F.externalGetKey,Re=F.fieldNames,he=u(Re),W=he.key,$=he.children,se=fe||$,D;be?typeof be=="string"?D=function(g){return g[be]}:typeof be=="function"&&(D=function(g){return be(g)}):D=function(g,E){return v(g[W],E)};function J(K,g,E,Z){var pe=K?K[se]:U,ze=K?A(E.pos,g):"0",We=K?[].concat((0,Y.Z)(Z),[K]):[];if(K){var je=D(K,ze),Ge={node:K,index:g,pos:ze,key:je,parentPos:E.node?E.pos:null,level:E.level+1,nodes:We};x(Ge)}pe&&pe.forEach(function(pt,ht){J(pt,ht,{node:K,pos:ze,level:E?E.level+1:-1},We)})}J(null)}function P(U){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=x.initWrapper,B=x.processEntity,F=x.onProcessFinished,fe=x.externalGetKey,be=x.childrenPropName,Re=x.fieldNames,he=arguments.length>2?arguments[2]:void 0,W=fe||he,$={},se={},D={posEntities:$,keyEntities:se};return T&&(D=T(D)||D),ae(U,function(J){var K=J.node,g=J.index,E=J.pos,Z=J.key,pe=J.parentPos,ze=J.level,We=J.nodes,je={node:K,nodes:We,index:g,key:Z,pos:E,level:ze},Ge=v(Z,E);$[E]=je,se[Ge]=je,je.parent=$[pe],je.parent&&(je.parent.children=je.parent.children||[],je.parent.children.push(je)),B&&B(je,D)},{externalGetKey:W,childrenPropName:be,fieldNames:Re}),F&&F(D),D}function N(U,x){var T=x.expandedKeys,B=x.selectedKeys,F=x.loadedKeys,fe=x.loadingKeys,be=x.checkedKeys,Re=x.halfCheckedKeys,he=x.dragOverNodeKey,W=x.dropPosition,$=x.keyEntities,se=(0,xe.Z)($,U),D={eventKey:U,expanded:T.indexOf(U)!==-1,selected:B.indexOf(U)!==-1,loaded:F.indexOf(U)!==-1,loading:fe.indexOf(U)!==-1,checked:be.indexOf(U)!==-1,halfChecked:Re.indexOf(U)!==-1,pos:String(se?se.pos:""),dragOver:he===U&&W===0,dragOverGapTop:he===U&&W===-1,dragOverGapBottom:he===U&&W===1};return D}function G(U){var x=U.data,T=U.expanded,B=U.selected,F=U.checked,fe=U.loaded,be=U.loading,Re=U.halfChecked,he=U.dragOver,W=U.dragOverGapTop,$=U.dragOverGapBottom,se=U.pos,D=U.active,J=U.eventKey,K=(0,de.Z)((0,de.Z)({},x),{},{expanded:T,selected:B,checked:F,loaded:fe,loading:be,halfChecked:Re,dragOver:he,dragOverGapTop:W,dragOverGapBottom:$,pos:se,active:D,key:J});return"props"in K||Object.defineProperty(K,"props",{get:function(){return(0,ve.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),K}},49658:function(qt,qe){"use strict";qe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var p=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(p)||/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(p==null?void 0:p.substr(0,4))}},24916:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return Kt}});var M=p(96663),Y=p(20135),de=p(44127),Ce=p(90493),j=p(72071),X=p(6620),ve=p(92310),xe=p.n(ve),s=p(29301),A=p(70425),L=p(34280),v=p(59301),u=p(4676),y=v.forwardRef(function(at,Et){var q=at.height,ge=at.offsetY,ne=at.offsetX,z=at.children,De=at.prefixCls,O=at.onInnerResize,oe=at.innerProps,Q=at.rtl,le=at.extra,ce={},Ae={display:"flex",flexDirection:"column"};return ge!==void 0&&(ce={height:q,position:"relative",overflow:"hidden"},Ae=(0,de.Z)((0,de.Z)({},Ae),{},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({transform:"translateY(".concat(ge,"px)")},Q?"marginRight":"marginLeft",-ne),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:ce},v.createElement(s.Z,{onResize:function(Pe){var Ie=Pe.offsetHeight;Ie&&O&&O()}},v.createElement("div",(0,M.Z)({style:Ae,className:xe()((0,Ce.Z)({},"".concat(De,"-holder-inner"),De)),ref:Et},oe),z,le)))});y.displayName="Filler";var b=y;function k(at){var Et=at.children,q=at.setRef,ge=v.useCallback(function(ne){q(ne)},[]);return v.cloneElement(Et,{ref:ge})}function ae(at,Et,q,ge,ne,z,De,O){var oe=O.getKey;return at.slice(Et,q+1).map(function(Q,le){var ce=Et+le,Ae=De(Q,ce,{style:{width:ge},offsetX:ne}),_e=oe(Q);return v.createElement(k,{key:_e,setRef:function(Ie){return z(Q,Ie)}},Ae)})}function P(at,Et,q,ge){var ne=q-at,z=Et-q,De=Math.min(ne,z)*2;if(ge<=De){var O=Math.floor(ge/2);return ge%2?q+O+1:q-O}return ne>z?q-(ge-z):q+(ge-ne)}function N(at,Et,q){var ge=at.length,ne=Et.length,z,De;if(ge===0&&ne===0)return null;ge<ne?(z=at,De=Et):(z=Et,De=at);var O={__EMPTY_ITEM__:!0};function oe(Pe){return Pe!==void 0?q(Pe):O}for(var Q=null,le=Math.abs(ge-ne)!==1,ce=0;ce<De.length;ce+=1){var Ae=oe(z[ce]),_e=oe(De[ce]);if(Ae!==_e){Q=ce,le=le||Ae!==oe(De[ce+1]);break}}return Q===null?null:{index:Q,multiple:le}}function G(at,Et,q){var ge=v.useState(at),ne=(0,j.Z)(ge,2),z=ne[0],De=ne[1],O=v.useState(null),oe=(0,j.Z)(O,2),Q=oe[0],le=oe[1];return v.useEffect(function(){var ce=N(z||[],at||[],Et);(ce==null?void 0:ce.index)!==void 0&&(q==null||q(ce.index),le(at[ce.index])),De(at)},[at]),[Q]}var U=p(16089),x=(typeof navigator=="undefined"?"undefined":(0,Y.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T=x,B=function(at,Et,q,ge){var ne=(0,v.useRef)(!1),z=(0,v.useRef)(null);function De(){clearTimeout(z.current),ne.current=!0,z.current=setTimeout(function(){ne.current=!1},50)}var O=(0,v.useRef)({top:at,bottom:Et,left:q,right:ge});return O.current.top=at,O.current.bottom=Et,O.current.left=q,O.current.right=ge,function(oe,Q){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=oe?Q<0&&O.current.left||Q>0&&O.current.right:Q<0&&O.current.top||Q>0&&O.current.bottom;return le&&ce?(clearTimeout(z.current),ne.current=!1):(!ce||ne.current)&&De(),!ne.current&&ce}};function F(at,Et,q,ge,ne,z,De){var O=(0,v.useRef)(0),oe=(0,v.useRef)(null),Q=(0,v.useRef)(null),le=(0,v.useRef)(!1),ce=B(Et,q,ge,ne);function Ae(et,Ye){if(U.Z.cancel(oe.current),!ce(!1,Ye)){var ut=et;if(!ut._virtualHandled)ut._virtualHandled=!0;else return;O.current+=Ye,Q.current=Ye,T||ut.preventDefault(),oe.current=(0,U.Z)(function(){var dt=le.current?10:1;De(O.current*dt,!1),O.current=0})}}function _e(et,Ye){De(Ye,!0),T||et.preventDefault()}var Pe=(0,v.useRef)(null),Ie=(0,v.useRef)(null);function Fe(et){if(at){U.Z.cancel(Ie.current),Ie.current=(0,U.Z)(function(){Pe.current=null},2);var Ye=et.deltaX,ut=et.deltaY,dt=et.shiftKey,ot=Ye,Ct=ut;(Pe.current==="sx"||!Pe.current&&dt&&ut&&!Ye)&&(ot=ut,Ct=0,Pe.current="sx");var Lt=Math.abs(ot),w=Math.abs(Ct);Pe.current===null&&(Pe.current=z&&Lt>w?"x":"y"),Pe.current==="y"?Ae(et,Ct):_e(et,ot)}}function Qe(et){at&&(le.current=et.detail===Q.current)}return[Fe,Qe]}function fe(at,Et,q,ge){var ne=v.useMemo(function(){return[new Map,[]]},[at,q.id,ge]),z=(0,j.Z)(ne,2),De=z[0],O=z[1],oe=function(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,Ae=De.get(le),_e=De.get(ce);if(Ae===void 0||_e===void 0)for(var Pe=at.length,Ie=O.length;Ie<Pe;Ie+=1){var Fe,Qe=at[Ie],et=Et(Qe);De.set(et,Ie);var Ye=(Fe=q.get(et))!==null&&Fe!==void 0?Fe:ge;if(O[Ie]=(O[Ie-1]||0)+Ye,et===le&&(Ae=Ie),et===ce&&(_e=Ie),Ae!==void 0&&_e!==void 0)break}return{top:O[Ae-1]||0,bottom:O[_e]}};return oe}var be=p(52884),Re=p(95727),he=function(){function at(){(0,be.Z)(this,at),(0,Ce.Z)(this,"maps",void 0),(0,Ce.Z)(this,"id",0),(0,Ce.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Re.Z)(at,[{key:"set",value:function(q,ge){this.maps[q]=ge,this.id+=1,this.diffKeys.add(q)}},{key:"get",value:function(q){return this.maps[q]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),at}(),W=he;function $(at){var Et=parseFloat(at);return isNaN(Et)?0:Et}function se(at,Et,q){var ge=v.useState(0),ne=(0,j.Z)(ge,2),z=ne[0],De=ne[1],O=(0,v.useRef)(new Map),oe=(0,v.useRef)(new W),Q=(0,v.useRef)(0);function le(){Q.current+=1}function ce(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;le();var Pe=function(){var Qe=!1;O.current.forEach(function(et,Ye){if(et&&et.offsetParent){var ut=et.offsetHeight,dt=getComputedStyle(et),ot=dt.marginTop,Ct=dt.marginBottom,Lt=$(ot),w=$(Ct),C=ut+Lt+w;oe.current.get(Ye)!==C&&(oe.current.set(Ye,C),Qe=!0)}}),Qe&&De(function(et){return et+1})};if(_e)Pe();else{Q.current+=1;var Ie=Q.current;Promise.resolve().then(function(){Ie===Q.current&&Pe()})}}function Ae(_e,Pe){var Ie=at(_e),Fe=O.current.get(Ie);Pe?(O.current.set(Ie,Pe),ce()):O.current.delete(Ie),!Fe!=!Pe&&(Pe?Et==null||Et(_e):q==null||q(_e))}return(0,v.useEffect)(function(){return le},[]),[Ae,ce,oe.current,z]}var D=14/15;function J(at,Et,q){var ge=(0,v.useRef)(!1),ne=(0,v.useRef)(0),z=(0,v.useRef)(0),De=(0,v.useRef)(null),O=(0,v.useRef)(null),oe,Q=function(_e){if(ge.current){var Pe=Math.ceil(_e.touches[0].pageX),Ie=Math.ceil(_e.touches[0].pageY),Fe=ne.current-Pe,Qe=z.current-Ie,et=Math.abs(Fe)>Math.abs(Qe);et?ne.current=Pe:z.current=Ie;var Ye=q(et,et?Fe:Qe,!1,_e);Ye&&_e.preventDefault(),clearInterval(O.current),Ye&&(O.current=setInterval(function(){et?Fe*=D:Qe*=D;var ut=Math.floor(et?Fe:Qe);(!q(et,ut,!0)||Math.abs(ut)<=.1)&&clearInterval(O.current)},16))}},le=function(){ge.current=!1,oe()},ce=function(_e){oe(),_e.touches.length===1&&!ge.current&&(ge.current=!0,ne.current=Math.ceil(_e.touches[0].pageX),z.current=Math.ceil(_e.touches[0].pageY),De.current=_e.target,De.current.addEventListener("touchmove",Q,{passive:!1}),De.current.addEventListener("touchend",le,{passive:!0}))};oe=function(){De.current&&(De.current.removeEventListener("touchmove",Q),De.current.removeEventListener("touchend",le))},(0,L.Z)(function(){return at&&Et.current.addEventListener("touchstart",ce,{passive:!0}),function(){var Ae;(Ae=Et.current)===null||Ae===void 0||Ae.removeEventListener("touchstart",ce),oe(),clearInterval(O.current)}},[at])}function K(at){return Math.floor(Math.pow(at,.5))}function g(at,Et){var q="touches"in at?at.touches[0]:at;return q[Et?"pageX":"pageY"]-window[Et?"scrollX":"scrollY"]}function E(at,Et,q){v.useEffect(function(){var ge=Et.current;if(at&&ge){var ne=!1,z,De,O=function(){U.Z.cancel(z)},oe=function Ae(){O(),z=(0,U.Z)(function(){q(De),Ae()})},Q=function(_e){if(!_e.target.draggable){var Pe=_e;Pe._virtualHandled||(Pe._virtualHandled=!0,ne=!0)}},le=function(){ne=!1,O()},ce=function(_e){if(ne){var Pe=g(_e,!1),Ie=ge.getBoundingClientRect(),Fe=Ie.top,Qe=Ie.bottom;if(Pe<=Fe){var et=Fe-Pe;De=-K(et),oe()}else if(Pe>=Qe){var Ye=Pe-Qe;De=K(Ye),oe()}else O()}};return ge.addEventListener("mousedown",Q),ge.ownerDocument.addEventListener("mouseup",le),ge.ownerDocument.addEventListener("mousemove",ce),function(){ge.removeEventListener("mousedown",Q),ge.ownerDocument.removeEventListener("mouseup",le),ge.ownerDocument.removeEventListener("mousemove",ce),O()}}},[at])}var Z=10;function pe(at,Et,q,ge,ne,z,De,O){var oe=v.useRef(),Q=v.useState(null),le=(0,j.Z)(Q,2),ce=le[0],Ae=le[1];return(0,L.Z)(function(){if(ce&&ce.times<Z){if(!at.current){Ae(function(V){return(0,de.Z)({},V)});return}z();var _e=ce.targetAlign,Pe=ce.originAlign,Ie=ce.index,Fe=ce.offset,Qe=at.current.clientHeight,et=!1,Ye=_e,ut=null;if(Qe){for(var dt=_e||Pe,ot=0,Ct=0,Lt=0,w=Math.min(Et.length-1,Ie),C=0;C<=w;C+=1){var lt=ne(Et[C]);Ct=ot;var ie=q.get(lt);Lt=Ct+(ie===void 0?ge:ie),ot=Lt}for(var Oe=dt==="top"?Fe:Qe-Fe,mn=w;mn>=0;mn-=1){var $e=ne(Et[mn]),Ze=q.get($e);if(Ze===void 0){et=!0;break}if(Oe-=Ze,Oe<=0)break}switch(dt){case"top":ut=Ct-Fe;break;case"bottom":ut=Lt-Qe+Fe;break;default:{var tt=at.current.scrollTop,ue=tt+Qe;Ct<tt?Ye="top":Lt>ue&&(Ye="bottom")}}ut!==null&&De(ut),ut!==ce.lastTop&&(et=!0)}et&&Ae((0,de.Z)((0,de.Z)({},ce),{},{times:ce.times+1,targetAlign:Ye,lastTop:ut}))}},[ce,at.current]),function(_e){if(_e==null){O();return}if(U.Z.cancel(oe.current),typeof _e=="number")De(_e);else if(_e&&(0,Y.Z)(_e)==="object"){var Pe,Ie=_e.align;"index"in _e?Pe=_e.index:Pe=Et.findIndex(function(et){return ne(et)===_e.key});var Fe=_e.offset,Qe=Fe===void 0?0:Fe;Ae({times:0,index:Pe,offset:Qe,originAlign:Ie})}}}var ze=v.forwardRef(function(at,Et){var q=at.prefixCls,ge=at.rtl,ne=at.scrollOffset,z=at.scrollRange,De=at.onStartMove,O=at.onStopMove,oe=at.onScroll,Q=at.horizontal,le=at.spinSize,ce=at.containerSize,Ae=at.style,_e=at.thumbStyle,Pe=at.showScrollBar,Ie=v.useState(!1),Fe=(0,j.Z)(Ie,2),Qe=Fe[0],et=Fe[1],Ye=v.useState(null),ut=(0,j.Z)(Ye,2),dt=ut[0],ot=ut[1],Ct=v.useState(null),Lt=(0,j.Z)(Ct,2),w=Lt[0],C=Lt[1],lt=!ge,ie=v.useRef(),Oe=v.useRef(),mn=v.useState(Pe),$e=(0,j.Z)(mn,2),Ze=$e[0],tt=$e[1],ue=v.useRef(),V=function(){Pe===!0||Pe===!1||(clearTimeout(ue.current),tt(!0),ue.current=setTimeout(function(){tt(!1)},3e3))},we=z-ce||0,Ne=ce-le||0,H=v.useMemo(function(){if(ne===0||we===0)return 0;var Ue=ne/we;return Ue*Ne},[ne,we,Ne]),it=function(mt){mt.stopPropagation(),mt.preventDefault()},Ee=v.useRef({top:H,dragging:Qe,pageY:dt,startTop:w});Ee.current={top:H,dragging:Qe,pageY:dt,startTop:w};var Tt=function(mt){et(!0),ot(g(mt,Q)),C(Ee.current.top),De(),mt.stopPropagation(),mt.preventDefault()};v.useEffect(function(){var Ue=function(Te){Te.preventDefault()},mt=ie.current,xt=Oe.current;return mt.addEventListener("touchstart",Ue,{passive:!1}),xt.addEventListener("touchstart",Tt,{passive:!1}),function(){mt.removeEventListener("touchstart",Ue),xt.removeEventListener("touchstart",Tt)}},[]);var Mt=v.useRef();Mt.current=we;var Ut=v.useRef();Ut.current=Ne,v.useEffect(function(){if(Qe){var Ue,mt=function(Te){var st=Ee.current,ct=st.dragging,kt=st.pageY,Ot=st.startTop;U.Z.cancel(Ue);var $t=ie.current.getBoundingClientRect(),Bt=ce/(Q?$t.width:$t.height);if(ct){var Xt=(g(Te,Q)-kt)*Bt,hn=Ot;!lt&&Q?hn-=Xt:hn+=Xt;var Dt=Mt.current,yt=Ut.current,Ht=yt?hn/yt:0,zt=Math.ceil(Ht*Dt);zt=Math.max(zt,0),zt=Math.min(zt,Dt),Ue=(0,U.Z)(function(){oe(zt,Q)})}},xt=function(){et(!1),O()};return window.addEventListener("mousemove",mt,{passive:!0}),window.addEventListener("touchmove",mt,{passive:!0}),window.addEventListener("mouseup",xt,{passive:!0}),window.addEventListener("touchend",xt,{passive:!0}),function(){window.removeEventListener("mousemove",mt),window.removeEventListener("touchmove",mt),window.removeEventListener("mouseup",xt),window.removeEventListener("touchend",xt),U.Z.cancel(Ue)}}},[Qe]),v.useEffect(function(){return V(),function(){clearTimeout(ue.current)}},[ne]),v.useImperativeHandle(Et,function(){return{delayHidden:V}});var dn="".concat(q,"-scrollbar"),wt={position:"absolute",visibility:Ze?null:"hidden"},Yt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Q?(wt.height=8,wt.left=0,wt.right=0,wt.bottom=0,Yt.height="100%",Yt.width=le,lt?Yt.left=H:Yt.right=H):(wt.width=8,wt.top=0,wt.bottom=0,lt?wt.right=0:wt.left=0,Yt.width="100%",Yt.height=le,Yt.top=H),v.createElement("div",{ref:ie,className:xe()(dn,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(dn,"-horizontal"),Q),"".concat(dn,"-vertical"),!Q),"".concat(dn,"-visible"),Ze)),style:(0,de.Z)((0,de.Z)({},wt),Ae),onMouseDown:it,onMouseMove:V},v.createElement("div",{ref:Oe,className:xe()("".concat(dn,"-thumb"),(0,Ce.Z)({},"".concat(dn,"-thumb-moving"),Qe)),style:(0,de.Z)((0,de.Z)({},Yt),_e),onMouseDown:Tt}))}),We=ze,je=20;function Ge(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=at/Et*at;return isNaN(q)&&(q=0),q=Math.max(q,je),Math.floor(q)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ht=[],rt={overflowY:"auto",overflowAnchor:"none"};function Vt(at,Et){var q=at.prefixCls,ge=q===void 0?"rc-virtual-list":q,ne=at.className,z=at.height,De=at.itemHeight,O=at.fullHeight,oe=O===void 0?!0:O,Q=at.style,le=at.data,ce=at.children,Ae=at.itemKey,_e=at.virtual,Pe=at.direction,Ie=at.scrollWidth,Fe=at.component,Qe=Fe===void 0?"div":Fe,et=at.onScroll,Ye=at.onVirtualScroll,ut=at.onVisibleChange,dt=at.innerProps,ot=at.extraRender,Ct=at.styles,Lt=at.showScrollBar,w=Lt===void 0?"optional":Lt,C=(0,X.Z)(at,pt),lt=v.useCallback(function(yn){return typeof Ae=="function"?Ae(yn):yn==null?void 0:yn[Ae]},[Ae]),ie=se(lt,null,null),Oe=(0,j.Z)(ie,4),mn=Oe[0],$e=Oe[1],Ze=Oe[2],tt=Oe[3],ue=!!(_e!==!1&&z&&De),V=v.useMemo(function(){return Object.values(Ze.maps).reduce(function(yn,ln){return yn+ln},0)},[Ze.id,Ze.maps]),we=ue&&le&&(Math.max(De*le.length,V)>z||!!Ie),Ne=Pe==="rtl",H=xe()(ge,(0,Ce.Z)({},"".concat(ge,"-rtl"),Ne),ne),it=le||ht,Ee=(0,v.useRef)(),Tt=(0,v.useRef)(),Mt=(0,v.useRef)(),Ut=(0,v.useState)(0),dn=(0,j.Z)(Ut,2),wt=dn[0],Yt=dn[1],Ue=(0,v.useState)(0),mt=(0,j.Z)(Ue,2),xt=mt[0],Me=mt[1],Te=(0,v.useState)(!1),st=(0,j.Z)(Te,2),ct=st[0],kt=st[1],Ot=function(){kt(!0)},$t=function(){kt(!1)},Bt={getKey:lt};function Xt(yn){Yt(function(ln){var Bn;typeof yn=="function"?Bn=yn(ln):Bn=yn;var tr=Ln(Bn);return Ee.current.scrollTop=tr,tr})}var hn=(0,v.useRef)({start:0,end:it.length}),Dt=(0,v.useRef)(),yt=G(it,lt),Ht=(0,j.Z)(yt,1),zt=Ht[0];Dt.current=zt;var Gt=v.useMemo(function(){if(!ue)return{scrollHeight:void 0,start:0,end:it.length-1,offset:void 0};if(!we){var yn;return{scrollHeight:((yn=Tt.current)===null||yn===void 0?void 0:yn.offsetHeight)||0,start:0,end:it.length-1,offset:void 0}}for(var ln=0,Bn,tr,lr,kr=it.length,En=0;En<kr;En+=1){var hr=it[En],dr=lt(hr),mr=Ze.get(dr),Fr=ln+(mr===void 0?De:mr);Fr>=wt&&Bn===void 0&&(Bn=En,tr=ln),Fr>wt+z&&lr===void 0&&(lr=En),ln=Fr}return Bn===void 0&&(Bn=0,tr=0,lr=Math.ceil(z/De)),lr===void 0&&(lr=it.length-1),lr=Math.min(lr+1,it.length-1),{scrollHeight:ln,start:Bn,end:lr,offset:tr}},[we,ue,wt,it,tt,z]),sn=Gt.scrollHeight,Rn=Gt.start,pn=Gt.end,Ft=Gt.offset;hn.current.start=Rn,hn.current.end=pn,v.useLayoutEffect(function(){var yn=Ze.getRecord();if(yn.size===1){var ln=Array.from(yn)[0],Bn=it[Rn];if(Bn){var tr=lt(Bn);if(tr===ln){var lr=Ze.get(ln),kr=lr-De;Xt(function(En){return En+kr})}}}Ze.resetRecord()},[sn]);var Je=v.useState({width:0,height:z}),nt=(0,j.Z)(Je,2),vt=nt[0],bt=nt[1],ft=function(ln){bt({width:ln.offsetWidth,height:ln.offsetHeight})},It=(0,v.useRef)(),_t=(0,v.useRef)(),jt=v.useMemo(function(){return Ge(vt.width,Ie)},[vt.width,Ie]),an=v.useMemo(function(){return Ge(vt.height,sn)},[vt.height,sn]),nn=sn-z,Sn=(0,v.useRef)(nn);Sn.current=nn;function Ln(yn){var ln=yn;return Number.isNaN(Sn.current)||(ln=Math.min(ln,Sn.current)),ln=Math.max(ln,0),ln}var Fn=wt<=0,cn=wt>=nn,rn=xt<=0,$n=xt>=Ie,An=B(Fn,cn,rn,$n),Wn=function(){return{x:Ne?-xt:xt,y:wt}},Cn=(0,v.useRef)(Wn()),Nn=(0,A.useEvent)(function(yn){if(Ye){var ln=(0,de.Z)((0,de.Z)({},Wn()),yn);(Cn.current.x!==ln.x||Cn.current.y!==ln.y)&&(Ye(ln),Cn.current=ln)}});function zn(yn,ln){var Bn=yn;ln?((0,u.flushSync)(function(){Me(Bn)}),Nn()):Xt(Bn)}function Pn(yn){var ln=yn.currentTarget.scrollTop;ln!==wt&&Xt(ln),et==null||et(yn),Nn()}var Yn=function(ln){var Bn=ln,tr=Ie?Ie-vt.width:0;return Bn=Math.max(Bn,0),Bn=Math.min(Bn,tr),Bn},or=(0,A.useEvent)(function(yn,ln){ln?((0,u.flushSync)(function(){Me(function(Bn){var tr=Bn+(Ne?-yn:yn);return Yn(tr)})}),Nn()):Xt(function(Bn){var tr=Bn+yn;return tr})}),Tn=F(ue,Fn,cn,rn,$n,!!Ie,or),tn=(0,j.Z)(Tn,2),Ke=tn[0],un=tn[1];J(ue,Ee,function(yn,ln,Bn,tr){var lr=tr;return An(yn,ln,Bn)?!1:!lr||!lr._virtualHandled?(lr&&(lr._virtualHandled=!0),Ke({preventDefault:function(){},deltaX:yn?ln:0,deltaY:yn?0:ln}),!0):!1}),E(we,Ee,function(yn){Xt(function(ln){return ln+yn})}),(0,L.Z)(function(){function yn(Bn){var tr=Fn&&Bn.detail<0,lr=cn&&Bn.detail>0;ue&&!tr&&!lr&&Bn.preventDefault()}var ln=Ee.current;return ln.addEventListener("wheel",Ke,{passive:!1}),ln.addEventListener("DOMMouseScroll",un,{passive:!0}),ln.addEventListener("MozMousePixelScroll",yn,{passive:!1}),function(){ln.removeEventListener("wheel",Ke),ln.removeEventListener("DOMMouseScroll",un),ln.removeEventListener("MozMousePixelScroll",yn)}},[ue,Fn,cn]),(0,L.Z)(function(){if(Ie){var yn=Yn(xt);Me(yn),Nn({x:yn})}},[vt.width,Ie]);var On=function(){var ln,Bn;(ln=It.current)===null||ln===void 0||ln.delayHidden(),(Bn=_t.current)===null||Bn===void 0||Bn.delayHidden()},Hn=pe(Ee,it,Ze,De,lt,function(){return $e(!0)},Xt,On);v.useImperativeHandle(Et,function(){return{nativeElement:Mt.current,getScrollInfo:Wn,scrollTo:function(ln){function Bn(tr){return tr&&(0,Y.Z)(tr)==="object"&&("left"in tr||"top"in tr)}Bn(ln)?(ln.left!==void 0&&Me(Yn(ln.left)),Hn(ln.top)):Hn(ln)}}}),(0,L.Z)(function(){if(ut){var yn=it.slice(Rn,pn+1);ut(yn,it)}},[Rn,pn,it]);var Gn=fe(it,lt,Ze,De),nr=ot==null?void 0:ot({start:Rn,end:pn,virtual:we,offsetX:xt,offsetY:Ft,rtl:Ne,getSize:Gn}),rr=ae(it,Rn,pn,Ie,xt,mn,ce,Bt),Un=null;z&&(Un=(0,de.Z)((0,Ce.Z)({},oe?"height":"maxHeight",z),rt),ue&&(Un.overflowY="hidden",Ie&&(Un.overflowX="hidden"),ct&&(Un.pointerEvents="none")));var qn={};return Ne&&(qn.dir="rtl"),v.createElement("div",(0,M.Z)({ref:Mt,style:(0,de.Z)((0,de.Z)({},Q),{},{position:"relative"}),className:H},qn,C),v.createElement(s.Z,{onResize:ft},v.createElement(Qe,{className:"".concat(ge,"-holder"),style:Un,ref:Ee,onScroll:Pn,onMouseEnter:On},v.createElement(b,{prefixCls:ge,height:sn,offsetX:xt,offsetY:Ft,scrollWidth:Ie,onInnerResize:$e,ref:Tt,innerProps:dt,rtl:Ne,extra:nr},rr))),we&&sn>z&&v.createElement(We,{ref:It,prefixCls:ge,scrollOffset:wt,scrollRange:sn,rtl:Ne,onScroll:zn,onStartMove:Ot,onStopMove:$t,spinSize:an,containerSize:vt.height,style:Ct==null?void 0:Ct.verticalScrollBar,thumbStyle:Ct==null?void 0:Ct.verticalScrollBarThumb,showScrollBar:w}),we&&Ie>vt.width&&v.createElement(We,{ref:_t,prefixCls:ge,scrollOffset:xt,scrollRange:Ie,rtl:Ne,onScroll:zn,onStartMove:Ot,onStopMove:$t,spinSize:jt,containerSize:vt.width,horizontal:!0,style:Ct==null?void 0:Ct.horizontalScrollBar,thumbStyle:Ct==null?void 0:Ct.horizontalScrollBarThumb,showScrollBar:w}))}var Jt=v.forwardRef(Vt);Jt.displayName="List";var on=Jt,Kt=on},83145:function(qt,qe,p){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.CopyToClipboard=void 0;var M=de(p(59301)),Y=de(p(25769));function de(N){return N&&N.__esModule?N:{default:N}}function Ce(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(U){return typeof U}:Ce=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},Ce(N)}function j(N,G){var U=Object.keys(N);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(N);G&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(N,T).enumerable})),U.push.apply(U,x)}return U}function X(N){for(var G=1;G<arguments.length;G++){var U=arguments[G]!=null?arguments[G]:{};G%2?j(U,!0).forEach(function(x){ae(N,x,U[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(U)):j(U).forEach(function(x){Object.defineProperty(N,x,Object.getOwnPropertyDescriptor(U,x))})}return N}function ve(N,G){if(N==null)return{};var U=xe(N,G),x,T;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(N);for(T=0;T<B.length;T++)x=B[T],!(G.indexOf(x)>=0)&&Object.prototype.propertyIsEnumerable.call(N,x)&&(U[x]=N[x])}return U}function xe(N,G){if(N==null)return{};var U={},x=Object.keys(N),T,B;for(B=0;B<x.length;B++)T=x[B],!(G.indexOf(T)>=0)&&(U[T]=N[T]);return U}function s(N,G){if(!(N instanceof G))throw new TypeError("Cannot call a class as a function")}function A(N,G){for(var U=0;U<G.length;U++){var x=G[U];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(N,x.key,x)}}function L(N,G,U){return G&&A(N.prototype,G),U&&A(N,U),N}function v(N,G){return G&&(Ce(G)==="object"||typeof G=="function")?G:y(N)}function u(N){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},u(N)}function y(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function b(N,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(G&&G.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),G&&k(N,G)}function k(N,G){return k=Object.setPrototypeOf||function(x,T){return x.__proto__=T,x},k(N,G)}function ae(N,G,U){return G in N?Object.defineProperty(N,G,{value:U,enumerable:!0,configurable:!0,writable:!0}):N[G]=U,N}var P=function(N){b(G,N);function G(){var U,x;s(this,G);for(var T=arguments.length,B=new Array(T),F=0;F<T;F++)B[F]=arguments[F];return x=v(this,(U=u(G)).call.apply(U,[this].concat(B))),ae(y(x),"onClick",function(fe){var be=x.props,Re=be.text,he=be.onCopy,W=be.children,$=be.options,se=M.default.Children.only(W),D=(0,Y.default)(Re,$);he&&he(Re,D),se&&se.props&&typeof se.props.onClick=="function"&&se.props.onClick(fe)}),x}return L(G,[{key:"render",value:function(){var x=this.props,T=x.text,B=x.onCopy,F=x.options,fe=x.children,be=ve(x,["text","onCopy","options","children"]),Re=M.default.Children.only(fe);return M.default.cloneElement(Re,X({},be,{onClick:this.onClick}))}}]),G}(M.default.PureComponent);qe.CopyToClipboard=P,ae(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(qt,qe,p){"use strict";var M=p(83145),Y=M.CopyToClipboard;Y.CopyToClipboard=Y,qt.exports=Y},76374:function(qt,qe,p){"use strict";var M=function(){if(typeof Map!="undefined")return Map;function W($,se){var D=-1;return $.some(function(J,K){return J[0]===se?(D=K,!0):!1}),D}return function(){function $(){this.__entries__=[]}return Object.defineProperty($.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),$.prototype.get=function(se){var D=W(this.__entries__,se),J=this.__entries__[D];return J&&J[1]},$.prototype.set=function(se,D){var J=W(this.__entries__,se);~J?this.__entries__[J][1]=D:this.__entries__.push([se,D])},$.prototype.delete=function(se){var D=this.__entries__,J=W(D,se);~J&&D.splice(J,1)},$.prototype.has=function(se){return!!~W(this.__entries__,se)},$.prototype.clear=function(){this.__entries__.splice(0)},$.prototype.forEach=function(se,D){D===void 0&&(D=null);for(var J=0,K=this.__entries__;J<K.length;J++){var g=K[J];se.call(D,g[1],g[0])}},$}()}(),Y=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,de=function(){return typeof p.g!="undefined"&&p.g.Math===Math?p.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Ce=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(de):function(W){return setTimeout(function(){return W(Date.now())},1e3/60)}}(),j=2;function X(W,$){var se=!1,D=!1,J=0;function K(){se&&(se=!1,W()),D&&E()}function g(){Ce(K)}function E(){var Z=Date.now();if(se){if(Z-J<j)return;D=!0}else se=!0,D=!1,setTimeout(g,$);J=Z}return E}var ve=20,xe=["top","right","bottom","left","width","height","size","weight"],s=typeof MutationObserver!="undefined",A=function(){function W(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=X(this.refresh.bind(this),ve)}return W.prototype.addObserver=function($){~this.observers_.indexOf($)||this.observers_.push($),this.connected_||this.connect_()},W.prototype.removeObserver=function($){var se=this.observers_,D=se.indexOf($);~D&&se.splice(D,1),!se.length&&this.connected_&&this.disconnect_()},W.prototype.refresh=function(){var $=this.updateObservers_();$&&this.refresh()},W.prototype.updateObservers_=function(){var $=this.observers_.filter(function(se){return se.gatherActive(),se.hasActive()});return $.forEach(function(se){return se.broadcastActive()}),$.length>0},W.prototype.connect_=function(){!Y||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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)},W.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)},W.prototype.onTransitionEnd_=function($){var se=$.propertyName,D=se===void 0?"":se,J=xe.some(function(K){return!!~D.indexOf(K)});J&&this.refresh()},W.getInstance=function(){return this.instance_||(this.instance_=new W),this.instance_},W.instance_=null,W}(),L=function(W,$){for(var se=0,D=Object.keys($);se<D.length;se++){var J=D[se];Object.defineProperty(W,J,{value:$[J],enumerable:!1,writable:!1,configurable:!0})}return W},v=function(W){var $=W&&W.ownerDocument&&W.ownerDocument.defaultView;return $||de},u=T(0,0,0,0);function y(W){return parseFloat(W)||0}function b(W){for(var $=[],se=1;se<arguments.length;se++)$[se-1]=arguments[se];return $.reduce(function(D,J){var K=W["border-"+J+"-width"];return D+y(K)},0)}function k(W){for(var $=["top","right","bottom","left"],se={},D=0,J=$;D<J.length;D++){var K=J[D],g=W["padding-"+K];se[K]=y(g)}return se}function ae(W){var $=W.getBBox();return T(0,0,$.width,$.height)}function P(W){var $=W.clientWidth,se=W.clientHeight;if(!$&&!se)return u;var D=v(W).getComputedStyle(W),J=k(D),K=J.left+J.right,g=J.top+J.bottom,E=y(D.width),Z=y(D.height);if(D.boxSizing==="border-box"&&(Math.round(E+K)!==$&&(E-=b(D,"left","right")+K),Math.round(Z+g)!==se&&(Z-=b(D,"top","bottom")+g)),!G(W)){var pe=Math.round(E+K)-$,ze=Math.round(Z+g)-se;Math.abs(pe)!==1&&(E-=pe),Math.abs(ze)!==1&&(Z-=ze)}return T(J.left,J.top,E,Z)}var N=function(){return typeof SVGGraphicsElement!="undefined"?function(W){return W instanceof v(W).SVGGraphicsElement}:function(W){return W instanceof v(W).SVGElement&&typeof W.getBBox=="function"}}();function G(W){return W===v(W).document.documentElement}function U(W){return Y?N(W)?ae(W):P(W):u}function x(W){var $=W.x,se=W.y,D=W.width,J=W.height,K=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(K.prototype);return L(g,{x:$,y:se,width:D,height:J,top:se,right:$+D,bottom:J+se,left:$}),g}function T(W,$,se,D){return{x:W,y:$,width:se,height:D}}var B=function(){function W($){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=$}return W.prototype.isActive=function(){var $=U(this.target);return this.contentRect_=$,$.width!==this.broadcastWidth||$.height!==this.broadcastHeight},W.prototype.broadcastRect=function(){var $=this.contentRect_;return this.broadcastWidth=$.width,this.broadcastHeight=$.height,$},W}(),F=function(){function W($,se){var D=x(se);L(this,{target:$,contentRect:D})}return W}(),fe=function(){function W($,se,D){if(this.activeObservations_=[],this.observations_=new M,typeof $!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=$,this.controller_=se,this.callbackCtx_=D}return W.prototype.observe=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof v($).Element))throw new TypeError('parameter 1 is not of type "Element".');var se=this.observations_;se.has($)||(se.set($,new B($)),this.controller_.addObserver(this),this.controller_.refresh())}},W.prototype.unobserve=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof v($).Element))throw new TypeError('parameter 1 is not of type "Element".');var se=this.observations_;se.has($)&&(se.delete($),se.size||this.controller_.removeObserver(this))}},W.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},W.prototype.gatherActive=function(){var $=this;this.clearActive(),this.observations_.forEach(function(se){se.isActive()&&$.activeObservations_.push(se)})},W.prototype.broadcastActive=function(){if(this.hasActive()){var $=this.callbackCtx_,se=this.activeObservations_.map(function(D){return new F(D.target,D.broadcastRect())});this.callback_.call($,se,$),this.clearActive()}},W.prototype.clearActive=function(){this.activeObservations_.splice(0)},W.prototype.hasActive=function(){return this.activeObservations_.length>0},W}(),be=typeof WeakMap!="undefined"?new WeakMap:new M,Re=function(){function W($){if(!(this instanceof W))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var se=A.getInstance(),D=new fe($,se,this);be.set(this,D)}return W}();["observe","unobserve","disconnect"].forEach(function(W){Re.prototype[W]=function(){var $;return($=be.get(this))[W].apply($,arguments)}});var he=function(){return typeof de.ResizeObserver!="undefined"?de.ResizeObserver:Re}();qe.Z=he},98040:function(qt){qt.exports=function(){var qe=document.getSelection();if(!qe.rangeCount)return function(){};for(var p=document.activeElement,M=[],Y=0;Y<qe.rangeCount;Y++)M.push(qe.getRangeAt(Y));switch(p.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":p.blur();break;default:p=null;break}return qe.removeAllRanges(),function(){qe.type==="Caret"&&qe.removeAllRanges(),qe.rangeCount||M.forEach(function(de){qe.addRange(de)}),p&&p.focus()}}},1012:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return v}});var M=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 de(){if(!M)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(Y)}var Ce=/^(?:[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 j(u){return typeof u=="string"&&Ce.test(u)}for(var X=j,ve=[],xe=0;xe<256;++xe)ve.push((xe+256).toString(16).substr(1));function s(u){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(ve[u[y+0]]+ve[u[y+1]]+ve[u[y+2]]+ve[u[y+3]]+"-"+ve[u[y+4]]+ve[u[y+5]]+"-"+ve[u[y+6]]+ve[u[y+7]]+"-"+ve[u[y+8]]+ve[u[y+9]]+"-"+ve[u[y+10]]+ve[u[y+11]]+ve[u[y+12]]+ve[u[y+13]]+ve[u[y+14]]+ve[u[y+15]]).toLowerCase();if(!X(b))throw TypeError("Stringified UUID is invalid");return b}var A=s;function L(u,y,b){u=u||{};var k=u.random||(u.rng||de)();if(k[6]=k[6]&15|64,k[8]=k[8]&63|128,y){b=b||0;for(var ae=0;ae<16;++ae)y[b+ae]=k[ae];return y}return A(k)}var v=L},93314:function(qt){"use strict";qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},40846:function(qt,qe,p){"use strict";p.d(qe,{ZP:function(){return Pa}});function M(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Y={exports:{}};(function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(h,_,S){if(S=S||{},h=h.trim(),_=_.trim(),!_){if(!S.alwaysNormalize)return h;var R=c.parseURL(h);if(!R)throw new Error("Error trying to parse base URL.");return R.path=c.normalizePath(R.path),c.buildURLFromParts(R)}var re=c.parseURL(_);if(!re)throw new Error("Error trying to parse relative URL.");if(re.scheme)return S.alwaysNormalize?(re.path=c.normalizePath(re.path),c.buildURLFromParts(re)):_;var ye=c.parseURL(h);if(!ye)throw new Error("Error trying to parse base URL.");if(!ye.netLoc&&ye.path&&ye.path[0]!=="/"){var me=r.exec(ye.path);ye.netLoc=me[1],ye.path=me[2]}ye.netLoc&&!ye.path&&(ye.path="/");var Se={scheme:ye.scheme,netLoc:re.netLoc,path:null,params:re.params,query:re.query,fragment:re.fragment};if(!re.netLoc&&(Se.netLoc=ye.netLoc,re.path[0]!=="/"))if(!re.path)Se.path=ye.path,re.params||(Se.params=ye.params,re.query||(Se.query=ye.query));else{var ke=ye.path,Xe=ke.substring(0,ke.lastIndexOf("/")+1)+re.path;Se.path=c.normalizePath(Xe)}return Se.path===null&&(Se.path=S.alwaysNormalize?c.normalizePath(re.path):re.path),c.buildURLFromParts(Se)},parseURL:function(h){var _=n.exec(h);return _?{scheme:_[1]||"",netLoc:_[2]||"",path:_[3]||"",params:_[4]||"",query:_[5]||"",fragment:_[6]||""}:null},normalizePath:function(h){for(h=h.split("").reverse().join("").replace(i,"");h.length!==(h=h.replace(a,"")).length;);return h.split("").reverse().join("")},buildURLFromParts:function(h){return h.scheme+h.netLoc+h.path+h.params+h.query+h.fragment}};o.exports=c})()})(Y);var de=Y.exports;function Ce(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),t.push.apply(t,n)}return t}function j(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ce(Object(t),!0).forEach(function(n){xe(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function X(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function ve(o){var e=X(o,"string");return typeof e=="symbol"?e:String(e)}function xe(o,e,t){return e=ve(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function s(){return s=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},s.apply(this,arguments)}const A=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},L=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=v},v=Number.MAX_SAFE_INTEGER||9007199254740991;let u=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached",o.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",o}({}),y=function(o){return o.NETWORK_ERROR="networkError",o.MEDIA_ERROR="mediaError",o.KEY_SYSTEM_ERROR="keySystemError",o.MUX_ERROR="muxError",o.OTHER_ERROR="otherError",o}({}),b=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 k=function(){},ae={trace:k,debug:k,log:k,warn:k,info:k,error:k};let P=ae;function N(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):k}function G(o,...e){e.forEach(function(t){P[t]=o[t]?o[t].bind(o):N(t)})}function U(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){G(o,"debug","log","info","warn","error");try{P.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){P=ae}}else P=ae}const x=P,T=/^(\d+)x(\d+)$/,B=/(.+?)=(".*?"|.*?)(?:,|$)/g;class F{constructor(e){typeof e=="string"&&(e=F.parseAttrList(e)),s(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}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 n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=T.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(B.lastIndex=0;(t=B.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const a=t[1].trim();n[a]=i}return n}}function fe(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function be(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class Re{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){x.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=s(new F({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);A(n.getTime())&&(this._endDate=n)}}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(A(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&&A(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class he{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 W={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ${constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[W.AUDIO]:null,[W.VIDEO]:null,[W.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get 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=de.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class se extends ${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 he,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 n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!A(this.programDateTime))return null;const e=A(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,a=!1){const{elementaryStreams:c}=this,h=c[e];if(!h){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a};return}h.startPTS=Math.min(h.startPTS,t),h.endPTS=Math.max(h.endPTS,n),h.startDTS=Math.min(h.startDTS,r),h.endDTS=Math.max(h.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[W.AUDIO]=null,e[W.VIDEO]=null,e[W.AUDIOVIDEO]=null}}class D extends ${constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new he,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,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 J=10;class K{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,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?A(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||J}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 E(o){const e=ze(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Z(o){const e=function(n,r,i){const a=n[r];n[r]=n[i],n[i]=a};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function pe(o){const e=o.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",a=r[1];i?(n.splice(-1,1),t=g(a)):t=E(a)}}return t}function ze(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const We=typeof self!="undefined"?self:void 0;var je={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ge={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function pt(o){switch(o){case Ge.FAIRPLAY:return je.FAIRPLAY;case Ge.PLAYREADY:return je.PLAYREADY;case Ge.WIDEVINE:return je.WIDEVINE;case Ge.CLEARKEY:return je.CLEARKEY}}var ht={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function rt(o){if(o===ht.WIDEVINE)return je.WIDEVINE;if(o===ht.PLAYREADY)return je.PLAYREADY;if(o===ht.CENC||o===ht.CLEARKEY)return je.CLEARKEY}function Vt(o){switch(o){case je.FAIRPLAY:return Ge.FAIRPLAY;case je.PLAYREADY:return Ge.PLAYREADY;case je.WIDEVINE:return Ge.WIDEVINE;case je.CLEARKEY:return Ge.CLEARKEY}}function Jt(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[je.FAIRPLAY,je.WIDEVINE,je.PLAYREADY,je.CLEARKEY].filter(r=>!!e[r]):[];return!n[je.WIDEVINE]&&t&&n.push(je.WIDEVINE),n}const on=function(o){return We!=null&&(o=We.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Kt(o,e,t,n){let r;switch(o){case je.FAIRPLAY:r=["cenc","sinf"];break;case je.WIDEVINE:case je.PLAYREADY:r=["cenc"];break;case je.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return at(r,e,t,n)}function at(o,e,t,n){return[{initDataTypes:o,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Et(o){const e=new Uint16Array(o.buffer,o.byteOffset,o.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),a=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(a){const c=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(c){const h=g(c).subarray(0,16);return Z(h),h}}return null}function q(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const ge=(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,ne=(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,z=(o,e)=>{const t=e;let n=0;for(;ge(o,e);){n+=10;const r=De(o,e+6);n+=r,ne(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)},De=(o,e)=>{let t=0;return t=(o[e]&127)<<21,t|=(o[e+1]&127)<<14,t|=(o[e+2]&127)<<7,t|=o[e+3]&127,t},O=(o,e)=>ge(o,e)&&De(o,e+6)+10<=o.length-e,oe=o=>{const e=ce(o);for(let t=0;t<e.length;t++){const n=e[t];if(Q(n))return Fe(n)}},Q=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",le=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=De(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}},ce=o=>{let e=0;const t=[];for(;ge(o,e);){const n=De(o,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=le(o.subarray(e)),a=Ae(i);a&&t.push(a),e+=i.size+10}ne(o,e)&&(e+=10)}return t},Ae=o=>o.type==="PRIV"?_e(o):o.type[0]==="W"?Ie(o):Pe(o),_e=o=>{if(o.size<2)return;const e=Qe(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}},Pe=o=>{if(o.size<2)return;if(o.type==="TXXX"){let t=1;const n=Qe(o.data.subarray(t),!0);t+=n.length+1;const r=Qe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Qe(o.data.subarray(1));return{key:o.type,data:e}},Ie=o=>{if(o.type==="WXXX"){if(o.size<2)return;let t=1;const n=Qe(o.data.subarray(t),!0);t+=n.length+1;const r=Qe(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Qe(o.data);return{key:o.type,data:e}},Fe=o=>{if(o.data.byteLength===8){const e=new Uint8Array(o.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}},Qe=(o,e=!1)=>{const t=Ye();if(t){const _=t.decode(o);if(e){const S=_.indexOf("\0");return S!==-1?_.substring(0,S):_}return _.replace(/\0/g,"")}const n=o.length;let r,i,a,c="",h=0;for(;h<n;){if(r=o[h++],r===0&&e)return c;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(r);break;case 12:case 13:i=o[h++],c+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=o[h++],a=o[h++],c+=String.fromCharCode((r&15)<<12|(i&63)<<6|(a&63)<<0);break}}return c};let et;function Ye(){if(!navigator.userAgent.includes("PlayStation 4"))return!et&&typeof self.TextDecoder!="undefined"&&(et=new self.TextDecoder("utf-8")),et}const ut={hexDump:function(o){let e="";for(let t=0;t<o.length;t++){let n=o[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},dt=Math.pow(2,32)-1,ot=[].push,Ct={video:1,audio:2,id3:3,text:4};function Lt(o){return String.fromCharCode.apply(null,o)}function w(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function C(o,e){const t=ie(o,e);return t<0?4294967296+t:t}function lt(o,e){let t=C(o,e);return t*=Math.pow(2,32),t+=C(o,e+4),t}function ie(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Oe(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 mn(o){const e=o.byteLength;for(let t=0;t<e;){const n=C(o,t);if(n>8&&o[t+4]===109&&o[t+5]===111&&o[t+6]===111&&o[t+7]===102)return!0;t=n>1?t+n:e}return!1}function $e(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const i=C(o,r),a=Lt(o.subarray(r+4,r+8)),c=i>1?r+i:n;if(a===e[0])if(e.length===1)t.push(o.subarray(r+8,c));else{const h=$e(o.subarray(r+8,c),e.slice(1));h.length&&ot.apply(t,h)}r=c}return t}function Ze(o){const e=[],t=o[0];let n=8;const r=C(o,n);n+=4;let i=0,a=0;t===0?(i=C(o,n),a=C(o,n+4),n+=8):(i=lt(o,n),a=lt(o,n+8),n+=16),n+=2;let c=o.length+a;const h=w(o,n);n+=2;for(let _=0;_<h;_++){let S=n;const R=C(o,S);S+=4;const re=R&2147483647;if((R&2147483648)>>>31===1)return x.warn("SIDX has hierarchical references (not supported)"),null;const me=C(o,S);S+=4,e.push({referenceSize:re,subsegmentDuration:me,info:{duration:me/r,start:c,end:c+re-1}}),c+=re,S+=4,n=S}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:h,references:e}}function tt(o){const e=[],t=$e(o,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],a=$e(i,["tkhd"])[0];if(a){let c=a[0];const h=C(a,c===0?12:20),_=$e(i,["mdia","mdhd"])[0];if(_){c=_[0];const S=C(_,c===0?12:20),R=$e(i,["mdia","hdlr"])[0];if(R){const re=Lt(R.subarray(8,12)),ye={soun:W.AUDIO,vide:W.VIDEO}[re];if(ye){const me=$e(i,["mdia","minf","stbl","stsd"])[0],Se=ue(me);e[h]={timescale:S,type:ye},e[ye]=j({timescale:S,id:h},Se)}}}}}return $e(o,["moov","mvex","trex"]).forEach(r=>{const i=C(r,4),a=e[i];a&&(a.default={duration:C(r,12),flags:C(r,20)})}),e}function ue(o){const e=o.subarray(8),t=e.subarray(86),n=Lt(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const c=$e(e,[n])[0].subarray(n==="enca"?28:78);$e(c,["sinf"]).forEach(_=>{const S=$e(_,["schm"])[0];if(S){const R=Lt(S.subarray(4,8));if(R==="cbcs"||R==="cenc"){const re=$e(_,["frma"])[0];re&&(r=Lt(re))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const a=$e(t,["avcC"])[0];r+="."+we(a[1])+we(a[2])+we(a[3]);break}case"mp4a":{const a=$e(e,[n])[0],c=$e(a.subarray(28),["esds"])[0];if(c&&c.length>12){let h=4;if(c[h++]!==3)break;h=V(c,h),h+=2;const _=c[h++];if(_&128&&(h+=2),_&64&&(h+=c[h++]),c[h++]!==4)break;h=V(c,h);const S=c[h++];if(S===64)r+="."+we(S);else break;if(h+=12,c[h++]!==5)break;h=V(c,h);const R=c[h++];let re=(R&248)>>3;re===31&&(re+=1+((R&7)<<3)+((c[h]&224)>>5)),r+="."+re}break}case"hvc1":case"hev1":{const a=$e(t,["hvcC"])[0],c=a[1],h=["","A","B","C"][c>>6],_=c&31,S=C(a,2),R=(c&32)>>5?"H":"L",re=a[12],ye=a.subarray(6,12);r+="."+h+_,r+="."+S.toString(16).toUpperCase(),r+="."+R+re;let me="";for(let Se=ye.length;Se--;){const ke=ye[Se];(ke||me)&&(me="."+ke.toString(16).toUpperCase()+me)}r+=me;break}case"dvh1":case"dvhe":{const a=$e(t,["dvcC"])[0],c=a[2]>>1&127,h=a[2]<<5&32|a[3]>>3&31;r+="."+Ne(c)+"."+Ne(h);break}case"vp09":{const a=$e(t,["vpcC"])[0],c=a[4],h=a[5],_=a[6]>>4&15;r+="."+Ne(c)+"."+Ne(h)+"."+Ne(_);break}case"av01":{const a=$e(t,["av1C"])[0],c=a[1]>>>5,h=a[1]&31,_=a[2]>>>7?"H":"M",S=(a[2]&64)>>6,R=(a[2]&32)>>5,re=c===2&&S?R?12:10:S?10:8,ye=(a[2]&16)>>4,me=(a[2]&8)>>3,Se=(a[2]&4)>>2,ke=a[2]&3;r+="."+c+"."+Ne(h)+_+"."+Ne(re)+"."+ye+"."+me+Se+ke+"."+Ne(1)+"."+Ne(1)+"."+Ne(1)+"."+0;break}}return{codec:r,encrypted:i}}function V(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function we(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function Ne(o){return(o<10?"0":"")+o}function H(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&$e(o,["moov","trak"]).forEach(r=>{const a=$e(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let c=$e(a,["enca"]);const h=c.length>0;h||(c=$e(a,["encv"])),c.forEach(_=>{const S=h?_.subarray(28):_.subarray(78);$e(S,["sinf"]).forEach(re=>{const ye=it(re);if(ye){const me=ye.subarray(8,24);me.some(Se=>Se!==0)||(x.log(`[eme] Patching keyId in 'enc${h?"a":"v"}>sinf>>tenc' box: ${ut.hexDump(me)} -> ${ut.hexDump(t)}`),ye.set(t,8))}})})}),o}function it(o){const e=$e(o,["schm"])[0];if(e){const t=Lt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return $e(o,["schi","tenc"])[0]}return null}function Ee(o,e){return $e(e,["moof","traf"]).reduce((t,n)=>{const r=$e(n,["tfdt"])[0],i=r[0],a=$e(n,["tfhd"]).reduce((c,h)=>{const _=C(h,4),S=o[_];if(S){let R=C(r,4);if(i===1){if(R===dt)return x.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),c;R*=dt+1,R+=C(r,8)}const re=S.timescale||9e4,ye=R/re;if(A(ye)&&(c===null||ye<c))return ye}return c},null);return a!==null&&A(a)&&(t===null||a<t)?a:t},null)}function Tt(o,e){let t=0,n=0,r=0;const i=$e(o,["moof","traf"]);for(let a=0;a<i.length;a++){const c=i[a],h=$e(c,["tfhd"])[0],_=C(h,4),S=e[_];if(!S)continue;const R=S.default,re=C(h,0)|(R==null?void 0:R.flags);let ye=R==null?void 0:R.duration;re&8&&(re&2?ye=C(h,12):ye=C(h,8));const me=S.timescale||9e4,Se=$e(c,["trun"]);for(let ke=0;ke<Se.length;ke++){if(t=Mt(Se[ke]),!t&&ye){const Xe=C(Se[ke],4);t=ye*Xe}S.type===W.VIDEO?n+=t/me:S.type===W.AUDIO&&(r+=t/me)}}if(n===0&&r===0){let a=1/0,c=0,h=0;const _=$e(o,["sidx"]);for(let S=0;S<_.length;S++){const R=Ze(_[S]);if(R!=null&&R.references){a=Math.min(a,R.earliestPresentationTime/R.timescale);const re=R.references.reduce((ye,me)=>ye+me.info.duration||0,0);c=Math.max(c,re+R.earliestPresentationTime/R.timescale),h=c-a}}if(h&&A(h))return h}return n||r}function Mt(o){const e=C(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=C(o,4);for(let i=0;i<r;i++){if(e&256){const a=C(o,t);n+=a,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Ut(o,e,t){$e(e,["moof","traf"]).forEach(n=>{$e(n,["tfhd"]).forEach(r=>{const i=C(r,4),a=o[i];if(!a)return;const c=a.timescale||9e4;$e(n,["tfdt"]).forEach(h=>{const _=h[0],S=t*c;if(S){let R=C(h,4);if(_===0)R-=S,R=Math.max(R,0),Oe(h,4,R);else{R*=Math.pow(2,32),R+=C(h,8),R-=S,R=Math.max(R,0);const re=Math.floor(R/(dt+1)),ye=Math.floor(R%(dt+1));Oe(h,4,re),Oe(h,8,ye)}}})})})}function dn(o){const e={valid:null,remainder:null},t=$e(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=q(o,0,n.byteOffset-8),e.remainder=q(o,n.byteOffset-8),e}function wt(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function Yt(o,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let a=!1;return $e(n,["moof"]).map(h=>{const _=h.byteOffset-8;$e(h,["traf"]).map(R=>{const re=$e(R,["tfdt"]).map(ye=>{const me=ye[0];let Se=C(ye,4);return me===1&&(Se*=Math.pow(2,32),Se+=C(ye,8)),Se/r})[0];return re!==void 0&&(o=re),$e(R,["tfhd"]).map(ye=>{const me=C(ye,4),Se=C(ye,0)&16777215,ke=(Se&1)!==0,Xe=(Se&2)!==0,At=(Se&8)!==0;let St=0;const en=(Se&16)!==0;let Pt=0;const _n=(Se&32)!==0;let Qt=8;me===i&&(ke&&(Qt+=8),Xe&&(Qt+=4),At&&(St=C(ye,Qt),Qt+=4),en&&(Pt=C(ye,Qt),Qt+=4),_n&&(Qt+=4),e.type==="video"&&(a=Ue(e.codec)),$e(R,["trun"]).map(In=>{const Vn=In[0],vn=C(In,0)&16777215,kn=(vn&1)!==0;let Cr=0;const Qn=(vn&4)!==0,Sr=(vn&256)!==0;let wr=0;const fr=(vn&512)!==0;let Zr=0;const ni=(vn&1024)!==0,ir=(vn&2048)!==0;let Jn=0;const Gr=C(In,4);let Or=8;kn&&(Cr=C(In,Or),Or+=4),Qn&&(Or+=4);let ei=Cr+_;for(let wi=0;wi<Gr;wi++){if(Sr?(wr=C(In,Or),Or+=4):wr=St,fr?(Zr=C(In,Or),Or+=4):Zr=Pt,ni&&(Or+=4),ir&&(Vn===0?Jn=C(In,Or):Jn=ie(In,Or),Or+=4),e.type===W.VIDEO){let Oi=0;for(;Oi<Zr;){const Pi=C(n,ei);if(ei+=4,mt(a,n[ei])){const Yi=n.subarray(ei,ei+Pi);xt(Yi,a?2:1,o+Jn/r,t)}ei+=Pi,Oi+=Pi+4}}o+=wr/r}}))})})}),t}function Ue(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 mt(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function xt(o,e,t,n){const r=Me(o);let i=0;i+=e;let a=0,c=0,h=0;for(;i<r.length;){a=0;do{if(i>=r.length)break;h=r[i++],a+=h}while(h===255);c=0;do{if(i>=r.length)break;h=r[i++],c+=h}while(h===255);const _=r.length-i;let S=i;if(c<_)i+=c;else if(c>_){x.error(`Malformed SEI payload. ${c} is too small, only ${_} bytes left to parse.`);break}if(a===4){if(r[S++]===181){const re=w(r,S);if(S+=2,re===49){const ye=C(r,S);if(S+=4,ye===1195456820){const me=r[S++];if(me===3){const Se=r[S++],ke=31&Se,Xe=64&Se,At=Xe?2+ke*3:0,St=new Uint8Array(At);if(Xe){St[0]=Se;for(let en=1;en<At;en++)St[en]=r[S++]}n.push({type:me,payloadType:a,pts:t,bytes:St})}}}}}else if(a===5&&c>16){const R=[];for(let me=0;me<16;me++){const Se=r[S++].toString(16);R.push(Se.length==1?"0"+Se:Se),(me===3||me===5||me===7||me===9)&&R.push("-")}const re=c-16,ye=new Uint8Array(re);for(let me=0;me<re;me++)ye[me]=r[S++];n.push({payloadType:a,pts:t,uuid:R.join(""),userData:Qe(ye),userDataBytes:ye})}}}function Me(o){const e=o.byteLength,t=[];let n=1;for(;n<e-2;)o[n]===0&&o[n+1]===0&&o[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return o;const r=e-t.length,i=new Uint8Array(r);let a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=o[a];return i}function Te(o){const e=o[0];let t="",n="",r=0,i=0,a=0,c=0,h=0,_=0;if(e===0){for(;Lt(o.subarray(_,_+1))!=="\0";)t+=Lt(o.subarray(_,_+1)),_+=1;for(t+=Lt(o.subarray(_,_+1)),_+=1;Lt(o.subarray(_,_+1))!=="\0";)n+=Lt(o.subarray(_,_+1)),_+=1;n+=Lt(o.subarray(_,_+1)),_+=1,r=C(o,12),i=C(o,16),c=C(o,20),h=C(o,24),_=28}else if(e===1){_+=4,r=C(o,_),_+=4;const R=C(o,_);_+=4;const re=C(o,_);for(_+=4,a=Yo(2,32)*R+re,L(a)||(a=Number.MAX_SAFE_INTEGER,x.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=C(o,_),_+=4,h=C(o,_),_+=4;Lt(o.subarray(_,_+1))!=="\0";)t+=Lt(o.subarray(_,_+1)),_+=1;for(t+=Lt(o.subarray(_,_+1)),_+=1;Lt(o.subarray(_,_+1))!=="\0";)n+=Lt(o.subarray(_,_+1)),_+=1;n+=Lt(o.subarray(_,_+1)),_+=1}const S=o.subarray(_,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:a,presentationTimeDelta:i,eventDuration:c,id:h,payload:S}}function st(o,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(o,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function ct(o,e,t){if(o.byteLength!==16)throw new RangeError("Invalid system id");let n,r;if(e){n=1,r=new Uint8Array(e.length*16);for(let c=0;c<e.length;c++){const h=e[c];if(h.byteLength!==16)throw new RangeError("Invalid key");r.set(h,c*16)}}else n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const a=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(a.buffer).setUint32(0,t.byteLength,!1),st([112,115,115,104],new Uint8Array([n,0,0,0]),o,i,r,a,t||new Uint8Array)}function kt(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let n=0;for(;n+32<t;){const r=new DataView(o,n),i=Ot(r);e.push(i),n+=i.size}}return e}function Ot(o){const e=o.getUint32(0),t=o.byteOffset,n=o.byteLength;if(n<e)return{offset:t,size:n};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 a=o.buffer,c=ut.hexDump(new Uint8Array(a,t+12,16)),h=o.getUint32(28);let _=null,S=null;if(i===0){if(e-32<h||h<22)return{offset:t,size:e};S=new Uint8Array(a,t+32,h)}else if(i===1){if(!h||n<t+32+h*16+16)return{offset:t,size:e};_=[];for(let R=0;R<h;R++)_.push(new Uint8Array(a,t+32+R*16,16))}return{version:i,systemId:c,kids:_,data:S,offset:t,size:e}}let $t={};class Bt{static clearKeyUriToKeyIdMap(){$t={}}constructor(e,t,n,r=[1],i=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&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 Ge.FAIRPLAY:case Ge.WIDEVINE:case Ge.PLAYREADY:case Ge.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 n=Xt(e);return new Bt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=pe(this.uri);if(t)switch(this.keyFormat){case Ge.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ge.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ct(n,null,t),this.keyId=Et(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=$t[this.uri];if(!n){const r=Object.keys($t).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),$t[this.uri]=n}this.keyId=n}return this}}function Xt(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const hn=/\{\$([a-zA-Z0-9-_]+)\}/g;function Dt(o){return hn.test(o)}function yt(o,e,t){if(o.variableList!==null||o.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=Ht(o,i))}}function Ht(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(hn,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function zt(o,e,t){let n=o.variableList;n||(o.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const a=new self.URL(t).searchParams;if(a.has(r))i=a.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(a){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else r=e.NAME,i=e.VALUE;r in n?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function Gt(o,e,t){const n=e.IMPORT;if(t&&n in t){let r=o.variableList;r||(o.variableList=r={}),r[n]=t[n]}else o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function sn(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Rn(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const pn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,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 Ft(o,e){const t=pn[e];return!!t&&!!t[o.slice(0,4)]}function Je(o,e,t=!0){return!o.split(",").some(n=>!nt(n,e,t))}function nt(o,e,t=!0){var n;const r=sn(t);return(n=r==null?void 0:r.isTypeSupported(vt(o,e)))!=null?n:!1}function vt(o,e){return`${e}/mp4;codecs="${o}"`}function bt(o){if(o){const e=o.substring(0,4);return pn.video[e]}return 2}function ft(o){return o.split(",").reduce((e,t)=>{const n=pn.video[t];return n?(n*2+e)/(e?3:2):(pn.audio[t]+e)/(e?2:1)},0)}const It={};function _t(o,e=!0){if(It[o])return It[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let n=0;n<t.length;n++)if(nt(t[n],"audio",e))return It[o]=t[n],t[n];return o}const jt=/flac|opus/i;function an(o,e=!0){return o.replace(jt,t=>_t(t.toLowerCase(),e))}function nn(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function Sn(o){const e=o.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}const Ln=/#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,Fn=/#EXT-X-MEDIA:(.*)/g,cn=/^#EXT(?:INF|-X-TARGETDURATION):/m,rn=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"),$n=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 An{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return de.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return cn.test(e)}static parseMasterPlaylist(e,t){const n=Dt(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Ln.lastIndex=0;let a;for(;(a=Ln.exec(e))!=null;)if(a[1]){var c;const _=new F(a[1]);yt(r,_,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const S=Ht(r,a[2]),R={attrs:_,bitrate:_.decimalInteger("BANDWIDTH")||_.decimalInteger("AVERAGE-BANDWIDTH"),name:_.NAME,url:An.resolve(S,t)},re=_.decimalResolution("RESOLUTION");re&&(R.width=re.width,R.height=re.height),Nn(_.CODECS,R),(c=R.unknownCodecs)!=null&&c.length||i.push(R),r.levels.push(R)}else if(a[3]){const _=a[3],S=a[4];switch(_){case"SESSION-DATA":{const R=new F(S);yt(r,R,["DATA-ID","LANGUAGE","VALUE","URI"]);const re=R["DATA-ID"];re&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[re]=R);break}case"SESSION-KEY":{const R=Wn(S,t,r);R.encrypted&&R.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(R)):x.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${S}"`);break}case"DEFINE":{{const R=new F(S);yt(r,R,["NAME","VALUE","QUERYPARAM"]),zt(r,R,t)}break}case"CONTENT-STEERING":{const R=new F(S);yt(r,R,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:An.resolve(R["SERVER-URI"],t),pathwayId:R["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Cn(S);break}}}const h=i.length>0&&i.length<r.levels.length;return r.levels=h?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,c={AUDIO:a.map(_=>({id:_.attrs.AUDIO,audioCodec:_.audioCodec})),SUBTITLES:a.map(_=>({id:_.attrs.SUBTITLES,textCodec:_.textCodec})),"CLOSED-CAPTIONS":[]};let h=0;for(Fn.lastIndex=0;(r=Fn.exec(e))!==null;){const _=new F(r[1]),S=_.TYPE;if(S){const R=c[S],re=i[S]||[];i[S]=re,yt(n,_,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const ye=_.LANGUAGE,me=_["ASSOC-LANGUAGE"],Se=_.CHANNELS,ke=_.CHARACTERISTICS,Xe=_["INSTREAM-ID"],At={attrs:_,bitrate:0,id:h++,groupId:_["GROUP-ID"]||"",name:_.NAME||ye||"",type:S,default:_.bool("DEFAULT"),autoselect:_.bool("AUTOSELECT"),forced:_.bool("FORCED"),lang:ye,url:_.URI?An.resolve(_.URI,t):""};if(me&&(At.assocLang=me),Se&&(At.channels=Se),ke&&(At.characteristics=ke),Xe&&(At.instreamId=Xe),R!=null&&R.length){const St=An.findGroup(R,At.groupId)||R[0];zn(At,St,"audioCodec"),zn(At,St,"textCodec")}re.push(At)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){const c=new K(t),h=c.fragments;let _=null,S=0,R=0,re=0,ye=0,me=null,Se=new se(r,t),ke,Xe,At,St=-1,en=!1,Pt=null;for(rn.lastIndex=0,c.m3u8=e,c.hasVariableRefs=Dt(e);(ke=rn.exec(e))!==null;){en&&(en=!1,Se=new se(r,t),Se.start=re,Se.sn=S,Se.cc=ye,Se.level=n,_&&(Se.initSegment=_,Se.rawProgramDateTime=_.rawProgramDateTime,_.rawProgramDateTime=null,Pt&&(Se.setByteRange(Pt),Pt=null)));const Vn=ke[1];if(Vn){Se.duration=parseFloat(Vn);const vn=(" "+ke[2]).slice(1);Se.title=vn||null,Se.tagList.push(vn?["INF",Vn,vn]:["INF",Vn])}else if(ke[3]){if(A(Se.duration)){Se.start=re,At&&Tn(Se,At,c),Se.sn=S,Se.level=n,Se.cc=ye,h.push(Se);const vn=(" "+ke[3]).slice(1);Se.relurl=Ht(c,vn),Yn(Se,me),me=Se,re+=Se.duration,S++,R=0,en=!0}}else if(ke[4]){const vn=(" "+ke[4]).slice(1);me?Se.setByteRange(vn,me):Se.setByteRange(vn)}else if(ke[5])Se.rawProgramDateTime=(" "+ke[5]).slice(1),Se.tagList.push(["PROGRAM-DATE-TIME",Se.rawProgramDateTime]),St===-1&&(St=h.length);else{if(ke=ke[0].match($n),!ke){x.warn("No matches on slow regex match for level playlist!");continue}for(Xe=1;Xe<ke.length&&typeof ke[Xe]=="undefined";Xe++);const vn=(" "+ke[Xe]).slice(1),kn=(" "+ke[Xe+1]).slice(1),Cr=ke[Xe+2]?(" "+ke[Xe+2]).slice(1):"";switch(vn){case"PLAYLIST-TYPE":c.type=kn.toUpperCase();break;case"MEDIA-SEQUENCE":S=c.startSN=parseInt(kn);break;case"SKIP":{const Qn=new F(kn);yt(c,Qn,["RECENTLY-REMOVED-DATERANGES"]);const Sr=Qn.decimalInteger("SKIPPED-SEGMENTS");if(A(Sr)){c.skippedSegments=Sr;for(let fr=Sr;fr--;)h.unshift(null);S+=Sr}const wr=Qn.enumeratedString("RECENTLY-REMOVED-DATERANGES");wr&&(c.recentlyRemovedDateranges=wr.split(" "));break}case"TARGETDURATION":c.targetduration=Math.max(parseInt(kn),1);break;case"VERSION":c.version=parseInt(kn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(kn||Cr)&&Se.tagList.push(Cr?[kn,Cr]:[kn]);break;case"DISCONTINUITY":ye++,Se.tagList.push(["DIS"]);break;case"GAP":Se.gap=!0,Se.tagList.push([vn]);break;case"BITRATE":Se.tagList.push([vn,kn]);break;case"DATERANGE":{const Qn=new F(kn);yt(c,Qn,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),yt(c,Qn,Qn.clientAttrs);const Sr=new Re(Qn,c.dateRanges[Qn.ID]);Sr.isValid||c.skippedSegments?c.dateRanges[Sr.id]=Sr:x.warn(`Ignoring invalid DATERANGE tag: "${kn}"`),Se.tagList.push(["EXT-X-DATERANGE",kn]);break}case"DEFINE":{{const Qn=new F(kn);yt(c,Qn,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Qn?Gt(c,Qn,a):zt(c,Qn,t)}break}case"DISCONTINUITY-SEQUENCE":ye=parseInt(kn);break;case"KEY":{const Qn=Wn(kn,t,c);if(Qn.isSupported()){if(Qn.method==="NONE"){At=void 0;break}At||(At={}),At[Qn.keyFormat]&&(At=s({},At)),At[Qn.keyFormat]=Qn}else x.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${kn}"`);break}case"START":c.startTimeOffset=Cn(kn);break;case"MAP":{const Qn=new F(kn);if(yt(c,Qn,["BYTERANGE","URI"]),Se.duration){const Sr=new se(r,t);or(Sr,Qn,n,At),_=Sr,Se.initSegment=_,_.rawProgramDateTime&&!Se.rawProgramDateTime&&(Se.rawProgramDateTime=_.rawProgramDateTime)}else{const Sr=Se.byteRangeEndOffset;if(Sr){const wr=Se.byteRangeStartOffset;Pt=`${Sr-wr}@${wr}`}else Pt=null;or(Se,Qn,n,At),_=Se,en=!0}break}case"SERVER-CONTROL":{const Qn=new F(kn);c.canBlockReload=Qn.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=Qn.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&Qn.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=Qn.optionalFloat("PART-HOLD-BACK",0),c.holdBack=Qn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Qn=new F(kn);c.partTarget=Qn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Qn=c.partList;Qn||(Qn=c.partList=[]);const Sr=R>0?Qn[Qn.length-1]:void 0,wr=R++,fr=new F(kn);yt(c,fr,["BYTERANGE","URI"]);const Zr=new D(fr,Se,t,wr,Sr);Qn.push(Zr),Se.duration+=Zr.duration;break}case"PRELOAD-HINT":{const Qn=new F(kn);yt(c,Qn,["URI"]),c.preloadHint=Qn;break}case"RENDITION-REPORT":{const Qn=new F(kn);yt(c,Qn,["URI"]),c.renditionReports=c.renditionReports||[],c.renditionReports.push(Qn);break}default:x.warn(`line parsed but not handled: ${ke}`);break}}}me&&!me.relurl?(h.pop(),re-=me.duration,c.partList&&(c.fragmentHint=me)):c.partList&&(Yn(Se,me),Se.cc=ye,c.fragmentHint=Se,At&&Tn(Se,At,c));const _n=h.length,Qt=h[0],In=h[_n-1];if(re+=c.skippedSegments*c.targetduration,re>0&&_n&&In){c.averagetargetduration=re/_n;const Vn=In.sn;c.endSN=Vn!=="initSegment"?Vn:0,c.live||(In.endList=!0),Qt&&(c.startCC=Qt.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(re+=c.fragmentHint.duration),c.totalduration=re,c.endCC=ye,St>0&&Pn(h,St),c}}function Wn(o,e,t){var n,r;const i=new F(o);yt(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const a=(n=i.METHOD)!=null?n:"",c=i.URI,h=i.hexadecimalInteger("IV"),_=i.KEYFORMATVERSIONS,S=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!h&&x.error(`Invalid IV: ${i.IV}`);const R=c?An.resolve(c,e):"",re=(_||"1").split("/").map(Number).filter(Number.isFinite);return new Bt(a,R,S,re,h)}function Cn(o){const t=new F(o).decimalFloatingPoint("TIME-OFFSET");return A(t)?t:null}function Nn(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Ft(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function zn(o,e,t){const n=e[t];n&&(o[t]=n)}function Pn(o,e){let t=o[e];for(let n=e;n--;){const r=o[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Yn(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),A(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function or(o,e,t,n){o.relurl=e.URI,e.BYTERANGE&&o.setByteRange(e.BYTERANGE),o.level=t,o.sn="initSegment",n&&(o.levelkeys=n),o.initSegment=null}function Tn(o,e,t){o.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(o)}var tn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ke={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function un(o){const{type:e}=o;switch(e){case tn.AUDIO_TRACK:return Ke.AUDIO;case tn.SUBTITLE_TRACK:return Ke.SUBTITLE;default:return Ke.MAIN}}function On(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Hn{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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(u.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,a=new i(t);return this.loaders[e.type]=a,a}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:tn.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:tn.LEVEL,url:a,deliveryDirectives:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:tn.AUDIO_TRACK,url:i,deliveryDirectives:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:tn.SUBTITLE_TRACK,url:i,deliveryDirectives:a})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const _=r.context;if(_&&_.url===e.url&&_.level===e.level){x.trace("[playlist-loader]: playlist request ongoing");return}x.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===tn.MANIFEST?i=n.manifestLoadPolicy.default:i=s({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),A((t=e.deliveryDirectives)==null?void 0:t.part)){let _;if(e.type===tn.LEVEL&&e.level!==null?_=this.hls.levels[e.level].details:e.type===tn.AUDIO_TRACK&&e.id!==null?_=this.hls.audioTracks[e.id].details:e.type===tn.SUBTITLE_TRACK&&e.id!==null&&(_=this.hls.subtitleTracks[e.id].details),_){const S=_.partTarget,R=_.targetduration;if(S&&R){const re=Math.max(S*3,R*.8)*1e3;i=s({},i,{maxTimeToFirstByteMs:Math.min(re,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(re,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},c={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},h={onSuccess:(_,S,R,re)=>{const ye=this.getInternalLoader(R);this.resetInternalLoader(R.type);const me=_.data;if(me.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(_,R,new Error("no EXTM3U delimiter"),re||null,S);return}S.parsing.start=performance.now(),An.isMediaPlaylist(me)?this.handleTrackOrLevelPlaylist(_,S,R,re||null,ye):this.handleMasterPlaylist(_,S,R,re)},onError:(_,S,R,re)=>{this.handleNetworkError(S,R,!1,_,re)},onTimeout:(_,S,R)=>{this.handleNetworkError(S,R,!0,void 0,_)}};r.load(e,c,h)}handleMasterPlaylist(e,t,n,r){const i=this.hls,a=e.data,c=On(e,n),h=An.parseMasterPlaylist(a,c);if(h.playlistParsingError){this.handleManifestParsingError(e,n,h.playlistParsingError,r,t);return}const{contentSteering:_,levels:S,sessionData:R,sessionKeys:re,startTimeOffset:ye,variableList:me}=h;this.variableList=me;const{AUDIO:Se=[],SUBTITLES:ke,"CLOSED-CAPTIONS":Xe}=An.parseMasterPlaylistMedia(a,c,h);Se.length&&!Se.some(St=>!St.url)&&S[0].audioCodec&&!S[0].attrs.AUDIO&&(x.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Se.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new F({}),bitrate:0,url:""})),i.trigger(u.MANIFEST_LOADED,{levels:S,audioTracks:Se,subtitles:ke,captions:Xe,contentSteering:_,url:c,stats:t,networkDetails:r,sessionData:R,sessionKeys:re,startTimeOffset:ye,variableList:me})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:c,level:h,type:_}=n,S=On(e,n),R=0,re=A(h)?h:A(c)?c:0,ye=un(n),me=An.parseLevelPlaylist(e.data,S,re,ye,R,this.variableList);if(_===tn.MANIFEST){const Se={attrs:new F({}),bitrate:0,details:me,name:"",url:S};a.trigger(u.MANIFEST_LOADED,{levels:[Se],audioTracks:[],url:S,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=me,this.handlePlaylistLoaded(me,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.MANIFEST_PARSING_ERROR,fatal:t.type===tn.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===tn.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===tn.AUDIO_TRACK||e.type===tn.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(a);x.warn(`[playlist-loader]: ${a}`);let h=b.UNKNOWN,_=!1;const S=this.getInternalLoader(e);switch(e.type){case tn.MANIFEST:h=n?b.MANIFEST_LOAD_TIMEOUT:b.MANIFEST_LOAD_ERROR,_=!0;break;case tn.LEVEL:h=n?b.LEVEL_LOAD_TIMEOUT:b.LEVEL_LOAD_ERROR,_=!1;break;case tn.AUDIO_TRACK:h=n?b.AUDIO_TRACK_LOAD_TIMEOUT:b.AUDIO_TRACK_LOAD_ERROR,_=!1;break;case tn.SUBTITLE_TRACK:h=n?b.SUBTITLE_TRACK_LOAD_TIMEOUT:b.SUBTITLE_LOAD_ERROR,_=!1;break}S&&this.resetInternalLoader(e.type);const R={type:y.NETWORK_ERROR,details:h,fatal:_,url:e.url,loader:S,context:e,error:c,networkDetails:t,stats:i};if(r){const re=(t==null?void 0:t.url)||e.url;R.response=j({url:re,data:void 0},r)}this.hls.trigger(u.ERROR,R)}handlePlaylistLoaded(e,t,n,r,i,a){const c=this.hls,{type:h,level:_,id:S,groupId:R,deliveryDirectives:re}=r,ye=On(t,r),me=un(r),Se=typeof r.level=="number"&&me===Ke.MAIN?_:void 0;if(!e.fragments.length){const Xe=new Error("No Segments found in Playlist");c.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.LEVEL_EMPTY_ERROR,fatal:!1,url:ye,error:Xe,reason:Xe.message,response:t,context:r,level:Se,parent:me,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const ke=e.playlistParsingError;if(ke){c.trigger(u.ERROR,{type:y.NETWORK_ERROR,details:b.LEVEL_PARSING_ERROR,fatal:!1,url:ye,error:ke,reason:ke.message,response:t,context:r,level:Se,parent:me,networkDetails:i,stats:n});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),h){case tn.MANIFEST:case tn.LEVEL:c.trigger(u.LEVEL_LOADED,{details:e,level:Se||0,id:S||0,stats:n,networkDetails:i,deliveryDirectives:re});break;case tn.AUDIO_TRACK:c.trigger(u.AUDIO_TRACK_LOADED,{details:e,id:S||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:re});break;case tn.SUBTITLE_TRACK:c.trigger(u.SUBTITLE_TRACK_LOADED,{details:e,id:S||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:re});break}}}function Gn(o,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=o,e.dispatchEvent(t)}function nr(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(n){x.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,o.addCue(r)}catch(r){x.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function rr(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 Un(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=yn(o.cues,e,t);for(let a=0;a<i.length;a++)(!n||n(i[a]))&&o.removeCue(i[a])}r==="disabled"&&(o.mode=r)}function qn(o,e){if(e<o[0].startTime)return 0;const t=o.length-1;if(e>o[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<o[i].startTime)r=i-1;else if(e>o[i].startTime&&n<t)n=i+1;else return i}return o[n].startTime-e<e-o[r].startTime?n:r}function yn(o,e,t){const n=[],r=qn(o,e);if(r>-1)for(let i=r,a=o.length;i<a;i++){const c=o[i];if(c.startTime>=e&&c.endTime<=t)n.push(c);else if(c.startTime>t)return n}return n}function ln(o){const e=[];for(let t=0;t<o.length;t++){const n=o[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(o[t])}return e}var Bn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const tr=.25;function lr(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function kr(o,e,t,n,r){let i=new o(e,t,"");try{i.value=n,r&&(i.type=r)}catch(a){i=new o(e,t,JSON.stringify(r?j({type:r},n):n))}return i}const En=(()=>{const o=lr();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function hr(o,e){return o.getTime()/1e3-e}function dr(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class mr{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(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(rr(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 n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Gn(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=lr();if(a)for(let c=0;c<i.length;c++){const h=i[c].type;if(h===Bn.emsg&&!n||!r)continue;const _=ce(i[c].data);if(_){const S=i[c].pts;let R=S+i[c].duration;R>En&&(R=En),R-S<=0&&(R=S+tr);for(let ye=0;ye<_.length;ye++){const me=_[ye];if(!Q(me)){this.updateId3CueEnds(S,h);const Se=kr(a,S,R,me,h);Se&&this.id3Track.addCue(Se)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const a=r[i];a.type===t&&a.startTime<e&&a.endTime===En&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:h}}=a;if(i&&(c||h)){let _;r==="audio"?_=S=>S.type===Bn.audioId3&&h:r==="video"?_=S=>S.type===Bn.emsg&&c:_=S=>S.type===Bn.audioId3&&h||S.type===Bn.emsg&&c,Un(i,t,n,_)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,a=Object.keys(i);if(r){const S=Object.keys(n).filter(R=>!a.includes(R));for(let R=S.length;R--;){const re=S[R];Object.keys(n[re].cues).forEach(ye=>{r.removeCue(n[re].cues[ye])}),delete n[re]}}const c=t.fragments[t.fragments.length-1];if(a.length===0||!A(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const h=c.programDateTime/1e3-c.start,_=lr();for(let S=0;S<a.length;S++){const R=a[S],re=i[R],ye=hr(re.startDate,h),me=n[R],Se=(me==null?void 0:me.cues)||{};let ke=(me==null?void 0:me.durationKnown)||!1,Xe=En;const At=re.endDate;if(At)Xe=hr(At,h),ke=!0;else if(re.endOnNext&&!ke){const en=a.reduce((Pt,_n)=>{if(_n!==re.id){const Qt=i[_n];if(Qt.class===re.class&&Qt.startDate>re.startDate&&(!Pt||re.startDate<Pt.startDate))return Qt}return Pt},null);en&&(Xe=hr(en.startDate,h),ke=!0)}const St=Object.keys(re.attr);for(let en=0;en<St.length;en++){const Pt=St[en];if(!fe(Pt))continue;const _n=Se[Pt];if(_n)ke&&!me.durationKnown&&(_n.endTime=Xe);else if(_){let Qt=re.attr[Pt];be(Pt)&&(Qt=dr(Qt));const In=kr(_,ye,Xe,{key:Pt,data:Qt},Bn.dateRange);In&&(In.id=R,this.id3Track.addCue(In),Se[Pt]=In)}}n[R]={cues:Se,dateRange:re,durationKnown:ke}}}}class Fr{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:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:a,lowLatencyMode:c}=this.config,h=this.hls.userConfig;let _=c&&n||t;(h.liveSyncDuration||h.liveSyncDurationCount||_===0)&&(_=i!==void 0?i:a*r);const S=r;return _+Math.min(this.stallCount*1,S)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,c=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),c)}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 n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(u.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(u.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 n;t.details===b.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.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 n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const a=this.targetLatency;if(a===null)return;const c=n-a,h=Math.min(this.maxLatency,a+t.targetduration);if(c<h&&c>.05&&this.forwardBufferLength>1){const S=Math.min(2,Math.max(1,i)),R=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;e.playbackRate=Math.min(S,Math.max(1,R))}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 Ur=["NONE","TYPE-0","TYPE-1",null];function br(o){return Ur.indexOf(o)>-1}const Dr=["SDR","PQ","HLG"];function gr(o){return!!o&&Dr.indexOf(o)>-1}var jr={No:"",Yes:"YES",v2:"v2"};function Vr(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?jr.v2:jr.Yes:jr.No}class ii{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Br{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 ti(this._audioGroups,e)}hasSubtitleGroup(e){return ti(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function ti(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function ar(o,e){const t=e.startPTS;if(A(t)){let n=0,r;e.sn>o.sn?(n=t-o.start,r=o):(n=o.start-t,r=e),r.duration!==n&&(r.duration=n)}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 si(o,e,t,n,r,i){n-t<=0&&(x.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,h=n;const _=e.startPTS,S=e.endPTS;if(A(_)){const ke=Math.abs(_-t);A(e.deltaPTS)?e.deltaPTS=Math.max(ke,e.deltaPTS):e.deltaPTS=ke,c=Math.max(t,_),t=Math.min(t,_),r=Math.min(r,e.startDTS),h=Math.min(n,S),n=Math.max(n,S),i=Math.max(i,e.endDTS)}const R=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=h,e.endDTS=i;const re=e.sn;if(!o||re<o.startSN||re>o.endSN)return 0;let ye;const me=re-o.startSN,Se=o.fragments;for(Se[me]=e,ye=me;ye>0;ye--)ar(Se[ye],Se[ye-1]);for(ye=me;ye<Se.length-1;ye++)ar(Se[ye],Se[ye+1]);return o.fragmentHint&&ar(Se[Se.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,R}function vi(o,e){let t=null;const n=o.fragments;for(let c=n.length-1;c>=0;c--){const h=n[c].initSegment;if(h){t=h;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let r;hi(o,e,(c,h,_,S)=>{if(e.skippedSegments&&h.cc!==c.cc){const R=c.cc-h.cc;for(let re=_;re<S.length;re++)S[re].cc+=R}A(c.startPTS)&&A(c.endPTS)&&(h.start=h.startPTS=c.startPTS,h.startDTS=c.startDTS,h.maxStartPTS=c.maxStartPTS,h.endPTS=c.endPTS,h.endDTS=c.endDTS,h.minEndPTS=c.minEndPTS,h.duration=c.endPTS-c.startPTS,h.duration&&(r=h),e.PTSKnown=e.alignedSliding=!0),h.elementaryStreams=c.elementaryStreams,h.loader=c.loader,h.stats=c.stats,c.initSegment&&(h.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(h=>{var _;h&&(!h.initSegment||h.initSegment.relurl===((_=t)==null?void 0:_.relurl))&&(h.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){x.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let c=e.skippedSegments;c--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=fi(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}Lr(o.partList,e.partList,(c,h)=>{h.elementaryStreams=c.elementaryStreams,h.stats=c.stats}),r?si(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):pr(o,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.driftStart;const a=e.advancedDateTime;if(e.advanced&&a){const c=e.edge;e.driftStart||(e.driftStartTime=a,e.driftStart=c),e.driftEndTime=a,e.driftEnd=c}else e.driftEndTime=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime}function fi(o,e,t){const n=s({},o);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Re(e[r].attr,n[r]);i.isValid?n[r]=i:x.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function Lr(o,e,t){if(o&&e){let n=0;for(let r=0,i=o.length;r<=i;r++){const a=o[r],c=e[r+n];a&&c&&a.index===c.index&&a.fragment.sn===c.fragment.sn?t(a,c):n--}}}function hi(o,e,t){const n=e.skippedSegments,r=Math.max(o.startSN,e.startSN)-e.startSN,i=(o.fragmentHint?1:0)+(n?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,a=e.startSN-o.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,h=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let _=r;_<=i;_++){const S=h[a+_];let R=c[_];n&&!R&&_<n&&(R=e.fragments[_]=S),S&&R&&t(S,R,_,c)}}function pr(o,e){const t=e.startSN+e.skippedSegments-o.startSN,n=o.fragments;t<0||t>=n.length||Wt(e,n[t].start)}function Wt(o,e){if(e){const t=o.fragments;for(let n=o.skippedSegments;n<t.length;n++)t[n].start+=e;o.fragmentHint&&(o.fragmentHint.start+=e)}}function sr(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const n=o.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function vr(o,e,t){if(!(o!=null&&o.details))return null;const n=o.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Dn(o,e,t){var n;return o!=null&&o.details?Mn((n=o.details)==null?void 0:n.partList,e,t):null}function Mn(o,e,t){if(o)for(let n=o.length;n--;){const r=o[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function xn(o){o.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function bn(o){switch(o.details){case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_TIMEOUT:case b.LEVEL_LOAD_TIMEOUT:case b.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Xn(o,e){const t=bn(e);return o.default[`${t?"timeout":"error"}Retry`]}function ur(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function Pr(o){return j(j({},o),{errorRetry:null,timeoutRetry:null})}function Tr(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,i=e<o.maxNumRetry&&(Rr(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,i):i}function Rr(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Mr={search:function(o,e){let t=0,n=o.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=o[r];const a=e(i);if(a>0)t=r+1;else if(a<0)n=r-1;else return i}return null}};function ui(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!A(e))return null;const n=o[0].programDateTime;if(e<(n||0))return null;const r=o[o.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<o.length;++i){const a=o[i];if(bi(e,t,a))return a}return null}function Yr(o,e,t=0,n=0,r=.005){let i=null;if(o){i=e[o.sn-e[0].sn+1]||null;const c=o.endDTS-t;c>0&&c<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!o||o.level===i.level)&&Bi(t,n,i)===0||pi(i,o,Math.min(r,n))))return i;const a=Mr.search(e,Bi.bind(null,t,n));return a&&(a!==o||!i)?a:i}function pi(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return o.start<=n}return!1}function Bi(o=0,e=0,t){if(t.start<=o&&t.start+t.duration>o)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=o?1:t.start-n>o&&t.start?-1:0}function bi(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function jn(o,e){return Mr.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var Zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},yr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Jr{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(u.ERROR,this.onError,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.ERROR,this.onError,this),e.off(u.ERROR,this.onErrorOut,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.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)===Ke.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,a=t.context;switch(t.details){case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case b.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Zn.DoNothing,flags:yr.None};return}case b.FRAG_GAP:case b.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Zn.SendAlternateToPenaltyBox;return}case b.LEVEL_EMPTY_ERROR:case b.LEVEL_PARSING_ERROR:{var c,h;const _=t.parent===Ke.MAIN?t.level:i.loadLevel;t.details===b.LEVEL_EMPTY_ERROR&&((c=t.context)!=null&&(h=c.levelDetails)!=null&&h.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,_):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,_))}return;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level));return;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.SUBTITLE_LOAD_ERROR:case b.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const _=i.levels[i.loadLevel];if(_&&(a.type===tn.AUDIO_TRACK&&_.hasAudioGroup(a.groupId)||a.type===tn.SUBTITLE_TRACK&&_.hasSubtitleGroup(a.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Zn.SendAlternateToPenaltyBox,t.errorAction.flags=yr.MoveAllAlternatesMatchingHost;return}}return;case b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const _=i.levels[i.loadLevel],S=_==null?void 0:_.attrs["HDCP-LEVEL"];S?t.errorAction={action:Zn.SendAlternateToPenaltyBox,flags:yr.MoveAllAlternatesMatchingHDCP,hdcpLevel:S}:this.keySystemError(t)}return;case b.BUFFER_ADD_CODEC_ERROR:case b.REMUX_ALLOC_ERROR:case b.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case b.INTERNAL_EXCEPTION:case b.BUFFER_APPENDING_ERROR:case b.BUFFER_FULL_ERROR:case b.LEVEL_SWITCH_ERROR:case b.BUFFER_STALLED_ERROR:case b.BUFFER_SEEK_OVER_HOLE:case b.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Zn.DoNothing,flags:yr.None};return}t.type===y.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Xn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Tr(r,i,bn(e),e.response))return{action:Zn.RetryRequest,flags:yr.None,retryConfig:r,retryCount:i};const c=this.getLevelSwitchAction(e,t);return r&&(c.retryConfig=r,c.retryCount=i),c}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,c=Xn(e.details.startsWith("key")?a:i,e),h=t.levels.reduce((S,R)=>S+R.fragmentError,0);if(r&&(e.details!==b.FRAG_GAP&&r.fragmentError++,Tr(c,h,bn(e),e.response)))return{action:Zn.RetryRequest,flags:yr.None,retryConfig:c,retryCount:h};const _=this.getLevelSwitchAction(e,n);return c&&(_.retryConfig=c,_.retryCount=h),_}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const _=e.details;r.loadError++,_===b.BUFFER_APPEND_ERROR&&r.fragmentError++;let S=-1;const{levels:R,loadLevel:re,minAutoLevel:ye,maxAutoLevel:me}=n;n.autoLevelEnabled||(n.loadLevel=-1);const Se=(i=e.frag)==null?void 0:i.type,Xe=(Se===Ke.AUDIO&&_===b.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(_===b.BUFFER_ADD_CODEC_ERROR||_===b.BUFFER_APPEND_ERROR))&&R.some(({audioCodec:_n})=>r.audioCodec!==_n),St=e.sourceBufferName==="video"&&(_===b.BUFFER_ADD_CODEC_ERROR||_===b.BUFFER_APPEND_ERROR)&&R.some(({codecSet:_n,audioCodec:Qt})=>r.codecSet!==_n&&r.audioCodec===Qt),{type:en,groupId:Pt}=(a=e.context)!=null?a:{};for(let _n=R.length;_n--;){const Qt=(_n+re)%R.length;if(Qt!==re&&Qt>=ye&&Qt<=me&&R[Qt].loadError===0){var c,h;const In=R[Qt];if(_===b.FRAG_GAP&&Se===Ke.MAIN&&e.frag){const Vn=R[Qt].details;if(Vn){const vn=Yr(e.frag,Vn.fragments,e.frag.start);if(vn!=null&&vn.gap)continue}}else{if(en===tn.AUDIO_TRACK&&In.hasAudioGroup(Pt)||en===tn.SUBTITLE_TRACK&&In.hasSubtitleGroup(Pt))continue;if(Se===Ke.AUDIO&&(c=r.audioGroups)!=null&&c.some(Vn=>In.hasAudioGroup(Vn))||Se===Ke.SUBTITLE&&(h=r.subtitleGroups)!=null&&h.some(Vn=>In.hasSubtitleGroup(Vn))||Xe&&r.audioCodec===In.audioCodec||!Xe&&r.audioCodec!==In.audioCodec||St&&r.codecSet===In.codecSet)continue}S=Qt;break}}if(S>-1&&n.loadLevel!==S)return e.levelRetry=!0,this.playlistError=0,{action:Zn.SendAlternateToPenaltyBox,flags:yr.None,nextAutoLevel:S}}return{action:Zn.SendAlternateToPenaltyBox,flags:yr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Zn.DoNothing:break;case Zn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==b.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Zn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:a}=n;switch(r){case yr.None:this.switchLevel(e,a);break;case yr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Ur[Ur.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,a)}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 Ir{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,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let a=0;a<r.length;a++){const c=r[a];let h;try{h=new self.URL(c.URI,t.url).href}catch(_){x.warn(`Could not construct new URL for Rendition Report: ${_}`),h=c.URI||""}if(h===e){i=a;break}else h===e.substring(0,h.length)&&(i=a)}if(i!==-1){const a=r[i],c=parseInt(a["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let h=parseInt(a["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const S=Math.min(t.age-t.partTarget,t.targetduration);h>=0&&S>t.partTarget&&(h+=1)}const _=n&&Vr(n);return new ii(c,h>=0?h:void 0,_)}}}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,n){const{details:r,stats:i}=t,a=self.performance.now(),c=i.loading.first?Math.max(0,a-i.loading.first):0;if(r.advancedDateTime=Date.now()-c,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&vi(n,r),!this.canLoad||!r.live)return;let h,_,S;if(r.canBlockReload&&r.endSN&&r.advanced){const ke=this.hls.config.lowLatencyMode,Xe=r.lastPartSn,At=r.endSN,St=r.lastPartIndex,en=St!==-1,Pt=Xe===At,_n=ke?0:St;en?(_=Pt?At+1:Xe,S=Pt?_n:St+1):_=At+1;const Qt=r.age,In=Qt+r.ageHeader;let Vn=Math.min(In-r.partTarget,r.targetduration*1.5);if(Vn>0){if(n&&Vn>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Vn} with playlist age: ${r.age}`),Vn=0;else{const vn=Math.floor(Vn/r.targetduration);if(_+=vn,S!==void 0){const kn=Math.round(Vn%r.targetduration/r.partTarget);S+=kn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Qt.toFixed(2)}s goal: ${Vn} skip sn ${vn} to part ${S}`)}r.tuneInGoal=Vn}if(h=this.getDeliveryDirectives(r,t.deliveryDirectives,_,S),ke||!Pt){this.loadPlaylist(h);return}}else(r.canBlockReload||r.canSkipUntil)&&(h=this.getDeliveryDirectives(r,t.deliveryDirectives,_,S));const R=this.hls.mainForwardBufferInfo,re=R?R.end-R.len:0,ye=(r.edge-re)*1e3,me=sr(r,ye);r.updated&&a>this.requestScheduled+me&&(this.requestScheduled=i.loading.start),_!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+me-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+me<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=me);let Se=this.requestScheduled-a;Se=Math.max(0,Se),this.log(`reload live playlist ${e} in ${Math.round(Se)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(h),Se)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Vr(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=jr.No),new ii(n,r,i)}checkRetry(e){const t=e.details,n=bn(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:c}=r||{},h=!!r&&!!c&&(i===Zn.RetryRequest||!r.resolved&&i===Zn.SendAlternateToPenaltyBox);if(h){var _;if(this.requestScheduled=-1,a>=c.maxNumRetry)return!1;if(n&&(_=e.context)!=null&&_.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const S=ur(c,a);this.timer=self.setTimeout(()=>this.loadPlaylist(),S),this.warn(`Retrying playlist loading ${a+1}/${c.maxNumRetry} after "${t}" in ${S}ms`)}e.levelRetry=!0,r.resolved=!0}return h}}class _i{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Wi{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new _i(e),this.fast_=new _i(t),this.defaultTTFB_=r,this.ttfb_=new _i(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new _i(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new _i(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new _i(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const Hi={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ai={};function aa(o,e,t,n,r,i){const a=o.audioCodec?o.audioGroups:null,c=i==null?void 0:i.audioCodec,h=i==null?void 0:i.channels,_=h?parseInt(h):c?1/0:2;let S=null;if(a!=null&&a.length)try{a.length===1&&a[0]?S=e.groups[a[0]].channels:S=a.reduce((R,re)=>{if(re){const ye=e.groups[re];if(!ye)throw new Error(`Audio track group ${re} not found`);Object.keys(ye.channels).forEach(me=>{R[me]=(R[me]||0)+ye.channels[me]})}return R},{2:0})}catch(R){return!0}return o.videoCodec!==void 0&&(o.width>1920&&o.height>1088||o.height>1920&&o.width>1088||o.frameRate>Math.max(n,30)||o.videoRange!=="SDR"&&o.videoRange!==t||o.bitrate>Math.max(r,8e6))||!!S&&A(_)&&Object.keys(S).some(R=>parseInt(R)>_)}function sa(o,e,t){const n=o.videoCodec,r=o.audioCodec;if(!n||!r||!t)return Promise.resolve(Hi);const i={width:o.width,height:o.height,bitrate:Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)),framerate:o.frameRate||30},a=o.videoRange;a!=="SDR"&&(i.transferFunction=a.toLowerCase());const c=n.split(",").map(h=>({type:"media-source",video:j(j({},i),{},{contentType:vt(h,"video")})}));return r&&o.audioGroups&&o.audioGroups.forEach(h=>{var _;h&&((_=e.groups[h])==null||_.tracks.forEach(S=>{if(S.groupId===h){const R=S.channels||"",re=parseFloat(R);A(re)&&re>2&&c.push.apply(c,r.split(",").map(ye=>({type:"media-source",audio:{contentType:vt(ye,"audio"),channels:""+re}})))}}))}),Promise.all(c.map(h=>{const _=oa(h);return Ai[_]||(Ai[_]=t.decodingInfo(h))})).then(h=>({supported:!h.some(_=>!_.supported),configurations:c,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:c,decodingInfoResults:[],error:h}))}function oa(o){const{audio:e,video:t}=o,n=t||e;if(n){const r=n.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}function ea(){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 la(o,e){let t=!1,n=[];return o&&(t=o!=="SDR",n=[o]),e&&(n=e.allowedVideoRanges||Dr.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ea(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Mi(o,e,t,n,r){const i=Object.keys(o),a=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,h=a&&parseInt(a)===2;let _=!0,S=!1,R=1/0,re=1/0,ye=1/0,me=0,Se=[];const{preferHDR:ke,allowedVideoRanges:Xe}=la(e,r);for(let Pt=i.length;Pt--;){const _n=o[i[Pt]];_=_n.channels[2]>0,R=Math.min(R,_n.minHeight),re=Math.min(re,_n.minFramerate),ye=Math.min(ye,_n.minBitrate);const Qt=Xe.filter(In=>_n.videoRanges[In]>0);Qt.length>0&&(S=!0,Se=Qt)}R=A(R)?R:0,re=A(re)?re:0;const At=Math.max(1080,R),St=Math.max(30,re);return ye=A(ye)?ye:t,t=Math.max(ye,t),S||(e=void 0,Se=[]),{codecSet:i.reduce((Pt,_n)=>{const Qt=o[_n];if(_n===Pt)return Pt;if(Qt.minBitrate>t)return oi(_n,`min bitrate of ${Qt.minBitrate} > current estimate of ${t}`),Pt;if(!Qt.hasDefaultAudio)return oi(_n,"no renditions with default or auto-select sound found"),Pt;if(c&&_n.indexOf(c.substring(0,4))%5!==0)return oi(_n,`audio codec preference "${c}" not found`),Pt;if(a&&!h){if(!Qt.channels[a])return oi(_n,`no renditions with ${a} channel sound found (channels options: ${Object.keys(Qt.channels)})`),Pt}else if((!c||h)&&_&&Qt.channels[2]===0)return oi(_n,"no renditions with stereo sound found"),Pt;return Qt.minHeight>At?(oi(_n,`min resolution of ${Qt.minHeight} > maximum of ${At}`),Pt):Qt.minFramerate>St?(oi(_n,`min framerate of ${Qt.minFramerate} > maximum of ${St}`),Pt):Se.some(In=>Qt.videoRanges[In]>0)?Qt.maxScore<me?(oi(_n,`max score of ${Qt.maxScore} < selected max of ${me}`),Pt):Pt&&(ft(_n)>=ft(Pt)||Qt.fragmentError>o[Pt].fragmentError)?Pt:(me=Qt.maxScore,_n):(oi(_n,`no variants with VIDEO-RANGE of ${JSON.stringify(Se)} found`),Pt)},void 0),videoRanges:Se,preferHDR:ke,minFramerate:re,minBitrate:ye}}function oi(o,e){x.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function ua(o){return o.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ta(o,e,t,n){return o.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const a=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!a,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const h=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,h),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,a&&a.forEach(_=>{if(!_)return;const S=e.groups[_];S&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?S.hasDefault:S.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(S.channels).forEach(R=>{c.channels[R]=(c.channels[R]||0)+S.channels[R]}))}),r},{})}function Si(o,e,t){if("attrs"in o){const n=e.indexOf(o);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Di(o,r,t))return n}return-1}function Di(o,e,t){const{groupId:n,name:r,lang:i,assocLang:a,default:c}=o,h=o.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===a)&&(c===void 0||e.default===c)&&(h===void 0||e.forced===h)&&(!("characteristics"in o)||Ar(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function Ar(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function cr(o,e){const{audioCodec:t,channels:n}=o;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function mi(o,e,t,n,r){const i=e[n],c=e.reduce((re,ye,me)=>{const Se=ye.uri;return(re[Se]||(re[Se]=[])).push(me),re},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const h=i.videoRange,_=i.frameRate,S=i.codecSet.substring(0,4),R=gi(e,n,re=>{if(re.videoRange!==h||re.frameRate!==_||re.codecSet.substring(0,4)!==S)return!1;const ye=re.audioGroups,me=t.filter(Se=>!ye||ye.indexOf(Se.groupId)!==-1);return Si(o,me,r)>-1});return R>-1?R:gi(e,n,re=>{const ye=re.audioGroups,me=t.filter(Se=>!ye||ye.indexOf(Se.groupId)!==-1);return Si(o,me,r)>-1})}function gi(o,e,t){for(let n=e;n>-1;n--)if(t(o[n]))return n;for(let n=e+1;n<o.length;n++)if(t(o[n]))return n;return-1}class qr{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:n,hls:r}=this,{autoLevelEnabled:i,media:a}=r;if(!t||!a)return;const c=performance.now(),h=n?n.stats:t.stats,_=n?n.duration:t.duration,S=c-h.loading.start,R=r.minAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||t.level<=R){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||a.paused||!a.playbackRate||!a.readyState)return;const re=r.mainForwardBufferInfo;if(re===null)return;const ye=this.bwEstimator.getEstimateTTFB(),me=Math.abs(a.playbackRate);if(S<=Math.max(ye,1e3*(_/(me*2))))return;const Se=re.len/me,ke=h.loading.first?h.loading.first-h.loading.start:-1,Xe=h.loaded&&ke>-1,At=this.getBwEstimate(),St=r.levels,en=St[t.level],Pt=h.total||Math.max(h.loaded,Math.round(_*en.averageBitrate/8));let _n=Xe?S-ke:S;_n<1&&Xe&&(_n=Math.min(S,h.loaded*8/At));const Qt=Xe?h.loaded*1e3/_n:0,In=Qt?(Pt-h.loaded)/Qt:Pt*8/At+ye/1e3;if(In<=Se)return;const Vn=Qt?Qt*8:At;let vn=Number.POSITIVE_INFINITY,kn;for(kn=t.level-1;kn>R;kn--){const Qn=St[kn].maxBitrate;if(vn=this.getTimeToLoadFrag(ye/1e3,Vn,_*Qn,!St[kn].details),vn<Se)break}if(vn>=In||vn>_*10)return;r.nextLoadLevel=r.nextAutoLevel=kn,Xe?this.bwEstimator.sample(S-Math.min(ye,ke),h.loaded):this.bwEstimator.sampleTTFB(S);const Cr=St[kn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Cr&&this.resetEstimator(Cr),this.clearTimer(),x.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${Se.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${In.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${vn.toFixed(3)} s
|
|
|
TTFB estimate: ${ke|0} ms
|
|
|
Current BW estimate: ${A(At)?At|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${kn} @ ${Cr|0} bps`),r.trigger(u.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:h})},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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(u.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case b.BUFFER_ADD_CODEC_ERROR:case b.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case b.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const a=performance.now(),c=i?i.stats:n.stats,h=a-c.loading.start,_=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&_>-1){const R=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(h-Math.min(R,_),c.loaded)}else this.bwEstimator.sampleTTFB(h)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,a=r?this.lastLevelLoadSec:0;return i+a}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.start;A(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===Ke.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,a=this.hls.levels[t.level],c=(a.loaded?a.loaded.bytes:0)+r.loaded,h=(a.loaded?a.loaded.duration:0)+i;a.loaded={bytes:c,duration:h},a.realBitrate=Math.round(8*c/h)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(u.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Ke.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const a=this.hls.firstLevel,c=Math.min(Math.max(a,t),e);return x.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${a} clamped to ${c}`),c}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const a=this.hls.levels;if(a.length>Math.max(e,i)&&a[e].loadError<=a[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this,{maxAutoLevel:r,config:i,minAutoLevel:a}=n,c=t?t.duration:e?e.duration:0,h=this.getBwEstimate(),_=this.getStarvationDelay();let S=i.abrBandWidthFactor,R=i.abrBandWidthUpFactor;if(_){const ke=this.findBestLevel(h,a,r,_,0,S,R);if(ke>=0)return ke}let re=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!_){const ke=this.bitrateTestDelay;ke&&(re=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-ke,x.info(`[abr] bitrate test took ${Math.round(1e3*ke)}ms, set first fragment max fetchDuration to ${Math.round(1e3*re)} ms`),S=R=1)}const ye=this.findBestLevel(h,a,r,_,re,S,R);if(x.info(`[abr] ${_?"rebuffering expected":"buffer is empty"}, optimal quality level ${ye}`),ye>-1)return ye;const me=n.levels[a],Se=n.levels[n.loadLevel];return(me==null?void 0:me.bitrate)<(Se==null?void 0:Se.bitrate)?a:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,a,c){var h;const _=r+i,S=this.lastLoadedFragLevel,R=S===-1?this.hls.firstLevel:S,{fragCurrent:re,partCurrent:ye}=this,{levels:me,allAudioTracks:Se,loadLevel:ke,config:Xe}=this.hls;if(me.length===1)return 0;const At=me[R],St=!!(At!=null&&(h=At.details)!=null&&h.live),en=ke===-1||S===-1;let Pt,_n="SDR",Qt=(At==null?void 0:At.frameRate)||0;const{audioPreference:In,videoPreference:Vn}=Xe,vn=this.audioTracksByGroup||(this.audioTracksByGroup=ua(Se));if(en){if(this.firstSelection!==-1)return this.firstSelection;const wr=this.codecTiers||(this.codecTiers=ta(me,vn,t,n)),fr=Mi(wr,_n,e,In,Vn),{codecSet:Zr,videoRanges:ni,minFramerate:ir,minBitrate:Jn,preferHDR:Gr}=fr;Pt=Zr,_n=Gr?ni[ni.length-1]:ni[0],Qt=ir,e=Math.max(e,Jn),x.log(`[abr] picked start tier ${JSON.stringify(fr)}`)}else Pt=At==null?void 0:At.codecSet,_n=At==null?void 0:At.videoRange;const kn=ye?ye.duration:re?re.duration:0,Cr=this.bwEstimator.getEstimateTTFB()/1e3,Qn=[];for(let wr=n;wr>=t;wr--){var Sr;const fr=me[wr],Zr=wr>R;if(!fr)continue;if(Xe.useMediaCapabilities&&!fr.supportedResult&&!fr.supportedPromise){const wi=navigator.mediaCapabilities;typeof(wi==null?void 0:wi.decodingInfo)=="function"&&aa(fr,vn,_n,Qt,e,In)?(fr.supportedPromise=sa(fr,vn,wi),fr.supportedPromise.then(Oi=>{if(!this.hls)return;fr.supportedResult=Oi;const Pi=this.hls.levels,Yi=Pi.indexOf(fr);Oi.error?x.warn(`[abr] MediaCapabilities decodingInfo error: "${Oi.error}" for level ${Yi} ${JSON.stringify(Oi)}`):Oi.supported||(x.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Yi} ${JSON.stringify(Oi)}`),Yi>-1&&Pi.length>1&&(x.log(`[abr] Removing unsupported level ${Yi}`),this.hls.removeLevel(Yi)))})):fr.supportedResult=Hi}if(Pt&&fr.codecSet!==Pt||_n&&fr.videoRange!==_n||Zr&&Qt>fr.frameRate||!Zr&&Qt>0&&Qt<fr.frameRate||fr.supportedResult&&!((Sr=fr.supportedResult.decodingInfoResults)!=null&&Sr[0].smooth)){Qn.push(wr);continue}const ni=fr.details,ir=(ye?ni==null?void 0:ni.partTarget:ni==null?void 0:ni.averagetargetduration)||kn;let Jn;Zr?Jn=c*e:Jn=a*e;const Gr=kn&&r>=kn*2&&i===0?me[wr].averageBitrate:me[wr].maxBitrate,Or=this.getTimeToLoadFrag(Cr,Jn,Gr*ir,ni===void 0);if(Jn>=Gr&&(wr===S||fr.loadError===0&&fr.fragmentError===0)&&(Or<=Cr||!A(Or)||St&&!this.bitrateTestDelay||Or<_)){const wi=this.forcedAutoLevel;return wr!==ke&&(wi===-1||wi!==ke)&&(Qn.length&&x.trace(`[abr] Skipped level(s) ${Qn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${me[Qn[0]].codecs}" ${me[Qn[0]].videoRange}; not compatible with "${At.codecs}" ${_n}`),x.info(`[abr] switch candidate:${R}->${wr} adjustedbw(${Math.round(Jn)})-bitrate=${Math.round(Jn-Gr)} ttfb:${Cr.toFixed(1)} avgDuration:${ir.toFixed(1)} maxFetchDuration:${_.toFixed(1)} fetchDuration:${Or.toFixed(1)} firstSelection:${en} codecSet:${Pt} videoRange:${_n} hls.loadLevel:${ke}`)),en&&(this.firstSelection=wr),wr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=Math.min(Math.max(e,n),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class Ci{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 $r={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class $i{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(u.BUFFER_APPENDED,this.onBufferAppended,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.BUFFER_APPENDED,this.onBufferAppended,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const a=i.end;if(i.start<=e&&a!==null&&e<=a)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:n}=this,r=Object.keys(n);for(let i=r.length;i--;){const a=n[r[i]];if((a==null?void 0:a.body.type)===t&&a.buffered){const c=a.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r){this.timeRanges&&(this.timeRanges[e]=t);const i=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(a=>{const c=this.fragments[a];if(!c||i>=c.body.sn)return;if(!c.buffered&&!c.loaded){c.body.type===n&&this.removeFragment(c.body);return}const h=c.range[e];h&&h.time.some(_=>{const S=!this.isTimeBuffered(_.startPTS,_.endPTS,t);return S&&this.removeFragment(c.body),S})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=ki(n),a=this.fragments[i];if(!a||a.buffered&&n.gap)return;const c=!n.relurl;Object.keys(t).forEach(h=>{const _=n.elementaryStreams[h];if(!_)return;const S=t[h],R=c||_.partial===!0;a.range[h]=this.getBufferedTimes(n,r,R,S)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=n.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),xi(a)||this.removeParts(n.sn-1,n.type)):this.removeFragment(a.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=ki(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},a=e.start,c=e.end,h=e.minEndPTS||c,_=e.maxStartPTS||a;for(let S=0;S<r.length;S++){const R=r.start(S)-this.bufferPadding,re=r.end(S)+this.bufferPadding;if(_>=R&&h<=re){i.time.push({startPTS:Math.max(a,r.start(S)),endPTS:Math.min(c,r.end(S))});break}else if(a<re&&c>R){const ye=Math.max(a,r.start(S)),me=Math.min(c,r.end(S));me>ye&&(i.partial=!0,i.time.push({startPTS:ye,endPTS:me}))}else if(c<=R)break}return i}getPartialFragment(e){let t=null,n,r,i,a=0;const{bufferPadding:c,fragments:h}=this;return Object.keys(h).forEach(_=>{const S=h[_];S&&xi(S)&&(r=S.body.start-c,i=S.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),a<=n&&(t=S.body,a=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||xi(t))}getState(e){const t=ki(e),n=this.fragments[t];return n?n.buffered?xi(n)?$r.PARTIAL:$r.OK:$r.APPENDING:$r.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onFragLoaded(e,t){const{frag:n,part:r}=t;if(n.sn==="initSegment"||n.bitrateTest)return;const i=r?null:t,a=ki(n);this.fragments[a]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(n.sn==="initSegment")return;const a=n.type;if(r){let c=this.activePartLists[a];c||(this.activePartLists[a]=c=[]),c.push(r)}this.timeRanges=i,Object.keys(i).forEach(c=>{const h=i[c];this.detectEvictedFragments(c,h,a,r)})}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,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(a=>{const c=this.fragments[a];if(!c)return;const h=c.body;h.type!==n||r&&!h.gap||h.start<t&&h.end>e&&(c.buffered||i)&&this.removeFragment(h)})}removeFragment(e){const t=ki(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function xi(o){var e,t,n;return o.buffered&&(o.body.gap||((e=o.range.video)==null?void 0:e.partial)||((t=o.range.audio)==null?void 0:t.partial)||((n=o.range.audiovideo)==null?void 0:n.partial))}function ki(o){return`${o.type}_${o.level}_${o.sn}`}const zi={length:0,start:()=>0,end:()=>0};class Kr{static isBuffered(e,t){try{if(e){const n=Kr.getBuffered(e);for(let r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}}catch(n){}return!1}static bufferInfo(e,t,n){try{if(e){const r=Kr.getBuffered(e),i=[];let a;for(a=0;a<r.length;a++)i.push({start:r.start(a),end:r.end(a)});return this.bufferedInfo(i,t,n)}}catch(r){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.sort(function(_,S){const R=_.start-S.start;return R||S.end-_.end});let r=[];if(n)for(let _=0;_<e.length;_++){const S=r.length;if(S){const R=r[S-1].end;e[_].start-R<n?e[_].end>R&&(r[S-1].end=e[_].end):r.push(e[_])}else r.push(e[_])}else r=e;let i=0,a,c=t,h=t;for(let _=0;_<r.length;_++){const S=r[_].start,R=r[_].end;if(t+n>=S&&t<R)c=S,h=R,i=h-t;else if(t+n<S){a=S;break}}return{len:i,start:c||0,end:h||0,nextStart:a}}static getBuffered(e){try{return e.buffered}catch(t){return x.log("failed to get media.buffered",t),zi}}}class ga{constructor(e,t,n,r=0,i=-1,a=!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=Ri(),this.buffering={audio:Ri(),video:Ri(),audiovideo:Ri()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=a}}function Ri(){return{start:0,executeStart:0,executeEnd:0,end:0}}function ca(o,e){for(let n=0,r=o.length;n<r;n++){var t;if(((t=o[n])==null?void 0:t.cc)===e)return o[n]}return null}function es(o,e,t){return!!(e&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function va(o,e){const t=o.fragments,n=e.fragments;if(!n.length||!t.length){x.log("No fragments to align");return}const r=ca(t,n[0].cc);if(!r||r&&!r.startPTS){x.log("No frag in previous level to align on");return}return r}function ya(o,e){if(o){const t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function ba(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)ya(t[n],o);e.fragmentHint&&ya(e.fragmentHint,o),e.alignedSliding=!0}function Aa(o,e,t){e&&(Ma(o,t,e),!t.alignedSliding&&e&&Ui(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&pr(e,t))}function Ma(o,e,t){if(es(o,t,e)){const n=va(t,e);n&&A(n.start)&&(x.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ba(n.start,e))}}function Ui(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const a=Math.min(e.endCC,o.endCC);e.startCC<a&&o.startCC<a&&(r=ca(n,a),i=ca(t,a)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ca(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,h=i.programDateTime;if(!c||!h)return;const _=(h-c)/1e3-(i.start-r.start);ba(_,o)}const Da=Math.pow(2,17);class Hr{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise((c,h)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(ye=>ye[0]==="GAP")){h(Nr(e));return}else e.gap=!1;const _=this.loader=e.loader=i?new i(r):new a(r),S=zr(e),R=Pr(r.fragLoadPolicy.default),re={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Da};e.stats=_.stats,_.load(S,re,{onSuccess:(ye,me,Se,ke)=>{this.resetLoader(e,_);let Xe=ye.data;Se.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Xe.slice(0,16)),Xe=Xe.slice(16)),c({frag:e,part:null,payload:Xe,networkDetails:ke})},onError:(ye,me,Se,ke)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:j({url:n,data:void 0},ye),error:new Error(`HTTP Error ${ye.code} ${ye.text}`),networkDetails:Se,stats:ke}))},onAbort:(ye,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Se,stats:ye}))},onTimeout:(ye,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${re.timeout}ms`),networkDetails:Se,stats:ye}))},onProgress:(ye,me,Se,ke)=>{t&&t({frag:e,part:null,payload:Se,networkDetails:ke})}})})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise((c,h)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){h(Nr(e,t));return}const _=this.loader=e.loader=i?new i(r):new a(r),S=zr(e,t),R=Pr(r.fragLoadPolicy.default),re={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Da};t.stats=_.stats,_.load(S,re,{onSuccess:(ye,me,Se,ke)=>{this.resetLoader(e,_),this.updateStatsFromPart(e,t);const Xe={frag:e,part:t,payload:ye.data,networkDetails:ke};n(Xe),c(Xe)},onError:(ye,me,Se,ke)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:j({url:S.url,data:void 0},ye),error:new Error(`HTTP Error ${ye.code} ${ye.text}`),networkDetails:Se,stats:ke}))},onAbort:(ye,me,Se)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Se,stats:ye}))},onTimeout:(ye,me,Se)=>{this.resetLoader(e,_),h(new li({type:y.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${re.timeout}ms`),networkDetails:Se,stats:ye}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const h=Math.round(e.duration/t.duration),_=Math.min(Math.round(n.loaded/i),h),R=(h-_)*Math.round(n.loaded/_);n.total=n.loaded+R}else n.total=Math.max(n.loaded,n.total);const a=n.loading,c=r.loading;a.start?a.first+=c.first-c.start:(a.start=c.start,a.first=c.first),a.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function zr(o,e=null){const t=e||o,n={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(A(r)&&A(i)){var a;let c=r,h=i;if(o.sn==="initSegment"&&((a=o.decryptdata)==null?void 0:a.method)==="AES-128"){const _=i-r;_%16&&(h=i+(16-_%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=h}return n}function Nr(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:y.MEDIA_ERROR,details:b.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new li(n)}class li extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ci{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 da{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 Ra(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?q(o,0,e-t):o}class Na{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],c=n[3],h=this.invSubMix,_=h[0],S=h[1],R=h[2],re=h[3],ye=new Uint32Array(256);let me=0,Se=0,ke=0;for(ke=0;ke<256;ke++)ke<128?ye[ke]=ke<<1:ye[ke]=ke<<1^283;for(ke=0;ke<256;ke++){let Xe=Se^Se<<1^Se<<2^Se<<3^Se<<4;Xe=Xe>>>8^Xe&255^99,e[me]=Xe,t[Xe]=me;const At=ye[me],St=ye[At],en=ye[St];let Pt=ye[Xe]*257^Xe*16843008;r[me]=Pt<<24|Pt>>>8,i[me]=Pt<<16|Pt>>>16,a[me]=Pt<<8|Pt>>>24,c[me]=Pt,Pt=en*16843009^St*65537^At*257^me*16843008,_[Xe]=Pt<<24|Pt>>>8,S[Xe]=Pt<<16|Pt>>>16,R[Xe]=Pt<<8|Pt>>>24,re[Xe]=Pt,me?(me=At^ye[ye[ye[en^At]]],Se^=ye[ye[Se]]):me=Se=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const a=this.ksRows=(i+6+1)*4;let c,h;const _=this.keySchedule=new Uint32Array(a),S=this.invKeySchedule=new Uint32Array(a),R=this.sBox,re=this.rcon,ye=this.invSubMix,me=ye[0],Se=ye[1],ke=ye[2],Xe=ye[3];let At,St;for(c=0;c<a;c++){if(c<i){At=_[c]=t[c];continue}St=At,c%i===0?(St=St<<8|St>>>24,St=R[St>>>24]<<24|R[St>>>16&255]<<16|R[St>>>8&255]<<8|R[St&255],St^=re[c/i|0]<<24):i>6&&c%i===4&&(St=R[St>>>24]<<24|R[St>>>16&255]<<16|R[St>>>8&255]<<8|R[St&255]),_[c]=At=(_[c-i]^St)>>>0}for(h=0;h<a;h++)c=a-h,h&3?St=_[c]:St=_[c-4],h<4||c<=4?S[h]=St:S[h]=me[R[St>>>24]]^Se[R[St>>>16&255]]^ke[R[St>>>8&255]]^Xe[R[St&255]],S[h]=S[h]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,c=this.invSubMix,h=c[0],_=c[1],S=c[2],R=c[3],re=this.uint8ArrayToUint32Array_(n);let ye=re[0],me=re[1],Se=re[2],ke=re[3];const Xe=new Int32Array(e),At=new Int32Array(Xe.length);let St,en,Pt,_n,Qt,In,Vn,vn,kn,Cr,Qn,Sr,wr,fr;const Zr=this.networkToHostOrderSwap;for(;t<Xe.length;){for(kn=Zr(Xe[t]),Cr=Zr(Xe[t+1]),Qn=Zr(Xe[t+2]),Sr=Zr(Xe[t+3]),Qt=kn^i[0],In=Sr^i[1],Vn=Qn^i[2],vn=Cr^i[3],wr=4,fr=1;fr<r;fr++)St=h[Qt>>>24]^_[In>>16&255]^S[Vn>>8&255]^R[vn&255]^i[wr],en=h[In>>>24]^_[Vn>>16&255]^S[vn>>8&255]^R[Qt&255]^i[wr+1],Pt=h[Vn>>>24]^_[vn>>16&255]^S[Qt>>8&255]^R[In&255]^i[wr+2],_n=h[vn>>>24]^_[Qt>>16&255]^S[In>>8&255]^R[Vn&255]^i[wr+3],Qt=St,In=en,Vn=Pt,vn=_n,wr=wr+4;St=a[Qt>>>24]<<24^a[In>>16&255]<<16^a[Vn>>8&255]<<8^a[vn&255]^i[wr],en=a[In>>>24]<<24^a[Vn>>16&255]<<16^a[vn>>8&255]<<8^a[Qt&255]^i[wr+1],Pt=a[Vn>>>24]<<24^a[vn>>16&255]<<16^a[Qt>>8&255]<<8^a[In&255]^i[wr+2],_n=a[vn>>>24]<<24^a[Qt>>16&255]<<16^a[In>>8&255]<<8^a[Vn&255]^i[wr+3],At[t]=Zr(St^ye),At[t+1]=Zr(_n^me),At[t+2]=Zr(Pt^Se),At[t+3]=Zr(en^ke),ye=kn,me=Cr,Se=Qn,ke=Sr,t=t+4}return At.buffer}}const Fa=16;class fa{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 n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Ra(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n){return this.useSoftware?new Promise((r,i)=>{this.softwareDecrypt(new Uint8Array(e),t,n);const a=this.flush();a?r(a.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n)}softwareDecrypt(e,t,n){const{currentIV:r,currentResult:i,remainderData:a}=this;this.logOnce("JS AES decrypt"),a&&(e=wt(a,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;r&&(n=r);let h=this.softwareDecrypter;h||(h=this.softwareDecrypter=new Na),h.expandKey(t);const _=i;return this.currentResult=h.decrypt(c.buffer,0,n),this.currentIV=q(c,-16).buffer,_||null}webCryptoDecrypt(e,t,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new da(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new ci(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(x.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n)))}onWebCryptoError(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Fa;return n!==e.length&&(t=q(e,0,n),this.remainderData=q(e,n)),t}logOnce(e){this.logEnabled&&(x.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const na={toString:function(o){let e="";const t=o.length;for(let n=0;n<t;n++)e+=`[${o.start(n).toFixed(3)}-${o.end(n).toFixed(3)}]`;return e}},fn={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 _a extends Ci{constructor(e,t,n,r,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=fn.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=r,this.log=x.log.bind(x,`${r}:`),this.warn=x.warn.bind(x,`${r}:`),this.hls=e,this.fragmentLoader=new Hr(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new fa(e.config),e.on(u.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=fn.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const n=t.partList;if(n!=null&&n.length){const i=n[n.length-1];return Kr.isBuffered(this.media,i.start+i.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===fn.STOPPED&&this.startLoad(r.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:n,mediaBuffer:r,state:i}=this,a=n?n.currentTime:0,c=Kr.bufferInfo(r||n,a,e.maxBufferHole);if(this.log(`media seeking to ${A(a)?a.toFixed(3):a}, state: ${i}`),this.state===fn.ENDED)this.resetLoadingState();else if(t){const h=e.maxFragLookUpTolerance,_=t.start-h,S=t.start+t.duration+h;if(!c.len||S<c.start||_>c.end){const R=a>S;(a<_||R)&&(R&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),this.lastCurrentTime=a),!this.loadedmetadata&&!c.len&&(this.nextLoadPosition=this.startPosition=a),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=fn.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=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,n,r).then(i=>{if(!i)return;const a=this.state;if(this.fragContextChanged(e)){(a===fn.FRAG_LOADING||!this.fragCurrent&&a===fn.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=fn.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(u.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===fn.STOPPED||this.state===fn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===$r.APPENDING){const i=e.type,a=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,a?a.len:this.config.maxBufferLength),h=this.backtrackFragment;((h?e.sn-h.sn:0)===1||this.reduceMaxBufferLength(c,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===$r.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(u.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{if(!n||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{payload:i}=n,a=e.decryptdata;if(i&&i.byteLength>0&&a!=null&&a.key&&a.iv&&a.method==="AES-128"){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),a.key.buffer,a.iv.buffer).catch(h=>{throw r.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:h,reason:h.message,frag:e}),h}).then(h=>{const _=self.performance.now();return r.trigger(u.FRAG_DECRYPTED,{frag:e,payload:h,stats:{tstart:c,tdecrypt:_}}),n.payload=h,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===fn.STOPPED||this.state===fn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state=fn.IDLE,e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var n,r,i,a;const c=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Ke.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${c?na.toString(Kr.getBuffered(c)):"(detached)"})`),e.sn!=="initSegment"){var h;if(e.type!==Ke.SUBTITLE){const S=e.elementaryStreams;if(!Object.keys(S).some(R=>!!S[R])){this.state=fn.IDLE;return}}const _=(h=this.levels)==null?void 0:h[e.level];_!=null&&_.fragmentError&&(this.log(`Resetting level fragment error count of ${_.fragmentError} on frag buffered`),_.fragmentError=0)}this.state=fn.IDLE,c&&(!this.loadedmetadata&&e.type==Ke.MAIN&&c.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((a=this.fragPrevious)==null?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,a=!i||i.length===0||i.some(h=>!h),c=new ga(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;const a=t==null?void 0:t.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let c=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${a.startSN}-${a.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=fn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(S=>{if(!this.fragContextChanged(S.frag))return this.hls.trigger(u.KEY_LOADED,S),this.state===fn.KEY_LOADING&&(this.state=fn.IDLE),S}),this.hls.trigger(u.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(c=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&a.encryptedFragments.length&&this.keyLoader.loadClear(e,a.encryptedFragments),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const S=a.partList;if(S&&r){n>e.end&&a.fragmentHint&&(e=a.fragmentHint);const R=this.getNextPart(S,e,n);if(R>-1){const re=S[R];this.log(`Loading part sn: ${e.sn} p: ${re.index} cc: ${e.cc} of playlist [${a.startSN}-${a.endSN}] parts [0-${R}-${S.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=re.start+re.duration,this.state=fn.FRAG_LOADING;let ye;return c?ye=c.then(me=>!me||this.fragContextChanged(me.frag)?null:this.doFragPartsLoad(e,re,t,r)).catch(me=>this.handleFragLoadError(me)):ye=this.doFragPartsLoad(e,re,t,r).catch(me=>this.handleFragLoadError(me)),this.hls.trigger(u.FRAG_LOADING,{frag:e,part:re,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ye}else if(!e.url||this.loadedEndOfParts(S,n))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${a?"of ["+a.startSN+"-"+a.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),A(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=fn.FRAG_LOADING;const h=this.config.progressive;let _;return h&&c?_=c.then(S=>!S||this.fragContextChanged(S==null?void 0:S.frag)?null:this.fragmentLoader.load(e,r)).catch(S=>this.handleFragLoadError(S)):_=Promise.all([this.fragmentLoader.load(e,h?r:void 0),c]).then(([S])=>(!h&&S&&r&&r(S),S)).catch(S=>this.handleFragLoadError(S)),this.hls.trigger(u.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):_}doFragPartsLoad(e,t,n,r){return new Promise((i,a)=>{var c;const h=[],_=(c=n.details)==null?void 0:c.partList,S=R=>{this.fragmentLoader.loadPart(e,R,r).then(re=>{h[R.index]=re;const ye=re.part;this.hls.trigger(u.FRAG_LOADED,re);const me=Dn(n,e.sn,R.index+1)||Mn(_,e.sn,R.index+1);if(me)S(me);else return i({frag:e,part:ye,partsLoaded:h})}).catch(a)};S(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===b.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(u.ERROR,t)}else this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==fn.PARSING){!this.fragCurrent&&this.state!==fn.STOPPED&&this.state!==fn.ERROR&&(this.state=fn.IDLE);return}const{frag:n,part:r,level:i}=t,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a),this.updateLevelTiming(n,r,i,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:a}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of level ${r}. The current chunk will not be buffered.`),null;const c=t[r],h=a>-1?Dn(c,i,a):null,_=h?h.fragment:vr(c,i,n);return _?(n&&n!==_&&(_.stats=n.stats),{frag:_,part:h,level:c}):null}bufferFragmentData(e,t,n,r,i){var a;if(!e||this.state!==fn.PARSING)return;const{data1:c,data2:h}=e;let _=c;if(c&&h&&(_=wt(c,h)),!((a=_)!=null&&a.length))return;const S={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:_};if(this.hls.trigger(u.BUFFER_APPENDING,S),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Kr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Kr.bufferInfo(t,n,0),i=e.duration,a=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),c=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-c>a&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){const n=this.getLoadPosition();return A(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Kr.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&i.nextStart<a.end)return Kr.bufferInfo(e,t,Math.max(i.nextStart,r))}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=Ke.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,Ke.MAIN);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,a=n[0].start;let c;if(t.live){const h=i.initialLiveManifestSize;if(r<h)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${h})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<a)&&(c=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=c?this.hls.liveSyncPosition||c.start:e)}else e<=a&&(c=n[0]);if(!c){const h=i.lowLatencyMode?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,h,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===$r.OK||n===$r.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){const a=e.gap,c=this.getNextFragment(this.nextLoadPosition,t);if(c===null)return c;if(e=c,a&&e&&!e.gap&&n.nextStart){const h=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(h!==null&&n.len+h.len>=i)return this.log(`buffer full after gaps in "${r}" 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,n){let r=-1,i=!1,a=!0;for(let c=0,h=e.length;c<h;c++){const _=e[c];if(a=a&&!_.independent,r>-1&&n<_.start)break;const S=_.loaded;S?r=-1:(i||_.independent||a)&&_.fragment===t&&(r=c),i=S}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=ui(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const a=t[i-e.startSN];n.cc===a.cc&&(r=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=jn(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:a,endSN:c}=n;const{fragmentHint:h}=n,{maxFragLookUpTolerance:_}=r,S=n.partList,R=!!(r.lowLatencyMode&&S!=null&&S.length&&h);R&&h&&!this.bitrateTest&&(a=a.concat(h),c=h.sn);let re;if(e<t){const ye=e>t-_?0:_;re=Yr(i,a,e,ye)}else re=a[a.length-1];if(re){const ye=re.sn-n.startSN,me=this.fragmentTracker.getState(re);if((me===$r.OK||me===$r.PARTIAL&&re.gap)&&(i=re),i&&re.sn===i.sn&&(!R||S[0].fragment.sn>re.sn)&&i&&re.level===i.level){const ke=a[ye+1];re.sn<c&&this.fragmentTracker.getState(ke)!==$r.OK?re=ke:re=null}}return re}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=n.currentTime,a=e.fragments[0].start,c=e.edge,h=i>=a-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!h)){const _=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!h&&n.readyState<4||i<c-_)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${c}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,a=!t,c=e.alignedSliding&&A(i);if(a||!c&&!i){const{fragPrevious:h}=this;Aa(h,n,e);const _=e.fragments[0].start;return this.log(`Live playlist sliding: ${_.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${h?h.sn:"na"} fragments: ${r}`),_}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;if(n<t&&(n=-1),n===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,i=r?this.startTimeOffset:e.startTimeOffset;i!==null&&A(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Start time offset ${i} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}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!==fn.FRAG_LOADING_WAITING_RETRY)&&(this.state=fn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const S=this.getCurrentContext(t.chunkMeta);S&&(t.frag=S.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===b.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const a=t.errorAction,{action:c,retryCount:h=0,retryConfig:_}=a||{};if(a&&c===Zn.RetryRequest&&_){this.resetStartWhenNotLoaded(this.levelLastLoaded);const S=ur(_,h);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${h+1}/${_.maxNumRetry} in ${S}ms`),a.resolved=!0,this.retryDate=self.performance.now()+S,this.state=fn.FRAG_LOADING_WAITING_RETRY}else if(_&&a)if(this.resetFragmentErrors(e),h<_.maxNumRetry)!i&&c!==Zn.RemoveAlternatePermanently&&(a.resolved=!0);else{x.warn(`${t.details} reached or exceeded max retry (${h})`);return}else(a==null?void 0:a.action)===Zn.SendAlternateToPenaltyBox?this.state=fn.WAITING_LEVEL:this.state=fn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===fn.PARSING||this.state===fn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const a=!i;return a&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===Ke.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==fn.STOPPED&&(this.state=fn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Kr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===fn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=fn.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,n,r){var i;const a=n.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((h,_)=>{const S=e.elementaryStreams[_];if(S){const R=S.endPTS-S.startPTS;if(R<=0)return this.warn(`Could not parse fragment ${e.sn} ${_} duration reliably (${R})`),h||!1;const re=r?0:si(a,e,S.startPTS,S.endPTS,S.startDTS,S.endDTS);return this.hls.trigger(u.LEVEL_PTS_UPDATED,{details:a,level:n,drift:re,type:_,frag:e,start:S.startPTS,end:S.endPTS}),!0}return h},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const h=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(n.fragmentError===0&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(h.message),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:h,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=fn.PARSED,this.hls.trigger(u.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 ts{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=bs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function bs(o,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<o.length;r++){const i=o[r];t.set(i,n),n+=i.length}return t}function _s(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ns(){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 rs(o){const e=new self.URL(o,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Zi(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ba{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=wt(this.cachedData,e),this.cachedData=null);let n=z(e,0),r=n?n.length:0,i;const a=this._audioTrack,c=this._id3Track,h=n?oe(n):void 0,_=e.length;for((this.basePTS===null||this.frameIndex===0&&A(h))&&(this.basePTS=xs(h,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Bn.audioId3,duration:Number.POSITIVE_INFINITY});r<_;){if(this.canParse(e,r)){const S=this.appendFrame(a,e,r);S?(this.frameIndex++,this.lastPTS=S.sample.pts,r+=S.length,i=r):r=_}else O(e,r)?(n=z(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Bn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===_&&i!==_){const S=q(e,i);this.cachedData?this.cachedData=wt(this.cachedData,S):this.cachedData=S}}return{audioTrack:a,videoTrack:Zi(),id3Track:c,textTrack:Zi()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Zi(),id3Track:this._id3Track,textTrack:Zi()}}destroy(){}}const xs=(o,e,t)=>{if(A(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function Hs(o,e,t,n){let r,i,a,c;const h=navigator.userAgent.toLowerCase(),_=n,S=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const R=(e[t+2]&60)>>>2;if(R>S.length-1){const re=new Error(`invalid ADTS sampling index:${R}`);o.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!0,error:re,reason:re.message});return}return a=(e[t+2]&1)<<2,a|=(e[t+3]&192)>>>6,x.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${R}`),/firefox/i.test(h)?R>=6?(r=5,c=new Array(4),i=R-3):(r=2,c=new Array(2),i=R):h.indexOf("android")!==-1?(r=2,c=new Array(2),i=R):(r=5,c=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&R>=6?i=R-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(R>=6&&a===1||/vivaldi/i.test(h))||!n&&a===1)&&(r=2,c=new Array(2)),i=R)),c[0]=r<<3,c[0]|=(R&14)>>1,c[1]|=(R&1)<<7,c[1]|=a<<3,r===5&&(c[1]|=(i&14)>>1,c[2]=(i&1)<<7,c[2]|=8,c[3]=0),{config:c,samplerate:S[R],channelCount:a,codec:"mp4a.40."+r,manifestCodec:_}}function $a(o,e){return o[e]===255&&(o[e+1]&246)===240}function is(o,e){return o[e+1]&1?7:9}function za(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function Es(o,e){return e+5<o.length}function Xi(o,e){return e+1<o.length&&$a(o,e)}function Ia(o,e){return Es(o,e)&&$a(o,e)&&za(o,e)<=o.length-e}function Zs(o,e){if(Xi(o,e)){const t=is(o,e);if(e+t>=o.length)return!1;const n=za(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||Xi(o,r)}return!1}function ws(o,e,t,n,r){if(!o.samplerate){const i=Hs(e,t,n,r);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 as(o){return 1024*9e4/o}function js(o,e){const t=is(o,e);if(e+t<=o.length){const n=za(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function ss(o,e,t,n,r){const i=as(o.samplerate),a=n+r*i,c=js(e,t);let h;if(c){const{frameLength:R,headerLength:re}=c,ye=re+R,me=Math.max(0,t+ye-e.length);me?(h=new Uint8Array(ye-re),h.set(e.subarray(t+re,e.length),0)):h=e.subarray(t+re,t+ye);const Se={unit:h,pts:a};return me||o.samples.push(Se),{sample:Se,length:ye,missing:me}}const _=e.length-t;return h=new Uint8Array(_),h.set(e.subarray(t,e.length),0),{sample:{unit:h,pts:a},length:_,missing:-1}}let La=null;const Ws=[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],Ss=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Gs=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Cs=[0,1,1,4];function Ua(o,e,t,n,r){if(t+24>e.length)return;const i=Ka(e,t);if(i&&t+i.frameLength<=e.length){const a=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*a,h={unit:e.subarray(t,t+i.frameLength),pts:c,dts:c};return o.config=[],o.channelCount=i.channelCount,o.samplerate=i.sampleRate,o.samples.push(h),{sample:h,length:i.frameLength,missing:0}}}function Ka(o,e){const t=o[e+1]>>3&3,n=o[e+1]>>1&3,r=o[e+2]>>4&15,i=o[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const a=o[e+2]>>1&1,c=o[e+3]>>6,h=t===3?3-n:n===3?3:4,_=Ws[h*14+r-1]*1e3,R=Ss[(t===3?0:t===2?1:2)*3+i],re=c===3?1:2,ye=Gs[t][n],me=Cs[n],Se=ye*8*me,ke=Math.floor(ye*_/R+a)*me;if(La===null){const St=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);La=St?parseInt(St[1]):0}return!!La&&La<=87&&n===2&&_>=224e3&&c===0&&(o[e+3]=o[e+3]|128),{sampleRate:R,channelCount:re,frameLength:ke,samplesPerFrame:Se}}}function Ha(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function os(o,e){return e+1<o.length&&Ha(o,e)}function Ts(o,e){return Ha(o,e)&&4<=o.length-e}function As(o,e){if(e+1<o.length&&Ha(o,e)){const n=Ka(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===o.length||os(o,i)}return!1}class Ds extends Ba{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=z(e,0);let n=(t==null?void 0:t.length)||0;if(As(e,n))return!1;for(let r=e.length;n<r;n++)if(Zs(e,n))return x.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ia(e,t)}appendFrame(e,t,n){ws(e,this.observer,t,n,e.manifestCodec);const r=ss(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const Rs=/\/emsg[-/]ID3/i;class Vs{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=Zi("video",1),a=this.audioTrack=Zi("audio",1),c=this.txtTrack=Zi("text",1);if(this.id3Track=Zi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const h=tt(e);if(h.video){const{id:_,timescale:S,codec:R}=h.video;i.id=_,i.timescale=c.timescale=S,i.codec=R}if(h.audio){const{id:_,timescale:S,codec:R}=h.audio;a.id=_,a.timescale=S,a.codec=R}c.id=Ct.text,i.sampleDuration=0,i.duration=a.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return mn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=wt(this.remainderData,e));const c=dn(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const a=this.extractID3Track(r,t);return i.samples=Yt(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=Yt(e,t),{videoTrack:t,audioTrack:Zi(),id3Track:r,textTrack:Zi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=$e(e.samples,["emsg"]);r&&r.forEach(i=>{const a=Te(i);if(Rs.test(a.schemeIdUri)){const c=A(a.presentationTime)?a.presentationTime/a.timeScale:t+a.presentationTimeDelta/a.timeScale;let h=a.eventDuration===4294967295?Number.POSITIVE_INFINITY:a.eventDuration/a.timeScale;h<=.001&&(h=Number.POSITIVE_INFINITY);const _=a.payload;n.samples.push({data:_,len:_.byteLength,dts:c,pts:c,type:Bn.emsg,duration:h})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const xa=(o,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),a=new Uint8Array(1);for(;n>0;){a[0]=o[e];const c=Math.min(n,8),h=8-c;i[0]=4278190080>>>24+h<<h,r[0]=(a[0]&i[0])>>h,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class ls extends Ba{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=us(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=z(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&oe(t)!==void 0&&xa(e,n)<16}}function us(o,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const c=[48e3,44100,32e3][i],h=e[t+4]&63,S=[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][h*3+i]*2;if(t+S>e.length)return-1;const R=e[t+6]>>5;let re=0;R===2?re+=2:(R&1&&R!==1&&(re+=2),R&4&&(re+=2));const ye=(e[t+6]<<8|e[t+7])>>12-re&1,Se=[2,1,2,3,3,4,4,5][R]+ye,ke=e[t+5]>>3,Xe=e[t+5]&7,At=new Uint8Array([i<<6|ke<<1|Xe>>2,(Xe&3)<<6|R<<3|ye<<2|h>>4,h<<4&224]),St=1536/c*9e4,en=n+r*St,Pt=e.subarray(t,t+S);return o.config=At,o.channelCount=Se,o.samplerate=c,o.samples.push({unit:Pt,pts:en}),S}class Ys{constructor(){this.VideoSample=null}createVideoSample(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&x.log(e.pts+"/"+e.dts+":"+e.debug)}}class Is{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&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?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,n=8,r;for(let i=0;i<e;i++)n!==0&&(r=this.readEG(),n=(t+r+256)%256),t=n===0?t:n}readSPS(){let e=0,t=0,n=0,r=0,i,a,c;const h=this.readUByte.bind(this),_=this.readBits.bind(this),S=this.readUEG.bind(this),R=this.readBoolean.bind(this),re=this.skipBits.bind(this),ye=this.skipEG.bind(this),me=this.skipUEG.bind(this),Se=this.skipScalingList.bind(this);h();const ke=h();if(_(5),re(3),h(),me(),ke===100||ke===110||ke===122||ke===244||ke===44||ke===83||ke===86||ke===118||ke===128){const _n=S();if(_n===3&&re(1),me(),me(),re(1),R())for(a=_n!==3?8:12,c=0;c<a;c++)R()&&(c<6?Se(16):Se(64))}me();const Xe=S();if(Xe===0)S();else if(Xe===1)for(re(1),ye(),ye(),i=S(),c=0;c<i;c++)ye();me(),re(1);const At=S(),St=S(),en=_(1);en===0&&re(1),re(1),R()&&(e=S(),t=S(),n=S(),r=S());let Pt=[1,1];if(R()&&R())switch(h()){case 1:Pt=[1,1];break;case 2:Pt=[12,11];break;case 3:Pt=[10,11];break;case 4:Pt=[16,11];break;case 5:Pt=[40,33];break;case 6:Pt=[24,11];break;case 7:Pt=[20,11];break;case 8:Pt=[32,11];break;case 9:Pt=[80,33];break;case 10:Pt=[18,11];break;case 11:Pt=[15,11];break;case 12:Pt=[64,33];break;case 13:Pt=[160,99];break;case 14:Pt=[4,3];break;case 15:Pt=[3,2];break;case 16:Pt=[2,1];break;case 255:{Pt=[h()<<8|h(),h()<<8|h()];break}}return{width:Math.ceil((At+1)*16-e*2-t*2),height:(2-en)*(St+1)*16-(en?2:4)*(n+r),pixelRatio:Pt}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xs extends Ys{parseAVCPES(e,t,n,r,i){const a=this.parseAVCNALu(e,n.data);let c=this.VideoSample,h,_=!1;n.data=null,c&&a.length&&!e.audFound&&(this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),a.forEach(S=>{var R;switch(S.type){case 1:{let Se=!1;h=!0;const ke=S.data;if(_&&ke.length>4){const Xe=new Is(ke).readSliceType();(Xe===2||Xe===4||Xe===7||Xe===9)&&(Se=!0)}if(Se){var re;(re=c)!=null&&re.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null)}c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.frame=!0,c.key=Se;break}case 5:h=!0,(R=c)!=null&&R.frame&&!c.key&&(this.pushAccessUnit(c,e),c=this.VideoSample=null),c||(c=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),c.key=!0,c.frame=!0;break;case 6:{h=!0,xt(S.data,1,n.pts,t.samples);break}case 7:{var ye,me;h=!0,_=!0;const Se=S.data,Xe=new Is(Se).readSPS();if(!e.sps||e.width!==Xe.width||e.height!==Xe.height||((ye=e.pixelRatio)==null?void 0:ye[0])!==Xe.pixelRatio[0]||((me=e.pixelRatio)==null?void 0:me[1])!==Xe.pixelRatio[1]){e.width=Xe.width,e.height=Xe.height,e.pixelRatio=Xe.pixelRatio,e.sps=[Se],e.duration=i;const At=Se.subarray(1,4);let St="avc1.";for(let en=0;en<3;en++){let Pt=At[en].toString(16);Pt.length<2&&(Pt="0"+Pt),St+=Pt}e.codec=St}break}case 8:h=!0,e.pps=[S.data];break;case 9:h=!0,e.audFound=!0,c&&this.pushAccessUnit(c,e),c=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:h=!0;break;default:h=!1,c&&(c.debug+="unknown NAL "+S.type+" ");break}c&&h&&c.units.push(S)}),r&&c&&(this.pushAccessUnit(c,e),this.VideoSample=null)}parseAVCNALu(e,t){const n=t.byteLength;let r=e.naluState||0;const i=r,a=[];let c=0,h,_,S,R=-1,re=0;for(r===-1&&(R=0,re=t[0]&31,r=0,c=1);c<n;){if(h=t[c++],!r){r=h?0:1;continue}if(r===1){r=h?0:2;continue}if(!h)r=3;else if(h===1){if(_=c-r-1,R>=0){const ye={data:t.subarray(R,_),type:re};a.push(ye)}else{const ye=this.getLastNalUnit(e.samples);ye&&(i&&c<=4-i&&ye.state&&(ye.data=ye.data.subarray(0,ye.data.byteLength-i)),_>0&&(ye.data=wt(ye.data,t.subarray(0,_)),ye.state=0))}c<n?(S=t[c]&31,R=c,re=S,r=0):r=-1}else r=0}if(R>=0&&r>=0){const ye={data:t.subarray(R,n),type:re,state:r};a.push(ye)}if(a.length===0){const ye=this.getLastNalUnit(e.samples);ye&&(ye.data=wt(ye.data,t))}return e.naluState=r,a}}class cs{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new fa(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then(c=>{const h=new Uint8Array(c);r.set(h,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const a=Me(i.data),c=this.getAvcEncryptedData(a);this.decryptBuffer(c.buffer).then(h=>{i.data=this.getAvcDecryptedUnit(a,h),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const a=i[n];if(!(a.data.length<=48||a.type!==1&&a.type!==5)&&(this.decryptAvcSample(e,t,n,r,a),!this.decrypter.isSync()))return}}}}const Ei=188;class ra{constructor(e,t,n){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=n,this.videoParser=new Xs}static probe(e){const t=ra.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 n=Math.min(Ei*5,t-Ei)+1,r=0;for(;r<n;){let i=!1,a=-1,c=0;for(let h=r;h<t;h+=Ei)if(e[h]===71&&(t-h===Ei||e[h+Ei]===71)){if(c++,a===-1&&(a=h,a!==0&&(n=Math.min(a+Ei*99,e.length-Ei)+1)),i||(i=Za(e,h)===0),i&&c>1&&(a===0&&c>2||h+Ei>n))return a}else{if(c)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Ct[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=ra.createTrack("video"),this._audioTrack=ra.createTrack("audio",r),this._id3Track=ra.createTrack("id3"),this._txtTrack=ra.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,this._duration=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const a=this._videoTrack,c=this._audioTrack,h=this._id3Track,_=this._txtTrack;let S=a.pid,R=a.pesData,re=c.pid,ye=h.pid,me=c.pesData,Se=h.pesData,ke=null,Xe=this.pmtParsed,At=this._pmtId,St=e.length;if(this.remainderData&&(e=wt(this.remainderData,e),St=e.length,this.remainderData=null),St<Ei&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:a,id3Track:h,textTrack:_};const en=Math.max(0,ra.syncOffset(e));St-=(St-en)%Ei,St<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,St,e.buffer.byteLength-St));let Pt=0;for(let Qt=en;Qt<St;Qt+=Ei)if(e[Qt]===71){const In=!!(e[Qt+1]&64),Vn=Za(e,Qt),vn=(e[Qt+3]&48)>>4;let kn;if(vn>1){if(kn=Qt+5+e[Qt+4],kn===Qt+Ei)continue}else kn=Qt+4;switch(Vn){case S:In&&(R&&(i=ha(R))&&this.videoParser.parseAVCPES(a,_,i,!1,this._duration),R={data:[],size:0}),R&&(R.data.push(e.subarray(kn,Qt+Ei)),R.size+=Qt+Ei-kn);break;case re:if(In){if(me&&(i=ha(me)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,i);break;case"mp3":this.parseMPEGPES(c,i);break;case"ac3":this.parseAC3PES(c,i);break}me={data:[],size:0}}me&&(me.data.push(e.subarray(kn,Qt+Ei)),me.size+=Qt+Ei-kn);break;case ye:In&&(Se&&(i=ha(Se))&&this.parseID3PES(h,i),Se={data:[],size:0}),Se&&(Se.data.push(e.subarray(kn,Qt+Ei)),Se.size+=Qt+Ei-kn);break;case 0:In&&(kn+=e[kn]+1),At=this._pmtId=Qs(e,kn);break;case At:{In&&(kn+=e[kn]+1);const Cr=Ls(e,kn,this.typeSupported,n,this.observer);S=Cr.videoPid,S>0&&(a.pid=S,a.segmentCodec=Cr.segmentVideoCodec),re=Cr.audioPid,re>0&&(c.pid=re,c.segmentCodec=Cr.segmentAudioCodec),ye=Cr.id3Pid,ye>0&&(h.pid=ye),ke!==null&&!Xe&&(x.warn(`MPEG-TS PMT found at ${Qt} after unknown PID '${ke}'. Backtracking to sync byte @${en} to parse all TS packets.`),ke=null,Qt=en-188),Xe=this.pmtParsed=!0;break}case 17:case 8191:break;default:ke=Vn;break}}else Pt++;Pt>0&&ja(this.observer,new Error(`Found ${Pt} TS packet/s that do not start with 0x47`)),a.pesData=R,c.pesData=me,h.pesData=Se;const _n={audioTrack:c,videoTrack:a,id3Track:h,textTrack:_};return r&&this.extractRemainingSamples(_n),_n}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,a=n.pesData,c=t.pesData,h=r.pesData;let _;if(a&&(_=ha(a))?(this.videoParser.parseAVCPES(n,i,_,!0,this._duration),n.pesData=null):n.pesData=a,c&&(_=ha(c))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,_);break;case"mp3":this.parseMPEGPES(t,_);break;case"ac3":this.parseAC3PES(t,_);break}t.pesData=null}else c!=null&&c.size&&x.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;h&&(_=ha(h))?(this.parseID3PES(r,_),r.pesData=null):r.pesData=h}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new cs(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const R=r.missing,re=r.sample.unit.byteLength;if(R===-1)i=wt(r.sample.unit,i);else{const ye=re-R;r.sample.unit.set(i.subarray(0,R),ye),e.samples.push(r.sample),n=r.missing}}let a,c;for(a=n,c=i.length;a<c-1&&!Xi(i,a);a++);if(a!==n){let R;const re=a<c-1;if(re?R=`AAC PES did not start with ADTS header,offset:${a}`:R="No ADTS header found in AAC PES",ja(this.observer,new Error(R),re),!re)return}ws(e,this.observer,i,a,this.audioCodec);let h;if(t.pts!==void 0)h=t.pts;else if(r){const R=as(e.samplerate);h=r.sample.pts+R}else{x.warn("[tsdemuxer]: AAC PES unknown PTS");return}let _=0,S;for(;a<c;)if(S=ss(e,i,a,h,_),a+=S.length,S.missing){this.aacOverFlow=S;break}else for(_++;a<c-1&&!Xi(i,a);a++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,a=0;const c=t.pts;if(c===void 0){x.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<r;)if(os(n,a)){const h=Ua(e,n,a,c,i);if(h)a+=h.length,i++;else break}else a++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){x.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let a=0,c=0,h;for(;c<i&&(h=us(e,n,c,r,a++))>0;)c+=h}}parseID3PES(e,t){if(t.pts===void 0){x.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=s({},t,{type:this._videoTrack?Bn.emsg:Bn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Za(o,e){return((o[e+1]&31)<<8)+o[e+2]}function Qs(o,e){return(o[e+10]&31)<<8|o[e+11]}function Ls(o,e,t,n,r){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=(o[e+1]&15)<<8|o[e+2],c=e+3+a-4,h=(o[e+10]&15)<<8|o[e+11];for(e+=12+h;e<c;){const _=Za(o,e),S=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){He("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=_);break;case 21:i.id3Pid===-1&&(i.id3Pid=_);break;case 219:if(!n){He("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=_,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=_,i.segmentAudioCodec="mp3");break;case 193:if(!n){He("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=_,i.segmentAudioCodec="ac3"):x.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&S>0){let R=e+5,re=S;for(;re>2;){switch(o[R]){case 106:t.ac3!==!0?x.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=_,i.segmentAudioCodec="ac3");break}const me=o[R+1]+2;R+=me,re-=me}}break;case 194:case 135:return ja(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return ja(r,new Error("Unsupported HEVC in M2TS found")),i}e+=S+5}return i}function ja(o,e,t){x.warn(`parsing error: ${e.message}`),o.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function He(o){x.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function ha(o){let e=0,t,n,r,i,a;const c=o.data;if(!o||o.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=wt(c[0],c[1]),c.splice(1,1);if(t=c[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(n=(t[4]<<8)+t[5],n&&n>o.size-6)return null;const _=t[7];_&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,_&64?(a=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-a>60*9e4&&(x.warn(`${Math.round((i-a)/9e4)}s delta between PTS and DTS, align them`),i=a)):a=i),r=t[8];let S=r+9;if(o.size<=S)return null;o.size-=S;const R=new Uint8Array(o.size);for(let re=0,ye=c.length;re<ye;re++){t=c[re];let me=t.byteLength;if(S)if(S>me){S-=me;continue}else t=t.subarray(S),me-=S,S=0;R.set(t,e),e+=me}return n&&(n-=r+3),{data:R,pts:i,dts:a,len:n}}return null}class ds extends Ba{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=z(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&oe(t)!==void 0&&xa(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(As(e,n))return x.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ts(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Ua(e,t,n,this.basePTS,this.frameIndex)}}class Wa{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 Qi=Math.pow(2,32)-1;class Nt{static init(){Nt.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 Nt.types)Nt.types.hasOwnProperty(e)&&(Nt.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Nt.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);Nt.STTS=Nt.STSC=Nt.STCO=i,Nt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Nt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Nt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Nt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const a=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),h=new Uint8Array([0,0,0,1]);Nt.FTYP=Nt.box(Nt.types.ftyp,a,h,a,c),Nt.DINF=Nt.box(Nt.types.dinf,Nt.box(Nt.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const a=new Uint8Array(n);for(a[0]=n>>24&255,a[1]=n>>16&255,a[2]=n>>8&255,a[3]=n&255,a.set(e,4),r=0,n=8;r<i;r++)a.set(t[r],n),n+=t[r].byteLength;return a}static hdlr(e){return Nt.box(Nt.types.hdlr,Nt.HDLR_TYPES[e])}static mdat(e){return Nt.box(Nt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1));return Nt.box(Nt.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return Nt.box(Nt.types.mdia,Nt.mdhd(e.timescale,e.duration),Nt.hdlr(e.type),Nt.minf(e))}static mfhd(e){return Nt.box(Nt.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"?Nt.box(Nt.types.minf,Nt.box(Nt.types.smhd,Nt.SMHD),Nt.DINF,Nt.stbl(e)):Nt.box(Nt.types.minf,Nt.box(Nt.types.vmhd,Nt.VMHD),Nt.DINF,Nt.stbl(e))}static moof(e,t,n){return Nt.box(Nt.types.moof,Nt.mfhd(e),Nt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Nt.trak(e[t]);return Nt.box.apply(null,[Nt.types.moov,Nt.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(Nt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Nt.trex(e[t]);return Nt.box.apply(null,[Nt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Nt.box(Nt.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Nt.box(Nt.types.sdtp,n)}static stbl(e){return Nt.box(Nt.types.stbl,Nt.stsd(e),Nt.box(Nt.types.stts,Nt.STTS),Nt.box(Nt.types.stsc,Nt.STSC),Nt.box(Nt.types.stsz,Nt.STSZ),Nt.box(Nt.types.stco,Nt.STCO))}static avc1(e){let t=[],n=[],r,i,a;for(r=0;r<e.sps.length;r++)i=e.sps[r],a=i.byteLength,t.push(a>>>8&255),t.push(a&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],a=i.byteLength,n.push(a>>>8&255),n.push(a&255),n=n.concat(Array.prototype.slice.call(i));const c=Nt.box(Nt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),h=e.width,_=e.height,S=e.pixelRatio[0],R=e.pixelRatio[1];return Nt.box(Nt.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,h>>8&255,h&255,_>>8&255,_&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,Nt.box(Nt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Nt.box(Nt.types.pasp,new Uint8Array([S>>24,S>>16&255,S>>8&255,S&255,R>>24,R>>16&255,R>>8&255,R&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 Nt.box(Nt.types.mp4a,Nt.audioStsd(e),Nt.box(Nt.types.esds,Nt.esds(e)))}static mp3(e){return Nt.box(Nt.types[".mp3"],Nt.audioStsd(e))}static ac3(e){return Nt.box(Nt.types["ac-3"],Nt.audioStsd(e),Nt.box(Nt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?Nt.box(Nt.types.stsd,Nt.STSD,Nt.mp3(e)):e.segmentCodec==="ac3"?Nt.box(Nt.types.stsd,Nt.STSD,Nt.ac3(e)):Nt.box(Nt.types.stsd,Nt.STSD,Nt.mp4a(e)):Nt.box(Nt.types.stsd,Nt.STSD,Nt.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,a=Math.floor(n/(Qi+1)),c=Math.floor(n%(Qi+1));return Nt.box(Nt.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,a>>24,a>>16&255,a>>8&255,a&255,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=Nt.sdtp(e),r=e.id,i=Math.floor(t/(Qi+1)),a=Math.floor(t%(Qi+1));return Nt.box(Nt.types.traf,Nt.box(Nt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Nt.box(Nt.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,a>>24,a>>16&255,a>>8&255,a&255])),Nt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Nt.box(Nt.types.trak,Nt.tkhd(e),Nt.mdia(e))}static trex(e){const t=e.id;return Nt.box(Nt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,a=new Uint8Array(i);let c,h,_,S,R,re;for(t+=8+i,a.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),c=0;c<r;c++)h=n[c],_=h.duration,S=h.size,R=h.flags,re=h.cts,a.set([_>>>24&255,_>>>16&255,_>>>8&255,_&255,S>>>24&255,S>>>16&255,S>>>8&255,S&255,R.isLeading<<2|R.dependsOn,R.isDependedOn<<6|R.hasRedundancy<<4|R.paddingValue<<1|R.isNonSync,R.degradPrio&61440,R.degradPrio&15,re>>>24&255,re>>>16&255,re>>>8&255,re&255],12+16*c);return Nt.box(Nt.types.trun,a)}static initSegment(e){Nt.types||Nt.init();const t=Nt.moov(e);return wt(Nt.FTYP,t)}}Nt.types=void 0,Nt.HDLR_TYPES=void 0,Nt.STTS=void 0,Nt.STSC=void 0,Nt.STCO=void 0,Nt.STSZ=void 0,Nt.VMHD=void 0,Nt.SMHD=void 0,Nt.STSD=void 0,Nt.FTYP=void 0,Nt.DINF=void 0;const fs=9e4;function Ga(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function Js(o,e,t=1,n=!1){return Ga(o,e,1/t,n)}function Ea(o,e=!1){return Ga(o,1e3,1/fs,e)}function Os(o,e=1){return Ga(o,fs,1/e)}const Va=10*1e3,ks=1024,hs=1152,Ps=1536;let wa=null,ps=null;class Oa{constructor(e,t,n,r=""){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=n,this.ISGenerated=!1,wa===null){const a=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);wa=a?parseInt(a[1]):0}if(ps===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ps=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 n=e[0].pts,r=e.reduce((i,a)=>{let c=a.pts,h=c-i;return h<-4294967296&&(t=!0,c=Ni(c,n),h=c-i),h>0?i:c},n);return t&&x.debug("PTS rollover detected"),r}remux(e,t,n,r,i,a,c,h){let _,S,R,re,ye,me,Se=i,ke=i;const Xe=e.pid>-1,At=t.pid>-1,St=t.samples.length,en=e.samples.length>0,Pt=c&&St>0||St>1;if((!Xe||en)&&(!At||Pt)||this.ISGenerated||c){if(this.ISGenerated){var Qt,In,Vn,vn;const Sr=this.videoTrackConfig;Sr&&(t.width!==Sr.width||t.height!==Sr.height||((Qt=t.pixelRatio)==null?void 0:Qt[0])!==((In=Sr.pixelRatio)==null?void 0:In[0])||((Vn=t.pixelRatio)==null?void 0:Vn[1])!==((vn=Sr.pixelRatio)==null?void 0:vn[1]))&&this.resetInitSegment()}else R=this.generateIS(e,t,i,a);const kn=this.isVideoContiguous;let Cr=-1,Qn;if(Pt&&(Cr=qs(t.samples),!kn&&this.config.forceKeyFrameOnDiscontinuity))if(me=!0,Cr>0){x.warn(`[mp4-remuxer]: Dropped ${Cr} out of ${St} video samples due to a missing keyframe`);const Sr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Cr),t.dropped+=Cr,ke+=(t.samples[0].pts-Sr)/t.inputTimeScale,Qn=ke}else Cr===-1&&(x.warn(`[mp4-remuxer]: No keyframe found out of ${St} video samples`),me=!1);if(this.ISGenerated){if(en&&Pt){const Sr=this.getVideoStartPts(t.samples),fr=(Ni(e.samples[0].pts,Sr)-Sr)/t.inputTimeScale;Se+=Math.max(0,fr),ke+=Math.max(0,-fr)}if(en){if(e.samplerate||(x.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),R=this.generateIS(e,t,i,a)),S=this.remuxAudio(e,Se,this.isAudioContiguous,a,At||Pt||h===Ke.AUDIO?ke:void 0),Pt){const Sr=S?S.endPTS-S.startPTS:0;t.inputTimeScale||(x.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),R=this.generateIS(e,t,i,a)),_=this.remuxVideo(t,ke,kn,Sr)}}else Pt&&(_=this.remuxVideo(t,ke,kn,0));_&&(_.firstKeyFrame=Cr,_.independent=Cr!==-1,_.firstKeyFramePTS=Qn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(ye=Ms(n,i,this._initPTS,this._initDTS)),r.samples.length&&(re=eo(r,i,this._initPTS))),{audio:S,video:_,initSegment:R,independent:me,text:re,id3:ye}}generateIS(e,t,n,r){const i=e.samples,a=t.samples,c=this.typeSupported,h={},_=this._initPTS;let S=!_||r,R="audio/mp4",re,ye,me;if(S&&(re=ye=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(R="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}h.audio={id:"audio",container:R,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):Nt.initSegment([e]),metadata:{channelCount:e.channelCount}},S&&(me=e.inputTimeScale,!_||me!==_.timescale?re=ye=i[0].pts-Math.round(me*n):S=!1)}if(t.sps&&t.pps&&a.length){if(t.timescale=t.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Nt.initSegment([t]),metadata:{width:t.width,height:t.height}},S)if(me=t.inputTimeScale,!_||me!==_.timescale){const Se=this.getVideoStartPts(a),ke=Math.round(me*n);ye=Math.min(ye,Ni(a[0].dts,Se)-ke),re=Math.min(re,Se-ke)}else S=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,S?(this._initPTS={baseTime:re,timescale:me},this._initDTS={baseTime:ye,timescale:me}):re=me=void 0,{tracks:h,initPTS:re,timescale:me}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,a=e.samples,c=[],h=a.length,_=this._initPTS;let S=this.nextAvcDts,R=8,re=this.videoSampleDuration,ye,me,Se=Number.POSITIVE_INFINITY,ke=Number.NEGATIVE_INFINITY,Xe=!1;if(!n||S===null){const ir=t*i,Jn=a[0].pts-Ni(a[0].dts,a[0].pts);wa&&S!==null&&Math.abs(ir-Jn-S)<15e3?n=!0:S=ir-Jn}const At=_.baseTime*i/_.timescale;for(let ir=0;ir<h;ir++){const Jn=a[ir];Jn.pts=Ni(Jn.pts-At,S),Jn.dts=Ni(Jn.dts-At,S),Jn.dts<a[ir>0?ir-1:ir].dts&&(Xe=!0)}Xe&&a.sort(function(ir,Jn){const Gr=ir.dts-Jn.dts,Or=ir.pts-Jn.pts;return Gr||Or}),ye=a[0].dts,me=a[a.length-1].dts;const St=me-ye,en=St?Math.round(St/(h-1)):re||e.inputTimeScale/30;if(n){const ir=ye-S,Jn=ir>en,Gr=ir<-1;if((Jn||Gr)&&(Jn?x.warn(`AVC: ${Ea(ir,!0)} ms (${ir}dts) hole between fragments detected at ${t.toFixed(3)}`):x.warn(`AVC: ${Ea(-ir,!0)} ms (${ir}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Gr||S>=a[0].pts||wa)){ye=S;const Or=a[0].pts-ir;if(Jn)a[0].dts=ye,a[0].pts=Or;else for(let ei=0;ei<a.length&&!(a[ei].dts>Or);ei++)a[ei].dts-=ir,a[ei].pts-=ir;x.log(`Video: Initial PTS/DTS adjusted: ${Ea(Or,!0)}/${Ea(ye,!0)}, delta: ${Ea(ir,!0)} ms`)}}ye=Math.max(0,ye);let Pt=0,_n=0,Qt=ye;for(let ir=0;ir<h;ir++){const Jn=a[ir],Gr=Jn.units,Or=Gr.length;let ei=0;for(let wi=0;wi<Or;wi++)ei+=Gr[wi].data.length;_n+=ei,Pt+=Or,Jn.length=ei,Jn.dts<Qt?(Jn.dts=Qt,Qt+=en/4|0||1):Qt=Jn.dts,Se=Math.min(Jn.pts,Se),ke=Math.max(Jn.pts,ke)}me=a[h-1].dts;const In=_n+4*Pt+8;let Vn;try{Vn=new Uint8Array(In)}catch(ir){this.observer.emit(u.ERROR,u.ERROR,{type:y.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:ir,bytes:In,reason:`fail allocating video mdat ${In}`});return}const vn=new DataView(Vn.buffer);vn.setUint32(0,In),Vn.set(Nt.types.mdat,4);let kn=!1,Cr=Number.POSITIVE_INFINITY,Qn=Number.POSITIVE_INFINITY,Sr=Number.NEGATIVE_INFINITY,wr=Number.NEGATIVE_INFINITY;for(let ir=0;ir<h;ir++){const Jn=a[ir],Gr=Jn.units;let Or=0;for(let Oi=0,Pi=Gr.length;Oi<Pi;Oi++){const Yi=Gr[Oi],ys=Yi.data,_o=Yi.data.byteLength;vn.setUint32(R,_o),R+=4,Vn.set(ys,R),R+=_o,Or+=4+_o}let ei;if(ir<h-1)re=a[ir+1].dts-Jn.dts,ei=a[ir+1].pts-Jn.pts;else{const Oi=this.config,Pi=ir>0?Jn.dts-a[ir-1].dts:en;if(ei=ir>0?Jn.pts-a[ir-1].pts:en,Oi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Yi=Math.floor(Oi.maxBufferHole*i),ys=(r?Se+r*i:this.nextAudioPts)-Jn.pts;ys>Yi?(re=ys-Pi,re<0?re=Pi:kn=!0,x.log(`[mp4-remuxer]: It is approximately ${ys/90} ms to the next segment; using duration ${re/90} ms for the last video frame.`)):re=Pi}else re=Pi}const wi=Math.round(Jn.pts-Jn.dts);Cr=Math.min(Cr,re),Sr=Math.max(Sr,re),Qn=Math.min(Qn,ei),wr=Math.max(wr,ei),c.push(new te(Jn.key,re,Or,wi))}if(c.length){if(wa){if(wa<70){const ir=c[0].flags;ir.dependsOn=2,ir.isNonSync=0}}else if(ps&&wr-Qn<Sr-Cr&&en/Sr<.025&&c[0].cts===0){x.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let ir=ye;for(let Jn=0,Gr=c.length;Jn<Gr;Jn++){const Or=ir+c[Jn].duration,ei=ir+c[Jn].cts;if(Jn<Gr-1){const wi=Or+c[Jn+1].cts;c[Jn].duration=wi-ei}else c[Jn].duration=Jn?c[Jn-1].duration:en;c[Jn].cts=0,ir=Or}}}re=kn||!re?en:re,this.nextAvcDts=S=me+re,this.videoSampleDuration=re,this.isVideoContiguous=!0;const ni={data1:Nt.moof(e.sequenceNumber++,ye,s({},e,{samples:c})),data2:Vn,startPTS:Se/i,endPTS:(ke+re)/i,startDTS:ye/i,endDTS:S/i,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,ni}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return hs;case"ac3":return Ps;default:return ks}}remuxAudio(e,t,n,r,i){const a=e.inputTimeScale,c=e.samplerate?e.samplerate:a,h=a/c,_=this.getSamplesPerFrame(e),S=_*h,R=this._initPTS,re=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,ye=[],me=i!==void 0;let Se=e.samples,ke=re?0:8,Xe=this.nextAudioPts||-1;const At=t*a,St=R.baseTime*a/R.timescale;if(this.isAudioContiguous=n=n||Se.length&&Xe>0&&(r&&Math.abs(At-Xe)<9e3||Math.abs(Ni(Se[0].pts-St,At)-Xe)<20*S),Se.forEach(function(fr){fr.pts=Ni(fr.pts-St,At)}),!n||Xe<0){if(Se=Se.filter(fr=>fr.pts>=0),!Se.length)return;i===0?Xe=0:r&&!me?Xe=Math.max(0,At):Xe=Se[0].pts}if(e.segmentCodec==="aac"){const fr=this.config.maxAudioFramesDrift;for(let Zr=0,ni=Xe;Zr<Se.length;Zr++){const ir=Se[Zr],Jn=ir.pts,Gr=Jn-ni,Or=Math.abs(1e3*Gr/a);if(Gr<=-fr*S&&me)Zr===0&&(x.warn(`Audio frame @ ${(Jn/a).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Gr/a)} ms.`),this.nextAudioPts=Xe=ni=Jn);else if(Gr>=fr*S&&Or<Va&&me){let ei=Math.round(Gr/S);ni=Jn-ei*S,ni<0&&(ei--,ni+=S),Zr===0&&(this.nextAudioPts=Xe=ni),x.warn(`[mp4-remuxer]: Injecting ${ei} audio frame @ ${(ni/a).toFixed(3)}s due to ${Math.round(1e3*Gr/a)} ms gap.`);for(let wi=0;wi<ei;wi++){const Oi=Math.max(ni,0);let Pi=Wa.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Pi||(x.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Pi=ir.unit.subarray()),Se.splice(Zr,0,{unit:Pi,pts:Oi}),ni+=S,Zr++}}ir.pts=ni,ni+=S}}let en=null,Pt=null,_n,Qt=0,In=Se.length;for(;In--;)Qt+=Se[In].unit.byteLength;for(let fr=0,Zr=Se.length;fr<Zr;fr++){const ni=Se[fr],ir=ni.unit;let Jn=ni.pts;if(Pt!==null){const Or=ye[fr-1];Or.duration=Math.round((Jn-Pt)/h)}else if(n&&e.segmentCodec==="aac"&&(Jn=Xe),en=Jn,Qt>0){Qt+=ke;try{_n=new Uint8Array(Qt)}catch(Or){this.observer.emit(u.ERROR,u.ERROR,{type:y.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:Or,bytes:Qt,reason:`fail allocating audio mdat ${Qt}`});return}re||(new DataView(_n.buffer).setUint32(0,Qt),_n.set(Nt.types.mdat,4))}else return;_n.set(ir,ke);const Gr=ir.byteLength;ke+=Gr,ye.push(new te(!0,_,Gr,0)),Pt=Jn}const Vn=ye.length;if(!Vn)return;const vn=ye[ye.length-1];this.nextAudioPts=Xe=Pt+h*vn.duration;const kn=re?new Uint8Array(0):Nt.moof(e.sequenceNumber++,en/h,s({},e,{samples:ye}));e.samples=[];const Cr=en/a,Qn=Xe/a,wr={data1:kn,data2:_n,startPTS:Cr,endPTS:Qn,startDTS:Cr,endDTS:Qn,type:"audio",hasAudio:!0,hasVideo:!1,nb:Vn};return this.isAudioContiguous=!0,wr}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,a=e.samplerate?e.samplerate:i,c=i/a,h=this.nextAudioPts,_=this._initDTS,S=_.baseTime*9e4/_.timescale,R=(h!==null?h:r.startDTS*i)+S,re=r.endDTS*i+S,ye=c*ks,me=Math.ceil((re-R)/ye),Se=Wa.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(x.warn("[mp4-remuxer]: remux empty Audio"),!Se){x.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const ke=[];for(let Xe=0;Xe<me;Xe++){const At=R+Xe*ye;ke.push({unit:Se,pts:At,dts:At})}return e.samples=ke,this.remuxAudio(e,t,n,!1)}}function Ni(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 qs(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Ms(o,e,t,n){const r=o.samples.length;if(!r)return;const i=o.inputTimeScale;for(let c=0;c<r;c++){const h=o.samples[c];h.pts=Ni(h.pts-t.baseTime*i/t.timescale,e*i)/i,h.dts=Ni(h.dts-n.baseTime*i/n.timescale,e*i)/i}const a=o.samples;return o.samples=[],{samples:a}}function eo(o,e,t){const n=o.samples.length;if(!n)return;const r=o.inputTimeScale;for(let a=0;a<n;a++){const c=o.samples[a];c.pts=Ni(c.pts-t.baseTime*r/t.timescale,e*r)/r}o.samples.sort((a,c)=>a.pts-c.pts);const i=o.samples;return o.samples=[],{samples:i}}class te{constructor(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,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,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(H(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=tt(e);r.audio&&(t=f(r.audio,W.AUDIO)),r.video&&(n=f(r.video,W.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:x.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,a){var c,h;let{initPTS:_,lastEndTime:S}=this;const R={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};A(S)||(S=this.lastEndTime=i||0);const re=t.samples;if(!(re!=null&&re.length))return R;const ye={initPTS:void 0,timescale:1};let me=this.initData;if((c=me)!=null&&c.length||(this.generateInitSegment(re),me=this.initData),!((h=me)!=null&&h.length))return x.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),R;this.emitInitSegment&&(ye.tracks=this.initTracks,this.emitInitSegment=!1);const Se=Tt(re,me),ke=Ee(me,re),Xe=ke===null?i:ke;(d(_,Xe,i,Se)||ye.timescale!==_.timescale&&a)&&(ye.initPTS=Xe-i,_&&_.timescale===1&&x.warn(`Adjusting initPTS by ${ye.initPTS-_.baseTime}`),this.initPTS=_={baseTime:ye.initPTS,timescale:1});const At=e?Xe-_.baseTime/_.timescale:S,St=At+Se;Ut(me,re,_.baseTime/_.timescale),Se>0?this.lastEndTime=St:(x.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const en=!!me.audio,Pt=!!me.video;let _n="";en&&(_n+="audio"),Pt&&(_n+="video");const Qt={data1:re,startPTS:At,startDTS:At,endPTS:St,endDTS:St,type:_n,hasAudio:en,hasVideo:Pt,nb:1,dropped:0};return R.audio=Qt.type==="audio"?Qt:void 0,R.video=Qt.type!=="audio"?Qt:void 0,R.initSegment=ye,R.id3=Ms(n,i,_,_),r.samples.length&&(R.text=eo(r,i,_)),R}}function d(o,e,t,n){if(o===null)return!0;const r=Math.max(n,1),i=e-o.baseTime/o.timescale;return Math.abs(i-t)>r}function f(o,e){const t=o==null?void 0:o.codec;if(t&&t.length>4)return t;if(e===W.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return an(t,!1);const n="mp4a.40.5";return x.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}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=We==null?void 0:We.Date.now}const I=[{demux:Vs,remux:l},{demux:ra,remux:Oa},{demux:Ds,remux:Oa},{demux:ds,remux:Oa}];I.splice(2,0,{demux:ls,remux:Oa});class ee{constructor(e,t,n,r,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=n,this.vendor=r,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=m();let a=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:h}=this;r&&(this.currentTransmuxState=r);const{contiguous:_,discontinuity:S,trackSwitch:R,accurateTimeOffset:re,timeOffset:ye,initSegmentChange:me}=r||c,{audioCodec:Se,videoCodec:ke,defaultInitPts:Xe,duration:At,initSegmentData:St}=h,en=Le(a,t);if(en&&en.method==="AES-128"){const In=this.getDecrypter();if(In.isSync()){let Vn=In.softwareDecrypt(a,en.key.buffer,en.iv.buffer);if(n.part>-1&&(Vn=In.flush()),!Vn)return i.executeEnd=m(),Be(n);a=new Uint8Array(Vn)}else return this.decryptionPromise=In.webCryptoDecrypt(a,en.key.buffer,en.iv.buffer).then(Vn=>{const vn=this.push(Vn,null,n);return this.decryptionPromise=null,vn}),this.decryptionPromise}const Pt=this.needsProbing(S,R);if(Pt){const In=this.configureTransmuxer(a);if(In)return x.warn(`[transmuxer] ${In.message}`),this.observer.emit(u.ERROR,u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:In,reason:In.message}),i.executeEnd=m(),Be(n)}(S||R||me||Pt)&&this.resetInitSegment(St,Se,ke,At,t),(S||me||Pt)&&this.resetInitialTimestamp(Xe),_||this.resetContiguity();const _n=this.transmux(a,en,ye,re,n),Qt=this.currentTransmuxState;return Qt.contiguous=!0,Qt.discontinuity=!1,Qt.trackSwitch=!1,i.executeEnd=m(),_n}flush(e){const t=e.transmuxing;t.executeStart=m();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const a=[],{timeOffset:c}=r;if(n){const R=n.flush();R&&a.push(this.push(R,null,e))}const{demuxer:h,remuxer:_}=this;if(!h||!_)return t.executeEnd=m(),[Be(e)];const S=h.flush(c);return Ve(S)?S.then(R=>(this.flushRemux(a,R,e),a)):(this.flushRemux(a,S,e),a)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:a,textTrack:c}=t,{accurateTimeOffset:h,timeOffset:_}=this.currentTransmuxState;x.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const S=this.remuxer.remux(r,i,a,c,_,h,!0,this.id);e.push({remuxResult:S,chunkMeta:n}),n.transmuxing.executeEnd=m()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:a,remuxer:c}=this;!a||!c||(a.resetInitSegment(e,t,n,r),c.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let a;return t&&t.method==="SAMPLE-AES"?a=this.transmuxSampleAes(e,t,n,r,i):a=this.transmuxUnencrypted(e,n,r,i),a}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:a,id3Track:c,textTrack:h}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,a,c,h,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(a=>({remuxResult:this.remuxer.remux(a.audioTrack,a.videoTrack,a.id3Track,a.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r,vendor:i}=this;let a;for(let re=0,ye=I.length;re<ye;re++){var c;if((c=I[re].demux)!=null&&c.probe(e)){a=I[re];break}}if(!a)return new Error("Failed to find demuxer by probing fragment data");const h=this.demuxer,_=this.remuxer,S=a.remux,R=a.demux;(!_||!(_ instanceof S))&&(this.remuxer=new S(n,t,r,i)),(!h||!(h instanceof R))&&(this.demuxer=new R(n,t,r),this.probe=R.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new fa(this.config)),e}}function Le(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 Be=o=>({remuxResult:{},chunkMeta:o});function Ve(o){return"then"in o&&o.then instanceof Function}class gt{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class Rt{constructor(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}}var Zt={exports:{}};(function(o){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(h,_,S){this.fn=h,this.context=_,this.once=S||!1}function i(h,_,S,R,re){if(typeof S!="function")throw new TypeError("The listener must be a function");var ye=new r(S,R||h,re),me=t?t+_:_;return h._events[me]?h._events[me].fn?h._events[me]=[h._events[me],ye]:h._events[me].push(ye):(h._events[me]=ye,h._eventsCount++),h}function a(h,_){--h._eventsCount===0?h._events=new n:delete h._events[_]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var _=[],S,R;if(this._eventsCount===0)return _;for(R in S=this._events)e.call(S,R)&&_.push(t?R.slice(1):R);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(S)):_},c.prototype.listeners=function(_){var S=t?t+_:_,R=this._events[S];if(!R)return[];if(R.fn)return[R.fn];for(var re=0,ye=R.length,me=new Array(ye);re<ye;re++)me[re]=R[re].fn;return me},c.prototype.listenerCount=function(_){var S=t?t+_:_,R=this._events[S];return R?R.fn?1:R.length:0},c.prototype.emit=function(_,S,R,re,ye,me){var Se=t?t+_:_;if(!this._events[Se])return!1;var ke=this._events[Se],Xe=arguments.length,At,St;if(ke.fn){switch(ke.once&&this.removeListener(_,ke.fn,void 0,!0),Xe){case 1:return ke.fn.call(ke.context),!0;case 2:return ke.fn.call(ke.context,S),!0;case 3:return ke.fn.call(ke.context,S,R),!0;case 4:return ke.fn.call(ke.context,S,R,re),!0;case 5:return ke.fn.call(ke.context,S,R,re,ye),!0;case 6:return ke.fn.call(ke.context,S,R,re,ye,me),!0}for(St=1,At=new Array(Xe-1);St<Xe;St++)At[St-1]=arguments[St];ke.fn.apply(ke.context,At)}else{var en=ke.length,Pt;for(St=0;St<en;St++)switch(ke[St].once&&this.removeListener(_,ke[St].fn,void 0,!0),Xe){case 1:ke[St].fn.call(ke[St].context);break;case 2:ke[St].fn.call(ke[St].context,S);break;case 3:ke[St].fn.call(ke[St].context,S,R);break;case 4:ke[St].fn.call(ke[St].context,S,R,re);break;default:if(!At)for(Pt=1,At=new Array(Xe-1);Pt<Xe;Pt++)At[Pt-1]=arguments[Pt];ke[St].fn.apply(ke[St].context,At)}}return!0},c.prototype.on=function(_,S,R){return i(this,_,S,R,!1)},c.prototype.once=function(_,S,R){return i(this,_,S,R,!0)},c.prototype.removeListener=function(_,S,R,re){var ye=t?t+_:_;if(!this._events[ye])return this;if(!S)return a(this,ye),this;var me=this._events[ye];if(me.fn)me.fn===S&&(!re||me.once)&&(!R||me.context===R)&&a(this,ye);else{for(var Se=0,ke=[],Xe=me.length;Se<Xe;Se++)(me[Se].fn!==S||re&&!me[Se].once||R&&me[Se].context!==R)&&ke.push(me[Se]);ke.length?this._events[ye]=ke.length===1?ke[0]:ke:a(this,ye)}return this},c.prototype.removeAllListeners=function(_){var S;return _?(S=t?t+_:_,this._events[S]&&a(this,S)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,o.exports=c})(Zt);var gn=Zt.exports,wn=M(gn);class Kn{constructor(e,t,n,r){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=n,this.onFlush=r;const a=(_,S)=>{S=S||{},S.frag=this.frag,S.id=this.id,_===u.ERROR&&(this.error=S.error),this.hls.trigger(_,S)};this.observer=new wn,this.observer.on(u.FRAG_DECRYPTED,a),this.observer.on(u.ERROR,a);const c=sn(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},h={mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:c.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||_s())){try{i.workerPath?(x.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=rs(i.workerPath)):(x.log(`injecting Web Worker for "${t}"`),this.workerContext=ns()),this.onwmsg=R=>this.onWorkerMessage(R);const{worker:S}=this.workerContext;S.addEventListener("message",this.onwmsg),S.onerror=R=>{const re=new Error(`${R.message} (${R.filename}:${R.lineno})`);i.enableWorker=!1,x.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:re})},S.postMessage({cmd:"init",typeSupported:h,vendor:"",id:t,config:JSON.stringify(i)})}catch(S){x.warn(`Error setting up "${t}" Web Worker, fallback to inline`,S),this.resetWorker(),this.error=null,this.transmuxer=new ee(this.observer,h,i,"",t)}return}this.transmuxer=new ee(this.observer,h,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,n,r,i,a,c,h,_,S){var R,re;_.transmuxing.start=self.performance.now();const{transmuxer:ye}=this,me=a?a.start:i.start,Se=i.decryptdata,ke=this.frag,Xe=!(ke&&i.cc===ke.cc),At=!(ke&&_.level===ke.level),St=ke?_.sn-ke.sn:-1,en=this.part?_.part-this.part.index:-1,Pt=St===0&&_.id>1&&_.id===(ke==null?void 0:ke.stats.chunkCount),_n=!At&&(St===1||St===0&&(en===1||Pt&&en<=0)),Qt=self.performance.now();(At||St||i.stats.parsing.start===0)&&(i.stats.parsing.start=Qt),a&&(en||!_n)&&(a.stats.parsing.start=Qt);const In=!(ke&&((R=i.initSegment)==null?void 0:R.url)===((re=ke.initSegment)==null?void 0:re.url)),Vn=new Rt(Xe,_n,h,At,me,In);if(!_n||Xe||In){x.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${_.sn} p: ${_.part} level: ${_.level} id: ${_.id}
|
|
|
discontinuity: ${Xe}
|
|
|
trackSwitch: ${At}
|
|
|
contiguous: ${_n}
|
|
|
accurateTimeOffset: ${h}
|
|
|
timeOffset: ${me}
|
|
|
initSegmentChange: ${In}`);const vn=new gt(n,r,t,c,S);this.configureTransmuxer(vn)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Se,chunkMeta:_,state:Vn},e instanceof ArrayBuffer?[e]:[]);else if(ye){const vn=ye.push(e,Se,_,Vn);Ve(vn)?(ye.async=!0,vn.then(kn=>{this.handleTransmuxComplete(kn)}).catch(kn=>{this.transmuxerError(kn,_,"transmuxer-interface push error")})):(ye.async=!1,this.handleTransmuxComplete(vn))}}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 n=t.flush(e);Ve(n)||t.async?(Ve(n)||(n=Promise.resolve(n)),n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),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 n=this.hls;if(this.hls)switch(t.event){case"init":{var r;const i=(r=this.workerContext)==null?void 0:r.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,n.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 er=100;class _r extends _a{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",Ke.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(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n==="main"){const a=t.cc;this.initPTS[t.cc]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${a} found from main: ${r}`),this.videoTrackCC=a,this.state===fn.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=fn.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(er),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=fn.IDLE):(this.loadedmetadata=!1,this.state=fn.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case fn.IDLE:this.doTickIdle();break;case fn.WAITING_TRACK:{var e;const{levels:n,trackId:r}=this,i=n==null||(e=n[r])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=fn.WAITING_INIT_PTS}break}case fn.FRAG_LOADING_WAITING_RETRY:{var t;const n=performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:a}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[a])||null),this.state=fn.IDLE}break}case fn.WAITING_INIT_PTS:{const n=this.waitingData;if(n){const{frag:r,part:i,cache:a,complete:c}=n;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=fn.FRAG_LOADING;const h=a.flush(),_={frag:r,part:i,payload:h,networkDetails:null};this._handleFragmentLoadProgress(_),c&&super._handleFragmentLoadComplete(_)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const h=this.getLoadPosition(),_=Kr.bufferInfo(this.mediaBuffer,h,this.config.maxBufferHole);Bi(_.end,this.config.maxFragLookUpTolerance,r)<0&&(this.log(`Waiting fragment cc (${r.cc}) @ ${r.start} cancelled because another fragment at ${_.end} is needed`),this.clearWaitingFragment())}}else this.state=fn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=fn.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:n,trackId:r}=this,i=e.config;if(!this.buffering||!n&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[r]))return;const a=t[r],c=a.details;if(!c||c.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(c)){this.state=fn.WAITING_TRACK;return}const h=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&h&&(this.bufferFlushed=!1,this.afterBufferFlushed(h,W.AUDIO,Ke.AUDIO));const _=this.getFwdBufferInfo(h,Ke.AUDIO);if(_===null)return;if(!this.switchingTrack&&this._streamEnded(_,c)){e.trigger(u.BUFFER_EOS,{type:"audio"}),this.state=fn.ENDED;return}const S=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ke.MAIN),R=_.len,re=this.getMaxBufferLength(S==null?void 0:S.len),ye=c.fragments,me=ye[0].start,Se=this.getLoadPosition(),ke=this.flushing?Se:_.end;if(this.switchingTrack&&n){const en=Se;c.PTSKnown&&en<me&&(_.end>me||_.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=me+.05)}if(R>=re&&!this.switchingTrack&&ke<ye[ye.length-1].start)return;let Xe=this.getNextFragment(ke,c),At=!1;if(Xe&&this.isLoopLoading(Xe,ke)&&(At=!!Xe.gap,Xe=this.getNextFragmentLoopLoading(Xe,c,_,Ke.MAIN,re)),!Xe){this.bufferFlushed=!0;return}const St=S&&Xe.start>S.end+c.targetduration;if(St||!(S!=null&&S.len)&&_.len){const en=this.getAppendedFrag(Xe.start,Ke.MAIN);if(en===null||(At||(At=!!en.gap||!!St&&S.len===0),St&&!At||At&&_.nextStart&&_.nextStart<en.end))return}this.loadFragment(Xe,a,ke)}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(n=>new Br(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?this.setInterval(er):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=fn.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=fn.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(u.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var n;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:r}=this,{details:i,id:a}=t;if(!r){this.warn(`Audio tracks were reset while loading level ${a}`);return}this.log(`Audio track ${a} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const c=r[a];let h=0;if(i.live||(n=c.details)!=null&&n.live){this.checkLiveUpdate(i);const S=this.mainDetails;if(i.deltaUpdateFailed||!S)return;if(!c.details&&i.hasProgramDateTime&&S.hasProgramDateTime)Ui(i,S),h=i.fragments[0].start;else{var _;h=this.alignPlaylists(i,c.details,(_=this.levelLastLoaded)==null?void 0:_.details)}}c.details=i,this.levelLastLoaded=c,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,h),this.state===fn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=fn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{config:a,trackId:c,levels:h}=this;if(!h){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const _=h[c];if(!_){this.warn("Audio track is undefined on fragment load progress");return}const S=_.details;if(!S){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const R=a.defaultAudioCodec||_.audioCodec||"mp4a.40.2";let re=this.transmuxer;re||(re=this.transmuxer=new Kn(this.hls,Ke.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const ye=this.initPTS[n.cc],me=(t=n.initSegment)==null?void 0:t.data;if(ye!==void 0){const ke=r?r.index:-1,Xe=ke!==-1,At=new ga(n.level,n.sn,n.stats.chunkCount,i.byteLength,ke,Xe);re.push(i,me,R,"",n,r,S.totalduration,!1,At,ye)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${S.startSN} ,${S.endSN}],track ${c}`);const{cache:Se}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ts,complete:!1};Se.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=fn.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 n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==Ke.AUDIO){if(!this.loadedmetadata&&n.type===Ke.MAIN){const i=this.videoBuffer||this.media;i&&Kr.getBuffered(i).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(n.sn!=="initSegment"){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(u.AUDIO_TRACK_SWITCHED,j({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=fn.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ke.AUDIO,t);break;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===fn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===tn.AUDIO_TRACK&&(this.state=fn.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==W.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==W.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===fn.ENDED&&(this.state=fn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,Ke.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,c=this.getCurrentContext(a);if(!c){this.resetWhenMissingContext(a);return}const{frag:h,part:_,level:S}=c,{details:R}=S,{audio:re,text:ye,id3:me,initSegment:Se}=i;if(this.fragContextChanged(h)||!R){this.fragmentTracker.removeFragment(h);return}if(this.state=fn.PARSING,this.switchingTrack&&re&&this.completeAudioSwitch(this.switchingTrack),Se!=null&&Se.tracks){const ke=h.initSegment||h;this._bufferInitSegment(S,Se.tracks,ke,a),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:ke,id:n,tracks:Se.tracks})}if(re){const{startPTS:ke,endPTS:Xe,startDTS:At,endDTS:St}=re;_&&(_.elementaryStreams[W.AUDIO]={startPTS:ke,endPTS:Xe,startDTS:At,endDTS:St}),h.setElementaryStreamInfo(W.AUDIO,ke,Xe,At,St),this.bufferFragmentData(re,h,_,a)}if(me!=null&&(t=me.samples)!=null&&t.length){const ke=s({id:n,frag:h,details:R},me);r.trigger(u.FRAG_PARSING_METADATA,ke)}if(ye){const ke=s({id:n,frag:h,details:R},ye);r.trigger(u.FRAG_PARSING_USERDATA,ke)}}_bufferInitSegment(e,t,n,r){if(this.state!==fn.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="audio";const a=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${a}/${i.codec}]`),a&&a.split(",").length===1&&(i.levelCodec=a),this.hls.trigger(u.BUFFER_CODECS,t);const c=i.initSegment;if(c!=null&&c.byteLength){const h={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(u.BUFFER_APPENDING,h)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===$r.NOT_LOADED||r===$r.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=fn.WAITING_INIT_PTS;const a=this.mainDetails;a&&a.fragments[0].start!==t.details.fragments[0].start&&Ui(t.details,a)}else this.startFragRequested=!0,super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:c}=this.bufferedTrack;Di({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:c},e,cr)||(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(u.AUDIO_TRACK_SWITCHED,j({},e))}}function Er(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!xr(o[t].attrs,e[t].attrs))return!1;return!0}function xr(o,e,t){const n=o["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>o[r]!==e[r])}function Xr(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class Qr extends Ir{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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(u.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${a==null?void 0:a.groupId}`);return}const c=a.details;a.details=t.details,this.log(`Audio track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(c=>(r==null?void 0:r.indexOf(c))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(re=>!n||n.indexOf(re.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(re=>re.default)&&(this.selectDefaultTrack=!1),c.forEach((re,ye)=>{re.id=ye});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const h=this.hls.config.audioPreference;if(!i&&h){const re=Si(h,c,cr);if(re>-1)i=c[re];else{const ye=Si(h,this.tracks);i=this.tracks[ye]}}let _=this.findTrackId(i);_===-1&&i&&(_=this.findTrackId(null));const S={audioTracks:c};this.log(`Updating audio tracks, ${c.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(u.AUDIO_TRACKS_UPDATED,S);const R=this.trackId;if(_!==-1&&R===-1)this.setAudioTrack(_);else if(c.length&&R===-1){var a;const re=new Error(`No audio track selected for current audio group-ID(s): ${(a=this.groupIds)==null?void 0:a.join(",")} track count: ${c.length}`);this.warn(re.message),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:re})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===tn.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 n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Di(e,r,cr))return r;const i=Si(e,this.tracksInGroup,cr);if(i>-1){const a=this.tracksInGroup[i];return this.setAudioTrack(i),a}else if(r){let a=t.loadLevel;a===-1&&(a=t.firstAutoLevel);const c=mi(e,t.levels,n,a,cr);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const a=Si(e,n);if(a>-1)return n[a]}}}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 n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(u.AUDIO_TRACK_SWITCHING,j({},r)),i))return;const a=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(a)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||Di(e,r,cr)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:c,channels:h}=e;for(let _=0;_<t.length;_++){const S=t[_];if(Di({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:c,channels:h},S,cr))return _}for(let _=0;_<t.length;_++){const S=t[_];if(xr(e.attrs,S.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return _}for(let _=0;_<t.length;_++){const S=t[_];if(xr(e.attrs,S.attrs,["LANGUAGE"]))return _}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}this.log(`loading audio-track playlist ${n} "${t.name}" lang:${t.lang} group:${r}`),this.clearTimer(),this.hls.trigger(u.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}}const ri=500;class ai extends _a{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",Ke.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(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.ERROR,this.onError,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.ERROR,this.onError,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=fn.IDLE,this.setInterval(ri),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:n,success:r}=t;if(this.fragPrevious=n,this.state=fn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let a;const c=n.start;for(let _=0;_<i.length;_++)if(c>=i[_].start&&c<=i[_].end){a=i[_];break}const h=n.start+n.duration;a?a.end=h:(a={start:c,end:h},i.push(a)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null)}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(a=>{for(let c=0;c<a.length;){if(a[c].end<=i){a.shift();continue}else if(a[c].start<i)a[c].start=i;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(n,i,Ke.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ke.MAIN){var n;(n=this.media)!=null&&n.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===Ke.SUBTITLE&&(t.details===b.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==fn.STOPPED&&(this.state=fn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Er(this.levels,t)){this.levels=t.map(n=>new Br(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Br(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ke.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(ri)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:a,id:c}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const h=i[c];if(c>=i.length||!h)return;this.log(`Subtitle track ${c} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let _=0;if(a.live||(n=h.details)!=null&&n.live){const R=this.mainDetails;if(a.deltaUpdateFailed||!R)return;const re=R.fragments[0];if(!h.details)a.hasProgramDateTime&&R.hasProgramDateTime?(Ui(a,R),_=a.fragments[0].start):re&&(_=re.start,Wt(a,_));else{var S;_=this.alignPlaylists(a,h.details,(S=this.levelLastLoaded)==null?void 0:S.details),_===0&&re&&(_=re.start,Wt(a,_))}}h.details=a,this.levelLastLoaded=h,c===r&&(!this.startFragRequested&&(this.mainDetails||!a.live)&&this.setStartPosition(this.mainDetails||a,_),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===fn.IDLE&&(Yr(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),h.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&r.method==="AES-128"){const a=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer).catch(c=>{throw i.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const h=performance.now();i.trigger(u.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:a,tdecrypt:h}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=fn.IDLE})}}doTick(){if(!this.media){this.state=fn.IDLE;return}if(this.state===fn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details)return;const{config:r}=this,i=this.getLoadPosition(),a=Kr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:h}=a,_=this.getFwdBufferInfo(this.media,Ke.MAIN),S=n.details,R=this.getMaxBufferLength(_==null?void 0:_.len)+S.levelTargetDuration;if(h>R)return;const re=S.fragments,ye=re.length,me=S.edge;let Se=null;const ke=this.fragPrevious;if(c<me){const Xe=r.maxFragLookUpTolerance,At=c>me-Xe?0:Xe;Se=Yr(ke,re,Math.max(re[0].start,c),At),!Se&&ke&&ke.start<re[0].start&&(Se=re[0])}else Se=re[ye-1];if(!Se)return;if(Se=this.mapToInitFragWhenRequired(Se),Se.sn!=="initSegment"){const Xe=Se.sn-S.startSN,At=re[Xe-1];At&&At.cc===Se.cc&&this.fragmentTracker.getState(At)===$r.NOT_LOADED&&(Se=At)}this.fragmentTracker.getState(Se)===$r.NOT_LOADED&&this.loadFragment(Se,n,c)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,n){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,n))}get mediaBufferTimeRanges(){return new di(this.tracksBuffered[this.currentTrackId]||[])}}class di{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}class Ii extends Ir{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 n=ln(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADING,this.onLevelLoading,this),e.off(u.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(u.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(u.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),ln(this.media.textTracks).forEach(t=>{rr(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:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${a==null?void 0:a.groupId}`);return}const c=a.details;a.details=t.details,this.log(`Subtitle track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(a=>(r==null?void 0:r.indexOf(a))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(S=>!n||n.indexOf(S.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(S=>S.default)&&(this.selectDefaultTrack=!1),a.forEach((S,R)=>{S.id=R});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const S=Si(c,a);if(S>-1)i=a[S];else{const R=Si(c,this.tracks);i=this.tracks[R]}}let h=this.findTrackId(i);h===-1&&i&&(h=this.findTrackId(null));const _={subtitleTracks:a};this.log(`Updating subtitle tracks, ${a.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(u.SUBTITLE_TRACKS_UPDATED,_),h!==-1&&this.trackId===-1&&this.setSubtitleTrack(h)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||Di(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(xr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(xr(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(Xr(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===tn.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 n=this.currentTrack;if(n&&Di(e,n))return n;const r=Si(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=Si(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(u.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=ln(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Xr(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!A(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:a,groupId:c="",name:h,type:_,url:S}=r;this.hls.trigger(u.SUBTITLE_TRACK_SWITCH,{id:a,groupId:c,name:h,type:_,url:S});const R=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(R)}}class Ti{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,n){const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const n=new Promise(i=>{t=i}),r={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(r,e),n}executeNext(e){const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(r){x.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${r}`),n.onError(r);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 Wr=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ki{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=n=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:n,mediaSource:r}=this;this.log("Media source opened"),n&&(n.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(u.MEDIA_ATTACHED,{media:n,mediaSource:r})),r&&r.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&x.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Rn(sn(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(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.BUFFER_RESET,this.onBufferReset,this),e.on(u.BUFFER_APPENDING,this.onBufferAppending,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.BUFFER_EOS,this.onBufferEos,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(u.FRAG_PARSED,this.onFragParsed,this),e.on(u.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.BUFFER_RESET,this.onBufferReset,this),e.off(u.BUFFER_APPENDING,this.onBufferAppending,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.BUFFER_EOS,this.onBufferEos,this),e.off(u.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(u.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(u.FRAG_PARSED,this.onFragParsed,this),e.off(u.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Ti(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 n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const n=this.media=t.media,r=sn(this.appendSource);if(n&&r){var i;const a=this.mediaSource=new r;this.log(`created media source: ${(i=a.constructor)==null?void 0:i.name}`),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming));const c=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{n.removeAttribute("src");const h=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||h&&a instanceof h,Ji(n),ji(n,c),n.load()}catch(h){n.src=c}else n.src=c;n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:n}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(r){this.warn(`onMediaDetaching: ${r.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),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&Ji(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(u.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 n;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(r){this.warn(`onBufferReset ${e}`,r)}}onBufferCodecs(e,t){const n=this.getSourceBufferTypes().length,r=Object.keys(t);if(r.forEach(a=>{if(n){const h=this.tracks[a];if(h&&typeof h.buffer.changeType=="function"){var c;const{id:_,codec:S,levelCodec:R,container:re,metadata:ye}=t[a],me=nn(h.codec,h.levelCodec),Se=me==null?void 0:me.replace(Wr,"$1");let ke=nn(S,R);const Xe=(c=ke)==null?void 0:c.replace(Wr,"$1");if(ke&&Se!==Xe){a.slice(0,5)==="audio"&&(ke=an(ke,this.appendSource));const At=`${re};codecs=${ke}`;this.appendChangeType(a,At),this.log(`switching codec ${me} to ${ke}`),this.tracks[a]={buffer:h.buffer,codec:S,container:re,levelCodec:R,metadata:ye,id:_}}}}else this.pendingTracks[a]=t[a]}),n)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${r.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:n}=this,r={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};n.append(r,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:n,operationQueue:r,tracks:i}=this,{data:a,type:c,frag:h,part:_,chunkMeta:S}=t,R=S.buffering[c],re=self.performance.now();R.start=re;const ye=h.stats.buffering,me=_?_.stats.buffering:null;ye.start===0&&(ye.start=re),me&&me.start===0&&(me.start=re);const Se=i.audio;let ke=!1;c==="audio"&&(Se==null?void 0:Se.container)==="audio/mpeg"&&(ke=!this.lastMpegAudioChunk||S.id===1||this.lastMpegAudioChunk.sn!==S.sn,this.lastMpegAudioChunk=S);const Xe=h.start,At={execute:()=>{if(R.executeStart=self.performance.now(),ke){const St=this.sourceBuffer[c];if(St){const en=Xe-St.timestampOffset;Math.abs(en)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Xe} (delta: ${en}) sn: ${h.sn})`),St.timestampOffset=Xe)}}this.appendExecutor(a,c)},onStart:()=>{},onComplete:()=>{const St=self.performance.now();R.executeEnd=R.end=St,ye.first===0&&(ye.first=St),me&&me.first===0&&(me.first=St);const{sourceBuffer:en}=this,Pt={};for(const _n in en)Pt[_n]=Kr.getBuffered(en[_n]);this.appendErrors[c]=0,c==="audio"||c==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(u.BUFFER_APPENDED,{type:c,frag:h,part:_,chunkMeta:S,parent:h.type,timeRanges:Pt})},onError:St=>{const en={type:y.MEDIA_ERROR,parent:h.type,details:b.BUFFER_APPEND_ERROR,sourceBufferName:c,frag:h,part:_,chunkMeta:S,error:St,err:St,fatal:!1};if(St.code===DOMException.QUOTA_EXCEEDED_ERR)en.details=b.BUFFER_FULL_ERROR;else{const Pt=++this.appendErrors[c];en.details=b.BUFFER_APPEND_ERROR,this.warn(`Failed ${Pt}/${n.config.appendErrorMaxRetry} times to append segment in "${c}" sourceBuffer`),Pt>=n.config.appendErrorMaxRetry&&(en.fatal=!0)}n.trigger(u.ERROR,en)}};r.append(At,c,!!this.pendingTracks[c])}onBufferFlushing(e,t){const{operationQueue:n}=this,r=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(u.BUFFER_FLUSHED,{type:i})},onError:a=>{this.warn(`Failed to remove from ${i} SourceBuffer`,a)}});t.type?n.append(r(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{n.append(r(i),i)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],a=r?r.elementaryStreams:n.elementaryStreams;a[W.AUDIOVIDEO]?i.push("audiovideo"):(a[W.AUDIO]&&i.push("audio"),a[W.VIDEO]&&i.push("video"));const c=()=>{const h=self.performance.now();n.stats.buffering.end=h,r&&(r.stats.buffering.end=h);const _=r?r.stats:n.stats;this.hls.trigger(u.FRAG_BUFFERED,{frag:n,part:r,stats:_,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(c,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((r,i)=>{const a=this.sourceBuffer[i];return a&&(!t.type||t.type===i)&&(a.ending=!0,a.ended||(a.ended=!0,this.log(`${i} sourceBuffer now EOS`))),r&&!!(!a||a.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const a=this.sourceBuffer[i];a&&(a.ending=!1)});const{mediaSource:r}=this;if(!r||r.readyState!=="open"){r&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${r.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),r.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:n}=this;if(!n||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,a=n.currentTime,c=t.levelTargetDuration,h=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(A(h)&&h>0){const _=Math.max(h,c),S=Math.floor(a/c)*c-_;this.flushBackBuffer(a,c,S)}if(A(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const _=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),S=Math.max(_,c),R=Math.floor(a/c)*c+S;this.flushFrontBuffer(a,c,R)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(c=>{const h=i[c];if(h){const _=Kr.getBuffered(h);if(_.length>0&&n>_.start(0)){if(this.hls.trigger(u.BACK_BUFFER_REACHED,{bufferEnd:n}),r!=null&&r.live)this.hls.trigger(u.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(h.ended&&_.end(_.length-1)-e<t*2){this.log(`Cannot flush ${c} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:c})}}})}flushFrontBuffer(e,t,n){const{sourceBuffer:r}=this;this.getSourceBufferTypes().forEach(a=>{const c=r[a];if(c){const h=Kr.getBuffered(c),_=h.length;if(_<2)return;const S=h.start(_-1),R=h.end(_-1);if(n>S||e>=S&&e<=R)return;if(c.ended&&e-R<2*t){this.log(`Cannot flush ${a} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(u.BUFFER_FLUSHING,{startOffset:S,endOffset:1/0,type:a})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:n,mediaSource:r}=this,i=e.fragments[0].start+e.totalduration,a=n.duration,c=A(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>c&&i>a||!A(a))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),r.duration=i)}updateSeekableRange(e){const t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,n[0].start),a=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${a}.`),t.setLiveSeekableRange(i,a)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:n}=this,r=Object.keys(n).length;if(r&&(!e||r===2||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(u.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(a=>{t.executeNext(a)});else{const a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var r;const a=e[i];if(!a)throw Error(`source buffer exists for track ${i}, however track does not`);let c=((r=a.levelCodec)==null?void 0:r.indexOf(","))===-1?a.levelCodec:a.codec;c&&i.slice(0,5)==="audio"&&(c=an(c,this.appendSource));const h=`${a.container};codecs=${c}`;this.log(`creating sourceBuffer(${h})`);try{const _=t[i]=n.addSourceBuffer(h),S=i;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(S,"bufferedchange",(R,re)=>{const ye=re.removedRanges;ye!=null&&ye.length&&this.hls.trigger(u.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:_,codec:c,container:a.container,levelCodec:a.levelCodec,metadata:a.metadata,id:a.id}}catch(_){this.error(`error while trying to add sourceBuffer: ${_.message}`),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,sourceBufferName:i,mimeType:h})}}}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}_onSBUpdateStart(e){const{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:n}=this;n.current(e).onComplete(),n.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i,operationQueue:a,sourceBuffer:c}=this,h=c[e];if(!r||!i||!h){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),a.shiftAndExecuteNext(e);return}const _=A(r.duration)?r.duration:1/0,S=A(i.duration)?i.duration:1/0,R=Math.max(0,t),re=Math.min(n,_,S);re>R&&(!h.ending||h.ended)?(h.ended=!1,this.log(`Removing [${R},${re}] from the ${e} SourceBuffer`),h.remove(R,re)):a.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.sourceBuffer[t];if(!n){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}n.ended=!1,n.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:n}=this,r=t.map(i=>n.appendBlocker(i));Promise.all(r).then(()=>{e(),t.forEach(i=>{const a=this.sourceBuffer[i];a!=null&&a.updating||n.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,n){const r=this.sourceBuffer[e];if(!r)return;const i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(n=>{t.removeEventListener(n.event,n.listener)})}}function Ji(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function ji(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}const Li={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},qi=o=>String.fromCharCode(Li[o]||o),yi=15,Gi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Sa={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Ca={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ta={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ya=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Xa{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;x.log(`${this.time} [${e}] ${n}`)}}}const pa=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Ns{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class no{constructor(){this.uchar=" ",this.penState=new Ns}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 ms{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ns,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Gi;t++)this.chars.push(new no);this.logger=e}equals(e){for(let t=0;t<Gi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Gi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Gi;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>Gi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Gi)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=qi(e);if(this.pos>=Gi){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<Gi;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<Gi;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Qa{constructor(e){this.rows=[],this.currRow=yi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<yi;t++)this.rows.push(new ms(e));this.logger=e}reset(){for(let e=0;e<yi;e++)this.rows[e].clear();this.currRow=yi-1}equals(e){let t=!0;for(let n=0;n<yi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<yi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<yi;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 c=0;c<yi;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){const c=a.rows[i].cueStartTime,h=this.logger.time;if(c!==null&&h!==null&&c<h)for(let _=0;_<this.nrRollUpRows;_++)this.rows[t-this.nrRollUpRows+_+1].copy(a.rows[i+_])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,a=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[a].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+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 n="",r=-1;for(let i=0;i<yi;i++){const a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
|
`)),n}getTextAndFormat(){return this.rows}}class gs{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Qa(n),this.nonDisplayedMemory=new Qa(n),this.lastOutputScreen=new Qa(n),this.currRollUpRow=this.displayedMemory.rows[yi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[yi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+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 vs{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qo(),this.logger=void 0;const r=this.logger=new Xa;this.channels=[null,new gs(e,t,r),new gs(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let a=!1,c=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+pa([t[n],t[n+1]])+"] -> ("+pa([r,i])+")");const h=this.cmdHistory;if(r>=16&&r<=31){if(Jo(r,i,h)){ma(null,null,h),this.logger.log(3,()=>"Repeated command ("+pa([r,i])+") is dropped");continue}ma(r,i,this.cmdHistory),a=this.parseCmd(r,i),a||(a=this.parseMidrow(r,i)),a||(a=this.parsePAC(r,i)),a||(a=this.parseBackgroundAttributes(r,i))}else ma(null,null,h);if(!a&&(c=this.parseChars(r,i),c)){const S=this.currentChannel;S&&S>0?this.channels[S].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!a&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+pa([r,i])+" orig: "+pa([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,a=this.channels[i];return e===20||e===21||e===28||e===29?t===32?a.ccRCL():t===33?a.ccBS():t===34?a.ccAOF():t===35?a.ccAON():t===36?a.ccDER():t===37?a.ccRU(2):t===38?a.ccRU(3):t===39?a.ccRU(4):t===40?a.ccFON():t===41?a.ccRDC():t===42?a.ccTR():t===43?a.ccRTD():t===44?a.ccEDM():t===45?a.ccCR():t===46?a.ccENM():t===47&&a.ccEOC():a.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+pa([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const a=e<=23?1:2;t>=64&&t<=95?n=a===1?to[e]:Ca[e]:n=a===1?Sa[e]:Ta[e];const c=this.channels[a];return c?(c.setPAC(this.interpretPAC(n,t)),this.currentChannel=a,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let a;i===17?a=t+80:i===18?a=t+112:a=t+144,this.logger.log(2,()=>"Special char '"+qi(a)+"' in channel "+n),r=[a]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+pa(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const a={};e===16||e===24?(i=Math.floor((t-32)/2),a.background=Ya[i],t%2===1&&(a.background=a.background+"_semi")):t===45?a.background="transparent":(a.foreground="black",t===47&&(a.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(a),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ma(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function ma(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 Fs{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var ro=function(){if(We!=null&&We.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,h){if(typeof h!="string"||!Array.isArray(c))return!1;const _=h.toLowerCase();return~c.indexOf(_)?_:!1}function n(c){return t(o,c)}function r(c){return t(e,c)}function i(c,...h){let _=1;for(;_<arguments.length;_++){const S=arguments[_];for(const R in S)c[R]=S[R]}return c}function a(c,h,_){const S=this,R={enumerable:!0};S.hasBeenReset=!1;let re="",ye=!1,me=c,Se=h,ke=_,Xe=null,At="",St=!0,en="auto",Pt="start",_n=50,Qt="middle",In=50,Vn="middle";Object.defineProperty(S,"id",i({},R,{get:function(){return re},set:function(vn){re=""+vn}})),Object.defineProperty(S,"pauseOnExit",i({},R,{get:function(){return ye},set:function(vn){ye=!!vn}})),Object.defineProperty(S,"startTime",i({},R,{get:function(){return me},set:function(vn){if(typeof vn!="number")throw new TypeError("Start time must be set to a number.");me=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"endTime",i({},R,{get:function(){return Se},set:function(vn){if(typeof vn!="number")throw new TypeError("End time must be set to a number.");Se=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"text",i({},R,{get:function(){return ke},set:function(vn){ke=""+vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"region",i({},R,{get:function(){return Xe},set:function(vn){Xe=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"vertical",i({},R,{get:function(){return At},set:function(vn){const kn=n(vn);if(kn===!1)throw new SyntaxError("An invalid or illegal string was specified.");At=kn,this.hasBeenReset=!0}})),Object.defineProperty(S,"snapToLines",i({},R,{get:function(){return St},set:function(vn){St=!!vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"line",i({},R,{get:function(){return en},set:function(vn){if(typeof vn!="number"&&vn!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");en=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"lineAlign",i({},R,{get:function(){return Pt},set:function(vn){const kn=r(vn);if(!kn)throw new SyntaxError("An invalid or illegal string was specified.");Pt=kn,this.hasBeenReset=!0}})),Object.defineProperty(S,"position",i({},R,{get:function(){return _n},set:function(vn){if(vn<0||vn>100)throw new Error("Position must be between 0 and 100.");_n=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"positionAlign",i({},R,{get:function(){return Qt},set:function(vn){const kn=r(vn);if(!kn)throw new SyntaxError("An invalid or illegal string was specified.");Qt=kn,this.hasBeenReset=!0}})),Object.defineProperty(S,"size",i({},R,{get:function(){return In},set:function(vn){if(vn<0||vn>100)throw new Error("Size must be between 0 and 100.");In=vn,this.hasBeenReset=!0}})),Object.defineProperty(S,"align",i({},R,{get:function(){return Vn},set:function(vn){const kn=r(vn);if(!kn)throw new SyntaxError("An invalid or illegal string was specified.");Vn=kn,this.hasBeenReset=!0}})),S.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();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(n,r,i,a){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(a||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,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function Eo(o,e,t,n){const r=n?o.split(n):[o];for(const i in r){if(typeof r[i]!="string")continue;const a=r[i].split(t);if(a.length!==2)continue;const c=a[0],h=a[1];e(c,h)}}const io=new ro(0,0,""),Bs=io.align==="middle"?"middle":"center";function nl(o,e,t){const n=o;function r(){const c=xo(o);if(c===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,h){const _=new tl;Eo(c,function(re,ye){let me;switch(re){case"region":for(let Se=t.length-1;Se>=0;Se--)if(t[Se].id===ye){_.set(re,t[Se].region);break}break;case"vertical":_.alt(re,ye,["rl","lr"]);break;case"line":me=ye.split(","),_.integer(re,me[0]),_.percent(re,me[0])&&_.set("snapToLines",!1),_.alt(re,me[0],["auto"]),me.length===2&&_.alt("lineAlign",me[1],["start",Bs,"end"]);break;case"position":me=ye.split(","),_.percent(re,me[0]),me.length===2&&_.alt("positionAlign",me[1],["start",Bs,"end","line-left","line-right","auto"]);break;case"size":_.percent(re,ye);break;case"align":_.alt(re,ye,["start",Bs,"end","left","right"]);break}},/:/,/\s/),h.region=_.get("region",null),h.vertical=_.get("vertical","");let S=_.get("line","auto");S==="auto"&&io.line===-1&&(S=-1),h.line=S,h.lineAlign=_.get("lineAlign","start"),h.snapToLines=_.get("snapToLines",!0),h.size=_.get("size",100),h.align=_.get("align",Bs);let R=_.get("position","auto");R==="auto"&&io.position===50&&(R=h.align==="start"||h.align==="left"?0:h.align==="end"||h.align==="right"?100:50),h.position=R}function a(){o=o.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);o=o.slice(3),a(),e.endTime=r(),a(),i(o,e)}function wo(o){return o.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class rl{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 n(){let i=t.buffer,a=0;for(i=wo(i);a<i.length&&i[a]!=="\r"&&i[a]!==`
|
|
|
`;)++a;const c=i.slice(0,a);return i[a]==="\r"&&++a,i[a]===`
|
|
|
`&&++a,t.buffer=i.slice(a),c}function r(i){Eo(i,function(a,c){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const c=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let a=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new ro(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{nl(i,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=i.indexOf("-->")!==-1;if(!i||c&&(a=!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,ao=function(e,t,n=0){return e.slice(n,n+t.length)===t},al=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!A(t)||!A(n)||!A(r)||!A(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},so=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function oo(o,e,t){return so(o.toString())+so(e.toString())+so(t)}const sl=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(a=i)!=null&&a.new;){var a;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function ol(o,e,t,n,r,i,a){const c=new rl,h=Qe(new Uint8Array(o)).trim().replace(il,`
|
|
|
`).split(`
|
|
|
`),_=[],S=e?Os(e.baseTime,e.timescale):0;let R="00:00.000",re=0,ye=0,me,Se=!0;c.oncue=function(ke){const Xe=t[n];let At=t.ccOffset;const St=(re-S)/9e4;if(Xe!=null&&Xe.new&&(ye!==void 0?At=t.ccOffset=Xe.start:sl(t,n,St)),St){if(!e){me=new Error("Missing initPTS for VTT MPEGTS");return}At=St-t.presentationOffset}const en=ke.endTime-ke.startTime,Pt=Ni((ke.startTime+At-ye)*9e4,r*9e4)/9e4;ke.startTime=Math.max(Pt,0),ke.endTime=Math.max(Pt+en,0);const _n=ke.text.trim();ke.text=decodeURIComponent(encodeURIComponent(_n)),ke.id||(ke.id=oo(ke.startTime,ke.endTime,_n)),ke.endTime>0&&_.push(ke)},c.onparsingerror=function(ke){me=ke},c.onflush=function(){if(me){a(me);return}i(_)},h.forEach(ke=>{if(Se)if(ao(ke,"X-TIMESTAMP-MAP=")){Se=!1,ke.slice(16).split(",").forEach(Xe=>{ao(Xe,"LOCAL:")?R=Xe.slice(6):ao(Xe,"MPEGTS:")&&(re=parseInt(Xe.slice(7)))});try{ye=al(R)/1e3}catch(Xe){me=Xe}return}else ke===""&&(Se=!1);c.parse(ke+`
|
|
|
`)}),c.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Co=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function To(o,e,t,n){const r=$e(new Uint8Array(o),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(c=>Qe(c)),a=Js(e.baseTime,1,e.timescale);try{i.forEach(c=>t(ul(c,a)))}catch(c){n(c)}}function ul(o,e){const r=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(i).reduce((R,re)=>(R[re]=r.getAttribute(`ttp:${re}`)||i[re],R),{}),c=r.getAttribute("xml:space")!=="preserve",h=Ao(uo(r,"styling","style")),_=Ao(uo(r,"layout","region")),S=uo(r,"body","[begin]");return[].map.call(S,R=>{const re=Do(R,c);if(!re||!R.hasAttribute("begin"))return null;const ye=fo(R.getAttribute("begin"),a),me=fo(R.getAttribute("dur"),a);let Se=fo(R.getAttribute("end"),a);if(ye===null)throw Ro(R);if(Se===null){if(me===null)throw Ro(R);Se=ye+me}const ke=new ro(ye-e,Se-e,re);ke.id=oo(ke.startTime,ke.endTime,ke.text);const Xe=_[R.getAttribute("region")],At=h[R.getAttribute("style")],St=cl(Xe,At,h),{textAlign:en}=St;if(en){const Pt=ll[en];Pt&&(ke.lineAlign=Pt),ke.align=en}return s(ke,St),ke}).filter(R=>R!==null)}function uo(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ao(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Do(o,e){return[].slice.call(o.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
|
`:(i=n.childNodes)!=null&&i.length?Do(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function cl(o,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return a&&t.hasOwnProperty(a)&&(r=t[a]),i.reduce((c,h)=>{const _=co(e,n,h)||co(o,n,h)||co(r,n,h);return _&&(c[h]=_),c},{})}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 fo(o,e){if(!o)return null;let t=xo(o);return t===null&&(So.test(o)?t=dl(o,e):Co.test(o)&&(t=fl(o,e))),t}function dl(o,e){const t=So.exec(o),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function fl(o,e){const t=Co.exec(o),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class hl{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=Oo(),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(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(u.FRAG_LOADING,this.onFragLoading,this),e.on(u.FRAG_LOADED,this.onFragLoaded,this),e.on(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(u.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(u.FRAG_LOADING,this.onFragLoading,this),e.off(u.FRAG_LOADED,this.onFragLoaded,this),e.off(u.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(u.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(u.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(u.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(u.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 Fs(this,"textTrack1"),t=new Fs(this,"textTrack2"),n=new Fs(this,"textTrack3"),r=new Fs(this,"textTrack4");this.cea608Parser1=new vs(1,e,t),this.cea608Parser2=new vs(3,n,r)}}addCues(e,t,n,r,i){let a=!1;for(let c=i.length;c--;){const h=i[c],_=pl(h[0],h[1],t,n);if(_>=0&&(h[0]=Math.min(h[0],t),h[1]=Math.max(h[1],n),a=!0,_/(n-t)>.5))return}if(a||i.push([t,n]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,n,r)}else{const c=this.Cues.newCue(null,t,n,r);this.hls.trigger(u.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:a}=this;n==="main"&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),a.length&&(this.unparsedVttFrags=[],a.forEach(c=>{this.onFragLoaded(u.FRAG_LOADED,c)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];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:n,media:r}=this,{label:i,languageCode:a}=t[e],c=this.getExistingTrack(i,a);if(c)n[e]=c,rr(n[e]),Gn(n[e],r);else{const h=this.createTextTrack("captions",i,a);h&&(h[e]=!0,n[e]=h)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{rr(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Oo(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)rr(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Er(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const a=this.media,c=a?ln(a.textTracks):null;if(this.tracks.forEach((h,_)=>{let S;if(c){let R=null;for(let re=0;re<c.length;re++)if(c[re]&&Lo(c[re],h)){R=c[re],c[re]=null;break}R&&(S=R)}if(S)rr(S);else{const R=Io(h);S=this.createTextTrack(R,h.name,h.lang),S&&(S.mode="disabled")}S&&this.textTracks.push(S)}),c!=null&&c.length){const h=c.filter(_=>_!==null).map(_=>_.label);h.length&&x.warn(`Media element contains unused subtitle tracks: ${h.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const a=this.tracks.map(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));this.hls.trigger(u.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:a})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,a=this.captionsProperties[i];a&&(a.label=n.name,n.lang&&(a.languageCode=n.lang),a.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===Ke.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:a,lastSn:c}=this,{cc:h,sn:_}=t.frag,S=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&a&&(_!==c+1||_===c&&S!==this.lastPartIndex+1||h!==this.lastCc)&&(i.reset(),a.reset()),this.lastCc=h,this.lastSn=_,this.lastPartIndex=S}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===Ke.SUBTITLE)if(r.byteLength){const i=n.decryptdata,a="stats"in t;if(i==null||!i.encrypted||a){const c=this.tracks[n.level],h=this.vttCCs;h[n.cc]||(h[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),c&&c.textCodec===lo?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;To(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{x.log(`Failed to parse IMSC1: ${r}`),n.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:a}=this,c=i.length-1;if(!i[n.cc]&&c===-1){a.push(e);return}const h=this.hls,_=(t=n.initSegment)!=null&&t.data?wt(n.initSegment.data,new Uint8Array(r)):r;ol(_,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,S=>{this._appendCues(S,n.level),h.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},S=>{const R=S.message==="Missing initPTS for VTT MPEGTS";R?a.push(e):this._fallbackToIMSC1(n,r),x.log(`Failed to parse VTT cue: ${S}`),!(R&&c>n.cc)&&h.trigger(u.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:S})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||To(t,this.initPTS[e.cc],()=>{n.textCodec=lo,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>nr(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(u.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===Ke.SUBTITLE&&this.onFragLoaded(u.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:n,cea608Parser2:r}=this;if(!this.enabled||!n||!r)return;const{frag:i,samples:a}=t;if(!(i.type===Ke.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let c=0;c<a.length;c++){const h=a[c].bytes;if(h){const _=this.extractCea608Data(h);n.addData(a[c].pts,_[0]),r.addData(a[c].pts,_[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:a}=this;if(!(!a||a.currentTime<n)){if(!i||i==="video"){const{captionsTracks:c}=this;Object.keys(c).forEach(h=>Un(c[h],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(h=>Un(c[h],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const a=e[r++],c=127&e[r++],h=127&e[r++];if(c===0&&h===0)continue;if((4&a)!==0){const S=3&a;(S===0||S===1)&&(t[S].push(c),t[S].push(h))}}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)&&Xr(e,o)}function pl(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Oo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class ho{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(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.BUFFER_CODECS,this.onBufferCodecs,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(u.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.BUFFER_CODECS,this.onBufferCodecs,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&A(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,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&x.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,ho.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(c,h)=>h?c.width!==h.width||c.height!==h.height:!0;let i=e.length-1;const a=Math.max(t,n);for(let c=0;c<e.length;c+=1){const h=e[c];if((h.width>=a||h.height>=a)&&r(h,e[c+1])){i=c;break}}return i}}class ml{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(u.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,a=n-this.lastDroppedFrames,c=t-this.lastDecodedFrames,h=1e3*a/i,_=this.hls;if(_.trigger(u.FPS_DROP,{currentDropped:a,currentDecoded:c,totalDroppedFrames:n}),h>0&&a>_.config.fpsDroppedMonitoringThreshold*c){let S=_.currentLevel;x.warn("drop FPS ratio greater than max allowed value for currentLevel: "+S),S>0&&(_.autoLevelCapping===-1||_.autoLevelCapping>=S)&&(S=S-1,_.trigger(u.FPS_DROP_LEVEL_CAPPING,{level:S,droppedLevel:_.currentLevel}),_.autoLevelCapping=S,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const $s="[eme]";class Ja{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=Ja.CDMCleanupPromise?[Ja.CDMCleanupPromise]:[],this.debug=x.debug.bind(x,$s),this.log=x.log.bind(x,$s),this.warn=x.warn.bind(x,$s),this.error=x.error.bind(x,$s),this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let a=Object.keys(this.keySystemAccessPromises);a.length||(a=Jt(this.config));const c=a.map(Vt).filter(h=>!!h);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(a=>{const c=pt(a);let h,_;if(n==="sinf"){if(c!==je.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const me=Lt(new Uint8Array(r));try{const Se=g(JSON.parse(me).sinf),ke=it(Se);if(!ke)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");h=ke.subarray(8,24),_=je.FAIRPLAY}catch(Se){this.warn(`${i} Failed to parse sinf: ${Se}`);return}}else{if(c!==je.WIDEVINE&&c!==je.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}const me=kt(r),Se=me.filter(Xe=>!!Xe.systemId&&rt(Xe.systemId)===c);Se.length>1&&this.warn(`${i} Using first of ${Se.length} pssh found for selected key-system ${c}`);const ke=Se[0];if(!ke){me.length===0||me.some(Xe=>!Xe.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${me.map(Xe=>rt(Xe.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(_=rt(ke.systemId),ke.version===0&&ke.data)if(_===je.WIDEVINE){const Xe=ke.data.length-22;h=ke.data.subarray(Xe,Xe+16)}else _===je.PLAYREADY&&(h=Et(ke.data))}if(!_||!h){this.log(`Unable to handle ${i} with key-system ${c}`);return}const S=ut.hexDump(h),{keyIdToKeySessionPromise:R,mediaKeySessions:re}=this;let ye=R[S];for(let me=0;me<re.length;me++){const Se=re[me],ke=Se.decryptdata;if(!ke.keyId)continue;const Xe=ut.hexDump(ke.keyId);if(S===Xe||ke.uri.replace(/-/g,"").indexOf(S)!==-1){if(ye=R[Xe],ke.pssh)break;delete R[Xe],ke.pssh=new Uint8Array(r),ke.keyId=h,ye=R[S]=ye.then(()=>this.generateRequestWithPreferredKeySession(Se,n,r,"encrypted-event-key-match")),ye.catch(At=>this.handleError(At));break}}if(!ye){if(_!==c){this.log(`Ignoring "${i}" with ${_} init data for selected key-system ${c}`);return}ye=R[S]=this.getKeySystemSelectionPromise([_]).then(({keySystem:me,mediaKeys:Se})=>{var ke;this.throwIfDestroyed();const Xe=new Bt("ISO-23001-7",S,(ke=Vt(me))!=null?ke:"");return Xe.pssh=new Uint8Array(r),Xe.keyId=h,this.attemptSetMediaKeys(me,Se).then(()=>{this.throwIfDestroyed();const At=this.createMediaKeySessionContext({decryptdata:Xe,keySystem:me,mediaKeys:Se});return this.generateRequestWithPreferredKeySession(At,n,r,"encrypted-event-no-match")})}),ye.catch(me=>this.handleError(me))}})}},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(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(u.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(u.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(u.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(u.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===je.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(a,c,h)=>!!a&&h.indexOf(a)===c,r=t.map(a=>a.audioCodec).filter(n),i=t.map(a=>a.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((a,c)=>{const h=_=>{const S=_.shift();this.getMediaKeysPromise(S,r,i).then(R=>a({keySystem:S,mediaKeys:R})).catch(R=>{_.length?h(_):R instanceof Vi?c(R):c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_ACCESS,error:R,fatal:!0},R.message))})};h(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return on===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=Kt(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let a=i==null?void 0:i.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(r)}`),a=this.requestMediaKeySystemAccess(e,r);const c=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch(h=>{this.log(`Failed to obtain access to key-system "${e}": ${h}`)}),a.then(h=>{this.log(`Access for key-system "${h.keySystem}" obtained`);const _=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),c.mediaKeys=h.createMediaKeys().then(S=>(this.log(`Media-keys created for "${e}"`),_.then(R=>R?this.setMediaKeysServerCertificate(S,e,R):S))),c.mediaKeys.catch(S=>{this.error(`Failed to create media-keys for "${e}"}: ${S}`)}),c.mediaKeys})}return a.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${ut.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh,"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 ut.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${ut.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),r.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>{const r=Jt(this.config),i=e.map(pt).filter(a=>!!a&&r.indexOf(a)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:a})=>{const c=Vt(a);c?t(c):n(new Error(`Unable to find format for key-system "${a}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(t).then(({keySystem:a,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(a,c).then(()=>{this.throwIfDestroyed();const h=this.createMediaKeySessionContext({keySystem:a,mediaKeys:c,decryptdata:t});return this.generateRequestWithPreferredKeySession(h,"cenc",t.pssh,"playlist-key")}))),i.catch(a=>this.handleError(a))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Vi?this.hls.trigger(u.ERROR,e.data):this.hls.trigger(u.ERROR,{type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=pt(e.keyFormat),i=r?[r]:Jt(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Jt(this.config)),e.length===0)throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,a;const c=(i=this.config.drmSystems)==null||(a=i[e.keySystem])==null?void 0:a.generateRequest;if(c)try{const me=c.call(this.hls,t,n,e);if(!me)throw new Error("Invalid response from configured generateRequest filter");t=me.initDataType,n=e.decryptdata.pssh=me.initData?new Uint8Array(me.initData):null}catch(me){var h;if(this.warn(me.message),(h=this.hls)!=null&&h.config.debug)throw me}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const _=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${_} (init data type: ${t} length: ${n?n.byteLength:null})`);const S=new wn,R=e._onmessage=me=>{const Se=e.mediaKeysSession;if(!Se){S.emit("error",new Error("invalid state"));return}const{messageType:ke,message:Xe}=me;this.log(`"${ke}" message event for session "${Se.sessionId}" message size: ${Xe.byteLength}`),ke==="license-request"||ke==="license-renewal"?this.renewLicense(e,Xe).catch(At=>{this.handleError(At),S.emit("error",At)}):ke==="license-release"?e.keySystem===je.FAIRPLAY&&(this.updateKeySession(e,ze("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${ke}"`)},re=e._onkeystatuseschange=me=>{if(!e.mediaKeysSession){S.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const ke=e.keyStatus;S.emit("keyStatus",ke),ke==="expired"&&(this.warn(`${e.keySystem} expired for key ${_}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",R),e.mediaKeysSession.addEventListener("keystatuseschange",re);const ye=new Promise((me,Se)=>{S.on("error",Se),S.on("keyStatus",ke=>{ke.startsWith("usable")?me():ke==="output-restricted"?Se(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):ke==="internal-error"?Se(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${ke}"`)):ke==="expired"?Se(new Error("key expired while generating request")):this.warn(`unhandled key status change "${ke}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var me;this.log(`Request generated for key-session "${(me=e.mediaKeysSession)==null?void 0:me.sessionId}" keyId: ${_}`)}).catch(me=>{throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_SESSION,error:me,fatal:!1},`Error generating key-session request: ${me}`)}).then(()=>ye).catch(me=>{throw S.removeAllListeners(),this.removeSession(e),me}).then(()=>(S.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${ut.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${ut.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((a,c)=>{const h={responseType:"arraybuffer",url:i},_=t.certLoadPolicy.default,S={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(re,ye,me,Se)=>{a(re.data)},onError:(re,ye,me,Se)=>{c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:me,response:j({url:h.url,data:void 0},re)},`"${e}" certificate request failed (${i}). Status: ${re.code} (${re.text})`))},onTimeout:(re,ye,me)=>{c(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:me,response:{url:h.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(re,ye,me)=>{c(new Error("aborted"))}};r.load(h,S,R)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(a=>{this.log(`setServerCertificate ${a?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(a=>{i(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:a,fatal:!0},a.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let S;for(let R=0,re=i.length;R<re;R++){var a,c;S=i[R];const ye=(a=S.querySelector("name"))==null?void 0:a.textContent,me=(c=S.querySelector("value"))==null?void 0:c.textContent;ye&&me&&e.setRequestHeader(ye,me)}}const h=r.querySelector("Challenge"),_=h==null?void 0:h.textContent;if(!_)throw new Error("Cannot find <Challenge> in key message");return ze(atob(_))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(a=>{if(!n.decryptdata)throw a;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(a=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:a||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${a}`);const c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let h=c.response;this.log(`License received ${h instanceof ArrayBuffer?h.byteLength:h}`);const _=this.config.licenseResponseCallback;if(_)try{h=_.call(this.hls,c,a,e)}catch(S){this.error(S)}r(h)}else{const h=n.errorRetry,_=h?h.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>_||c.status>=400&&c.status<500)i(new Vi({type:y.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:c,response:{url:a,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${a}). Status: ${c.status} (${c.statusText})`));else{const S=_-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${S} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=c,this.setupLicenseXHR(c,a,e,t).then(({xhr:h,licenseChallenge:_})=>{e.keySystem==je.PLAYREADY&&(_=this.unpackPlayReadyKeyMessage(h,_)),h.send(_)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,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={},Bt.clearKeyUriToKeyIdMap();const n=t.length;Ja.CDMCleanupPromise=Promise.all(t.map(r=>this.removeSession(r)).concat(e==null?void 0:e.setMediaKeys(null).catch(r=>{this.log(`Could not clear media keys: ${r}`)}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);return r>-1&&this.mediaKeySessions.splice(r,1),t.remove().catch(i=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Ja.CDMCleanupPromise=void 0;class Vi 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 Fi;(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"})(Fi||(Fi={}));var po;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(po||(po={}));var ka;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(ka||(ka={}));const gl={[ka.OBJECT]:["br","d","ot","tb"],[ka.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[ka.SESSION]:["cid","pr","sf","sid","st","v"],[ka.STATUS]:["bs","rtp"]};class qa{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof qa?n:new qa(n))),this.value=e,this.params=t}}class ko{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 bl(o,e,t,n){return new Error(`failed to ${o} "${yl(e)}" as ${t}`,{cause:n})}const Po="Bare Item",_l="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(o){return o<-999999999999999||999999999999999<o}const Cl=/[\x00-\x1f\x7f]+/,Tl="Token",Al="Key";function ia(o,e,t){return bl("serialize",o,e,t)}function Dl(o){if(typeof o!="boolean")throw ia(o,_l);return o?"?1":"?0"}function Rl(o){return btoa(String.fromCharCode(...o))}function Il(o){if(ArrayBuffer.isView(o)===!1)throw ia(o,xl);return`:${Rl(o)}:`}function Mo(o){if(Sl(o))throw ia(o,wl);return o.toString()}function Ll(o){return`@${Mo(o.getTime()/1e3)}`}function No(o,e){if(o<0)return-No(-o,e);const t=Math.pow(10,e);if(Math.abs(o*t%1-.5)<Number.EPSILON){const r=Math.floor(o*t);return(r%2===0?r:r+1)/t}else return Math.round(o*t)/t}function Ol(o){const e=No(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ia(o,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const kl="String";function Pl(o){if(Cl.test(o))throw ia(o,kl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(o){return o.description||o.toString().slice(7,-1)}function Fo(o){const e=Ml(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ia(e,Tl);return e}function mo(o){switch(typeof o){case"number":if(!A(o))throw ia(o,Po);return Number.isInteger(o)?Mo(o):Ol(o);case"string":return Pl(o);case"symbol":return Fo(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 ko)return Fo(o);default:throw ia(o,Po)}}function go(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw ia(o,Al);return o}function vo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${mo(t)}`).join("")}function Bo(o){return o instanceof qa?`${mo(o.value)}${vo(o.params)}`:mo(o)}function Nl(o){return`(${o.value.map(Bo).join(" ")})${vo(o.params)}`}function Fl(o,e={whitespace:!0}){if(typeof o!="object")throw ia(o,vl);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof qa||(i=new qa(i));let a=go(r);return i.value===!0?a+=vo(i.params):(a+="=",Array.isArray(i.value)?a+=Nl(i):a+=Bo(i)),a}).join(`,${n}`)}function Bl(o,e){return Fl(o,e)}const $l=o=>o==="ot"||o==="sf"||o==="st",zl=o=>typeof o=="number"?A(o):o!=null&&o!==""&&o!==!1;function Ul(o,e){const t=new URL(o),n=new URL(e);if(t.origin!==n.origin)return o;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function Kl(){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,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}const zs=o=>Math.round(o),Hl=(o,e)=>(e!=null&&e.baseUrl&&(o=Ul(o,e.baseUrl)),encodeURIComponent(o)),Us=o=>zs(o/100)*100,Zl={br:zs,d:zs,bl:Us,dl:Us,mtp:Us,nor:Hl,rtp:Us,tb:zs};function jl(o,e){const t={};if(o==null||typeof o!="object")return t;const n=Object.keys(o).sort(),r=s({},Zl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(a=>{if(i!=null&&i(a))return;let c=o[a];const h=r[a];h&&(c=h(c,e)),!(a==="v"&&c===1)&&(a=="pr"&&c===1||zl(c)&&($l(a)&&typeof c=="string"&&(c=new ko(c)),t[a]=c))}),t}function $o(o,e={}){return o?Bl(jl(o,e),s({whitespace:!1},e)):""}function Wl(o,e={}){if(!o)return{};const t=Object.entries(o),n=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,a)=>{var c,h;const[_,S]=a,R=((c=n.find(re=>re[1].includes(_)))==null?void 0:c[0])||ka.REQUEST;return(h=i[R])!=null||(i[R]={}),i[R][_]=S,i},{});return Object.entries(r).reduce((i,[a,c])=>(i[a]=$o(c,e),i),{})}function Gl(o,e,t){return s(o,Wl(e,t))}const Vl="CMCD";function Yl(o,e={}){if(!o)return"";const t=$o(o,e);return`${Vl}=${encodeURIComponent(t)}`}const zo=/CMCD=[^&#]+/;function Xl(o,e,t){const n=Yl(e,t);if(!n)return o;if(zo.test(o))return o.replace(zo,n);const r=o.includes("?")?"&":"?";return`${o}${r}${n}`}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=r=>{try{this.apply(r,{ot:Fi.MANIFEST,su:!this.initialized})}catch(i){x.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const i=r.frag,a=this.hls.levels[i.level],c=this.getObjectType(i),h={d:i.duration*1e3,ot:c};(c===Fi.VIDEO||c===Fi.AUDIO||c==Fi.MUXED)&&(h.br=a.bitrate/1e3,h.tb=this.getTopBandwidth(c)/1e3,h.bl=this.getBufferLength(c)),this.apply(r,h)}catch(i){x.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||Kl(),this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHED,this.onMediaDetached,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHED,this.onMediaDetached,this),e.off(u.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 n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:po.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){s(t,this.createData());const n=t.ot===Fi.INIT||t.ot===Fi.VIDEO||t.ot===Fi.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((i,a)=>(r.includes(a)&&(i[a]=t[a]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Gl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Fi.TIMED_TEXT;if(e.sn==="initSegment")return Fi.INIT;if(t==="audio")return Fi.AUDIO;if(t==="main")return this.hls.audioTracks.length?Fi.VIDEO:Fi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Fi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,a=i>-1?i+1:r.levels.length;n=r.levels.slice(0,a)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,n=e===Fi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Kr.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,a,c){t(i),this.loader.load(i,a,c)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,a,c){t(i),this.loader.load(i,a,c)}}}}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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.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(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Zn.SendAlternateToPenaltyBox&&n.flags===yr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,a=this.pathwayId;if(t.context){const{groupId:c,pathwayId:h,type:_}=t.context;c&&r?a=this.getPathwayForGroupId(c,_,a):h&&(a=h)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!i&&r&&(i=r.reduce((c,h)=>(c.indexOf(h.pathwayId)===-1&&c.push(h.pathwayId),c),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==a),n.resolved||x.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${a} levels: ${r&&r.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 n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Jl&&delete n[i]});for(let i=0;i<e.length;i++){const a=e[i];if(a in n)continue;if(a===this.pathwayId)return;const c=this.hls.nextLoadLevel,h=this.hls.levels[c];if(t=this.getLevelsForPathway(a),t.length>0){this.log(`Setting Pathway to "${a}"`),this.pathwayId=a,xn(t),this.hls.trigger(u.LEVELS_UPDATED,{levels:t});const _=this.hls.levels[c];h&&_&&this.levels&&(_.attrs["STABLE-VARIANT-ID"]!==h.attrs["STABLE-VARIANT-ID"]&&_.bitrate!==h.bitrate&&this.log(`Unstable Pathways change from bitrate ${h.bitrate} to ${_.bitrate}`),this.hls.nextLoadLevel=c);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===tn.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===tn.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:a,"BASE-ID":c,"URI-REPLACEMENT":h}=i;if(t.some(S=>S.pathwayId===a))return;const _=this.getLevelsForPathway(c).map(S=>{const R=new F(S.attrs);R["PATHWAY-ID"]=a;const re=R.AUDIO&&`${R.AUDIO}_clone_${a}`,ye=R.SUBTITLES&&`${R.SUBTITLES}_clone_${a}`;re&&(n[R.AUDIO]=re,R.AUDIO=re),ye&&(r[R.SUBTITLES]=ye,R.SUBTITLES=ye);const me=Ko(S.uri,R["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",h),Se=new Br({attrs:R,audioCodec:S.audioCodec,bitrate:S.bitrate,height:S.height,name:S.name,url:me,videoCodec:S.videoCodec,width:S.width});if(S.audioGroups)for(let ke=1;ke<S.audioGroups.length;ke++)Se.addGroupId("audio",`${S.audioGroups[ke]}_clone_${a}`);if(S.subtitleGroups)for(let ke=1;ke<S.subtitleGroups.length;ke++)Se.addGroupId("text",`${S.subtitleGroups[ke]}_clone_${a}`);return Se});t.push(..._),Uo(this.audioTracks,n,h,a),Uo(this.subtitleTracks,r,h,a)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(S){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const S=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+S)}const i={responseType:"json",url:r.href},a=t.steeringManifestLoadPolicy.default,c=a.errorRetry||a.timeoutRetry||{},h={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},_={onSuccess:(S,R,re,ye)=>{this.log(`Loaded steering manifest: "${r}"`);const me=S.data;if(me.VERSION!==1){this.log(`Steering VERSION ${me.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=me.TTL;const{"RELOAD-URI":Se,"PATHWAY-CLONES":ke,"PATHWAY-PRIORITY":Xe}=me;if(Se)try{this.uri=new self.URL(Se,r).href}catch(St){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Se}`);return}this.scheduleRefresh(this.uri||re.url),ke&&this.clonePathways(ke);const At={steeringManifest:me,url:r.toString()};this.hls.trigger(u.STEERING_MANIFEST_LOADED,At),Xe&&this.updatePathwayPriority(Xe)},onError:(S,R,re,ye)=>{if(this.log(`Error loading steering manifest: ${S.code} ${S.text} (${R.url})`),this.stopLoad(),S.code===410){this.enabled=!1,this.log(`Steering manifest ${R.url} no longer available`);return}let me=this.timeToLoad*1e3;if(S.code===429){const Se=this.loader;if(typeof(Se==null?void 0:Se.getResponseHeader)=="function"){const ke=Se.getResponseHeader("Retry-After");ke&&(me=parseFloat(ke)*1e3)}this.log(`Steering manifest ${R.url} rate limited`);return}this.scheduleRefresh(this.uri||R.url,me)},onTimeout:(S,R,re)=>{this.log(`Timeout loading steering manifest (${R.url})`),this.scheduleRefresh(this.uri||R.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,h,_)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Uo(o,e,t,n){o&&Object.keys(e).forEach(r=>{const i=o.filter(a=>a.groupId===r).map(a=>{const c=s({},a);return c.details=void 0,c.attrs=new F(c.attrs),c.url=c.attrs.URI=Ko(a.url,a.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[r],c.attrs["PATHWAY-ID"]=n,c});o.push(...i)})}function Ko(o,e,t,n){const{HOST:r,PARAMS:i,[t]:a}=n;let c;e&&(c=a==null?void 0:a[e],c&&(o=c));const h=new self.URL(o);return r&&!c&&(h.host=r),i&&Object.keys(i).sort().forEach(_=>{_&&h.searchParams.set(_,i[_])}),h.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 he,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(a=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(a=>{this.callbacks.onError({code:n.status,text:a.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const c in r)e.setRequestHeader(c,r[c]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&A(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const a=t.status,c=t.responseType==="text"?t.responseText:null;if(a>=200&&a<300){const R=c!=null?c:t.response;if(R!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const re=t.responseType==="arraybuffer"?R.byteLength:R.length;if(n.loaded=n.total=re,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const ye=this.callbacks.onProgress;if(ye&&ye(n,e,R,t),!this.callbacks)return;const me={url:t.responseURL,data:R,code:a};this.callbacks.onSuccess(me,n,e,t);return}}const h=i.loadPolicy.errorRetry,_=n.retry,S={url:e.url,data:void 0,code:a};Tr(h,_,!1,S)?this.retry(h):(x.error(`${a} while loading ${e.url}`),this.callbacks.onError({code:a,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Tr(e,t,!0))this.retry(e);else{var n;x.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=ur(e,n.retry),n.retry++,x.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&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 nu=/(\d+)-(\d+)\/(\d+)/;class Zo{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||su,this.controller=new self.AbortController,this.stats=new he}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=ru(e,this.controller.signal),a=n.onProgress,c=e.responseType==="arraybuffer",h=c?"byteLength":"length",{maxTimeToFirstByteMs:_,maxLoadTimeMs:S}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=_&&A(_)?_:S,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(R=>{this.response=this.loader=R;const re=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=S,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},S-(re-r.loading.start)),!R.ok){const{status:ye,statusText:me}=R;throw new ou(me||"fetch, bad network response",ye,R)}return r.loading.first=re,r.total=au(R.headers)||r.total,a&&A(t.highWaterMark)?this.loadProgressively(R,r,e,t.highWaterMark,a):c?R.arrayBuffer():e.responseType==="json"?R.json():R.text()}).then(R=>{const re=this.response;if(!re)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const ye=R[h];ye&&(r.loaded=r.total=ye);const me={url:re.url,data:R,code:re.status};a&&!A(t.highWaterMark)&&a(r,e,R,re),n.onSuccess(me,r,e,re)}).catch(R=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const re=R&&R.code||0,ye=R?R.message:null;n.onError({code:re,text:ye},e,R?R.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const a=new ts,c=e.body.getReader(),h=()=>c.read().then(_=>{if(_.done)return a.dataLength&&i(t,n,a.flush(),e),Promise.resolve(new ArrayBuffer(0));const S=_.value,R=S.length;return t.loaded+=R,R<r||a.dataLength?(a.push(S),a.dataLength>=r&&i(t,n,a.flush(),e)):i(t,n,S,e),h()}).catch(()=>Promise.reject());return h()}}function ru(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(s({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function iu(o){const e=nu.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function au(o){const e=o.get("Content-Range");if(e){const n=iu(e);if(A(n))return n}const t=o.get("Content-Length");if(t)return parseInt(t)}function su(o,e){return new self.Request(o.url,e)}class ou extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const lu=/\s/,uu={newCue(o,e,t,n){const r=[];let i,a,c,h,_;const S=self.VTTCue||self.TextTrackCue;for(let re=0;re<n.rows.length;re++)if(i=n.rows[re],c=!0,h=0,_="",!i.isEmpty()){var R;for(let Se=0;Se<i.chars.length;Se++)lu.test(i.chars[Se].uchar)&&c?h++:(_+=i.chars[Se].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),h>=16?h--:h++;const ye=wo(_.trim()),me=oo(e,t,ye);o!=null&&(R=o.cues)!=null&&R.getCueById(me)||(a=new S(e,t,ye),a.id=me,a.line=re+1,a.align="left",a.position=10+Math.min(80,Math.floor(h*8/32)*10),r.push(a))}return o&&r.length&&(r.sort((re,ye)=>re.line==="auto"||ye.line==="auto"?0:re.line>8&&ye.line>8?ye.line-re.line:re.line-ye.line),r.forEach(re=>nr(o,re))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},jo=j(j({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:qr,bufferController:Ki,capLevelController:ho,errorController:Jr,fpsController:ml,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:on,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:ai,subtitleTrackController:Ii,timelineController:hl,audioStreamController:_r,audioTrackController:Qr,emeController:Ja,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 fu(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),n=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(i=>{const a=`${i==="level"?"playlist":i}LoadPolicy`,c=e[a]===void 0,h=[];r.forEach(_=>{const S=`${i}Loading${_}`,R=e[S];if(R!==void 0&&c){h.push(S);const re=t[a].default;switch(e[a]={default:re},_){case"TimeOut":re.maxLoadTimeMs=R,re.maxTimeToFirstByteMs=R;break;case"MaxRetry":re.errorRetry.maxNumRetry=R,re.timeoutRetry.maxNumRetry=R;break;case"RetryDelay":re.errorRetry.retryDelayMs=R,re.timeoutRetry.retryDelayMs=R;break;case"MaxRetryTimeout":re.errorRetry.maxRetryDelayMs=R,re.timeoutRetry.maxRetryDelayMs=R;break}}}),h.length&&x.warn(`hls.js config: "${h.join('", "')}" setting(s) are deprecated, use "${a}": ${JSON.stringify(e[a])}`)}),j(j({},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 hu(o){const e=o.loader;e!==Zo&&e!==Ho?(x.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=Zo,o.progressive=!0,o.enableSoftwareAES=!0,x.log("[config]: Progressive streaming enabled, using FetchLoader"))}let bo;class pu extends Ir{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(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this),e.on(u.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this),e.off(u.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},a={};let c=!1,h=!1,_=!1;t.levels.forEach(S=>{var R,re;const ye=S.attrs;let{audioCodec:me,videoCodec:Se}=S;((R=me)==null?void 0:R.indexOf("mp4a.40.34"))!==-1&&(bo||(bo=/chrome|firefox/i.test(navigator.userAgent)),bo&&(S.audioCodec=me=void 0)),me&&(S.audioCodec=me=an(me,n)),((re=Se)==null?void 0:re.indexOf("avc1"))===0&&(Se=S.videoCodec=Sn(Se));const{width:ke,height:Xe,unknownCodecs:At}=S;if(c||(c=!!(ke&&Xe)),h||(h=!!Se),_||(_=!!me),At!=null&&At.length||me&&!Je(me,"audio",n)||Se&&!Je(Se,"video",n))return;const{CODECS:St,"FRAME-RATE":en,"HDCP-LEVEL":Pt,"PATHWAY-ID":_n,RESOLUTION:Qt,"VIDEO-RANGE":In}=ye,vn=`${`${_n||"."}-`}${S.bitrate}-${Qt}-${en}-${St}-${In}-${Pt}`;if(i[vn])if(i[vn].uri!==S.url&&!S.attrs["PATHWAY-ID"]){const kn=a[vn]+=1;S.attrs["PATHWAY-ID"]=new Array(kn+1).join(".");const Cr=new Br(S);i[vn]=Cr,r.push(Cr)}else i[vn].addGroupId("audio",ye.AUDIO),i[vn].addGroupId("text",ye.SUBTITLES);else{const kn=new Br(S);i[vn]=kn,a[vn]=1,r.push(kn)}}),this.filterAndSortMediaOptions(r,t,c,h,_)}filterAndSortMediaOptions(e,t,n,r,i){let a=[],c=[],h=e;if((n||r)&&i&&(h=h.filter(({videoCodec:me,videoRange:Se,width:ke,height:Xe})=>(!!me||!!(ke&&Xe))&&gr(Se))),h.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 me=new Error("no level with compatible codecs found in manifest");this.hls.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:me,reason:me.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:me}=this.hls.config;a=t.audioTracks.filter(Se=>!Se.audioCodec||Je(Se.audioCodec,"audio",me)),Wo(a)}t.subtitles&&(c=t.subtitles,Wo(c));const _=h.slice(0);h.sort((me,Se)=>{if(me.attrs["HDCP-LEVEL"]!==Se.attrs["HDCP-LEVEL"])return(me.attrs["HDCP-LEVEL"]||"")>(Se.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&me.height!==Se.height)return me.height-Se.height;if(me.frameRate!==Se.frameRate)return me.frameRate-Se.frameRate;if(me.videoRange!==Se.videoRange)return Dr.indexOf(me.videoRange)-Dr.indexOf(Se.videoRange);if(me.videoCodec!==Se.videoCodec){const ke=bt(me.videoCodec),Xe=bt(Se.videoCodec);if(ke!==Xe)return Xe-ke}if(me.uri===Se.uri&&me.codecSet!==Se.codecSet){const ke=ft(me.codecSet),Xe=ft(Se.codecSet);if(ke!==Xe)return Xe-ke}return me.averageBitrate!==Se.averageBitrate?me.averageBitrate-Se.averageBitrate:0});let S=_[0];if(this.steering&&(h=this.steering.filterParsedLevels(h),h.length!==_.length)){for(let me=0;me<_.length;me++)if(_[me].pathwayId===h[0].pathwayId){S=_[me];break}}this._levels=h;for(let me=0;me<h.length;me++)if(h[me]===S){var R;this._firstLevel=me;const Se=S.bitrate,ke=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${h.length} level(s) found, first bitrate: ${Se}`),((R=this.hls.userConfig)==null?void 0:R.abrEwmaDefaultEstimate)===void 0){const Xe=Math.min(Se,this.hls.config.abrEwmaDefaultEstimateMax);Xe>ke&&ke===jo.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Xe)}break}const re=i&&!r,ye={levels:h,audioTracks:a,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!re&&a.some(me=>!!me.url)};this.hls.trigger(u.MANIFEST_PARSED,ye),(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 S=new Error("invalid level idx"),R=e<0;if(this.hls.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.LEVEL_SWITCH_ERROR,level:e,fatal:R,error:S,reason:S.message}),R)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,a=t[e],c=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&a.details&&r&&i===c)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${c?" with Pathway "+c:""} from level ${n}${i?" with Pathway "+i:""}`);const h={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(u.LEVEL_SWITCHING,h);const _=a.details;if(!_||_.live){const S=this.switchParams(a.uri,r==null?void 0:r.details,_);this.loadPlaylist(S)}}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===tn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ke.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,a=this._levels[r];if(!a){var c;this.warn(`Invalid level index ${r}`),(c=t.deliveryDirectives)!=null&&c.skip&&(i.deltaUpdateFailed=!0);return}r===this.currentLevelIndex?(a.fragmentError===0&&(a.loadError=0),this.playlistLoaded(r,t,a.details)):(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){let r=n.uri;if(e)try{r=e.addDirectives(r)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}const i=n.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:""} ${r}`),this.clearTimer(),this.hls.trigger(u.LEVEL_LOADING,{url:r,level:t,pathwayId:n.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 n=this._levels.filter((r,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(a=>a.level=-1)),!1));xn(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(u.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(u.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Wo(o){const e={};o.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}class mu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=b.KEY_LOAD_ERROR,n,r,i){return new li({type:y.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const a=t[i];if(r<=a.cc&&(n==="initSegment"||a.sn==="initSegment"||n<a.sn)){this.emeController.selectKeySystemFormat(a).then(c=>{a.setKeyFormat(c)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const _=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,_))}const a=i.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${a}"`)));let c=this.keyUriToKeyInfo[a];if((n=c)!=null&&n.decryptdata.key)return i.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if((r=c)!=null&&r.keyLoadPromise){var h;switch((h=c.mediaKeySessionContext)==null?void 0:h.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return c.keyLoadPromise.then(_=>(i.key=_.keyInfo.decryptdata.key,{frag:e,keyInfo:c}))}}switch(c=this.keyUriToKeyInfo[a]={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(c,e):this.loadKeyEME(c,e);case"AES-128":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((a,c)=>{const h={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},_=n.keyLoadPolicy.default,S={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(re,ye,me,Se)=>{const{frag:ke,keyInfo:Xe,url:At}=me;if(!ke.decryptdata||Xe!==this.keyUriToKeyInfo[At])return c(this.createKeyLoadError(ke,b.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Se));Xe.decryptdata.key=ke.decryptdata.key=new Uint8Array(re.data),ke.keyLoader=null,Xe.loader=null,a({frag:ke,keyInfo:Xe})},onError:(re,ye,me,Se)=>{this.resetLoader(ye),c(this.createKeyLoadError(t,b.KEY_LOAD_ERROR,new Error(`HTTP Error ${re.code} loading key ${re.text}`),me,j({url:h.url,data:void 0},re)))},onTimeout:(re,ye,me)=>{this.resetLoader(ye),c(this.createKeyLoadError(t,b.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),me))},onAbort:(re,ye,me)=>{this.resetLoader(ye),c(this.createKeyLoadError(t,b.INTERNAL_ABORTED,new Error("key loading aborted"),me))}};i.load(h,S,R)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function Go(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vo(){if(!sn())return!1;const e=Go();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Vo())return!1;const o=sn();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(vt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(vt(e,"audio"))))}function vu(){var o;const e=Go();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const yu=250,Ks=2,bu=.1,_u=.05;class xu{constructor(e,t,n,r){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=n,this.hls=r}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:n,media:r,stalled:i}=this;if(r===null)return;const{currentTime:a,seeking:c}=r,h=this.seeking&&!c,_=!this.seeking&&c;if(this.seeking=c,a!==e){if(this.moved=!0,c||(this.nudgeRetry=0),i!==null){if(this.stallReported){const ke=self.performance.now()-i;x.warn(`playback not stuck anymore @${a}, after ${Math.round(ke)}ms`),this.stallReported=!1}this.stalled=null}return}if(_||h){this.stalled=null;return}if(r.paused&&!c||r.ended||r.playbackRate===0||!Kr.getBuffered(r).length){this.nudgeRetry=0;return}const S=Kr.bufferInfo(r,a,0),R=S.nextStart||0;if(c){const ke=S.len>Ks,Xe=!R||t&&t.start<=a||R-a>Ks&&!this.fragmentTracker.getPartialFragment(a);if(ke||Xe)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var re;if(!(S.len>0)&&!R)return;const Xe=Math.max(R,S.start||0)-a,At=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,en=(At==null||(re=At.details)==null?void 0:re.live)?At.details.targetduration*2:Ks,Pt=this.fragmentTracker.getPartialFragment(a);if(Xe>0&&(Xe<=en||Pt)){r.paused||this._trySkipBufferHole(Pt);return}}const ye=self.performance.now();if(i===null){this.stalled=ye;return}const me=ye-i;if(!c&&me>=yu&&(this._reportStall(S),!this.media))return;const Se=Kr.bufferInfo(r,a,n.maxBufferHole);this._tryFixBufferStall(Se,me)}_tryFixBufferStall(e,t){const{config:n,fragmentTracker:r,media:i}=this;if(i===null)return;const a=i.currentTime,c=r.getPartialFragment(a);c&&(this._trySkipBufferHole(c)||!this.media)||(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-a<n.maxBufferHole)&&t>n.highBufferWatchdogPeriod*1e3&&(x.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:n,stallReported:r}=this;if(!r&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(e)})`);x.warn(i.message),t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:n,media:r}=this;if(r===null)return 0;const i=r.currentTime,a=Kr.bufferInfo(r,i,0),c=i<a.start?a.start:a.nextStart;if(c){const h=a.len<=t.maxBufferHole,_=a.len>0&&a.len<1&&r.readyState<3,S=c-i;if(S>0&&(h||_)){if(S>t.maxBufferHole){const{fragmentTracker:re}=this;let ye=!1;if(i===0){const me=re.getAppendedFrag(0,Ke.MAIN);me&&c<me.end&&(ye=!0)}if(!ye){const me=e||re.getAppendedFrag(i,Ke.MAIN);if(me){let Se=!1,ke=me.end;for(;ke<c;){const Xe=re.getPartialFragment(ke);if(Xe)ke+=Xe.duration;else{Se=!0;break}}if(Se)return 0}}}const R=Math.max(c+_u,i+bu);if(x.warn(`skipping hole, adjusting currentTime from ${i} to ${R}`),this.moved=!0,this.stalled=null,r.currentTime=R,e&&!e.gap){const re=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${R}`);n.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:re,reason:re.message,frag:e})}return R}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:n,nudgeRetry:r}=this;if(n===null)return;const i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){const a=i+(r+1)*e.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${i} to ${a}`);x.warn(c.message),n.currentTime=a,t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1})}else{const a=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);x.error(a.message),t.trigger(u.ERROR,{type:y.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,error:a,fatal:!0})}}}const Eu=100;class wu extends _a{constructor(e,t,n){super(e,t,n,"[stream-controller]",Ke.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(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(u.MANIFEST_LOADING,this.onManifestLoading,this),e.on(u.MANIFEST_PARSED,this.onManifestParsed,this),e.on(u.LEVEL_LOADING,this.onLevelLoading,this),e.on(u.LEVEL_LOADED,this.onLevelLoaded,this),e.on(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(u.ERROR,this.onError,this),e.on(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(u.BUFFER_CREATED,this.onBufferCreated,this),e.on(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(u.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(u.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(u.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(u.MANIFEST_LOADING,this.onManifestLoading,this),e.off(u.MANIFEST_PARSED,this.onManifestParsed,this),e.off(u.LEVEL_LOADED,this.onLevelLoaded,this),e.off(u.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(u.ERROR,this.onError,this),e.off(u.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(u.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(u.BUFFER_CREATED,this.onBufferCreated,this),e.off(u.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(u.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(u.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:n}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let r=n.startLevel;r===-1&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=fn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=fn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case fn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=fn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=fn.IDLE;break}break}case fn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,a=r==null?void 0:r[i];this.resetStartWhenNotLoaded(a||null),this.state=fn.IDLE}}break}this.state===fn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const a=n[i],c=this.getMainFwdBufferInfo();if(c===null)return;const h=this.getLevelDetails();if(h&&this._streamEnded(c,h)){const Se={};this.altAudio&&(Se.type="video"),this.hls.trigger(u.BUFFER_EOS,Se),this.state=fn.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 _=a.details;if(!_||this.state===fn.WAITING_LEVEL||_.live&&this.levelLastLoaded!==a){this.level=i,this.state=fn.WAITING_LEVEL;return}const S=c.len,R=this.getMaxBufferLength(a.maxBitrate);if(S>=R)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const re=this.backtrackFragment?this.backtrackFragment.start:c.end;let ye=this.getNextFragment(re,_);if(this.couldBacktrack&&!this.fragPrevious&&ye&&ye.sn!=="initSegment"&&this.fragmentTracker.getState(ye)!==$r.OK){var me;const ke=((me=this.backtrackFragment)!=null?me:ye).sn-_.startSN,Xe=_.fragments[ke-1];Xe&&ye.cc===Xe.cc&&(ye=Xe,this.fragmentTracker.removeFragment(Xe))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(ye&&this.isLoopLoading(ye,re)){if(!ye.gap){const ke=this.audioOnly&&!this.altAudio?W.AUDIO:W.VIDEO,Xe=(ke===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Xe&&this.afterBufferFlushed(Xe,ke,Ke.MAIN)}ye=this.getNextFragmentLoopLoading(ye,_,c,Ke.MAIN,R)}ye&&(ye.initSegment&&!ye.initSegment.data&&!this.bitrateTest&&(ye=ye.initSegment),this.loadFragment(ye,a,re))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===$r.NOT_LOADED||r===$r.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,n)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ke.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const c=this.getMainFwdBufferInfo();if(!c||c.len<i.targetduration*2)return}if(!t.paused&&e){const c=this.hls.nextLoadLevel,h=e[c],_=this.fragLastKbps;_&&this.fragCurrent?n=this.fragCurrent.duration*h.maxBitrate/(1e3*_)+1:n=0}else n=0;const a=this.getBufferedFrag(t.currentTime+n);if(a){const c=this.followingBufferedFrag(a);if(c){this.abortCurrentFrag();const h=c.maxStartPTS?c.maxStartPTS:c.start,_=c.duration,S=Math.max(a.end,h+Math.min(Math.max(_-this.config.maxFragLookUpTolerance,_*(this.couldBacktrack?.5:.125)),_*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(S,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 fn.KEY_LOADING:case fn.FRAG_LOADING:case fn.FRAG_LOADING_WAITING_RETRY:case fn.PARSING:case fn.PARSED:this.state=fn.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 n=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,n,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;A(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const n=this.getMainFwdBufferInfo();if(n===null||n.len===0){this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(u.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 n=!1,r=!1;t.levels.forEach(i=>{const a=i.audioCodec;a&&(n=n||a.indexOf("mp4a.40.2")!==-1,r=r||a.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!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:n}=this;if(!n||this.state!==fn.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=fn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r}=this,i=t.level,a=t.details,c=a.totalduration;if(!r){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${c}`);const h=r[i],_=this.fragCurrent;_&&(this.state===fn.FRAG_LOADING||this.state===fn.FRAG_LOADING_WAITING_RETRY)&&_.level!==t.level&&_.loader&&this.abortCurrentFrag();let S=0;if(a.live||(n=h.details)!=null&&n.live){var R;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;S=this.alignPlaylists(a,h.details,(R=this.levelLastLoaded)==null?void 0:R.details)}if(h.details=a,this.levelLastLoaded=h,this.hls.trigger(u.LEVEL_UPDATED,{details:a,level:i}),this.state===fn.WAITING_LEVEL){if(this.waitForCdnTuneIn(a))return;this.state=fn.IDLE}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,S),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=a[n.level],h=c.details;if(!h){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const _=c.videoCodec,S=h.PTSKnown||!h.live,R=(t=n.initSegment)==null?void 0:t.data,re=this._getAudioCodec(c),ye=this.transmuxer=this.transmuxer||new Kn(this.hls,Ke.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),me=r?r.index:-1,Se=me!==-1,ke=new ga(n.level,n.sn,n.stats.chunkCount,i.byteLength,me,Se),Xe=this.initPTS[n.cc];ye.push(i,R,re,_,n,r,h.totalduration,S,ke,Xe)}onAudioTrackSwitching(e,t){const n=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 a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests(),this.fragmentTracker.removeFragment(a)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const i=this.hls;n&&(i.trigger(u.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(u.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=t.id,r=!!this.hls.audioTracks[n].url;if(r){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=r,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,a=!1;for(const c in n){const h=n[c];if(h.id==="main"){if(i=c,r=h,c==="video"){const _=n[c];_&&(this.videoBuffer=_.buffer)}}else a=!0}a&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n&&n.type!==Ke.MAIN)return;if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===fn.PARSED&&(this.state=fn.IDLE);return}const i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),n.sn!=="initSegment"&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=fn.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ke.MAIN,t);break;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===fn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===tn.LEVEL&&(this.state=fn.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Kr.getBuffered(e).length){const n=this.state!==fn.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=fn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==W.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,Ke.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 n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=Kr.getBuffered(e),a=(r.length?r.start(0):0)-n;a>0&&(a<this.config.maxBufferHole||a<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${a} to match buffer start`),n+=a,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${t}`),e.currentTime=n}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this;if(!n||this.fragContextChanged(e))return;t.fragmentError=0,this.state=fn.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(),r.trigger(u.FRAG_LOADED,n),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n="main",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,c=this.getCurrentContext(a);if(!c){this.resetWhenMissingContext(a);return}const{frag:h,part:_,level:S}=c,{video:R,text:re,id3:ye,initSegment:me}=i,{details:Se}=S,ke=this.altAudio?void 0:i.audio;if(this.fragContextChanged(h)){this.fragmentTracker.removeFragment(h);return}if(this.state=fn.PARSING,me){if(me!=null&&me.tracks){const St=h.initSegment||h;this._bufferInitSegment(S,me.tracks,St,a),r.trigger(u.FRAG_PARSING_INIT_SEGMENT,{frag:St,id:n,tracks:me.tracks})}const Xe=me.initPTS,At=me.timescale;A(Xe)&&(this.initPTS[h.cc]={baseTime:Xe,timescale:At},r.trigger(u.INIT_PTS_FOUND,{frag:h,id:n,initPTS:Xe,timescale:At}))}if(R&&Se&&h.sn!=="initSegment"){const Xe=Se.fragments[h.sn-1-Se.startSN],At=h.sn===Se.startSN,St=!Xe||h.cc>Xe.cc;if(i.independent!==!1){const{startPTS:en,endPTS:Pt,startDTS:_n,endDTS:Qt}=R;if(_)_.elementaryStreams[R.type]={startPTS:en,endPTS:Pt,startDTS:_n,endDTS:Qt};else if(R.firstKeyFrame&&R.independent&&a.id===1&&!St&&(this.couldBacktrack=!0),R.dropped&&R.independent){const In=this.getMainFwdBufferInfo(),Vn=(In?In.end:this.getLoadPosition())+this.config.maxBufferHole,vn=R.firstKeyFramePTS?R.firstKeyFramePTS:en;if(!At&&Vn<vn-this.config.maxBufferHole&&!St){this.backtrack(h);return}else St&&(h.gap=!0);h.setElementaryStreamInfo(R.type,h.start,Pt,h.start,Qt,!0)}else At&&en>Ks&&(h.gap=!0);h.setElementaryStreamInfo(R.type,en,Pt,_n,Qt),this.backtrackFragment&&(this.backtrackFragment=h),this.bufferFragmentData(R,h,_,a,At||St)}else if(At||St)h.gap=!0;else{this.backtrack(h);return}}if(ke){const{startPTS:Xe,endPTS:At,startDTS:St,endDTS:en}=ke;_&&(_.elementaryStreams[W.AUDIO]={startPTS:Xe,endPTS:At,startDTS:St,endDTS:en}),h.setElementaryStreamInfo(W.AUDIO,Xe,At,St,en),this.bufferFragmentData(ke,h,_,a)}if(Se&&ye!=null&&(t=ye.samples)!=null&&t.length){const Xe={id:n,frag:h,details:Se,samples:ye.samples};r.trigger(u.FRAG_PARSING_METADATA,Xe)}if(Se&&re){const Xe={id:n,frag:h,details:Se,samples:re.samples};r.trigger(u.FRAG_PARSING_USERDATA,Xe)}}_bufferInitSegment(e,t,n,r){if(this.state!==fn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:a,audiovideo:c}=t;if(i){let h=e.audioCodec;const _=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const S=i.metadata;S&&"channelCount"in S&&(S.channelCount||1)!==1&&_.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&_.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),e.audioCodec&&e.audioCodec!==h&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${h}"`),i.levelCodec=h,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${h||""}/${e.audioCodec||""}/${i.codec}]`)}a&&(a.levelCodec=e.videoCodec,a.id="main",this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${a.codec}]`)),c&&this.log(`Init audiovideo buffer, container:${c.container}, codecs[level/parsed]=[${e.codecs}/${c.codec}]`),this.hls.trigger(u.BUFFER_CODECS,t),Object.keys(t).forEach(h=>{const S=t[h].initSegment;S!=null&&S.byteLength&&this.hls.trigger(u.BUFFER_APPENDING,{type:h,data:S,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ke.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=fn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Kr.isBuffered(e,n)?t=this.getAppendedFrag(n):Kr.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(u.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(u.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,n=this.currentFrag;if(n&&A(t)&&A(n.programDateTime)){const r=n.programDateTime+(t-n.start)*1e3;return new Date(r)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Pa{static get version(){return"1.5.20"}static isMSESupported(){return Vo()}static isSupported(){return gu()}static getMediaSource(){return sn()}static get Events(){return u}static get ErrorTypes(){return y}static get ErrorDetails(){return b}static get DefaultConfig(){return Pa.defaultConfig?Pa.defaultConfig:jo}static set DefaultConfig(e){Pa.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 wn,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,U(e.debug||!1,"Hls instance");const t=this.config=fu(Pa.DefaultConfig,e);this.userConfig=e,t.progressive&&hu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:a,fpsController:c}=t,h=new a(this),_=this.abrController=new n(this),S=this.bufferController=new r(this),R=this.capLevelController=new i(this),re=new c(this),ye=new Hn(this),me=new mr(this),Se=t.contentSteeringController,ke=Se?new Se(this):null,Xe=this.levelController=new pu(this,ke),At=new $i(this),St=new mu(this.config),en=this.streamController=new wu(this,At,St);R.setStreamController(en),re.setStreamController(en);const Pt=[ye,Xe,en];ke&&Pt.splice(1,0,ke),this.networkControllers=Pt;const _n=[_,S,R,re,me,At];this.audioTrackController=this.createController(t.audioTrackController,Pt);const Qt=t.audioStreamController;Qt&&Pt.push(new Qt(this,At,St)),this.subtitleTrackController=this.createController(t.subtitleTrackController,Pt);const In=t.subtitleStreamController;In&&Pt.push(new In(this,At,St)),this.createController(t.timelineController,_n),St.emeController=this.emeController=this.createController(t.emeController,_n),this.cmcdController=this.createController(t.cmcdController,_n),this.latencyController=this.createController(Fr,_n),this.coreComponents=_n,Pt.push(h);const Vn=h.onErrorOut;typeof Vn=="function"&&this.on(u.ERROR,Vn,h)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(x.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===u.ERROR;this.trigger(u.ERROR,{type:y.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){x.log("destroy"),this.trigger(u.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(u.MEDIA_ATTACHING,{media:e})}detachMedia(){x.log("detachMedia"),this.trigger(u.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,n=this.url,r=this.url=de.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,x.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(u.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){br(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const a=e[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}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}}Pa.defaultConfig=void 0},16722:function(qt,qe,p){"use strict";p.d(qe,{Z:function(){return xe}});const M=s=>typeof s=="object"&&s!=null&&s.nodeType===1,Y=(s,A)=>(!A||s!=="hidden")&&s!=="visible"&&s!=="clip",de=(s,A)=>{if(s.clientHeight<s.scrollHeight||s.clientWidth<s.scrollWidth){const L=getComputedStyle(s,null);return Y(L.overflowY,A)||Y(L.overflowX,A)||(v=>{const u=(y=>{if(!y.ownerDocument||!y.ownerDocument.defaultView)return null;try{return y.ownerDocument.defaultView.frameElement}catch(b){return null}})(v);return!!u&&(u.clientHeight<v.scrollHeight||u.clientWidth<v.scrollWidth)})(s)}return!1},Ce=(s,A,L,v,u,y,b,k)=>y<s&&b>A||y>s&&b<A?0:y<=s&&k<=L||b>=A&&k>=L?y-s-v:b>A&&k<L||y<s&&k>L?b-A+u:0,j=s=>{const A=s.parentElement;return A==null?s.getRootNode().host||null:A},X=(s,A)=>{var L,v,u,y;if(typeof document=="undefined")return[];const{scrollMode:b,block:k,inline:ae,boundary:P,skipOverflowHiddenElements:N}=A,G=typeof P=="function"?P:We=>We!==P;if(!M(s))throw new TypeError("Invalid target");const U=document.scrollingElement||document.documentElement,x=[];let T=s;for(;M(T)&&G(T);){if(T=j(T),T===U){x.push(T);break}T!=null&&T===document.body&&de(T)&&!de(document.documentElement)||T!=null&&de(T,N)&&x.push(T)}const B=(v=(L=window.visualViewport)==null?void 0:L.width)!=null?v:innerWidth,F=(y=(u=window.visualViewport)==null?void 0:u.height)!=null?y:innerHeight,{scrollX:fe,scrollY:be}=window,{height:Re,width:he,top:W,right:$,bottom:se,left:D}=s.getBoundingClientRect(),{top:J,right:K,bottom:g,left:E}=(We=>{const je=window.getComputedStyle(We);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(s);let Z=k==="start"||k==="nearest"?W-J:k==="end"?se+g:W+Re/2-J+g,pe=ae==="center"?D+he/2-E+K:ae==="end"?$+K:D-E;const ze=[];for(let We=0;We<x.length;We++){const je=x[We],{height:Ge,width:pt,top:ht,right:rt,bottom:Vt,left:Jt}=je.getBoundingClientRect();if(b==="if-needed"&&W>=0&&D>=0&&se<=F&&$<=B&&(je===U&&!de(je)||W>=ht&&se<=Vt&&D>=Jt&&$<=rt))return ze;const on=getComputedStyle(je),Kt=parseInt(on.borderLeftWidth,10),at=parseInt(on.borderTopWidth,10),Et=parseInt(on.borderRightWidth,10),q=parseInt(on.borderBottomWidth,10);let ge=0,ne=0;const z="offsetWidth"in je?je.offsetWidth-je.clientWidth-Kt-Et:0,De="offsetHeight"in je?je.offsetHeight-je.clientHeight-at-q:0,O="offsetWidth"in je?je.offsetWidth===0?0:pt/je.offsetWidth:0,oe="offsetHeight"in je?je.offsetHeight===0?0:Ge/je.offsetHeight:0;if(U===je)ge=k==="start"?Z:k==="end"?Z-F:k==="nearest"?Ce(be,be+F,F,at,q,be+Z,be+Z+Re,Re):Z-F/2,ne=ae==="start"?pe:ae==="center"?pe-B/2:ae==="end"?pe-B:Ce(fe,fe+B,B,Kt,Et,fe+pe,fe+pe+he,he),ge=Math.max(0,ge+be),ne=Math.max(0,ne+fe);else{ge=k==="start"?Z-ht-at:k==="end"?Z-Vt+q+De:k==="nearest"?Ce(ht,Vt,Ge,at,q+De,Z,Z+Re,Re):Z-(ht+Ge/2)+De/2,ne=ae==="start"?pe-Jt-Kt:ae==="center"?pe-(Jt+pt/2)+z/2:ae==="end"?pe-rt+Et+z:Ce(Jt,rt,pt,Kt,Et+z,pe,pe+he,he);const{scrollLeft:Q,scrollTop:le}=je;ge=oe===0?0:Math.max(0,Math.min(le+ge/oe,je.scrollHeight-Ge/oe+De)),ne=O===0?0:Math.max(0,Math.min(Q+ne/O,je.scrollWidth-pt/O+z)),Z+=le-ge,pe+=Q-ne}ze.push({el:je,top:ge,left:ne})}return ze},ve=s=>s===!1?{block:"end",inline:"nearest"}:(A=>A===Object(A)&&Object.keys(A).length!==0)(s)?s:{block:"start",inline:"nearest"};function xe(s,A){if(!s.isConnected||!(u=>{let y=u;for(;y&&y.parentNode;){if(y.parentNode===document)return!0;y=y.parentNode instanceof ShadowRoot?y.parentNode.host:y.parentNode}return!1})(s))return;const L=(u=>{const y=window.getComputedStyle(u);return{top:parseFloat(y.scrollMarginTop)||0,right:parseFloat(y.scrollMarginRight)||0,bottom:parseFloat(y.scrollMarginBottom)||0,left:parseFloat(y.scrollMarginLeft)||0}})(s);if((u=>typeof u=="object"&&typeof u.behavior=="function")(A))return A.behavior(X(s,A));const v=typeof A=="boolean"||A==null?void 0:A.behavior;for(const{el:u,top:y,left:b}of X(s,ve(A))){const k=y-L.top+L.bottom,ae=b-L.left+L.right;u.scroll({top:k,left:ae,behavior:v})}}}}]);
|
|
|
}()); |