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

1440 lines
2.0 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var lc=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{70557:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},89489:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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:"outlined"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},59477:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},40001:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},49198:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},84105:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},18785:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},73331:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},15277:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},52671:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},8657:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},56082:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},33853:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},15075:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},62772:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},43531:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},61485:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},47472:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(54476),U=u(59301),O={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"},fe=O,Z=u(7657),g=function(y,M){return U.createElement(Z.Z,(0,i.Z)({},y,{ref:M,icon:fe}))},H=U.forwardRef(g),V=H},65030:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return bt}});var i=u(33885),U=u(42978),O=u(75931),fe=u(43403),Z=u(92310),g=u.n(Z),H=u(29301),V=u(76846),l=u(96452),y=u(6089),M=u(80402),b=u(34280),C=u(49658),T=u(59301),$=u(54476),W=u(77900),X=u(8654);function G(Ve){var Le=Ve.prefixCls,oe=Ve.align,nt=Ve.arrow,Ue=Ve.arrowPos,K=nt||{},D=K.className,Se=K.content,Ae=Ue.x,Ce=Ae===void 0?0:Ae,ke=Ue.y,Xe=ke===void 0?0:ke,yt=T.useRef();if(!oe||!oe.points)return null;var he={position:"absolute"};if(oe.autoArrow!==!1){var me=oe.points[0],Lt=oe.points[1],Ct=me[0],Nt=me[1],kt=Lt[0],pt=Lt[1];Ct===kt||!["t","b"].includes(Ct)?he.top=Xe:Ct==="t"?he.top=0:he.bottom=0,Nt===pt||!["l","r"].includes(Nt)?he.left=Ce:Nt==="l"?he.left=0:he.right=0}return T.createElement("div",{ref:yt,className:g()("".concat(Le,"-arrow"),D),style:he},Se)}function L(Ve){var Le=Ve.prefixCls,oe=Ve.open,nt=Ve.zIndex,Ue=Ve.mask,K=Ve.motion;return Ue?T.createElement(W.default,(0,$.Z)({},K,{motionAppear:!0,visible:oe,removeOnLeave:!0}),function(D){var Se=D.className;return T.createElement("div",{style:{zIndex:nt},className:g()("".concat(Le,"-mask"),Se)})}):null}var Q=T.memo(function(Ve){var Le=Ve.children;return Le},function(Ve,Le){return Le.cache}),P=Q,A=T.forwardRef(function(Ve,Le){var oe=Ve.popup,nt=Ve.className,Ue=Ve.prefixCls,K=Ve.style,D=Ve.target,Se=Ve.onVisibleChanged,Ae=Ve.open,Ce=Ve.keepDom,ke=Ve.fresh,Xe=Ve.onClick,yt=Ve.mask,he=Ve.arrow,me=Ve.arrowPos,Lt=Ve.align,Ct=Ve.motion,Nt=Ve.maskMotion,kt=Ve.forceRender,pt=Ve.getPopupContainer,Vt=Ve.autoDestroy,Zt=Ve.portal,Re=Ve.zIndex,gt=Ve.onMouseEnter,E=Ve.onMouseLeave,R=Ve.onPointerEnter,at=Ve.onPointerDownCapture,ae=Ve.ready,Y=Ve.offsetX,Ft=Ve.offsetY,Ke=Ve.offsetR,st=Ve.offsetB,_t=Ve.onAlign,xe=Ve.onPrepare,_e=Ve.stretch,et=Ve.targetWidth,Qe=Ve.targetHeight,z=typeof oe=="function"?oe():oe,Rt=Ae||Ce,ge=(pt==null?void 0:pt.length)>0,Ht=T.useState(!pt||!ge),cn=(0,U.Z)(Ht,2),mt=cn[0],ne=cn[1];if((0,b.Z)(function(){!mt&&ge&&D&&ne(!0)},[mt,ge,D]),!mt)return null;var we="auto",B={left:"-1000vw",top:"-1000vh",right:we,bottom:we};if(ae||!Ae){var xt,lt=Lt.points,ot=Lt.dynamicInset||((xt=Lt._experimental)===null||xt===void 0?void 0:xt.dynamicInset),$t=ot&&lt[0][1]==="r",Bt=ot&&lt[0][0]==="b";$t?(B.right=Ke,B.left=we):(B.left=Y,B.right=we),Bt?(B.bottom=st,B.top=we):(B.top=Ft,B.bottom=we)}var zt={};return _e&&(_e.includes("height")&&Qe?zt.height=Qe:_e.includes("minHeight")&&Qe&&(zt.minHeight=Qe),_e.includes("width")&&et?zt.width=et:_e.includes("minWidth")&&et&&(zt.minWidth=et)),Ae||(zt.pointerEvents="none"),T.createElement(Zt,{open:kt||Rt,getContainer:pt&&function(){return pt(D)},autoDestroy:Vt},T.createElement(L,{prefixCls:Ue,open:Ae,zIndex:Re,mask:yt,motion:Nt}),T.createElement(H.Z,{onResize:_t,disabled:!Ae},function(re){return T.createElement(W.default,(0,$.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:kt,leavedClassName:"".concat(Ue,"-hidden")},Ct,{onAppearPrepare:xe,onEnterPrepare:xe,visible:Ae,onVisibleChanged:function(wt){var Ne;Ct==null||(Ne=Ct.onVisibleChanged)===null||Ne===void 0||Ne.call(Ct,wt),Se(wt)}}),function(ve,wt){var Ne=ve.className,Be=ve.style,ue=g()(Ue,Ne,nt);return T.createElement("div",{ref:(0,X.sQ)(re,Le,wt),className:ue,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(me.x||0,"px"),"--arrow-y":"".concat(me.y||0,"px")},B),zt),Be),{},{boxSizing:"border-box",zIndex:Re},K),onMouseEnter:gt,onMouseLeave:E,onPointerEnter:R,onClick:Xe,onPointerDownCapture:at},he&&T.createElement(G,{prefixCls:Ue,arrow:he,arrowPos:me,align:Lt}),T.createElement(P,{cache:!Ae&&!ke},z))})}))}),ce=A,Ee=T.forwardRef(function(Ve,Le){var oe=Ve.children,nt=Ve.getTriggerDOMNode,Ue=(0,X.Yr)(oe),K=T.useCallback(function(Se){(0,X.mH)(Le,nt?nt(Se):Se)},[nt]),D=(0,X.x1)(K,(0,X.C4)(oe));return Ue?T.cloneElement(oe,{ref:D}):oe}),pe=Ee,ze=T.createContext(null),Je=ze;function Pe(Ve){return Ve?Array.isArray(Ve)?Ve:[Ve]:[]}function Ze(Ve,Le,oe,nt){return T.useMemo(function(){var Ue=Pe(oe!=null?oe:Le),K=Pe(nt!=null?nt:Le),D=new Set(Ue),Se=new Set(K);return Ve&&(D.has("hover")&&(D.delete("hover"),D.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[D,Se]},[Ve,Le,oe,nt])}var le=u(29194);function N(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=arguments.length>2?arguments[2]:void 0;return oe?Ve[0]===Le[0]:Ve[0]===Le[0]&&Ve[1]===Le[1]}function S(Ve,Le,oe,nt){for(var Ue=oe.points,K=Object.keys(Ve),D=0;D<K.length;D+=1){var Se,Ae=K[D];if(N((Se=Ve[Ae])===null||Se===void 0?void 0:Se.points,Ue,nt))return"".concat(Le,"-placement-").concat(Ae)}return""}function q(Ve,Le,oe,nt){return Le||(oe?{motionName:"".concat(Ve,"-").concat(oe)}:nt?{motionName:nt}:null)}function te(Ve){return Ve.ownerDocument.defaultView}function se(Ve){for(var Le=[],oe=Ve==null?void 0:Ve.parentElement,nt=["hidden","scroll","clip","auto"];oe;){var Ue=te(oe).getComputedStyle(oe),K=Ue.overflowX,D=Ue.overflowY,Se=Ue.overflow;[K,D,Se].some(function(Ae){return nt.includes(Ae)})&&Le.push(oe),oe=oe.parentElement}return Le}function w(Ve){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ve)?Le:Ve}function I(Ve){return w(parseFloat(Ve),0)}function de(Ve,Le){var oe=(0,i.Z)({},Ve);return(Le||[]).forEach(function(nt){if(!(nt instanceof HTMLBodyElement||nt instanceof HTMLHtmlElement)){var Ue=te(nt).getComputedStyle(nt),K=Ue.overflow,D=Ue.overflowClipMargin,Se=Ue.borderTopWidth,Ae=Ue.borderBottomWidth,Ce=Ue.borderLeftWidth,ke=Ue.borderRightWidth,Xe=nt.getBoundingClientRect(),yt=nt.offsetHeight,he=nt.clientHeight,me=nt.offsetWidth,Lt=nt.clientWidth,Ct=I(Se),Nt=I(Ae),kt=I(Ce),pt=I(ke),Vt=w(Math.round(Xe.width/me*1e3)/1e3),Zt=w(Math.round(Xe.height/yt*1e3)/1e3),Re=(me-Lt-kt-pt)*Vt,gt=(yt-he-Ct-Nt)*Zt,E=Ct*Zt,R=Nt*Zt,at=kt*Vt,ae=pt*Vt,Y=0,Ft=0;if(K==="clip"){var Ke=I(D);Y=Ke*Vt,Ft=Ke*Zt}var st=Xe.x+at-Y,_t=Xe.y+E-Ft,xe=st+Xe.width+2*Y-at-ae-Re,_e=_t+Xe.height+2*Ft-E-R-gt;oe.left=Math.max(oe.left,st),oe.top=Math.max(oe.top,_t),oe.right=Math.min(oe.right,xe),oe.bottom=Math.min(oe.bottom,_e)}}),oe}function De(Ve){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,oe="".concat(Le),nt=oe.match(/^(.*)\%$/);return nt?Ve*(parseFloat(nt[1])/100):parseFloat(oe)}function dt(Ve,Le){var oe=Le||[],nt=(0,U.Z)(oe,2),Ue=nt[0],K=nt[1];return[De(Ve.width,Ue),De(Ve.height,K)]}function It(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ve[0],Ve[1]]}function Te(Ve,Le){var oe=Le[0],nt=Le[1],Ue,K;return oe==="t"?K=Ve.y:oe==="b"?K=Ve.y+Ve.height:K=Ve.y+Ve.height/2,nt==="l"?Ue=Ve.x:nt==="r"?Ue=Ve.x+Ve.width:Ue=Ve.x+Ve.width/2,{x:Ue,y:K}}function rt(Ve,Le){var oe={t:"b",b:"t",l:"r",r:"l"};return Ve.map(function(nt,Ue){return Ue===Le?oe[nt]||"c":nt}).join("")}function ht(Ve,Le,oe,nt,Ue,K,D){var Se=T.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ue[nt]||{}}),Ae=(0,U.Z)(Se,2),Ce=Ae[0],ke=Ae[1],Xe=T.useRef(0),yt=T.useMemo(function(){return Le?se(Le):[]},[Le]),he=T.useRef({}),me=function(){he.current={}};Ve||me();var Lt=(0,y.Z)(function(){if(Le&&oe&&Ve){let hi=function(Zi,Fr){var ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut,vr=Rt.x+Zi,br=Rt.y+Fr,Pr=vr+Bt,Wr=br+$t,Ci=Math.max(vr,ti.left),xr=Math.max(br,ti.top),Rr=Math.min(Pr,ti.right),Nr=Math.min(Wr,ti.bottom);return Math.max(0,(Rr-Ci)*(Nr-xr))},Ni=function(){Ar=Rt.y+jn,ur=Ar+$t,Yn=Rt.x+Dn,vn=Yn+Bt};var kt,pt,Vt,Zt,Re=Le,gt=Re.ownerDocument,E=te(Re),R=E.getComputedStyle(Re),at=R.position,ae=Re.style.left,Y=Re.style.top,Ft=Re.style.right,Ke=Re.style.bottom,st=Re.style.overflow,_t=(0,i.Z)((0,i.Z)({},Ue[nt]),K),xe=gt.createElement("div");(kt=Re.parentElement)===null||kt===void 0||kt.appendChild(xe),xe.style.left="".concat(Re.offsetLeft,"px"),xe.style.top="".concat(Re.offsetTop,"px"),xe.style.position=at,xe.style.height="".concat(Re.offsetHeight,"px"),xe.style.width="".concat(Re.offsetWidth,"px"),Re.style.left="0",Re.style.top="0",Re.style.right="auto",Re.style.bottom="auto",Re.style.overflow="hidden";var _e;if(Array.isArray(oe))_e={x:oe[0],y:oe[1],width:0,height:0};else{var et,Qe,z=oe.getBoundingClientRect();z.x=(et=z.x)!==null&&et!==void 0?et:z.left,z.y=(Qe=z.y)!==null&&Qe!==void 0?Qe:z.top,_e={x:z.x,y:z.y,width:z.width,height:z.height}}var Rt=Re.getBoundingClientRect(),ge=E.getComputedStyle(Re),Ht=ge.height,cn=ge.width;Rt.x=(pt=Rt.x)!==null&&pt!==void 0?pt:Rt.left,Rt.y=(Vt=Rt.y)!==null&&Vt!==void 0?Vt:Rt.top;var mt=gt.documentElement,ne=mt.clientWidth,we=mt.clientHeight,B=mt.scrollWidth,xt=mt.scrollHeight,lt=mt.scrollTop,ot=mt.scrollLeft,$t=Rt.height,Bt=Rt.width,zt=_e.height,re=_e.width,ve={left:0,top:0,right:ne,bottom:we},wt={left:-ot,top:-lt,right:B-ot,bottom:xt-lt},Ne=_t.htmlRegion,Be="visible",ue="visibleFirst";Ne!=="scroll"&&Ne!==ue&&(Ne=Be);var Ie=Ne===ue,Fe=de(wt,yt),$e=de(ve,yt),ut=Ne===Be?$e:Fe,Gt=Ie?$e:ut;Re.style.left="auto",Re.style.top="auto",Re.style.right="0",Re.style.bottom="0";var sn=Re.getBoundingClientRect();Re.style.left=ae,Re.style.top=Y,Re.style.right=Ft,Re.style.bottom=Ke,Re.style.overflow=st,(Zt=Re.parentElement)===null||Zt===void 0||Zt.removeChild(xe);var je=w(Math.round(Bt/parseFloat(cn)*1e3)/1e3),ct=w(Math.round($t/parseFloat(Ht)*1e3)/1e3);if(je===0||ct===0||(0,V.Sh)(oe)&&!(0,le.Z)(oe))return;var Dt=_t.offset,qt=_t.targetOffset,Jt=dt(Rt,Dt),Ge=(0,U.Z)(Jt,2),ft=Ge[0],Mt=Ge[1],Ye=dt(_e,qt),jt=(0,U.Z)(Ye,2),rn=jt[0],an=jt[1];_e.x-=rn,_e.y-=an;var nn=_t.points||[],mn=(0,U.Z)(nn,2),bn=mn[0],In=mn[1],_n=It(In),Cn=It(bn),Zn=Te(_e,_n),Ln=Te(Rt,Cn),rr=(0,i.Z)({},_t),Dn=Zn.x-Ln.x+ft,jn=Zn.y-Ln.y+Mt,Xn=hi(Dn,jn),Wn=hi(Dn,jn,$e),Gn=Te(_e,["t","l"]),Jn=Te(Rt,["t","l"]),Rn=Te(_e,["b","r"]),Bn=Te(Rt,["b","r"]),ln=_t.overflow||{},Tt=ln.adjustX,Fn=ln.adjustY,On=ln.shiftX,sr=ln.shiftY,dr=function(Fr){return typeof Fr=="boolean"?Fr:Fr>=0},Ar,ur,Yn,vn;Ni();var hn=dr(Fn),xn=Cn[0]===_n[0];if(hn&&Cn[0]==="t"&&(ur>Gt.bottom||he.current.bt)){var Qn=jn;xn?Qn-=$t-zt:Qn=Gn.y-Bn.y-Mt;var tr=hi(Dn,Qn),yr=hi(Dn,Qn,$e);tr>Xn||tr===Xn&&(!Ie||yr>=Wn)?(he.current.bt=!0,jn=Qn,Mt=-Mt,rr.points=[rt(Cn,0),rt(_n,0)]):he.current.bt=!1}if(hn&&Cn[0]==="b"&&(Ar<Gt.top||he.current.tb)){var Er=jn;xn?Er+=$t-zt:Er=Rn.y-Jn.y-Mt;var $n=hi(Dn,Er),Sr=hi(Dn,Er,$e);$n>Xn||$n===Xn&&(!Ie||Sr>=Wn)?(he.current.tb=!0,jn=Er,Mt=-Mt,rr.points=[rt(Cn,0),rt(_n,0)]):he.current.tb=!1}var Dr=dr(Tt),$r=Cn[1]===_n[1];if(Dr&&Cn[1]==="l"&&(vn>Gt.right||he.current.rl)){var Mr=Dn;$r?Mr-=Bt-re:Mr=Gn.x-Bn.x-ft;var Or=hi(Mr,jn),Cr=hi(Mr,jn,$e);Or>Xn||Or===Xn&&(!Ie||Cr>=Wn)?(he.current.rl=!0,Dn=Mr,ft=-ft,rr.points=[rt(Cn,1),rt(_n,1)]):he.current.rl=!1}if(Dr&&Cn[1]==="r"&&(Yn<Gt.left||he.current.lr)){var zr=Dn;$r?zr+=Bt-re:zr=Rn.x-Jn.x-ft;var wr=hi(zr,jn),Vr=hi(zr,jn,$e);wr>Xn||wr===Xn&&(!Ie||Vr>=Wn)?(he.current.lr=!0,Dn=zr,ft=-ft,rr.points=[rt(Cn,1),rt(_n,1)]):he.current.lr=!1}Ni();var Ir=On===!0?0:On;typeof Ir=="number"&&(Yn<$e.left&&(Dn-=Yn-$e.left-ft,_e.x+re<$e.left+Ir&&(Dn+=_e.x-$e.left+re-Ir)),vn>$e.right&&(Dn-=vn-$e.right-ft,_e.x>$e.right-Ir&&(Dn+=_e.x-$e.right+Ir)));var tn=sr===!0?0:sr;typeof tn=="number"&&(Ar<$e.top&&(jn-=Ar-$e.top-Mt,_e.y+zt<$e.top+tn&&(jn+=_e.y-$e.top+zt-tn)),ur>$e.bottom&&(jn-=ur-$e.bottom-Mt,_e.y>$e.bottom-tn&&(jn+=_e.y-$e.bottom+tn)));var Tn=Rt.x+Dn,cr=Tn+Bt,or=Rt.y+jn,Br=or+$t,ri=_e.x,vi=ri+re,_r=_e.y,mr=_r+zt,bi=Math.max(Tn,ri),ar=Math.min(cr,vi),wi=(bi+ar)/2,Yi=wi-Tn,Wi=Math.max(or,_r),Mi=Math.min(Br,mr),ki=(Wi+Mi)/2,Gr=ki-or;D==null||D(Le,rr);var Di=sn.right-Rt.x-(Dn+Rt.width),ra=sn.bottom-Rt.y-(jn+Rt.height);je===1&&(Dn=Math.round(Dn),Di=Math.round(Di)),ct===1&&(jn=Math.round(jn),ra=Math.round(ra));var zi={ready:!0,offsetX:Dn/je,offsetY:jn/ct,offsetR:Di/je,offsetB:ra/ct,arrowX:Yi/je,arrowY:Gr/ct,scaleX:je,scaleY:ct,align:rr};ke(zi)}}),Ct=function(){Xe.current+=1;var pt=Xe.current;Promise.resolve().then(function(){Xe.current===pt&&Lt()})},Nt=function(){ke(function(pt){return(0,i.Z)((0,i.Z)({},pt),{},{ready:!1})})};return(0,b.Z)(Nt,[nt]),(0,b.Z)(function(){Ve||Nt()},[Ve]),[Ce.ready,Ce.offsetX,Ce.offsetY,Ce.offsetR,Ce.offsetB,Ce.arrowX,Ce.arrowY,Ce.scaleX,Ce.scaleY,Ce.align,Ct]}var St=u(94480);function Me(Ve,Le,oe,nt,Ue){(0,b.Z)(function(){if(Ve&&Le&&oe){let Xe=function(){nt(),Ue()};var K=Le,D=oe,Se=se(K),Ae=se(D),Ce=te(D),ke=new Set([Ce].concat((0,St.Z)(Se),(0,St.Z)(Ae)));return ke.forEach(function(yt){yt.addEventListener("scroll",Xe,{passive:!0})}),Ce.addEventListener("resize",Xe,{passive:!0}),nt(),function(){ke.forEach(function(yt){yt.removeEventListener("scroll",Xe),Ce.removeEventListener("resize",Xe)})}}},[Ve,Le,oe])}var Xt=u(48736);function tt(Ve,Le,oe,nt,Ue,K,D,Se){var Ae=T.useRef(Ve);Ae.current=Ve;var Ce=T.useRef(!1);T.useEffect(function(){if(Le&&nt&&(!Ue||K)){var Xe=function(){Ce.current=!1},yt=function(Vt){var Zt;Ae.current&&!D(((Zt=Vt.composedPath)===null||Zt===void 0||(Zt=Zt.call(Vt))===null||Zt===void 0?void 0:Zt[0])||Vt.target)&&!Ce.current&&Se(!1)},he=te(nt);he.addEventListener("pointerdown",Xe,!0),he.addEventListener("mousedown",yt,!0),he.addEventListener("contextmenu",yt,!0);var me=(0,l.A)(oe);if(me&&(me.addEventListener("mousedown",yt,!0),me.addEventListener("contextmenu",yt,!0)),0)var Lt,Ct,Nt,kt;return function(){he.removeEventListener("pointerdown",Xe,!0),he.removeEventListener("mousedown",yt,!0),he.removeEventListener("contextmenu",yt,!0),me&&(me.removeEventListener("mousedown",yt,!0),me.removeEventListener("contextmenu",yt,!0))}}},[Le,oe,nt,Ue,K]);function ke(){Ce.current=!0}return ke}var un=["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 vt(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fe.Z,Le=T.forwardRef(function(oe,nt){var Ue=oe.prefixCls,K=Ue===void 0?"rc-trigger-popup":Ue,D=oe.children,Se=oe.action,Ae=Se===void 0?"hover":Se,Ce=oe.showAction,ke=oe.hideAction,Xe=oe.popupVisible,yt=oe.defaultPopupVisible,he=oe.onPopupVisibleChange,me=oe.afterPopupVisibleChange,Lt=oe.mouseEnterDelay,Ct=oe.mouseLeaveDelay,Nt=Ct===void 0?.1:Ct,kt=oe.focusDelay,pt=oe.blurDelay,Vt=oe.mask,Zt=oe.maskClosable,Re=Zt===void 0?!0:Zt,gt=oe.getPopupContainer,E=oe.forceRender,R=oe.autoDestroy,at=oe.destroyPopupOnHide,ae=oe.popup,Y=oe.popupClassName,Ft=oe.popupStyle,Ke=oe.popupPlacement,st=oe.builtinPlacements,_t=st===void 0?{}:st,xe=oe.popupAlign,_e=oe.zIndex,et=oe.stretch,Qe=oe.getPopupClassNameFromAlign,z=oe.fresh,Rt=oe.alignPoint,ge=oe.onPopupClick,Ht=oe.onPopupAlign,cn=oe.arrow,mt=oe.popupMotion,ne=oe.maskMotion,we=oe.popupTransitionName,B=oe.popupAnimation,xt=oe.maskTransitionName,lt=oe.maskAnimation,ot=oe.className,$t=oe.getTriggerDOMNode,Bt=(0,O.Z)(oe,un),zt=R||at||!1,re=T.useState(!1),ve=(0,U.Z)(re,2),wt=ve[0],Ne=ve[1];(0,b.Z)(function(){Ne((0,C.Z)())},[]);var Be=T.useRef({}),ue=T.useContext(Je),Ie=T.useMemo(function(){return{registerSubPopup:function(Rr,Nr){Be.current[Rr]=Nr,ue==null||ue.registerSubPopup(Rr,Nr)}}},[ue]),Fe=(0,M.Z)(),$e=T.useState(null),ut=(0,U.Z)($e,2),Gt=ut[0],sn=ut[1],je=T.useRef(null),ct=(0,y.Z)(function(xr){je.current=xr,(0,V.Sh)(xr)&&Gt!==xr&&sn(xr),ue==null||ue.registerSubPopup(Fe,xr)}),Dt=T.useState(null),qt=(0,U.Z)(Dt,2),Jt=qt[0],Ge=qt[1],ft=T.useRef(null),Mt=(0,y.Z)(function(xr){(0,V.Sh)(xr)&&Jt!==xr&&(Ge(xr),ft.current=xr)}),Ye=T.Children.only(D),jt=(Ye==null?void 0:Ye.props)||{},rn={},an=(0,y.Z)(function(xr){var Rr,Nr,Zr=Jt;return(Zr==null?void 0:Zr.contains(xr))||((Rr=(0,l.A)(Zr))===null||Rr===void 0?void 0:Rr.host)===xr||xr===Zr||(Gt==null?void 0:Gt.contains(xr))||((Nr=(0,l.A)(Gt))===null||Nr===void 0?void 0:Nr.host)===xr||xr===Gt||Object.values(Be.current).some(function(ni){return(ni==null?void 0:ni.contains(xr))||xr===ni})}),nn=q(K,mt,B,we),mn=q(K,ne,lt,xt),bn=T.useState(yt||!1),In=(0,U.Z)(bn,2),_n=In[0],Cn=In[1],Zn=Xe!=null?Xe:_n,Ln=(0,y.Z)(function(xr){Xe===void 0&&Cn(xr)});(0,b.Z)(function(){Cn(Xe||!1)},[Xe]);var rr=T.useRef(Zn);rr.current=Zn;var Dn=T.useRef([]);Dn.current=[];var jn=(0,y.Z)(function(xr){var Rr;Ln(xr),((Rr=Dn.current[Dn.current.length-1])!==null&&Rr!==void 0?Rr:Zn)!==xr&&(Dn.current.push(xr),he==null||he(xr))}),Xn=T.useRef(),Wn=function(){clearTimeout(Xn.current)},Gn=function(Rr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Wn(),Nr===0?jn(Rr):Xn.current=setTimeout(function(){jn(Rr)},Nr*1e3)};T.useEffect(function(){return Wn},[]);var Jn=T.useState(!1),Rn=(0,U.Z)(Jn,2),Bn=Rn[0],ln=Rn[1];(0,b.Z)(function(xr){(!xr||Zn)&&ln(!0)},[Zn]);var Tt=T.useState(null),Fn=(0,U.Z)(Tt,2),On=Fn[0],sr=Fn[1],dr=T.useState(null),Ar=(0,U.Z)(dr,2),ur=Ar[0],Yn=Ar[1],vn=function(Rr){Yn([Rr.clientX,Rr.clientY])},hn=ht(Zn,Gt,Rt&&ur!==null?ur:Jt,Ke,_t,xe,Ht),xn=(0,U.Z)(hn,11),Qn=xn[0],tr=xn[1],yr=xn[2],Er=xn[3],$n=xn[4],Sr=xn[5],Dr=xn[6],$r=xn[7],Mr=xn[8],Or=xn[9],Cr=xn[10],zr=Ze(wt,Ae,Ce,ke),wr=(0,U.Z)(zr,2),Vr=wr[0],Ir=wr[1],tn=Vr.has("click"),Tn=Ir.has("click")||Ir.has("contextMenu"),cr=(0,y.Z)(function(){Bn||Cr()}),or=function(){rr.current&&Rt&&Tn&&Gn(!1)};Me(Zn,Jt,Gt,cr,or),(0,b.Z)(function(){cr()},[ur,Ke]),(0,b.Z)(function(){Zn&&!(_t!=null&&_t[Ke])&&cr()},[JSON.stringify(xe)]);var Br=T.useMemo(function(){var xr=S(_t,K,Or,Rt);return g()(xr,Qe==null?void 0:Qe(Or))},[Or,Qe,_t,K,Rt]);T.useImperativeHandle(nt,function(){return{nativeElement:ft.current,popupElement:je.current,forceAlign:cr}});var ri=T.useState(0),vi=(0,U.Z)(ri,2),_r=vi[0],mr=vi[1],bi=T.useState(0),ar=(0,U.Z)(bi,2),wi=ar[0],Yi=ar[1],Wi=function(){if(et&&Jt){var Rr=Jt.getBoundingClientRect();mr(Rr.width),Yi(Rr.height)}},Mi=function(){Wi(),cr()},ki=function(Rr){ln(!1),Cr(),me==null||me(Rr)},Gr=function(){return new Promise(function(Rr){Wi(),sr(function(){return Rr})})};(0,b.Z)(function(){On&&(Cr(),On(),sr(null))},[On]);function Di(xr,Rr,Nr,Zr){rn[xr]=function(ni){var ma;Zr==null||Zr(ni),Gn(Rr,Nr);for(var Xi=arguments.length,ua=new Array(Xi>1?Xi-1:0),fi=1;fi<Xi;fi++)ua[fi-1]=arguments[fi];(ma=jt[xr])===null||ma===void 0||ma.call.apply(ma,[jt,ni].concat(ua))}}(tn||Tn)&&(rn.onClick=function(xr){var Rr;rr.current&&Tn?Gn(!1):!rr.current&&tn&&(vn(xr),Gn(!0));for(var Nr=arguments.length,Zr=new Array(Nr>1?Nr-1:0),ni=1;ni<Nr;ni++)Zr[ni-1]=arguments[ni];(Rr=jt.onClick)===null||Rr===void 0||Rr.call.apply(Rr,[jt,xr].concat(Zr))});var ra=tt(Zn,Tn,Jt,Gt,Vt,Re,an,Gn),zi=Vr.has("hover"),hi=Ir.has("hover"),Ni,Zi;zi&&(Di("onMouseEnter",!0,Lt,function(xr){vn(xr)}),Di("onPointerEnter",!0,Lt,function(xr){vn(xr)}),Ni=function(Rr){(Zn||Bn)&&Gt!==null&&Gt!==void 0&&Gt.contains(Rr.target)&&Gn(!0,Lt)},Rt&&(rn.onMouseMove=function(xr){var Rr;(Rr=jt.onMouseMove)===null||Rr===void 0||Rr.call(jt,xr)})),hi&&(Di("onMouseLeave",!1,Nt),Di("onPointerLeave",!1,Nt),Zi=function(){Gn(!1,Nt)}),Vr.has("focus")&&Di("onFocus",!0,kt),Ir.has("focus")&&Di("onBlur",!1,pt),Vr.has("contextMenu")&&(rn.onContextMenu=function(xr){var Rr;rr.current&&Ir.has("contextMenu")?Gn(!1):(vn(xr),Gn(!0)),xr.preventDefault();for(var Nr=arguments.length,Zr=new Array(Nr>1?Nr-1:0),ni=1;ni<Nr;ni++)Zr[ni-1]=arguments[ni];(Rr=jt.onContextMenu)===null||Rr===void 0||Rr.call.apply(Rr,[jt,xr].concat(Zr))}),ot&&(rn.className=g()(jt.className,ot));var Fr=T.useRef(!1);Fr.current||(Fr.current=E||Zn||Bn);var ti=(0,i.Z)((0,i.Z)({},jt),rn),vr={},br=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];br.forEach(function(xr){Bt[xr]&&(vr[xr]=function(){for(var Rr,Nr=arguments.length,Zr=new Array(Nr),ni=0;ni<Nr;ni++)Zr[ni]=arguments[ni];(Rr=ti[xr])===null||Rr===void 0||Rr.call.apply(Rr,[ti].concat(Zr)),Bt[xr].apply(Bt,Zr)})});var Pr=T.cloneElement(Ye,(0,i.Z)((0,i.Z)({},ti),vr)),Wr={x:Sr,y:Dr},Ci=cn?(0,i.Z)({},cn!==!0?cn:{}):null;return T.createElement(T.Fragment,null,T.createElement(H.Z,{disabled:!Zn,ref:Mt,onResize:Mi},T.createElement(pe,{getTriggerDOMNode:$t},Pr)),Fr.current&&T.createElement(Je.Provider,{value:Ie},T.createElement(ce,{portal:Ve,ref:ct,prefixCls:K,popup:ae,className:g()(Y,Br),style:Ft,target:Jt,onMouseEnter:Ni,onMouseLeave:Zi,onPointerEnter:Ni,zIndex:_e,open:Zn,keepDom:Bn,fresh:z,onClick:ge,onPointerDownCapture:ra,mask:Vt,motion:nn,maskMotion:mn,onVisibleChanged:ki,onPrepare:Gr,forceRender:E,autoDestroy:zt,getPopupContainer:gt,align:Or,arrow:Ci,arrowPos:Wr,ready:Qn,offsetX:tr,offsetY:yr,offsetR:Er,offsetB:$n,onAlign:cr,stretch:et,targetWidth:_r/$r,targetHeight:wi/Mr})))});return Le}var bt=vt(fe.Z)},64310:function(){"use strict"},94008:function(zn,Pt,u){"use strict";var i=u(59301),U=Object.defineProperty,O=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,y,M)=>y in l?U(l,y,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[y]=M,H=(l,y)=>{for(var M in y||(y={}))fe.call(y,M)&&g(l,M,y[M]);if(O)for(var M of O(y))Z.call(y,M)&&g(l,M,y[M]);return l};const V=l=>React.createElement("svg",H({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},l),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},20428:function(zn,Pt,u){"use strict";var i=u(59301),U=Object.defineProperty,O=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,y,M)=>y in l?U(l,y,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[y]=M,H=(l,y)=>{for(var M in y||(y={}))fe.call(y,M)&&g(l,M,y[M]);if(O)for(var M of O(y))Z.call(y,M)&&g(l,M,y[M]);return l};const V=l=>React.createElement("svg",H({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},l),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},2943:function(zn,Pt,u){"use strict";var i=u(59301),U=Object.defineProperty,O=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,y,M)=>y in l?U(l,y,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[y]=M,H=(l,y)=>{for(var M in y||(y={}))fe.call(y,M)&&g(l,M,y[M]);if(O)for(var M of O(y))Z.call(y,M)&&g(l,M,y[M]);return l};const V=l=>React.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},l),React.createElement("path",{fill:"#F7B500",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm1 3H6.395a3.501 3.501 0 0 1-.857 1.245c-.32.294-.752.551-1.297.772L4 9.109V10.9c.448-.154.82-.315 1.117-.483.222-.126.45-.282.685-.466l.236-.194V15H8V7ZM4.812 0c.175 0 .35.16.438.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.663 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},67894:function(zn,Pt,u){"use strict";var i=u(59301),U=Object.defineProperty,O=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,y,M)=>y in l?U(l,y,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[y]=M,H=(l,y)=>{for(var M in y||(y={}))fe.call(y,M)&&g(l,M,y[M]);if(O)for(var M of O(y))Z.call(y,M)&&g(l,M,y[M]);return l};const V=l=>React.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},l),React.createElement("path",{fill:"#B9C4CF",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm.05 3c-.675 0-1.203.092-1.584.276a2.056 2.056 0 0 0-.887.794c-.18.296-.31.691-.394 1.186l-.038.255 2.004.177c.055-.443.164-.753.326-.928a.814.814 0 0 1 .626-.263.81.81 0 0 1 .611.255c.162.17.243.375.243.614 0 .222-.081.456-.245.703-.164.247-.539.608-1.124 1.084-.96.776-1.613 1.45-1.962 2.02a4.363 4.363 0 0 0-.588 1.552L4 15h6v-1.781H6.877c.184-.197.343-.356.479-.478.136-.122.405-.334.808-.638.677-.523 1.145-1.002 1.401-1.438.257-.437.386-.895.386-1.374 0-.45-.112-.858-.336-1.22a2.043 2.043 0 0 0-.924-.808C8.301 7.088 7.753 7 7.05 7ZM4.812 0c.175 0 .35.16.437.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.662 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},76614:function(zn,Pt,u){"use strict";var i=u(59301),U=Object.defineProperty,O=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,g=(l,y,M)=>y in l?U(l,y,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[y]=M,H=(l,y)=>{for(var M in y||(y={}))fe.call(y,M)&&g(l,M,y[M]);if(O)for(var M of O(y))Z.call(y,M)&&g(l,M,y[M]);return l};const V=l=>React.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},l),React.createElement("path",{fill:"#D09F18",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm-.062 3c-.826 0-1.464.172-1.915.517-.4.307-.686.733-.856 1.278l-.058.21 1.908.364c.052-.383.153-.651.302-.804a.772.772 0 0 1 .58-.23c.23 0 .412.07.544.211.133.14.199.33.199.565a.88.88 0 0 1-.265.638.89.89 0 0 1-.662.27 1.35 1.35 0 0 1-.158-.012l-.104-.015-.105 1.536c.278-.085.496-.127.654-.127.298 0 .533.099.707.296.173.197.26.475.26.833 0 .352-.09.634-.27.845a.852.852 0 0 1-.677.316.862.862 0 0 1-.636-.25c-.143-.144-.254-.384-.333-.723l-.036-.177L4 12.826c.132.482.321.882.567 1.2.246.319.56.56.942.726.381.165.902.248 1.563.248.677 0 1.224-.112 1.64-.335.416-.223.735-.542.956-.955.221-.414.332-.845.332-1.296 0-.359-.067-.667-.2-.926a1.633 1.633 0 0 0-.563-.625c-.149-.099-.363-.185-.644-.259.347-.204.606-.441.778-.712a1.66 1.66 0 0 0 .257-.908 1.82 1.82 0 0 0-.634-1.42C8.571 7.189 7.886 7 6.938 7ZM4.813 0c.175 0 .35.17.437.338l1.313 2.453s-2.8.17-4.463 1.776L.088.761C0 .677 0 .592 0 .507 0 .17.263 0 .525 0Zm8.662 0c.263 0 .525.254.525.507 0 .085 0 .17-.088.254L11.9 4.483C10.238 2.96 7.437 2.79 7.437 2.79L8.75.338C8.75.17 8.925 0 9.188 0Z"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIuMDcuNTQ0LjIxMS4xMzMuMTQuMTk5LjMzLjE5OS41NjVhLjg4Ljg4IDAgMCAxLS4yNjUuNjM4Ljg5Ljg5IDAgMCAxLS42NjIuMjcgMS4zNSAxLjM1IDAgMCAxLS4xNTgtLjAxMmwtLjEwNC0uMDE1LS4xMDUgMS41MzZjLjI3OC0uMDg1LjQ5Ni0uMTI3LjY1NC0uMTI3LjI5OCAwIC41MzMuMDk5LjcwNy4yOTYuMTczLjE5Ny4yNi40NzUuMjYuODMzIDAgLjM1Mi0uMDkuNjM0LS4yNy44NDVhLjg1Mi44NTIgMCAwIDEtLjY3Ny4zMTYuODYyLjg2MiAwIDAgMS0uNjM2LS4yNWMtLjE0My0uMTQ0LS4yNTQtLjM4NC0uMzMzLS43MjNsLS4wMzYtLjE3N0w0IDEyLjgyNmMuMTMyLjQ4Mi4zMjEuODgyLjU2NyAxLjIuMjQ2LjMxOS41Ni41Ni45NDIuNzI2LjM4MS4xNjUuOTAyLjI0OCAxLjU2My4yNDguNjc3IDAgMS4yMjQtLjExMiAxLjY0LS4zMzUuNDE2LS4yMjMuNzM1LS41NDIuOTU2LS45NTUuMjIxLS40MTQuMzMyLS44NDUuMzMyLTEuMjk2IDAtLjM1OS0uMDY3LS42NjctLjItLjkyNmExLjYzMyAxLjYzMyAwIDAgMC0uNTYzLS42MjVjLS4xNDktLjA5OS0uMzYzLS4xODUtLjY0NC0uMjU5LjM0Ny0uMjA0LjYwNi0uNDQxLjc3OC0uNzEyYTEuNjYgMS42NiAwIDAgMCAuMjU3LS45MDggMS44MiAxLjgyIDAgMCAwLS42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},96609:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return g}});var i=u(37639),U={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},O=u(32637),fe=u(59301),g=({type:H,style:V})=>{const l=fe.createElement("div",{className:U.wrap,onClick:y=>{y.preventDefault(),y.stopPropagation()}},fe.createElement("p",null,H==="shixun"||H==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",fe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",H==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),fe.createElement("div",{className:U.contact},fe.createElement("div",{className:U.img},fe.createElement("img",{src:O,width:"124px",height:"124px"})),fe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return fe.createElement(i.Z,{content:l},fe.createElement("span",{className:U.text,style:V},"\u9AD8\u6D88\u8017"))}},71347:function(zn,Pt,u){"use strict";var i=u(59301),U=u(93314),O=u(7939),fe=Object.defineProperty,Z=Object.defineProperties,g=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,y=(T,$,W)=>$ in T?fe(T,$,{enumerable:!0,configurable:!0,writable:!0,value:W}):T[$]=W,M=(T,$)=>{for(var W in $||($={}))V.call($,W)&&y(T,W,$[W]);if(H)for(var W of H($))l.call($,W)&&y(T,W,$[W]);return T},b=(T,$)=>Z(T,g($));const C=({img:T,buttonProps:$={},styles:W={},customText:X,ButtonText:G,ButtonClick:L,Buttonclass:Q,ButtonTwo:P,imgStyles:A,loading:ce=!1,className:Ee=""})=>i.createElement("section",{className:`tc animated fadeIn ${Ee}`,style:M({color:"#999",margin:"100px auto",visibility:ce?"hidden":"visible"},W)},i.createElement("img",{src:T||U,style:b(M({},A),{pointerEvents:"none",userSelect:"none"})}),i.createElement("p",{className:"mt20 font14"},X||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),G&&i.createElement(O.ZP,M({className:Q,onClick:L},$),G),P&&P);Pt.Z=C},98893:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return Q}});var i=u(59301),U={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},O=u(7939),fe=u(70557),Z=u(94871),g=u(25399),H=u(68911),V=u(58870),l=u(71347),y=u(35783),M=u(25341),b=u(59301),C=Object.defineProperty,T=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,X=(P,A,ce)=>A in P?C(P,A,{enumerable:!0,configurable:!0,writable:!0,value:ce}):P[A]=ce,G=(P,A)=>{for(var ce in A||(A={}))$.call(A,ce)&&X(P,ce,A[ce]);if(T)for(var ce of T(A))W.call(A,ce)&&X(P,ce,A[ce]);return P},L=(P,A,ce)=>new Promise((Ee,pe)=>{var ze=Ze=>{try{Pe(ce.next(Ze))}catch(le){pe(le)}},Je=Ze=>{try{Pe(ce.throw(Ze))}catch(le){pe(le)}},Pe=Ze=>Ze.done?Ee(Ze.value):Promise.resolve(Ze.value).then(ze,Je);Pe((ce=ce.apply(P,A)).next())}),Q=({editOffice:P="view",data:A,issaver:ce,onSaver:Ee,theme:pe,type:ze,filename:Je,monacoEditor:Pe,className:Ze,style:le,close:N,onClose:S,hasMask:q,disabledDownload:te,onImgDimensions:se,showNodata:w,recordInfo:I})=>{const[de,De]=(0,i.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[dt,It]=(0,i.useState)(""),[Te,rt]=(0,i.useState)(),ht=window.ENV==="build"?"/react/build":"",St=location.host.startsWith("localhost")?y.Z.PROXY_SERVER:y.Z.API_SERVER,Xt=10*(1024*1024),tt=(0,i.useRef)();A!=null&&A.startsWith("/api")&&ze!=="txt"&&(A=y.Z.API_SERVER+A);const un=nt=>nt.substring(nt.lastIndexOf("/")+1).split(".").pop();Je&&Pe&&(Pe.filename=Je),(0,i.useEffect)(()=>{var nt,Ue;const K=(Ue=(nt=document.cookie)==null?void 0:nt.replace(/\s/g,""))==null?void 0:Ue.split(";");K==null||K.map(D=>{let Se=D.split("=");Se[0]==="_educoder_session"&&It(Se[1])})},[]),(0,i.useEffect)(()=>{ze==="office"&&(A.indexOf("bigfilescdn.")>-1||A.indexOf("bigfiles1")>-1?rt({url:A,fileType:un(A),model:A.indexOf("model=edit")?"edit":"view"}):A.indexOf("coze")>-1?rt({url:A,fileType:"doc",model:"view"}):bt())},[ze,A]);function vt(nt){return L(this,null,function*(){nt.data.type==="pdfdata"&&(Ee(nt.data.data),window.removeEventListener("message",vt,!1)),console.log("mess---:",nt.data)})}const bt=()=>L(void 0,null,function*(){console.log("data:",A);let nt=A;A.startsWith("http")||(nt=location.origin+nt);let Ue=new URL(nt).pathname.split("/").pop();const K=yield(0,V.gJ)({attachment_id:Ue});K.url=St+K.url,rt(K)}),Ve=()=>{if(A.startsWith("http")||A.startsWith("blob:")){Le();return}(0,H.Sv)(Je||"educoder",A,Je)},Le=()=>{I&&(0,M.fc)({id:I==null?void 0:I.id,watch_type:1,course_id:I==null?void 0:I.course_id}),(0,H.Nd)(Je||"educoder",decodeURIComponent(A))};(0,i.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=nt=>{var Ue;((Ue=nt==null?void 0:nt.data)==null?void 0:Ue.type)==="closePop"&&S()};return b.createElement("div",{style:G({},le||{}),className:`${q&&U.bgBlack} ${ze?U.wrp:"hide"}`},!!ze&&N&&b.createElement("div",{id:"closePop",className:U.close,ref:tt},!!se&&b.createElement(g.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>tt.current},b.createElement("span",{onClick:()=>{S(),se()}},b.createElement("i",{className:"icon-yulanpizhu"}))),!te&&window.parent===window&&b.createElement(g.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>tt.current},b.createElement("span",{onClick:Le},b.createElement("i",{className:"icon-quxiaozhiding"}))),ce&&b.createElement(g.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>tt.current},b.createElement("span",{className:"",onClick:()=>{const nt=document.getElementById("pdfiframe");window.addEventListener("message",vt,!1),setTimeout(()=>{nt.contentWindow.postMessage("getData","*")},300)}},b.createElement("i",{className:"icon-baocun"}))),b.createElement(g.Z,{title:"\u5173\u95ED",getPopupContainer:()=>tt.current},b.createElement("span",{className:"",onClick:()=>{S()}},b.createElement("i",{className:"icon-guanbi1"})))),b.createElement("div",{className:`${U[Ze]} ${Ze} ${U.monaco} ${ze==="txt"?"show":"hide"}`},ze==="txt"&&b.createElement(b.Fragment,null,b.createElement(Z.ZP,G({},Pe)))),ze==="audio"&&b.createElement("audio",{src:`${(A==null?void 0:A.indexOf("http://"))>-1||(A==null?void 0:A.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${A}`,autoPlay:!0}),ze==="video"&&b.createElement(b.Fragment,null,(A==null?void 0:A.indexOf("http"))>-1?b.createElement("video",{controls:!0,src:`${A}`,autoPlay:!0}):b.createElement("video",{controls:!0,src:`data:video/mp4;base64,${A}`,autoPlay:!0})),ze==="office"&&Te&&b.createElement("iframe",{src:`${ht}/office.html?key=${Te.key}&url=${btoa(Te.url)}&callbackUrl=${St+(Te.callbackUrl||"")}&fileType=${Te.fileType}&title=${Te.title||""}&model=${P}&officeServer=${y.Z.ONLYOFFICE}&disabledDownload=${!!te}`}),ze==="html"&&b.createElement("iframe",{src:A+"&disposition=inline"}),ze==="pdf"&&b.createElement("iframe",{id:"pdfiframe",src:`${ht}/js/pdf/index.html?filename=${Je||"educoder.pdf"}&url=${encodeURIComponent(A)}&disabledDownload=${!!te}&model=${P}`}),ze==="image"&&b.createElement("img",{src:`${(A==null?void 0:A.indexOf("http://"))>-1||(A==null?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,"}${A}`}),(ze==="other"||ze==="download")&&b.createElement(b.Fragment,null,w?b.createElement(l.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:b.createElement(O.ZP,{icon:b.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ve,disabled:te},"\u4E0B\u8F7D")}):b.createElement(O.ZP,{type:"primary",size:"middle",onClick:Ve,disabled:te},b.createElement(fe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ze==="flowChart"&&b.createElement("div",{className:"embed"},b.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${A||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},56375:function(zn,Pt,u){"use strict";u.d(Pt,{z:function(){return Pe},Z:function(){return Ze}});var i=u(59301),U=u(64310),O=u(74410),fe=u(64018),Z=u(16471),g=u(35783),H=u(68911),V=u(15342),l=u(44104),y=u(7939),M=u(1012),b=u(98893),C=u(59301),$=({html:le})=>{const N=(0,i.useRef)(null),S=(0,i.useRef)(null),q=`.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 56px !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,i.useEffect)(()=>{const te=N.current.attachShadow({mode:"open"});S.current=document.createElement("div"),S.current.className="markdown-body",S.current.innerHTML=le,te.appendChild(S.current);const se=document.createElement("style");return se.textContent=q,te.appendChild(se),()=>{te.innerHTML=""}},[]),(0,i.useEffect)(()=>{S.current&&(S.current.innerHTML=le)},[le]),C.createElement("div",{ref:N})};function W(le){const N=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],S=new RegExp(`\\b(${N.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),q=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return le.replace(S,"").replace(q,"").trim()}var X={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},G=Object.defineProperty,L=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(le,N,S)=>N in le?G(le,N,{enumerable:!0,configurable:!0,writable:!0,value:S}):le[N]=S,ce=(le,N)=>{for(var S in N||(N={}))Q.call(N,S)&&A(le,S,N[S]);if(L)for(var S of L(N))P.call(N,S)&&A(le,S,N[S]);return le};const Ee="@\u2581\u2581@",pe="@\u2581@",ze=/<pre[^>]*>/g;function Je(le){let N=document.createElement("div");return N.innerHTML=le,N.childNodes.length===0?"":N.childNodes[0].nodeValue}const Pe=(le,N)=>{le=le||"";const S=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,q=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,te=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,se=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return N?le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(S,(w,I,de,De,dt,It,Te)=>{const rt=I||De||It,ht=de||dt||Te||"?";return g.Z.API_SERVER+"/api/attachments/"+rt+ht+"&t="+(0,H.Jn)(rt,Date.now())+(w.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(le=le.replace(se,(w,I,de,De,dt,It,Te)=>{const rt=I||De||It,ht=de||dt||Te||"?";return g.Z.API_SERVER+"/attachments/download/"+rt+ht+"&t="+(0,H.Jn)(rt,Date.now())+(w.indexOf(")")>-1?")":"&")}).replace(S,(w,I,de,De,dt,It,Te)=>{const rt=I||De||It,ht=de||dt||Te||"?";return g.Z.API_SERVER+"/api/attachments/"+rt+ht+"&t="+(0,H.Jn)(rt,Date.now())+(w.indexOf(")")>-1?")":"&")}).replace(q,(w,I,de,De,dt)=>{const It=I||De,Te=de||dt||"";return'"'+g.Z.API_SERVER+"/api/attachments/"+It+Te+It+Te+"&t="+(0,H.Jn)(It,Date.now())}).replace(te,(w,I,de,De,dt)=>{const It=I||De,Te=de||dt||"";return"("+g.Z.API_SERVER+"/files/uploads/"+It+Te+It+Te+"&t="+(0,H.Jn)(It,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,`
`),le)};var Ze=({value:le="",edit:N=!1,className:S,showTextOnly:q,showLines:te,style:se={},stylesPrev:w={},highlightKeywords:I,showProgramFill:de,isProgramFill:De,disabledFill:dt=!1,programFillValue:It,openEditor:Te=()=>{},onFillChange:rt=Me=>{},onFillBlur:ht=()=>{},onFillFocus:St=()=>{}})=>{let Me=W(String(le||""));const Xt=(0,i.useRef)(),tt=(0,i.useRef)(),[un,vt]=(0,i.useState)(""),[bt,Ve]=(0,i.useState)("office"),[Le,oe]=(0,i.useState)([]),nt=(0,i.useRef)("a"+(0,M.Z)()),Ue={},K=pt=>/<style[\s\S]*?>/i.test(pt||""),D=(pt,Vt,Zt)=>{const Re=document.createElement(pt===pe?"input":"textarea");Re.style.width="100%",Re.style.height=pt===pe?"40px":"151px",Re.rows=5,Re.spellcheck=!1,Re.name="edu-program-fill",Re.placeholder="\u8BF7\u8F93\u5165",Re.dataset.id=Vt;const gt=Object.keys(Ue).length;return Ue[gt]=Re,`<span class="edu-program-fill-wrap ${pt===pe?"":"show"}" style="width:${pt===pe?"600px":"100%"}" title=${Zt||""}><span>${Re.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Se(pt){return pt=pt.replace(/!\[.*?\]\(.*?\)/g,""),pt=pt.replace(/\[.*?\]\(.*?\)/g,""),pt=pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),pt=pt.replace(/<embed.*?>/g,""),pt=pt.replace(/<img.*?>/g,""),pt=pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),pt=pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),pt=pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),pt=pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),pt}const Ae=pt=>!q&&K(Me)?pt:pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Vt,Zt){let Re=Zt.replace(/(\n|\r)/g,"").split("}"),gt=[];return Re.map(E=>{E!=""&&gt.push(`.${nt.current} ${E}`)}),`<style>${gt.join("}")}</style>`}),Ce=(0,i.useMemo)(()=>{(0,O.Iy)();try{const Re=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,gt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,E=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,R=/\(\/attachments\/download\//g;Me=Me.replace(R,"("+g.Z.API_SERVER+"/attachments/download/").replace(Re,"("+g.Z.API_SERVER+"/api/attachments/").replace(gt,'"'+g.Z.API_SERVER+"/api/attachments/").replace(E,'"'+g.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,`
`),Xt.current.style.display="none"}catch(Re){}if(de){let Re=-1;return Me=Me.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(gt,E,R){var at;return++Re,D(gt,Re,(at=It==null?void 0:It[Re])==null?void 0:at.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ae(Me||"")}</pre>`}let pt=Ae(Me);pt=(0,O.ZP)(pt);const Vt=(0,O.ez)();Me.match(/\[TOC\]/)&&(pt=pt.replace("<p>[TOC]</p>",(0,O.Qv)()),(0,O.Iy)()),pt=pt.replace(/(__special_katext_id_\d+__)/g,(Re,gt)=>{const{type:E,expression:R}=Vt[gt];return(0,V.renderToString)(Je(R)||"",{displayMode:E==="block",throwOnError:!1,output:"html"})}),pt=pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,O.AL)();const Zt=document.createElement("div");if(Zt.innerHTML=pt,q)return Zt.innerText;if(I){const Re=I.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return he(Zt,Re),Zt.innerHTML}return setTimeout(()=>Ct(),500),Zt.innerHTML},[Me,I]);(0,i.useEffect)(()=>{me.current&&me.current.querySelectorAll(["input","textarea"]).forEach(Vt=>{Vt.oninput=ke,Vt.onblur=Xe,Vt.onfocus=yt})},[Le]),(0,i.useEffect)(()=>{var pt,Vt,Zt,Re,gt;if(It!=null&&It.length)try{const E=me.current.querySelectorAll(".edu-program-fill-score"),R=me.current.querySelectorAll('[name="edu-program-fill"]');for(const[at,ae]of R.entries())ae.value=((pt=It==null?void 0:It[at])==null?void 0:pt.value)||"",((Vt=It==null?void 0:It[at])==null?void 0:Vt.type)==="warning"?ae.className="program-fill-warning":((Zt=It==null?void 0:It[at])==null?void 0:Zt.type)==="success"?ae.className="program-fill-success":ae.className="";for(const[at,ae]of E.entries())ae.innerHTML=(Re=It==null?void 0:It[at])!=null&&Re.score?`${(gt=It==null?void 0:It[at])==null?void 0:gt.score}\u5206`:"";oe(It)}catch(E){console.log(E,"error")}},[It]);const ke=pt=>{Le[pt.target.dataset.id]=Le[pt.target.dataset.id]||{},Le[pt.target.dataset.id].value=pt.target.value,oe([...Le]),rt(Le,pt.target.dataset.id)},Xe=pt=>{Le[pt.target.dataset.id]=Le[pt.target.dataset.id]||{},Le[pt.target.dataset.id].value=pt.target.value,oe([...Le]),ht(Le,pt.target.dataset.id)},yt=pt=>{Le[pt.target.dataset.id]=Le[pt.target.dataset.id]||{},Le[pt.target.dataset.id].value=pt.target.value,oe([...Le]),St(Le,pt.target.dataset.id)};function he(pt,Vt){return pt.childNodes.forEach(Zt=>{var Re;if(Zt.childNodes.length>0)he(Zt,Vt);else if(Zt.nodeName!=="IMG")if(Zt.innerHTML)Zt.innerHTML=(Re=Zt.innerHTML)==null?void 0:Re.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const gt=document.createElement("span");gt.innerHTML=Zt.textContent.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Zt.replaceWith(gt)}})}const me=(0,i.useRef)();O.jb.WebkitLineClamp=te,te&&(se=ce(ce({},se),O.jb));function Lt(pt){let Vt=pt.target;if(Vt.tagName.toUpperCase()==="A"){let Zt=Vt.getAttribute("href");if(Zt.indexOf("office")>-1)pt.preventDefault(),vt(Zt),Ve("office");else if(Zt.indexOf("application/pdf")>-1)pt.preventDefault(),vt(Zt),Ve("pdf");else if(Zt.indexOf("text/html")>-1)pt.preventDefault(),vt(Zt),Ve("html");else if(Zt.startsWith("#")){pt.preventDefault();let Re=document.getElementById(Zt.replace("#",""));Re&&Re.scrollIntoView(!0)}}}const Ct=()=>{var pt;const Vt=(pt=me.current)==null?void 0:pt.querySelectorAll("video");Vt==null||Vt.forEach(Zt=>{if(Zt.oncontextmenu=()=>!1,Zt.src.indexOf(".m3u8")>-1&&!Zt.canPlayType("application/vnd.apple.mpegurl")){if(Z.ZP.isSupported()){var Re=new Z.ZP;Re.loadSource(Zt.src),Re.attachMedia(Zt)}}})};(0,i.useEffect)(()=>{if(me.current&&Ce&&Ce.match(ze)&&window.PR.prettyPrint(),me.current)return me.current.addEventListener("click",Lt),()=>{var pt;(pt=me.current)==null||pt.removeEventListener("click",Lt),(0,O.AL)(),(0,O.Iy)()}},[Ce,me.current,Lt]);const Nt=pt=>{pt.target.nodeName==="IMG"&&pt.target.className.indexOf("draw-flowchart")>-1?(Xt.current.style.zIndex=1,Xt.current.style.display="flex",Xt.current.style.width=pt.target.clientWidth+"px",Xt.current.style.height=pt.target.clientHeight+"px",Xt.current.style.top=pt.target.offsetTop+"px",Xt.current.style.left=pt.target.offsetLeft+"px",pt.target.id&&(tt.current=pt.target.id)):Xt.current.style.display="none"},kt=()=>{Xt.current.style.display="none"};return(0,i.useEffect)(()=>{var pt;const Vt=Zt=>{Zt.preventDefault(),Zt.clipboardData.setData("text",window.getSelection().toString())};return(pt=me.current)==null||pt.addEventListener("copy",Vt),()=>{var Zt;(Zt=me.current)==null||Zt.removeEventListener("copy",Vt)}},[me.current]),i.createElement("div",{style:{position:"relative"},onMouseLeave:kt},q&&i.createElement("div",{ref:me,className:`${X.mdBody} `},Ce),!q&&!K(Ce)&&i.createElement("div",{ref:me,style:ce({},se),onMouseOver:Nt,className:`${S||""} ${dt?"disabled-fill":""} markdown-body ${X.mdBody} ${nt.current}`,dangerouslySetInnerHTML:{__html:Ce}}),!q&&K(Ce)&&i.createElement($,{html:Ce}),i.createElement("div",{ref:Xt,className:`${X.button} ${N?"":X.previewFlowChart}`},i.createElement(l.Z,null,i.createElement(y.ZP,{onClick:()=>{N?Te(tt.current):(vt(tt.current),Ve("flowChart"))}},N?"\u7F16\u8F91":"\u9884\u89C8"))),i.createElement(b.Z,{close:!0,data:un,type:un!=null&&un.length?bt:"",style:ce({},w),onClose:()=>vt("")}))}},94871:function(zn,Pt,u){"use strict";u.d(Pt,{SV:function(){return Xt},ZP:function(){return Me}});var i=u(59301),U=u(76374);const O={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"]},fe={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"]},Z={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(`
`)}]},g={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(`
`)}]},H={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 V=u(53184),l=u.n(V),y=(tt,un,vt)=>new Promise((bt,Ve)=>{var Le=Ue=>{try{nt(vt.next(Ue))}catch(K){Ve(K)}},oe=Ue=>{try{nt(vt.throw(Ue))}catch(K){Ve(K)}},nt=Ue=>Ue.done?bt(Ue.value):Promise.resolve(Ue.value).then(Le,oe);nt((vt=vt.apply(tt,un)).next())});const M={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"]}},b=(tt,un,vt,bt)=>{const Ve=un.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:vt.lineNumber,endColumn:vt.column});return Array.from(new Set(Ve.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:tt.languages.CompletionItemKind.Text,insertText:oe,range:bt}))},C=(tt,un,vt,bt)=>{tt.languages.registerCompletionItemProvider(un,{provideCompletionItems(Ve,Le){const oe=Ve.getWordUntilPosition(Le),nt={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},Ue=Ve.getLineContent(Le.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...b(tt,Ve,Le,nt),...vt.map(D=>({label:D,kind:tt.languages.CompletionItemKind.Keyword,documentation:D,insertText:D,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:nt})),...bt.map(D=>({label:D.label,kind:tt.languages.CompletionItemKind.Snippet,documentation:D.content,insertText:Ue.startsWith("#")?D.content.replace(/#/,""):D.content,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:nt}))]}}})};var T=tt=>{M.languages.forEach(un=>{tt.languages.registerDocumentFormattingEditProvider(un,{provideDocumentFormattingEdits(vt){return y(this,null,function*(){const bt=l()(vt.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:vt.getFullModelRange(),text:bt}]})}})}),C(tt,"java",fe.keywords,fe.quickKey),C(tt,"cpp",Z.keywords,Z.quickKey),C(tt,"c",O.keywords,[]),C(tt,"python",g.keywords,g.quickKey),C(tt,"scala",H.keywords,H.quickKey)};const $="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var W=Object.defineProperty,X=(tt,un,vt)=>un in tt?W(tt,un,{enumerable:!0,configurable:!0,writable:!0,value:vt}):tt[un]=vt,G=(tt,un,vt)=>X(tt,typeof un!="symbol"?un+"":un,vt);const L=class uc{constructor(un,vt,bt){this.placeholder=un,this.editor=vt,this.monaco=bt,vt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return uc.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)}};G(L,"ID","editor.widget.placeholderHint");var P=L,A=u(96236),ce=u(6767),Ee=u(25399),pe=u(89392),ze=u(99936),Je=u(56102),Pe=Object.defineProperty,Ze=Object.defineProperties,le=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,te=(tt,un,vt)=>un in tt?Pe(tt,un,{enumerable:!0,configurable:!0,writable:!0,value:vt}):tt[un]=vt,se=(tt,un)=>{for(var vt in un||(un={}))S.call(un,vt)&&te(tt,vt,un[vt]);if(N)for(var vt of N(un))q.call(un,vt)&&te(tt,vt,un[vt]);return tt},w=(tt,un)=>Ze(tt,le(un)),I=(tt,un)=>{var vt={};for(var bt in tt)S.call(tt,bt)&&un.indexOf(bt)<0&&(vt[bt]=tt[bt]);if(tt!=null&&N)for(var bt of N(tt))un.indexOf(bt)<0&&q.call(tt,bt)&&(vt[bt]=tt[bt]);return vt},de=(tt,un,vt)=>new Promise((bt,Ve)=>{var Le=Ue=>{try{nt(vt.next(Ue))}catch(K){Ve(K)}},oe=Ue=>{try{nt(vt.throw(Ue))}catch(K){Ve(K)}},nt=Ue=>Ue.done?bt(Ue.value):Promise.resolve(Ue.value).then(Le,oe);nt((vt=vt.apply(tt,un)).next())});function De(tt){return/^\d+$/.test(tt)?`${tt}px`:tt}function dt(){}let It=!1;const Te={"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 rt(tt=[]){let un=tt;if(Array.isArray(tt)){for(let vt=0;vt<tt.length;vt++){let bt=Te[tt[vt]];if(bt)return bt}return un[0]}return Te[un]||un}let ht=null;const St=()=>de(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(tt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",tt)}});var Me=tt=>{var un=tt,{width:vt="100%",height:bt="100%",value:Ve,language:Le="javascript",style:oe={},options:nt={},overrideServices:Ue={},theme:K="vs-dark",onEditBlur:D,isCopy:Se=!1,onSave:Ae,autoHeight:Ce=!1,forbidCopy:ke=!1,forbidCopyTips:Xe,onChange:yt=dt,editorDidMount:he=dt,onFocus:me=dt,onBreakPoint:Lt=dt,breakPointValue:Ct=[],filename:Nt="educoder.txt",errorLine:kt,errorContent:pt="",highlightLine:Vt,openBreakPoint:Zt=!1,placeholder:Re="",showMiniMap:gt=!0}=un,E=I(un,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const R=(0,i.useRef)(),at=(0,i.useRef)({}),ae=(0,i.useRef)(),Y=(0,i.useRef)(),Ft=(0,i.useRef)([]),Ke=(0,i.useRef)(!1),st=(0,i.useRef)(),_t=(0,i.useRef)(),xe=(0,i.useRef)(!1),[_e,et]=(0,i.useState)(!1);function Qe(){let zt;return R.current&&(zt=new U.Z(re=>{for(let ve of re)(ve.target.offsetHeight>0||ve.target.offsetWidth>0)&&at.current.instance.layout()}),zt.observe(R.current)),zt}function z(){ce.ZP.warning({content:decodeURIComponent(Xe||$),key:"monaco-editor-tip"})}const Rt=()=>{let zt=at.current.instance;if(Ve!=null&&zt&&_e){const re=zt.getModel();re&&Ve!==re.getValue()&&(It=!0,re.setValue(Ve),zt.layout(),It=!1)}};(0,i.useEffect)(()=>{const zt=ze.Z.subscribe("formatDocument",re=>{var ve;let wt=at.current.instance;(ve=wt==null?void 0:wt.getAction)==null||ve.call(wt,"editor.action.formatDocument").run()});return window.updateMonacoValue=re=>{yt(re)},zt},[]),(0,i.useEffect)(()=>{var zt;let re=at.current.instance;Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{Rt()},500),Ve&&(Ve!=null&&Ve.length)&&((zt=re==null?void 0:re.updateOptions)==null||zt.call(re,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ve.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ve,_e,at.current]),(0,i.useEffect)(()=>{if(kt&&at.current&&at.current.instance){let re=at.current.instance;re.changeViewZones(function(ve){var wt=document.createElement("div");wt.style.padding="10px 20px",wt.style.width="calc(100% - 20px)",wt.className="my-error-line-wrp",wt.innerHTML=pt,ve.addZone({afterLineNumber:kt||11,heightInLines:3,domNode:wt})});var zt={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}};re.addOverlayWidget(zt),re.revealPositionInCenter({lineNumber:20,column:1})}},[kt,at.current,_e]);const ge=(zt="",re)=>{if(!zt||zt.trim()==="")return!0;const wt=at.current.instance.getModel().getLineTokens(re);let Ne=!1;for(let Be=0;Be<2;Be++)wt.getStandardTokenType(Be)===1&&(Ne=!0);return Ne};(0,i.useEffect)(()=>{var zt;const re=(zt=at.current)==null?void 0:zt.instance;if(re&&_e&&ke){const ve=re.onDidBlurEditorWidget(()=>{xe.current=!1}),wt=re.onDidFocusEditorText(()=>{xe.current=!0});return()=>{ve.dispose(),wt.dispose()}}},[at.current,_e,ke]),(0,i.useEffect)(()=>{var zt;if((zt=at.current)!=null&&zt.instance&&_e&&Zt){let re=at.current.instance,ve=re.getModel();if(!ve)return;(()=>{var ct;let Dt=[],qt=[];const Jt=ve.getAllDecorations();for(let ft of Jt)ft.options.className==="highlighted-line"&&(Dt.push((ct=ft==null?void 0:ft.range)==null?void 0:ct.startLineNumber),qt.push(ft==null?void 0:ft.id));if(Vt===Dt[0])return;ve.deltaDecorations(qt,[]);const Ge=ve.getLineCount();Vt&&Vt<=Ge&&(re.deltaDecorations([],[{range:new ht.Range(Vt,1,Vt,ve.getLineMaxColumn(Vt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),re.revealLineInCenter(Vt))})();const Ne=(ct=!1)=>{var Dt;let qt=[],Jt=[];const Ge=ve.getAllDecorations();for(let ft of Ge)ft.options.linesDecorationsClassName==="breakpoints-select"&&(qt.push((Dt=ft==null?void 0:ft.range)==null?void 0:Dt.startLineNumber),Jt.push(ft==null?void 0:ft.id));if(ct)return{lines:qt,ids:Jt};Lt(qt)},Be=ct=>de(void 0,null,function*(){let Dt={range:new ht.Range(ct,1,ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ve.deltaDecorations([],[Dt]),Ne()}),ue=ct=>de(void 0,null,function*(){let Dt=[];const qt=re.getLineDecorations(ct);for(let Jt of qt)Jt.options.linesDecorationsClassName==="breakpoints-select"&&Dt.push(Jt.id);yield ve.deltaDecorations(Dt,[]),Ne()}),Ie=ct=>{let Dt=re.getLineDecorations(ct);for(let qt of Dt)if(qt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,pe.isEqual)(Ct,Ne(!0).lines)){ve.deltaDecorations(Ne(!0).ids,[]);const ct=Ct.map(Dt=>({range:new ht.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ve.deltaDecorations([],ct)}const Fe=re.onDidChangeModelContent(ct=>{let Dt=re.getPosition();if(Dt){let qt=Dt.lineNumber;clearTimeout(_t.current),_t.current=setTimeout(()=>{ge(ve.getLineContent(qt),qt)?ue(qt):Ie(qt)?(ue(qt),Be(qt)):Ne()},100)}}),$e=re.onMouseDown(ct=>{var Dt,qt,Jt;if(ct.target.detail&&((Jt=(qt=(Dt=ct.target)==null?void 0:Dt.element)==null?void 0:qt.className)!=null&&Jt.includes("line-numbers"))){let Ge=ct.target.position.lineNumber;if(ge(ve.getLineContent(Ge),Ge))return;Ie(Ge)?ue(Ge):Be(Ge)}}),ut=ct=>{let Dt={range:new ht.Range(ct,1,ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ft.current=re.deltaDecorations(Ft.current,[Dt])},Gt=()=>{Ft.current=re.deltaDecorations(Ft.current,[])},sn=re.onMouseMove(ct=>{var Dt,qt,Jt;if(Gt(),ct.target.detail&&((Jt=(qt=(Dt=ct.target)==null?void 0:Dt.element)==null?void 0:qt.className)!=null&&Jt.includes("line-numbers"))){let Ge=ct.target.position.lineNumber;if(ge(ve.getLineContent(Ge),Ge))return;ut(Ge)}}),je=re.onMouseLeave(()=>{Gt()});return()=>{Fe.dispose(),$e.dispose(),sn.dispose(),je.dispose()}}},[at.current,_e,Ct,Vt,Zt,Le]),(0,i.useEffect)(()=>{var zt;(zt=at.current)!=null&&zt.instance&&Zt&&at.current.instance.setPosition({lineNumber:0,column:0})},[Vt]);function Ht(){let zt=at.current.instance;if(zt){const re=zt.getSelection(),ve=at.current.pastePos||{},wt=new ht.Range(ve.startLineNumber||re.endLineNumber,ve.startColumn||re.endColumn,ve.endLineNumber||re.endLineNumber,ve.endColumn||re.endColumn);setTimeout(()=>{zt.executeEdits("",[{range:wt,text:""}])},300)}}function cn(zt){(window.navigator.platform.match("Mac")?zt.metaKey:zt.ctrlKey)&&zt.keyCode==83&&(zt.preventDefault(),Ae())}const mt=()=>{if(Ce&&at.current.instance){const zt=at.current.instance.getContentHeight();$t(zt<bt?bt:zt)}else $t(bt)};function ne(zt){var re=document.createEvent("MouseEvents");re.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),zt.dispatchEvent(re)}const we=zt=>{if(!xe.current)return;const{keyCode:re,ctrlKey:ve,metaKey:wt,target:Ne,type:Be}=zt;return(Be==="paste"||(re===67||re===86)&&(wt||ve))&&Ne.nodeName==="TEXTAREA"&&(z(),zt.preventDefault()),!1};function B(zt,re){var ve=window.URL||window.webkitURL||window,wt=new Blob([re]),Ne=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ne.href=ve.createObjectURL(wt),Ne.download=zt,ne(Ne)}(0,i.useEffect)(()=>{mt()},[mt]),(0,i.useEffect)(()=>{R.current&&!_e&&Promise.all([u.e(8909),u.e(1859)]).then(u.bind(u,71448)).then(zt=>{try{ht=zt,at.current.instance=ht.editor.create(R.current,{value:Ve,language:rt(Le),theme:K,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:gt||!1}},Ue);const re=at.current.instance;let Ne=[...A.BH._menuItems].find(Fe=>Fe[0]._debugName=="EditorContext")[1],Be=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ue=(Fe,$e)=>{var ut,Gt;let sn=Fe._first;do $e.includes((Gt=(ut=sn.element)==null?void 0:ut.command)==null?void 0:Gt.id)&&Fe._remove(sn);while(sn=sn.next)};if(he(re,ht),setTimeout(()=>{mt(),at.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{B(Nt||"educoder.txt",re.getValue())}})},500),at.current.subscription=re.onDidChangeModelContent(Fe=>{Ke.current?clearTimeout(st.current):(mt(),yt(re.getValue(),Fe)),st.current=setTimeout(()=>{Ke.current=!1},500)}),window.Monaco||T(ht,rt(Le)),ke&&(ue(Ne,Be),R.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",we),window.removeEventListener("paste",we),window.addEventListener("keydown",we),window.addEventListener("paste",we)),window.Monaco=ht,D&&re.onDidBlurEditorWidget(()=>{D(re.getValue())}),me&&re.onDidFocusEditorText(()=>{ke&&St(),me(re.getValue())}),ke){St();try{re.onDidPaste(Fe=>{const $e=re.getSelection(),ut=at.current.pastePos||{},Gt=new ht.Range(ut.startLineNumber||$e.endLineNumber,ut.startColumn||$e.endColumn,ut.endLineNumber||$e.endLineNumber,ut.endColumn||$e.endColumn);re.executeEdits("",[{range:Fe.range,text:""}])})}catch(Fe){}}let Ie=Qe();return Re&&typeof Re=="string"&&new P(Re,re,ht),et(!0),()=>{const Fe=at.current.instance;Fe.dispose();const $e=Fe.getModel();$e&&$e.dispose(),at.current.subscription&&at.current.subscription.dispose(),Ie.unobserve(R.current)}}catch(re){}})},[]),(0,i.useEffect)(()=>{if(at.current.instance&&_e)return document.addEventListener("keydown",cn,!1),()=>{document.removeEventListener("keydown",cn)}},[Ae,_e]),(0,i.useEffect)(()=>{let zt=at.current.instance;if(zt&&_e){let re=rt(Le);ht.editor.setModelLanguage(zt.getModel(),re)}},[Le,_e]),(0,i.useEffect)(()=>{at.current.instance&&_e&&ht.editor.setTheme(K)},[K,_e]),(0,i.useEffect)(()=>{let zt=at.current.instance;ae.current=nt,zt&&_e&&(zt.updateOptions(se({},nt)),setTimeout(()=>{zt.getModel().updateOptions(se({},nt))},200))},[JSON.stringify(nt),_e]),(0,i.useEffect)(()=>{let zt=at.current.instance;zt&&_e&&zt.layout()},[vt,bt,_e]);const[xt,lt]=(0,i.useState)(De(vt)),[ot,$t]=(0,i.useState)(De(bt)),Bt=w(se({},oe),{width:xt,height:ot,position:"relative"});return i.createElement("div",{className:"my-monaco-editor",ref:R,style:Bt,onFocus:()=>{ke&&St()}},Se&&i.createElement(Je.CopyToClipboard,{text:Ve,onCopy:()=>ce.ZP.success("\u590D\u5236\u6210\u529F")},i.createElement(Ee.Z,{title:"\u590D\u5236\u4EE3\u7801"},i.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},i.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Xt({width:tt="100%",height:un="100%",original:vt,modified:bt,language:Ve,options:Le={}}){const oe=(0,i.useRef)(),[nt,Ue]=(0,i.useState)(null);function K(Ce){let ke;return oe.current&&(ke=new U.Z(Xe=>{for(let yt of Xe)(yt.target.offsetHeight>0||yt.target.offsetWidth>0)&&Ce.layout()}),ke.observe(oe.current)),ke}(0,i.useEffect)(()=>(oe.current&&Promise.all([u.e(8909),u.e(9404)]).then(u.bind(u,2550)).then(Ce=>{ht=Ce;const ke=ht.editor.createDiffEditor(oe.current,w(se({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},Le),{wordWrap:!0}));Ue(ke);let Xe=K(ke);return()=>{ke.dispose();const yt=ke.getModel();yt&&yt.dispose(),Xe.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,i.useEffect)(()=>{nt&&nt.setModel({original:ht.editor.createModel(vt,Ve),modified:ht.editor.createModel(bt,Ve)})},[vt,bt,Ve,nt]);const D=De(tt),Se=De(un),Ae={width:D,height:Se};return i.createElement("div",{className:"my-diff-editor",ref:oe,style:Ae})}},64194:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return M}});var i={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},U=u(29787),O=u(25399),fe=u(89787),Z=u(92310),g=u.n(Z),H=u(68911),V=u(71347),l=u(59301),M=({className:b,dataSource:C=[],col:T=4,right:$,bottom:W=23,precision:X=0,wrapWidth:G=1200,trackEventItems:L,loading:Q,onRemove:P=()=>{},isCurrent:A=!0,showProgress:ce=!1,showAlias:Ee=!1,category:pe,hiddenClick:ze})=>{const Je=Math.floor((G-(T-1)*$)/T),Pe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return l.createElement(U.Z,{spinning:Q},l.createElement("div",{className:g()(i.list,b)},!!(C!=null&&C.length)&&(C==null?void 0:C.map((Ze,le)=>{var N,S,q,te,se,w,I,de,De,dt,It,Te,rt;const{name:ht,id:St,identifier:Me,featured:Xt,school_name:tt,image_url:un,excellent:vt,is_plan:bt}=Ze;return l.createElement("div",{key:St,className:A&&ce?i.wrapisCurrent:i.wrap,style:{width:Je,marginRight:(1+le)%T===0?0:$+X,marginBottom:W}},l.createElement("a",{className:i.li,onClick:Ve=>{Ve.preventDefault(),Ve.stopPropagation(),L&&(0,H.L9)([L]),(0,H.xg)(`/paths/${Me}`)}},l.createElement("div",{className:i.img},l.createElement("img",{className:i.cover,src:`${un}`}),(N=Ze==null?void 0:Ze.subject_tags)==null?void 0:N.map((Ve,Le)=>{var oe,nt;if(Le===0){const K=(oe=Pe.find(D=>D.name==Ve))==null?void 0:oe.swclass;return l.createElement("span",{className:`sprite ${K} ${i.sign}`,style:{left:"-4px"}})}const Ue=(nt=Pe.find(K=>K.name==Ve))==null?void 0:nt.ptclass;return l.createElement("span",{className:`sprite ${Ue} ${i.sign}`,style:{left:`${48+52*(Le-1)+2*Le}px`}})}),l.createElement("div",{className:i.tagsDom},l.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ze==null?void 0:Ze.excellent)&&l.createElement("div",{className:i.bq},"\u5F00\u653E\u8BFE\u7A0B"),((S=Ze==null?void 0:Ze.custom_tags)==null?void 0:S.length)>0&&l.createElement(O.Z,{title:(se=(te=Ze==null?void 0:Ze.custom_tags)==null?void 0:te[((q=Ze==null?void 0:Ze.custom_tags)==null?void 0:q.length)-1])==null?void 0:se.tag_name},l.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},l.createElement("span",{className:"multi-llipsis1e text-10px"},(de=(I=Ze==null?void 0:Ze.custom_tags)==null?void 0:I[((w=Ze==null?void 0:Ze.custom_tags)==null?void 0:w.length)-1])==null?void 0:de.tag_name))))),pe=="hide"&&(Ze==null?void 0:Ze.studying)&&A&&l.createElement("div",{className:`${i.movebq} user-path-items`,onClick:Ve=>{Ve.stopPropagation(),P(Ze)}},l.createElement("i",{className:"iconfont icon-yichu1 font12"}),l.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(pe)&&A&&l.createElement("div",{className:`${i.hiddenbq} user-path-items`,onClick:Ve=>{Ve.stopPropagation(),ze(Ze)}},l.createElement("i",{className:`iconfont ${pe=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),l.createElement("span",null,pe=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),l.createElement("div",{className:i.name},l.createElement(O.Z,{title:Ee&&(Ze!=null&&Ze.excellent_alias_name)?l.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ht}`,l.createElement("br",null),l.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ze==null?void 0:Ze.excellent_alias_name}`)):ht},l.createElement("span",{className:i.e},Ee&&(Ze==null?void 0:Ze.excellent_alias_name)||ht))),A&&ce&&((De=Ze==null?void 0:Ze.progress)==null?void 0:De.all_score)!=0&&l.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},l.createElement(fe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((dt=Ze==null?void 0:Ze.progress)==null?void 0:dt.my_score)/((It=Ze==null?void 0:Ze.progress)==null?void 0:It.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Te=Ze==null?void 0:Ze.progress)==null?void 0:Te.my_score,"/",(rt=Ze==null?void 0:Ze.progress)==null?void 0:rt.all_score),(!A||!ce)&&l.createElement(O.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${tt}`},l.createElement("div",{className:i.unit},l.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),tt)),(!A||!ce)&&l.createElement("div",{className:i.tags},l.createElement("div",null,l.createElement(O.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),l.createElement("span",null,Ze.stages_count))),l.createElement(O.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),l.createElement("span",null,Ze.members_count)))))))})),!C.length&&l.createElement(V.Z,null)))}},29596:function(zn,Pt,u){"use strict";u.d(Pt,{jL:function(){return fe},w9:function(){return de},QD:function(){return Ct},cQ:function(){return le.Z},op:function(){return ke},O5:function(){return Qe},_b:function(){return Re},t7:function(){return X},Gi:function(){return ht},YG:function(){return Te},qp:function(){return y},vr:function(){return pt},qE:function(){return he},Je:function(){return Q},wb:function(){return Ze},cq:function(){return vt},tp:function(){return C}});var i=u(59301),U={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},fe=({dataSource:z=[],img:Rt,imgWidth:ge=346,title:Ht,sunTitle:cn,bannerExtraContent:mt})=>i.createElement("div",{className:U.banner},i.createElement("div",{className:U.content},i.createElement("aside",null,i.createElement("p",null,i.createElement("b",null,Ht),i.createElement("span",null,cn)),z.length>0&&i.createElement("div",{className:U.btns},z.map((ne,we)=>i.createElement("div",{key:we,onClick:ne.click},ne.name,ne.sign?i.createElement("span",{className:"sprite sprite-33"}):null))),mt),Rt&&i.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:ge}))),Z={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},g=u(92310),H=u.n(g),V=u(89392),y=({dataSource:z=[],value:Rt,onChange:ge,onTitleChange:Ht,className:cn,title:mt,titleWidth:ne=41,style:we={},fontColor:B="#6A7283",showCount:xt})=>{const[lt,ot]=(0,i.useState)(1),[$t,Bt]=(0,i.useState)(!1),zt=(0,i.useRef)(null),re=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var ve;z.length!==0&&(((ve=zt==null?void 0:zt.current)==null?void 0:ve.clientHeight)>97?ot(1):ot(0)),z.length===0&&ot(0),Bt(!1)},[z]),i.createElement("div",{className:H()(Z.row,cn,"fadeIn","animated"),style:we},i.createElement("div",{onClick:(0,V.throttle)(()=>Ht==null?void 0:Ht(),2e3),style:{width:ne,marginTop:$t?12:4},className:`${Z.title} ${Ht?"current":""}`},mt),i.createElement("div",{className:$t?`${Z.tagsWrap} ${Z.tagsBorderWrap}`:Z.tagsWrap},i.createElement("div",{className:Z.bar,ref:re,style:lt>0?{height:lt===1?97:"auto",overflow:lt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},i.createElement("div",{className:Z.tag,ref:zt},z==null?void 0:z.map(ve=>i.createElement("span",{onClick:()=>ge(ve.id),key:ve.id,style:{color:B},className:Rt===ve.id?Z.active:""},i.createElement("span",{title:ve.name,className:Z.name},ve.name),!!xt&&i.createElement("span",{className:Z.num},ve.count))))),!!lt&&i.createElement(i.Fragment,null,lt===1?i.createElement("div",{onClick:()=>{var ve;ot(2),((ve=zt==null?void 0:zt.current)==null?void 0:ve.clientHeight)>245?Bt(!0):Bt(!1)},className:Z.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>{re.current.scrollTop=0,ot(1),Bt(!1)},className:Z.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},M={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},C=({dataSource:z=[],value:Rt,onChange:ge,className:Ht,style:cn={}})=>i.createElement("div",{style:cn,className:H()(M.tabs,Ht)},z.map(mt=>i.createElement("span",{onClick:()=>ge(mt.id),className:Rt===mt.id?M.active:"",key:mt.id},mt.name))),T={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},$=u(37568),X=({dataSource:z=[],value:Rt="",onChange:ge,onInputChange:Ht=()=>{},className:cn,style:mt={},placeholder:ne,allowClear:we=!1})=>{var B;const[xt,lt]=(0,i.useState)(""),[ot,$t]=(0,i.useState)("");(0,i.useEffect)(()=>{var re;let ve=Rt;(re=JSON.stringify(Rt))!=null&&re.includes("{")&&(lt(Rt.id),ve=Rt.value||"");try{$t(decodeURIComponent(ve||""))}catch(wt){$t(decodeURIComponent(ve||""))}},[Rt]);const Bt=()=>{ge(encodeURIComponent(ot),xt||null)},zt=re=>{re!==xt&&(lt(re),ge(encodeURIComponent(ot),re))};return i.createElement("div",{className:H()(T.input,cn),style:mt},!!z.length&&i.createElement("div",{className:T.dropdown},i.createElement("div",{className:T.text},(B=z.find(re=>re.id===xt))==null?void 0:B.name,i.createElement("i",{className:"iconfont icon-zhankai4"}),i.createElement("b",{className:T.b1}),i.createElement("b",{className:T.b2})),i.createElement("div",{className:T.menu},z.map((re,ve)=>i.createElement("div",{key:ve,onClick:()=>zt(re.id)},re.name)))),i.createElement($.default,{onPressEnter:Bt,value:ot,onChange:re=>{$t(re.target.value),Ht(encodeURIComponent(re.target.value),xt||null)},placeholder:ne,variant:"borderless",allowClear:we,onClear:()=>ge("",xt||null)}),i.createElement("i",{onClick:Bt,className:"iconfont icon-sousuo9 font14 current"}))},G={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Q=({value:z,onChange:Rt,className:ge,total:Ht,pageSize:cn,style:mt={}})=>{const ne=z<2,we=z>=Math.ceil(Ht/cn);return Ht<=cn?i.createElement(i.Fragment,null):i.createElement("div",{className:H()(G.quickPager,ge),style:mt},i.createElement("div",{onClick:()=>{ne||Rt(z-1,"prev")},className:ne?G.disabled:""},"\u4E0A\u4E00\u9875"),i.createElement("div",{onClick:()=>{we||Rt(z+1,"next")},className:we?G.disabled:""},"\u4E0B\u4E00\u9875"))},P={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},A=u(29787),ce=u(25399),Ee=u(63139),pe=u(35783),ze=u(68911),Je=u(71347),Ze=({className:z,dataSource:Rt=[],col:ge=4,right:Ht,bottom:cn=23,precision:mt=0,wrapWidth:ne=1200,trackEventItems:we,loading:B})=>{const xt=Math.floor((ne-(ge-1)*Ht)/ge);return i.createElement(A.Z,{spinning:B},i.createElement("div",{className:H()(P.list,z)},!!Rt.length&&Rt.map((lt,ot)=>{const{name:$t,id:Bt,identifier:zt,power:re,cover_image_id:ve,pic:wt}=lt;return i.createElement("div",{className:P.wrap,key:Bt,style:{width:xt,marginRight:(1+ot)%ge===0?0:Ht+mt,marginBottom:cn}},i.createElement("a",{target:"_blank",href:`/shixuns/${zt}/challenges`,className:P.li,onClick:Ne=>{Ne.preventDefault(),we&&(0,ze.L9)([we]),re&&(0,ze.xg)(`/shixuns/${zt}/challenges`)}},i.createElement("div",{className:P.img},i.createElement("img",{className:P.cover,src:`${wt}`}),lt.is_jupyter&&i.createElement("span",{className:`sprite sprite-43 ${P.sign}`}),lt.is_jupyter_lab&&i.createElement("span",{className:`sprite sprite-42 ${P.sign}`}),lt.is_unity_3d&&i.createElement("span",{className:`sprite sprite-44 ${P.sign}`})),i.createElement("div",{className:P.name},i.createElement(ce.Z,{title:$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},i.createElement("span",{className:P.e},$t||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),i.createElement("div",{className:P.tags},i.createElement(ce.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},i.createElement("span",null,i.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),i.createElement("span",null,lt.challenges_count))),!!lt.myshixuns_count&&i.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},i.createElement("span",null,i.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),i.createElement("span",null,lt.myshixuns_count))),i.createElement(ce.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},i.createElement("span",null,i.createElement("span",null,lt.level))),i.createElement("div",{className:P.rate},i.createElement(Ee.Z,{allowHalf:!0,disabled:!0,defaultValue:lt.score_info}),i.createElement("span",null,"\xA0",lt.score_info?`${lt.score_info}\u5206`:"5\u5206")))),!re&&i.createElement("div",{className:P.lockWrap},i.createElement("img",{src:`${pe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),i.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&i.createElement(Je.Z,null)))},le=u(64194),N={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},S=u(62957),q=u(96599),te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",se=u(59301),w=(z,Rt,ge)=>new Promise((Ht,cn)=>{var mt=B=>{try{we(ge.next(B))}catch(xt){cn(xt)}},ne=B=>{try{we(ge.throw(B))}catch(xt){cn(xt)}},we=B=>B.done?Ht(B.value):Promise.resolve(B.value).then(mt,ne);we((ge=ge.apply(z,Rt)).next())}),de=({className:z,dataSource:Rt=[],col:ge=4,right:Ht,bottom:cn=23,precision:mt=0,wrapWidth:ne=1200,trackEventItems:we,loading:B,category:xt,hiddenClick:lt,handleVery:ot=()=>!0,isCurrent:$t})=>{const[Bt,zt]=S.default.useModal(),re=Math.floor((ne-(ge-1)*Ht)/ge),ve=wt=>w(void 0,null,function*(){Bt.confirm({title:"\u7F6E\u9876",width:500,content:se.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",se.createElement("span",{className:"c-blue"},"\u201C",wt.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return se.createElement(A.Z,{spinning:B},zt,se.createElement("div",{className:H()(N.list,z)},!!Rt.length&&Rt.map((wt,Ne)=>{const{subject_identifier:Be,id:ue,identifier:Ie,power:Fe}=wt,$e=wt.is_public!=0&&wt.is_public;return se.createElement("div",{className:N.wrap,key:ue,style:{width:re,marginRight:(1+Ne)%ge===0?0:Ht+mt,marginBottom:cn}},wt.homepage_show&&se.createElement("div",{className:N.btnsTop},se.createElement(q.default,{color:"red"},"\u7F6E\u9876")),se.createElement("a",{className:N.li,onClick:ut=>{ut.preventDefault(),ot(wt==null?void 0:wt.first_category_url)&&(we&&(0,ze.L9)([we]),(0,ze.xg)(wt.first_category_url))}},se.createElement("div",{className:N.top},se.createElement(ce.Z,{title:wt.name},se.createElement("div",{className:N.name},wt.name)),se.createElement("img",{className:N.img,src:pe.Z.IMG_SERVER+"/images/"+wt.avatar_url}),se.createElement("div",{className:N.text,title:wt.creator},wt.creator),Be&&se.createElement("div",{className:N.btns},se.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),se.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),$e&&se.createElement("div",{className:N.sign},"\u516C\u5F00"),$t&&se.createElement("div",{className:N.hidden,onClick:ut=>{ut.stopPropagation(),lt(wt)}},se.createElement("i",{className:`iconfont ${xt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),xt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),se.createElement("div",{className:N.bottom},wt.visits>0&&se.createElement(ce.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-liulanyan"}),se.createElement("span",null,wt.visits))),wt.course_members_count>0&&se.createElement(ce.Z,{title:"\u6210\u5458",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan"}),wt.course_members_count)),wt.tasks_count>0&&se.createElement(ce.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-zuoye"}),wt.tasks_count)),wt.is_end?se.createElement("div",{style:{color:"#6B758B"}}):se.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!wt.is_accessible&&se.createElement("div",{className:N.lockWrap},se.createElement("img",{src:`${pe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),se.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&se.createElement(Je.Z,null)))},De={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},dt=u(63823),Te=({dataSource:z=[],value:Rt,onChange:ge,className:Ht,style:cn={},tabBarExtraContent:mt})=>i.createElement("div",{className:H()(De.tabs,Ht),style:cn},i.createElement("div",{className:De.tabsWrap},z.map((ne,we)=>!(ne!=null&&ne.hide)&&i.createElement("aside",{className:De.tab,onClick:()=>{ge(ne.id),ne.link&&dt.history.push(ne.link)},key:we},i.createElement("div",{className:Rt===ne.id?De.active:""},ne.name),(ne==null?void 0:ne.resetCount)==null&&(ne==null?void 0:ne.total)!==void 0&&i.createElement("span",null,"\uFF08",ne==null?void 0:ne.total,"\uFF09"),(ne==null?void 0:ne.resetCount)!==void 0&&(ne==null?void 0:ne.total)!==void 0&&i.createElement(ce.Z,{title:(ne==null?void 0:ne.tip)!=null?ne==null?void 0:ne.tip:""},i.createElement("span",{style:{color:"#9096A3"}},"\uFF08",i.createElement("span",{style:{color:"#000"}},ne==null?void 0:ne.resetCount),"/",i.createElement("span",null,ne==null?void 0:ne.total),"\uFF09"))))),i.createElement("div",{className:De.tabBar},mt)),ht=({className:z,style:Rt={},children:ge})=>i.createElement("div",{className:H()(z),style:Rt},ge),St={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Me=u(75727),Xt=u(93041);const tt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var vt=({sortValue:z,dropValue:Rt,className:ge,onSort:Ht,onDrop:cn,dataSource:mt=tt})=>{var ne;return i.createElement("div",{className:H()(St.orderWrap,ge)},i.createElement(Me.Z,{dropdownRender:()=>i.createElement(Xt.default,null,mt.map((we,B)=>i.createElement(Xt.default.Item,{key:B,onClick:()=>cn(we.id)},we.name)))},i.createElement("span",{className:St.orderTextWrap},(ne=mt.find(we=>Rt===we.id))==null?void 0:ne.name)),i.createElement("span",{className:St.orderIconWrap},i.createElement("span",{className:St.orderAsc},i.createElement("i",{className:z==="asc"?`iconfont icon-sanjiaoxing-up font12 ${St.cursorPointer} ${St.active}`:`iconfont icon-sanjiaoxing-up font12 ${St.cursorPointer}`,onClick:()=>Ht(z==="asc"?"desc":"asc")})),i.createElement("span",{className:St.orderDesc},i.createElement("i",{className:z==="desc"?`iconfont icon-sanjiaoxing-down font12 ${St.cursorPointer} ${St.active}`:`iconfont icon-sanjiaoxing-down font12 ${St.cursorPointer}`,onClick:()=>Ht(z==="asc"?"desc":"asc")}))))},bt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=u(7939),Le=Object.defineProperty,oe=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,K=(z,Rt,ge)=>Rt in z?Le(z,Rt,{enumerable:!0,configurable:!0,writable:!0,value:ge}):z[Rt]=ge,D=(z,Rt)=>{for(var ge in Rt||(Rt={}))nt.call(Rt,ge)&&K(z,ge,Rt[ge]);if(oe)for(var ge of oe(Rt))Ue.call(Rt,ge)&&K(z,ge,Rt[ge]);return z},Se=(z,Rt)=>{var ge={};for(var Ht in z)nt.call(z,Ht)&&Rt.indexOf(Ht)<0&&(ge[Ht]=z[Ht]);if(z!=null&&oe)for(var Ht of oe(z))Rt.indexOf(Ht)<0&&Ue.call(z,Ht)&&(ge[Ht]=z[Ht]);return ge},Ae=(z,Rt,ge)=>new Promise((Ht,cn)=>{var mt=B=>{try{we(ge.next(B))}catch(xt){cn(xt)}},ne=B=>{try{we(ge.throw(B))}catch(xt){cn(xt)}},we=B=>B.done?Ht(B.value):Promise.resolve(B.value).then(mt,ne);we((ge=ge.apply(z,Rt)).next())}),ke=z=>{var Rt=z,{className:ge,style:Ht,children:cn,loading:mt=!1,openLoading:ne,onClick:we=()=>{},size:B="middle",shape:xt="round"}=Rt,lt=Se(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ot,$t]=(0,i.useState)(!1);return i.createElement(Ve.ZP,D({onClick:(0,V.throttle)(Bt=>Ae(void 0,null,function*(){ne&&$t(!0);try{yield we(Bt)}catch(zt){console.log("error",zt)}ne&&$t(!1)}),2e3,{leading:!0,trailing:!1}),className:H()(bt.btn,bt[`${B}-${xt}`],ge),style:Ht,size:B,shape:xt,loading:ot||mt},lt),cn)},Xe={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},he=({className:z,style:Rt,children:ge=null,onClick:Ht,title:cn})=>i.createElement("div",{className:H()(Xe.head,z),style:Rt},i.createElement("span",{className:"primary-hover",onClick:Ht},i.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),i.createElement("b",{title:cn},cn),i.createElement("div",{className:Xe.node},ge)),me={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Ct=({confirmShow:z=!0,confirmTitle:Rt,confirmClick:ge,cancelShow:Ht=!0,cancelTitle:cn,cancelClick:mt,className:ne,style:we,confirmLoading:B=!1})=>i.createElement("div",{className:H()(me.btns,ne),style:we},z&&i.createElement(Ve.ZP,{loading:B,onClick:ge,type:"primary",className:me.confirm},Rt),Ht&&i.createElement(Ve.ZP,{onClick:mt,className:me.cancel},cn)),Nt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},pt=({className:z,style:Rt={},LeftContent:ge,children:Ht,RightContent:cn})=>i.createElement("div",{className:H()(Nt.fixedBottom,z),style:Rt},i.createElement("div",{className:Nt.wrap},i.createElement("div",{className:Nt.left},ge),i.createElement("div",{className:Nt.center},Ht),i.createElement("div",{className:Nt.right},cn))),Vt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Re=({className:z,style:Rt={},dataSource:ge=[]})=>i.createElement("div",{className:H()(Vt.crumbs,z),style:Rt},ge.map((Ht,cn)=>cn<ge.length-1?i.createElement(i.Fragment,{key:cn},Ht.path||Ht.onClick?i.createElement("span",{className:Vt.hover,onClick:Ht!=null&&Ht.onClick?Ht.onClick:()=>dt.history.push(Ht.path)},Ht.name):i.createElement("span",null,Ht.name),i.createElement("span",null,"\xA0",">","\xA0")):i.createElement("span",{key:cn,style:{color:"#5F6368"}},Ht.name))),gt=u(11938),E=Object.defineProperty,R=Object.defineProperties,at=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Ke=(z,Rt,ge)=>Rt in z?E(z,Rt,{enumerable:!0,configurable:!0,writable:!0,value:ge}):z[Rt]=ge,st=(z,Rt)=>{for(var ge in Rt||(Rt={}))Y.call(Rt,ge)&&Ke(z,ge,Rt[ge]);if(ae)for(var ge of ae(Rt))Ft.call(Rt,ge)&&Ke(z,ge,Rt[ge]);return z},_t=(z,Rt)=>R(z,at(Rt)),xe=(z,Rt)=>{var ge={};for(var Ht in z)Y.call(z,Ht)&&Rt.indexOf(Ht)<0&&(ge[Ht]=z[Ht]);if(z!=null&&ae)for(var Ht of ae(z))Rt.indexOf(Ht)<0&&Ft.call(z,Ht)&&(ge[Ht]=z[Ht]);return ge};const{Countdown:_e}=gt.default;var Qe=z=>{var Rt=z,{onChange:ge}=Rt,Ht=xe(Rt,["onChange"]);const[cn,mt]=(0,i.useState)(null);(0,i.useEffect)(()=>{typeof cn=="number"&&cn>=0&&ge(cn)},[cn]);const ne=we=>{const B=Math.floor(we/1e3);mt(B)};return i.createElement(_e,_t(st({},Ht),{onChange:ne}))}},5817:function(zn,Pt,u){"use strict";u.r(Pt),u.d(Pt,{default:function(){return ae}});var i=u(59301),U=u(63823),O=u(56375),fe=u(66649),Z=u.n(fe),g=u(75727),H=u(7939),V=u(6767),l=u(62957),y=u(93041),M=u(62673),b=u(77019),C=u(5269),T=u(82326),$=u(37568),W=u(31691),X=u(70858),G=u(84022),L=u(25399),Q=u(35783),P=u(22972),A={flex_box_center:"flex_box_center___OrR9_",flex_space_between:"flex_space_between___MJLUJ",flex_box_vertical_center:"flex_box_vertical_center___nb0jX",flex_box_center_end:"flex_box_center_end___SMTBe",flex_box_column:"flex_box_column___Utap_",wrap:"wrap___Pp5cX",addQuestion:"addQuestion___LsICJ",content:"content___pWPew",left:"left___axtqk",filterPoint:"filterPoint___rCDO_",filterType:"filterType___NeU0D",btnWarp:"btnWarp___dKZiG",btn:"btn___TqjCT",count:"count___OntqW",btnActive:"btnActive___l_zfx",fold:"fold___KAWcj",action:"action___zMEjv",filterOrigin:"filterOrigin___DneuH",control:"control___qchb1",search:"search___Yb8rf",searchIcon:"searchIcon___ybtbn",table:"table___uHpVy",tabWarp:"tabWarp___Pi38U",customTable:"customTable___WYwKK","btn-style-1":"btn-style-1___Knznb","btn-style-2":"btn-style-2___fEs_r","btn-style-3":"btn-style-3___CeM25",right:"right___ZJhZN",statistics:"statistics___cjSkW",title:"title___P79dp",statisticItem:"statisticItem___qmDRE",rate:"rate___H3sZf",dataName:"dataName___N7Uqb",sort:"sort___N1oiD",rankHeader:"rankHeader___LGNPx",rankIcon:"rankIcon___hbm2T",li:"li___vVOqz",myRecord:"myRecord___qv6iJ",recordPrefix:"recordPrefix____bO3_",mine:"mine___fhCrG",avatar:"avatar___vwT8k",nickname:"nickname___QA_sN",myRank:"myRank___QUd2y",questionNumber:"questionNumber___j4tJF",titleWarp:"titleWarp___Hhoy_",hov:"hov___L_H5a",statusText:"statusText___okgdj",hovBtn:"hovBtn___reyI4",tag:"tag___zifqR",problemsclose:"problemsclose___cfp5y",imgsrc:"imgsrc___E905q",sendModal:"sendModal___jrx6y",bottom:"bottom___pKnLQ",line:"line___kNxnj",del:"del___kXkXv"},ce=u(10102),Ee=Object.defineProperty,pe=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Pe=(Y,Ft,Ke)=>Ft in Y?Ee(Y,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Y[Ft]=Ke,Ze=(Y,Ft)=>{for(var Ke in Ft||(Ft={}))ze.call(Ft,Ke)&&Pe(Y,Ke,Ft[Ke]);if(pe)for(var Ke of pe(Ft))Je.call(Ft,Ke)&&Pe(Y,Ke,Ft[Ke]);return Y};const le=Y=>React.createElement("svg",Ze({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},Y),React.createElement("title",null,"\u89C6\u9891"),React.createElement("g",{fill:"#C1E2FF",fillRule:"nonzero"},React.createElement("path",{d:"M7.836 9.913H2.297c-.593.072-1.185-.145-1.624-.596a2.444 2.444 0 0 1-.666-1.759v-5.17A2.47 2.47 0 0 1 .679.636c.437-.45 1.025-.671 1.617-.608h5.592c.589-.072 1.176.148 1.607.603.43.454.661 1.096.63 1.757v5.17a2.443 2.443 0 0 1-.664 1.759c-.44.451-1.032.668-1.625.596ZM2.297 1.44c-.468 0-1.026.165-1.026.948v5.17c0 .258 0 .942 1.026.942h5.54c1.024 0 1.024-.684 1.024-.942v-5.17c0-.47-.116-.948-.973-.948h-5.59Z"}),React.createElement("path",{d:"M12.476 9.207a1.781 1.781 0 0 1-1.043-.382L8.86 6.93V3.003l2.575-1.891a1.78 1.78 0 0 1 1.04-.379c.367-.034.73.102 1.003.377.274.275.433.664.44 1.075v5.57c-.007.411-.166.8-.44 1.075a1.248 1.248 0 0 1-1.003.377Zm-2.35-3.036 2.01 1.48c.1.082.218.131.34.143a.29.29 0 0 0 .186-.045l-.007-5.564a.315.315 0 0 0-.179-.04.64.64 0 0 0-.339.144l-2.012 1.475v2.407Zm-5.06.212c-.698 0-1.264-.633-1.264-1.412 0-.78.566-1.411 1.265-1.412.698 0 1.264.632 1.264 1.411 0 .78-.567 1.411-1.265 1.412Z"})));var N="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ0NCAyLjQ0NCAwIDAgMS0uNjY2LTEuNzU5di01LjE3QTIuNDcgMi40NyAwIDAgMSAuNjc5LjYzNmMuNDM3LS40NSAxLjAyNS0uNjcxIDEuNjE3LS42MDhoNS41OTJjLjU4OS0uMDcyIDEuMTc2LjE0OCAxLjYwNy42MDMuNDMuNDU0LjY2MSAxLjA5Ni42MyAxLjc1N3Y1LjE3YTIuNDQzIDIuNDQzIDAgMCAxLS42NjQgMS43NTljLS40NC40NTEtMS4wMzIuNjY4LTEuNjI1LjU5NlpNMi4yOTcgMS40NGMtLjQ2OCAwLTEuMDI2LjE2NS0xLjAyNi45NDh2NS4xN2MwIC4yNTggMCAuOTQyIDEuMDI2Ljk0Mmg1LjU0YzEuMDI0IDAgMS4wMjQtLjY4NCAxLjAyNC0uOTQydi01LjE3YzAtLjQ3LS4xMTYtLjk0OC0uOTczLS45NDhoLTUuNTlaIi8+PHBhdGggZD0iTTEyLjQ3NiA5LjIwN2ExLjc4MSAxLjc4MSAwIDAgMS0xLjA0My0uMzgyTDguODYgNi45M1YzLjAwM2wyLjU3NS0xLjg5MWExLjc4IDEuNzggMCAwIDEgMS4wNC0uMzc5Yy4zNjctLjAzNC43My4xMDIgMS4wMDMuMzc3LjI3NC4yNzUuNDMzLjY2NC40NCAxLjA3NXY1LjU3Yy0uMDA3LjQxMS0uMTY2LjgtLjQ0IDEuMDc1YTEuMjQ4IDEuMjQ4IDAgMCAxLTEuMDAzLjM3N1ptLTIuMzUtMy4wMzYgMi4wMSAxLjQ4Yy4xLjA4Mi4yMTguMTMxLjM0LjE0M2EuMjkuMjkgMCAwIDAgLjE4Ni0uMDQ1bC0uMDA3LTUuNTY0YS4zMTUuMzE1IDAgMCAwLS4xNzktLjA0LjY0LjY0IDAgMCAwLS4zMzkuMTQ0bC0yLjAxMiAxLjQ3NXYyLjQwN1ptLTUuMDYuMjEyYy0uNjk4IDAtMS4yNjQtLjYzMy0xLjI2NC0xLjQxMiAwLS43OC41NjYtMS40MTEgMS4yNjUtMS40MTIuNjk4IDAgMS4yNjQuNjMyIDEuMjY0IDEuNDExIDAgLjc4LS41NjcgMS40MTEtMS4yNjUgMS40MTJaIi8+PC9nPjwvc3ZnPg==",S=u(2943),q=u(67894),te=u(76614),se="data:image/png;base64,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",w=u(29596),I=u(89392),de=u.n(I),De=u(68911),dt="data:image/png;base64,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",It=u(37226),Te=u(28284),rt=u(79939),ht=u(53420),St=u(31709),Me={flex_box_center:"flex_box_center___bce7B",flex_space_between:"flex_space_between____RQOw",flex_box_vertical_center:"flex_box_vertical_center___AjElL",flex_box_center_end:"flex_box_center_end___ygYIN",flex_box_column:"flex_box_column___lF_tQ",scoremodal:"scoremodal___rmaM8",selectWrapper:"selectWrapper___mvLB7",selectWrappers:"selectWrappers___eCA2w",allqingchu:"allqingchu___qrQxW",title:"title___uaw5Z",score:"score___uJAQp",close:"close___uQVq5",content:"content___JN0bk",items:"items___foPGY",bottom:"bottom___h0Pda",yes:"yes___Et867",no:"no___lWWYt",titlecount:"titlecount___MgcDd",add:"add___NJkmt",search:"search___lc68N",searchIcon:"searchIcon___BUJdX",tabWrap:"tabWrap___KEQVE",previewModal:"previewModal___i8Vh9",q_title:"q_title___k3hA1"},Xt=u(76154),tt={flex_box_center:"flex_box_center___IzcTw",flex_space_between:"flex_space_between___TfxiX",flex_box_vertical_center:"flex_box_vertical_center___nDt60",flex_box_center_end:"flex_box_center_end___vHxrY",flex_box_column:"flex_box_column___N9hFV",warp:"warp___CY8df",shixunbutton:"shixunbutton___tmPbr",redio:"redio___mNtYw",redioitem:"redioitem___N2pTb",redioitemyes:"redioitemyes___ooLYK",title:"title___r3t31",titleyes:"titleyes___JiOuB",yestag:"yestag___Yj1nT",qcount:"qcount___b_Lg3",score:"score___Iq_OQ",qtitle:"qtitle___E0xrA",checkbox:"checkbox___p5WZq",checkboxitem:"checkboxitem___Kja1N",checkboxitemyes:"checkboxitemyes___zCxhF",bottom:"bottom___Dg53A",bottomitem:"bottomitem___mx8gr",left:"left___GO9h4",right:"right___IIyn8",completion:"completion___puFVe",content:"content___QCTZ8",items:"items___DN6om",simple:"simple___CjHXs",shixun:"shixun___I_Hrz",combination:"combination___xkm7F",program:"program___FiUNV"},un=u(24334);const vt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Ve=({qitem:Y})=>{var Ft,Ke,st,_t,xe,_e,et,Qe,z,Rt;return i.createElement("div",{className:tt.warp},i.createElement("div",{className:tt.mainPart},i.createElement("div",{className:tt.qcount},(Y==null?void 0:Y.question_type)===8&&i.createElement(O.Z,{className:tt.content,showProgramFill:!0,value:(Ft=Y==null?void 0:Y.program_attr)==null?void 0:Ft.description}),(Y==null?void 0:Y.question_type)!=8&&i.createElement(O.Z,{className:tt.qtitle,value:(Y==null?void 0:Y.name)||(Y==null?void 0:Y.title)})),((Y==null?void 0:Y.question_type)===0||(Y==null?void 0:Y.question_type)===2)&&i.createElement("div",null,(Ke=Y==null?void 0:Y.choices)==null?void 0:Ke.map((ge,Ht)=>i.createElement("div",{className:tt.redio},!(ge!=null&&ge.is_answer)&&i.createElement("span",{className:tt.redioitem}),(ge==null?void 0:ge.is_answer)&&i.createElement("i",{className:`${tt.redioitemyes} icon-duigou1`}),i.createElement(O.Z,{className:ge!=null&&ge.is_answer?tt.titleyes:tt.title,value:vt[Ht]+(ge==null?void 0:ge.choice_text)}),(ge==null?void 0:ge.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(Y==null?void 0:Y.question_type)===1&&i.createElement("div",null,(st=Y==null?void 0:Y.choices)==null?void 0:st.map((ge,Ht)=>i.createElement("div",{className:tt.checkbox},!(ge!=null&&ge.is_answer)&&i.createElement("span",{className:tt.checkboxitem}),(ge==null?void 0:ge.is_answer)&&i.createElement("i",{className:`${tt.checkboxitemyes} icon-duigou1`}),i.createElement(O.Z,{className:ge!=null&&ge.is_answer?tt.titleyes:tt.title,value:vt[Ht]+(ge==null?void 0:ge.choice_text)}),(ge==null?void 0:ge.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(Y==null?void 0:Y.question_type)===3&&i.createElement("div",{className:tt.completion},(_t=Y==null?void 0:Y.standard_answer)==null?void 0:_t.map((ge,Ht)=>{var cn;return i.createElement("div",{style:{display:"flex"}},i.createElement("span",{className:tt.title},"\u586B\u7A7A\u9879",Ht+1),i.createElement("div",{className:tt.content},(cn=ge==null?void 0:ge.answer_text)==null?void 0:cn.map((mt,ne)=>i.createElement("div",{className:tt.items},mt))))})),(Y==null?void 0:Y.question_type)===4&&i.createElement("div",{className:tt.simple},i.createElement("div",{className:tt.title},"\u53C2\u8003\u7B54\u6848"),i.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xe=Y==null?void 0:Y.answer_texts)!=null&&xe[0]?i.createElement(O.Z,{className:tt.content,value:(_e=Y==null?void 0:Y.answer_texts)==null?void 0:_e[0]}):i.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Y==null?void 0:Y.question_type)===5&&((et=Y==null?void 0:Y.challenge_names)==null?void 0:et.map((ge,Ht)=>i.createElement("div",{className:tt.shixun},i.createElement("span",{className:tt.qtitle},i.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,De.EM)(Ht+1),"\u9898"),ge)))),(Y==null?void 0:Y.question_type)===6&&i.createElement("div",{className:tt.program},i.createElement(O.Z,{className:tt.content,value:((Qe=Y==null?void 0:Y.program_attr)==null?void 0:Qe.description)||"- -"})),(Y==null?void 0:Y.question_type)===7&&((z=Y==null?void 0:Y.sub_item_banks)==null?void 0:z.map((ge,Ht)=>{var cn,mt,ne,we,B;return i.createElement("div",null,i.createElement("div",{className:tt.combination},i.createElement("span",{className:tt.qtitle},ge==null?void 0:ge.name)),i.createElement("div",{className:tt.warp,style:{padding:"0px",paddingTop:20}},i.createElement("div",null,((ge==null?void 0:ge.item_type)=="SINGLE"||(ge==null?void 0:ge.item_type)=="JUDGMENT")&&((cn=ge==null?void 0:ge.choices)==null?void 0:cn.map((xt,lt)=>i.createElement("div",{className:tt.redio},!(xt!=null&&xt.is_answer)&&i.createElement("span",{className:tt.redioitem}),(xt==null?void 0:xt.is_answer)&&i.createElement("i",{className:`${tt.redioitemyes} icon-duigou1`}),i.createElement(O.Z,{className:xt!=null&&xt.is_answer?tt.titleyes:tt.title,value:vt[lt]+(xt==null?void 0:xt.choice_text)}),(xt==null?void 0:xt.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(ge==null?void 0:ge.item_type)=="MULTIPLE"&&((mt=ge==null?void 0:ge.choices)==null?void 0:mt.map((xt,lt)=>i.createElement("div",{className:tt.checkbox},!(xt!=null&&xt.is_answer)&&i.createElement("span",{className:tt.checkboxitem}),(xt==null?void 0:xt.is_answer)&&i.createElement("i",{className:`${tt.checkboxitemyes} icon-duigou1`}),i.createElement(O.Z,{className:xt!=null&&xt.is_answer?tt.titleyes:tt.title,value:vt[lt]+(xt==null?void 0:xt.choice_text)}),(xt==null?void 0:xt.is_answer)&&i.createElement("div",{className:tt.yestag},"\u6B63\u786E\u7B54\u6848")))),(ge==null?void 0:ge.item_type)=="COMPLETION"&&i.createElement("div",{className:tt.completion},(ne=ge==null?void 0:ge.standard_answer)==null?void 0:ne.map((xt,lt)=>{var ot;return i.createElement("div",{style:{display:"flex"}},i.createElement("span",{className:tt.title},"\u586B\u7A7A\u9879",lt+1),i.createElement("div",{className:tt.content},(ot=xt==null?void 0:xt.answer_text)==null?void 0:ot.map(($t,Bt)=>i.createElement("div",{className:tt.items},$t))))})),(ge==null?void 0:ge.item_type)=="SUBJECTIVE"&&i.createElement("div",{className:tt.simple},i.createElement("div",{className:tt.title},"\u53C2\u8003\u7B54\u6848"),i.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(we=ge==null?void 0:ge.answer_texts)!=null&&we[0]?i.createElement(O.Z,{className:tt.content,value:(B=ge==null?void 0:ge.answer_texts)==null?void 0:B[0]}):i.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Y==null?void 0:Y.question_type)===8&&i.createElement("div",null,i.createElement(O.Z,{disabledFill:!0,className:tt.content,showProgramFill:!0,value:un.Base64.decode(((Rt=Y==null?void 0:Y.program_attr)==null?void 0:Rt.code)||"")})),(Y==null?void 0:Y.question_type)===5&&i.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},i.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),i.createElement("span",{style:{color:"#000000"}},(Y==null?void 0:Y.author_name)||"- -")),i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),i.createElement("span",{style:{color:"#000000"}},(Y==null?void 0:Y.author_school_name)||"- -")),i.createElement("div",{style:{marginRight:30}},i.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),i.createElement("span",{style:{color:"#000000"}},(Y==null?void 0:Y.study_count)||"0"))),i.createElement("a",{className:tt.shixunbutton,href:`/shixuns/${Y==null?void 0:Y.identifier}/challenges?exercise=true`,target:"_blank"},i.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Y==null?void 0:Y.question_type)<=4||[6,8].includes(Y==null?void 0:Y.question_type))&&i.createElement("div",{className:tt.bottom},i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u89E3\u6790"),i.createElement("span",{className:tt.right},Y!=null&&Y.analysis?i.createElement(O.Z,{value:Y==null?void 0:Y.analysis}):i.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u96BE\u5EA6"),i.createElement("span",{className:tt.right},(Y==null?void 0:Y.difficulty)===1?"\u7B80\u5355":(Y==null?void 0:Y.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),i.createElement("div",{className:tt.bottomitem},i.createElement("span",{className:tt.left},"\u77E5\u8BC6\u70B9"),i.createElement("span",{className:tt.right},Y!=null&&Y.tag_discipline?Y==null?void 0:Y.tag_discipline:i.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Le=u(20428),oe=u(94008),nt=u(61485),Ue=u(96609),K=u(50778),D=u(59301),Se=Object.defineProperty,Ae=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,he=(Y,Ft,Ke)=>Ft in Y?Se(Y,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Y[Ft]=Ke,me=(Y,Ft)=>{for(var Ke in Ft||(Ft={}))Xe.call(Ft,Ke)&&he(Y,Ke,Ft[Ke]);if(ke)for(var Ke of ke(Ft))yt.call(Ft,Ke)&&he(Y,Ke,Ft[Ke]);return Y},Lt=(Y,Ft)=>Ae(Y,Ce(Ft)),Ct=(Y,Ft,Ke)=>new Promise((st,_t)=>{var xe=Qe=>{try{et(Ke.next(Qe))}catch(z){_t(z)}},_e=Qe=>{try{et(Ke.throw(Qe))}catch(z){_t(z)}},et=Qe=>Qe.done?st(Qe.value):Promise.resolve(Qe.value).then(xe,_e);et((Ke=Ke.apply(Y,Ft)).next())});const Nt=({setScoreShow:Y,ScoreShow:Ft,onOk:Ke,isshixuns:st,isloadings:_t,dispatch:xe,isIntelligentAssistant:_e=!1,ispptModal:et=!1,isChangeQuestion:Qe=!1,newExercisePaper:z,shixunsDetail:Rt})=>{var ge,Ht,cn;let[mt,ne]=(0,i.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:_e,is_smart_plan:et,group_id:[]}),[we,B]=(0,i.useState)([]),[xt,lt]=(0,i.useState)([]),[ot,$t]=(0,i.useState)([]),[Bt,zt]=(0,i.useState)([]);const[re,ve]=(0,i.useState)(!1),[wt]=Te.default.useForm(),[Ne,Be]=(0,i.useState)(),[ue,Ie]=(0,i.useState)(!1);let[Fe,$e]=(0,i.useState)(st);const[ut,Gt]=(0,i.useState)([]),[sn,je]=(0,i.useState)(0),[ct,Dt]=(0,i.useState)(!0),[qt,Jt]=(0,i.useState)([]),[Ge,ft]=(0,i.useState)([]),Mt=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],Ye=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[jt,rn]=(0,i.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const an=(0,i.useRef)(new Set),nn=(0,i.useRef)(new Set),mn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],bn=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],In=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[_n,Cn]=(0,i.useState)(!1),Zn=()=>{wt.resetFields(),Fe=!1,$e(!1),Cn(!1),wt.submit()};(0,i.useEffect)(()=>{var ln,Tt,Fn,On,sr,dr,Ar,ur,Yn,vn;(((Fn=(Tt=(ln=z==null?void 0:z.editData)==null?void 0:ln.exercise)==null?void 0:Tt.exist_item_bank_ids)==null?void 0:Fn.length)>0||((dr=(sr=(On=z==null?void 0:z.editData)==null?void 0:On.exercise)==null?void 0:sr.exist_item_bank_shixun_ids)==null?void 0:dr.length)>0)&&ft([...(ur=(Ar=z==null?void 0:z.editData)==null?void 0:Ar.exercise)==null?void 0:ur.exist_item_bank_ids,...(vn=(Yn=z==null?void 0:z.editData)==null?void 0:Yn.exercise)==null?void 0:vn.exist_item_bank_shixun_ids])},[(Ht=(ge=z==null?void 0:z.editData)==null?void 0:ge.exercise)==null?void 0:Ht.exist_item_bank_ids]),(0,i.useEffect)(()=>{Ft&&(wt.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),ct&&Fe&&(wt.setFieldsValue({item_type:"SHIXUN"}),mt.item_type="SHIXUN",ne(me({},mt)),Dt(!1)),Ln(mt),rr(),Dn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Ft]),(0,i.useEffect)(()=>{sn>0&&setTimeout(()=>{je(0)},2e3)},[sn]);function Ln(ln){return Ct(this,null,function*(){var Tt,Fn,On;if(ve(!0),ne(me({},ln)),(ot==null?void 0:ot.length)<=0&&ln.type==="5"){zt([]),ve(!1);return}console.log("----",ot,ut);let sr=ln.type==="5"?ot==null?void 0:ot.filter(ur=>!ut.includes(ur)):null,dr=ln.type==="5"?ot==null?void 0:ot.filter(ur=>ut.includes(ur)):null,Ar=yield(0,P.ZP)("/api/item_banks.json",{method:"get",params:Lt(me({},ln),{discipline_id:((Tt=ln==null?void 0:ln.courseid)==null?void 0:Tt[0])||null,sub_discipline_id:((Fn=ln==null?void 0:ln.courseid)==null?void 0:Fn[1])||null,ids:sr,shixun_ids:dr,include_shixuns:!_e,group_id:((On=ln.group_id)==null?void 0:On.map(ur=>ur==null?void 0:ur.value))||null,keyword:ln.keyword?encodeURIComponent(ln.keyword):ln.keyword,type:ln.type==="5"?null:ln.type,clazz:ln.type==="3"?"ItemBanksGroup":null})});zt(Ar),ve(!1)})}function rr(){return Ct(this,null,function*(){let ln=yield(0,P.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:mt.type==="5"?null:mt.type,clazz:"ItemBanksGroup"}});B((0,Xt.L)(ln==null?void 0:ln.disciplines))})}function Dn(ln){return Ct(this,null,function*(){var Tt;let Fn=yield(0,P.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ln}),On=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Tt=Fn==null?void 0:Fn.data)==null?void 0:Tt.map(sr=>({title:sr.name,id:sr.id,pid:sr.id,value:sr.id,key:sr.id,isLeaf:!sr.have_child}))}];Jt(On)})}function jn(ln){return Ct(this,null,function*(){var Tt,Fn,On,sr;ve(!0);let dr=(Tt=ln.list)==null?void 0:Tt.filter(Yn=>!ut.includes(Yn)),Ar=(Fn=ln.list)==null?void 0:Fn.filter(Yn=>ut.includes(Yn));if(dr.length===0&&Ar.length===0){ve(!1),zt([]);return}let ur=yield(0,P.ZP)("/api/item_banks.json",{method:"get",params:Lt(me({},ln),{discipline_id:((On=ln==null?void 0:ln.courseid)==null?void 0:On[0])||null,sub_discipline_id:((sr=ln==null?void 0:ln.courseid)==null?void 0:sr[1])||null,ids:dr,shixun_ids:Ar,type:ln.type==="5"?null:ln.type,clazz:ln.type==="3"?"ItemBanksGroup":null})});ve(!1),zt(ur)})}const Xn=ln=>Ct(void 0,null,function*(){const Tt=yield xe({type:"shixunsDetail/release",payload:{id:ln}});let Fn=Tt==null?void 0:Tt.tag_position,On=(Tt==null?void 0:Tt.evaluation_set_position)||[],sr=Tt.status;return sr===0?(V.ZP.success("\u53D1\u5E03\u6210\u529F"),Ln(mt),!0):(sr===2?V.ZP.error(`\u7B2C${On.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):sr===3?V.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Fn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):V.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Wn=ln=>(ln==null?void 0:ln.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Gn=(ln,Tt,Fn)=>ln.map(On=>On.key===Tt?me(me({},On),Fn):On.children?Lt(me({},On),{children:Gn(On.children,Tt,Fn)}):On),Jn=ln=>Ct(void 0,null,function*(){const{key:Tt}=ln;let Fn=mt.type;const On=yield(0,K.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Tt),type:Fn}),{data:sr,total_count:dr}=On||{};dr>0&&Jt(Ar=>Gn(Ar,Tt,{children:sr.map(ur=>({title:ur.name,id:ur.id,pid:ur.id,value:ur.id,key:ur.id,isLeaf:!ur.have_child}))}))});function Rn(ln){ln==="0"&&(jt.wcjd=me({},mt)),ln==="5"&&(jt.yx=me({},mt)),rn(me({},jt))}function Bn(){mt.type==="1"&&(mt=jt.gg),mt.type==="2"&&(mt=jt.scj),mt.type==="3"&&(mt=jt.ttgx),mt.type==="0"&&(mt=jt.wcjd),mt.type==="5"&&(mt=jt.yx),Fe=!1,$e(!1),wt.setFieldsValue(me({},mt)),ne(me({},mt)),Ln(me({},mt))}return D.createElement("div",null,D.createElement(l.default,{title:!1,footer:!1,open:Ft,width:1200,centered:!0,className:Me.scoremodal,onCancel:()=>{Y(!1)}},D.createElement("div",{style:{display:"flex",alignItems:"center"}},D.createElement("div",{className:Me.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),D.createElement(W.default,{className:Me.tabWrap,activeKey:mt.type,onChange:ln=>{mt.show_all_share=null,ln==="0"&&Dn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Rn(mt.type),mt.type=ln,Cn(!1),mt.type==="5"&&(Fe=!1,$e(!1)),Bn(),rr()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:D.createElement("div",null,"\u5DF2\u9009",ot.length>0&&D.createElement("span",{className:Me.titlecount},ot.length),sn>0&&D.createElement("span",{className:Me.add},"+",sn)),key:"5"}]}),D.createElement(Te.default,{layout:"inline",form:wt,onValuesChange:(ln,Tt)=>{const Fn=Object.values(Tt).some(sr=>sr!==null&&sr!==""&&sr!==void 0),On=Tt.keyword==="";Cn(Fn||!On),mt.page=1,ln!=null&&ln.courseid&&wt.setFieldsValue({tag_discipline_id:""}),$e(!1),!(ln.keyword||ln.keyword==="")&&wt.submit()},onFinish:ln=>{var Tt;mt.type==="3"&&(!ln.group_id||((Tt=ln==null?void 0:ln.group_id)==null?void 0:Tt.length)===0)?mt.show_all_share=!0:mt.show_all_share=null,ne(me(me({},mt),ln)),Ln(me(me({},mt),ln))}},D.createElement(Te.default.Item,{name:"courseid"},D.createElement(rt.Z,{className:Me.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:we})),!Fe&&D.createElement(Te.default.Item,{name:"tag_discipline_id"},D.createElement(T.default,{className:Me.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(cn=Bt==null?void 0:Bt.tag_disciplines)==null?void 0:cn.map(ln=>D.createElement(T.default.Option,{key:ln.id},ln.name)))),D.createElement(Te.default.Item,{name:Fe?"diff":"difficulty"},D.createElement(T.default,{className:Me.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},mn.map(ln=>D.createElement(T.default.Option,{key:ln.value},ln.name)))),Fe&&D.createElement(Te.default.Item,{name:"shixun_publish_status"},D.createElement(T.default,{className:Me.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},In.map(ln=>D.createElement(T.default.Option,{key:ln.value},ln.name)))),(mt.type==="3"||mt.type==="0")&&!Fe&&D.createElement(Te.default.Item,{name:"group_id"},D.createElement(ht.default,{treeDataSimpleMode:!0,style:{width:118},className:Me.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(ln,Tt)=>Tt.title.toUpperCase().indexOf(ln.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Jn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:qt})),_n&&D.createElement("span",{className:Me.allqingchu,onClick:Zn},D.createElement("i",{className:"iconfont icon-guanbi4"}),D.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),D.createElement(Te.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},D.createElement($.default.Search,{className:Me.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:D.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Me.searchIcon}`,onClick:()=>wt.submit()}),onSearch:ln=>{wt.submit()}}))),D.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},D.createElement("div",{onClick:()=>{mt.updated_at==="asc"?mt.updated_at="desc":mt.updated_at="asc",ne(Lt(me({},mt),{page:1})),Ln(Lt(me({},mt),{page:1}))}}," ",mt.updated_at?D.createElement("img",{src:mt.updated_at==="asc"?Le.Z:oe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):D.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),D.createElement("div",{onClick:()=>{mt.quotes==="asc"?mt.quotes="desc":mt.quotes="asc",ne(Lt(me({},mt),{page:1})),Ln(Lt(me({},mt),{page:1}))},style:{marginLeft:20}}," ",mt.quotes?D.createElement("img",{src:mt.quotes==="asc"?Le.Z:oe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):D.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),D.createElement(X.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Bt==null?void 0:Bt.items)||(Bt==null?void 0:Bt.shixun_list),pagination:!1,loading:re,rowKey:ln=>ln.id,rowSelection:{type:"checkbox",selectedRowKeys:xt,getCheckboxProps:ln=>({disabled:ln==null?void 0:ln.added_to_practice}),onSelect(ln,Tt,Fn){if(Tt)(Fe||ln!=null&&ln.challenge_names)&&Gt([...ut,ln.id]),lt([...xt,ln.id]),ln.identifier?an.current.add(ln.id):nn.current.add(ln.id),je(1),$t([...ot,ln.id]);else{ln.identifier?an.current.delete(ln.id):nn.current.delete(ln.id);let On=ot.filter(sr=>sr!==ln.id);if(lt(On),$t(On),Fe||ln!=null&&ln.challenge_names){let sr=ut.filter(dr=>dr!==ln.id);Gt([...sr])}if(mt.type==="5"){jn(Lt(me({},mt),{list:[...On]}));return}}},onSelectAll(ln,Tt,Fn){var On,sr;if(ln){const dr=Fn.map(ur=>ur.id),Ar=(sr=Fn==null?void 0:Fn.filter(ur=>ur==null?void 0:ur.challenge_names))==null?void 0:sr.map(ur=>ur.id);Gt([...ut,...Ar]),lt([...xt,...dr]),$t([...ot,...dr]);for(const ur of Fn)ur.identifier?an.current.add(ur.id):nn.current.add(ur.id)}else{const dr=Fn.map(vn=>vn.id),Ar=xt.filter(vn=>!dr.some(hn=>hn===vn)),ur=(On=Fn==null?void 0:Fn.filter(vn=>vn==null?void 0:vn.challenge_names))==null?void 0:On.map(vn=>vn.id);lt([...Ar]),$t([...Ar]);let Yn=ut.filter(vn=>!ur.some(hn=>hn===vn.id));Gt([...Yn]),mt.type==="5"&&jn(Lt(me({},mt),{list:[...Ar]}));for(const vn of dr)vn.identifier?an.current.delete(vn):nn.current.delete(vn)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(ln,Tt,Fn)=>{var On,sr;return D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",null,Fe||Tt!=null&&Tt.challenge_names?"\u5B9E\u8BAD\u9898":(sr=(On=Mt==null?void 0:Mt.filter(dr=>dr.value===ln))==null?void 0:On[0])==null?void 0:sr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Fe?"30%":"60%",key:"name",render:(ln,Tt,Fn)=>{var On;return D.createElement("div",{style:{display:"flex",alignItems:"center"}},D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",{className:Tt!=null&&Tt.high_resources_consume?Me.q_title:""},D.createElement(O.Z,{key:1,showLines:1,showTextOnly:!0,value:Fe||Tt!=null&&Tt.challenge_names?Tt!=null&&Tt.title||ln===null?"--":ln:(Tt==null?void 0:Tt.item_type)=="BPROGRAM"?(On=Tt==null?void 0:Tt.program_attr)==null?void 0:On.description:ln}))),(Tt==null?void 0:Tt.high_resources_consume)&&D.createElement(Ue.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Fe,render:(ln,Tt,Fn)=>{var On;return D.createElement(L.Z,{title:Wn(Tt)},D.createElement("span",null,ln?(On=ln==null?void 0:ln.split("\u3001"))==null?void 0:On[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Fe,render:(ln,Tt,Fn)=>D.createElement(L.Z,{title:Wn(Tt)},D.createElement("span",null,ln||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(ln,Tt,Fn)=>{var On,sr,dr,Ar;return D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",null,Fe||Tt!=null&&Tt.challenge_names?(Tt==null?void 0:Tt.level)||((sr=(On=mn==null?void 0:mn.filter(ur=>ur.value===ln))==null?void 0:On[0])==null?void 0:sr.name):(Ar=(dr=mn==null?void 0:mn.filter(ur=>ur.value===ln))==null?void 0:dr[0])==null?void 0:Ar.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Fe,render:(ln,Tt,Fn)=>D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",null,ln||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(ln,Tt,Fn)=>D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",null,Fe||Tt!=null&&Tt.challenge_names?(Tt==null?void 0:Tt.study_count)||(Tt==null?void 0:Tt.stu_num):ln))},{title:D.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",D.createElement(L.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},D.createElement(nt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Fe,render:(ln,Tt,Fn)=>D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",null,ln||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(ln,Tt,Fn)=>D.createElement(L.Z,{title:Wn(Tt)},D.createElement("div",{style:{flex:1,textAlign:"start"}},D.createElement("a",{onClick:()=>{var On,sr;Be(Lt(me({},Tt),{question_type:Fe||Tt!=null&&Tt.challenge_names?5:(sr=(On=Mt==null?void 0:Mt.filter(dr=>dr.value===(Tt==null?void 0:Tt.item_type)))==null?void 0:On[0])==null?void 0:sr.question_type})),Ie(!0)}},"\u67E5\u770B"),(Tt==null?void 0:Tt.shixun_tag_num)===1&&D.createElement("a",{style:{marginLeft:10},onClick:()=>{l.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:D.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",D.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Tt==null?void 0:Tt.identifier}/challenges`)}},(Tt==null?void 0:Tt.shixun_name)||"--"),"\uFF1F"),onOk:()=>Ct(void 0,null,function*(){if(!Xn(Tt==null?void 0:Tt.identifier))return new Promise((On,sr)=>{sr()})})})}},"\u53D1\u5E03")))}].filter(ln=>!ln.hidden)}),D.createElement(St.Z,{current:mt.page,total:(Bt==null?void 0:Bt.items_count)||(Bt==null?void 0:Bt.shixuns_count),style:{marginBottom:20},defaultPageSize:mt.per_page,showTotal:ln=>D.createElement("span",null,"\u5171\xA0",D.createElement("span",{style:{color:"#165DFF"}},ln),"\xA0\u6761\u6570\u636E"),pageSize:mt.per_page,onChange:(ln,Tt)=>{mt.page=ln,mt.per_page=Tt,ne(me({},mt)),Ln(me({},mt))}}),D.createElement("div",{className:Me.bottom},D.createElement(H.ZP,{className:Me.no,onClick:()=>{Y(!1)}},"\u53D6\u6D88"),D.createElement(H.ZP,{loading:_t,style:{width:_t&&75},className:Me.yes,onClick:()=>Ct(void 0,null,function*(){if((ot==null?void 0:ot.length)<=0){V.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Ke([...nn.current],[...an.current],!0,ot==null?void 0:ot.length)})},"\u786E\u8BA4"))),D.createElement(l.default,{open:ue,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Me.previewModal,width:1e3,centered:!0,onCancel:()=>{Ie(!1)},onOk:()=>{Ie(!1)}},D.createElement(Ve,{qitem:Ne})))};var kt=(0,U.connect)(({shixunsDetail:Y,newExercisePaper:Ft})=>({shixunsDetail:Y,newExercisePaper:Ft}))(Nt),pt=Object.defineProperty,Vt=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,gt=(Y,Ft,Ke)=>Ft in Y?pt(Y,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Y[Ft]=Ke,E=(Y,Ft)=>{for(var Ke in Ft||(Ft={}))Zt.call(Ft,Ke)&&gt(Y,Ke,Ft[Ke]);if(Vt)for(var Ke of Vt(Ft))Re.call(Ft,Ke)&&gt(Y,Ke,Ft[Ke]);return Y},R=(Y,Ft,Ke)=>new Promise((st,_t)=>{var xe=Qe=>{try{et(Ke.next(Qe))}catch(z){_t(z)}},_e=Qe=>{try{et(Ke.throw(Qe))}catch(z){_t(z)}},et=Qe=>Qe.done?st(Qe.value):Promise.resolve(Qe.value).then(xe,_e);et((Ke=Ke.apply(Y,Ft)).next())});const at=({globalSetting:Y,user:Ft,dispatch:Ke})=>{var st,_t,xe,_e,et,Qe,z,Rt,ge,Ht,cn,mt,ne,we,B,xt,lt,ot;const[$t]=(0,U.useSearchParams)(),Bt=(0,U.useLocation)(),zt={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:$t.get("tab")||"public"},[re,ve]=(0,i.useState)(0),[wt,Ne]=(0,i.useState)(0),[Be,ue]=(0,i.useState)(0),[Ie,Fe]=(0,i.useState)([]),[$e,ut]=(0,i.useState)([]),[Gt,sn]=(0,i.useState)({}),[je,ct]=(0,i.useState)(!1),[Dt,qt]=(0,i.useState)([]),[Jt,Ge]=(0,i.useState)(!0),[ft,Mt]=(0,i.useState)(null);let[Ye,jt]=(0,i.useState)(zt);const rn=(0,i.useRef)(null),an=(0,i.useRef)(null),[nn,mn]=(0,i.useState)([]),bn=(0,i.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(Ye.filter),[Ye.filter]),[In,_n]=(0,i.useState)(!1),[Cn,Zn]=(0,i.useState)(!1),[Ln,rr]=(0,i.useState)(""),[Dn,jn]=(0,i.useState)([]),[Xn,Wn]=(0,i.useState)(!1),[Gn,Jn]=(0,i.useState)([]),[Rn,Bn]=(0,i.useState)(!1),[ln,Tt]=(0,i.useState)(!1),[Fn,On]=(0,i.useState)(null),sr=Ft.userInfo.identity==="teacher",dr=(tn,Tn,cr)=>R(void 0,null,function*(){var or,Br,ri,vi;tn.persist(),(Br=(or=tn==null?void 0:tn.target)==null?void 0:or.style)!=null&&Br.pointerEvents&&(tn.target.style.pointerEvents="none");const _r=yield(0,P.ZP)(`/api/practices/${Tn.identifier}/start`,{method:"get"});if((_r==null?void 0:_r.status)===0){if(cr){(0,De.xg)(`/problems/${_r==null?void 0:_r.identifier}/oj/${Tn==null?void 0:Tn.identifier}?tab=3`);return}(0,De.xg)(`/problems/${_r==null?void 0:_r.identifier}/oj/${Tn==null?void 0:Tn.identifier}`)}(vi=(ri=tn==null?void 0:tn.target)==null?void 0:ri.style)!=null&&vi.pointerEvents&&(tn.target.style.pointerEvents="auto")});(0,i.useEffect)(()=>{let tn=Z()().add(0,"days").unix(),Tn=localStorage.getItem("problemsclose");if(!Tn){Wn(!0);return}tn>parseInt(Tn)&&Wn(!0)},[]);const Ar=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],ur=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(tn,Tn)=>i.createElement("div",{className:A.titleWarp},(Ye==null?void 0:Ye.filter)==="mine"?i.createElement("span",{className:A.tag},Ar[Tn.practice_status]):null,i.createElement("span",{title:tn,className:A.hov,onClick:cr=>dr(cr,Tn)},tn))},(Ye==null?void 0:Ye.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(tn,Tn)=>i.createElement("span",{style:{display:"flex"}},i.createElement("span",{onClick:cr=>dr(cr,Tn,!0),className:"current"},tn),(Tn==null?void 0:Tn.has_video_solution)&&i.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:N}))}:null,(Ye==null?void 0:Ye.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:tn=>i.createElement(i.Fragment,null,tn===1&&i.createElement("span",{className:A["btn-style-1"]},"\u7B80\u5355"),tn===2&&i.createElement("span",{className:A["btn-style-2"]},"\u9002\u4E2D"),tn===3&&i.createElement("span",{className:A["btn-style-3"]},"\u56F0\u96BE"))},(Ye==null?void 0:Ye.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(Ye==null?void 0:Ye.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(tn,Tn)=>(0,ce.bg)()?i.createElement(i.Fragment,null,ft===(Tn==null?void 0:Tn.identifier)?i.createElement("span",{className:A.hovBtn,onClick:cr=>dr(cr,Tn)},"\u5F00\u542F\u5237\u9898"):i.createElement(i.Fragment,null,tn===0&&i.createElement("span",{className:A.statusText},"\u672A\u5F00\u542F"),tn===1&&i.createElement("span",{className:A.statusText},"\u8FDB\u884C\u4E2D"),tn===2&&i.createElement("span",{className:A.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(Ye==null?void 0:Ye.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:tn=>i.createElement("span",null,tn==null?void 0:tn.join("\u3001"))}:null,(Ye==null?void 0:Ye.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(Ye==null?void 0:Ye.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,ce.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(tn,Tn)=>i.createElement(g.Z,{className:"ml10",dropdownRender:()=>Cr(Tn==null?void 0:Tn.identifier,Tn)},i.createElement("span",{style:{cursor:"default"},onClick:cr=>cr.preventDefault()},i.createElement("span",null,"\u66F4\u591A"),i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:je&&(Ye==null?void 0:Ye.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(tn,Tn)=>Tn!=null&&Tn.is_self&&(Tn==null?void 0:Tn.practice_status)!==1?i.createElement(g.Z,{className:"ml10",dropdownRender:()=>zr(Tn==null?void 0:Tn.identifier,Tn)},i.createElement("span",{style:{cursor:"default"},onClick:cr=>cr.preventDefault()},i.createElement("span",null,"\u66F4\u591A"),i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(tn=>!!tn),Yn=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(tn,Tn)=>i.createElement("span",{className:A.hov,onClick:cr=>dr(cr,Tn)},tn)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:tn=>i.createElement(i.Fragment,null,tn===1&&i.createElement("span",{className:A["btn-style-1"]},"\u7B80\u5355"),tn===2&&i.createElement("span",{className:A["btn-style-2"]},"\u9002\u4E2D"),tn===3&&i.createElement("span",{className:A["btn-style-3"]},"\u56F0\u96BE"))},(Ye==null?void 0:Ye.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(Ye==null?void 0:Ye.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(Ye==null?void 0:Ye.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(Ye==null?void 0:Ye.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:(tn,Tn)=>{let cr;switch(Ye==null?void 0:Ye.filter){case"under_review":cr=i.createElement("div",{style:{display:"flex"}},i.createElement(H.ZP,{type:"link",size:"small",onClick:or=>dr(or,Tn)},"\u5BA1\u6838"),i.createElement(H.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:or=>Qn({e:or,record:Tn,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":cr=i.createElement(H.ZP,{type:"link",size:"small",onClick:or=>{_n(!0),vn(Tn)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:cr=i.createElement(H.ZP,{type:"link",block:!0,onClick:or=>Qn({e:or,record:Tn,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return cr}}].filter(tn=>!!tn),vn=tn=>R(void 0,null,function*(){jn([]);const Tn=yield(0,P.ZP)(`/api/practices/${tn.identifier}/review_list`,{method:"get"});jn(Tn==null?void 0:Tn.reviews_list)}),hn=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(tn,Tn)=>i.createElement("span",null,Z()(tn).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:(tn,Tn)=>tn==="5"||tn===5?i.createElement("div",{style:{display:"flex",alignItems:"center"}},i.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),i.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{rr(Tn.description),Zn(!0)}},"\u67E5\u770B\u539F\u56E0")):i.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,i.useEffect)(()=>{yr(),xn(Ye)},[]),(0,i.useEffect)(()=>{var tn;Ie.length!==0&&((tn=rn==null?void 0:rn.current)==null?void 0:tn.clientHeight)>98&&ve(1)},[Ie]),(0,i.useEffect)(()=>{var tn;$e.length!==0&&((tn=an==null?void 0:an.current)==null?void 0:tn.clientHeight)>98&&Ne(1)},[$e]),(0,i.useEffect)(()=>(Ke({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ke({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,i.useEffect)(()=>{var tn;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(tn=document.title)!=null&&tn.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[Y]),(0,i.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const xn=tn=>R(void 0,null,function*(){var Tn,cr;tn.search=encodeURIComponent(tn.search);const or=de().cloneDeep(tn);or.tag_discipline_id=(Tn=or.tag_discipline_id)!=null&&Tn.includes(-1)?[]:or.tag_discipline_id,or.source_discipline_id=(cr=or.source_discipline_id)!=null&&cr.includes(-1)?[]:or.source_discipline_id,console.log(or,"sendData"),Ge(!0),qt([]);const Br=yield(0,P.ZP)("/api/practices.json",{method:"get",params:or});mn([]),Ge(!1),ue(Br==null?void 0:Br.practices_count),qt(Br==null?void 0:Br.practices_list),Jn((Br==null?void 0:Br.recommend_subjects)||[])}),Qn=tn=>R(void 0,[tn],function*({op:Tn,description:cr,record:or,e:Br}){const ri={op:Tn,description:cr};Ge(!0);const vi=yield(0,P.ZP)(`/api/practices/${or.identifier}/review`,{method:"post",body:ri});Ge(!1),Tn==="claim"&&(vi.status===0||vi.status==="0")&&dr(Br,or),xn(Ye)}),tr=tn=>R(void 0,null,function*(){Ge(!0);const Tn=yield(0,P.ZP)(`/api/practices/${tn.identifier}/publish`,{method:"post"});Ge(!1),xn(Ye)}),yr=()=>R(void 0,null,function*(){var tn;const Tn=yield(0,P.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),cr=yield(0,P.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),or=yield(0,P.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Tn!=null&&Tn.tag_disciplines){const Br=[{id:-1,name:"\u5168\u90E8",count:Tn==null?void 0:Tn.totalCount},...Tn==null?void 0:Tn.tag_disciplines];Fe(Br)}if(cr!=null&&cr.tag_disciplines){const Br=[{id:-1,name:"\u5168\u90E8",count:cr==null?void 0:cr.totalCount},...cr==null?void 0:cr.tag_disciplines];ut(Br)}sn(or||{}),ct((tn=or==null?void 0:or.my_record)==null?void 0:tn.outsource)}),Er=(tn,Tn)=>{var cr;Ye.page=1;let or=Ye[`${Tn}_discipline_id`];(cr=Ye[`${Tn}_discipline_id`])!=null&&cr.includes(tn)?or=or.filter(Br=>Br!==tn):or.push(tn),tn===-1?or=[-1]:(or=or.filter(Br=>Br!==-1),or.length||(or=[-1])),Ye[`${Tn}_discipline_id`]=or,jt(E({},Ye)),xn(Ye)},$n=(tn,Tn)=>{Ye.page=1,Ye[Tn]=typeof tn=="number"?tn:null,jt(E({},Ye)),xn(Ye)},Sr=tn=>{Ye.page=1,Ye.save_search=tn,jt(E({},Ye))},Dr=(tn,Tn,cr)=>{Ye.page=tn==null?void 0:tn.current,Ye.per_page=tn==null?void 0:tn.pageSize,cr!=null&&cr.order?(Ye.sort_by=cr==null?void 0:cr.field,Ye.sort_direction=(cr==null?void 0:cr.order)==="ascend"?"asc":"desc"):(Ye.sort_by=null,Ye.sort_direction=null),jt(E({},Ye)),xn(Ye)},$r=tn=>{Ye.page=1,Ye.filter=tn,Ye.status=null,Ye.practice_status=null,jt(E({},Ye)),xn(Ye)},Mr=(tn,Tn)=>{if((Tn==null?void 0:Tn.length)===0){V.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const cr=()=>R(void 0,null,function*(){const or=yield(0,P.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Tn,op:tn}});if((or==null?void 0:or.status)===0){const Br=Dt.length===1&&Ye.page!==1?Ye.page-1:Ye.page;Ye.page=Br,jt(E({},Ye)),xn(Ye)}});if(tn===-1){l.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:cr});return}cr()},Or=i.createElement(y.default,null,(Ye==null?void 0:Ye.filter)==="public"?i.createElement(y.default.Item,{onClick:()=>Mr(0,nn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[i.createElement(y.default.Item,{key:2,onClick:()=>Mr(1,nn)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),i.createElement(y.default.Item,{key:1,onClick:()=>Mr(0,nn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,ce.Ny)()&&i.createElement(y.default.Item,{onClick:()=>Vr()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(Ye==null?void 0:Ye.filter)!=="public"&&i.createElement(y.default.Item,{onClick:()=>Mr(-1,nn)},"\u6279\u91CF\u5220\u9664")),Cr=(tn,Tn)=>i.createElement(y.default,null,(Tn==null?void 0:Tn.practice_status)===1?i.createElement(y.default.Item,{onClick:()=>Mr(0,[tn])},"\u79FB\u51FA\u516C\u5171"):i.createElement(y.default.Item,{onClick:()=>Mr(1,[tn])},"\u79FB\u5165\u516C\u5171"),(Ye==null?void 0:Ye.filter)==="mine"?i.createElement(y.default.Item,{onClick:()=>tr(Tn),disabled:![0,4,5].includes(Tn.practice_status)},[0,4,5].includes(Tn.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,i.createElement(y.default.Item,{onClick:()=>(0,De.xg)(`/problems/${tn}/ojedit`)},"\u7F16\u8F91"),(Ye==null?void 0:Ye.filter)!=="public"&&i.createElement(y.default.Item,{onClick:()=>Mr(-1,[tn])},"\u5220\u9664")),zr=(tn,Tn)=>i.createElement(y.default,null,i.createElement(y.default.Item,{onClick:()=>tr(Tn),disabled:![0,4,5].includes(Tn.practice_status)},[0,4,5].includes(Tn.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),i.createElement(y.default.Item,{onClick:()=>(0,De.xg)(`/problems/${tn}/ojedit`)},"\u7F16\u8F91"),i.createElement(y.default.Item,{onClick:()=>Mr(-1,[tn])},"\u5220\u9664")),wr=tn=>{mn(tn)},Vr=()=>{if(!nn.length){V.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let tn=null;l.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:i.createElement("div",null,i.createElement("p",{className:"mt20"},"\u5DF2\u9009",i.createElement("span",{className:"c-light-primary"},nn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),i.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),i.createElement(M.default.Group,{className:"mt3",onChange:Tn=>{tn=Tn,document.getElementById("send-to-modal").style.display="none"}},i.createElement(M.default,{value:"c"},"C\u8BED\u8A00"),i.createElement(M.default,{value:"c++"},"C++\u8BED\u8A00"),i.createElement(M.default,{value:"java"},"Java\u8BED\u8A00"),i.createElement(M.default,{value:"python"},"Python\u8BED\u8A00")),i.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>R(void 0,null,function*(){if(!(tn!=null&&tn.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Tn=yield(0,P.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:nn,language:tn}});(Tn==null?void 0:Tn.status)===0&&V.ZP.success("\u53D1\u9001\u6210\u529F")})})},Ir={selectedRowKeys:nn,columnWidth:40,onChange:wr};return i.createElement("section",{className:A.wrap},i.createElement(w.jL,{img:se,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:i.createElement(g.Z,{dropdownRender:()=>{var tn,Tn;return i.createElement(y.default,null,i.createElement(y.default.Item,{key:1,onClick:()=>{U.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),i.createElement(y.default.Item,{key:2,onClick:()=>{U.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"),!((tn=Y==null?void 0:Y.setting)!=null&&tn.main_site)&&!((Tn=Y==null?void 0:Y.setting)!=null&&Tn.is_local)&&i.createElement(y.default.Item,{key:3,onClick:()=>{On(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u9898"))}},i.createElement("div",{className:A.addQuestion,style:{visibility:(0,ce.Ny)()||je||!((st=Y==null?void 0:Y.setting)!=null&&st.main_site)&&!((_t=Y==null?void 0:Y.setting)!=null&&_t.is_local)&&(0,ce.EO)()?"visible":"hidden"}},i.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),i.createElement("div",{className:A.content},i.createElement("div",{className:A.left},i.createElement(b.Z,{className:`${A.filterPoint} mb10`,align:"top"},i.createElement(C.Z,{className:A.filterType},"\u77E5\u8BC6\u70B9"),i.createElement(C.Z,{className:A.btnWarp,ref:rn,style:re>0?{height:re===1?76:"auto"}:{}},Ie==null?void 0:Ie.map(tn=>{var Tn;return i.createElement("div",{onClick:()=>Er(tn.id,"tag"),key:tn.id,className:(Tn=Ye==null?void 0:Ye.tag_discipline_id)!=null&&Tn.includes(tn.id)?`${A.btn} ${A.btnActive}`:A.btn},i.createElement("span",{title:tn.name},tn.name),i.createElement("span",{className:A.count,style:{display:tn.count?"block":"none"}},tn.count))})),!!re&&i.createElement(C.Z,{className:A.fold},re===1?i.createElement("div",{onClick:()=>ve(2),className:A.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>ve(1),className:A.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!$e.length&&i.createElement(b.Z,{className:A.filterPoint,align:"top",style:{marginBottom:22}},i.createElement(C.Z,{className:A.filterType},"\u6765\u6E90"),i.createElement(C.Z,{className:A.btnWarp,ref:an,style:wt>0?{height:wt===1?76:"auto"}:{}},$e==null?void 0:$e.map(tn=>{var Tn;return i.createElement("div",{onClick:()=>Er(tn.id,"source"),key:tn.id,className:(Tn=Ye==null?void 0:Ye.source_discipline_id)!=null&&Tn.includes(tn.id)?`${A.btn} ${A.btnActive}`:A.btn},i.createElement("span",{title:tn.name},tn.name),i.createElement("span",{className:A.count},tn.count))}),!!wt&&i.createElement(C.Z,{className:A.fold},wt===1?i.createElement("div",{onClick:()=>Ne(2),className:A.action},"\u5C55\u5F00",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):i.createElement("div",{onClick:()=>Ne(1),className:A.action},"\u6536\u8D77",i.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),i.createElement("div",{className:A.control},i.createElement(T.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:Ye==null?void 0:Ye.difficulty,onChange:tn=>$n(tn,"difficulty")},i.createElement(T.default.Option,{value:1},"\u7B80\u5355"),i.createElement(T.default.Option,{value:2},"\u9002\u4E2D"),i.createElement(T.default.Option,{value:3},"\u56F0\u96BE")),(0,ce.bg)()&&Ye.filter==="public"&&i.createElement(T.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ye==null?void 0:Ye.status,onChange:tn=>$n(tn,"status")},i.createElement(T.default.Option,{value:0},"\u672A\u5F00\u542F"),i.createElement(T.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),i.createElement(T.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,ce.bg)()&&Ye.filter==="mine"&&i.createElement(T.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ye==null?void 0:Ye.practice_status,onChange:tn=>$n(tn,"practice_status")},i.createElement(T.default.Option,{value:0},"\u672A\u53D1\u5E03"),i.createElement(T.default.Option,{value:1},"\u5DF2\u516C\u5F00"),i.createElement(T.default.Option,{value:2},"\u672A\u5BA1\u6838"),i.createElement(T.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),i.createElement(T.default.Option,{value:4},"\u672A\u516C\u5F00"),i.createElement(T.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,ce.bg)()&&Ye.filter==="all"&&i.createElement(T.default,{suffixIcon:i.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:Ye==null?void 0:Ye.practice_status,onChange:tn=>$n(tn,"practice_status")},i.createElement(T.default.Option,{value:0},"\u672A\u53D1\u5E03"),i.createElement(T.default.Option,{value:1},"\u5DF2\u516C\u5F00"),i.createElement(T.default.Option,{value:2},"\u672A\u5BA1\u6838"),i.createElement(T.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),i.createElement(T.default.Option,{value:4},"\u672A\u516C\u5F00"),i.createElement(T.default.Option,{value:5},"\u672A\u901A\u8FC7")),i.createElement($.default.Search,{className:A.search,size:"large",suffix:i.createElement("i",{className:`iconfont icon-sousuo9 font14 ${A.searchIcon}`,onClick:()=>{Ye.page=1,Ye.search=Ye.save_search,jt(E({},Ye)),Ye.save_search&&(0,It.tk)({name:Ye.save_search,copywriting:Ye.save_search,position:"Practice"}),xn(Ye)}}),placeholder:(0,ce.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:Ye==null?void 0:Ye.save_search,onChange:tn=>Sr(tn.target.value),onSearch:tn=>{Ye.page=1,Ye.search=Ye.save_search,jt(E({},Ye)),tn&&(0,It.tk)({name:tn,copywriting:tn,position:"Practice"}),xn(Ye)}})),i.createElement("div",{className:A.table},i.createElement("div",{className:A.tabWarp,style:(0,ce.Ny)()||je?{}:{height:10,border:0}},(0,ce.Ny)()?i.createElement(W.default,{className:A.tab,activeKey:bn?"not_reviewed":Ye.filter,onChange:$r,tabBarExtraContent:!bn&&i.createElement(g.Z,{dropdownRender:()=>Or},i.createElement("span",{className:"ant-dropdown-link font14 current",onClick:tn=>tn.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",i.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},i.createElement(W.default.TabPane,{tab:"\u516C\u5171",key:"public"}),i.createElement(W.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),i.createElement(W.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),i.createElement(W.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):je?i.createElement(W.default,{className:A.tab,activeKey:bn?"not_reviewed":Ye.filter,onChange:$r},i.createElement(W.default.TabPane,{tab:"\u516C\u5171",key:"public"}),i.createElement(W.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),i.createElement(W.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),bn?i.createElement("div",{className:A.tabWarp,style:(0,ce.Ny)()||je?{}:{height:10,border:0}},i.createElement(W.default,{className:A.tab,activeKey:Ye.filter,onChange:$r},i.createElement(W.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),i.createElement(W.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),i.createElement(W.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,ce.Ny)()||je)&&sr&&i.createElement("div",{className:A.tabWarp2,style:{justifyContent:"end"}},Rn?i.createElement(b.Z,{align:"middle"},i.createElement(b.Z,{onClick:()=>Tt(!0),align:"middle",className:"current"},i.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),i.createElement("span",null,"\u5DF2\u9009",i.createElement("span",{className:"c-light-primary"},nn.length),"\u4E2A")),i.createElement(H.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Bn(!1),mn([])},type:"primary"},"\u53D6\u6D88"),i.createElement(H.ZP,{onClick:Vr,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):i.createElement(H.ZP,{onClick:()=>Bn(!0),type:"primary"},i.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),i.createElement(X.default,{rowSelection:(0,ce.Ny)()||Rn?Ir:void 0,className:A.customTable,dataSource:Dt,bordered:!1,rowKey:tn=>tn.identifier,columns:bn?Yn:ur,rowClassName:A.row,loading:Jt,onRow:tn=>({onMouseEnter:Tn=>{Mt(tn==null?void 0:tn.identifier)},onMouseLeave:Tn=>{Mt(null)}}),onChange:Dr,pagination:{pageSize:Ye.per_page,total:Be,current:Ye.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:tn=>i.createElement("span",{className:"mr10"},"\u5171",i.createElement("span",{className:"c-orange"},tn),"\u6761\u6570\u636E")}}))),i.createElement("div",{className:A.right},i.createElement("div",{className:A.statistics},i.createElement("span",{className:"sprite sprite-45"}),i.createElement("div",{className:A.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),i.createElement(b.Z,{justify:"space-between"},i.createElement(C.Z,{className:A.statisticItem},i.createElement("div",{className:A.rate},(0,ce.bg)()?((xe=Gt==null?void 0:Gt.my_record)==null?void 0:xe.passed_ratio)||0:"-"),i.createElement("div",{className:A.dataName},"\u901A\u8FC7\u7387(%)")),i.createElement(C.Z,{className:A.statisticItem},i.createElement("div",{className:A.rate},(0,ce.bg)()?((_e=Gt==null?void 0:Gt.my_record)==null?void 0:_e.passed_count)||0:"-"),i.createElement("div",{className:A.dataName},"\u5237\u9898\u6570")),i.createElement(C.Z,{className:A.statisticItem},i.createElement("div",{className:A.rate},(0,ce.bg)()?(Qe=(et=Gt==null?void 0:Gt.my_record)==null?void 0:et.time_count)==null?void 0:Qe.toFixed(2):"-"),i.createElement("div",{className:A.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((z=Gt==null?void 0:Gt.rank_list)!=null&&z.length)&&i.createElement(i.Fragment,null,((Rt=Ft.userInfo)==null?void 0:Rt.user_id)!=2&&(0,ce.JA)()&&((ge=Y==null?void 0:Y.setting)==null?void 0:ge.main_site)&&Xn&&(Gn==null?void 0:Gn.length)>0&&i.createElement("div",{className:A.problemsclose,style:{position:"relative"}},i.createElement(G.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},Gn==null?void 0:Gn.map((tn,Tn)=>i.createElement("div",{style:{display:"flex"},key:Tn},i.createElement("a",{href:`/paths/${tn.identifier}`},i.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:Q.Z.IMG_SERVER+"/"+tn.image_url}))))),i.createElement("img",{className:A.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",Z()().add(1,"days").unix()+""),Wn(!1)},src:dt})),i.createElement("div",{className:A.sort},i.createElement("div",{className:A.rankHeader},i.createElement("span",{className:`sprite sprite-46 ${A.rankIcon}`})),!!((Ht=Gt==null?void 0:Gt.my_record)!=null&&Ht.rank)&&i.createElement("div",{className:`${A.myRecord} ${A.li}`},i.createElement("span",{className:`${A.recordPrefix} ${A.mine}`},"\u6211\u7684"),i.createElement("img",{className:A.avatar,src:Q.Z.IMG_SERVER+"/images/"+((cn=Gt==null?void 0:Gt.my_record)==null?void 0:cn.image_url)}),i.createElement("span",{title:(mt=Gt==null?void 0:Gt.my_record)==null?void 0:mt.nickname,className:A.nickname},(ne=Gt==null?void 0:Gt.my_record)==null?void 0:ne.nickname),i.createElement("span",{className:A.myRank},((we=Gt==null?void 0:Gt.my_record)==null?void 0:we.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(B=Gt==null?void 0:Gt.my_record)==null?void 0:B.rank}\u540D`),i.createElement("span",{className:A.questionNumber},(xt=Gt==null?void 0:Gt.my_record)==null?void 0:xt.passed_count,"\u9898")),(lt=Gt==null?void 0:Gt.rank_list)==null?void 0:lt.map((tn,Tn)=>{let cr=Tn+1;return Tn===0&&(cr=S.Z),Tn===1&&(cr=q.Z),Tn===2&&(cr=te.Z),i.createElement("div",{className:A.li,key:Tn},typeof cr=="number"?i.createElement("span",{className:A.recordPrefix},cr):i.createElement("span",{className:A.recordPrefix},i.createElement("img",{src:cr})),i.createElement("img",{className:A.avatar,src:Q.Z.IMG_SERVER+"/images/"+(tn==null?void 0:tn.image_url)}),i.createElement("span",{title:tn==null?void 0:tn.nickname,className:A.nickname},tn==null?void 0:tn.nickname),i.createElement("span",{className:A.questionNumber},tn.passed_count,"\u9898"))}))))),Fn&&i.createElement(kt,{setScoreShow:On,isshixuns:!1,ScoreShow:!!Fn,isloadings:!1,onOk:tn=>R(void 0,null,function*(){if(!tn.length){V.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const Tn=yield(0,P.ZP)(`/api/item_banks/${tn==null?void 0:tn[0]}/send_to_practice`,{method:"post",body:{ids:tn}});(Tn==null?void 0:Tn.status)==0&&(V.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ye.filter="mine",jt(E({},Ye)),On(!1),xn(Ye))})}),i.createElement(l.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:In,onOk:()=>{},onCancel:()=>{_n(!1)},footer:null,closable:!0},i.createElement(X.default,{dataSource:Dn,columns:hn})),i.createElement(l.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Cn,onOk:()=>{},onCancel:()=>{Zn(!1)},footer:null,closable:!0},i.createElement(O.Z,{value:Ln})),i.createElement(l.default,{open:ln,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>Tt(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>R(void 0,null,function*(){Tt(!1),Vr()}),title:"\u67E5\u770B\u5DF2\u9009"},i.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",nn==null?void 0:nn.length,"\u4E2A"),i.createElement("div",{style:{height:400,overflow:"auto"}},(ot=Dt==null?void 0:Dt.filter(tn=>nn.includes(tn.identifier)))==null?void 0:ot.map((tn,Tn)=>{var cr,or;return i.createElement("div",{key:Tn,className:A.sendModal},i.createElement("div",{className:A.li},i.createElement("p",null,tn==null?void 0:tn.name),i.createElement("div",{className:A.bottom},i.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),i.createElement("i",{className:A.line}),i.createElement("span",{className:"c-grey-333"},tn.difficulty===1&&"\u7B80\u5355",tn.difficulty===2&&"\u9002\u4E2D",tn.difficulty===3&&"\u56F0\u96BE"),i.createElement("i",{className:A.line}),i.createElement("span",null,"\u521B\u5EFA\u8005\xA0",i.createElement(L.Z,{title:tn==null?void 0:tn.creator},i.createElement("span",{className:"c-grey-333"},((cr=tn==null?void 0:tn.creator)==null?void 0:cr.length)>6?((or=tn==null?void 0:tn.creator)==null?void 0:or.substr(0,3))+"...":tn==null?void 0:tn.creator))),i.createElement("i",{className:A.line}),i.createElement("span",{className:A.des},"\u66F4\u65B0\xA0",i.createElement("span",{className:"c-grey-333"},tn==null?void 0:tn.updated_at)))),i.createElement("div",{className:A.del,onClick:()=>{mn(nn.filter(Br=>Br!==tn.identifier))}},"\u5220\u9664"))}))))};var ae=(0,U.connect)(({user:Y,globalSetting:Ft})=>({user:Y,globalSetting:Ft}))(at)},74410:function(zn,Pt,u){"use strict";u.d(Pt,{AL:function(){return P},Iy:function(){return M},Qv:function(){return T},ez:function(){return Q},jb:function(){return b}});var i=u(32834),U=u.n(i),O=u(11690),fe=u.n(O);let Z=1;function g(ze,Je){const Pe=ze.match(/^(\s+)(?:```)/);if(Pe===null)return Je;const Ze=Pe[1];return Je.split(`
`).map(le=>{const N=le.match(/^\s+/);if(N===null)return le;const[S]=N;return S.length>=Ze.length?le.slice(Ze.length):le}).join(`
`)}let H=[],V=["<ul>"];const l=new(U()).Renderer,y=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function M(){H.length=0,V=["<ul>"]}const b={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function C(ze,Je,Pe,Ze){if(Je>=ze.length||ze[Je].level<=Pe)return Je;var le=ze[Je];Ze.push("<li><a href='#"+Z+le.anchor+"'>"+le.text+"</a>"),Je++;var N=[];return Je=C(ze,Je,le.level,N),N.length>0&&(Ze.push("<ul>"),N.forEach(function(S){Ze.push(S)}),Ze.push("</ul>")),Ze.push("</li>"),Je=C(ze,Je,Pe,Ze),Je}function T(){return C(H,0,0,V),V.push("</ul>"),V.join("")}const $={heading(ze){const Je=y.exec(ze);if(Z+=1,Je)return{type:"heading",raw:Je[0],depth:Je[1].length,text:Je[2]}},fences(ze){const Je=this.rules.block.fences.exec(ze);if(Je){const Pe=Je[0];let Ze=g(Pe,Je[3]||"");const le=Je[2]?Je[2].trim():Je[2];if(["latex","katex","math"].indexOf(le)>=0){const N=G(),S=Ze;Ze=N,L[N]={type:"block",expression:S}}return{type:"code",raw:Pe,lang:le,text:Ze}}}},W=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let X=0;const G=()=>`__special_katext_id_${X++}__`;let L={};function Q(){return L}function P(){X=0,L={}}function A(ze){return ze=ze.replace(W,(Je,Pe)=>{const Ze=G();return L[Ze]={type:"inline",expression:Pe},Ze}),ze}const ce=l.listitem;l.listitem=function(ze){return ce(A(ze))};const Ee=l.paragraph;l.paragraph=function(ze){return Ee(A(ze))};const pe=l.tablecell;l.tablecell=function(ze,Je){return pe(A(ze),Je)},l.code=function(ze,Je,Pe){const Ze=(Je||"").match(/\S*/)[0];return Ze?["latex","katex","math"].indexOf(Ze)>=0?`<p class='editormd-tex'>${ze}</p>`:`<pre class="prettyprint linenums"><code class="language-${Je}">${Pe?ze:(0,O.escape)(ze,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Pe?ze:(0,O.escape)(ze,!0))+"</code></pre>"},l.heading=function(ze,Je,Pe){let Ze=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return H.push({anchor:Ze,level:Je,text:ze}),"<h"+Je+' id="'+Z+Ze+'">'+ze+"</h"+Je+">"},U().setOptions({silent:!0,gfm:!0,pedantic:!1}),U().use({tokenizer:$,renderer:l}),Pt.ZP=U()},29509:function(zn,Pt,u){"use strict";u.d(Pt,{o2:function(){return Z},yT:function(){return g}});var i=u(94480),U=u(34998);const O=U.i.map(H=>`${H}-inverse`),fe=["success","processing","error","default","warning"];function Z(H){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,i.Z)(O),(0,i.Z)(U.i)).includes(H):U.i.includes(H)}function g(H){return fe.includes(H)}},9981:function(zn,Pt){"use strict";const u=function(){const i=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let U=1;U<arguments.length;U++){const O=U<0||arguments.length<=U?void 0:arguments[U];O&&Object.keys(O).forEach(fe=>{const Z=O[fe];Z!==void 0&&(i[fe]=Z)})}return i};Pt.Z=u},99402:function(zn,Pt,u){"use strict";u.d(Pt,{T:function(){return U},n:function(){return i}});function i(O){return["small","middle","large"].includes(O)}function U(O){return O?typeof O=="number"&&!Number.isNaN(O):!1}},86013:function(zn,Pt,u){"use strict";var i=u(59301),U=u(19248);const O=fe=>{let Z;return typeof fe=="object"&&(fe!=null&&fe.clearIcon)?Z=fe:fe&&(Z={clearIcon:i.createElement(U.Z,null)}),Z};Pt.Z=O},54500:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return i}});const i=U=>U?typeof U=="function"?U():U:null},97224:function(zn,Pt,u){"use strict";u.d(Pt,{F:function(){return i}});function i(O){return O!=null&&O===O.window}const U=O=>{var fe,Z;if(typeof window=="undefined")return 0;let g=0;return i(O)?g=O.pageYOffset:O instanceof Document?g=O.documentElement.scrollTop:(O instanceof HTMLElement||O)&&(g=O.scrollTop),O&&!i(O)&&typeof g!="number"&&(g=(Z=((fe=O.ownerDocument)!==null&&fe!==void 0?fe:O).documentElement)===null||Z===void 0?void 0:Z.scrollTop),g};Pt.Z=U},52838:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return g}});var i=u(37645);function U(H,V,l,y){if(y===!1)return{adjustX:!1,adjustY:!1};const M=y&&typeof y=="object"?y:{},b={};switch(H){case"top":case"bottom":b.shiftX=V.arrowOffsetHorizontal*2+l,b.shiftY=!0,b.adjustY=!0;break;case"left":case"right":b.shiftY=V.arrowOffsetVertical*2+l,b.shiftX=!0,b.adjustX=!0;break}const C=Object.assign(Object.assign({},b),M);return C.shiftX||(C.adjustX=!0),C.shiftY||(C.adjustY=!0),C}const O={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"]}},fe={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"]}},Z=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(H){const{arrowWidth:V,autoAdjustOverflow:l,arrowPointAtCenter:y,offset:M,borderRadius:b,visibleFirst:C}=H,T=V/2,$={};return Object.keys(O).forEach(W=>{const X=y&&fe[W]||O[W],G=Object.assign(Object.assign({},X),{offset:[0,0],dynamicInset:!0});switch($[W]=G,Z.has(W)&&(G.autoArrow=!1),W){case"top":case"topLeft":case"topRight":G.offset[1]=-T-M;break;case"bottom":case"bottomLeft":case"bottomRight":G.offset[1]=T+M;break;case"left":case"leftTop":case"leftBottom":G.offset[0]=-T-M;break;case"right":case"rightTop":case"rightBottom":G.offset[0]=T+M;break}const L=(0,i.wZ)({contentRadius:b,limitVerticalRadius:!0});if(y)switch(W){case"topLeft":case"bottomLeft":G.offset[0]=-L.arrowOffsetHorizontal-T;break;case"topRight":case"bottomRight":G.offset[0]=L.arrowOffsetHorizontal+T;break;case"leftTop":case"rightTop":G.offset[1]=-L.arrowOffsetHorizontal*2+T;break;case"leftBottom":case"rightBottom":G.offset[1]=L.arrowOffsetHorizontal*2-T;break}G.overflow=U(W,L,V,l),C&&(G.htmlRegion="visibleFirst")}),$}},83010:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return fe}});var i=u(16089);function U(Z,g,H,V){const l=H-g;return Z/=V/2,Z<1?l/2*Z*Z*Z+g:l/2*((Z-=2)*Z*Z+2)+g}var O=u(97224);function fe(Z){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:H=()=>window,callback:V,duration:l=450}=g,y=H(),M=(0,O.Z)(y),b=Date.now(),C=()=>{const $=Date.now()-b,W=U($>l?l:$,M,Z,l);(0,O.F)(y)?y.scrollTo(window.pageXOffset,W):y instanceof Document||y.constructor.name==="HTMLDocument"?y.documentElement.scrollTop=W:y.scrollTop=W,$<l?(0,i.Z)(C):typeof V=="function"&&V()};(0,i.Z)(C)}},82855:function(zn,Pt,u){"use strict";u.d(Pt,{F:function(){return Z},Z:function(){return fe}});var i=u(92310),U=u.n(i);const O=null;function fe(g,H,V){return U()({[`${g}-status-success`]:H==="success",[`${g}-status-warning`]:H==="warning",[`${g}-status-error`]:H==="error",[`${g}-status-validating`]:H==="validating",[`${g}-has-feedback`]:V})}const Z=(g,H)=>H||g},84022:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return cn}});var i=u(59301),U=u(54476),O=u(33885),fe=u(67732),Z=u(83652),g=u(85458),H=u(75538),V=u(58289),l=u(42403),y=u(20068),M=u(76190),b=u(75931),C={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},T=C,$=u(53280),W=u(92310),X=u.n(W),G={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(ne){return i.createElement("ul",{style:{display:"block"}},ne)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(ne){return i.createElement("button",null,ne+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},L=G;function Q(mt,ne,we){return Math.max(ne,Math.min(mt,we))}var P=function(ne){var we=["onTouchStart","onTouchMove","onWheel"];we.includes(ne._reactName)||ne.preventDefault()},A=function(ne){for(var we=[],B=Ee(ne),xt=pe(ne),lt=B;lt<xt;lt++)ne.lazyLoadedList.indexOf(lt)<0&&we.push(lt);return we},ce=function(ne){for(var we=[],B=Ee(ne),xt=pe(ne),lt=B;lt<xt;lt++)we.push(lt);return we},Ee=function(ne){return ne.currentSlide-ze(ne)},pe=function(ne){return ne.currentSlide+Je(ne)},ze=function(ne){return ne.centerMode?Math.floor(ne.slidesToShow/2)+(parseInt(ne.centerPadding)>0?1:0):0},Je=function(ne){return ne.centerMode?Math.floor((ne.slidesToShow-1)/2)+1+(parseInt(ne.centerPadding)>0?1:0):ne.slidesToShow},Pe=function(ne){return ne&&ne.offsetWidth||0},Ze=function(ne){return ne&&ne.offsetHeight||0},le=function(ne){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,B,xt,lt,ot;return B=ne.startX-ne.curX,xt=ne.startY-ne.curY,lt=Math.atan2(xt,B),ot=Math.round(lt*180/Math.PI),ot<0&&(ot=360-Math.abs(ot)),ot<=45&&ot>=0||ot<=360&&ot>=315?"left":ot>=135&&ot<=225?"right":we===!0?ot>=35&&ot<=135?"up":"down":"vertical"},N=function(ne){var we=!0;return ne.infinite||(ne.centerMode&&ne.currentSlide>=ne.slideCount-1||ne.slideCount<=ne.slidesToShow||ne.currentSlide>=ne.slideCount-ne.slidesToShow)&&(we=!1),we},S=function(ne,we){var B={};return we.forEach(function(xt){return B[xt]=ne[xt]}),B},q=function(ne){var we=i.Children.count(ne.children),B=ne.listRef,xt=Math.ceil(Pe(B)),lt=ne.trackRef&&ne.trackRef.node,ot=Math.ceil(Pe(lt)),$t;if(ne.vertical)$t=xt;else{var Bt=ne.centerMode&&parseInt(ne.centerPadding)*2;typeof ne.centerPadding=="string"&&ne.centerPadding.slice(-1)==="%"&&(Bt*=xt/100),$t=Math.ceil((xt-Bt)/ne.slidesToShow)}var zt=B&&Ze(B.querySelector('[data-index="0"]')),re=zt*ne.slidesToShow,ve=ne.currentSlide===void 0?ne.initialSlide:ne.currentSlide;ne.rtl&&ne.currentSlide===void 0&&(ve=we-1-ne.initialSlide);var wt=ne.lazyLoadedList||[],Ne=A((0,O.Z)((0,O.Z)({},ne),{},{currentSlide:ve,lazyLoadedList:wt}));wt=wt.concat(Ne);var Be={slideCount:we,slideWidth:$t,listWidth:xt,trackWidth:ot,currentSlide:ve,slideHeight:zt,listHeight:re,lazyLoadedList:wt};return ne.autoplaying===null&&ne.autoplay&&(Be.autoplaying="playing"),Be},te=function(ne){var we=ne.waitForAnimate,B=ne.animating,xt=ne.fade,lt=ne.infinite,ot=ne.index,$t=ne.slideCount,Bt=ne.lazyLoad,zt=ne.currentSlide,re=ne.centerMode,ve=ne.slidesToScroll,wt=ne.slidesToShow,Ne=ne.useCSS,Be=ne.lazyLoadedList;if(we&&B)return{};var ue=ot,Ie,Fe,$e,ut={},Gt={},sn=lt?ot:Q(ot,0,$t-1);if(xt){if(!lt&&(ot<0||ot>=$t))return{};ot<0?ue=ot+$t:ot>=$t&&(ue=ot-$t),Bt&&Be.indexOf(ue)<0&&(Be=Be.concat(ue)),ut={animating:!0,currentSlide:ue,lazyLoadedList:Be,targetSlide:ue},Gt={animating:!1,targetSlide:ue}}else Ie=ue,ue<0?(Ie=ue+$t,lt?$t%ve!==0&&(Ie=$t-$t%ve):Ie=0):!N(ne)&&ue>zt?ue=Ie=zt:re&&ue>=$t?(ue=lt?$t:$t-1,Ie=lt?0:$t-1):ue>=$t&&(Ie=ue-$t,lt?$t%ve!==0&&(Ie=0):Ie=$t-wt),!lt&&ue+wt>=$t&&(Ie=$t-wt),Fe=Me((0,O.Z)((0,O.Z)({},ne),{},{slideIndex:ue})),$e=Me((0,O.Z)((0,O.Z)({},ne),{},{slideIndex:Ie})),lt||(Fe===$e&&(ue=Ie),Fe=$e),Bt&&(Be=Be.concat(A((0,O.Z)((0,O.Z)({},ne),{},{currentSlide:ue})))),Ne?(ut={animating:!0,currentSlide:Ie,trackStyle:St((0,O.Z)((0,O.Z)({},ne),{},{left:Fe})),lazyLoadedList:Be,targetSlide:sn},Gt={animating:!1,currentSlide:Ie,trackStyle:ht((0,O.Z)((0,O.Z)({},ne),{},{left:$e})),swipeLeft:null,targetSlide:sn}):ut={currentSlide:Ie,trackStyle:ht((0,O.Z)((0,O.Z)({},ne),{},{left:$e})),lazyLoadedList:Be,targetSlide:sn};return{state:ut,nextState:Gt}},se=function(ne,we){var B,xt,lt,ot,$t,Bt=ne.slidesToScroll,zt=ne.slidesToShow,re=ne.slideCount,ve=ne.currentSlide,wt=ne.targetSlide,Ne=ne.lazyLoad,Be=ne.infinite;if(ot=re%Bt!==0,B=ot?0:(re-ve)%Bt,we.message==="previous")lt=B===0?Bt:zt-B,$t=ve-lt,Ne&&!Be&&(xt=ve-lt,$t=xt===-1?re-1:xt),Be||($t=wt-Bt);else if(we.message==="next")lt=B===0?Bt:B,$t=ve+lt,Ne&&!Be&&($t=(ve+Bt)%re+B),Be||($t=wt+Bt);else if(we.message==="dots")$t=we.index*we.slidesToScroll;else if(we.message==="children"){if($t=we.index,Be){var ue=vt((0,O.Z)((0,O.Z)({},ne),{},{targetSlide:$t}));$t>we.currentSlide&&ue==="left"?$t=$t-re:$t<we.currentSlide&&ue==="right"&&($t=$t+re)}}else we.message==="index"&&($t=Number(we.index));return $t},w=function(ne,we,B){return ne.target.tagName.match("TEXTAREA|INPUT|SELECT")||!we?"":ne.keyCode===37?B?"next":"previous":ne.keyCode===39?B?"previous":"next":""},I=function(ne,we,B){return ne.target.tagName==="IMG"&&P(ne),!we||!B&&ne.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:ne.touches?ne.touches[0].pageX:ne.clientX,startY:ne.touches?ne.touches[0].pageY:ne.clientY,curX:ne.touches?ne.touches[0].pageX:ne.clientX,curY:ne.touches?ne.touches[0].pageY:ne.clientY}}},de=function(ne,we){var B=we.scrolling,xt=we.animating,lt=we.vertical,ot=we.swipeToSlide,$t=we.verticalSwiping,Bt=we.rtl,zt=we.currentSlide,re=we.edgeFriction,ve=we.edgeDragged,wt=we.onEdge,Ne=we.swiped,Be=we.swiping,ue=we.slideCount,Ie=we.slidesToScroll,Fe=we.infinite,$e=we.touchObject,ut=we.swipeEvent,Gt=we.listHeight,sn=we.listWidth;if(!B){if(xt)return P(ne);lt&&ot&&$t&&P(ne);var je,ct={},Dt=Me(we);$e.curX=ne.touches?ne.touches[0].pageX:ne.clientX,$e.curY=ne.touches?ne.touches[0].pageY:ne.clientY,$e.swipeLength=Math.round(Math.sqrt(Math.pow($e.curX-$e.startX,2)));var qt=Math.round(Math.sqrt(Math.pow($e.curY-$e.startY,2)));if(!$t&&!Be&&qt>10)return{scrolling:!0};$t&&($e.swipeLength=qt);var Jt=(Bt?-1:1)*($e.curX>$e.startX?1:-1);$t&&(Jt=$e.curY>$e.startY?1:-1);var Ge=Math.ceil(ue/Ie),ft=le(we.touchObject,$t),Mt=$e.swipeLength;return Fe||(zt===0&&(ft==="right"||ft==="down")||zt+1>=Ge&&(ft==="left"||ft==="up")||!N(we)&&(ft==="left"||ft==="up"))&&(Mt=$e.swipeLength*re,ve===!1&&wt&&(wt(ft),ct.edgeDragged=!0)),!Ne&&ut&&(ut(ft),ct.swiped=!0),lt?je=Dt+Mt*(Gt/sn)*Jt:Bt?je=Dt-Mt*Jt:je=Dt+Mt*Jt,$t&&(je=Dt+Mt*Jt),ct=(0,O.Z)((0,O.Z)({},ct),{},{touchObject:$e,swipeLeft:je,trackStyle:ht((0,O.Z)((0,O.Z)({},we),{},{left:je}))}),Math.abs($e.curX-$e.startX)<Math.abs($e.curY-$e.startY)*.8||$e.swipeLength>10&&(ct.swiping=!0,P(ne)),ct}},De=function(ne,we){var B=we.dragging,xt=we.swipe,lt=we.touchObject,ot=we.listWidth,$t=we.touchThreshold,Bt=we.verticalSwiping,zt=we.listHeight,re=we.swipeToSlide,ve=we.scrolling,wt=we.onSwipe,Ne=we.targetSlide,Be=we.currentSlide,ue=we.infinite;if(!B)return xt&&P(ne),{};var Ie=Bt?zt/$t:ot/$t,Fe=le(lt,Bt),$e={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(ve||!lt.swipeLength)return $e;if(lt.swipeLength>Ie){P(ne),wt&&wt(Fe);var ut,Gt,sn=ue?Be:Ne;switch(Fe){case"left":case"up":Gt=sn+Te(we),ut=re?It(we,Gt):Gt,$e.currentDirection=0;break;case"right":case"down":Gt=sn-Te(we),ut=re?It(we,Gt):Gt,$e.currentDirection=1;break;default:ut=sn}$e.triggerSlideHandler=ut}else{var je=Me(we);$e.trackStyle=St((0,O.Z)((0,O.Z)({},we),{},{left:je}))}return $e},dt=function(ne){for(var we=ne.infinite?ne.slideCount*2:ne.slideCount,B=ne.infinite?ne.slidesToShow*-1:0,xt=ne.infinite?ne.slidesToShow*-1:0,lt=[];B<we;)lt.push(B),B=xt+ne.slidesToScroll,xt+=Math.min(ne.slidesToScroll,ne.slidesToShow);return lt},It=function(ne,we){var B=dt(ne),xt=0;if(we>B[B.length-1])we=B[B.length-1];else for(var lt in B){if(we<B[lt]){we=xt;break}xt=B[lt]}return we},Te=function(ne){var we=ne.centerMode?ne.slideWidth*Math.floor(ne.slidesToShow/2):0;if(ne.swipeToSlide){var B,xt=ne.listRef,lt=xt.querySelectorAll&&xt.querySelectorAll(".slick-slide")||[];if(Array.from(lt).every(function(Bt){if(ne.vertical){if(Bt.offsetTop+Ze(Bt)/2>ne.swipeLeft*-1)return B=Bt,!1}else if(Bt.offsetLeft-we+Pe(Bt)/2>ne.swipeLeft*-1)return B=Bt,!1;return!0}),!B)return 0;var ot=ne.rtl===!0?ne.slideCount-ne.currentSlide:ne.currentSlide,$t=Math.abs(B.dataset.index-ot)||1;return $t}else return ne.slidesToScroll},rt=function(ne,we){return we.reduce(function(B,xt){return B&&ne.hasOwnProperty(xt)},!0)?null:console.error("Keys Missing:",ne)},ht=function(ne){rt(ne,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var we,B;if(!ne.vertical)we=un(ne)*ne.slideWidth;else{var xt=ne.unslick?ne.slideCount:ne.slideCount+2*ne.slidesToShow;B=xt*ne.slideHeight}var lt={opacity:1,transition:"",WebkitTransition:""};if(ne.useTransform){var ot=ne.vertical?"translate3d(0px, "+ne.left+"px, 0px)":"translate3d("+ne.left+"px, 0px, 0px)",$t=ne.vertical?"translate3d(0px, "+ne.left+"px, 0px)":"translate3d("+ne.left+"px, 0px, 0px)",Bt=ne.vertical?"translateY("+ne.left+"px)":"translateX("+ne.left+"px)";lt=(0,O.Z)((0,O.Z)({},lt),{},{WebkitTransform:ot,transform:$t,msTransform:Bt})}else ne.vertical?lt.top=ne.left:lt.left=ne.left;return ne.fade&&(lt={opacity:1}),we&&(lt.width=we),B&&(lt.height=B),window&&!window.addEventListener&&window.attachEvent&&(ne.vertical?lt.marginTop=ne.left+"px":lt.marginLeft=ne.left+"px"),lt},St=function(ne){rt(ne,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var we=ht(ne);return ne.useTransform?(we.WebkitTransition="-webkit-transform "+ne.speed+"ms "+ne.cssEase,we.transition="transform "+ne.speed+"ms "+ne.cssEase):ne.vertical?we.transition="top "+ne.speed+"ms "+ne.cssEase:we.transition="left "+ne.speed+"ms "+ne.cssEase,we},Me=function(ne){if(ne.unslick)return 0;rt(ne,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var we=ne.slideIndex,B=ne.trackRef,xt=ne.infinite,lt=ne.centerMode,ot=ne.slideCount,$t=ne.slidesToShow,Bt=ne.slidesToScroll,zt=ne.slideWidth,re=ne.listWidth,ve=ne.variableWidth,wt=ne.slideHeight,Ne=ne.fade,Be=ne.vertical,ue=0,Ie,Fe,$e=0;if(Ne||ne.slideCount===1)return 0;var ut=0;if(xt?(ut=-Xt(ne),ot%Bt!==0&&we+Bt>ot&&(ut=-(we>ot?$t-(we-ot):ot%Bt)),lt&&(ut+=parseInt($t/2))):(ot%Bt!==0&&we+Bt>ot&&(ut=$t-ot%Bt),lt&&(ut=parseInt($t/2))),ue=ut*zt,$e=ut*wt,Be?Ie=we*wt*-1+$e:Ie=we*zt*-1+ue,ve===!0){var Gt,sn=B&&B.node;if(Gt=we+Xt(ne),Fe=sn&&sn.childNodes[Gt],Ie=Fe?Fe.offsetLeft*-1:0,lt===!0){Gt=xt?we+Xt(ne):we,Fe=sn&&sn.children[Gt],Ie=0;for(var je=0;je<Gt;je++)Ie-=sn&&sn.children[je]&&sn.children[je].offsetWidth;Ie-=parseInt(ne.centerPadding),Ie+=Fe&&(re-Fe.offsetWidth)/2}}return Ie},Xt=function(ne){return ne.unslick||!ne.infinite?0:ne.variableWidth?ne.slideCount:ne.slidesToShow+(ne.centerMode?1:0)},tt=function(ne){return ne.unslick||!ne.infinite?0:ne.slideCount},un=function(ne){return ne.slideCount===1?1:Xt(ne)+ne.slideCount+tt(ne)},vt=function(ne){return ne.targetSlide>ne.currentSlide?ne.targetSlide>ne.currentSlide+bt(ne)?"left":"right":ne.targetSlide<ne.currentSlide-Ve(ne)?"right":"left"},bt=function(ne){var we=ne.slidesToShow,B=ne.centerMode,xt=ne.rtl,lt=ne.centerPadding;if(B){var ot=(we-1)/2+1;return parseInt(lt)>0&&(ot+=1),xt&&we%2===0&&(ot+=1),ot}return xt?0:we-1},Ve=function(ne){var we=ne.slidesToShow,B=ne.centerMode,xt=ne.rtl,lt=ne.centerPadding;if(B){var ot=(we-1)/2+1;return parseInt(lt)>0&&(ot+=1),!xt&&we%2===0&&(ot+=1),ot}return xt?we-1:0},Le=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},oe=Object.keys(L);function nt(mt){return oe.reduce(function(ne,we){return mt.hasOwnProperty(we)&&(ne[we]=mt[we]),ne},{})}function Ue(mt,ne,we){return ne=(0,V.Z)(ne),(0,g.Z)(mt,(0,H.Z)()?Reflect.construct(ne,we||[],(0,V.Z)(mt).constructor):ne.apply(mt,we))}var K=function(ne){var we,B,xt,lt,ot;ne.rtl?ot=ne.slideCount-1-ne.index:ot=ne.index,xt=ot<0||ot>=ne.slideCount,ne.centerMode?(lt=Math.floor(ne.slidesToShow/2),B=(ot-ne.currentSlide)%ne.slideCount===0,ot>ne.currentSlide-lt-1&&ot<=ne.currentSlide+lt&&(we=!0)):we=ne.currentSlide<=ot&&ot<ne.currentSlide+ne.slidesToShow;var $t;ne.targetSlide<0?$t=ne.targetSlide+ne.slideCount:ne.targetSlide>=ne.slideCount?$t=ne.targetSlide-ne.slideCount:$t=ne.targetSlide;var Bt=ot===$t;return{"slick-slide":!0,"slick-active":we,"slick-center":B,"slick-cloned":xt,"slick-current":Bt}},D=function(ne){var we={};return(ne.variableWidth===void 0||ne.variableWidth===!1)&&(we.width=ne.slideWidth),ne.fade&&(we.position="relative",ne.vertical&&ne.slideHeight?we.top=-ne.index*parseInt(ne.slideHeight):we.left=-ne.index*parseInt(ne.slideWidth),we.opacity=ne.currentSlide===ne.index?1:0,we.zIndex=ne.currentSlide===ne.index?999:998,ne.useCSS&&(we.transition="opacity "+ne.speed+"ms "+ne.cssEase+", visibility "+ne.speed+"ms "+ne.cssEase)),we},Se=function(ne,we){return ne.key+"-"+we},Ae=function(ne){var we,B=[],xt=[],lt=[],ot=i.Children.count(ne.children),$t=Ee(ne),Bt=pe(ne);return i.Children.forEach(ne.children,function(zt,re){var ve,wt={message:"children",index:re,slidesToScroll:ne.slidesToScroll,currentSlide:ne.currentSlide};!ne.lazyLoad||ne.lazyLoad&&ne.lazyLoadedList.indexOf(re)>=0?ve=zt:ve=i.createElement("div",null);var Ne=D((0,O.Z)((0,O.Z)({},ne),{},{index:re})),Be=ve.props.className||"",ue=K((0,O.Z)((0,O.Z)({},ne),{},{index:re}));if(B.push(i.cloneElement(ve,{key:"original"+Se(ve,re),"data-index":re,className:X()(ue,Be),tabIndex:"-1","aria-hidden":!ue["slick-active"],style:(0,O.Z)((0,O.Z)({outline:"none"},ve.props.style||{}),Ne),onClick:function($e){ve.props&&ve.props.onClick&&ve.props.onClick($e),ne.focusOnSelect&&ne.focusOnSelect(wt)}})),ne.infinite&&ot>1&&ne.fade===!1&&!ne.unslick){var Ie=ot-re;Ie<=Xt(ne)&&(we=-Ie,we>=$t&&(ve=zt),ue=K((0,O.Z)((0,O.Z)({},ne),{},{index:we})),xt.push(i.cloneElement(ve,{key:"precloned"+Se(ve,we),"data-index":we,tabIndex:"-1",className:X()(ue,Be),"aria-hidden":!ue["slick-active"],style:(0,O.Z)((0,O.Z)({},ve.props.style||{}),Ne),onClick:function($e){ve.props&&ve.props.onClick&&ve.props.onClick($e),ne.focusOnSelect&&ne.focusOnSelect(wt)}}))),we=ot+re,we<Bt&&(ve=zt),ue=K((0,O.Z)((0,O.Z)({},ne),{},{index:we})),lt.push(i.cloneElement(ve,{key:"postcloned"+Se(ve,we),"data-index":we,tabIndex:"-1",className:X()(ue,Be),"aria-hidden":!ue["slick-active"],style:(0,O.Z)((0,O.Z)({},ve.props.style||{}),Ne),onClick:function($e){ve.props&&ve.props.onClick&&ve.props.onClick($e),ne.focusOnSelect&&ne.focusOnSelect(wt)}}))}}),ne.rtl?xt.concat(B,lt).reverse():xt.concat(B,lt)},Ce=function(mt){function ne(){var we;(0,fe.Z)(this,ne);for(var B=arguments.length,xt=new Array(B),lt=0;lt<B;lt++)xt[lt]=arguments[lt];return we=Ue(this,ne,[].concat(xt)),(0,y.Z)(we,"node",null),(0,y.Z)(we,"handleRef",function(ot){we.node=ot}),we}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"render",value:function(){var B=Ae(this.props),xt=this.props,lt=xt.onMouseEnter,ot=xt.onMouseOver,$t=xt.onMouseLeave,Bt={onMouseEnter:lt,onMouseOver:ot,onMouseLeave:$t};return i.createElement("div",(0,U.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},Bt),B)}}])}(i.PureComponent);function ke(mt,ne,we){return ne=(0,V.Z)(ne),(0,g.Z)(mt,(0,H.Z)()?Reflect.construct(ne,we||[],(0,V.Z)(mt).constructor):ne.apply(mt,we))}var Xe=function(ne){var we;return ne.infinite?we=Math.ceil(ne.slideCount/ne.slidesToScroll):we=Math.ceil((ne.slideCount-ne.slidesToShow)/ne.slidesToScroll)+1,we},yt=function(mt){function ne(){return(0,fe.Z)(this,ne),ke(this,ne,arguments)}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"clickHandler",value:function(B,xt){xt.preventDefault(),this.props.clickHandler(B)}},{key:"render",value:function(){for(var B=this.props,xt=B.onMouseEnter,lt=B.onMouseOver,ot=B.onMouseLeave,$t=B.infinite,Bt=B.slidesToScroll,zt=B.slidesToShow,re=B.slideCount,ve=B.currentSlide,wt=Xe({slideCount:re,slidesToScroll:Bt,slidesToShow:zt,infinite:$t}),Ne={onMouseEnter:xt,onMouseOver:lt,onMouseLeave:ot},Be=[],ue=0;ue<wt;ue++){var Ie=(ue+1)*Bt-1,Fe=$t?Ie:Q(Ie,0,re-1),$e=Fe-(Bt-1),ut=$t?$e:Q($e,0,re-1),Gt=X()({"slick-active":$t?ve>=ut&&ve<=Fe:ve===ut}),sn={message:"dots",index:ue,slidesToScroll:Bt,currentSlide:ve},je=this.clickHandler.bind(this,sn);Be=Be.concat(i.createElement("li",{key:ue,className:Gt},i.cloneElement(this.props.customPaging(ue),{onClick:je})))}return i.cloneElement(this.props.appendDots(Be),(0,O.Z)({className:this.props.dotsClass},Ne))}}])}(i.PureComponent);function he(mt,ne,we){return ne=(0,V.Z)(ne),(0,g.Z)(mt,(0,H.Z)()?Reflect.construct(ne,we||[],(0,V.Z)(mt).constructor):ne.apply(mt,we))}var me=function(mt){function ne(){return(0,fe.Z)(this,ne),he(this,ne,arguments)}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"clickHandler",value:function(B,xt){xt&&xt.preventDefault(),this.props.clickHandler(B,xt)}},{key:"render",value:function(){var B={"slick-arrow":!0,"slick-prev":!0},xt=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(B["slick-disabled"]=!0,xt=null);var lt={key:"0","data-role":"none",className:X()(B),style:{display:"block"},onClick:xt},ot={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},$t;return this.props.prevArrow?$t=i.cloneElement(this.props.prevArrow,(0,O.Z)((0,O.Z)({},lt),ot)):$t=i.createElement("button",(0,U.Z)({key:"0",type:"button"},lt)," ","Previous"),$t}}])}(i.PureComponent),Lt=function(mt){function ne(){return(0,fe.Z)(this,ne),he(this,ne,arguments)}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"clickHandler",value:function(B,xt){xt&&xt.preventDefault(),this.props.clickHandler(B,xt)}},{key:"render",value:function(){var B={"slick-arrow":!0,"slick-next":!0},xt=this.clickHandler.bind(this,{message:"next"});N(this.props)||(B["slick-disabled"]=!0,xt=null);var lt={key:"1","data-role":"none",className:X()(B),style:{display:"block"},onClick:xt},ot={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},$t;return this.props.nextArrow?$t=i.cloneElement(this.props.nextArrow,(0,O.Z)((0,O.Z)({},lt),ot)):$t=i.createElement("button",(0,U.Z)({key:"1",type:"button"},lt)," ","Next"),$t}}])}(i.PureComponent),Ct=u(76374),Nt=["animating"];function kt(mt,ne,we){return ne=(0,V.Z)(ne),(0,g.Z)(mt,(0,H.Z)()?Reflect.construct(ne,we||[],(0,V.Z)(mt).constructor):ne.apply(mt,we))}var pt=function(mt){function ne(we){var B;(0,fe.Z)(this,ne),B=kt(this,ne,[we]),(0,y.Z)(B,"listRefHandler",function(lt){return B.list=lt}),(0,y.Z)(B,"trackRefHandler",function(lt){return B.track=lt}),(0,y.Z)(B,"adaptHeight",function(){if(B.props.adaptiveHeight&&B.list){var lt=B.list.querySelector('[data-index="'.concat(B.state.currentSlide,'"]'));B.list.style.height=Ze(lt)+"px"}}),(0,y.Z)(B,"componentDidMount",function(){if(B.props.onInit&&B.props.onInit(),B.props.lazyLoad){var lt=A((0,O.Z)((0,O.Z)({},B.props),B.state));lt.length>0&&(B.setState(function($t){return{lazyLoadedList:$t.lazyLoadedList.concat(lt)}}),B.props.onLazyLoad&&B.props.onLazyLoad(lt))}var ot=(0,O.Z)({listRef:B.list,trackRef:B.track},B.props);B.updateState(ot,!0,function(){B.adaptHeight(),B.props.autoplay&&B.autoPlay("playing")}),B.props.lazyLoad==="progressive"&&(B.lazyLoadTimer=setInterval(B.progressiveLazyLoad,1e3)),B.ro=new Ct.Z(function(){B.state.animating?(B.onWindowResized(!1),B.callbackTimers.push(setTimeout(function(){return B.onWindowResized()},B.props.speed))):B.onWindowResized()}),B.ro.observe(B.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function($t){$t.onfocus=B.props.pauseOnFocus?B.onSlideFocus:null,$t.onblur=B.props.pauseOnFocus?B.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",B.onWindowResized):window.attachEvent("onresize",B.onWindowResized)}),(0,y.Z)(B,"componentWillUnmount",function(){B.animationEndCallback&&clearTimeout(B.animationEndCallback),B.lazyLoadTimer&&clearInterval(B.lazyLoadTimer),B.callbackTimers.length&&(B.callbackTimers.forEach(function(lt){return clearTimeout(lt)}),B.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",B.onWindowResized):window.detachEvent("onresize",B.onWindowResized),B.autoplayTimer&&clearInterval(B.autoplayTimer),B.ro.disconnect()}),(0,y.Z)(B,"componentDidUpdate",function(lt){if(B.checkImagesLoad(),B.props.onReInit&&B.props.onReInit(),B.props.lazyLoad){var ot=A((0,O.Z)((0,O.Z)({},B.props),B.state));ot.length>0&&(B.setState(function(zt){return{lazyLoadedList:zt.lazyLoadedList.concat(ot)}}),B.props.onLazyLoad&&B.props.onLazyLoad(ot))}B.adaptHeight();var $t=(0,O.Z)((0,O.Z)({listRef:B.list,trackRef:B.track},B.props),B.state),Bt=B.didPropsChange(lt);Bt&&B.updateState($t,Bt,function(){B.state.currentSlide>=i.Children.count(B.props.children)&&B.changeSlide({message:"index",index:i.Children.count(B.props.children)-B.props.slidesToShow,currentSlide:B.state.currentSlide}),(lt.autoplay!==B.props.autoplay||lt.autoplaySpeed!==B.props.autoplaySpeed)&&(!lt.autoplay&&B.props.autoplay?B.autoPlay("playing"):B.props.autoplay?B.autoPlay("update"):B.pause("paused"))})}),(0,y.Z)(B,"onWindowResized",function(lt){B.debouncedResize&&B.debouncedResize.cancel(),B.debouncedResize=(0,$.D)(50,function(){return B.resizeWindow(lt)}),B.debouncedResize()}),(0,y.Z)(B,"resizeWindow",function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ot=!!(B.track&&B.track.node);if(ot){var $t=(0,O.Z)((0,O.Z)({listRef:B.list,trackRef:B.track},B.props),B.state);B.updateState($t,lt,function(){B.props.autoplay?B.autoPlay("update"):B.pause("paused")}),B.setState({animating:!1}),clearTimeout(B.animationEndCallback),delete B.animationEndCallback}}),(0,y.Z)(B,"updateState",function(lt,ot,$t){var Bt=q(lt);lt=(0,O.Z)((0,O.Z)((0,O.Z)({},lt),Bt),{},{slideIndex:Bt.currentSlide});var zt=Me(lt);lt=(0,O.Z)((0,O.Z)({},lt),{},{left:zt});var re=ht(lt);(ot||i.Children.count(B.props.children)!==i.Children.count(lt.children))&&(Bt.trackStyle=re),B.setState(Bt,$t)}),(0,y.Z)(B,"ssrInit",function(){if(B.props.variableWidth){var lt=0,ot=0,$t=[],Bt=Xt((0,O.Z)((0,O.Z)((0,O.Z)({},B.props),B.state),{},{slideCount:B.props.children.length})),zt=tt((0,O.Z)((0,O.Z)((0,O.Z)({},B.props),B.state),{},{slideCount:B.props.children.length}));B.props.children.forEach(function(je){$t.push(je.props.style.width),lt+=je.props.style.width});for(var re=0;re<Bt;re++)ot+=$t[$t.length-1-re],lt+=$t[$t.length-1-re];for(var ve=0;ve<zt;ve++)lt+=$t[ve];for(var wt=0;wt<B.state.currentSlide;wt++)ot+=$t[wt];var Ne={width:lt+"px",left:-ot+"px"};if(B.props.centerMode){var Be="".concat($t[B.state.currentSlide],"px");Ne.left="calc(".concat(Ne.left," + (100% - ").concat(Be,") / 2 ) ")}return{trackStyle:Ne}}var ue=i.Children.count(B.props.children),Ie=(0,O.Z)((0,O.Z)((0,O.Z)({},B.props),B.state),{},{slideCount:ue}),Fe=Xt(Ie)+tt(Ie)+ue,$e=100/B.props.slidesToShow*Fe,ut=100/Fe,Gt=-ut*(Xt(Ie)+B.state.currentSlide)*$e/100;B.props.centerMode&&(Gt+=(100-ut*$e/100)/2);var sn={width:$e+"%",left:Gt+"%"};return{slideWidth:ut+"%",trackStyle:sn}}),(0,y.Z)(B,"checkImagesLoad",function(){var lt=B.list&&B.list.querySelectorAll&&B.list.querySelectorAll(".slick-slide img")||[],ot=lt.length,$t=0;Array.prototype.forEach.call(lt,function(Bt){var zt=function(){return++$t&&$t>=ot&&B.onWindowResized()};if(!Bt.onclick)Bt.onclick=function(){return Bt.parentNode.focus()};else{var re=Bt.onclick;Bt.onclick=function(ve){re(ve),Bt.parentNode.focus()}}Bt.onload||(B.props.lazyLoad?Bt.onload=function(){B.adaptHeight(),B.callbackTimers.push(setTimeout(B.onWindowResized,B.props.speed))}:(Bt.onload=zt,Bt.onerror=function(){zt(),B.props.onLazyLoadError&&B.props.onLazyLoadError()}))})}),(0,y.Z)(B,"progressiveLazyLoad",function(){for(var lt=[],ot=(0,O.Z)((0,O.Z)({},B.props),B.state),$t=B.state.currentSlide;$t<B.state.slideCount+tt(ot);$t++)if(B.state.lazyLoadedList.indexOf($t)<0){lt.push($t);break}for(var Bt=B.state.currentSlide-1;Bt>=-Xt(ot);Bt--)if(B.state.lazyLoadedList.indexOf(Bt)<0){lt.push(Bt);break}lt.length>0?(B.setState(function(zt){return{lazyLoadedList:zt.lazyLoadedList.concat(lt)}}),B.props.onLazyLoad&&B.props.onLazyLoad(lt)):B.lazyLoadTimer&&(clearInterval(B.lazyLoadTimer),delete B.lazyLoadTimer)}),(0,y.Z)(B,"slideHandler",function(lt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=B.props,Bt=$t.asNavFor,zt=$t.beforeChange,re=$t.onLazyLoad,ve=$t.speed,wt=$t.afterChange,Ne=B.state.currentSlide,Be=te((0,O.Z)((0,O.Z)((0,O.Z)({index:lt},B.props),B.state),{},{trackRef:B.track,useCSS:B.props.useCSS&&!ot})),ue=Be.state,Ie=Be.nextState;if(ue){zt&&zt(Ne,ue.currentSlide);var Fe=ue.lazyLoadedList.filter(function($e){return B.state.lazyLoadedList.indexOf($e)<0});re&&Fe.length>0&&re(Fe),!B.props.waitForAnimate&&B.animationEndCallback&&(clearTimeout(B.animationEndCallback),wt&&wt(Ne),delete B.animationEndCallback),B.setState(ue,function(){Bt&&B.asNavForIndex!==lt&&(B.asNavForIndex=lt,Bt.innerSlider.slideHandler(lt)),Ie&&(B.animationEndCallback=setTimeout(function(){var $e=Ie.animating,ut=(0,b.Z)(Ie,Nt);B.setState(ut,function(){B.callbackTimers.push(setTimeout(function(){return B.setState({animating:$e})},10)),wt&&wt(ue.currentSlide),delete B.animationEndCallback})},ve))})}}),(0,y.Z)(B,"changeSlide",function(lt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=(0,O.Z)((0,O.Z)({},B.props),B.state),Bt=se($t,lt);if(!(Bt!==0&&!Bt)&&(ot===!0?B.slideHandler(Bt,ot):B.slideHandler(Bt),B.props.autoplay&&B.autoPlay("update"),B.props.focusOnSelect)){var zt=B.list.querySelectorAll(".slick-current");zt[0]&&zt[0].focus()}}),(0,y.Z)(B,"clickHandler",function(lt){B.clickable===!1&&(lt.stopPropagation(),lt.preventDefault()),B.clickable=!0}),(0,y.Z)(B,"keyHandler",function(lt){var ot=w(lt,B.props.accessibility,B.props.rtl);ot!==""&&B.changeSlide({message:ot})}),(0,y.Z)(B,"selectHandler",function(lt){B.changeSlide(lt)}),(0,y.Z)(B,"disableBodyScroll",function(){var lt=function($t){$t=$t||window.event,$t.preventDefault&&$t.preventDefault(),$t.returnValue=!1};window.ontouchmove=lt}),(0,y.Z)(B,"enableBodyScroll",function(){window.ontouchmove=null}),(0,y.Z)(B,"swipeStart",function(lt){B.props.verticalSwiping&&B.disableBodyScroll();var ot=I(lt,B.props.swipe,B.props.draggable);ot!==""&&B.setState(ot)}),(0,y.Z)(B,"swipeMove",function(lt){var ot=de(lt,(0,O.Z)((0,O.Z)((0,O.Z)({},B.props),B.state),{},{trackRef:B.track,listRef:B.list,slideIndex:B.state.currentSlide}));ot&&(ot.swiping&&(B.clickable=!1),B.setState(ot))}),(0,y.Z)(B,"swipeEnd",function(lt){var ot=De(lt,(0,O.Z)((0,O.Z)((0,O.Z)({},B.props),B.state),{},{trackRef:B.track,listRef:B.list,slideIndex:B.state.currentSlide}));if(ot){var $t=ot.triggerSlideHandler;delete ot.triggerSlideHandler,B.setState(ot),$t!==void 0&&(B.slideHandler($t),B.props.verticalSwiping&&B.enableBodyScroll())}}),(0,y.Z)(B,"touchEnd",function(lt){B.swipeEnd(lt),B.clickable=!0}),(0,y.Z)(B,"slickPrev",function(){B.callbackTimers.push(setTimeout(function(){return B.changeSlide({message:"previous"})},0))}),(0,y.Z)(B,"slickNext",function(){B.callbackTimers.push(setTimeout(function(){return B.changeSlide({message:"next"})},0))}),(0,y.Z)(B,"slickGoTo",function(lt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lt=Number(lt),isNaN(lt))return"";B.callbackTimers.push(setTimeout(function(){return B.changeSlide({message:"index",index:lt,currentSlide:B.state.currentSlide},ot)},0))}),(0,y.Z)(B,"play",function(){var lt;if(B.props.rtl)lt=B.state.currentSlide-B.props.slidesToScroll;else if(N((0,O.Z)((0,O.Z)({},B.props),B.state)))lt=B.state.currentSlide+B.props.slidesToScroll;else return!1;B.slideHandler(lt)}),(0,y.Z)(B,"autoPlay",function(lt){B.autoplayTimer&&clearInterval(B.autoplayTimer);var ot=B.state.autoplaying;if(lt==="update"){if(ot==="hovered"||ot==="focused"||ot==="paused")return}else if(lt==="leave"){if(ot==="paused"||ot==="focused")return}else if(lt==="blur"&&(ot==="paused"||ot==="hovered"))return;B.autoplayTimer=setInterval(B.play,B.props.autoplaySpeed+50),B.setState({autoplaying:"playing"})}),(0,y.Z)(B,"pause",function(lt){B.autoplayTimer&&(clearInterval(B.autoplayTimer),B.autoplayTimer=null);var ot=B.state.autoplaying;lt==="paused"?B.setState({autoplaying:"paused"}):lt==="focused"?(ot==="hovered"||ot==="playing")&&B.setState({autoplaying:"focused"}):ot==="playing"&&B.setState({autoplaying:"hovered"})}),(0,y.Z)(B,"onDotsOver",function(){return B.props.autoplay&&B.pause("hovered")}),(0,y.Z)(B,"onDotsLeave",function(){return B.props.autoplay&&B.state.autoplaying==="hovered"&&B.autoPlay("leave")}),(0,y.Z)(B,"onTrackOver",function(){return B.props.autoplay&&B.pause("hovered")}),(0,y.Z)(B,"onTrackLeave",function(){return B.props.autoplay&&B.state.autoplaying==="hovered"&&B.autoPlay("leave")}),(0,y.Z)(B,"onSlideFocus",function(){return B.props.autoplay&&B.pause("focused")}),(0,y.Z)(B,"onSlideBlur",function(){return B.props.autoplay&&B.state.autoplaying==="focused"&&B.autoPlay("blur")}),(0,y.Z)(B,"render",function(){var lt=X()("slick-slider",B.props.className,{"slick-vertical":B.props.vertical,"slick-initialized":!0}),ot=(0,O.Z)((0,O.Z)({},B.props),B.state),$t=S(ot,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Bt=B.props.pauseOnHover;$t=(0,O.Z)((0,O.Z)({},$t),{},{onMouseEnter:Bt?B.onTrackOver:null,onMouseLeave:Bt?B.onTrackLeave:null,onMouseOver:Bt?B.onTrackOver:null,focusOnSelect:B.props.focusOnSelect&&B.clickable?B.selectHandler:null});var zt;if(B.props.dots===!0&&B.state.slideCount>=B.props.slidesToShow){var re=S(ot,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ve=B.props.pauseOnDotsHover;re=(0,O.Z)((0,O.Z)({},re),{},{clickHandler:B.changeSlide,onMouseEnter:ve?B.onDotsLeave:null,onMouseOver:ve?B.onDotsOver:null,onMouseLeave:ve?B.onDotsLeave:null}),zt=i.createElement(yt,re)}var wt,Ne,Be=S(ot,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Be.clickHandler=B.changeSlide,B.props.arrows&&(wt=i.createElement(me,Be),Ne=i.createElement(Lt,Be));var ue=null;B.props.vertical&&(ue={height:B.state.listHeight});var Ie=null;B.props.vertical===!1?B.props.centerMode===!0&&(Ie={padding:"0px "+B.props.centerPadding}):B.props.centerMode===!0&&(Ie={padding:B.props.centerPadding+" 0px"});var Fe=(0,O.Z)((0,O.Z)({},ue),Ie),$e=B.props.touchMove,ut={className:"slick-list",style:Fe,onClick:B.clickHandler,onMouseDown:$e?B.swipeStart:null,onMouseMove:B.state.dragging&&$e?B.swipeMove:null,onMouseUp:$e?B.swipeEnd:null,onMouseLeave:B.state.dragging&&$e?B.swipeEnd:null,onTouchStart:$e?B.swipeStart:null,onTouchMove:B.state.dragging&&$e?B.swipeMove:null,onTouchEnd:$e?B.touchEnd:null,onTouchCancel:B.state.dragging&&$e?B.swipeEnd:null,onKeyDown:B.props.accessibility?B.keyHandler:null},Gt={className:lt,dir:"ltr",style:B.props.style};return B.props.unslick&&(ut={className:"slick-list"},Gt={className:lt,style:B.props.style}),i.createElement("div",Gt,B.props.unslick?"":wt,i.createElement("div",(0,U.Z)({ref:B.listRefHandler},ut),i.createElement(Ce,(0,U.Z)({ref:B.trackRefHandler},$t),B.props.children)),B.props.unslick?"":Ne,B.props.unslick?"":zt)}),B.list=null,B.track=null,B.state=(0,O.Z)((0,O.Z)({},T),{},{currentSlide:B.props.initialSlide,targetSlide:B.props.initialSlide?B.props.initialSlide:0,slideCount:i.Children.count(B.props.children)}),B.callbackTimers=[],B.clickable=!0,B.debouncedResize=null;var xt=B.ssrInit();return B.state=(0,O.Z)((0,O.Z)({},B.state),xt),B}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"didPropsChange",value:function(B){for(var xt=!1,lt=0,ot=Object.keys(this.props);lt<ot.length;lt++){var $t=ot[lt];if(!B.hasOwnProperty($t)){xt=!0;break}if(!((0,M.Z)(B[$t])==="object"||typeof B[$t]=="function"||isNaN(B[$t]))&&B[$t]!==this.props[$t]){xt=!0;break}}return xt||i.Children.count(this.props.children)!==i.Children.count(B.children)}}])}(i.Component),Vt=u(7861),Zt=u.n(Vt);function Re(mt,ne,we){return ne=(0,V.Z)(ne),(0,g.Z)(mt,(0,H.Z)()?Reflect.construct(ne,we||[],(0,V.Z)(mt).constructor):ne.apply(mt,we))}var gt=function(mt){function ne(we){var B;return(0,fe.Z)(this,ne),B=Re(this,ne,[we]),(0,y.Z)(B,"innerSliderRefHandler",function(xt){return B.innerSlider=xt}),(0,y.Z)(B,"slickPrev",function(){return B.innerSlider.slickPrev()}),(0,y.Z)(B,"slickNext",function(){return B.innerSlider.slickNext()}),(0,y.Z)(B,"slickGoTo",function(xt){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return B.innerSlider.slickGoTo(xt,lt)}),(0,y.Z)(B,"slickPause",function(){return B.innerSlider.pause("paused")}),(0,y.Z)(B,"slickPlay",function(){return B.innerSlider.autoPlay("play")}),B.state={breakpoint:null},B._responsiveMediaHandlers=[],B}return(0,l.Z)(ne,mt),(0,Z.Z)(ne,[{key:"media",value:function(B,xt){var lt=window.matchMedia(B),ot=function(Bt){var zt=Bt.matches;zt&&xt()};lt.addListener(ot),ot(lt),this._responsiveMediaHandlers.push({mql:lt,query:B,listener:ot})}},{key:"componentDidMount",value:function(){var B=this;if(this.props.responsive){var xt=this.props.responsive.map(function(ot){return ot.breakpoint});xt.sort(function(ot,$t){return ot-$t}),xt.forEach(function(ot,$t){var Bt;$t===0?Bt=Zt()({minWidth:0,maxWidth:ot}):Bt=Zt()({minWidth:xt[$t-1]+1,maxWidth:ot}),Le()&&B.media(Bt,function(){B.setState({breakpoint:ot})})});var lt=Zt()({minWidth:xt.slice(-1)[0]});Le()&&this.media(lt,function(){B.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(B){B.mql.removeListener(B.listener)})}},{key:"render",value:function(){var B=this,xt,lt;this.state.breakpoint?(lt=this.props.responsive.filter(function(ue){return ue.breakpoint===B.state.breakpoint}),xt=lt[0].settings==="unslick"?"unslick":(0,O.Z)((0,O.Z)((0,O.Z)({},L),this.props),lt[0].settings)):xt=(0,O.Z)((0,O.Z)({},L),this.props),xt.centerMode&&(xt.slidesToScroll>1,xt.slidesToScroll=1),xt.fade&&(xt.slidesToShow>1,xt.slidesToScroll>1,xt.slidesToShow=1,xt.slidesToScroll=1);var ot=i.Children.toArray(this.props.children);ot=ot.filter(function(ue){return typeof ue=="string"?!!ue.trim():!!ue}),xt.variableWidth&&(xt.rows>1||xt.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),xt.variableWidth=!1);for(var $t=[],Bt=null,zt=0;zt<ot.length;zt+=xt.rows*xt.slidesPerRow){for(var re=[],ve=zt;ve<zt+xt.rows*xt.slidesPerRow;ve+=xt.slidesPerRow){for(var wt=[],Ne=ve;Ne<ve+xt.slidesPerRow&&(xt.variableWidth&&ot[Ne].props.style&&(Bt=ot[Ne].props.style.width),!(Ne>=ot.length));Ne+=1)wt.push(i.cloneElement(ot[Ne],{key:100*zt+10*ve+Ne,tabIndex:-1,style:{width:"".concat(100/xt.slidesPerRow,"%"),display:"inline-block"}}));re.push(i.createElement("div",{key:10*zt+ve},wt))}xt.variableWidth?$t.push(i.createElement("div",{key:zt,style:{width:Bt}},re)):$t.push(i.createElement("div",{key:zt},re))}if(xt==="unslick"){var Be="regular slider "+(this.props.className||"");return i.createElement("div",{className:Be},ot)}else $t.length<=xt.slidesToShow&&!xt.infinite&&(xt.unslick=!0);return i.createElement(pt,(0,U.Z)({style:this.props.style,ref:this.innerSliderRefHandler},nt(xt)),$t)}}])}(i.Component),E=gt,R=u(48755),at=u(36237),ae=u(63356),Y=u(16931);const Ft="--dot-duration",Ke=mt=>{const{componentCls:ne,antCls:we}=mt;return{[ne]:Object.assign(Object.assign({},(0,ae.Wf)(mt)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${we}-radio-input, input${we}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${we}-radio-input, input${we}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},st=mt=>{const{componentCls:ne,motionDurationSlow:we,arrowSize:B,arrowOffset:xt}=mt,lt=mt.calc(B).div(Math.SQRT2).equal();return{[ne]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:B,height:B,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${we}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:mt.calc(B).sub(lt).div(2).equal(),insetInlineStart:mt.calc(B).sub(lt).div(2).equal(),display:"inline-block",width:lt,height:lt,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:xt,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:xt,"&::after":{transform:"rotate(135deg)"}}}}},_t=mt=>{const{componentCls:ne,dotOffset:we,dotWidth:B,dotHeight:xt,dotGap:lt,colorBgContainer:ot,motionDurationSlow:$t}=mt;return{[ne]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:we},"&-top":{top:we,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:B,height:xt,marginInline:lt,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${$t}`,borderRadius:xt,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:xt,content:'""',background:ot,borderRadius:xt,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:xt,padding:0,color:"transparent",fontSize:0,background:ot,border:0,borderRadius:xt,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${$t}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:mt.calc(lt).mul(-1).equal(),content:'""'}},"&.slick-active":{width:mt.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Ft}) ease-out`}}}}}}},xe=mt=>{const{componentCls:ne,dotOffset:we,arrowOffset:B,marginXXS:xt}=mt,lt={width:mt.dotHeight,height:mt.dotWidth};return{[`${ne}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:B,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:B,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:mt.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:we},"&-right":{insetInlineEnd:we,insetInlineStart:"auto"},li:Object.assign(Object.assign({},lt),{margin:`${(0,at.unit)(xt)} 0`,verticalAlign:"baseline",button:lt,"&::after":Object.assign(Object.assign({},lt),{height:0}),"&.slick-active":Object.assign(Object.assign({},lt),{button:lt,"&::after":Object.assign(Object.assign({},lt),{transition:`height var(${Ft}) ease-out`})})})}}}},_e=mt=>{const{componentCls:ne}=mt;return[{[`${ne}-rtl`]:{direction:"rtl",".slick-dots":{[`${ne}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${ne}-vertical`]:{".slick-dots":{[`${ne}-rtl&`]:{flexDirection:"column"}}}}]},et=mt=>({arrowSize:16,arrowOffset:mt.marginXS,dotWidth:16,dotHeight:3,dotGap:mt.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var Qe=(0,Y.I$)("Carousel",mt=>[Ke(mt),st(mt),_t(mt),xe(mt),_e(mt)],et,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),z=function(mt,ne){var we={};for(var B in mt)Object.prototype.hasOwnProperty.call(mt,B)&&ne.indexOf(B)<0&&(we[B]=mt[B]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,B=Object.getOwnPropertySymbols(mt);xt<B.length;xt++)ne.indexOf(B[xt])<0&&Object.prototype.propertyIsEnumerable.call(mt,B[xt])&&(we[B[xt]]=mt[B[xt]]);return we};const Rt="slick-dots",ge=mt=>{var{currentSlide:ne,slideCount:we}=mt,B=z(mt,["currentSlide","slideCount"]);return i.createElement("button",Object.assign({type:"button"},B))};var cn=i.forwardRef((mt,ne)=>{const{dots:we=!0,arrows:B=!1,prevArrow:xt=i.createElement(ge,{"aria-label":"prev"}),nextArrow:lt=i.createElement(ge,{"aria-label":"next"}),draggable:ot=!1,waitForAnimate:$t=!1,dotPosition:Bt="bottom",vertical:zt=Bt==="left"||Bt==="right",rootClassName:re,className:ve,style:wt,id:Ne,autoplay:Be=!1,autoplaySpeed:ue=3e3}=mt,Ie=z(mt,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Fe,direction:$e,className:ut,style:Gt}=(0,R.dj)("carousel"),sn=i.useRef(null),je=function(nn){let mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;sn.current.slickGoTo(nn,mn)};i.useImperativeHandle(ne,()=>({goTo:je,autoPlay:sn.current.innerSlider.autoPlay,innerSlider:sn.current.innerSlider,prev:sn.current.slickPrev,next:sn.current.slickNext}),[sn.current]);const ct=i.useRef(i.Children.count(mt.children));i.useEffect(()=>{ct.current!==i.Children.count(mt.children)&&(je(mt.initialSlide||0,!1),ct.current=i.Children.count(mt.children))},[mt.children]);const Dt=Object.assign({vertical:zt,className:X()(ve,ut),style:Object.assign(Object.assign({},Gt),wt),autoplay:!!Be},Ie);Dt.effect==="fade"&&(Dt.fade=!0);const qt=Fe("carousel",Dt.prefixCls),Jt=!!we,Ge=X()(Rt,`${Rt}-${Bt}`,typeof we=="boolean"?!1:we==null?void 0:we.className),[ft,Mt,Ye]=Qe(qt),jt=X()(qt,{[`${qt}-rtl`]:$e==="rtl",[`${qt}-vertical`]:Dt.vertical},Mt,Ye,re),an=Be&&(typeof Be=="object"?Be.dotDuration:!1)?{[Ft]:`${ue}ms`}:{};return ft(i.createElement("div",{className:jt,id:Ne,style:an},i.createElement(E,Object.assign({ref:sn},Dt,{dots:Jt,dotsClass:Ge,arrows:B,prevArrow:xt,nextArrow:lt,draggable:ot,verticalSwiping:zt,autoplaySpeed:ue,waitForAnimate:$t}))))})},79939:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return sn}});var i=u(94480),U=u(59301),O=u(92310),fe=u.n(O),Z=u(54476),g=u(33885),H=u(42978),V=u(75931),l=u(37463),y=u(6551),M=u(6089),b=u(18929),C=U.createContext({}),T=C,$=u(76190),W=u(20068),X="__rc_cascader_search_mark__",G=function(ct,Dt,qt){var Jt=qt.label,Ge=Jt===void 0?"":Jt;return Dt.some(function(ft){return String(ft[Ge]).toLowerCase().includes(ct.toLowerCase())})},L=function(ct,Dt,qt,Jt){return Dt.map(function(Ge){return Ge[Jt.label]}).join(" / ")},Q=function(ct,Dt,qt,Jt,Ge,ft){var Mt=Ge.filter,Ye=Mt===void 0?G:Mt,jt=Ge.render,rn=jt===void 0?L:jt,an=Ge.limit,nn=an===void 0?50:an,mn=Ge.sort;return U.useMemo(function(){var bn=[];if(!ct)return[];function In(_n,Cn){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;_n.forEach(function(Ln){if(!(!mn&&nn!==!1&&nn>0&&bn.length>=nn)){var rr=[].concat((0,i.Z)(Cn),[Ln]),Dn=Ln[qt.children],jn=Zn||Ln.disabled;if((!Dn||Dn.length===0||ft)&&Ye(ct,rr,{label:qt.label})){var Xn;bn.push((0,g.Z)((0,g.Z)({},Ln),{},(Xn={disabled:jn},(0,W.Z)(Xn,qt.label,rn(ct,rr,Jt,qt)),(0,W.Z)(Xn,X,rr),(0,W.Z)(Xn,qt.children,void 0),Xn)))}Dn&&In(Ln[qt.children],rr,jn)}})}return In(Dt,[]),mn&&bn.sort(function(_n,Cn){return mn(_n[X],Cn[X],ct,qt)}),nn!==!1&&nn>0?bn.slice(0,nn):bn},[ct,Dt,qt,Jt,rn,ft,Ye,mn,nn])},P=Q,A="__RC_CASCADER_SPLIT__",ce="SHOW_PARENT",Ee="SHOW_CHILD";function pe(je){return je.join(A)}function ze(je){return je.map(pe)}function Je(je){return je.split(A)}function Pe(je){var ct=je||{},Dt=ct.label,qt=ct.value,Jt=ct.children,Ge=qt||"value";return{label:Dt||"label",value:Ge,key:Ge,children:Jt||"children"}}function Ze(je,ct){var Dt,qt;return(Dt=je.isLeaf)!==null&&Dt!==void 0?Dt:!((qt=je[ct.children])!==null&&qt!==void 0&&qt.length)}function le(je){var ct=je.parentElement;if(ct){var Dt=je.offsetTop-ct.offsetTop;Dt-ct.scrollTop<0?ct.scrollTo({top:Dt}):Dt+je.offsetHeight-ct.scrollTop>ct.offsetHeight&&ct.scrollTo({top:Dt+je.offsetHeight-ct.offsetHeight})}}function N(je,ct){return je.map(function(Dt){var qt;return(qt=Dt[X])===null||qt===void 0?void 0:qt.map(function(Jt){return Jt[ct.value]})})}function S(je){return Array.isArray(je)&&Array.isArray(je[0])}function q(je){return je?S(je)?je:(je.length===0?[]:[je]).map(function(ct){return Array.isArray(ct)?ct:[ct]}):[]}function te(je,ct,Dt){var qt=new Set(je),Jt=ct();return je.filter(function(Ge){var ft=Jt[Ge],Mt=ft?ft.parent:null,Ye=ft?ft.children:null;return ft&&ft.node.disabled?!0:Dt===Ee?!(Ye&&Ye.some(function(jt){return jt.key&&qt.has(jt.key)})):!(Mt&&!Mt.node.disabled&&qt.has(Mt.key))})}function se(je,ct,Dt){for(var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=ct,Ge=[],ft=function(){var jt,rn,an,nn=je[Mt],mn=(jt=Jt)===null||jt===void 0?void 0:jt.findIndex(function(In){var _n=In[Dt.value];return qt?String(_n)===String(nn):_n===nn}),bn=mn!==-1?(rn=Jt)===null||rn===void 0?void 0:rn[mn]:null;Ge.push({value:(an=bn==null?void 0:bn[Dt.value])!==null&&an!==void 0?an:nn,index:mn,option:bn}),Jt=bn==null?void 0:bn[Dt.children]},Mt=0;Mt<je.length;Mt+=1)ft();return Ge}var w=function(je,ct,Dt,qt,Jt){return U.useMemo(function(){var Ge=Jt||function(ft){var Mt=qt?ft.slice(-1):ft,Ye=" / ";return Mt.every(function(jt){return["string","number"].includes((0,$.Z)(jt))})?Mt.join(Ye):Mt.reduce(function(jt,rn,an){var nn=U.isValidElement(rn)?U.cloneElement(rn,{key:an}):rn;return an===0?[nn]:[].concat((0,i.Z)(jt),[Ye,nn])},[])};return je.map(function(ft){var Mt,Ye=se(ft,ct,Dt),jt=Ge(Ye.map(function(an){var nn,mn=an.option,bn=an.value;return(nn=mn==null?void 0:mn[Dt.label])!==null&&nn!==void 0?nn:bn}),Ye.map(function(an){var nn=an.option;return nn})),rn=pe(ft);return{label:jt,value:rn,key:rn,valueCells:ft,disabled:(Mt=Ye[Ye.length-1])===null||Mt===void 0||(Mt=Mt.option)===null||Mt===void 0?void 0:Mt.disabled}})},[je,ct,Dt,Jt,qt])};function I(je,ct){return U.useCallback(function(Dt){var qt=[],Jt=[];return Dt.forEach(function(Ge){var ft=se(Ge,je,ct);ft.every(function(Mt){return Mt.option})?Jt.push(Ge):qt.push(Ge)}),[Jt,qt]},[je,ct])}var de=u(34061),De=function(je,ct){var Dt=U.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),qt=U.useCallback(function(){return Dt.current.options!==je&&(Dt.current.options=je,Dt.current.info=(0,de.I8)(je,{fieldNames:ct,initWrapper:function(Ge){return(0,g.Z)((0,g.Z)({},Ge),{},{pathKeyEntities:{}})},processEntity:function(Ge,ft){var Mt=Ge.nodes.map(function(Ye){return Ye[ct.value]}).join(A);ft.pathKeyEntities[Mt]=Ge,Ge.key=Mt}})),Dt.current.info.pathKeyEntities},[ct,je]);return qt};function dt(je,ct){var Dt=U.useMemo(function(){return ct||[]},[ct]),qt=De(Dt,je),Jt=U.useCallback(function(Ge){var ft=qt();return Ge.map(function(Mt){var Ye=ft[Mt].nodes;return Ye.map(function(jt){return jt[je.value]})})},[qt,je]);return[Dt,qt,Jt]}var It=u(48736);function Te(je){return U.useMemo(function(){if(!je)return[!1,{}];var ct={matchInputWidth:!0,limit:50};return je&&(0,$.Z)(je)==="object"&&(ct=(0,g.Z)((0,g.Z)({},ct),je)),ct.limit<=0&&(ct.limit=!1),[!0,ct]},[je])}var rt=u(34643);function ht(je,ct,Dt,qt,Jt,Ge,ft,Mt){return function(Ye){if(!je)ct(Ye);else{var jt=pe(Ye),rn=ze(Dt),an=ze(qt),nn=rn.includes(jt),mn=Jt.some(function(jn){return pe(jn)===jt}),bn=Dt,In=Jt;if(mn&&!nn)In=Jt.filter(function(jn){return pe(jn)!==jt});else{var _n=nn?rn.filter(function(jn){return jn!==jt}):[].concat((0,i.Z)(rn),[jt]),Cn=Ge(),Zn;if(nn){var Ln=(0,rt.S)(_n,{checked:!1,halfCheckedKeys:an},Cn);Zn=Ln.checkedKeys}else{var rr=(0,rt.S)(_n,!0,Cn);Zn=rr.checkedKeys}var Dn=te(Zn,Ge,Mt);bn=ft(Dn)}ct([].concat((0,i.Z)(In),(0,i.Z)(bn)))}}}function St(je,ct,Dt,qt,Jt){return U.useMemo(function(){var Ge=Jt(ct),ft=(0,H.Z)(Ge,2),Mt=ft[0],Ye=ft[1];if(!je||!ct.length)return[Mt,[],Ye];var jt=ze(Mt),rn=Dt(),an=(0,rt.S)(jt,!0,rn),nn=an.checkedKeys,mn=an.halfCheckedKeys;return[qt(nn),qt(mn),Ye]},[je,ct,Dt,qt,Jt])}var Me=U.memo(function(je){var ct=je.children;return ct},function(je,ct){return!ct.open}),Xt=Me;function tt(je){var ct,Dt=je.prefixCls,qt=je.checked,Jt=je.halfChecked,Ge=je.disabled,ft=je.onClick,Mt=je.disableCheckbox,Ye=U.useContext(T),jt=Ye.checkable,rn=typeof jt!="boolean"?jt:null;return U.createElement("span",{className:fe()("".concat(Dt),(ct={},(0,W.Z)(ct,"".concat(Dt,"-checked"),qt),(0,W.Z)(ct,"".concat(Dt,"-indeterminate"),!qt&&Jt),(0,W.Z)(ct,"".concat(Dt,"-disabled"),Ge||Mt),ct)),onClick:ft},rn)}var un="__cascader_fix_label__";function vt(je){var ct=je.prefixCls,Dt=je.multiple,qt=je.options,Jt=je.activeValue,Ge=je.prevValuePath,ft=je.onToggleOpen,Mt=je.onSelect,Ye=je.onActive,jt=je.checkedSet,rn=je.halfCheckedSet,an=je.loadingKeys,nn=je.isSelectable,mn=je.disabled,bn="".concat(ct,"-menu"),In="".concat(ct,"-menu-item"),_n=U.useContext(T),Cn=_n.fieldNames,Zn=_n.changeOnSelect,Ln=_n.expandTrigger,rr=_n.expandIcon,Dn=_n.loadingIcon,jn=_n.dropdownMenuColumnStyle,Xn=_n.optionRender,Wn=Ln==="hover",Gn=function(Bn){return mn||Bn},Jn=U.useMemo(function(){return qt.map(function(Rn){var Bn,ln=Rn.disabled,Tt=Rn.disableCheckbox,Fn=Rn[X],On=(Bn=Rn[un])!==null&&Bn!==void 0?Bn:Rn[Cn.label],sr=Rn[Cn.value],dr=Ze(Rn,Cn),Ar=Fn?Fn.map(function(xn){return xn[Cn.value]}):[].concat((0,i.Z)(Ge),[sr]),ur=pe(Ar),Yn=an.includes(ur),vn=jt.has(ur),hn=rn.has(ur);return{disabled:ln,label:On,value:sr,isLeaf:dr,isLoading:Yn,checked:vn,halfChecked:hn,option:Rn,disableCheckbox:Tt,fullPath:Ar,fullPathKey:ur}})},[qt,jt,Cn,rn,an,Ge]);return U.createElement("ul",{className:bn,role:"menu"},Jn.map(function(Rn){var Bn,ln=Rn.disabled,Tt=Rn.label,Fn=Rn.value,On=Rn.isLeaf,sr=Rn.isLoading,dr=Rn.checked,Ar=Rn.halfChecked,ur=Rn.option,Yn=Rn.fullPath,vn=Rn.fullPathKey,hn=Rn.disableCheckbox,xn=function(){if(!Gn(ln)){var Er=(0,i.Z)(Yn);Wn&&On&&Er.pop(),Ye(Er)}},Qn=function(){nn(ur)&&!Gn(ln)&&Mt(Yn,On)},tr;return typeof ur.title=="string"?tr=ur.title:typeof Tt=="string"&&(tr=Tt),U.createElement("li",{key:vn,className:fe()(In,(Bn={},(0,W.Z)(Bn,"".concat(In,"-expand"),!On),(0,W.Z)(Bn,"".concat(In,"-active"),Jt===Fn||Jt===vn),(0,W.Z)(Bn,"".concat(In,"-disabled"),Gn(ln)),(0,W.Z)(Bn,"".concat(In,"-loading"),sr),Bn)),style:jn,role:"menuitemcheckbox",title:tr,"aria-checked":dr,"data-path-key":vn,onClick:function(){xn(),!hn&&(!Dt||On)&&Qn()},onDoubleClick:function(){Zn&&ft(!1)},onMouseEnter:function(){Wn&&xn()},onMouseDown:function(Er){Er.preventDefault()}},Dt&&U.createElement(tt,{prefixCls:"".concat(ct,"-checkbox"),checked:dr,halfChecked:Ar,disabled:Gn(ln)||hn,disableCheckbox:hn,onClick:function(Er){hn||(Er.stopPropagation(),Qn())}}),U.createElement("div",{className:"".concat(In,"-content")},Xn?Xn(ur):Tt),!sr&&rr&&!On&&U.createElement("div",{className:"".concat(In,"-expand-icon")},rr),sr&&Dn&&U.createElement("div",{className:"".concat(In,"-loading-icon")},Dn))}))}var bt=function(ct,Dt){var qt=U.useContext(T),Jt=qt.values,Ge=Jt[0],ft=U.useState([]),Mt=(0,H.Z)(ft,2),Ye=Mt[0],jt=Mt[1];return U.useEffect(function(){ct||jt(Ge||[])},[Dt,Ge]),[Ye,jt]},Ve=bt,Le=u(10228),oe=function(je,ct,Dt,qt,Jt,Ge,ft){var Mt=ft.direction,Ye=ft.searchValue,jt=ft.toggleOpen,rn=ft.open,an=Mt==="rtl",nn=U.useMemo(function(){for(var jn=-1,Xn=ct,Wn=[],Gn=[],Jn=qt.length,Rn=N(ct,Dt),Bn=function(sr){var dr=Xn.findIndex(function(Ar,ur){return(Rn[ur]?pe(Rn[ur]):Ar[Dt.value])===qt[sr]});if(dr===-1)return 1;jn=dr,Wn.push(jn),Gn.push(qt[sr]),Xn=Xn[jn][Dt.children]},ln=0;ln<Jn&&Xn&&!Bn(ln);ln+=1);for(var Tt=ct,Fn=0;Fn<Wn.length-1;Fn+=1)Tt=Tt[Wn[Fn]][Dt.children];return[Gn,jn,Tt,Rn]},[qt,Dt,ct]),mn=(0,H.Z)(nn,4),bn=mn[0],In=mn[1],_n=mn[2],Cn=mn[3],Zn=function(Xn){Jt(Xn)},Ln=function(Xn){var Wn=_n.length,Gn=In;Gn===-1&&Xn<0&&(Gn=Wn);for(var Jn=0;Jn<Wn;Jn+=1){Gn=(Gn+Xn+Wn)%Wn;var Rn=_n[Gn];if(Rn&&!Rn.disabled){var Bn=bn.slice(0,-1).concat(Cn[Gn]?pe(Cn[Gn]):Rn[Dt.value]);Zn(Bn);return}}},rr=function(){if(bn.length>1){var Xn=bn.slice(0,-1);Zn(Xn)}else jt(!1)},Dn=function(){var Xn,Wn=((Xn=_n[In])===null||Xn===void 0?void 0:Xn[Dt.children])||[],Gn=Wn.find(function(Rn){return!Rn.disabled});if(Gn){var Jn=[].concat((0,i.Z)(bn),[Gn[Dt.value]]);Zn(Jn)}};U.useImperativeHandle(je,function(){return{onKeyDown:function(Xn){var Wn=Xn.which;switch(Wn){case Le.Z.UP:case Le.Z.DOWN:{var Gn=0;Wn===Le.Z.UP?Gn=-1:Wn===Le.Z.DOWN&&(Gn=1),Gn!==0&&Ln(Gn);break}case Le.Z.LEFT:{if(Ye)break;an?Dn():rr();break}case Le.Z.RIGHT:{if(Ye)break;an?rr():Dn();break}case Le.Z.BACKSPACE:{Ye||rr();break}case Le.Z.ENTER:{if(bn.length){var Jn=_n[In],Rn=(Jn==null?void 0:Jn[X])||[];Rn.length?Ge(Rn.map(function(Bn){return Bn[Dt.value]}),Rn[Rn.length-1]):Ge(bn,_n[In])}break}case Le.Z.ESC:jt(!1),rn&&Xn.stopPropagation()}},onKeyUp:function(){}}})},nt=U.forwardRef(function(je,ct){var Dt,qt,Jt,Ge=je.prefixCls,ft=je.multiple,Mt=je.searchValue,Ye=je.toggleOpen,jt=je.notFoundContent,rn=je.direction,an=je.open,nn=je.disabled,mn=U.useRef(null),bn=rn==="rtl",In=U.useContext(T),_n=In.options,Cn=In.values,Zn=In.halfValues,Ln=In.fieldNames,rr=In.changeOnSelect,Dn=In.onSelect,jn=In.searchOptions,Xn=In.dropdownPrefixCls,Wn=In.loadData,Gn=In.expandTrigger,Jn=Xn||Ge,Rn=U.useState([]),Bn=(0,H.Z)(Rn,2),ln=Bn[0],Tt=Bn[1],Fn=function(Or){if(!(!Wn||Mt)){var Cr=se(Or,_n,Ln),zr=Cr.map(function(Ir){var tn=Ir.option;return tn}),wr=zr[zr.length-1];if(wr&&!Ze(wr,Ln)){var Vr=pe(Or);Tt(function(Ir){return[].concat((0,i.Z)(Ir),[Vr])}),Wn(zr)}}};U.useEffect(function(){ln.length&&ln.forEach(function(Mr){var Or=Je(Mr),Cr=se(Or,_n,Ln,!0).map(function(wr){var Vr=wr.option;return Vr}),zr=Cr[Cr.length-1];(!zr||zr[Ln.children]||Ze(zr,Ln))&&Tt(function(wr){return wr.filter(function(Vr){return Vr!==Mr})})})},[_n,ln,Ln]);var On=U.useMemo(function(){return new Set(ze(Cn))},[Cn]),sr=U.useMemo(function(){return new Set(ze(Zn))},[Zn]),dr=Ve(ft,an),Ar=(0,H.Z)(dr,2),ur=Ar[0],Yn=Ar[1],vn=function(Or){Yn(Or),Fn(Or)},hn=function(Or){if(nn)return!1;var Cr=Or.disabled,zr=Ze(Or,Ln);return!Cr&&(zr||rr||ft)},xn=function(Or,Cr){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Dn(Or),!ft&&(Cr||rr&&(Gn==="hover"||zr))&&Ye(!1)},Qn=U.useMemo(function(){return Mt?jn:_n},[Mt,jn,_n]),tr=U.useMemo(function(){for(var Mr=[{options:Qn}],Or=Qn,Cr=N(Or,Ln),zr=function(){var Ir=ur[wr],tn=Or.find(function(cr,or){return(Cr[or]?pe(Cr[or]):cr[Ln.value])===Ir}),Tn=tn==null?void 0:tn[Ln.children];if(!(Tn!=null&&Tn.length))return 1;Or=Tn,Mr.push({options:Tn})},wr=0;wr<ur.length&&!zr();wr+=1);return Mr},[Qn,ur,Ln]),yr=function(Or,Cr){hn(Cr)&&xn(Or,Ze(Cr,Ln),!0)};oe(ct,Qn,Ln,ur,vn,yr,{direction:rn,searchValue:Mt,toggleOpen:Ye,open:an}),U.useEffect(function(){if(!Mt)for(var Mr=0;Mr<ur.length;Mr+=1){var Or,Cr=ur.slice(0,Mr+1),zr=pe(Cr),wr=(Or=mn.current)===null||Or===void 0?void 0:Or.querySelector('li[data-path-key="'.concat(zr.replace(/\\{0,2}"/g,'\\"'),'"]'));wr&&le(wr)}},[ur,Mt]);var Er=!((Dt=tr[0])!==null&&Dt!==void 0&&(Dt=Dt.options)!==null&&Dt!==void 0&&Dt.length),$n=[(qt={},(0,W.Z)(qt,Ln.value,"__EMPTY__"),(0,W.Z)(qt,un,jt),(0,W.Z)(qt,"disabled",!0),qt)],Sr=(0,g.Z)((0,g.Z)({},je),{},{multiple:!Er&&ft,onSelect:xn,onActive:vn,onToggleOpen:Ye,checkedSet:On,halfCheckedSet:sr,loadingKeys:ln,isSelectable:hn}),Dr=Er?[{options:$n}]:tr,$r=Dr.map(function(Mr,Or){var Cr=ur.slice(0,Or),zr=ur[Or];return U.createElement(vt,(0,Z.Z)({key:Or},Sr,{prefixCls:Jn,options:Mr.options,prevValuePath:Cr,activeValue:zr}))});return U.createElement(Xt,{open:an},U.createElement("div",{className:fe()("".concat(Jn,"-menus"),(Jt={},(0,W.Z)(Jt,"".concat(Jn,"-menu-empty"),Er),(0,W.Z)(Jt,"".concat(Jn,"-rtl"),bn),Jt)),ref:mn},$r))}),Ue=nt,K=U.forwardRef(function(je,ct){var Dt=(0,l.lk)();return U.createElement(Ue,(0,Z.Z)({},je,Dt,{ref:ct}))}),D=K,Se=u(70425);function Ae(){}function Ce(je){var ct,Dt=je,qt=Dt.prefixCls,Jt=qt===void 0?"rc-cascader":qt,Ge=Dt.style,ft=Dt.className,Mt=Dt.options,Ye=Dt.checkable,jt=Dt.defaultValue,rn=Dt.value,an=Dt.fieldNames,nn=Dt.changeOnSelect,mn=Dt.onChange,bn=Dt.showCheckedStrategy,In=Dt.loadData,_n=Dt.expandTrigger,Cn=Dt.expandIcon,Zn=Cn===void 0?">":Cn,Ln=Dt.loadingIcon,rr=Dt.direction,Dn=Dt.notFoundContent,jn=Dn===void 0?"Not Found":Dn,Xn=Dt.disabled,Wn=!!Ye,Gn=(0,Se.C8)(jt,{value:rn,postState:q}),Jn=(0,H.Z)(Gn,2),Rn=Jn[0],Bn=Jn[1],ln=U.useMemo(function(){return Pe(an)},[JSON.stringify(an)]),Tt=dt(ln,Mt),Fn=(0,H.Z)(Tt,3),On=Fn[0],sr=Fn[1],dr=Fn[2],Ar=I(On,ln),ur=St(Wn,Rn,sr,dr,Ar),Yn=(0,H.Z)(ur,3),vn=Yn[0],hn=Yn[1],xn=Yn[2],Qn=(0,Se.zX)(function(Dr){if(Bn(Dr),mn){var $r=q(Dr),Mr=$r.map(function(zr){return se(zr,On,ln).map(function(wr){return wr.option})}),Or=Wn?$r:$r[0],Cr=Wn?Mr:Mr[0];mn(Or,Cr)}}),tr=ht(Wn,Qn,vn,hn,xn,sr,dr,bn),yr=(0,Se.zX)(function(Dr){tr(Dr)}),Er=U.useMemo(function(){return{options:On,fieldNames:ln,values:vn,halfValues:hn,changeOnSelect:nn,onSelect:yr,checkable:Ye,searchOptions:[],dropdownPrefixCls:void 0,loadData:In,expandTrigger:_n,expandIcon:Zn,loadingIcon:Ln,dropdownMenuColumnStyle:void 0}},[On,ln,vn,hn,nn,yr,Ye,In,_n,Zn,Ln]),$n="".concat(Jt,"-panel"),Sr=!On.length;return U.createElement(T.Provider,{value:Er},U.createElement("div",{className:fe()($n,(ct={},(0,W.Z)(ct,"".concat($n,"-rtl"),rr==="rtl"),(0,W.Z)(ct,"".concat($n,"-empty"),Sr),ct),ft),style:Ge},Sr?jn:U.createElement(Ue,{prefixCls:Jt,searchValue:"",multiple:Wn,toggleOpen:Ae,open:!0,direction:rr,disabled:Xn})))}function ke(je){var ct=je.onPopupVisibleChange,Dt=je.popupVisible,qt=je.popupClassName,Jt=je.popupPlacement;warning(!ct,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Dt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(qt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Jt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Xe(je,ct){if(je){var Dt=function qt(Jt){for(var Ge=0;Ge<Jt.length;Ge++){var ft=Jt[Ge];if(ft[ct==null?void 0:ct.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(ft[ct==null?void 0:ct.children])&&qt(ft[ct==null?void 0:ct.children]))return!0}};Dt(je)}}var yt=null,he=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],me=U.forwardRef(function(je,ct){var Dt=je.id,qt=je.prefixCls,Jt=qt===void 0?"rc-cascader":qt,Ge=je.fieldNames,ft=je.defaultValue,Mt=je.value,Ye=je.changeOnSelect,jt=je.onChange,rn=je.displayRender,an=je.checkable,nn=je.autoClearSearchValue,mn=nn===void 0?!0:nn,bn=je.searchValue,In=je.onSearch,_n=je.showSearch,Cn=je.expandTrigger,Zn=je.options,Ln=je.dropdownPrefixCls,rr=je.loadData,Dn=je.popupVisible,jn=je.open,Xn=je.popupClassName,Wn=je.dropdownClassName,Gn=je.dropdownMenuColumnStyle,Jn=je.dropdownStyle,Rn=je.popupPlacement,Bn=je.placement,ln=je.onDropdownVisibleChange,Tt=je.onPopupVisibleChange,Fn=je.expandIcon,On=Fn===void 0?">":Fn,sr=je.loadingIcon,dr=je.children,Ar=je.dropdownMatchSelectWidth,ur=Ar===void 0?!1:Ar,Yn=je.showCheckedStrategy,vn=Yn===void 0?ce:Yn,hn=je.optionRender,xn=(0,V.Z)(je,he),Qn=(0,y.ZP)(Dt),tr=!!an,yr=(0,b.Z)(ft,{value:Mt,postState:q}),Er=(0,H.Z)(yr,2),$n=Er[0],Sr=Er[1],Dr=U.useMemo(function(){return Pe(Ge)},[JSON.stringify(Ge)]),$r=dt(Dr,Zn),Mr=(0,H.Z)($r,3),Or=Mr[0],Cr=Mr[1],zr=Mr[2],wr=(0,b.Z)("",{value:bn,postState:function(Pr){return Pr||""}}),Vr=(0,H.Z)(wr,2),Ir=Vr[0],tn=Vr[1],Tn=function(Pr,Wr){tn(Pr),Wr.source!=="blur"&&In&&In(Pr)},cr=Te(_n),or=(0,H.Z)(cr,2),Br=or[0],ri=or[1],vi=P(Ir,Or,Dr,Ln||Jt,ri,Ye||tr),_r=I(Or,Dr),mr=St(tr,$n,Cr,zr,_r),bi=(0,H.Z)(mr,3),ar=bi[0],wi=bi[1],Yi=bi[2],Wi=U.useMemo(function(){var br=ze(ar),Pr=te(br,Cr,vn);return[].concat((0,i.Z)(Yi),(0,i.Z)(zr(Pr)))},[ar,Cr,zr,Yi,vn]),Mi=w(Wi,Or,Dr,tr,rn),ki=(0,M.Z)(function(br){if(Sr(br),jt){var Pr=q(br),Wr=Pr.map(function(Rr){return se(Rr,Or,Dr).map(function(Nr){return Nr.option})}),Ci=tr?Pr:Pr[0],xr=tr?Wr:Wr[0];jt(Ci,xr)}}),Gr=ht(tr,ki,ar,wi,Yi,Cr,zr,vn),Di=(0,M.Z)(function(br){(!tr||mn)&&tn(""),Gr(br)}),ra=function(Pr,Wr){if(Wr.type==="clear"){ki([]);return}var Ci=Wr.values[0],xr=Ci.valueCells;Di(xr)},zi=jn!==void 0?jn:Dn,hi=Wn||Xn,Ni=Bn||Rn,Zi=function(Pr){ln==null||ln(Pr),Tt==null||Tt(Pr)},Fr=U.useMemo(function(){return{options:Or,fieldNames:Dr,values:ar,halfValues:wi,changeOnSelect:Ye,onSelect:Di,checkable:an,searchOptions:vi,dropdownPrefixCls:Ln,loadData:rr,expandTrigger:Cn,expandIcon:On,loadingIcon:sr,dropdownMenuColumnStyle:Gn,optionRender:hn}},[Or,Dr,ar,wi,Ye,Di,an,vi,Ln,rr,Cn,On,sr,Gn,hn]),ti=!(Ir?vi:Or).length,vr=Ir&&ri.matchInputWidth||ti?{}:{minWidth:"auto"};return U.createElement(T.Provider,{value:Fr},U.createElement(l.Ac,(0,Z.Z)({},xn,{ref:ct,id:Qn,prefixCls:Jt,autoClearSearchValue:mn,dropdownMatchSelectWidth:ur,dropdownStyle:(0,g.Z)((0,g.Z)({},vr),Jn),displayValues:Mi,onDisplayValuesChange:ra,mode:tr?"multiple":void 0,searchValue:Ir,onSearch:Tn,showSearch:Br,OptionList:D,emptyOptions:ti,open:zi,dropdownClassName:hi,placement:Ni,onDropdownVisibleChange:Zi,getRawInputElement:function(){return dr}})))});me.SHOW_PARENT=ce,me.SHOW_CHILD=Ee,me.Panel=Ce;var Lt=me,Ct=Lt,Nt=u(2738),kt=u(75030),pt=u(86641),Vt=u(45915),Zt=u(82855),Re=u(48755),gt=u(38406),E=u(2171),R=u(83397),at=u(31756),ae=u(56553),Y=u(24971),Ft=u(1722),Ke=u(90376),st=u(68525),_t=u(90005),xe=u(70045);function _e(je,ct){const{getPrefixCls:Dt,direction:qt,renderEmpty:Jt}=U.useContext(Re.E_),Ge=ct||qt,ft=Dt("select",je),Mt=Dt("cascader",je);return[ft,Mt,Ge,Jt]}var et=_e;function Qe(je,ct){return U.useMemo(()=>ct?U.createElement("span",{className:`${je}-checkbox-inner`}):!1,[ct])}var z=u(33853),Rt=u(58617),ge=u(38819),cn=(je,ct,Dt)=>{let qt=Dt;Dt||(qt=ct?U.createElement(z.Z,null):U.createElement(ge.Z,null));const Jt=U.createElement("span",{className:`${je}-menu-item-loading-icon`},U.createElement(Rt.Z,{spin:!0}));return U.useMemo(()=>[qt,Jt],[qt])},mt=u(56119),ne=u(16931),we=u(36237),B=u(36170),xt=u(63356),ot=je=>{const{prefixCls:ct,componentCls:Dt}=je,qt=`${Dt}-menu-item`,Jt=`
&${qt}-expand ${qt}-expand-icon,
${qt}-loading-icon
`;return[(0,B.C2)(`${ct}-checkbox`,je),{[Dt]:{"&-checkbox":{top:0,marginInlineEnd:je.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Dt}-menu-empty`]:{[`${Dt}-menu`]:{width:"100%",height:"auto",[qt]:{color:je.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:je.controlItemWidth,height:je.dropdownHeight,margin:0,padding:je.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,we.unit)(je.lineWidth)} ${je.lineType} ${je.colorSplit}`},"&-item":Object.assign(Object.assign({},xt.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:je.optionPadding,lineHeight:je.lineHeight,cursor:"pointer",transition:`all ${je.motionDurationMid}`,borderRadius:je.borderRadiusSM,"&:hover":{background:je.controlItemBgHover},"&-disabled":{color:je.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Jt]:{color:je.colorTextDisabled}},[`&-active:not(${qt}-disabled)`]:{"&, &:hover":{color:je.optionSelectedColor,fontWeight:je.optionSelectedFontWeight,backgroundColor:je.optionSelectedBg}},"&-content":{flex:"auto"},[Jt]:{marginInlineStart:je.paddingXXS,color:je.colorTextDescription,fontSize:je.fontSizeIcon},"&-keyword":{color:je.colorHighlight}})}}}]};const $t=je=>{const{componentCls:ct,antCls:Dt}=je;return[{[ct]:{width:je.controlWidth}},{[`${ct}-dropdown`]:[{[`&${Dt}-select-dropdown`]:{padding:0}},ot(je)]},{[`${ct}-dropdown-rtl`]:{direction:"rtl"}},(0,mt.c)(je)]},Bt=je=>{const ct=Math.round((je.controlHeight-je.fontSize*je.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:je.controlItemBgActive,optionSelectedFontWeight:je.fontWeightStrong,optionPadding:`${ct}px ${je.paddingSM}px`,menuPadding:je.paddingXXS,optionSelectedColor:je.colorText}};var zt=(0,ne.I$)("Cascader",je=>[$t(je)],Bt);const re=je=>{const{componentCls:ct}=je;return{[`${ct}-panel`]:[ot(je),{display:"inline-flex",border:`${(0,we.unit)(je.lineWidth)} ${je.lineType} ${je.colorSplit}`,borderRadius:je.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${ct}-menus`]:{alignItems:"stretch"},[`${ct}-menu`]:{height:"auto"},"&-empty":{padding:je.paddingXXS}}]}};var ve=(0,ne.A1)(["Cascader","Panel"],je=>re(je),Bt);function wt(je){const{prefixCls:ct,className:Dt,multiple:qt,rootClassName:Jt,notFoundContent:Ge,direction:ft,expandIcon:Mt,disabled:Ye}=je,jt=U.useContext(E.Z),rn=Ye!=null?Ye:jt,[an,nn,mn,bn]=et(ct,ft),In=(0,R.Z)(nn),[_n,Cn,Zn]=zt(nn,In);ve(nn);const Ln=mn==="rtl",[rr,Dn]=cn(an,Ln,Mt),jn=Ge||(bn==null?void 0:bn("Cascader"))||U.createElement(gt.Z,{componentName:"Cascader"}),Xn=Qe(nn,qt);return _n(U.createElement(Ce,Object.assign({},je,{checkable:Xn,prefixCls:nn,className:fe()(Dt,Cn,Jt,Zn,In),notFoundContent:jn,direction:mn,expandIcon:rr,loadingIcon:Dn,disabled:rn})))}var Ne=wt,Be=function(je,ct){var Dt={};for(var qt in je)Object.prototype.hasOwnProperty.call(je,qt)&&ct.indexOf(qt)<0&&(Dt[qt]=je[qt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,qt=Object.getOwnPropertySymbols(je);Jt<qt.length;Jt++)ct.indexOf(qt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(je,qt[Jt])&&(Dt[qt[Jt]]=je[qt[Jt]]);return Dt};const{SHOW_CHILD:ue,SHOW_PARENT:Ie}=Ct;function Fe(je,ct,Dt){const qt=je.toLowerCase().split(ct).reduce((ft,Mt,Ye)=>Ye===0?[Mt]:[].concat((0,i.Z)(ft),[ct,Mt]),[]),Jt=[];let Ge=0;return qt.forEach((ft,Mt)=>{const Ye=Ge+ft.length;let jt=je.slice(Ge,Ye);Ge=Ye,Mt%2===1&&(jt=U.createElement("span",{className:`${Dt}-menu-item-keyword`,key:`separator-${Mt}`},jt)),Jt.push(jt)}),Jt}const $e=(je,ct,Dt,qt)=>{const Jt=[],Ge=je.toLowerCase();return ct.forEach((ft,Mt)=>{Mt!==0&&Jt.push(" / ");let Ye=ft[qt.label];const jt=typeof Ye;(jt==="string"||jt==="number")&&(Ye=Fe(String(Ye),Ge,Dt)),Jt.push(Ye)}),Jt},ut=U.forwardRef((je,ct)=>{var Dt;const{prefixCls:qt,size:Jt,disabled:Ge,className:ft,rootClassName:Mt,multiple:Ye,bordered:jt=!0,transitionName:rn,choiceTransitionName:an="",popupClassName:nn,dropdownClassName:mn,expandIcon:bn,placement:In,showSearch:_n,allowClear:Cn=!0,notFoundContent:Zn,direction:Ln,getPopupContainer:rr,status:Dn,showArrow:jn,builtinPlacements:Xn,style:Wn,variant:Gn}=je,Jn=Be(je,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Rn=(0,Nt.Z)(Jn,["suffixIcon"]),{getPrefixCls:Bn,getPopupContainer:ln,className:Tt,style:Fn}=(0,Re.dj)("cascader"),{popupOverflow:On}=U.useContext(Re.E_),{status:sr,hasFeedback:dr,isFormItemInput:Ar,feedbackIcon:ur}=U.useContext(ae.aM),Yn=(0,Zt.F)(sr,Dn),[vn,hn,xn,Qn]=et(qt,Ln),tr=xn==="rtl",yr=Bn(),Er=(0,R.Z)(vn),[$n,Sr,Dr]=(0,Ke.Z)(vn,Er),$r=(0,R.Z)(hn),[Mr]=zt(hn,$r),{compactSize:Or,compactItemClassnames:Cr}=(0,xe.ri)(vn,Ln),[zr,wr]=(0,Y.Z)("cascader",Gn,jt),Vr=Zn||(Qn==null?void 0:Qn("Cascader"))||U.createElement(gt.Z,{componentName:"Cascader"}),Ir=fe()(nn||mn,`${hn}-dropdown`,{[`${hn}-dropdown-rtl`]:xn==="rtl"},Mt,Er,$r,Sr,Dr),tn=U.useMemo(()=>{if(!_n)return _n;let ki={render:$e};return typeof _n=="object"&&(ki=Object.assign(Object.assign({},ki),_n)),ki},[_n]),Tn=(0,at.Z)(ki=>{var Gr;return(Gr=Jt!=null?Jt:Or)!==null&&Gr!==void 0?Gr:ki}),cr=U.useContext(E.Z),or=Ge!=null?Ge:cr,[Br,ri]=cn(vn,tr,bn),vi=Qe(hn,Ye),_r=(0,_t.Z)(je.suffixIcon,jn),{suffixIcon:mr,removeIcon:bi,clearIcon:ar}=(0,st.Z)(Object.assign(Object.assign({},je),{hasFeedback:dr,feedbackIcon:ur,showSuffixIcon:_r,multiple:Ye,prefixCls:vn,componentName:"Cascader"})),wi=U.useMemo(()=>In!==void 0?In:tr?"bottomRight":"bottomLeft",[In,tr]),Yi=Cn===!0?{clearIcon:ar}:Cn,[Wi]=(0,kt.Cn)("SelectLike",(Dt=Rn.dropdownStyle)===null||Dt===void 0?void 0:Dt.zIndex),Mi=U.createElement(Ct,Object.assign({prefixCls:vn,className:fe()(!qt&&hn,{[`${vn}-lg`]:Tn==="large",[`${vn}-sm`]:Tn==="small",[`${vn}-rtl`]:tr,[`${vn}-${zr}`]:wr,[`${vn}-in-form-item`]:Ar},(0,Zt.Z)(vn,Yn,dr),Cr,Tt,ft,Mt,Er,$r,Sr,Dr),disabled:or,style:Object.assign(Object.assign({},Fn),Wn)},Rn,{builtinPlacements:(0,Ft.Z)(Xn,On),direction:xn,placement:wi,notFoundContent:Vr,allowClear:Yi,showSearch:tn,expandIcon:Br,suffixIcon:mr,removeIcon:bi,loadingIcon:ri,checkable:vi,dropdownClassName:Ir,dropdownPrefixCls:qt||hn,dropdownStyle:Object.assign(Object.assign({},Rn.dropdownStyle),{zIndex:Wi}),choiceTransitionName:(0,pt.m)(yr,"",an),transitionName:(0,pt.m)(yr,"slide-up",rn),getPopupContainer:rr||ln,ref:ct}));return Mr($n(Mi))}),Gt=(0,Vt.Z)(ut,"dropdownAlign",je=>(0,Nt.Z)(je,["visible"]));ut.SHOW_PARENT=Ie,ut.SHOW_CHILD=ue,ut.Panel=Ne,ut._InternalPanelDoNotUseOrYouWillBeFired=Gt;var sn=ut},62673:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return ze}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(16632),Z=u(8654),g=u(12919),H=u(63872),V=u(48755),l=u(2171),y=u(83397),M=u(56553),C=i.createContext(null),T=u(36170),$=u(74632),W=function(Je,Pe){var Ze={};for(var le in Je)Object.prototype.hasOwnProperty.call(Je,le)&&Pe.indexOf(le)<0&&(Ze[le]=Je[le]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,le=Object.getOwnPropertySymbols(Je);N<le.length;N++)Pe.indexOf(le[N])<0&&Object.prototype.propertyIsEnumerable.call(Je,le[N])&&(Ze[le[N]]=Je[le[N]]);return Ze};const X=(Je,Pe)=>{var Ze;const{prefixCls:le,className:N,rootClassName:S,children:q,indeterminate:te=!1,style:se,onMouseEnter:w,onMouseLeave:I,skipGroup:de=!1,disabled:De}=Je,dt=W(Je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:It,direction:Te,checkbox:rt}=i.useContext(V.E_),ht=i.useContext(C),{isFormItemInput:St}=i.useContext(M.aM),Me=i.useContext(l.Z),Xt=(Ze=(ht==null?void 0:ht.disabled)||De)!==null&&Ze!==void 0?Ze:Me,tt=i.useRef(dt.value),un=i.useRef(null),vt=(0,Z.sQ)(Pe,un);i.useEffect(()=>{ht==null||ht.registerValue(dt.value)},[]),i.useEffect(()=>{if(!de)return dt.value!==tt.current&&(ht==null||ht.cancelValue(tt.current),ht==null||ht.registerValue(dt.value),tt.current=dt.value),()=>ht==null?void 0:ht.cancelValue(dt.value)},[dt.value]),i.useEffect(()=>{var Ce;!((Ce=un.current)===null||Ce===void 0)&&Ce.input&&(un.current.input.indeterminate=te)},[te]);const bt=It("checkbox",le),Ve=(0,y.Z)(bt),[Le,oe,nt]=(0,T.ZP)(bt,Ve),Ue=Object.assign({},dt);ht&&!de&&(Ue.onChange=function(){dt.onChange&&dt.onChange.apply(dt,arguments),ht.toggleOption&&ht.toggleOption({label:q,value:dt.value})},Ue.name=ht.name,Ue.checked=ht.value.includes(dt.value));const K=O()(`${bt}-wrapper`,{[`${bt}-rtl`]:Te==="rtl",[`${bt}-wrapper-checked`]:Ue.checked,[`${bt}-wrapper-disabled`]:Xt,[`${bt}-wrapper-in-form-item`]:St},rt==null?void 0:rt.className,N,S,nt,Ve,oe),D=O()({[`${bt}-indeterminate`]:te},H.A,oe),[Se,Ae]=(0,$.Z)(Ue.onClick);return Le(i.createElement(g.Z,{component:"Checkbox",disabled:Xt},i.createElement("label",{className:K,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),se),onMouseEnter:w,onMouseLeave:I,onClick:Se},i.createElement(fe.Z,Object.assign({},Ue,{onClick:Ae,prefixCls:bt,className:D,disabled:Xt,ref:vt})),q!==void 0&&i.createElement("span",{className:`${bt}-label`},q))))};var L=i.forwardRef(X),Q=u(94480),P=u(2738),A=function(Je,Pe){var Ze={};for(var le in Je)Object.prototype.hasOwnProperty.call(Je,le)&&Pe.indexOf(le)<0&&(Ze[le]=Je[le]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,le=Object.getOwnPropertySymbols(Je);N<le.length;N++)Pe.indexOf(le[N])<0&&Object.prototype.propertyIsEnumerable.call(Je,le[N])&&(Ze[le[N]]=Je[le[N]]);return Ze},Ee=i.forwardRef((Je,Pe)=>{const{defaultValue:Ze,children:le,options:N=[],prefixCls:S,className:q,rootClassName:te,style:se,onChange:w}=Je,I=A(Je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:de,direction:De}=i.useContext(V.E_),[dt,It]=i.useState(I.value||Ze||[]),[Te,rt]=i.useState([]);i.useEffect(()=>{"value"in I&&It(I.value||[])},[I.value]);const ht=i.useMemo(()=>N.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[N]),St=D=>{rt(Se=>Se.filter(Ae=>Ae!==D))},Me=D=>{rt(Se=>[].concat((0,Q.Z)(Se),[D]))},Xt=D=>{const Se=dt.indexOf(D.value),Ae=(0,Q.Z)(dt);Se===-1?Ae.push(D.value):Ae.splice(Se,1),"value"in I||It(Ae),w==null||w(Ae.filter(Ce=>Te.includes(Ce)).sort((Ce,ke)=>{const Xe=ht.findIndex(he=>he.value===Ce),yt=ht.findIndex(he=>he.value===ke);return Xe-yt}))},tt=de("checkbox",S),un=`${tt}-group`,vt=(0,y.Z)(tt),[bt,Ve,Le]=(0,T.ZP)(tt,vt),oe=(0,P.Z)(I,["value","disabled"]),nt=N.length?ht.map(D=>i.createElement(L,{prefixCls:tt,key:D.value.toString(),disabled:"disabled"in D?D.disabled:I.disabled,value:D.value,checked:dt.includes(D.value),onChange:D.onChange,className:`${un}-item`,style:D.style,title:D.title,id:D.id,required:D.required},D.label)):le,Ue={toggleOption:Xt,value:dt,disabled:I.disabled,name:I.name,registerValue:Me,cancelValue:St},K=O()(un,{[`${un}-rtl`]:De==="rtl"},q,te,Le,vt,Ve);return bt(i.createElement("div",Object.assign({className:K,style:se},oe,{ref:Pe}),i.createElement(C.Provider,{value:Ue},nt)))});const pe=L;pe.Group=Ee,pe.__ANT_CHECKBOX=!0;var ze=pe},36170:function(zn,Pt,u){"use strict";u.d(Pt,{C2:function(){return g}});var i=u(36237),U=u(63356),O=u(51636),fe=u(16931);const Z=H=>{const{checkboxCls:V}=H,l=`${V}-wrapper`;return[{[`${V}-group`]:Object.assign(Object.assign({},(0,U.Wf)(H)),{display:"inline-flex",flexWrap:"wrap",columnGap:H.marginXS,[`> ${H.antCls}-row`]:{flex:1}}),[l]:Object.assign(Object.assign({},(0,U.Wf)(H)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${l}`]:{marginInlineStart:0},[`&${l}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[V]:Object.assign(Object.assign({},(0,U.Wf)(H)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:H.borderRadiusSM,alignSelf:"center",[`${V}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${V}-inner`]:Object.assign({},(0,U.oN)(H))},[`${V}-inner`]:{boxSizing:"border-box",display:"block",width:H.checkboxSize,height:H.checkboxSize,direction:"ltr",backgroundColor:H.colorBgContainer,border:`${(0,i.unit)(H.lineWidth)} ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadiusSM,borderCollapse:"separate",transition:`all ${H.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:H.calc(H.checkboxSize).div(14).mul(5).equal(),height:H.calc(H.checkboxSize).div(14).mul(8).equal(),border:`${(0,i.unit)(H.lineWidthBold)} solid ${H.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${H.motionDurationFast} ${H.motionEaseInBack}, opacity ${H.motionDurationFast}`}},"& + span":{paddingInlineStart:H.paddingXS,paddingInlineEnd:H.paddingXS}})},{[`
${l}:not(${l}-disabled),
${V}:not(${V}-disabled)
`]:{[`&:hover ${V}-inner`]:{borderColor:H.colorPrimary}},[`${l}:not(${l}-disabled)`]:{[`&:hover ${V}-checked:not(${V}-disabled) ${V}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${V}-checked:not(${V}-disabled):after`]:{borderColor:H.colorPrimaryHover}}},{[`${V}-checked`]:{[`${V}-inner`]:{backgroundColor:H.colorPrimary,borderColor:H.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${H.motionDurationMid} ${H.motionEaseOutBack} ${H.motionDurationFast}`}}},[`
${l}-checked:not(${l}-disabled),
${V}-checked:not(${V}-disabled)
`]:{[`&:hover ${V}-inner`]:{backgroundColor:H.colorPrimaryHover,borderColor:"transparent"}}},{[V]:{"&-indeterminate":{[`${V}-inner`]:{backgroundColor:`${H.colorBgContainer} !important`,borderColor:`${H.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:H.calc(H.fontSizeLG).div(2).equal(),height:H.calc(H.fontSizeLG).div(2).equal(),backgroundColor:H.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${V}-inner`]:{backgroundColor:`${H.colorBgContainer} !important`,borderColor:`${H.colorPrimary} !important`}}}},{[`${l}-disabled`]:{cursor:"not-allowed"},[`${V}-disabled`]:{[`&, ${V}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${V}-inner`]:{background:H.colorBgContainerDisabled,borderColor:H.colorBorder,"&:after":{borderColor:H.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:H.colorTextDisabled},[`&${V}-indeterminate ${V}-inner::after`]:{background:H.colorTextDisabled}}}]};function g(H,V){const l=(0,O.mergeToken)(V,{checkboxCls:`.${H}`,checkboxSize:V.controlInteractiveSize});return[Z(l)]}Pt.ZP=(0,fe.I$)("Checkbox",(H,V)=>{let{prefixCls:l}=V;return[g(l,H)]})},74632:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return O}});var i=u(59301),U=u(16089);function O(fe){const Z=i.useRef(null),g=()=>{U.Z.cancel(Z.current),Z.current=null};return[()=>{g(),Z.current=(0,U.Z)(()=>{Z.current=null})},l=>{Z.current&&(l.stopPropagation(),g()),fe==null||fe(l)}]}},38406:function(zn,Pt,u){"use strict";var i=u(59301),U=u(48755),O=u(584);const fe=Z=>{const{componentName:g}=Z,{getPrefixCls:H}=(0,i.useContext)(U.E_),V=H("empty");switch(g){case"Table":case"List":return i.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return i.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${V}-small`});case"Table.filter":return null;default:return i.createElement(O.Z,null)}};Pt.Z=fe},19563:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return It}});var i=u(59301),U=u(33853),O=u(38819),fe=u(92310),Z=u.n(fe),g=u(96478),H=u(6089),V=u(18929),l=u(2738),y=u(75030),b=Te=>typeof Te!="object"&&typeof Te!="function"||Te===null,C=u(52838),T=u(45915),$=u(22703),W=u(32383),X=u(55743),G=u(48755),L=u(83397),Q=u(93041),P=u(78857),A=u(57700),ce=u(36237),Ee=u(63356),pe=u(46e3),ze=u(93873),Je=u(34925),Pe=u(37645),Ze=u(36305),le=u(16931),N=u(51636),q=Te=>{const{componentCls:rt,menuCls:ht,colorError:St,colorTextLightSolid:Me}=Te,Xt=`${ht}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${ht} ${Xt}`]:{[`&${Xt}-danger:not(${Xt}-disabled)`]:{color:St,"&:hover":{color:Me,backgroundColor:St}}}}}};const te=Te=>{const{componentCls:rt,menuCls:ht,zIndexPopup:St,dropdownArrowDistance:Me,sizePopupArrow:Xt,antCls:tt,iconCls:un,motionDurationMid:vt,paddingBlock:bt,fontSize:Ve,dropdownEdgeChildPadding:Le,colorTextDisabled:oe,fontSizeIcon:nt,controlPaddingHorizontal:Ue,colorBgElevated:K}=Te;return[{[rt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:St,display:"block","&::before":{position:"absolute",insetBlock:Te.calc(Xt).div(2).sub(Me).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${tt}-btn`]:{[`& > ${un}-down, & > ${tt}-btn-icon > ${un}-down`]:{fontSize:nt}},[`${rt}-wrap`]:{position:"relative",[`${tt}-btn > ${un}-down`]:{fontSize:nt},[`${un}-down::before`]:{transition:`transform ${vt}`}},[`${rt}-wrap-open`]:{[`${un}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${tt}-slide-down-enter${tt}-slide-down-enter-active${rt}-placement-bottomLeft,
&${tt}-slide-down-appear${tt}-slide-down-appear-active${rt}-placement-bottomLeft,
&${tt}-slide-down-enter${tt}-slide-down-enter-active${rt}-placement-bottom,
&${tt}-slide-down-appear${tt}-slide-down-appear-active${rt}-placement-bottom,
&${tt}-slide-down-enter${tt}-slide-down-enter-active${rt}-placement-bottomRight,
&${tt}-slide-down-appear${tt}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:pe.fJ},[`&${tt}-slide-up-enter${tt}-slide-up-enter-active${rt}-placement-topLeft,
&${tt}-slide-up-appear${tt}-slide-up-appear-active${rt}-placement-topLeft,
&${tt}-slide-up-enter${tt}-slide-up-enter-active${rt}-placement-top,
&${tt}-slide-up-appear${tt}-slide-up-appear-active${rt}-placement-top,
&${tt}-slide-up-enter${tt}-slide-up-enter-active${rt}-placement-topRight,
&${tt}-slide-up-appear${tt}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:pe.Qt},[`&${tt}-slide-down-leave${tt}-slide-down-leave-active${rt}-placement-bottomLeft,
&${tt}-slide-down-leave${tt}-slide-down-leave-active${rt}-placement-bottom,
&${tt}-slide-down-leave${tt}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:pe.Uw},[`&${tt}-slide-up-leave${tt}-slide-up-leave-active${rt}-placement-topLeft,
&${tt}-slide-up-leave${tt}-slide-up-leave-active${rt}-placement-top,
&${tt}-slide-up-leave${tt}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:pe.ly}}},(0,Pe.ZP)(Te,K,{arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${ht}`]:{position:"relative",margin:0},[`${ht}-submenu-popup`]:{position:"absolute",zIndex:St,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:Object.assign(Object.assign({},(0,Ee.Wf)(Te)),{[ht]:Object.assign(Object.assign({padding:Le,listStyleType:"none",backgroundColor:K,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary},(0,Ee.Qy)(Te)),{"&:empty":{padding:0,boxShadow:"none"},[`${ht}-item-group-title`]:{padding:`${(0,ce.unit)(bt)} ${(0,ce.unit)(Ue)}`,color:Te.colorTextDescription,transition:`all ${vt}`},[`${ht}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ht}-item-icon`]:{minWidth:Ve,marginInlineEnd:Te.marginXS,fontSize:Te.fontSizeSM},[`${ht}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${ht}-item-extra`]:{paddingInlineStart:Te.padding,marginInlineStart:"auto",fontSize:Te.fontSizeSM,color:Te.colorTextDescription}},[`${ht}-item, ${ht}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ce.unit)(bt)} ${(0,ce.unit)(Ue)}`,color:Te.colorText,fontWeight:"normal",fontSize:Ve,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:Te.borderRadiusSM,"&:hover, &-active":{backgroundColor:Te.controlItemBgHover}},(0,Ee.Qy)(Te)),{"&-selected":{color:Te.colorPrimary,backgroundColor:Te.controlItemBgActive,"&:hover, &-active":{backgroundColor:Te.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:K,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ce.unit)(Te.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Te.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Te.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Te.colorTextDescription,fontSize:nt,fontStyle:"normal"}}}),[`${ht}-item-group-list`]:{margin:`0 ${(0,ce.unit)(Te.marginXS)}`,padding:0,listStyle:"none"},[`${ht}-submenu-title`]:{paddingInlineEnd:Te.calc(Ue).add(Te.fontSizeSM).equal()},[`${ht}-submenu-vertical`]:{position:"relative"},[`${ht}-submenu${ht}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:K,cursor:"not-allowed"}},[`${ht}-submenu-selected ${rt}-menu-submenu-title`]:{color:Te.colorPrimary}})})},[(0,pe.oN)(Te,"slide-up"),(0,pe.oN)(Te,"slide-down"),(0,ze.Fm)(Te,"move-up"),(0,ze.Fm)(Te,"move-down"),(0,Je._y)(Te,"zoom-big")]]},se=Te=>Object.assign(Object.assign({zIndexPopup:Te.zIndexPopupBase+50,paddingBlock:(Te.controlHeight-Te.fontSize*Te.lineHeight)/2},(0,Pe.wZ)({contentRadius:Te.borderRadiusLG,limitVerticalRadius:!0})),(0,Ze.w)(Te));var w=(0,le.I$)("Dropdown",Te=>{const{marginXXS:rt,sizePopupArrow:ht,paddingXXS:St,componentCls:Me}=Te,Xt=(0,N.mergeToken)(Te,{menuCls:`${Me}-menu`,dropdownArrowDistance:Te.calc(ht).div(2).add(rt).equal(),dropdownEdgeChildPadding:St});return[te(Xt),q(Xt)]},se,{resetStyle:!1});const I=null,de=Te=>{var rt;const{menu:ht,arrow:St,prefixCls:Me,children:Xt,trigger:tt,disabled:un,dropdownRender:vt,getPopupContainer:bt,overlayClassName:Ve,rootClassName:Le,overlayStyle:oe,open:nt,onOpenChange:Ue,visible:K,onVisibleChange:D,mouseEnterDelay:Se=.15,mouseLeaveDelay:Ae=.1,autoAdjustOverflow:Ce=!0,placement:ke="",overlay:Xe,transitionName:yt}=Te,{getPopupContainer:he,getPrefixCls:me,direction:Lt,dropdown:Ct}=i.useContext(G.E_),Nt=(0,W.ln)("Dropdown"),kt=i.useMemo(()=>{const Ht=me();return yt!==void 0?yt:ke.includes("top")?`${Ht}-slide-down`:`${Ht}-slide-up`},[me,ke,yt]),pt=i.useMemo(()=>ke?ke.includes("Center")?ke.slice(0,ke.indexOf("Center")):ke:Lt==="rtl"?"bottomRight":"bottomLeft",[ke,Lt]),Vt=me("dropdown",Me),Zt=(0,L.Z)(Vt),[Re,gt,E]=w(Vt,Zt),[,R]=(0,A.ZP)(),at=i.Children.only(b(Xt)?i.createElement("span",null,Xt):Xt),ae=(0,$.Tm)(at,{className:Z()(`${Vt}-trigger`,{[`${Vt}-rtl`]:Lt==="rtl"},at.props.className),disabled:(rt=at.props.disabled)!==null&&rt!==void 0?rt:un}),Y=un?[]:tt,Ft=!!(Y!=null&&Y.includes("contextMenu")),[Ke,st]=(0,V.Z)(!1,{value:nt!=null?nt:K}),_t=(0,H.Z)(Ht=>{Ue==null||Ue(Ht,{source:"trigger"}),D==null||D(Ht),st(Ht)}),xe=Z()(Ve,Le,gt,E,Zt,Ct==null?void 0:Ct.className,{[`${Vt}-rtl`]:Lt==="rtl"}),_e=(0,C.Z)({arrowPointAtCenter:typeof St=="object"&&St.pointAtCenter,autoAdjustOverflow:Ce,offset:R.marginXXS,arrowWidth:St?R.sizePopupArrow:0,borderRadius:R.borderRadius}),et=i.useCallback(()=>{ht!=null&&ht.selectable&&(ht!=null&&ht.multiple)||(Ue==null||Ue(!1,{source:"menu"}),st(!1))},[ht==null?void 0:ht.selectable,ht==null?void 0:ht.multiple]),Qe=()=>{let Ht;return ht!=null&&ht.items?Ht=i.createElement(Q.default,Object.assign({},ht)):typeof Xe=="function"?Ht=Xe():Ht=Xe,vt&&(Ht=vt(Ht)),Ht=i.Children.only(typeof Ht=="string"?i.createElement("span",null,Ht):Ht),i.createElement(P.J,{prefixCls:`${Vt}-menu`,rootClassName:Z()(E,Zt),expandIcon:i.createElement("span",{className:`${Vt}-menu-submenu-arrow`},Lt==="rtl"?i.createElement(U.Z,{className:`${Vt}-menu-submenu-arrow-icon`}):i.createElement(O.Z,{className:`${Vt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:et,validator:cn=>{let{mode:mt}=cn}},Ht)},[z,Rt]=(0,y.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let ge=i.createElement(g.Z,Object.assign({alignPoint:Ft},(0,l.Z)(Te,["rootClassName"]),{mouseEnterDelay:Se,mouseLeaveDelay:Ae,visible:Ke,builtinPlacements:_e,arrow:!!St,overlayClassName:xe,prefixCls:Vt,getPopupContainer:bt||he,transitionName:kt,trigger:Y,overlay:Qe,placement:pt,onVisibleChange:_t,overlayStyle:Object.assign(Object.assign(Object.assign({},Ct==null?void 0:Ct.style),oe),{zIndex:z})}),ae);return z&&(ge=i.createElement(X.Z.Provider,{value:Rt},ge)),Re(ge)},De=(0,T.Z)(de,"align",void 0,"dropdown",Te=>Te),dt=Te=>i.createElement(De,Object.assign({},Te),i.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=dt;var It=de},75727:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return T}});var i=u(19563),U=u(59301),O=u(18785),fe=u(92310),Z=u.n(fe),g=u(7939),H=u(48755),V=u(44104),l=u(70045),y=function($,W){var X={};for(var G in $)Object.prototype.hasOwnProperty.call($,G)&&W.indexOf(G)<0&&(X[G]=$[G]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,G=Object.getOwnPropertySymbols($);L<G.length;L++)W.indexOf(G[L])<0&&Object.prototype.propertyIsEnumerable.call($,G[L])&&(X[G[L]]=$[G[L]]);return X};const M=$=>{const{getPopupContainer:W,getPrefixCls:X,direction:G}=U.useContext(H.E_),{prefixCls:L,type:Q="default",danger:P,disabled:A,loading:ce,onClick:Ee,htmlType:pe,children:ze,className:Je,menu:Pe,arrow:Ze,autoFocus:le,overlay:N,trigger:S,align:q,open:te,onOpenChange:se,placement:w,getPopupContainer:I,href:de,icon:De=U.createElement(O.Z,null),title:dt,buttonsRender:It=Se=>Se,mouseEnterDelay:Te,mouseLeaveDelay:rt,overlayClassName:ht,overlayStyle:St,destroyPopupOnHide:Me,dropdownRender:Xt}=$,tt=y($,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),un=X("dropdown",L),vt=`${un}-button`,bt={menu:Pe,arrow:Ze,autoFocus:le,align:q,disabled:A,trigger:A?[]:S,onOpenChange:se,getPopupContainer:I||W,mouseEnterDelay:Te,mouseLeaveDelay:rt,overlayClassName:ht,overlayStyle:St,destroyPopupOnHide:Me,dropdownRender:Xt},{compactSize:Ve,compactItemClassnames:Le}=(0,l.ri)(un,G),oe=Z()(vt,Le,Je);"overlay"in $&&(bt.overlay=N),"open"in $&&(bt.open=te),"placement"in $?bt.placement=w:bt.placement=G==="rtl"?"bottomLeft":"bottomRight";const nt=U.createElement(g.ZP,{type:Q,danger:P,disabled:A,loading:ce,onClick:Ee,htmlType:pe,href:de,title:dt},ze),Ue=U.createElement(g.ZP,{type:Q,danger:P,icon:De}),[K,D]=It([nt,Ue]);return U.createElement(V.Z.Compact,Object.assign({className:oe,size:Ve,block:!0},tt),K,U.createElement(i.Z,Object.assign({},bt),D))};M.__ANT_BUTTON=!0;var b=M;const C=i.Z;C.Button=b;var T=C},584:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return Q}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(9017),Z=u(17835),g=u(57700),V=()=>{const[,P]=(0,g.ZP)(),[A]=(0,fe.Z)("Empty"),Ee=new Z.FastColor(P.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:Ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(A==null?void 0:A.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.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"}),i.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)"}),i.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"}),i.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"})),i.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"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},y=()=>{const[,P]=(0,g.ZP)(),[A]=(0,fe.Z)("Empty"),{colorFill:ce,colorFillTertiary:Ee,colorFillQuaternary:pe,colorBgContainer:ze}=P,{borderColor:Je,shadowColor:Pe,contentColor:Ze}=(0,i.useMemo)(()=>({borderColor:new Z.FastColor(ce).onBackground(ze).toHexString(),shadowColor:new Z.FastColor(Ee).onBackground(ze).toHexString(),contentColor:new Z.FastColor(pe).onBackground(ze).toHexString()}),[ce,Ee,pe,ze]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(A==null?void 0:A.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:Pe,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:Je},i.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"}),i.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:Ze}))))},M=u(16931),b=u(51636);const C=P=>{const{componentCls:A,margin:ce,marginXS:Ee,marginXL:pe,fontSize:ze,lineHeight:Je}=P;return{[A]:{marginInline:Ee,fontSize:ze,lineHeight:Je,textAlign:"center",[`${A}-image`]:{height:P.emptyImgHeight,marginBottom:Ee,opacity:P.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${A}-description`]:{color:P.colorTextDescription},[`${A}-footer`]:{marginTop:ce},"&-normal":{marginBlock:pe,color:P.colorTextDescription,[`${A}-description`]:{color:P.colorTextDescription},[`${A}-image`]:{height:P.emptyImgHeightMD}},"&-small":{marginBlock:Ee,color:P.colorTextDescription,[`${A}-image`]:{height:P.emptyImgHeightSM}}}}};var T=(0,M.I$)("Empty",P=>{const{componentCls:A,controlHeightLG:ce,calc:Ee}=P,pe=(0,b.mergeToken)(P,{emptyImgCls:`${A}-img`,emptyImgHeight:Ee(ce).mul(2.5).equal(),emptyImgHeightMD:ce,emptyImgHeightSM:Ee(ce).mul(.875).equal()});return[C(pe)]}),$=u(48755),W=function(P,A){var ce={};for(var Ee in P)Object.prototype.hasOwnProperty.call(P,Ee)&&A.indexOf(Ee)<0&&(ce[Ee]=P[Ee]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ee=Object.getOwnPropertySymbols(P);pe<Ee.length;pe++)A.indexOf(Ee[pe])<0&&Object.prototype.propertyIsEnumerable.call(P,Ee[pe])&&(ce[Ee[pe]]=P[Ee[pe]]);return ce};const X=i.createElement(V,null),G=i.createElement(y,null),L=P=>{const{className:A,rootClassName:ce,prefixCls:Ee,image:pe=X,description:ze,children:Je,imageStyle:Pe,style:Ze,classNames:le,styles:N}=P,S=W(P,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:q,direction:te,className:se,style:w,classNames:I,styles:de}=(0,$.dj)("empty"),De=q("empty",Ee),[dt,It,Te]=T(De),[rt]=(0,fe.Z)("Empty"),ht=typeof ze!="undefined"?ze:rt==null?void 0:rt.description,St=typeof ht=="string"?ht:"empty";let Me=null;return typeof pe=="string"?Me=i.createElement("img",{alt:St,src:pe}):Me=pe,dt(i.createElement("div",Object.assign({className:O()(It,Te,De,se,{[`${De}-normal`]:pe===G,[`${De}-rtl`]:te==="rtl"},A,ce,I.root,le==null?void 0:le.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),w),N==null?void 0:N.root),Ze)},S),i.createElement("div",{className:O()(`${De}-image`,I.image,le==null?void 0:le.image),style:Object.assign(Object.assign(Object.assign({},Pe),de.image),N==null?void 0:N.image)},Me),ht&&i.createElement("div",{className:O()(`${De}-description`,I.description,le==null?void 0:le.description),style:Object.assign(Object.assign({},de.description),N==null?void 0:N.description)},ht),Je&&i.createElement("div",{className:O()(`${De}-footer`,I.footer,le==null?void 0:le.footer),style:Object.assign(Object.assign({},de.footer),N==null?void 0:N.footer)},Je)))};L.PRESENTED_IMAGE_DEFAULT=X,L.PRESENTED_IMAGE_SIMPLE=G;var Q=L},24971:function(zn,Pt,u){"use strict";var i=u(59301),U=u(56553),O=u(48755);const fe=function(Z,g){let H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var V,l;const{variant:y,[Z]:M}=i.useContext(O.E_),b=i.useContext(U.pg),C=M==null?void 0:M.variant;let T;typeof g!="undefined"?T=g:H===!1?T="borderless":T=(l=(V=b!=null?b:C)!==null&&V!==void 0?V:y)!==null&&l!==void 0?l:"outlined";const $=O.tr.includes(T);return[T,$]};Pt.Z=fe},28284:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return Be}});var i=u(56553),U=u(94480),O=u(59301),fe=u(92310),Z=u.n(fe),g=u(77900),H=u(86641),V=u(83397);function l(ue){const[Ie,Fe]=O.useState(ue);return O.useEffect(()=>{const $e=setTimeout(()=>{Fe(ue)},ue.length?0:10);return()=>{clearTimeout($e)}},[ue]),Ie}var y=u(36237),M=u(63356),b=u(34925),C=u(34961),T=u(51636),$=u(16931),X=ue=>{const{componentCls:Ie}=ue,Fe=`${Ie}-show-help`,$e=`${Ie}-show-help-item`;return{[Fe]:{transition:`opacity ${ue.motionDurationFast} ${ue.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[$e]:{overflow:"hidden",transition:`height ${ue.motionDurationFast} ${ue.motionEaseInOut},
opacity ${ue.motionDurationFast} ${ue.motionEaseInOut},
transform ${ue.motionDurationFast} ${ue.motionEaseInOut} !important`,[`&${$e}-appear, &${$e}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${$e}-leave-active`]:{transform:"translateY(-5px)"}}}}};const G=ue=>({legend:{display:"block",width:"100%",marginBottom:ue.marginLG,padding:0,color:ue.colorTextDescription,fontSize:ue.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,y.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`},'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 ${(0,y.unit)(ue.controlOutlineWidth)} ${ue.controlOutline}`},output:{display:"block",paddingTop:15,color:ue.colorText,fontSize:ue.fontSize,lineHeight:ue.lineHeight}}),L=(ue,Ie)=>{const{formItemCls:Fe}=ue;return{[Fe]:{[`${Fe}-label > label`]:{height:Ie},[`${Fe}-control-input`]:{minHeight:Ie}}}},Q=ue=>{const{componentCls:Ie}=ue;return{[ue.componentCls]:Object.assign(Object.assign(Object.assign({},(0,M.Wf)(ue)),G(ue)),{[`${Ie}-text`]:{display:"inline-block",paddingInlineEnd:ue.paddingSM},"&-small":Object.assign({},L(ue,ue.controlHeightSM)),"&-large":Object.assign({},L(ue,ue.controlHeightLG))})}},P=ue=>{const{formItemCls:Ie,iconCls:Fe,rootPrefixCls:$e,antCls:ut,labelRequiredMarkColor:Gt,labelColor:sn,labelFontSize:je,labelHeight:ct,labelColonMarginInlineStart:Dt,labelColonMarginInlineEnd:qt,itemMarginBottom:Jt}=ue;return{[Ie]:Object.assign(Object.assign({},(0,M.Wf)(ue)),{marginBottom:Jt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${ut}-row`]:{display:"none"},"&-has-warning":{[`${Ie}-split`]:{color:ue.colorError}},"&-has-error":{[`${Ie}-split`]:{color:ue.colorWarning}},[`${Ie}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ue.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ct,color:sn,fontSize:je,[`> ${Fe}`]:{fontSize:ue.fontSize,verticalAlign:"top"},[`&${Ie}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ue.marginXXS,color:Gt,fontSize:ue.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ie}-required-mark-hidden, &${Ie}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ie}-optional`]:{display:"inline-block",marginInlineStart:ue.marginXXS,color:ue.colorTextDescription,[`&${Ie}-required-mark-hidden`]:{display:"none"}},[`${Ie}-tooltip`]:{color:ue.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ue.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Dt,marginInlineEnd:qt},[`&${Ie}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ie}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${$e}-col-'"]):not([class*="' ${$e}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ue.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ie]:{"&-additional":{display:"flex",flexDirection:"column"},"&-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 ${Ie}-explain`]:{height:"auto",opacity:1},[`${Ie}-feedback-icon`]:{fontSize:ue.fontSize,textAlign:"center",visibility:"visible",animationName:b.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}}})}},A=(ue,Ie)=>{const{formItemCls:Fe}=ue;return{[`${Ie}-horizontal`]:{[`${Fe}-label`]:{flexGrow:0},[`${Fe}-control`]:{flex:"1 1 0",minWidth:0},[`${Fe}-label[class$='-24'], ${Fe}-label[class*='-24 ']`]:{[`& + ${Fe}-control`]:{minWidth:"unset"}}}}},ce=ue=>{const{componentCls:Ie,formItemCls:Fe,inlineItemMarginBottom:$e}=ue;return{[`${Ie}-inline`]:{display:"flex",flexWrap:"wrap",[Fe]:{flex:"none",marginInlineEnd:ue.margin,marginBottom:$e,"&-row":{flexWrap:"nowrap"},[`> ${Fe}-label,
> ${Fe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Fe}-label`]:{flex:"none"},[`${Ie}-text`]:{display:"inline-block"},[`${Fe}-has-feedback`]:{display:"inline-block"}}}}},Ee=ue=>({padding:ue.verticalLabelPadding,margin:ue.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pe=ue=>{const{componentCls:Ie,formItemCls:Fe,rootPrefixCls:$e}=ue;return{[`${Fe} ${Fe}-label`]:Ee(ue),[`${Ie}:not(${Ie}-inline)`]:{[Fe]:{flexWrap:"wrap",[`${Fe}-label, ${Fe}-control`]:{[`&:not([class*=" ${$e}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ze=ue=>{const{componentCls:Ie,formItemCls:Fe,antCls:$e}=ue;return{[`${Ie}-vertical`]:{[`${Fe}:not(${Fe}-horizontal)`]:{[`${Fe}-row`]:{flexDirection:"column"},[`${Fe}-label > label`]:{height:"auto"},[`${Fe}-control`]:{width:"100%"},[`${Fe}-label,
${$e}-col-24${Fe}-label,
${$e}-col-xl-24${Fe}-label`]:Ee(ue)}},[`@media (max-width: ${(0,y.unit)(ue.screenXSMax)})`]:[pe(ue),{[Ie]:{[`${Fe}:not(${Fe}-horizontal)`]:{[`${$e}-col-xs-24${Fe}-label`]:Ee(ue)}}}],[`@media (max-width: ${(0,y.unit)(ue.screenSMMax)})`]:{[Ie]:{[`${Fe}:not(${Fe}-horizontal)`]:{[`${$e}-col-sm-24${Fe}-label`]:Ee(ue)}}},[`@media (max-width: ${(0,y.unit)(ue.screenMDMax)})`]:{[Ie]:{[`${Fe}:not(${Fe}-horizontal)`]:{[`${$e}-col-md-24${Fe}-label`]:Ee(ue)}}},[`@media (max-width: ${(0,y.unit)(ue.screenLGMax)})`]:{[Ie]:{[`${Fe}:not(${Fe}-horizontal)`]:{[`${$e}-col-lg-24${Fe}-label`]:Ee(ue)}}}}},Je=ue=>{const{formItemCls:Ie,antCls:Fe}=ue;return{[`${Ie}-vertical`]:{[`${Ie}-row`]:{flexDirection:"column"},[`${Ie}-label > label`]:{height:"auto"},[`${Ie}-control`]:{width:"100%"}},[`${Ie}-vertical ${Ie}-label,
${Fe}-col-24${Ie}-label,
${Fe}-col-xl-24${Ie}-label`]:Ee(ue),[`@media (max-width: ${(0,y.unit)(ue.screenXSMax)})`]:[pe(ue),{[Ie]:{[`${Fe}-col-xs-24${Ie}-label`]:Ee(ue)}}],[`@media (max-width: ${(0,y.unit)(ue.screenSMMax)})`]:{[Ie]:{[`${Fe}-col-sm-24${Ie}-label`]:Ee(ue)}},[`@media (max-width: ${(0,y.unit)(ue.screenMDMax)})`]:{[Ie]:{[`${Fe}-col-md-24${Ie}-label`]:Ee(ue)}},[`@media (max-width: ${(0,y.unit)(ue.screenLGMax)})`]:{[Ie]:{[`${Fe}-col-lg-24${Ie}-label`]:Ee(ue)}}}},Pe=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,inlineItemMarginBottom:0}),Ze=(ue,Ie)=>(0,T.mergeToken)(ue,{formItemCls:`${ue.componentCls}-item`,rootPrefixCls:Ie});var le=(0,$.I$)("Form",(ue,Ie)=>{let{rootPrefixCls:Fe}=Ie;const $e=Ze(ue,Fe);return[Q($e),P($e),X($e),A($e,$e.componentCls),A($e,$e.formItemCls),ce($e),ze($e),Je($e),(0,C.Z)($e),b.kr]},Pe,{order:-1e3});const N=[];function S(ue,Ie,Fe){let $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ue=="string"?ue:`${Ie}-${$e}`,error:ue,errorStatus:Fe}}var te=ue=>{let{help:Ie,helpStatus:Fe,errors:$e=N,warnings:ut=N,className:Gt,fieldId:sn,onVisibleChanged:je}=ue;const{prefixCls:ct}=O.useContext(i.Rk),Dt=`${ct}-item-explain`,qt=(0,V.Z)(ct),[Jt,Ge,ft]=le(ct,qt),Mt=O.useMemo(()=>(0,H.Z)(ct),[ct]),Ye=l($e),jt=l(ut),rn=O.useMemo(()=>Ie!=null?[S(Ie,"help",Fe)]:[].concat((0,U.Z)(Ye.map((mn,bn)=>S(mn,"error","error",bn))),(0,U.Z)(jt.map((mn,bn)=>S(mn,"warning","warning",bn)))),[Ie,Fe,Ye,jt]),an=O.useMemo(()=>{const mn={};return rn.forEach(bn=>{let{key:In}=bn;mn[In]=(mn[In]||0)+1}),rn.map((bn,In)=>Object.assign(Object.assign({},bn),{key:mn[bn.key]>1?`${bn.key}-fallback-${In}`:bn.key}))},[rn]),nn={};return sn&&(nn.id=`${sn}_help`),Jt(O.createElement(g.default,{motionDeadline:Mt.motionDeadline,motionName:`${ct}-show-help`,visible:!!an.length,onVisibleChanged:je},mn=>{const{className:bn,style:In}=mn;return O.createElement("div",Object.assign({},nn,{className:Z()(Dt,bn,ft,qt,Gt,Ge),style:In}),O.createElement(g.CSSMotionList,Object.assign({keys:an},(0,H.Z)(ct),{motionName:`${ct}-show-help-item`,component:!1}),_n=>{const{key:Cn,error:Zn,errorStatus:Ln,className:rr,style:Dn}=_n;return O.createElement("div",{key:Cn,className:Z()(rr,{[`${Dt}-${Ln}`]:Ln}),style:Dn},Zn)}))}))},se=u(22001),w=u(48755),I=u(2171),de=u(31756),De=u(23069),dt=u(76846),It=u(16722);const Te=["parentNode"],rt="form_item";function ht(ue){return ue===void 0||ue===!1?[]:Array.isArray(ue)?ue:[ue]}function St(ue,Ie){if(!ue.length)return;const Fe=ue.join("_");return Ie?`${Ie}_${Fe}`:Te.includes(Fe)?`${rt}_${Fe}`:Fe}function Me(ue,Ie,Fe,$e,ut,Gt){let sn=$e;return Gt!==void 0?sn=Gt:Fe.validating?sn="validating":ue.length?sn="error":Ie.length?sn="warning":(Fe.touched||ut&&Fe.validated)&&(sn="success"),sn}var Xt=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe};function tt(ue){return ht(ue).join("_")}function un(ue,Ie){const Fe=Ie.getFieldInstance(ue),$e=(0,dt.bn)(Fe);if($e)return $e;const ut=St(ht(ue),Ie.__INTERNAL__.name);if(ut)return document.getElementById(ut)}function vt(ue){const[Ie]=(0,se.useForm)(),Fe=O.useRef({}),$e=O.useMemo(()=>ue!=null?ue:Object.assign(Object.assign({},Ie),{__INTERNAL__:{itemRef:ut=>Gt=>{const sn=tt(ut);Gt?Fe.current[sn]=Gt:delete Fe.current[sn]}},scrollToField:function(ut){let Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:sn}=Gt,je=Xt(Gt,["focus"]),ct=un(ut,$e);ct&&((0,It.Z)(ct,Object.assign({scrollMode:"if-needed",block:"nearest"},je)),sn&&$e.focusField(ut))},focusField:ut=>{var Gt,sn;const je=$e.getFieldInstance(ut);typeof(je==null?void 0:je.focus)=="function"?je.focus():(sn=(Gt=un(ut,$e))===null||Gt===void 0?void 0:Gt.focus)===null||sn===void 0||sn.call(Gt)},getFieldInstance:ut=>{const Gt=tt(ut);return Fe.current[Gt]}}),[ue,Ie]);return[$e]}var bt=u(98350),Ve=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe};const Le=(ue,Ie)=>{const Fe=O.useContext(I.Z),{getPrefixCls:$e,direction:ut,requiredMark:Gt,colon:sn,scrollToFirstError:je,className:ct,style:Dt}=(0,w.dj)("form"),{prefixCls:qt,className:Jt,rootClassName:Ge,size:ft,disabled:Mt=Fe,form:Ye,colon:jt,labelAlign:rn,labelWrap:an,labelCol:nn,wrapperCol:mn,hideRequiredMark:bn,layout:In="horizontal",scrollToFirstError:_n,requiredMark:Cn,onFinishFailed:Zn,name:Ln,style:rr,feedbackIcons:Dn,variant:jn}=ue,Xn=Ve(ue,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Wn=(0,de.Z)(ft),Gn=O.useContext(bt.Z),Jn=O.useMemo(()=>Cn!==void 0?Cn:bn?!1:Gt!==void 0?Gt:!0,[bn,Cn,Gt]),Rn=jt!=null?jt:sn,Bn=$e("form",qt),ln=(0,V.Z)(Bn),[Tt,Fn,On]=le(Bn,ln),sr=Z()(Bn,`${Bn}-${In}`,{[`${Bn}-hide-required-mark`]:Jn===!1,[`${Bn}-rtl`]:ut==="rtl",[`${Bn}-${Wn}`]:Wn},On,ln,Fn,ct,Jt,Ge),[dr]=vt(Ye),{__INTERNAL__:Ar}=dr;Ar.name=Ln;const ur=O.useMemo(()=>({name:Ln,labelAlign:rn,labelCol:nn,labelWrap:an,wrapperCol:mn,vertical:In==="vertical",colon:Rn,requiredMark:Jn,itemRef:Ar.itemRef,form:dr,feedbackIcons:Dn}),[Ln,rn,nn,mn,In,Rn,Jn,dr,Dn]),Yn=O.useRef(null);O.useImperativeHandle(Ie,()=>{var xn;return Object.assign(Object.assign({},dr),{nativeElement:(xn=Yn.current)===null||xn===void 0?void 0:xn.nativeElement})});const vn=(xn,Qn)=>{if(xn){let tr={block:"nearest"};typeof xn=="object"&&(tr=Object.assign(Object.assign({},tr),xn)),dr.scrollToField(Qn,tr)}},hn=xn=>{if(Zn==null||Zn(xn),xn.errorFields.length){const Qn=xn.errorFields[0].name;if(_n!==void 0){vn(_n,Qn);return}je!==void 0&&vn(je,Qn)}};return Tt(O.createElement(i.pg.Provider,{value:jn},O.createElement(I.n,{disabled:Mt},O.createElement(De.Z.Provider,{value:Wn},O.createElement(i.RV,{validateMessages:Gn},O.createElement(i.q3.Provider,{value:ur},O.createElement(se.default,Object.assign({id:Ln},Xn,{name:Ln,onFinishFailed:hn,form:dr,ref:Yn,style:Object.assign(Object.assign({},Dt),rr),className:sr}))))))))};var nt=O.forwardRef(Le),Ue=u(41799),K=u(8654),D=u(22703),Se=u(32383),Ae=u(11592);function Ce(ue){if(typeof ue=="function")return ue;const Ie=(0,Ae.Z)(ue);return Ie.length<=1?Ie[0]:Ie}const ke=()=>{const{status:ue,errors:Ie=[],warnings:Fe=[]}=O.useContext(i.aM);return{status:ue,errors:Ie,warnings:Fe}};ke.Context=i.aM;var Xe=ke,yt=u(16089);function he(ue){const[Ie,Fe]=O.useState(ue),$e=O.useRef(null),ut=O.useRef([]),Gt=O.useRef(!1);O.useEffect(()=>(Gt.current=!1,()=>{Gt.current=!0,yt.Z.cancel($e.current),$e.current=null}),[]);function sn(je){Gt.current||($e.current===null&&(ut.current=[],$e.current=(0,yt.Z)(()=>{$e.current=null,Fe(ct=>{let Dt=ct;return ut.current.forEach(qt=>{Dt=qt(Dt)}),Dt})})),ut.current.push(je))}return[Ie,sn]}function me(){const{itemRef:ue}=O.useContext(i.q3),Ie=O.useRef({});function Fe($e,ut){const Gt=ut&&typeof ut=="object"&&(0,K.C4)(ut),sn=$e.join("_");return(Ie.current.name!==sn||Ie.current.originRef!==Gt)&&(Ie.current.name=sn,Ie.current.originRef=Gt,Ie.current.ref=(0,K.sQ)(ue($e),Gt)),Ie.current.ref}return Fe}var Lt=u(29194),Ct=u(34280),Nt=u(2738),kt=u(65970),pt=u(70425),Vt=u(5472);const Zt=ue=>{const{formItemCls:Ie}=ue;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ie}-control`]:{display:"flex"}}}};var Re=(0,$.bk)(["Form","item-item"],(ue,Ie)=>{let{rootPrefixCls:Fe}=Ie;const $e=Ze(ue,Fe);return[Zt($e)]}),gt=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe};const E=24;var at=ue=>{const{prefixCls:Ie,status:Fe,labelCol:$e,wrapperCol:ut,children:Gt,errors:sn,warnings:je,_internalItemRender:ct,extra:Dt,help:qt,fieldId:Jt,marginBottom:Ge,onErrorVisibleChanged:ft,label:Mt}=ue,Ye=`${Ie}-item`,jt=O.useContext(i.q3),rn=O.useMemo(()=>{let Xn=Object.assign({},ut||jt.wrapperCol||{});return Mt===null&&!$e&&!ut&&jt.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Gn=>{const Jn=Gn?[Gn]:[],Rn=(0,pt.U2)(jt.labelCol,Jn),Bn=typeof Rn=="object"?Rn:{},ln=(0,pt.U2)(Xn,Jn),Tt=typeof ln=="object"?ln:{};"span"in Bn&&!("offset"in Tt)&&Bn.span<E&&(Xn=(0,pt.t8)(Xn,[].concat(Jn,["offset"]),Bn.span))}),Xn},[ut,jt]),an=Z()(`${Ye}-control`,rn.className),nn=O.useMemo(()=>{const{labelCol:Xn,wrapperCol:Wn}=jt;return gt(jt,["labelCol","wrapperCol"])},[jt]),mn=O.useRef(null),[bn,In]=O.useState(0);(0,Ct.Z)(()=>{Dt&&mn.current?In(mn.current.clientHeight):In(0)},[Dt]);const _n=O.createElement("div",{className:`${Ye}-control-input`},O.createElement("div",{className:`${Ye}-control-input-content`},Gt)),Cn=O.useMemo(()=>({prefixCls:Ie,status:Fe}),[Ie,Fe]),Zn=Ge!==null||sn.length||je.length?O.createElement(i.Rk.Provider,{value:Cn},O.createElement(te,{fieldId:Jt,errors:sn,warnings:je,help:qt,helpStatus:Fe,className:`${Ye}-explain-connected`,onVisibleChanged:ft})):null,Ln={};Jt&&(Ln.id=`${Jt}_extra`);const rr=Dt?O.createElement("div",Object.assign({},Ln,{className:`${Ye}-extra`,ref:mn}),Dt):null,Dn=Zn||rr?O.createElement("div",{className:`${Ye}-additional`,style:Ge?{minHeight:Ge+bn}:{}},Zn,rr):null,jn=ct&&ct.mark==="pro_table_render"&&ct.render?ct.render(ue,{input:_n,errorList:Zn,extra:rr}):O.createElement(O.Fragment,null,_n,Dn);return O.createElement(i.q3.Provider,{value:nn},O.createElement(Vt.Z,Object.assign({},rn,{className:an}),jn),O.createElement(Re,{prefixCls:Ie}))},ae=u(61485),Y=u(9017),Ft=u(85981),Ke=u(25399),st=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe};function _t(ue){return ue?typeof ue=="object"&&!O.isValidElement(ue)?ue:{title:ue}:null}var _e=ue=>{let{prefixCls:Ie,label:Fe,htmlFor:$e,labelCol:ut,labelAlign:Gt,colon:sn,required:je,requiredMark:ct,tooltip:Dt,vertical:qt}=ue;var Jt;const[Ge]=(0,Y.Z)("Form"),{labelAlign:ft,labelCol:Mt,labelWrap:Ye,colon:jt}=O.useContext(i.q3);if(!Fe)return null;const rn=ut||Mt||{},an=Gt||ft,nn=`${Ie}-item-label`,mn=Z()(nn,an==="left"&&`${nn}-left`,rn.className,{[`${nn}-wrap`]:!!Ye});let bn=Fe;const In=sn===!0||jt!==!1&&sn!==!1;In&&!qt&&typeof Fe=="string"&&Fe.trim()&&(bn=Fe.replace(/[:|]\s*$/,""));const Cn=_t(Dt);if(Cn){const{icon:Xn=O.createElement(ae.Z,null)}=Cn,Wn=st(Cn,["icon"]),Gn=O.createElement(Ke.Z,Object.assign({},Wn),O.cloneElement(Xn,{className:`${Ie}-item-tooltip`,title:"",onClick:Jn=>{Jn.preventDefault()},tabIndex:null}));bn=O.createElement(O.Fragment,null,bn,Gn)}const Zn=ct==="optional",Ln=typeof ct=="function",rr=ct===!1;Ln?bn=ct(bn,{required:!!je}):Zn&&!je&&(bn=O.createElement(O.Fragment,null,bn,O.createElement("span",{className:`${Ie}-item-optional`,title:""},(Ge==null?void 0:Ge.optional)||((Jt=Ft.Z.Form)===null||Jt===void 0?void 0:Jt.optional))));let Dn;rr?Dn="hidden":(Zn||Ln)&&(Dn="optional");const jn=Z()({[`${Ie}-item-required`]:je,[`${Ie}-item-required-mark-${Dn}`]:Dn,[`${Ie}-item-no-colon`]:!In});return O.createElement(Vt.Z,Object.assign({},rn,{className:mn}),O.createElement("label",{htmlFor:$e,className:jn,title:typeof Fe=="string"?Fe:""},bn))},et=u(29679),Qe=u(19248),z=u(96512),Rt=u(58617);const ge={success:et.Z,warning:z.Z,error:Qe.Z,validating:Rt.Z};function Ht(ue){let{children:Ie,errors:Fe,warnings:$e,hasFeedback:ut,validateStatus:Gt,prefixCls:sn,meta:je,noStyle:ct}=ue;const Dt=`${sn}-item`,{feedbackIcons:qt}=O.useContext(i.q3),Jt=Me(Fe,$e,je,null,!!ut,Gt),{isFormItemInput:Ge,status:ft,hasFeedback:Mt,feedbackIcon:Ye}=O.useContext(i.aM),jt=O.useMemo(()=>{var rn;let an;if(ut){const mn=ut!==!0&&ut.icons||qt,bn=Jt&&((rn=mn==null?void 0:mn({status:Jt,errors:Fe,warnings:$e}))===null||rn===void 0?void 0:rn[Jt]),In=Jt&&ge[Jt];an=bn!==!1&&In?O.createElement("span",{className:Z()(`${Dt}-feedback-icon`,`${Dt}-feedback-icon-${Jt}`)},bn||O.createElement(In,null)):null}const nn={status:Jt||"",errors:Fe,warnings:$e,hasFeedback:!!ut,feedbackIcon:an,isFormItemInput:!0};return ct&&(nn.status=(Jt!=null?Jt:ft)||"",nn.isFormItemInput=Ge,nn.hasFeedback=!!(ut!=null?ut:Mt),nn.feedbackIcon=ut!==void 0?nn.feedbackIcon:Ye),nn},[Jt,ut,ct,Ge,ft]);return O.createElement(i.aM.Provider,{value:jt},Ie)}var cn=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe};function mt(ue){const{prefixCls:Ie,className:Fe,rootClassName:$e,style:ut,help:Gt,errors:sn,warnings:je,validateStatus:ct,meta:Dt,hasFeedback:qt,hidden:Jt,children:Ge,fieldId:ft,required:Mt,isRequired:Ye,onSubItemMetaChange:jt,layout:rn}=ue,an=cn(ue,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),nn=`${Ie}-item`,{requiredMark:mn,vertical:bn}=O.useContext(i.q3),In=bn||rn==="vertical",_n=O.useRef(null),Cn=l(sn),Zn=l(je),Ln=Gt!=null,rr=!!(Ln||sn.length||je.length),Dn=!!_n.current&&(0,Lt.Z)(_n.current),[jn,Xn]=O.useState(null);(0,Ct.Z)(()=>{if(rr&&_n.current){const Bn=getComputedStyle(_n.current);Xn(parseInt(Bn.marginBottom,10))}},[rr,Dn]);const Wn=Bn=>{Bn||Xn(null)},Jn=function(){let Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ln=Bn?Cn:Dt.errors,Tt=Bn?Zn:Dt.warnings;return Me(ln,Tt,Dt,"",!!qt,ct)}(),Rn=Z()(nn,Fe,$e,{[`${nn}-with-help`]:Ln||Cn.length||Zn.length,[`${nn}-has-feedback`]:Jn&&qt,[`${nn}-has-success`]:Jn==="success",[`${nn}-has-warning`]:Jn==="warning",[`${nn}-has-error`]:Jn==="error",[`${nn}-is-validating`]:Jn==="validating",[`${nn}-hidden`]:Jt,[`${nn}-${rn}`]:rn});return O.createElement("div",{className:Rn,style:ut,ref:_n},O.createElement(kt.Z,Object.assign({className:`${nn}-row`},(0,Nt.Z)(an,["_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"])),O.createElement(_e,Object.assign({htmlFor:ft},ue,{requiredMark:mn,required:Mt!=null?Mt:Ye,prefixCls:Ie,vertical:In})),O.createElement(at,Object.assign({},ue,Dt,{errors:Cn,warnings:Zn,prefixCls:Ie,status:Jn,help:Gt,marginBottom:jn,onErrorVisibleChanged:Wn}),O.createElement(i.qI.Provider,{value:jt},O.createElement(Ht,{prefixCls:Ie,meta:Dt,errors:Dt.errors,warnings:Dt.warnings,hasFeedback:qt,validateStatus:Jn},Ge)))),!!jn&&O.createElement("div",{className:`${nn}-margin-offset`,style:{marginBottom:-jn}}))}const ne="__SPLIT__",we=null;function B(ue,Ie){const Fe=Object.keys(ue),$e=Object.keys(Ie);return Fe.length===$e.length&&Fe.every(ut=>{const Gt=ue[ut],sn=Ie[ut];return Gt===sn||typeof Gt=="function"||typeof sn=="function"})}const xt=O.memo(ue=>{let{children:Ie}=ue;return Ie},(ue,Ie)=>B(ue.control,Ie.control)&&ue.update===Ie.update&&ue.childProps.length===Ie.childProps.length&&ue.childProps.every((Fe,$e)=>Fe===Ie.childProps[$e]));function lt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ot(ue){const{name:Ie,noStyle:Fe,className:$e,dependencies:ut,prefixCls:Gt,shouldUpdate:sn,rules:je,children:ct,required:Dt,label:qt,messageVariables:Jt,trigger:Ge="onChange",validateTrigger:ft,hidden:Mt,help:Ye,layout:jt}=ue,{getPrefixCls:rn}=O.useContext(w.E_),{name:an}=O.useContext(i.q3),nn=Ce(ct),mn=typeof nn=="function",bn=O.useContext(i.qI),{validateTrigger:In}=O.useContext(se.FieldContext),_n=ft!==void 0?ft:In,Cn=Ie!=null,Zn=rn("form",Gt),Ln=(0,V.Z)(Zn),[rr,Dn,jn]=le(Zn,Ln),Xn=(0,Se.ln)("Form.Item"),Wn=O.useContext(se.ListContext),Gn=O.useRef(null),[Jn,Rn]=he({}),[Bn,ln]=(0,Ue.Z)(()=>lt()),Tt=Yn=>{const vn=Wn==null?void 0:Wn.getKey(Yn.name);if(ln(Yn.destroy?lt():Yn,!0),Fe&&Ye!==!1&&bn){let hn=Yn.name;if(Yn.destroy)hn=Gn.current||hn;else if(vn!==void 0){const[xn,Qn]=vn;hn=[xn].concat((0,U.Z)(Qn)),Gn.current=hn}bn(Yn,hn)}},Fn=(Yn,vn)=>{Rn(hn=>{const xn=Object.assign({},hn),tr=[].concat((0,U.Z)(Yn.name.slice(0,-1)),(0,U.Z)(vn)).join(ne);return Yn.destroy?delete xn[tr]:xn[tr]=Yn,xn})},[On,sr]=O.useMemo(()=>{const Yn=(0,U.Z)(Bn.errors),vn=(0,U.Z)(Bn.warnings);return Object.values(Jn).forEach(hn=>{Yn.push.apply(Yn,(0,U.Z)(hn.errors||[])),vn.push.apply(vn,(0,U.Z)(hn.warnings||[]))}),[Yn,vn]},[Jn,Bn.errors,Bn.warnings]),dr=me();function Ar(Yn,vn,hn){return Fe&&!Mt?O.createElement(Ht,{prefixCls:Zn,hasFeedback:ue.hasFeedback,validateStatus:ue.validateStatus,meta:Bn,errors:On,warnings:sr,noStyle:!0},Yn):O.createElement(mt,Object.assign({key:"row"},ue,{className:Z()($e,jn,Ln,Dn),prefixCls:Zn,fieldId:vn,isRequired:hn,errors:On,warnings:sr,meta:Bn,onSubItemMetaChange:Fn,layout:jt}),Yn)}if(!Cn&&!mn&&!ut)return rr(Ar(nn));let ur={};return typeof qt=="string"?ur.label=qt:Ie&&(ur.label=String(Ie)),Jt&&(ur=Object.assign(Object.assign({},ur),Jt)),rr(O.createElement(se.Field,Object.assign({},ue,{messageVariables:ur,trigger:Ge,validateTrigger:_n,onMetaChange:Tt}),(Yn,vn,hn)=>{const xn=ht(Ie).length&&vn?vn.name:[],Qn=St(xn,an),tr=Dt!==void 0?Dt:!!(je!=null&&je.some($n=>{if($n&&typeof $n=="object"&&$n.required&&!$n.warningOnly)return!0;if(typeof $n=="function"){const Sr=$n(hn);return(Sr==null?void 0:Sr.required)&&!(Sr!=null&&Sr.warningOnly)}return!1})),yr=Object.assign({},Yn);let Er=null;if(Array.isArray(nn)&&Cn)Er=nn;else if(!(mn&&(!(sn||ut)||Cn))){if(!(ut&&!mn&&!Cn))if(O.isValidElement(nn)){const $n=Object.assign(Object.assign({},nn.props),yr);if($n.id||($n.id=Qn),Ye||On.length>0||sr.length>0||ue.extra){const $r=[];(Ye||On.length>0)&&$r.push(`${Qn}_help`),ue.extra&&$r.push(`${Qn}_extra`),$n["aria-describedby"]=$r.join(" ")}On.length>0&&($n["aria-invalid"]="true"),tr&&($n["aria-required"]="true"),(0,K.Yr)(nn)&&($n.ref=dr(xn,nn)),new Set([].concat((0,U.Z)(ht(Ge)),(0,U.Z)(ht(_n)))).forEach($r=>{$n[$r]=function(){for(var Mr,Or,Cr,zr,wr,Vr=arguments.length,Ir=new Array(Vr),tn=0;tn<Vr;tn++)Ir[tn]=arguments[tn];(Cr=yr[$r])===null||Cr===void 0||(Mr=Cr).call.apply(Mr,[yr].concat(Ir)),(wr=(zr=nn.props)[$r])===null||wr===void 0||(Or=wr).call.apply(Or,[zr].concat(Ir))}});const Dr=[$n["aria-required"],$n["aria-invalid"],$n["aria-describedby"]];Er=O.createElement(xt,{control:yr,update:nn,childProps:Dr},(0,D.Tm)(nn,$n))}else mn&&(sn||ut)&&!Cn?Er=nn(hn):Er=nn}return Ar(Er,Qn,tr)}))}const $t=ot;$t.useStatus=Xe;var Bt=$t,zt=function(ue,Ie){var Fe={};for(var $e in ue)Object.prototype.hasOwnProperty.call(ue,$e)&&Ie.indexOf($e)<0&&(Fe[$e]=ue[$e]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,$e=Object.getOwnPropertySymbols(ue);ut<$e.length;ut++)Ie.indexOf($e[ut])<0&&Object.prototype.propertyIsEnumerable.call(ue,$e[ut])&&(Fe[$e[ut]]=ue[$e[ut]]);return Fe},ve=ue=>{var{prefixCls:Ie,children:Fe}=ue,$e=zt(ue,["prefixCls","children"]);const{getPrefixCls:ut}=O.useContext(w.E_),Gt=ut("form",Ie),sn=O.useMemo(()=>({prefixCls:Gt,status:"error"}),[Gt]);return O.createElement(se.List,Object.assign({},$e),(je,ct,Dt)=>O.createElement(i.Rk.Provider,{value:sn},Fe(je.map(qt=>Object.assign(Object.assign({},qt),{fieldKey:qt.key})),ct,{errors:Dt.errors,warnings:Dt.warnings})))};function wt(){const{form:ue}=O.useContext(i.q3);return ue}const Ne=nt;Ne.Item=Bt,Ne.List=ve,Ne.ErrorList=te,Ne.useForm=vt,Ne.useFormInstance=wt,Ne.useWatch=se.useWatch,Ne.Provider=i.RV,Ne.create=()=>{};var Be=Ne},49397:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return P}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(36901),Z=u(8654),g=u(62487),H=u(86013),V=u(82855),l=u(48755),y=u(2171),M=u(83397),b=u(31756),C=u(56553),T=u(24971),$=u(70045),W=u(23826),X=u(53075);function G(A){return!!(A.prefix||A.suffix||A.allowClear||A.showCount)}var L=function(A,ce){var Ee={};for(var pe in A)Object.prototype.hasOwnProperty.call(A,pe)&&ce.indexOf(pe)<0&&(Ee[pe]=A[pe]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,pe=Object.getOwnPropertySymbols(A);ze<pe.length;ze++)ce.indexOf(pe[ze])<0&&Object.prototype.propertyIsEnumerable.call(A,pe[ze])&&(Ee[pe[ze]]=A[pe[ze]]);return Ee},P=(0,i.forwardRef)((A,ce)=>{const{prefixCls:Ee,bordered:pe=!0,status:ze,size:Je,disabled:Pe,onBlur:Ze,onFocus:le,suffix:N,allowClear:S,addonAfter:q,addonBefore:te,className:se,style:w,styles:I,rootClassName:de,onChange:De,classNames:dt,variant:It}=A,Te=L(A,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:rt,direction:ht,allowClear:St,autoComplete:Me,className:Xt,style:tt,classNames:un,styles:vt}=(0,l.dj)("input"),bt=rt("input",Ee),Ve=(0,i.useRef)(null),Le=(0,M.Z)(bt),[oe,nt,Ue]=(0,X.TI)(bt,de),[K]=(0,X.ZP)(bt,Le),{compactSize:D,compactItemClassnames:Se}=(0,$.ri)(bt,ht),Ae=(0,b.Z)(R=>{var at;return(at=Je!=null?Je:D)!==null&&at!==void 0?at:R}),Ce=i.useContext(y.Z),ke=Pe!=null?Pe:Ce,{status:Xe,hasFeedback:yt,feedbackIcon:he}=(0,i.useContext)(C.aM),me=(0,V.F)(Xe,ze),Lt=G(A)||!!yt,Ct=(0,i.useRef)(Lt),Nt=(0,W.Z)(Ve,!0),kt=R=>{Nt(),Ze==null||Ze(R)},pt=R=>{Nt(),le==null||le(R)},Vt=R=>{Nt(),De==null||De(R)},Zt=(yt||N)&&i.createElement(i.Fragment,null,N,yt&&he),Re=(0,H.Z)(S!=null?S:St),[gt,E]=(0,T.Z)("input",It,pe);return oe(K(i.createElement(fe.default,Object.assign({ref:(0,Z.sQ)(ce,Ve),prefixCls:bt,autoComplete:Me},Te,{disabled:ke,onBlur:kt,onFocus:pt,style:Object.assign(Object.assign({},tt),w),styles:Object.assign(Object.assign({},vt),I),suffix:Zt,allowClear:Re,className:O()(se,de,Ue,Le,Se,Xt),onChange:Vt,addonBefore:te&&i.createElement(g.Z,{form:!0,space:!0},te),addonAfter:q&&i.createElement(g.Z,{form:!0,space:!0},q),classNames:Object.assign(Object.assign(Object.assign({},dt),un),{input:O()({[`${bt}-sm`]:Ae==="small",[`${bt}-lg`]:Ae==="large",[`${bt}-rtl`]:ht==="rtl"},dt==null?void 0:dt.input,un.input,nt),variant:O()({[`${bt}-${gt}`]:E},(0,V.Z)(bt,me)),affixWrapper:O()({[`${bt}-affix-wrapper-sm`]:Ae==="small",[`${bt}-affix-wrapper-lg`]:Ae==="large",[`${bt}-affix-wrapper-rtl`]:ht==="rtl"},nt),wrapper:O()({[`${bt}-group-rtl`]:ht==="rtl"},nt),groupWrapper:O()({[`${bt}-group-wrapper-sm`]:Ae==="small",[`${bt}-group-wrapper-lg`]:Ae==="large",[`${bt}-group-wrapper-rtl`]:ht==="rtl",[`${bt}-group-wrapper-${gt}`]:E},(0,V.Z)(`${bt}-group-wrapper`,me,yt),nt)})}))))})},79809:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return ce}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(22711),Z=u(86013),g=u(82855),H=u(48755),V=u(2171),l=u(83397),y=u(31756),M=u(56553),b=u(24971),C=u(70045),T=u(30292),$=u(53075),W=u(16931),X=u(51636),G=u(64910);const L=Ee=>{const{componentCls:pe,paddingLG:ze}=Ee,Je=`${pe}-textarea`;return{[`textarea${pe}`]:{maxWidth:"100%",height:"auto",minHeight:Ee.controlHeight,lineHeight:Ee.lineHeight,verticalAlign:"bottom",transition:`all ${Ee.motionDurationSlow}`,resize:"vertical",[`&${pe}-mouse-active`]:{transition:`all ${Ee.motionDurationSlow}, height 0s, width 0s`}},[`${pe}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Je]:{position:"relative","&-show-count":{[`> ${pe}`]:{height:"100%"},[`${pe}-data-count`]:{position:"absolute",bottom:Ee.calc(Ee.fontSize).mul(Ee.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ee.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${pe},
&-affix-wrapper${Je}-has-feedback ${pe}
`]:{paddingInlineEnd:ze},[`&-affix-wrapper${pe}-affix-wrapper`]:{padding:0,[`> textarea${pe}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ee.calc(Ee.controlHeight).sub(Ee.calc(Ee.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${pe}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${pe}-clear-icon`]:{position:"absolute",insetInlineEnd:Ee.paddingInline,insetBlockStart:Ee.paddingXS},[`${Je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ee.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${pe}-affix-wrapper-sm`]:{[`${pe}-suffix`]:{[`${pe}-clear-icon`]:{insetInlineEnd:Ee.paddingInlineSM}}}}}};var Q=(0,W.I$)(["Input","TextArea"],Ee=>{const pe=(0,X.mergeToken)(Ee,(0,G.e)(Ee));return[L(pe)]},G.T,{resetFont:!1}),P=function(Ee,pe){var ze={};for(var Je in Ee)Object.prototype.hasOwnProperty.call(Ee,Je)&&pe.indexOf(Je)<0&&(ze[Je]=Ee[Je]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Je=Object.getOwnPropertySymbols(Ee);Pe<Je.length;Pe++)pe.indexOf(Je[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Je[Pe])&&(ze[Je[Pe]]=Ee[Je[Pe]]);return ze},ce=(0,i.forwardRef)((Ee,pe)=>{var ze;const{prefixCls:Je,bordered:Pe=!0,size:Ze,disabled:le,status:N,allowClear:S,classNames:q,rootClassName:te,className:se,style:w,styles:I,variant:de,showCount:De,onMouseDown:dt,onResize:It}=Ee,Te=P(Ee,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:rt,direction:ht,allowClear:St,autoComplete:Me,className:Xt,style:tt,classNames:un,styles:vt}=(0,H.dj)("textArea"),bt=i.useContext(V.Z),Ve=le!=null?le:bt,{status:Le,hasFeedback:oe,feedbackIcon:nt}=i.useContext(M.aM),Ue=(0,g.F)(Le,N),K=i.useRef(null);i.useImperativeHandle(pe,()=>{var E;return{resizableTextArea:(E=K.current)===null||E===void 0?void 0:E.resizableTextArea,focus:R=>{var at,ae;(0,T.nH)((ae=(at=K.current)===null||at===void 0?void 0:at.resizableTextArea)===null||ae===void 0?void 0:ae.textArea,R)},blur:()=>{var R;return(R=K.current)===null||R===void 0?void 0:R.blur()}}});const D=rt("input",Je),Se=(0,l.Z)(D),[Ae,Ce,ke]=(0,$.TI)(D,te),[Xe]=Q(D,Se),{compactSize:yt,compactItemClassnames:he}=(0,C.ri)(D,ht),me=(0,y.Z)(E=>{var R;return(R=Ze!=null?Ze:yt)!==null&&R!==void 0?R:E}),[Lt,Ct]=(0,b.Z)("textArea",de,Pe),Nt=(0,Z.Z)(S!=null?S:St),[kt,pt]=i.useState(!1),[Vt,Zt]=i.useState(!1),Re=E=>{pt(!0),dt==null||dt(E);const R=()=>{pt(!1),document.removeEventListener("mouseup",R)};document.addEventListener("mouseup",R)},gt=E=>{var R,at;if(It==null||It(E),kt&&typeof getComputedStyle=="function"){const ae=(at=(R=K.current)===null||R===void 0?void 0:R.nativeElement)===null||at===void 0?void 0:at.querySelector("textarea");ae&&getComputedStyle(ae).resize==="both"&&Zt(!0)}};return Ae(Xe(i.createElement(fe.default,Object.assign({autoComplete:Me},Te,{style:Object.assign(Object.assign({},tt),w),styles:Object.assign(Object.assign({},vt),I),disabled:Ve,allowClear:Nt,className:O()(ke,Se,se,te,he,Xt,Vt&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},q),un),{textarea:O()({[`${D}-sm`]:me==="small",[`${D}-lg`]:me==="large"},Ce,q==null?void 0:q.textarea,un.textarea,kt&&`${D}-mouse-active`),variant:O()({[`${D}-${Lt}`]:Ct},(0,g.Z)(D,Ue)),affixWrapper:O()(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:ht==="rtl",[`${D}-affix-wrapper-sm`]:me==="small",[`${D}-affix-wrapper-lg`]:me==="large",[`${D}-textarea-show-count`]:De||((ze=Ee.count)===null||ze===void 0?void 0:ze.show)},Ce)}),prefixCls:D,suffix:oe&&i.createElement("span",{className:`${D}-textarea-suffix`},nt),showCount:De,ref:K,onResize:gt,onMouseDown:Re}))))})},23826:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return U}});var i=u(59301);function U(O,fe){const Z=(0,i.useRef)([]),g=()=>{Z.current.push(setTimeout(()=>{var H,V,l,y;!((H=O.current)===null||H===void 0)&&H.input&&((V=O.current)===null||V===void 0?void 0:V.input.getAttribute("type"))==="password"&&(!((l=O.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((y=O.current)===null||y===void 0||y.input.removeAttribute("value"))}))};return(0,i.useEffect)(()=>(fe&&g(),()=>Z.current.forEach(H=>{H&&clearTimeout(H)})),[]),g}},37568:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return un}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(48755),Z=u(56553),g=u(53075),V=vt=>{const{getPrefixCls:bt,direction:Ve}=(0,i.useContext)(fe.E_),{prefixCls:Le,className:oe}=vt,nt=bt("input-group",Le),Ue=bt("input"),[K,D,Se]=(0,g.ZP)(Ue),Ae=O()(nt,Se,{[`${nt}-lg`]:vt.size==="large",[`${nt}-sm`]:vt.size==="small",[`${nt}-compact`]:vt.compact,[`${nt}-rtl`]:Ve==="rtl"},D,oe),Ce=(0,i.useContext)(Z.aM),ke=(0,i.useMemo)(()=>Object.assign(Object.assign({},Ce),{isFormItemInput:!1}),[Ce]);return K(i.createElement("span",{className:Ae,style:vt.style,onMouseEnter:vt.onMouseEnter,onMouseLeave:vt.onMouseLeave,onFocus:vt.onFocus,onBlur:vt.onBlur},i.createElement(Z.aM.Provider,{value:ke},vt.children)))},l=u(49397),y=u(94480),M=u(6089),b=u(26112),C=u(82855),T=u(31756),$=u(16931),W=u(51636),X=u(64910);const G=vt=>{const{componentCls:bt,paddingXS:Ve}=vt;return{[bt]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Ve,"&-rtl":{direction:"rtl"},[`${bt}-input`]:{textAlign:"center",paddingInline:vt.paddingXXS},[`&${bt}-sm ${bt}-input`]:{paddingInline:vt.calc(vt.paddingXXS).div(2).equal()},[`&${bt}-lg ${bt}-input`]:{paddingInline:vt.paddingXS}}}};var L=(0,$.I$)(["Input","OTP"],vt=>{const bt=(0,W.mergeToken)(vt,(0,X.e)(vt));return[G(bt)]},X.T),Q=u(16089),P=function(vt,bt){var Ve={};for(var Le in vt)Object.prototype.hasOwnProperty.call(vt,Le)&&bt.indexOf(Le)<0&&(Ve[Le]=vt[Le]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Le=Object.getOwnPropertySymbols(vt);oe<Le.length;oe++)bt.indexOf(Le[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,Le[oe])&&(Ve[Le[oe]]=vt[Le[oe]]);return Ve},ce=i.forwardRef((vt,bt)=>{const{value:Ve,onChange:Le,onActiveChange:oe,index:nt,mask:Ue}=vt,K=P(vt,["value","onChange","onActiveChange","index","mask"]),D=Ve&&typeof Ue=="string"?Ue:Ve,Se=yt=>{Le(nt,yt.target.value)},Ae=i.useRef(null);i.useImperativeHandle(bt,()=>Ae.current);const Ce=()=>{(0,Q.Z)(()=>{var yt;const he=(yt=Ae.current)===null||yt===void 0?void 0:yt.input;document.activeElement===he&&he&&he.select()})},ke=yt=>{const{key:he,ctrlKey:me,metaKey:Lt}=yt;he==="ArrowLeft"?oe(nt-1):he==="ArrowRight"?oe(nt+1):he==="z"&&(me||Lt)&&yt.preventDefault(),Ce()},Xe=yt=>{yt.key==="Backspace"&&!Ve&&oe(nt-1),Ce()};return i.createElement(l.Z,Object.assign({type:Ue===!0?"password":"text"},K,{ref:Ae,value:D,onInput:Se,onFocus:Ce,onKeyDown:ke,onKeyUp:Xe,onMouseDown:Ce,onMouseUp:Ce}))}),Ee=function(vt,bt){var Ve={};for(var Le in vt)Object.prototype.hasOwnProperty.call(vt,Le)&&bt.indexOf(Le)<0&&(Ve[Le]=vt[Le]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Le=Object.getOwnPropertySymbols(vt);oe<Le.length;oe++)bt.indexOf(Le[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,Le[oe])&&(Ve[Le[oe]]=vt[Le[oe]]);return Ve};function pe(vt){return(vt||"").split("")}const ze=vt=>{const{index:bt,prefixCls:Ve,separator:Le}=vt,oe=typeof Le=="function"?Le(bt):Le;return oe?i.createElement("span",{className:`${Ve}-separator`},oe):null};var Pe=i.forwardRef((vt,bt)=>{const{prefixCls:Ve,length:Le=6,size:oe,defaultValue:nt,value:Ue,onChange:K,formatter:D,separator:Se,variant:Ae,disabled:Ce,status:ke,autoFocus:Xe,mask:yt,type:he,onInput:me,inputMode:Lt}=vt,Ct=Ee(vt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Nt,direction:kt}=i.useContext(fe.E_),pt=Nt("otp",Ve),Vt=(0,b.Z)(Ct,{aria:!0,data:!0,attr:!0}),[Zt,Re,gt]=L(pt),E=(0,T.Z)(Rt=>oe!=null?oe:Rt),R=i.useContext(Z.aM),at=(0,C.F)(R.status,ke),ae=i.useMemo(()=>Object.assign(Object.assign({},R),{status:at,hasFeedback:!1,feedbackIcon:null}),[R,at]),Y=i.useRef(null),Ft=i.useRef({});i.useImperativeHandle(bt,()=>({focus:()=>{var Rt;(Rt=Ft.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let ge=0;ge<Le;ge+=1)(Rt=Ft.current[ge])===null||Rt===void 0||Rt.blur()},nativeElement:Y.current}));const Ke=Rt=>D?D(Rt):Rt,[st,_t]=i.useState(()=>pe(Ke(nt||"")));i.useEffect(()=>{Ue!==void 0&&_t(pe(Ue))},[Ue]);const xe=(0,M.Z)(Rt=>{_t(Rt),me&&me(Rt),K&&Rt.length===Le&&Rt.every(ge=>ge)&&Rt.some((ge,Ht)=>st[Ht]!==ge)&&K(Rt.join(""))}),_e=(0,M.Z)((Rt,ge)=>{let Ht=(0,y.Z)(st);for(let mt=0;mt<Rt;mt+=1)Ht[mt]||(Ht[mt]="");ge.length<=1?Ht[Rt]=ge:Ht=Ht.slice(0,Rt).concat(pe(ge)),Ht=Ht.slice(0,Le);for(let mt=Ht.length-1;mt>=0&&!Ht[mt];mt-=1)Ht.pop();const cn=Ke(Ht.map(mt=>mt||" ").join(""));return Ht=pe(cn).map((mt,ne)=>mt===" "&&!Ht[ne]?Ht[ne]:mt),Ht}),et=(Rt,ge)=>{var Ht;const cn=_e(Rt,ge),mt=Math.min(Rt+ge.length,Le-1);mt!==Rt&&cn[Rt]!==void 0&&((Ht=Ft.current[mt])===null||Ht===void 0||Ht.focus()),xe(cn)},Qe=Rt=>{var ge;(ge=Ft.current[Rt])===null||ge===void 0||ge.focus()},z={variant:Ae,disabled:Ce,status:at,mask:yt,type:he,inputMode:Lt};return Zt(i.createElement("div",Object.assign({},Vt,{ref:Y,className:O()(pt,{[`${pt}-sm`]:E==="small",[`${pt}-lg`]:E==="large",[`${pt}-rtl`]:kt==="rtl"},gt,Re)}),i.createElement(Z.aM.Provider,{value:ae},Array.from({length:Le}).map((Rt,ge)=>{const Ht=`otp-${ge}`,cn=st[ge]||"";return i.createElement(i.Fragment,{key:Ht},i.createElement(ce,Object.assign({ref:mt=>{Ft.current[ge]=mt},index:ge,size:E,htmlSize:1,className:`${pt}-input`,onChange:et,value:cn,onActiveChange:Qe,autoFocus:ge===0&&Xe},z)),ge<Le-1&&i.createElement(ze,{separator:Se,index:ge,prefixCls:pt}))}))))}),Ze=u(73331),le=u(15277),N=u(2738),S=u(8654),q=u(2171),te=u(23826),se=function(vt,bt){var Ve={};for(var Le in vt)Object.prototype.hasOwnProperty.call(vt,Le)&&bt.indexOf(Le)<0&&(Ve[Le]=vt[Le]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Le=Object.getOwnPropertySymbols(vt);oe<Le.length;oe++)bt.indexOf(Le[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,Le[oe])&&(Ve[Le[oe]]=vt[Le[oe]]);return Ve};const w=vt=>vt?i.createElement(le.Z,null):i.createElement(Ze.Z,null),I={click:"onClick",hover:"onMouseOver"};var De=i.forwardRef((vt,bt)=>{const{disabled:Ve,action:Le="click",visibilityToggle:oe=!0,iconRender:nt=w}=vt,Ue=i.useContext(q.Z),K=Ve!=null?Ve:Ue,D=typeof oe=="object"&&oe.visible!==void 0,[Se,Ae]=(0,i.useState)(()=>D?oe.visible:!1),Ce=(0,i.useRef)(null);i.useEffect(()=>{D&&Ae(oe.visible)},[D,oe]);const ke=(0,te.Z)(Ce),Xe=()=>{var E;if(K)return;Se&&ke();const R=!Se;Ae(R),typeof oe=="object"&&((E=oe.onVisibleChange)===null||E===void 0||E.call(oe,R))},yt=E=>{const R=I[Le]||"",at=nt(Se),ae={[R]:Xe,className:`${E}-icon`,key:"passwordIcon",onMouseDown:Y=>{Y.preventDefault()},onMouseUp:Y=>{Y.preventDefault()}};return i.cloneElement(i.isValidElement(at)?at:i.createElement("span",null,at),ae)},{className:he,prefixCls:me,inputPrefixCls:Lt,size:Ct}=vt,Nt=se(vt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:kt}=i.useContext(fe.E_),pt=kt("input",Lt),Vt=kt("input-password",me),Zt=oe&&yt(Vt),Re=O()(Vt,he,{[`${Vt}-${Ct}`]:!!Ct}),gt=Object.assign(Object.assign({},(0,N.Z)(Nt,["suffix","iconRender","visibilityToggle"])),{type:Se?"text":"password",className:Re,prefixCls:pt,suffix:Zt});return Ct&&(gt.size=Ct),i.createElement(l.Z,Object.assign({ref:(0,S.sQ)(bt,Ce)},gt))}),dt=u(47472),It=u(22703),Te=u(7939),rt=u(70045),ht=function(vt,bt){var Ve={};for(var Le in vt)Object.prototype.hasOwnProperty.call(vt,Le)&&bt.indexOf(Le)<0&&(Ve[Le]=vt[Le]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Le=Object.getOwnPropertySymbols(vt);oe<Le.length;oe++)bt.indexOf(Le[oe])<0&&Object.prototype.propertyIsEnumerable.call(vt,Le[oe])&&(Ve[Le[oe]]=vt[Le[oe]]);return Ve},Me=i.forwardRef((vt,bt)=>{const{prefixCls:Ve,inputPrefixCls:Le,className:oe,size:nt,suffix:Ue,enterButton:K=!1,addonAfter:D,loading:Se,disabled:Ae,onSearch:Ce,onChange:ke,onCompositionStart:Xe,onCompositionEnd:yt}=vt,he=ht(vt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:me,direction:Lt}=i.useContext(fe.E_),Ct=i.useRef(!1),Nt=me("input-search",Ve),kt=me("input",Le),{compactSize:pt}=(0,rt.ri)(Nt,Lt),Vt=(0,T.Z)(et=>{var Qe;return(Qe=nt!=null?nt:pt)!==null&&Qe!==void 0?Qe:et}),Zt=i.useRef(null),Re=et=>{et!=null&&et.target&&et.type==="click"&&Ce&&Ce(et.target.value,et,{source:"clear"}),ke==null||ke(et)},gt=et=>{var Qe;document.activeElement===((Qe=Zt.current)===null||Qe===void 0?void 0:Qe.input)&&et.preventDefault()},E=et=>{var Qe,z;Ce&&Ce((z=(Qe=Zt.current)===null||Qe===void 0?void 0:Qe.input)===null||z===void 0?void 0:z.value,et,{source:"input"})},R=et=>{Ct.current||Se||E(et)},at=typeof K=="boolean"?i.createElement(dt.Z,null):null,ae=`${Nt}-button`;let Y;const Ft=K||{},Ke=Ft.type&&Ft.type.__ANT_BUTTON===!0;Ke||Ft.type==="button"?Y=(0,It.Tm)(Ft,Object.assign({onMouseDown:gt,onClick:et=>{var Qe,z;(z=(Qe=Ft==null?void 0:Ft.props)===null||Qe===void 0?void 0:Qe.onClick)===null||z===void 0||z.call(Qe,et),E(et)},key:"enterButton"},Ke?{className:ae,size:Vt}:{})):Y=i.createElement(Te.ZP,{className:ae,type:K?"primary":void 0,size:Vt,disabled:Ae,key:"enterButton",onMouseDown:gt,onClick:E,loading:Se,icon:at},K),D&&(Y=[Y,(0,It.Tm)(D,{key:"addonAfter"})]);const st=O()(Nt,{[`${Nt}-rtl`]:Lt==="rtl",[`${Nt}-${Vt}`]:!!Vt,[`${Nt}-with-button`]:!!K},oe),_t=Object.assign(Object.assign({},he),{className:st,prefixCls:kt,type:"search"}),xe=et=>{Ct.current=!0,Xe==null||Xe(et)},_e=et=>{Ct.current=!1,yt==null||yt(et)};return i.createElement(l.Z,Object.assign({ref:(0,S.sQ)(Zt,bt),onPressEnter:R},_t,{size:Vt,onCompositionStart:xe,onCompositionEnd:_e,addonAfter:Y,suffix:Ue,onChange:Re,disabled:Ae}))}),Xt=u(79809);const tt=l.Z;tt.Group=V,tt.Search=Me,tt.TextArea=Xt.Z,tt.Password=De,tt.OTP=Pe;var un=tt},53075:function(zn,Pt,u){"use strict";u.d(Pt,{TI:function(){return Q},ik:function(){return b},nz:function(){return V},s7:function(){return C},x0:function(){return M}});var i=u(36237),U=u(63356),O=u(56119),fe=u(16931),Z=u(51636),g=u(64910),H=u(39082);const V=P=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:P,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l=P=>({borderColor:P.activeBorderColor,boxShadow:P.activeShadow,outline:0,backgroundColor:P.activeBg}),y=P=>{const{paddingBlockLG:A,lineHeightLG:ce,borderRadiusLG:Ee,paddingInlineLG:pe}=P;return{padding:`${(0,i.unit)(A)} ${(0,i.unit)(pe)}`,fontSize:P.inputFontSizeLG,lineHeight:ce,borderRadius:Ee}},M=P=>({padding:`${(0,i.unit)(P.paddingBlockSM)} ${(0,i.unit)(P.paddingInlineSM)}`,fontSize:P.inputFontSizeSM,borderRadius:P.borderRadiusSM}),b=P=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,i.unit)(P.paddingBlock)} ${(0,i.unit)(P.paddingInline)}`,color:P.colorText,fontSize:P.inputFontSize,lineHeight:P.lineHeight,borderRadius:P.borderRadius,transition:`all ${P.motionDurationMid}`},V(P.colorTextPlaceholder)),{"&-lg":Object.assign({},y(P)),"&-sm":Object.assign({},M(P)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),C=P=>{const{componentCls:A,antCls:ce}=P;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:P.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${A}, &-lg > ${A}-group-addon`]:Object.assign({},y(P)),[`&-sm ${A}, &-sm > ${A}-group-addon`]:Object.assign({},M(P)),[`&-lg ${ce}-select-single ${ce}-select-selector`]:{height:P.controlHeightLG},[`&-sm ${ce}-select-single ${ce}-select-selector`]:{height:P.controlHeightSM},[`> ${A}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${A}-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 ${(0,i.unit)(P.paddingInline)}`,color:P.colorText,fontWeight:"normal",fontSize:P.inputFontSize,textAlign:"center",borderRadius:P.borderRadius,transition:`all ${P.motionDurationSlow}`,lineHeight:1,[`${ce}-select`]:{margin:`${(0,i.unit)(P.calc(P.paddingBlock).add(1).mul(-1).equal())} ${(0,i.unit)(P.calc(P.paddingInline).mul(-1).equal())}`,[`&${ce}-select-single:not(${ce}-select-customize-input):not(${ce}-pagination-size-changer)`]:{[`${ce}-select-selector`]:{backgroundColor:"inherit",border:`${(0,i.unit)(P.lineWidth)} ${P.lineType} transparent`,boxShadow:"none"}}},[`${ce}-cascader-picker`]:{margin:`-9px ${(0,i.unit)(P.calc(P.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${ce}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[A]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${A}-search-with-button &`]:{zIndex:0}}},[`> ${A}:first-child, ${A}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ce}-select ${ce}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${A}-affix-wrapper`]:{[`&:not(:first-child) ${A}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${A}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${A}:last-child, ${A}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ce}-select ${ce}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${A}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${A}-search &`]:{borderStartStartRadius:P.borderRadius,borderEndStartRadius:P.borderRadius}},[`&:not(:first-child), ${A}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${A}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,U.dF)()),{[`${A}-group-addon, ${A}-group-wrap, > ${A}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:P.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${A}-affix-wrapper,
& > ${A}-number-affix-wrapper,
& > ${ce}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:P.calc(P.lineWidth).mul(-1).equal(),borderInlineEndWidth:P.lineWidth},[A]:{float:"none"},[`& > ${ce}-select > ${ce}-select-selector,
& > ${ce}-select-auto-complete ${A},
& > ${ce}-cascader-picker ${A},
& > ${A}-group-wrapper ${A}`]:{borderInlineEndWidth:P.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${ce}-select-focused`]:{zIndex:1},[`& > ${ce}-select > ${ce}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${ce}-select:first-child > ${ce}-select-selector,
& > ${ce}-select-auto-complete:first-child ${A},
& > ${ce}-cascader-picker:first-child ${A}`]:{borderStartStartRadius:P.borderRadius,borderEndStartRadius:P.borderRadius},[`& > *:last-child,
& > ${ce}-select:last-child > ${ce}-select-selector,
& > ${ce}-cascader-picker:last-child ${A},
& > ${ce}-cascader-picker-focused:last-child ${A}`]:{borderInlineEndWidth:P.lineWidth,borderStartEndRadius:P.borderRadius,borderEndEndRadius:P.borderRadius},[`& > ${ce}-select-auto-complete ${A}`]:{verticalAlign:"top"},[`${A}-group-wrapper + ${A}-group-wrapper`]:{marginInlineStart:P.calc(P.lineWidth).mul(-1).equal(),[`${A}-affix-wrapper`]:{borderRadius:0}},[`${A}-group-wrapper:not(:last-child)`]:{[`&${A}-search > ${A}-group`]:{[`& > ${A}-group-addon > ${A}-search-button`]:{borderRadius:0},[`& > ${A}`]:{borderStartStartRadius:P.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:P.borderRadius}}}})}},T=P=>{const{componentCls:A,controlHeightSM:ce,lineWidth:Ee,calc:pe}=P,Je=pe(ce).sub(pe(Ee).mul(2)).sub(16).div(2).equal();return{[A]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(P)),b(P)),(0,H.qG)(P)),(0,H.H8)(P)),(0,H.Mu)(P)),(0,H.vc)(P)),{'&[type="color"]':{height:P.controlHeight,[`&${A}-lg`]:{height:P.controlHeightLG},[`&${A}-sm`]:{height:ce,paddingTop:Je,paddingBottom:Je}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},$=P=>{const{componentCls:A}=P;return{[`${A}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:P.colorTextQuaternary,fontSize:P.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${P.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:P.colorTextTertiary},"&:active":{color:P.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,i.unit)(P.inputAffixPadding)}`}}}},W=P=>{const{componentCls:A,inputAffixPadding:ce,colorTextDescription:Ee,motionDurationSlow:pe,colorIcon:ze,colorIconHover:Je,iconCls:Pe}=P,Ze=`${A}-affix-wrapper`,le=`${A}-affix-wrapper-disabled`;return{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign({},b(P)),{display:"inline-flex",[`&:not(${A}-disabled):hover`]:{zIndex:1,[`${A}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${A}`]:{padding:0},[`> input${A}, > textarea${A}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[A]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:P.paddingXS}},"&-show-count-suffix":{color:Ee},"&-show-count-has-suffix":{marginInlineEnd:P.paddingXXS},"&-prefix":{marginInlineEnd:ce},"&-suffix":{marginInlineStart:ce}}}),$(P)),{[`${Pe}${A}-password-icon`]:{color:ze,cursor:"pointer",transition:`all ${pe}`,"&:hover":{color:Je}}}),[`${A}-underlined`]:{borderRadius:0},[le]:{[`${Pe}${A}-password-icon`]:{color:ze,cursor:"not-allowed","&:hover":{color:ze}}}}},X=P=>{const{componentCls:A,borderRadiusLG:ce,borderRadiusSM:Ee}=P;return{[`${A}-group`]:Object.assign(Object.assign(Object.assign({},(0,U.Wf)(P)),C(P)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${A}-group-addon`]:{borderRadius:ce,fontSize:P.inputFontSizeLG}},"&-sm":{[`${A}-group-addon`]:{borderRadius:Ee}}},(0,H.ir)(P)),(0,H.S5)(P)),{[`&:not(${A}-compact-first-item):not(${A}-compact-last-item)${A}-compact-item`]:{[`${A}, ${A}-group-addon`]:{borderRadius:0}},[`&:not(${A}-compact-last-item)${A}-compact-first-item`]:{[`${A}, ${A}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${A}-compact-first-item)${A}-compact-last-item`]:{[`${A}, ${A}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${A}-compact-last-item)${A}-compact-item`]:{[`${A}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${A}-compact-first-item)${A}-compact-item`]:{[`${A}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},G=P=>{const{componentCls:A,antCls:ce}=P,Ee=`${A}-search`;return{[Ee]:{[A]:{"&:hover, &:focus":{[`+ ${A}-group-addon ${Ee}-button:not(${ce}-btn-primary)`]:{borderInlineStartColor:P.colorPrimaryHover}}},[`${A}-affix-wrapper`]:{height:P.controlHeight,borderRadius:0},[`${A}-lg`]:{lineHeight:P.calc(P.lineHeightLG).sub(2e-4).equal()},[`> ${A}-group`]:{[`> ${A}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ee}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${Ee}-button:not(${ce}-btn-primary)`]:{color:P.colorTextDescription,"&:hover":{color:P.colorPrimaryHover},"&:active":{color:P.colorPrimaryActive},[`&${ce}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ee}-button`]:{height:P.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${A}-affix-wrapper, ${Ee}-button`]:{height:P.controlHeightLG}},"&-small":{[`${A}-affix-wrapper, ${Ee}-button`]:{height:P.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${A}-compact-item`]:{[`&:not(${A}-compact-last-item)`]:{[`${A}-group-addon`]:{[`${A}-search-button`]:{marginInlineEnd:P.calc(P.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${A}-compact-first-item)`]:{[`${A},${A}-affix-wrapper`]:{borderRadius:0}},[`> ${A}-group-addon ${A}-search-button,
> ${A},
${A}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${A}-affix-wrapper-focused`]:{zIndex:2}}}}},L=P=>{const{componentCls:A}=P;return{[`${A}-out-of-range`]:{[`&, & input, & textarea, ${A}-show-count-suffix, ${A}-data-count`]:{color:P.colorError}}}},Q=(0,fe.I$)(["Input","Shared"],P=>{const A=(0,Z.mergeToken)(P,(0,g.e)(P));return[T(A),W(A)]},g.T,{resetFont:!1});Pt.ZP=(0,fe.I$)(["Input","Component"],P=>{const A=(0,Z.mergeToken)(P,(0,g.e)(P));return[X(A),G(A),L(A),(0,O.c)(A)]},g.T,{resetFont:!1})},64910:function(zn,Pt,u){"use strict";u.d(Pt,{T:function(){return O},e:function(){return U}});var i=u(51636);function U(fe){return(0,i.mergeToken)(fe,{inputAffixPadding:fe.paddingXXS})}const O=fe=>{const{controlHeight:Z,fontSize:g,lineHeight:H,lineWidth:V,controlHeightSM:l,controlHeightLG:y,fontSizeLG:M,lineHeightLG:b,paddingSM:C,controlPaddingHorizontalSM:T,controlPaddingHorizontal:$,colorFillAlter:W,colorPrimaryHover:X,colorPrimary:G,controlOutlineWidth:L,controlOutline:Q,colorErrorOutline:P,colorWarningOutline:A,colorBgContainer:ce,inputFontSize:Ee,inputFontSizeLG:pe,inputFontSizeSM:ze}=fe,Je=Ee||g,Pe=ze||Je,Ze=pe||M,le=Math.round((Z-Je*H)/2*10)/10-V,N=Math.round((l-Pe*H)/2*10)/10-V,S=Math.ceil((y-Ze*b)/2*10)/10-V;return{paddingBlock:Math.max(le,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(S,0),paddingInline:C-V,paddingInlineSM:T-V,paddingInlineLG:$-V,addonBg:W,activeBorderColor:G,hoverBorderColor:X,activeShadow:`0 0 0 ${L}px ${Q}`,errorActiveShadow:`0 0 0 ${L}px ${P}`,warningActiveShadow:`0 0 0 ${L}px ${A}`,hoverBg:ce,activeBg:ce,inputFontSize:Je,inputFontSizeLG:Ze,inputFontSizeSM:Pe}}},39082:function(zn,Pt,u){"use strict";u.d(Pt,{$U:function(){return Z},H8:function(){return C},Mu:function(){return y},S5:function(){return $},Xy:function(){return fe},ir:function(){return l},qG:function(){return H},vc:function(){return G}});var i=u(36237),U=u(51636);const O=L=>({borderColor:L.hoverBorderColor,backgroundColor:L.hoverBg}),fe=L=>({color:L.colorTextDisabled,backgroundColor:L.colorBgContainerDisabled,borderColor:L.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},O((0,U.mergeToken)(L,{hoverBorderColor:L.colorBorder,hoverBg:L.colorBgContainerDisabled})))}),Z=(L,Q)=>({background:L.colorBgContainer,borderWidth:L.lineWidth,borderStyle:L.lineType,borderColor:Q.borderColor,"&:hover":{borderColor:Q.hoverBorderColor,backgroundColor:L.hoverBg},"&:focus, &:focus-within":{borderColor:Q.activeBorderColor,boxShadow:Q.activeShadow,outline:0,backgroundColor:L.activeBg}}),g=(L,Q)=>({[`&${L.componentCls}-status-${Q.status}:not(${L.componentCls}-disabled)`]:Object.assign(Object.assign({},Z(L,Q)),{[`${L.componentCls}-prefix, ${L.componentCls}-suffix`]:{color:Q.affixColor}}),[`&${L.componentCls}-status-${Q.status}${L.componentCls}-disabled`]:{borderColor:Q.borderColor}}),H=(L,Q)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Z(L,{borderColor:L.colorBorder,hoverBorderColor:L.hoverBorderColor,activeBorderColor:L.activeBorderColor,activeShadow:L.activeShadow})),{[`&${L.componentCls}-disabled, &[disabled]`]:Object.assign({},fe(L))}),g(L,{status:"error",borderColor:L.colorError,hoverBorderColor:L.colorErrorBorderHover,activeBorderColor:L.colorError,activeShadow:L.errorActiveShadow,affixColor:L.colorError})),g(L,{status:"warning",borderColor:L.colorWarning,hoverBorderColor:L.colorWarningBorderHover,activeBorderColor:L.colorWarning,activeShadow:L.warningActiveShadow,affixColor:L.colorWarning})),Q)}),V=(L,Q)=>({[`&${L.componentCls}-group-wrapper-status-${Q.status}`]:{[`${L.componentCls}-group-addon`]:{borderColor:Q.addonBorderColor,color:Q.addonColor}}}),l=L=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${L.componentCls}-group`]:{"&-addon":{background:L.addonBg,border:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},V(L,{status:"error",addonBorderColor:L.colorError,addonColor:L.colorErrorText})),V(L,{status:"warning",addonBorderColor:L.colorWarning,addonColor:L.colorWarningText})),{[`&${L.componentCls}-group-wrapper-disabled`]:{[`${L.componentCls}-group-addon`]:Object.assign({},fe(L))}})}),y=(L,Q)=>{const{componentCls:P}=L;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${P}-disabled, &[disabled]`]:{color:L.colorTextDisabled,cursor:"not-allowed"},[`&${P}-status-error`]:{"&, & input, & textarea":{color:L.colorError}},[`&${P}-status-warning`]:{"&, & input, & textarea":{color:L.colorWarning}}},Q)}},M=(L,Q)=>{var P;return{background:Q.bg,borderWidth:L.lineWidth,borderStyle:L.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(P=Q==null?void 0:Q.inputColor)!==null&&P!==void 0?P:"unset"},"&:hover":{background:Q.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:Q.activeBorderColor,backgroundColor:L.activeBg}}},b=(L,Q)=>({[`&${L.componentCls}-status-${Q.status}:not(${L.componentCls}-disabled)`]:Object.assign(Object.assign({},M(L,Q)),{[`${L.componentCls}-prefix, ${L.componentCls}-suffix`]:{color:Q.affixColor}})}),C=(L,Q)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},M(L,{bg:L.colorFillTertiary,hoverBg:L.colorFillSecondary,activeBorderColor:L.activeBorderColor})),{[`&${L.componentCls}-disabled, &[disabled]`]:Object.assign({},fe(L))}),b(L,{status:"error",bg:L.colorErrorBg,hoverBg:L.colorErrorBgHover,activeBorderColor:L.colorError,inputColor:L.colorErrorText,affixColor:L.colorError})),b(L,{status:"warning",bg:L.colorWarningBg,hoverBg:L.colorWarningBgHover,activeBorderColor:L.colorWarning,inputColor:L.colorWarningText,affixColor:L.colorWarning})),Q)}),T=(L,Q)=>({[`&${L.componentCls}-group-wrapper-status-${Q.status}`]:{[`${L.componentCls}-group-addon`]:{background:Q.addonBg,color:Q.addonColor}}}),$=L=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${L.componentCls}-group`]:{"&-addon":{background:L.colorFillTertiary},[`${L.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorSplit}`}}}},T(L,{status:"error",addonBg:L.colorErrorBg,addonColor:L.colorErrorText})),T(L,{status:"warning",addonBg:L.colorWarningBg,addonColor:L.colorWarningText})),{[`&${L.componentCls}-group-wrapper-disabled`]:{[`${L.componentCls}-group`]:{"&-addon":{background:L.colorFillTertiary,color:L.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`,borderTop:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`,borderBottom:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`,borderTop:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`,borderBottom:`${(0,i.unit)(L.lineWidth)} ${L.lineType} ${L.colorBorder}`}}}})}),W=(L,Q)=>({background:L.colorBgContainer,borderWidth:`${(0,i.unit)(L.lineWidth)} 0`,borderStyle:`${L.lineType} none`,borderColor:`transparent transparent ${Q.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${Q.borderColor} transparent`,backgroundColor:L.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${Q.borderColor} transparent`,outline:0,backgroundColor:L.activeBg}}),X=(L,Q)=>({[`&${L.componentCls}-status-${Q.status}:not(${L.componentCls}-disabled)`]:Object.assign(Object.assign({},W(L,Q)),{[`${L.componentCls}-prefix, ${L.componentCls}-suffix`]:{color:Q.affixColor}}),[`&${L.componentCls}-status-${Q.status}${L.componentCls}-disabled`]:{borderColor:`transparent transparent ${Q.borderColor} transparent`}}),G=(L,Q)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(L,{borderColor:L.colorBorder,hoverBorderColor:L.hoverBorderColor,activeBorderColor:L.activeBorderColor,activeShadow:L.activeShadow})),{[`&${L.componentCls}-disabled, &[disabled]`]:{color:L.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${L.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),X(L,{status:"error",borderColor:L.colorError,hoverBorderColor:L.colorErrorBorderHover,activeBorderColor:L.colorError,activeShadow:L.errorActiveShadow,affixColor:L.colorError})),X(L,{status:"warning",borderColor:L.colorWarning,hoverBorderColor:L.colorWarningBorderHover,activeBorderColor:L.colorWarning,activeShadow:L.warningActiveShadow,affixColor:L.colorWarning})),Q)})},24303:function(zn,Pt,u){"use strict";u.d(Pt,{D:function(){return Ee},Z:function(){return Je}});var i=u(59301),U=u(54476),O={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"},fe=O,Z=u(7657),g=function(Ze,le){return i.createElement(Z.Z,(0,U.Z)({},Ze,{ref:le,icon:fe}))},H=i.forwardRef(g),V=H,l=u(33853),y=u(38819),M=u(92310),b=u.n(M),C=u(2738),T=u(48755),$=u(6989),W=u(36237),X=u(48923),G=u(16931);const L=Pe=>{const{componentCls:Ze,siderBg:le,motionDurationMid:N,motionDurationSlow:S,antCls:q,triggerHeight:te,triggerColor:se,triggerBg:w,headerHeight:I,zeroTriggerWidth:de,zeroTriggerHeight:De,borderRadiusLG:dt,lightSiderBg:It,lightTriggerColor:Te,lightTriggerBg:rt,bodyBg:ht}=Pe;return{[Ze]:{position:"relative",minWidth:0,background:le,transition:`all ${N}, background 0s`,"&-has-trigger":{paddingBottom:te},"&-right":{order:1},[`${Ze}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${q}-menu${q}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ze}-children`]:{overflow:"hidden"},[`${Ze}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:te,color:se,lineHeight:(0,W.unit)(te),textAlign:"center",background:w,cursor:"pointer",transition:`all ${N}`},[`${Ze}-zero-width-trigger`]:{position:"absolute",top:I,insetInlineEnd:Pe.calc(de).mul(-1).equal(),zIndex:1,width:de,height:De,color:se,fontSize:Pe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:le,borderRadius:`0 ${(0,W.unit)(dt)} ${(0,W.unit)(dt)} 0`,cursor:"pointer",transition:`background ${S} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${S}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Pe.calc(de).mul(-1).equal(),borderRadius:`${(0,W.unit)(dt)} 0 0 ${(0,W.unit)(dt)}`}},"&-light":{background:It,[`${Ze}-trigger`]:{color:Te,background:rt},[`${Ze}-zero-width-trigger`]:{color:Te,background:rt,border:`1px solid ${ht}`,borderInlineStart:0}}}}};var Q=(0,G.I$)(["Layout","Sider"],Pe=>[L(Pe)],X.eh,{deprecatedTokens:X.jn}),P=function(Pe,Ze){var le={};for(var N in Pe)Object.prototype.hasOwnProperty.call(Pe,N)&&Ze.indexOf(N)<0&&(le[N]=Pe[N]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,N=Object.getOwnPropertySymbols(Pe);S<N.length;S++)Ze.indexOf(N[S])<0&&Object.prototype.propertyIsEnumerable.call(Pe,N[S])&&(le[N[S]]=Pe[N[S]]);return le};const A={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ce=Pe=>!Number.isNaN(Number.parseFloat(Pe))&&isFinite(Pe),Ee=i.createContext({}),pe=(()=>{let Pe=0;return function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Pe+=1,`${Ze}${Pe}`}})();var Je=i.forwardRef((Pe,Ze)=>{const{prefixCls:le,className:N,trigger:S,children:q,defaultCollapsed:te=!1,theme:se="dark",style:w={},collapsible:I=!1,reverseArrow:de=!1,width:De=200,collapsedWidth:dt=80,zeroWidthTriggerStyle:It,breakpoint:Te,onCollapse:rt,onBreakpoint:ht}=Pe,St=P(Pe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Me}=(0,i.useContext)($.V),[Xt,tt]=(0,i.useState)("collapsed"in Pe?Pe.collapsed:te),[un,vt]=(0,i.useState)(!1);(0,i.useEffect)(()=>{"collapsed"in Pe&&tt(Pe.collapsed)},[Pe.collapsed]);const bt=(Vt,Zt)=>{"collapsed"in Pe||tt(Vt),rt==null||rt(Vt,Zt)},{getPrefixCls:Ve,direction:Le}=(0,i.useContext)(T.E_),oe=Ve("layout-sider",le),[nt,Ue,K]=Q(oe),D=(0,i.useRef)(null);D.current=Vt=>{vt(Vt.matches),ht==null||ht(Vt.matches),Xt!==Vt.matches&&bt(Vt.matches,"responsive")},(0,i.useEffect)(()=>{function Vt(Re){return D.current(Re)}let Zt;if(typeof window!="undefined"){const{matchMedia:Re}=window;if(Re&&Te&&Te in A){Zt=Re(`screen and (max-width: ${A[Te]})`);try{Zt.addEventListener("change",Vt)}catch(gt){Zt.addListener(Vt)}Vt(Zt)}}return()=>{try{Zt==null||Zt.removeEventListener("change",Vt)}catch(Re){Zt==null||Zt.removeListener(Vt)}}},[Te]),(0,i.useEffect)(()=>{const Vt=pe("ant-sider-");return Me.addSider(Vt),()=>Me.removeSider(Vt)},[]);const Se=()=>{bt(!Xt,"clickTrigger")},Ae=(0,C.Z)(St,["collapsed"]),Ce=Xt?dt:De,ke=ce(Ce)?`${Ce}px`:String(Ce),Xe=parseFloat(String(dt||0))===0?i.createElement("span",{onClick:Se,className:b()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:It},S||i.createElement(V,null)):null,yt=Le==="rtl"==!de,Lt={expanded:yt?i.createElement(y.Z,null):i.createElement(l.Z,null),collapsed:yt?i.createElement(l.Z,null):i.createElement(y.Z,null)}[Xt?"collapsed":"expanded"],Ct=S!==null?Xe||i.createElement("div",{className:`${oe}-trigger`,onClick:Se,style:{width:ke}},S||Lt):null,Nt=Object.assign(Object.assign({},w),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),kt=b()(oe,`${oe}-${se}`,{[`${oe}-collapsed`]:!!Xt,[`${oe}-has-trigger`]:I&&S!==null&&!Xe,[`${oe}-below`]:!!un,[`${oe}-zero-width`]:parseFloat(ke)===0},N,Ue,K),pt=i.useMemo(()=>({siderCollapsed:Xt}),[Xt]);return nt(i.createElement(Ee.Provider,{value:pt},i.createElement("aside",Object.assign({className:kt},Ae,{style:Nt,ref:Ze}),i.createElement("div",{className:`${oe}-children`},q),I||un&&Xe?Ct:null)))})},6989:function(zn,Pt,u){"use strict";u.d(Pt,{V:function(){return U}});var i=u(59301);const U=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(zn,Pt,u){"use strict";u.d(Pt,{eh:function(){return fe},jn:function(){return Z}});var i=u(36237),U=u(16931);const O=g=>{const{antCls:H,componentCls:V,colorText:l,footerBg:y,headerHeight:M,headerPadding:b,headerColor:C,footerPadding:T,fontSize:$,bodyBg:W,headerBg:X}=g;return{[V]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:W,"&, *":{boxSizing:"border-box"},[`&${V}-has-sider`]:{flexDirection:"row",[`> ${V}, > ${V}-content`]:{width:0}},[`${V}-header, &${V}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${V}-header`]:{height:M,padding:b,color:C,lineHeight:(0,i.unit)(M),background:X,[`${H}-menu`]:{lineHeight:"inherit"}},[`${V}-footer`]:{padding:T,color:l,fontSize:$,background:y},[`${V}-content`]:{flex:"auto",color:l,minHeight:0}}},fe=g=>{const{colorBgLayout:H,controlHeight:V,controlHeightLG:l,colorText:y,controlHeightSM:M,marginXXS:b,colorTextLightSolid:C,colorBgContainer:T}=g,$=l*1.25;return{colorBgHeader:"#001529",colorBgBody:H,colorBgTrigger:"#002140",bodyBg:H,headerBg:"#001529",headerHeight:V*2,headerPadding:`0 ${$}px`,headerColor:y,footerPadding:`${M}px ${$}px`,footerBg:H,siderBg:"#001529",triggerHeight:l+b*2,triggerBg:"#002140",triggerColor:C,zeroTriggerWidth:l,zeroTriggerHeight:l,lightSiderBg:T,lightTriggerBg:T,lightTriggerColor:y}},Z=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Pt.ZP=(0,U.I$)("Layout",g=>[O(g)],fe,{deprecatedTokens:Z})},78857:function(zn,Pt,u){"use strict";u.d(Pt,{J:function(){return g}});var i=u(59301),U=u(8654),O=u(62487),fe=function(H,V){var l={};for(var y in H)Object.prototype.hasOwnProperty.call(H,y)&&V.indexOf(y)<0&&(l[y]=H[y]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,y=Object.getOwnPropertySymbols(H);M<y.length;M++)V.indexOf(y[M])<0&&Object.prototype.propertyIsEnumerable.call(H,y[M])&&(l[y[M]]=H[y[M]]);return l};const Z=i.createContext(null),g=i.forwardRef((H,V)=>{const{children:l}=H,y=fe(H,["children"]),M=i.useContext(Z),b=i.useMemo(()=>Object.assign(Object.assign({},M),y),[M,y.prefixCls,y.mode,y.selectable,y.rootClassName]),C=(0,U.t4)(l),T=(0,U.x1)(V,C?(0,U.C4)(l):null);return i.createElement(Z.Provider,{value:b},i.createElement(O.Z,{space:!0},C?i.cloneElement(l,{ref:T}):l))});Pt.Z=Z},93041:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return nt}});var i=u(59301),U=u(28321),O=u(24303),fe=u(18785),Z=u(92310),g=u.n(Z),H=u(6089),V=u(2738),l=u(86641),y=u(22703),M=u(48755),b=u(83397),T=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=function(Ue,K){var D={};for(var Se in Ue)Object.prototype.hasOwnProperty.call(Ue,Se)&&K.indexOf(Se)<0&&(D[Se]=Ue[Se]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Se=Object.getOwnPropertySymbols(Ue);Ae<Se.length;Ae++)K.indexOf(Se[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Se[Ae])&&(D[Se[Ae]]=Ue[Se[Ae]]);return D},X=Ue=>{const{prefixCls:K,className:D,dashed:Se}=Ue,Ae=$(Ue,["prefixCls","className","dashed"]),{getPrefixCls:Ce}=i.useContext(M.E_),ke=Ce("menu",K),Xe=g()({[`${ke}-item-divider-dashed`]:!!Se},D);return i.createElement(U.iz,Object.assign({className:Xe},Ae))},G=u(11592),L=u(25399),P=Ue=>{var K;const{className:D,children:Se,icon:Ae,title:Ce,danger:ke,extra:Xe}=Ue,{prefixCls:yt,firstLevel:he,direction:me,disableMenuItemTitleTooltip:Lt,inlineCollapsed:Ct}=i.useContext(T),Nt=gt=>{const E=Se==null?void 0:Se[0],R=i.createElement("span",{className:g()(`${yt}-title-content`,{[`${yt}-title-content-with-extra`]:!!Xe||Xe===0})},Se);return(!Ae||i.isValidElement(Se)&&Se.type==="span")&&Se&&gt&&he&&typeof E=="string"?i.createElement("div",{className:`${yt}-inline-collapsed-noicon`},E.charAt(0)):R},{siderCollapsed:kt}=i.useContext(O.D);let pt=Ce;typeof Ce=="undefined"?pt=he?Se:"":Ce===!1&&(pt="");const Vt={title:pt};!kt&&!Ct&&(Vt.title=null,Vt.open=!1);const Zt=(0,G.Z)(Se).length;let Re=i.createElement(U.ck,Object.assign({},(0,V.Z)(Ue,["title","icon","danger"]),{className:g()({[`${yt}-item-danger`]:ke,[`${yt}-item-only-child`]:(Ae?Zt+1:Zt)===1},D),title:typeof Ce=="string"?Ce:void 0}),(0,y.Tm)(Ae,{className:g()(i.isValidElement(Ae)?(K=Ae.props)===null||K===void 0?void 0:K.className:"",`${yt}-item-icon`)}),Nt(Ct));return Lt||(Re=i.createElement(L.Z,Object.assign({},Vt,{placement:me==="rtl"?"left":"right",classNames:{root:`${yt}-inline-collapsed-tooltip`}}),Re)),Re},A=u(78857),ce=u(36237),Ee=u(17835),pe=u(63356),ze=u(34961),Je=u(46e3),Pe=u(34925),Ze=u(16931),le=u(51636),S=Ue=>{const{componentCls:K,motionDurationSlow:D,horizontalLineHeight:Se,colorSplit:Ae,lineWidth:Ce,lineType:ke,itemPaddingInline:Xe}=Ue;return{[`${K}-horizontal`]:{lineHeight:Se,border:0,borderBottom:`${(0,ce.unit)(Ce)} ${ke} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${K}-item, ${K}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Xe},[`> ${K}-item:hover,
> ${K}-item-active,
> ${K}-submenu ${K}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${K}-item, ${K}-submenu-title`]:{transition:[`border-color ${D}`,`background ${D}`].join(",")},[`${K}-submenu-arrow`]:{display:"none"}}}},te=Ue=>{let{componentCls:K,menuArrowOffset:D,calc:Se}=Ue;return{[`${K}-rtl`]:{direction:"rtl"},[`${K}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${K}-rtl${K}-vertical,
${K}-submenu-rtl ${K}-vertical`]:{[`${K}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ce.unit)(Se(D).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ce.unit)(D)})`}}}}};const se=Ue=>Object.assign({},(0,pe.oN)(Ue));var I=(Ue,K)=>{const{componentCls:D,itemColor:Se,itemSelectedColor:Ae,subMenuItemSelectedColor:Ce,groupTitleColor:ke,itemBg:Xe,subMenuItemBg:yt,itemSelectedBg:he,activeBarHeight:me,activeBarWidth:Lt,activeBarBorderWidth:Ct,motionDurationSlow:Nt,motionEaseInOut:kt,motionEaseOut:pt,itemPaddingInline:Vt,motionDurationMid:Zt,itemHoverColor:Re,lineType:gt,colorSplit:E,itemDisabledColor:R,dangerItemColor:at,dangerItemHoverColor:ae,dangerItemSelectedColor:Y,dangerItemActiveBg:Ft,dangerItemSelectedBg:Ke,popupBg:st,itemHoverBg:_t,itemActiveBg:xe,menuSubMenuBg:_e,horizontalItemSelectedColor:et,horizontalItemSelectedBg:Qe,horizontalItemBorderRadius:z,horizontalItemHoverBg:Rt}=Ue;return{[`${D}-${K}, ${D}-${K} > ${D}`]:{color:Se,background:Xe,[`&${D}-root:focus-visible`]:Object.assign({},se(Ue)),[`${D}-item`]:{"&-group-title, &-extra":{color:ke}},[`${D}-submenu-selected > ${D}-submenu-title`]:{color:Ce},[`${D}-item, ${D}-submenu-title`]:{color:Se,[`&:not(${D}-item-disabled):focus-visible`]:Object.assign({},se(Ue))},[`${D}-item-disabled, ${D}-submenu-disabled`]:{color:`${R} !important`},[`${D}-item:not(${D}-item-selected):not(${D}-submenu-selected)`]:{[`&:hover, > ${D}-submenu-title:hover`]:{color:Re}},[`&:not(${D}-horizontal)`]:{[`${D}-item:not(${D}-item-selected)`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:xe}},[`${D}-submenu-title`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:xe}}},[`${D}-item-danger`]:{color:at,[`&${D}-item:hover`]:{[`&:not(${D}-item-selected):not(${D}-submenu-selected)`]:{color:ae}},[`&${D}-item:active`]:{background:Ft}},[`${D}-item a`]:{"&, &:hover":{color:"inherit"}},[`${D}-item-selected`]:{color:Ae,[`&${D}-item-danger`]:{color:Y},"a, a:hover":{color:"inherit"}},[`& ${D}-item-selected`]:{backgroundColor:he,[`&${D}-item-danger`]:{backgroundColor:Ke}},[`&${D}-submenu > ${D}`]:{backgroundColor:_e},[`&${D}-popup > ${D}`]:{backgroundColor:st},[`&${D}-submenu-popup > ${D}`]:{backgroundColor:st},[`&${D}-horizontal`]:Object.assign(Object.assign({},K==="dark"?{borderBottom:0}:{}),{[`> ${D}-item, > ${D}-submenu`]:{top:Ct,marginTop:Ue.calc(Ct).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${(0,ce.unit)(me)} solid transparent`,transition:`border-color ${Nt} ${kt}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:me,borderBottomColor:et}},"&-selected":{color:et,backgroundColor:Qe,"&:hover":{backgroundColor:Qe},"&::after":{borderBottomWidth:me,borderBottomColor:et}}}}),[`&${D}-root`]:{[`&${D}-inline, &${D}-vertical`]:{borderInlineEnd:`${(0,ce.unit)(Ct)} ${gt} ${E}`}},[`&${D}-inline`]:{[`${D}-sub${D}-inline`]:{background:yt},[`${D}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ce.unit)(Lt)} solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Zt} ${pt}`,`opacity ${Zt} ${pt}`].join(","),content:'""'},[`&${D}-item-danger`]:{"&::after":{borderInlineEndColor:Y}}},[`${D}-selected, ${D}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Zt} ${kt}`,`opacity ${Zt} ${kt}`].join(",")}}}}}};const de=Ue=>{const{componentCls:K,itemHeight:D,itemMarginInline:Se,padding:Ae,menuArrowSize:Ce,marginXS:ke,itemMarginBlock:Xe,itemWidth:yt,itemPaddingInline:he}=Ue,me=Ue.calc(Ce).add(Ae).add(ke).equal();return{[`${K}-item`]:{position:"relative",overflow:"hidden"},[`${K}-item, ${K}-submenu-title`]:{height:D,lineHeight:(0,ce.unit)(D),paddingInline:he,overflow:"hidden",textOverflow:"ellipsis",marginInline:Se,marginBlock:Xe,width:yt},[`> ${K}-item,
> ${K}-submenu > ${K}-submenu-title`]:{height:D,lineHeight:(0,ce.unit)(D)},[`${K}-item-group-list ${K}-submenu-title,
${K}-submenu-title`]:{paddingInlineEnd:me}}};var dt=Ue=>{const{componentCls:K,iconCls:D,itemHeight:Se,colorTextLightSolid:Ae,dropdownWidth:Ce,controlHeightLG:ke,motionEaseOut:Xe,paddingXL:yt,itemMarginInline:he,fontSizeLG:me,motionDurationFast:Lt,motionDurationSlow:Ct,paddingXS:Nt,boxShadowSecondary:kt,collapsedWidth:pt,collapsedIconSize:Vt}=Ue,Zt={height:Se,lineHeight:(0,ce.unit)(Se),listStylePosition:"inside",listStyleType:"disc"};return[{[K]:{"&-inline, &-vertical":Object.assign({[`&${K}-root`]:{boxShadow:"none"}},de(Ue))},[`${K}-submenu-popup`]:{[`${K}-vertical`]:Object.assign(Object.assign({},de(Ue)),{boxShadow:kt})}},{[`${K}-submenu-popup ${K}-vertical${K}-sub`]:{minWidth:Ce,maxHeight:`calc(100vh - ${(0,ce.unit)(Ue.calc(ke).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${K}-inline`]:{width:"100%",[`&${K}-root`]:{[`${K}-item, ${K}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ct}`,`background ${Ct}`,`padding ${Lt} ${Xe}`].join(","),[`> ${K}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${K}-sub${K}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${K}-submenu > ${K}-submenu-title`]:Zt,[`& ${K}-item-group-title`]:{paddingInlineStart:yt}},[`${K}-item`]:Zt}},{[`${K}-inline-collapsed`]:{width:pt,[`&${K}-root`]:{[`${K}-item, ${K}-submenu ${K}-submenu-title`]:{[`> ${K}-inline-collapsed-noicon`]:{fontSize:me,textAlign:"center"}}},[`> ${K}-item,
> ${K}-item-group > ${K}-item-group-list > ${K}-item,
> ${K}-item-group > ${K}-item-group-list > ${K}-submenu > ${K}-submenu-title,
> ${K}-submenu > ${K}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ce.unit)(Ue.calc(Vt).div(2).equal())} - ${(0,ce.unit)(he)})`,textOverflow:"clip",[`
${K}-submenu-arrow,
${K}-submenu-expand-icon
`]:{opacity:0},[`${K}-item-icon, ${D}`]:{margin:0,fontSize:Vt,lineHeight:(0,ce.unit)(Se),"+ span":{display:"inline-block",opacity:0}}},[`${K}-item-icon, ${D}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${K}-item-icon, ${D}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${K}-item-group-title`]:Object.assign(Object.assign({},pe.vS),{paddingInline:Nt})}}]};const It=Ue=>{const{componentCls:K,motionDurationSlow:D,motionDurationMid:Se,motionEaseInOut:Ae,motionEaseOut:Ce,iconCls:ke,iconSize:Xe,iconMarginInlineEnd:yt}=Ue;return{[`${K}-item, ${K}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${D}`,`background ${D}`,`padding calc(${D} + 0.1s) ${Ae}`].join(","),[`${K}-item-icon, ${ke}`]:{minWidth:Xe,fontSize:Xe,transition:[`font-size ${Se} ${Ce}`,`margin ${D} ${Ae}`,`color ${D}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${D} ${Ae}`,`margin ${D}`,`color ${D}`].join(",")}},[`${K}-item-icon`]:Object.assign({},(0,pe.Ro)()),[`&${K}-item-only-child`]:{[`> ${ke}, > ${K}-item-icon`]:{marginInlineEnd:0}}},[`${K}-item-disabled, ${K}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${K}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Te=Ue=>{const{componentCls:K,motionDurationSlow:D,motionEaseInOut:Se,borderRadius:Ae,menuArrowSize:Ce,menuArrowOffset:ke}=Ue;return{[`${K}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ue.margin,width:Ce,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${D} ${Se}, opacity ${D}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ue.calc(Ce).mul(.6).equal(),height:Ue.calc(Ce).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${D} ${Se}`,`transform ${D} ${Se}`,`top ${D} ${Se}`,`color ${D} ${Se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ce.unit)(Ue.calc(ke).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ce.unit)(ke)})`}}}}},rt=Ue=>{const{antCls:K,componentCls:D,fontSize:Se,motionDurationSlow:Ae,motionDurationMid:Ce,motionEaseInOut:ke,paddingXS:Xe,padding:yt,colorSplit:he,lineWidth:me,zIndexPopup:Lt,borderRadiusLG:Ct,subMenuItemBorderRadius:Nt,menuArrowSize:kt,menuArrowOffset:pt,lineType:Vt,groupTitleLineHeight:Zt,groupTitleFontSize:Re}=Ue;return[{"":{[D]:Object.assign(Object.assign({},(0,pe.dF)()),{"&-hidden":{display:"none"}})},[`${D}-submenu-hidden`]:{display:"none"}},{[D]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Ue)),(0,pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${D}-item`]:{flex:"none"}},[`${D}-item, ${D}-submenu, ${D}-submenu-title`]:{borderRadius:Ue.itemBorderRadius},[`${D}-item-group-title`]:{padding:`${(0,ce.unit)(Xe)} ${(0,ce.unit)(yt)}`,fontSize:Re,lineHeight:Zt,transition:`all ${Ae}`},[`&-horizontal ${D}-submenu`]:{transition:[`border-color ${Ae} ${ke}`,`background ${Ae} ${ke}`].join(",")},[`${D}-submenu, ${D}-submenu-inline`]:{transition:[`border-color ${Ae} ${ke}`,`background ${Ae} ${ke}`,`padding ${Ce} ${ke}`].join(",")},[`${D}-submenu ${D}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${ke}`,`padding ${Ae} ${ke}`].join(",")},[`${D}-title-content`]:{transition:`color ${Ae}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${K}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${D}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Ue.padding}},[`${D}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${D}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:he,borderStyle:Vt,borderWidth:0,borderTopWidth:me,marginBlock:me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),It(Ue)),{[`${D}-item-group`]:{[`${D}-item-group-list`]:{margin:0,padding:0,[`${D}-item, ${D}-submenu-title`]:{paddingInline:`${(0,ce.unit)(Ue.calc(Se).mul(2).equal())} ${(0,ce.unit)(yt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Lt,borderRadius:Ct,boxShadow:"none",transformOrigin:"0 0",[`&${D}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${D}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ct},It(Ue)),Te(Ue)),{[`${D}-item, ${D}-submenu > ${D}-submenu-title`]:{borderRadius:Nt},[`${D}-submenu-title::after`]:{transition:`transform ${Ae} ${ke}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ue.paddingXS}}}),Te(Ue)),{[`&-inline-collapsed ${D}-submenu-arrow,
&-inline ${D}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ce.unit)(pt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ce.unit)(Ue.calc(pt).mul(-1).equal())})`}},[`${D}-submenu-open${D}-submenu-inline > ${D}-submenu-title > ${D}-submenu-arrow`]:{transform:`translateY(${(0,ce.unit)(Ue.calc(kt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ce.unit)(Ue.calc(pt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ce.unit)(pt)})`}}})},{[`${K}-layout-header`]:{[D]:{lineHeight:"inherit"}}}]},ht=Ue=>{var K,D,Se;const{colorPrimary:Ae,colorError:Ce,colorTextDisabled:ke,colorErrorBg:Xe,colorText:yt,colorTextDescription:he,colorBgContainer:me,colorFillAlter:Lt,colorFillContent:Ct,lineWidth:Nt,lineWidthBold:kt,controlItemBgActive:pt,colorBgTextHover:Vt,controlHeightLG:Zt,lineHeight:Re,colorBgElevated:gt,marginXXS:E,padding:R,fontSize:at,controlHeightSM:ae,fontSizeLG:Y,colorTextLightSolid:Ft,colorErrorHover:Ke}=Ue,st=(K=Ue.activeBarWidth)!==null&&K!==void 0?K:0,_t=(D=Ue.activeBarBorderWidth)!==null&&D!==void 0?D:Nt,xe=(Se=Ue.itemMarginInline)!==null&&Se!==void 0?Se:Ue.marginXXS,_e=new Ee.FastColor(Ft).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ue.zIndexPopupBase+50,radiusItem:Ue.borderRadiusLG,itemBorderRadius:Ue.borderRadiusLG,radiusSubMenuItem:Ue.borderRadiusSM,subMenuItemBorderRadius:Ue.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:he,groupTitleColor:he,colorItemTextSelected:Ae,itemSelectedColor:Ae,subMenuItemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:me,itemBg:me,colorItemBgHover:Vt,itemHoverBg:Vt,colorItemBgActive:Ct,itemActiveBg:pt,colorSubItemBg:Lt,subMenuItemBg:Lt,colorItemBgSelected:pt,itemSelectedBg:pt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:st,colorActiveBarHeight:kt,activeBarHeight:kt,colorActiveBarBorderSize:Nt,activeBarBorderWidth:_t,colorItemTextDisabled:ke,itemDisabledColor:ke,colorDangerItemText:Ce,dangerItemColor:Ce,colorDangerItemTextHover:Ce,dangerItemHoverColor:Ce,colorDangerItemTextSelected:Ce,dangerItemSelectedColor:Ce,colorDangerItemBgActive:Xe,dangerItemActiveBg:Xe,colorDangerItemBgSelected:Xe,dangerItemSelectedBg:Xe,itemMarginInline:xe,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Zt,groupTitleLineHeight:Re,collapsedWidth:Zt*2,popupBg:gt,itemMarginBlock:E,itemPaddingInline:R,horizontalLineHeight:`${Zt*1.15}px`,iconSize:at,iconMarginInlineEnd:ae-at,collapsedIconSize:Y,groupTitleFontSize:at,darkItemDisabledColor:new Ee.FastColor(Ft).setA(.25).toRgbString(),darkItemColor:_e,darkDangerItemColor:Ce,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ft,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:Ce,darkItemHoverBg:"transparent",darkGroupTitleColor:_e,darkItemHoverColor:Ft,darkDangerItemHoverColor:Ke,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:Ce,itemWidth:st?`calc(100% + ${_t}px)`:`calc(100% - ${xe*2}px)`}};var St=function(Ue){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ze.I$)("Menu",Ae=>{const{colorBgElevated:Ce,controlHeightLG:ke,fontSize:Xe,darkItemColor:yt,darkDangerItemColor:he,darkItemBg:me,darkSubMenuItemBg:Lt,darkItemSelectedColor:Ct,darkItemSelectedBg:Nt,darkDangerItemSelectedBg:kt,darkItemHoverBg:pt,darkGroupTitleColor:Vt,darkItemHoverColor:Zt,darkItemDisabledColor:Re,darkDangerItemHoverColor:gt,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:R,popupBg:at,darkPopupBg:ae}=Ae,Y=Ae.calc(Xe).div(7).mul(5).equal(),Ft=(0,le.mergeToken)(Ae,{menuArrowSize:Y,menuHorizontalHeight:Ae.calc(ke).mul(1.15).equal(),menuArrowOffset:Ae.calc(Y).mul(.25).equal(),menuSubMenuBg:Ce,calc:Ae.calc,popupBg:at}),Ke=(0,le.mergeToken)(Ft,{itemColor:yt,itemHoverColor:Zt,groupTitleColor:Vt,itemSelectedColor:Ct,subMenuItemSelectedColor:Ct,itemBg:me,popupBg:ae,subMenuItemBg:Lt,itemActiveBg:"transparent",itemSelectedBg:Nt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pt,itemDisabledColor:Re,dangerItemColor:he,dangerItemHoverColor:gt,dangerItemSelectedColor:E,dangerItemActiveBg:R,dangerItemSelectedBg:kt,menuSubMenuBg:Lt,horizontalItemSelectedColor:Ct,horizontalItemSelectedBg:Nt});return[rt(Ft),S(Ft),dt(Ft),I(Ft,"light"),I(Ke,"dark"),te(Ft),(0,ze.Z)(Ft),(0,Je.oN)(Ft,"slide-up"),(0,Je.oN)(Ft,"slide-down"),(0,Pe._y)(Ft,"zoom-big")]},ht,{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"]],injectStyle:D,unitless:{groupTitleLineHeight:!0}})(Ue,K)},Me=u(75030),tt=Ue=>{var K;const{popupClassName:D,icon:Se,title:Ae,theme:Ce}=Ue,ke=i.useContext(T),{prefixCls:Xe,inlineCollapsed:yt,theme:he}=ke,me=(0,U.Xl)();let Lt;if(!Se)Lt=yt&&!me.length&&Ae&&typeof Ae=="string"?i.createElement("div",{className:`${Xe}-inline-collapsed-noicon`},Ae.charAt(0)):i.createElement("span",{className:`${Xe}-title-content`},Ae);else{const kt=i.isValidElement(Ae)&&Ae.type==="span";Lt=i.createElement(i.Fragment,null,(0,y.Tm)(Se,{className:g()(i.isValidElement(Se)?(K=Se.props)===null||K===void 0?void 0:K.className:"",`${Xe}-item-icon`)}),kt?Ae:i.createElement("span",{className:`${Xe}-title-content`},Ae))}const Ct=i.useMemo(()=>Object.assign(Object.assign({},ke),{firstLevel:!1}),[ke]),[Nt]=(0,Me.Cn)("Menu");return i.createElement(T.Provider,{value:Ct},i.createElement(U.Wd,Object.assign({},(0,V.Z)(Ue,["icon"]),{title:Lt,popupClassName:g()(Xe,D,`${Xe}-${Ce||he}`),popupStyle:Object.assign({zIndex:Nt},Ue.popupStyle)})))},un=function(Ue,K){var D={};for(var Se in Ue)Object.prototype.hasOwnProperty.call(Ue,Se)&&K.indexOf(Se)<0&&(D[Se]=Ue[Se]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Se=Object.getOwnPropertySymbols(Ue);Ae<Se.length;Ae++)K.indexOf(Se[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Se[Ae])&&(D[Se[Ae]]=Ue[Se[Ae]]);return D};function vt(Ue){return Ue===null||Ue===!1}const bt={item:P,submenu:tt,divider:X};var Le=(0,i.forwardRef)((Ue,K)=>{var D;const Se=i.useContext(A.Z),Ae=Se||{},{getPrefixCls:Ce,getPopupContainer:ke,direction:Xe,menu:yt}=i.useContext(M.E_),he=Ce(),{prefixCls:me,className:Lt,style:Ct,theme:Nt="light",expandIcon:kt,_internalDisableMenuItemTitleTooltip:pt,inlineCollapsed:Vt,siderCollapsed:Zt,rootClassName:Re,mode:gt,selectable:E,onClick:R,overflowedIndicatorPopupClassName:at}=Ue,ae=un(Ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Y=(0,V.Z)(ae,["collapsedWidth"]);(D=Ae.validator)===null||D===void 0||D.call(Ae,{mode:gt});const Ft=(0,H.Z)(function(){var mt;R==null||R.apply(void 0,arguments),(mt=Ae.onClick)===null||mt===void 0||mt.call(Ae)}),Ke=Ae.mode||gt,st=E!=null?E:Ae.selectable,_t=Vt!=null?Vt:Zt,xe={horizontal:{motionName:`${he}-slide-up`},inline:(0,l.Z)(he),other:{motionName:`${he}-zoom-big`}},_e=Ce("menu",me||Ae.prefixCls),et=(0,b.Z)(_e),[Qe,z,Rt]=St(_e,et,!Se),ge=g()(`${_e}-${Nt}`,yt==null?void 0:yt.className,Lt),Ht=i.useMemo(()=>{var mt,ne;if(typeof kt=="function"||vt(kt))return kt||null;if(typeof Ae.expandIcon=="function"||vt(Ae.expandIcon))return Ae.expandIcon||null;if(typeof(yt==null?void 0:yt.expandIcon)=="function"||vt(yt==null?void 0:yt.expandIcon))return(yt==null?void 0:yt.expandIcon)||null;const we=(mt=kt!=null?kt:Ae==null?void 0:Ae.expandIcon)!==null&&mt!==void 0?mt:yt==null?void 0:yt.expandIcon;return(0,y.Tm)(we,{className:g()(`${_e}-submenu-expand-icon`,i.isValidElement(we)?(ne=we.props)===null||ne===void 0?void 0:ne.className:void 0)})},[kt,Ae==null?void 0:Ae.expandIcon,yt==null?void 0:yt.expandIcon,_e]),cn=i.useMemo(()=>({prefixCls:_e,inlineCollapsed:_t||!1,direction:Xe,firstLevel:!0,theme:Nt,mode:Ke,disableMenuItemTitleTooltip:pt}),[_e,_t,Xe,pt,Nt]);return Qe(i.createElement(A.Z.Provider,{value:null},i.createElement(T.Provider,{value:cn},i.createElement(U.ZP,Object.assign({getPopupContainer:ke,overflowedIndicator:i.createElement(fe.Z,null),overflowedIndicatorPopupClassName:g()(_e,`${_e}-${Nt}`,at),mode:Ke,selectable:st,onClick:Ft},Y,{inlineCollapsed:_t,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),Ct),className:ge,prefixCls:_e,direction:Xe,defaultMotions:xe,expandIcon:Ht,ref:K,rootClassName:g()(Re,z,Ae.rootClassName,Rt,et),_internalComponents:bt})))))});const oe=(0,i.forwardRef)((Ue,K)=>{const D=(0,i.useRef)(null),Se=i.useContext(O.D);return(0,i.useImperativeHandle)(K,()=>({menu:D.current,focus:Ae=>{var Ce;(Ce=D.current)===null||Ce===void 0||Ce.focus(Ae)}})),i.createElement(Le,Object.assign({ref:D},Ue,Se))});oe.Item=P,oe.SubMenu=tt,oe.Divider=X,oe.ItemGroup=U.BW;var nt=oe},31709:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return yt}});var i=u(59301),U=u(54476),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},fe=O,Z=u(7657),g=function(me,Lt){return i.createElement(Z.Z,(0,U.Z)({},me,{ref:Lt,icon:fe}))},H=i.forwardRef(g),V=H,l=u(49198),y=u(33853),M=u(38819),b=u(92310),C=u.n(b),T=u(20068),$=u(76190),W=u(33885),X=u(42978),G=u(18929),L=u(10228),Q=u(26112),P=u(48736),A=u(17119),ce=[10,20,50,100],Ee=function(me){var Lt=me.pageSizeOptions,Ct=Lt===void 0?ce:Lt,Nt=me.locale,kt=me.changeSize,pt=me.pageSize,Vt=me.goButton,Zt=me.quickGo,Re=me.rootPrefixCls,gt=me.disabled,E=me.buildOptionText,R=me.showSizeChanger,at=me.sizeChangerRender,ae=i.useState(""),Y=(0,X.Z)(ae,2),Ft=Y[0],Ke=Y[1],st=function(){return!Ft||Number.isNaN(Ft)?void 0:Number(Ft)},_t=typeof E=="function"?E:function(cn){return"".concat(cn," ").concat(Nt.items_per_page)},xe=function(mt){Ke(mt.target.value)},_e=function(mt){Vt||Ft===""||(Ke(""),!(mt.relatedTarget&&(mt.relatedTarget.className.indexOf("".concat(Re,"-item-link"))>=0||mt.relatedTarget.className.indexOf("".concat(Re,"-item"))>=0))&&(Zt==null||Zt(st())))},et=function(mt){Ft!==""&&(mt.keyCode===L.Z.ENTER||mt.type==="click")&&(Ke(""),Zt==null||Zt(st()))},Qe=function(){return Ct.some(function(mt){return mt.toString()===pt.toString()})?Ct:Ct.concat([pt]).sort(function(mt,ne){var we=Number.isNaN(Number(mt))?0:Number(mt),B=Number.isNaN(Number(ne))?0:Number(ne);return we-B})},z="".concat(Re,"-options");if(!R&&!Zt)return null;var Rt=null,ge=null,Ht=null;return R&&at&&(Rt=at({disabled:gt,size:pt,onSizeChange:function(mt){kt==null||kt(Number(mt))},"aria-label":Nt.page_size,className:"".concat(z,"-size-changer"),options:Qe().map(function(cn){return{label:_t(cn),value:cn}})})),Zt&&(Vt&&(Ht=typeof Vt=="boolean"?i.createElement("button",{type:"button",onClick:et,onKeyUp:et,disabled:gt,className:"".concat(z,"-quick-jumper-button")},Nt.jump_to_confirm):i.createElement("span",{onClick:et,onKeyUp:et},Vt)),ge=i.createElement("div",{className:"".concat(z,"-quick-jumper")},Nt.jump_to,i.createElement("input",{disabled:gt,type:"text",value:Ft,onChange:xe,onKeyUp:et,onBlur:_e,"aria-label":Nt.page}),Nt.page,Ht)),i.createElement("li",{className:z},Rt,ge)},pe=Ee,ze=function(me){var Lt=me.rootPrefixCls,Ct=me.page,Nt=me.active,kt=me.className,pt=me.showTitle,Vt=me.onClick,Zt=me.onKeyPress,Re=me.itemRender,gt="".concat(Lt,"-item"),E=C()(gt,"".concat(gt,"-").concat(Ct),(0,T.Z)((0,T.Z)({},"".concat(gt,"-active"),Nt),"".concat(gt,"-disabled"),!Ct),kt),R=function(){Vt(Ct)},at=function(Ft){Zt(Ft,Vt,Ct)},ae=Re(Ct,"page",i.createElement("a",{rel:"nofollow"},Ct));return ae?i.createElement("li",{title:pt?String(Ct):null,className:E,onClick:R,onKeyDown:at,tabIndex:0},ae):null},Je=ze,Pe=function(me,Lt,Ct){return Ct};function Ze(){}function le(he){var me=Number(he);return typeof me=="number"&&!Number.isNaN(me)&&isFinite(me)&&Math.floor(me)===me}function N(he,me,Lt){var Ct=typeof he=="undefined"?me:he;return Math.floor((Lt-1)/Ct)+1}var S=function(me){var Lt=me.prefixCls,Ct=Lt===void 0?"rc-pagination":Lt,Nt=me.selectPrefixCls,kt=Nt===void 0?"rc-select":Nt,pt=me.className,Vt=me.current,Zt=me.defaultCurrent,Re=Zt===void 0?1:Zt,gt=me.total,E=gt===void 0?0:gt,R=me.pageSize,at=me.defaultPageSize,ae=at===void 0?10:at,Y=me.onChange,Ft=Y===void 0?Ze:Y,Ke=me.hideOnSinglePage,st=me.align,_t=me.showPrevNextJumpers,xe=_t===void 0?!0:_t,_e=me.showQuickJumper,et=me.showLessItems,Qe=me.showTitle,z=Qe===void 0?!0:Qe,Rt=me.onShowSizeChange,ge=Rt===void 0?Ze:Rt,Ht=me.locale,cn=Ht===void 0?A.Z:Ht,mt=me.style,ne=me.totalBoundaryShowSizeChanger,we=ne===void 0?50:ne,B=me.disabled,xt=me.simple,lt=me.showTotal,ot=me.showSizeChanger,$t=ot===void 0?E>we:ot,Bt=me.sizeChangerRender,zt=me.pageSizeOptions,re=me.itemRender,ve=re===void 0?Pe:re,wt=me.jumpPrevIcon,Ne=me.jumpNextIcon,Be=me.prevIcon,ue=me.nextIcon,Ie=i.useRef(null),Fe=(0,G.Z)(10,{value:R,defaultValue:ae}),$e=(0,X.Z)(Fe,2),ut=$e[0],Gt=$e[1],sn=(0,G.Z)(1,{value:Vt,defaultValue:Re,postState:function(mr){return Math.max(1,Math.min(mr,N(void 0,ut,E)))}}),je=(0,X.Z)(sn,2),ct=je[0],Dt=je[1],qt=i.useState(ct),Jt=(0,X.Z)(qt,2),Ge=Jt[0],ft=Jt[1];(0,i.useEffect)(function(){ft(ct)},[ct]);var Mt=Ft!==Ze,Ye="current"in me,jt=Math.max(1,ct-(et?3:5)),rn=Math.min(N(void 0,ut,E),ct+(et?3:5));function an(_r,mr){var bi=_r||i.createElement("button",{type:"button","aria-label":mr,className:"".concat(Ct,"-item-link")});return typeof _r=="function"&&(bi=i.createElement(_r,(0,W.Z)({},me))),bi}function nn(_r){var mr=_r.target.value,bi=N(void 0,ut,E),ar;return mr===""?ar=mr:Number.isNaN(Number(mr))?ar=Ge:mr>=bi?ar=bi:ar=Number(mr),ar}function mn(_r){return le(_r)&&_r!==ct&&le(E)&&E>0}var bn=E>ut?_e:!1;function In(_r){(_r.keyCode===L.Z.UP||_r.keyCode===L.Z.DOWN)&&_r.preventDefault()}function _n(_r){var mr=nn(_r);switch(mr!==Ge&&ft(mr),_r.keyCode){case L.Z.ENTER:Ln(mr);break;case L.Z.UP:Ln(mr-1);break;case L.Z.DOWN:Ln(mr+1);break;default:break}}function Cn(_r){Ln(nn(_r))}function Zn(_r){var mr=N(_r,ut,E),bi=ct>mr&&mr!==0?mr:ct;Gt(_r),ft(bi),ge==null||ge(ct,_r),Dt(bi),Ft==null||Ft(bi,_r)}function Ln(_r){if(mn(_r)&&!B){var mr=N(void 0,ut,E),bi=_r;return _r>mr?bi=mr:_r<1&&(bi=1),bi!==Ge&&ft(bi),Dt(bi),Ft==null||Ft(bi,ut),bi}return ct}var rr=ct>1,Dn=ct<N(void 0,ut,E);function jn(){rr&&Ln(ct-1)}function Xn(){Dn&&Ln(ct+1)}function Wn(){Ln(jt)}function Gn(){Ln(rn)}function Jn(_r,mr){if(_r.key==="Enter"||_r.charCode===L.Z.ENTER||_r.keyCode===L.Z.ENTER){for(var bi=arguments.length,ar=new Array(bi>2?bi-2:0),wi=2;wi<bi;wi++)ar[wi-2]=arguments[wi];mr.apply(void 0,ar)}}function Rn(_r){Jn(_r,jn)}function Bn(_r){Jn(_r,Xn)}function ln(_r){Jn(_r,Wn)}function Tt(_r){Jn(_r,Gn)}function Fn(_r){var mr=ve(_r,"prev",an(Be,"prev page"));return i.isValidElement(mr)?i.cloneElement(mr,{disabled:!rr}):mr}function On(_r){var mr=ve(_r,"next",an(ue,"next page"));return i.isValidElement(mr)?i.cloneElement(mr,{disabled:!Dn}):mr}function sr(_r){(_r.type==="click"||_r.keyCode===L.Z.ENTER)&&Ln(Ge)}var dr=null,Ar=(0,Q.Z)(me,{aria:!0,data:!0}),ur=lt&&i.createElement("li",{className:"".concat(Ct,"-total-text")},lt(E,[E===0?0:(ct-1)*ut+1,ct*ut>E?E:ct*ut])),Yn=null,vn=N(void 0,ut,E);if(Ke&&E<=ut)return null;var hn=[],xn={rootPrefixCls:Ct,onClick:Ln,onKeyPress:Jn,showTitle:z,itemRender:ve,page:-1},Qn=ct-1>0?ct-1:0,tr=ct+1<vn?ct+1:vn,yr=_e&&_e.goButton,Er=(0,$.Z)(xt)==="object"?xt.readOnly:!xt,$n=yr,Sr=null;xt&&(yr&&(typeof yr=="boolean"?$n=i.createElement("button",{type:"button",onClick:sr,onKeyUp:sr},cn.jump_to_confirm):$n=i.createElement("span",{onClick:sr,onKeyUp:sr},yr),$n=i.createElement("li",{title:z?"".concat(cn.jump_to).concat(ct,"/").concat(vn):null,className:"".concat(Ct,"-simple-pager")},$n)),Sr=i.createElement("li",{title:z?"".concat(ct,"/").concat(vn):null,className:"".concat(Ct,"-simple-pager")},Er?Ge:i.createElement("input",{type:"text","aria-label":cn.jump_to,value:Ge,disabled:B,onKeyDown:In,onKeyUp:_n,onChange:_n,onBlur:Cn,size:3}),i.createElement("span",{className:"".concat(Ct,"-slash")},"/"),vn));var Dr=et?1:2;if(vn<=3+Dr*2){vn||hn.push(i.createElement(Je,(0,U.Z)({},xn,{key:"noPager",page:1,className:"".concat(Ct,"-item-disabled")})));for(var $r=1;$r<=vn;$r+=1)hn.push(i.createElement(Je,(0,U.Z)({},xn,{key:$r,page:$r,active:ct===$r})))}else{var Mr=et?cn.prev_3:cn.prev_5,Or=et?cn.next_3:cn.next_5,Cr=ve(jt,"jump-prev",an(wt,"prev page")),zr=ve(rn,"jump-next",an(Ne,"next page"));xe&&(dr=Cr?i.createElement("li",{title:z?Mr:null,key:"prev",onClick:Wn,tabIndex:0,onKeyDown:ln,className:C()("".concat(Ct,"-jump-prev"),(0,T.Z)({},"".concat(Ct,"-jump-prev-custom-icon"),!!wt))},Cr):null,Yn=zr?i.createElement("li",{title:z?Or:null,key:"next",onClick:Gn,tabIndex:0,onKeyDown:Tt,className:C()("".concat(Ct,"-jump-next"),(0,T.Z)({},"".concat(Ct,"-jump-next-custom-icon"),!!Ne))},zr):null);var wr=Math.max(1,ct-Dr),Vr=Math.min(ct+Dr,vn);ct-1<=Dr&&(Vr=1+Dr*2),vn-ct<=Dr&&(wr=vn-Dr*2);for(var Ir=wr;Ir<=Vr;Ir+=1)hn.push(i.createElement(Je,(0,U.Z)({},xn,{key:Ir,page:Ir,active:ct===Ir})));if(ct-1>=Dr*2&&ct!==3&&(hn[0]=i.cloneElement(hn[0],{className:C()("".concat(Ct,"-item-after-jump-prev"),hn[0].props.className)}),hn.unshift(dr)),vn-ct>=Dr*2&&ct!==vn-2){var tn=hn[hn.length-1];hn[hn.length-1]=i.cloneElement(tn,{className:C()("".concat(Ct,"-item-before-jump-next"),tn.props.className)}),hn.push(Yn)}wr!==1&&hn.unshift(i.createElement(Je,(0,U.Z)({},xn,{key:1,page:1}))),Vr!==vn&&hn.push(i.createElement(Je,(0,U.Z)({},xn,{key:vn,page:vn})))}var Tn=Fn(Qn);if(Tn){var cr=!rr||!vn;Tn=i.createElement("li",{title:z?cn.prev_page:null,onClick:jn,tabIndex:cr?null:0,onKeyDown:Rn,className:C()("".concat(Ct,"-prev"),(0,T.Z)({},"".concat(Ct,"-disabled"),cr)),"aria-disabled":cr},Tn)}var or=On(tr);if(or){var Br,ri;xt?(Br=!Dn,ri=rr?0:null):(Br=!Dn||!vn,ri=Br?null:0),or=i.createElement("li",{title:z?cn.next_page:null,onClick:Xn,tabIndex:ri,onKeyDown:Bn,className:C()("".concat(Ct,"-next"),(0,T.Z)({},"".concat(Ct,"-disabled"),Br)),"aria-disabled":Br},or)}var vi=C()(Ct,pt,(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({},"".concat(Ct,"-start"),st==="start"),"".concat(Ct,"-center"),st==="center"),"".concat(Ct,"-end"),st==="end"),"".concat(Ct,"-simple"),xt),"".concat(Ct,"-disabled"),B));return i.createElement("ul",(0,U.Z)({className:vi,style:mt,ref:Ie},Ar),ur,Tn,xt?Sr:hn,or,i.createElement(pe,{locale:cn,rootPrefixCls:Ct,disabled:B,selectPrefixCls:kt,changeSize:Zn,pageSize:ut,pageSizeOptions:zt,quickGo:bn?Ln:null,goButton:$n,showSizeChanger:$t,sizeChangerRender:Bt}))},q=S,te=u(61852),se=u(48755),w=u(31756),I=u(13783),de=u(9017),De=u(82326),dt=u(57700),It=u(36237),Te=u(53075),rt=u(64910),ht=u(39082),St=u(63356),Me=u(51636),Xt=u(16931);const tt=he=>{const{componentCls:me}=he;return{[`${me}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${me}-item-link`]:{color:he.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${me}-item-link`]:{color:he.colorTextDisabled,cursor:"not-allowed"}}},[`&${me}-disabled`]:{cursor:"not-allowed",[`${me}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:he.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:he.colorBorder,backgroundColor:he.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:he.itemActiveBgDisabled},a:{color:he.itemActiveColorDisabled}}},[`${me}-item-link`]:{color:he.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${me}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${me}-simple-pager`]:{color:he.colorTextDisabled},[`${me}-jump-prev, ${me}-jump-next`]:{[`${me}-item-link-icon`]:{opacity:0},[`${me}-item-ellipsis`]:{opacity:1}}},[`&${me}-simple`]:{[`${me}-prev, ${me}-next`]:{[`&${me}-disabled ${me}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},un=he=>{const{componentCls:me}=he;return{[`&${me}-mini ${me}-total-text, &${me}-mini ${me}-simple-pager`]:{height:he.itemSizeSM,lineHeight:(0,It.unit)(he.itemSizeSM)},[`&${me}-mini ${me}-item`]:{minWidth:he.itemSizeSM,height:he.itemSizeSM,margin:0,lineHeight:(0,It.unit)(he.calc(he.itemSizeSM).sub(2).equal())},[`&${me}-mini ${me}-prev, &${me}-mini ${me}-next`]:{minWidth:he.itemSizeSM,height:he.itemSizeSM,margin:0,lineHeight:(0,It.unit)(he.itemSizeSM)},[`&${me}-mini:not(${me}-disabled)`]:{[`${me}-prev, ${me}-next`]:{[`&:hover ${me}-item-link`]:{backgroundColor:he.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:he.colorBgTextActive},[`&${me}-disabled:hover ${me}-item-link`]:{backgroundColor:"transparent"}}},[`
&${me}-mini ${me}-prev ${me}-item-link,
&${me}-mini ${me}-next ${me}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:he.itemSizeSM,lineHeight:(0,It.unit)(he.itemSizeSM)}},[`&${me}-mini ${me}-jump-prev, &${me}-mini ${me}-jump-next`]:{height:he.itemSizeSM,marginInlineEnd:0,lineHeight:(0,It.unit)(he.itemSizeSM)},[`&${me}-mini ${me}-options`]:{marginInlineStart:he.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:he.miniOptionsSizeChangerTop},"&-quick-jumper":{height:he.itemSizeSM,lineHeight:(0,It.unit)(he.itemSizeSM),input:Object.assign(Object.assign({},(0,Te.x0)(he)),{width:he.paginationMiniQuickJumperInputWidth,height:he.controlHeightSM})}}}},vt=he=>{const{componentCls:me}=he;return{[`
&${me}-simple ${me}-prev,
&${me}-simple ${me}-next
`]:{height:he.itemSizeSM,lineHeight:(0,It.unit)(he.itemSizeSM),verticalAlign:"top",[`${me}-item-link`]:{height:he.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:he.colorBgTextHover},"&:active":{backgroundColor:he.colorBgTextActive},"&::after":{height:he.itemSizeSM,lineHeight:(0,It.unit)(he.itemSizeSM)}}},[`&${me}-simple ${me}-simple-pager`]:{display:"inline-block",height:he.itemSizeSM,marginInlineEnd:he.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,It.unit)(he.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:he.itemInputBg,border:`${(0,It.unit)(he.lineWidth)} ${he.lineType} ${he.colorBorder}`,borderRadius:he.borderRadius,outline:"none",transition:`border-color ${he.motionDurationMid}`,color:"inherit","&:hover":{borderColor:he.colorPrimary},"&:focus":{borderColor:he.colorPrimaryHover,boxShadow:`${(0,It.unit)(he.inputOutlineOffset)} 0 ${(0,It.unit)(he.controlOutlineWidth)} ${he.controlOutline}`},"&[disabled]":{color:he.colorTextDisabled,backgroundColor:he.colorBgContainerDisabled,borderColor:he.colorBorder,cursor:"not-allowed"}}}}},bt=he=>{const{componentCls:me}=he;return{[`${me}-jump-prev, ${me}-jump-next`]:{outline:0,[`${me}-item-container`]:{position:"relative",[`${me}-item-link-icon`]:{color:he.colorPrimary,fontSize:he.fontSizeSM,opacity:0,transition:`all ${he.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${me}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:he.colorTextDisabled,letterSpacing:he.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:he.paginationEllipsisTextIndent,opacity:1,transition:`all ${he.motionDurationMid}`}},"&:hover":{[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}}},[`
${me}-prev,
${me}-jump-prev,
${me}-jump-next
`]:{marginInlineEnd:he.marginXS},[`
${me}-prev,
${me}-next,
${me}-jump-prev,
${me}-jump-next
`]:{display:"inline-block",minWidth:he.itemSize,height:he.itemSize,color:he.colorText,fontFamily:he.fontFamily,lineHeight:(0,It.unit)(he.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:he.borderRadius,cursor:"pointer",transition:`all ${he.motionDurationMid}`},[`${me}-prev, ${me}-next`]:{outline:0,button:{color:he.colorText,cursor:"pointer",userSelect:"none"},[`${me}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:he.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,It.unit)(he.lineWidth)} ${he.lineType} transparent`,borderRadius:he.borderRadius,outline:"none",transition:`all ${he.motionDurationMid}`},[`&:hover ${me}-item-link`]:{backgroundColor:he.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:he.colorBgTextActive},[`&${me}-disabled:hover`]:{[`${me}-item-link`]:{backgroundColor:"transparent"}}},[`${me}-slash`]:{marginInlineEnd:he.paginationSlashMarginInlineEnd,marginInlineStart:he.paginationSlashMarginInlineStart},[`${me}-options`]:{display:"inline-block",marginInlineStart:he.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:he.controlHeight,marginInlineStart:he.marginXS,lineHeight:(0,It.unit)(he.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Te.ik)(he)),(0,ht.$U)(he,{borderColor:he.colorBorder,hoverBorderColor:he.colorPrimaryHover,activeBorderColor:he.colorPrimary,activeShadow:he.activeShadow})),{"&[disabled]":Object.assign({},(0,ht.Xy)(he)),width:he.calc(he.controlHeightLG).mul(1.25).equal(),height:he.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:he.marginXS,marginInlineEnd:he.marginXS})}}}},Ve=he=>{const{componentCls:me}=he;return{[`${me}-item`]:{display:"inline-block",minWidth:he.itemSize,height:he.itemSize,marginInlineEnd:he.marginXS,fontFamily:he.fontFamily,lineHeight:(0,It.unit)(he.calc(he.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:he.itemBg,border:`${(0,It.unit)(he.lineWidth)} ${he.lineType} transparent`,borderRadius:he.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,It.unit)(he.paginationItemPaddingInline)}`,color:he.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${me}-item-active)`]:{"&:hover":{transition:`all ${he.motionDurationMid}`,backgroundColor:he.colorBgTextHover},"&:active":{backgroundColor:he.colorBgTextActive}},"&-active":{fontWeight:he.fontWeightStrong,backgroundColor:he.itemActiveBg,borderColor:he.colorPrimary,a:{color:he.colorPrimary},"&:hover":{borderColor:he.colorPrimaryHover},"&:hover a":{color:he.colorPrimaryHover}}}}},Le=he=>{const{componentCls:me}=he;return{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(he)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${me}-total-text`]:{display:"inline-block",height:he.itemSize,marginInlineEnd:he.marginXS,lineHeight:(0,It.unit)(he.calc(he.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ve(he)),bt(he)),vt(he)),un(he)),tt(he)),{[`@media only screen and (max-width: ${he.screenLG}px)`]:{[`${me}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${he.screenSM}px)`]:{[`${me}-options`]:{display:"none"}}}),[`&${he.componentCls}-rtl`]:{direction:"rtl"}}},oe=he=>{const{componentCls:me}=he;return{[`${me}:not(${me}-disabled)`]:{[`${me}-item`]:Object.assign({},(0,St.Qy)(he)),[`${me}-jump-prev, ${me}-jump-next`]:{"&:focus-visible":Object.assign({[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}},(0,St.oN)(he))},[`${me}-prev, ${me}-next`]:{[`&:focus-visible ${me}-item-link`]:Object.assign({},(0,St.oN)(he))}}}},nt=he=>Object.assign({itemBg:he.colorBgContainer,itemSize:he.controlHeight,itemSizeSM:he.controlHeightSM,itemActiveBg:he.colorBgContainer,itemLinkBg:he.colorBgContainer,itemActiveColorDisabled:he.colorTextDisabled,itemActiveBgDisabled:he.controlItemBgActiveDisabled,itemInputBg:he.colorBgContainer,miniOptionsSizeChangerTop:0},(0,rt.T)(he)),Ue=he=>(0,Me.mergeToken)(he,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:he.calc(he.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:he.calc(he.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:he.calc(he.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:he.calc(he.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:he.marginSM,paginationSlashMarginInlineEnd:he.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e)(he));var K=(0,Xt.I$)("Pagination",he=>{const me=Ue(he);return[Le(me),oe(me)]},nt);const D=he=>{const{componentCls:me}=he;return{[`${me}${me}-bordered${me}-disabled:not(${me}-mini)`]:{"&, &:hover":{[`${me}-item-link`]:{borderColor:he.colorBorder}},"&:focus-visible":{[`${me}-item-link`]:{borderColor:he.colorBorder}},[`${me}-item, ${me}-item-link`]:{backgroundColor:he.colorBgContainerDisabled,borderColor:he.colorBorder,[`&:hover:not(${me}-item-active)`]:{backgroundColor:he.colorBgContainerDisabled,borderColor:he.colorBorder,a:{color:he.colorTextDisabled}},[`&${me}-item-active`]:{backgroundColor:he.itemActiveBgDisabled}},[`${me}-prev, ${me}-next`]:{"&:hover button":{backgroundColor:he.colorBgContainerDisabled,borderColor:he.colorBorder,color:he.colorTextDisabled},[`${me}-item-link`]:{backgroundColor:he.colorBgContainerDisabled,borderColor:he.colorBorder}}},[`${me}${me}-bordered:not(${me}-mini)`]:{[`${me}-prev, ${me}-next`]:{"&:hover button":{borderColor:he.colorPrimaryHover,backgroundColor:he.itemBg},[`${me}-item-link`]:{backgroundColor:he.itemLinkBg,borderColor:he.colorBorder},[`&:hover ${me}-item-link`]:{borderColor:he.colorPrimary,backgroundColor:he.itemBg,color:he.colorPrimary},[`&${me}-disabled`]:{[`${me}-item-link`]:{borderColor:he.colorBorder,color:he.colorTextDisabled}}},[`${me}-item`]:{backgroundColor:he.itemBg,border:`${(0,It.unit)(he.lineWidth)} ${he.lineType} ${he.colorBorder}`,[`&:hover:not(${me}-item-active)`]:{borderColor:he.colorPrimary,backgroundColor:he.itemBg,a:{color:he.colorPrimary}},"&-active":{borderColor:he.colorPrimary}}}}};var Se=(0,Xt.bk)(["Pagination","bordered"],he=>{const me=Ue(he);return[D(me)]},nt);function Ae(he){return(0,i.useMemo)(()=>typeof he=="boolean"?[he,{}]:he&&typeof he=="object"?[!0,he]:[void 0,void 0],[he])}var Ce=function(he,me){var Lt={};for(var Ct in he)Object.prototype.hasOwnProperty.call(he,Ct)&&me.indexOf(Ct)<0&&(Lt[Ct]=he[Ct]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ct=Object.getOwnPropertySymbols(he);Nt<Ct.length;Nt++)me.indexOf(Ct[Nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ct[Nt])&&(Lt[Ct[Nt]]=he[Ct[Nt]]);return Lt},Xe=he=>{const{align:me,prefixCls:Lt,selectPrefixCls:Ct,className:Nt,rootClassName:kt,style:pt,size:Vt,locale:Zt,responsive:Re,showSizeChanger:gt,selectComponentClass:E,pageSizeOptions:R}=he,at=Ce(he,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ae}=(0,I.Z)(Re),[,Y]=(0,dt.ZP)(),{getPrefixCls:Ft,direction:Ke,showSizeChanger:st,className:_t,style:xe}=(0,se.dj)("pagination"),_e=Ft("pagination",Lt),[et,Qe,z]=K(_e),Rt=(0,w.Z)(Vt),ge=Rt==="small"||!!(ae&&!Rt&&Re),[Ht]=(0,de.Z)("Pagination",te.Z),cn=Object.assign(Object.assign({},Ht),Zt),[mt,ne]=Ae(gt),[we,B]=Ae(st),xt=mt!=null?mt:we,lt=ne!=null?ne:B,ot=E||De.default,$t=i.useMemo(()=>R?R.map(Ne=>Number(Ne)):void 0,[R]),Bt=Ne=>{var Be;const{disabled:ue,size:Ie,onSizeChange:Fe,"aria-label":$e,className:ut,options:Gt}=Ne,{className:sn,onChange:je}=lt||{},ct=(Be=Gt.find(Dt=>String(Dt.value)===String(Ie)))===null||Be===void 0?void 0:Be.value;return i.createElement(ot,Object.assign({disabled:ue,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Dt=>Dt.parentNode,"aria-label":$e,options:Gt},lt,{value:ct,onChange:(Dt,qt)=>{Fe==null||Fe(Dt),je==null||je(Dt,qt)},size:ge?"small":"middle",className:C()(ut,sn)}))},zt=i.useMemo(()=>{const Ne=i.createElement("span",{className:`${_e}-item-ellipsis`},"\u2022\u2022\u2022"),Be=i.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},Ke==="rtl"?i.createElement(M.Z,null):i.createElement(y.Z,null)),ue=i.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},Ke==="rtl"?i.createElement(y.Z,null):i.createElement(M.Z,null)),Ie=i.createElement("a",{className:`${_e}-item-link`},i.createElement("div",{className:`${_e}-item-container`},Ke==="rtl"?i.createElement(l.Z,{className:`${_e}-item-link-icon`}):i.createElement(V,{className:`${_e}-item-link-icon`}),Ne)),Fe=i.createElement("a",{className:`${_e}-item-link`},i.createElement("div",{className:`${_e}-item-container`},Ke==="rtl"?i.createElement(V,{className:`${_e}-item-link-icon`}):i.createElement(l.Z,{className:`${_e}-item-link-icon`}),Ne));return{prevIcon:Be,nextIcon:ue,jumpPrevIcon:Ie,jumpNextIcon:Fe}},[Ke,_e]),re=Ft("select",Ct),ve=C()({[`${_e}-${me}`]:!!me,[`${_e}-mini`]:ge,[`${_e}-rtl`]:Ke==="rtl",[`${_e}-bordered`]:Y.wireframe},_t,Nt,kt,Qe,z),wt=Object.assign(Object.assign({},xe),pt);return et(i.createElement(i.Fragment,null,Y.wireframe&&i.createElement(Se,{prefixCls:_e}),i.createElement(q,Object.assign({},zt,at,{style:wt,prefixCls:_e,selectPrefixCls:re,className:ve,locale:cn,pageSizeOptions:$t,showSizeChanger:xt,sizeChangerRender:Bt}))))},yt=Xe},69106:function(zn,Pt,u){"use strict";u.d(Pt,{aV:function(){return l},t5:function(){return y}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(29125),Z=u(54500),g=u(48755),H=u(85074),V=function(b,C){var T={};for(var $ in b)Object.prototype.hasOwnProperty.call(b,$)&&C.indexOf($)<0&&(T[$]=b[$]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,$=Object.getOwnPropertySymbols(b);W<$.length;W++)C.indexOf($[W])<0&&Object.prototype.propertyIsEnumerable.call(b,$[W])&&(T[$[W]]=b[$[W]]);return T};const l=b=>{let{title:C,content:T,prefixCls:$}=b;return!C&&!T?null:i.createElement(i.Fragment,null,C&&i.createElement("div",{className:`${$}-title`},C),T&&i.createElement("div",{className:`${$}-inner-content`},T))},y=b=>{const{hashId:C,prefixCls:T,className:$,style:W,placement:X="top",title:G,content:L,children:Q}=b,P=(0,Z.Z)(G),A=(0,Z.Z)(L),ce=O()(C,T,`${T}-pure`,`${T}-placement-${X}`,$);return i.createElement("div",{className:ce,style:W},i.createElement("div",{className:`${T}-arrow`}),i.createElement(fe.G,Object.assign({},b,{className:C,prefixCls:T}),Q||i.createElement(l,{prefixCls:T,title:P,content:A})))},M=b=>{const{prefixCls:C,className:T}=b,$=V(b,["prefixCls","className"]),{getPrefixCls:W}=i.useContext(g.E_),X=W("popover",C),[G,L,Q]=(0,H.Z)(X);return G(i.createElement(y,Object.assign({},$,{prefixCls:X,hashId:L,className:O()(T,Q)})))};Pt.ZP=M},37639:function(zn,Pt,u){"use strict";var i=u(59301),U=u(92310),O=u.n(U),fe=u(18929),Z=u(10228),g=u(54500),H=u(86641),V=u(22703),l=u(25399),y=u(69106),M=u(48755),b=u(85074),C=function(W,X){var G={};for(var L in W)Object.prototype.hasOwnProperty.call(W,L)&&X.indexOf(L)<0&&(G[L]=W[L]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,L=Object.getOwnPropertySymbols(W);Q<L.length;Q++)X.indexOf(L[Q])<0&&Object.prototype.propertyIsEnumerable.call(W,L[Q])&&(G[L[Q]]=W[L[Q]]);return G};const $=i.forwardRef((W,X)=>{var G,L;const{prefixCls:Q,title:P,content:A,overlayClassName:ce,placement:Ee="top",trigger:pe="hover",children:ze,mouseEnterDelay:Je=.1,mouseLeaveDelay:Pe=.1,onOpenChange:Ze,overlayStyle:le={},styles:N,classNames:S}=W,q=C(W,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:te,className:se,style:w,classNames:I,styles:de}=(0,M.dj)("popover"),De=te("popover",Q),[dt,It,Te]=(0,b.Z)(De),rt=te(),ht=O()(ce,It,Te,se,I.root,S==null?void 0:S.root),St=O()(I.body,S==null?void 0:S.body),[Me,Xt]=(0,fe.Z)(!1,{value:(G=W.open)!==null&&G!==void 0?G:W.visible,defaultValue:(L=W.defaultOpen)!==null&&L!==void 0?L:W.defaultVisible}),tt=(Le,oe)=>{Xt(Le,!0),Ze==null||Ze(Le,oe)},un=Le=>{Le.keyCode===Z.Z.ESC&&tt(!1,Le)},vt=Le=>{tt(Le)},bt=(0,g.Z)(P),Ve=(0,g.Z)(A);return dt(i.createElement(l.Z,Object.assign({placement:Ee,trigger:pe,mouseEnterDelay:Je,mouseLeaveDelay:Pe},q,{prefixCls:De,classNames:{root:ht,body:St},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),w),le),N==null?void 0:N.root),body:Object.assign(Object.assign({},de.body),N==null?void 0:N.body)},ref:X,open:Me,onOpenChange:vt,overlay:bt||Ve?i.createElement(y.aV,{prefixCls:De,title:bt,content:Ve}):null,transitionName:(0,H.m)(rt,"zoom-big",q.transitionName),"data-popover-inject":!0}),(0,V.Tm)(ze,{onKeyDown:Le=>{var oe,nt;i.isValidElement(ze)&&((nt=ze==null?void 0:(oe=ze.props).onKeyDown)===null||nt===void 0||nt.call(oe,Le)),un(Le)}})))});$._InternalPanelDoNotUseOrYouWillBeFired=y.ZP,Pt.Z=$},85074:function(zn,Pt,u){"use strict";var i=u(63356),U=u(34925),O=u(37645),fe=u(36305),Z=u(34998),g=u(16931),H=u(51636);const V=M=>{const{componentCls:b,popoverColor:C,titleMinWidth:T,fontWeightStrong:$,innerPadding:W,boxShadowSecondary:X,colorTextHeading:G,borderRadiusLG:L,zIndexPopup:Q,titleMarginBottom:P,colorBgElevated:A,popoverBg:ce,titleBorderBottom:Ee,innerContentPadding:pe,titlePadding:ze}=M;return[{[b]:Object.assign(Object.assign({},(0,i.Wf)(M)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Q,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":A,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${b}-content`]:{position:"relative"},[`${b}-inner`]:{backgroundColor:ce,backgroundClip:"padding-box",borderRadius:L,boxShadow:X,padding:W},[`${b}-title`]:{minWidth:T,marginBottom:P,color:G,fontWeight:$,borderBottom:Ee,padding:ze},[`${b}-inner-content`]:{color:C,padding:pe}})},(0,O.ZP)(M,"var(--antd-arrow-background-color)"),{[`${b}-pure`]:{position:"relative",maxWidth:"none",margin:M.sizePopupArrow,display:"inline-block",[`${b}-content`]:{display:"inline-block"}}}]},l=M=>{const{componentCls:b}=M;return{[b]:Z.i.map(C=>{const T=M[`${C}6`];return{[`&${b}-${C}`]:{"--antd-arrow-background-color":T,[`${b}-inner`]:{backgroundColor:T},[`${b}-arrow`]:{background:"transparent"}}}})}},y=M=>{const{lineWidth:b,controlHeight:C,fontHeight:T,padding:$,wireframe:W,zIndexPopupBase:X,borderRadiusLG:G,marginXS:L,lineType:Q,colorSplit:P,paddingSM:A}=M,ce=C-T,Ee=ce/2,pe=ce/2-b,ze=$;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:X+30},(0,fe.w)(M)),(0,O.wZ)({contentRadius:G,limitVerticalRadius:!0})),{innerPadding:W?0:12,titleMarginBottom:W?0:L,titlePadding:W?`${Ee}px ${ze}px ${pe}px`:0,titleBorderBottom:W?`${b}px ${Q} ${P}`:"none",innerContentPadding:W?`${A}px ${ze}px`:0})};Pt.Z=(0,g.I$)("Popover",M=>{const{colorBgElevated:b,colorText:C}=M,T=(0,H.mergeToken)(M,{popoverBg:b,popoverColor:C});return[V(T),l(T),(0,U._y)(T,"zoom-big")]},y,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return Zt}});var i=u(59301),U=u(17835),O=u(29679),fe=u(40001),Z=u(19248),g=u(99267),H=u(92310),V=u.n(H),l=u(2738),y=u(48755),M=u(54476),b=u(33885),C=u(75931),T={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$=function(){var gt=(0,i.useRef)([]),E=(0,i.useRef)(null);return(0,i.useEffect)(function(){var R=Date.now(),at=!1;gt.current.forEach(function(ae){if(ae){at=!0;var Y=ae.style;Y.transitionDuration=".3s, .3s, .3s, .06s",E.current&&R-E.current<100&&(Y.transitionDuration="0s, 0s")}}),at&&(E.current=Date.now())}),gt.current},W=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],X=function(gt){var E=(0,b.Z)((0,b.Z)({},T),gt),R=E.className,at=E.percent,ae=E.prefixCls,Y=E.strokeColor,Ft=E.strokeLinecap,Ke=E.strokeWidth,st=E.style,_t=E.trailColor,xe=E.trailWidth,_e=E.transition,et=(0,C.Z)(E,W);delete et.gapPosition;var Qe=Array.isArray(at)?at:[at],z=Array.isArray(Y)?Y:[Y],Rt=$(),ge=Ke/2,Ht=100-Ke/2,cn="M ".concat(Ft==="round"?ge:0,",").concat(ge,`
L `).concat(Ft==="round"?Ht:100,",").concat(ge),mt="0 0 100 ".concat(Ke),ne=0;return i.createElement("svg",(0,M.Z)({className:V()("".concat(ae,"-line"),R),viewBox:mt,preserveAspectRatio:"none",style:st},et),i.createElement("path",{className:"".concat(ae,"-line-trail"),d:cn,strokeLinecap:Ft,stroke:_t,strokeWidth:xe||Ke,fillOpacity:"0"}),Qe.map(function(we,B){var xt=1;switch(Ft){case"round":xt=1-Ke/100;break;case"square":xt=1-Ke/2/100;break;default:xt=1;break}var lt={strokeDasharray:"".concat(we*xt,"px, 100px"),strokeDashoffset:"-".concat(ne,"px"),transition:_e||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ot=z[B]||z[z.length-1];return ne+=we,i.createElement("path",{key:B,className:"".concat(ae,"-line-path"),d:cn,strokeLinecap:Ft,stroke:ot,strokeWidth:Ke,fillOpacity:"0",ref:function(Bt){Rt[B]=Bt},style:lt})}))},G=X,L=u(76190),Q=u(42978),P=u(47273),A=0,ce=(0,P.Z)();function Ee(){var Re;return ce?(Re=A,A+=1):Re="TEST_OR_SSR",Re}var pe=function(Re){var gt=i.useState(),E=(0,Q.Z)(gt,2),R=E[0],at=E[1];return i.useEffect(function(){at("rc_progress_".concat(Ee()))},[]),Re||R},ze=function(gt){var E=gt.bg,R=gt.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:E}},R)};function Je(Re,gt){return Object.keys(Re).map(function(E){var R=parseFloat(E),at="".concat(Math.floor(R*gt),"%");return"".concat(Re[E]," ").concat(at)})}var Pe=i.forwardRef(function(Re,gt){var E=Re.prefixCls,R=Re.color,at=Re.gradientId,ae=Re.radius,Y=Re.style,Ft=Re.ptg,Ke=Re.strokeLinecap,st=Re.strokeWidth,_t=Re.size,xe=Re.gapDegree,_e=R&&(0,L.Z)(R)==="object",et=_e?"#FFF":void 0,Qe=_t/2,z=i.createElement("circle",{className:"".concat(E,"-circle-path"),r:ae,cx:Qe,cy:Qe,stroke:et,strokeLinecap:Ke,strokeWidth:st,opacity:Ft===0?0:1,style:Y,ref:gt});if(!_e)return z;var Rt="".concat(at,"-conic"),ge=xe?"".concat(180+xe/2,"deg"):"0deg",Ht=Je(R,(360-xe)/360),cn=Je(R,1),mt="conic-gradient(from ".concat(ge,", ").concat(Ht.join(", "),")"),ne="linear-gradient(to ".concat(xe?"bottom":"top",", ").concat(cn.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:Rt},z),i.createElement("foreignObject",{x:0,y:0,width:_t,height:_t,mask:"url(#".concat(Rt,")")},i.createElement(ze,{bg:ne},i.createElement(ze,{bg:mt}))))}),Ze=Pe,le=100,N=function(gt,E,R,at,ae,Y,Ft,Ke,st,_t){var xe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,_e=R/100*360*((360-Y)/360),et=Y===0?0:{bottom:0,top:180,left:90,right:-90}[Ft],Qe=(100-at)/100*E;st==="round"&&at!==100&&(Qe+=_t/2,Qe>=E&&(Qe=E-.01));var z=le/2;return{stroke:typeof Ke=="string"?Ke:void 0,strokeDasharray:"".concat(E,"px ").concat(gt),strokeDashoffset:Qe+xe,transform:"rotate(".concat(ae+_e+et,"deg)"),transformOrigin:"".concat(z,"px ").concat(z,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},S=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q(Re){var gt=Re!=null?Re:[];return Array.isArray(gt)?gt:[gt]}var te=function(gt){var E=(0,b.Z)((0,b.Z)({},T),gt),R=E.id,at=E.prefixCls,ae=E.steps,Y=E.strokeWidth,Ft=E.trailWidth,Ke=E.gapDegree,st=Ke===void 0?0:Ke,_t=E.gapPosition,xe=E.trailColor,_e=E.strokeLinecap,et=E.style,Qe=E.className,z=E.strokeColor,Rt=E.percent,ge=(0,C.Z)(E,S),Ht=le/2,cn=pe(R),mt="".concat(cn,"-gradient"),ne=Ht-Y/2,we=Math.PI*2*ne,B=st>0?90+st/2:-90,xt=we*((360-st)/360),lt=(0,L.Z)(ae)==="object"?ae:{count:ae,gap:2},ot=lt.count,$t=lt.gap,Bt=q(Rt),zt=q(z),re=zt.find(function(Fe){return Fe&&(0,L.Z)(Fe)==="object"}),ve=re&&(0,L.Z)(re)==="object",wt=ve?"butt":_e,Ne=N(we,xt,0,100,B,st,_t,xe,wt,Y),Be=$(),ue=function(){var $e=0;return Bt.map(function(ut,Gt){var sn=zt[Gt]||zt[zt.length-1],je=N(we,xt,$e,ut,B,st,_t,sn,wt,Y);return $e+=ut,i.createElement(Ze,{key:Gt,color:sn,ptg:ut,radius:ne,prefixCls:at,gradientId:mt,style:je,strokeLinecap:wt,strokeWidth:Y,gapDegree:st,ref:function(Dt){Be[Gt]=Dt},size:le})}).reverse()},Ie=function(){var $e=Math.round(ot*(Bt[0]/100)),ut=100/ot,Gt=0;return new Array(ot).fill(null).map(function(sn,je){var ct=je<=$e-1?zt[0]:xe,Dt=ct&&(0,L.Z)(ct)==="object"?"url(#".concat(mt,")"):void 0,qt=N(we,xt,Gt,ut,B,st,_t,ct,"butt",Y,$t);return Gt+=(xt-qt.strokeDashoffset+$t)*100/xt,i.createElement("circle",{key:je,className:"".concat(at,"-circle-path"),r:ne,cx:Ht,cy:Ht,stroke:Dt,strokeWidth:Y,opacity:1,style:qt,ref:function(Ge){Be[je]=Ge}})})};return i.createElement("svg",(0,M.Z)({className:V()("".concat(at,"-circle"),Qe),viewBox:"0 0 ".concat(le," ").concat(le),style:et,id:R,role:"presentation"},ge),!ot&&i.createElement("circle",{className:"".concat(at,"-circle-trail"),r:ne,cx:Ht,cy:Ht,stroke:xe,strokeLinecap:wt,strokeWidth:Ft||Y,style:Ne}),ot?Ie():ue())},se=te,w={Line:G,Circle:se},I=u(25399),de=u(68361);function De(Re){return!Re||Re<0?0:Re>100?100:Re}function dt(Re){let{success:gt,successPercent:E}=Re,R=E;return gt&&"progress"in gt&&(R=gt.progress),gt&&"percent"in gt&&(R=gt.percent),R}const It=Re=>{let{percent:gt,success:E,successPercent:R}=Re;const at=De(dt({success:E,successPercent:R}));return[at,De(De(gt)-at)]},Te=Re=>{let{success:gt={},strokeColor:E}=Re;const{strokeColor:R}=gt;return[R||de.presetPrimaryColors.green,E||null]},rt=(Re,gt,E)=>{var R,at,ae,Y;let Ft=-1,Ke=-1;if(gt==="step"){const st=E.steps,_t=E.strokeWidth;typeof Re=="string"||typeof Re=="undefined"?(Ft=Re==="small"?2:14,Ke=_t!=null?_t:8):typeof Re=="number"?[Ft,Ke]=[Re,Re]:[Ft=14,Ke=8]=Array.isArray(Re)?Re:[Re.width,Re.height],Ft*=st}else if(gt==="line"){const st=E==null?void 0:E.strokeWidth;typeof Re=="string"||typeof Re=="undefined"?Ke=st||(Re==="small"?6:8):typeof Re=="number"?[Ft,Ke]=[Re,Re]:[Ft=-1,Ke=8]=Array.isArray(Re)?Re:[Re.width,Re.height]}else(gt==="circle"||gt==="dashboard")&&(typeof Re=="string"||typeof Re=="undefined"?[Ft,Ke]=Re==="small"?[60,60]:[120,120]:typeof Re=="number"?[Ft,Ke]=[Re,Re]:Array.isArray(Re)&&(Ft=(at=(R=Re[0])!==null&&R!==void 0?R:Re[1])!==null&&at!==void 0?at:120,Ke=(Y=(ae=Re[0])!==null&&ae!==void 0?ae:Re[1])!==null&&Y!==void 0?Y:120));return[Ft,Ke]},ht=3,St=Re=>ht/Re*100;var Xt=Re=>{const{prefixCls:gt,trailColor:E=null,strokeLinecap:R="round",gapPosition:at,gapDegree:ae,width:Y=120,type:Ft,children:Ke,success:st,size:_t=Y,steps:xe}=Re,[_e,et]=rt(_t,"circle");let{strokeWidth:Qe}=Re;Qe===void 0&&(Qe=Math.max(St(_e),6));const z={width:_e,height:et,fontSize:_e*.15+6},Rt=i.useMemo(()=>{if(ae||ae===0)return ae;if(Ft==="dashboard")return 75},[ae,Ft]),ge=It(Re),Ht=at||Ft==="dashboard"&&"bottom"||void 0,cn=Object.prototype.toString.call(Re.strokeColor)==="[object Object]",mt=Te({success:st,strokeColor:Re.strokeColor}),ne=V()(`${gt}-inner`,{[`${gt}-circle-gradient`]:cn}),we=i.createElement(se,{steps:xe,percent:xe?ge[1]:ge,strokeWidth:Qe,trailWidth:Qe,strokeColor:xe?mt[1]:mt,strokeLinecap:R,trailColor:E,prefixCls:gt,gapDegree:Rt,gapPosition:Ht}),B=_e<=20,xt=i.createElement("div",{className:ne,style:z},we,!B&&Ke);return B?i.createElement(I.Z,{title:Ke},xt):xt},tt=u(36237),un=u(63356),vt=u(16931),bt=u(51636);const Ve="--progress-line-stroke-color",Le="--progress-percent",oe=Re=>{const gt=Re?"100%":"-100%";return new tt.Keyframes(`antProgress${Re?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${gt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=Re=>{const{componentCls:gt,iconCls:E}=Re;return{[gt]:Object.assign(Object.assign({},(0,un.Wf)(Re)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Re.fontSize},[`${gt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${gt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Re.remainingColor,borderRadius:Re.lineBorderRadius},[`${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Re.defaultColor}},[`${gt}-success-bg, ${gt}-bg`]:{position:"relative",background:Re.defaultColor,borderRadius:Re.lineBorderRadius,transition:`all ${Re.motionDurationSlow} ${Re.motionEaseInOutCirc}`},[`${gt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${gt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Re.marginXXS}},[`${gt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ve})`]},height:"100%",width:`calc(1 / var(${Le}) * 100%)`,display:"block"},[`&${gt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${gt}-text-inner`]:{color:Re.colorWhite,[`&${gt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${gt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Re.colorSuccess},[`${gt}-text`]:{display:"inline-block",marginInlineStart:Re.marginXS,color:Re.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[E]:{fontSize:Re.fontSize},[`&${gt}-text-outer`]:{width:"max-content"},[`&${gt}-text-outer${gt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Re.marginXS}},[`${gt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,tt.unit)(Re.paddingXXS)}`,[`&${gt}-text-start`]:{justifyContent:"start"},[`&${gt}-text-end`]:{justifyContent:"end"}},[`&${gt}-status-active`]:{[`${gt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Re.colorBgContainer,borderRadius:Re.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Re.progressActiveMotionDuration,animationTimingFunction:Re.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${gt}-rtl${gt}-status-active`]:{[`${gt}-bg::before`]:{animationName:oe(!0)}},[`&${gt}-status-exception`]:{[`${gt}-bg`]:{backgroundColor:Re.colorError},[`${gt}-text`]:{color:Re.colorError}},[`&${gt}-status-exception ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Re.colorError}},[`&${gt}-status-success`]:{[`${gt}-bg`]:{backgroundColor:Re.colorSuccess},[`${gt}-text`]:{color:Re.colorSuccess}},[`&${gt}-status-success ${gt}-inner:not(${gt}-circle-gradient)`]:{[`${gt}-circle-path`]:{stroke:Re.colorSuccess}}})}},Ue=Re=>{const{componentCls:gt,iconCls:E}=Re;return{[gt]:{[`${gt}-circle-trail`]:{stroke:Re.remainingColor},[`&${gt}-circle ${gt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${gt}-circle ${gt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Re.circleTextColor,fontSize:Re.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[E]:{fontSize:Re.circleIconFontSize}},[`${gt}-circle&-status-exception`]:{[`${gt}-text`]:{color:Re.colorError}},[`${gt}-circle&-status-success`]:{[`${gt}-text`]:{color:Re.colorSuccess}}},[`${gt}-inline-circle`]:{lineHeight:1,[`${gt}-inner`]:{verticalAlign:"bottom"}}}},K=Re=>{const{componentCls:gt}=Re;return{[gt]:{[`${gt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Re.progressStepMinWidth,marginInlineEnd:Re.progressStepMarginInlineEnd,backgroundColor:Re.remainingColor,transition:`all ${Re.motionDurationSlow}`,"&-active":{backgroundColor:Re.defaultColor}}}}}},D=Re=>{const{componentCls:gt,iconCls:E}=Re;return{[gt]:{[`${gt}-small&-line, ${gt}-small&-line ${gt}-text ${E}`]:{fontSize:Re.fontSizeSM}}}},Se=Re=>({circleTextColor:Re.colorText,defaultColor:Re.colorInfo,remainingColor:Re.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Re.fontSize/Re.fontSizeSM}em`});var Ae=(0,vt.I$)("Progress",Re=>{const gt=Re.calc(Re.marginXXS).div(2).equal(),E=(0,bt.mergeToken)(Re,{progressStepMarginInlineEnd:gt,progressStepMinWidth:gt,progressActiveMotionDuration:"2.4s"});return[nt(E),Ue(E),K(E),D(E)]},Se),Ce=function(Re,gt){var E={};for(var R in Re)Object.prototype.hasOwnProperty.call(Re,R)&&gt.indexOf(R)<0&&(E[R]=Re[R]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,R=Object.getOwnPropertySymbols(Re);at<R.length;at++)gt.indexOf(R[at])<0&&Object.prototype.propertyIsEnumerable.call(Re,R[at])&&(E[R[at]]=Re[R[at]]);return E};const ke=Re=>{let gt=[];return Object.keys(Re).forEach(E=>{const R=parseFloat(E.replace(/%/g,""));Number.isNaN(R)||gt.push({key:R,value:Re[E]})}),gt=gt.sort((E,R)=>E.key-R.key),gt.map(E=>{let{key:R,value:at}=E;return`${at} ${R}%`}).join(", ")},Xe=(Re,gt)=>{const{from:E=de.presetPrimaryColors.blue,to:R=de.presetPrimaryColors.blue,direction:at=gt==="rtl"?"to left":"to right"}=Re,ae=Ce(Re,["from","to","direction"]);if(Object.keys(ae).length!==0){const Ft=ke(ae),Ke=`linear-gradient(${at}, ${Ft})`;return{background:Ke,[Ve]:Ke}}const Y=`linear-gradient(${at}, ${E}, ${R})`;return{background:Y,[Ve]:Y}};var he=Re=>{const{prefixCls:gt,direction:E,percent:R,size:at,strokeWidth:ae,strokeColor:Y,strokeLinecap:Ft="round",children:Ke,trailColor:st=null,percentPosition:_t,success:xe}=Re,{align:_e,type:et}=_t,Qe=Y&&typeof Y!="string"?Xe(Y,E):{[Ve]:Y,background:Y},z=Ft==="square"||Ft==="butt"?0:void 0,Rt=at!=null?at:[-1,ae||(at==="small"?6:8)],[ge,Ht]=rt(Rt,"line",{strokeWidth:ae}),cn={backgroundColor:st||void 0,borderRadius:z},mt=Object.assign(Object.assign({width:`${De(R)}%`,height:Ht,borderRadius:z},Qe),{[Le]:De(R)/100}),ne=dt(Re),we={width:`${De(ne)}%`,height:Ht,borderRadius:z,backgroundColor:xe==null?void 0:xe.strokeColor},B={width:ge<0?"100%":ge},xt=i.createElement("div",{className:`${gt}-inner`,style:cn},i.createElement("div",{className:V()(`${gt}-bg`,`${gt}-bg-${et}`),style:mt},et==="inner"&&Ke),ne!==void 0&&i.createElement("div",{className:`${gt}-success-bg`,style:we})),lt=et==="outer"&&_e==="start",ot=et==="outer"&&_e==="end";return et==="outer"&&_e==="center"?i.createElement("div",{className:`${gt}-layout-bottom`},xt,Ke):i.createElement("div",{className:`${gt}-outer`,style:B},lt&&Ke,xt,ot&&Ke)},Lt=Re=>{const{size:gt,steps:E,rounding:R=Math.round,percent:at=0,strokeWidth:ae=8,strokeColor:Y,trailColor:Ft=null,prefixCls:Ke,children:st}=Re,_t=R(E*(at/100)),xe=gt==="small"?2:14,_e=gt!=null?gt:[xe,ae],[et,Qe]=rt(_e,"step",{steps:E,strokeWidth:ae}),z=et/E,Rt=Array.from({length:E});for(let ge=0;ge<E;ge++){const Ht=Array.isArray(Y)?Y[ge]:Y;Rt[ge]=i.createElement("div",{key:ge,className:V()(`${Ke}-steps-item`,{[`${Ke}-steps-item-active`]:ge<=_t-1}),style:{backgroundColor:ge<=_t-1?Ht:Ft,width:z,height:Qe}})}return i.createElement("div",{className:`${Ke}-steps-outer`},Rt,st)},Ct=function(Re,gt){var E={};for(var R in Re)Object.prototype.hasOwnProperty.call(Re,R)&&gt.indexOf(R)<0&&(E[R]=Re[R]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,R=Object.getOwnPropertySymbols(Re);at<R.length;at++)gt.indexOf(R[at])<0&&Object.prototype.propertyIsEnumerable.call(Re,R[at])&&(E[R[at]]=Re[R[at]]);return E};const Nt=null,kt=["normal","exception","active","success"];var Vt=i.forwardRef((Re,gt)=>{const{prefixCls:E,className:R,rootClassName:at,steps:ae,strokeColor:Y,percent:Ft=0,size:Ke="default",showInfo:st=!0,type:_t="line",status:xe,format:_e,style:et,percentPosition:Qe={}}=Re,z=Ct(Re,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:ge="outer"}=Qe,Ht=Array.isArray(Y)?Y[0]:Y,cn=typeof Y=="string"||Array.isArray(Y)?Y:void 0,mt=i.useMemo(()=>{if(Ht){const ue=typeof Ht=="string"?Ht:Object.values(Ht)[0];return new U.FastColor(ue).isLight()}return!1},[Y]),ne=i.useMemo(()=>{var ue,Ie;const Fe=dt(Re);return parseInt(Fe!==void 0?(ue=Fe!=null?Fe:0)===null||ue===void 0?void 0:ue.toString():(Ie=Ft!=null?Ft:0)===null||Ie===void 0?void 0:Ie.toString(),10)},[Ft,Re.success,Re.successPercent]),we=i.useMemo(()=>!kt.includes(xe)&&ne>=100?"success":xe||"normal",[xe,ne]),{getPrefixCls:B,direction:xt,progress:lt}=i.useContext(y.E_),ot=B("progress",E),[$t,Bt,zt]=Ae(ot),re=_t==="line",ve=re&&!ae,wt=i.useMemo(()=>{if(!st)return null;const ue=dt(Re);let Ie;const Fe=_e||(ut=>`${ut}%`),$e=re&&mt&&ge==="inner";return ge==="inner"||_e||we!=="exception"&&we!=="success"?Ie=Fe(De(Ft),De(ue)):we==="exception"?Ie=re?i.createElement(Z.Z,null):i.createElement(g.Z,null):we==="success"&&(Ie=re?i.createElement(O.Z,null):i.createElement(fe.Z,null)),i.createElement("span",{className:V()(`${ot}-text`,{[`${ot}-text-bright`]:$e,[`${ot}-text-${Rt}`]:ve,[`${ot}-text-${ge}`]:ve}),title:typeof Ie=="string"?Ie:void 0},Ie)},[st,Ft,ne,we,_t,ot,_e]);let Ne;_t==="line"?Ne=ae?i.createElement(Lt,Object.assign({},Re,{strokeColor:cn,prefixCls:ot,steps:typeof ae=="object"?ae.count:ae}),wt):i.createElement(he,Object.assign({},Re,{strokeColor:Ht,prefixCls:ot,direction:xt,percentPosition:{align:Rt,type:ge}}),wt):(_t==="circle"||_t==="dashboard")&&(Ne=i.createElement(Xt,Object.assign({},Re,{strokeColor:Ht,prefixCls:ot,progressStatus:we}),wt));const Be=V()(ot,`${ot}-status-${we}`,{[`${ot}-${_t==="dashboard"&&"circle"||_t}`]:_t!=="line",[`${ot}-inline-circle`]:_t==="circle"&&rt(Ke,"circle")[0]<=20,[`${ot}-line`]:ve,[`${ot}-line-align-${Rt}`]:ve,[`${ot}-line-position-${ge}`]:ve,[`${ot}-steps`]:ae,[`${ot}-show-info`]:st,[`${ot}-${Ke}`]:typeof Ke=="string",[`${ot}-rtl`]:xt==="rtl"},lt==null?void 0:lt.className,R,at,Bt,zt);return $t(i.createElement("div",Object.assign({ref:gt,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),et),className:Be,role:"progressbar","aria-valuenow":ne,"aria-valuemin":0,"aria-valuemax":100},(0,l.Z)(z,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ne))}),Zt=Vt},47889:function(zn,Pt,u){"use strict";u.d(Pt,{ZP:function(){return It}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(18929),Z=u(26112),g=u(48755),H=u(83397),V=u(31756);const l=i.createContext(null),y=l.Provider;var M=l;const b=i.createContext(null),C=b.Provider;var T=u(16632),$=u(8654),W=u(12919),X=u(63872),G=u(74632),L=u(2171),Q=u(56553),P=u(36237),A=u(63356),ce=u(16931),Ee=u(51636);const pe=Te=>{const{componentCls:rt,antCls:ht}=Te,St=`${rt}-group`;return{[St]:Object.assign(Object.assign({},(0,A.Wf)(Te)),{display:"inline-block",fontSize:0,[`&${St}-rtl`]:{direction:"rtl"},[`&${St}-block`]:{display:"flex"},[`${ht}-badge ${ht}-badge-count`]:{zIndex:1},[`> ${ht}-badge:not(:first-child) > ${ht}-button-wrapper`]:{borderInlineStart:"none"}})}},ze=Te=>{const{componentCls:rt,wrapperMarginInlineEnd:ht,colorPrimary:St,radioSize:Me,motionDurationSlow:Xt,motionDurationMid:tt,motionEaseInOutCirc:un,colorBgContainer:vt,colorBorder:bt,lineWidth:Ve,colorBgContainerDisabled:Le,colorTextDisabled:oe,paddingXS:nt,dotColorDisabled:Ue,lineType:K,radioColor:D,radioBgColor:Se,calc:Ae}=Te,Ce=`${rt}-inner`,Xe=Ae(Me).sub(Ae(4).mul(2)),yt=Ae(1).mul(Me).equal({unit:!0});return{[`${rt}-wrapper`]:Object.assign(Object.assign({},(0,A.Wf)(Te)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ht,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${rt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Te.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${rt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,P.unit)(Ve)} ${K} ${St}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[rt]:Object.assign(Object.assign({},(0,A.Wf)(Te)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${rt}-wrapper:hover &,
&:hover ${Ce}`]:{borderColor:St},[`${rt}-input:focus-visible + ${Ce}`]:Object.assign({},(0,A.oN)(Te)),[`${rt}:hover::after, ${rt}-wrapper:hover &::after`]:{visibility:"visible"},[`${rt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:yt,height:yt,marginBlockStart:Ae(1).mul(Me).div(-2).equal({unit:!0}),marginInlineStart:Ae(1).mul(Me).div(-2).equal({unit:!0}),backgroundColor:D,borderBlockStart:0,borderInlineStart:0,borderRadius:yt,transform:"scale(0)",opacity:0,transition:`all ${Xt} ${un}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:yt,height:yt,backgroundColor:vt,borderColor:bt,borderStyle:"solid",borderWidth:Ve,borderRadius:"50%",transition:`all ${tt}`},[`${rt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${rt}-checked`]:{[Ce]:{borderColor:St,backgroundColor:Se,"&::after":{transform:`scale(${Te.calc(Te.dotSize).div(Me).equal()})`,opacity:1,transition:`all ${Xt} ${un}`}}},[`${rt}-disabled`]:{cursor:"not-allowed",[Ce]:{backgroundColor:Le,borderColor:bt,cursor:"not-allowed","&::after":{backgroundColor:Ue}},[`${rt}-input`]:{cursor:"not-allowed"},[`${rt}-disabled + span`]:{color:oe,cursor:"not-allowed"},[`&${rt}-checked`]:{[Ce]:{"&::after":{transform:`scale(${Ae(Xe).div(Me).equal()})`}}}},[`span${rt} + *`]:{paddingInlineStart:nt,paddingInlineEnd:nt}})}},Je=Te=>{const{buttonColor:rt,controlHeight:ht,componentCls:St,lineWidth:Me,lineType:Xt,colorBorder:tt,motionDurationSlow:un,motionDurationMid:vt,buttonPaddingInline:bt,fontSize:Ve,buttonBg:Le,fontSizeLG:oe,controlHeightLG:nt,controlHeightSM:Ue,paddingXS:K,borderRadius:D,borderRadiusSM:Se,borderRadiusLG:Ae,buttonCheckedBg:Ce,buttonSolidCheckedColor:ke,colorTextDisabled:Xe,colorBgContainerDisabled:yt,buttonCheckedBgDisabled:he,buttonCheckedColorDisabled:me,colorPrimary:Lt,colorPrimaryHover:Ct,colorPrimaryActive:Nt,buttonSolidCheckedBg:kt,buttonSolidCheckedHoverBg:pt,buttonSolidCheckedActiveBg:Vt,calc:Zt}=Te;return{[`${St}-button-wrapper`]:{position:"relative",display:"inline-block",height:ht,margin:0,paddingInline:bt,paddingBlock:0,color:rt,fontSize:Ve,lineHeight:(0,P.unit)(Zt(ht).sub(Zt(Me).mul(2)).equal()),background:Le,border:`${(0,P.unit)(Me)} ${Xt} ${tt}`,borderBlockStartWidth:Zt(Me).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Me,cursor:"pointer",transition:[`color ${vt}`,`background ${vt}`,`box-shadow ${vt}`].join(","),a:{color:rt},[`> ${St}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Zt(Me).mul(-1).equal(),insetInlineStart:Zt(Me).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Me,paddingInline:0,backgroundColor:tt,transition:`background-color ${un}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,P.unit)(Me)} ${Xt} ${tt}`,borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D},"&:first-child:last-child":{borderRadius:D},[`${St}-group-large &`]:{height:nt,fontSize:oe,lineHeight:(0,P.unit)(Zt(nt).sub(Zt(Me).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ae,borderEndStartRadius:Ae},"&:last-child":{borderStartEndRadius:Ae,borderEndEndRadius:Ae}},[`${St}-group-small &`]:{height:Ue,paddingInline:Zt(K).sub(Me).equal(),paddingBlock:0,lineHeight:(0,P.unit)(Zt(Ue).sub(Zt(Me).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Se,borderEndStartRadius:Se},"&:last-child":{borderStartEndRadius:Se,borderEndEndRadius:Se}},"&:hover":{position:"relative",color:Lt},"&:has(:focus-visible)":Object.assign({},(0,A.oN)(Te)),[`${St}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${St}-button-wrapper-disabled)`]:{zIndex:1,color:Lt,background:Ce,borderColor:Lt,"&::before":{backgroundColor:Lt},"&:first-child":{borderColor:Lt},"&:hover":{color:Ct,borderColor:Ct,"&::before":{backgroundColor:Ct}},"&:active":{color:Nt,borderColor:Nt,"&::before":{backgroundColor:Nt}}},[`${St}-group-solid &-checked:not(${St}-button-wrapper-disabled)`]:{color:ke,background:kt,borderColor:kt,"&:hover":{color:ke,background:pt,borderColor:pt},"&:active":{color:ke,background:Vt,borderColor:Vt}},"&-disabled":{color:Xe,backgroundColor:yt,borderColor:tt,cursor:"not-allowed","&:first-child, &:hover":{color:Xe,backgroundColor:yt,borderColor:tt}},[`&-disabled${St}-button-wrapper-checked`]:{color:me,backgroundColor:he,borderColor:tt,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Pe=Te=>{const{wireframe:rt,padding:ht,marginXS:St,lineWidth:Me,fontSizeLG:Xt,colorText:tt,colorBgContainer:un,colorTextDisabled:vt,controlItemBgActiveDisabled:bt,colorTextLightSolid:Ve,colorPrimary:Le,colorPrimaryHover:oe,colorPrimaryActive:nt,colorWhite:Ue}=Te,K=4,D=Xt,Se=rt?D-K*2:D-(K+Me)*2;return{radioSize:D,dotSize:Se,dotColorDisabled:vt,buttonSolidCheckedColor:Ve,buttonSolidCheckedBg:Le,buttonSolidCheckedHoverBg:oe,buttonSolidCheckedActiveBg:nt,buttonBg:un,buttonCheckedBg:un,buttonColor:tt,buttonCheckedBgDisabled:bt,buttonCheckedColorDisabled:vt,buttonPaddingInline:ht-Me,wrapperMarginInlineEnd:St,radioColor:rt?Le:Ue,radioBgColor:rt?un:Le}};var Ze=(0,ce.I$)("Radio",Te=>{const{controlOutline:rt,controlOutlineWidth:ht}=Te,St=`0 0 0 ${(0,P.unit)(ht)} ${rt}`,Me=St,Xt=(0,Ee.mergeToken)(Te,{radioFocusShadow:St,radioButtonFocusShadow:Me});return[pe(Xt),ze(Xt),Je(Xt)]},Pe,{unitless:{radioSize:!0,dotSize:!0}}),le=function(Te,rt){var ht={};for(var St in Te)Object.prototype.hasOwnProperty.call(Te,St)&&rt.indexOf(St)<0&&(ht[St]=Te[St]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,St=Object.getOwnPropertySymbols(Te);Me<St.length;Me++)rt.indexOf(St[Me])<0&&Object.prototype.propertyIsEnumerable.call(Te,St[Me])&&(ht[St[Me]]=Te[St[Me]]);return ht};const N=(Te,rt)=>{var ht,St;const Me=i.useContext(M),Xt=i.useContext(b),{getPrefixCls:tt,direction:un,radio:vt}=i.useContext(g.E_),bt=i.useRef(null),Ve=(0,$.sQ)(rt,bt),{isFormItemInput:Le}=i.useContext(Q.aM),oe=Re=>{var gt,E;(gt=Te.onChange)===null||gt===void 0||gt.call(Te,Re),(E=Me==null?void 0:Me.onChange)===null||E===void 0||E.call(Me,Re)},{prefixCls:nt,className:Ue,rootClassName:K,children:D,style:Se,title:Ae}=Te,Ce=le(Te,["prefixCls","className","rootClassName","children","style","title"]),ke=tt("radio",nt),Xe=((Me==null?void 0:Me.optionType)||Xt)==="button",yt=Xe?`${ke}-button`:ke,he=(0,H.Z)(ke),[me,Lt,Ct]=Ze(ke,he),Nt=Object.assign({},Ce),kt=i.useContext(L.Z);Me&&(Nt.name=Me.name,Nt.onChange=oe,Nt.checked=Te.value===Me.value,Nt.disabled=(ht=Nt.disabled)!==null&&ht!==void 0?ht:Me.disabled),Nt.disabled=(St=Nt.disabled)!==null&&St!==void 0?St:kt;const pt=O()(`${yt}-wrapper`,{[`${yt}-wrapper-checked`]:Nt.checked,[`${yt}-wrapper-disabled`]:Nt.disabled,[`${yt}-wrapper-rtl`]:un==="rtl",[`${yt}-wrapper-in-form-item`]:Le,[`${yt}-wrapper-block`]:!!(Me!=null&&Me.block)},vt==null?void 0:vt.className,Ue,K,Lt,Ct,he),[Vt,Zt]=(0,G.Z)(Nt.onClick);return me(i.createElement(W.Z,{component:"Radio",disabled:Nt.disabled},i.createElement("label",{className:pt,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Se),onMouseEnter:Te.onMouseEnter,onMouseLeave:Te.onMouseLeave,title:Ae,onClick:Vt},i.createElement(T.Z,Object.assign({},Nt,{className:O()(Nt.className,{[X.A]:!Xe}),type:"radio",prefixCls:yt,ref:Ve,onClick:Zt})),D!==void 0?i.createElement("span",{className:`${yt}-label`},D):null)))};var q=i.forwardRef(N),te=u(80402);const se=i.forwardRef((Te,rt)=>{const{getPrefixCls:ht,direction:St}=i.useContext(g.E_),Me=(0,te.Z)(),{prefixCls:Xt,className:tt,rootClassName:un,options:vt,buttonStyle:bt="outline",disabled:Ve,children:Le,size:oe,style:nt,id:Ue,optionType:K,name:D=Me,defaultValue:Se,value:Ae,block:Ce=!1,onChange:ke,onMouseEnter:Xe,onMouseLeave:yt,onFocus:he,onBlur:me}=Te,[Lt,Ct]=(0,fe.Z)(Se,{value:Ae}),Nt=i.useCallback(Y=>{const Ft=Lt,Ke=Y.target.value;"value"in Te||Ct(Ke),Ke!==Ft&&(ke==null||ke(Y))},[Lt,Ct,ke]),kt=ht("radio",Xt),pt=`${kt}-group`,Vt=(0,H.Z)(kt),[Zt,Re,gt]=Ze(kt,Vt);let E=Le;vt&&vt.length>0&&(E=vt.map(Y=>typeof Y=="string"||typeof Y=="number"?i.createElement(q,{key:Y.toString(),prefixCls:kt,disabled:Ve,value:Y,checked:Lt===Y},Y):i.createElement(q,{key:`radio-group-value-options-${Y.value}`,prefixCls:kt,disabled:Y.disabled||Ve,value:Y.value,checked:Lt===Y.value,title:Y.title,style:Y.style,id:Y.id,required:Y.required},Y.label)));const R=(0,V.Z)(oe),at=O()(pt,`${pt}-${bt}`,{[`${pt}-${R}`]:R,[`${pt}-rtl`]:St==="rtl",[`${pt}-block`]:Ce},tt,un,Re,gt,Vt),ae=i.useMemo(()=>({onChange:Nt,value:Lt,disabled:Ve,name:D,optionType:K,block:Ce}),[Nt,Lt,Ve,D,K,Ce]);return Zt(i.createElement("div",Object.assign({},(0,Z.Z)(Te,{aria:!0,data:!0}),{className:at,style:nt,onMouseEnter:Xe,onMouseLeave:yt,onFocus:he,onBlur:me,id:Ue,ref:rt}),i.createElement(y,{value:ae},E)))});var w=i.memo(se),I=function(Te,rt){var ht={};for(var St in Te)Object.prototype.hasOwnProperty.call(Te,St)&&rt.indexOf(St)<0&&(ht[St]=Te[St]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,St=Object.getOwnPropertySymbols(Te);Me<St.length;Me++)rt.indexOf(St[Me])<0&&Object.prototype.propertyIsEnumerable.call(Te,St[Me])&&(ht[St[Me]]=Te[St[Me]]);return ht};const de=(Te,rt)=>{const{getPrefixCls:ht}=i.useContext(g.E_),{prefixCls:St}=Te,Me=I(Te,["prefixCls"]),Xt=ht("radio",St);return i.createElement(C,{value:"button"},i.createElement(q,Object.assign({prefixCls:Xt},Me,{type:"radio",ref:rt})))};var De=i.forwardRef(de);const dt=q;dt.Button=De,dt.Group=w,dt.__ANT_RADIO=!0;var It=dt},63139:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return It}});var i=u(59301),U=u(54476),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},fe=O,Z=u(7657),g=function(rt,ht){return i.createElement(Z.Z,(0,U.Z)({},rt,{ref:ht,icon:fe}))},H=i.forwardRef(g),V=H,l=u(92310),y=u.n(l),M=u(20068),b=u(42978),C=u(75931),T=u(18929),$=u(10228),W=u(26112);function X(Te,rt){var ht=Te.disabled,St=Te.prefixCls,Me=Te.character,Xt=Te.characterRender,tt=Te.index,un=Te.count,vt=Te.value,bt=Te.allowHalf,Ve=Te.focused,Le=Te.onHover,oe=Te.onClick,nt=function(Xe){Le(Xe,tt)},Ue=function(Xe){oe(Xe,tt)},K=function(Xe){Xe.keyCode===$.Z.ENTER&&oe(Xe,tt)},D=tt+1,Se=new Set([St]);vt===0&&tt===0&&Ve?Se.add("".concat(St,"-focused")):bt&&vt+.5>=D&&vt<D?(Se.add("".concat(St,"-half")),Se.add("".concat(St,"-active")),Ve&&Se.add("".concat(St,"-focused"))):(D<=vt?Se.add("".concat(St,"-full")):Se.add("".concat(St,"-zero")),D===vt&&Ve&&Se.add("".concat(St,"-focused")));var Ae=typeof Me=="function"?Me(Te):Me,Ce=i.createElement("li",{className:y()(Array.from(Se)),ref:rt},i.createElement("div",{onClick:ht?null:Ue,onKeyDown:ht?null:K,onMouseMove:ht?null:nt,role:"radio","aria-checked":vt>tt?"true":"false","aria-posinset":tt+1,"aria-setsize":un,tabIndex:ht?-1:0},i.createElement("div",{className:"".concat(St,"-first")},Ae),i.createElement("div",{className:"".concat(St,"-second")},Ae)));return Xt&&(Ce=Xt(Ce,Te)),Ce}var G=i.forwardRef(X);function L(){var Te=i.useRef({});function rt(St){return Te.current[St]}function ht(St){return function(Me){Te.current[St]=Me}}return[rt,ht]}function Q(Te){var rt=Te.pageXOffset,ht="scrollLeft";if(typeof rt!="number"){var St=Te.document;rt=St.documentElement[ht],typeof rt!="number"&&(rt=St.body[ht])}return rt}function P(Te){var rt,ht,St=Te.ownerDocument,Me=St.body,Xt=St&&St.documentElement,tt=Te.getBoundingClientRect();return rt=tt.left,ht=tt.top,rt-=Xt.clientLeft||Me.clientLeft||0,ht-=Xt.clientTop||Me.clientTop||0,{left:rt,top:ht}}function A(Te){var rt=P(Te),ht=Te.ownerDocument,St=ht.defaultView||ht.parentWindow;return rt.left+=Q(St),rt.left}var ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ee(Te,rt){var ht=Te.prefixCls,St=ht===void 0?"rc-rate":ht,Me=Te.className,Xt=Te.defaultValue,tt=Te.value,un=Te.count,vt=un===void 0?5:un,bt=Te.allowHalf,Ve=bt===void 0?!1:bt,Le=Te.allowClear,oe=Le===void 0?!0:Le,nt=Te.keyboard,Ue=nt===void 0?!0:nt,K=Te.character,D=K===void 0?"\u2605":K,Se=Te.characterRender,Ae=Te.disabled,Ce=Te.direction,ke=Ce===void 0?"ltr":Ce,Xe=Te.tabIndex,yt=Xe===void 0?0:Xe,he=Te.autoFocus,me=Te.onHoverChange,Lt=Te.onChange,Ct=Te.onFocus,Nt=Te.onBlur,kt=Te.onKeyDown,pt=Te.onMouseLeave,Vt=(0,C.Z)(Te,ce),Zt=L(),Re=(0,b.Z)(Zt,2),gt=Re[0],E=Re[1],R=i.useRef(null),at=function(){if(!Ae){var wt;(wt=R.current)===null||wt===void 0||wt.focus()}};i.useImperativeHandle(rt,function(){return{focus:at,blur:function(){if(!Ae){var wt;(wt=R.current)===null||wt===void 0||wt.blur()}}}});var ae=(0,T.Z)(Xt||0,{value:tt}),Y=(0,b.Z)(ae,2),Ft=Y[0],Ke=Y[1],st=(0,T.Z)(null),_t=(0,b.Z)(st,2),xe=_t[0],_e=_t[1],et=function(wt,Ne){var Be=ke==="rtl",ue=wt+1;if(Ve){var Ie=gt(wt),Fe=A(Ie),$e=Ie.clientWidth;(Be&&Ne-Fe>$e/2||!Be&&Ne-Fe<$e/2)&&(ue-=.5)}return ue},Qe=function(wt){Ke(wt),Lt==null||Lt(wt)},z=i.useState(!1),Rt=(0,b.Z)(z,2),ge=Rt[0],Ht=Rt[1],cn=function(){Ht(!0),Ct==null||Ct()},mt=function(){Ht(!1),Nt==null||Nt()},ne=i.useState(null),we=(0,b.Z)(ne,2),B=we[0],xt=we[1],lt=function(wt,Ne){var Be=et(Ne,wt.pageX);Be!==xe&&(xt(Be),_e(null)),me==null||me(Be)},ot=function(wt){Ae||(xt(null),_e(null),me==null||me(void 0)),wt&&(pt==null||pt(wt))},$t=function(wt,Ne){var Be=et(Ne,wt.pageX),ue=!1;oe&&(ue=Be===Ft),ot(),Qe(ue?0:Be),_e(ue?Be:null)},Bt=function(wt){var Ne=wt.keyCode,Be=ke==="rtl",ue=Ve?.5:1;Ue&&(Ne===$.Z.RIGHT&&Ft<vt&&!Be?(Qe(Ft+ue),wt.preventDefault()):Ne===$.Z.LEFT&&Ft>0&&!Be||Ne===$.Z.RIGHT&&Ft>0&&Be?(Qe(Ft-ue),wt.preventDefault()):Ne===$.Z.LEFT&&Ft<vt&&Be&&(Qe(Ft+ue),wt.preventDefault())),kt==null||kt(wt)};i.useEffect(function(){he&&!Ae&&at()},[]);var zt=new Array(vt).fill(0).map(function(ve,wt){return i.createElement(G,{ref:E(wt),index:wt,count:vt,disabled:Ae,prefixCls:"".concat(St,"-star"),allowHalf:Ve,value:B===null?Ft:B,onClick:$t,onHover:lt,key:ve||wt,character:D,characterRender:Se,focused:ge})}),re=y()(St,Me,(0,M.Z)((0,M.Z)({},"".concat(St,"-disabled"),Ae),"".concat(St,"-rtl"),ke==="rtl"));return i.createElement("ul",(0,U.Z)({className:re,onMouseLeave:ot,tabIndex:Ae?-1:yt,onFocus:Ae?null:cn,onBlur:Ae?null:mt,onKeyDown:Ae?null:Bt,ref:R},(0,W.Z)(Vt,{aria:!0,data:!0,attr:!0})),zt)}var pe=i.forwardRef(Ee),ze=pe,Je=u(48755),Pe=u(25399),Ze=u(36237),le=u(63356),N=u(16931),S=u(51636);const q=Te=>{const{componentCls:rt}=Te;return{[`${rt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Te.marginXS},"> div":{transition:`all ${Te.motionDurationMid}, outline 0s`,"&:hover":{transform:Te.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ze.unit)(Te.lineWidth)} dashed ${Te.starColor}`,transform:Te.starHoverScale}},"&-first, &-second":{color:Te.starBg,transition:`all ${Te.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${rt}-star-first, &-half ${rt}-star-second`]:{opacity:1},[`&-half ${rt}-star-first, &-full ${rt}-star-second`]:{color:"inherit"}}}},te=Te=>({[`&-rtl${Te.componentCls}`]:{direction:"rtl"}}),se=Te=>{const{componentCls:rt}=Te;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(Te)),{display:"inline-block",margin:0,padding:0,color:Te.starColor,fontSize:Te.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${rt} ${rt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),q(Te)),te(Te))}},w=Te=>({starColor:Te.yellow6,starSize:Te.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Te.colorFillContent});var I=(0,N.I$)("Rate",Te=>{const rt=(0,S.mergeToken)(Te,{});return[se(rt)]},w),de=u(2171),De=function(Te,rt){var ht={};for(var St in Te)Object.prototype.hasOwnProperty.call(Te,St)&&rt.indexOf(St)<0&&(ht[St]=Te[St]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,St=Object.getOwnPropertySymbols(Te);Me<St.length;Me++)rt.indexOf(St[Me])<0&&Object.prototype.propertyIsEnumerable.call(Te,St[Me])&&(ht[St[Me]]=Te[St[Me]]);return ht},It=i.forwardRef((Te,rt)=>{const{prefixCls:ht,className:St,rootClassName:Me,style:Xt,tooltips:tt,character:un=i.createElement(V,null),disabled:vt}=Te,bt=De(Te,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Ve=(Xe,yt)=>{let{index:he}=yt;return tt?i.createElement(Pe.Z,{title:tt[he]},Xe):Xe},{getPrefixCls:Le,direction:oe,rate:nt}=i.useContext(Je.E_),Ue=Le("rate",ht),[K,D,Se]=I(Ue),Ae=Object.assign(Object.assign({},nt==null?void 0:nt.style),Xt),Ce=i.useContext(de.Z),ke=vt!=null?vt:Ce;return K(i.createElement(ze,Object.assign({ref:rt,character:un,characterRender:Ve,disabled:ke},bt,{className:y()(St,Me,D,Se,nt==null?void 0:nt.className),style:Ae,prefixCls:Ue,direction:oe})))})},82326:function(zn,Pt,u){"use strict";var i=u(59301),U=u(92310),O=u.n(U),fe=u(37463),Z=u(2738),g=u(75030),H=u(86641),V=u(45915),l=u(82855),y=u(48755),M=u(38406),b=u(2171),C=u(83397),T=u(31756),$=u(56553),W=u(24971),X=u(70045),G=u(57700),L=u(1722),Q=u(90376),P=u(68525),A=u(90005),ce=function(Pe,Ze){var le={};for(var N in Pe)Object.prototype.hasOwnProperty.call(Pe,N)&&Ze.indexOf(N)<0&&(le[N]=Pe[N]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,N=Object.getOwnPropertySymbols(Pe);S<N.length;S++)Ze.indexOf(N[S])<0&&Object.prototype.propertyIsEnumerable.call(Pe,N[S])&&(le[N[S]]=Pe[N[S]]);return le};const Ee="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Pe,Ze)=>{var le;const{prefixCls:N,bordered:S,className:q,rootClassName:te,getPopupContainer:se,popupClassName:w,dropdownClassName:I,listHeight:de=256,placement:De,listItemHeight:dt,size:It,disabled:Te,notFoundContent:rt,status:ht,builtinPlacements:St,dropdownMatchSelectWidth:Me,popupMatchSelectWidth:Xt,direction:tt,style:un,allowClear:vt,variant:bt,dropdownStyle:Ve,transitionName:Le,tagRender:oe,maxCount:nt,prefix:Ue}=Pe,K=ce(Pe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:Se,renderEmpty:Ae,direction:Ce,virtual:ke,popupMatchSelectWidth:Xe,popupOverflow:yt}=i.useContext(y.E_),he=(0,y.dj)("select"),[,me]=(0,G.ZP)(),Lt=dt!=null?dt:me==null?void 0:me.controlHeight,Ct=Se("select",N),Nt=Se(),kt=tt!=null?tt:Ce,{compactSize:pt,compactItemClassnames:Vt}=(0,X.ri)(Ct,kt),[Zt,Re]=(0,W.Z)("select",bt,S),gt=(0,C.Z)(Ct),[E,R,at]=(0,Q.Z)(Ct,gt),ae=i.useMemo(()=>{const{mode:Bt}=Pe;if(Bt!=="combobox")return Bt===Ee?"combobox":Bt},[Pe.mode]),Y=ae==="multiple"||ae==="tags",Ft=(0,A.Z)(Pe.suffixIcon,Pe.showArrow),Ke=(le=Xt!=null?Xt:Me)!==null&&le!==void 0?le:Xe,{status:st,hasFeedback:_t,isFormItemInput:xe,feedbackIcon:_e}=i.useContext($.aM),et=(0,l.F)(st,ht);let Qe;rt!==void 0?Qe=rt:ae==="combobox"?Qe=null:Qe=(Ae==null?void 0:Ae("Select"))||i.createElement(M.Z,{componentName:"Select"});const{suffixIcon:z,itemIcon:Rt,removeIcon:ge,clearIcon:Ht}=(0,P.Z)(Object.assign(Object.assign({},K),{multiple:Y,hasFeedback:_t,feedbackIcon:_e,showSuffixIcon:Ft,prefixCls:Ct,componentName:"Select"})),cn=vt===!0?{clearIcon:Ht}:vt,mt=(0,Z.Z)(K,["suffixIcon","itemIcon"]),ne=O()(w||I,{[`${Ct}-dropdown-${kt}`]:kt==="rtl"},te,at,gt,R),we=(0,T.Z)(Bt=>{var zt;return(zt=It!=null?It:pt)!==null&&zt!==void 0?zt:Bt}),B=i.useContext(b.Z),xt=Te!=null?Te:B,lt=O()({[`${Ct}-lg`]:we==="large",[`${Ct}-sm`]:we==="small",[`${Ct}-rtl`]:kt==="rtl",[`${Ct}-${Zt}`]:Re,[`${Ct}-in-form-item`]:xe},(0,l.Z)(Ct,et,_t),Vt,he.className,q,te,at,gt,R),ot=i.useMemo(()=>De!==void 0?De:kt==="rtl"?"bottomRight":"bottomLeft",[De,kt]),[$t]=(0,g.Cn)("SelectLike",Ve==null?void 0:Ve.zIndex);return E(i.createElement(fe.ZP,Object.assign({ref:Ze,virtual:ke,showSearch:he.showSearch},mt,{style:Object.assign(Object.assign({},he.style),un),dropdownMatchSelectWidth:Ke,transitionName:(0,H.m)(Nt,"slide-up",Le),builtinPlacements:(0,L.Z)(St,yt),listHeight:de,listItemHeight:Lt,mode:ae,prefixCls:Ct,placement:ot,direction:kt,prefix:Ue,suffixIcon:z,menuItemSelectedIcon:Rt,removeIcon:ge,allowClear:cn,notFoundContent:Qe,className:lt,getPopupContainer:se||D,dropdownClassName:ne,disabled:xt,dropdownStyle:Object.assign(Object.assign({},Ve),{zIndex:$t}),maxCount:Y?nt:void 0,tagRender:Y?oe:void 0})))},ze=i.forwardRef(pe),Je=(0,V.Z)(ze,"dropdownAlign");ze.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ee,ze.Option=fe.Wx,ze.OptGroup=fe.Xo,ze._InternalPanelDoNotUseOrYouWillBeFired=Je,Pt.default=ze},1722:function(zn,Pt){"use strict";const u=U=>{const fe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:U==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},fe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},fe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},fe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},fe),{points:["br","tr"],offset:[0,-4]})}};function i(U,O){return U||u(O)}Pt.Z=i},90376:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return N}});var i=u(63356),U=u(56119),O=u(16931),fe=u(51636),Z=u(46e3),g=u(93873);const H=S=>{const{optionHeight:q,optionFontSize:te,optionLineHeight:se,optionPadding:w}=S;return{position:"relative",display:"block",minHeight:q,padding:w,color:S.colorText,fontWeight:"normal",fontSize:te,lineHeight:se,boxSizing:"border-box"}};var l=S=>{const{antCls:q,componentCls:te}=S,se=`${te}-item`,w=`&${q}-slide-up-enter${q}-slide-up-enter-active`,I=`&${q}-slide-up-appear${q}-slide-up-appear-active`,de=`&${q}-slide-up-leave${q}-slide-up-leave-active`,De=`${te}-dropdown-placement-`,dt=`${se}-option-selected`;return[{[`${te}-dropdown`]:Object.assign(Object.assign({},(0,i.Wf)(S)),{position:"absolute",top:-9999,zIndex:S.zIndexPopup,boxSizing:"border-box",padding:S.paddingXXS,overflow:"hidden",fontSize:S.fontSize,fontVariant:"initial",backgroundColor:S.colorBgElevated,borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary,[`
${w}${De}bottomLeft,
${I}${De}bottomLeft
`]:{animationName:Z.fJ},[`
${w}${De}topLeft,
${I}${De}topLeft,
${w}${De}topRight,
${I}${De}topRight
`]:{animationName:Z.Qt},[`${de}${De}bottomLeft`]:{animationName:Z.Uw},[`
${de}${De}topLeft,
${de}${De}topRight
`]:{animationName:Z.ly},"&-hidden":{display:"none"},[se]:Object.assign(Object.assign({},H(S)),{cursor:"pointer",transition:`background ${S.motionDurationSlow} ease`,borderRadius:S.borderRadiusSM,"&-group":{color:S.colorTextDescription,fontSize:S.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},i.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${se}-option-disabled)`]:{backgroundColor:S.optionActiveBg},[`&-selected:not(${se}-option-disabled)`]:{color:S.optionSelectedColor,fontWeight:S.optionSelectedFontWeight,backgroundColor:S.optionSelectedBg,[`${se}-option-state`]:{color:S.colorPrimary}},"&-disabled":{[`&${se}-option-selected`]:{backgroundColor:S.colorBgContainerDisabled},color:S.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:S.calc(S.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},H(S)),{color:S.colorTextDisabled})}),[`${dt}:has(+ ${dt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${dt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Z.oN)(S,"slide-up"),(0,Z.oN)(S,"slide-down"),(0,g.Fm)(S,"move-up"),(0,g.Fm)(S,"move-down")]},y=u(26743),M=u(36237);function b(S,q){const{componentCls:te,inputPaddingHorizontalBase:se,borderRadius:w}=S,I=S.calc(S.controlHeight).sub(S.calc(S.lineWidth).mul(2)).equal(),de=q?`${te}-${q}`:"";return{[`${te}-single${de}`]:{fontSize:S.fontSize,height:S.controlHeight,[`${te}-selector`]:Object.assign(Object.assign({},(0,i.Wf)(S,!0)),{display:"flex",borderRadius:w,flex:"1 1 auto",[`${te}-selection-wrap:after`]:{lineHeight:(0,M.unit)(I)},[`${te}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${te}-selection-item,
${te}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,M.unit)(I),transition:`all ${S.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${te}-selection-item:empty:after`,`${te}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${te}-show-arrow ${te}-selection-item,
&${te}-show-arrow ${te}-selection-search,
&${te}-show-arrow ${te}-selection-placeholder
`]:{paddingInlineEnd:S.showArrowPaddingInlineEnd},[`&${te}-open ${te}-selection-item`]:{color:S.colorTextPlaceholder},[`&:not(${te}-customize-input)`]:{[`${te}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,M.unit)(se)}`,[`${te}-selection-search-input`]:{height:I,fontSize:S.fontSize},"&:after":{lineHeight:(0,M.unit)(I)}}},[`&${te}-customize-input`]:{[`${te}-selector`]:{"&:after":{display:"none"},[`${te}-selection-search`]:{position:"static",width:"100%"},[`${te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,M.unit)(se)}`,"&:after":{display:"none"}}}}}}}function C(S){const{componentCls:q}=S,te=S.calc(S.controlPaddingHorizontalSM).sub(S.lineWidth).equal();return[b(S),b((0,fe.mergeToken)(S,{controlHeight:S.controlHeightSM,borderRadius:S.borderRadiusSM}),"sm"),{[`${q}-single${q}-sm`]:{[`&:not(${q}-customize-input)`]:{[`${q}-selector`]:{padding:`0 ${(0,M.unit)(te)}`},[`&${q}-show-arrow ${q}-selection-search`]:{insetInlineEnd:S.calc(te).add(S.calc(S.fontSize).mul(1.5)).equal()},[`
&${q}-show-arrow ${q}-selection-item,
&${q}-show-arrow ${q}-selection-placeholder
`]:{paddingInlineEnd:S.calc(S.fontSize).mul(1.5).equal()}}}},b((0,fe.mergeToken)(S,{controlHeight:S.singleItemHeightLG,fontSize:S.fontSizeLG,borderRadius:S.borderRadiusLG}),"lg")]}const T=S=>{const{fontSize:q,lineHeight:te,lineWidth:se,controlHeight:w,controlHeightSM:I,controlHeightLG:de,paddingXXS:De,controlPaddingHorizontal:dt,zIndexPopupBase:It,colorText:Te,fontWeightStrong:rt,controlItemBgActive:ht,controlItemBgHover:St,colorBgContainer:Me,colorFillSecondary:Xt,colorBgContainerDisabled:tt,colorTextDisabled:un,colorPrimaryHover:vt,colorPrimary:bt,controlOutline:Ve}=S,Le=De*2,oe=se*2,nt=Math.min(w-Le,w-oe),Ue=Math.min(I-Le,I-oe),K=Math.min(de-Le,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(De/2),zIndexPopup:It+50,optionSelectedColor:Te,optionSelectedFontWeight:rt,optionSelectedBg:ht,optionActiveBg:St,optionPadding:`${(w-q*te)/2}px ${dt}px`,optionFontSize:q,optionLineHeight:te,optionHeight:w,selectorBg:Me,clearBg:Me,singleItemHeightLG:de,multipleItemBg:Xt,multipleItemBorderColor:"transparent",multipleItemHeight:nt,multipleItemHeightSM:Ue,multipleItemHeightLG:K,multipleSelectorBgDisabled:tt,multipleItemColorDisabled:un,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(S.fontSize*1.25),hoverBorderColor:vt,activeBorderColor:bt,activeOutlineColor:Ve,selectAffixPadding:De}},$=(S,q)=>{const{componentCls:te,antCls:se,controlOutlineWidth:w}=S;return{[`&:not(${te}-customize-input) ${te}-selector`]:{border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} ${q.borderColor}`,background:S.selectorBg},[`&:not(${te}-disabled):not(${te}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${te}-selector`]:{borderColor:q.hoverBorderHover},[`${te}-focused& ${te}-selector`]:{borderColor:q.activeBorderColor,boxShadow:`0 0 0 ${(0,M.unit)(w)} ${q.activeOutlineColor}`,outline:0},[`${te}-prefix`]:{color:q.color}}}},W=(S,q)=>({[`&${S.componentCls}-status-${q.status}`]:Object.assign({},$(S,q))}),X=S=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$(S,{borderColor:S.colorBorder,hoverBorderHover:S.hoverBorderColor,activeBorderColor:S.activeBorderColor,activeOutlineColor:S.activeOutlineColor,color:S.colorText})),W(S,{status:"error",borderColor:S.colorError,hoverBorderHover:S.colorErrorHover,activeBorderColor:S.colorError,activeOutlineColor:S.colorErrorOutline,color:S.colorError})),W(S,{status:"warning",borderColor:S.colorWarning,hoverBorderHover:S.colorWarningHover,activeBorderColor:S.colorWarning,activeOutlineColor:S.colorWarningOutline,color:S.colorWarning})),{[`&${S.componentCls}-disabled`]:{[`&:not(${S.componentCls}-customize-input) ${S.componentCls}-selector`]:{background:S.colorBgContainerDisabled,color:S.colorTextDisabled}},[`&${S.componentCls}-multiple ${S.componentCls}-selection-item`]:{background:S.multipleItemBg,border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} ${S.multipleItemBorderColor}`}})}),G=(S,q)=>{const{componentCls:te,antCls:se}=S;return{[`&:not(${te}-customize-input) ${te}-selector`]:{background:q.bg,border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} transparent`,color:q.color},[`&:not(${te}-disabled):not(${te}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${te}-selector`]:{background:q.hoverBg},[`${te}-focused& ${te}-selector`]:{background:S.selectorBg,borderColor:q.activeBorderColor,outline:0}}}},L=(S,q)=>({[`&${S.componentCls}-status-${q.status}`]:Object.assign({},G(S,q))}),Q=S=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},G(S,{bg:S.colorFillTertiary,hoverBg:S.colorFillSecondary,activeBorderColor:S.activeBorderColor,color:S.colorText})),L(S,{status:"error",bg:S.colorErrorBg,hoverBg:S.colorErrorBgHover,activeBorderColor:S.colorError,color:S.colorError})),L(S,{status:"warning",bg:S.colorWarningBg,hoverBg:S.colorWarningBgHover,activeBorderColor:S.colorWarning,color:S.colorWarning})),{[`&${S.componentCls}-disabled`]:{[`&:not(${S.componentCls}-customize-input) ${S.componentCls}-selector`]:{borderColor:S.colorBorder,background:S.colorBgContainerDisabled,color:S.colorTextDisabled}},[`&${S.componentCls}-multiple ${S.componentCls}-selection-item`]:{background:S.colorBgContainer,border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} ${S.colorSplit}`}})}),P=S=>({"&-borderless":{[`${S.componentCls}-selector`]:{background:"transparent",border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} transparent`},[`&${S.componentCls}-disabled`]:{[`&:not(${S.componentCls}-customize-input) ${S.componentCls}-selector`]:{color:S.colorTextDisabled}},[`&${S.componentCls}-multiple ${S.componentCls}-selection-item`]:{background:S.multipleItemBg,border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} ${S.multipleItemBorderColor}`},[`&${S.componentCls}-status-error`]:{[`${S.componentCls}-prefix, ${S.componentCls}-selection-item`]:{color:S.colorError}},[`&${S.componentCls}-status-warning`]:{[`${S.componentCls}-prefix, ${S.componentCls}-selection-item`]:{color:S.colorWarning}}}}),A=(S,q)=>{const{componentCls:te,antCls:se}=S;return{[`&:not(${te}-customize-input) ${te}-selector`]:{borderWidth:`0 0 ${(0,M.unit)(S.lineWidth)} 0`,borderStyle:`none none ${S.lineType} none`,borderColor:q.borderColor,background:S.selectorBg,borderRadius:0},[`&:not(${te}-disabled):not(${te}-customize-input):not(${se}-pagination-size-changer)`]:{[`&:hover ${te}-selector`]:{borderColor:q.hoverBorderHover},[`${te}-focused& ${te}-selector`]:{borderColor:q.activeBorderColor,outline:0},[`${te}-prefix`]:{color:q.color}}}},ce=(S,q)=>({[`&${S.componentCls}-status-${q.status}`]:Object.assign({},A(S,q))}),Ee=S=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},A(S,{borderColor:S.colorBorder,hoverBorderHover:S.hoverBorderColor,activeBorderColor:S.activeBorderColor,activeOutlineColor:S.activeOutlineColor,color:S.colorText})),ce(S,{status:"error",borderColor:S.colorError,hoverBorderHover:S.colorErrorHover,activeBorderColor:S.colorError,activeOutlineColor:S.colorErrorOutline,color:S.colorError})),ce(S,{status:"warning",borderColor:S.colorWarning,hoverBorderHover:S.colorWarningHover,activeBorderColor:S.colorWarning,activeOutlineColor:S.colorWarningOutline,color:S.colorWarning})),{[`&${S.componentCls}-disabled`]:{[`&:not(${S.componentCls}-customize-input) ${S.componentCls}-selector`]:{color:S.colorTextDisabled}},[`&${S.componentCls}-multiple ${S.componentCls}-selection-item`]:{background:S.multipleItemBg,border:`${(0,M.unit)(S.lineWidth)} ${S.lineType} ${S.multipleItemBorderColor}`}})});var ze=S=>({[S.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},X(S)),Q(S)),P(S)),Ee(S))});const Je=S=>{const{componentCls:q}=S;return{position:"relative",transition:`all ${S.motionDurationMid} ${S.motionEaseInOut}`,input:{cursor:"pointer"},[`${q}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${q}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Pe=S=>{const{componentCls:q}=S;return{[`${q}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ze=S=>{const{antCls:q,componentCls:te,inputPaddingHorizontalBase:se,iconCls:w}=S;return{[te]:Object.assign(Object.assign({},(0,i.Wf)(S)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${te}-customize-input) ${te}-selector`]:Object.assign(Object.assign({},Je(S)),Pe(S)),[`${te}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},i.vS),{[`> ${q}-typography`]:{display:"inline"}}),[`${te}-selection-placeholder`]:Object.assign(Object.assign({},i.vS),{flex:1,color:S.colorTextPlaceholder,pointerEvents:"none"}),[`${te}-arrow`]:Object.assign(Object.assign({},(0,i.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:S.fontSizeIcon,marginTop:S.calc(S.fontSizeIcon).mul(-1).div(2).equal(),color:S.colorTextQuaternary,fontSize:S.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${S.motionDurationSlow} ease`,[w]:{verticalAlign:"top",transition:`transform ${S.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${te}-suffix)`]:{pointerEvents:"auto"}},[`${te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${te}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${te}-prefix`]:{flex:"none",marginInlineEnd:S.selectAffixPadding},[`${te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,zIndex:1,display:"inline-block",width:S.fontSizeIcon,height:S.fontSizeIcon,marginTop:S.calc(S.fontSizeIcon).mul(-1).div(2).equal(),color:S.colorTextQuaternary,fontSize:S.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${S.motionDurationMid} ease, opacity ${S.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:S.colorTextTertiary}},[`&:hover ${te}-clear`]:{opacity:1,background:S.colorBgBase,borderRadius:"50%"}}),[`${te}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${te}-has-feedback`]:{[`${te}-clear`]:{insetInlineEnd:S.calc(se).add(S.fontSize).add(S.paddingXS).equal()}}}}}},le=S=>{const{componentCls:q}=S;return[{[q]:{[`&${q}-in-form-item`]:{width:"100%"}}},Ze(S),C(S),(0,y.ZP)(S),l(S),{[`${q}-rtl`]:{direction:"rtl"}},(0,U.c)(S,{borderElCls:`${q}-selector`,focusElCls:`${q}-focused`})]};var N=(0,O.I$)("Select",(S,q)=>{let{rootPrefixCls:te}=q;const se=(0,fe.mergeToken)(S,{rootPrefixCls:te,inputPaddingHorizontalBase:S.calc(S.paddingSM).sub(1).equal(),multipleSelectItemHeight:S.multipleItemHeight,selectHeight:S.controlHeight});return[le(se),ze(se)]},T,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(zn,Pt,u){"use strict";u.d(Pt,{_z:function(){return g},gp:function(){return fe}});var i=u(36237),U=u(63356),O=u(51636);const fe=y=>{const{multipleSelectItemHeight:M,paddingXXS:b,lineWidth:C,INTERNAL_FIXED_ITEM_MARGIN:T}=y,$=y.max(y.calc(b).sub(C).equal(),0),W=y.max(y.calc($).sub(T).equal(),0);return{basePadding:$,containerPadding:W,itemHeight:(0,i.unit)(M),itemLineHeight:(0,i.unit)(y.calc(M).sub(y.calc(y.lineWidth).mul(2)).equal())}},Z=y=>{const{multipleSelectItemHeight:M,selectHeight:b,lineWidth:C}=y;return y.calc(b).sub(M).div(2).sub(C).equal()},g=y=>{const{componentCls:M,iconCls:b,borderRadiusSM:C,motionDurationSlow:T,paddingXS:$,multipleItemColorDisabled:W,multipleItemBorderColorDisabled:X,colorIcon:G,colorIconHover:L,INTERNAL_FIXED_ITEM_MARGIN:Q}=y;return{[`${M}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${M}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Q,borderRadius:C,cursor:"default",transition:`font-size ${T}, line-height ${T}, height ${T}`,marginInlineEnd:y.calc(Q).mul(2).equal(),paddingInlineStart:$,paddingInlineEnd:y.calc($).div(2).equal(),[`${M}-disabled&`]:{color:W,borderColor:X,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:y.calc($).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,U.Ro)()),{display:"inline-flex",alignItems:"center",color:G,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${b}`]:{verticalAlign:"-0.2em"},"&:hover":{color:L}})}}}},H=(y,M)=>{const{componentCls:b,INTERNAL_FIXED_ITEM_MARGIN:C}=y,T=`${b}-selection-overflow`,$=y.multipleSelectItemHeight,W=Z(y),X=M?`${b}-${M}`:"",G=fe(y);return{[`${b}-multiple${X}`]:Object.assign(Object.assign({},g(y)),{[`${b}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:G.basePadding,paddingBlock:G.containerPadding,borderRadius:y.borderRadius,[`${b}-disabled&`]:{background:y.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,i.unit)(C)} 0`,lineHeight:(0,i.unit)($),visibility:"hidden",content:'"\\a0"'}},[`${b}-selection-item`]:{height:G.itemHeight,lineHeight:(0,i.unit)(G.itemLineHeight)},[`${b}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,i.unit)($),marginBlock:C}},[`${b}-prefix`]:{marginInlineStart:y.calc(y.inputPaddingHorizontalBase).sub(G.basePadding).equal()},[`${T}-item + ${T}-item,
${b}-prefix + ${b}-selection-wrap
`]:{[`${b}-selection-search`]:{marginInlineStart:0},[`${b}-selection-placeholder`]:{insetInlineStart:0}},[`${T}-item-suffix`]:{minHeight:G.itemHeight,marginBlock:C},[`${b}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:y.calc(y.inputPaddingHorizontalBase).sub(W).equal(),"\n &-input,\n &-mirror\n ":{height:$,fontFamily:y.fontFamily,lineHeight:(0,i.unit)($),transition:`all ${y.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${b}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:y.calc(y.inputPaddingHorizontalBase).sub(G.basePadding).equal(),insetInlineEnd:y.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${y.motionDurationSlow}`}})}};function V(y,M){const{componentCls:b}=y,C=M?`${b}-${M}`:"",T={[`${b}-multiple${C}`]:{fontSize:y.fontSize,[`${b}-selector`]:{[`${b}-show-search&`]:{cursor:"text"}},[`
&${b}-show-arrow ${b}-selector,
&${b}-allow-clear ${b}-selector
`]:{paddingInlineEnd:y.calc(y.fontSizeIcon).add(y.controlPaddingHorizontal).equal()}}};return[H(y,M),T]}const l=y=>{const{componentCls:M}=y,b=(0,O.mergeToken)(y,{selectHeight:y.controlHeightSM,multipleSelectItemHeight:y.multipleItemHeightSM,borderRadius:y.borderRadiusSM,borderRadiusSM:y.borderRadiusXS}),C=(0,O.mergeToken)(y,{fontSize:y.fontSizeLG,selectHeight:y.controlHeightLG,multipleSelectItemHeight:y.multipleItemHeightLG,borderRadius:y.borderRadiusLG,borderRadiusSM:y.borderRadius});return[V(y),V(b,"sm"),{[`${M}-multiple${M}-sm`]:{[`${M}-selection-placeholder`]:{insetInline:y.calc(y.controlPaddingHorizontalSM).sub(y.lineWidth).equal()},[`${M}-selection-search`]:{marginInlineStart:2}}},V(C,"lg")]};Pt.ZP=l},68525:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});var i=u(59301),U=u(40001),O=u(19248),fe=u(99267),Z=u(84105),g=u(58617),H=u(47472);function V(l){let{suffixIcon:y,clearIcon:M,menuItemSelectedIcon:b,removeIcon:C,loading:T,multiple:$,hasFeedback:W,prefixCls:X,showSuffixIcon:G,feedbackIcon:L,showArrow:Q,componentName:P}=l;const A=M!=null?M:i.createElement(O.Z,null),ce=Je=>y===null&&!W&&!Q?null:i.createElement(i.Fragment,null,G!==!1&&Je,W&&L);let Ee=null;if(y!==void 0)Ee=ce(y);else if(T)Ee=ce(i.createElement(g.Z,{spin:!0}));else{const Je=`${X}-suffix`;Ee=Pe=>{let{open:Ze,showSearch:le}=Pe;return ce(Ze&&le?i.createElement(H.Z,{className:Je}):i.createElement(Z.Z,{className:Je}))}}let pe=null;b!==void 0?pe=b:$?pe=i.createElement(U.Z,null):pe=null;let ze=null;return C!==void 0?ze=C:ze=i.createElement(fe.Z,null),{clearIcon:A,suffixIcon:Ee,itemIcon:pe,removeIcon:ze}}},90005:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return i}});function i(U,O){return O!==void 0?O:U!==null}},44104:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return W}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(11592),Z=u(99402),g=u(48755),H=u(70045);const V=i.createContext({latestIndex:0}),l=V.Provider;var M=X=>{let{className:G,index:L,children:Q,split:P,style:A}=X;const{latestIndex:ce}=i.useContext(V);return Q==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:G,style:A},Q),L<ce&&P&&i.createElement("span",{className:`${G}-split`},P))},b=u(31547),C=function(X,G){var L={};for(var Q in X)Object.prototype.hasOwnProperty.call(X,Q)&&G.indexOf(Q)<0&&(L[Q]=X[Q]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Q=Object.getOwnPropertySymbols(X);P<Q.length;P++)G.indexOf(Q[P])<0&&Object.prototype.propertyIsEnumerable.call(X,Q[P])&&(L[Q[P]]=X[Q[P]]);return L};const $=i.forwardRef((X,G)=>{var L;const{getPrefixCls:Q,direction:P,size:A,className:ce,style:Ee,classNames:pe,styles:ze}=(0,g.dj)("space"),{size:Je=A!=null?A:"small",align:Pe,className:Ze,rootClassName:le,children:N,direction:S="horizontal",prefixCls:q,split:te,style:se,wrap:w=!1,classNames:I,styles:de}=X,De=C(X,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[dt,It]=Array.isArray(Je)?Je:[Je,Je],Te=(0,Z.n)(It),rt=(0,Z.n)(dt),ht=(0,Z.T)(It),St=(0,Z.T)(dt),Me=(0,fe.Z)(N,{keepEmpty:!0}),Xt=Pe===void 0&&S==="horizontal"?"center":Pe,tt=Q("space",q),[un,vt,bt]=(0,b.Z)(tt),Ve=O()(tt,ce,vt,`${tt}-${S}`,{[`${tt}-rtl`]:P==="rtl",[`${tt}-align-${Xt}`]:Xt,[`${tt}-gap-row-${It}`]:Te,[`${tt}-gap-col-${dt}`]:rt},Ze,le,bt),Le=O()(`${tt}-item`,(L=I==null?void 0:I.item)!==null&&L!==void 0?L:pe.item);let oe=0;const nt=Me.map((D,Se)=>{var Ae;D!=null&&(oe=Se);const Ce=(D==null?void 0:D.key)||`${Le}-${Se}`;return i.createElement(M,{className:Le,key:Ce,index:Se,split:te,style:(Ae=de==null?void 0:de.item)!==null&&Ae!==void 0?Ae:ze.item},D)}),Ue=i.useMemo(()=>({latestIndex:oe}),[oe]);if(Me.length===0)return null;const K={};return w&&(K.flexWrap="wrap"),!rt&&St&&(K.columnGap=dt),!Te&&ht&&(K.rowGap=It),un(i.createElement("div",Object.assign({ref:G,className:Ve,style:Object.assign(Object.assign(Object.assign({},K),Ee),se)},De),i.createElement(l,{value:Ue},nt)))});$.Compact=H.ZP;var W=$},11938:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return Pe}});var i=u(59301),U=u(40192),O=u(22703),fe=u(92310),Z=u.n(fe),g=u(26112),H=u(48755),V=u(458),y=Ze=>{const{value:le,formatter:N,precision:S,decimalSeparator:q,groupSeparator:te="",prefixCls:se}=Ze;let w;if(typeof N=="function")w=N(le);else{const I=String(le),de=I.match(/^(-?)(\d*)(\.(\d+))?$/);if(!de||I==="-")w=I;else{const De=de[1];let dt=de[2]||"0",It=de[4]||"";dt=dt.replace(/\B(?=(\d{3})+(?!\d))/g,te),typeof S=="number"&&(It=It.padEnd(S,"0").slice(0,S>0?S:0)),It&&(It=`${q}${It}`),w=[i.createElement("span",{key:"int",className:`${se}-content-value-int`},De,dt),It&&i.createElement("span",{key:"decimal",className:`${se}-content-value-decimal`},It)]}}return i.createElement("span",{className:`${se}-content-value`},w)},M=u(63356),b=u(16931),C=u(51636);const T=Ze=>{const{componentCls:le,marginXXS:N,padding:S,colorTextDescription:q,titleFontSize:te,colorTextHeading:se,contentFontSize:w,fontFamily:I}=Ze;return{[le]:Object.assign(Object.assign({},(0,M.Wf)(Ze)),{[`${le}-title`]:{marginBottom:N,color:q,fontSize:te},[`${le}-skeleton`]:{paddingTop:S},[`${le}-content`]:{color:se,fontSize:w,fontFamily:I,[`${le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${le}-content-prefix, ${le}-content-suffix`]:{display:"inline-block"},[`${le}-content-prefix`]:{marginInlineEnd:N},[`${le}-content-suffix`]:{marginInlineStart:N}}})}},$=Ze=>{const{fontSizeHeading3:le,fontSize:N}=Ze;return{titleFontSize:N,contentFontSize:le}};var W=(0,b.I$)("Statistic",Ze=>{const le=(0,C.mergeToken)(Ze,{});return[T(le)]},$),X=function(Ze,le){var N={};for(var S in Ze)Object.prototype.hasOwnProperty.call(Ze,S)&&le.indexOf(S)<0&&(N[S]=Ze[S]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,S=Object.getOwnPropertySymbols(Ze);q<S.length;q++)le.indexOf(S[q])<0&&Object.prototype.propertyIsEnumerable.call(Ze,S[q])&&(N[S[q]]=Ze[S[q]]);return N},L=Ze=>{const{prefixCls:le,className:N,rootClassName:S,style:q,valueStyle:te,value:se=0,title:w,valueRender:I,prefix:de,suffix:De,loading:dt=!1,formatter:It,precision:Te,decimalSeparator:rt=".",groupSeparator:ht=",",onMouseEnter:St,onMouseLeave:Me}=Ze,Xt=X(Ze,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:tt,direction:un,className:vt,style:bt}=(0,H.dj)("statistic"),Ve=tt("statistic",le),[Le,oe,nt]=W(Ve),Ue=i.createElement(y,{decimalSeparator:rt,groupSeparator:ht,prefixCls:Ve,formatter:It,precision:Te,value:se}),K=Z()(Ve,{[`${Ve}-rtl`]:un==="rtl"},vt,N,S,oe,nt),D=(0,g.Z)(Xt,{aria:!0,data:!0});return Le(i.createElement("div",Object.assign({},D,{className:K,style:Object.assign(Object.assign({},bt),q),onMouseEnter:St,onMouseLeave:Me}),w&&i.createElement("div",{className:`${Ve}-title`},w),i.createElement(V.Z,{paragraph:!1,loading:dt,className:`${Ve}-skeleton`},i.createElement("div",{style:te,className:`${Ve}-content`},de&&i.createElement("span",{className:`${Ve}-content-prefix`},de),I?I(Ue):Ue,De&&i.createElement("span",{className:`${Ve}-content-suffix`},De)))))};const Q=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function P(Ze,le){let N=Ze;const S=/\[[^\]]*]/g,q=(le.match(S)||[]).map(I=>I.slice(1,-1)),te=le.replace(S,"[]"),se=Q.reduce((I,de)=>{let[De,dt]=de;if(I.includes(De)){const It=Math.floor(N/dt);return N-=It*dt,I.replace(new RegExp(`${De}+`,"g"),Te=>{const rt=Te.length;return It.toString().padStart(rt,"0")})}return I},te);let w=0;return se.replace(S,()=>{const I=q[w];return w+=1,I})}function A(Ze,le){const{format:N=""}=le,S=new Date(Ze).getTime(),q=Date.now(),te=Math.max(S-q,0);return P(te,N)}var ce=function(Ze,le){var N={};for(var S in Ze)Object.prototype.hasOwnProperty.call(Ze,S)&&le.indexOf(S)<0&&(N[S]=Ze[S]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,S=Object.getOwnPropertySymbols(Ze);q<S.length;q++)le.indexOf(S[q])<0&&Object.prototype.propertyIsEnumerable.call(Ze,S[q])&&(N[S[q]]=Ze[S[q]]);return N};const Ee=1e3/30;function pe(Ze){return new Date(Ze).getTime()}const ze=Ze=>{const{value:le,format:N="HH:mm:ss",onChange:S,onFinish:q}=Ze,te=ce(Ze,["value","format","onChange","onFinish"]),se=(0,U.Z)(),w=i.useRef(null),I=()=>{q==null||q(),w.current&&(clearInterval(w.current),w.current=null)},de=()=>{const It=pe(le);It>=Date.now()&&(w.current=setInterval(()=>{se(),S==null||S(It-Date.now()),It<Date.now()&&I()},Ee))};i.useEffect(()=>(de(),()=>{w.current&&(clearInterval(w.current),w.current=null)}),[le]);const De=(It,Te)=>A(It,Object.assign(Object.assign({},Te),{format:N})),dt=It=>(0,O.Tm)(It,{title:void 0});return i.createElement(L,Object.assign({},te,{value:le,valueRender:dt,formatter:De}))};var Je=i.memo(ze);L.Countdown=Je;var Pe=L},93873:function(zn,Pt,u){"use strict";u.d(Pt,{Fm:function(){return b}});var i=u(36237),U=u(48746);const O=new i.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fe=new i.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Z=new i.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new i.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),H=new i.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new i.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),l=new i.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new i.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),M={"move-up":{inKeyframes:l,outKeyframes:y},"move-down":{inKeyframes:O,outKeyframes:fe},"move-left":{inKeyframes:Z,outKeyframes:g},"move-right":{inKeyframes:H,outKeyframes:V}},b=(C,T)=>{const{antCls:$}=C,W=`${$}-${T}`,{inKeyframes:X,outKeyframes:G}=M[T];return[(0,U.R)(W,X,G,C.motionDurationMid),{[`
${W}-enter,
${W}-appear
`]:{opacity:0,animationTimingFunction:C.motionEaseOutCirc},[`${W}-leave`]:{animationTimingFunction:C.motionEaseInOutCirc}}]}},46e3:function(zn,Pt,u){"use strict";u.d(Pt,{Qt:function(){return Z},Uw:function(){return fe},fJ:function(){return O},ly:function(){return g},oN:function(){return b}});var i=u(36237),U=u(48746);const O=new i.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fe=new i.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Z=new i.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new i.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),H=new i.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),V=new i.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new i.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),y=new i.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),M={"slide-up":{inKeyframes:O,outKeyframes:fe},"slide-down":{inKeyframes:Z,outKeyframes:g},"slide-left":{inKeyframes:H,outKeyframes:V},"slide-right":{inKeyframes:l,outKeyframes:y}},b=(C,T)=>{const{antCls:$}=C,W=`${$}-${T}`,{inKeyframes:X,outKeyframes:G}=M[T];return[(0,U.R)(W,X,G,C.motionDurationMid),{[`
${W}-enter,
${W}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:C.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${W}-leave`]:{animationTimingFunction:C.motionEaseInQuint}}]}},37645:function(zn,Pt,u){"use strict";u.d(Pt,{ZP:function(){return g},qN:function(){return O},wZ:function(){return fe}});var i=u(36237),U=u(36305);const O=8;function fe(H){const{contentRadius:V,limitVerticalRadius:l}=H,y=V>12?V+2:12;return{arrowOffsetHorizontal:y,arrowOffsetVertical:l?O:y}}function Z(H,V){return H?V:{}}function g(H,V,l){const{componentCls:y,boxShadowPopoverArrow:M,arrowOffsetVertical:b,arrowOffsetHorizontal:C}=H,{arrowDistance:T=0,arrowPlacement:$={left:!0,right:!0,top:!0,bottom:!0}}=l||{};return{[y]:Object.assign(Object.assign(Object.assign(Object.assign({[`${y}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,U.W)(H,V,M)),{"&:before":{background:V}})]},Z(!!$.top,{[[`&-placement-top > ${y}-arrow`,`&-placement-topLeft > ${y}-arrow`,`&-placement-topRight > ${y}-arrow`].join(",")]:{bottom:T,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${y}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":C,[`> ${y}-arrow`]:{left:{_skip_check_:!0,value:C}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.unit)(C)})`,[`> ${y}-arrow`]:{right:{_skip_check_:!0,value:C}}}})),Z(!!$.bottom,{[[`&-placement-bottom > ${y}-arrow`,`&-placement-bottomLeft > ${y}-arrow`,`&-placement-bottomRight > ${y}-arrow`].join(",")]:{top:T,transform:"translateY(-100%)"},[`&-placement-bottom > ${y}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":C,[`> ${y}-arrow`]:{left:{_skip_check_:!0,value:C}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,i.unit)(C)})`,[`> ${y}-arrow`]:{right:{_skip_check_:!0,value:C}}}})),Z(!!$.left,{[[`&-placement-left > ${y}-arrow`,`&-placement-leftTop > ${y}-arrow`,`&-placement-leftBottom > ${y}-arrow`].join(",")]:{right:{_skip_check_:!0,value:T},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${y}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${y}-arrow`]:{top:b},[`&-placement-leftBottom > ${y}-arrow`]:{bottom:b}})),Z(!!$.right,{[[`&-placement-right > ${y}-arrow`,`&-placement-rightTop > ${y}-arrow`,`&-placement-rightBottom > ${y}-arrow`].join(",")]:{left:{_skip_check_:!0,value:T},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${y}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${y}-arrow`]:{top:b},[`&-placement-rightBottom > ${y}-arrow`]:{bottom:b}}))}}},36305:function(zn,Pt,u){"use strict";u.d(Pt,{W:function(){return O},w:function(){return U}});var i=u(36237);function U(fe){const{sizePopupArrow:Z,borderRadiusXS:g,borderRadiusOuter:H}=fe,V=Z/2,l=0,y=V,M=H*1/Math.sqrt(2),b=V-H*(1-1/Math.sqrt(2)),C=V-g*(1/Math.sqrt(2)),T=H*(Math.sqrt(2)-1)+g*(1/Math.sqrt(2)),$=2*V-C,W=T,X=2*V-M,G=b,L=2*V-l,Q=y,P=V*Math.sqrt(2)+H*(Math.sqrt(2)-2),A=H*(Math.sqrt(2)-1),ce=`polygon(${A}px 100%, 50% ${A}px, ${2*V-A}px 100%, ${A}px 100%)`,Ee=`path('M ${l} ${y} A ${H} ${H} 0 0 0 ${M} ${b} L ${C} ${T} A ${g} ${g} 0 0 1 ${$} ${W} L ${X} ${G} A ${H} ${H} 0 0 0 ${L} ${Q} Z')`;return{arrowShadowWidth:P,arrowPath:Ee,arrowPolygon:ce}}const O=(fe,Z,g)=>{const{sizePopupArrow:H,arrowPolygon:V,arrowPath:l,arrowShadowWidth:y,borderRadiusXS:M,calc:b}=fe;return{pointerEvents:"none",width:H,height:H,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:H,height:b(H).div(2).equal(),background:Z,clipPath:{_multi_value_:!0,value:[V,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,i.unit)(M)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}}},70858:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return Go}});var i=u(59301),U={},O="rc-table-internal-hook",fe=u(42978),Z=u(6089),g=u(34280),H=u(13697),V=u(4676);function l(be){var ye=i.createContext(void 0),it=function(Yt){var en=Yt.value,pn=Yt.children,on=i.useRef(en);on.current=en;var Sn=i.useState(function(){return{getValue:function(){return on.current},listeners:new Set}}),yn=(0,fe.Z)(Sn,1),qn=yn[0];return(0,g.Z)(function(){(0,V.unstable_batchedUpdates)(function(){qn.listeners.forEach(function(kn){kn(en)})})},[en]),i.createElement(ye.Provider,{value:qn},pn)};return{Context:ye,Provider:it,defaultValue:be}}function y(be,ye){var it=(0,Z.Z)(typeof ye=="function"?ye:function(kn){if(ye===void 0)return kn;if(!Array.isArray(ye))return kn[ye];var Mn={};return ye.forEach(function(j){Mn[j]=kn[j]}),Mn}),At=i.useContext(be==null?void 0:be.Context),Yt=At||{},en=Yt.listeners,pn=Yt.getValue,on=i.useRef();on.current=it(At?pn():be==null?void 0:be.defaultValue);var Sn=i.useState({}),yn=(0,fe.Z)(Sn,2),qn=yn[1];return(0,g.Z)(function(){if(!At)return;function kn(Mn){var j=it(Mn);(0,H.Z)(on.current,j,!0)||qn({})}return en.add(kn),function(){en.delete(kn)}},[At]),on.current}var M=u(54476),b=u(8654);function C(){var be=i.createContext(null);function ye(){return i.useContext(be)}function it(Yt,en){var pn=(0,b.Yr)(Yt),on=function(yn,qn){var kn=pn?{ref:qn}:{},Mn=i.useRef(0),j=i.useRef(yn),c=ye();return c!==null?i.createElement(Yt,(0,M.Z)({},yn,kn)):((!en||en(j.current,yn))&&(Mn.current+=1),j.current=yn,i.createElement(be.Provider,{value:Mn.current},i.createElement(Yt,(0,M.Z)({},yn,kn))))};return pn?i.forwardRef(on):on}function At(Yt,en){var pn=(0,b.Yr)(Yt),on=function(yn,qn){var kn=pn?{ref:qn}:{};return ye(),i.createElement(Yt,(0,M.Z)({},yn,kn))};return pn?i.memo(i.forwardRef(on),en):i.memo(on,en)}return{makeImmutable:it,responseImmutable:At,useImmutableMark:ye}}var T=C(),$=T.makeImmutable,W=T.responseImmutable,X=T.useImmutableMark,G=C(),L=G.makeImmutable,Q=G.responseImmutable,P=G.useImmutableMark,A=l(),ce=A;function Ee(be,ye){var it=React.useRef(0);it.current+=1;var At=React.useRef(be),Yt=[];Object.keys(be||{}).map(function(pn){var on;(be==null?void 0:be[pn])!==((on=At.current)===null||on===void 0?void 0:on[pn])&&Yt.push(pn)}),At.current=be;var en=React.useRef([]);return Yt.length&&(en.current=Yt),React.useDebugValue(it.current),React.useDebugValue(en.current.join(", ")),ye&&console.log("".concat(ye,":"),it.current,en.current),it.current}var pe=null,ze=null,Je=u(76190),Pe=u(33885),Ze=u(20068),le=u(92310),N=u.n(le),S=u(80547),q=u(97938),te=u(48736),se=i.createContext({renderWithProps:!1}),w=se,I="RC_TABLE_KEY";function de(be){return be==null?[]:Array.isArray(be)?be:[be]}function De(be){var ye=[],it={};return be.forEach(function(At){for(var Yt=At||{},en=Yt.key,pn=Yt.dataIndex,on=en||de(pn).join("-")||I;it[on];)on="".concat(on,"_next");it[on]=!0,ye.push(on)}),ye}function dt(be){return be!=null}function It(be){return typeof be=="number"&&!Number.isNaN(be)}function Te(be){return be&&(0,Je.Z)(be)==="object"&&!Array.isArray(be)&&!i.isValidElement(be)}function rt(be,ye,it,At,Yt,en){var pn=i.useContext(w),on=P(),Sn=(0,S.Z)(function(){if(dt(At))return[At];var yn=ye==null||ye===""?[]:Array.isArray(ye)?ye:[ye],qn=(0,q.Z)(be,yn),kn=qn,Mn=void 0;if(Yt){var j=Yt(qn,be,it);Te(j)?(kn=j.children,Mn=j.props,pn.renderWithProps=!0):kn=j}return[kn,Mn]},[on,be,At,ye,Yt,it],function(yn,qn){if(en){var kn=(0,fe.Z)(yn,2),Mn=kn[1],j=(0,fe.Z)(qn,2),c=j[1];return en(c,Mn)}return pn.renderWithProps?!0:!(0,H.Z)(yn,qn,!0)});return Sn}function ht(be,ye,it,At){var Yt=be+ye-1;return be<=At&&Yt>=it}function St(be,ye){return y(ce,function(it){var At=ht(be,ye||1,it.hoverStartRow,it.hoverEndRow);return[At,it.onHover]})}var Me=u(70425),Xt=function(ye){var it=ye.ellipsis,At=ye.rowType,Yt=ye.children,en,pn=it===!0?{showTitle:!0}:it;return pn&&(pn.showTitle||At==="header")&&(typeof Yt=="string"||typeof Yt=="number"?en=Yt.toString():i.isValidElement(Yt)&&typeof Yt.props.children=="string"&&(en=Yt.props.children)),en};function tt(be){var ye,it,At,Yt,en,pn,on,Sn,yn=be.component,qn=be.children,kn=be.ellipsis,Mn=be.scope,j=be.prefixCls,c=be.className,f=be.align,h=be.record,x=be.render,k=be.dataIndex,J=be.renderIndex,Oe=be.shouldCellUpdate,qe=be.index,Et=be.rowType,Qt=be.colSpan,dn=be.rowSpan,En=be.fixLeft,Nn=be.fixRight,Un=be.firstFixLeft,Kn=be.lastFixLeft,ir=be.firstFixRight,er=be.lastFixRight,nr=be.appendNode,hr=be.additionalProps,Tr=hr===void 0?{}:hr,Lr=be.isSticky,pr="".concat(j,"-cell"),Yr=y(ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ei=Yr.supportSticky,Ri=Yr.allColumnsFixedLeft,xi=Yr.rowHoverable,fn=rt(h,k,J,qn,x,Oe),Oi=(0,fe.Z)(fn,2),ya=Oi[0],yi=Oi[1],ui={},ca=typeof En=="number"&&ei,da=typeof Nn=="number"&&ei;ca&&(ui.position="sticky",ui.left=En),da&&(ui.position="sticky",ui.right=Nn);var Qr=(ye=(it=(At=yi==null?void 0:yi.colSpan)!==null&&At!==void 0?At:Tr.colSpan)!==null&&it!==void 0?it:Qt)!==null&&ye!==void 0?ye:1,gi=(Yt=(en=(pn=yi==null?void 0:yi.rowSpan)!==null&&pn!==void 0?pn:Tr.rowSpan)!==null&&en!==void 0?en:dn)!==null&&Yt!==void 0?Yt:1,jr=St(qe,gi),Xr=(0,fe.Z)(jr,2),Si=Xr[0],Ii=Xr[1],ea=(0,Me.zX)(function(ta){var Fi;h&&Ii(qe,qe+gi-1),Tr==null||(Fi=Tr.onMouseEnter)===null||Fi===void 0||Fi.call(Tr,ta)}),Qi=(0,Me.zX)(function(ta){var Fi;h&&Ii(-1,-1),Tr==null||(Fi=Tr.onMouseLeave)===null||Fi===void 0||Fi.call(Tr,ta)});if(Qr===0||gi===0)return null;var sa=(on=Tr.title)!==null&&on!==void 0?on:Xt({rowType:Et,ellipsis:kn,children:ya}),Na=N()(pr,c,(Sn={},(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)(Sn,"".concat(pr,"-fix-left"),ca&&ei),"".concat(pr,"-fix-left-first"),Un&&ei),"".concat(pr,"-fix-left-last"),Kn&&ei),"".concat(pr,"-fix-left-all"),Kn&&Ri&&ei),"".concat(pr,"-fix-right"),da&&ei),"".concat(pr,"-fix-right-first"),ir&&ei),"".concat(pr,"-fix-right-last"),er&&ei),"".concat(pr,"-ellipsis"),kn),"".concat(pr,"-with-append"),nr),"".concat(pr,"-fix-sticky"),(ca||da)&&Lr&&ei),(0,Ze.Z)(Sn,"".concat(pr,"-row-hover"),!yi&&Si)),Tr.className,yi==null?void 0:yi.className),Jr={};f&&(Jr.textAlign=f);var ai=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},yi==null?void 0:yi.style),ui),Jr),Tr.style),Bi=ya;return(0,Je.Z)(Bi)==="object"&&!Array.isArray(Bi)&&!i.isValidElement(Bi)&&(Bi=null),kn&&(Kn||ir)&&(Bi=i.createElement("span",{className:"".concat(pr,"-content")},Bi)),i.createElement(yn,(0,M.Z)({},yi,Tr,{className:Na,style:ai,title:sa,scope:Mn,onMouseEnter:xi?ea:void 0,onMouseLeave:xi?Qi:void 0,colSpan:Qr!==1?Qr:null,rowSpan:gi!==1?gi:null}),nr,Bi)}var un=i.memo(tt);function vt(be,ye,it,At,Yt){var en=it[be]||{},pn=it[ye]||{},on,Sn;en.fixed==="left"?on=At.left[Yt==="rtl"?ye:be]:pn.fixed==="right"&&(Sn=At.right[Yt==="rtl"?be:ye]);var yn=!1,qn=!1,kn=!1,Mn=!1,j=it[ye+1],c=it[be-1],f=j&&!j.fixed||c&&!c.fixed||it.every(function(Oe){return Oe.fixed==="left"});if(Yt==="rtl"){if(on!==void 0){var h=c&&c.fixed==="left";Mn=!h&&f}else if(Sn!==void 0){var x=j&&j.fixed==="right";kn=!x&&f}}else if(on!==void 0){var k=j&&j.fixed==="left";yn=!k&&f}else if(Sn!==void 0){var J=c&&c.fixed==="right";qn=!J&&f}return{fixLeft:on,fixRight:Sn,lastFixLeft:yn,firstFixRight:qn,lastFixRight:kn,firstFixLeft:Mn,isSticky:At.isSticky}}var bt=i.createContext({}),Ve=bt;function Le(be){var ye=be.className,it=be.index,At=be.children,Yt=be.colSpan,en=Yt===void 0?1:Yt,pn=be.rowSpan,on=be.align,Sn=y(ce,["prefixCls","direction"]),yn=Sn.prefixCls,qn=Sn.direction,kn=i.useContext(Ve),Mn=kn.scrollColumnIndex,j=kn.stickyOffsets,c=kn.flattenColumns,f=it+en-1,h=f+1===Mn?en+1:en,x=vt(it,it+h-1,c,j,qn);return i.createElement(un,(0,M.Z)({className:ye,index:it,component:"td",prefixCls:yn,record:null,dataIndex:null,align:on,colSpan:h,rowSpan:pn,render:function(){return At}},x))}var oe=u(75931),nt=["children"];function Ue(be){var ye=be.children,it=(0,oe.Z)(be,nt);return i.createElement("tr",it,ye)}function K(be){var ye=be.children;return ye}K.Row=Ue,K.Cell=Le;var D=K;function Se(be){var ye=be.children,it=be.stickyOffsets,At=be.flattenColumns,Yt=y(ce,"prefixCls"),en=At.length-1,pn=At[en],on=i.useMemo(function(){return{stickyOffsets:it,flattenColumns:At,scrollColumnIndex:pn!=null&&pn.scrollbar?en:null}},[pn,At,en,it]);return i.createElement(Ve.Provider,{value:on},i.createElement("tfoot",{className:"".concat(Yt,"-summary")},ye))}var Ae=Q(Se),Ce=D,ke=u(29301),Xe=u(24514),yt=u(75152),he=u(26112);function me(be,ye,it,At,Yt,en,pn){be.push({record:ye,indent:it,index:pn});var on=en(ye),Sn=Yt==null?void 0:Yt.has(on);if(ye&&Array.isArray(ye[At])&&Sn)for(var yn=0;yn<ye[At].length;yn+=1)me(be,ye[At][yn],it+1,At,Yt,en,yn)}function Lt(be,ye,it,At){var Yt=i.useMemo(function(){if(it!=null&&it.size){for(var en=[],pn=0;pn<(be==null?void 0:be.length);pn+=1){var on=be[pn];me(en,on,0,ye,it,At,pn)}return en}return be==null?void 0:be.map(function(Sn,yn){return{record:Sn,indent:0,index:yn}})},[be,ye,it,At]);return Yt}function Ct(be,ye,it,At){var Yt=y(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),en=Yt.flattenColumns,pn=Yt.expandableType,on=Yt.expandedKeys,Sn=Yt.childrenColumnName,yn=Yt.onTriggerExpand,qn=Yt.rowExpandable,kn=Yt.onRow,Mn=Yt.expandRowByClick,j=Yt.rowClassName,c=pn==="nest",f=pn==="row"&&(!qn||qn(be)),h=f||c,x=on&&on.has(ye),k=Sn&&be&&be[Sn],J=(0,Me.zX)(yn),Oe=kn==null?void 0:kn(be,it),qe=Oe==null?void 0:Oe.onClick,Et=function(Nn){Mn&&h&&yn(be,Nn);for(var Un=arguments.length,Kn=new Array(Un>1?Un-1:0),ir=1;ir<Un;ir++)Kn[ir-1]=arguments[ir];qe==null||qe.apply(void 0,[Nn].concat(Kn))},Qt;typeof j=="string"?Qt=j:typeof j=="function"&&(Qt=j(be,it,At));var dn=De(en);return(0,Pe.Z)((0,Pe.Z)({},Yt),{},{columnsKey:dn,nestExpandable:c,expanded:x,hasNestChildren:k,record:be,onTriggerExpand:J,rowSupportExpand:f,expandable:h,rowProps:(0,Pe.Z)((0,Pe.Z)({},Oe),{},{className:N()(Qt,Oe==null?void 0:Oe.className),onClick:Et})})}function Nt(be){var ye=be.prefixCls,it=be.children,At=be.component,Yt=be.cellComponent,en=be.className,pn=be.expanded,on=be.colSpan,Sn=be.isEmpty,yn=y(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),qn=yn.scrollbarSize,kn=yn.fixHeader,Mn=yn.fixColumn,j=yn.componentWidth,c=yn.horizonScroll,f=it;return(Sn?c&&j:Mn)&&(f=i.createElement("div",{style:{width:j-(kn&&!Sn?qn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ye,"-expanded-row-fixed")},f)),i.createElement(At,{className:en,style:{display:pn?null:"none"}},i.createElement(un,{component:Yt,prefixCls:ye,colSpan:on},f))}var kt=Nt;function pt(be){var ye=be.prefixCls,it=be.record,At=be.onExpand,Yt=be.expanded,en=be.expandable,pn="".concat(ye,"-row-expand-icon");if(!en)return i.createElement("span",{className:N()(pn,"".concat(ye,"-row-spaced"))});var on=function(yn){At(it,yn),yn.stopPropagation()};return i.createElement("span",{className:N()(pn,(0,Ze.Z)((0,Ze.Z)({},"".concat(ye,"-row-expanded"),Yt),"".concat(ye,"-row-collapsed"),!Yt)),onClick:on})}function Vt(be,ye,it){var At=[];function Yt(en){(en||[]).forEach(function(pn,on){At.push(ye(pn,on)),Yt(pn[it])})}return Yt(be),At}function Zt(be,ye,it,At){return typeof be=="string"?be:typeof be=="function"?be(ye,it,At):""}function Re(be,ye,it,At,Yt){var en=be.record,pn=be.prefixCls,on=be.columnsKey,Sn=be.fixedInfoList,yn=be.expandIconColumnIndex,qn=be.nestExpandable,kn=be.indentSize,Mn=be.expandIcon,j=be.expanded,c=be.hasNestChildren,f=be.onTriggerExpand,h=on[it],x=Sn[it],k;it===(yn||0)&&qn&&(k=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(kn*At,"px")},className:"".concat(pn,"-row-indent indent-level-").concat(At)}),Mn({prefixCls:pn,expanded:j,expandable:c,record:en,onExpand:f})));var J;return ye.onCell&&(J=ye.onCell(en,Yt)),{key:h,fixedInfo:x,appendCellNode:k,additionalCellProps:J||{}}}function gt(be){var ye=be.className,it=be.style,At=be.record,Yt=be.index,en=be.renderIndex,pn=be.rowKey,on=be.indent,Sn=on===void 0?0:on,yn=be.rowComponent,qn=be.cellComponent,kn=be.scopeCellComponent,Mn=Ct(At,pn,Yt,Sn),j=Mn.prefixCls,c=Mn.flattenColumns,f=Mn.expandedRowClassName,h=Mn.expandedRowRender,x=Mn.rowProps,k=Mn.expanded,J=Mn.rowSupportExpand,Oe=i.useRef(!1);Oe.current||(Oe.current=k);var qe=Zt(f,At,Yt,Sn),Et=i.createElement(yn,(0,M.Z)({},x,{"data-row-key":pn,className:N()(ye,"".concat(j,"-row"),"".concat(j,"-row-level-").concat(Sn),x==null?void 0:x.className,(0,Ze.Z)({},qe,Sn>=1)),style:(0,Pe.Z)((0,Pe.Z)({},it),x==null?void 0:x.style)}),c.map(function(En,Nn){var Un=En.render,Kn=En.dataIndex,ir=En.className,er=Re(Mn,En,Nn,Sn,Yt),nr=er.key,hr=er.fixedInfo,Tr=er.appendCellNode,Lr=er.additionalCellProps;return i.createElement(un,(0,M.Z)({className:ir,ellipsis:En.ellipsis,align:En.align,scope:En.rowScope,component:En.rowScope?kn:qn,prefixCls:j,key:nr,record:At,index:Yt,renderIndex:en,dataIndex:Kn,render:Un,shouldCellUpdate:En.shouldCellUpdate},hr,{appendNode:Tr,additionalProps:Lr}))})),Qt;if(J&&(Oe.current||k)){var dn=h(At,Yt,Sn+1,k);Qt=i.createElement(kt,{expanded:k,className:N()("".concat(j,"-expanded-row"),"".concat(j,"-expanded-row-level-").concat(Sn+1),qe),prefixCls:j,component:yn,cellComponent:qn,colSpan:c.length,isEmpty:!1},dn)}return i.createElement(i.Fragment,null,Et,Qt)}var E=Q(gt);function R(be){var ye=be.columnKey,it=be.onColumnResize,At=i.useRef();return(0,g.Z)(function(){At.current&&it(ye,At.current.offsetWidth)},[]),i.createElement(ke.Z,{data:ye},i.createElement("td",{ref:At,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var at=u(29194);function ae(be){var ye=be.prefixCls,it=be.columnsKey,At=be.onColumnResize,Yt=i.useRef(null);return i.createElement("tr",{"aria-hidden":"true",className:"".concat(ye,"-measure-row"),style:{height:0,fontSize:0},ref:Yt},i.createElement(ke.Z.Collection,{onBatchResize:function(pn){(0,at.Z)(Yt.current)&&pn.forEach(function(on){var Sn=on.data,yn=on.size;At(Sn,yn.offsetWidth)})}},it.map(function(en){return i.createElement(R,{key:en,columnKey:en,onColumnResize:At})})))}function Y(be){var ye=be.data,it=be.measureColumnWidth,At=y(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Yt=At.prefixCls,en=At.getComponent,pn=At.onColumnResize,on=At.flattenColumns,Sn=At.getRowKey,yn=At.expandedKeys,qn=At.childrenColumnName,kn=At.emptyNode,Mn=Lt(ye,qn,yn,Sn),j=i.useRef({renderWithProps:!1}),c=en(["body","wrapper"],"tbody"),f=en(["body","row"],"tr"),h=en(["body","cell"],"td"),x=en(["body","cell"],"th"),k;ye.length?k=Mn.map(function(Oe,qe){var Et=Oe.record,Qt=Oe.indent,dn=Oe.index,En=Sn(Et,qe);return i.createElement(E,{key:En,rowKey:En,record:Et,index:qe,renderIndex:dn,rowComponent:f,cellComponent:h,scopeCellComponent:x,indent:Qt})}):k=i.createElement(kt,{expanded:!0,className:"".concat(Yt,"-placeholder"),prefixCls:Yt,component:f,cellComponent:h,colSpan:on.length,isEmpty:!0},kn);var J=De(on);return i.createElement(w.Provider,{value:j.current},i.createElement(c,{className:"".concat(Yt,"-tbody")},it&&i.createElement(ae,{prefixCls:Yt,columnsKey:J,onColumnResize:pn}),k))}var Ft=Q(Y),Ke=["expandable"],st="RC_TABLE_INTERNAL_COL_DEFINE";function _t(be){var ye=be.expandable,it=(0,oe.Z)(be,Ke),At;return"expandable"in be?At=(0,Pe.Z)((0,Pe.Z)({},it),ye):At=it,At.showExpandColumn===!1&&(At.expandIconColumnIndex=-1),At}var xe=["columnType"];function _e(be){for(var ye=be.colWidths,it=be.columns,At=be.columCount,Yt=y(ce,["tableLayout"]),en=Yt.tableLayout,pn=[],on=At||it.length,Sn=!1,yn=on-1;yn>=0;yn-=1){var qn=ye[yn],kn=it&&it[yn],Mn=void 0,j=void 0;if(kn&&(Mn=kn[st],en==="auto"&&(j=kn.minWidth)),qn||j||Mn||Sn){var c=Mn||{},f=c.columnType,h=(0,oe.Z)(c,xe);pn.unshift(i.createElement("col",(0,M.Z)({key:yn,style:{width:qn,minWidth:j}},h))),Sn=!0}}return i.createElement("colgroup",null,pn)}var et=_e,Qe=u(94480),z=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Rt(be,ye){return(0,i.useMemo)(function(){for(var it=[],At=0;At<ye;At+=1){var Yt=be[At];if(Yt!==void 0)it[At]=Yt;else return null}return it},[be.join("_"),ye])}var ge=i.forwardRef(function(be,ye){var it=be.className,At=be.noData,Yt=be.columns,en=be.flattenColumns,pn=be.colWidths,on=be.columCount,Sn=be.stickyOffsets,yn=be.direction,qn=be.fixHeader,kn=be.stickyTopOffset,Mn=be.stickyBottomOffset,j=be.stickyClassName,c=be.onScroll,f=be.maxContentScroll,h=be.children,x=(0,oe.Z)(be,z),k=y(ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),J=k.prefixCls,Oe=k.scrollbarSize,qe=k.isSticky,Et=k.getComponent,Qt=Et(["header","table"],"table"),dn=qe&&!qn?0:Oe,En=i.useRef(null),Nn=i.useCallback(function(Lr){(0,b.mH)(ye,Lr),(0,b.mH)(En,Lr)},[]);i.useEffect(function(){var Lr;function pr(Yr){var ei=Yr,Ri=ei.currentTarget,xi=ei.deltaX;xi&&(c({currentTarget:Ri,scrollLeft:Ri.scrollLeft+xi}),Yr.preventDefault())}return(Lr=En.current)===null||Lr===void 0||Lr.addEventListener("wheel",pr,{passive:!1}),function(){var Yr;(Yr=En.current)===null||Yr===void 0||Yr.removeEventListener("wheel",pr)}},[]);var Un=i.useMemo(function(){return en.every(function(Lr){return Lr.width})},[en]),Kn=en[en.length-1],ir={fixed:Kn?Kn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(J,"-cell-scrollbar")}}},er=(0,i.useMemo)(function(){return dn?[].concat((0,Qe.Z)(Yt),[ir]):Yt},[dn,Yt]),nr=(0,i.useMemo)(function(){return dn?[].concat((0,Qe.Z)(en),[ir]):en},[dn,en]),hr=(0,i.useMemo)(function(){var Lr=Sn.right,pr=Sn.left;return(0,Pe.Z)((0,Pe.Z)({},Sn),{},{left:yn==="rtl"?[].concat((0,Qe.Z)(pr.map(function(Yr){return Yr+dn})),[0]):pr,right:yn==="rtl"?Lr:[].concat((0,Qe.Z)(Lr.map(function(Yr){return Yr+dn})),[0]),isSticky:qe})},[dn,Sn,qe]),Tr=Rt(pn,on);return i.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},qe?{top:kn,bottom:Mn}:{}),ref:Nn,className:N()(it,(0,Ze.Z)({},j,!!j))},i.createElement(Qt,{style:{tableLayout:"fixed",visibility:At||Tr?null:"hidden"}},(!At||!f||Un)&&i.createElement(et,{colWidths:Tr?[].concat((0,Qe.Z)(Tr),[dn]):[],columCount:on+1,columns:nr}),h((0,Pe.Z)((0,Pe.Z)({},x),{},{stickyOffsets:hr,columns:er,flattenColumns:nr}))))}),Ht=i.memo(ge),cn=function(ye){var it=ye.cells,At=ye.stickyOffsets,Yt=ye.flattenColumns,en=ye.rowComponent,pn=ye.cellComponent,on=ye.onHeaderRow,Sn=ye.index,yn=y(ce,["prefixCls","direction"]),qn=yn.prefixCls,kn=yn.direction,Mn;on&&(Mn=on(it.map(function(c){return c.column}),Sn));var j=De(it.map(function(c){return c.column}));return i.createElement(en,Mn,it.map(function(c,f){var h=c.column,x=vt(c.colStart,c.colEnd,Yt,At,kn),k;return h&&h.onHeaderCell&&(k=c.column.onHeaderCell(h)),i.createElement(un,(0,M.Z)({},c,{scope:h.title?c.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:pn,prefixCls:qn,key:j[f]},x,{additionalProps:k,rowType:"header"}))}))},mt=cn;function ne(be){var ye=[];function it(pn,on){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ye[Sn]=ye[Sn]||[];var yn=on,qn=pn.filter(Boolean).map(function(kn){var Mn={key:kn.key,className:kn.className||"",children:kn.title,column:kn,colStart:yn},j=1,c=kn.children;return c&&c.length>0&&(j=it(c,yn,Sn+1).reduce(function(f,h){return f+h},0),Mn.hasSubColumns=!0),"colSpan"in kn&&(j=kn.colSpan),"rowSpan"in kn&&(Mn.rowSpan=kn.rowSpan),Mn.colSpan=j,Mn.colEnd=Mn.colStart+j-1,ye[Sn].push(Mn),yn+=j,j});return qn}it(be,0);for(var At=ye.length,Yt=function(on){ye[on].forEach(function(Sn){!("rowSpan"in Sn)&&!Sn.hasSubColumns&&(Sn.rowSpan=At-on)})},en=0;en<At;en+=1)Yt(en);return ye}var we=function(ye){var it=ye.stickyOffsets,At=ye.columns,Yt=ye.flattenColumns,en=ye.onHeaderRow,pn=y(ce,["prefixCls","getComponent"]),on=pn.prefixCls,Sn=pn.getComponent,yn=i.useMemo(function(){return ne(At)},[At]),qn=Sn(["header","wrapper"],"thead"),kn=Sn(["header","row"],"tr"),Mn=Sn(["header","cell"],"th");return i.createElement(qn,{className:"".concat(on,"-thead")},yn.map(function(j,c){var f=i.createElement(mt,{key:c,flattenColumns:Yt,cells:j,stickyOffsets:it,rowComponent:kn,cellComponent:Mn,onHeaderRow:en,index:c});return f}))},B=Q(we),xt=u(11592);function lt(be){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ye=="number"?ye:ye.endsWith("%")?be*parseFloat(ye)/100:null}function ot(be,ye,it){return i.useMemo(function(){if(ye&&ye>0){var At=0,Yt=0;be.forEach(function(Mn){var j=lt(ye,Mn.width);j?At+=j:Yt+=1});var en=Math.max(ye,it),pn=Math.max(en-At,Yt),on=Yt,Sn=pn/Yt,yn=0,qn=be.map(function(Mn){var j=(0,Pe.Z)({},Mn),c=lt(ye,j.width);if(c)j.width=c;else{var f=Math.floor(Sn);j.width=on===1?pn:f,pn-=f,on-=1}return yn+=j.width,j});if(yn<en){var kn=en/yn;pn=en,qn.forEach(function(Mn,j){var c=Math.floor(Mn.width*kn);Mn.width=j===qn.length-1?pn:c,pn-=c})}return[qn,Math.max(yn,en)]}return[be,ye]},[be,ye,it])}var $t=["children"],Bt=["fixed"];function zt(be){return(0,xt.Z)(be).filter(function(ye){return i.isValidElement(ye)}).map(function(ye){var it=ye.key,At=ye.props,Yt=At.children,en=(0,oe.Z)(At,$t),pn=(0,Pe.Z)({key:it},en);return Yt&&(pn.children=zt(Yt)),pn})}function re(be){return be.filter(function(ye){return ye&&(0,Je.Z)(ye)==="object"&&!ye.hidden}).map(function(ye){var it=ye.children;return it&&it.length>0?(0,Pe.Z)((0,Pe.Z)({},ye),{},{children:re(it)}):ye})}function ve(be){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return be.filter(function(it){return it&&(0,Je.Z)(it)==="object"}).reduce(function(it,At,Yt){var en=At.fixed,pn=en===!0?"left":en,on="".concat(ye,"-").concat(Yt),Sn=At.children;return Sn&&Sn.length>0?[].concat((0,Qe.Z)(it),(0,Qe.Z)(ve(Sn,on).map(function(yn){return(0,Pe.Z)({fixed:pn},yn)}))):[].concat((0,Qe.Z)(it),[(0,Pe.Z)((0,Pe.Z)({key:on},At),{},{fixed:pn})])},[])}function wt(be){return be.map(function(ye){var it=ye.fixed,At=(0,oe.Z)(ye,Bt),Yt=it;return it==="left"?Yt="right":it==="right"&&(Yt="left"),(0,Pe.Z)({fixed:Yt},At)})}function Ne(be,ye){var it=be.prefixCls,At=be.columns,Yt=be.children,en=be.expandable,pn=be.expandedKeys,on=be.columnTitle,Sn=be.getRowKey,yn=be.onTriggerExpand,qn=be.expandIcon,kn=be.rowExpandable,Mn=be.expandIconColumnIndex,j=be.direction,c=be.expandRowByClick,f=be.columnWidth,h=be.fixed,x=be.scrollWidth,k=be.clientWidth,J=i.useMemo(function(){var Kn=At||zt(Yt)||[];return re(Kn.slice())},[At,Yt]),Oe=i.useMemo(function(){if(en){var Kn=J.slice();if(!Kn.includes(U)){var ir=Mn||0;ir>=0&&(ir||h==="left"||!h)&&Kn.splice(ir,0,U),h==="right"&&Kn.splice(J.length,0,U)}var er=Kn.indexOf(U);Kn=Kn.filter(function(Lr,pr){return Lr!==U||pr===er});var nr=J[er],hr;h?hr=h:hr=nr?nr.fixed:null;var Tr=(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},st,{className:"".concat(it,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",on),"fixed",hr),"className","".concat(it,"-row-expand-icon-cell")),"width",f),"render",function(pr,Yr,ei){var Ri=Sn(Yr,ei),xi=pn.has(Ri),fn=kn?kn(Yr):!0,Oi=qn({prefixCls:it,expanded:xi,expandable:fn,record:Yr,onExpand:yn});return c?i.createElement("span",{onClick:function(yi){return yi.stopPropagation()}},Oi):Oi});return Kn.map(function(Lr){return Lr===U?Tr:Lr})}return J.filter(function(Lr){return Lr!==U})},[en,J,Sn,pn,qn,j]),qe=i.useMemo(function(){var Kn=Oe;return ye&&(Kn=ye(Kn)),Kn.length||(Kn=[{render:function(){return null}}]),Kn},[ye,Oe,j]),Et=i.useMemo(function(){return j==="rtl"?wt(ve(qe)):ve(qe)},[qe,j,x]),Qt=i.useMemo(function(){for(var Kn=-1,ir=Et.length-1;ir>=0;ir-=1){var er=Et[ir].fixed;if(er==="left"||er===!0){Kn=ir;break}}if(Kn>=0)for(var nr=0;nr<=Kn;nr+=1){var hr=Et[nr].fixed;if(hr!=="left"&&hr!==!0)return!0}var Tr=Et.findIndex(function(Yr){var ei=Yr.fixed;return ei==="right"});if(Tr>=0)for(var Lr=Tr;Lr<Et.length;Lr+=1){var pr=Et[Lr].fixed;if(pr!=="right")return!0}return!1},[Et]),dn=ot(Et,x,k),En=(0,fe.Z)(dn,2),Nn=En[0],Un=En[1];return[qe,Nn,Un,Qt]}var Be=Ne;function ue(be,ye,it){var At=_t(be),Yt=At.expandIcon,en=At.expandedRowKeys,pn=At.defaultExpandedRowKeys,on=At.defaultExpandAllRows,Sn=At.expandedRowRender,yn=At.onExpand,qn=At.onExpandedRowsChange,kn=At.childrenColumnName,Mn=Yt||pt,j=kn||"children",c=i.useMemo(function(){return Sn?"row":be.expandable&&be.internalHooks===O&&be.expandable.__PARENT_RENDER_ICON__||ye.some(function(qe){return qe&&(0,Je.Z)(qe)==="object"&&qe[j]})?"nest":!1},[!!Sn,ye]),f=i.useState(function(){return pn||(on?Vt(ye,it,j):[])}),h=(0,fe.Z)(f,2),x=h[0],k=h[1],J=i.useMemo(function(){return new Set(en||x||[])},[en,x]),Oe=i.useCallback(function(qe){var Et=it(qe,ye.indexOf(qe)),Qt,dn=J.has(Et);dn?(J.delete(Et),Qt=(0,Qe.Z)(J)):Qt=[].concat((0,Qe.Z)(J),[Et]),k(Qt),yn&&yn(!dn,qe),qn&&qn(Qt)},[it,J,ye,yn,qn]);return[At,c,J,Mn,j,Oe]}function Ie(be,ye,it){var At=be.map(function(Yt,en){return vt(en,en,be,ye,it)});return(0,S.Z)(function(){return At},[At],function(Yt,en){return!(0,H.Z)(Yt,en)})}function Fe(be){var ye=(0,i.useRef)(be),it=(0,i.useState)({}),At=(0,fe.Z)(it,2),Yt=At[1],en=(0,i.useRef)(null),pn=(0,i.useRef)([]);function on(Sn){pn.current.push(Sn);var yn=Promise.resolve();en.current=yn,yn.then(function(){if(en.current===yn){var qn=pn.current,kn=ye.current;pn.current=[],qn.forEach(function(Mn){ye.current=Mn(ye.current)}),en.current=null,kn!==ye.current&&Yt({})}})}return(0,i.useEffect)(function(){return function(){en.current=null}},[]),[ye.current,on]}function $e(be){var ye=(0,i.useRef)(be||null),it=(0,i.useRef)();function At(){window.clearTimeout(it.current)}function Yt(pn){ye.current=pn,At(),it.current=window.setTimeout(function(){ye.current=null,it.current=void 0},100)}function en(){return ye.current}return(0,i.useEffect)(function(){return At},[]),[Yt,en]}function ut(){var be=i.useState(-1),ye=(0,fe.Z)(be,2),it=ye[0],At=ye[1],Yt=i.useState(-1),en=(0,fe.Z)(Yt,2),pn=en[0],on=en[1],Sn=i.useCallback(function(yn,qn){At(yn),on(qn)},[]);return[it,pn,Sn]}var Gt=u(47273),sn=(0,Gt.Z)()?window:null;function je(be,ye){var it=(0,Je.Z)(be)==="object"?be:{},At=it.offsetHeader,Yt=At===void 0?0:At,en=it.offsetSummary,pn=en===void 0?0:en,on=it.offsetScroll,Sn=on===void 0?0:on,yn=it.getContainer,qn=yn===void 0?function(){return sn}:yn,kn=qn()||sn,Mn=!!be;return i.useMemo(function(){return{isSticky:Mn,stickyClassName:Mn?"".concat(ye,"-sticky-holder"):"",offsetHeader:Yt,offsetSummary:pn,offsetScroll:Sn,container:kn}},[Mn,Sn,Yt,pn,ye,kn])}function ct(be,ye,it){var At=(0,i.useMemo)(function(){var Yt=ye.length,en=function(yn,qn,kn){for(var Mn=[],j=0,c=yn;c!==qn;c+=kn)Mn.push(j),ye[c].fixed&&(j+=be[c]||0);return Mn},pn=en(0,Yt,1),on=en(Yt-1,-1,-1).reverse();return it==="rtl"?{left:on,right:pn}:{left:pn,right:on}},[be,ye,it]);return At}var Dt=ct;function qt(be){var ye=be.className,it=be.children;return i.createElement("div",{className:ye},it)}var Jt=qt,Ge=u(8224),ft=u(16089),Mt=u(76846);function Ye(be){var ye=(0,Mt.bn)(be),it=ye.getBoundingClientRect(),At=document.documentElement;return{left:it.left+(window.pageXOffset||At.scrollLeft)-(At.clientLeft||document.body.clientLeft||0),top:it.top+(window.pageYOffset||At.scrollTop)-(At.clientTop||document.body.clientTop||0)}}var jt=function(ye,it){var At,Yt,en=ye.scrollBodyRef,pn=ye.onScroll,on=ye.offsetScroll,Sn=ye.container,yn=ye.direction,qn=y(ce,"prefixCls"),kn=((At=en.current)===null||At===void 0?void 0:At.scrollWidth)||0,Mn=((Yt=en.current)===null||Yt===void 0?void 0:Yt.clientWidth)||0,j=kn&&Mn*(Mn/kn),c=i.useRef(),f=Fe({scrollLeft:0,isHiddenScrollBar:!0}),h=(0,fe.Z)(f,2),x=h[0],k=h[1],J=i.useRef({delta:0,x:0}),Oe=i.useState(!1),qe=(0,fe.Z)(Oe,2),Et=qe[0],Qt=qe[1],dn=i.useRef(null);i.useEffect(function(){return function(){ft.Z.cancel(dn.current)}},[]);var En=function(){Qt(!1)},Nn=function(nr){nr.persist(),J.current.delta=nr.pageX-x.scrollLeft,J.current.x=0,Qt(!0),nr.preventDefault()},Un=function(nr){var hr,Tr=nr||((hr=window)===null||hr===void 0?void 0:hr.event),Lr=Tr.buttons;if(!Et||Lr===0){Et&&Qt(!1);return}var pr=J.current.x+nr.pageX-J.current.x-J.current.delta,Yr=yn==="rtl";pr=Math.max(Yr?j-Mn:0,Math.min(Yr?0:Mn-j,pr));var ei=!Yr||Math.abs(pr)+Math.abs(j)<Mn;ei&&(pn({scrollLeft:pr/Mn*(kn+2)}),J.current.x=nr.pageX)},Kn=function(){ft.Z.cancel(dn.current),dn.current=(0,ft.Z)(function(){if(en.current){var nr=Ye(en.current).top,hr=nr+en.current.offsetHeight,Tr=Sn===window?document.documentElement.scrollTop+window.innerHeight:Ye(Sn).top+Sn.clientHeight;hr-(0,yt.Z)()<=Tr||nr>=Tr-on?k(function(Lr){return(0,Pe.Z)((0,Pe.Z)({},Lr),{},{isHiddenScrollBar:!0})}):k(function(Lr){return(0,Pe.Z)((0,Pe.Z)({},Lr),{},{isHiddenScrollBar:!1})})}})},ir=function(nr){k(function(hr){return(0,Pe.Z)((0,Pe.Z)({},hr),{},{scrollLeft:nr/kn*Mn||0})})};return i.useImperativeHandle(it,function(){return{setScrollLeft:ir,checkScrollBarVisible:Kn}}),i.useEffect(function(){var er=(0,Ge.Z)(document.body,"mouseup",En,!1),nr=(0,Ge.Z)(document.body,"mousemove",Un,!1);return Kn(),function(){er.remove(),nr.remove()}},[j,Et]),i.useEffect(function(){if(en.current){for(var er=[],nr=(0,Mt.bn)(en.current);nr;)er.push(nr),nr=nr.parentElement;return er.forEach(function(hr){return hr.addEventListener("scroll",Kn,!1)}),window.addEventListener("resize",Kn,!1),window.addEventListener("scroll",Kn,!1),Sn.addEventListener("scroll",Kn,!1),function(){er.forEach(function(hr){return hr.removeEventListener("scroll",Kn)}),window.removeEventListener("resize",Kn),window.removeEventListener("scroll",Kn),Sn.removeEventListener("scroll",Kn)}}},[Sn]),i.useEffect(function(){x.isHiddenScrollBar||k(function(er){var nr=en.current;return nr?(0,Pe.Z)((0,Pe.Z)({},er),{},{scrollLeft:nr.scrollLeft/nr.scrollWidth*nr.clientWidth}):er})},[x.isHiddenScrollBar]),kn<=Mn||!j||x.isHiddenScrollBar?null:i.createElement("div",{style:{height:(0,yt.Z)(),width:Mn,bottom:on},className:"".concat(qn,"-sticky-scroll")},i.createElement("div",{onMouseDown:Nn,ref:c,className:N()("".concat(qn,"-sticky-scroll-bar"),(0,Ze.Z)({},"".concat(qn,"-sticky-scroll-bar-active"),Et)),style:{width:"".concat(j,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))},rn=i.forwardRef(jt);function an(be){return null}var nn=an;function mn(be){return null}var bn=mn,In="rc-table",_n=[],Cn={};function Zn(){return"No Data"}function Ln(be,ye){var it=(0,Pe.Z)({rowKey:"key",prefixCls:In,emptyText:Zn},be),At=it.prefixCls,Yt=it.className,en=it.rowClassName,pn=it.style,on=it.data,Sn=it.rowKey,yn=it.scroll,qn=it.tableLayout,kn=it.direction,Mn=it.title,j=it.footer,c=it.summary,f=it.caption,h=it.id,x=it.showHeader,k=it.components,J=it.emptyText,Oe=it.onRow,qe=it.onHeaderRow,Et=it.onScroll,Qt=it.internalHooks,dn=it.transformColumns,En=it.internalRefs,Nn=it.tailor,Un=it.getContainerWidth,Kn=it.sticky,ir=it.rowHoverable,er=ir===void 0?!0:ir,nr=on||_n,hr=!!nr.length,Tr=Qt===O,Lr=i.useCallback(function(Pi,Ki){return(0,q.Z)(k,Pi)||Ki},[k]),pr=i.useMemo(function(){return typeof Sn=="function"?Sn:function(Pi){var Ki=Pi&&Pi[Sn];return Ki}},[Sn]),Yr=Lr(["body"]),ei=ut(),Ri=(0,fe.Z)(ei,3),xi=Ri[0],fn=Ri[1],Oi=Ri[2],ya=ue(it,nr,pr),yi=(0,fe.Z)(ya,6),ui=yi[0],ca=yi[1],da=yi[2],Qr=yi[3],gi=yi[4],jr=yi[5],Xr=yn==null?void 0:yn.x,Si=i.useState(0),Ii=(0,fe.Z)(Si,2),ea=Ii[0],Qi=Ii[1],sa=Be((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},it),ui),{},{expandable:!!ui.expandedRowRender,columnTitle:ui.columnTitle,expandedKeys:da,getRowKey:pr,onTriggerExpand:jr,expandIcon:Qr,expandIconColumnIndex:ui.expandIconColumnIndex,direction:kn,scrollWidth:Tr&&Nn&&typeof Xr=="number"?Xr:null,clientWidth:ea}),Tr?dn:null),Na=(0,fe.Z)(sa,4),Jr=Na[0],ai=Na[1],Bi=Na[2],ta=Na[3],Fi=Bi!=null?Bi:Xr,Ha=i.useMemo(function(){return{columns:Jr,flattenColumns:ai}},[Jr,ai]),ga=i.useRef(),os=i.useRef(),ba=i.useRef(),Ji=i.useRef();i.useImperativeHandle(ye,function(){return{nativeElement:ga.current,scrollTo:function(Ki){var Ba;if(ba.current instanceof HTMLElement){var ls=Ki.index,Fa=Ki.top,Lo=Ki.key;if(It(Fa)){var ho;(ho=ba.current)===null||ho===void 0||ho.scrollTo({top:Fa})}else{var io,yo=Lo!=null?Lo:pr(nr[ls]);(io=ba.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||io===void 0||io.scrollIntoView()}}else(Ba=ba.current)!==null&&Ba!==void 0&&Ba.scrollTo&&ba.current.scrollTo(Ki)}}});var fa=i.useRef(),oa=i.useState(!1),ka=(0,fe.Z)(oa,2),Ra=ka[0],Gi=ka[1],Ca=i.useState(!1),la=(0,fe.Z)(Ca,2),Va=la[0],wa=la[1],Ja=i.useState(new Map),xs=(0,fe.Z)(Ja,2),fo=xs[0],_a=xs[1],Do=De(ai),qa=Do.map(function(Pi){return fo.get(Pi)}),ms=i.useMemo(function(){return qa},[qa.join("_")]),ps=Dt(ms,ai,kn),is=yn&&dt(yn.y),es=yn&&dt(Fi)||!!ui.fixed,Es=es&&ai.some(function(Pi){var Ki=Pi.fixed;return Ki}),Ns=i.useRef(),Ss=je(Kn,At),js=Ss.isSticky,ts=Ss.offsetHeader,Al=Ss.offsetSummary,cl=Ss.offsetScroll,gs=Ss.stickyClassName,dl=Ss.container,Ei=i.useMemo(function(){return c==null?void 0:c(nr)},[c,nr]),qi=(is||js)&&i.isValidElement(Ei)&&Ei.type===D&&Ei.props.fixed,ha,La,ns;is&&(La={overflowY:hr?"scroll":"auto",maxHeight:yn.y}),es&&(ha={overflowX:"auto"},is||(La={overflowY:"hidden"}),ns={width:Fi===!0?"auto":Fi,minWidth:"100%"});var _s=i.useCallback(function(Pi,Ki){_a(function(Ba){if(Ba.get(Pi)!==Ki){var ls=new Map(Ba);return ls.set(Pi,Ki),ls}return Ba})},[]),Ts=$e(null),Ga=(0,fe.Z)(Ts,2),Ql=Ga[0],Il=Ga[1];function Yo(Pi,Ki){Ki&&(typeof Ki=="function"?Ki(Pi):Ki.scrollLeft!==Pi&&(Ki.scrollLeft=Pi,Ki.scrollLeft!==Pi&&setTimeout(function(){Ki.scrollLeft=Pi},0)))}var vo=(0,Z.Z)(function(Pi){var Ki=Pi.currentTarget,Ba=Pi.scrollLeft,ls=kn==="rtl",Fa=typeof Ba=="number"?Ba:Ki.scrollLeft,Lo=Ki||Cn;if(!Il()||Il()===Lo){var ho;Ql(Lo),Yo(Fa,os.current),Yo(Fa,ba.current),Yo(Fa,fa.current),Yo(Fa,(ho=Ns.current)===null||ho===void 0?void 0:ho.setScrollLeft)}var io=Ki||os.current;if(io){var yo=Tr&&Nn&&typeof Fi=="number"?Fi:io.scrollWidth,Oo=io.clientWidth;if(yo===Oo){Gi(!1),wa(!1);return}ls?(Gi(-Fa<yo-Oo),wa(-Fa>0)):(Gi(Fa>0),wa(Fa<yo-Oo))}}),Dl=(0,Z.Z)(function(Pi){vo(Pi),Et==null||Et(Pi)}),Rl=function(){if(es&&ba.current){var Ki;vo({currentTarget:(0,Mt.bn)(ba.current),scrollLeft:(Ki=ba.current)===null||Ki===void 0?void 0:Ki.scrollLeft})}else Gi(!1),wa(!1)},Ll=function(Ki){var Ba,ls=Ki.width;(Ba=Ns.current)===null||Ba===void 0||Ba.checkScrollBarVisible();var Fa=ga.current?ga.current.offsetWidth:ls;Tr&&Un&&ga.current&&(Fa=Un(ga.current,Fa)||Fa),Fa!==ea&&(Rl(),Qi(Fa))},Ol=i.useRef(!1);i.useEffect(function(){Ol.current&&Rl()},[es,on,Jr.length]),i.useEffect(function(){Ol.current=!0},[]);var Jl=i.useState(0),Pl=(0,fe.Z)(Jl,2),Xo=Pl[0],Ml=Pl[1],ql=i.useState(!0),Nl=(0,fe.Z)(ql,2),fl=Nl[0],hl=Nl[1];(0,g.Z)(function(){(!Nn||!Tr)&&(ba.current instanceof Element?Ml((0,yt.o)(ba.current).width):Ml((0,yt.o)(Ji.current).width)),hl((0,Xe.G)("position","sticky"))},[]),i.useEffect(function(){Tr&&En&&(En.body.current=ba.current)});var eu=i.useCallback(function(Pi){return i.createElement(i.Fragment,null,i.createElement(B,Pi),qi==="top"&&i.createElement(Ae,Pi,Ei))},[qi,Ei]),ml=i.useCallback(function(Pi){return i.createElement(Ae,Pi,Ei)},[Ei]),Qo=Lr(["table"],"table"),Ro=i.useMemo(function(){return qn||(Es?Fi==="max-content"?"auto":"fixed":is||js||ai.some(function(Pi){var Ki=Pi.ellipsis;return Ki})?"fixed":"auto")},[is,Es,ai,qn,js]),pl,gl={colWidths:ms,columCount:ai.length,stickyOffsets:ps,onHeaderRow:qe,fixHeader:is,scroll:yn},vl=i.useMemo(function(){return hr?null:typeof J=="function"?J():J},[hr,J]),As=i.createElement(Ft,{data:nr,measureColumnWidth:is||es||js}),Ia=i.createElement(et,{colWidths:ai.map(function(Pi){var Ki=Pi.width;return Ki}),columns:ai}),no=f!=null?i.createElement("caption",{className:"".concat(At,"-caption")},f):void 0,ro=(0,he.Z)(it,{data:!0}),kl=(0,he.Z)(it,{aria:!0});if(is||js){var yl;typeof Yr=="function"?(yl=Yr(nr,{scrollbarSize:Xo,ref:ba,onScroll:vo}),gl.colWidths=ai.map(function(Pi,Ki){var Ba=Pi.width,ls=Ki===ai.length-1?Ba-Xo:Ba;return typeof ls=="number"&&!Number.isNaN(ls)?ls:0})):yl=i.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},ha),La),onScroll:Dl,ref:ba,className:N()("".concat(At,"-body"))},i.createElement(Qo,(0,M.Z)({style:(0,Pe.Z)((0,Pe.Z)({},ns),{},{tableLayout:Ro})},kl),no,Ia,As,!qi&&Ei&&i.createElement(Ae,{stickyOffsets:ps,flattenColumns:ai},Ei)));var Bl=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!nr.length,maxContentScroll:es&&Fi==="max-content"},gl),Ha),{},{direction:kn,stickyClassName:gs,onScroll:vo});pl=i.createElement(i.Fragment,null,x!==!1&&i.createElement(Ht,(0,M.Z)({},Bl,{stickyTopOffset:ts,className:"".concat(At,"-header"),ref:os}),eu),yl,qi&&qi!=="top"&&i.createElement(Ht,(0,M.Z)({},Bl,{stickyBottomOffset:Al,className:"".concat(At,"-summary"),ref:fa}),ml),js&&ba.current&&ba.current instanceof Element&&i.createElement(rn,{ref:Ns,offsetScroll:cl,scrollBodyRef:ba,onScroll:vo,container:dl,direction:kn}))}else pl=i.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},ha),La),className:N()("".concat(At,"-content")),onScroll:vo,ref:ba},i.createElement(Qo,(0,M.Z)({style:(0,Pe.Z)((0,Pe.Z)({},ns),{},{tableLayout:Ro})},kl),no,Ia,x!==!1&&i.createElement(B,(0,M.Z)({},gl,Ha)),As,Ei&&i.createElement(Ae,{stickyOffsets:ps,flattenColumns:ai},Ei)));var bl=i.createElement("div",(0,M.Z)({className:N()(At,Yt,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},"".concat(At,"-rtl"),kn==="rtl"),"".concat(At,"-ping-left"),Ra),"".concat(At,"-ping-right"),Va),"".concat(At,"-layout-fixed"),qn==="fixed"),"".concat(At,"-fixed-header"),is),"".concat(At,"-fixed-column"),Es),"".concat(At,"-fixed-column-gapped"),Es&&ta),"".concat(At,"-scroll-horizontal"),es),"".concat(At,"-has-fix-left"),ai[0]&&ai[0].fixed),"".concat(At,"-has-fix-right"),ai[ai.length-1]&&ai[ai.length-1].fixed==="right")),style:pn,id:h,ref:ga},ro),Mn&&i.createElement(Jt,{className:"".concat(At,"-title")},Mn(nr)),i.createElement("div",{ref:Ji,className:"".concat(At,"-container")},pl),j&&i.createElement(Jt,{className:"".concat(At,"-footer")},j(nr)));es&&(bl=i.createElement(ke.Z,{onResize:Ll},bl));var Fl=Ie(ai,ps,kn),tu=i.useMemo(function(){return{scrollX:Fi,prefixCls:At,getComponent:Lr,scrollbarSize:Xo,direction:kn,fixedInfoList:Fl,isSticky:js,supportSticky:fl,componentWidth:ea,fixHeader:is,fixColumn:Es,horizonScroll:es,tableLayout:Ro,rowClassName:en,expandedRowClassName:ui.expandedRowClassName,expandIcon:Qr,expandableType:ca,expandRowByClick:ui.expandRowByClick,expandedRowRender:ui.expandedRowRender,onTriggerExpand:jr,expandIconColumnIndex:ui.expandIconColumnIndex,indentSize:ui.indentSize,allColumnsFixedLeft:ai.every(function(Pi){return Pi.fixed==="left"}),emptyNode:vl,columns:Jr,flattenColumns:ai,onColumnResize:_s,hoverStartRow:xi,hoverEndRow:fn,onHover:Oi,rowExpandable:ui.rowExpandable,onRow:Oe,getRowKey:pr,expandedKeys:da,childrenColumnName:gi,rowHoverable:er}},[Fi,At,Lr,Xo,kn,Fl,js,fl,ea,is,Es,es,Ro,en,ui.expandedRowClassName,Qr,ca,ui.expandRowByClick,ui.expandedRowRender,jr,ui.expandIconColumnIndex,ui.indentSize,vl,Jr,ai,_s,xi,fn,Oi,ui.rowExpandable,Oe,pr,da,gi,er]);return i.createElement(ce.Provider,{value:tu},bl)}var rr=i.forwardRef(Ln);function Dn(be){return L(rr,be)}var jn=Dn();jn.EXPAND_COLUMN=U,jn.INTERNAL_HOOKS=O,jn.Column=nn,jn.ColumnGroup=bn,jn.Summary=Ce;var Xn=jn,Wn=u(48911),Gn=l(null),Jn=l(null);function Rn(be,ye,it){var At=ye||1;return it[be+At]-(it[be]||0)}function Bn(be){var ye=be.rowInfo,it=be.column,At=be.colIndex,Yt=be.indent,en=be.index,pn=be.component,on=be.renderIndex,Sn=be.record,yn=be.style,qn=be.className,kn=be.inverse,Mn=be.getHeight,j=it.render,c=it.dataIndex,f=it.className,h=it.width,x=y(Jn,["columnsOffset"]),k=x.columnsOffset,J=Re(ye,it,At,Yt,en),Oe=J.key,qe=J.fixedInfo,Et=J.appendCellNode,Qt=J.additionalCellProps,dn=Qt.style,En=Qt.colSpan,Nn=En===void 0?1:En,Un=Qt.rowSpan,Kn=Un===void 0?1:Un,ir=At-1,er=Rn(ir,Nn,k),nr=Nn>1?h-er:0,hr=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},dn),yn),{},{flex:"0 0 ".concat(er,"px"),width:"".concat(er,"px"),marginRight:nr,pointerEvents:"auto"}),Tr=i.useMemo(function(){return kn?Kn<=1:Nn===0||Kn===0||Kn>1},[Kn,Nn,kn]);Tr?hr.visibility="hidden":kn&&(hr.height=Mn==null?void 0:Mn(Kn));var Lr=Tr?function(){return null}:j,pr={};return(Kn===0||Nn===0)&&(pr.rowSpan=1,pr.colSpan=1),i.createElement(un,(0,M.Z)({className:N()(f,qn),ellipsis:it.ellipsis,align:it.align,scope:it.rowScope,component:pn,prefixCls:ye.prefixCls,key:Oe,record:Sn,index:en,renderIndex:on,dataIndex:c,render:Lr,shouldCellUpdate:it.shouldCellUpdate},qe,{appendNode:Et,additionalProps:(0,Pe.Z)((0,Pe.Z)({},Qt),{},{style:hr},pr)}))}var ln=Bn,Tt=["data","index","className","rowKey","style","extra","getHeight"],Fn=i.forwardRef(function(be,ye){var it=be.data,At=be.index,Yt=be.className,en=be.rowKey,pn=be.style,on=be.extra,Sn=be.getHeight,yn=(0,oe.Z)(be,Tt),qn=it.record,kn=it.indent,Mn=it.index,j=y(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),c=j.scrollX,f=j.flattenColumns,h=j.prefixCls,x=j.fixColumn,k=j.componentWidth,J=y(Gn,["getComponent"]),Oe=J.getComponent,qe=Ct(qn,en,At,kn),Et=Oe(["body","row"],"div"),Qt=Oe(["body","cell"],"div"),dn=qe.rowSupportExpand,En=qe.expanded,Nn=qe.rowProps,Un=qe.expandedRowRender,Kn=qe.expandedRowClassName,ir;if(dn&&En){var er=Un(qn,At,kn+1,En),nr=Zt(Kn,qn,At,kn),hr={};x&&(hr={style:(0,Ze.Z)({},"--virtual-width","".concat(k,"px"))});var Tr="".concat(h,"-expanded-row-cell");ir=i.createElement(Et,{className:N()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(kn+1),nr)},i.createElement(un,{component:Qt,prefixCls:h,className:N()(Tr,(0,Ze.Z)({},"".concat(Tr,"-fixed"),x)),additionalProps:hr},er))}var Lr=(0,Pe.Z)((0,Pe.Z)({},pn),{},{width:c});on&&(Lr.position="absolute",Lr.pointerEvents="none");var pr=i.createElement(Et,(0,M.Z)({},Nn,yn,{"data-row-key":en,ref:dn?null:ye,className:N()(Yt,"".concat(h,"-row"),Nn==null?void 0:Nn.className,(0,Ze.Z)({},"".concat(h,"-row-extra"),on)),style:(0,Pe.Z)((0,Pe.Z)({},Lr),Nn==null?void 0:Nn.style)}),f.map(function(Yr,ei){return i.createElement(ln,{key:ei,component:Qt,rowInfo:qe,column:Yr,colIndex:ei,indent:kn,index:At,renderIndex:Mn,record:qn,inverse:on,getHeight:Sn})}));return dn?i.createElement("div",{ref:ye},pr,ir):pr}),On=Q(Fn),sr=On,dr=i.forwardRef(function(be,ye){var it=be.data,At=be.onScroll,Yt=y(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),en=Yt.flattenColumns,pn=Yt.onColumnResize,on=Yt.getRowKey,Sn=Yt.expandedKeys,yn=Yt.prefixCls,qn=Yt.childrenColumnName,kn=Yt.scrollX,Mn=Yt.direction,j=y(Gn),c=j.sticky,f=j.scrollY,h=j.listItemHeight,x=j.getComponent,k=j.onScroll,J=i.useRef(),Oe=Lt(it,qn,Sn,on),qe=i.useMemo(function(){var ir=0;return en.map(function(er){var nr=er.width,hr=er.key;return ir+=nr,[hr,nr,ir]})},[en]),Et=i.useMemo(function(){return qe.map(function(ir){return ir[2]})},[qe]);i.useEffect(function(){qe.forEach(function(ir){var er=(0,fe.Z)(ir,2),nr=er[0],hr=er[1];pn(nr,hr)})},[qe]),i.useImperativeHandle(ye,function(){var ir,er={scrollTo:function(hr){var Tr;(Tr=J.current)===null||Tr===void 0||Tr.scrollTo(hr)},nativeElement:(ir=J.current)===null||ir===void 0?void 0:ir.nativeElement};return Object.defineProperty(er,"scrollLeft",{get:function(){var hr;return((hr=J.current)===null||hr===void 0?void 0:hr.getScrollInfo().x)||0},set:function(hr){var Tr;(Tr=J.current)===null||Tr===void 0||Tr.scrollTo({left:hr})}}),er});var Qt=function(er,nr){var hr,Tr=(hr=Oe[nr])===null||hr===void 0?void 0:hr.record,Lr=er.onCell;if(Lr){var pr,Yr=Lr(Tr,nr);return(pr=Yr==null?void 0:Yr.rowSpan)!==null&&pr!==void 0?pr:1}return 1},dn=function(er){var nr=er.start,hr=er.end,Tr=er.getSize,Lr=er.offsetY;if(hr<0)return null;for(var pr=en.filter(function(Qr){return Qt(Qr,nr)===0}),Yr=nr,ei=function(gi){if(pr=pr.filter(function(jr){return Qt(jr,gi)===0}),!pr.length)return Yr=gi,1},Ri=nr;Ri>=0&&!ei(Ri);Ri-=1);for(var xi=en.filter(function(Qr){return Qt(Qr,hr)!==1}),fn=hr,Oi=function(gi){if(xi=xi.filter(function(jr){return Qt(jr,gi)!==1}),!xi.length)return fn=Math.max(gi-1,hr),1},ya=hr;ya<Oe.length&&!Oi(ya);ya+=1);for(var yi=[],ui=function(gi){var jr=Oe[gi];if(!jr)return 1;en.some(function(Xr){return Qt(Xr,gi)>1})&&yi.push(gi)},ca=Yr;ca<=fn;ca+=1)ui(ca);var da=yi.map(function(Qr){var gi=Oe[Qr],jr=on(gi.record,Qr),Xr=function(ea){var Qi=Qr+ea-1,sa=on(Oe[Qi].record,Qi),Na=Tr(jr,sa);return Na.bottom-Na.top},Si=Tr(jr);return i.createElement(sr,{key:Qr,data:gi,rowKey:jr,index:Qr,style:{top:-Lr+Si.top},extra:!0,getHeight:Xr})});return da},En=i.useMemo(function(){return{columnsOffset:Et}},[Et]),Nn="".concat(yn,"-tbody"),Un=x(["body","wrapper"]),Kn={};return c&&(Kn.position="sticky",Kn.bottom=0,(0,Je.Z)(c)==="object"&&c.offsetScroll&&(Kn.bottom=c.offsetScroll)),i.createElement(Jn.Provider,{value:En},i.createElement(Wn.Z,{fullHeight:!1,ref:J,prefixCls:"".concat(Nn,"-virtual"),styles:{horizontalScrollBar:Kn},className:Nn,height:f,itemHeight:h||24,data:Oe,itemKey:function(er){return on(er.record)},component:Un,scrollWidth:kn,direction:Mn,onVirtualScroll:function(er){var nr,hr=er.x;At({currentTarget:(nr=J.current)===null||nr===void 0?void 0:nr.nativeElement,scrollLeft:hr})},onScroll:k,extraRender:dn},function(ir,er,nr){var hr=on(ir.record,er);return i.createElement(sr,{data:ir,rowKey:hr,index:er,style:nr.style})}))}),Ar=Q(dr),ur=Ar,Yn=function(ye,it){var At=it.ref,Yt=it.onScroll;return i.createElement(ur,{ref:At,data:ye,onScroll:Yt})};function vn(be,ye){var it=be.data,At=be.columns,Yt=be.scroll,en=be.sticky,pn=be.prefixCls,on=pn===void 0?In:pn,Sn=be.className,yn=be.listItemHeight,qn=be.components,kn=be.onScroll,Mn=Yt||{},j=Mn.x,c=Mn.y;typeof j!="number"&&(j=1),typeof c!="number"&&(c=500);var f=(0,Me.zX)(function(k,J){return(0,q.Z)(qn,k)||J}),h=(0,Me.zX)(kn),x=i.useMemo(function(){return{sticky:en,scrollY:c,listItemHeight:yn,getComponent:f,onScroll:h}},[en,c,yn,f,h]);return i.createElement(Gn.Provider,{value:x},i.createElement(Xn,(0,M.Z)({},be,{className:N()(Sn,"".concat(on,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Yt),{},{x:j}),components:(0,Pe.Z)((0,Pe.Z)({},qn),{},{body:it!=null&&it.length?Yn:void 0}),columns:At,internalHooks:O,tailor:!0,ref:ye})))}var hn=i.forwardRef(vn);function xn(be){return L(hn,be)}var Qn=xn(),tr=null,Er=be=>null,Sr=be=>null,Dr=u(84105),$r=u(82661),Mr=u(34643),Or=u(34061),Cr=u(18929);function zr(be){const[ye,it]=(0,i.useState)(null);return[(0,i.useCallback)((en,pn,on)=>{const Sn=ye!=null?ye:en,yn=Math.min(Sn||0,en),qn=Math.max(Sn||0,en),kn=pn.slice(yn,qn+1).map(c=>be(c)),Mn=kn.some(c=>!on.has(c)),j=[];return kn.forEach(c=>{Mn?(on.has(c)||j.push(c),on.add(c)):(on.delete(c),j.push(c))}),it(Mn?qn:null),j},[ye]),en=>{it(en)}]}var wr=u(32383),Vr=u(62673),Ir=u(75727),tn=u(47889);const Tn={},cr="SELECT_ALL",or="SELECT_INVERT",Br="SELECT_NONE",ri=[],vi=(be,ye)=>{let it=[];return(ye||[]).forEach(At=>{it.push(At),At&&typeof At=="object"&&be in At&&(it=[].concat((0,Qe.Z)(it),(0,Qe.Z)(vi(be,At[be]))))}),it};var mr=(be,ye)=>{const{preserveSelectedRowKeys:it,selectedRowKeys:At,defaultSelectedRowKeys:Yt,getCheckboxProps:en,onChange:pn,onSelect:on,onSelectAll:Sn,onSelectInvert:yn,onSelectNone:qn,onSelectMultiple:kn,columnWidth:Mn,type:j,selections:c,fixed:f,renderCell:h,hideSelectAll:x,checkStrictly:k=!0}=ye||{},{prefixCls:J,data:Oe,pageData:qe,getRecordByKey:Et,getRowKey:Qt,expandType:dn,childrenColumnName:En,locale:Nn,getPopupContainer:Un}=be,Kn=(0,wr.ln)("Table"),[ir,er]=zr(Qr=>Qr),[nr,hr]=(0,Cr.Z)(At||Yt||ri,{value:At}),Tr=i.useRef(new Map),Lr=(0,i.useCallback)(Qr=>{if(it){const gi=new Map;Qr.forEach(jr=>{let Xr=Et(jr);!Xr&&Tr.current.has(jr)&&(Xr=Tr.current.get(jr)),gi.set(jr,Xr)}),Tr.current=gi}},[Et,it]);i.useEffect(()=>{Lr(nr)},[nr]);const pr=(0,i.useMemo)(()=>vi(En,qe),[En,qe]),{keyEntities:Yr}=(0,i.useMemo)(()=>{if(k)return{keyEntities:null};let Qr=Oe;if(it){const gi=new Set(pr.map((Xr,Si)=>Qt(Xr,Si))),jr=Array.from(Tr.current).reduce((Xr,Si)=>{let[Ii,ea]=Si;return gi.has(Ii)?Xr:Xr.concat(ea)},[]);Qr=[].concat((0,Qe.Z)(Qr),(0,Qe.Z)(jr))}return(0,Or.I8)(Qr,{externalGetKey:Qt,childrenPropName:En})},[Oe,Qt,k,En,it,pr]),ei=(0,i.useMemo)(()=>{const Qr=new Map;return pr.forEach((gi,jr)=>{const Xr=Qt(gi,jr),Si=(en?en(gi):null)||{};Qr.set(Xr,Si)}),Qr},[pr,Qt,en]),Ri=(0,i.useCallback)(Qr=>{const gi=Qt(Qr);let jr;return ei.has(gi)?jr=ei.get(Qt(Qr)):jr=en?en(Qr):void 0,!!(jr!=null&&jr.disabled)},[ei,Qt]),[xi,fn]=(0,i.useMemo)(()=>{if(k)return[nr||[],[]];const{checkedKeys:Qr,halfCheckedKeys:gi}=(0,Mr.S)(nr,!0,Yr,Ri);return[Qr||[],gi]},[nr,k,Yr,Ri]),Oi=(0,i.useMemo)(()=>{const Qr=j==="radio"?xi.slice(0,1):xi;return new Set(Qr)},[xi,j]),ya=(0,i.useMemo)(()=>j==="radio"?new Set:new Set(fn),[fn,j]);i.useEffect(()=>{ye||hr(ri)},[!!ye]);const yi=(0,i.useCallback)((Qr,gi)=>{let jr,Xr;Lr(Qr),it?(jr=Qr,Xr=Qr.map(Si=>Tr.current.get(Si))):(jr=[],Xr=[],Qr.forEach(Si=>{const Ii=Et(Si);Ii!==void 0&&(jr.push(Si),Xr.push(Ii))})),hr(jr),pn==null||pn(jr,Xr,{type:gi})},[hr,Et,pn,it]),ui=(0,i.useCallback)((Qr,gi,jr,Xr)=>{if(on){const Si=jr.map(Ii=>Et(Ii));on(Et(Qr),gi,Si,Xr)}yi(jr,"single")},[on,Et,yi]),ca=(0,i.useMemo)(()=>!c||x?null:(c===!0?[cr,or,Br]:c).map(gi=>gi===cr?{key:"all",text:Nn.selectionAll,onSelect(){yi(Oe.map((jr,Xr)=>Qt(jr,Xr)).filter(jr=>{const Xr=ei.get(jr);return!(Xr!=null&&Xr.disabled)||Oi.has(jr)}),"all")}}:gi===or?{key:"invert",text:Nn.selectInvert,onSelect(){const jr=new Set(Oi);qe.forEach((Si,Ii)=>{const ea=Qt(Si,Ii),Qi=ei.get(ea);Qi!=null&&Qi.disabled||(jr.has(ea)?jr.delete(ea):jr.add(ea))});const Xr=Array.from(jr);yn&&(Kn.deprecated(!1,"onSelectInvert","onChange"),yn(Xr)),yi(Xr,"invert")}}:gi===Br?{key:"none",text:Nn.selectNone,onSelect(){qn==null||qn(),yi(Array.from(Oi).filter(jr=>{const Xr=ei.get(jr);return Xr==null?void 0:Xr.disabled}),"none")}}:gi).map(gi=>Object.assign(Object.assign({},gi),{onSelect:function(){for(var jr,Xr,Si=arguments.length,Ii=new Array(Si),ea=0;ea<Si;ea++)Ii[ea]=arguments[ea];(Xr=gi.onSelect)===null||Xr===void 0||(jr=Xr).call.apply(jr,[gi].concat(Ii)),er(null)}})),[c,Oi,qe,Qt,yn,yi]);return[(0,i.useCallback)(Qr=>{var gi;if(!ye)return Qr.filter(Ji=>Ji!==Tn);let jr=(0,Qe.Z)(Qr);const Xr=new Set(Oi),Si=pr.map(Qt).filter(Ji=>!ei.get(Ji).disabled),Ii=Si.every(Ji=>Xr.has(Ji)),ea=Si.some(Ji=>Xr.has(Ji)),Qi=()=>{const Ji=[];Ii?Si.forEach(oa=>{Xr.delete(oa),Ji.push(oa)}):Si.forEach(oa=>{Xr.has(oa)||(Xr.add(oa),Ji.push(oa))});const fa=Array.from(Xr);Sn==null||Sn(!Ii,fa.map(oa=>Et(oa)),Ji.map(oa=>Et(oa))),yi(fa,"all"),er(null)};let sa,Na;if(j!=="radio"){let Ji;if(ca){const Gi={getPopupContainer:Un,items:ca.map((Ca,la)=>{const{key:Va,text:wa,onSelect:Ja}=Ca;return{key:Va!=null?Va:la,onClick:()=>{Ja==null||Ja(Si)},label:wa}})};Ji=i.createElement("div",{className:`${J}-selection-extra`},i.createElement(Ir.Z,{menu:Gi,getPopupContainer:Un},i.createElement("span",null,i.createElement(Dr.Z,null))))}const fa=pr.map((Gi,Ca)=>{const la=Qt(Gi,Ca),Va=ei.get(la)||{};return Object.assign({checked:Xr.has(la)},Va)}).filter(Gi=>{let{disabled:Ca}=Gi;return Ca}),oa=!!fa.length&&fa.length===pr.length,ka=oa&&fa.every(Gi=>{let{checked:Ca}=Gi;return Ca}),Ra=oa&&fa.some(Gi=>{let{checked:Ca}=Gi;return Ca});Na=i.createElement(Vr.default,{checked:oa?ka:!!pr.length&&Ii,indeterminate:oa?!ka&&Ra:!Ii&&ea,onChange:Qi,disabled:pr.length===0||oa,"aria-label":Ji?"Custom selection":"Select all",skipGroup:!0}),sa=!x&&i.createElement("div",{className:`${J}-selection`},Na,Ji)}let Jr;j==="radio"?Jr=(Ji,fa,oa)=>{const ka=Qt(fa,oa),Ra=Xr.has(ka),Gi=ei.get(ka);return{node:i.createElement(tn.ZP,Object.assign({},Gi,{checked:Ra,onClick:Ca=>{var la;Ca.stopPropagation(),(la=Gi==null?void 0:Gi.onClick)===null||la===void 0||la.call(Gi,Ca)},onChange:Ca=>{var la;Xr.has(ka)||ui(ka,!0,[ka],Ca.nativeEvent),(la=Gi==null?void 0:Gi.onChange)===null||la===void 0||la.call(Gi,Ca)}})),checked:Ra}}:Jr=(Ji,fa,oa)=>{var ka;const Ra=Qt(fa,oa),Gi=Xr.has(Ra),Ca=ya.has(Ra),la=ei.get(Ra);let Va;return dn==="nest"?Va=Ca:Va=(ka=la==null?void 0:la.indeterminate)!==null&&ka!==void 0?ka:Ca,{node:i.createElement(Vr.default,Object.assign({},la,{indeterminate:Va,checked:Gi,skipGroup:!0,onClick:wa=>{var Ja;wa.stopPropagation(),(Ja=la==null?void 0:la.onClick)===null||Ja===void 0||Ja.call(la,wa)},onChange:wa=>{var Ja;const{nativeEvent:xs}=wa,{shiftKey:fo}=xs,_a=Si.findIndex(qa=>qa===Ra),Do=xi.some(qa=>Si.includes(qa));if(fo&&k&&Do){const qa=ir(_a,Si,Xr),ms=Array.from(Xr);kn==null||kn(!Gi,ms.map(ps=>Et(ps)),qa.map(ps=>Et(ps))),yi(ms,"multiple")}else{const qa=xi;if(k){const ms=Gi?(0,$r._5)(qa,Ra):(0,$r.L0)(qa,Ra);ui(Ra,!Gi,ms,xs)}else{const ms=(0,Mr.S)([].concat((0,Qe.Z)(qa),[Ra]),!0,Yr,Ri),{checkedKeys:ps,halfCheckedKeys:is}=ms;let es=ps;if(Gi){const Es=new Set(ps);Es.delete(Ra),es=(0,Mr.S)(Array.from(Es),{checked:!1,halfCheckedKeys:is},Yr,Ri).checkedKeys}ui(Ra,!Gi,es,xs)}}er(Gi?null:_a),(Ja=la==null?void 0:la.onChange)===null||Ja===void 0||Ja.call(la,wa)}})),checked:Gi}};const ai=(Ji,fa,oa)=>{const{node:ka,checked:Ra}=Jr(Ji,fa,oa);return h?h(Ra,fa,oa,ka):ka};if(!jr.includes(Tn))if(jr.findIndex(Ji=>{var fa;return((fa=Ji[st])===null||fa===void 0?void 0:fa.columnType)==="EXPAND_COLUMN"})===0){const[Ji,...fa]=jr;jr=[Ji,Tn].concat((0,Qe.Z)(fa))}else jr=[Tn].concat((0,Qe.Z)(jr));const Bi=jr.indexOf(Tn);jr=jr.filter((Ji,fa)=>Ji!==Tn||fa===Bi);const ta=jr[Bi-1],Fi=jr[Bi+1];let Ha=f;Ha===void 0&&((Fi==null?void 0:Fi.fixed)!==void 0?Ha=Fi.fixed:(ta==null?void 0:ta.fixed)!==void 0&&(Ha=ta.fixed)),Ha&&ta&&((gi=ta[st])===null||gi===void 0?void 0:gi.columnType)==="EXPAND_COLUMN"&&ta.fixed===void 0&&(ta.fixed=Ha);const ga=N()(`${J}-selection-col`,{[`${J}-selection-col-with-dropdown`]:c&&j==="checkbox"}),os=()=>ye!=null&&ye.columnTitle?typeof ye.columnTitle=="function"?ye.columnTitle(Na):ye.columnTitle:sa,ba={fixed:Ha,width:Mn,className:`${J}-selection-column`,title:os(),render:ai,onCell:ye.onCell,[st]:{className:ga}};return jr.map(Ji=>Ji===Tn?ba:Ji)},[Qt,pr,ye,xi,Oi,ya,Mn,ca,dn,ei,kn,ui,Ri]),Oi]},bi=u(2738);function ar(be,ye){return be._antProxy=be._antProxy||{},Object.keys(ye).forEach(it=>{if(!(it in be._antProxy)){const At=be[it];be._antProxy[it]=At,be[it]=ye[it]}}),be}function wi(be,ye){return(0,i.useImperativeHandle)(be,()=>{const it=ye(),{nativeElement:At}=it;return typeof Proxy!="undefined"?new Proxy(At,{get(Yt,en){return it[en]?it[en]:Reflect.get(Yt,en)}}):ar(At,it)})}var Yi=u(83010),Wi=u(48755),Mi=u(38406),ki=u(83397),Gr=u(31756),Di=u(13783),ra=u(85981),zi=u(31709),hi=u(29787),Ni=u(57700);function Zi(be){return ye=>{const{prefixCls:it,onExpand:At,record:Yt,expanded:en,expandable:pn}=ye,on=`${it}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:Sn=>{At(Yt,Sn),Sn.stopPropagation()},className:N()(on,{[`${on}-spaced`]:!pn,[`${on}-expanded`]:pn&&en,[`${on}-collapsed`]:pn&&!en}),"aria-label":en?be.collapse:be.expand,"aria-expanded":en})}}var Fr=Zi;function ti(be){return(it,At)=>{const Yt=it.querySelector(`.${be}-container`);let en=At;if(Yt){const pn=getComputedStyle(Yt),on=parseInt(pn.borderLeftWidth,10),Sn=parseInt(pn.borderRightWidth,10);en=At-on-Sn}return en}}const vr=(be,ye)=>"key"in be&&be.key!==void 0&&be.key!==null?be.key:be.dataIndex?Array.isArray(be.dataIndex)?be.dataIndex.join("."):be.dataIndex:ye;function br(be,ye){return ye?`${ye}-${be}`:`${be}`}const Pr=(be,ye)=>typeof be=="function"?be(ye):be,Wr=(be,ye)=>{const it=Pr(be,ye);return Object.prototype.toString.call(it)==="[object Object]"?"":it};var Ci={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xr=Ci,Rr=u(7657),Nr=function(ye,it){return i.createElement(Rr.Z,(0,M.Z)({},ye,{ref:it,icon:xr}))},Zr=i.forwardRef(Nr),ni=Zr,ma=u(9981),Xi=u(40192);function ua(be){const ye=i.useRef(be),it=(0,Xi.Z)();return[()=>ye.current,At=>{ye.current=At,it()}]}var fi=u(7939),ii=u(584),Ti=u(93041),Li=u(78857),ia=u(18287),pa=u(47472),Sa=u(49397),Wa=be=>{const{value:ye,filterSearch:it,tablePrefixCls:At,locale:Yt,onChange:en}=be;return it?i.createElement("div",{className:`${At}-filter-dropdown-search`},i.createElement(Sa.Z,{prefix:i.createElement(pa.Z,null),placeholder:Yt.filterSearchPlaceholder,onChange:en,value:ye,htmlSize:1,className:`${At}-filter-dropdown-search-input`})):null},Ta=u(10228);const vs=be=>{const{keyCode:ye}=be;ye===Ta.Z.ENTER&&be.stopPropagation()};var Ds=i.forwardRef((be,ye)=>i.createElement("div",{className:be.className,onClick:it=>it.stopPropagation(),onKeyDown:vs,ref:ye},be.children));function $a(be){let ye=[];return(be||[]).forEach(it=>{let{value:At,children:Yt}=it;ye.push(At),Yt&&(ye=[].concat((0,Qe.Z)(ye),(0,Qe.Z)($a(Yt))))}),ye}function Rs(be){return be.some(ye=>{let{children:it}=ye;return it})}function za(be,ye){return typeof ye=="string"||typeof ye=="number"?ye==null?void 0:ye.toString().toLowerCase().includes(be.trim().toLowerCase()):!1}function Fs(be){let{filters:ye,prefixCls:it,filteredKeys:At,filterMultiple:Yt,searchValue:en,filterSearch:pn}=be;return ye.map((on,Sn)=>{const yn=String(on.value);if(on.children)return{key:yn||Sn,label:on.text,popupClassName:`${it}-dropdown-submenu`,children:Fs({filters:on.children,prefixCls:it,filteredKeys:At,filterMultiple:Yt,searchValue:en,filterSearch:pn})};const qn=Yt?Vr.default:tn.ZP,kn={key:on.value!==void 0?yn:Sn,label:i.createElement(i.Fragment,null,i.createElement(qn,{checked:At.includes(yn)}),i.createElement("span",null,on.text))};return en.trim()?typeof pn=="function"?pn(en,on)?kn:null:za(en,on.text)?kn:null:kn})}function $s(be){return be||[]}var Vs=be=>{var ye,it,At,Yt;const{tablePrefixCls:en,prefixCls:pn,column:on,dropdownPrefixCls:Sn,columnKey:yn,filterOnClose:qn,filterMultiple:kn,filterMode:Mn="menu",filterSearch:j=!1,filterState:c,triggerFilter:f,locale:h,children:x,getPopupContainer:k,rootClassName:J}=be,{filterResetToDefaultFilteredValue:Oe,defaultFilteredValue:qe,filterDropdownProps:Et={},filterDropdownOpen:Qt,filterDropdownVisible:dn,onFilterDropdownVisibleChange:En,onFilterDropdownOpenChange:Nn}=on,[Un,Kn]=i.useState(!1),ir=!!(c&&(!((ye=c.filteredKeys)===null||ye===void 0)&&ye.length||c.forceFiltered)),er=Jr=>{var ai;Kn(Jr),(ai=Et.onOpenChange)===null||ai===void 0||ai.call(Et,Jr),Nn==null||Nn(Jr),En==null||En(Jr)},nr=(Yt=(At=(it=Et.open)!==null&&it!==void 0?it:Qt)!==null&&At!==void 0?At:dn)!==null&&Yt!==void 0?Yt:Un,hr=c==null?void 0:c.filteredKeys,[Tr,Lr]=ua($s(hr)),pr=Jr=>{let{selectedKeys:ai}=Jr;Lr(ai)},Yr=(Jr,ai)=>{let{node:Bi,checked:ta}=ai;pr(kn?{selectedKeys:Jr}:{selectedKeys:ta&&Bi.key?[Bi.key]:[]})};i.useEffect(()=>{Un&&pr({selectedKeys:$s(hr)})},[hr]);const[ei,Ri]=i.useState([]),xi=Jr=>{Ri(Jr)},[fn,Oi]=i.useState(""),ya=Jr=>{const{value:ai}=Jr.target;Oi(ai)};i.useEffect(()=>{Un||Oi("")},[Un]);const yi=Jr=>{const ai=Jr!=null&&Jr.length?Jr:null;if(ai===null&&(!c||!c.filteredKeys)||(0,H.Z)(ai,c==null?void 0:c.filteredKeys,!0))return null;f({column:on,key:yn,filteredKeys:ai})},ui=()=>{er(!1),yi(Tr())},ca=function(){let{confirm:Jr,closeDropdown:ai}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jr&&yi([]),ai&&er(!1),Oi(""),Lr(Oe?(qe||[]).map(Bi=>String(Bi)):[])},da=function(){let{closeDropdown:Jr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jr&&er(!1),yi(Tr())},Qr=(Jr,ai)=>{ai.source==="trigger"&&(Jr&&hr!==void 0&&Lr($s(hr)),er(Jr),!Jr&&!on.filterDropdown&&qn&&ui())},gi=N()({[`${Sn}-menu-without-submenu`]:!Rs(on.filters||[])}),jr=Jr=>{if(Jr.target.checked){const ai=$a(on==null?void 0:on.filters).map(Bi=>String(Bi));Lr(ai)}else Lr([])},Xr=Jr=>{let{filters:ai}=Jr;return(ai||[]).map((Bi,ta)=>{const Fi=String(Bi.value),Ha={title:Bi.text,key:Bi.value!==void 0?Fi:String(ta)};return Bi.children&&(Ha.children=Xr({filters:Bi.children})),Ha})},Si=Jr=>{var ai;return Object.assign(Object.assign({},Jr),{text:Jr.title,value:Jr.key,children:((ai=Jr.children)===null||ai===void 0?void 0:ai.map(Bi=>Si(Bi)))||[]})};let Ii;const{direction:ea,renderEmpty:Qi}=i.useContext(Wi.E_);if(typeof on.filterDropdown=="function")Ii=on.filterDropdown({prefixCls:`${Sn}-custom`,setSelectedKeys:Jr=>pr({selectedKeys:Jr}),selectedKeys:Tr(),confirm:da,clearFilters:ca,filters:on.filters,visible:nr,close:()=>{er(!1)}});else if(on.filterDropdown)Ii=on.filterDropdown;else{const Jr=Tr()||[],ai=()=>{var ta,Fi;const Ha=(ta=Qi==null?void 0:Qi("Table.filter"))!==null&&ta!==void 0?ta:i.createElement(ii.Z,{image:ii.Z.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((on.filters||[]).length===0)return Ha;if(Mn==="tree")return i.createElement(i.Fragment,null,i.createElement(Wa,{filterSearch:j,value:fn,onChange:ya,tablePrefixCls:en,locale:h}),i.createElement("div",{className:`${en}-filter-dropdown-tree`},kn?i.createElement(Vr.default,{checked:Jr.length===$a(on.filters).length,indeterminate:Jr.length>0&&Jr.length<$a(on.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:jr},(Fi=h==null?void 0:h.filterCheckall)!==null&&Fi!==void 0?Fi:h==null?void 0:h.filterCheckAll):null,i.createElement(ia.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:kn,checkStrictly:!kn,className:`${Sn}-menu`,onCheck:Yr,checkedKeys:Jr,selectedKeys:Jr,showIcon:!1,treeData:Xr({filters:on.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:fn.trim()?ba=>typeof j=="function"?j(fn,Si(ba)):za(fn,ba.title):void 0})));const ga=Fs({filters:on.filters||[],filterSearch:j,prefixCls:pn,filteredKeys:Tr(),filterMultiple:kn,searchValue:fn}),os=ga.every(ba=>ba===null);return i.createElement(i.Fragment,null,i.createElement(Wa,{filterSearch:j,value:fn,onChange:ya,tablePrefixCls:en,locale:h}),os?Ha:i.createElement(Ti.default,{selectable:!0,multiple:kn,prefixCls:`${Sn}-menu`,className:gi,onSelect:pr,onDeselect:pr,selectedKeys:Jr,getPopupContainer:k,openKeys:ei,onOpenChange:xi,items:ga}))},Bi=()=>Oe?(0,H.Z)((qe||[]).map(ta=>String(ta)),Jr,!0):Jr.length===0;Ii=i.createElement(i.Fragment,null,ai(),i.createElement("div",{className:`${pn}-dropdown-btns`},i.createElement(fi.ZP,{type:"link",size:"small",disabled:Bi(),onClick:()=>ca()},h.filterReset),i.createElement(fi.ZP,{type:"primary",size:"small",onClick:ui},h.filterConfirm)))}on.filterDropdown&&(Ii=i.createElement(Li.J,{selectable:void 0},Ii)),Ii=i.createElement(Ds,{className:`${pn}-dropdown`},Ii);const sa=()=>{let Jr;return typeof on.filterIcon=="function"?Jr=on.filterIcon(ir):on.filterIcon?Jr=on.filterIcon:Jr=i.createElement(ni,null),i.createElement("span",{role:"button",tabIndex:-1,className:N()(`${pn}-trigger`,{active:ir}),onClick:ai=>{ai.stopPropagation()}},Jr)},Na=(0,ma.Z)({trigger:["click"],placement:ea==="rtl"?"bottomLeft":"bottomRight",children:sa(),getPopupContainer:k},Object.assign(Object.assign({},Et),{rootClassName:N()(J,Et.rootClassName),open:nr,onOpenChange:Qr,dropdownRender:()=>typeof(Et==null?void 0:Et.dropdownRender)=="function"?Et.dropdownRender(Ii):Ii}));return i.createElement("div",{className:`${pn}-column`},i.createElement("span",{className:`${en}-column-title`},x),i.createElement(Ir.Z,Object.assign({},Na)))};const ds=(be,ye,it)=>{let At=[];return(be||[]).forEach((Yt,en)=>{var pn;const on=br(en,it);if(Yt.filters||"filterDropdown"in Yt||"onFilter"in Yt)if("filteredValue"in Yt){let Sn=Yt.filteredValue;"filterDropdown"in Yt||(Sn=(pn=Sn==null?void 0:Sn.map(String))!==null&&pn!==void 0?pn:Sn),At.push({column:Yt,key:vr(Yt,on),filteredKeys:Sn,forceFiltered:Yt.filtered})}else At.push({column:Yt,key:vr(Yt,on),filteredKeys:ye&&Yt.defaultFilteredValue?Yt.defaultFilteredValue:void 0,forceFiltered:Yt.filtered});"children"in Yt&&(At=[].concat((0,Qe.Z)(At),(0,Qe.Z)(ds(Yt.children,ye,on))))}),At};function Ya(be,ye,it,At,Yt,en,pn,on,Sn){return it.map((yn,qn)=>{const kn=br(qn,on),{filterOnClose:Mn=!0,filterMultiple:j=!0,filterMode:c,filterSearch:f}=yn;let h=yn;if(h.filters||h.filterDropdown){const x=vr(h,kn),k=At.find(J=>{let{key:Oe}=J;return x===Oe});h=Object.assign(Object.assign({},h),{title:J=>i.createElement(Vs,{tablePrefixCls:be,prefixCls:`${be}-filter`,dropdownPrefixCls:ye,column:h,columnKey:x,filterState:k,filterOnClose:Mn,filterMultiple:j,filterMode:c,filterSearch:f,triggerFilter:en,locale:Yt,getPopupContainer:pn,rootClassName:Sn},Pr(yn.title,J))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ya(be,ye,h.children,At,Yt,en,pn,kn,Sn)})),h})}const Ai=be=>{const ye={};return be.forEach(it=>{let{key:At,filteredKeys:Yt,column:en}=it;const pn=At,{filters:on,filterDropdown:Sn}=en;if(Sn)ye[pn]=Yt||null;else if(Array.isArray(Yt)){const yn=$a(on);ye[pn]=yn.filter(qn=>Yt.includes(String(qn)))}else ye[pn]=null}),ye},mi=(be,ye,it)=>ye.reduce((Yt,en)=>{const{column:{onFilter:pn,filters:on},filteredKeys:Sn}=en;return pn&&Sn&&Sn.length?Yt.map(yn=>Object.assign({},yn)).filter(yn=>Sn.some(qn=>{const kn=$a(on),Mn=kn.findIndex(c=>String(c)===String(qn)),j=Mn!==-1?kn[Mn]:qn;return yn[it]&&(yn[it]=mi(yn[it],ye,it)),pn(j,yn)})):Yt},be),Aa=be=>be.flatMap(ye=>"children"in ye?[ye].concat((0,Qe.Z)(Aa(ye.children||[]))):[ye]);var ji=be=>{const{prefixCls:ye,dropdownPrefixCls:it,mergedColumns:At,onFilterChange:Yt,getPopupContainer:en,locale:pn,rootClassName:on}=be,Sn=(0,wr.ln)("Table"),yn=i.useMemo(()=>Aa(At||[]),[At]),[qn,kn]=i.useState(()=>ds(yn,!0)),Mn=i.useMemo(()=>{const h=ds(yn,!1);if(h.length===0)return h;let x=!0,k=!0;if(h.forEach(J=>{let{filteredKeys:Oe}=J;Oe!==void 0?x=!1:k=!1}),x){const J=(yn||[]).map((Oe,qe)=>vr(Oe,br(qe)));return qn.filter(Oe=>{let{key:qe}=Oe;return J.includes(qe)}).map(Oe=>{const qe=yn[J.findIndex(Et=>Et===Oe.key)];return Object.assign(Object.assign({},Oe),{column:Object.assign(Object.assign({},Oe.column),qe),forceFiltered:qe.filtered})})}return h},[yn,qn]),j=i.useMemo(()=>Ai(Mn),[Mn]),c=h=>{const x=Mn.filter(k=>{let{key:J}=k;return J!==h.key});x.push(h),kn(x),Yt(Ai(x),x)};return[h=>Ya(ye,it,h,Mn,pn,c,en,void 0,on),Mn,j]},Za=(be,ye,it)=>{const At=i.useRef({});function Yt(en){var pn;if(!At.current||At.current.data!==be||At.current.childrenColumnName!==ye||At.current.getRowKey!==it){let Sn=function(yn){yn.forEach((qn,kn)=>{const Mn=it(qn,kn);on.set(Mn,qn),qn&&typeof qn=="object"&&ye in qn&&Sn(qn[ye]||[])})};const on=new Map;Sn(be),At.current={data:be,childrenColumnName:ye,kvMap:on,getRowKey:it}}return(pn=At.current.kvMap)===null||pn===void 0?void 0:pn.get(en)}return[Yt]},ja=function(be,ye){var it={};for(var At in be)Object.prototype.hasOwnProperty.call(be,At)&&ye.indexOf(At)<0&&(it[At]=be[At]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,At=Object.getOwnPropertySymbols(be);Yt<At.length;Yt++)ye.indexOf(At[Yt])<0&&Object.prototype.propertyIsEnumerable.call(be,At[Yt])&&(it[At[Yt]]=be[At[Yt]]);return it};const rs=10;function Pa(be,ye){const it={current:be.current,pageSize:be.pageSize};return Object.keys(ye&&typeof ye=="object"?ye:{}).forEach(Yt=>{const en=be[Yt];typeof en!="function"&&(it[Yt]=en)}),it}function ss(be,ye,it){const At=it&&typeof it=="object"?it:{},{total:Yt=0}=At,en=ja(At,["total"]),[pn,on]=(0,i.useState)(()=>({current:"defaultCurrent"in en?en.defaultCurrent:1,pageSize:"defaultPageSize"in en?en.defaultPageSize:rs})),Sn=(0,ma.Z)(pn,en,{total:Yt>0?Yt:be}),yn=Math.ceil((Yt||be)/Sn.pageSize);Sn.current>yn&&(Sn.current=yn||1);const qn=(Mn,j)=>{on({current:Mn!=null?Mn:1,pageSize:j||Sn.pageSize})},kn=(Mn,j)=>{var c;it&&((c=it.onChange)===null||c===void 0||c.call(it,Mn,j)),qn(Mn,j),ye(Mn,j||(Sn==null?void 0:Sn.pageSize))};return it===!1?[{},()=>{}]:[Object.assign(Object.assign({},Sn),{onChange:kn}),qn]}var Xa=ss,fs=u(89489),hs=u(59477),Gs=u(25399);const Ui="ascend",Vi="descend",aa=be=>typeof be.sorter=="object"&&typeof be.sorter.multiple=="number"?be.sorter.multiple:!1,Ma=be=>typeof be=="function"?be:be&&typeof be=="object"&&be.compare?be.compare:!1,Ua=(be,ye)=>ye?be[be.indexOf(ye)+1]:be[0],ws=(be,ye,it)=>{let At=[];const Yt=(en,pn)=>{At.push({column:en,key:vr(en,pn),multiplePriority:aa(en),sortOrder:en.sortOrder})};return(be||[]).forEach((en,pn)=>{const on=br(pn,it);en.children?("sortOrder"in en&&Yt(en,on),At=[].concat((0,Qe.Z)(At),(0,Qe.Z)(ws(en.children,ye,on)))):en.sorter&&("sortOrder"in en?Yt(en,on):ye&&en.defaultSortOrder&&At.push({column:en,key:vr(en,on),multiplePriority:aa(en),sortOrder:en.defaultSortOrder}))}),At},Ls=(be,ye,it,At,Yt,en,pn,on)=>(ye||[]).map((yn,qn)=>{const kn=br(qn,on);let Mn=yn;if(Mn.sorter){const j=Mn.sortDirections||Yt,c=Mn.showSorterTooltip===void 0?pn:Mn.showSorterTooltip,f=vr(Mn,kn),h=it.find(En=>{let{key:Nn}=En;return Nn===f}),x=h?h.sortOrder:null,k=Ua(j,x);let J;if(yn.sortIcon)J=yn.sortIcon({sortOrder:x});else{const En=j.includes(Ui)&&i.createElement(hs.Z,{className:N()(`${be}-column-sorter-up`,{active:x===Ui})}),Nn=j.includes(Vi)&&i.createElement(fs.Z,{className:N()(`${be}-column-sorter-down`,{active:x===Vi})});J=i.createElement("span",{className:N()(`${be}-column-sorter`,{[`${be}-column-sorter-full`]:!!(En&&Nn)})},i.createElement("span",{className:`${be}-column-sorter-inner`,"aria-hidden":"true"},En,Nn))}const{cancelSort:Oe,triggerAsc:qe,triggerDesc:Et}=en||{};let Qt=Oe;k===Vi?Qt=Et:k===Ui&&(Qt=qe);const dn=typeof c=="object"?Object.assign({title:Qt},c):{title:Qt};Mn=Object.assign(Object.assign({},Mn),{className:N()(Mn.className,{[`${be}-column-sort`]:x}),title:En=>{const Nn=`${be}-column-sorters`,Un=i.createElement("span",{className:`${be}-column-title`},Pr(yn.title,En)),Kn=i.createElement("div",{className:Nn},Un,J);return c?typeof c!="boolean"&&(c==null?void 0:c.target)==="sorter-icon"?i.createElement("div",{className:`${Nn} ${be}-column-sorters-tooltip-target-sorter`},Un,i.createElement(Gs.Z,Object.assign({},dn),J)):i.createElement(Gs.Z,Object.assign({},dn),Kn):Kn},onHeaderCell:En=>{var Nn;const Un=((Nn=yn.onHeaderCell)===null||Nn===void 0?void 0:Nn.call(yn,En))||{},Kn=Un.onClick,ir=Un.onKeyDown;Un.onClick=hr=>{At({column:yn,key:f,sortOrder:k,multiplePriority:aa(yn)}),Kn==null||Kn(hr)},Un.onKeyDown=hr=>{hr.keyCode===Ta.Z.ENTER&&(At({column:yn,key:f,sortOrder:k,multiplePriority:aa(yn)}),ir==null||ir(hr))};const er=Wr(yn.title,{}),nr=er==null?void 0:er.toString();return x&&(Un["aria-sort"]=x==="ascend"?"ascending":"descending"),Un["aria-label"]=nr||"",Un.className=N()(Un.className,`${be}-column-has-sorters`),Un.tabIndex=0,yn.ellipsis&&(Un.title=(er!=null?er:"").toString()),Un}})}return"children"in Mn&&(Mn=Object.assign(Object.assign({},Mn),{children:Ls(be,Mn.children,it,At,Yt,en,pn,kn)})),Mn}),ys=be=>{const{column:ye,sortOrder:it}=be;return{column:ye,order:it,field:ye.dataIndex,columnKey:ye.key}},Ys=be=>{const ye=be.filter(it=>{let{sortOrder:At}=it;return At}).map(ys);if(ye.length===0&&be.length){const it=be.length-1;return Object.assign(Object.assign({},ys(be[it])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ye.length<=1?ye[0]||{}:ye},Os=(be,ye,it)=>{const At=ye.slice().sort((pn,on)=>on.multiplePriority-pn.multiplePriority),Yt=be.slice(),en=At.filter(pn=>{let{column:{sorter:on},sortOrder:Sn}=pn;return Ma(on)&&Sn});return en.length?Yt.sort((pn,on)=>{for(let Sn=0;Sn<en.length;Sn+=1){const yn=en[Sn],{column:{sorter:qn},sortOrder:kn}=yn,Mn=Ma(qn);if(Mn&&kn){const j=Mn(pn,on,kn);if(j!==0)return kn===Ui?j:-j}}return 0}).map(pn=>{const on=pn[it];return on?Object.assign(Object.assign({},pn),{[it]:Os(on,ye,it)}):pn}):Yt};var Xs=be=>{const{prefixCls:ye,mergedColumns:it,sortDirections:At,tableLocale:Yt,showSorterTooltip:en,onSorterChange:pn}=be,[on,Sn]=i.useState(ws(it,!0)),yn=(f,h)=>{const x=[];return f.forEach((k,J)=>{const Oe=br(J,h);if(x.push(vr(k,Oe)),Array.isArray(k.children)){const qe=yn(k.children,Oe);x.push.apply(x,(0,Qe.Z)(qe))}}),x},qn=i.useMemo(()=>{let f=!0;const h=ws(it,!1);if(!h.length){const Oe=yn(it);return on.filter(qe=>{let{key:Et}=qe;return Oe.includes(Et)})}const x=[];function k(Oe){f?x.push(Oe):x.push(Object.assign(Object.assign({},Oe),{sortOrder:null}))}let J=null;return h.forEach(Oe=>{J===null?(k(Oe),Oe.sortOrder&&(Oe.multiplePriority===!1?f=!1:J=!0)):(J&&Oe.multiplePriority!==!1||(f=!1),k(Oe))}),x},[it,on]),kn=i.useMemo(()=>{var f,h;const x=qn.map(k=>{let{column:J,sortOrder:Oe}=k;return{column:J,order:Oe}});return{sortColumns:x,sortColumn:(f=x[0])===null||f===void 0?void 0:f.column,sortOrder:(h=x[0])===null||h===void 0?void 0:h.order}},[qn]),Mn=f=>{let h;f.multiplePriority===!1||!qn.length||qn[0].multiplePriority===!1?h=[f]:h=[].concat((0,Qe.Z)(qn.filter(x=>{let{key:k}=x;return k!==f.key})),[f]),Sn(h),pn(Ys(h),h)};return[f=>Ls(ye,f,qn,Mn,At,Yt,en),qn,kn,()=>Ys(qn)]};const zs=(be,ye)=>be.map(At=>{const Yt=Object.assign({},At);return Yt.title=Pr(At.title,ye),"children"in Yt&&(Yt.children=zs(Yt.children,ye)),Yt});var Ka=be=>[i.useCallback(it=>zs(it,be),[be])],Bo=Dn((be,ye)=>{const{_renderTimes:it}=be,{_renderTimes:At}=ye;return it!==At}),oo=xn((be,ye)=>{const{_renderTimes:it}=be,{_renderTimes:At}=ye;return it!==At}),ci=u(36237),Zs=u(17835),Qs=u(63356),Ms=u(16931),Js=u(51636),rl=be=>{const{componentCls:ye,lineWidth:it,lineType:At,tableBorderColor:Yt,tableHeaderBg:en,tablePaddingVertical:pn,tablePaddingHorizontal:on,calc:Sn}=be,yn=`${(0,ci.unit)(it)} ${At} ${Yt}`,qn=(kn,Mn,j)=>({[`&${ye}-${kn}`]:{[`> ${ye}-container`]:{[`> ${ye}-content, > ${ye}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ye}-expanded-row-fixed`]:{margin:`${(0,ci.unit)(Sn(Mn).mul(-1).equal())}
${(0,ci.unit)(Sn(Sn(j).add(it)).mul(-1).equal())}`}}}}}});return{[`${ye}-wrapper`]:{[`${ye}${ye}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ye}-title`]:{border:yn,borderBottom:0},[`> ${ye}-container`]:{borderInlineStart:yn,borderTop:yn,[`
> ${ye}-content,
> ${ye}-header,
> ${ye}-body,
> ${ye}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:yn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:yn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ye}-cell-fix-right-first::after`]:{borderInlineEnd:yn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ye}-expanded-row-fixed`]:{margin:`${(0,ci.unit)(Sn(pn).mul(-1).equal())} ${(0,ci.unit)(Sn(Sn(on).add(it)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:it,bottom:0,borderInlineEnd:yn,content:'""'}}}}}},[`&${ye}-scroll-horizontal`]:{[`> ${ye}-container > ${ye}-body`]:{"> table > tbody":{[`
> tr${ye}-expanded-row,
> tr${ye}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},qn("middle",be.tablePaddingVerticalMiddle,be.tablePaddingHorizontalMiddle)),qn("small",be.tablePaddingVerticalSmall,be.tablePaddingHorizontalSmall)),{[`> ${ye}-footer`]:{border:yn,borderTop:0}}),[`${ye}-cell`]:{[`${ye}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ci.unit)(it)} 0 ${(0,ci.unit)(it)} ${en}`}},[`${ye}-bordered ${ye}-cell-scrollbar`]:{borderInlineEnd:yn}}}},lo=be=>{const{componentCls:ye}=be;return{[`${ye}-wrapper`]:{[`${ye}-cell-ellipsis`]:Object.assign(Object.assign({},Qs.vS),{wordBreak:"keep-all",[`
&${ye}-cell-fix-left-last,
&${ye}-cell-fix-right-first
`]:{overflow:"visible",[`${ye}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ye}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Fo=be=>{const{componentCls:ye}=be;return{[`${ye}-wrapper`]:{[`${ye}-tbody > tr${ye}-placeholder`]:{textAlign:"center",color:be.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:be.colorBgContainer}}}}},$o=be=>{const{componentCls:ye,antCls:it,motionDurationSlow:At,lineWidth:Yt,paddingXS:en,lineType:pn,tableBorderColor:on,tableExpandIconBg:Sn,tableExpandColumnWidth:yn,borderRadius:qn,tablePaddingVertical:kn,tablePaddingHorizontal:Mn,tableExpandedRowBg:j,paddingXXS:c,expandIconMarginTop:f,expandIconSize:h,expandIconHalfInner:x,expandIconScale:k,calc:J}=be,Oe=`${(0,ci.unit)(Yt)} ${pn} ${on}`,qe=J(c).sub(Yt).equal();return{[`${ye}-wrapper`]:{[`${ye}-expand-icon-col`]:{width:yn},[`${ye}-row-expand-icon-cell`]:{textAlign:"center",[`${ye}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ye}-row-indent`]:{height:1,float:"left"},[`${ye}-row-expand-icon`]:Object.assign(Object.assign({},(0,Qs.Nd)(be)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,ci.unit)(h),background:Sn,border:Oe,borderRadius:qn,transform:`scale(${k})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${At} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:qe,insetInlineStart:qe,height:Yt},"&::after":{top:qe,bottom:qe,insetInlineStart:x,width:Yt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ye}-row-indent + ${ye}-row-expand-icon`]:{marginTop:f,marginInlineEnd:en},[`tr${ye}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:j}},[`${it}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ye}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ci.unit)(J(kn).mul(-1).equal())} ${(0,ci.unit)(J(Mn).mul(-1).equal())}`,padding:`${(0,ci.unit)(kn)} ${(0,ci.unit)(Mn)}`}}}},Eo=be=>{const{componentCls:ye,antCls:it,iconCls:At,tableFilterDropdownWidth:Yt,tableFilterDropdownSearchWidth:en,paddingXXS:pn,paddingXS:on,colorText:Sn,lineWidth:yn,lineType:qn,tableBorderColor:kn,headerIconColor:Mn,fontSizeSM:j,tablePaddingHorizontal:c,borderRadius:f,motionDurationSlow:h,colorTextDescription:x,colorPrimary:k,tableHeaderFilterActiveBg:J,colorTextDisabled:Oe,tableFilterDropdownBg:qe,tableFilterDropdownHeight:Et,controlItemBgHover:Qt,controlItemBgActive:dn,boxShadowSecondary:En,filterDropdownMenuBg:Nn,calc:Un}=be,Kn=`${it}-dropdown`,ir=`${ye}-filter-dropdown`,er=`${it}-tree`,nr=`${(0,ci.unit)(yn)} ${qn} ${kn}`;return[{[`${ye}-wrapper`]:{[`${ye}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ye}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Un(pn).mul(-1).equal(),marginInline:`${(0,ci.unit)(pn)} ${(0,ci.unit)(Un(c).div(2).mul(-1).equal())}`,padding:`0 ${(0,ci.unit)(pn)}`,color:Mn,fontSize:j,borderRadius:f,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:x,background:J},"&.active":{color:k}}}},{[`${it}-dropdown`]:{[ir]:Object.assign(Object.assign({},(0,Qs.Wf)(be)),{minWidth:Yt,backgroundColor:qe,borderRadius:f,boxShadow:En,overflow:"hidden",[`${Kn}-menu`]:{maxHeight:Et,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Nn,"&:empty::after":{display:"block",padding:`${(0,ci.unit)(on)} 0`,color:Oe,fontSize:j,textAlign:"center",content:'"Not Found"'}},[`${ir}-tree`]:{paddingBlock:`${(0,ci.unit)(on)} 0`,paddingInline:on,[er]:{padding:0},[`${er}-treenode ${er}-node-content-wrapper:hover`]:{backgroundColor:Qt},[`${er}-treenode-checkbox-checked ${er}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:dn}}},[`${ir}-search`]:{padding:on,borderBottom:nr,"&-input":{input:{minWidth:en},[At]:{color:Oe}}},[`${ir}-checkall`]:{width:"100%",marginBottom:pn,marginInlineStart:pn},[`${ir}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ci.unit)(Un(on).sub(yn).equal())} ${(0,ci.unit)(on)}`,overflow:"hidden",borderTop:nr}})}},{[`${it}-dropdown ${ir}, ${ir}-submenu`]:{[`${it}-checkbox-wrapper + span`]:{paddingInlineStart:on,color:Sn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},eo=be=>{const{componentCls:ye,lineWidth:it,colorSplit:At,motionDurationSlow:Yt,zIndexTableFixed:en,tableBg:pn,zIndexTableSticky:on,calc:Sn}=be,yn=At;return{[`${ye}-wrapper`]:{[`
${ye}-cell-fix-left,
${ye}-cell-fix-right
`]:{position:"sticky !important",zIndex:en,background:pn},[`
${ye}-cell-fix-left-first::after,
${ye}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Sn(it).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Yt}`,content:'""',pointerEvents:"none"},[`${ye}-cell-fix-left-all::after`]:{display:"none"},[`
${ye}-cell-fix-right-first::after,
${ye}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:Sn(it).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Yt}`,content:'""',pointerEvents:"none"},[`${ye}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Sn(on).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Yt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ye}-ping-left`]:{[`&:not(${ye}-has-fix-left) ${ye}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${yn}`},[`
${ye}-cell-fix-left-first::after,
${ye}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${yn}`},[`${ye}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ye}-ping-right`]:{[`&:not(${ye}-has-fix-right) ${ye}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${yn}`},[`
${ye}-cell-fix-right-first::after,
${ye}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${yn}`}},[`${ye}-fixed-column-gapped`]:{[`
${ye}-cell-fix-left-first::after,
${ye}-cell-fix-left-last::after,
${ye}-cell-fix-right-first::after,
${ye}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},zo=be=>{const{componentCls:ye,antCls:it,margin:At}=be;return{[`${ye}-wrapper`]:{[`${ye}-pagination${it}-pagination`]:{margin:`${(0,ci.unit)(At)} 0`},[`${ye}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:be.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},jo=be=>{const{componentCls:ye,tableRadius:it}=be;return{[`${ye}-wrapper`]:{[ye]:{[`${ye}-title, ${ye}-header`]:{borderRadius:`${(0,ci.unit)(it)} ${(0,ci.unit)(it)} 0 0`},[`${ye}-title + ${ye}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ye}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:it,borderStartEndRadius:it,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:it},"> *:last-child":{borderStartEndRadius:it}}},"&-footer":{borderRadius:`0 0 ${(0,ci.unit)(it)} ${(0,ci.unit)(it)}`}}}}},Uo=be=>{const{componentCls:ye}=be;return{[`${ye}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ye}-pagination-left`]:{justifyContent:"flex-end"},[`${ye}-pagination-right`]:{justifyContent:"flex-start"},[`${ye}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ye}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ye}-row-indent`]:{float:"right"}}}}},co=be=>{const{componentCls:ye,antCls:it,iconCls:At,fontSizeIcon:Yt,padding:en,paddingXS:pn,headerIconColor:on,headerIconHoverColor:Sn,tableSelectionColumnWidth:yn,tableSelectedRowBg:qn,tableSelectedRowHoverBg:kn,tableRowHoverBg:Mn,tablePaddingHorizontal:j,calc:c}=be;return{[`${ye}-wrapper`]:{[`${ye}-selection-col`]:{width:yn,[`&${ye}-selection-col-with-dropdown`]:{width:c(yn).add(Yt).add(c(en).div(4)).equal()}},[`${ye}-bordered ${ye}-selection-col`]:{width:c(yn).add(c(pn).mul(2)).equal(),[`&${ye}-selection-col-with-dropdown`]:{width:c(yn).add(Yt).add(c(en).div(4)).add(c(pn).mul(2)).equal()}},[`
table tr th${ye}-selection-column,
table tr td${ye}-selection-column,
${ye}-selection-column
`]:{paddingInlineEnd:be.paddingXS,paddingInlineStart:be.paddingXS,textAlign:"center",[`${it}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ye}-selection-column${ye}-cell-fix-left`]:{zIndex:c(be.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ye}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ye}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ye}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ci.unit)(c(j).div(4).equal()),[At]:{color:on,fontSize:Yt,verticalAlign:"baseline","&:hover":{color:Sn}}},[`${ye}-tbody`]:{[`${ye}-row`]:{[`&${ye}-row-selected`]:{[`> ${ye}-cell`]:{background:qn,"&-row-hover":{background:kn}}},[`> ${ye}-cell-row-hover`]:{background:Mn}}}}}},Co=be=>{const{componentCls:ye,tableExpandColumnWidth:it,calc:At}=be,Yt=(en,pn,on,Sn)=>({[`${ye}${ye}-${en}`]:{fontSize:Sn,[`
${ye}-title,
${ye}-footer,
${ye}-cell,
${ye}-thead > tr > th,
${ye}-tbody > tr > th,
${ye}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,ci.unit)(pn)} ${(0,ci.unit)(on)}`},[`${ye}-filter-trigger`]:{marginInlineEnd:(0,ci.unit)(At(on).div(2).mul(-1).equal())},[`${ye}-expanded-row-fixed`]:{margin:`${(0,ci.unit)(At(pn).mul(-1).equal())} ${(0,ci.unit)(At(on).mul(-1).equal())}`},[`${ye}-tbody`]:{[`${ye}-wrapper:only-child ${ye}`]:{marginBlock:(0,ci.unit)(At(pn).mul(-1).equal()),marginInline:`${(0,ci.unit)(At(it).sub(on).equal())} ${(0,ci.unit)(At(on).mul(-1).equal())}`}},[`${ye}-selection-extra`]:{paddingInlineStart:(0,ci.unit)(At(on).div(4).equal())}}});return{[`${ye}-wrapper`]:Object.assign(Object.assign({},Yt("middle",be.tablePaddingVerticalMiddle,be.tablePaddingHorizontalMiddle,be.tableFontSizeMiddle)),Yt("small",be.tablePaddingVerticalSmall,be.tablePaddingHorizontalSmall,be.tableFontSizeSmall))}},al=be=>{const{componentCls:ye,marginXXS:it,fontSizeIcon:At,headerIconColor:Yt,headerIconHoverColor:en}=be;return{[`${ye}-wrapper`]:{[`${ye}-thead th${ye}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${be.motionDurationSlow}, left 0s`,"&:hover":{background:be.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:be.colorPrimary},[`
&${ye}-cell-fix-left:hover,
&${ye}-cell-fix-right:hover
`]:{background:be.tableFixedHeaderSortActiveBg}},[`${ye}-thead th${ye}-column-sort`]:{background:be.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ye}-column-sort`]:{background:be.tableBodySortBg},[`${ye}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ye}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ye}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ye}-column-sorter`]:{marginInlineStart:it,color:Yt,fontSize:0,transition:`color ${be.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:At,"&.active":{color:be.colorPrimary}},[`${ye}-column-sorter-up + ${ye}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ye}-column-sorters:hover ${ye}-column-sorter`]:{color:en}}}},wo=be=>{const{componentCls:ye,opacityLoading:it,tableScrollThumbBg:At,tableScrollThumbBgHover:Yt,tableScrollThumbSize:en,tableScrollBg:pn,zIndexTableSticky:on,stickyScrollBarBorderRadius:Sn,lineWidth:yn,lineType:qn,tableBorderColor:kn}=be,Mn=`${(0,ci.unit)(yn)} ${qn} ${kn}`;return{[`${ye}-wrapper`]:{[`${ye}-sticky`]:{"&-holder":{position:"sticky",zIndex:on,background:be.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ci.unit)(en)} !important`,zIndex:on,display:"flex",alignItems:"center",background:pn,borderTop:Mn,opacity:it,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:en,backgroundColor:At,borderRadius:Sn,transition:`all ${be.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Yt}}}}}}},go=be=>{const{componentCls:ye,lineWidth:it,tableBorderColor:At,calc:Yt}=be,en=`${(0,ci.unit)(it)} ${be.lineType} ${At}`;return{[`${ye}-wrapper`]:{[`${ye}-summary`]:{position:"relative",zIndex:be.zIndexTableFixed,background:be.tableBg,"> tr":{"> th, > td":{borderBottom:en}}},[`div${ye}-summary`]:{boxShadow:`0 ${(0,ci.unit)(Yt(it).mul(-1).equal())} 0 ${At}`}}}},ll=be=>{const{componentCls:ye,motionDurationMid:it,lineWidth:At,lineType:Yt,tableBorderColor:en,calc:pn}=be,on=`${(0,ci.unit)(At)} ${Yt} ${en}`,Sn=`${ye}-expanded-row-cell`;return{[`${ye}-wrapper`]:{[`${ye}-tbody-virtual`]:{[`${ye}-tbody-virtual-holder-inner`]:{[`
& > ${ye}-row,
& > div:not(${ye}-row) > ${ye}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ye}-cell`]:{borderBottom:on,transition:`background ${it}`},[`${ye}-expanded-row`]:{[`${Sn}${Sn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ci.unit)(At)})`,borderInlineEnd:"none"}}},[`${ye}-bordered`]:{[`${ye}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:on,position:"absolute"},[`${ye}-cell`]:{borderInlineEnd:on,[`&${ye}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:pn(At).mul(-1).equal(),borderInlineStart:on}}},[`&${ye}-virtual`]:{[`${ye}-placeholder ${ye}-cell`]:{borderInlineEnd:on,borderBottom:on}}}}}};const Ho=be=>{const{componentCls:ye,fontWeightStrong:it,tablePaddingVertical:At,tablePaddingHorizontal:Yt,tableExpandColumnWidth:en,lineWidth:pn,lineType:on,tableBorderColor:Sn,tableFontSize:yn,tableBg:qn,tableRadius:kn,tableHeaderTextColor:Mn,motionDurationMid:j,tableHeaderBg:c,tableHeaderCellSplitColor:f,tableFooterTextColor:h,tableFooterBg:x,calc:k}=be,J=`${(0,ci.unit)(pn)} ${on} ${Sn}`;return{[`${ye}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Qs.dF)()),{[ye]:Object.assign(Object.assign({},(0,Qs.Wf)(be)),{fontSize:yn,background:qn,borderRadius:`${(0,ci.unit)(kn)} ${(0,ci.unit)(kn)} 0 0`,scrollbarColor:`${be.tableScrollThumbBg} ${be.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ci.unit)(kn)} ${(0,ci.unit)(kn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ye}-cell,
${ye}-thead > tr > th,
${ye}-tbody > tr > th,
${ye}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,ci.unit)(At)} ${(0,ci.unit)(Yt)}`,overflowWrap:"break-word"},[`${ye}-title`]:{padding:`${(0,ci.unit)(At)} ${(0,ci.unit)(Yt)}`},[`${ye}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Mn,fontWeight:it,textAlign:"start",background:c,borderBottom:J,transition:`background ${j} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ye}-selection-column):not(${ye}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:f,transform:"translateY(-50%)",transition:`background-color ${j}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ye}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${j}, border-color ${j}`,borderBottom:J,[`
> ${ye}-wrapper:only-child,
> ${ye}-expanded-row-fixed > ${ye}-wrapper:only-child
`]:{[ye]:{marginBlock:(0,ci.unit)(k(At).mul(-1).equal()),marginInline:`${(0,ci.unit)(k(en).sub(Yt).equal())}
${(0,ci.unit)(k(Yt).mul(-1).equal())}`,[`${ye}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Mn,fontWeight:it,textAlign:"start",background:c,borderBottom:J,transition:`background ${j} ease`}}},[`${ye}-footer`]:{padding:`${(0,ci.unit)(At)} ${(0,ci.unit)(Yt)}`,color:h,background:x}})}},ul=be=>{const{colorFillAlter:ye,colorBgContainer:it,colorTextHeading:At,colorFillSecondary:Yt,colorFillContent:en,controlItemBgActive:pn,controlItemBgActiveHover:on,padding:Sn,paddingSM:yn,paddingXS:qn,colorBorderSecondary:kn,borderRadiusLG:Mn,controlHeight:j,colorTextPlaceholder:c,fontSize:f,fontSizeSM:h,lineHeight:x,lineWidth:k,colorIcon:J,colorIconHover:Oe,opacityLoading:qe,controlInteractiveSize:Et}=be,Qt=new Zs.FastColor(Yt).onBackground(it).toHexString(),dn=new Zs.FastColor(en).onBackground(it).toHexString(),En=new Zs.FastColor(ye).onBackground(it).toHexString(),Nn=new Zs.FastColor(J),Un=new Zs.FastColor(Oe),Kn=Et/2-k,ir=Kn*2+k*3;return{headerBg:En,headerColor:At,headerSortActiveBg:Qt,headerSortHoverBg:dn,bodySortBg:En,rowHoverBg:En,rowSelectedBg:pn,rowSelectedHoverBg:on,rowExpandedBg:ye,cellPaddingBlock:Sn,cellPaddingInline:Sn,cellPaddingBlockMD:yn,cellPaddingInlineMD:qn,cellPaddingBlockSM:qn,cellPaddingInlineSM:qn,borderColor:kn,headerBorderRadius:Mn,footerBg:En,footerColor:At,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:kn,fixedHeaderSortActiveBg:Qt,headerFilterHoverBg:en,filterDropdownMenuBg:it,filterDropdownBg:it,expandIconBg:it,selectionColumnWidth:j,stickyScrollBarBg:c,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*x-k*3)/2-Math.ceil((h*1.4-k*3)/2),headerIconColor:Nn.clone().setA(Nn.a*qe).toRgbString(),headerIconHoverColor:Un.clone().setA(Un.a*qe).toRgbString(),expandIconHalfInner:Kn,expandIconSize:ir,expandIconScale:Et/ir}},Ut=2;var Wo=(0,Ms.I$)("Table",be=>{const{colorTextHeading:ye,colorSplit:it,colorBgContainer:At,controlInteractiveSize:Yt,headerBg:en,headerColor:pn,headerSortActiveBg:on,headerSortHoverBg:Sn,bodySortBg:yn,rowHoverBg:qn,rowSelectedBg:kn,rowSelectedHoverBg:Mn,rowExpandedBg:j,cellPaddingBlock:c,cellPaddingInline:f,cellPaddingBlockMD:h,cellPaddingInlineMD:x,cellPaddingBlockSM:k,cellPaddingInlineSM:J,borderColor:Oe,footerBg:qe,footerColor:Et,headerBorderRadius:Qt,cellFontSize:dn,cellFontSizeMD:En,cellFontSizeSM:Nn,headerSplitColor:Un,fixedHeaderSortActiveBg:Kn,headerFilterHoverBg:ir,filterDropdownBg:er,expandIconBg:nr,selectionColumnWidth:hr,stickyScrollBarBg:Tr,calc:Lr}=be,pr=(0,Js.mergeToken)(be,{tableFontSize:dn,tableBg:At,tableRadius:Qt,tablePaddingVertical:c,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:k,tablePaddingHorizontalSmall:J,tableBorderColor:Oe,tableHeaderTextColor:pn,tableHeaderBg:en,tableFooterTextColor:Et,tableFooterBg:qe,tableHeaderCellSplitColor:Un,tableHeaderSortBg:on,tableHeaderSortHoverBg:Sn,tableBodySortBg:yn,tableFixedHeaderSortActiveBg:Kn,tableHeaderFilterActiveBg:ir,tableFilterDropdownBg:er,tableRowHoverBg:qn,tableSelectedRowBg:kn,tableSelectedRowHoverBg:Mn,zIndexTableFixed:Ut,zIndexTableSticky:Lr(Ut).add(1).equal({unit:!1}),tableFontSizeMiddle:En,tableFontSizeSmall:Nn,tableSelectionColumnWidth:hr,tableExpandIconBg:nr,tableExpandColumnWidth:Lr(Yt).add(Lr(be.padding).mul(2)).equal(),tableExpandedRowBg:j,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tr,tableScrollThumbBgHover:ye,tableScrollBg:it});return[Ho(pr),zo(pr),go(pr),al(pr),Eo(pr),rl(pr),jo(pr),$o(pr),go(pr),Fo(pr),co(pr),eo(pr),wo(pr),lo(pr),Co(pr),Uo(pr),ll(pr)]},ul,{unitless:{expandIconScale:!0}});const To=[],Ao=(be,ye)=>{var it,At;const{prefixCls:Yt,className:en,rootClassName:pn,style:on,size:Sn,bordered:yn,dropdownPrefixCls:qn,dataSource:kn,pagination:Mn,rowSelection:j,rowKey:c="key",rowClassName:f,columns:h,children:x,childrenColumnName:k,onChange:J,getPopupContainer:Oe,loading:qe,expandIcon:Et,expandable:Qt,expandedRowRender:dn,expandIconColumnIndex:En,indentSize:Nn,scroll:Un,sortDirections:Kn,locale:ir,showSorterTooltip:er={target:"full-header"},virtual:nr}=be,hr=(0,wr.ln)("Table"),Tr=i.useMemo(()=>h||zt(x),[h,x]),Lr=i.useMemo(()=>Tr.some(Ei=>Ei.responsive),[Tr]),pr=(0,Di.Z)(Lr),Yr=i.useMemo(()=>{const Ei=new Set(Object.keys(pr).filter(qi=>pr[qi]));return Tr.filter(qi=>!qi.responsive||qi.responsive.some(ha=>Ei.has(ha)))},[Tr,pr]),ei=(0,bi.Z)(be,["className","style","columns"]),{locale:Ri=ra.Z,direction:xi,table:fn,renderEmpty:Oi,getPrefixCls:ya,getPopupContainer:yi}=i.useContext(Wi.E_),ui=(0,Gr.Z)(Sn),ca=Object.assign(Object.assign({},Ri.Table),ir),da=kn||To,Qr=ya("table",Yt),gi=ya("dropdown",qn),[,jr]=(0,Ni.ZP)(),Xr=(0,ki.Z)(Qr),[Si,Ii,ea]=Wo(Qr,Xr),Qi=Object.assign(Object.assign({childrenColumnName:k,expandIconColumnIndex:En},Qt),{expandIcon:(it=Qt==null?void 0:Qt.expandIcon)!==null&&it!==void 0?it:(At=fn==null?void 0:fn.expandable)===null||At===void 0?void 0:At.expandIcon}),{childrenColumnName:sa="children"}=Qi,Na=i.useMemo(()=>da.some(Ei=>Ei==null?void 0:Ei[sa])?"nest":dn||Qt!=null&&Qt.expandedRowRender?"row":null,[da]),Jr={body:i.useRef(null)},ai=ti(Qr),Bi=i.useRef(null),ta=i.useRef(null);wi(ye,()=>Object.assign(Object.assign({},ta.current),{nativeElement:Bi.current}));const Fi=i.useMemo(()=>typeof c=="function"?c:Ei=>Ei==null?void 0:Ei[c],[c]),[Ha]=Za(da,sa,Fi),ga={},os=function(Ei,qi){let ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var La,ns,_s,Ts;const Ga=Object.assign(Object.assign({},ga),Ei);ha&&((La=ga.resetPagination)===null||La===void 0||La.call(ga),!((ns=Ga.pagination)===null||ns===void 0)&&ns.current&&(Ga.pagination.current=1),Mn&&((_s=Mn.onChange)===null||_s===void 0||_s.call(Mn,1,(Ts=Ga.pagination)===null||Ts===void 0?void 0:Ts.pageSize))),Un&&Un.scrollToFirstRowOnChange!==!1&&Jr.body.current&&(0,Yi.Z)(0,{getContainer:()=>Jr.body.current}),J==null||J(Ga.pagination,Ga.filters,Ga.sorter,{currentDataSource:mi(Os(da,Ga.sorterStates,sa),Ga.filterStates,sa),action:qi})},ba=(Ei,qi)=>{os({sorter:Ei,sorterStates:qi},"sort",!1)},[Ji,fa,oa,ka]=Xs({prefixCls:Qr,mergedColumns:Yr,onSorterChange:ba,sortDirections:Kn||["ascend","descend"],tableLocale:ca,showSorterTooltip:er}),Ra=i.useMemo(()=>Os(da,fa,sa),[da,fa]);ga.sorter=ka(),ga.sorterStates=fa;const Gi=(Ei,qi)=>{os({filters:Ei,filterStates:qi},"filter",!0)},[Ca,la,Va]=ji({prefixCls:Qr,locale:ca,dropdownPrefixCls:gi,mergedColumns:Yr,onFilterChange:Gi,getPopupContainer:Oe||yi,rootClassName:N()(pn,Xr)}),wa=mi(Ra,la,sa);ga.filters=Va,ga.filterStates=la;const Ja=i.useMemo(()=>{const Ei={};return Object.keys(Va).forEach(qi=>{Va[qi]!==null&&(Ei[qi]=Va[qi])}),Object.assign(Object.assign({},oa),{filters:Ei})},[oa,Va]),[xs]=Ka(Ja),fo=(Ei,qi)=>{os({pagination:Object.assign(Object.assign({},ga.pagination),{current:Ei,pageSize:qi})},"paginate")},[_a,Do]=Xa(wa.length,fo,Mn);ga.pagination=Mn===!1?{}:Pa(_a,Mn),ga.resetPagination=Do;const qa=i.useMemo(()=>{if(Mn===!1||!_a.pageSize)return wa;const{current:Ei=1,total:qi,pageSize:ha=rs}=_a;return wa.length<qi?wa.length>ha?wa.slice((Ei-1)*ha,Ei*ha):wa:wa.slice((Ei-1)*ha,Ei*ha)},[!!Mn,wa,_a==null?void 0:_a.current,_a==null?void 0:_a.pageSize,_a==null?void 0:_a.total]),[ms,ps]=mr({prefixCls:Qr,data:wa,pageData:qa,getRowKey:Fi,getRecordByKey:Ha,expandType:Na,childrenColumnName:sa,locale:ca,getPopupContainer:Oe||yi},j),is=(Ei,qi,ha)=>{let La;return typeof f=="function"?La=N()(f(Ei,qi,ha)):La=N()(f),N()({[`${Qr}-row-selected`]:ps.has(Fi(Ei,qi))},La)};Qi.__PARENT_RENDER_ICON__=Qi.expandIcon,Qi.expandIcon=Qi.expandIcon||Et||Fr(ca),Na==="nest"&&Qi.expandIconColumnIndex===void 0?Qi.expandIconColumnIndex=j?1:0:Qi.expandIconColumnIndex>0&&j&&(Qi.expandIconColumnIndex-=1),typeof Qi.indentSize!="number"&&(Qi.indentSize=typeof Nn=="number"?Nn:15);const es=i.useCallback(Ei=>xs(ms(Ca(Ji(Ei)))),[Ji,Ca,ms]);let Es,Ns;if(Mn!==!1&&(_a!=null&&_a.total)){let Ei;_a.size?Ei=_a.size:Ei=ui==="small"||ui==="middle"?"small":void 0;const qi=ns=>i.createElement(zi.Z,Object.assign({},_a,{className:N()(`${Qr}-pagination ${Qr}-pagination-${ns}`,_a.className),size:Ei})),ha=xi==="rtl"?"left":"right",{position:La}=_a;if(La!==null&&Array.isArray(La)){const ns=La.find(Ga=>Ga.includes("top")),_s=La.find(Ga=>Ga.includes("bottom")),Ts=La.every(Ga=>`${Ga}`=="none");!ns&&!_s&&!Ts&&(Ns=qi(ha)),ns&&(Es=qi(ns.toLowerCase().replace("top",""))),_s&&(Ns=qi(_s.toLowerCase().replace("bottom","")))}else Ns=qi(ha)}let Ss;typeof qe=="boolean"?Ss={spinning:qe}:typeof qe=="object"&&(Ss=Object.assign({spinning:!0},qe));const js=N()(ea,Xr,`${Qr}-wrapper`,fn==null?void 0:fn.className,{[`${Qr}-wrapper-rtl`]:xi==="rtl"},en,pn,Ii),ts=Object.assign(Object.assign({},fn==null?void 0:fn.style),on),Al=typeof(ir==null?void 0:ir.emptyText)!="undefined"?ir.emptyText:(Oi==null?void 0:Oi("Table"))||i.createElement(Mi.Z,{componentName:"Table"}),cl=nr?oo:Bo,gs={},dl=i.useMemo(()=>{const{fontSize:Ei,lineHeight:qi,lineWidth:ha,padding:La,paddingXS:ns,paddingSM:_s}=jr,Ts=Math.floor(Ei*qi);switch(ui){case"middle":return _s*2+Ts+ha;case"small":return ns*2+Ts+ha;default:return La*2+Ts+ha}},[jr,ui]);return nr&&(gs.listItemHeight=dl),Si(i.createElement("div",{ref:Bi,className:js,style:ts},i.createElement(hi.Z,Object.assign({spinning:!1},Ss),Es,i.createElement(cl,Object.assign({},gs,ei,{ref:ta,columns:Yr,direction:xi,expandable:Qi,prefixCls:Qr,className:N()({[`${Qr}-middle`]:ui==="middle",[`${Qr}-small`]:ui==="small",[`${Qr}-bordered`]:yn,[`${Qr}-empty`]:da.length===0},ea,Xr,Ii),data:qa,rowKey:Fi,rowClassName:is,emptyText:Al,internalHooks:O,internalRefs:Jr,transformColumns:es,getContainerWidth:ai})),Ns)))};var Vo=i.forwardRef(Ao);const to=(be,ye)=>{const it=i.useRef(0);return it.current+=1,i.createElement(Vo,Object.assign({},be,{ref:ye,_renderTimes:it.current}))},bs=i.forwardRef(to);bs.SELECTION_COLUMN=Tn,bs.EXPAND_COLUMN=U,bs.SELECTION_ALL=cr,bs.SELECTION_INVERT=or,bs.SELECTION_NONE=Br,bs.Column=Er,bs.ColumnGroup=Sr,bs.Summary=Ce;var Io=bs,Go=Io},31691:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return zt}});var i=u(59301),U=u(99267),O=u(18785),fe=u(62772),Z=u(92310),g=u.n(Z),H=u(54476),V=u(20068),l=u(33885),y=u(42978),M=u(76190),b=u(75931),C=u(18929),T=u(49658),$=(0,i.createContext)(null),W=u(94480),X=u(29301),G=u(6089),L=u(8654),Q=u(16089),P=function(ve){var wt=ve.activeTabOffset,Ne=ve.horizontal,Be=ve.rtl,ue=ve.indicator,Ie=ue===void 0?{}:ue,Fe=Ie.size,$e=Ie.align,ut=$e===void 0?"center":$e,Gt=(0,i.useState)(),sn=(0,y.Z)(Gt,2),je=sn[0],ct=sn[1],Dt=(0,i.useRef)(),qt=i.useCallback(function(Ge){return typeof Fe=="function"?Fe(Ge):typeof Fe=="number"?Fe:Ge},[Fe]);function Jt(){Q.Z.cancel(Dt.current)}return(0,i.useEffect)(function(){var Ge={};if(wt)if(Ne){Ge.width=qt(wt.width);var ft=Be?"right":"left";ut==="start"&&(Ge[ft]=wt[ft]),ut==="center"&&(Ge[ft]=wt[ft]+wt.width/2,Ge.transform=Be?"translateX(50%)":"translateX(-50%)"),ut==="end"&&(Ge[ft]=wt[ft]+wt.width,Ge.transform="translateX(-100%)")}else Ge.height=qt(wt.height),ut==="start"&&(Ge.top=wt.top),ut==="center"&&(Ge.top=wt.top+wt.height/2,Ge.transform="translateY(-50%)"),ut==="end"&&(Ge.top=wt.top+wt.height,Ge.transform="translateY(-100%)");return Jt(),Dt.current=(0,Q.Z)(function(){ct(Ge)}),Jt},[wt,Ne,Be,ut,qt]),{style:je}},A=P,ce={width:0,height:0,left:0,top:0};function Ee(re,ve,wt){return(0,i.useMemo)(function(){for(var Ne,Be=new Map,ue=ve.get((Ne=re[0])===null||Ne===void 0?void 0:Ne.key)||ce,Ie=ue.left+ue.width,Fe=0;Fe<re.length;Fe+=1){var $e=re[Fe].key,ut=ve.get($e);if(!ut){var Gt;ut=ve.get((Gt=re[Fe-1])===null||Gt===void 0?void 0:Gt.key)||ce}var sn=Be.get($e)||(0,l.Z)({},ut);sn.right=Ie-sn.left-sn.width,Be.set($e,sn)}return Be},[re.map(function(Ne){return Ne.key}).join("_"),ve,wt])}function pe(re,ve){var wt=i.useRef(re),Ne=i.useState({}),Be=(0,y.Z)(Ne,2),ue=Be[1];function Ie(Fe){var $e=typeof Fe=="function"?Fe(wt.current):Fe;$e!==wt.current&&ve($e,wt.current),wt.current=$e,ue({})}return[wt.current,Ie]}var ze=.1,Je=.01,Pe=20,Ze=Math.pow(.995,Pe);function le(re,ve){var wt=(0,i.useState)(),Ne=(0,y.Z)(wt,2),Be=Ne[0],ue=Ne[1],Ie=(0,i.useState)(0),Fe=(0,y.Z)(Ie,2),$e=Fe[0],ut=Fe[1],Gt=(0,i.useState)(0),sn=(0,y.Z)(Gt,2),je=sn[0],ct=sn[1],Dt=(0,i.useState)(),qt=(0,y.Z)(Dt,2),Jt=qt[0],Ge=qt[1],ft=(0,i.useRef)();function Mt(mn){var bn=mn.touches[0],In=bn.screenX,_n=bn.screenY;ue({x:In,y:_n}),window.clearInterval(ft.current)}function Ye(mn){if(Be){var bn=mn.touches[0],In=bn.screenX,_n=bn.screenY;ue({x:In,y:_n});var Cn=In-Be.x,Zn=_n-Be.y;ve(Cn,Zn);var Ln=Date.now();ut(Ln),ct(Ln-$e),Ge({x:Cn,y:Zn})}}function jt(){if(Be&&(ue(null),Ge(null),Jt)){var mn=Jt.x/je,bn=Jt.y/je,In=Math.abs(mn),_n=Math.abs(bn);if(Math.max(In,_n)<ze)return;var Cn=mn,Zn=bn;ft.current=window.setInterval(function(){if(Math.abs(Cn)<Je&&Math.abs(Zn)<Je){window.clearInterval(ft.current);return}Cn*=Ze,Zn*=Ze,ve(Cn*Pe,Zn*Pe)},Pe)}}var rn=(0,i.useRef)();function an(mn){var bn=mn.deltaX,In=mn.deltaY,_n=0,Cn=Math.abs(bn),Zn=Math.abs(In);Cn===Zn?_n=rn.current==="x"?bn:In:Cn>Zn?(_n=bn,rn.current="x"):(_n=In,rn.current="y"),ve(-_n,-_n)&&mn.preventDefault()}var nn=(0,i.useRef)(null);nn.current={onTouchStart:Mt,onTouchMove:Ye,onTouchEnd:jt,onWheel:an},i.useEffect(function(){function mn(Cn){nn.current.onTouchStart(Cn)}function bn(Cn){nn.current.onTouchMove(Cn)}function In(Cn){nn.current.onTouchEnd(Cn)}function _n(Cn){nn.current.onWheel(Cn)}return document.addEventListener("touchmove",bn,{passive:!1}),document.addEventListener("touchend",In,{passive:!0}),re.current.addEventListener("touchstart",mn,{passive:!0}),re.current.addEventListener("wheel",_n,{passive:!1}),function(){document.removeEventListener("touchmove",bn),document.removeEventListener("touchend",In)}},[])}var N=u(34280);function S(re){var ve=(0,i.useState)(0),wt=(0,y.Z)(ve,2),Ne=wt[0],Be=wt[1],ue=(0,i.useRef)(0),Ie=(0,i.useRef)();return Ie.current=re,(0,N.o)(function(){var Fe;(Fe=Ie.current)===null||Fe===void 0||Fe.call(Ie)},[Ne]),function(){ue.current===Ne&&(ue.current+=1,Be(ue.current))}}function q(re){var ve=(0,i.useRef)([]),wt=(0,i.useState)({}),Ne=(0,y.Z)(wt,2),Be=Ne[1],ue=(0,i.useRef)(typeof re=="function"?re():re),Ie=S(function(){var $e=ue.current;ve.current.forEach(function(ut){$e=ut($e)}),ve.current=[],ue.current=$e,Be({})});function Fe($e){ve.current.push($e),Ie()}return[ue.current,Fe]}var te={width:0,height:0,left:0,top:0,right:0};function se(re,ve,wt,Ne,Be,ue,Ie){var Fe=Ie.tabs,$e=Ie.tabPosition,ut=Ie.rtl,Gt,sn,je;return["top","bottom"].includes($e)?(Gt="width",sn=ut?"right":"left",je=Math.abs(wt)):(Gt="height",sn="top",je=-wt),(0,i.useMemo)(function(){if(!Fe.length)return[0,0];for(var ct=Fe.length,Dt=ct,qt=0;qt<ct;qt+=1){var Jt=re.get(Fe[qt].key)||te;if(Math.floor(Jt[sn]+Jt[Gt])>Math.floor(je+ve)){Dt=qt-1;break}}for(var Ge=0,ft=ct-1;ft>=0;ft-=1){var Mt=re.get(Fe[ft].key)||te;if(Mt[sn]<je){Ge=ft+1;break}}return Ge>=Dt?[0,0]:[Ge,Dt]},[re,ve,Ne,Be,ue,je,$e,Fe.map(function(ct){return ct.key}).join("_"),ut])}function w(re){var ve;return re instanceof Map?(ve={},re.forEach(function(wt,Ne){ve[Ne]=wt})):ve=re,JSON.stringify(ve)}var I="TABS_DQ";function de(re){return String(re).replace(/"/g,I)}function De(re,ve,wt,Ne){return!(!wt||Ne||re===!1||re===void 0&&(ve===!1||ve===null))}var dt=i.forwardRef(function(re,ve){var wt=re.prefixCls,Ne=re.editable,Be=re.locale,ue=re.style;return!Ne||Ne.showAdd===!1?null:i.createElement("button",{ref:ve,type:"button",className:"".concat(wt,"-nav-add"),style:ue,"aria-label":(Be==null?void 0:Be.addAriaLabel)||"Add tab",onClick:function(Fe){Ne.onEdit("add",{event:Fe})}},Ne.addIcon||"+")}),It=dt,Te=i.forwardRef(function(re,ve){var wt=re.position,Ne=re.prefixCls,Be=re.extra;if(!Be)return null;var ue,Ie={};return(0,M.Z)(Be)==="object"&&!i.isValidElement(Be)?Ie=Be:Ie.right=Be,wt==="right"&&(ue=Ie.right),wt==="left"&&(ue=Ie.left),ue?i.createElement("div",{className:"".concat(Ne,"-extra-content"),ref:ve},ue):null}),rt=Te,ht=u(96478),St=u(28321),Me=u(10228),Xt=i.forwardRef(function(re,ve){var wt=re.prefixCls,Ne=re.id,Be=re.tabs,ue=re.locale,Ie=re.mobile,Fe=re.more,$e=Fe===void 0?{}:Fe,ut=re.style,Gt=re.className,sn=re.editable,je=re.tabBarGutter,ct=re.rtl,Dt=re.removeAriaLabel,qt=re.onTabClick,Jt=re.getPopupContainer,Ge=re.popupClassName,ft=(0,i.useState)(!1),Mt=(0,y.Z)(ft,2),Ye=Mt[0],jt=Mt[1],rn=(0,i.useState)(null),an=(0,y.Z)(rn,2),nn=an[0],mn=an[1],bn=$e.icon,In=bn===void 0?"More":bn,_n="".concat(Ne,"-more-popup"),Cn="".concat(wt,"-dropdown"),Zn=nn!==null?"".concat(_n,"-").concat(nn):null,Ln=ue==null?void 0:ue.dropdownAriaLabel;function rr(Rn,Bn){Rn.preventDefault(),Rn.stopPropagation(),sn.onEdit("remove",{key:Bn,event:Rn})}var Dn=i.createElement(St.ZP,{onClick:function(Bn){var ln=Bn.key,Tt=Bn.domEvent;qt(ln,Tt),jt(!1)},prefixCls:"".concat(Cn,"-menu"),id:_n,tabIndex:-1,role:"listbox","aria-activedescendant":Zn,selectedKeys:[nn],"aria-label":Ln!==void 0?Ln:"expanded dropdown"},Be.map(function(Rn){var Bn=Rn.closable,ln=Rn.disabled,Tt=Rn.closeIcon,Fn=Rn.key,On=Rn.label,sr=De(Bn,Tt,sn,ln);return i.createElement(St.sN,{key:Fn,id:"".concat(_n,"-").concat(Fn),role:"option","aria-controls":Ne&&"".concat(Ne,"-panel-").concat(Fn),disabled:ln},i.createElement("span",null,On),sr&&i.createElement("button",{type:"button","aria-label":Dt||"remove",tabIndex:0,className:"".concat(Cn,"-menu-item-remove"),onClick:function(Ar){Ar.stopPropagation(),rr(Ar,Fn)}},Tt||sn.removeIcon||"\xD7"))}));function jn(Rn){for(var Bn=Be.filter(function(sr){return!sr.disabled}),ln=Bn.findIndex(function(sr){return sr.key===nn})||0,Tt=Bn.length,Fn=0;Fn<Tt;Fn+=1){ln=(ln+Rn+Tt)%Tt;var On=Bn[ln];if(!On.disabled){mn(On.key);return}}}function Xn(Rn){var Bn=Rn.which;if(!Ye){[Me.Z.DOWN,Me.Z.SPACE,Me.Z.ENTER].includes(Bn)&&(jt(!0),Rn.preventDefault());return}switch(Bn){case Me.Z.UP:jn(-1),Rn.preventDefault();break;case Me.Z.DOWN:jn(1),Rn.preventDefault();break;case Me.Z.ESC:jt(!1);break;case Me.Z.SPACE:case Me.Z.ENTER:nn!==null&&qt(nn,Rn);break}}(0,i.useEffect)(function(){var Rn=document.getElementById(Zn);Rn&&Rn.scrollIntoView&&Rn.scrollIntoView(!1)},[nn]),(0,i.useEffect)(function(){Ye||mn(null)},[Ye]);var Wn=(0,V.Z)({},ct?"marginRight":"marginLeft",je);Be.length||(Wn.visibility="hidden",Wn.order=1);var Gn=g()((0,V.Z)({},"".concat(Cn,"-rtl"),ct)),Jn=Ie?null:i.createElement(ht.Z,(0,H.Z)({prefixCls:Cn,overlay:Dn,visible:Be.length?Ye:!1,onVisibleChange:jt,overlayClassName:g()(Gn,Ge),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Jt},$e),i.createElement("button",{type:"button",className:"".concat(wt,"-nav-more"),style:Wn,"aria-haspopup":"listbox","aria-controls":_n,id:"".concat(Ne,"-more"),"aria-expanded":Ye,onKeyDown:Xn},In));return i.createElement("div",{className:g()("".concat(wt,"-nav-operations"),Gt),style:ut,ref:ve},Jn,i.createElement(It,{prefixCls:wt,locale:ue,editable:sn}))}),tt=i.memo(Xt,function(re,ve){return ve.tabMoving}),un=function(ve){var wt=ve.prefixCls,Ne=ve.id,Be=ve.active,ue=ve.focus,Ie=ve.tab,Fe=Ie.key,$e=Ie.label,ut=Ie.disabled,Gt=Ie.closeIcon,sn=Ie.icon,je=ve.closable,ct=ve.renderWrapper,Dt=ve.removeAriaLabel,qt=ve.editable,Jt=ve.onClick,Ge=ve.onFocus,ft=ve.onBlur,Mt=ve.onKeyDown,Ye=ve.onMouseDown,jt=ve.onMouseUp,rn=ve.style,an=ve.tabCount,nn=ve.currentPosition,mn="".concat(wt,"-tab"),bn=De(je,Gt,qt,ut);function In(rr){ut||Jt(rr)}function _n(rr){rr.preventDefault(),rr.stopPropagation(),qt.onEdit("remove",{key:Fe,event:rr})}var Cn=i.useMemo(function(){return sn&&typeof $e=="string"?i.createElement("span",null,$e):$e},[$e,sn]),Zn=i.useRef(null);i.useEffect(function(){ue&&Zn.current&&Zn.current.focus()},[ue]);var Ln=i.createElement("div",{key:Fe,"data-node-key":de(Fe),className:g()(mn,(0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(mn,"-with-remove"),bn),"".concat(mn,"-active"),Be),"".concat(mn,"-disabled"),ut),"".concat(mn,"-focus"),ue)),style:rn,onClick:In},i.createElement("div",{ref:Zn,role:"tab","aria-selected":Be,id:Ne&&"".concat(Ne,"-tab-").concat(Fe),className:"".concat(mn,"-btn"),"aria-controls":Ne&&"".concat(Ne,"-panel-").concat(Fe),"aria-disabled":ut,tabIndex:ut?null:Be?0:-1,onClick:function(Dn){Dn.stopPropagation(),In(Dn)},onKeyDown:Mt,onMouseDown:Ye,onMouseUp:jt,onFocus:Ge,onBlur:ft},ue&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(nn," of ").concat(an)),sn&&i.createElement("span",{className:"".concat(mn,"-icon")},sn),$e&&Cn),bn&&i.createElement("button",{type:"button",role:"tab","aria-label":Dt||"remove",tabIndex:Be?0:-1,className:"".concat(mn,"-remove"),onClick:function(Dn){Dn.stopPropagation(),_n(Dn)}},Gt||qt.removeIcon||"\xD7"));return ct?ct(Ln):Ln},vt=un,bt=function(ve,wt){var Ne=ve.offsetWidth,Be=ve.offsetHeight,ue=ve.offsetTop,Ie=ve.offsetLeft,Fe=ve.getBoundingClientRect(),$e=Fe.width,ut=Fe.height,Gt=Fe.left,sn=Fe.top;return Math.abs($e-Ne)<1?[$e,ut,Gt-wt.left,sn-wt.top]:[Ne,Be,Ie,ue]},Ve=function(ve){var wt=ve.current||{},Ne=wt.offsetWidth,Be=Ne===void 0?0:Ne,ue=wt.offsetHeight,Ie=ue===void 0?0:ue;if(ve.current){var Fe=ve.current.getBoundingClientRect(),$e=Fe.width,ut=Fe.height;if(Math.abs($e-Be)<1)return[$e,ut]}return[Be,Ie]},Le=function(ve,wt){return ve[wt?0:1]},oe=i.forwardRef(function(re,ve){var wt=re.className,Ne=re.style,Be=re.id,ue=re.animated,Ie=re.activeKey,Fe=re.rtl,$e=re.extra,ut=re.editable,Gt=re.locale,sn=re.tabPosition,je=re.tabBarGutter,ct=re.children,Dt=re.onTabClick,qt=re.onTabScroll,Jt=re.indicator,Ge=i.useContext($),ft=Ge.prefixCls,Mt=Ge.tabs,Ye=(0,i.useRef)(null),jt=(0,i.useRef)(null),rn=(0,i.useRef)(null),an=(0,i.useRef)(null),nn=(0,i.useRef)(null),mn=(0,i.useRef)(null),bn=(0,i.useRef)(null),In=sn==="top"||sn==="bottom",_n=pe(0,function(fi,ii){In&&qt&&qt({direction:fi>ii?"left":"right"})}),Cn=(0,y.Z)(_n,2),Zn=Cn[0],Ln=Cn[1],rr=pe(0,function(fi,ii){!In&&qt&&qt({direction:fi>ii?"top":"bottom"})}),Dn=(0,y.Z)(rr,2),jn=Dn[0],Xn=Dn[1],Wn=(0,i.useState)([0,0]),Gn=(0,y.Z)(Wn,2),Jn=Gn[0],Rn=Gn[1],Bn=(0,i.useState)([0,0]),ln=(0,y.Z)(Bn,2),Tt=ln[0],Fn=ln[1],On=(0,i.useState)([0,0]),sr=(0,y.Z)(On,2),dr=sr[0],Ar=sr[1],ur=(0,i.useState)([0,0]),Yn=(0,y.Z)(ur,2),vn=Yn[0],hn=Yn[1],xn=q(new Map),Qn=(0,y.Z)(xn,2),tr=Qn[0],yr=Qn[1],Er=Ee(Mt,tr,Tt[0]),$n=Le(Jn,In),Sr=Le(Tt,In),Dr=Le(dr,In),$r=Le(vn,In),Mr=Math.floor($n)<Math.floor(Sr+Dr),Or=Mr?$n-$r:$n-Dr,Cr="".concat(ft,"-nav-operations-hidden"),zr=0,wr=0;In&&Fe?(zr=0,wr=Math.max(0,Sr-Or)):(zr=Math.min(0,Or-Sr),wr=0);function Vr(fi){return fi<zr?zr:fi>wr?wr:fi}var Ir=(0,i.useRef)(null),tn=(0,i.useState)(),Tn=(0,y.Z)(tn,2),cr=Tn[0],or=Tn[1];function Br(){or(Date.now())}function ri(){Ir.current&&clearTimeout(Ir.current)}le(an,function(fi,ii){function Ti(Li,ia){Li(function(pa){var Sa=Vr(pa+ia);return Sa})}return Mr?(In?Ti(Ln,fi):Ti(Xn,ii),ri(),Br(),!0):!1}),(0,i.useEffect)(function(){return ri(),cr&&(Ir.current=setTimeout(function(){or(0)},100)),ri},[cr]);var vi=se(Er,Or,In?Zn:jn,Sr,Dr,$r,(0,l.Z)((0,l.Z)({},re),{},{tabs:Mt})),_r=(0,y.Z)(vi,2),mr=_r[0],bi=_r[1],ar=(0,G.Z)(function(){var fi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ie,ii=Er.get(fi)||{width:0,height:0,left:0,right:0,top:0};if(In){var Ti=Zn;Fe?ii.right<Zn?Ti=ii.right:ii.right+ii.width>Zn+Or&&(Ti=ii.right+ii.width-Or):ii.left<-Zn?Ti=-ii.left:ii.left+ii.width>-Zn+Or&&(Ti=-(ii.left+ii.width-Or)),Xn(0),Ln(Vr(Ti))}else{var Li=jn;ii.top<-jn?Li=-ii.top:ii.top+ii.height>-jn+Or&&(Li=-(ii.top+ii.height-Or)),Ln(0),Xn(Vr(Li))}}),wi=(0,i.useState)(),Yi=(0,y.Z)(wi,2),Wi=Yi[0],Mi=Yi[1],ki=(0,i.useState)(!1),Gr=(0,y.Z)(ki,2),Di=Gr[0],ra=Gr[1],zi=Mt.filter(function(fi){return!fi.disabled}).map(function(fi){return fi.key}),hi=function(ii){var Ti=zi.indexOf(Wi||Ie),Li=zi.length,ia=(Ti+ii+Li)%Li,pa=zi[ia];Mi(pa)},Ni=function(ii){var Ti=ii.code,Li=Fe&&In,ia=zi[0],pa=zi[zi.length-1];switch(Ti){case"ArrowLeft":{In&&hi(Li?1:-1);break}case"ArrowRight":{In&&hi(Li?-1:1);break}case"ArrowUp":{ii.preventDefault(),In||hi(-1);break}case"ArrowDown":{ii.preventDefault(),In||hi(1);break}case"Home":{ii.preventDefault(),Mi(ia);break}case"End":{ii.preventDefault(),Mi(pa);break}case"Enter":case"Space":{ii.preventDefault(),Dt(Ie,ii);break}case"Backspace":case"Delete":{var Sa=zi.indexOf(Wi),Da=Mt.find(function(Ta){return Ta.key===Wi}),Wa=De(Da==null?void 0:Da.closable,Da==null?void 0:Da.closeIcon,ut,Da==null?void 0:Da.disabled);Wa&&(ii.preventDefault(),ii.stopPropagation(),ut.onEdit("remove",{key:Wi,event:ii}),Sa===zi.length-1?hi(-1):hi(1));break}}},Zi={};In?Zi[Fe?"marginRight":"marginLeft"]=je:Zi.marginTop=je;var Fr=Mt.map(function(fi,ii){var Ti=fi.key;return i.createElement(vt,{id:Be,prefixCls:ft,key:Ti,tab:fi,style:ii===0?void 0:Zi,closable:fi.closable,editable:ut,active:Ti===Ie,focus:Ti===Wi,renderWrapper:ct,removeAriaLabel:Gt==null?void 0:Gt.removeAriaLabel,tabCount:zi.length,currentPosition:ii+1,onClick:function(ia){Dt(Ti,ia)},onKeyDown:Ni,onFocus:function(){Di||Mi(Ti),ar(Ti),Br(),an.current&&(Fe||(an.current.scrollLeft=0),an.current.scrollTop=0)},onBlur:function(){Mi(void 0)},onMouseDown:function(){ra(!0)},onMouseUp:function(){ra(!1)}})}),ti=function(){return yr(function(){var ii,Ti=new Map,Li=(ii=nn.current)===null||ii===void 0?void 0:ii.getBoundingClientRect();return Mt.forEach(function(ia){var pa,Sa=ia.key,Da=(pa=nn.current)===null||pa===void 0?void 0:pa.querySelector('[data-node-key="'.concat(de(Sa),'"]'));if(Da){var Wa=bt(Da,Li),Ta=(0,y.Z)(Wa,4),vs=Ta[0],Cs=Ta[1],Ds=Ta[2],$a=Ta[3];Ti.set(Sa,{width:vs,height:Cs,left:Ds,top:$a})}}),Ti})};(0,i.useEffect)(function(){ti()},[Mt.map(function(fi){return fi.key}).join("_")]);var vr=S(function(){var fi=Ve(Ye),ii=Ve(jt),Ti=Ve(rn);Rn([fi[0]-ii[0]-Ti[0],fi[1]-ii[1]-Ti[1]]);var Li=Ve(bn);Ar(Li);var ia=Ve(mn);hn(ia);var pa=Ve(nn);Fn([pa[0]-Li[0],pa[1]-Li[1]]),ti()}),br=Mt.slice(0,mr),Pr=Mt.slice(bi+1),Wr=[].concat((0,W.Z)(br),(0,W.Z)(Pr)),Ci=Er.get(Ie),xr=A({activeTabOffset:Ci,horizontal:In,indicator:Jt,rtl:Fe}),Rr=xr.style;(0,i.useEffect)(function(){ar()},[Ie,zr,wr,w(Ci),w(Er),In]),(0,i.useEffect)(function(){vr()},[Fe]);var Nr=!!Wr.length,Zr="".concat(ft,"-nav-wrap"),ni,ma,Xi,ua;return In?Fe?(ma=Zn>0,ni=Zn!==wr):(ni=Zn<0,ma=Zn!==zr):(Xi=jn<0,ua=jn!==zr),i.createElement(X.Z,{onResize:vr},i.createElement("div",{ref:(0,L.x1)(ve,Ye),role:"tablist","aria-orientation":In?"horizontal":"vertical",className:g()("".concat(ft,"-nav"),wt),style:Ne,onKeyDown:function(){Br()}},i.createElement(rt,{ref:jt,position:"left",extra:$e,prefixCls:ft}),i.createElement(X.Z,{onResize:vr},i.createElement("div",{className:g()(Zr,(0,V.Z)((0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(Zr,"-ping-left"),ni),"".concat(Zr,"-ping-right"),ma),"".concat(Zr,"-ping-top"),Xi),"".concat(Zr,"-ping-bottom"),ua)),ref:an},i.createElement(X.Z,{onResize:vr},i.createElement("div",{ref:nn,className:"".concat(ft,"-nav-list"),style:{transform:"translate(".concat(Zn,"px, ").concat(jn,"px)"),transition:cr?"none":void 0}},Fr,i.createElement(It,{ref:bn,prefixCls:ft,locale:Gt,editable:ut,style:(0,l.Z)((0,l.Z)({},Fr.length===0?void 0:Zi),{},{visibility:Nr?"hidden":null})}),i.createElement("div",{className:g()("".concat(ft,"-ink-bar"),(0,V.Z)({},"".concat(ft,"-ink-bar-animated"),ue.inkBar)),style:Rr}))))),i.createElement(tt,(0,H.Z)({},re,{removeAriaLabel:Gt==null?void 0:Gt.removeAriaLabel,ref:mn,prefixCls:ft,tabs:Wr,className:!Nr&&Cr,tabMoving:!!cr})),i.createElement(rt,{ref:rn,position:"right",extra:$e,prefixCls:ft})))}),nt=oe,Ue=i.forwardRef(function(re,ve){var wt=re.prefixCls,Ne=re.className,Be=re.style,ue=re.id,Ie=re.active,Fe=re.tabKey,$e=re.children;return i.createElement("div",{id:ue&&"".concat(ue,"-panel-").concat(Fe),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":ue&&"".concat(ue,"-tab-").concat(Fe),"aria-hidden":!Ie,style:Be,className:g()(wt,Ie&&"".concat(wt,"-active"),Ne),ref:ve},$e)}),K=Ue,D=["renderTabBar"],Se=["label","key"],Ae=function(ve){var wt=ve.renderTabBar,Ne=(0,b.Z)(ve,D),Be=i.useContext($),ue=Be.tabs;if(wt){var Ie=(0,l.Z)((0,l.Z)({},Ne),{},{panes:ue.map(function(Fe){var $e=Fe.label,ut=Fe.key,Gt=(0,b.Z)(Fe,Se);return i.createElement(K,(0,H.Z)({tab:$e,key:ut,tabKey:ut},Gt))})});return wt(Ie,nt)}return i.createElement(nt,Ne)},Ce=Ae,ke=u(77900),Xe=["key","forceRender","style","className","destroyInactiveTabPane"],yt=function(ve){var wt=ve.id,Ne=ve.activeKey,Be=ve.animated,ue=ve.tabPosition,Ie=ve.destroyInactiveTabPane,Fe=i.useContext($),$e=Fe.prefixCls,ut=Fe.tabs,Gt=Be.tabPane,sn="".concat($e,"-tabpane");return i.createElement("div",{className:g()("".concat($e,"-content-holder"))},i.createElement("div",{className:g()("".concat($e,"-content"),"".concat($e,"-content-").concat(ue),(0,V.Z)({},"".concat($e,"-content-animated"),Gt))},ut.map(function(je){var ct=je.key,Dt=je.forceRender,qt=je.style,Jt=je.className,Ge=je.destroyInactiveTabPane,ft=(0,b.Z)(je,Xe),Mt=ct===Ne;return i.createElement(ke.default,(0,H.Z)({key:ct,visible:Mt,forceRender:Dt,removeOnLeave:!!(Ie||Ge),leavedClassName:"".concat(sn,"-hidden")},Be.tabPaneMotion),function(Ye,jt){var rn=Ye.style,an=Ye.className;return i.createElement(K,(0,H.Z)({},ft,{prefixCls:sn,id:wt,tabKey:ct,animated:Gt,active:Mt,style:(0,l.Z)((0,l.Z)({},qt),rn),className:g()(Jt,an),ref:jt}))})})))},he=yt,me=u(48736);function Lt(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ve;return re===!1?ve={inkBar:!1,tabPane:!1}:re===!0?ve={inkBar:!0,tabPane:!1}:ve=(0,l.Z)({inkBar:!0},(0,M.Z)(re)==="object"?re:{}),ve.tabPaneMotion&&ve.tabPane===void 0&&(ve.tabPane=!0),!ve.tabPaneMotion&&ve.tabPane&&(ve.tabPane=!1),ve}var Ct=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Nt=0,kt=i.forwardRef(function(re,ve){var wt=re.id,Ne=re.prefixCls,Be=Ne===void 0?"rc-tabs":Ne,ue=re.className,Ie=re.items,Fe=re.direction,$e=re.activeKey,ut=re.defaultActiveKey,Gt=re.editable,sn=re.animated,je=re.tabPosition,ct=je===void 0?"top":je,Dt=re.tabBarGutter,qt=re.tabBarStyle,Jt=re.tabBarExtraContent,Ge=re.locale,ft=re.more,Mt=re.destroyInactiveTabPane,Ye=re.renderTabBar,jt=re.onChange,rn=re.onTabClick,an=re.onTabScroll,nn=re.getPopupContainer,mn=re.popupClassName,bn=re.indicator,In=(0,b.Z)(re,Ct),_n=i.useMemo(function(){return(Ie||[]).filter(function(vn){return vn&&(0,M.Z)(vn)==="object"&&"key"in vn})},[Ie]),Cn=Fe==="rtl",Zn=Lt(sn),Ln=(0,i.useState)(!1),rr=(0,y.Z)(Ln,2),Dn=rr[0],jn=rr[1];(0,i.useEffect)(function(){jn((0,T.Z)())},[]);var Xn=(0,C.Z)(function(){var vn;return(vn=_n[0])===null||vn===void 0?void 0:vn.key},{value:$e,defaultValue:ut}),Wn=(0,y.Z)(Xn,2),Gn=Wn[0],Jn=Wn[1],Rn=(0,i.useState)(function(){return _n.findIndex(function(vn){return vn.key===Gn})}),Bn=(0,y.Z)(Rn,2),ln=Bn[0],Tt=Bn[1];(0,i.useEffect)(function(){var vn=_n.findIndex(function(xn){return xn.key===Gn});if(vn===-1){var hn;vn=Math.max(0,Math.min(ln,_n.length-1)),Jn((hn=_n[vn])===null||hn===void 0?void 0:hn.key)}Tt(vn)},[_n.map(function(vn){return vn.key}).join("_"),Gn,ln]);var Fn=(0,C.Z)(null,{value:wt}),On=(0,y.Z)(Fn,2),sr=On[0],dr=On[1];(0,i.useEffect)(function(){wt||(dr("rc-tabs-".concat(Nt)),Nt+=1)},[]);function Ar(vn,hn){rn==null||rn(vn,hn);var xn=vn!==Gn;Jn(vn),xn&&(jt==null||jt(vn))}var ur={id:sr,activeKey:Gn,animated:Zn,tabPosition:ct,rtl:Cn,mobile:Dn},Yn=(0,l.Z)((0,l.Z)({},ur),{},{editable:Gt,locale:Ge,more:ft,tabBarGutter:Dt,onTabClick:Ar,onTabScroll:an,extra:Jt,style:qt,panes:null,getPopupContainer:nn,popupClassName:mn,indicator:bn});return i.createElement($.Provider,{value:{tabs:_n,prefixCls:Be}},i.createElement("div",(0,H.Z)({ref:ve,id:wt,className:g()(Be,"".concat(Be,"-").concat(ct),(0,V.Z)((0,V.Z)((0,V.Z)({},"".concat(Be,"-mobile"),Dn),"".concat(Be,"-editable"),Gt),"".concat(Be,"-rtl"),Cn),ue)},In),i.createElement(Ce,(0,H.Z)({},Yn,{renderTabBar:Ye})),i.createElement(he,(0,H.Z)({destroyInactiveTabPane:Mt},ur,{animated:Zn}))))}),pt=kt,Vt=pt,Zt=u(48755),Re=u(83397),gt=u(31756),E=u(86641);const R={motionAppear:!1,motionEnter:!0,motionLeave:!0};function at(re){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},wt;return ve===!1?wt={inkBar:!1,tabPane:!1}:ve===!0?wt={inkBar:!0,tabPane:!0}:wt=Object.assign({inkBar:!0},typeof ve=="object"?ve:{}),wt.tabPane&&(wt.tabPaneMotion=Object.assign(Object.assign({},R),{motionName:(0,E.m)(re,"switch")})),wt}var ae=u(11592),Y=function(re,ve){var wt={};for(var Ne in re)Object.prototype.hasOwnProperty.call(re,Ne)&&ve.indexOf(Ne)<0&&(wt[Ne]=re[Ne]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(re);Be<Ne.length;Be++)ve.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(re,Ne[Be])&&(wt[Ne[Be]]=re[Ne[Be]]);return wt};function Ft(re){return re.filter(ve=>ve)}function Ke(re,ve){if(re)return re;const wt=(0,ae.Z)(ve).map(Ne=>{if(i.isValidElement(Ne)){const{key:Be,props:ue}=Ne,Ie=ue||{},{tab:Fe}=Ie,$e=Y(Ie,["tab"]);return Object.assign(Object.assign({key:String(Be)},$e),{label:Fe})}return null});return Ft(wt)}var st=u(36237),_t=u(63356),xe=u(16931),_e=u(51636),et=u(46e3),z=re=>{const{componentCls:ve,motionDurationSlow:wt}=re;return[{[ve]:{[`${ve}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${wt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${wt}`}}}}},[(0,et.oN)(re,"slide-up"),(0,et.oN)(re,"slide-down")]]};const Rt=re=>{const{componentCls:ve,tabsCardPadding:wt,cardBg:Ne,cardGutter:Be,colorBorderSecondary:ue,itemSelectedColor:Ie}=re;return{[`${ve}-card`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{margin:0,padding:wt,background:Ne,border:`${(0,st.unit)(re.lineWidth)} ${re.lineType} ${ue}`,transition:`all ${re.motionDurationSlow} ${re.motionEaseInOut}`},[`${ve}-tab-active`]:{color:Ie,background:re.colorBgContainer},[`${ve}-tab-focus`]:Object.assign({},(0,_t.oN)(re,-3)),[`${ve}-ink-bar`]:{visibility:"hidden"},[`& ${ve}-tab${ve}-tab-focus ${ve}-tab-btn`]:{outline:"none"}},[`&${ve}-top, &${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,st.unit)(Be)}}}},[`&${ve}-top`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:`${(0,st.unit)(re.borderRadiusLG)} ${(0,st.unit)(re.borderRadiusLG)} 0 0`},[`${ve}-tab-active`]:{borderBottomColor:re.colorBgContainer}}},[`&${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:`0 0 ${(0,st.unit)(re.borderRadiusLG)} ${(0,st.unit)(re.borderRadiusLG)}`},[`${ve}-tab-active`]:{borderTopColor:re.colorBgContainer}}},[`&${ve}-left, &${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginTop:(0,st.unit)(Be)}}},[`&${ve}-left`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,st.unit)(re.borderRadiusLG)} 0 0 ${(0,st.unit)(re.borderRadiusLG)}`}},[`${ve}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:re.colorBgContainer}}}},[`&${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,st.unit)(re.borderRadiusLG)} ${(0,st.unit)(re.borderRadiusLG)} 0`}},[`${ve}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:re.colorBgContainer}}}}}}},ge=re=>{const{componentCls:ve,itemHoverColor:wt,dropdownEdgeChildVerticalPadding:Ne}=re;return{[`${ve}-dropdown`]:Object.assign(Object.assign({},(0,_t.Wf)(re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:re.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ve}-dropdown-menu`]:{maxHeight:re.tabsDropdownHeight,margin:0,padding:`${(0,st.unit)(Ne)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:re.colorBgContainer,backgroundClip:"padding-box",borderRadius:re.borderRadiusLG,outline:"none",boxShadow:re.boxShadowSecondary,"&-item":Object.assign(Object.assign({},_t.vS),{display:"flex",alignItems:"center",minWidth:re.tabsDropdownWidth,margin:0,padding:`${(0,st.unit)(re.paddingXXS)} ${(0,st.unit)(re.paddingSM)}`,color:re.colorText,fontWeight:"normal",fontSize:re.fontSize,lineHeight:re.lineHeight,cursor:"pointer",transition:`all ${re.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:re.marginSM},color:re.colorTextDescription,fontSize:re.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:wt}},"&:hover":{background:re.controlItemBgHover},"&-disabled":{"&, &:hover":{color:re.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ht=re=>{const{componentCls:ve,margin:wt,colorBorderSecondary:Ne,horizontalMargin:Be,verticalItemPadding:ue,verticalItemMargin:Ie,calc:Fe}=re;return{[`${ve}-top, ${ve}-bottom`]:{flexDirection:"column",[`> ${ve}-nav, > div > ${ve}-nav`]:{margin:Be,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,st.unit)(re.lineWidth)} ${re.lineType} ${Ne}`,content:"''"},[`${ve}-ink-bar`]:{height:re.lineWidthBold,"&-animated":{transition:`width ${re.motionDurationSlow}, left ${re.motionDurationSlow},
right ${re.motionDurationSlow}`}},[`${ve}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:re.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:re.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:re.boxShadowTabsOverflowRight},[`&${ve}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ve}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ve}-top`]:{[`> ${ve}-nav,
> div > ${ve}-nav`]:{"&::before":{bottom:0},[`${ve}-ink-bar`]:{bottom:0}}},[`${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{order:1,marginTop:wt,marginBottom:0,"&::before":{top:0},[`${ve}-ink-bar`]:{top:0}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{order:0}},[`${ve}-left, ${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{flexDirection:"column",minWidth:Fe(re.controlHeight).mul(1.25).equal(),[`${ve}-tab`]:{padding:ue,textAlign:"center"},[`${ve}-tab + ${ve}-tab`]:{margin:Ie},[`${ve}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:re.controlHeight},"&::before":{top:0,boxShadow:re.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:re.boxShadowTabsOverflowBottom},[`&${ve}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ve}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ve}-ink-bar`]:{width:re.lineWidthBold,"&-animated":{transition:`height ${re.motionDurationSlow}, top ${re.motionDurationSlow}`}},[`${ve}-nav-list, ${ve}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ve}-left`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,st.unit)(Fe(re.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,st.unit)(re.lineWidth)} ${re.lineType} ${re.colorBorder}`},[`> ${ve}-content > ${ve}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:re.paddingLG}}}},[`${ve}-right`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{order:1,[`${ve}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ve}-content-holder, > div > ${ve}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Fe(re.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,st.unit)(re.lineWidth)} ${re.lineType} ${re.colorBorder}`},[`> ${ve}-content > ${ve}-tabpane`]:{paddingRight:{_skip_check_:!0,value:re.paddingLG}}}}}},cn=re=>{const{componentCls:ve,cardPaddingSM:wt,cardPaddingLG:Ne,horizontalItemPaddingSM:Be,horizontalItemPaddingLG:ue}=re;return{[ve]:{"&-small":{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:Be,fontSize:re.titleFontSizeSM}}},"&-large":{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:ue,fontSize:re.titleFontSizeLG}}}},[`${ve}-card`]:{[`&${ve}-small`]:{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:wt}},[`&${ve}-bottom`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:`0 0 ${(0,st.unit)(re.borderRadius)} ${(0,st.unit)(re.borderRadius)}`}},[`&${ve}-top`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:`${(0,st.unit)(re.borderRadius)} ${(0,st.unit)(re.borderRadius)} 0 0`}},[`&${ve}-right`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,st.unit)(re.borderRadius)} ${(0,st.unit)(re.borderRadius)} 0`}}},[`&${ve}-left`]:{[`> ${ve}-nav ${ve}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,st.unit)(re.borderRadius)} 0 0 ${(0,st.unit)(re.borderRadius)}`}}}},[`&${ve}-large`]:{[`> ${ve}-nav`]:{[`${ve}-tab`]:{padding:Ne}}}}}},mt=re=>{const{componentCls:ve,itemActiveColor:wt,itemHoverColor:Ne,iconCls:Be,tabsHorizontalItemMargin:ue,horizontalItemPadding:Ie,itemSelectedColor:Fe,itemColor:$e}=re,ut=`${ve}-tab`;return{[ut]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ie,fontSize:re.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:$e,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:wt}},"&-btn":{outline:"none",transition:`all ${re.motionDurationSlow}`,[`${ut}-icon:not(:last-child)`]:{marginInlineEnd:re.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:re.calc(re.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:re.marginXS},color:re.colorTextDescription,fontSize:re.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${re.motionDurationSlow}`,"&:hover":{color:re.colorTextHeading}},(0,_t.Qy)(re)),"&:hover":{color:Ne},[`&${ut}-active ${ut}-btn`]:{color:Fe,textShadow:re.tabsActiveTextShadow},[`&${ut}-focus ${ut}-btn`]:Object.assign({},(0,_t.oN)(re)),[`&${ut}-disabled`]:{color:re.colorTextDisabled,cursor:"not-allowed"},[`&${ut}-disabled ${ut}-btn, &${ut}-disabled ${ve}-remove`]:{"&:focus, &:active":{color:re.colorTextDisabled}},[`& ${ut}-remove ${Be}`]:{margin:0},[`${Be}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:re.marginSM}}},[`${ut} + ${ut}`]:{margin:{_skip_check_:!0,value:ue}}}},ne=re=>{const{componentCls:ve,tabsHorizontalItemMarginRTL:wt,iconCls:Ne,cardGutter:Be,calc:ue}=re;return{[`${ve}-rtl`]:{direction:"rtl",[`${ve}-nav`]:{[`${ve}-tab`]:{margin:{_skip_check_:!0,value:wt},[`${ve}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ne]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,st.unit)(re.marginSM)}},[`${ve}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,st.unit)(re.marginXS)},marginLeft:{_skip_check_:!0,value:(0,st.unit)(ue(re.marginXXS).mul(-1).equal())},[Ne]:{margin:0}}}},[`&${ve}-left`]:{[`> ${ve}-nav`]:{order:1},[`> ${ve}-content-holder`]:{order:0}},[`&${ve}-right`]:{[`> ${ve}-nav`]:{order:0},[`> ${ve}-content-holder`]:{order:1}},[`&${ve}-card${ve}-top, &${ve}-card${ve}-bottom`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-tab + ${ve}-tab`]:{marginRight:{_skip_check_:!0,value:Be},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ve}-dropdown-rtl`]:{direction:"rtl"},[`${ve}-menu-item`]:{[`${ve}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},we=re=>{const{componentCls:ve,tabsCardPadding:wt,cardHeight:Ne,cardGutter:Be,itemHoverColor:ue,itemActiveColor:Ie,colorBorderSecondary:Fe}=re;return{[ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(re)),{display:"flex",[`> ${ve}-nav, > div > ${ve}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ve}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${re.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ve}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${re.motionDurationSlow}`},[`${ve}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ve}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ve}-nav-more`]:{position:"relative",padding:wt,background:"transparent",border:0,color:re.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:re.calc(re.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${ve}-nav-add`]:Object.assign({minWidth:Ne,marginLeft:{_skip_check_:!0,value:Be},padding:(0,st.unit)(re.paddingXS),background:"transparent",border:`${(0,st.unit)(re.lineWidth)} ${re.lineType} ${Fe}`,borderRadius:`${(0,st.unit)(re.borderRadiusLG)} ${(0,st.unit)(re.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:re.colorText,transition:`all ${re.motionDurationSlow} ${re.motionEaseInOut}`,"&:hover":{color:ue},"&:active, &:focus:not(:focus-visible)":{color:Ie}},(0,_t.Qy)(re,-3))},[`${ve}-extra-content`]:{flex:"none"},[`${ve}-ink-bar`]:{position:"absolute",background:re.inkBarColor,pointerEvents:"none"}}),mt(re)),{[`${ve}-content`]:{position:"relative",width:"100%"},[`${ve}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ve}-tabpane`]:Object.assign(Object.assign({},(0,_t.Qy)(re)),{"&-hidden":{display:"none"}})}),[`${ve}-centered`]:{[`> ${ve}-nav, > div > ${ve}-nav`]:{[`${ve}-nav-wrap`]:{[`&:not([class*='${ve}-nav-wrap-ping']) > ${ve}-nav-list`]:{margin:"auto"}}}}}},B=re=>{const ve=re.controlHeightLG;return{zIndexPopup:re.zIndexPopupBase+50,cardBg:re.colorFillAlter,cardHeight:ve,cardPadding:`${(ve-Math.round(re.fontSize*re.lineHeight))/2-re.lineWidth}px ${re.padding}px`,cardPaddingSM:`${re.paddingXXS*1.5}px ${re.padding}px`,cardPaddingLG:`${re.paddingXS}px ${re.padding}px ${re.paddingXXS*1.5}px`,titleFontSize:re.fontSize,titleFontSizeLG:re.fontSizeLG,titleFontSizeSM:re.fontSize,inkBarColor:re.colorPrimary,horizontalMargin:`0 0 ${re.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${re.paddingSM}px 0`,horizontalItemPaddingSM:`${re.paddingXS}px 0`,horizontalItemPaddingLG:`${re.padding}px 0`,verticalItemPadding:`${re.paddingXS}px ${re.paddingLG}px`,verticalItemMargin:`${re.margin}px 0 0 0`,itemColor:re.colorText,itemSelectedColor:re.colorPrimary,itemHoverColor:re.colorPrimaryHover,itemActiveColor:re.colorPrimaryActive,cardGutter:re.marginXXS/2}};var xt=(0,xe.I$)("Tabs",re=>{const ve=(0,_e.mergeToken)(re,{tabsCardPadding:re.cardPadding,dropdownEdgeChildVerticalPadding:re.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,st.unit)(re.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,st.unit)(re.horizontalItemGutter)}`});return[cn(ve),ne(ve),Ht(ve),ge(ve),Rt(ve),we(ve),z(ve)]},B),ot=()=>null,$t=function(re,ve){var wt={};for(var Ne in re)Object.prototype.hasOwnProperty.call(re,Ne)&&ve.indexOf(Ne)<0&&(wt[Ne]=re[Ne]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(re);Be<Ne.length;Be++)ve.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(re,Ne[Be])&&(wt[Ne[Be]]=re[Ne[Be]]);return wt};const Bt=re=>{var ve,wt,Ne,Be,ue,Ie,Fe,$e,ut,Gt,sn;const{type:je,className:ct,rootClassName:Dt,size:qt,onEdit:Jt,hideAdd:Ge,centered:ft,addIcon:Mt,removeIcon:Ye,moreIcon:jt,more:rn,popupClassName:an,children:nn,items:mn,animated:bn,style:In,indicatorSize:_n,indicator:Cn}=re,Zn=$t(re,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Ln}=Zn,{direction:rr,tabs:Dn,getPrefixCls:jn,getPopupContainer:Xn}=i.useContext(Zt.E_),Wn=jn("tabs",Ln),Gn=(0,Re.Z)(Wn),[Jn,Rn,Bn]=xt(Wn,Gn);let ln;je==="editable-card"&&(ln={onEdit:(ur,Yn)=>{let{key:vn,event:hn}=Yn;Jt==null||Jt(ur==="add"?hn:vn,ur)},removeIcon:(ve=Ye!=null?Ye:Dn==null?void 0:Dn.removeIcon)!==null&&ve!==void 0?ve:i.createElement(U.Z,null),addIcon:(Mt!=null?Mt:Dn==null?void 0:Dn.addIcon)||i.createElement(fe.Z,null),showAdd:Ge!==!0});const Tt=jn(),Fn=(0,gt.Z)(qt),On=Ke(mn,nn),sr=at(Wn,bn),dr=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),In),Ar={align:(wt=Cn==null?void 0:Cn.align)!==null&&wt!==void 0?wt:(Ne=Dn==null?void 0:Dn.indicator)===null||Ne===void 0?void 0:Ne.align,size:(Fe=(ue=(Be=Cn==null?void 0:Cn.size)!==null&&Be!==void 0?Be:_n)!==null&&ue!==void 0?ue:(Ie=Dn==null?void 0:Dn.indicator)===null||Ie===void 0?void 0:Ie.size)!==null&&Fe!==void 0?Fe:Dn==null?void 0:Dn.indicatorSize};return Jn(i.createElement(Vt,Object.assign({direction:rr,getPopupContainer:Xn},Zn,{items:On,className:g()({[`${Wn}-${Fn}`]:Fn,[`${Wn}-card`]:["card","editable-card"].includes(je),[`${Wn}-editable-card`]:je==="editable-card",[`${Wn}-centered`]:ft},Dn==null?void 0:Dn.className,ct,Dt,Rn,Bn,Gn),popupClassName:g()(an,Rn,Bn,Gn),style:dr,editable:ln,more:Object.assign({icon:(sn=(Gt=(ut=($e=Dn==null?void 0:Dn.more)===null||$e===void 0?void 0:$e.icon)!==null&&ut!==void 0?ut:Dn==null?void 0:Dn.moreIcon)!==null&&Gt!==void 0?Gt:jt)!==null&&sn!==void 0?sn:i.createElement(O.Z,null),transitionName:`${Tt}-slide-up`},rn),prefixCls:Wn,animated:sr,indicator:Ar})))};Bt.TabPane=ot;var zt=Bt},96599:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return N}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(2738),Z=u(29509),g=u(78776),H=u(22703),V=u(12919),l=u(48755),y=u(36237),M=u(17835),b=u(63356),C=u(51636),T=u(16931);const $=S=>{const{paddingXXS:q,lineWidth:te,tagPaddingHorizontal:se,componentCls:w,calc:I}=S,de=I(se).sub(te).equal(),De=I(q).sub(te).equal();return{[w]:Object.assign(Object.assign({},(0,b.Wf)(S)),{display:"inline-block",height:"auto",marginInlineEnd:S.marginXS,paddingInline:de,fontSize:S.tagFontSize,lineHeight:S.tagLineHeight,whiteSpace:"nowrap",background:S.defaultBg,border:`${(0,y.unit)(S.lineWidth)} ${S.lineType} ${S.colorBorder}`,borderRadius:S.borderRadiusSM,opacity:1,transition:`all ${S.motionDurationMid}`,textAlign:"start",position:"relative",[`&${w}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:S.defaultColor},[`${w}-close-icon`]:{marginInlineStart:De,fontSize:S.tagIconSize,color:S.colorTextDescription,cursor:"pointer",transition:`all ${S.motionDurationMid}`,"&:hover":{color:S.colorTextHeading}},[`&${w}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${S.iconCls}-close, ${S.iconCls}-close:hover`]:{color:S.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${w}-checkable-checked):hover`]:{color:S.colorPrimary,backgroundColor:S.colorFillSecondary},"&:active, &-checked":{color:S.colorTextLightSolid},"&-checked":{backgroundColor:S.colorPrimary,"&:hover":{backgroundColor:S.colorPrimaryHover}},"&:active":{backgroundColor:S.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${S.iconCls} + span, > span + ${S.iconCls}`]:{marginInlineStart:de}}),[`${w}-borderless`]:{borderColor:"transparent",background:S.tagBorderlessBg}}},W=S=>{const{lineWidth:q,fontSizeIcon:te,calc:se}=S,w=S.fontSizeSM;return(0,C.mergeToken)(S,{tagFontSize:w,tagLineHeight:(0,y.unit)(se(S.lineHeightSM).mul(w).equal()),tagIconSize:se(te).sub(se(q).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:S.defaultBg})},X=S=>({defaultBg:new M.FastColor(S.colorFillQuaternary).onBackground(S.colorBgContainer).toHexString(),defaultColor:S.colorText});var G=(0,T.I$)("Tag",S=>{const q=W(S);return $(q)},X),L=function(S,q){var te={};for(var se in S)Object.prototype.hasOwnProperty.call(S,se)&&q.indexOf(se)<0&&(te[se]=S[se]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,se=Object.getOwnPropertySymbols(S);w<se.length;w++)q.indexOf(se[w])<0&&Object.prototype.propertyIsEnumerable.call(S,se[w])&&(te[se[w]]=S[se[w]]);return te},P=i.forwardRef((S,q)=>{const{prefixCls:te,style:se,className:w,checked:I,onChange:de,onClick:De}=S,dt=L(S,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:It,tag:Te}=i.useContext(l.E_),rt=un=>{de==null||de(!I),De==null||De(un)},ht=It("tag",te),[St,Me,Xt]=G(ht),tt=O()(ht,`${ht}-checkable`,{[`${ht}-checkable-checked`]:I},Te==null?void 0:Te.className,w,Me,Xt);return St(i.createElement("span",Object.assign({},dt,{ref:q,style:Object.assign(Object.assign({},se),Te==null?void 0:Te.style),className:tt,onClick:rt})))}),A=u(93427);const ce=S=>(0,A.Z)(S,(q,te)=>{let{textColor:se,lightBorderColor:w,lightColor:I,darkColor:de}=te;return{[`${S.componentCls}${S.componentCls}-${q}`]:{color:se,background:I,borderColor:w,"&-inverse":{color:S.colorTextLightSolid,background:de,borderColor:de},[`&${S.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ee=(0,T.bk)(["Tag","preset"],S=>{const q=W(S);return ce(q)},X);function pe(S){return typeof S!="string"?S:S.charAt(0).toUpperCase()+S.slice(1)}const ze=(S,q,te)=>{const se=pe(te);return{[`${S.componentCls}${S.componentCls}-${q}`]:{color:S[`color${te}`],background:S[`color${se}Bg`],borderColor:S[`color${se}Border`],[`&${S.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Je=(0,T.bk)(["Tag","status"],S=>{const q=W(S);return[ze(q,"success","Success"),ze(q,"processing","Info"),ze(q,"error","Error"),ze(q,"warning","Warning")]},X),Pe=function(S,q){var te={};for(var se in S)Object.prototype.hasOwnProperty.call(S,se)&&q.indexOf(se)<0&&(te[se]=S[se]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,se=Object.getOwnPropertySymbols(S);w<se.length;w++)q.indexOf(se[w])<0&&Object.prototype.propertyIsEnumerable.call(S,se[w])&&(te[se[w]]=S[se[w]]);return te};const le=i.forwardRef((S,q)=>{const{prefixCls:te,className:se,rootClassName:w,style:I,children:de,icon:De,color:dt,onClose:It,bordered:Te=!0,visible:rt}=S,ht=Pe(S,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:St,direction:Me,tag:Xt}=i.useContext(l.E_),[tt,un]=i.useState(!0),vt=(0,fe.Z)(ht,["closeIcon","closable"]);i.useEffect(()=>{rt!==void 0&&un(rt)},[rt]);const bt=(0,Z.o2)(dt),Ve=(0,Z.yT)(dt),Le=bt||Ve,oe=Object.assign(Object.assign({backgroundColor:dt&&!Le?dt:void 0},Xt==null?void 0:Xt.style),I),nt=St("tag",te),[Ue,K,D]=G(nt),Se=O()(nt,Xt==null?void 0:Xt.className,{[`${nt}-${dt}`]:Le,[`${nt}-has-color`]:dt&&!Le,[`${nt}-hidden`]:!tt,[`${nt}-rtl`]:Me==="rtl",[`${nt}-borderless`]:!Te},se,w,K,D),Ae=me=>{me.stopPropagation(),It==null||It(me),!me.defaultPrevented&&un(!1)},[,Ce]=(0,g.Z)((0,g.w)(S),(0,g.w)(Xt),{closable:!1,closeIconRender:me=>{const Lt=i.createElement("span",{className:`${nt}-close-icon`,onClick:Ae},me);return(0,H.wm)(me,Lt,Ct=>({onClick:Nt=>{var kt;(kt=Ct==null?void 0:Ct.onClick)===null||kt===void 0||kt.call(Ct,Nt),Ae(Nt)},className:O()(Ct==null?void 0:Ct.className,`${nt}-close-icon`)}))}}),ke=typeof ht.onClick=="function"||de&&de.type==="a",Xe=De||null,yt=Xe?i.createElement(i.Fragment,null,Xe,de&&i.createElement("span",null,de)):de,he=i.createElement("span",Object.assign({},vt,{ref:q,className:Se,style:oe}),yt,Ce,bt&&i.createElement(Ee,{key:"preset",prefixCls:nt}),Ve&&i.createElement(Je,{key:"status",prefixCls:nt}));return Ue(ke?i.createElement(V.Z,{component:"Tag"},he):he)});le.CheckableTag=P;var N=le},93427:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return U}});var i=u(34998);function U(O,fe){return i.i.reduce((Z,g)=>{const H=O[`${g}1`],V=O[`${g}3`],l=O[`${g}6`],y=O[`${g}7`];return Object.assign(Object.assign({},Z),fe(g,{lightColor:H,lightBorderColor:V,darkColor:l,textColor:y}))},{})}},25399:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return q}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(29125),Z=u(18929),g=u(62487),H=u(75030),V=u(86641),l=u(52838),y=u(22703),M=u(32383),b=u(55743),C=u(57700),T=u(48755),$=u(36237),W=u(63356),X=u(34925),G=u(37645),L=u(36305),Q=u(93427),P=u(51636),A=u(16931);const ce=te=>{const{calc:se,componentCls:w,tooltipMaxWidth:I,tooltipColor:de,tooltipBg:De,tooltipBorderRadius:dt,zIndexPopup:It,controlHeight:Te,boxShadowSecondary:rt,paddingSM:ht,paddingXS:St,arrowOffsetHorizontal:Me,sizePopupArrow:Xt}=te,tt=se(dt).add(Xt).add(Me).equal(),un=se(dt).mul(2).add(Xt).equal();return[{[w]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(te)),{position:"absolute",zIndex:It,display:"block",width:"max-content",maxWidth:I,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":De,[`${w}-inner`]:{minWidth:un,minHeight:Te,padding:`${(0,$.unit)(te.calc(ht).div(2).equal())} ${(0,$.unit)(St)}`,color:de,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:De,borderRadius:dt,boxShadow:rt,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:tt},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${w}-inner`]:{borderRadius:te.min(dt,G.qN)}},[`${w}-content`]:{position:"relative"}}),(0,Q.Z)(te,(vt,bt)=>{let{darkColor:Ve}=bt;return{[`&${w}-${vt}`]:{[`${w}-inner`]:{backgroundColor:Ve},[`${w}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,G.ZP)(te,"var(--antd-arrow-background-color)"),{[`${w}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow}}]},Ee=te=>Object.assign(Object.assign({zIndexPopup:te.zIndexPopupBase+70},(0,G.wZ)({contentRadius:te.borderRadius,limitVerticalRadius:!0})),(0,L.w)((0,P.mergeToken)(te,{borderRadiusOuter:Math.min(te.borderRadiusOuter,4)})));var pe=function(te){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,A.I$)("Tooltip",I=>{const{borderRadius:de,colorTextLightSolid:De,colorBgSpotlight:dt}=I,It=(0,P.mergeToken)(I,{tooltipMaxWidth:250,tooltipColor:De,tooltipBorderRadius:de,tooltipBg:dt});return[ce(It),(0,X._y)(I,"zoom-big-fast")]},Ee,{resetStyle:!1,injectStyle:se})(te)},ze=u(29509);function Je(te,se){const w=(0,ze.o2)(se),I=O()({[`${te}-${se}`]:se&&w}),de={},De={};return se&&!w&&(de.background=se,De["--antd-arrow-background-color"]=se),{className:I,overlayStyle:de,arrowStyle:De}}var Ze=te=>{const{prefixCls:se,className:w,placement:I="top",title:de,color:De,overlayInnerStyle:dt}=te,{getPrefixCls:It}=i.useContext(T.E_),Te=It("tooltip",se),[rt,ht,St]=pe(Te),Me=Je(Te,De),Xt=Me.arrowStyle,tt=Object.assign(Object.assign({},dt),Me.overlayStyle),un=O()(ht,St,Te,`${Te}-pure`,`${Te}-placement-${I}`,w,Me.className);return rt(i.createElement("div",{className:un,style:Xt},i.createElement("div",{className:`${Te}-arrow`}),i.createElement(fe.G,Object.assign({},te,{className:ht,prefixCls:Te,overlayInnerStyle:tt}),de)))},le=function(te,se){var w={};for(var I in te)Object.prototype.hasOwnProperty.call(te,I)&&se.indexOf(I)<0&&(w[I]=te[I]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,I=Object.getOwnPropertySymbols(te);de<I.length;de++)se.indexOf(I[de])<0&&Object.prototype.propertyIsEnumerable.call(te,I[de])&&(w[I[de]]=te[I[de]]);return w};const S=i.forwardRef((te,se)=>{var w,I;const{prefixCls:de,openClassName:De,getTooltipContainer:dt,color:It,overlayInnerStyle:Te,children:rt,afterOpenChange:ht,afterVisibleChange:St,destroyTooltipOnHide:Me,arrow:Xt=!0,title:tt,overlay:un,builtinPlacements:vt,arrowPointAtCenter:bt=!1,autoAdjustOverflow:Ve=!0,motion:Le,getPopupContainer:oe,placement:nt="top",mouseEnterDelay:Ue=.1,mouseLeaveDelay:K=.1,overlayStyle:D,rootClassName:Se,overlayClassName:Ae,styles:Ce,classNames:ke}=te,Xe=le(te,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),yt=!!Xt,[,he]=(0,C.ZP)(),{getPopupContainer:me,getPrefixCls:Lt,direction:Ct,className:Nt,style:kt,classNames:pt,styles:Vt}=(0,T.dj)("tooltip"),Zt=(0,M.ln)("Tooltip"),Re=i.useRef(null),gt=()=>{var ot;(ot=Re.current)===null||ot===void 0||ot.forceAlign()};i.useImperativeHandle(se,()=>{var ot,$t;return{forceAlign:gt,forcePopupAlign:()=>{Zt.deprecated(!1,"forcePopupAlign","forceAlign"),gt()},nativeElement:(ot=Re.current)===null||ot===void 0?void 0:ot.nativeElement,popupElement:($t=Re.current)===null||$t===void 0?void 0:$t.popupElement}});const[E,R]=(0,Z.Z)(!1,{value:(w=te.open)!==null&&w!==void 0?w:te.visible,defaultValue:(I=te.defaultOpen)!==null&&I!==void 0?I:te.defaultVisible}),at=!tt&&!un&&tt!==0,ae=ot=>{var $t,Bt;R(at?!1:ot),at||(($t=te.onOpenChange)===null||$t===void 0||$t.call(te,ot),(Bt=te.onVisibleChange)===null||Bt===void 0||Bt.call(te,ot))},Y=i.useMemo(()=>{var ot,$t;let Bt=bt;return typeof Xt=="object"&&(Bt=($t=(ot=Xt.pointAtCenter)!==null&&ot!==void 0?ot:Xt.arrowPointAtCenter)!==null&&$t!==void 0?$t:bt),vt||(0,l.Z)({arrowPointAtCenter:Bt,autoAdjustOverflow:Ve,arrowWidth:yt?he.sizePopupArrow:0,borderRadius:he.borderRadius,offset:he.marginXXS,visibleFirst:!0})},[bt,Xt,vt,he]),Ft=i.useMemo(()=>tt===0?tt:un||tt||"",[un,tt]),Ke=i.createElement(g.Z,{space:!0},typeof Ft=="function"?Ft():Ft),st=Lt("tooltip",de),_t=Lt(),xe=te["data-popover-inject"];let _e=E;!("open"in te)&&!("visible"in te)&&at&&(_e=!1);const et=i.isValidElement(rt)&&!(0,y.M2)(rt)?rt:i.createElement("span",null,rt),Qe=et.props,z=!Qe.className||typeof Qe.className=="string"?O()(Qe.className,De||`${st}-open`):Qe.className,[Rt,ge,Ht]=pe(st,!xe),cn=Je(st,It),mt=cn.arrowStyle,ne=O()(Ae,{[`${st}-rtl`]:Ct==="rtl"},cn.className,Se,ge,Ht,Nt,pt.root,ke==null?void 0:ke.root),we=O()(pt.body,ke==null?void 0:ke.body),[B,xt]=(0,H.Cn)("Tooltip",Xe.zIndex),lt=i.createElement(fe.Z,Object.assign({},Xe,{zIndex:B,showArrow:yt,placement:nt,mouseEnterDelay:Ue,mouseLeaveDelay:K,prefixCls:st,classNames:{root:ne,body:we},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mt),Vt.root),kt),D),Ce==null?void 0:Ce.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Vt.body),Te),Ce==null?void 0:Ce.body),cn.overlayStyle)},getTooltipContainer:oe||dt||me,ref:Re,builtinPlacements:Y,overlay:Ke,visible:_e,onVisibleChange:ae,afterVisibleChange:ht!=null?ht:St,arrowContent:i.createElement("span",{className:`${st}-arrow-content`}),motion:{motionName:(0,V.m)(_t,"zoom-big-fast",te.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Me}),_e?(0,y.Tm)(et,{className:z}):et);return Rt(i.createElement(b.Z.Provider,{value:xt},lt))});S._InternalPanelDoNotUseOrYouWillBeFired=Ze;var q=S},53420:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return ne}});var i=u(59301),U=u(92310),O=u.n(U),fe=u(54476),Z=u(94480),g=u(33885),H=u(42978),V=u(75931),l=u(76190),y=u(37463),M=u(6551),b=u(34643),C=u(18929),T=u(48736),$=function(we){var B=i.useRef({valueLabels:new Map});return i.useMemo(function(){var xt=B.current.valueLabels,lt=new Map,ot=we.map(function($t){var Bt=$t.value,zt=$t.label,re=zt!=null?zt:xt.get(Bt);return lt.set(Bt,re),(0,g.Z)((0,g.Z)({},$t),{},{label:re})});return B.current.valueLabels=lt,[ot]},[we])},W=function(B,xt,lt,ot){return i.useMemo(function(){var $t=function(ue){return ue.map(function(Ie){var Fe=Ie.value;return Fe})},Bt=$t(B),zt=$t(xt),re=Bt.filter(function(Be){return!ot[Be]}),ve=Bt,wt=zt;if(lt){var Ne=(0,b.S)(Bt,!0,ot);ve=Ne.checkedKeys,wt=Ne.halfCheckedKeys}return[Array.from(new Set([].concat((0,Z.Z)(re),(0,Z.Z)(ve)))),wt]},[B,xt,lt,ot])},X=W,G=u(34061),L=function(we,B){return i.useMemo(function(){var xt=(0,G.I8)(we,{fieldNames:B,initWrapper:function(ot){return(0,g.Z)((0,g.Z)({},ot),{},{valueEntities:new Map})},processEntity:function(ot,$t){var Bt=ot.node[B.value];if(0)var zt;$t.valueEntities.set(Bt,ot)}});return xt},[we,B])},Q=u(20068),P=u(11592),A=function(){return null},ce=A,Ee=["children","value"];function pe(we){return(0,P.Z)(we).map(function(B){if(!i.isValidElement(B)||!B.type)return null;var xt=B,lt=xt.key,ot=xt.props,$t=ot.children,Bt=ot.value,zt=(0,V.Z)(ot,Ee),re=(0,g.Z)({key:lt,value:Bt},zt),ve=pe($t);return ve.length&&(re.children=ve),re}).filter(function(B){return B})}function ze(we){if(!we)return we;var B=(0,g.Z)({},we);return"props"in B||Object.defineProperty(B,"props",{get:function(){return(0,T.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),B}}),B}function Je(we,B,xt,lt,ot,$t){var Bt=null,zt=null;function re(){function ve(wt){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return wt.map(function(ue,Ie){var Fe="".concat(Ne,"-").concat(Ie),$e=ue[$t.value],ut=xt.includes($e),Gt=ve(ue[$t.children]||[],Fe,ut),sn=i.createElement(ce,ue,Gt.map(function(ct){return ct.node}));if(B===$e&&(Bt=sn),ut){var je={pos:Fe,node:sn,children:Gt};return Be||zt.push(je),je}return null}).filter(function(ue){return ue})}zt||(zt=[],ve(lt),zt.sort(function(wt,Ne){var Be=wt.node.props.value,ue=Ne.node.props.value,Ie=xt.indexOf(Be),Fe=xt.indexOf(ue);return Ie-Fe}))}Object.defineProperty(we,"triggerNode",{get:function(){return(0,T.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),re(),Bt}}),Object.defineProperty(we,"allCheckedNodes",{get:function(){return(0,T.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),re(),ot?zt:zt.map(function(wt){var Ne=wt.node;return Ne})}})}var Pe=function(B,xt,lt){var ot=lt.fieldNames,$t=lt.treeNodeFilterProp,Bt=lt.filterTreeNode,zt=ot.children;return i.useMemo(function(){if(!xt||Bt===!1)return B;var re=typeof Bt=="function"?Bt:function(wt,Ne){return String(Ne[$t]).toUpperCase().includes(xt.toUpperCase())},ve=function wt(Ne){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ne.reduce(function(ue,Ie){var Fe=Ie[zt],$e=Be||re(xt,ze(Ie)),ut=wt(Fe||[],$e);return($e||ut.length)&&ue.push((0,g.Z)((0,g.Z)({},Ie),{},(0,Q.Z)({isLeaf:void 0},zt,ut))),ue},[])};return ve(B)},[B,xt,zt,$t,Bt])},Ze=Pe;function le(we){var B=i.useRef();B.current=we;var xt=i.useCallback(function(){return B.current.apply(B,arguments)},[]);return xt}function N(we,B){var xt=B.id,lt=B.pId,ot=B.rootPId,$t=new Map,Bt=[];return we.forEach(function(zt){var re=zt[xt],ve=(0,g.Z)((0,g.Z)({},zt),{},{key:zt.key||re});$t.set(re,ve)}),$t.forEach(function(zt){var re=zt[lt],ve=$t.get(re);ve?(ve.children=ve.children||[],ve.children.push(zt)):(re===ot||ot===null)&&Bt.push(zt)}),Bt}function S(we,B,xt){return i.useMemo(function(){if(we){if(xt){var lt=(0,g.Z)({id:"id",pId:"pId",rootPId:null},(0,l.Z)(xt)==="object"?xt:{});return N(we,lt)}return we}return pe(B)},[B,xt,we])}var q=i.createContext(null),te=q,se=u(19251),w=u(3741),I=u(10228),de=u(80547),De=i.createContext(null),dt=De,It=function(B){return Array.isArray(B)?B:B!==void 0?[B]:[]},Te=function(B){var xt=B||{},lt=xt.label,ot=xt.value,$t=xt.children;return{_title:lt?[lt]:["title","label"],value:ot||"value",key:ot||"value",children:$t||"children"}},rt=function(B){return!B||B.disabled||B.disableCheckbox||B.checkable===!1},ht=function(B,xt){var lt=[],ot=function $t(Bt){Bt.forEach(function(zt){var re=zt[xt.children];re&&(lt.push(zt[xt.value]),$t(re))})};return ot(B),lt},St=function(B){return B==null},Me=u(70425),Xt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},tt=function(B,xt){var lt=(0,y.lk)(),ot=lt.prefixCls,$t=lt.multiple,Bt=lt.searchValue,zt=lt.toggleOpen,re=lt.open,ve=lt.notFoundContent,wt=i.useContext(dt),Ne=wt.virtual,Be=wt.listHeight,ue=wt.listItemHeight,Ie=wt.listItemScrollOffset,Fe=wt.treeData,$e=wt.fieldNames,ut=wt.onSelect,Gt=wt.dropdownMatchSelectWidth,sn=wt.treeExpandAction,je=wt.treeTitleRender,ct=wt.onPopupScroll,Dt=wt.leftMaxCount,qt=wt.leafCountOnly,Jt=wt.valueEntities,Ge=i.useContext(te),ft=Ge.checkable,Mt=Ge.checkedKeys,Ye=Ge.halfCheckedKeys,jt=Ge.treeExpandedKeys,rn=Ge.treeDefaultExpandAll,an=Ge.treeDefaultExpandedKeys,nn=Ge.onTreeExpand,mn=Ge.treeIcon,bn=Ge.showTreeIcon,In=Ge.switcherIcon,_n=Ge.treeLine,Cn=Ge.treeNodeFilterProp,Zn=Ge.loadData,Ln=Ge.treeLoadedKeys,rr=Ge.treeMotion,Dn=Ge.onTreeLoad,jn=Ge.keyEntities,Xn=i.useRef(),Wn=(0,de.Z)(function(){return Fe},[re,Fe],function(Ir,tn){return tn[0]&&Ir[1]!==tn[1]}),Gn=i.useMemo(function(){return ft?{checked:Mt,halfChecked:Ye}:null},[ft,Mt,Ye]);i.useEffect(function(){if(re&&!$t&&Mt.length){var Ir;(Ir=Xn.current)===null||Ir===void 0||Ir.scrollTo({key:Mt[0]})}},[re]);var Jn=function(tn){tn.preventDefault()},Rn=function(tn,Tn){var cr=Tn.node;ft&&rt(cr)||(ut(cr.key,{selected:!Mt.includes(cr.key)}),$t||zt(!1))},Bn=i.useState(an),ln=(0,H.Z)(Bn,2),Tt=ln[0],Fn=ln[1],On=i.useState(null),sr=(0,H.Z)(On,2),dr=sr[0],Ar=sr[1],ur=i.useMemo(function(){return jt?(0,Z.Z)(jt):Bt?dr:Tt},[Tt,dr,jt,Bt]),Yn=function(tn){Fn(tn),Ar(tn),nn&&nn(tn)},vn=String(Bt).toLowerCase(),hn=function(tn){return vn?String(tn[Cn]).toLowerCase().includes(vn):!1};i.useEffect(function(){Bt&&Ar(ht(Fe,$e))},[Bt]);var xn=i.useState(function(){return new Map}),Qn=(0,H.Z)(xn,2),tr=Qn[0],yr=Qn[1];i.useEffect(function(){Dt&&yr(new Map)},[Dt]);function Er(Ir){var tn=Ir[$e.value];if(!tr.has(tn)){var Tn=Jt.get(tn),cr=(Tn.children||[]).length===0;if(cr)tr.set(tn,!1);else{var or=Tn.children.filter(function(ri){return!ri.node.disabled&&!ri.node.disableCheckbox&&!Mt.includes(ri.node[$e.value])}),Br=or.length;tr.set(tn,Br>Dt)}}return tr.get(tn)}var $n=(0,Me.zX)(function(Ir){var tn=Ir[$e.value];return Mt.includes(tn)||Dt===null?!1:Dt<=0?!0:qt&&Dt?Er(Ir):!1}),Sr=function Ir(tn){var Tn=(0,se.Z)(tn),cr;try{for(Tn.s();!(cr=Tn.n()).done;){var or=cr.value;if(!(or.disabled||or.selectable===!1)){if(Bt){if(hn(or))return or}else return or;if(or[$e.children]){var Br=Ir(or[$e.children]);if(Br)return Br}}}}catch(ri){Tn.e(ri)}finally{Tn.f()}return null},Dr=i.useState(null),$r=(0,H.Z)(Dr,2),Mr=$r[0],Or=$r[1],Cr=jn[Mr];i.useEffect(function(){if(re){var Ir=null,tn=function(){var cr=Sr(Wn);return cr?cr[$e.value]:null};!$t&&Mt.length&&!Bt?Ir=Mt[0]:Ir=tn(),Or(Ir)}},[re,Bt]),i.useImperativeHandle(xt,function(){var Ir;return{scrollTo:(Ir=Xn.current)===null||Ir===void 0?void 0:Ir.scrollTo,onKeyDown:function(Tn){var cr,or=Tn.which;switch(or){case I.Z.UP:case I.Z.DOWN:case I.Z.LEFT:case I.Z.RIGHT:(cr=Xn.current)===null||cr===void 0||cr.onKeyDown(Tn);break;case I.Z.ENTER:{if(Cr){var Br=$n(Cr.node),ri=(Cr==null?void 0:Cr.node)||{},vi=ri.selectable,_r=ri.value,mr=ri.disabled;vi!==!1&&!mr&&!Br&&Rn(null,{node:{key:Mr},selected:!Mt.includes(_r)})}break}case I.Z.ESC:zt(!1)}},onKeyUp:function(){}}});var zr=(0,de.Z)(function(){return!Bt},[Bt,jt||Tt],function(Ir,tn){var Tn=(0,H.Z)(Ir,1),cr=Tn[0],or=(0,H.Z)(tn,2),Br=or[0],ri=or[1];return cr!==Br&&!!(Br||ri)}),wr=zr?Zn:null;if(Wn.length===0)return i.createElement("div",{role:"listbox",className:"".concat(ot,"-empty"),onMouseDown:Jn},ve);var Vr={fieldNames:$e};return Ln&&(Vr.loadedKeys=Ln),ur&&(Vr.expandedKeys=ur),i.createElement("div",{onMouseDown:Jn},Cr&&re&&i.createElement("span",{style:Xt,"aria-live":"assertive"},Cr.node.value),i.createElement(w.y6.Provider,{value:{nodeDisabled:$n}},i.createElement(w.ZP,(0,fe.Z)({ref:Xn,focusable:!1,prefixCls:"".concat(ot,"-tree"),treeData:Wn,height:Be,itemHeight:ue,itemScrollOffset:Ie,virtual:Ne!==!1&&Gt!==!1,multiple:$t,icon:mn,showIcon:bn,switcherIcon:In,showLine:_n,loadData:wr,motion:rr,activeKey:Mr,checkable:ft,checkStrictly:!0,checkedKeys:Gn,selectedKeys:ft?[]:Mt,defaultExpandAll:rn,titleRender:je},Vr,{onActiveChange:Or,onSelect:Rn,onCheck:Rn,onExpand:Yn,onLoad:Dn,filterTreeNode:hn,expandAction:sn,onScroll:ct}))))},un=i.forwardRef(tt),vt=un,bt="SHOW_ALL",Ve="SHOW_PARENT",Le="SHOW_CHILD";function oe(we,B,xt,lt){var ot=new Set(we);return B===Le?we.filter(function($t){var Bt=xt[$t];return!Bt||!Bt.children||!Bt.children.some(function(zt){var re=zt.node;return ot.has(re[lt.value])})||!Bt.children.every(function(zt){var re=zt.node;return rt(re)||ot.has(re[lt.value])})}):B===Ve?we.filter(function($t){var Bt=xt[$t],zt=Bt?Bt.parent:null;return!zt||rt(zt.node)||!ot.has(zt.key)}):we}function nt(we){var B=we.searchPlaceholder,xt=we.treeCheckStrictly,lt=we.treeCheckable,ot=we.labelInValue,$t=we.value,Bt=we.multiple,zt=we.showCheckedStrategy,re=we.maxCount;warning(!B,"`searchPlaceholder` has been removed."),xt&&ot===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ot||xt)&&warning(toArray($t).every(function(ve){return ve&&_typeof(ve)==="object"&&"value"in ve}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),xt||Bt||lt?warning(!$t||Array.isArray($t),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray($t),"`value` should not be array when `TreeSelect` is single mode."),re&&(zt==="SHOW_ALL"&&!xt||zt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ue=null,K=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function D(we){return!we||(0,l.Z)(we)!=="object"}var Se=i.forwardRef(function(we,B){var xt=we.id,lt=we.prefixCls,ot=lt===void 0?"rc-tree-select":lt,$t=we.value,Bt=we.defaultValue,zt=we.onChange,re=we.onSelect,ve=we.onDeselect,wt=we.searchValue,Ne=we.inputValue,Be=we.onSearch,ue=we.autoClearSearchValue,Ie=ue===void 0?!0:ue,Fe=we.filterTreeNode,$e=we.treeNodeFilterProp,ut=$e===void 0?"value":$e,Gt=we.showCheckedStrategy,sn=we.treeNodeLabelProp,je=we.multiple,ct=we.treeCheckable,Dt=we.treeCheckStrictly,qt=we.labelInValue,Jt=we.maxCount,Ge=we.fieldNames,ft=we.treeDataSimpleMode,Mt=we.treeData,Ye=we.children,jt=we.loadData,rn=we.treeLoadedKeys,an=we.onTreeLoad,nn=we.treeDefaultExpandAll,mn=we.treeExpandedKeys,bn=we.treeDefaultExpandedKeys,In=we.onTreeExpand,_n=we.treeExpandAction,Cn=we.virtual,Zn=we.listHeight,Ln=Zn===void 0?200:Zn,rr=we.listItemHeight,Dn=rr===void 0?20:rr,jn=we.listItemScrollOffset,Xn=jn===void 0?0:jn,Wn=we.onDropdownVisibleChange,Gn=we.dropdownMatchSelectWidth,Jn=Gn===void 0?!0:Gn,Rn=we.treeLine,Bn=we.treeIcon,ln=we.showTreeIcon,Tt=we.switcherIcon,Fn=we.treeMotion,On=we.treeTitleRender,sr=we.onPopupScroll,dr=(0,V.Z)(we,K),Ar=(0,M.ZP)(xt),ur=ct&&!Dt,Yn=ct||Dt,vn=Dt||qt,hn=Yn||je,xn=(0,C.Z)(Bt,{value:$t}),Qn=(0,H.Z)(xn,2),tr=Qn[0],yr=Qn[1],Er=i.useMemo(function(){return ct?Gt||Le:bt},[Gt,ct]),$n=i.useMemo(function(){return Te(Ge)},[JSON.stringify(Ge)]),Sr=(0,C.Z)("",{value:wt!==void 0?wt:Ne,postState:function(br){return br||""}}),Dr=(0,H.Z)(Sr,2),$r=Dr[0],Mr=Dr[1],Or=function(br){Mr(br),Be==null||Be(br)},Cr=S(Mt,Ye,ft),zr=L(Cr,$n),wr=zr.keyEntities,Vr=zr.valueEntities,Ir=i.useCallback(function(vr){var br=[],Pr=[];return vr.forEach(function(Wr){Vr.has(Wr)?Pr.push(Wr):br.push(Wr)}),{missingRawValues:br,existRawValues:Pr}},[Vr]),tn=Ze(Cr,$r,{fieldNames:$n,treeNodeFilterProp:ut,filterTreeNode:Fe}),Tn=i.useCallback(function(vr){if(vr){if(sn)return vr[sn];for(var br=$n._title,Pr=0;Pr<br.length;Pr+=1){var Wr=vr[br[Pr]];if(Wr!==void 0)return Wr}}},[$n,sn]),cr=i.useCallback(function(vr){var br=It(vr);return br.map(function(Pr){return D(Pr)?{value:Pr}:Pr})},[]),or=i.useCallback(function(vr){var br=cr(vr);return br.map(function(Pr){var Wr=Pr.label,Ci=Pr.value,xr=Pr.halfChecked,Rr,Nr=Vr.get(Ci);if(Nr){var Zr;Wr=On?On(Nr.node):(Zr=Wr)!==null&&Zr!==void 0?Zr:Tn(Nr.node),Rr=Nr.node.disabled}else if(Wr===void 0){var ni=cr(tr).find(function(ma){return ma.value===Ci});Wr=ni.label}return{label:Wr,value:Ci,halfChecked:xr,disabled:Rr}})},[Vr,Tn,cr,tr]),Br=i.useMemo(function(){return cr(tr===null?[]:tr)},[cr,tr]),ri=i.useMemo(function(){var vr=[],br=[];return Br.forEach(function(Pr){Pr.halfChecked?br.push(Pr):vr.push(Pr)}),[vr,br]},[Br]),vi=(0,H.Z)(ri,2),_r=vi[0],mr=vi[1],bi=i.useMemo(function(){return _r.map(function(vr){return vr.value})},[_r]),ar=X(_r,mr,ur,wr),wi=(0,H.Z)(ar,2),Yi=wi[0],Wi=wi[1],Mi=i.useMemo(function(){var vr=oe(Yi,Er,wr,$n),br=vr.map(function(xr){var Rr,Nr;return(Rr=(Nr=wr[xr])===null||Nr===void 0||(Nr=Nr.node)===null||Nr===void 0?void 0:Nr[$n.value])!==null&&Rr!==void 0?Rr:xr}),Pr=br.map(function(xr){var Rr=_r.find(function(Zr){return Zr.value===xr}),Nr=qt?Rr==null?void 0:Rr.label:On==null?void 0:On(Rr);return{value:xr,label:Nr}}),Wr=or(Pr),Ci=Wr[0];return!hn&&Ci&&St(Ci.value)&&St(Ci.label)?[]:Wr.map(function(xr){var Rr;return(0,g.Z)((0,g.Z)({},xr),{},{label:(Rr=xr.label)!==null&&Rr!==void 0?Rr:xr.value})})},[$n,hn,Yi,_r,or,Er,wr]),ki=$(Mi),Gr=(0,H.Z)(ki,1),Di=Gr[0],ra=i.useMemo(function(){return hn&&(Er==="SHOW_CHILD"||Dt||!ct)?Jt:null},[Jt,hn,Dt,Er,ct]),zi=le(function(vr,br,Pr){var Wr=oe(vr,Er,wr,$n);if(!(ra&&Wr.length>ra)){var Ci=or(vr);if(yr(Ci),Ie&&Mr(""),zt){var xr=vr;ur&&(xr=Wr.map(function(Ti){var Li=Vr.get(Ti);return Li?Li.node[$n.value]:Ti}));var Rr=br||{triggerValue:void 0,selected:void 0},Nr=Rr.triggerValue,Zr=Rr.selected,ni=xr;if(Dt){var ma=mr.filter(function(Ti){return!xr.includes(Ti.value)});ni=[].concat((0,Z.Z)(ni),(0,Z.Z)(ma))}var Xi=or(ni),ua={preValue:_r,triggerValue:Nr},fi=!0;(Dt||Pr==="selection"&&!Zr)&&(fi=!1),Je(ua,Nr,vr,Cr,fi,$n),Yn?ua.checked=Zr:ua.selected=Zr;var ii=vn?Xi:Xi.map(function(Ti){return Ti.value});zt(hn?ii:ii[0],vn?null:Xi.map(function(Ti){return Ti.label}),ua)}}}),hi=i.useCallback(function(vr,br){var Pr,Wr=br.selected,Ci=br.source,xr=wr[vr],Rr=xr==null?void 0:xr.node,Nr=(Pr=Rr==null?void 0:Rr[$n.value])!==null&&Pr!==void 0?Pr:vr;if(!hn)zi([Nr],{selected:!0,triggerValue:Nr},"option");else{var Zr=Wr?[].concat((0,Z.Z)(bi),[Nr]):Yi.filter(function(Li){return Li!==Nr});if(ur){var ni=Ir(Zr),ma=ni.missingRawValues,Xi=ni.existRawValues,ua=Xi.map(function(Li){return Vr.get(Li).key}),fi;if(Wr){var ii=(0,b.S)(ua,!0,wr);fi=ii.checkedKeys}else{var Ti=(0,b.S)(ua,{checked:!1,halfCheckedKeys:Wi},wr);fi=Ti.checkedKeys}Zr=[].concat((0,Z.Z)(ma),(0,Z.Z)(fi.map(function(Li){return wr[Li].node[$n.value]})))}zi(Zr,{selected:Wr,triggerValue:Nr},Ci||"option")}Wr||!hn?re==null||re(Nr,ze(Rr)):ve==null||ve(Nr,ze(Rr))},[Ir,Vr,wr,$n,hn,bi,zi,ur,re,ve,Yi,Wi,Jt]),Ni=i.useCallback(function(vr){if(Wn){var br={};Object.defineProperty(br,"documentClickClose",{get:function(){return(0,T.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Wn(vr,br)}},[Wn]),Zi=le(function(vr,br){var Pr=vr.map(function(Wr){return Wr.value});if(br.type==="clear"){zi(Pr,{},"selection");return}br.values.length&&hi(br.values[0].value,{selected:!1,source:"selection"})}),Fr=i.useMemo(function(){return{virtual:Cn,dropdownMatchSelectWidth:Jn,listHeight:Ln,listItemHeight:Dn,listItemScrollOffset:Xn,treeData:tn,fieldNames:$n,onSelect:hi,treeExpandAction:_n,treeTitleRender:On,onPopupScroll:sr,leftMaxCount:Jt===void 0?null:Jt-Di.length,leafCountOnly:Er==="SHOW_CHILD"&&!Dt&&!!ct,valueEntities:Vr}},[Cn,Jn,Ln,Dn,Xn,tn,$n,hi,_n,On,sr,Jt,Di.length,Er,Dt,ct,Vr]),ti=i.useMemo(function(){return{checkable:Yn,loadData:jt,treeLoadedKeys:rn,onTreeLoad:an,checkedKeys:Yi,halfCheckedKeys:Wi,treeDefaultExpandAll:nn,treeExpandedKeys:mn,treeDefaultExpandedKeys:bn,onTreeExpand:In,treeIcon:Bn,treeMotion:Fn,showTreeIcon:ln,switcherIcon:Tt,treeLine:Rn,treeNodeFilterProp:ut,keyEntities:wr}},[Yn,jt,rn,an,Yi,Wi,nn,mn,bn,In,Bn,Fn,ln,Tt,Rn,ut,wr]);return i.createElement(dt.Provider,{value:Fr},i.createElement(te.Provider,{value:ti},i.createElement(y.Ac,(0,fe.Z)({ref:B},dr,{id:Ar,prefixCls:ot,mode:hn?"multiple":void 0,displayValues:Di,onDisplayValuesChange:Zi,searchValue:$r,onSearch:Or,OptionList:vt,emptyOptions:!Cr.length,onDropdownVisibleChange:Ni,dropdownMatchSelectWidth:Jn}))))}),Ae=Se;Ae.TreeNode=ce,Ae.SHOW_ALL=bt,Ae.SHOW_PARENT=Ve,Ae.SHOW_CHILD=Le;var Ce=Ae,ke=Ce,Xe=u(2738),yt=u(75030),he=u(86641),me=u(45915),Lt=u(82855),Ct=u(48755),Nt=u(38406),kt=u(2171),pt=u(83397),Vt=u(31756),Zt=u(56553),Re=u(24971),gt=u(1722),E=u(90376),R=u(68525),at=u(90005),ae=u(70045),Y=u(57700),Ft=u(85278),Ke=u(36237),st=u(36170),_t=u(51636),xe=u(16931),_e=u(12425);const et=we=>{const{componentCls:B,treePrefixCls:xt,colorBgElevated:lt}=we,ot=`.${xt}`;return[{[`${B}-dropdown`]:[{padding:`${(0,Ke.unit)(we.paddingXS)} ${(0,Ke.unit)(we.calc(we.paddingXS).div(2).equal())}`},(0,_e.Yk)(xt,(0,_t.mergeToken)(we,{colorBgContainer:lt}),!1),{[ot]:{borderRadius:0,[`${ot}-list-holder-inner`]:{alignItems:"stretch",[`${ot}-treenode`]:{[`${ot}-node-content-wrapper`]:{flex:"auto"}}}}},(0,st.C2)(`${xt}-checkbox`,we),{"&-rtl":{direction:"rtl",[`${ot}-switcher${ot}-switcher_close`]:{[`${ot}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Qe=null;function z(we,B,xt){return(0,xe.I$)("TreeSelect",lt=>{const ot=(0,_t.mergeToken)(lt,{treePrefixCls:B});return[et(ot)]},_e.TM)(we,xt)}var Rt=function(we,B){var xt={};for(var lt in we)Object.prototype.hasOwnProperty.call(we,lt)&&B.indexOf(lt)<0&&(xt[lt]=we[lt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,lt=Object.getOwnPropertySymbols(we);ot<lt.length;ot++)B.indexOf(lt[ot])<0&&Object.prototype.propertyIsEnumerable.call(we,lt[ot])&&(xt[lt[ot]]=we[lt[ot]]);return xt};const ge=(we,B)=>{var xt;const{prefixCls:lt,size:ot,disabled:$t,bordered:Bt=!0,className:zt,rootClassName:re,treeCheckable:ve,multiple:wt,listHeight:Ne=256,listItemHeight:Be,placement:ue,notFoundContent:Ie,switcherIcon:Fe,treeLine:$e,getPopupContainer:ut,popupClassName:Gt,dropdownClassName:sn,treeIcon:je=!1,transitionName:ct,choiceTransitionName:Dt="",status:qt,treeExpandAction:Jt,builtinPlacements:Ge,dropdownMatchSelectWidth:ft,popupMatchSelectWidth:Mt,allowClear:Ye,variant:jt,dropdownStyle:rn,tagRender:an,maxCount:nn,showCheckedStrategy:mn,treeCheckStrictly:bn}=we,In=Rt(we,["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","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:_n,getPrefixCls:Cn,renderEmpty:Zn,direction:Ln,virtual:rr,popupMatchSelectWidth:Dn,popupOverflow:jn}=i.useContext(Ct.E_),[,Xn]=(0,Y.ZP)(),Wn=Be!=null?Be:(Xn==null?void 0:Xn.controlHeightSM)+(Xn==null?void 0:Xn.paddingXXS),Gn=Cn(),Jn=Cn("select",lt),Rn=Cn("select-tree",lt),Bn=Cn("tree-select",lt),{compactSize:ln,compactItemClassnames:Tt}=(0,ae.ri)(Jn,Ln),Fn=(0,pt.Z)(Jn),On=(0,pt.Z)(Bn),[sr,dr,Ar]=(0,E.Z)(Jn,Fn),[ur]=z(Bn,Rn,On),[Yn,vn]=(0,Re.Z)("treeSelect",jt,Bt),hn=O()(Gt||sn,`${Bn}-dropdown`,{[`${Bn}-dropdown-rtl`]:Ln==="rtl"},re,Ar,Fn,On,dr),xn=!!(ve||wt),Qn=i.useMemo(()=>{if(!(nn&&(mn==="SHOW_ALL"&&!bn||mn==="SHOW_PARENT")))return nn},[nn,mn,bn]),tr=(0,at.Z)(we.suffixIcon,we.showArrow),yr=(xt=Mt!=null?Mt:ft)!==null&&xt!==void 0?xt:Dn,{status:Er,hasFeedback:$n,isFormItemInput:Sr,feedbackIcon:Dr}=i.useContext(Zt.aM),$r=(0,Lt.F)(Er,qt),{suffixIcon:Mr,removeIcon:Or,clearIcon:Cr}=(0,R.Z)(Object.assign(Object.assign({},In),{multiple:xn,showSuffixIcon:tr,hasFeedback:$n,feedbackIcon:Dr,prefixCls:Jn,componentName:"TreeSelect"})),zr=Ye===!0?{clearIcon:Cr}:Ye;let wr;Ie!==void 0?wr=Ie:wr=(Zn==null?void 0:Zn("Select"))||i.createElement(Nt.Z,{componentName:"Select"});const Vr=(0,Xe.Z)(In,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ir=i.useMemo(()=>ue!==void 0?ue:Ln==="rtl"?"bottomRight":"bottomLeft",[ue,Ln]),tn=(0,Vt.Z)(_r=>{var mr;return(mr=ot!=null?ot:ln)!==null&&mr!==void 0?mr:_r}),Tn=i.useContext(kt.Z),cr=$t!=null?$t:Tn,or=O()(!lt&&Bn,{[`${Jn}-lg`]:tn==="large",[`${Jn}-sm`]:tn==="small",[`${Jn}-rtl`]:Ln==="rtl",[`${Jn}-${Yn}`]:vn,[`${Jn}-in-form-item`]:Sr},(0,Lt.Z)(Jn,$r,$n),Tt,zt,re,Ar,Fn,On,dr),Br=_r=>i.createElement(Ft.Z,{prefixCls:Rn,switcherIcon:Fe,treeNodeProps:_r,showLine:$e}),[ri]=(0,yt.Cn)("SelectLike",rn==null?void 0:rn.zIndex),vi=i.createElement(ke,Object.assign({virtual:rr,disabled:cr},Vr,{dropdownMatchSelectWidth:yr,builtinPlacements:(0,gt.Z)(Ge,jn),ref:B,prefixCls:Jn,className:or,listHeight:Ne,listItemHeight:Wn,treeCheckable:ve&&i.createElement("span",{className:`${Jn}-tree-checkbox-inner`}),treeLine:!!$e,suffixIcon:Mr,multiple:xn,placement:Ir,removeIcon:Or,allowClear:zr,switcherIcon:Br,showTreeIcon:je,notFoundContent:wr,getPopupContainer:ut||_n,treeMotion:null,dropdownClassName:hn,dropdownStyle:Object.assign(Object.assign({},rn),{zIndex:ri}),choiceTransitionName:(0,he.m)(Gn,"",Dt),transitionName:(0,he.m)(Gn,"slide-up",ct),treeExpandAction:Jt,tagRender:xn?an:void 0,maxCount:Qn,showCheckedStrategy:mn,treeCheckStrictly:bn}));return sr(ur(vi))},cn=i.forwardRef(ge),mt=(0,me.Z)(cn,"dropdownAlign",we=>(0,Xe.Z)(we,["visible"]));cn.TreeNode=ce,cn.SHOW_ALL=bt,cn.SHOW_PARENT=Ve,cn.SHOW_CHILD=Le,cn._InternalPanelDoNotUseOrYouWillBeFired=mt;var ne=cn},18287:function(zn,Pt,u){"use strict";u.d(Pt,{default:function(){return It}});var i=u(3741),U=u(94480),O=u(59301),fe=u(52671),Z=u(8657),g=u(54476),H={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"},V=H,l=u(7657),y=function(rt,ht){return O.createElement(l.Z,(0,g.Z)({},rt,{ref:ht,icon:V}))},M=O.forwardRef(y),b=M,C=u(92310),T=u.n(C),$=u(82661),W=u(34061),X=u(48755),G=u(56082),L=u(86641),Q=u(57700),P=u(12425);const A=4;function ce(Te){const{dropPosition:rt,dropLevelOffset:ht,prefixCls:St,indent:Me,direction:Xt="ltr"}=Te,tt=Xt==="ltr"?"left":"right",un=Xt==="ltr"?"right":"left",vt={[tt]:-ht*Me+A,[un]:0};switch(rt){case-1:vt.top=-3;break;case 1:vt.bottom=-3;break;default:vt.bottom=-3,vt[tt]=Me+A;break}return O.createElement("div",{style:vt,className:`${St}-drop-indicator`})}var Ee=ce,pe=u(85278),Je=O.forwardRef((Te,rt)=>{var ht;const{getPrefixCls:St,direction:Me,virtual:Xt,tree:tt}=O.useContext(X.E_),{prefixCls:un,className:vt,showIcon:bt=!1,showLine:Ve,switcherIcon:Le,switcherLoadingIcon:oe,blockNode:nt=!1,children:Ue,checkable:K=!1,selectable:D=!0,draggable:Se,motion:Ae,style:Ce}=Te,ke=St("tree",un),Xe=St(),yt=Ae!=null?Ae:Object.assign(Object.assign({},(0,L.Z)(Xe)),{motionAppear:!1}),he=Object.assign(Object.assign({},Te),{checkable:K,selectable:D,showIcon:bt,motion:yt,blockNode:nt,showLine:!!Ve,dropIndicatorRender:Ee}),[me,Lt,Ct]=(0,P.ZP)(ke),[,Nt]=(0,Q.ZP)(),kt=Nt.paddingXS/2+(((ht=Nt.Tree)===null||ht===void 0?void 0:ht.titleHeight)||Nt.controlHeightSM),pt=O.useMemo(()=>{if(!Se)return!1;let Zt={};switch(typeof Se){case"function":Zt.nodeDraggable=Se;break;case"object":Zt=Object.assign({},Se);break;default:break}return Zt.icon!==!1&&(Zt.icon=Zt.icon||O.createElement(G.Z,null)),Zt},[Se]),Vt=Zt=>O.createElement(pe.Z,{prefixCls:ke,switcherIcon:Le,switcherLoadingIcon:oe,treeNodeProps:Zt,showLine:Ve});return me(O.createElement(i.ZP,Object.assign({itemHeight:kt,ref:rt,virtual:Xt},he,{style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Ce),prefixCls:ke,className:T()({[`${ke}-icon-hide`]:!bt,[`${ke}-block-node`]:nt,[`${ke}-unselectable`]:!D,[`${ke}-rtl`]:Me==="rtl"},tt==null?void 0:tt.className,vt,Lt,Ct),direction:Me,checkable:K&&O.createElement("span",{className:`${ke}-checkbox-inner`}),selectable:D,switcherIcon:Vt,draggable:pt}),Ue))});const Pe=0,Ze=1,le=2;function N(Te,rt,ht){const{key:St,children:Me}=ht;function Xt(tt){const un=tt[St],vt=tt[Me];rt(un,tt)!==!1&&N(vt||[],rt,ht)}Te.forEach(Xt)}function S(Te){let{treeData:rt,expandedKeys:ht,startKey:St,endKey:Me,fieldNames:Xt}=Te;const tt=[];let un=Pe;if(St&&St===Me)return[St];if(!St||!Me)return[];function vt(bt){return bt===St||bt===Me}return N(rt,bt=>{if(un===le)return!1;if(vt(bt)){if(tt.push(bt),un===Pe)un=Ze;else if(un===Ze)return un=le,!1}else un===Ze&&tt.push(bt);return ht.includes(bt)},(0,W.w$)(Xt)),tt}function q(Te,rt,ht){const St=(0,U.Z)(rt),Me=[];return N(Te,(Xt,tt)=>{const un=St.indexOf(Xt);return un!==-1&&(Me.push(tt),St.splice(un,1)),!!St.length},(0,W.w$)(ht)),Me}var te=function(Te,rt){var ht={};for(var St in Te)Object.prototype.hasOwnProperty.call(Te,St)&&rt.indexOf(St)<0&&(ht[St]=Te[St]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,St=Object.getOwnPropertySymbols(Te);Me<St.length;Me++)rt.indexOf(St[Me])<0&&Object.prototype.propertyIsEnumerable.call(Te,St[Me])&&(ht[St[Me]]=Te[St[Me]]);return ht};function se(Te){const{isLeaf:rt,expanded:ht}=Te;return rt?O.createElement(fe.Z,null):ht?O.createElement(Z.Z,null):O.createElement(b,null)}function w(Te){let{treeData:rt,children:ht}=Te;return rt||(0,W.zn)(ht)}const I=(Te,rt)=>{var{defaultExpandAll:ht,defaultExpandParent:St,defaultExpandedKeys:Me}=Te,Xt=te(Te,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const tt=O.useRef(null),un=O.useRef(null),vt=()=>{const{keyEntities:me}=(0,W.I8)(w(Xt));let Lt;return ht?Lt=Object.keys(me):St?Lt=(0,$.r7)(Xt.expandedKeys||Me||[],me):Lt=Xt.expandedKeys||Me||[],Lt},[bt,Ve]=O.useState(Xt.selectedKeys||Xt.defaultSelectedKeys||[]),[Le,oe]=O.useState(()=>vt());O.useEffect(()=>{"selectedKeys"in Xt&&Ve(Xt.selectedKeys)},[Xt.selectedKeys]),O.useEffect(()=>{"expandedKeys"in Xt&&oe(Xt.expandedKeys)},[Xt.expandedKeys]);const nt=(me,Lt)=>{var Ct;return"expandedKeys"in Xt||oe(me),(Ct=Xt.onExpand)===null||Ct===void 0?void 0:Ct.call(Xt,me,Lt)},Ue=(me,Lt)=>{var Ct;const{multiple:Nt,fieldNames:kt}=Xt,{node:pt,nativeEvent:Vt}=Lt,{key:Zt=""}=pt,Re=w(Xt),gt=Object.assign(Object.assign({},Lt),{selected:!0}),E=(Vt==null?void 0:Vt.ctrlKey)||(Vt==null?void 0:Vt.metaKey),R=Vt==null?void 0:Vt.shiftKey;let at;Nt&&E?(at=me,tt.current=Zt,un.current=at,gt.selectedNodes=q(Re,at,kt)):Nt&&R?(at=Array.from(new Set([].concat((0,U.Z)(un.current||[]),(0,U.Z)(S({treeData:Re,expandedKeys:Le,startKey:Zt,endKey:tt.current,fieldNames:kt}))))),gt.selectedNodes=q(Re,at,kt)):(at=[Zt],tt.current=Zt,un.current=at,gt.selectedNodes=q(Re,at,kt)),(Ct=Xt.onSelect)===null||Ct===void 0||Ct.call(Xt,at,gt),"selectedKeys"in Xt||Ve(at)},{getPrefixCls:K,direction:D}=O.useContext(X.E_),{prefixCls:Se,className:Ae,showIcon:Ce=!0,expandAction:ke="click"}=Xt,Xe=te(Xt,["prefixCls","className","showIcon","expandAction"]),yt=K("tree",Se),he=T()(`${yt}-directory`,{[`${yt}-directory-rtl`]:D==="rtl"},Ae);return O.createElement(Je,Object.assign({icon:se,ref:rt,blockNode:!0},Xe,{showIcon:Ce,expandAction:ke,prefixCls:yt,className:he,expandedKeys:Le,selectedKeys:bt,onSelect:Ue,onExpand:nt}))};var De=O.forwardRef(I);const dt=Je;dt.DirectoryTree=De,dt.TreeNode=i.OF;var It=dt},12425:function(zn,Pt,u){"use strict";u.d(Pt,{ZP:function(){return $},Yk:function(){return b},TM:function(){return C}});var i=u(36237),U=u(36170),O=u(63356),fe=u(34961),Z=u(51636),g=u(16931);const H=W=>{let{treeCls:X,treeNodeCls:G,directoryNodeSelectedBg:L,directoryNodeSelectedColor:Q,motionDurationMid:P,borderRadius:A,controlItemBgHover:ce}=W;return{[`${X}${X}-directory ${G}`]:{[`${X}-node-content-wrapper`]:{position:"static",[`> *:not(${X}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${P}`,content:'""',borderRadius:A},"&:hover:before":{background:ce}},[`${X}-switcher, ${X}-checkbox, ${X}-draggable-icon`]:{zIndex:1},"&-selected":{[`${X}-switcher, ${X}-draggable-icon`]:{color:Q},[`${X}-node-content-wrapper`]:{color:Q,background:"transparent","&:before, &:hover:before":{background:L}}}}}},V=new i.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),l=(W,X)=>({[`.${W}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${X.motionDurationSlow}`}}}),y=(W,X)=>({[`.${W}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:X.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,i.unit)(X.lineWidthBold)} solid ${X.colorPrimary}`,borderRadius:"50%",content:'""'}}}),M=(W,X)=>{const{treeCls:G,treeNodeCls:L,treeNodePadding:Q,titleHeight:P,indentSize:A,nodeSelectedBg:ce,nodeHoverBg:Ee,colorTextQuaternary:pe,controlItemBgActiveDisabled:ze}=X;return{[G]:Object.assign(Object.assign({},(0,O.Wf)(X)),{background:X.colorBgContainer,borderRadius:X.borderRadius,transition:`background-color ${X.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${G}-rtl ${G}-switcher_close ${G}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${G}-active-focused)`]:Object.assign({},(0,O.oN)(X)),[`${G}-list-holder-inner`]:{alignItems:"flex-start"},[`&${G}-block-node`]:{[`${G}-list-holder-inner`]:{alignItems:"stretch",[`${G}-node-content-wrapper`]:{flex:"auto"},[`${L}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${X.colorPrimary}`,opacity:0,animationName:V,animationDuration:X.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:X.borderRadius}}},[L]:{display:"flex",alignItems:"flex-start",marginBottom:Q,lineHeight:(0,i.unit)(P),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Q},[`&-disabled ${G}-node-content-wrapper`]:{color:X.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${G}-checkbox-disabled + ${G}-node-selected,&${L}-disabled${L}-selected ${G}-node-content-wrapper`]:{backgroundColor:ze},[`${G}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${L}-disabled)`]:{[`${G}-node-content-wrapper`]:{"&:hover":{color:X.nodeHoverColor}}},[`&-active ${G}-node-content-wrapper`]:{background:X.controlItemBgHover},[`&:not(${L}-disabled).filter-node ${G}-title`]:{color:X.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${G}-draggable-icon`]:{flexShrink:0,width:P,textAlign:"center",visibility:"visible",color:pe},[`&${L}-disabled ${G}-draggable-icon`]:{visibility:"hidden"}}},[`${G}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:A}},[`${G}-draggable-icon`]:{visibility:"hidden"},[`${G}-switcher, ${G}-checkbox`]:{marginInlineEnd:X.calc(X.calc(P).sub(X.controlInteractiveSize)).div(2).equal()},[`${G}-switcher`]:Object.assign(Object.assign({},l(W,X)),{position:"relative",flex:"none",alignSelf:"stretch",width:P,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${X.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:P,height:P,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:X.borderRadius,transition:`all ${X.motionDurationSlow}`},[`&:not(${G}-switcher-noop):hover:before`]:{backgroundColor:X.colorBgTextHover},[`&_close ${G}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:X.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:X.calc(P).div(2).equal(),bottom:X.calc(Q).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${X.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:X.calc(X.calc(P).div(2).equal()).mul(.8).equal(),height:X.calc(P).div(2).equal(),borderBottom:`1px solid ${X.colorBorder}`,content:'""'}}}),[`${G}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:P,paddingBlock:0,paddingInline:X.paddingXS,background:"transparent",borderRadius:X.borderRadius,cursor:"pointer",transition:`all ${X.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},y(W,X)),{"&:hover":{backgroundColor:Ee},[`&${G}-node-selected`]:{color:X.nodeSelectedColor,backgroundColor:ce},[`${G}-iconEle`]:{display:"inline-block",width:P,height:P,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${G}-unselectable ${G}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${X.colorPrimary}`},"&-show-line":{[`${G}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:X.calc(P).div(2).equal(),bottom:X.calc(Q).mul(-1).equal(),borderInlineEnd:`1px solid ${X.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${G}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${L}-leaf-last ${G}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,i.unit)(X.calc(P).div(2).equal())} !important`}})}},b=function(W,X){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const L=`.${W}`,Q=`${L}-treenode`,P=X.calc(X.paddingXS).div(2).equal(),A=(0,Z.mergeToken)(X,{treeCls:L,treeNodeCls:Q,treeNodePadding:P});return[M(W,A),G&&H(A)].filter(Boolean)},C=W=>{const{controlHeightSM:X,controlItemBgHover:G,controlItemBgActive:L}=W,Q=X;return{titleHeight:Q,indentSize:Q,nodeHoverBg:G,nodeHoverColor:W.colorText,nodeSelectedBg:L,nodeSelectedColor:W.colorText}},T=W=>{const{colorTextLightSolid:X,colorPrimary:G}=W;return Object.assign(Object.assign({},C(W)),{directoryNodeSelectedColor:X,directoryNodeSelectedBg:G})};var $=(0,g.I$)("Tree",(W,X)=>{let{prefixCls:G}=X;return[{[W.componentCls]:(0,U.C2)(`${G}-checkbox`,W)},b(G,W),(0,fe.Z)(W)]},T)},85278:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return X}});var i=u(59301),U=u(54476),O={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"},fe=O,Z=u(7657),g=function(L,Q){return i.createElement(Z.Z,(0,U.Z)({},L,{ref:Q,icon:fe}))},H=i.forwardRef(g),V=H,l=u(52671),y=u(58617),M=u(15075),b=u(43531),C=u(92310),T=u.n(C),$=u(22703),X=G=>{const{prefixCls:L,switcherIcon:Q,treeNodeProps:P,showLine:A,switcherLoadingIcon:ce}=G,{isLeaf:Ee,expanded:pe,loading:ze}=P;if(ze)return i.isValidElement(ce)?ce:i.createElement(y.Z,{className:`${L}-switcher-loading-icon`});let Je;if(A&&typeof A=="object"&&(Je=A.showLeafIcon),Ee){if(!A)return null;if(typeof Je!="boolean"&&Je){const le=typeof Je=="function"?Je(P):Je,N=`${L}-switcher-line-custom-icon`;return i.isValidElement(le)?(0,$.Tm)(le,{className:T()(le.props.className||"",N)}):le}return Je?i.createElement(l.Z,{className:`${L}-switcher-line-icon`}):i.createElement("span",{className:`${L}-switcher-leaf-line`})}const Pe=`${L}-switcher-icon`,Ze=typeof Q=="function"?Q(P):Q;return i.isValidElement(Ze)?(0,$.Tm)(Ze,{className:T()(Ze.props.className||"",Pe)}):Ze!==void 0?Ze:A?pe?i.createElement(M.Z,{className:`${L}-switcher-line-icon`}):i.createElement(b.Z,{className:`${L}-switcher-line-icon`}):i.createElement(V,{className:Pe})}},64018:function(){var zn,Pt,u,i=!1,U,O;window.PR_SHOULD_USE_CONTINUATION=!0;var fe,Z;(function(){var g=window,H=["break,continue,do,else,for,if,return,while"],V=[H,"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"],l=[V,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],y=[l,"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"],M=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],b=[l,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],C="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",T=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],$="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",W=[H,"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"],X=[H,"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"],G=[H,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],L=[y,b,M,T,$,W,X,G],Q=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,P="str",A="kwd",ce="com",Ee="typ",pe="lit",ze="pun",Je="pln",Pe="tag",Ze="dec",le="src",N="atn",S="atv",q="nocode",te="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function se(Le){for(var oe=0,nt=!1,Ue=!1,K=0,D=Le.length;K<D;++K){var Se=Le[K];if(Se.ignoreCase)Ue=!0;else if(/[a-z]/i.test(Se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){nt=!0,Ue=!1;break}}var Ae={b:8,t:9,n:10,v:11,f:12,r:13};function Ce(me){var Lt=me.charCodeAt(0);if(Lt!==92)return Lt;var Ct=me.charAt(1);return Lt=Ae[Ct],Lt||("0"<=Ct&&Ct<="7"?parseInt(me.substring(1),8):Ct==="u"||Ct==="x"?parseInt(me.substring(2),16):me.charCodeAt(1))}function ke(me){if(me<32)return(me<16?"\\x0":"\\x")+me.toString(16);var Lt=String.fromCharCode(me);return Lt==="\\"||Lt==="-"||Lt==="]"||Lt==="^"?"\\"+Lt:Lt}function Xe(me){var Lt=me.substring(1,me.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")),Ct=[],Nt=Lt[0]==="^",kt=["["];Nt&&kt.push("^");for(var pt=Nt?1:0,Vt=Lt.length;pt<Vt;++pt){var Zt=Lt[pt];if(/\\[bdsw]/i.test(Zt))kt.push(Zt);else{var Re=Ce(Zt),gt;pt+2<Vt&&Lt[pt+1]==="-"?(gt=Ce(Lt[pt+2]),pt+=2):gt=Re,Ct.push([Re,gt]),gt<65||Re>122||(gt<65||Re>90||Ct.push([Math.max(65,Re)|32,Math.min(gt,90)|32]),gt<97||Re>122||Ct.push([Math.max(97,Re)&-33,Math.min(gt,122)&-33]))}}Ct.sort(function(ae,Y){return ae[0]-Y[0]||Y[1]-ae[1]});for(var E=[],R=[],pt=0;pt<Ct.length;++pt){var at=Ct[pt];at[0]<=R[1]+1?R[1]=Math.max(R[1],at[1]):E.push(R=at)}for(var pt=0;pt<E.length;++pt){var at=E[pt];kt.push(ke(at[0])),at[1]>at[0]&&(at[1]+1>at[0]&&kt.push("-"),kt.push(ke(at[1])))}return kt.push("]"),kt.join("")}function yt(me){for(var Lt=me.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")),Ct=Lt.length,Nt=[],kt=0,pt=0;kt<Ct;++kt){var Vt=Lt[kt];if(Vt==="(")++pt;else if(Vt.charAt(0)==="\\"){var Zt=+Vt.substring(1);Zt&&(Zt<=pt?Nt[Zt]=-1:Lt[kt]=ke(Zt))}}for(var kt=1;kt<Nt.length;++kt)Nt[kt]===-1&&(Nt[kt]=++oe);for(var kt=0,pt=0;kt<Ct;++kt){var Vt=Lt[kt];if(Vt==="(")++pt,Nt[pt]||(Lt[kt]="(?:");else if(Vt.charAt(0)==="\\"){var Zt=+Vt.substring(1);Zt&&Zt<=pt&&(Lt[kt]="\\"+Nt[Zt])}}for(var kt=0;kt<Ct;++kt)Lt[kt]==="^"&&Lt[kt+1]!=="^"&&(Lt[kt]="");if(me.ignoreCase&&nt)for(var kt=0;kt<Ct;++kt){var Vt=Lt[kt],Re=Vt.charAt(0);Vt.length>=2&&Re==="["?Lt[kt]=Xe(Vt):Re!=="\\"&&(Lt[kt]=Vt.replace(/[a-zA-Z]/g,function(R){var at=R.charCodeAt(0);return"["+String.fromCharCode(at&-33,at|32)+"]"}))}return Lt.join("")}for(var he=[],K=0,D=Le.length;K<D;++K){var Se=Le[K];if(Se.global||Se.multiline)throw new Error(""+Se);he.push("(?:"+yt(Se)+")")}return new RegExp(he.join("|"),Ue?"gi":"g")}function w(Le,oe){var nt=/(?:^|\s)nocode(?:\s|$)/,Ue=[],K=0,D=[],Se=0;function Ae(Ce){var ke=Ce.nodeType;if(ke==1){if(nt.test(Ce.className))return;for(var Xe=Ce.firstChild;Xe;Xe=Xe.nextSibling)Ae(Xe);var yt=Ce.nodeName.toLowerCase();(yt==="br"||yt==="li")&&(Ue[Se]=`
`,D[Se<<1]=K++,D[Se++<<1|1]=Ce)}else if(ke==3||ke==4){var he=Ce.nodeValue;he.length&&(oe?he=he.replace(/\r\n?/g,`
`):he=he.replace(/[ \t\r\n]+/g," "),Ue[Se]=he,D[Se<<1]=K,K+=he.length,D[Se++<<1|1]=Ce)}}return Ae(Le),{sourceCode:Ue.join("").replace(/\n$/,""),spans:D}}function I(Le,oe,nt,Ue,K){if(nt){var D={sourceNode:Le,pre:1,langExtension:null,numberLines:null,sourceCode:nt,spans:null,basePos:oe,decorations:null};Ue(D),K.push.apply(K,D.decorations)}}var de=/\S/;function De(Le){for(var oe=void 0,nt=Le.firstChild;nt;nt=nt.nextSibling){var Ue=nt.nodeType;oe=Ue===1?oe?Le:nt:Ue===3&&de.test(nt.nodeValue)?Le:oe}return oe===Le?void 0:oe}function dt(Le,oe){var nt={},Ue;(function(){for(var Se=Le.concat(oe),Ae=[],Ce={},ke=0,Xe=Se.length;ke<Xe;++ke){var yt=Se[ke],he=yt[3];if(he)for(var me=he.length;--me>=0;)nt[he.charAt(me)]=yt;var Lt=yt[1],Ct=""+Lt;Ce.hasOwnProperty(Ct)||(Ae.push(Lt),Ce[Ct]=null)}Ae.push(/[\0-\uffff]/),Ue=se(Ae)})();var K=oe.length,D=function(Se){for(var Ae=Se.sourceCode,Ce=Se.basePos,ke=Se.sourceNode,Xe=[Ce,Je],yt=0,he=Ae.match(Ue)||[],me={},Lt=0,Ct=he.length;Lt<Ct;++Lt){var Nt=he[Lt],kt=me[Nt],pt=void 0,Vt;if(typeof kt=="string")Vt=!1;else{var Zt=nt[Nt.charAt(0)];if(Zt)pt=Nt.match(Zt[1]),kt=Zt[0];else{for(var Re=0;Re<K;++Re)if(Zt=oe[Re],pt=Nt.match(Zt[1]),pt){kt=Zt[0];break}pt||(kt=Je)}Vt=kt.length>=5&&kt.substring(0,5)==="lang-",Vt&&!(pt&&typeof pt[1]=="string")&&(Vt=!1,kt=le),Vt||(me[Nt]=kt)}var gt=yt;if(yt+=Nt.length,!Vt)Xe.push(Ce+gt,kt);else{var E=pt[1],R=Nt.indexOf(E),at=R+E.length;pt[2]&&(at=Nt.length-pt[2].length,R=at-E.length);var ae=kt.substring(5);I(ke,Ce+gt,Nt.substring(0,R),D,Xe),I(ke,Ce+gt+R,E,Xt(ae,E),Xe),I(ke,Ce+gt+at,Nt.substring(at),D,Xe)}}Se.decorations=Xe};return D}function It(Le){var oe=[],nt=[];Le.tripleQuotedStrings?oe.push([P,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Le.multiLineStrings?oe.push([P,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):oe.push([P,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Le.verbatimStrings&&nt.push([P,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ue=Le.hashComments;Ue&&(Le.cStyleComments?(Ue>1?oe.push([ce,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):oe.push([ce,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),nt.push([P,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):oe.push([ce,/^#[^\r\n]*/,null,"#"])),Le.cStyleComments&&(nt.push([ce,/^\/\/[^\r\n]*/,null]),nt.push([ce,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var K=Le.regexLiterals;if(K){var D=K>1?"":`
\r`,Se=D?".":"[\\S\\s]",Ae="/(?=[^/*"+D+"])(?:[^/\\x5B\\x5C"+D+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+D+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";nt.push(["lang-regex",RegExp("^"+te+"("+Ae+")")])}var Ce=Le.types;Ce&&nt.push([Ee,Ce]);var ke=(""+Le.keywords).replace(/^ | $/g,"");ke.length&&nt.push([A,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),oe.push([Je,/^\s+/,null,` \r
\xA0`]);var Xe="^.[^\\s\\w.$@'\"`/\\\\]*";return Le.regexLiterals&&(Xe+="(?!s*/)"),nt.push([pe,/^@[a-z_$][a-z_$@0-9]*/i,null],[Ee,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Je,/^[a-z_$][a-z_$@0-9]*/i,null],[pe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Je,/^\\[\s\S]?/,null],[ze,new RegExp(Xe),null]),dt(oe,nt)}var Te=It({keywords:L,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function rt(Le,oe,nt){for(var Ue=/(?:^|\s)nocode(?:\s|$)/,K=/\r\n?|\n/,D=Le.ownerDocument,Se=D.createElement("li");Le.firstChild;)Se.appendChild(Le.firstChild);var Ae=[Se];function Ce(Lt){var Ct=Lt.nodeType;if(Ct==1&&!Ue.test(Lt.className))if(Lt.nodeName==="br")ke(Lt),Lt.parentNode&&Lt.parentNode.removeChild(Lt);else for(var Nt=Lt.firstChild;Nt;Nt=Nt.nextSibling)Ce(Nt);else if((Ct==3||Ct==4)&&nt){var kt=Lt.nodeValue,pt=kt.match(K);if(pt){var Vt=kt.substring(0,pt.index);Lt.nodeValue=Vt;var Zt=kt.substring(pt.index+pt[0].length);if(Zt){var Re=Lt.parentNode;Re.insertBefore(D.createTextNode(Zt),Lt.nextSibling)}ke(Lt),Vt||Lt.parentNode.removeChild(Lt)}}}function ke(Lt){for(;!Lt.nextSibling;)if(Lt=Lt.parentNode,!Lt)return;function Ct(pt,Vt){var Zt=Vt?pt.cloneNode(!1):pt,Re=pt.parentNode;if(Re){var gt=Ct(Re,1),E=pt.nextSibling;gt.appendChild(Zt);for(var R=E;R;R=E)E=R.nextSibling,gt.appendChild(R)}return Zt}for(var Nt=Ct(Lt.nextSibling,0),kt;(kt=Nt.parentNode)&&kt.nodeType===1;)Nt=kt;Ae.push(Nt)}for(var Xe=0;Xe<Ae.length;++Xe)Ce(Ae[Xe]);oe===(oe|0)&&Ae[0].setAttribute("value",oe);var yt=D.createElement("ol");yt.className="linenums";for(var he=Math.max(0,oe-1|0)||0,Xe=0,me=Ae.length;Xe<me;++Xe)Se=Ae[Xe],Se.className="L"+(Xe+he)%10,Se.firstChild||Se.appendChild(D.createTextNode("\xA0")),yt.appendChild(Se);Le.appendChild(yt)}function ht(Le){var oe=/\bMSIE\s(\d+)/.exec(navigator.userAgent);oe=oe&&+oe[1]<=8;var nt=/\n/g,Ue=Le.sourceCode,K=Ue.length,D=0,Se=Le.spans,Ae=Se.length,Ce=0,ke=Le.decorations,Xe=ke.length,yt=0;ke[Xe]=K;var he,me;for(me=he=0;me<Xe;)ke[me]!==ke[me+2]?(ke[he++]=ke[me++],ke[he++]=ke[me++]):me+=2;for(Xe=he,me=he=0;me<Xe;){for(var Lt=ke[me],Ct=ke[me+1],Nt=me+2;Nt+2<=Xe&&ke[Nt+1]===Ct;)Nt+=2;ke[he++]=Lt,ke[he++]=Ct,me=Nt}Xe=ke.length=he;var kt=Le.sourceNode,pt="";kt&&(pt=kt.style.display,kt.style.display="none");try{for(var Vt=null;Ce<Ae;){var Zt=Se[Ce],Re=Se[Ce+2]||K,gt=ke[yt+2]||K,Nt=Math.min(Re,gt),E=Se[Ce+1],R;if(E.nodeType!==1&&(R=Ue.substring(D,Nt))){oe&&(R=R.replace(nt,"\r")),E.nodeValue=R;var at=E.ownerDocument,ae=at.createElement("span");ae.className=ke[yt+1];var Y=E.parentNode;Y.replaceChild(ae,E),ae.appendChild(E),D<Re&&(Se[Ce+1]=E=at.createTextNode(Ue.substring(Nt,Re)),Y.insertBefore(E,ae.nextSibling))}D=Nt,D>=Re&&(Ce+=2),D>=gt&&(yt+=2)}}finally{kt&&(kt.style.display=pt)}}var St={};function Me(Le,oe){for(var nt=oe.length;--nt>=0;){var Ue=oe[nt];St.hasOwnProperty(Ue)?g.console&&console.warn("cannot override language handler %s",Ue):St[Ue]=Le}}function Xt(Le,oe){return Le&&St.hasOwnProperty(Le)||(Le=/^\s*</.test(oe)?"default-markup":"default-code"),St[Le]}Me(Te,["default-code"]),Me(dt([],[[Je,/^[^<?]+/],[Ze,/^<!\w[^>]*(?:>|$)/],[ce,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ze,/^(?:<[%?]|[%?]>)/],["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"]),Me(dt([[Je,/^[\s]+/,null,` \r
`],[S,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Pe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ze,/^[=<>\/]+/],["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"]),Me(dt([],[[S,/^[\s\S]+/]]),["uq.val"]),Me(It({keywords:y,hashComments:!0,cStyleComments:!0,types:Q}),["c","cc","cpp","cxx","cyc","m"]),Me(It({keywords:"null,true,false"}),["json"]),Me(It({keywords:b,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Q}),["cs"]),Me(It({keywords:M,cStyleComments:!0}),["java"]),Me(It({keywords:G,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Me(It({keywords:W,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Me(It({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Me(It({keywords:X,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Me(It({keywords:T,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Me(It({keywords:C,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Me(dt([],[[P,/^[\s\S]+/]]),["regex"]);function tt(Le){var oe=Le.langExtension;try{var nt=w(Le.sourceNode,Le.pre),Ue=nt.sourceCode;Le.sourceCode=Ue,Le.spans=nt.spans,Le.basePos=0,Xt(oe,Ue)(Le),ht(Le)}catch(K){g.console&&console.log(K&&K.stack||K)}}function un(Le,oe,nt){var Ue=nt||!1,K=oe||null,D=document.createElement("div");D.innerHTML="<pre>"+Le+"</pre>",D=D.firstChild,Ue&&rt(D,Ue,!0);var Se={langExtension:K,numberLines:Ue,sourceNode:D,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return tt(Se),D.innerHTML}function vt(Le,oe){var nt=oe||document.body,Ue=nt.ownerDocument||document;function K(Zt){return nt.getElementsByTagName(Zt)}for(var D=[K("pre"),K("code"),K("xmp")],Se=[],Ae=0;Ae<D.length;++Ae)for(var Ce=0,ke=D[Ae].length;Ce<ke;++Ce)Se.push(D[Ae][Ce]);D=null;var Xe=Date;Xe.now||(Xe={now:function(){return+new Date}});var yt=0,he=/\blang(?:uage)?-([\w.]+)(?!\S)/,me=/\bprettyprint\b/,Lt=/\bprettyprinted\b/,Ct=/pre|xmp/i,Nt=/^code$/i,kt=/^(?:pre|code|xmp)$/i,pt={};function Vt(){for(var Zt=g.PR_SHOULD_USE_CONTINUATION?Xe.now()+250:1/0;yt<Se.length&&Xe.now()<Zt;yt++){for(var Re=Se[yt],gt=pt,E=Re;E=E.previousSibling;){var R=E.nodeType,at=(R===7||R===8)&&E.nodeValue;if(at?!/^\??prettify\b/.test(at):R!==3||/\S/.test(E.nodeValue))break;if(at){gt={},at.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ge,Ht,cn){gt[Ht]=cn});break}}var ae=Re.className;if((gt!==pt||me.test(ae))&&!Lt.test(ae)){for(var Y=!1,Ft=Re.parentNode;Ft;Ft=Ft.parentNode){var Ke=Ft.tagName;if(kt.test(Ke)&&Ft.className&&me.test(Ft.className)){Y=!0;break}}if(!Y){Re.className+=" prettyprinted";var st=gt.lang;if(!st){st=ae.match(he);var _t;!st&&(_t=De(Re))&&Nt.test(_t.tagName)&&(st=_t.className.match(he)),st&&(st=st[1])}var xe;if(Ct.test(Re.tagName))xe=1;else{var _e=Re.currentStyle,et=Ue.defaultView,Qe=_e?_e.whiteSpace:et&&et.getComputedStyle?et.getComputedStyle(Re,null).getPropertyValue("white-space"):0;xe=Qe&&Qe.substring(0,3)==="pre"}var z=gt.linenums;(z=z==="true"||+z)||(z=ae.match(/\blinenums\b(?::(\d+))?/),z=z?z[1]&&z[1].length?+z[1]:!0:!1),z&&rt(Re,z,xe);var Rt={langExtension:st,sourceNode:Re,numberLines:z,pre:xe,sourceCode:null,basePos:null,spans:null,decorations:null};tt(Rt)}}}yt<Se.length?g.setTimeout(Vt,250):typeof Le=="function"&&Le()}Vt()}var bt=g.PR={createSimpleLexer:dt,registerLangHandler:Me,sourceDecorator:It,PR_ATTRIB_NAME:N,PR_ATTRIB_VALUE:S,PR_COMMENT:ce,PR_DECLARATION:Ze,PR_KEYWORD:A,PR_LITERAL:pe,PR_NOCODE:q,PR_PLAIN:Je,PR_PUNCTUATION:ze,PR_SOURCE:le,PR_STRING:P,PR_TAG:Pe,PR_TYPE:Ee,prettyPrintOne:i?g.prettyPrintOne=un:fe=un,prettyPrint:Z=i?g.prettyPrint=vt:Z=vt},Ve=g.define;typeof Ve=="function"&&Ve.amd&&Ve("google-code-prettify",[],function(){return bt})})()},25769:function(zn,Pt,u){"use strict";var i=u(98040),U={"text/plain":"Text","text/html":"Url",default:"Text"},O="Copy to clipboard: #{key}, Enter";function fe(g){var H=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,H)}function Z(g,H){var V,l,y,M,b,C,T=!1;H||(H={}),V=H.debug||!1;try{y=i(),M=document.createRange(),b=document.getSelection(),C=document.createElement("span"),C.textContent=g,C.ariaHidden="true",C.style.all="unset",C.style.position="fixed",C.style.top=0,C.style.clip="rect(0, 0, 0, 0)",C.style.whiteSpace="pre",C.style.webkitUserSelect="text",C.style.MozUserSelect="text",C.style.msUserSelect="text",C.style.userSelect="text",C.addEventListener("copy",function(W){if(W.stopPropagation(),H.format)if(W.preventDefault(),typeof W.clipboardData=="undefined"){V&&console.warn("unable to use e.clipboardData"),V&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var X=U[H.format]||U.default;window.clipboardData.setData(X,g)}else W.clipboardData.clearData(),W.clipboardData.setData(H.format,g);H.onCopy&&(W.preventDefault(),H.onCopy(W.clipboardData))}),document.body.appendChild(C),M.selectNodeContents(C),b.addRange(M);var $=document.execCommand("copy");if(!$)throw new Error("copy command was unsuccessful");T=!0}catch(W){V&&console.error("unable to copy using execCommand: ",W),V&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(H.format||"text",g),H.onCopy&&H.onCopy(window.clipboardData),T=!0}catch(X){V&&console.error("unable to copy using clipboardData: ",X),V&&console.error("falling back to prompt"),l=fe("message"in H?H.message:O),window.prompt(l,g)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(M):b.removeAllRanges()),C&&document.body.removeChild(C),y()}return T}zn.exports=Z},24334:function(zn,Pt,u){var i,U;(function(O,fe){zn.exports=fe(O)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof u.g!="undefined"?u.g:this,function(O){"use strict";O=O||{};var fe=O.Base64,Z="2.6.4",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=function(N){for(var S={},q=0,te=N.length;q<te;q++)S[N.charAt(q)]=q;return S}(g),V=String.fromCharCode,l=function(N){if(N.length<2){var S=N.charCodeAt(0);return S<128?N:S<2048?V(192|S>>>6)+V(128|S&63):V(224|S>>>12&15)+V(128|S>>>6&63)+V(128|S&63)}else{var S=65536+(N.charCodeAt(0)-55296)*1024+(N.charCodeAt(1)-56320);return V(240|S>>>18&7)+V(128|S>>>12&63)+V(128|S>>>6&63)+V(128|S&63)}},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,M=function(N){return N.replace(y,l)},b=function(N){var S=[0,2,1][N.length%3],q=N.charCodeAt(0)<<16|(N.length>1?N.charCodeAt(1):0)<<8|(N.length>2?N.charCodeAt(2):0),te=[g.charAt(q>>>18),g.charAt(q>>>12&63),S>=2?"=":g.charAt(q>>>6&63),S>=1?"=":g.charAt(q&63)];return te.join("")},C=O.btoa&&typeof O.btoa=="function"?function(N){return O.btoa(N)}:function(N){if(N.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return N.replace(/[\s\S]{1,3}/g,b)},T=function(N){return C(M(String(N)))},$=function(N){return N.replace(/[+\/]/g,function(S){return S=="+"?"-":"_"}).replace(/=/g,"")},W=function(N,S){return S?$(T(N)):T(N)},X=function(N){return W(N,!0)},G;O.Uint8Array&&(G=function(N,S){for(var q="",te=0,se=N.length;te<se;te+=3){var w=N[te],I=N[te+1],de=N[te+2],De=w<<16|I<<8|de;q+=g.charAt(De>>>18)+g.charAt(De>>>12&63)+(typeof I!="undefined"?g.charAt(De>>>6&63):"=")+(typeof de!="undefined"?g.charAt(De&63):"=")}return S?$(q):q});var L=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Q=function(N){switch(N.length){case 4:var S=(7&N.charCodeAt(0))<<18|(63&N.charCodeAt(1))<<12|(63&N.charCodeAt(2))<<6|63&N.charCodeAt(3),q=S-65536;return V((q>>>10)+55296)+V((q&1023)+56320);case 3:return V((15&N.charCodeAt(0))<<12|(63&N.charCodeAt(1))<<6|63&N.charCodeAt(2));default:return V((31&N.charCodeAt(0))<<6|63&N.charCodeAt(1))}},P=function(N){return N.replace(L,Q)},A=function(N){var S=N.length,q=S%4,te=(S>0?H[N.charAt(0)]<<18:0)|(S>1?H[N.charAt(1)]<<12:0)|(S>2?H[N.charAt(2)]<<6:0)|(S>3?H[N.charAt(3)]:0),se=[V(te>>>16),V(te>>>8&255),V(te&255)];return se.length-=[0,0,2,1][q],se.join("")},ce=O.atob&&typeof O.atob=="function"?function(N){return O.atob(N)}:function(N){return N.replace(/\S{1,4}/g,A)},Ee=function(N){return ce(String(N).replace(/[^A-Za-z0-9\+\/]/g,""))},pe=function(N){return P(ce(N))},ze=function(N){return String(N).replace(/[-_]/g,function(S){return S=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Je=function(N){return pe(ze(N))},Pe;O.Uint8Array&&(Pe=function(N){return Uint8Array.from(Ee(ze(N)),function(S){return S.charCodeAt(0)})});var Ze=function(){var N=O.Base64;return O.Base64=fe,N};if(O.Base64={VERSION:Z,atob:Ee,btoa:C,fromBase64:Je,toBase64:W,utob:M,encode:W,encodeURI:X,btou:P,decode:Je,noConflict:Ze,fromUint8Array:G,toUint8Array:Pe},typeof Object.defineProperty=="function"){var le=function(N){return{value:N,enumerable:!1,writable:!0,configurable:!0}};O.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",le(function(){return Je(this)})),Object.defineProperty(String.prototype,"toBase64",le(function(N){return W(this,N)})),Object.defineProperty(String.prototype,"toBase64URI",le(function(){return W(this,!0)}))}}return O.Meteor&&(Base64=O.Base64),zn.exports?zn.exports.Base64=O.Base64:(i=[],U=function(){return O.Base64}.apply(Pt,i),U!==void 0&&(zn.exports=U)),{Base64:O.Base64}})},53184:function(zn,Pt,u){"use strict";var i,U;function O(fe,Z,g){var H=function(V,l){return fe.js_beautify(V,l)};return H.js=fe.js_beautify,H.css=Z.css_beautify,H.html=g.html_beautify,H.js_beautify=fe.js_beautify,H.css_beautify=Z.css_beautify,H.html_beautify=g.html_beautify,H}i=[u(58553),u(87804),u(40998)],U=function(fe,Z,g){return O(fe,Z,g)}.apply(Pt,i),U!==void 0&&(zn.exports=U)},87804:function(zn,Pt){var u,i;(function(){var U;(function(){"use strict";var fe=[,,function(V){function l(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=[]}l.prototype.clone_empty=function(){var b=new l(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},l.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},l.prototype.has_match=function(b){for(var C=this.__items.length-1;C>=0;C--)if(this.__items[C].match(b))return!0;return!1},l.prototype.set_indent=function(b,C){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=C||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(b){this.__items.push(b);var C=b.lastIndexOf(`
`);C!==-1?this.__character_count=b.length-C:this.__character_count+=b.length},l.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.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 y(b,C){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)),C=C||"",b.indent_level>0&&(C=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=C,this.__base_string_length=C.length}y.prototype.get_indent_size=function(b,C){var T=this.__base_string_length;return C=C||0,b<0&&(T=0),T+=b*this.__indent_size,T+=C,T},y.prototype.get_indent_string=function(b,C){var T=this.__base_string;return C=C||0,b<0&&(b=0,T=""),C+=b*this.__indent_size,this.__ensure_cache(C),T+=this.__cache[C],T},y.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var b=this.__cache.length,C=0,T="";this.__indent_size&&b>=this.__indent_size&&(C=Math.floor(b/this.__indent_size),b-=C*this.__indent_size,T=new Array(C+1).join(this.__indent_string)),b&&(T+=new Array(b+1).join(" ")),this.__cache.push(T)};function M(b,C){this.__indent_cache=new y(b,C),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 l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(b,C){return this.__indent_cache.get_indent_string(b,C)},M.prototype.get_indent_size=function(b,C){return this.__indent_cache.get_indent_size(b,C)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(b){this.trim(!0);var C=this.current_line.pop();C&&(C[C.length-1]===`
`&&(C=C.replace(/\n+$/g,"")),this.current_line.push(C)),this._end_with_newline&&this.__add_outputline();var T=this.__lines.join(`
`);return b!==`
`&&(T=T.replace(/[\n]/g,b)),T},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(b,C){return b=b||0,C=C||0,this.next_line.set_indent(b,C),this.__lines.length>1?(this.current_line.set_indent(b,C),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(b){for(var C=0;C<b.newlines;C++)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},M.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()},M.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(" "))},M.prototype.remove_indent=function(b){for(var C=this.__lines.length;b<C;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},M.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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(b,C){for(var T=this.__lines.length-2;T>=0;){var $=this.__lines[T];if($.is_empty())break;if($.item(0).indexOf(b)!==0&&$.item(-1)!==C){this.__lines.splice(T+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}T--}},V.exports.Output=M},,,,function(V){function l(b,C){this.raw_options=y(b,C),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(b,C){var T=this.raw_options[b],$=C||[];return typeof T=="object"?T!==null&&typeof T.concat=="function"&&($=T.concat()):typeof T=="string"&&($=T.split(/[^a-zA-Z0-9_\/\-]+/)),$},l.prototype._get_boolean=function(b,C){var T=this.raw_options[b],$=T===void 0?!!C:!!T;return $},l.prototype._get_characters=function(b,C){var T=this.raw_options[b],$=C||"";return typeof T=="string"&&($=T.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),$},l.prototype._get_number=function(b,C){var T=this.raw_options[b];C=parseInt(C,10),isNaN(C)&&(C=0);var $=parseInt(T,10);return isNaN($)&&($=C),$},l.prototype._get_selection=function(b,C,T){var $=this._get_selection_list(b,C,T);if($.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+C+`
You passed in: '`+this.raw_options[b]+"'");return $[0]},l.prototype._get_selection_list=function(b,C,T){if(!C||C.length===0)throw new Error("Selection list cannot be empty.");if(T=T||[C[0]],!this._is_valid_selection(T,C))throw new Error("Invalid Default Value!");var $=this._get_array(b,T);if(!this._is_valid_selection($,C))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+C+`
You passed in: '`+this.raw_options[b]+"'");return $},l.prototype._is_valid_selection=function(b,C){return b.length&&C.length&&!b.some(function(T){return C.indexOf(T)===-1})};function y(b,C){var T={};b=M(b);var $;for($ in b)$!==C&&(T[$]=b[$]);if(C&&b[C])for($ in b[C])T[$]=b[C][$];return T}function M(b){var C={},T;for(T in b){var $=T.replace(/-/g,"_");C[$]=b[T]}return C}V.exports.Options=l,V.exports.normalizeOpts=M,V.exports.mergeOpts=y},,function(V){var l=RegExp.prototype.hasOwnProperty("sticky");function y(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},y.prototype.peek=function(M){var b=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(b=this.__input.charAt(M)),b},y.prototype.__match=function(M,b){M.lastIndex=b;var C=M.exec(this.__input);return C&&!(l&&M.sticky)&&C.index!==b&&(C=null),C},y.prototype.test=function(M,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(M,b):!1},y.prototype.testChar=function(M,b){var C=this.peek(b);return M.lastIndex=0,C!==null&&M.test(C)},y.prototype.match=function(M){var b=this.__match(M,this.__position);return b?this.__position+=b[0].length:b=null,b},y.prototype.read=function(M,b,C){var T="",$;return M&&($=this.match(M),$&&(T+=$[0])),b&&($||!M)&&(T+=this.readUntil(b,C)),T},y.prototype.readUntil=function(M,b){var C="",T=this.__position;M.lastIndex=this.__position;var $=M.exec(this.__input);return $?(T=$.index,b&&(T+=$[0].length)):T=this.__input_length,C=this.__input.substring(this.__position,T),this.__position=T,C},y.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},y.prototype.get_regexp=function(M,b){var C=null,T="g";return b&&l&&(T="y"),typeof M=="string"&&M!==""?C=new RegExp(M,T):M&&(C=new RegExp(M.source,T)),C},y.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(M){var b=this.__position,C=this.readUntilAfter(M);return this.__position=b,C},y.prototype.lookBack=function(M){var b=this.__position-1;return b>=M.length&&this.__input.substring(b-M.length,b).toLowerCase()===M},V.exports.InputScanner=y},,,,,function(V){function l(y,M){y=typeof y=="string"?y:y.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+M,"g")}l.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(y);b;)M[b[1]]=b[2],b=this.__directive_pattern.exec(y);return M},l.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},V.exports.Directives=l},,function(V,l,y){var M=y(16).Beautifier,b=y(17).Options;function C(T,$){var W=new M(T,$);return W.beautify()}V.exports=C,V.exports.defaultOptions=function(){return new b}},function(V,l,y){var M=y(17).Options,b=y(2).Output,C=y(8).InputScanner,T=y(13).Directives,$=new T(/\/\*/,/\*\//),W=/\r\n|[\r\n]/,X=/\r\n|[\r\n]/g,G=/\s/,L=/(?:\s|\n)+/g,Q=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,P=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function A(ce,Ee){this._source_text=ce||"",this._options=new M(Ee),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"]}A.prototype.eatString=function(ce){var Ee="";for(this._ch=this._input.next();this._ch;){if(Ee+=this._ch,this._ch==="\\")Ee+=this._input.next();else if(ce.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return Ee},A.prototype.eatWhitespace=function(ce){for(var Ee=G.test(this._input.peek()),pe=0;G.test(this._input.peek());)this._ch=this._input.next(),ce&&this._ch===`
`&&(pe===0||pe<this._options.max_preserve_newlines)&&(pe++,this._output.add_new_line(!0));return Ee},A.prototype.foundNestedPseudoClass=function(){for(var ce=0,Ee=1,pe=this._input.peek(Ee);pe;){if(pe==="{")return!0;if(pe==="(")ce+=1;else if(pe===")"){if(ce===0)return!1;ce-=1}else if(pe===";"||pe==="}")return!1;Ee++,pe=this._input.peek(Ee)}return!1},A.prototype.print_string=function(ce){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(ce)},A.prototype.preserveSingleSpace=function(ce){ce&&(this._output.space_before_token=!0)},A.prototype.indent=function(){this._indentLevel++},A.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ce=this._source_text,Ee=this._options.eol;Ee==="auto"&&(Ee=`
`,ce&&W.test(ce||"")&&(Ee=ce.match(W)[0])),ce=ce.replace(X,`
`);var pe=ce.match(/^[\t ]*/)[0];this._output=new b(this._options,pe),this._input=new C(ce),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ze=0,Je=!1,Pe=!1,Ze=!1,le=!1,N=!1,S=this._ch,q=!1,te,se,w;te=this._input.read(L),se=te!=="",w=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var I=this._input.read(Q),de=$.get_directives(I);de&&de.ignore==="start"&&(I+=$.readIgnored(this._input)),this.print_string(I),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(P)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(se),this.print_string(this._ch);var De=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);De.match(/[ :]$/)&&(De=this.eatString(": ").replace(/\s+$/,""),this.print_string(De),this._output.space_before_token=!0),ze===0&&De.indexOf(":")!==-1&&(Pe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(se),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var dt=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);dt.match(/[ :]$/)&&(dt=this.eatString(": ").replace(/\s+$/,""),this.print_string(dt),this._output.space_before_token=!0),ze===0&&dt.indexOf(":")!==-1?(Pe=!0,this.indent()):dt in this.NESTED_AT_RULE?(this._nestedLevel+=1,dt in this.CONDITIONAL_GROUP_RULE&&(Ze=!0)):ze===0&&!Pe&&(le=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(se),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Pe&&(Pe=!1,this.outdent()),le=!1,Ze?(Ze=!1,Je=this._indentLevel>=this._nestedLevel):Je=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Je&&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)):(w==="("?this._output.space_before_token=!1:w!==","&&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(),w==="{"&&this._output.trim(!0),Pe&&(this.outdent(),Pe=!1),this.print_string(this._ch),Je=!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 It=0;It<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;It++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[It])){q=!0;break}(Je||Ze)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!le&&ze===0?(this.print_string(":"),Pe||(Pe=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Te=w==='"'||w==="'";this.preserveSingleSpace(Te||se),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")q=!1,ze===0?(Pe&&(this.outdent(),Pe=!1),le=!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(),ze++,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(")")),ze&&(ze--,this.outdent()));else{var rt=!1;this._input.lookBack("with")&&(rt=!0),this.preserveSingleSpace(se||rt),this.print_string(this._ch),Pe&&w==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),N=!0):(this.eatWhitespace(),ze++,this.indent())}else if(this._ch===")")ze&&(ze--,this.outdent()),N&&this._input.peek()===";"&&this._options.selector_separator_newline&&(N=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Pe||N)&&ze===0&&!le?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Pe&&ze===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&&G.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(se),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),G.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 ht=w==='"'||w==="'";this.preserveSingleSpace(ht||se),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&q&&this._output.add_new_line()}var St=this._output.get_code(Ee);return St},V.exports.Beautifier=A},function(V,l,y){var M=y(6).Options;function b(C){M.call(this,C,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var T=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||T;var $=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var W=0;W<$.length;W++)$[W]!=="expand"?this.brace_style="collapse":this.brace_style=$[W]}b.prototype=new M,V.exports.Options=b}],Z={};function g(V){var l=Z[V];if(l!==void 0)return l.exports;var y=Z[V]={exports:{}};return fe[V](y,y.exports,g),y.exports}var H=g(15);U=H})();var O=U;u=[],i=function(){return{css_beautify:O}}.apply(Pt,u),i!==void 0&&(zn.exports=i)})()},40998:function(zn,Pt,u){var i,U;(function(){var O;(function(){"use strict";var H=[,,function(M){function b($){this.__parent=$,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=[]}b.prototype.clone_empty=function(){var $=new b(this.__parent);return $.set_indent(this.__indent_count,this.__alignment_count),$},b.prototype.item=function($){return $<0?this.__items[this.__items.length+$]:this.__items[$]},b.prototype.has_match=function($){for(var W=this.__items.length-1;W>=0;W--)if(this.__items[W].match($))return!0;return!1},b.prototype.set_indent=function($,W){this.is_empty()&&(this.__indent_count=$||0,this.__alignment_count=W||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},b.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)},b.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},b.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var $=this.__parent.current_line;return $.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),$.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),$.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,$.__items[0]===" "&&($.__items.splice(0,1),$.__character_count-=1),!0}return!1},b.prototype.is_empty=function(){return this.__items.length===0},b.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},b.prototype.push=function($){this.__items.push($);var W=$.lastIndexOf(`
`);W!==-1?this.__character_count=$.length-W:this.__character_count+=$.length},b.prototype.pop=function(){var $=null;return this.is_empty()||($=this.__items.pop(),this.__character_count-=$.length),$},b.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},b.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},b.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},b.prototype.toString=function(){var $="";return this.is_empty()?this.__parent.indent_empty_lines&&($=this.__parent.get_indent_string(this.__indent_count)):($=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),$+=this.__items.join("")),$};function C($,W){this.__cache=[""],this.__indent_size=$.indent_size,this.__indent_string=$.indent_char,$.indent_with_tabs||(this.__indent_string=new Array($.indent_size+1).join($.indent_char)),W=W||"",$.indent_level>0&&(W=new Array($.indent_level+1).join(this.__indent_string)),this.__base_string=W,this.__base_string_length=W.length}C.prototype.get_indent_size=function($,W){var X=this.__base_string_length;return W=W||0,$<0&&(X=0),X+=$*this.__indent_size,X+=W,X},C.prototype.get_indent_string=function($,W){var X=this.__base_string;return W=W||0,$<0&&($=0,X=""),W+=$*this.__indent_size,this.__ensure_cache(W),X+=this.__cache[W],X},C.prototype.__ensure_cache=function($){for(;$>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var $=this.__cache.length,W=0,X="";this.__indent_size&&$>=this.__indent_size&&(W=Math.floor($/this.__indent_size),$-=W*this.__indent_size,X=new Array(W+1).join(this.__indent_string)),$&&(X+=new Array($+1).join(" ")),this.__cache.push(X)};function T($,W){this.__indent_cache=new C($,W),this.raw=!1,this._end_with_newline=$.end_with_newline,this.indent_size=$.indent_size,this.wrap_line_length=$.wrap_line_length,this.indent_empty_lines=$.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new b(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function($,W){return this.__indent_cache.get_indent_string($,W)},T.prototype.get_indent_size=function($,W){return this.__indent_cache.get_indent_size($,W)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function($){return this.is_empty()||!$&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function($){this.trim(!0);var W=this.current_line.pop();W&&(W[W.length-1]===`
`&&(W=W.replace(/\n+$/g,"")),this.current_line.push(W)),this._end_with_newline&&this.__add_outputline();var X=this.__lines.join(`
`);return $!==`
`&&(X=X.replace(/[\n]/g,$)),X},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function($,W){return $=$||0,W=W||0,this.next_line.set_indent($,W),this.__lines.length>1?(this.current_line.set_indent($,W),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function($){for(var W=0;W<$.newlines;W++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push($.whitespace_before),this.current_line.push($.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function($){this.__add_space_before_token(),this.current_line.push($),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.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(" "))},T.prototype.remove_indent=function($){for(var W=this.__lines.length;$<W;)this.__lines[$]._remove_indent(),$++;this.current_line._remove_wrap_indent()},T.prototype.trim=function($){for($=$===void 0?!1:$,this.current_line.trim();$&&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},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function($,W){for(var X=this.__lines.length-2;X>=0;){var G=this.__lines[X];if(G.is_empty())break;if(G.item(0).indexOf($)!==0&&G.item(-1)!==W){this.__lines.splice(X+1,0,new b(this)),this.previous_line=this.__lines[this.__lines.length-2];break}X--}},M.exports.Output=T},function(M){function b(C,T,$,W){this.type=C,this.text=T,this.comments_before=null,this.newlines=$||0,this.whitespace_before=W||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}M.exports.Token=b},,,function(M){function b($,W){this.raw_options=C($,W),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"])}b.prototype._get_array=function($,W){var X=this.raw_options[$],G=W||[];return typeof X=="object"?X!==null&&typeof X.concat=="function"&&(G=X.concat()):typeof X=="string"&&(G=X.split(/[^a-zA-Z0-9_\/\-]+/)),G},b.prototype._get_boolean=function($,W){var X=this.raw_options[$],G=X===void 0?!!W:!!X;return G},b.prototype._get_characters=function($,W){var X=this.raw_options[$],G=W||"";return typeof X=="string"&&(G=X.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),G},b.prototype._get_number=function($,W){var X=this.raw_options[$];W=parseInt(W,10),isNaN(W)&&(W=0);var G=parseInt(X,10);return isNaN(G)&&(G=W),G},b.prototype._get_selection=function($,W,X){var G=this._get_selection_list($,W,X);if(G.length!==1)throw new Error("Invalid Option Value: The option '"+$+`' can only be one of the following values:
`+W+`
You passed in: '`+this.raw_options[$]+"'");return G[0]},b.prototype._get_selection_list=function($,W,X){if(!W||W.length===0)throw new Error("Selection list cannot be empty.");if(X=X||[W[0]],!this._is_valid_selection(X,W))throw new Error("Invalid Default Value!");var G=this._get_array($,X);if(!this._is_valid_selection(G,W))throw new Error("Invalid Option Value: The option '"+$+`' can contain only the following values:
`+W+`
You passed in: '`+this.raw_options[$]+"'");return G},b.prototype._is_valid_selection=function($,W){return $.length&&W.length&&!$.some(function(X){return W.indexOf(X)===-1})};function C($,W){var X={};$=T($);var G;for(G in $)G!==W&&(X[G]=$[G]);if(W&&$[W])for(G in $[W])X[G]=$[W][G];return X}function T($){var W={},X;for(X in $){var G=X.replace(/-/g,"_");W[G]=$[X]}return W}M.exports.Options=b,M.exports.normalizeOpts=T,M.exports.mergeOpts=C},,function(M){var b=RegExp.prototype.hasOwnProperty("sticky");function C(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},C.prototype.peek=function(T){var $=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&($=this.__input.charAt(T)),$},C.prototype.__match=function(T,$){T.lastIndex=$;var W=T.exec(this.__input);return W&&!(b&&T.sticky)&&W.index!==$&&(W=null),W},C.prototype.test=function(T,$){return $=$||0,$+=this.__position,$>=0&&$<this.__input_length?!!this.__match(T,$):!1},C.prototype.testChar=function(T,$){var W=this.peek($);return T.lastIndex=0,W!==null&&T.test(W)},C.prototype.match=function(T){var $=this.__match(T,this.__position);return $?this.__position+=$[0].length:$=null,$},C.prototype.read=function(T,$,W){var X="",G;return T&&(G=this.match(T),G&&(X+=G[0])),$&&(G||!T)&&(X+=this.readUntil($,W)),X},C.prototype.readUntil=function(T,$){var W="",X=this.__position;T.lastIndex=this.__position;var G=T.exec(this.__input);return G?(X=G.index,$&&(X+=G[0].length)):X=this.__input_length,W=this.__input.substring(this.__position,X),this.__position=X,W},C.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},C.prototype.get_regexp=function(T,$){var W=null,X="g";return $&&b&&(X="y"),typeof T=="string"&&T!==""?W=new RegExp(T,X):T&&(W=new RegExp(T.source,X)),W},C.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(T){var $=this.__position,W=this.readUntilAfter(T);return this.__position=$,W},C.prototype.lookBack=function(T){var $=this.__position-1;return $>=T.length&&this.__input.substring($-T.length,$).toLowerCase()===T},M.exports.InputScanner=C},function(M,b,C){var T=C(8).InputScanner,$=C(3).Token,W=C(10).TokenStream,X=C(11).WhitespacePattern,G={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},L=function(Q,P){this._input=new T(Q),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new X(this._input)};L.prototype.tokenize=function(){this._input.restart(),this.__tokens=new W,this._reset();for(var Q,P=new $(G.START,""),A=null,ce=[],Ee=new W;P.type!==G.EOF;){for(Q=this._get_next_token(P,A);this._is_comment(Q);)Ee.add(Q),Q=this._get_next_token(P,A);Ee.isEmpty()||(Q.comments_before=Ee,Ee=new W),Q.parent=A,this._is_opening(Q)?(ce.push(A),A=Q):A&&this._is_closing(Q,A)&&(Q.opened=A,A.closed=Q,A=ce.pop(),Q.parent=A),Q.previous=P,P.next=Q,this.__tokens.add(Q),P=Q}return this.__tokens},L.prototype._is_first_token=function(){return this.__tokens.isEmpty()},L.prototype._reset=function(){},L.prototype._get_next_token=function(Q,P){this._readWhitespace();var A=this._input.read(/.+/g);return A?this._create_token(G.RAW,A):this._create_token(G.EOF,"")},L.prototype._is_comment=function(Q){return!1},L.prototype._is_opening=function(Q){return!1},L.prototype._is_closing=function(Q,P){return!1},L.prototype._create_token=function(Q,P){var A=new $(Q,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return A},L.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},M.exports.Tokenizer=L,M.exports.TOKEN=G},function(M){function b(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}b.prototype.restart=function(){this.__position=0},b.prototype.isEmpty=function(){return this.__tokens_length===0},b.prototype.hasNext=function(){return this.__position<this.__tokens_length},b.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},b.prototype.peek=function(C){var T=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(T=this.__tokens[C]),T},b.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},M.exports.TokenStream=b},function(M,b,C){var T=C(12).Pattern;function $(W,X){T.call(this,W,X),X?this._line_regexp=this._input.get_regexp(X._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}$.prototype=new T,$.prototype.__set_whitespace_patterns=function(W,X){W+="\\t ",X+="\\n\\r",this._match_pattern=this._input.get_regexp("["+W+X+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+X+"]")},$.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var W=this._input.read(this._match_pattern);if(W===" ")this.whitespace_before_token=" ";else if(W){var X=this.__split(this._newline_regexp,W);this.newline_count=X.length-1,this.whitespace_before_token=X[this.newline_count]}return W},$.prototype.matching=function(W,X){var G=this._create();return G.__set_whitespace_patterns(W,X),G._update(),G},$.prototype._create=function(){return new $(this._input,this)},$.prototype.__split=function(W,X){W.lastIndex=0;for(var G=0,L=[],Q=W.exec(X);Q;)L.push(X.substring(G,Q.index)),G=Q.index+Q[0].length,Q=W.exec(X);return G<X.length?L.push(X.substring(G,X.length)):L.push(""),L},M.exports.WhitespacePattern=$},function(M){function b(C,T){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}b.prototype.read=function(){var C=this._input.read(this._starting_pattern);return(!this._starting_pattern||C)&&(C+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),C},b.prototype.read_match=function(){return this._input.match(this._match_pattern)},b.prototype.until_after=function(C){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(C),T._update(),T},b.prototype.until=function(C){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(C),T._update(),T},b.prototype.starting_with=function(C){var T=this._create();return T._starting_pattern=this._input.get_regexp(C,!0),T._update(),T},b.prototype.matching=function(C){var T=this._create();return T._match_pattern=this._input.get_regexp(C,!0),T._update(),T},b.prototype._create=function(){return new b(this._input,this)},b.prototype._update=function(){},M.exports.Pattern=b},function(M){function b(C,T){C=typeof C=="string"?C:C.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+T,"g")}b.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var $=this.__directive_pattern.exec(C);$;)T[$[1]]=$[2],$=this.__directive_pattern.exec(C);return T},b.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},M.exports.Directives=b},function(M,b,C){var T=C(12).Pattern,$={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function W(X,G){T.call(this,X,G),this.__template_pattern=null,this._disabled=Object.assign({},$),this._excluded=Object.assign({},$),G&&(this.__template_pattern=this._input.get_regexp(G.__template_pattern),this._excluded=Object.assign(this._excluded,G._excluded),this._disabled=Object.assign(this._disabled,G._disabled));var L=new T(X);this.__patterns={handlebars_comment:L.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:L.starting_with(/{{{/).until_after(/}}}/),handlebars:L.starting_with(/{{/).until_after(/}}/),php:L.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:L.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:L.starting_with(/{%/).until_after(/%}/),django_value:L.starting_with(/{{/).until_after(/}}/),django_comment:L.starting_with(/{#/).until_after(/#}/),smarty:L.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:L.starting_with(/{\*/).until_after(/\*}/),smarty_literal:L.starting_with(/{literal}/).until_after(/{\/literal}/)}}W.prototype=new T,W.prototype._create=function(){return new W(this._input,this)},W.prototype._update=function(){this.__set_templated_pattern()},W.prototype.disable=function(X){var G=this._create();return G._disabled[X]=!0,G._update(),G},W.prototype.read_options=function(X){var G=this._create();for(var L in $)G._disabled[L]=X.templating.indexOf(L)===-1;return G._update(),G},W.prototype.exclude=function(X){var G=this._create();return G._excluded[X]=!0,G._update(),G},W.prototype.read=function(){var X="";this._match_pattern?X=this._input.read(this._starting_pattern):X=this._input.read(this._starting_pattern,this.__template_pattern);for(var G=this._read_template();G;)this._match_pattern?G+=this._input.read(this._match_pattern):G+=this._input.readUntil(this.__template_pattern),X+=G,G=this._read_template();return this._until_after&&(X+=this._input.readUntilAfter(this._until_pattern)),X},W.prototype.__set_templated_pattern=function(){var X=[];this._disabled.php||X.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||X.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||X.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||X.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(X.push(this.__patterns.django._starting_pattern.source),X.push(this.__patterns.django_value._starting_pattern.source),X.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||X.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&X.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+X.join("|")+")")},W.prototype._read_template=function(){var X="",G=this._input.peek();if(G==="<"){var L=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&L==="?"&&(X=X||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&L==="%"&&(X=X||this.__patterns.erb.read())}else G==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(X=X||this.__patterns.handlebars_comment.read(),X=X||this.__patterns.handlebars_unescaped.read(),X=X||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(X=X||this.__patterns.django_value.read()),this._excluded.django||(X=X||this.__patterns.django_comment.read(),X=X||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(X=X||this.__patterns.smarty_comment.read(),X=X||this.__patterns.smarty_literal.read(),X=X||this.__patterns.smarty.read()));return X},M.exports.TemplatablePattern=W},,,,function(M,b,C){var T=C(19).Beautifier,$=C(20).Options;function W(X,G,L,Q){var P=new T(X,G,L,Q);return P.beautify()}M.exports=W,M.exports.defaultOptions=function(){return new $}},function(M,b,C){var T=C(20).Options,$=C(2).Output,W=C(21).Tokenizer,X=C(21).TOKEN,G=/\r\n|[\r\n]/,L=/\r\n|[\r\n]/g,Q=function(le,N){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=le.max_preserve_newlines,this.preserve_newlines=le.preserve_newlines,this._output=new $(le,N)};Q.prototype.current_line_has_match=function(le){return this._output.current_line.has_match(le)},Q.prototype.set_space_before_token=function(le,N){this._output.space_before_token=le,this._output.non_breaking_space=N},Q.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},Q.prototype.add_raw_token=function(le){this._output.add_raw_token(le)},Q.prototype.print_preserved_newlines=function(le){var N=0;le.type!==X.TEXT&&le.previous.type!==X.TEXT&&(N=le.newlines?1:0),this.preserve_newlines&&(N=le.newlines<this.max_preserve_newlines+1?le.newlines:this.max_preserve_newlines+1);for(var S=0;S<N;S++)this.print_newline(S>0);return N!==0},Q.prototype.traverse_whitespace=function(le){return le.whitespace_before||le.newlines?(this.print_preserved_newlines(le)||(this._output.space_before_token=!0),!0):!1},Q.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},Q.prototype.print_newline=function(le){this._output.add_new_line(le)},Q.prototype.print_token=function(le){le.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(le.text))},Q.prototype.indent=function(){this.indent_level++},Q.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},Q.prototype.get_full_indent=function(le){return le=this.indent_level+(le||0),le<1?"":this._output.get_indent_string(le)};var P=function(le){for(var N=null,S=le.next;S.type!==X.EOF&&le.closed!==S;){if(S.type===X.ATTRIBUTE&&S.text==="type"){S.next&&S.next.type===X.EQUALS&&S.next.next&&S.next.next.type===X.VALUE&&(N=S.next.next.text);break}S=S.next}return N},A=function(le,N){var S=null,q=null;return N.closed?(le==="script"?S="text/javascript":le==="style"&&(S="text/css"),S=P(N)||S,S.search("text/css")>-1?q="css":S.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?q="javascript":S.search(/(text|application|dojo)\/(x-)?(html)/)>-1?q="html":S.search(/test\/null/)>-1&&(q="null"),q):null};function ce(le,N){return N.indexOf(le)!==-1}function Ee(le,N,S){this.parent=le||null,this.tag=N?N.tag_name:"",this.indent_level=S||0,this.parser_token=N||null}function pe(le){this._printer=le,this._current_frame=null}pe.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},pe.prototype.record_tag=function(le){var N=new Ee(this._current_frame,le,this._printer.indent_level);this._current_frame=N},pe.prototype._try_pop_frame=function(le){var N=null;return le&&(N=le.parser_token,this._printer.indent_level=le.indent_level,this._current_frame=le.parent),N},pe.prototype._get_frame=function(le,N){for(var S=this._current_frame;S&&le.indexOf(S.tag)===-1;){if(N&&N.indexOf(S.tag)!==-1){S=null;break}S=S.parent}return S},pe.prototype.try_pop=function(le,N){var S=this._get_frame([le],N);return this._try_pop_frame(S)},pe.prototype.indent_to_tag=function(le){var N=this._get_frame(le);N&&(this._printer.indent_level=N.indent_level)};function ze(le,N,S,q){this._source_text=le||"",N=N||{},this._js_beautify=S,this._css_beautify=q,this._tag_stack=null;var te=new T(N,"html");this._options=te,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"}ze.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var le=this._source_text,N=this._options.eol;this._options.eol==="auto"&&(N=`
`,le&&G.test(le)&&(N=le.match(G)[0])),le=le.replace(L,`
`);var S=le.match(/^[\t ]*/)[0],q={text:"",type:""},te=new Je(this._options),se=new Q(this._options,S),w=new W(le,this._options).tokenize();this._tag_stack=new pe(se);for(var I=null,de=w.next();de.type!==X.EOF;)de.type===X.TAG_OPEN||de.type===X.COMMENT?(I=this._handle_tag_open(se,de,te,q,w),te=I):de.type===X.ATTRIBUTE||de.type===X.EQUALS||de.type===X.VALUE||de.type===X.TEXT&&!te.tag_complete?I=this._handle_inside_tag(se,de,te,q):de.type===X.TAG_CLOSE?I=this._handle_tag_close(se,de,te):de.type===X.TEXT?I=this._handle_text(se,de,te):de.type===X.CONTROL_FLOW_OPEN?I=this._handle_control_flow_open(se,de):de.type===X.CONTROL_FLOW_CLOSE?I=this._handle_control_flow_close(se,de):se.add_raw_token(de),q=I,de=w.next();var De=se._output.get_code(N);return De},ze.prototype._handle_control_flow_open=function(le,N){var S={text:N.text,type:N.type};return le.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),N.newlines?le.print_preserved_newlines(N):le.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),le.print_token(N),le.indent(),S},ze.prototype._handle_control_flow_close=function(le,N){var S={text:N.text,type:N.type};return le.deindent(),N.newlines?le.print_preserved_newlines(N):le.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),le.print_token(N),S},ze.prototype._handle_tag_close=function(le,N,S){var q={text:N.text,type:N.type};return le.alignment_size=0,S.tag_complete=!0,le.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),S.is_unformatted?le.add_raw_token(N):(S.tag_start_char==="<"&&(le.set_space_before_token(N.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&S.has_wrapped_attrs&&le.print_newline(!1)),le.print_token(N)),S.indent_content&&!(S.is_unformatted||S.is_content_unformatted)&&(le.indent(),S.indent_content=!1),!S.is_inline_element&&!(S.is_unformatted||S.is_content_unformatted)&&le.set_wrap_point(),q},ze.prototype._handle_inside_tag=function(le,N,S,q){var te=S.has_wrapped_attrs,se={text:N.text,type:N.type};return le.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),S.is_unformatted?le.add_raw_token(N):S.tag_start_char==="{"&&N.type===X.TEXT?le.print_preserved_newlines(N)?(N.newlines=0,le.add_raw_token(N)):le.print_token(N):(N.type===X.ATTRIBUTE?le.set_space_before_token(!0):(N.type===X.EQUALS||N.type===X.VALUE&&N.previous.type===X.EQUALS)&&le.set_space_before_token(!1),N.type===X.ATTRIBUTE&&S.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(le.traverse_whitespace(N),te=te||N.newlines!==0),this._is_wrap_attributes_force&&S.attr_count>=this._options.wrap_attributes_min_attrs&&(q.type!==X.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(le.print_newline(!1),te=!0)),le.print_token(N),te=te||le.previous_token_wrapped(),S.has_wrapped_attrs=te),se},ze.prototype._handle_text=function(le,N,S){var q={text:N.text,type:"TK_CONTENT"};return S.custom_beautifier_name?this._print_custom_beatifier_text(le,N,S):S.is_unformatted||S.is_content_unformatted?le.add_raw_token(N):(le.traverse_whitespace(N),le.print_token(N)),q},ze.prototype._print_custom_beatifier_text=function(le,N,S){var q=this;if(N.text!==""){var te=N.text,se,w=1,I="",de="";S.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?se=this._js_beautify:S.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?se=this._css_beautify:S.custom_beautifier_name==="html"&&(se=function(ht,St){var Me=new ze(ht,St,q._js_beautify,q._css_beautify);return Me.beautify()}),this._options.indent_scripts==="keep"?w=0:this._options.indent_scripts==="separate"&&(w=-le.indent_level);var De=le.get_full_indent(w);if(te=te.replace(/\n[ \t]*$/,""),S.custom_beautifier_name!=="html"&&te[0]==="<"&&te.match(/^(<!--|<!\[CDATA\[)/)){var dt=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(te);if(!dt){le.add_raw_token(N);return}I=De+dt[1]+`
`,te=dt[4],dt[5]&&(de=De+dt[5]),te=te.replace(/\n[ \t]*$/,""),(dt[2]||dt[3].indexOf(`
`)!==-1)&&(dt=dt[3].match(/[ \t]+$/),dt&&(N.whitespace_before=dt[0]))}if(te)if(se){var It=function(){this.eol=`
`};It.prototype=this._options.raw_options;var Te=new It;te=se(De+te,Te)}else{var rt=N.whitespace_before;rt&&(te=te.replace(new RegExp(`
(`+rt+")?","g"),`
`)),te=De+te.replace(/\n/g,`
`+De)}I&&(te?te=I+te+`
`+de:te=I+de),le.print_newline(!1),te&&(N.text=te,N.whitespace_before="",N.newlines=0,le.add_raw_token(N),le.print_newline(!0))}},ze.prototype._handle_tag_open=function(le,N,S,q,te){var se=this._get_tag_open_token(N);if((S.is_unformatted||S.is_content_unformatted)&&!S.is_empty_element&&N.type===X.TAG_OPEN&&!se.is_start_tag?(le.add_raw_token(N),se.start_tag_token=this._tag_stack.try_pop(se.tag_name)):(le.traverse_whitespace(N),this._set_tag_position(le,N,se,S,q),se.is_inline_element||le.set_wrap_point(),le.print_token(N)),se.is_start_tag&&this._is_wrap_attributes_force){var w=0,I;do I=te.peek(w),I.type===X.ATTRIBUTE&&(se.attr_count+=1),w+=1;while(I.type!==X.EOF&&I.type!==X.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(se.alignment_size=N.text.length+1),!se.tag_complete&&!se.is_unformatted&&(le.alignment_size=se.alignment_size),se};var Je=function(le,N,S){if(this.parent=N||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="",!S)this.tag_complete=!0;else{var q;this.tag_start_char=S.text[0],this.text=S.text,this.tag_start_char==="<"?(q=S.text.match(/^<([^\s>]*)/),this.tag_check=q?q[1]:""):(q=S.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=q?q[1]:"",(S.text.startsWith("{{#>")||S.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&S.next!==null?this.tag_check=S.next.text.split(" ")[0]:this.tag_check=S.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),S.type===X.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||S.closed&&S.closed.text==="/>";var te=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(te=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!le.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(te)))}};ze.prototype._get_tag_open_token=function(le){var N=new Je(this._options,this._tag_stack.get_parser_token(),le);return N.alignment_size=this._options.wrap_attributes_indent_size,N.is_end_tag=N.is_end_tag||ce(N.tag_check,this._options.void_elements),N.is_empty_element=N.tag_complete||N.is_start_tag&&N.is_end_tag,N.is_unformatted=!N.tag_complete&&ce(N.tag_check,this._options.unformatted),N.is_content_unformatted=!N.is_empty_element&&ce(N.tag_check,this._options.content_unformatted),N.is_inline_element=ce(N.tag_name,this._options.inline)||this._options.inline_custom_elements&&N.tag_name.includes("-")||N.tag_start_char==="{",N},ze.prototype._set_tag_position=function(le,N,S,q,te){if(S.is_empty_element||(S.is_end_tag?S.start_tag_token=this._tag_stack.try_pop(S.tag_name):(this._do_optional_end_element(S)&&(S.is_inline_element||le.print_newline(!1)),this._tag_stack.record_tag(S),(S.tag_name==="script"||S.tag_name==="style")&&!(S.is_unformatted||S.is_content_unformatted)&&(S.custom_beautifier_name=A(S.tag_check,N)))),ce(S.tag_check,this._options.extra_liners)&&(le.print_newline(!1),le._output.just_added_blankline()||le.print_newline(!0)),S.is_empty_element){if(S.tag_start_char==="{"&&S.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),S.indent_content=!0;var se=le.current_line_has_match(/{{#if/);se||le.print_newline(!1)}S.tag_name==="!--"&&te.type===X.TAG_CLOSE&&q.is_end_tag&&S.text.indexOf(`
`)===-1||(S.is_inline_element||S.is_unformatted||le.print_newline(!1),this._calcluate_parent_multiline(le,S))}else if(S.is_end_tag){var w=!1;w=S.start_tag_token&&S.start_tag_token.multiline_content,w=w||!S.is_inline_element&&!(q.is_inline_element||q.is_unformatted)&&!(te.type===X.TAG_CLOSE&&S.start_tag_token===q)&&te.type!=="TK_CONTENT",(S.is_content_unformatted||S.is_unformatted)&&(w=!1),w&&le.print_newline(!1)}else S.indent_content=!S.custom_beautifier_name,S.tag_start_char==="<"&&(S.tag_name==="html"?S.indent_content=this._options.indent_inner_html:S.tag_name==="head"?S.indent_content=this._options.indent_head_inner_html:S.tag_name==="body"&&(S.indent_content=this._options.indent_body_inner_html)),!(S.is_inline_element||S.is_unformatted)&&(te.type!=="TK_CONTENT"||S.is_content_unformatted)&&le.print_newline(!1),this._calcluate_parent_multiline(le,S)},ze.prototype._calcluate_parent_multiline=function(le,N){N.parent&&le._output.just_added_newline()&&!((N.is_inline_element||N.is_unformatted)&&N.parent.is_inline_element)&&(N.parent.multiline_content=!0)};var Pe=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Ze=["a","audio","del","ins","map","noscript","video"];ze.prototype._do_optional_end_element=function(le){var N=null;if(!(le.is_empty_element||!le.is_start_tag||!le.parent)){if(le.tag_name==="body")N=N||this._tag_stack.try_pop("head");else if(le.tag_name==="li")N=N||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(le.tag_name==="dd"||le.tag_name==="dt")N=N||this._tag_stack.try_pop("dt",["dl"]),N=N||this._tag_stack.try_pop("dd",["dl"]);else if(le.parent.tag_name==="p"&&Pe.indexOf(le.tag_name)!==-1){var S=le.parent.parent;(!S||Ze.indexOf(S.tag_name)===-1)&&(N=N||this._tag_stack.try_pop("p"))}else le.tag_name==="rp"||le.tag_name==="rt"?(N=N||this._tag_stack.try_pop("rt",["ruby","rtc"]),N=N||this._tag_stack.try_pop("rp",["ruby","rtc"])):le.tag_name==="optgroup"?N=N||this._tag_stack.try_pop("optgroup",["select"]):le.tag_name==="option"?N=N||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):le.tag_name==="colgroup"?N=N||this._tag_stack.try_pop("caption",["table"]):le.tag_name==="thead"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"])):le.tag_name==="tbody"||le.tag_name==="tfoot"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("thead",["table"]),N=N||this._tag_stack.try_pop("tbody",["table"])):le.tag_name==="tr"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(le.tag_name==="th"||le.tag_name==="td")&&(N=N||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),N=N||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return le.parent=this._tag_stack.get_parser_token(),N}},M.exports.Beautifier=ze},function(M,b,C){var T=C(6).Options;function $(W){T.call(this,W,"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"])}$.prototype=new T,M.exports.Options=$},function(M,b,C){var T=C(9).Tokenizer,$=C(9).TOKEN,W=C(13).Directives,X=C(14).TemplatablePattern,G=C(12).Pattern,L={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:$.START,RAW:$.RAW,EOF:$.EOF},Q=new W(/<\!--/,/-->/),P=function(A,ce){T.call(this,A,ce),this._current_tag_name="";var Ee=new X(this._input).read_options(this._options),pe=new G(this._input);if(this.__patterns={word:Ee.until(/[\n\r\t <]/),word_control_flow_close_excluded:Ee.until(/[\n\r\t <}]/),single_quote:Ee.until_after(/'/),double_quote:Ee.until_after(/"/),attribute:Ee.until(/[\n\r\t =>]|\/>/),element_name:Ee.until(/[\n\r\t >\/]/),angular_control_flow_start:pe.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:pe.starting_with(/{{!--/).until_after(/--}}/),handlebars:pe.starting_with(/{{/).until_after(/}}/),handlebars_open:pe.until(/[\n\r\t }]/),handlebars_raw_close:pe.until(/}}/),comment:pe.starting_with(/<!--/).until_after(/-->/),cdata:pe.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:pe.starting_with(/<!\[/).until_after(/]>/),processing:pe.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 ze=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=pe.matching(ze).until_after(ze)}};P.prototype=new T,P.prototype._is_comment=function(A){return!1},P.prototype._is_opening=function(A){return A.type===L.TAG_OPEN||A.type===L.CONTROL_FLOW_OPEN},P.prototype._is_closing=function(A,ce){return A.type===L.TAG_CLOSE&&ce&&((A.text===">"||A.text==="/>")&&ce.text[0]==="<"||A.text==="}}"&&ce.text[0]==="{"&&ce.text[1]==="{")||A.type===L.CONTROL_FLOW_CLOSE&&A.text==="}"&&ce.text.endsWith("{")},P.prototype._reset=function(){this._current_tag_name=""},P.prototype._get_next_token=function(A,ce){var Ee=null;this._readWhitespace();var pe=this._input.peek();return pe===null?this._create_token(L.EOF,""):(Ee=Ee||this._read_open_handlebars(pe,ce),Ee=Ee||this._read_attribute(pe,A,ce),Ee=Ee||this._read_close(pe,ce),Ee=Ee||this._read_script_and_style(pe,A),Ee=Ee||this._read_control_flows(pe,ce),Ee=Ee||this._read_raw_content(pe,A,ce),Ee=Ee||this._read_content_word(pe,ce),Ee=Ee||this._read_comment_or_cdata(pe),Ee=Ee||this._read_processing(pe),Ee=Ee||this._read_open(pe,ce),Ee=Ee||this._create_token(L.UNKNOWN,this._input.next()),Ee)},P.prototype._read_comment_or_cdata=function(A){var ce=null,Ee=null,pe=null;if(A==="<"){var ze=this._input.peek(1);ze==="!"&&(Ee=this.__patterns.comment.read(),Ee?(pe=Q.get_directives(Ee),pe&&pe.ignore==="start"&&(Ee+=Q.readIgnored(this._input))):Ee=this.__patterns.cdata.read()),Ee&&(ce=this._create_token(L.COMMENT,Ee),ce.directives=pe)}return ce},P.prototype._read_processing=function(A){var ce=null,Ee=null,pe=null;if(A==="<"){var ze=this._input.peek(1);(ze==="!"||ze==="?")&&(Ee=this.__patterns.conditional_comment.read(),Ee=Ee||this.__patterns.processing.read()),Ee&&(ce=this._create_token(L.COMMENT,Ee),ce.directives=pe)}return ce},P.prototype._read_open=function(A,ce){var Ee=null,pe=null;return(!ce||ce.type===L.CONTROL_FLOW_OPEN)&&A==="<"&&(Ee=this._input.next(),this._input.peek()==="/"&&(Ee+=this._input.next()),Ee+=this.__patterns.element_name.read(),pe=this._create_token(L.TAG_OPEN,Ee)),pe},P.prototype._read_open_handlebars=function(A,ce){var Ee=null,pe=null;return(!ce||ce.type===L.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&A==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(Ee=this.__patterns.handlebars_comment.read(),Ee=Ee||this.__patterns.handlebars.read(),pe=this._create_token(L.COMMENT,Ee)):(Ee=this.__patterns.handlebars_open.read(),pe=this._create_token(L.TAG_OPEN,Ee))),pe},P.prototype._read_control_flows=function(A,ce){var Ee="",pe=null;if(!this._options.templating.includes("angular"))return pe;if(A==="@"){if(Ee=this.__patterns.angular_control_flow_start.read(),Ee==="")return pe;for(var ze=Ee.endsWith("(")?1:0,Je=0;!(Ee.endsWith("{")&&ze===Je);){var Pe=this._input.next();if(Pe===null)break;Pe==="("?ze++:Pe===")"&&Je++,Ee+=Pe}pe=this._create_token(L.CONTROL_FLOW_OPEN,Ee)}else A==="}"&&ce&&ce.type===L.CONTROL_FLOW_OPEN&&(Ee=this._input.next(),pe=this._create_token(L.CONTROL_FLOW_CLOSE,Ee));return pe},P.prototype._read_close=function(A,ce){var Ee=null,pe=null;return ce&&ce.type===L.TAG_OPEN&&(ce.text[0]==="<"&&(A===">"||A==="/"&&this._input.peek(1)===">")?(Ee=this._input.next(),A==="/"&&(Ee+=this._input.next()),pe=this._create_token(L.TAG_CLOSE,Ee)):ce.text[0]==="{"&&A==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),pe=this._create_token(L.TAG_CLOSE,"}}"))),pe},P.prototype._read_attribute=function(A,ce,Ee){var pe=null,ze="";if(Ee&&Ee.text[0]==="<")if(A==="=")pe=this._create_token(L.EQUALS,this._input.next());else if(A==='"'||A==="'"){var Je=this._input.next();A==='"'?Je+=this.__patterns.double_quote.read():Je+=this.__patterns.single_quote.read(),pe=this._create_token(L.VALUE,Je)}else ze=this.__patterns.attribute.read(),ze&&(ce.type===L.EQUALS?pe=this._create_token(L.VALUE,ze):pe=this._create_token(L.ATTRIBUTE,ze));return pe},P.prototype._is_content_unformatted=function(A){return this._options.void_elements.indexOf(A)===-1&&(this._options.content_unformatted.indexOf(A)!==-1||this._options.unformatted.indexOf(A)!==-1)},P.prototype._read_raw_content=function(A,ce,Ee){var pe="";if(Ee&&Ee.text[0]==="{")pe=this.__patterns.handlebars_raw_close.read();else if(ce.type===L.TAG_CLOSE&&ce.opened.text[0]==="<"&&ce.text[0]!=="/"){var ze=ce.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ze)&&(pe=this._input.readUntil(new RegExp("</"+ze+"[\\n\\r\\t ]*?>","ig")))}return pe?this._create_token(L.TEXT,pe):null},P.prototype._read_script_and_style=function(A,ce){if(ce.type===L.TAG_CLOSE&&ce.opened.text[0]==="<"&&ce.text[0]!=="/"){var Ee=ce.opened.text.substr(1).toLowerCase();if(Ee==="script"||Ee==="style"){var pe=this._read_comment_or_cdata(A);if(pe)return pe.type=L.TEXT,pe;var ze=this._input.readUntil(new RegExp("</"+Ee+"[\\n\\r\\t ]*?>","ig"));if(ze)return this._create_token(L.TEXT,ze)}}return null},P.prototype._read_content_word=function(A,ce){var Ee="";return this._options.unformatted_content_delimiter&&A===this._options.unformatted_content_delimiter[0]&&(Ee=this.__patterns.unformatted_content_delimiter.read()),Ee||(Ee=ce&&ce.type===L.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),Ee?this._create_token(L.TEXT,Ee):null},M.exports.Tokenizer=P,M.exports.TOKEN=L}],V={};function l(M){var b=V[M];if(b!==void 0)return b.exports;var C=V[M]={exports:{}};return H[M](C,C.exports,l),C.exports}var y=l(18);O=y})();var fe=O;if(1)i=[u,u(58553),u(87804)],U=function(H){var V=u(58553),l=u(87804);return{html_beautify:function(y,M){return fe(y,M,V.js_beautify,l.css_beautify)}}}.apply(Pt,i),U!==void 0&&(zn.exports=U);else var Z,g})()},58553:function(zn,Pt){var u,i;(function(){var U;(function(){"use strict";var fe=[function(V,l,y){var M=y(1).Beautifier,b=y(5).Options;function C(T,$){var W=new M(T,$);return W.beautify()}V.exports=C,V.exports.defaultOptions=function(){return new b}},function(V,l,y){var M=y(2).Output,b=y(3).Token,C=y(4),T=y(5).Options,$=y(7).Tokenizer,W=y(7).line_starters,X=y(7).positionable_operators,G=y(7).TOKEN;function L(I,de){return de.indexOf(I)!==-1}function Q(I){return I.replace(/^\s+/g,"")}function P(I){for(var de={},De=0;De<I.length;De++)de[I[De].replace(/-/g,"_")]=I[De];return de}function A(I,de){return I&&I.type===G.RESERVED&&I.text===de}function ce(I,de){return I&&I.type===G.RESERVED&&L(I.text,de)}var Ee=["case","return","do","if","throw","else","await","break","continue","async"],pe=["before-newline","after-newline","preserve-newline"],ze=P(pe),Je=[ze.before_newline,ze.preserve_newline],Pe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ze(I,de){de.multiline_frame||de.mode===Pe.ForInitializer||de.mode===Pe.Conditional||I.remove_indent(de.start_line_index)}function le(I){I=I.replace(C.allLineBreaks,`
`);for(var de=[],De=I.indexOf(`
`);De!==-1;)de.push(I.substring(0,De)),I=I.substring(De+1),De=I.indexOf(`
`);return I.length&&de.push(I),de}function N(I){return I===Pe.ArrayLiteral}function S(I){return L(I,[Pe.Expression,Pe.ForInitializer,Pe.Conditional])}function q(I,de){for(var De=0;De<I.length;De++){var dt=I[De].trim();if(dt.charAt(0)!==de)return!1}return!0}function te(I,de){for(var De=0,dt=I.length,It;De<dt;De++)if(It=I[De],It&&It.indexOf(de)!==0)return!1;return!0}function se(I,de){de=de||{},this._source_text=I||"",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 T(de)}se.prototype.create_flags=function(I,de){var De=0;I&&(De=I.indentation_level,!this._output.just_added_newline()&&I.line_indent_level>De&&(De=I.line_indent_level));var dt={mode:de,parent:I,last_token:I?I.last_token:new b(G.START_BLOCK,""),last_word:I?I.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:De,alignment:0,line_indent_level:I?I.line_indent_level:De,start_line_index:this._output.get_line_number(),ternary_depth:0};return dt},se.prototype._reset=function(I){var de=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new M(this._options,de),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Pe.BlockStatement);var De=new $(I,this._options);return this._tokens=De.tokenize(),I},se.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,de=this._reset(this._source_text),De=this._options.eol;this._options.eol==="auto"&&(De=`
`,de&&C.lineBreak.test(de||"")&&(De=de.match(C.lineBreak)[0]));for(var dt=this._tokens.next();dt;)this.handle_token(dt),this._last_last_text=this._flags.last_token.text,this._flags.last_token=dt,dt=this._tokens.next();return I=this._output.get_code(De),I},se.prototype.handle_token=function(I,de){I.type===G.START_EXPR?this.handle_start_expr(I):I.type===G.END_EXPR?this.handle_end_expr(I):I.type===G.START_BLOCK?this.handle_start_block(I):I.type===G.END_BLOCK?this.handle_end_block(I):I.type===G.WORD?this.handle_word(I):I.type===G.RESERVED?this.handle_word(I):I.type===G.SEMICOLON?this.handle_semicolon(I):I.type===G.STRING?this.handle_string(I):I.type===G.EQUALS?this.handle_equals(I):I.type===G.OPERATOR?this.handle_operator(I):I.type===G.COMMA?this.handle_comma(I):I.type===G.BLOCK_COMMENT?this.handle_block_comment(I,de):I.type===G.COMMENT?this.handle_comment(I,de):I.type===G.DOT?this.handle_dot(I):I.type===G.EOF?this.handle_eof(I):I.type===G.UNKNOWN?this.handle_unknown(I,de):this.handle_unknown(I,de)},se.prototype.handle_whitespace_and_comments=function(I,de){var De=I.newlines,dt=this._options.keep_array_indentation&&N(this._flags.mode);if(I.comments_before)for(var It=I.comments_before.next();It;)this.handle_whitespace_and_comments(It,de),this.handle_token(It,de),It=I.comments_before.next();if(dt)for(var Te=0;Te<De;Te+=1)this.print_newline(Te>0,de);else if(this._options.max_preserve_newlines&&De>this._options.max_preserve_newlines&&(De=this._options.max_preserve_newlines),this._options.preserve_newlines&&De>1){this.print_newline(!1,de);for(var rt=1;rt<De;rt+=1)this.print_newline(!0,de)}};var w=["async","break","continue","return","throw","yield"];se.prototype.allow_wrap_or_preserved_newline=function(I,de){if(de=de===void 0?!1:de,!this._output.just_added_newline()){var De=this._options.preserve_newlines&&I.newlines||de,dt=L(this._flags.last_token.text,X)||L(I.text,X);if(dt){var It=L(this._flags.last_token.text,X)&&L(this._options.operator_position,Je)||L(I.text,X);De=De&&It}if(De)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(ce(this._flags.last_token,w))return;this._output.set_wrap_point()}}},se.prototype.print_newline=function(I,de){if(!de&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==G.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var De=this._tokens.peek();this._flags.mode===Pe.Statement&&!(this._flags.if_block&&A(De,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(I)&&(this._flags.multiline_frame=!0)},se.prototype.print_token_line_indentation=function(I){this._output.just_added_newline()&&(this._options.keep_array_indentation&&I.newlines&&(I.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(I.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))},se.prototype.print_token=function(I){if(this._output.raw){this._output.add_raw_token(I);return}if(this._options.comma_first&&I.previous&&I.previous.type===G.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var de=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(de),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(I),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(I),this._output.non_breaking_space=!0,this._output.add_token(I.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},se.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},se.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))},se.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},se.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Pe.Statement&&Ze(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},se.prototype.start_of_object_property=function(){return this._flags.parent.mode===Pe.ObjectLiteral&&this._flags.mode===Pe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ce(this._flags.last_token,["get","set"]))},se.prototype.start_of_statement=function(I){var de=!1;return de=de||ce(this._flags.last_token,["var","let","const"])&&I.type===G.WORD,de=de||A(this._flags.last_token,"do"),de=de||!(this._flags.parent.mode===Pe.ObjectLiteral&&this._flags.mode===Pe.Statement)&&ce(this._flags.last_token,w)&&!I.newlines,de=de||A(this._flags.last_token,"else")&&!(A(I,"if")&&!I.comments_before),de=de||this._flags.last_token.type===G.END_EXPR&&(this._previous_flags.mode===Pe.ForInitializer||this._previous_flags.mode===Pe.Conditional),de=de||this._flags.last_token.type===G.WORD&&this._flags.mode===Pe.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==G.WORD&&I.type!==G.RESERVED,de=de||this._flags.mode===Pe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ce(this._flags.last_token,["get","set"])),de?(this.set_mode(Pe.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,ce(I,["do","for","if","while"])),!0):!1},se.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var de=Pe.Expression;if(I.text==="["){if(this._flags.last_token.type===G.WORD||this._flags.last_token.text===")"){ce(this._flags.last_token,W)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(de),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}de=Pe.ArrayLiteral,N(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()),L(this._flags.last_token.type,[G.START_EXPR,G.END_EXPR,G.WORD,G.OPERATOR,G.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===G.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,de=Pe.ForInitializer):L(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,de=Pe.Conditional):L(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(L(this._flags.last_token.text,W)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===G.EQUALS||this._flags.last_token.type===G.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I);else if(this._flags.last_token.type===G.WORD){this._output.space_before_token=!1;var De=this._tokens.peek(-3);if(this._options.space_after_named_function&&De){var dt=this._tokens.peek(-4);ce(De,["async","function"])||De.text==="*"&&ce(dt,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Pe.ObjectLiteral?(De.text==="{"||De.text===","||De.text==="*"&&(dt.text==="{"||dt.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(I);(this._flags.last_token.type===G.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(L(this._last_last_text,["function","yield"])||this._flags.mode===Pe.ObjectLiteral&&L(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===G.START_BLOCK?this.print_newline():(this._flags.last_token.type===G.END_EXPR||this._flags.last_token.type===G.START_EXPR||this._flags.last_token.type===G.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===G.COMMA)&&this.allow_wrap_or_preserved_newline(I,I.newlines),this.print_token(I),this.set_mode(de),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},se.prototype.handle_end_expr=function(I){for(;this._flags.mode===Pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===G.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(I),this.restore_mode(),Ze(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Pe.Conditional&&(this._previous_flags.mode=Pe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},se.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var de=this._tokens.peek(),De=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===G.END_EXPR?(this.set_mode(Pe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Pe.BlockStatement):De&&(L(De.text,[":",","])&&L(de.type,[G.STRING,G.WORD,G.RESERVED])||L(de.text,["get","set","..."])&&L(De.type,[G.WORD,G.RESERVED]))?L(this._last_last_text,["class","interface"])&&!L(De.text,[":",","])?this.set_mode(Pe.BlockStatement):this.set_mode(Pe.ObjectLiteral):this._flags.last_token.type===G.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Pe.BlockStatement):L(this._flags.last_token.type,[G.EQUALS,G.START_EXPR,G.COMMA,G.OPERATOR])||ce(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Pe.ObjectLiteral):this.set_mode(Pe.BlockStatement),this._flags.last_token&&ce(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var dt=!de.comments_before&&de.text==="}",It=dt&&this._flags.last_word==="function"&&this._flags.last_token.type===G.END_EXPR;if(this._options.brace_preserve_inline){var Te=0,rt=null;this._flags.inline_frame=!0;do if(Te+=1,rt=this._tokens.peek(Te-1),rt.newlines){this._flags.inline_frame=!1;break}while(rt.type!==G.EOF&&!(rt.type===G.END_BLOCK&&rt.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==G.OPERATOR&&(It||this._flags.last_token.type===G.EQUALS||ce(this._flags.last_token,Ee)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===G.START_EXPR||this._flags.last_token.type===G.COMMA)&&((this._flags.last_token.type===G.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===G.COMMA||this._flags.last_token.type===G.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==G.OPERATOR&&this._flags.last_token.type!==G.START_EXPR&&(L(this._flags.last_token.type,[G.START_BLOCK,G.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(I),this.indent(),!dt&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},se.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===Pe.Statement;)this.restore_mode();var de=this._flags.last_token.type===G.START_BLOCK;this._flags.inline_frame&&!de?this._output.space_before_token=!0:this._options.brace_style==="expand"?de||this.print_newline():de||(N(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(I)},se.prototype.handle_word=function(I){if(I.type===G.RESERVED){if(L(I.text,["set","get"])&&this._flags.mode!==Pe.ObjectLiteral)I.type=G.WORD;else if(I.text==="import"&&L(this._tokens.peek().text,["(","."]))I.type=G.WORD;else if(L(I.text,["as","from"])&&!this._flags.import_block)I.type=G.WORD;else if(this._flags.mode===Pe.ObjectLiteral){var de=this._tokens.peek();de.text===":"&&(I.type=G.WORD)}}if(this.start_of_statement(I)?ce(this._flags.last_token,["var","let","const"])&&I.type===G.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!S(this._flags.mode)&&(this._flags.last_token.type!==G.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==G.EQUALS&&(this._options.preserve_newlines||!ce(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(A(I,"while")){this._output.space_before_token=!0,this.print_token(I),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&&A(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Pe.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ce(I,["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(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===G.COMMA||this._flags.last_token.type===G.START_EXPR||this._flags.last_token.type===G.EQUALS||this._flags.last_token.type===G.OPERATOR)&&!this.start_of_object_property()&&!(L(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Pe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(I),A(I,"function")){(L(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(L(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===G.OPERATOR))&&!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===G.RESERVED||this._flags.last_token.type===G.WORD?ce(this._flags.last_token,["get","set","new","export"])||ce(this._flags.last_token,w)?this._output.space_before_token=!0:A(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===G.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(S(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var De="NONE";if(this._flags.last_token.type===G.END_BLOCK?this._previous_flags.inline_frame?De="SPACE":ce(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?De="NEWLINE":(De="SPACE",this._output.space_before_token=!0):De="NEWLINE":this._flags.last_token.type===G.SEMICOLON&&this._flags.mode===Pe.BlockStatement?De="NEWLINE":this._flags.last_token.type===G.SEMICOLON&&S(this._flags.mode)?De="SPACE":this._flags.last_token.type===G.STRING?De="NEWLINE":this._flags.last_token.type===G.RESERVED||this._flags.last_token.type===G.WORD||this._flags.last_token.text==="*"&&(L(this._last_last_text,["function","yield"])||this._flags.mode===Pe.ObjectLiteral&&L(this._last_last_text,["{",","]))?De="SPACE":this._flags.last_token.type===G.START_BLOCK?this._flags.inline_frame?De="SPACE":De="NEWLINE":this._flags.last_token.type===G.END_EXPR&&(this._output.space_before_token=!0,De="NEWLINE"),ce(I,W)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?De="SPACE":De="NEWLINE"),ce(I,["else","catch","finally"]))if((!(this._flags.last_token.type===G.END_BLOCK&&this._previous_flags.mode===Pe.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var dt=this._output.current_line;dt.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else De==="NEWLINE"?ce(this._flags.last_token,Ee)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ce(I,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==G.END_EXPR?(this._flags.last_token.type!==G.START_EXPR||!ce(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(A(I,"if")&&A(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ce(I,W)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():De==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===G.WORD||I.previous.type===G.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===G.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&A(I,"from")&&(this._flags.import_block=!1))},se.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var de=this._tokens.peek();this._flags.mode===Pe.Statement&&!(this._flags.if_block&&A(de,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},se.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===G.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),this._flags.last_token.type===G.RESERVED||this._flags.last_token.type===G.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===G.COMMA||this._flags.last_token.type===G.START_EXPR||this._flags.last_token.type===G.EQUALS||this._flags.last_token.type===G.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I):I.text.startsWith("`")&&this._flags.last_token.type===G.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},se.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},se.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(I)):this._flags.mode===Pe.ObjectLiteral||this._flags.mode===Pe.Statement&&this._flags.parent.mode===Pe.ObjectLiteral?(this._flags.mode===Pe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},se.prototype.handle_operator=function(I){var de=I.text==="*"&&(ce(this._flags.last_token,["function","yield"])||L(this._flags.last_token.type,[G.START_BLOCK,G.COMMA,G.END_BLOCK,G.SEMICOLON])),De=L(I.text,["-","+"])&&(L(this._flags.last_token.type,[G.START_BLOCK,G.START_EXPR,G.EQUALS,G.OPERATOR])||L(this._flags.last_token.text,W)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var dt=!de;this.handle_whitespace_and_comments(I,dt)}if(I.text==="*"&&this._flags.last_token.type===G.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(L(I.text,["-","+"])&&this.start_of_object_property()){this.print_token(I);return}if(this._flags.last_token.type===G.OPERATOR&&L(this._options.operator_position,Je)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==G.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 It=!0,Te=!0,rt=!1;if(I.text===":"?this._flags.ternary_depth===0?It=!1:(this._flags.ternary_depth-=1,rt=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!De&&!de&&this._options.preserve_newlines&&L(I.text,X)){var ht=I.text===":",St=ht&&rt,Me=ht&&!rt;switch(this._options.operator_position){case ze.before_newline:this._output.space_before_token=!Me,this.print_token(I),(!ht||St)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case ze.after_newline:this._output.space_before_token=!0,!ht||St?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case ze.preserve_newline:Me||this.allow_wrap_or_preserved_newline(I),It=!(this._output.just_added_newline()||Me),this._output.space_before_token=It,this.print_token(I),this._output.space_before_token=!0;return}}if(de){this.allow_wrap_or_preserved_newline(I),It=!1;var Xt=this._tokens.peek();Te=Xt&&L(Xt.type,[G.WORD,G.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),It=this._flags.last_token.type===G.START_BLOCK,Te=!1;else if(L(I.text,["--","++","!","~"])||De){if((this._flags.last_token.type===G.COMMA||this._flags.last_token.type===G.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),It=!1,Te=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var tt=ce(this._flags.last_token,Ee)&&I.newlines;tt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(tt,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(It=!0),this._flags.last_token.type===G.RESERVED?It=!0:this._flags.last_token.type===G.END_EXPR?It=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===G.OPERATOR&&(It=L(I.text,["--","-","++","+"])&&L(this._flags.last_token.text,["--","-","++","+"]),L(I.text,["+","-"])&&L(this._flags.last_token.text,["--","++"])&&(Te=!0)),(this._flags.mode===Pe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Pe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||It,this.print_token(I),this._output.space_before_token=Te},se.prototype.handle_block_comment=function(I,de){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,de),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!C.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,de)},se.prototype.print_block_commment=function(I,de){var De=le(I.text),dt,It=!1,Te=!1,rt=I.whitespace_before,ht=rt.length;if(this.print_newline(!1,de),this.print_token_line_indentation(I),this._output.add_token(De[0]),this.print_newline(!1,de),De.length>1){for(De=De.slice(1),It=q(De,"*"),Te=te(De,rt),It&&(this._flags.alignment=1),dt=0;dt<De.length;dt++)It?(this.print_token_line_indentation(I),this._output.add_token(Q(De[dt]))):Te&&De[dt]?(this.print_token_line_indentation(I),this._output.add_token(De[dt].substring(ht))):(this._output.current_line.set_indent(-1),this._output.add_token(De[dt])),this.print_newline(!1,de);this._flags.alignment=0}},se.prototype.handle_comment=function(I,de){I.newlines?this.print_newline(!1,de):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(I),this.print_newline(!1,de)},se.prototype.handle_dot=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),ce(this._flags.last_token,Ee)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(I,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(I)},se.prototype.handle_unknown=function(I,de){this.print_token(I),I.text[I.text.length-1]===`
`&&this.print_newline(!1,de)},se.prototype.handle_eof=function(I){for(;this._flags.mode===Pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I)},V.exports.Beautifier=se},function(V){function l(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=[]}l.prototype.clone_empty=function(){var b=new l(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},l.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},l.prototype.has_match=function(b){for(var C=this.__items.length-1;C>=0;C--)if(this.__items[C].match(b))return!0;return!1},l.prototype.set_indent=function(b,C){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=C||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(b){this.__items.push(b);var C=b.lastIndexOf(`
`);C!==-1?this.__character_count=b.length-C:this.__character_count+=b.length},l.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.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 y(b,C){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)),C=C||"",b.indent_level>0&&(C=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=C,this.__base_string_length=C.length}y.prototype.get_indent_size=function(b,C){var T=this.__base_string_length;return C=C||0,b<0&&(T=0),T+=b*this.__indent_size,T+=C,T},y.prototype.get_indent_string=function(b,C){var T=this.__base_string;return C=C||0,b<0&&(b=0,T=""),C+=b*this.__indent_size,this.__ensure_cache(C),T+=this.__cache[C],T},y.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var b=this.__cache.length,C=0,T="";this.__indent_size&&b>=this.__indent_size&&(C=Math.floor(b/this.__indent_size),b-=C*this.__indent_size,T=new Array(C+1).join(this.__indent_string)),b&&(T+=new Array(b+1).join(" ")),this.__cache.push(T)};function M(b,C){this.__indent_cache=new y(b,C),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 l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(b,C){return this.__indent_cache.get_indent_string(b,C)},M.prototype.get_indent_size=function(b,C){return this.__indent_cache.get_indent_size(b,C)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(b){this.trim(!0);var C=this.current_line.pop();C&&(C[C.length-1]===`
`&&(C=C.replace(/\n+$/g,"")),this.current_line.push(C)),this._end_with_newline&&this.__add_outputline();var T=this.__lines.join(`
`);return b!==`
`&&(T=T.replace(/[\n]/g,b)),T},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(b,C){return b=b||0,C=C||0,this.next_line.set_indent(b,C),this.__lines.length>1?(this.current_line.set_indent(b,C),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(b){for(var C=0;C<b.newlines;C++)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},M.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()},M.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(" "))},M.prototype.remove_indent=function(b){for(var C=this.__lines.length;b<C;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},M.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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(b,C){for(var T=this.__lines.length-2;T>=0;){var $=this.__lines[T];if($.is_empty())break;if($.item(0).indexOf(b)!==0&&$.item(-1)!==C){this.__lines.splice(T+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}T--}},V.exports.Output=M},function(V){function l(y,M,b,C){this.type=y,this.text=M,this.comments_before=null,this.newlines=b||0,this.whitespace_before=C||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}V.exports.Token=l},function(V,l){var y="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",M="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",b="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",C="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",T="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",$="(?:"+T+"|["+y+b+"])",W="(?:"+T+"|["+M+b+C+"])*";l.identifier=new RegExp($+W,"g"),l.identifierStart=new RegExp($),l.identifierMatch=new RegExp("(?:"+T+"|["+M+b+C+"])+");var X=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;l.newline=/[\n\r\u2028\u2029]/,l.lineBreak=new RegExp(`\r
|`+l.newline.source),l.allLineBreaks=new RegExp(l.lineBreak.source,"g")},function(V,l,y){var M=y(6).Options,b=["before-newline","after-newline","preserve-newline"];function C(T){M.call(this,T,"js");var $=this.raw_options.brace_style||null;$==="expand-strict"?this.raw_options.brace_style="expand":$==="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 W=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var X=0;X<W.length;X++)W[X]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=W[X];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",b),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}C.prototype=new M,V.exports.Options=C},function(V){function l(b,C){this.raw_options=y(b,C),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(b,C){var T=this.raw_options[b],$=C||[];return typeof T=="object"?T!==null&&typeof T.concat=="function"&&($=T.concat()):typeof T=="string"&&($=T.split(/[^a-zA-Z0-9_\/\-]+/)),$},l.prototype._get_boolean=function(b,C){var T=this.raw_options[b],$=T===void 0?!!C:!!T;return $},l.prototype._get_characters=function(b,C){var T=this.raw_options[b],$=C||"";return typeof T=="string"&&($=T.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),$},l.prototype._get_number=function(b,C){var T=this.raw_options[b];C=parseInt(C,10),isNaN(C)&&(C=0);var $=parseInt(T,10);return isNaN($)&&($=C),$},l.prototype._get_selection=function(b,C,T){var $=this._get_selection_list(b,C,T);if($.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+C+`
You passed in: '`+this.raw_options[b]+"'");return $[0]},l.prototype._get_selection_list=function(b,C,T){if(!C||C.length===0)throw new Error("Selection list cannot be empty.");if(T=T||[C[0]],!this._is_valid_selection(T,C))throw new Error("Invalid Default Value!");var $=this._get_array(b,T);if(!this._is_valid_selection($,C))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+C+`
You passed in: '`+this.raw_options[b]+"'");return $},l.prototype._is_valid_selection=function(b,C){return b.length&&C.length&&!b.some(function(T){return C.indexOf(T)===-1})};function y(b,C){var T={};b=M(b);var $;for($ in b)$!==C&&(T[$]=b[$]);if(C&&b[C])for($ in b[C])T[$]=b[C][$];return T}function M(b){var C={},T;for(T in b){var $=T.replace(/-/g,"_");C[$]=b[T]}return C}V.exports.Options=l,V.exports.normalizeOpts=M,V.exports.mergeOpts=y},function(V,l,y){var M=y(8).InputScanner,b=y(9).Tokenizer,C=y(9).TOKEN,T=y(13).Directives,$=y(4),W=y(12).Pattern,X=y(14).TemplatablePattern;function G(q,te){return te.indexOf(q)!==-1}var L={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:C.START,RAW:C.RAW,EOF:C.EOF},Q=new T(/\/\*/,/\*\//),P=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,A=/[0-9]/,ce=/[^\d\.]/,Ee=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),pe=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";pe=pe.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),pe="\\?\\.(?!\\d) "+pe,pe=pe.replace(/ /g,"|");var ze=new RegExp(pe),Je="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Pe=Je.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Ze=new RegExp("^(?:"+Pe.join("|")+")$"),le,N=function(q,te){b.call(this,q,te),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var se=new W(this._input),w=new X(this._input).read_options(this._options);this.__patterns={template:w,identifier:w.starting_with($.identifier).matching($.identifierMatch),number:se.matching(P),punct:se.matching(ze),comment:se.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:se.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:se.matching(/<!--/),html_comment_end:se.matching(/-->/),include:se.starting_with(/#include/).until_after($.lineBreak),shebang:se.starting_with(/#!/).until_after($.lineBreak),xml:se.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:w.until(/['\\\n\r\u2028\u2029]/),double_quote:w.until(/["\\\n\r\u2028\u2029]/),template_text:w.until(/[`\\$]/),template_expression:w.until(/[`}\\]/)}};N.prototype=new b,N.prototype._is_comment=function(q){return q.type===L.COMMENT||q.type===L.BLOCK_COMMENT||q.type===L.UNKNOWN},N.prototype._is_opening=function(q){return q.type===L.START_BLOCK||q.type===L.START_EXPR},N.prototype._is_closing=function(q,te){return(q.type===L.END_BLOCK||q.type===L.END_EXPR)&&te&&(q.text==="]"&&te.text==="["||q.text===")"&&te.text==="("||q.text==="}"&&te.text==="{")},N.prototype._reset=function(){le=!1},N.prototype._get_next_token=function(q,te){var se=null;this._readWhitespace();var w=this._input.peek();return w===null?this._create_token(L.EOF,""):(se=se||this._read_non_javascript(w),se=se||this._read_string(w),se=se||this._read_pair(w,this._input.peek(1)),se=se||this._read_word(q),se=se||this._read_singles(w),se=se||this._read_comment(w),se=se||this._read_regexp(w,q),se=se||this._read_xml(w,q),se=se||this._read_punctuation(),se=se||this._create_token(L.UNKNOWN,this._input.next()),se)},N.prototype._read_word=function(q){var te;if(te=this.__patterns.identifier.read(),te!=="")return te=te.replace($.allLineBreaks,`
`),!(q.type===L.DOT||q.type===L.RESERVED&&(q.text==="set"||q.text==="get"))&&Ze.test(te)?(te==="in"||te==="of")&&(q.type===L.WORD||q.type===L.STRING)?this._create_token(L.OPERATOR,te):this._create_token(L.RESERVED,te):this._create_token(L.WORD,te);if(te=this.__patterns.number.read(),te!=="")return this._create_token(L.WORD,te)},N.prototype._read_singles=function(q){var te=null;return q==="("||q==="["?te=this._create_token(L.START_EXPR,q):q===")"||q==="]"?te=this._create_token(L.END_EXPR,q):q==="{"?te=this._create_token(L.START_BLOCK,q):q==="}"?te=this._create_token(L.END_BLOCK,q):q===";"?te=this._create_token(L.SEMICOLON,q):q==="."&&ce.test(this._input.peek(1))?te=this._create_token(L.DOT,q):q===","&&(te=this._create_token(L.COMMA,q)),te&&this._input.next(),te},N.prototype._read_pair=function(q,te){var se=null;return q==="#"&&te==="{"&&(se=this._create_token(L.START_BLOCK,q+te)),se&&(this._input.next(),this._input.next()),se},N.prototype._read_punctuation=function(){var q=this.__patterns.punct.read();if(q!=="")return q==="="?this._create_token(L.EQUALS,q):q==="?."?this._create_token(L.DOT,q):this._create_token(L.OPERATOR,q)},N.prototype._read_non_javascript=function(q){var te="";if(q==="#"){if(this._is_first_token()&&(te=this.__patterns.shebang.read(),te))return this._create_token(L.UNKNOWN,te.trim()+`
`);if(te=this.__patterns.include.read(),te)return this._create_token(L.UNKNOWN,te.trim()+`
`);q=this._input.next();var se="#";if(this._input.hasNext()&&this._input.testChar(A)){do q=this._input.next(),se+=q;while(this._input.hasNext()&&q!=="#"&&q!=="=");return q==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(se+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(se+="{}",this._input.next(),this._input.next())),this._create_token(L.WORD,se)}this._input.back()}else if(q==="<"&&this._is_first_token()){if(te=this.__patterns.html_comment_start.read(),te){for(;this._input.hasNext()&&!this._input.testChar($.newline);)te+=this._input.next();return le=!0,this._create_token(L.COMMENT,te)}}else if(le&&q==="-"&&(te=this.__patterns.html_comment_end.read(),te))return le=!1,this._create_token(L.COMMENT,te);return null},N.prototype._read_comment=function(q){var te=null;if(q==="/"){var se="";if(this._input.peek(1)==="*"){se=this.__patterns.block_comment.read();var w=Q.get_directives(se);w&&w.ignore==="start"&&(se+=Q.readIgnored(this._input)),se=se.replace($.allLineBreaks,`
`),te=this._create_token(L.BLOCK_COMMENT,se),te.directives=w}else this._input.peek(1)==="/"&&(se=this.__patterns.comment.read(),te=this._create_token(L.COMMENT,se))}return te},N.prototype._read_string=function(q){if(q==="`"||q==="'"||q==='"'){var te=this._input.next();return this.has_char_escapes=!1,q==="`"?te+=this._read_string_recursive("`",!0,"${"):te+=this._read_string_recursive(q),this.has_char_escapes&&this._options.unescape_strings&&(te=S(te)),this._input.peek()===q&&(te+=this._input.next()),te=te.replace($.allLineBreaks,`
`),this._create_token(L.STRING,te)}return null},N.prototype._allow_regexp_or_xml=function(q){return q.type===L.RESERVED&&G(q.text,["return","case","throw","else","do","typeof","yield"])||q.type===L.END_EXPR&&q.text===")"&&q.opened.previous.type===L.RESERVED&&G(q.opened.previous.text,["if","while","for"])||G(q.type,[L.COMMENT,L.START_EXPR,L.START_BLOCK,L.START,L.END_BLOCK,L.OPERATOR,L.EQUALS,L.EOF,L.SEMICOLON,L.COMMA])},N.prototype._read_regexp=function(q,te){if(q==="/"&&this._allow_regexp_or_xml(te)){for(var se=this._input.next(),w=!1,I=!1;this._input.hasNext()&&(w||I||this._input.peek()!==q)&&!this._input.testChar($.newline);)se+=this._input.peek(),w?w=!1:(w=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===q&&(se+=this._input.next(),se+=this._input.read($.identifier)),this._create_token(L.STRING,se)}return null},N.prototype._read_xml=function(q,te){if(this._options.e4x&&q==="<"&&this._allow_regexp_or_xml(te)){var se="",w=this.__patterns.xml.read_match();if(w){for(var I=w[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),de=I.indexOf("{")===0,De=0;w;){var dt=!!w[1],It=w[2],Te=!!w[w.length-1]||It.slice(0,8)==="![CDATA[";if(!Te&&(It===I||de&&It.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(dt?--De:++De),se+=w[0],De<=0)break;w=this.__patterns.xml.read_match()}return w||(se+=this._input.match(/[\s\S]*/g)[0]),se=se.replace($.allLineBreaks,`
`),this._create_token(L.STRING,se)}}return null};function S(q){for(var te="",se=0,w=new M(q),I=null;w.hasNext();)if(I=w.match(/([\s]|[^\\]|\\\\)+/g),I&&(te+=I[0]),w.peek()==="\\"){if(w.next(),w.peek()==="x")I=w.match(/x([0-9A-Fa-f]{2})/g);else if(w.peek()==="u")I=w.match(/u([0-9A-Fa-f]{4})/g),I||(I=w.match(/u\{([0-9A-Fa-f]+)\}/g));else{te+="\\",w.hasNext()&&(te+=w.next());continue}if(!I||(se=parseInt(I[1],16),se>126&&se<=255&&I[0].indexOf("x")===0))return q;se>=0&&se<32||se>1114111?te+="\\"+I[0]:se===34||se===39||se===92?te+="\\"+String.fromCharCode(se):te+=String.fromCharCode(se)}return te}N.prototype._read_string_recursive=function(q,te,se){var w,I;q==="'"?I=this.__patterns.single_quote:q==='"'?I=this.__patterns.double_quote:q==="`"?I=this.__patterns.template_text:q==="}"&&(I=this.__patterns.template_expression);for(var de=I.read(),De="";this._input.hasNext();){if(De=this._input.next(),De===q||!te&&$.newline.test(De)){this._input.back();break}else De==="\\"&&this._input.hasNext()?(w=this._input.peek(),w==="x"||w==="u"?this.has_char_escapes=!0:w==="\r"&&this._input.peek(1)===`
`&&this._input.next(),De+=this._input.next()):se&&(se==="${"&&De==="$"&&this._input.peek()==="{"&&(De+=this._input.next()),se===De&&(q==="`"?De+=this._read_string_recursive("}",te,"`"):De+=this._read_string_recursive("`",te,"${"),this._input.hasNext()&&(De+=this._input.next())));De+=I.read(),de+=De}return de},V.exports.Tokenizer=N,V.exports.TOKEN=L,V.exports.positionable_operators=Ee.slice(),V.exports.line_starters=Je.slice()},function(V){var l=RegExp.prototype.hasOwnProperty("sticky");function y(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},y.prototype.peek=function(M){var b=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(b=this.__input.charAt(M)),b},y.prototype.__match=function(M,b){M.lastIndex=b;var C=M.exec(this.__input);return C&&!(l&&M.sticky)&&C.index!==b&&(C=null),C},y.prototype.test=function(M,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(M,b):!1},y.prototype.testChar=function(M,b){var C=this.peek(b);return M.lastIndex=0,C!==null&&M.test(C)},y.prototype.match=function(M){var b=this.__match(M,this.__position);return b?this.__position+=b[0].length:b=null,b},y.prototype.read=function(M,b,C){var T="",$;return M&&($=this.match(M),$&&(T+=$[0])),b&&($||!M)&&(T+=this.readUntil(b,C)),T},y.prototype.readUntil=function(M,b){var C="",T=this.__position;M.lastIndex=this.__position;var $=M.exec(this.__input);return $?(T=$.index,b&&(T+=$[0].length)):T=this.__input_length,C=this.__input.substring(this.__position,T),this.__position=T,C},y.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},y.prototype.get_regexp=function(M,b){var C=null,T="g";return b&&l&&(T="y"),typeof M=="string"&&M!==""?C=new RegExp(M,T):M&&(C=new RegExp(M.source,T)),C},y.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(M){var b=this.__position,C=this.readUntilAfter(M);return this.__position=b,C},y.prototype.lookBack=function(M){var b=this.__position-1;return b>=M.length&&this.__input.substring(b-M.length,b).toLowerCase()===M},V.exports.InputScanner=y},function(V,l,y){var M=y(8).InputScanner,b=y(3).Token,C=y(10).TokenStream,T=y(11).WhitespacePattern,$={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},W=function(X,G){this._input=new M(X),this._options=G||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new T(this._input)};W.prototype.tokenize=function(){this._input.restart(),this.__tokens=new C,this._reset();for(var X,G=new b($.START,""),L=null,Q=[],P=new C;G.type!==$.EOF;){for(X=this._get_next_token(G,L);this._is_comment(X);)P.add(X),X=this._get_next_token(G,L);P.isEmpty()||(X.comments_before=P,P=new C),X.parent=L,this._is_opening(X)?(Q.push(L),L=X):L&&this._is_closing(X,L)&&(X.opened=L,L.closed=X,L=Q.pop(),X.parent=L),X.previous=G,G.next=X,this.__tokens.add(X),G=X}return this.__tokens},W.prototype._is_first_token=function(){return this.__tokens.isEmpty()},W.prototype._reset=function(){},W.prototype._get_next_token=function(X,G){this._readWhitespace();var L=this._input.read(/.+/g);return L?this._create_token($.RAW,L):this._create_token($.EOF,"")},W.prototype._is_comment=function(X){return!1},W.prototype._is_opening=function(X){return!1},W.prototype._is_closing=function(X,G){return!1},W.prototype._create_token=function(X,G){var L=new b(X,G,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return L},W.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},V.exports.Tokenizer=W,V.exports.TOKEN=$},function(V){function l(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},l.prototype.peek=function(y){var M=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(M=this.__tokens[y]),M},l.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},V.exports.TokenStream=l},function(V,l,y){var M=y(12).Pattern;function b(C,T){M.call(this,C,T),T?this._line_regexp=this._input.get_regexp(T._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new M,b.prototype.__set_whitespace_patterns=function(C,T){C+="\\t ",T+="\\n\\r",this._match_pattern=this._input.get_regexp("["+C+T+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+T+"]")},b.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var C=this._input.read(this._match_pattern);if(C===" ")this.whitespace_before_token=" ";else if(C){var T=this.__split(this._newline_regexp,C);this.newline_count=T.length-1,this.whitespace_before_token=T[this.newline_count]}return C},b.prototype.matching=function(C,T){var $=this._create();return $.__set_whitespace_patterns(C,T),$._update(),$},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(C,T){C.lastIndex=0;for(var $=0,W=[],X=C.exec(T);X;)W.push(T.substring($,X.index)),$=X.index+X[0].length,X=C.exec(T);return $<T.length?W.push(T.substring($,T.length)):W.push(""),W},V.exports.WhitespacePattern=b},function(V){function l(y,M){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,M&&(this._starting_pattern=this._input.get_regexp(M._starting_pattern,!0),this._match_pattern=this._input.get_regexp(M._match_pattern,!0),this._until_pattern=this._input.get_regexp(M._until_pattern),this._until_after=M._until_after)}l.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(y){var M=this._create();return M._until_after=!0,M._until_pattern=this._input.get_regexp(y),M._update(),M},l.prototype.until=function(y){var M=this._create();return M._until_after=!1,M._until_pattern=this._input.get_regexp(y),M._update(),M},l.prototype.starting_with=function(y){var M=this._create();return M._starting_pattern=this._input.get_regexp(y,!0),M._update(),M},l.prototype.matching=function(y){var M=this._create();return M._match_pattern=this._input.get_regexp(y,!0),M._update(),M},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},V.exports.Pattern=l},function(V){function l(y,M){y=typeof y=="string"?y:y.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+M,"g")}l.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(y);b;)M[b[1]]=b[2],b=this.__directive_pattern.exec(y);return M},l.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},V.exports.Directives=l},function(V,l,y){var M=y(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function C(T,$){M.call(this,T,$),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),$&&(this.__template_pattern=this._input.get_regexp($.__template_pattern),this._excluded=Object.assign(this._excluded,$._excluded),this._disabled=Object.assign(this._disabled,$._disabled));var W=new M(T);this.__patterns={handlebars_comment:W.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:W.starting_with(/{{{/).until_after(/}}}/),handlebars:W.starting_with(/{{/).until_after(/}}/),php:W.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:W.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:W.starting_with(/{%/).until_after(/%}/),django_value:W.starting_with(/{{/).until_after(/}}/),django_comment:W.starting_with(/{#/).until_after(/#}/),smarty:W.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:W.starting_with(/{\*/).until_after(/\*}/),smarty_literal:W.starting_with(/{literal}/).until_after(/{\/literal}/)}}C.prototype=new M,C.prototype._create=function(){return new C(this._input,this)},C.prototype._update=function(){this.__set_templated_pattern()},C.prototype.disable=function(T){var $=this._create();return $._disabled[T]=!0,$._update(),$},C.prototype.read_options=function(T){var $=this._create();for(var W in b)$._disabled[W]=T.templating.indexOf(W)===-1;return $._update(),$},C.prototype.exclude=function(T){var $=this._create();return $._excluded[T]=!0,$._update(),$},C.prototype.read=function(){var T="";this._match_pattern?T=this._input.read(this._starting_pattern):T=this._input.read(this._starting_pattern,this.__template_pattern);for(var $=this._read_template();$;)this._match_pattern?$+=this._input.read(this._match_pattern):$+=this._input.readUntil(this.__template_pattern),T+=$,$=this._read_template();return this._until_after&&(T+=this._input.readUntilAfter(this._until_pattern)),T},C.prototype.__set_templated_pattern=function(){var T=[];this._disabled.php||T.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||T.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||T.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||T.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(T.push(this.__patterns.django._starting_pattern.source),T.push(this.__patterns.django_value._starting_pattern.source),T.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||T.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&T.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+T.join("|")+")")},C.prototype._read_template=function(){var T="",$=this._input.peek();if($==="<"){var W=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&W==="?"&&(T=T||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&W==="%"&&(T=T||this.__patterns.erb.read())}else $==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(T=T||this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars_unescaped.read(),T=T||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(T=T||this.__patterns.django_value.read()),this._excluded.django||(T=T||this.__patterns.django_comment.read(),T=T||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(T=T||this.__patterns.smarty_comment.read(),T=T||this.__patterns.smarty_literal.read(),T=T||this.__patterns.smarty.read()));return T},V.exports.TemplatablePattern=C}],Z={};function g(V){var l=Z[V];if(l!==void 0)return l.exports;var y=Z[V]={exports:{}};return fe[V](y,y.exports,g),y.exports}var H=g(0);U=H})();var O=U;u=[],i=function(){return{js_beautify:O}}.apply(Pt,u),i!==void 0&&(zn.exports=i)})()},7861:function(zn,Pt,u){var i=u(38710),U=function(Z){var g=/[height|width]$/;return g.test(Z)},O=function(Z){var g="",H=Object.keys(Z);return H.forEach(function(V,l){var y=Z[V];V=i(V),U(V)&&typeof y=="number"&&(y=y+"px"),y===!0?g+=V:y===!1?g+="not "+V:g+="("+V+": "+y+")",l<H.length-1&&(g+=" and ")}),g},fe=function(Z){var g="";return typeof Z=="string"?Z:Z instanceof Array?(Z.forEach(function(H,V){g+=O(H),V<Z.length-1&&(g+=", ")}),g):O(Z)};zn.exports=fe},15342:function(zn){(function(u,i){zn.exports=i()})(typeof self!="undefined"?self:this,function(){return function(Pt){var u={};function i(U){if(u[U])return u[U].exports;var O=u[U]={i:U,l:!1,exports:{}};return Pt[U].call(O.exports,O,O.exports,i),O.l=!0,O.exports}return i.m=Pt,i.c=u,i.d=function(U,O,fe){i.o(U,O)||Object.defineProperty(U,O,{enumerable:!0,get:fe})},i.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},i.t=function(U,O){if(O&1&&(U=i(U)),O&8||O&4&&typeof U=="object"&&U&&U.__esModule)return U;var fe=Object.create(null);if(i.r(fe),Object.defineProperty(fe,"default",{enumerable:!0,value:U}),O&2&&typeof U!="string")for(var Z in U)i.d(fe,Z,function(g){return U[g]}.bind(null,Z));return fe},i.n=function(U){var O=U&&U.__esModule?function(){return U.default}:function(){return U};return i.d(O,"a",O),O},i.o=function(U,O){return Object.prototype.hasOwnProperty.call(U,O)},i.p="",i(i.s=1)}([function(Pt,u,i){},function(Pt,u,i){"use strict";i.r(u);var U=i(0),O=function(){function j(c,f,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=c,this.start=f,this.end=h}return j.range=function(f,h){return h?!f||!f.loc||!h.loc||f.loc.lexer!==h.loc.lexer?null:new j(f.loc.lexer,f.loc.start,h.loc.end):f&&f.loc},j}(),fe=function(){function j(f,h){this.text=void 0,this.loc=void 0,this.text=f,this.loc=h}var c=j.prototype;return c.range=function(h,x){return new j(x,O.range(this,h))},j}(),Z=function j(c,f){this.position=void 0;var h="KaTeX parse error: "+c,x,k=f&&f.loc;if(k&&k.start<=k.end){var J=k.lexer.input;x=k.start;var Oe=k.end;x===J.length?h+=" at end of input: ":h+=" at position "+(x+1)+": ";var qe=J.slice(x,Oe).replace(/[^]/g,"$&\u0332"),Et;x>15?Et="\u2026"+J.slice(x-15,x):Et=J.slice(0,x);var Qt;Oe+15<J.length?Qt=J.slice(Oe,Oe+15)+"\u2026":Qt=J.slice(Oe),h+=Et+qe+Qt}var dn=new Error(h);return dn.name="ParseError",dn.__proto__=j.prototype,dn.position=x,dn};Z.prototype.__proto__=Error.prototype;var g=Z,H=function(c,f){return c.indexOf(f)!==-1},V=function(c,f){return c===void 0?f:c},l=/([A-Z])/g,y=function(c){return c.replace(l,"-$1").toLowerCase()},M={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},b=/[&><"']/g;function C(j){return String(j).replace(b,function(c){return M[c]})}var T=function j(c){return c.type==="ordgroup"||c.type==="color"?c.body.length===1?j(c.body[0]):c:c.type==="font"?j(c.body):c},$=function(c){var f=T(c);return f.type==="mathord"||f.type==="textord"||f.type==="atom"},W=function(c){if(!c)throw new Error("Expected non-null, but got "+String(c));return c},X=function(c){var f=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(c);return f!=null?f[1]:"_relative"},G={contains:H,deflt:V,escape:C,hyphenate:y,getBaseElem:T,isCharacterBox:$,protocolFromUrl:X},L=function(){function j(f){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,f=f||{},this.displayMode=G.deflt(f.displayMode,!1),this.output=G.deflt(f.output,"htmlAndMathml"),this.leqno=G.deflt(f.leqno,!1),this.fleqn=G.deflt(f.fleqn,!1),this.throwOnError=G.deflt(f.throwOnError,!0),this.errorColor=G.deflt(f.errorColor,"#cc0000"),this.macros=f.macros||{},this.minRuleThickness=Math.max(0,G.deflt(f.minRuleThickness,0)),this.colorIsTextColor=G.deflt(f.colorIsTextColor,!1),this.strict=G.deflt(f.strict,"warn"),this.trust=G.deflt(f.trust,!1),this.maxSize=Math.max(0,G.deflt(f.maxSize,1/0)),this.maxExpand=Math.max(0,G.deflt(f.maxExpand,1e3))}var c=j.prototype;return c.reportNonstrict=function(h,x,k){var J=this.strict;if(typeof J=="function"&&(J=J(h,x,k)),!(!J||J==="ignore")){if(J===!0||J==="error")throw new g("LaTeX-incompatible input and strict mode is set to 'error': "+(x+" ["+h+"]"),k);J==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(x+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+J+"': "+x+" ["+h+"]"))}},c.useStrictBehavior=function(h,x,k){var J=this.strict;if(typeof J=="function")try{J=J(h,x,k)}catch(Oe){J="error"}return!J||J==="ignore"?!1:J===!0||J==="error"?!0:J==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(x+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+J+"': "+x+" ["+h+"]")),!1)},c.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=G.protocolFromUrl(h.url));var x=typeof this.trust=="function"?this.trust(h):this.trust;return!!x},j}(),Q=function(){function j(f,h,x){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=h,this.cramped=x}var c=j.prototype;return c.sup=function(){return Ze[le[this.id]]},c.sub=function(){return Ze[N[this.id]]},c.fracNum=function(){return Ze[S[this.id]]},c.fracDen=function(){return Ze[q[this.id]]},c.cramp=function(){return Ze[te[this.id]]},c.text=function(){return Ze[se[this.id]]},c.isTight=function(){return this.size>=2},j}(),P=0,A=1,ce=2,Ee=3,pe=4,ze=5,Je=6,Pe=7,Ze=[new Q(P,0,!1),new Q(A,0,!0),new Q(ce,1,!1),new Q(Ee,1,!0),new Q(pe,2,!1),new Q(ze,2,!0),new Q(Je,3,!1),new Q(Pe,3,!0)],le=[pe,ze,pe,ze,Je,Pe,Je,Pe],N=[ze,ze,ze,ze,Pe,Pe,Pe,Pe],S=[ce,Ee,pe,ze,Je,Pe,Je,Pe],q=[Ee,Ee,ze,ze,Pe,Pe,Pe,Pe],te=[A,A,Ee,Ee,ze,ze,Pe,Pe],se=[P,A,ce,Ee,ce,Ee,ce,Ee],w={DISPLAY:Ze[P],TEXT:Ze[ce],SCRIPT:Ze[pe],SCRIPTSCRIPT:Ze[Je]},I=[{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 de(j){for(var c=0;c<I.length;c++)for(var f=I[c],h=0;h<f.blocks.length;h++){var x=f.blocks[h];if(j>=x[0]&&j<=x[1])return f.name}return null}var De=[];I.forEach(function(j){return j.blocks.forEach(function(c){return De.push.apply(De,c)})});function dt(j){for(var c=0;c<De.length;c+=2)if(j>=De[c]&&j<=De[c+1])return!0;return!1}var It=80,Te=function(c,f){return"M95,"+(622+c+f)+`
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`+c/2.075+" -"+c+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},rt=function(c,f){return"M263,"+(601+c+f)+`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`+c/2.084+" -"+c+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},ht=function(c,f){return"M983 "+(10+c+f)+`
l`+c/3.13+" -"+c+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+c)+`
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+c)+" "+f+"h400000v"+(40+c)+"h-400000z"},St=function(c,f){return"M424,"+(2398+c+f)+`
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`+c/4.223+" -"+c+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+c)+`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+c)+" "+f+`
h400000v`+(40+c)+"h-400000z"},Me=function(c,f){return"M473,"+(2713+c+f)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+c/5.298+" -"+c+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+c)+`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+c)+" "+f+"h400000v"+(40+c)+"H1017.7z"},Xt=function(c,f,h){var x=h-54-f-c;return"M702 "+(c+f)+"H400000"+(40+c)+`
H742v`+x+`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 `+f+"H400000v"+(40+c)+"H742z"},tt=function(c,f,h){f=1e3*f;var x="";switch(c){case"sqrtMain":x=Te(f,It);break;case"sqrtSize1":x=rt(f,It);break;case"sqrtSize2":x=ht(f,It);break;case"sqrtSize3":x=St(f,It);break;case"sqrtSize4":x=Me(f,It);break;case"sqrtTall":x=Xt(f,It,h)}return x},un={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},vt=function(){function j(f){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=f,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var c=j.prototype;return c.hasClass=function(h){return G.contains(this.classes,h)},c.toNode=function(){for(var h=document.createDocumentFragment(),x=0;x<this.children.length;x++)h.appendChild(this.children[x].toNode());return h},c.toMarkup=function(){for(var h="",x=0;x<this.children.length;x++)h+=this.children[x].toMarkup();return h},c.toText=function(){var h=function(k){return k.toText()};return this.children.map(h).join("")},j}(),bt=function(c){return c.filter(function(f){return f}).join(" ")},Ve=function(c,f,h){if(this.classes=c||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},f){f.style.isTight()&&this.classes.push("mtight");var x=f.getColor();x&&(this.style.color=x)}},Le=function(c){var f=document.createElement(c);f.className=bt(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(f.style[h]=this.style[h]);for(var x in this.attributes)this.attributes.hasOwnProperty(x)&&f.setAttribute(x,this.attributes[x]);for(var k=0;k<this.children.length;k++)f.appendChild(this.children[k].toNode());return f},oe=function(c){var f="<"+c;this.classes.length&&(f+=' class="'+G.escape(bt(this.classes))+'"');var h="";for(var x in this.style)this.style.hasOwnProperty(x)&&(h+=G.hyphenate(x)+":"+this.style[x]+";");h&&(f+=' style="'+G.escape(h)+'"');for(var k in this.attributes)this.attributes.hasOwnProperty(k)&&(f+=" "+k+'="'+G.escape(this.attributes[k])+'"');f+=">";for(var J=0;J<this.children.length;J++)f+=this.children[J].toMarkup();return f+="</"+c+">",f},nt=function(){function j(f,h,x,k){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,Ve.call(this,f,x,k),this.children=h||[]}var c=j.prototype;return c.setAttribute=function(h,x){this.attributes[h]=x},c.hasClass=function(h){return G.contains(this.classes,h)},c.toNode=function(){return Le.call(this,"span")},c.toMarkup=function(){return oe.call(this,"span")},j}(),Ue=function(){function j(f,h,x,k){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,Ve.call(this,h,k),this.children=x||[],this.setAttribute("href",f)}var c=j.prototype;return c.setAttribute=function(h,x){this.attributes[h]=x},c.hasClass=function(h){return G.contains(this.classes,h)},c.toNode=function(){return Le.call(this,"a")},c.toMarkup=function(){return oe.call(this,"a")},j}(),K=function(){function j(f,h,x){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=h,this.src=f,this.classes=["mord"],this.style=x}var c=j.prototype;return c.hasClass=function(h){return G.contains(this.classes,h)},c.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var x in this.style)this.style.hasOwnProperty(x)&&(h.style[x]=this.style[x]);return h},c.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",x="";for(var k in this.style)this.style.hasOwnProperty(k)&&(x+=G.hyphenate(k)+":"+this.style[k]+";");return x&&(h+=' style="'+G.escape(x)+'"'),h+="'/>",h},j}(),D={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Se=function(){function j(f,h,x,k,J,Oe,qe,Et){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=f,this.height=h||0,this.depth=x||0,this.italic=k||0,this.skew=J||0,this.width=Oe||0,this.classes=qe||[],this.style=Et||{},this.maxFontSize=0;var Qt=de(this.text.charCodeAt(0));Qt&&this.classes.push(Qt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=D[this.text])}var c=j.prototype;return c.hasClass=function(h){return G.contains(this.classes,h)},c.toNode=function(){var h=document.createTextNode(this.text),x=null;this.italic>0&&(x=document.createElement("span"),x.style.marginRight=this.italic+"em"),this.classes.length>0&&(x=x||document.createElement("span"),x.className=bt(this.classes));for(var k in this.style)this.style.hasOwnProperty(k)&&(x=x||document.createElement("span"),x.style[k]=this.style[k]);return x?(x.appendChild(h),x):h},c.toMarkup=function(){var h=!1,x="<span";this.classes.length&&(h=!0,x+=' class="',x+=G.escape(bt(this.classes)),x+='"');var k="";this.italic>0&&(k+="margin-right:"+this.italic+"em;");for(var J in this.style)this.style.hasOwnProperty(J)&&(k+=G.hyphenate(J)+":"+this.style[J]+";");k&&(h=!0,x+=' style="'+G.escape(k)+'"');var Oe=G.escape(this.text);return h?(x+=">",x+=Oe,x+="</span>",x):Oe},j}(),Ae=function(){function j(f,h){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=h||{}}var c=j.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",x=document.createElementNS(h,"svg");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&x.setAttribute(k,this.attributes[k]);for(var J=0;J<this.children.length;J++)x.appendChild(this.children[J].toNode());return x},c.toMarkup=function(){var h="<svg";for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(h+=" "+x+"='"+this.attributes[x]+"'");h+=">";for(var k=0;k<this.children.length;k++)h+=this.children[k].toMarkup();return h+="</svg>",h},j}(),Ce=function(){function j(f,h){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=h}var c=j.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",x=document.createElementNS(h,"path");return this.alternate?x.setAttribute("d",this.alternate):x.setAttribute("d",un[this.pathName]),x},c.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+un[this.pathName]+"'/>"},j}(),ke=function(){function j(f){this.attributes=void 0,this.attributes=f||{}}var c=j.prototype;return c.toNode=function(){var h="http://www.w3.org/2000/svg",x=document.createElementNS(h,"line");for(var k in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,k)&&x.setAttribute(k,this.attributes[k]);return x},c.toMarkup=function(){var h="<line";for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(h+=" "+x+"='"+this.attributes[x]+"'");return h+="/>",h},j}();function Xe(j){if(j instanceof Se)return j;throw new Error("Expected symbolNode but got "+String(j)+".")}function yt(j){if(j instanceof nt)return j;throw new Error("Expected span<HtmlDomNode> but got "+String(j)+".")}var he={"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]}},me={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]},Lt={\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 Ct(j,c){he[j]=c}function Nt(j,c,f){if(!he[c])throw new Error("Font metrics not found for font: "+c+".");var h=j.charCodeAt(0),x=he[c][h];if(!x&&j[0]in Lt&&(h=Lt[j[0]].charCodeAt(0),x=he[c][h]),!x&&f==="text"&&dt(h)&&(x=he[c][77]),x)return{depth:x[0],height:x[1],italic:x[2],skew:x[3],width:x[4]}}var kt={};function pt(j){var c;if(j>=5?c=0:j>=3?c=1:c=2,!kt[c]){var f=kt[c]={cssEmPerMu:me.quad[c]/18};for(var h in me)me.hasOwnProperty(h)&&(f[h]=me[h][c])}return kt[c]}var Vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Zt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Re={math:{},text:{}},gt=Re;function E(j,c,f,h,x,k){Re[j][x]={font:c,group:f,replace:h},k&&h&&(Re[j][h]=Re[j][x])}var R="math",at="text",ae="main",Y="ams",Ft="accent-token",Ke="bin",st="close",_t="inner",xe="mathord",_e="op-token",et="open",Qe="punct",z="rel",Rt="spacing",ge="textord";E(R,ae,z,"\u2261","\\equiv",!0),E(R,ae,z,"\u227A","\\prec",!0),E(R,ae,z,"\u227B","\\succ",!0),E(R,ae,z,"\u223C","\\sim",!0),E(R,ae,z,"\u22A5","\\perp"),E(R,ae,z,"\u2AAF","\\preceq",!0),E(R,ae,z,"\u2AB0","\\succeq",!0),E(R,ae,z,"\u2243","\\simeq",!0),E(R,ae,z,"\u2223","\\mid",!0),E(R,ae,z,"\u226A","\\ll",!0),E(R,ae,z,"\u226B","\\gg",!0),E(R,ae,z,"\u224D","\\asymp",!0),E(R,ae,z,"\u2225","\\parallel"),E(R,ae,z,"\u22C8","\\bowtie",!0),E(R,ae,z,"\u2323","\\smile",!0),E(R,ae,z,"\u2291","\\sqsubseteq",!0),E(R,ae,z,"\u2292","\\sqsupseteq",!0),E(R,ae,z,"\u2250","\\doteq",!0),E(R,ae,z,"\u2322","\\frown",!0),E(R,ae,z,"\u220B","\\ni",!0),E(R,ae,z,"\u221D","\\propto",!0),E(R,ae,z,"\u22A2","\\vdash",!0),E(R,ae,z,"\u22A3","\\dashv",!0),E(R,ae,z,"\u220B","\\owns"),E(R,ae,Qe,".","\\ldotp"),E(R,ae,Qe,"\u22C5","\\cdotp"),E(R,ae,ge,"#","\\#"),E(at,ae,ge,"#","\\#"),E(R,ae,ge,"&","\\&"),E(at,ae,ge,"&","\\&"),E(R,ae,ge,"\u2135","\\aleph",!0),E(R,ae,ge,"\u2200","\\forall",!0),E(R,ae,ge,"\u210F","\\hbar",!0),E(R,ae,ge,"\u2203","\\exists",!0),E(R,ae,ge,"\u2207","\\nabla",!0),E(R,ae,ge,"\u266D","\\flat",!0),E(R,ae,ge,"\u2113","\\ell",!0),E(R,ae,ge,"\u266E","\\natural",!0),E(R,ae,ge,"\u2663","\\clubsuit",!0),E(R,ae,ge,"\u2118","\\wp",!0),E(R,ae,ge,"\u266F","\\sharp",!0),E(R,ae,ge,"\u2662","\\diamondsuit",!0),E(R,ae,ge,"\u211C","\\Re",!0),E(R,ae,ge,"\u2661","\\heartsuit",!0),E(R,ae,ge,"\u2111","\\Im",!0),E(R,ae,ge,"\u2660","\\spadesuit",!0),E(at,ae,ge,"\xA7","\\S",!0),E(at,ae,ge,"\xB6","\\P",!0),E(R,ae,ge,"\u2020","\\dag"),E(at,ae,ge,"\u2020","\\dag"),E(at,ae,ge,"\u2020","\\textdagger"),E(R,ae,ge,"\u2021","\\ddag"),E(at,ae,ge,"\u2021","\\ddag"),E(at,ae,ge,"\u2021","\\textdaggerdbl"),E(R,ae,st,"\u23B1","\\rmoustache",!0),E(R,ae,et,"\u23B0","\\lmoustache",!0),E(R,ae,st,"\u27EF","\\rgroup",!0),E(R,ae,et,"\u27EE","\\lgroup",!0),E(R,ae,Ke,"\u2213","\\mp",!0),E(R,ae,Ke,"\u2296","\\ominus",!0),E(R,ae,Ke,"\u228E","\\uplus",!0),E(R,ae,Ke,"\u2293","\\sqcap",!0),E(R,ae,Ke,"\u2217","\\ast"),E(R,ae,Ke,"\u2294","\\sqcup",!0),E(R,ae,Ke,"\u25EF","\\bigcirc"),E(R,ae,Ke,"\u2219","\\bullet"),E(R,ae,Ke,"\u2021","\\ddagger"),E(R,ae,Ke,"\u2240","\\wr",!0),E(R,ae,Ke,"\u2A3F","\\amalg"),E(R,ae,Ke,"&","\\And"),E(R,ae,z,"\u27F5","\\longleftarrow",!0),E(R,ae,z,"\u21D0","\\Leftarrow",!0),E(R,ae,z,"\u27F8","\\Longleftarrow",!0),E(R,ae,z,"\u27F6","\\longrightarrow",!0),E(R,ae,z,"\u21D2","\\Rightarrow",!0),E(R,ae,z,"\u27F9","\\Longrightarrow",!0),E(R,ae,z,"\u2194","\\leftrightarrow",!0),E(R,ae,z,"\u27F7","\\longleftrightarrow",!0),E(R,ae,z,"\u21D4","\\Leftrightarrow",!0),E(R,ae,z,"\u27FA","\\Longleftrightarrow",!0),E(R,ae,z,"\u21A6","\\mapsto",!0),E(R,ae,z,"\u27FC","\\longmapsto",!0),E(R,ae,z,"\u2197","\\nearrow",!0),E(R,ae,z,"\u21A9","\\hookleftarrow",!0),E(R,ae,z,"\u21AA","\\hookrightarrow",!0),E(R,ae,z,"\u2198","\\searrow",!0),E(R,ae,z,"\u21BC","\\leftharpoonup",!0),E(R,ae,z,"\u21C0","\\rightharpoonup",!0),E(R,ae,z,"\u2199","\\swarrow",!0),E(R,ae,z,"\u21BD","\\leftharpoondown",!0),E(R,ae,z,"\u21C1","\\rightharpoondown",!0),E(R,ae,z,"\u2196","\\nwarrow",!0),E(R,ae,z,"\u21CC","\\rightleftharpoons",!0),E(R,Y,z,"\u226E","\\nless",!0),E(R,Y,z,"\uE010","\\@nleqslant"),E(R,Y,z,"\uE011","\\@nleqq"),E(R,Y,z,"\u2A87","\\lneq",!0),E(R,Y,z,"\u2268","\\lneqq",!0),E(R,Y,z,"\uE00C","\\@lvertneqq"),E(R,Y,z,"\u22E6","\\lnsim",!0),E(R,Y,z,"\u2A89","\\lnapprox",!0),E(R,Y,z,"\u2280","\\nprec",!0),E(R,Y,z,"\u22E0","\\npreceq",!0),E(R,Y,z,"\u22E8","\\precnsim",!0),E(R,Y,z,"\u2AB9","\\precnapprox",!0),E(R,Y,z,"\u2241","\\nsim",!0),E(R,Y,z,"\uE006","\\@nshortmid"),E(R,Y,z,"\u2224","\\nmid",!0),E(R,Y,z,"\u22AC","\\nvdash",!0),E(R,Y,z,"\u22AD","\\nvDash",!0),E(R,Y,z,"\u22EA","\\ntriangleleft"),E(R,Y,z,"\u22EC","\\ntrianglelefteq",!0),E(R,Y,z,"\u228A","\\subsetneq",!0),E(R,Y,z,"\uE01A","\\@varsubsetneq"),E(R,Y,z,"\u2ACB","\\subsetneqq",!0),E(R,Y,z,"\uE017","\\@varsubsetneqq"),E(R,Y,z,"\u226F","\\ngtr",!0),E(R,Y,z,"\uE00F","\\@ngeqslant"),E(R,Y,z,"\uE00E","\\@ngeqq"),E(R,Y,z,"\u2A88","\\gneq",!0),E(R,Y,z,"\u2269","\\gneqq",!0),E(R,Y,z,"\uE00D","\\@gvertneqq"),E(R,Y,z,"\u22E7","\\gnsim",!0),E(R,Y,z,"\u2A8A","\\gnapprox",!0),E(R,Y,z,"\u2281","\\nsucc",!0),E(R,Y,z,"\u22E1","\\nsucceq",!0),E(R,Y,z,"\u22E9","\\succnsim",!0),E(R,Y,z,"\u2ABA","\\succnapprox",!0),E(R,Y,z,"\u2246","\\ncong",!0),E(R,Y,z,"\uE007","\\@nshortparallel"),E(R,Y,z,"\u2226","\\nparallel",!0),E(R,Y,z,"\u22AF","\\nVDash",!0),E(R,Y,z,"\u22EB","\\ntriangleright"),E(R,Y,z,"\u22ED","\\ntrianglerighteq",!0),E(R,Y,z,"\uE018","\\@nsupseteqq"),E(R,Y,z,"\u228B","\\supsetneq",!0),E(R,Y,z,"\uE01B","\\@varsupsetneq"),E(R,Y,z,"\u2ACC","\\supsetneqq",!0),E(R,Y,z,"\uE019","\\@varsupsetneqq"),E(R,Y,z,"\u22AE","\\nVdash",!0),E(R,Y,z,"\u2AB5","\\precneqq",!0),E(R,Y,z,"\u2AB6","\\succneqq",!0),E(R,Y,z,"\uE016","\\@nsubseteqq"),E(R,Y,Ke,"\u22B4","\\unlhd"),E(R,Y,Ke,"\u22B5","\\unrhd"),E(R,Y,z,"\u219A","\\nleftarrow",!0),E(R,Y,z,"\u219B","\\nrightarrow",!0),E(R,Y,z,"\u21CD","\\nLeftarrow",!0),E(R,Y,z,"\u21CF","\\nRightarrow",!0),E(R,Y,z,"\u21AE","\\nleftrightarrow",!0),E(R,Y,z,"\u21CE","\\nLeftrightarrow",!0),E(R,Y,z,"\u25B3","\\vartriangle"),E(R,Y,ge,"\u210F","\\hslash"),E(R,Y,ge,"\u25BD","\\triangledown"),E(R,Y,ge,"\u25CA","\\lozenge"),E(R,Y,ge,"\u24C8","\\circledS"),E(R,Y,ge,"\xAE","\\circledR"),E(at,Y,ge,"\xAE","\\circledR"),E(R,Y,ge,"\u2221","\\measuredangle",!0),E(R,Y,ge,"\u2204","\\nexists"),E(R,Y,ge,"\u2127","\\mho"),E(R,Y,ge,"\u2132","\\Finv",!0),E(R,Y,ge,"\u2141","\\Game",!0),E(R,Y,ge,"\u2035","\\backprime"),E(R,Y,ge,"\u25B2","\\blacktriangle"),E(R,Y,ge,"\u25BC","\\blacktriangledown"),E(R,Y,ge,"\u25A0","\\blacksquare"),E(R,Y,ge,"\u29EB","\\blacklozenge"),E(R,Y,ge,"\u2605","\\bigstar"),E(R,Y,ge,"\u2222","\\sphericalangle",!0),E(R,Y,ge,"\u2201","\\complement",!0),E(R,Y,ge,"\xF0","\\eth",!0),E(R,Y,ge,"\u2571","\\diagup"),E(R,Y,ge,"\u2572","\\diagdown"),E(R,Y,ge,"\u25A1","\\square"),E(R,Y,ge,"\u25A1","\\Box"),E(R,Y,ge,"\u25CA","\\Diamond"),E(R,Y,ge,"\xA5","\\yen",!0),E(at,Y,ge,"\xA5","\\yen",!0),E(R,Y,ge,"\u2713","\\checkmark",!0),E(at,Y,ge,"\u2713","\\checkmark"),E(R,Y,ge,"\u2136","\\beth",!0),E(R,Y,ge,"\u2138","\\daleth",!0),E(R,Y,ge,"\u2137","\\gimel",!0),E(R,Y,ge,"\u03DD","\\digamma",!0),E(R,Y,ge,"\u03F0","\\varkappa"),E(R,Y,et,"\u250C","\\ulcorner",!0),E(R,Y,st,"\u2510","\\urcorner",!0),E(R,Y,et,"\u2514","\\llcorner",!0),E(R,Y,st,"\u2518","\\lrcorner",!0),E(R,Y,z,"\u2266","\\leqq",!0),E(R,Y,z,"\u2A7D","\\leqslant",!0),E(R,Y,z,"\u2A95","\\eqslantless",!0),E(R,Y,z,"\u2272","\\lesssim",!0),E(R,Y,z,"\u2A85","\\lessapprox",!0),E(R,Y,z,"\u224A","\\approxeq",!0),E(R,Y,Ke,"\u22D6","\\lessdot"),E(R,Y,z,"\u22D8","\\lll",!0),E(R,Y,z,"\u2276","\\lessgtr",!0),E(R,Y,z,"\u22DA","\\lesseqgtr",!0),E(R,Y,z,"\u2A8B","\\lesseqqgtr",!0),E(R,Y,z,"\u2251","\\doteqdot"),E(R,Y,z,"\u2253","\\risingdotseq",!0),E(R,Y,z,"\u2252","\\fallingdotseq",!0),E(R,Y,z,"\u223D","\\backsim",!0),E(R,Y,z,"\u22CD","\\backsimeq",!0),E(R,Y,z,"\u2AC5","\\subseteqq",!0),E(R,Y,z,"\u22D0","\\Subset",!0),E(R,Y,z,"\u228F","\\sqsubset",!0),E(R,Y,z,"\u227C","\\preccurlyeq",!0),E(R,Y,z,"\u22DE","\\curlyeqprec",!0),E(R,Y,z,"\u227E","\\precsim",!0),E(R,Y,z,"\u2AB7","\\precapprox",!0),E(R,Y,z,"\u22B2","\\vartriangleleft"),E(R,Y,z,"\u22B4","\\trianglelefteq"),E(R,Y,z,"\u22A8","\\vDash",!0),E(R,Y,z,"\u22AA","\\Vvdash",!0),E(R,Y,z,"\u2323","\\smallsmile"),E(R,Y,z,"\u2322","\\smallfrown"),E(R,Y,z,"\u224F","\\bumpeq",!0),E(R,Y,z,"\u224E","\\Bumpeq",!0),E(R,Y,z,"\u2267","\\geqq",!0),E(R,Y,z,"\u2A7E","\\geqslant",!0),E(R,Y,z,"\u2A96","\\eqslantgtr",!0),E(R,Y,z,"\u2273","\\gtrsim",!0),E(R,Y,z,"\u2A86","\\gtrapprox",!0),E(R,Y,Ke,"\u22D7","\\gtrdot"),E(R,Y,z,"\u22D9","\\ggg",!0),E(R,Y,z,"\u2277","\\gtrless",!0),E(R,Y,z,"\u22DB","\\gtreqless",!0),E(R,Y,z,"\u2A8C","\\gtreqqless",!0),E(R,Y,z,"\u2256","\\eqcirc",!0),E(R,Y,z,"\u2257","\\circeq",!0),E(R,Y,z,"\u225C","\\triangleq",!0),E(R,Y,z,"\u223C","\\thicksim"),E(R,Y,z,"\u2248","\\thickapprox"),E(R,Y,z,"\u2AC6","\\supseteqq",!0),E(R,Y,z,"\u22D1","\\Supset",!0),E(R,Y,z,"\u2290","\\sqsupset",!0),E(R,Y,z,"\u227D","\\succcurlyeq",!0),E(R,Y,z,"\u22DF","\\curlyeqsucc",!0),E(R,Y,z,"\u227F","\\succsim",!0),E(R,Y,z,"\u2AB8","\\succapprox",!0),E(R,Y,z,"\u22B3","\\vartriangleright"),E(R,Y,z,"\u22B5","\\trianglerighteq"),E(R,Y,z,"\u22A9","\\Vdash",!0),E(R,Y,z,"\u2223","\\shortmid"),E(R,Y,z,"\u2225","\\shortparallel"),E(R,Y,z,"\u226C","\\between",!0),E(R,Y,z,"\u22D4","\\pitchfork",!0),E(R,Y,z,"\u221D","\\varpropto"),E(R,Y,z,"\u25C0","\\blacktriangleleft"),E(R,Y,z,"\u2234","\\therefore",!0),E(R,Y,z,"\u220D","\\backepsilon"),E(R,Y,z,"\u25B6","\\blacktriangleright"),E(R,Y,z,"\u2235","\\because",!0),E(R,Y,z,"\u22D8","\\llless"),E(R,Y,z,"\u22D9","\\gggtr"),E(R,Y,Ke,"\u22B2","\\lhd"),E(R,Y,Ke,"\u22B3","\\rhd"),E(R,Y,z,"\u2242","\\eqsim",!0),E(R,ae,z,"\u22C8","\\Join"),E(R,Y,z,"\u2251","\\Doteq",!0),E(R,Y,Ke,"\u2214","\\dotplus",!0),E(R,Y,Ke,"\u2216","\\smallsetminus"),E(R,Y,Ke,"\u22D2","\\Cap",!0),E(R,Y,Ke,"\u22D3","\\Cup",!0),E(R,Y,Ke,"\u2A5E","\\doublebarwedge",!0),E(R,Y,Ke,"\u229F","\\boxminus",!0),E(R,Y,Ke,"\u229E","\\boxplus",!0),E(R,Y,Ke,"\u22C7","\\divideontimes",!0),E(R,Y,Ke,"\u22C9","\\ltimes",!0),E(R,Y,Ke,"\u22CA","\\rtimes",!0),E(R,Y,Ke,"\u22CB","\\leftthreetimes",!0),E(R,Y,Ke,"\u22CC","\\rightthreetimes",!0),E(R,Y,Ke,"\u22CF","\\curlywedge",!0),E(R,Y,Ke,"\u22CE","\\curlyvee",!0),E(R,Y,Ke,"\u229D","\\circleddash",!0),E(R,Y,Ke,"\u229B","\\circledast",!0),E(R,Y,Ke,"\u22C5","\\centerdot"),E(R,Y,Ke,"\u22BA","\\intercal",!0),E(R,Y,Ke,"\u22D2","\\doublecap"),E(R,Y,Ke,"\u22D3","\\doublecup"),E(R,Y,Ke,"\u22A0","\\boxtimes",!0),E(R,Y,z,"\u21E2","\\dashrightarrow",!0),E(R,Y,z,"\u21E0","\\dashleftarrow",!0),E(R,Y,z,"\u21C7","\\leftleftarrows",!0),E(R,Y,z,"\u21C6","\\leftrightarrows",!0),E(R,Y,z,"\u21DA","\\Lleftarrow",!0),E(R,Y,z,"\u219E","\\twoheadleftarrow",!0),E(R,Y,z,"\u21A2","\\leftarrowtail",!0),E(R,Y,z,"\u21AB","\\looparrowleft",!0),E(R,Y,z,"\u21CB","\\leftrightharpoons",!0),E(R,Y,z,"\u21B6","\\curvearrowleft",!0),E(R,Y,z,"\u21BA","\\circlearrowleft",!0),E(R,Y,z,"\u21B0","\\Lsh",!0),E(R,Y,z,"\u21C8","\\upuparrows",!0),E(R,Y,z,"\u21BF","\\upharpoonleft",!0),E(R,Y,z,"\u21C3","\\downharpoonleft",!0),E(R,Y,z,"\u22B8","\\multimap",!0),E(R,Y,z,"\u21AD","\\leftrightsquigarrow",!0),E(R,Y,z,"\u21C9","\\rightrightarrows",!0),E(R,Y,z,"\u21C4","\\rightleftarrows",!0),E(R,Y,z,"\u21A0","\\twoheadrightarrow",!0),E(R,Y,z,"\u21A3","\\rightarrowtail",!0),E(R,Y,z,"\u21AC","\\looparrowright",!0),E(R,Y,z,"\u21B7","\\curvearrowright",!0),E(R,Y,z,"\u21BB","\\circlearrowright",!0),E(R,Y,z,"\u21B1","\\Rsh",!0),E(R,Y,z,"\u21CA","\\downdownarrows",!0),E(R,Y,z,"\u21BE","\\upharpoonright",!0),E(R,Y,z,"\u21C2","\\downharpoonright",!0),E(R,Y,z,"\u21DD","\\rightsquigarrow",!0),E(R,Y,z,"\u21DD","\\leadsto"),E(R,Y,z,"\u21DB","\\Rrightarrow",!0),E(R,Y,z,"\u21BE","\\restriction"),E(R,ae,ge,"\u2018","`"),E(R,ae,ge,"$","\\$"),E(at,ae,ge,"$","\\$"),E(at,ae,ge,"$","\\textdollar"),E(R,ae,ge,"%","\\%"),E(at,ae,ge,"%","\\%"),E(R,ae,ge,"_","\\_"),E(at,ae,ge,"_","\\_"),E(at,ae,ge,"_","\\textunderscore"),E(R,ae,ge,"\u2220","\\angle",!0),E(R,ae,ge,"\u221E","\\infty",!0),E(R,ae,ge,"\u2032","\\prime"),E(R,ae,ge,"\u25B3","\\triangle"),E(R,ae,ge,"\u0393","\\Gamma",!0),E(R,ae,ge,"\u0394","\\Delta",!0),E(R,ae,ge,"\u0398","\\Theta",!0),E(R,ae,ge,"\u039B","\\Lambda",!0),E(R,ae,ge,"\u039E","\\Xi",!0),E(R,ae,ge,"\u03A0","\\Pi",!0),E(R,ae,ge,"\u03A3","\\Sigma",!0),E(R,ae,ge,"\u03A5","\\Upsilon",!0),E(R,ae,ge,"\u03A6","\\Phi",!0),E(R,ae,ge,"\u03A8","\\Psi",!0),E(R,ae,ge,"\u03A9","\\Omega",!0),E(R,ae,ge,"A","\u0391"),E(R,ae,ge,"B","\u0392"),E(R,ae,ge,"E","\u0395"),E(R,ae,ge,"Z","\u0396"),E(R,ae,ge,"H","\u0397"),E(R,ae,ge,"I","\u0399"),E(R,ae,ge,"K","\u039A"),E(R,ae,ge,"M","\u039C"),E(R,ae,ge,"N","\u039D"),E(R,ae,ge,"O","\u039F"),E(R,ae,ge,"P","\u03A1"),E(R,ae,ge,"T","\u03A4"),E(R,ae,ge,"X","\u03A7"),E(R,ae,ge,"\xAC","\\neg",!0),E(R,ae,ge,"\xAC","\\lnot"),E(R,ae,ge,"\u22A4","\\top"),E(R,ae,ge,"\u22A5","\\bot"),E(R,ae,ge,"\u2205","\\emptyset"),E(R,Y,ge,"\u2205","\\varnothing"),E(R,ae,xe,"\u03B1","\\alpha",!0),E(R,ae,xe,"\u03B2","\\beta",!0),E(R,ae,xe,"\u03B3","\\gamma",!0),E(R,ae,xe,"\u03B4","\\delta",!0),E(R,ae,xe,"\u03F5","\\epsilon",!0),E(R,ae,xe,"\u03B6","\\zeta",!0),E(R,ae,xe,"\u03B7","\\eta",!0),E(R,ae,xe,"\u03B8","\\theta",!0),E(R,ae,xe,"\u03B9","\\iota",!0),E(R,ae,xe,"\u03BA","\\kappa",!0),E(R,ae,xe,"\u03BB","\\lambda",!0),E(R,ae,xe,"\u03BC","\\mu",!0),E(R,ae,xe,"\u03BD","\\nu",!0),E(R,ae,xe,"\u03BE","\\xi",!0),E(R,ae,xe,"\u03BF","\\omicron",!0),E(R,ae,xe,"\u03C0","\\pi",!0),E(R,ae,xe,"\u03C1","\\rho",!0),E(R,ae,xe,"\u03C3","\\sigma",!0),E(R,ae,xe,"\u03C4","\\tau",!0),E(R,ae,xe,"\u03C5","\\upsilon",!0),E(R,ae,xe,"\u03D5","\\phi",!0),E(R,ae,xe,"\u03C7","\\chi",!0),E(R,ae,xe,"\u03C8","\\psi",!0),E(R,ae,xe,"\u03C9","\\omega",!0),E(R,ae,xe,"\u03B5","\\varepsilon",!0),E(R,ae,xe,"\u03D1","\\vartheta",!0),E(R,ae,xe,"\u03D6","\\varpi",!0),E(R,ae,xe,"\u03F1","\\varrho",!0),E(R,ae,xe,"\u03C2","\\varsigma",!0),E(R,ae,xe,"\u03C6","\\varphi",!0),E(R,ae,Ke,"\u2217","*"),E(R,ae,Ke,"+","+"),E(R,ae,Ke,"\u2212","-"),E(R,ae,Ke,"\u22C5","\\cdot",!0),E(R,ae,Ke,"\u2218","\\circ"),E(R,ae,Ke,"\xF7","\\div",!0),E(R,ae,Ke,"\xB1","\\pm",!0),E(R,ae,Ke,"\xD7","\\times",!0),E(R,ae,Ke,"\u2229","\\cap",!0),E(R,ae,Ke,"\u222A","\\cup",!0),E(R,ae,Ke,"\u2216","\\setminus"),E(R,ae,Ke,"\u2227","\\land"),E(R,ae,Ke,"\u2228","\\lor"),E(R,ae,Ke,"\u2227","\\wedge",!0),E(R,ae,Ke,"\u2228","\\vee",!0),E(R,ae,ge,"\u221A","\\surd"),E(R,ae,et,"(","("),E(R,ae,et,"[","["),E(R,ae,et,"\u27E8","\\langle",!0),E(R,ae,et,"\u2223","\\lvert"),E(R,ae,et,"\u2225","\\lVert"),E(R,ae,st,")",")"),E(R,ae,st,"]","]"),E(R,ae,st,"?","?"),E(R,ae,st,"!","!"),E(R,ae,st,"\u27E9","\\rangle",!0),E(R,ae,st,"\u2223","\\rvert"),E(R,ae,st,"\u2225","\\rVert"),E(R,ae,z,"=","="),E(R,ae,z,"<","<"),E(R,ae,z,">",">"),E(R,ae,z,":",":"),E(R,ae,z,"\u2248","\\approx",!0),E(R,ae,z,"\u2245","\\cong",!0),E(R,ae,z,"\u2265","\\ge"),E(R,ae,z,"\u2265","\\geq",!0),E(R,ae,z,"\u2190","\\gets"),E(R,ae,z,">","\\gt"),E(R,ae,z,"\u2208","\\in",!0),E(R,ae,z,"\uE020","\\@not"),E(R,ae,z,"\u2282","\\subset",!0),E(R,ae,z,"\u2283","\\supset",!0),E(R,ae,z,"\u2286","\\subseteq",!0),E(R,ae,z,"\u2287","\\supseteq",!0),E(R,Y,z,"\u2288","\\nsubseteq",!0),E(R,Y,z,"\u2289","\\nsupseteq",!0),E(R,ae,z,"\u22A8","\\models"),E(R,ae,z,"\u2190","\\leftarrow",!0),E(R,ae,z,"\u2264","\\le"),E(R,ae,z,"\u2264","\\leq",!0),E(R,ae,z,"<","\\lt"),E(R,ae,z,"\u2192","\\rightarrow",!0),E(R,ae,z,"\u2192","\\to"),E(R,Y,z,"\u2271","\\ngeq",!0),E(R,Y,z,"\u2270","\\nleq",!0),E(R,ae,Rt,"\xA0","\\ "),E(R,ae,Rt,"\xA0","~"),E(R,ae,Rt,"\xA0","\\space"),E(R,ae,Rt,"\xA0","\\nobreakspace"),E(at,ae,Rt,"\xA0","\\ "),E(at,ae,Rt,"\xA0","~"),E(at,ae,Rt,"\xA0","\\space"),E(at,ae,Rt,"\xA0","\\nobreakspace"),E(R,ae,Rt,null,"\\nobreak"),E(R,ae,Rt,null,"\\allowbreak"),E(R,ae,Qe,",",","),E(R,ae,Qe,";",";"),E(R,Y,Ke,"\u22BC","\\barwedge",!0),E(R,Y,Ke,"\u22BB","\\veebar",!0),E(R,ae,Ke,"\u2299","\\odot",!0),E(R,ae,Ke,"\u2295","\\oplus",!0),E(R,ae,Ke,"\u2297","\\otimes",!0),E(R,ae,ge,"\u2202","\\partial",!0),E(R,ae,Ke,"\u2298","\\oslash",!0),E(R,Y,Ke,"\u229A","\\circledcirc",!0),E(R,Y,Ke,"\u22A1","\\boxdot",!0),E(R,ae,Ke,"\u25B3","\\bigtriangleup"),E(R,ae,Ke,"\u25BD","\\bigtriangledown"),E(R,ae,Ke,"\u2020","\\dagger"),E(R,ae,Ke,"\u22C4","\\diamond"),E(R,ae,Ke,"\u22C6","\\star"),E(R,ae,Ke,"\u25C3","\\triangleleft"),E(R,ae,Ke,"\u25B9","\\triangleright"),E(R,ae,et,"{","\\{"),E(at,ae,ge,"{","\\{"),E(at,ae,ge,"{","\\textbraceleft"),E(R,ae,st,"}","\\}"),E(at,ae,ge,"}","\\}"),E(at,ae,ge,"}","\\textbraceright"),E(R,ae,et,"{","\\lbrace"),E(R,ae,st,"}","\\rbrace"),E(R,ae,et,"[","\\lbrack"),E(at,ae,ge,"[","\\lbrack"),E(R,ae,st,"]","\\rbrack"),E(at,ae,ge,"]","\\rbrack"),E(R,ae,et,"(","\\lparen"),E(R,ae,st,")","\\rparen"),E(at,ae,ge,"<","\\textless"),E(at,ae,ge,">","\\textgreater"),E(R,ae,et,"\u230A","\\lfloor",!0),E(R,ae,st,"\u230B","\\rfloor",!0),E(R,ae,et,"\u2308","\\lceil",!0),E(R,ae,st,"\u2309","\\rceil",!0),E(R,ae,ge,"\\","\\backslash"),E(R,ae,ge,"\u2223","|"),E(R,ae,ge,"\u2223","\\vert"),E(at,ae,ge,"|","\\textbar"),E(R,ae,ge,"\u2225","\\|"),E(R,ae,ge,"\u2225","\\Vert"),E(at,ae,ge,"\u2225","\\textbardbl"),E(at,ae,ge,"~","\\textasciitilde"),E(at,ae,ge,"\\","\\textbackslash"),E(at,ae,ge,"^","\\textasciicircum"),E(R,ae,z,"\u2191","\\uparrow",!0),E(R,ae,z,"\u21D1","\\Uparrow",!0),E(R,ae,z,"\u2193","\\downarrow",!0),E(R,ae,z,"\u21D3","\\Downarrow",!0),E(R,ae,z,"\u2195","\\updownarrow",!0),E(R,ae,z,"\u21D5","\\Updownarrow",!0),E(R,ae,_e,"\u2210","\\coprod"),E(R,ae,_e,"\u22C1","\\bigvee"),E(R,ae,_e,"\u22C0","\\bigwedge"),E(R,ae,_e,"\u2A04","\\biguplus"),E(R,ae,_e,"\u22C2","\\bigcap"),E(R,ae,_e,"\u22C3","\\bigcup"),E(R,ae,_e,"\u222B","\\int"),E(R,ae,_e,"\u222B","\\intop"),E(R,ae,_e,"\u222C","\\iint"),E(R,ae,_e,"\u222D","\\iiint"),E(R,ae,_e,"\u220F","\\prod"),E(R,ae,_e,"\u2211","\\sum"),E(R,ae,_e,"\u2A02","\\bigotimes"),E(R,ae,_e,"\u2A01","\\bigoplus"),E(R,ae,_e,"\u2A00","\\bigodot"),E(R,ae,_e,"\u222E","\\oint"),E(R,ae,_e,"\u222F","\\oiint"),E(R,ae,_e,"\u2230","\\oiiint"),E(R,ae,_e,"\u2A06","\\bigsqcup"),E(R,ae,_e,"\u222B","\\smallint"),E(at,ae,_t,"\u2026","\\textellipsis"),E(R,ae,_t,"\u2026","\\mathellipsis"),E(at,ae,_t,"\u2026","\\ldots",!0),E(R,ae,_t,"\u2026","\\ldots",!0),E(R,ae,_t,"\u22EF","\\@cdots",!0),E(R,ae,_t,"\u22F1","\\ddots",!0),E(R,ae,ge,"\u22EE","\\varvdots"),E(R,ae,Ft,"\u02CA","\\acute"),E(R,ae,Ft,"\u02CB","\\grave"),E(R,ae,Ft,"\xA8","\\ddot"),E(R,ae,Ft,"~","\\tilde"),E(R,ae,Ft,"\u02C9","\\bar"),E(R,ae,Ft,"\u02D8","\\breve"),E(R,ae,Ft,"\u02C7","\\check"),E(R,ae,Ft,"^","\\hat"),E(R,ae,Ft,"\u20D7","\\vec"),E(R,ae,Ft,"\u02D9","\\dot"),E(R,ae,Ft,"\u02DA","\\mathring"),E(R,ae,xe,"\u0131","\\imath",!0),E(R,ae,xe,"\u0237","\\jmath",!0),E(at,ae,ge,"\u0131","\\i",!0),E(at,ae,ge,"\u0237","\\j",!0),E(at,ae,ge,"\xDF","\\ss",!0),E(at,ae,ge,"\xE6","\\ae",!0),E(at,ae,ge,"\xE6","\\ae",!0),E(at,ae,ge,"\u0153","\\oe",!0),E(at,ae,ge,"\xF8","\\o",!0),E(at,ae,ge,"\xC6","\\AE",!0),E(at,ae,ge,"\u0152","\\OE",!0),E(at,ae,ge,"\xD8","\\O",!0),E(at,ae,Ft,"\u02CA","\\'"),E(at,ae,Ft,"\u02CB","\\`"),E(at,ae,Ft,"\u02C6","\\^"),E(at,ae,Ft,"\u02DC","\\~"),E(at,ae,Ft,"\u02C9","\\="),E(at,ae,Ft,"\u02D8","\\u"),E(at,ae,Ft,"\u02D9","\\."),E(at,ae,Ft,"\u02DA","\\r"),E(at,ae,Ft,"\u02C7","\\v"),E(at,ae,Ft,"\xA8",'\\"'),E(at,ae,Ft,"\u02DD","\\H"),E(at,ae,Ft,"\u25EF","\\textcircled");var Ht={"--":!0,"---":!0,"``":!0,"''":!0};E(at,ae,ge,"\u2013","--"),E(at,ae,ge,"\u2013","\\textendash"),E(at,ae,ge,"\u2014","---"),E(at,ae,ge,"\u2014","\\textemdash"),E(at,ae,ge,"\u2018","`"),E(at,ae,ge,"\u2018","\\textquoteleft"),E(at,ae,ge,"\u2019","'"),E(at,ae,ge,"\u2019","\\textquoteright"),E(at,ae,ge,"\u201C","``"),E(at,ae,ge,"\u201C","\\textquotedblleft"),E(at,ae,ge,"\u201D","''"),E(at,ae,ge,"\u201D","\\textquotedblright"),E(R,ae,ge,"\xB0","\\degree",!0),E(at,ae,ge,"\xB0","\\degree"),E(at,ae,ge,"\xB0","\\textdegree",!0),E(R,ae,xe,"\xA3","\\pounds"),E(R,ae,xe,"\xA3","\\mathsterling",!0),E(at,ae,xe,"\xA3","\\pounds"),E(at,ae,xe,"\xA3","\\textsterling",!0),E(R,Y,ge,"\u2720","\\maltese"),E(at,Y,ge,"\u2720","\\maltese"),E(at,ae,Rt,"\xA0","\\ "),E(at,ae,Rt,"\xA0"," "),E(at,ae,Rt,"\xA0","~");for(var cn='0123456789/@."',mt=0;mt<cn.length;mt++){var ne=cn.charAt(mt);E(R,ae,ge,ne,ne)}for(var we='0123456789!@*()-=+[]<>|";:?/.,',B=0;B<we.length;B++){var xt=we.charAt(B);E(at,ae,ge,xt,xt)}for(var lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ot=0;ot<lt.length;ot++){var $t=lt.charAt(ot);E(R,ae,xe,$t,$t),E(at,ae,ge,$t,$t)}E(R,Y,ge,"C","\u2102"),E(at,Y,ge,"C","\u2102"),E(R,Y,ge,"H","\u210D"),E(at,Y,ge,"H","\u210D"),E(R,Y,ge,"N","\u2115"),E(at,Y,ge,"N","\u2115"),E(R,Y,ge,"P","\u2119"),E(at,Y,ge,"P","\u2119"),E(R,Y,ge,"Q","\u211A"),E(at,Y,ge,"Q","\u211A"),E(R,Y,ge,"R","\u211D"),E(at,Y,ge,"R","\u211D"),E(R,Y,ge,"Z","\u2124"),E(at,Y,ge,"Z","\u2124"),E(R,ae,xe,"h","\u210E"),E(at,ae,xe,"h","\u210E");for(var Bt="",zt=0;zt<lt.length;zt++){var re=lt.charAt(zt);Bt=String.fromCharCode(55349,56320+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56372+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56424+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56580+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56736+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56788+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56840+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56944+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),zt<26&&(Bt=String.fromCharCode(55349,56632+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt),Bt=String.fromCharCode(55349,56476+zt),E(R,ae,xe,re,Bt),E(at,ae,ge,re,Bt))}Bt="\u{1D55C}",E(R,ae,xe,"k",Bt),E(at,ae,ge,"k",Bt);for(var ve=0;ve<10;ve++){var wt=ve.toString();Bt=String.fromCharCode(55349,57294+ve),E(R,ae,xe,wt,Bt),E(at,ae,ge,wt,Bt),Bt=String.fromCharCode(55349,57314+ve),E(R,ae,xe,wt,Bt),E(at,ae,ge,wt,Bt),Bt=String.fromCharCode(55349,57324+ve),E(R,ae,xe,wt,Bt),E(at,ae,ge,wt,Bt),Bt=String.fromCharCode(55349,57334+ve),E(R,ae,xe,wt,Bt),E(at,ae,ge,wt,Bt)}for(var Ne="\xC7\xD0\xDE\xE7\xFE",Be=0;Be<Ne.length;Be++){var ue=Ne.charAt(Be);E(R,ae,xe,ue,ue),E(at,ae,ge,ue,ue)}E(at,ae,ge,"\xF0","\xF0"),E(at,ae,ge,"\u2013","\u2013"),E(at,ae,ge,"\u2014","\u2014"),E(at,ae,ge,"\u2018","\u2018"),E(at,ae,ge,"\u2019","\u2019"),E(at,ae,ge,"\u201C","\u201C"),E(at,ae,ge,"\u201D","\u201D");var Ie=[["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"]],Fe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],$e=function(c,f){var h=c.charCodeAt(0),x=c.charCodeAt(1),k=(h-55296)*1024+(x-56320)+65536,J=f==="math"?0:1;if(119808<=k&&k<120484){var Oe=Math.floor((k-119808)/26);return[Ie[Oe][2],Ie[Oe][J]]}else if(120782<=k&&k<=120831){var qe=Math.floor((k-120782)/10);return[Fe[qe][2],Fe[qe][J]]}else{if(k===120485||k===120486)return[Ie[0][2],Ie[0][J]];if(120486<k&&k<120782)return["",""];throw new g("Unsupported character: "+c)}},ut=[[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]],Gt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sn=function(c,f){return f.size<2?c:ut[c-1][f.size-1]},je=function(){function j(f){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=f.style,this.color=f.color,this.size=f.size||j.BASESIZE,this.textSize=f.textSize||this.size,this.phantom=!!f.phantom,this.font=f.font||"",this.fontFamily=f.fontFamily||"",this.fontWeight=f.fontWeight||"",this.fontShape=f.fontShape||"",this.sizeMultiplier=Gt[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}var c=j.prototype;return c.extend=function(h){var x={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 k in h)h.hasOwnProperty(k)&&(x[k]=h[k]);return new j(x)},c.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:sn(this.textSize,h)})},c.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},c.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:Gt[h-1]})},c.havingBaseStyle=function(h){h=h||this.style.text();var x=sn(j.BASESIZE,h);return this.size===x&&this.textSize===j.BASESIZE&&this.style===h?this:this.extend({style:h,size:x})},c.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},c.withColor=function(h){return this.extend({color:h})},c.withPhantom=function(){return this.extend({phantom:!0})},c.withFont=function(h){return this.extend({font:h})},c.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},c.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},c.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},c.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},c.baseSizingClasses=function(){return this.size!==j.BASESIZE?["sizing","reset-size"+this.size,"size"+j.BASESIZE]:[]},c.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=pt(this.size)),this._fontMetrics},c.getColor=function(){return this.phantom?"transparent":this.color},j}();je.BASESIZE=6;var ct=je,Dt={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},qt={ex:!0,em:!0,mu:!0},Jt=function(c){return typeof c!="string"&&(c=c.unit),c in Dt||c in qt||c==="ex"},Ge=function(c,f){var h;if(c.unit in Dt)h=Dt[c.unit]/f.fontMetrics().ptPerEm/f.sizeMultiplier;else if(c.unit==="mu")h=f.fontMetrics().cssEmPerMu;else{var x;if(f.style.isTight()?x=f.havingStyle(f.style.text()):x=f,c.unit==="ex")h=x.fontMetrics().xHeight;else if(c.unit==="em")h=x.fontMetrics().quad;else throw new g("Invalid unit: '"+c.unit+"'");x!==f&&(h*=x.sizeMultiplier/f.sizeMultiplier)}return Math.min(c.number*h,f.maxSize)},ft=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Mt=function(c,f,h){return gt[h][c]&&gt[h][c].replace&&(c=gt[h][c].replace),{value:c,metrics:Nt(c,f,h)}},Ye=function(c,f,h,x,k){var J=Mt(c,f,h),Oe=J.metrics;c=J.value;var qe;if(Oe){var Et=Oe.italic;(h==="text"||x&&x.font==="mathit")&&(Et=0),qe=new Se(c,Oe.height,Oe.depth,Et,Oe.skew,Oe.width,k)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+c+"' in style '"+f+"' and mode '"+h+"'")),qe=new Se(c,0,0,0,0,0,k);if(x){qe.maxFontSize=x.sizeMultiplier,x.style.isTight()&&qe.classes.push("mtight");var Qt=x.getColor();Qt&&(qe.style.color=Qt)}return qe},jt=function(c,f,h,x){return x===void 0&&(x=[]),h.font==="boldsymbol"&&Mt(c,"Main-Bold",f).metrics?Ye(c,"Main-Bold",f,h,x.concat(["mathbf"])):c==="\\"||gt[f][c].font==="main"?Ye(c,"Main-Regular",f,h,x):Ye(c,"AMS-Regular",f,h,x.concat(["amsrm"]))},rn=function(c,f,h,x){return/[0-9]/.test(c.charAt(0))||G.contains(ft,c)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},an=function(c,f,h,x){return G.contains(ft,c)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(c.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},nn=function(c,f,h,x){return Mt(c,"Math-BoldItalic",f).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},mn=function(c,f,h){var x=c.mode,k=c.text,J=["mord"],Oe=x==="math"||x==="text"&&f.font,qe=Oe?f.font:f.fontFamily;if(k.charCodeAt(0)===55349){var Et=$e(k,x),Qt=Et[0],dn=Et[1];return Ye(k,Qt,x,f,J.concat(dn))}else if(qe){var En,Nn;if(qe==="boldsymbol"||qe==="mathnormal"){var Un=qe==="boldsymbol"?nn(k,x,f,J):an(k,x,f,J);En=Un.fontName,Nn=[Un.fontClass]}else G.contains(ft,k)?(En="Main-Italic",Nn=["mathit"]):Oe?(En=Rn[qe].fontName,Nn=[qe]):(En=Jn(qe,f.fontWeight,f.fontShape),Nn=[qe,f.fontWeight,f.fontShape]);if(Mt(k,En,x).metrics)return Ye(k,En,x,f,J.concat(Nn));if(Ht.hasOwnProperty(k)&&En.substr(0,10)==="Typewriter"){for(var Kn=[],ir=0;ir<k.length;ir++)Kn.push(Ye(k[ir],En,x,f,J.concat(Nn)));return Dn(Kn)}}if(h==="mathord"){var er=rn(k,x,f,J);return Ye(k,er.fontName,x,f,J.concat([er.fontClass]))}else if(h==="textord"){var nr=gt[x][k]&&gt[x][k].font;if(nr==="ams"){var hr=Jn("amsrm",f.fontWeight,f.fontShape);return Ye(k,hr,x,f,J.concat("amsrm",f.fontWeight,f.fontShape))}else if(nr==="main"||!nr){var Tr=Jn("textrm",f.fontWeight,f.fontShape);return Ye(k,Tr,x,f,J.concat(f.fontWeight,f.fontShape))}else{var Lr=Jn(nr,f.fontWeight,f.fontShape);return Ye(k,Lr,x,f,J.concat(Lr,f.fontWeight,f.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},bn=function(c,f){if(bt(c.classes)!==bt(f.classes)||c.skew!==f.skew||c.maxFontSize!==f.maxFontSize)return!1;for(var h in c.style)if(c.style.hasOwnProperty(h)&&c.style[h]!==f.style[h])return!1;for(var x in f.style)if(f.style.hasOwnProperty(x)&&c.style[x]!==f.style[x])return!1;return!0},In=function(c){for(var f=0;f<c.length-1;f++){var h=c[f],x=c[f+1];h instanceof Se&&x instanceof Se&&bn(h,x)&&(h.text+=x.text,h.height=Math.max(h.height,x.height),h.depth=Math.max(h.depth,x.depth),h.italic=x.italic,c.splice(f+1,1),f--)}return c},_n=function(c){for(var f=0,h=0,x=0,k=0;k<c.children.length;k++){var J=c.children[k];J.height>f&&(f=J.height),J.depth>h&&(h=J.depth),J.maxFontSize>x&&(x=J.maxFontSize)}c.height=f,c.depth=h,c.maxFontSize=x},Cn=function(c,f,h,x){var k=new nt(c,f,h,x);return _n(k),k},Zn=function(c,f,h,x){return new nt(c,f,h,x)},Ln=function(c,f,h){var x=Cn([c],[],f);return x.height=Math.max(h||f.fontMetrics().defaultRuleThickness,f.minRuleThickness),x.style.borderBottomWidth=x.height+"em",x.maxFontSize=1,x},rr=function(c,f,h,x){var k=new Ue(c,f,h,x);return _n(k),k},Dn=function(c){var f=new vt(c);return _n(f),f},jn=function(c,f){return c instanceof vt?Cn([],[c],f):c},Xn=function(c){if(c.positionType==="individualShift"){for(var f=c.children,h=[f[0]],x=-f[0].shift-f[0].elem.depth,k=x,J=1;J<f.length;J++){var Oe=-f[J].shift-k-f[J].elem.depth,qe=Oe-(f[J-1].elem.height+f[J-1].elem.depth);k=k+Oe,h.push({type:"kern",size:qe}),h.push(f[J])}return{children:h,depth:x}}var Et;if(c.positionType==="top"){for(var Qt=c.positionData,dn=0;dn<c.children.length;dn++){var En=c.children[dn];Qt-=En.type==="kern"?En.size:En.elem.height+En.elem.depth}Et=Qt}else if(c.positionType==="bottom")Et=-c.positionData;else{var Nn=c.children[0];if(Nn.type!=="elem")throw new Error('First child must have type "elem".');if(c.positionType==="shift")Et=-Nn.elem.depth-c.positionData;else if(c.positionType==="firstBaseline")Et=-Nn.elem.depth;else throw new Error("Invalid positionType "+c.positionType+".")}return{children:c.children,depth:Et}},Wn=function(c,f){for(var h=Xn(c),x=h.children,k=h.depth,J=0,Oe=0;Oe<x.length;Oe++){var qe=x[Oe];if(qe.type==="elem"){var Et=qe.elem;J=Math.max(J,Et.maxFontSize,Et.height)}}J+=2;var Qt=Cn(["pstrut"],[]);Qt.style.height=J+"em";for(var dn=[],En=k,Nn=k,Un=k,Kn=0;Kn<x.length;Kn++){var ir=x[Kn];if(ir.type==="kern")Un+=ir.size;else{var er=ir.elem,nr=ir.wrapperClasses||[],hr=ir.wrapperStyle||{},Tr=Cn(nr,[Qt,er],void 0,hr);Tr.style.top=-J-Un-er.depth+"em",ir.marginLeft&&(Tr.style.marginLeft=ir.marginLeft),ir.marginRight&&(Tr.style.marginRight=ir.marginRight),dn.push(Tr),Un+=er.height+er.depth}En=Math.min(En,Un),Nn=Math.max(Nn,Un)}var Lr=Cn(["vlist"],dn);Lr.style.height=Nn+"em";var pr;if(En<0){var Yr=Cn([],[]),ei=Cn(["vlist"],[Yr]);ei.style.height=-En+"em";var Ri=Cn(["vlist-s"],[new Se("\u200B")]);pr=[Cn(["vlist-r"],[Lr,Ri]),Cn(["vlist-r"],[ei])]}else pr=[Cn(["vlist-r"],[Lr])];var xi=Cn(["vlist-t"],pr);return pr.length===2&&xi.classes.push("vlist-t2"),xi.height=Nn,xi.depth=-En,xi},Gn=function(c,f){var h=Cn(["mspace"],[],f),x=Ge(c,f);return h.style.marginRight=x+"em",h},Jn=function(c,f,h){var x="";switch(c){case"amsrm":x="AMS";break;case"textrm":x="Main";break;case"textsf":x="SansSerif";break;case"texttt":x="Typewriter";break;default:x=c}var k;return f==="textbf"&&h==="textit"?k="BoldItalic":f==="textbf"?k="Bold":f==="textit"?k="Italic":k="Regular",x+"-"+k},Rn={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"}},Bn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ln=function(c,f){var h=Bn[c],x=h[0],k=h[1],J=h[2],Oe=new Ce(x),qe=new Ae([Oe],{width:k+"em",height:J+"em",style:"width:"+k+"em",viewBox:"0 0 "+1e3*k+" "+1e3*J,preserveAspectRatio:"xMinYMin"}),Et=Zn(["overlay"],[qe],f);return Et.height=J,Et.style.height=J+"em",Et.style.width=k+"em",Et},Tt={fontMap:Rn,makeSymbol:Ye,mathsym:jt,makeSpan:Cn,makeSvgSpan:Zn,makeLineSpan:Ln,makeAnchor:rr,makeFragment:Dn,wrapFragment:jn,makeVList:Wn,makeOrd:mn,makeGlue:Gn,staticSvg:ln,svgData:Bn,tryCombineChars:In};function Fn(j,c){var f=On(j,c);if(!f)throw new Error("Expected node of type "+c+", but got "+(j?"node of type "+j.type:String(j)));return f}function On(j,c){return j&&j.type===c?j:null}function sr(j,c){var f=dr(j,c);if(!f)throw new Error('Expected node of type "atom" and family "'+c+'", but got '+(j?j.type==="atom"?"atom of family "+j.family:"node of type "+j.type:String(j)));return f}function dr(j,c){return j&&j.type==="atom"&&j.family===c?j:null}function Ar(j){var c=ur(j);if(!c)throw new Error("Expected node of symbol group type, but got "+(j?"node of type "+j.type:String(j)));return c}function ur(j){return j&&(j.type==="atom"||Zt.hasOwnProperty(j.type))?j:null}var Yn={number:3,unit:"mu"},vn={number:4,unit:"mu"},hn={number:5,unit:"mu"},xn={mord:{mop:Yn,mbin:vn,mrel:hn,minner:Yn},mop:{mord:Yn,mop:Yn,mrel:hn,minner:Yn},mbin:{mord:vn,mop:vn,mopen:vn,minner:vn},mrel:{mord:hn,mop:hn,mopen:hn,minner:hn},mopen:{},mclose:{mop:Yn,mbin:vn,mrel:hn,minner:Yn},mpunct:{mord:Yn,mop:Yn,mrel:hn,mopen:Yn,mclose:Yn,mpunct:Yn,minner:Yn},minner:{mord:Yn,mop:Yn,mbin:vn,mrel:hn,mopen:Yn,mpunct:Yn,minner:Yn}},Qn={mord:{mop:Yn},mop:{mord:Yn,mop:Yn},mbin:{},mrel:{},mopen:{},mclose:{mop:Yn},mpunct:{},minner:{mop:Yn}},tr={},yr={},Er={};function $n(j){for(var c=j.type,f=j.names,h=j.props,x=j.handler,k=j.htmlBuilder,J=j.mathmlBuilder,Oe={type:c,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:x},qe=0;qe<f.length;++qe)tr[f[qe]]=Oe;c&&(k&&(yr[c]=k),J&&(Er[c]=J))}function Sr(j){var c=j.type,f=j.htmlBuilder,h=j.mathmlBuilder;$n({type:c,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:f,mathmlBuilder:h})}var Dr=function(c){var f=On(c,"ordgroup");return f?f.body:[c]},$r=Tt.makeSpan,Mr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Or=["rightmost","mrel","mclose","mpunct"],Cr={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT},zr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},wr=function(c,f,h,x){x===void 0&&(x=[null,null]);for(var k=[],J=0;J<c.length;J++){var Oe=or(c[J],f);if(Oe instanceof vt){var qe=Oe.children;k.push.apply(k,qe)}else k.push(Oe)}if(!h)return k;var Et=f;if(c.length===1){var Qt=On(c[0],"sizing")||On(c[0],"styling");Qt&&(Qt.type==="sizing"?Et=f.havingSize(Qt.size):Qt.type==="styling"&&(Et=f.havingStyle(Cr[Qt.style])))}var dn=$r([x[0]||"leftmost"],[],f),En=$r([x[1]||"rightmost"],[],f);return Vr(k,function(Nn,Un){var Kn=Un.classes[0],ir=Nn.classes[0];Kn==="mbin"&&G.contains(Or,ir)?Un.classes[0]="mord":ir==="mbin"&&G.contains(Mr,Kn)&&(Nn.classes[0]="mord")},{node:dn},En),Vr(k,function(Nn,Un){var Kn=Tn(Un),ir=Tn(Nn),er=Kn&&ir?Nn.hasClass("mtight")?Qn[Kn][ir]:xn[Kn][ir]:null;if(er)return Tt.makeGlue(er,Et)},{node:dn},En),k},Vr=function j(c,f,h,x){x&&c.push(x);for(var k=0;k<c.length;k++){var J=c[k],Oe=Ir(J);if(Oe){j(Oe.children,f,h);continue}if(J.classes[0]!=="mspace"){var qe=f(J,h.node);qe&&(h.insertAfter?h.insertAfter(qe):(c.unshift(qe),k++)),h.node=J,h.insertAfter=function(Et){return function(Qt){c.splice(Et+1,0,Qt),k++}}(k)}}x&&c.pop()},Ir=function(c){return c instanceof vt||c instanceof Ue?c:null},tn=function j(c,f){var h=Ir(c);if(h){var x=h.children;if(x.length){if(f==="right")return j(x[x.length-1],"right");if(f==="left")return j(x[0],"left")}}return c},Tn=function(c,f){return c?(f&&(c=tn(c,f)),zr[c.classes[0]]||null):null},cr=function(c,f){var h=["nulldelimiter"].concat(c.baseSizingClasses());return $r(f.concat(h))},or=function(c,f,h){if(!c)return $r();if(yr[c.type]){var x=yr[c.type](c,f);if(h&&f.size!==h.size){x=$r(f.sizingClasses(h),[x],f);var k=f.sizeMultiplier/h.sizeMultiplier;x.height*=k,x.depth*=k}return x}else throw new g("Got group of unknown type: '"+c.type+"'")};function Br(j,c){var f=$r(["base"],j,c),h=$r(["strut"]);return h.style.height=f.height+f.depth+"em",h.style.verticalAlign=-f.depth+"em",f.children.unshift(h),f}function ri(j,c){var f=null;j.length===1&&j[0].type==="tag"&&(f=j[0].tag,j=j[0].body);for(var h=wr(j,c,!0),x=[],k=[],J=0;J<h.length;J++)if(k.push(h[J]),h[J].hasClass("mbin")||h[J].hasClass("mrel")||h[J].hasClass("allowbreak")){for(var Oe=!1;J<h.length-1&&h[J+1].hasClass("mspace")&&!h[J+1].hasClass("newline");)J++,k.push(h[J]),h[J].hasClass("nobreak")&&(Oe=!0);Oe||(x.push(Br(k,c)),k=[])}else h[J].hasClass("newline")&&(k.pop(),k.length>0&&(x.push(Br(k,c)),k=[]),x.push(h[J]));k.length>0&&x.push(Br(k,c));var qe;f&&(qe=Br(wr(f,c,!0)),qe.classes=["tag"],x.push(qe));var Et=$r(["katex-html"],x);if(Et.setAttribute("aria-hidden","true"),qe){var Qt=qe.children[0];Qt.style.height=Et.height+Et.depth+"em",Qt.style.verticalAlign=-Et.depth+"em"}return Et}function vi(j){return new vt(j)}var _r=function(){function j(f,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=f,this.attributes={},this.children=h||[]}var c=j.prototype;return c.setAttribute=function(h,x){this.attributes[h]=x},c.getAttribute=function(h){return this.attributes[h]},c.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&h.setAttribute(x,this.attributes[x]);for(var k=0;k<this.children.length;k++)h.appendChild(this.children[k].toNode());return h},c.toMarkup=function(){var h="<"+this.type;for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&(h+=" "+x+'="',h+=G.escape(this.attributes[x]),h+='"');h+=">";for(var k=0;k<this.children.length;k++)h+=this.children[k].toMarkup();return h+="</"+this.type+">",h},c.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},j}(),mr=function(){function j(f){this.text=void 0,this.text=f}var c=j.prototype;return c.toNode=function(){return document.createTextNode(this.text)},c.toMarkup=function(){return G.escape(this.toText())},c.toText=function(){return this.text},j}(),bi=function(){function j(f){this.width=void 0,this.character=void 0,this.width=f,f>=.05555&&f<=.05556?this.character="\u200A":f>=.1666&&f<=.1667?this.character="\u2009":f>=.2222&&f<=.2223?this.character="\u2005":f>=.2777&&f<=.2778?this.character="\u2005\u200A":f>=-.05556&&f<=-.05555?this.character="\u200A\u2063":f>=-.1667&&f<=-.1666?this.character="\u2009\u2063":f>=-.2223&&f<=-.2222?this.character="\u205F\u2063":f>=-.2778&&f<=-.2777?this.character="\u2005\u2063":this.character=null}var c=j.prototype;return c.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},c.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},c.toText=function(){return this.character?this.character:" "},j}(),ar={MathNode:_r,TextNode:mr,SpaceNode:bi,newDocumentFragment:vi},wi=function(c,f,h){return gt[f][c]&&gt[f][c].replace&&c.charCodeAt(0)!==55349&&!(Ht.hasOwnProperty(c)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(c=gt[f][c].replace),new ar.TextNode(c)},Yi=function(c){return c.length===1?c[0]:new ar.MathNode("mrow",c)},Wi=function(c,f){if(f.fontFamily==="texttt")return"monospace";if(f.fontFamily==="textsf")return f.fontShape==="textit"&&f.fontWeight==="textbf"?"sans-serif-bold-italic":f.fontShape==="textit"?"sans-serif-italic":f.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(f.fontShape==="textit"&&f.fontWeight==="textbf")return"bold-italic";if(f.fontShape==="textit")return"italic";if(f.fontWeight==="textbf")return"bold";var h=f.font;if(!h||h==="mathnormal")return null;var x=c.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var k=c.text;if(G.contains(["\\imath","\\jmath"],k))return null;gt[x][k]&&gt[x][k].replace&&(k=gt[x][k].replace);var J=Tt.fontMap[h].fontName;return Nt(k,J,x)?Tt.fontMap[h].variant:null},Mi=function(c,f,h){if(c.length===1){var x=Gr(c[0],f);return h&&x instanceof _r&&x.type==="mo"&&(x.setAttribute("lspace","0em"),x.setAttribute("rspace","0em")),[x]}for(var k=[],J,Oe=0;Oe<c.length;Oe++){var qe=Gr(c[Oe],f);if(qe instanceof _r&&J instanceof _r){if(qe.type==="mtext"&&J.type==="mtext"&&qe.getAttribute("mathvariant")===J.getAttribute("mathvariant")){var Et;(Et=J.children).push.apply(Et,qe.children);continue}else if(qe.type==="mn"&&J.type==="mn"){var Qt;(Qt=J.children).push.apply(Qt,qe.children);continue}else if(qe.type==="mi"&&qe.children.length===1&&J.type==="mn"){var dn=qe.children[0];if(dn instanceof mr&&dn.text==="."){var En;(En=J.children).push.apply(En,qe.children);continue}}else if(J.type==="mi"&&J.children.length===1){var Nn=J.children[0];if(Nn instanceof mr&&Nn.text==="\u0338"&&(qe.type==="mo"||qe.type==="mi"||qe.type==="mn")){var Un=qe.children[0];Un instanceof mr&&Un.text.length>0&&(Un.text=Un.text.slice(0,1)+"\u0338"+Un.text.slice(1),k.pop())}}}k.push(qe),J=qe}return k},ki=function(c,f,h){return Yi(Mi(c,f,h))},Gr=function(c,f){if(!c)return new ar.MathNode("mrow");if(Er[c.type]){var h=Er[c.type](c,f);return h}else throw new g("Got group of unknown type: '"+c.type+"'")};function Di(j,c,f,h){var x=Mi(j,f),k;x.length===1&&x[0]instanceof _r&&G.contains(["mrow","mtable"],x[0].type)?k=x[0]:k=new ar.MathNode("mrow",x);var J=new ar.MathNode("annotation",[new ar.TextNode(c)]);J.setAttribute("encoding","application/x-tex");var Oe=new ar.MathNode("semantics",[k,J]),qe=new ar.MathNode("math",[Oe]);qe.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Et=h?"katex":"katex-mathml";return Tt.makeSpan([Et],[qe])}var ra=function(c){return new ct({style:c.displayMode?w.DISPLAY:w.TEXT,maxSize:c.maxSize,minRuleThickness:c.minRuleThickness})},zi=function(c,f){if(f.displayMode){var h=["katex-display"];f.leqno&&h.push("leqno"),f.fleqn&&h.push("fleqn"),c=Tt.makeSpan(h,[c])}return c},hi=function(c,f,h){var x=ra(h),k;if(h.output==="mathml")return Di(c,f,x,!0);if(h.output==="html"){var J=ri(c,x);k=Tt.makeSpan(["katex"],[J])}else{var Oe=Di(c,f,x,!1),qe=ri(c,x);k=Tt.makeSpan(["katex"],[Oe,qe])}return zi(k,h)},Ni=function(c,f,h){var x=ra(h),k=ri(c,x),J=Tt.makeSpan(["katex"],[k]);return zi(J,h)},Zi=hi,Fr={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"},ti=function(c){var f=new ar.MathNode("mo",[new ar.TextNode(Fr[c.substr(1)])]);return f.setAttribute("stretchy","true"),f},vr={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]},br=function(c){return c.type==="ordgroup"?c.body.length:1},Pr=function(c,f){function h(){var qe=4e5,Et=c.label.substr(1);if(G.contains(["widehat","widecheck","widetilde","utilde"],Et)){var Qt=c,dn=br(Qt.base),En,Nn,Un;if(dn>5)Et==="widehat"||Et==="widecheck"?(En=420,qe=2364,Un=.42,Nn=Et+"4"):(En=312,qe=2340,Un=.34,Nn="tilde4");else{var Kn=[1,1,2,2,3,3][dn];Et==="widehat"||Et==="widecheck"?(qe=[0,1062,2364,2364,2364][Kn],En=[0,239,300,360,420][Kn],Un=[0,.24,.3,.3,.36,.42][Kn],Nn=Et+Kn):(qe=[0,600,1033,2339,2340][Kn],En=[0,260,286,306,312][Kn],Un=[0,.26,.286,.3,.306,.34][Kn],Nn="tilde"+Kn)}var ir=new Ce(Nn),er=new Ae([ir],{width:"100%",height:Un+"em",viewBox:"0 0 "+qe+" "+En,preserveAspectRatio:"none"});return{span:Tt.makeSvgSpan([],[er],f),minWidth:0,height:Un}}else{var nr=[],hr=vr[Et],Tr=hr[0],Lr=hr[1],pr=hr[2],Yr=pr/1e3,ei=Tr.length,Ri,xi;if(ei===1){var fn=hr[3];Ri=["hide-tail"],xi=[fn]}else if(ei===2)Ri=["halfarrow-left","halfarrow-right"],xi=["xMinYMin","xMaxYMin"];else if(ei===3)Ri=["brace-left","brace-center","brace-right"],xi=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+ei+" children.");for(var Oi=0;Oi<ei;Oi++){var ya=new Ce(Tr[Oi]),yi=new Ae([ya],{width:"400em",height:Yr+"em",viewBox:"0 0 "+qe+" "+pr,preserveAspectRatio:xi[Oi]+" slice"}),ui=Tt.makeSvgSpan([Ri[Oi]],[yi],f);if(ei===1)return{span:ui,minWidth:Lr,height:Yr};ui.style.height=Yr+"em",nr.push(ui)}return{span:Tt.makeSpan(["stretchy"],nr,f),minWidth:Lr,height:Yr}}}var x=h(),k=x.span,J=x.minWidth,Oe=x.height;return k.height=Oe,k.style.height=Oe+"em",J>0&&(k.style.minWidth=J+"em"),k},Wr=function(c,f,h,x){var k,J=c.height+c.depth+2*h;if(/fbox|color/.test(f)){if(k=Tt.makeSpan(["stretchy",f],[],x),f==="fbox"){var Oe=x.color&&x.getColor();Oe&&(k.style.borderColor=Oe)}}else{var qe=[];/^[bx]cancel$/.test(f)&&qe.push(new ke({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(f)&&qe.push(new ke({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Et=new Ae(qe,{width:"100%",height:J+"em"});k=Tt.makeSvgSpan([],[Et],x)}return k.height=J,k.style.height=J+"em",k},Ci={encloseSpan:Wr,mathMLnode:ti,svgSpan:Pr},xr=function(c,f){var h,x,k=On(c,"supsub"),J;k?(x=Fn(k.base,"accent"),h=x.base,k.base=h,J=yt(or(k,f)),k.base=x):(x=Fn(c,"accent"),h=x.base);var Oe=or(h,f.havingCrampedStyle()),qe=x.isShifty&&G.isCharacterBox(h),Et=0;if(qe){var Qt=G.getBaseElem(h),dn=or(Qt,f.havingCrampedStyle());Et=Xe(dn).skew}var En=Math.min(Oe.height,f.fontMetrics().xHeight),Nn;if(x.isStretchy)Nn=Ci.svgSpan(x,f),Nn=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe},{type:"elem",elem:Nn,wrapperClasses:["svg-align"],wrapperStyle:Et>0?{width:"calc(100% - "+2*Et+"em)",marginLeft:2*Et+"em"}:void 0}]},f);else{var Un,Kn;x.label==="\\vec"?(Un=Tt.staticSvg("vec",f),Kn=Tt.svgData.vec[1]):(Un=Tt.makeOrd({mode:x.mode,text:x.label},f,"textord"),Un=Xe(Un),Un.italic=0,Kn=Un.width),Nn=Tt.makeSpan(["accent-body"],[Un]);var ir=x.label==="\\textcircled";ir&&(Nn.classes.push("accent-full"),En=Oe.height);var er=Et;ir||(er-=Kn/2),Nn.style.left=er+"em",x.label==="\\textcircled"&&(Nn.style.top=".2em"),Nn=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe},{type:"kern",size:-En},{type:"elem",elem:Nn}]},f)}var nr=Tt.makeSpan(["mord","accent"],[Nn],f);return J?(J.children[0]=nr,J.height=Math.max(nr.height,J.height),J.classes[0]="mord",J):nr},Rr=function(c,f){var h=c.isStretchy?Ci.mathMLnode(c.label):new ar.MathNode("mo",[wi(c.label,c.mode)]),x=new ar.MathNode("mover",[Gr(c.base,f),h]);return x.setAttribute("accent","true"),x},Nr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(j){return"\\"+j}).join("|"));$n({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(c,f){var h=f[0],x=!Nr.test(c.funcName),k=!x||c.funcName==="\\widehat"||c.funcName==="\\widetilde"||c.funcName==="\\widecheck";return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:x,isShifty:k,base:h}},htmlBuilder:xr,mathmlBuilder:Rr}),$n({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(c,f){var h=f[0];return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:xr,mathmlBuilder:Rr}),$n({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];return{type:"accentUnder",mode:h.mode,label:x,base:k}},htmlBuilder:function(c,f){var h=or(c.base,f),x=Ci.svgSpan(c,f),k=c.label==="\\utilde"?.12:0,J=Tt.makeVList({positionType:"bottom",positionData:x.height+k,children:[{type:"elem",elem:x,wrapperClasses:["svg-align"]},{type:"kern",size:k},{type:"elem",elem:h}]},f);return Tt.makeSpan(["mord","accentunder"],[J],f)},mathmlBuilder:function(c,f){var h=Ci.mathMLnode(c.label),x=new ar.MathNode("munder",[Gr(c.base,f),h]);return x.setAttribute("accentunder","true"),x}});var Zr=function(c){var f=new ar.MathNode("mpadded",c?[c]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};$n({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,f,h){var x=c.parser,k=c.funcName;return{type:"xArrow",mode:x.mode,label:k,body:f[0],below:h[0]}},htmlBuilder:function(c,f){var h=f.style,x=f.havingStyle(h.sup()),k=Tt.wrapFragment(or(c.body,x,f),f);k.classes.push("x-arrow-pad");var J;c.below&&(x=f.havingStyle(h.sub()),J=Tt.wrapFragment(or(c.below,x,f),f),J.classes.push("x-arrow-pad"));var Oe=Ci.svgSpan(c,f),qe=-f.fontMetrics().axisHeight+.5*Oe.height,Et=-f.fontMetrics().axisHeight-.5*Oe.height-.111;(k.depth>.25||c.label==="\\xleftequilibrium")&&(Et-=k.depth);var Qt;if(J){var dn=-f.fontMetrics().axisHeight+J.height+.5*Oe.height+.111;Qt=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:Et},{type:"elem",elem:Oe,shift:qe},{type:"elem",elem:J,shift:dn}]},f)}else Qt=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:Et},{type:"elem",elem:Oe,shift:qe}]},f);return Qt.children[0].children[0].children[1].classes.push("svg-align"),Tt.makeSpan(["mrel","x-arrow"],[Qt],f)},mathmlBuilder:function(c,f){var h=Ci.mathMLnode(c.label),x;if(c.body){var k=Zr(Gr(c.body,f));if(c.below){var J=Zr(Gr(c.below,f));x=new ar.MathNode("munderover",[h,J,k])}else x=new ar.MathNode("mover",[h,k])}else if(c.below){var Oe=Zr(Gr(c.below,f));x=new ar.MathNode("munder",[h,Oe])}else x=Zr(),x=new ar.MathNode("mover",[h,x]);return x}}),$n({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){for(var h=c.parser,x=Fn(f[0],"ordgroup"),k=x.body,J="",Oe=0;Oe<k.length;Oe++){var qe=Fn(k[Oe],"textord");J+=qe.text}var Et=parseInt(J);if(isNaN(Et))throw new g("\\@char has non-numeric argument "+J);return{type:"textord",mode:h.mode,text:String.fromCharCode(Et)}}});var ni=function(c,f){var h=wr(c.body,f.withColor(c.color),!1);return Tt.makeFragment(h)},ma=function(c,f){var h=Mi(c.body,f.withColor(c.color)),x=new ar.MathNode("mstyle",h);return x.setAttribute("mathcolor",c.color),x};$n({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(c,f){var h=c.parser,x=Fn(f[0],"color-token").color,k=f[1];return{type:"color",mode:h.mode,color:x,body:Dr(k)}},htmlBuilder:ni,mathmlBuilder:ma}),$n({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(c,f){var h=c.parser,x=c.breakOnTokenText,k=Fn(f[0],"color-token").color;h.gullet.macros.set("\\current@color",k);var J=h.parseExpression(!0,x);return{type:"color",mode:h.mode,color:k,body:J}},htmlBuilder:ni,mathmlBuilder:ma}),$n({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,f,h){var x=c.parser,k=c.funcName,J=h[0],Oe=k==="\\cr",qe=!1;return Oe||(x.settings.displayMode&&x.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?qe=!1:qe=!0),{type:"cr",mode:x.mode,newLine:qe,newRow:Oe,size:J&&Fn(J,"size").value}},htmlBuilder:function(c,f){if(c.newRow)throw new g("\\cr valid only within a tabular/array environment");var h=Tt.makeSpan(["mspace"],[],f);return c.newLine&&(h.classes.push("newline"),c.size&&(h.style.marginTop=Ge(c.size,f)+"em")),h},mathmlBuilder:function(c,f){var h=new ar.MathNode("mspace");return c.newLine&&(h.setAttribute("linebreak","newline"),c.size&&h.setAttribute("height",Ge(c.size,f)+"em")),h}});var Xi=function(c,f,h){var x=gt.math[c]&&gt.math[c].replace,k=Nt(x||c,f,h);if(!k)throw new Error("Unsupported symbol "+c+" and font size "+f+".");return k},ua=function(c,f,h,x){var k=h.havingBaseStyle(f),J=Tt.makeSpan(x.concat(k.sizingClasses(h)),[c],h),Oe=k.sizeMultiplier/h.sizeMultiplier;return J.height*=Oe,J.depth*=Oe,J.maxFontSize=k.sizeMultiplier,J},fi=function(c,f,h){var x=f.havingBaseStyle(h),k=(1-f.sizeMultiplier/x.sizeMultiplier)*f.fontMetrics().axisHeight;c.classes.push("delimcenter"),c.style.top=k+"em",c.height-=k,c.depth+=k},ii=function(c,f,h,x,k,J){var Oe=Tt.makeSymbol(c,"Main-Regular",k,x),qe=ua(Oe,f,x,J);return h&&fi(qe,x,f),qe},Ti=function(c,f,h,x){return Tt.makeSymbol(c,"Size"+f+"-Regular",h,x)},Li=function(c,f,h,x,k,J){var Oe=Ti(c,f,k,x),qe=ua(Tt.makeSpan(["delimsizing","size"+f],[Oe],x),w.TEXT,x,J);return h&&fi(qe,x,w.TEXT),qe},ia=function(c,f,h){var x;f==="Size1-Regular"?x="delim-size1":x="delim-size4";var k=Tt.makeSpan(["delimsizinginner",x],[Tt.makeSpan([],[Tt.makeSymbol(c,f,h)])]);return{type:"elem",elem:k}},pa={type:"kern",size:-.005},Sa=function(c,f,h,x,k,J){var Oe,qe,Et,Qt;Oe=Et=Qt=c,qe=null;var dn="Size1-Regular";c==="\\uparrow"?Et=Qt="\u23D0":c==="\\Uparrow"?Et=Qt="\u2016":c==="\\downarrow"?Oe=Et="\u23D0":c==="\\Downarrow"?Oe=Et="\u2016":c==="\\updownarrow"?(Oe="\\uparrow",Et="\u23D0",Qt="\\downarrow"):c==="\\Updownarrow"?(Oe="\\Uparrow",Et="\u2016",Qt="\\Downarrow"):c==="["||c==="\\lbrack"?(Oe="\u23A1",Et="\u23A2",Qt="\u23A3",dn="Size4-Regular"):c==="]"||c==="\\rbrack"?(Oe="\u23A4",Et="\u23A5",Qt="\u23A6",dn="Size4-Regular"):c==="\\lfloor"||c==="\u230A"?(Et=Oe="\u23A2",Qt="\u23A3",dn="Size4-Regular"):c==="\\lceil"||c==="\u2308"?(Oe="\u23A1",Et=Qt="\u23A2",dn="Size4-Regular"):c==="\\rfloor"||c==="\u230B"?(Et=Oe="\u23A5",Qt="\u23A6",dn="Size4-Regular"):c==="\\rceil"||c==="\u2309"?(Oe="\u23A4",Et=Qt="\u23A5",dn="Size4-Regular"):c==="("||c==="\\lparen"?(Oe="\u239B",Et="\u239C",Qt="\u239D",dn="Size4-Regular"):c===")"||c==="\\rparen"?(Oe="\u239E",Et="\u239F",Qt="\u23A0",dn="Size4-Regular"):c==="\\{"||c==="\\lbrace"?(Oe="\u23A7",qe="\u23A8",Qt="\u23A9",Et="\u23AA",dn="Size4-Regular"):c==="\\}"||c==="\\rbrace"?(Oe="\u23AB",qe="\u23AC",Qt="\u23AD",Et="\u23AA",dn="Size4-Regular"):c==="\\lgroup"||c==="\u27EE"?(Oe="\u23A7",Qt="\u23A9",Et="\u23AA",dn="Size4-Regular"):c==="\\rgroup"||c==="\u27EF"?(Oe="\u23AB",Qt="\u23AD",Et="\u23AA",dn="Size4-Regular"):c==="\\lmoustache"||c==="\u23B0"?(Oe="\u23A7",Qt="\u23AD",Et="\u23AA",dn="Size4-Regular"):(c==="\\rmoustache"||c==="\u23B1")&&(Oe="\u23AB",Qt="\u23A9",Et="\u23AA",dn="Size4-Regular");var En=Xi(Oe,dn,k),Nn=En.height+En.depth,Un=Xi(Et,dn,k),Kn=Un.height+Un.depth,ir=Xi(Qt,dn,k),er=ir.height+ir.depth,nr=0,hr=1;if(qe!==null){var Tr=Xi(qe,dn,k);nr=Tr.height+Tr.depth,hr=2}var Lr=Nn+er+nr,pr=Math.max(0,Math.ceil((f-Lr)/(hr*Kn))),Yr=Lr+pr*hr*Kn,ei=x.fontMetrics().axisHeight;h&&(ei*=x.sizeMultiplier);var Ri=Yr/2-ei,xi=(pr+1)*.005-Kn,fn=[];if(fn.push(ia(Qt,dn,k)),qe===null)for(var Oi=0;Oi<pr;Oi++)fn.push(pa),fn.push(ia(Et,dn,k));else{for(var ya=0;ya<pr;ya++)fn.push(pa),fn.push(ia(Et,dn,k));fn.push({type:"kern",size:xi}),fn.push(ia(Et,dn,k)),fn.push(pa),fn.push(ia(qe,dn,k));for(var yi=0;yi<pr;yi++)fn.push(pa),fn.push(ia(Et,dn,k))}fn.push({type:"kern",size:xi}),fn.push(ia(Et,dn,k)),fn.push(pa),fn.push(ia(Oe,dn,k));var ui=x.havingBaseStyle(w.TEXT),ca=Tt.makeVList({positionType:"bottom",positionData:Ri,children:fn},ui);return ua(Tt.makeSpan(["delimsizing","mult"],[ca],ui),w.TEXT,x,J)},Da=80,Wa=.08,Ta=function(c,f,h,x,k){var J=tt(c,x,h),Oe=new Ce(c,J),qe=new Ae([Oe],{width:"400em",height:f+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Tt.makeSvgSpan(["hide-tail"],[qe],k)},vs=function(c,f){var h=f.havingBaseSizing(),x=ds("\\surd",c*h.sizeMultiplier,Ws,h),k=h.sizeMultiplier,J=Math.max(0,f.minRuleThickness-f.fontMetrics().sqrtRuleThickness),Oe,qe=0,Et=0,Qt=0,dn;return x.type==="small"?(Qt=1e3+1e3*J+Da,c<1?k=1:c<1.4&&(k=.7),qe=(1+J+Wa)/k,Et=(1+J)/k,Oe=Ta("sqrtMain",qe,Qt,J,f),Oe.style.minWidth="0.853em",dn=.833/k):x.type==="large"?(Qt=(1e3+Da)*Rs[x.size],Et=(Rs[x.size]+J)/k,qe=(Rs[x.size]+J+Wa)/k,Oe=Ta("sqrtSize"+x.size,qe,Qt,J,f),Oe.style.minWidth="1.02em",dn=1/k):(qe=c+J+Wa,Et=c+J,Qt=Math.floor(1e3*c+J)+Da,Oe=Ta("sqrtTall",qe,Qt,J,f),Oe.style.minWidth="0.742em",dn=1.056),Oe.height=Et,Oe.style.height=qe+"em",{span:Oe,advanceWidth:dn,ruleWidth:(f.fontMetrics().sqrtRuleThickness+J)*k}},Cs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ds=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],$a=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Rs=[0,1.2,1.8,2.4,3],za=function(c,f,h,x,k){if(c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle"),G.contains(Cs,c)||G.contains($a,c))return Li(c,f,!1,h,x,k);if(G.contains(Ds,c))return Sa(c,Rs[f],!1,h,x,k);throw new g("Illegal delimiter: '"+c+"'")},Fs=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$s=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"stack"}],Ws=[{type:"small",style:w.SCRIPTSCRIPT},{type:"small",style:w.SCRIPT},{type:"small",style:w.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Vs=function(c){if(c.type==="small")return"Main-Regular";if(c.type==="large")return"Size"+c.size+"-Regular";if(c.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+c.type+"' here.")},ds=function(c,f,h,x){for(var k=Math.min(2,3-x.style.size),J=k;J<h.length&&h[J].type!=="stack";J++){var Oe=Xi(c,Vs(h[J]),"math"),qe=Oe.height+Oe.depth;if(h[J].type==="small"){var Et=x.havingBaseStyle(h[J].style);qe*=Et.sizeMultiplier}if(qe>f)return h[J]}return h[h.length-1]},Ya=function(c,f,h,x,k,J){c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle");var Oe;G.contains($a,c)?Oe=Fs:G.contains(Cs,c)?Oe=Ws:Oe=$s;var qe=ds(c,f,Oe,x);return qe.type==="small"?ii(c,qe.style,h,x,k,J):qe.type==="large"?Li(c,qe.size,h,x,k,J):Sa(c,f,h,x,k,J)},Ai=function(c,f,h,x,k,J){var Oe=x.fontMetrics().axisHeight*x.sizeMultiplier,qe=901,Et=5/x.fontMetrics().ptPerEm,Qt=Math.max(f-Oe,h+Oe),dn=Math.max(Qt/500*qe,2*Qt-Et);return Ya(c,dn,!0,x,k,J)},mi={sqrtImage:vs,sizedDelim:za,customSizedDelim:Ya,leftRightDelim:Ai},Aa={"\\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}},Oa=["(","\\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 ji(j,c){var f=ur(j);if(f&&G.contains(Oa,f.text))return f;throw new g("Invalid delimiter: '"+(f?f.text:JSON.stringify(j))+"' after '"+c.funcName+"'",j)}$n({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(c,f){var h=ji(f[0],c);return{type:"delimsizing",mode:c.parser.mode,size:Aa[c.funcName].size,mclass:Aa[c.funcName].mclass,delim:h.text}},htmlBuilder:function(c,f){return c.delim==="."?Tt.makeSpan([c.mclass]):mi.sizedDelim(c.delim,c.size,f,c.mode,[c.mclass])},mathmlBuilder:function(c){var f=[];c.delim!=="."&&f.push(wi(c.delim,c.mode));var h=new ar.MathNode("mo",f);return c.mclass==="mopen"||c.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function Ea(j){if(!j.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$n({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(c,f){var h=c.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new g("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:c.parser.mode,delim:ji(f[0],c).text,color:h}}}),$n({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(c,f){var h=ji(f[0],c),x=c.parser;++x.leftrightDepth;var k=x.parseExpression(!1);--x.leftrightDepth,x.expect("\\right",!1);var J=Fn(x.parseFunction(),"leftright-right");return{type:"leftright",mode:x.mode,body:k,left:h.text,right:J.delim,rightColor:J.color}},htmlBuilder:function(c,f){Ea(c);for(var h=wr(c.body,f,!0,["mopen","mclose"]),x=0,k=0,J=!1,Oe=0;Oe<h.length;Oe++)h[Oe].isMiddle?J=!0:(x=Math.max(h[Oe].height,x),k=Math.max(h[Oe].depth,k));x*=f.sizeMultiplier,k*=f.sizeMultiplier;var qe;if(c.left==="."?qe=cr(f,["mopen"]):qe=mi.leftRightDelim(c.left,x,k,f,c.mode,["mopen"]),h.unshift(qe),J)for(var Et=1;Et<h.length;Et++){var Qt=h[Et],dn=Qt.isMiddle;dn&&(h[Et]=mi.leftRightDelim(dn.delim,x,k,dn.options,c.mode,[]))}var En;if(c.right===".")En=cr(f,["mclose"]);else{var Nn=c.rightColor?f.withColor(c.rightColor):f;En=mi.leftRightDelim(c.right,x,k,Nn,c.mode,["mclose"])}return h.push(En),Tt.makeSpan(["minner"],h,f)},mathmlBuilder:function(c,f){Ea(c);var h=Mi(c.body,f);if(c.left!=="."){var x=new ar.MathNode("mo",[wi(c.left,c.mode)]);x.setAttribute("fence","true"),h.unshift(x)}if(c.right!=="."){var k=new ar.MathNode("mo",[wi(c.right,c.mode)]);k.setAttribute("fence","true"),c.rightColor&&k.setAttribute("mathcolor",c.rightColor),h.push(k)}return Yi(h)}}),$n({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(c,f){var h=ji(f[0],c);if(!c.parser.leftrightDepth)throw new g("\\middle without preceding \\left",h);return{type:"middle",mode:c.parser.mode,delim:h.text}},htmlBuilder:function(c,f){var h;if(c.delim===".")h=cr(f,[]);else{h=mi.sizedDelim(c.delim,1,f,c.mode,[]);var x={delim:c.delim,options:f};h.isMiddle=x}return h},mathmlBuilder:function(c,f){var h=c.delim==="\\vert"||c.delim==="|"?wi("|","text"):wi(c.delim,c.mode),x=new ar.MathNode("mo",[h]);return x.setAttribute("fence","true"),x.setAttribute("lspace","0.05em"),x.setAttribute("rspace","0.05em"),x}});var Za=function(c,f){var h=Tt.wrapFragment(or(c.body,f),f),x=c.label.substr(1),k=f.sizeMultiplier,J,Oe=0,qe=G.isCharacterBox(c.body);if(x==="sout")J=Tt.makeSpan(["stretchy","sout"]),J.height=f.fontMetrics().defaultRuleThickness/k,Oe=-.5*f.fontMetrics().xHeight;else{/cancel/.test(x)?qe||h.classes.push("cancel-pad"):h.classes.push("boxpad");var Et=0,Qt=0;/box/.test(x)?(Qt=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),Et=f.fontMetrics().fboxsep+(x==="colorbox"?0:Qt)):Et=qe?.2:0,J=Ci.encloseSpan(h,x,Et,f),/fbox|boxed|fcolorbox/.test(x)&&(J.style.borderStyle="solid",J.style.borderWidth=Qt+"em"),Oe=h.depth+Et,c.backgroundColor&&(J.style.backgroundColor=c.backgroundColor,c.borderColor&&(J.style.borderColor=c.borderColor))}var dn;return c.backgroundColor?dn=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:J,shift:Oe},{type:"elem",elem:h,shift:0}]},f):dn=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:J,shift:Oe,wrapperClasses:/cancel/.test(x)?["svg-align"]:[]}]},f),/cancel/.test(x)&&(dn.height=h.height,dn.depth=h.depth),/cancel/.test(x)&&!qe?Tt.makeSpan(["mord","cancel-lap"],[dn],f):Tt.makeSpan(["mord"],[dn],f)},ja=function(c,f){var h=0,x=new ar.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Gr(c.body,f)]);switch(c.label){case"\\cancel":x.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":x.setAttribute("notation","downdiagonalstrike");break;case"\\sout":x.setAttribute("notation","horizontalstrike");break;case"\\fbox":x.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,x.setAttribute("width","+"+2*h+"pt"),x.setAttribute("height","+"+2*h+"pt"),x.setAttribute("lspace",h+"pt"),x.setAttribute("voffset",h+"pt"),c.label==="\\fcolorbox"){var k=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);x.setAttribute("style","border: "+k+"em solid "+String(c.borderColor))}break;case"\\xcancel":x.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return c.backgroundColor&&x.setAttribute("mathbackground",c.backgroundColor),x};$n({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(c,f,h){var x=c.parser,k=c.funcName,J=Fn(f[0],"color-token").color,Oe=f[1];return{type:"enclose",mode:x.mode,label:k,backgroundColor:J,body:Oe}},htmlBuilder:Za,mathmlBuilder:ja}),$n({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(c,f,h){var x=c.parser,k=c.funcName,J=Fn(f[0],"color-token").color,Oe=Fn(f[1],"color-token").color,qe=f[2];return{type:"enclose",mode:x.mode,label:k,backgroundColor:Oe,borderColor:J,body:qe}},htmlBuilder:Za,mathmlBuilder:ja}),$n({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:f[0]}}}),$n({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(c,f,h){var x=c.parser,k=c.funcName,J=f[0];return{type:"enclose",mode:x.mode,label:k,body:J}},htmlBuilder:Za,mathmlBuilder:ja});var rs={};function Pa(j){for(var c=j.type,f=j.names,h=j.props,x=j.handler,k=j.htmlBuilder,J=j.mathmlBuilder,Oe={type:c,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:x},qe=0;qe<f.length;++qe)rs[f[qe]]=Oe;k&&(yr[c]=k),J&&(Er[c]=J)}function ss(j){var c=[];j.consumeSpaces();for(var f=j.fetch().text;f==="\\hline"||f==="\\hdashline";)j.consume(),c.push(f==="\\hdashline"),j.consumeSpaces(),f=j.fetch().text;return c}function Xa(j,c,f){var h=c.hskipBeforeAndAfter,x=c.addJot,k=c.cols,J=c.arraystretch,Oe=c.colSeparationType;if(j.gullet.beginGroup(),j.gullet.macros.set("\\\\","\\cr"),!J){var qe=j.gullet.expandMacroAsText("\\arraystretch");if(qe==null)J=1;else if(J=parseFloat(qe),!J||J<0)throw new g("Invalid \\arraystretch: "+qe)}j.gullet.beginGroup();var Et=[],Qt=[Et],dn=[],En=[];for(En.push(ss(j));;){var Nn=j.parseExpression(!1,"\\cr");j.gullet.endGroup(),j.gullet.beginGroup(),Nn={type:"ordgroup",mode:j.mode,body:Nn},f&&(Nn={type:"styling",mode:j.mode,style:f,body:[Nn]}),Et.push(Nn);var Un=j.fetch().text;if(Un==="&")j.consume();else if(Un==="\\end"){Et.length===1&&Nn.type==="styling"&&Nn.body[0].body.length===0&&Qt.pop(),En.length<Qt.length+1&&En.push([]);break}else if(Un==="\\cr"){var Kn=Fn(j.parseFunction(),"cr");dn.push(Kn.size),En.push(ss(j)),Et=[],Qt.push(Et)}else throw new g("Expected & or \\\\ or \\cr or \\end",j.nextToken)}return j.gullet.endGroup(),j.gullet.endGroup(),{type:"array",mode:j.mode,addJot:x,arraystretch:J,body:Qt,cols:k,rowGaps:dn,hskipBeforeAndAfter:h,hLinesBeforeRow:En,colSeparationType:Oe}}function fs(j){return j.substr(0,1)==="d"?"display":"text"}var hs=function(c,f){var h,x,k=c.body.length,J=c.hLinesBeforeRow,Oe=0,qe=new Array(k),Et=[],Qt=Math.max(f.fontMetrics().arrayRuleWidth,f.minRuleThickness),dn=1/f.fontMetrics().ptPerEm,En=5*dn;if(c.colSeparationType&&c.colSeparationType==="small"){var Nn=f.havingStyle(w.SCRIPT).sizeMultiplier;En=.2778*(Nn/f.sizeMultiplier)}var Un=12*dn,Kn=3*dn,ir=c.arraystretch*Un,er=.7*ir,nr=.3*ir,hr=0;function Tr(ta){for(var Fi=0;Fi<ta.length;++Fi)Fi>0&&(hr+=.25),Et.push({pos:hr,isDashed:ta[Fi]})}for(Tr(J[0]),h=0;h<c.body.length;++h){var Lr=c.body[h],pr=er,Yr=nr;Oe<Lr.length&&(Oe=Lr.length);var ei=new Array(Lr.length);for(x=0;x<Lr.length;++x){var Ri=or(Lr[x],f);Yr<Ri.depth&&(Yr=Ri.depth),pr<Ri.height&&(pr=Ri.height),ei[x]=Ri}var xi=c.rowGaps[h],fn=0;xi&&(fn=Ge(xi,f),fn>0&&(fn+=nr,Yr<fn&&(Yr=fn),fn=0)),c.addJot&&(Yr+=Kn),ei.height=pr,ei.depth=Yr,hr+=pr,ei.pos=hr,hr+=Yr+fn,qe[h]=ei,Tr(J[h+1])}var Oi=hr/2+f.fontMetrics().axisHeight,ya=c.cols||[],yi=[],ui,ca;for(x=0,ca=0;x<Oe||ca<ya.length;++x,++ca){for(var da=ya[ca]||{},Qr=!0;da.type==="separator";){if(Qr||(ui=Tt.makeSpan(["arraycolsep"],[]),ui.style.width=f.fontMetrics().doubleRuleSep+"em",yi.push(ui)),da.separator==="|"||da.separator===":"){var gi=da.separator==="|"?"solid":"dashed",jr=Tt.makeSpan(["vertical-separator"],[],f);jr.style.height=hr+"em",jr.style.borderRightWidth=Qt+"em",jr.style.borderRightStyle=gi,jr.style.margin="0 -"+Qt/2+"em",jr.style.verticalAlign=-(hr-Oi)+"em",yi.push(jr)}else throw new g("Invalid separator type: "+da.separator);ca++,da=ya[ca]||{},Qr=!1}if(!(x>=Oe)){var Xr=void 0;(x>0||c.hskipBeforeAndAfter)&&(Xr=G.deflt(da.pregap,En),Xr!==0&&(ui=Tt.makeSpan(["arraycolsep"],[]),ui.style.width=Xr+"em",yi.push(ui)));var Si=[];for(h=0;h<k;++h){var Ii=qe[h],ea=Ii[x];if(ea){var Qi=Ii.pos-Oi;ea.depth=Ii.depth,ea.height=Ii.height,Si.push({type:"elem",elem:ea,shift:Qi})}}Si=Tt.makeVList({positionType:"individualShift",children:Si},f),Si=Tt.makeSpan(["col-align-"+(da.align||"c")],[Si]),yi.push(Si),(x<Oe-1||c.hskipBeforeAndAfter)&&(Xr=G.deflt(da.postgap,En),Xr!==0&&(ui=Tt.makeSpan(["arraycolsep"],[]),ui.style.width=Xr+"em",yi.push(ui)))}}if(qe=Tt.makeSpan(["mtable"],yi),Et.length>0){for(var sa=Tt.makeLineSpan("hline",f,Qt),Na=Tt.makeLineSpan("hdashline",f,Qt),Jr=[{type:"elem",elem:qe,shift:0}];Et.length>0;){var ai=Et.pop(),Bi=ai.pos-Oi;ai.isDashed?Jr.push({type:"elem",elem:Na,shift:Bi}):Jr.push({type:"elem",elem:sa,shift:Bi})}qe=Tt.makeVList({positionType:"individualShift",children:Jr},f)}return Tt.makeSpan(["mord"],[qe],f)},Gs={c:"center ",l:"left ",r:"right "},Ui=function(c,f){var h=new ar.MathNode("mtable",c.body.map(function(hr){return new ar.MathNode("mtr",hr.map(function(Tr){return new ar.MathNode("mtd",[Gr(Tr,f)])}))})),x=c.arraystretch===.5?.1:.16+c.arraystretch-1+(c.addJot?.09:0);h.setAttribute("rowspacing",x+"em");var k="",J="";if(c.cols){var Oe=c.cols,qe="",Et=!1,Qt=0,dn=Oe.length;Oe[0].type==="separator"&&(k+="top ",Qt=1),Oe[Oe.length-1].type==="separator"&&(k+="bottom ",dn-=1);for(var En=Qt;En<dn;En++)Oe[En].type==="align"?(J+=Gs[Oe[En].align],Et&&(qe+="none "),Et=!0):Oe[En].type==="separator"&&Et&&(qe+=Oe[En].separator==="|"?"solid ":"dashed ",Et=!1);h.setAttribute("columnalign",J.trim()),/[sd]/.test(qe)&&h.setAttribute("columnlines",qe.trim())}if(c.colSeparationType==="align"){for(var Nn=c.cols||[],Un="",Kn=1;Kn<Nn.length;Kn++)Un+=Kn%2?"0em ":"1em ";h.setAttribute("columnspacing",Un.trim())}else c.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):c.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var ir="",er=c.hLinesBeforeRow;k+=er[0].length>0?"left ":"",k+=er[er.length-1].length>0?"right ":"";for(var nr=1;nr<er.length-1;nr++)ir+=er[nr].length===0?"none ":er[nr][0]?"dashed ":"solid ";return/[sd]/.test(ir)&&h.setAttribute("rowlines",ir.trim()),k!==""&&(h=new ar.MathNode("menclose",[h]),h.setAttribute("notation",k.trim())),c.arraystretch&&c.arraystretch<1&&(h=new ar.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Vi=function(c,f){var h=[],x=Xa(c.parser,{cols:h,addJot:!0},"display"),k,J=0,Oe={type:"ordgroup",mode:c.mode,body:[]},qe=On(f[0],"ordgroup");if(qe){for(var Et="",Qt=0;Qt<qe.body.length;Qt++){var dn=Fn(qe.body[Qt],"textord");Et+=dn.text}k=Number(Et),J=k*2}var En=!J;x.body.forEach(function(ir){for(var er=1;er<ir.length;er+=2){var nr=Fn(ir[er],"styling"),hr=Fn(nr.body[0],"ordgroup");hr.body.unshift(Oe)}if(En)J<ir.length&&(J=ir.length);else{var Tr=ir.length/2;if(k<Tr)throw new g("Too many math in a row: "+("expected "+k+", but got "+Tr),ir[0])}});for(var Nn=0;Nn<J;++Nn){var Un="r",Kn=0;Nn%2===1?Un="l":Nn>0&&En&&(Kn=1),h[Nn]={type:"align",align:Un,pregap:Kn,postgap:0}}return x.colSeparationType=En?"align":"alignat",x};Pa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(c,f){var h=ur(f[0]),x=h?[f[0]]:Fn(f[0],"ordgroup").body,k=x.map(function(Oe){var qe=Ar(Oe),Et=qe.text;if("lcr".indexOf(Et)!==-1)return{type:"align",align:Et};if(Et==="|")return{type:"separator",separator:"|"};if(Et===":")return{type:"separator",separator:":"};throw new g("Unknown column alignment: "+Et,Oe)}),J={cols:k,hskipBeforeAndAfter:!0};return Xa(c.parser,J,fs(c.envName))},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(c){var f={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[c.envName],h={hskipBeforeAndAfter:!1},x=Xa(c.parser,h,fs(c.envName));return f?{type:"leftright",mode:c.mode,body:[x],left:f[0],right:f[1],rightColor:void 0}:x},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(c){var f={arraystretch:.5},h=Xa(c.parser,f,"script");return h.colSeparationType="small",h},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(c,f){var h=ur(f[0]),x=h?[f[0]]:Fn(f[0],"ordgroup").body,k=x.map(function(Oe){var qe=Ar(Oe),Et=qe.text;if("lc".indexOf(Et)!==-1)return{type:"align",align:Et};throw new g("Unknown column alignment: "+Et,Oe)});if(k.length>1)throw new g("{subarray} can contain only one column");var J={cols:k,hskipBeforeAndAfter:!1,arraystretch:.5};if(J=Xa(c.parser,J,"script"),J.body[0].length>1)throw new g("{subarray} can contain only one column");return J},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(c){var f={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Xa(c.parser,f,fs(c.envName));return{type:"leftright",mode:c.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["aligned"],props:{numArgs:0},handler:Vi,htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(c){var f={cols:[{type:"align",align:"c"}],addJot:!0};return Xa(c.parser,f,"display")},htmlBuilder:hs,mathmlBuilder:Ui}),Pa({type:"array",names:["alignedat"],props:{numArgs:1},handler:Vi,htmlBuilder:hs,mathmlBuilder:Ui}),$n({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(c,f){throw new g(c.funcName+" valid only within array environment")}});var aa=rs,Ma=aa;$n({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];if(k.type!=="ordgroup")throw new g("Invalid environment name",k);for(var J="",Oe=0;Oe<k.body.length;++Oe)J+=Fn(k.body[Oe],"textord").text;if(x==="\\begin"){if(!Ma.hasOwnProperty(J))throw new g("No such environment: "+J,k);var qe=Ma[J],Et=h.parseArguments("\\begin{"+J+"}",qe),Qt=Et.args,dn=Et.optArgs,En={mode:h.mode,envName:J,parser:h},Nn=qe.handler(En,Qt,dn);h.expect("\\end",!1);var Un=h.nextToken,Kn=Fn(h.parseFunction(),"environment");if(Kn.name!==J)throw new g("Mismatch: \\begin{"+J+"} matched by \\end{"+Kn.name+"}",Un);return Nn}return{type:"environment",mode:h.mode,name:J,nameGroup:k}}});var Ua=Tt.makeSpan;function ws(j,c){var f=wr(j.body,c,!0);return Ua([j.mclass],f,c)}function Ls(j,c){var f,h=Mi(j.body,c);return j.mclass==="minner"?ar.newDocumentFragment(h):(j.mclass==="mord"?j.isCharacterBox?(f=h[0],f.type="mi"):f=new ar.MathNode("mi",h):(j.isCharacterBox?(f=h[0],f.type="mo"):f=new ar.MathNode("mo",h),j.mclass==="mbin"?(f.attributes.lspace="0.22em",f.attributes.rspace="0.22em"):j.mclass==="mpunct"?(f.attributes.lspace="0em",f.attributes.rspace="0.17em"):(j.mclass==="mopen"||j.mclass==="mclose")&&(f.attributes.lspace="0em",f.attributes.rspace="0em")),f)}$n({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];return{type:"mclass",mode:h.mode,mclass:"m"+x.substr(5),body:Dr(k),isCharacterBox:G.isCharacterBox(k)}},htmlBuilder:ws,mathmlBuilder:Ls});var ys=function(c){var f=c.type==="ordgroup"&&c.body.length?c.body[0]:c;return f.type==="atom"&&(f.family==="bin"||f.family==="rel")?"m"+f.family:"mord"};$n({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(c,f){var h=c.parser;return{type:"mclass",mode:h.mode,mclass:ys(f[0]),body:[f[1]],isCharacterBox:G.isCharacterBox(f[1])}}}),$n({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[1],J=f[0],Oe;x!=="\\stackrel"?Oe=ys(k):Oe="mrel";var qe={type:"op",mode:k.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:x!=="\\stackrel",body:Dr(k)},Et={type:"supsub",mode:J.mode,base:qe,sup:x==="\\underset"?null:J,sub:x==="\\underset"?J:null};return{type:"mclass",mode:h.mode,mclass:Oe,body:[Et],isCharacterBox:G.isCharacterBox(Et)}},htmlBuilder:ws,mathmlBuilder:Ls});var Ys=function(c,f){var h=c.font,x=f.withFont(h);return or(c.body,x)},Os=function(c,f){var h=c.font,x=f.withFont(h);return Gr(c.body,x)},Ps={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};$n({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0],J=x;return J in Ps&&(J=Ps[J]),{type:"font",mode:h.mode,font:J.slice(1),body:k}},htmlBuilder:Ys,mathmlBuilder:Os}),$n({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(c,f){var h=c.parser,x=f[0],k=G.isCharacterBox(x);return{type:"mclass",mode:h.mode,mclass:ys(x),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:x}],isCharacterBox:k}}}),$n({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.parser,x=c.funcName,k=c.breakOnTokenText,J=h.mode,Oe=h.parseExpression(!0,k),qe="math"+x.slice(1);return{type:"font",mode:J,font:qe,body:{type:"ordgroup",mode:h.mode,body:Oe}}},htmlBuilder:Ys,mathmlBuilder:Os});var Xs=function(c,f){var h=f;return c==="display"?h=h.id>=w.SCRIPT.id?h.text():w.DISPLAY:c==="text"&&h.size===w.DISPLAY.size?h=w.TEXT:c==="script"?h=w.SCRIPT:c==="scriptscript"&&(h=w.SCRIPTSCRIPT),h},zs=function(c,f){var h=Xs(c.size,f.style),x=h.fracNum(),k=h.fracDen(),J;J=f.havingStyle(x);var Oe=or(c.numer,J,f);if(c.continued){var qe=8.5/f.fontMetrics().ptPerEm,Et=3.5/f.fontMetrics().ptPerEm;Oe.height=Oe.height<qe?qe:Oe.height,Oe.depth=Oe.depth<Et?Et:Oe.depth}J=f.havingStyle(k);var Qt=or(c.denom,J,f),dn,En,Nn;c.hasBarLine?(c.barSize?(En=Ge(c.barSize,f),dn=Tt.makeLineSpan("frac-line",f,En)):dn=Tt.makeLineSpan("frac-line",f),En=dn.height,Nn=dn.height):(dn=null,En=0,Nn=f.fontMetrics().defaultRuleThickness);var Un,Kn,ir;h.size===w.DISPLAY.size||c.size==="display"?(Un=f.fontMetrics().num1,En>0?Kn=3*Nn:Kn=7*Nn,ir=f.fontMetrics().denom1):(En>0?(Un=f.fontMetrics().num2,Kn=Nn):(Un=f.fontMetrics().num3,Kn=3*Nn),ir=f.fontMetrics().denom2);var er;if(dn){var hr=f.fontMetrics().axisHeight;Un-Oe.depth-(hr+.5*En)<Kn&&(Un+=Kn-(Un-Oe.depth-(hr+.5*En))),hr-.5*En-(Qt.height-ir)<Kn&&(ir+=Kn-(hr-.5*En-(Qt.height-ir)));var Tr=-(hr-.5*En);er=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Qt,shift:ir},{type:"elem",elem:dn,shift:Tr},{type:"elem",elem:Oe,shift:-Un}]},f)}else{var nr=Un-Oe.depth-(Qt.height-ir);nr<Kn&&(Un+=.5*(Kn-nr),ir+=.5*(Kn-nr)),er=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Qt,shift:ir},{type:"elem",elem:Oe,shift:-Un}]},f)}J=f.havingStyle(h),er.height*=J.sizeMultiplier/f.sizeMultiplier,er.depth*=J.sizeMultiplier/f.sizeMultiplier;var Lr;h.size===w.DISPLAY.size?Lr=f.fontMetrics().delim1:Lr=f.fontMetrics().delim2;var pr,Yr;return c.leftDelim==null?pr=cr(f,["mopen"]):pr=mi.customSizedDelim(c.leftDelim,Lr,!0,f.havingStyle(h),c.mode,["mopen"]),c.continued?Yr=Tt.makeSpan([]):c.rightDelim==null?Yr=cr(f,["mclose"]):Yr=mi.customSizedDelim(c.rightDelim,Lr,!0,f.havingStyle(h),c.mode,["mclose"]),Tt.makeSpan(["mord"].concat(J.sizingClasses(f)),[pr,Tt.makeSpan(["mfrac"],[er]),Yr],f)},so=function(c,f){var h=new ar.MathNode("mfrac",[Gr(c.numer,f),Gr(c.denom,f)]);if(!c.hasBarLine)h.setAttribute("linethickness","0px");else if(c.barSize){var x=Ge(c.barSize,f);h.setAttribute("linethickness",x+"em")}var k=Xs(c.size,f.style);if(k.size!==f.style.size){h=new ar.MathNode("mstyle",[h]);var J=k.size===w.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",J),h.setAttribute("scriptlevel","0")}if(c.leftDelim!=null||c.rightDelim!=null){var Oe=[];if(c.leftDelim!=null){var qe=new ar.MathNode("mo",[new ar.TextNode(c.leftDelim.replace("\\",""))]);qe.setAttribute("fence","true"),Oe.push(qe)}if(Oe.push(h),c.rightDelim!=null){var Et=new ar.MathNode("mo",[new ar.TextNode(c.rightDelim.replace("\\",""))]);Et.setAttribute("fence","true"),Oe.push(Et)}return Yi(Oe)}return h};$n({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0],J=f[1],Oe,qe=null,Et=null,Qt="auto";switch(x){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Oe=!0;break;case"\\\\atopfrac":Oe=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Oe=!1,qe="(",Et=")";break;case"\\\\bracefrac":Oe=!1,qe="\\{",Et="\\}";break;case"\\\\brackfrac":Oe=!1,qe="[",Et="]";break;default:throw new Error("Unrecognized genfrac command")}switch(x){case"\\cfrac":case"\\dfrac":case"\\dbinom":Qt="display";break;case"\\tfrac":case"\\tbinom":Qt="text";break}return{type:"genfrac",mode:h.mode,continued:x==="\\cfrac",numer:k,denom:J,hasBarLine:Oe,leftDelim:qe,rightDelim:Et,size:Qt,barSize:null}},htmlBuilder:zs,mathmlBuilder:so}),$n({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(c){var f=c.parser,h=c.funcName,x=c.token,k;switch(h){case"\\over":k="\\frac";break;case"\\choose":k="\\binom";break;case"\\atop":k="\\\\atopfrac";break;case"\\brace":k="\\\\bracefrac";break;case"\\brack":k="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:k,token:x}}});var Ka=["display","text","script","scriptscript"],Qa=function(c){var f=null;return c.length>0&&(f=c,f=f==="."?null:f),f};$n({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(c,f){var h=c.parser,x=f[4],k=f[5],J=On(f[0],"atom");J&&(J=sr(f[0],"open"));var Oe=J?Qa(J.text):null,qe=On(f[1],"atom");qe&&(qe=sr(f[1],"close"));var Et=qe?Qa(qe.text):null,Qt=Fn(f[2],"size"),dn,En=null;Qt.isBlank?dn=!0:(En=Qt.value,dn=En.number>0);var Nn="auto",Un=On(f[3],"ordgroup");if(Un){if(Un.body.length>0){var Kn=Fn(Un.body[0],"textord");Nn=Ka[Number(Kn.text)]}}else Un=Fn(f[3],"textord"),Nn=Ka[Number(Un.text)];return{type:"genfrac",mode:h.mode,numer:x,denom:k,continued:!1,hasBarLine:dn,barSize:En,leftDelim:Oe,rightDelim:Et,size:Nn}},htmlBuilder:zs,mathmlBuilder:so}),$n({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(c,f){var h=c.parser,x=c.funcName,k=c.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:Fn(f[0],"size").value,token:k}}}),$n({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0],J=W(Fn(f[1],"infix").size),Oe=f[2],qe=J.number>0;return{type:"genfrac",mode:h.mode,numer:k,denom:Oe,continued:!1,hasBarLine:qe,barSize:J,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:zs,mathmlBuilder:so});var Bo=function(c,f){var h=f.style,x,k,J=On(c,"supsub");J?(x=J.sup?or(J.sup,f.havingStyle(h.sup()),f):or(J.sub,f.havingStyle(h.sub()),f),k=Fn(J.base,"horizBrace")):k=Fn(c,"horizBrace");var Oe=or(k.base,f.havingBaseStyle(w.DISPLAY)),qe=Ci.svgSpan(k,f),Et;if(k.isOver?(Et=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe},{type:"kern",size:.1},{type:"elem",elem:qe}]},f),Et.children[0].children[0].children[1].classes.push("svg-align")):(Et=Tt.makeVList({positionType:"bottom",positionData:Oe.depth+.1+qe.height,children:[{type:"elem",elem:qe},{type:"kern",size:.1},{type:"elem",elem:Oe}]},f),Et.children[0].children[0].children[0].classes.push("svg-align")),x){var Qt=Tt.makeSpan(["mord",k.isOver?"mover":"munder"],[Et],f);k.isOver?Et=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qt},{type:"kern",size:.2},{type:"elem",elem:x}]},f):Et=Tt.makeVList({positionType:"bottom",positionData:Qt.depth+.2+x.height+x.depth,children:[{type:"elem",elem:x},{type:"kern",size:.2},{type:"elem",elem:Qt}]},f)}return Tt.makeSpan(["mord",k.isOver?"mover":"munder"],[Et],f)},fr=function(c,f){var h=Ci.mathMLnode(c.label);return new ar.MathNode(c.isOver?"mover":"munder",[Gr(c.base,f),h])};$n({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=c.funcName;return{type:"horizBrace",mode:h.mode,label:x,isOver:/^\\over/.test(x),base:f[0]}},htmlBuilder:Bo,mathmlBuilder:fr}),$n({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(c,f){var h=c.parser,x=f[1],k=Fn(f[0],"url").url;return h.settings.isTrusted({command:"\\href",url:k})?{type:"href",mode:h.mode,href:k,body:Dr(x)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(c,f){var h=wr(c.body,f,!1);return Tt.makeAnchor(c.href,[],h,f)},mathmlBuilder:function(c,f){var h=ki(c.body,f);return h instanceof _r||(h=new _r("mrow",[h])),h.setAttribute("href",c.href),h}}),$n({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(c,f){var h=c.parser,x=Fn(f[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:x}))return h.formatUnsupportedCmd("\\url");for(var k=[],J=0;J<x.length;J++){var Oe=x[J];Oe==="~"&&(Oe="\\textasciitilde"),k.push({type:"textord",mode:"text",text:Oe})}var qe={type:"text",mode:h.mode,font:"\\texttt",body:k};return{type:"href",mode:h.mode,href:x,body:Dr(qe)}}}),$n({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"htmlmathml",mode:h.mode,html:Dr(f[0]),mathml:Dr(f[1])}},htmlBuilder:function(c,f){var h=wr(c.html,f,!1);return Tt.makeFragment(h)},mathmlBuilder:function(c,f){return ki(c.mathml,f)}});var oo=function(c){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(c))return{number:+c,unit:"bp"};var f=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c);if(!f)throw new g("Invalid size: '"+c+"' in \\includegraphics");var h={number:+(f[1]+f[2]),unit:f[3]};if(!Jt(h))throw new g("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};$n({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(c,f,h){var x=c.parser,k={number:0,unit:"em"},J={number:.9,unit:"em"},Oe={number:0,unit:"em"},qe="";if(h[0])for(var Et=Fn(h[0],"raw").string,Qt=Et.split(","),dn=0;dn<Qt.length;dn++){var En=Qt[dn].split("=");if(En.length===2){var Nn=En[1].trim();switch(En[0].trim()){case"alt":qe=Nn;break;case"width":k=oo(Nn);break;case"height":J=oo(Nn);break;case"totalheight":Oe=oo(Nn);break;default:throw new g("Invalid key: '"+En[0]+"' in \\includegraphics.")}}}var Un=Fn(f[0],"url").url;return qe===""&&(qe=Un,qe=qe.replace(/^.*[\\/]/,""),qe=qe.substring(0,qe.lastIndexOf("."))),x.settings.isTrusted({command:"\\includegraphics",url:Un})?{type:"includegraphics",mode:x.mode,alt:qe,width:k,height:J,totalheight:Oe,src:Un}:x.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(c,f){var h=Ge(c.height,f),x=0;c.totalheight.number>0&&(x=Ge(c.totalheight,f)-h,x=Number(x.toFixed(2)));var k=0;c.width.number>0&&(k=Ge(c.width,f));var J={height:h+x+"em"};k>0&&(J.width=k+"em"),x>0&&(J.verticalAlign=-x+"em");var Oe=new K(c.src,c.alt,J);return Oe.height=h,Oe.depth=x,Oe},mathmlBuilder:function(c,f){var h=new ar.MathNode("mglyph",[]);h.setAttribute("alt",c.alt);var x=Ge(c.height,f),k=0;if(c.totalheight.number>0&&(k=Ge(c.totalheight,f)-x,k=k.toFixed(2),h.setAttribute("valign","-"+k+"em")),h.setAttribute("height",x+k+"em"),c.width.number>0){var J=Ge(c.width,f);h.setAttribute("width",J+"em")}return h.setAttribute("src",c.src),h}}),$n({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,f){var h=c.parser,x=c.funcName,k=Fn(f[0],"size");if(h.settings.strict){var J=x[1]==="m",Oe=k.value.unit==="mu";J?(Oe||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+x+" supports only mu units, "+("not "+k.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+x+" works only in math mode")):Oe&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+x+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:k.value}},htmlBuilder:function(c,f){return Tt.makeGlue(c.dimension,f)},mathmlBuilder:function(c,f){var h=Ge(c.dimension,f);return new ar.SpaceNode(h)}}),$n({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];return{type:"lap",mode:h.mode,alignment:x.slice(5),body:k}},htmlBuilder:function(c,f){var h;c.alignment==="clap"?(h=Tt.makeSpan([],[or(c.body,f)]),h=Tt.makeSpan(["inner"],[h],f)):h=Tt.makeSpan(["inner"],[or(c.body,f)]);var x=Tt.makeSpan(["fix"],[]),k=Tt.makeSpan([c.alignment],[h,x],f),J=Tt.makeSpan(["strut"]);return J.style.height=k.height+k.depth+"em",J.style.verticalAlign=-k.depth+"em",k.children.unshift(J),k=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k}]},f),Tt.makeSpan(["mord"],[k],f)},mathmlBuilder:function(c,f){var h=new ar.MathNode("mpadded",[Gr(c.body,f)]);if(c.alignment!=="rlap"){var x=c.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",x+"width")}return h.setAttribute("width","0px"),h}}),$n({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,f){var h=c.funcName,x=c.parser,k=x.mode;x.switchMode("math");var J=h==="\\("?"\\)":"$",Oe=x.parseExpression(!1,J);return x.expect(J),x.switchMode(k),{type:"styling",mode:x.mode,style:"text",body:Oe}}}),$n({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,f){throw new g("Mismatched "+c.funcName)}});var ci=function(c,f){switch(f.style.size){case w.DISPLAY.size:return c.display;case w.TEXT.size:return c.text;case w.SCRIPT.size:return c.script;case w.SCRIPTSCRIPT.size:return c.scriptscript;default:return c.text}};$n({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(c,f){var h=c.parser;return{type:"mathchoice",mode:h.mode,display:Dr(f[0]),text:Dr(f[1]),script:Dr(f[2]),scriptscript:Dr(f[3])}},htmlBuilder:function(c,f){var h=ci(c,f),x=wr(h,f,!1);return Tt.makeFragment(x)},mathmlBuilder:function(c,f){var h=ci(c,f);return ki(h,f)}});var Zs=function(c,f,h,x,k,J,Oe){c=Tt.makeSpan([],[c]);var qe,Et;if(f){var Qt=or(f,x.havingStyle(k.sup()),x);Et={elem:Qt,kern:Math.max(x.fontMetrics().bigOpSpacing1,x.fontMetrics().bigOpSpacing3-Qt.depth)}}if(h){var dn=or(h,x.havingStyle(k.sub()),x);qe={elem:dn,kern:Math.max(x.fontMetrics().bigOpSpacing2,x.fontMetrics().bigOpSpacing4-dn.height)}}var En;if(Et&&qe){var Nn=x.fontMetrics().bigOpSpacing5+qe.elem.height+qe.elem.depth+qe.kern+c.depth+Oe;En=Tt.makeVList({positionType:"bottom",positionData:Nn,children:[{type:"kern",size:x.fontMetrics().bigOpSpacing5},{type:"elem",elem:qe.elem,marginLeft:-J+"em"},{type:"kern",size:qe.kern},{type:"elem",elem:c},{type:"kern",size:Et.kern},{type:"elem",elem:Et.elem,marginLeft:J+"em"},{type:"kern",size:x.fontMetrics().bigOpSpacing5}]},x)}else if(qe){var Un=c.height-Oe;En=Tt.makeVList({positionType:"top",positionData:Un,children:[{type:"kern",size:x.fontMetrics().bigOpSpacing5},{type:"elem",elem:qe.elem,marginLeft:-J+"em"},{type:"kern",size:qe.kern},{type:"elem",elem:c}]},x)}else if(Et){var Kn=c.depth+Oe;En=Tt.makeVList({positionType:"bottom",positionData:Kn,children:[{type:"elem",elem:c},{type:"kern",size:Et.kern},{type:"elem",elem:Et.elem,marginLeft:J+"em"},{type:"kern",size:x.fontMetrics().bigOpSpacing5}]},x)}else return c;return Tt.makeSpan(["mop","op-limits"],[En],x)},Qs=["\\smallint"],Ms=function(c,f){var h,x,k=!1,J,Oe=On(c,"supsub");Oe?(h=Oe.sup,x=Oe.sub,J=Fn(Oe.base,"op"),k=!0):J=Fn(c,"op");var qe=f.style,Et=!1;qe.size===w.DISPLAY.size&&J.symbol&&!G.contains(Qs,J.name)&&(Et=!0);var Qt;if(J.symbol){var dn=Et?"Size2-Regular":"Size1-Regular",En="";if((J.name==="\\oiint"||J.name==="\\oiiint")&&(En=J.name.substr(1),J.name=En==="oiint"?"\\iint":"\\iiint"),Qt=Tt.makeSymbol(J.name,dn,"math",f,["mop","op-symbol",Et?"large-op":"small-op"]),En.length>0){var Nn=Qt.italic,Un=Tt.staticSvg(En+"Size"+(Et?"2":"1"),f);Qt=Tt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Qt,shift:0},{type:"elem",elem:Un,shift:Et?.08:0}]},f),J.name="\\"+En,Qt.classes.unshift("mop"),Qt.italic=Nn}}else if(J.body){var Kn=wr(J.body,f,!0);Kn.length===1&&Kn[0]instanceof Se?(Qt=Kn[0],Qt.classes[0]="mop"):Qt=Tt.makeSpan(["mop"],Tt.tryCombineChars(Kn),f)}else{for(var ir=[],er=1;er<J.name.length;er++)ir.push(Tt.mathsym(J.name[er],J.mode,f));Qt=Tt.makeSpan(["mop"],ir,f)}var nr=0,hr=0;return(Qt instanceof Se||J.name==="\\oiint"||J.name==="\\oiiint")&&!J.suppressBaseShift&&(nr=(Qt.height-Qt.depth)/2-f.fontMetrics().axisHeight,hr=Qt.italic),k?Zs(Qt,h,x,f,qe,hr,nr):(nr&&(Qt.style.position="relative",Qt.style.top=nr+"em"),Qt)},Js=function(c,f){var h;if(c.symbol)h=new _r("mo",[wi(c.name,c.mode)]),G.contains(Qs,c.name)&&h.setAttribute("largeop","false");else if(c.body)h=new _r("mo",Mi(c.body,f));else{h=new _r("mi",[new mr(c.name.slice(1))]);var x=new _r("mo",[wi("\u2061","text")]);c.parentIsSupSub?h=new _r("mo",[h,x]):h=vi([h,x])}return h},_l={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};$n({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(c,f){var h=c.parser,x=c.funcName,k=x;return k.length===1&&(k=_l[k]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:k}},htmlBuilder:Ms,mathmlBuilder:Js}),$n({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=f[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dr(x)}},htmlBuilder:Ms,mathmlBuilder:Js});var rl={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};$n({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(c){var f=c.parser,h=c.funcName;return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ms,mathmlBuilder:Js}),$n({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(c){var f=c.parser,h=c.funcName;return{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ms,mathmlBuilder:Js}),$n({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(c){var f=c.parser,h=c.funcName,x=h;return x.length===1&&(x=rl[x]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:x}},htmlBuilder:Ms,mathmlBuilder:Js});var xo=function(c,f){var h,x,k=!1,J,Oe=On(c,"supsub");Oe?(h=Oe.sup,x=Oe.sub,J=Fn(Oe.base,"operatorname"),k=!0):J=Fn(c,"operatorname");var qe;if(J.body.length>0){for(var Et=J.body.map(function(Nn){var Un=Nn.text;return typeof Un=="string"?{type:"textord",mode:Nn.mode,text:Un}:Nn}),Qt=wr(Et,f.withFont("mathrm"),!0),dn=0;dn<Qt.length;dn++){var En=Qt[dn];En instanceof Se&&(En.text=En.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}qe=Tt.makeSpan(["mop"],Qt,f)}else qe=Tt.makeSpan(["mop"],[],f);return k?Zs(qe,h,x,f,f.style,0,0):qe},lo=function(c,f){for(var h=Mi(c.body,f.withFont("mathrm")),x=!0,k=0;k<h.length;k++){var J=h[k];if(!(J instanceof ar.SpaceNode))if(J instanceof ar.MathNode)switch(J.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Oe=J.children[0];J.children.length===1&&Oe instanceof ar.TextNode?Oe.text=Oe.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):x=!1;break}default:x=!1}else x=!1}if(x){var qe=h.map(function(dn){return dn.toText()}).join("");h=[new ar.TextNode(qe)]}var Et=new ar.MathNode("mi",h);Et.setAttribute("mathvariant","normal");var Qt=new ar.MathNode("mo",[wi("\u2061","text")]);return c.parentIsSupSub?new ar.MathNode("mo",[Et,Qt]):ar.newDocumentFragment([Et,Qt])};$n({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];return{type:"operatorname",mode:h.mode,body:Dr(k),alwaysHandleSupSub:x==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:xo,mathmlBuilder:lo}),Sr({type:"ordgroup",htmlBuilder:function(c,f){return c.semisimple?Tt.makeFragment(wr(c.body,f,!1)):Tt.makeSpan(["mord"],wr(c.body,f,!0),f)},mathmlBuilder:function(c,f){return ki(c.body,f,!0)}}),$n({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(c,f){var h=c.parser,x=f[0];return{type:"overline",mode:h.mode,body:x}},htmlBuilder:function(c,f){var h=or(c.body,f.havingCrampedStyle()),x=Tt.makeLineSpan("overline-line",f),k=f.fontMetrics().defaultRuleThickness,J=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*k},{type:"elem",elem:x},{type:"kern",size:k}]},f);return Tt.makeSpan(["mord","overline"],[J],f)},mathmlBuilder:function(c,f){var h=new ar.MathNode("mo",[new ar.TextNode("\u203E")]);h.setAttribute("stretchy","true");var x=new ar.MathNode("mover",[Gr(c.body,f),h]);return x.setAttribute("accent","true"),x}}),$n({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,x=f[0];return{type:"phantom",mode:h.mode,body:Dr(x)}},htmlBuilder:function(c,f){var h=wr(c.body,f.withPhantom(),!1);return Tt.makeFragment(h)},mathmlBuilder:function(c,f){var h=Mi(c.body,f);return new ar.MathNode("mphantom",h)}}),$n({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,x=f[0];return{type:"hphantom",mode:h.mode,body:x}},htmlBuilder:function(c,f){var h=Tt.makeSpan([],[or(c.body,f.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var x=0;x<h.children.length;x++)h.children[x].height=0,h.children[x].depth=0;return h=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f),Tt.makeSpan(["mord"],[h],f)},mathmlBuilder:function(c,f){var h=Mi(Dr(c.body),f),x=new ar.MathNode("mphantom",h),k=new ar.MathNode("mpadded",[x]);return k.setAttribute("height","0px"),k.setAttribute("depth","0px"),k}}),$n({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser,x=f[0];return{type:"vphantom",mode:h.mode,body:x}},htmlBuilder:function(c,f){var h=Tt.makeSpan(["inner"],[or(c.body,f.withPhantom())]),x=Tt.makeSpan(["fix"],[]);return Tt.makeSpan(["mord","rlap"],[h,x],f)},mathmlBuilder:function(c,f){var h=Mi(Dr(c.body),f),x=new ar.MathNode("mphantom",h),k=new ar.MathNode("mpadded",[x]);return k.setAttribute("width","0px"),k}}),$n({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(c,f){var h=c.parser,x=Fn(f[0],"size").value,k=f[1];return{type:"raisebox",mode:h.mode,dy:x,body:k}},htmlBuilder:function(c,f){var h=or(c.body,f),x=Ge(c.dy,f);return Tt.makeVList({positionType:"shift",positionData:-x,children:[{type:"elem",elem:h}]},f)},mathmlBuilder:function(c,f){var h=new ar.MathNode("mpadded",[Gr(c.body,f)]),x=c.dy.number+c.dy.unit;return h.setAttribute("voffset",x),h}}),$n({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(c,f,h){var x=c.parser,k=h[0],J=Fn(f[0],"size"),Oe=Fn(f[1],"size");return{type:"rule",mode:x.mode,shift:k&&Fn(k,"size").value,width:J.value,height:Oe.value}},htmlBuilder:function(c,f){var h=Tt.makeSpan(["mord","rule"],[],f),x=Ge(c.width,f),k=Ge(c.height,f),J=c.shift?Ge(c.shift,f):0;return h.style.borderRightWidth=x+"em",h.style.borderTopWidth=k+"em",h.style.bottom=J+"em",h.width=x,h.height=k+J,h.depth=-J,h.maxFontSize=k*1.125*f.sizeMultiplier,h},mathmlBuilder:function(c,f){var h=Ge(c.width,f),x=Ge(c.height,f),k=c.shift?Ge(c.shift,f):0,J=f.color&&f.getColor()||"black",Oe=new ar.MathNode("mspace");Oe.setAttribute("mathbackground",J),Oe.setAttribute("width",h+"em"),Oe.setAttribute("height",x+"em");var qe=new ar.MathNode("mpadded",[Oe]);return k>=0?qe.setAttribute("height","+"+k+"em"):(qe.setAttribute("height",k+"em"),qe.setAttribute("depth","+"+-k+"em")),qe.setAttribute("voffset",k+"em"),qe}});function qs(j,c,f){for(var h=wr(j,c,!1),x=c.sizeMultiplier/f.sizeMultiplier,k=0;k<h.length;k++){var J=h[k].classes.indexOf("sizing");J<0?Array.prototype.push.apply(h[k].classes,c.sizingClasses(f)):h[k].classes[J+1]==="reset-size"+c.size&&(h[k].classes[J+1]="reset-size"+f.size),h[k].height*=x,h[k].depth*=x}return Tt.makeFragment(h)}var Fo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Cl=function(c,f){var h=f.havingSize(c.size);return qs(c.body,h,f)};$n({type:"sizing",names:Fo,props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.breakOnTokenText,x=c.funcName,k=c.parser,J=k.parseExpression(!1,h);return{type:"sizing",mode:k.mode,size:Fo.indexOf(x)+1,body:J}},htmlBuilder:Cl,mathmlBuilder:function(c,f){var h=f.havingSize(c.size),x=Mi(c.body,h),k=new ar.MathNode("mstyle",x);return k.setAttribute("mathsize",h.sizeMultiplier+"em"),k}}),$n({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(c,f,h){var x=c.parser,k=!1,J=!1,Oe=h[0]&&Fn(h[0],"ordgroup");if(Oe)for(var qe="",Et=0;Et<Oe.body.length;++Et){var Qt=Oe.body[Et];if(qe=Qt.text,qe==="t")k=!0;else if(qe==="b")J=!0;else{k=!1,J=!1;break}}else k=!0,J=!0;var dn=f[0];return{type:"smash",mode:x.mode,body:dn,smashHeight:k,smashDepth:J}},htmlBuilder:function(c,f){var h=Tt.makeSpan([],[or(c.body,f)]);if(!c.smashHeight&&!c.smashDepth)return h;if(c.smashHeight&&(h.height=0,h.children))for(var x=0;x<h.children.length;x++)h.children[x].height=0;if(c.smashDepth&&(h.depth=0,h.children))for(var k=0;k<h.children.length;k++)h.children[k].depth=0;var J=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f);return Tt.makeSpan(["mord"],[J],f)},mathmlBuilder:function(c,f){var h=new ar.MathNode("mpadded",[Gr(c.body,f)]);return c.smashHeight&&h.setAttribute("height","0px"),c.smashDepth&&h.setAttribute("depth","0px"),h}}),$n({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,f,h){var x=c.parser,k=h[0],J=f[0];return{type:"sqrt",mode:x.mode,body:J,index:k}},htmlBuilder:function(c,f){var h=or(c.body,f.havingCrampedStyle());h.height===0&&(h.height=f.fontMetrics().xHeight),h=Tt.wrapFragment(h,f);var x=f.fontMetrics(),k=x.defaultRuleThickness,J=k;f.style.id<w.TEXT.id&&(J=f.fontMetrics().xHeight);var Oe=k+J/4,qe=h.height+h.depth+Oe+k,Et=mi.sqrtImage(qe,f),Qt=Et.span,dn=Et.ruleWidth,En=Et.advanceWidth,Nn=Qt.height-dn;Nn>h.height+h.depth+Oe&&(Oe=(Oe+Nn-h.height-h.depth)/2);var Un=Qt.height-h.height-Oe-dn;h.style.paddingLeft=En+"em";var Kn=Tt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+Un)},{type:"elem",elem:Qt},{type:"kern",size:dn}]},f);if(c.index){var ir=f.havingStyle(w.SCRIPTSCRIPT),er=or(c.index,ir,f),nr=.6*(Kn.height-Kn.depth),hr=Tt.makeVList({positionType:"shift",positionData:-nr,children:[{type:"elem",elem:er}]},f),Tr=Tt.makeSpan(["root"],[hr]);return Tt.makeSpan(["mord","sqrt"],[Tr,Kn],f)}else return Tt.makeSpan(["mord","sqrt"],[Kn],f)},mathmlBuilder:function(c,f){var h=c.body,x=c.index;return x?new ar.MathNode("mroot",[Gr(h,f),Gr(x,f)]):new ar.MathNode("msqrt",[Gr(h,f)])}});var $o={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};$n({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(c,f){var h=c.breakOnTokenText,x=c.funcName,k=c.parser,J=k.parseExpression(!0,h),Oe=x.slice(1,x.length-5);return{type:"styling",mode:k.mode,style:Oe,body:J}},htmlBuilder:function(c,f){var h=$o[c.style],x=f.havingStyle(h).withFont("");return qs(c.body,x,f)},mathmlBuilder:function(c,f){var h=$o[c.style],x=f.havingStyle(h),k=Mi(c.body,x),J=new ar.MathNode("mstyle",k),Oe={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},qe=Oe[c.style];return J.setAttribute("scriptlevel",qe[0]),J.setAttribute("displaystyle",qe[1]),J}});var wl=function(c,f){var h=c.base;if(h)if(h.type==="op"){var x=h.limits&&(f.style.size===w.DISPLAY.size||h.alwaysHandleSupSub);return x?Ms:null}else if(h.type==="operatorname"){var k=h.alwaysHandleSupSub&&(f.style.size===w.DISPLAY.size||h.limits);return k?xo:null}else{if(h.type==="accent")return G.isCharacterBox(h.base)?xr:null;if(h.type==="horizBrace"){var J=!c.sub;return J===h.isOver?Bo:null}else return null}else return null};Sr({type:"supsub",htmlBuilder:function(c,f){var h=wl(c,f);if(h)return h(c,f);var x=c.base,k=c.sup,J=c.sub,Oe=or(x,f),qe,Et,Qt=f.fontMetrics(),dn=0,En=0,Nn=x&&G.isCharacterBox(x);if(k){var Un=f.havingStyle(f.style.sup());qe=or(k,Un,f),Nn||(dn=Oe.height-Un.fontMetrics().supDrop*Un.sizeMultiplier/f.sizeMultiplier)}if(J){var Kn=f.havingStyle(f.style.sub());Et=or(J,Kn,f),Nn||(En=Oe.depth+Kn.fontMetrics().subDrop*Kn.sizeMultiplier/f.sizeMultiplier)}var ir;f.style===w.DISPLAY?ir=Qt.sup1:f.style.cramped?ir=Qt.sup3:ir=Qt.sup2;var er=f.sizeMultiplier,nr=.5/Qt.ptPerEm/er+"em",hr=null;if(Et){var Tr=c.base&&c.base.type==="op"&&c.base.name&&(c.base.name==="\\oiint"||c.base.name==="\\oiiint");(Oe instanceof Se||Tr)&&(hr=-Oe.italic+"em")}var Lr;if(qe&&Et){dn=Math.max(dn,ir,qe.depth+.25*Qt.xHeight),En=Math.max(En,Qt.sub2);var pr=Qt.defaultRuleThickness,Yr=4*pr;if(dn-qe.depth-(Et.height-En)<Yr){En=Yr-(dn-qe.depth)+Et.height;var ei=.8*Qt.xHeight-(dn-qe.depth);ei>0&&(dn+=ei,En-=ei)}var Ri=[{type:"elem",elem:Et,shift:En,marginRight:nr,marginLeft:hr},{type:"elem",elem:qe,shift:-dn,marginRight:nr}];Lr=Tt.makeVList({positionType:"individualShift",children:Ri},f)}else if(Et){En=Math.max(En,Qt.sub1,Et.height-.8*Qt.xHeight);var xi=[{type:"elem",elem:Et,marginLeft:hr,marginRight:nr}];Lr=Tt.makeVList({positionType:"shift",positionData:En,children:xi},f)}else if(qe)dn=Math.max(dn,ir,qe.depth+.25*Qt.xHeight),Lr=Tt.makeVList({positionType:"shift",positionData:-dn,children:[{type:"elem",elem:qe,marginRight:nr}]},f);else throw new Error("supsub must have either sup or sub.");var fn=Tn(Oe,"right")||"mord";return Tt.makeSpan([fn],[Oe,Tt.makeSpan(["msupsub"],[Lr])],f)},mathmlBuilder:function(c,f){var h=!1,x,k,J=On(c.base,"horizBrace");J&&(k=!!c.sup,k===J.isOver&&(h=!0,x=J.isOver)),c.base&&(c.base.type==="op"||c.base.type==="operatorname")&&(c.base.parentIsSupSub=!0);var Oe=[Gr(c.base,f)];c.sub&&Oe.push(Gr(c.sub,f)),c.sup&&Oe.push(Gr(c.sup,f));var qe;if(h)qe=x?"mover":"munder";else if(c.sub)if(c.sup){var dn=c.base;dn&&dn.type==="op"&&dn.limits&&f.style===w.DISPLAY||dn&&dn.type==="operatorname"&&dn.alwaysHandleSupSub&&(f.style===w.DISPLAY||dn.limits)?qe="munderover":qe="msubsup"}else{var Qt=c.base;Qt&&Qt.type==="op"&&Qt.limits&&(f.style===w.DISPLAY||Qt.alwaysHandleSupSub)||Qt&&Qt.type==="operatorname"&&Qt.alwaysHandleSupSub&&(Qt.limits||f.style===w.DISPLAY)?qe="munder":qe="msub"}else{var Et=c.base;Et&&Et.type==="op"&&Et.limits&&(f.style===w.DISPLAY||Et.alwaysHandleSupSub)||Et&&Et.type==="operatorname"&&Et.alwaysHandleSupSub&&(Et.limits||f.style===w.DISPLAY)?qe="mover":qe="msup"}var En=new ar.MathNode(qe,Oe);return En}}),Sr({type:"atom",htmlBuilder:function(c,f){return Tt.mathsym(c.text,c.mode,f,["m"+c.family])},mathmlBuilder:function(c,f){var h=new ar.MathNode("mo",[wi(c.text,c.mode)]);if(c.family==="bin"){var x=Wi(c,f);x==="bold-italic"&&h.setAttribute("mathvariant",x)}else c.family==="punct"?h.setAttribute("separator","true"):(c.family==="open"||c.family==="close")&&h.setAttribute("stretchy","false");return h}});var Eo={mi:"italic",mn:"normal",mtext:"normal"};Sr({type:"mathord",htmlBuilder:function(c,f){return Tt.makeOrd(c,f,"mathord")},mathmlBuilder:function(c,f){var h=new ar.MathNode("mi",[wi(c.text,c.mode,f)]),x=Wi(c,f)||"italic";return x!==Eo[h.type]&&h.setAttribute("mathvariant",x),h}}),Sr({type:"textord",htmlBuilder:function(c,f){return Tt.makeOrd(c,f,"textord")},mathmlBuilder:function(c,f){var h=wi(c.text,c.mode,f),x=Wi(c,f)||"normal",k;return c.mode==="text"?k=new ar.MathNode("mtext",[h]):/[0-9]/.test(c.text)?k=new ar.MathNode("mn",[h]):c.text==="\\prime"?k=new ar.MathNode("mo",[h]):k=new ar.MathNode("mi",[h]),x!==Eo[k.type]&&k.setAttribute("mathvariant",x),k}});var po={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Sr({type:"spacing",htmlBuilder:function(c,f){if(eo.hasOwnProperty(c.text)){var h=eo[c.text].className||"";if(c.mode==="text"){var x=Tt.makeOrd(c,f,"textord");return x.classes.push(h),x}else return Tt.makeSpan(["mspace",h],[Tt.mathsym(c.text,c.mode,f)],f)}else{if(po.hasOwnProperty(c.text))return Tt.makeSpan(["mspace",po[c.text]],[],f);throw new g('Unknown type of space "'+c.text+'"')}},mathmlBuilder:function(c,f){var h;if(eo.hasOwnProperty(c.text))h=new ar.MathNode("mtext",[new ar.TextNode("\xA0")]);else{if(po.hasOwnProperty(c.text))return new ar.MathNode("mspace");throw new g('Unknown type of space "'+c.text+'"')}return h}});var uo=function(){var c=new ar.MathNode("mtd",[]);return c.setAttribute("width","50%"),c};Sr({type:"tag",mathmlBuilder:function(c,f){var h=new ar.MathNode("mtable",[new ar.MathNode("mtr",[uo(),new ar.MathNode("mtd",[ki(c.body,f)]),uo(),new ar.MathNode("mtd",[ki(c.tag,f)])])]);return h.setAttribute("width","100%"),h}});var zo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Zo={"\\textbf":"textbf","\\textmd":"textmd"},jo={"\\textit":"textit","\\textup":"textup"},So=function(c,f){var h=c.font;return h?zo[h]?f.withTextFontFamily(zo[h]):Zo[h]?f.withTextFontWeight(Zo[h]):f.withTextFontShape(jo[h]):f};$n({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(c,f){var h=c.parser,x=c.funcName,k=f[0];return{type:"text",mode:h.mode,body:Dr(k),font:x}},htmlBuilder:function(c,f){var h=So(c,f),x=wr(c.body,h,!0);return Tt.makeSpan(["mord","text"],Tt.tryCombineChars(x),h)},mathmlBuilder:function(c,f){var h=So(c,f);return ki(c.body,h)}}),$n({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(c,f){var h=c.parser;return{type:"underline",mode:h.mode,body:f[0]}},htmlBuilder:function(c,f){var h=or(c.body,f),x=Tt.makeLineSpan("underline-line",f),k=f.fontMetrics().defaultRuleThickness,J=Tt.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:k},{type:"elem",elem:x},{type:"kern",size:3*k},{type:"elem",elem:h}]},f);return Tt.makeSpan(["mord","underline"],[J],f)},mathmlBuilder:function(c,f){var h=new ar.MathNode("mo",[new ar.TextNode("\u203E")]);h.setAttribute("stretchy","true");var x=new ar.MathNode("munder",[Gr(c.body,f),h]);return x.setAttribute("accentunder","true"),x}}),$n({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(c,f,h){throw new g("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(c,f){for(var h=Uo(c),x=[],k=f.havingStyle(f.style.text()),J=0;J<h.length;J++){var Oe=h[J];Oe==="~"&&(Oe="\\textasciitilde"),x.push(Tt.makeSymbol(Oe,"Typewriter-Regular",c.mode,k,["mord","texttt"]))}return Tt.makeSpan(["mord","text"].concat(k.sizingClasses(f)),Tt.tryCombineChars(x),k)},mathmlBuilder:function(c,f){var h=new ar.TextNode(Uo(c)),x=new ar.MathNode("mtext",[h]);return x.setAttribute("mathvariant","monospace"),x}});var Uo=function(c){return c.body.replace(/ /g,c.star?"\u2423":"\xA0")},_o=tr,co=_o,Ko=`[ \r
]`,Co="\\\\[a-zA-Z@]+",il="\\\\[^\uD800-\uDFFF]",al=""+Co+Ko+"*",sl=new RegExp("^("+Co+")"+Ko+"*$"),wo="[\u0300-\u036F]",Tl=new RegExp(wo+"+$"),go="("+Ko+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(wo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+al)+("|"+il+")"),ol=function(){function j(f,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=f,this.settings=h,this.tokenRegex=new RegExp(go,"g"),this.catcodes={"%":14}}var c=j.prototype;return c.setCatcode=function(h,x){this.catcodes[h]=x},c.lex=function(){var h=this.input,x=this.tokenRegex.lastIndex;if(x===h.length)return new fe("EOF",new O(this,x,x));var k=this.tokenRegex.exec(h);if(k===null||k.index!==x)throw new g("Unexpected character: '"+h[x]+"'",new fe(h[x],new O(this,x,x+1)));var J=k[2]||" ";if(this.catcodes[J]===14){var Oe=h.indexOf(`
`,this.tokenRegex.lastIndex);return Oe===-1?(this.tokenRegex.lastIndex=h.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Oe+1,this.lex()}var qe=J.match(sl);return qe&&(J=qe[1]),new fe(J,new O(this,x,this.tokenRegex.lastIndex))},j}(),ll=function(){function j(f,h){f===void 0&&(f={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=f,this.undefStack=[]}var c=j.prototype;return c.beginGroup=function(){this.undefStack.push({})},c.endGroup=function(){if(this.undefStack.length===0)throw new g("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var x in h)h.hasOwnProperty(x)&&(h[x]===void 0?delete this.current[x]:this.current[x]=h[x])},c.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},c.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},c.set=function(h,x,k){if(k===void 0&&(k=!1),k){for(var J=0;J<this.undefStack.length;J++)delete this.undefStack[J][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=x)}else{var Oe=this.undefStack[this.undefStack.length-1];Oe&&!Oe.hasOwnProperty(h)&&(Oe[h]=this.current[h])}this.current[h]=x},j}(),Ho={},ul=Ho;function Ut(j,c){Ho[j]=c}Ut("\\@firstoftwo",function(j){var c=j.consumeArgs(2);return{tokens:c[0],numArgs:0}}),Ut("\\@secondoftwo",function(j){var c=j.consumeArgs(2);return{tokens:c[1],numArgs:0}}),Ut("\\@ifnextchar",function(j){var c=j.consumeArgs(3),f=j.future();return c[0].length===1&&c[0][0].text===f.text?{tokens:c[1],numArgs:0}:{tokens:c[2],numArgs:0}}),Ut("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ut("\\TextOrMath",function(j){var c=j.consumeArgs(2);return j.mode==="text"?{tokens:c[0],numArgs:0}:{tokens:c[1],numArgs:0}});var Wo={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};Ut("\\char",function(j){var c=j.popToken(),f,h="";if(c.text==="'")f=8,c=j.popToken();else if(c.text==='"')f=16,c=j.popToken();else if(c.text==="`")if(c=j.popToken(),c.text[0]==="\\")h=c.text.charCodeAt(1);else{if(c.text==="EOF")throw new g("\\char` missing argument");h=c.text.charCodeAt(0)}else f=10;if(f){if(h=Wo[c.text],h==null||h>=f)throw new g("Invalid base-"+f+" digit "+c.text);for(var x;(x=Wo[j.future().text])!=null&&x<f;)h*=f,h+=x,j.popToken()}return"\\@char{"+h+"}"});var To=function(c,f){var h=c.consumeArgs(1)[0];if(h.length!==1)throw new g("\\gdef's first argument must be a macro name");var x=h[0].text,k=0;for(h=c.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=c.consumeArgs(1)[0],h.length!==1)throw new g('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new g('Invalid argument number "'+h[0].text+'"');if(k++,parseInt(h[0].text)!==k)throw new g('Argument number "'+h[0].text+'" out of order');h=c.consumeArgs(1)[0]}return c.macros.set(x,{tokens:h,numArgs:k},f),""};Ut("\\gdef",function(j){return To(j,!0)}),Ut("\\def",function(j){return To(j,!1)}),Ut("\\global",function(j){var c=j.consumeArgs(1)[0];if(c.length!==1)throw new g("Invalid command after \\global");var f=c[0].text;if(f==="\\def")return To(j,!0);throw new g("Invalid command '"+f+"' after \\global")});var Ao=function(c,f,h){var x=c.consumeArgs(1)[0];if(x.length!==1)throw new g("\\newcommand's first argument must be a macro name");var k=x[0].text,J=c.isDefined(k);if(J&&!f)throw new g("\\newcommand{"+k+"} attempting to redefine "+(k+"; use \\renewcommand"));if(!J&&!h)throw new g("\\renewcommand{"+k+"} when command "+k+" does not yet exist; use \\newcommand");var Oe=0;if(x=c.consumeArgs(1)[0],x.length===1&&x[0].text==="["){for(var qe="",Et=c.expandNextToken();Et.text!=="]"&&Et.text!=="EOF";)qe+=Et.text,Et=c.expandNextToken();if(!qe.match(/^\s*[0-9]+\s*$/))throw new g("Invalid number of arguments: "+qe);Oe=parseInt(qe),x=c.consumeArgs(1)[0]}return c.macros.set(k,{tokens:x,numArgs:Oe}),""};Ut("\\newcommand",function(j){return Ao(j,!1,!0)}),Ut("\\renewcommand",function(j){return Ao(j,!0,!1)}),Ut("\\providecommand",function(j){return Ao(j,!0,!0)}),Ut("\\bgroup","{"),Ut("\\egroup","}"),Ut("\\lq","`"),Ut("\\rq","'"),Ut("\\aa","\\r a"),Ut("\\AA","\\r A"),Ut("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ut("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ut("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ut("\u212C","\\mathscr{B}"),Ut("\u2130","\\mathscr{E}"),Ut("\u2131","\\mathscr{F}"),Ut("\u210B","\\mathscr{H}"),Ut("\u2110","\\mathscr{I}"),Ut("\u2112","\\mathscr{L}"),Ut("\u2133","\\mathscr{M}"),Ut("\u211B","\\mathscr{R}"),Ut("\u212D","\\mathfrak{C}"),Ut("\u210C","\\mathfrak{H}"),Ut("\u2128","\\mathfrak{Z}"),Ut("\\Bbbk","\\Bbb{k}"),Ut("\xB7","\\cdotp"),Ut("\\llap","\\mathllap{\\textrm{#1}}"),Ut("\\rlap","\\mathrlap{\\textrm{#1}}"),Ut("\\clap","\\mathclap{\\textrm{#1}}"),Ut("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ut("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ut("\\ne","\\neq"),Ut("\u2260","\\neq"),Ut("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Ut("\u2209","\\notin"),Ut("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ut("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ut("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ut("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ut("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ut("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ut("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ut("\u27C2","\\perp"),Ut("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ut("\u220C","\\notni"),Ut("\u231C","\\ulcorner"),Ut("\u231D","\\urcorner"),Ut("\u231E","\\llcorner"),Ut("\u231F","\\lrcorner"),Ut("\xA9","\\copyright"),Ut("\xAE","\\textregistered"),Ut("\uFE0F","\\textregistered"),Ut("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Ut("\u22EE","\\vdots"),Ut("\\varGamma","\\mathit{\\Gamma}"),Ut("\\varDelta","\\mathit{\\Delta}"),Ut("\\varTheta","\\mathit{\\Theta}"),Ut("\\varLambda","\\mathit{\\Lambda}"),Ut("\\varXi","\\mathit{\\Xi}"),Ut("\\varPi","\\mathit{\\Pi}"),Ut("\\varSigma","\\mathit{\\Sigma}"),Ut("\\varUpsilon","\\mathit{\\Upsilon}"),Ut("\\varPhi","\\mathit{\\Phi}"),Ut("\\varPsi","\\mathit{\\Psi}"),Ut("\\varOmega","\\mathit{\\Omega}"),Ut("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ut("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Ut("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ut("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ut("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ut("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Vo={",":"\\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"};Ut("\\dots",function(j){var c="\\dotso",f=j.expandAfterFuture().text;return f in Vo?c=Vo[f]:(f.substr(0,4)==="\\not"||f in gt.math&&G.contains(["bin","rel"],gt.math[f].group))&&(c="\\dotsb"),c});var to={")":!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};Ut("\\dotso",function(j){var c=j.future().text;return c in to?"\\ldots\\,":"\\ldots"}),Ut("\\dotsc",function(j){var c=j.future().text;return c in to&&c!==","?"\\ldots\\,":"\\ldots"}),Ut("\\cdots",function(j){var c=j.future().text;return c in to?"\\@cdots\\,":"\\@cdots"}),Ut("\\dotsb","\\cdots"),Ut("\\dotsm","\\cdots"),Ut("\\dotsi","\\!\\cdots"),Ut("\\dotsx","\\ldots\\,"),Ut("\\DOTSI","\\relax"),Ut("\\DOTSB","\\relax"),Ut("\\DOTSX","\\relax"),Ut("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ut("\\,","\\tmspace+{3mu}{.1667em}"),Ut("\\thinspace","\\,"),Ut("\\>","\\mskip{4mu}"),Ut("\\:","\\tmspace+{4mu}{.2222em}"),Ut("\\medspace","\\:"),Ut("\\;","\\tmspace+{5mu}{.2777em}"),Ut("\\thickspace","\\;"),Ut("\\!","\\tmspace-{3mu}{.1667em}"),Ut("\\negthinspace","\\!"),Ut("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ut("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ut("\\enspace","\\kern.5em "),Ut("\\enskip","\\hskip.5em\\relax"),Ut("\\quad","\\hskip1em\\relax"),Ut("\\qquad","\\hskip2em\\relax"),Ut("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ut("\\tag@paren","\\tag@literal{({#1})}"),Ut("\\tag@literal",function(j){if(j.macros.get("\\df@tag"))throw new g("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ut("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ut("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ut("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ut("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ut("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Ut("\\\\","\\newline"),Ut("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bs=he["Main-Regular"][84][1]-.7*he["Main-Regular"][65][1]+"em";Ut("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+bs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ut("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+bs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Ut("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ut("\\@hspace","\\hskip #1\\relax"),Ut("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ut("\\ordinarycolon",":"),Ut("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ut("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ut("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ut("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ut("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ut("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ut("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ut("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ut("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ut("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ut("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ut("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ut("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ut("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ut("\u2237","\\dblcolon"),Ut("\u2239","\\eqcolon"),Ut("\u2254","\\coloneqq"),Ut("\u2255","\\eqqcolon"),Ut("\u2A74","\\Coloneqq"),Ut("\\ratio","\\vcentcolon"),Ut("\\coloncolon","\\dblcolon"),Ut("\\colonequals","\\coloneqq"),Ut("\\coloncolonequals","\\Coloneqq"),Ut("\\equalscolon","\\eqqcolon"),Ut("\\equalscoloncolon","\\Eqqcolon"),Ut("\\colonminus","\\coloneq"),Ut("\\coloncolonminus","\\Coloneq"),Ut("\\minuscolon","\\eqcolon"),Ut("\\minuscoloncolon","\\Eqcolon"),Ut("\\coloncolonapprox","\\Colonapprox"),Ut("\\coloncolonsim","\\Colonsim"),Ut("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ut("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ut("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ut("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ut("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ut("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ut("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ut("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ut("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ut("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ut("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ut("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ut("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ut("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ut("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ut("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ut("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ut("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ut("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ut("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ut("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ut("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ut("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ut("\u27E6","\\llbracket"),Ut("\u27E7","\\rrbracket"),Ut("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ut("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Ut("\u2983","\\lBrace"),Ut("\u2984","\\rBrace"),Ut("\\darr","\\downarrow"),Ut("\\dArr","\\Downarrow"),Ut("\\Darr","\\Downarrow"),Ut("\\lang","\\langle"),Ut("\\rang","\\rangle"),Ut("\\uarr","\\uparrow"),Ut("\\uArr","\\Uparrow"),Ut("\\Uarr","\\Uparrow"),Ut("\\N","\\mathbb{N}"),Ut("\\R","\\mathbb{R}"),Ut("\\Z","\\mathbb{Z}"),Ut("\\alef","\\aleph"),Ut("\\alefsym","\\aleph"),Ut("\\Alpha","\\mathrm{A}"),Ut("\\Beta","\\mathrm{B}"),Ut("\\bull","\\bullet"),Ut("\\Chi","\\mathrm{X}"),Ut("\\clubs","\\clubsuit"),Ut("\\cnums","\\mathbb{C}"),Ut("\\Complex","\\mathbb{C}"),Ut("\\Dagger","\\ddagger"),Ut("\\diamonds","\\diamondsuit"),Ut("\\empty","\\emptyset"),Ut("\\Epsilon","\\mathrm{E}"),Ut("\\Eta","\\mathrm{H}"),Ut("\\exist","\\exists"),Ut("\\harr","\\leftrightarrow"),Ut("\\hArr","\\Leftrightarrow"),Ut("\\Harr","\\Leftrightarrow"),Ut("\\hearts","\\heartsuit"),Ut("\\image","\\Im"),Ut("\\infin","\\infty"),Ut("\\Iota","\\mathrm{I}"),Ut("\\isin","\\in"),Ut("\\Kappa","\\mathrm{K}"),Ut("\\larr","\\leftarrow"),Ut("\\lArr","\\Leftarrow"),Ut("\\Larr","\\Leftarrow"),Ut("\\lrarr","\\leftrightarrow"),Ut("\\lrArr","\\Leftrightarrow"),Ut("\\Lrarr","\\Leftrightarrow"),Ut("\\Mu","\\mathrm{M}"),Ut("\\natnums","\\mathbb{N}"),Ut("\\Nu","\\mathrm{N}"),Ut("\\Omicron","\\mathrm{O}"),Ut("\\plusmn","\\pm"),Ut("\\rarr","\\rightarrow"),Ut("\\rArr","\\Rightarrow"),Ut("\\Rarr","\\Rightarrow"),Ut("\\real","\\Re"),Ut("\\reals","\\mathbb{R}"),Ut("\\Reals","\\mathbb{R}"),Ut("\\Rho","\\mathrm{P}"),Ut("\\sdot","\\cdot"),Ut("\\sect","\\S"),Ut("\\spades","\\spadesuit"),Ut("\\sub","\\subset"),Ut("\\sube","\\subseteq"),Ut("\\supe","\\supseteq"),Ut("\\Tau","\\mathrm{T}"),Ut("\\thetasym","\\vartheta"),Ut("\\weierp","\\wp"),Ut("\\Zeta","\\mathrm{Z}"),Ut("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ut("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ut("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ut("\\blue","\\textcolor{##6495ed}{#1}"),Ut("\\orange","\\textcolor{##ffa500}{#1}"),Ut("\\pink","\\textcolor{##ff00af}{#1}"),Ut("\\red","\\textcolor{##df0030}{#1}"),Ut("\\green","\\textcolor{##28ae7b}{#1}"),Ut("\\gray","\\textcolor{gray}{#1}"),Ut("\\purple","\\textcolor{##9d38bd}{#1}"),Ut("\\blueA","\\textcolor{##ccfaff}{#1}"),Ut("\\blueB","\\textcolor{##80f6ff}{#1}"),Ut("\\blueC","\\textcolor{##63d9ea}{#1}"),Ut("\\blueD","\\textcolor{##11accd}{#1}"),Ut("\\blueE","\\textcolor{##0c7f99}{#1}"),Ut("\\tealA","\\textcolor{##94fff5}{#1}"),Ut("\\tealB","\\textcolor{##26edd5}{#1}"),Ut("\\tealC","\\textcolor{##01d1c1}{#1}"),Ut("\\tealD","\\textcolor{##01a995}{#1}"),Ut("\\tealE","\\textcolor{##208170}{#1}"),Ut("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ut("\\greenB","\\textcolor{##8af281}{#1}"),Ut("\\greenC","\\textcolor{##74cf70}{#1}"),Ut("\\greenD","\\textcolor{##1fab54}{#1}"),Ut("\\greenE","\\textcolor{##0d923f}{#1}"),Ut("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ut("\\goldB","\\textcolor{##ffbb71}{#1}"),Ut("\\goldC","\\textcolor{##ff9c39}{#1}"),Ut("\\goldD","\\textcolor{##e07d10}{#1}"),Ut("\\goldE","\\textcolor{##a75a05}{#1}"),Ut("\\redA","\\textcolor{##fca9a9}{#1}"),Ut("\\redB","\\textcolor{##ff8482}{#1}"),Ut("\\redC","\\textcolor{##f9685d}{#1}"),Ut("\\redD","\\textcolor{##e84d39}{#1}"),Ut("\\redE","\\textcolor{##bc2612}{#1}"),Ut("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ut("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ut("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ut("\\maroonD","\\textcolor{##ca337c}{#1}"),Ut("\\maroonE","\\textcolor{##9e034e}{#1}"),Ut("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ut("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ut("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ut("\\purpleD","\\textcolor{##7854ab}{#1}"),Ut("\\purpleE","\\textcolor{##543b78}{#1}"),Ut("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ut("\\mintB","\\textcolor{##edf2df}{#1}"),Ut("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ut("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ut("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ut("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ut("\\grayD","\\textcolor{##d6d8da}{#1}"),Ut("\\grayE","\\textcolor{##babec2}{#1}"),Ut("\\grayF","\\textcolor{##888d93}{#1}"),Ut("\\grayG","\\textcolor{##626569}{#1}"),Ut("\\grayH","\\textcolor{##3b3e40}{#1}"),Ut("\\grayI","\\textcolor{##21242c}{#1}"),Ut("\\kaBlue","\\textcolor{##314453}{#1}"),Ut("\\kaGreen","\\textcolor{##71B307}{#1}");var Io={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Go=function(){function j(f,h,x){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=h,this.expansionCount=0,this.feed(f),this.macros=new ll(ul,h.macros),this.mode=x,this.stack=[]}var c=j.prototype;return c.feed=function(h){this.lexer=new ol(h,this.settings)},c.switchMode=function(h){this.mode=h},c.beginGroup=function(){this.macros.beginGroup()},c.endGroup=function(){this.macros.endGroup()},c.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},c.popToken=function(){return this.future(),this.stack.pop()},c.pushToken=function(h){this.stack.push(h)},c.pushTokens=function(h){var x;(x=this.stack).push.apply(x,h)},c.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},c.consumeArgs=function(h){for(var x=[],k=0;k<h;++k){this.consumeSpaces();var J=this.popToken();if(J.text==="{"){for(var Oe=[],qe=1;qe!==0;){var Et=this.popToken();if(Oe.push(Et),Et.text==="{")++qe;else if(Et.text==="}")--qe;else if(Et.text==="EOF")throw new g("End of input in macro argument",J)}Oe.pop(),Oe.reverse(),x[k]=Oe}else{if(J.text==="EOF")throw new g("End of input expecting macro argument");x[k]=[J]}}return x},c.expandOnce=function(){var h=this.popToken(),x=h.text,k=this._getExpansion(x);if(k==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new g("Too many expansions: infinite loop or need to increase maxExpand setting");var J=k.tokens;if(k.numArgs){var Oe=this.consumeArgs(k.numArgs);J=J.slice();for(var qe=J.length-1;qe>=0;--qe){var Et=J[qe];if(Et.text==="#"){if(qe===0)throw new g("Incomplete placeholder at end of macro body",Et);if(Et=J[--qe],Et.text==="#")J.splice(qe+1,1);else if(/^[1-9]$/.test(Et.text)){var Qt;(Qt=J).splice.apply(Qt,[qe,2].concat(Oe[+Et.text-1]))}else throw new g("Not a valid argument number",Et)}}}return this.pushTokens(J),J},c.expandAfterFuture=function(){return this.expandOnce(),this.future()},c.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof fe)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},c.expandMacro=function(h){if(this.macros.get(h)){var x=[],k=this.stack.length;for(this.pushToken(new fe(h));this.stack.length>k;){var J=this.expandOnce();J instanceof fe&&x.push(this.stack.pop())}return x}},c.expandMacroAsText=function(h){var x=this.expandMacro(h);return x&&x.map(function(k){return k.text}).join("")},c._getExpansion=function(h){var x=this.macros.get(h);if(x==null)return x;var k=typeof x=="function"?x(this):x;if(typeof k=="string"){var J=0;if(k.indexOf("#")!==-1)for(var Oe=k.replace(/##/g,"");Oe.indexOf("#"+(J+1))!==-1;)++J;for(var qe=new ol(k,this.settings),Et=[],Qt=qe.lex();Qt.text!=="EOF";)Et.push(Qt),Qt=qe.lex();Et.reverse();var dn={tokens:Et,numArgs:J};return dn}return k},c.isDefined=function(h){return this.macros.has(h)||co.hasOwnProperty(h)||gt.math.hasOwnProperty(h)||gt.text.hasOwnProperty(h)||Io.hasOwnProperty(h)},j}(),be={"\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"}},ye={\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"},it=function(){function j(f,h){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Go(f,h,this.mode),this.settings=h,this.leftrightDepth=0}var c=j.prototype;return c.expect=function(h,x){if(x===void 0&&(x=!0),this.fetch().text!==h)throw new g("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());x&&this.consume()},c.consume=function(){this.nextToken=null},c.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},c.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},c.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},c.parseExpression=function(h,x){for(var k=[];;){this.mode==="math"&&this.consumeSpaces();var J=this.fetch();if(j.endOfExpression.indexOf(J.text)!==-1||x&&J.text===x||h&&co[J.text]&&co[J.text].infix)break;var Oe=this.parseAtom(x);if(!Oe)break;k.push(Oe)}return this.mode==="text"&&this.formLigatures(k),this.handleInfixNodes(k)},c.handleInfixNodes=function(h){for(var x=-1,k,J=0;J<h.length;J++){var Oe=On(h[J],"infix");if(Oe){if(x!==-1)throw new g("only one infix operator per group",Oe.token);x=J,k=Oe.replaceWith}}if(x!==-1&&k){var qe,Et,Qt=h.slice(0,x),dn=h.slice(x+1);Qt.length===1&&Qt[0].type==="ordgroup"?qe=Qt[0]:qe={type:"ordgroup",mode:this.mode,body:Qt},dn.length===1&&dn[0].type==="ordgroup"?Et=dn[0]:Et={type:"ordgroup",mode:this.mode,body:dn};var En;return k==="\\\\abovefrac"?En=this.callFunction(k,[qe,h[x],Et],[]):En=this.callFunction(k,[qe,Et],[]),[En]}else return h},c.handleSupSubscript=function(h){var x=this.fetch(),k=x.text;this.consume();var J=this.parseGroup(h,!1,j.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!J)throw new g("Expected group after '"+k+"'",x);return J},c.formatUnsupportedCmd=function(h){for(var x=[],k=0;k<h.length;k++)x.push({type:"textord",mode:"text",text:h[k]});var J={type:"text",mode:this.mode,body:x},Oe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[J]};return Oe},c.parseAtom=function(h){var x=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return x;for(var k,J;;){this.consumeSpaces();var Oe=this.fetch();if(Oe.text==="\\limits"||Oe.text==="\\nolimits"){var qe=On(x,"op");if(qe){var Et=Oe.text==="\\limits";qe.limits=Et,qe.alwaysHandleSupSub=!0}else if(qe=On(x,"operatorname"),qe&&qe.alwaysHandleSupSub){var Qt=Oe.text==="\\limits";qe.limits=Qt}else throw new g("Limit controls must follow a math operator",Oe);this.consume()}else if(Oe.text==="^"){if(k)throw new g("Double superscript",Oe);k=this.handleSupSubscript("superscript")}else if(Oe.text==="_"){if(J)throw new g("Double subscript",Oe);J=this.handleSupSubscript("subscript")}else if(Oe.text==="'"){if(k)throw new g("Double superscript",Oe);var dn={type:"textord",mode:this.mode,text:"\\prime"},En=[dn];for(this.consume();this.fetch().text==="'";)En.push(dn),this.consume();this.fetch().text==="^"&&En.push(this.handleSupSubscript("superscript")),k={type:"ordgroup",mode:this.mode,body:En}}else break}return k||J?{type:"supsub",mode:this.mode,base:x,sup:k,sub:J}:x},c.parseFunction=function(h,x,k){var J=this.fetch(),Oe=J.text,qe=co[Oe];if(!qe)return null;if(this.consume(),k!=null&&qe.greediness<=k)throw new g("Got function '"+Oe+"' with no arguments"+(x?" as "+x:""),J);if(this.mode==="text"&&!qe.allowedInText)throw new g("Can't use function '"+Oe+"' in text mode",J);if(this.mode==="math"&&qe.allowedInMath===!1)throw new g("Can't use function '"+Oe+"' in math mode",J);var Et=this.parseArguments(Oe,qe),Qt=Et.args,dn=Et.optArgs;return this.callFunction(Oe,Qt,dn,J,h)},c.callFunction=function(h,x,k,J,Oe){var qe={funcName:h,parser:this,token:J,breakOnTokenText:Oe},Et=co[h];if(Et&&Et.handler)return Et.handler(qe,x,k);throw new g("No function handler for "+h)},c.parseArguments=function(h,x){var k=x.numArgs+x.numOptionalArgs;if(k===0)return{args:[],optArgs:[]};for(var J=x.greediness,Oe=[],qe=[],Et=0;Et<k;Et++){var Qt=x.argTypes&&x.argTypes[Et],dn=Et<x.numOptionalArgs,En=Et>0&&!dn||Et===0&&!dn&&this.mode==="math",Nn=this.parseGroupOfType("argument to '"+h+"'",Qt,dn,J,En);if(!Nn){if(dn){qe.push(null);continue}throw new g("Expected group after '"+h+"'",this.fetch())}(dn?qe:Oe).push(Nn)}return{args:Oe,optArgs:qe}},c.parseGroupOfType=function(h,x,k,J,Oe){switch(x){case"color":return Oe&&this.consumeSpaces(),this.parseColorGroup(k);case"size":return Oe&&this.consumeSpaces(),this.parseSizeGroup(k);case"url":return this.parseUrlGroup(k,Oe);case"math":case"text":return this.parseGroup(h,k,J,void 0,x,Oe);case"hbox":{var qe=this.parseGroup(h,k,J,void 0,"text",Oe);if(!qe)return qe;var Et={type:"styling",mode:qe.mode,body:[qe],style:"text"};return Et}case"raw":{if(Oe&&this.consumeSpaces(),k&&this.fetch().text==="{")return null;var Qt=this.parseStringGroup("raw",k,!0);if(Qt)return{type:"raw",mode:"text",string:Qt.text};throw new g("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,k,J,void 0,void 0,Oe);default:throw new g("Unknown group type as "+h,this.fetch())}},c.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},c.parseStringGroup=function(h,x,k){var J=x?"[":"{",Oe=x?"]":"}",qe=this.fetch();if(qe.text!==J){if(x)return null;if(k&&qe.text!=="EOF"&&/[^{}[\]]/.test(qe.text))return this.consume(),qe}var Et=this.mode;this.mode="text",this.expect(J);for(var Qt="",dn=this.fetch(),En=0,Nn=dn,Un;(Un=this.fetch()).text!==Oe||k&&En>0;){switch(Un.text){case"EOF":throw new g("Unexpected end of input in "+h,dn.range(Nn,Qt));case J:En++;break;case Oe:En--;break}Nn=Un,Qt+=Nn.text,this.consume()}return this.expect(Oe),this.mode=Et,dn.range(Nn,Qt)},c.parseRegexGroup=function(h,x){var k=this.mode;this.mode="text";for(var J=this.fetch(),Oe=J,qe="",Et;(Et=this.fetch()).text!=="EOF"&&h.test(qe+Et.text);)Oe=Et,qe+=Oe.text,this.consume();if(qe==="")throw new g("Invalid "+x+": '"+J.text+"'",J);return this.mode=k,J.range(Oe,qe)},c.parseColorGroup=function(h){var x=this.parseStringGroup("color",h);if(!x)return null;var k=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(x.text);if(!k)throw new g("Invalid color: '"+x.text+"'",x);var J=k[0];return/^[0-9a-f]{6}$/i.test(J)&&(J="#"+J),{type:"color-token",mode:this.mode,color:J}},c.parseSizeGroup=function(h){var x,k=!1;if(!h&&this.fetch().text!=="{"?x=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):x=this.parseStringGroup("size",h),!x)return null;!h&&x.text.length===0&&(x.text="0pt",k=!0);var J=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(x.text);if(!J)throw new g("Invalid size: '"+x.text+"'",x);var Oe={number:+(J[1]+J[2]),unit:J[3]};if(!Jt(Oe))throw new g("Invalid unit: '"+Oe.unit+"'",x);return{type:"size",mode:this.mode,value:Oe,isBlank:k}},c.parseUrlGroup=function(h,x){this.gullet.lexer.setCatcode("%",13);var k=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!k)return null;var J=k.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:J}},c.parseGroup=function(h,x,k,J,Oe,qe){var Et=this.mode;Oe&&this.switchMode(Oe),qe&&this.consumeSpaces();var Qt=this.fetch(),dn=Qt.text,En;if(x?dn==="[":dn==="{"||dn==="\\begingroup"){this.consume();var Nn=j.endOfGroup[dn];this.gullet.beginGroup();var Un=this.parseExpression(!1,Nn),Kn=this.fetch();this.expect(Nn),this.gullet.endGroup(),En={type:"ordgroup",mode:this.mode,loc:O.range(Qt,Kn),body:Un,semisimple:dn==="\\begingroup"||void 0}}else if(x)En=null;else if(En=this.parseFunction(J,h,k)||this.parseSymbol(),En==null&&dn[0]==="\\"&&!Io.hasOwnProperty(dn)){if(this.settings.throwOnError)throw new g("Undefined control sequence: "+dn,Qt);En=this.formatUnsupportedCmd(dn),this.consume()}return Oe&&this.switchMode(Et),En},c.formLigatures=function(h){for(var x=h.length-1,k=0;k<x;++k){var J=h[k],Oe=J.text;Oe==="-"&&h[k+1].text==="-"&&(k+1<x&&h[k+2].text==="-"?(h.splice(k,3,{type:"textord",mode:"text",loc:O.range(J,h[k+2]),text:"---"}),x-=2):(h.splice(k,2,{type:"textord",mode:"text",loc:O.range(J,h[k+1]),text:"--"}),x-=1)),(Oe==="'"||Oe==="`")&&h[k+1].text===Oe&&(h.splice(k,2,{type:"textord",mode:"text",loc:O.range(J,h[k+1]),text:Oe+Oe}),x-=1)}},c.parseSymbol=function(){var h=this.fetch(),x=h.text;if(/^\\verb[^a-zA-Z]/.test(x)){this.consume();var k=x.slice(5),J=k.charAt(0)==="*";if(J&&(k=k.slice(1)),k.length<2||k.charAt(0)!==k.slice(-1))throw new g(`\\verb assertion failed --
please report what input caused this bug`);return k=k.slice(1,-1),{type:"verb",mode:"text",body:k,star:J}}ye.hasOwnProperty(x[0])&&!gt[this.mode][x[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+x[0]+'" used in math mode',h),x=ye[x[0]]+x.substr(1));var Oe=Tl.exec(x);Oe&&(x=x.substring(0,Oe.index),x==="i"?x="\u0131":x==="j"&&(x="\u0237"));var qe;if(gt[this.mode][x]){this.settings.strict&&this.mode==="math"&&Ne.indexOf(x)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+x[0]+'" used in math mode',h);var Et=gt[this.mode][x].group,Qt=O.range(h),dn;if(Vt.hasOwnProperty(Et)){var En=Et;dn={type:"atom",mode:this.mode,family:En,loc:Qt,text:x}}else dn={type:Et,mode:this.mode,loc:Qt,text:x};qe=dn}else if(x.charCodeAt(0)>=128)this.settings.strict&&(dt(x.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+x[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+x[0]+'"'+(" ("+x.charCodeAt(0)+")"),h)),qe={type:"textord",mode:"text",loc:O.range(h),text:x};else return null;if(this.consume(),Oe)for(var Nn=0;Nn<Oe[0].length;Nn++){var Un=Oe[0][Nn];if(!be[Un])throw new g("Unknown accent ' "+Un+"'",h);var Kn=be[Un][this.mode];if(!Kn)throw new g("Accent "+Un+" unsupported in "+this.mode+" mode",h);qe={type:"accent",mode:this.mode,loc:O.range(h),label:Kn,isStretchy:!1,isShifty:!0,base:qe}}return qe},j}();it.endOfExpression=["}","\\endgroup","\\end","\\right","&"],it.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},it.SUPSUB_GREEDINESS=1;var At=function(c,f){if(!(typeof c=="string"||c instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new it(c,f);delete h.gullet.macros.current["\\df@tag"];var x=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!f.displayMode)throw new g("\\tag works only in display equations");h.gullet.feed("\\df@tag"),x=[{type:"tag",mode:"text",body:x,tag:h.parse()}]}return x},Yt=At,en=function(c,f,h){f.textContent="";var x=yn(c,h).toNode();f.appendChild(x)};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."),en=function(){throw new g("KaTeX doesn't work in quirks mode.")});var pn=function(c,f){var h=yn(c,f).toMarkup();return h},on=function(c,f){var h=new L(f);return Yt(c,h)},Sn=function(c,f,h){if(h.throwOnError||!(c instanceof g))throw c;var x=Tt.makeSpan(["katex-error"],[new Se(f)]);return x.setAttribute("title",c.toString()),x.setAttribute("style","color:"+h.errorColor),x},yn=function(c,f){var h=new L(f);try{var x=Yt(c,h);return hi(x,c,h)}catch(k){return Sn(k,c,h)}},qn=function(c,f){var h=new L(f);try{var x=Yt(c,h);return Ni(x,c,h)}catch(k){return Sn(k,c,h)}},kn={version:"0.11.1",render:en,renderToString:pn,ParseError:g,__parse:on,__renderToDomTree:yn,__renderToHTMLTree:qn,__setFontMetrics:Ct,__defineSymbol:E,__defineMacro:Ut,__domTree:{Span:nt,Anchor:Ue,SymbolNode:Se,SvgNode:Ae,PathNode:Ce,LineNode:ke}},Mn=u.default=kn}]).default})},32834:function(zn){(function(Pt,u){zn.exports=u()})(this,function(){"use strict";function Pt(Ke,st){for(var _t=0;_t<st.length;_t++){var xe=st[_t];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(Ke,xe.key,xe)}}function u(Ke,st,_t){return st&&Pt(Ke.prototype,st),_t&&Pt(Ke,_t),Ke}function i(Ke,st){if(Ke){if(typeof Ke=="string")return U(Ke,st);var _t=Object.prototype.toString.call(Ke).slice(8,-1);if(_t==="Object"&&Ke.constructor&&(_t=Ke.constructor.name),_t==="Map"||_t==="Set")return Array.from(Ke);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return U(Ke,st)}}function U(Ke,st){(st==null||st>Ke.length)&&(st=Ke.length);for(var _t=0,xe=new Array(st);_t<st;_t++)xe[_t]=Ke[_t];return xe}function O(Ke,st){var _t=typeof Symbol!="undefined"&&Ke[Symbol.iterator]||Ke["@@iterator"];if(_t)return(_t=_t.call(Ke)).next.bind(_t);if(Array.isArray(Ke)||(_t=i(Ke))||st&&Ke&&typeof Ke.length=="number"){_t&&(Ke=_t);var xe=0;return function(){return xe>=Ke.length?{done:!0}:{done:!1,value:Ke[xe++]}}}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 fe={exports:{}};function Z(){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 g(Ke){fe.exports.defaults=Ke}fe.exports={defaults:Z(),getDefaults:Z,changeDefaults:g};var H=/[&<>"']/,V=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,y=/[<>"']|&(?!#?\w+;)/g,M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b=function(st){return M[st]};function C(Ke,st){if(st){if(H.test(Ke))return Ke.replace(V,b)}else if(l.test(Ke))return Ke.replace(y,b);return Ke}var T=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function $(Ke){return Ke.replace(T,function(st,_t){return _t=_t.toLowerCase(),_t==="colon"?":":_t.charAt(0)==="#"?_t.charAt(1)==="x"?String.fromCharCode(parseInt(_t.substring(2),16)):String.fromCharCode(+_t.substring(1)):""})}var W=/(^|[^\[])\^/g;function X(Ke,st){Ke=Ke.source||Ke,st=st||"";var _t={replace:function(_e,et){return et=et.source||et,et=et.replace(W,"$1"),Ke=Ke.replace(_e,et),_t},getRegex:function(){return new RegExp(Ke,st)}};return _t}var G=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Q(Ke,st,_t){if(Ke){var xe;try{xe=decodeURIComponent($(_t)).replace(G,"").toLowerCase()}catch(_e){return null}if(xe.indexOf("javascript:")===0||xe.indexOf("vbscript:")===0||xe.indexOf("data:")===0)return null}st&&!L.test(_t)&&(_t=pe(st,_t));try{_t=encodeURI(_t).replace(/%25/g,"%")}catch(_e){return null}return _t}var P={},A=/^[^:]+:\/*[^/]*$/,ce=/^([^:]+:)[\s\S]*$/,Ee=/^([^:]+:\/*[^/]*)[\s\S]*$/;function pe(Ke,st){P[" "+Ke]||(A.test(Ke)?P[" "+Ke]=Ke+"/":P[" "+Ke]=Ze(Ke,"/",!0)),Ke=P[" "+Ke];var _t=Ke.indexOf(":")===-1;return st.substring(0,2)==="//"?_t?st:Ke.replace(ce,"$1")+st:st.charAt(0)==="/"?_t?st:Ke.replace(Ee,"$1")+st:Ke+st}var ze={exec:function(){}};function Je(Ke){for(var st=1,_t,xe;st<arguments.length;st++){_t=arguments[st];for(xe in _t)Object.prototype.hasOwnProperty.call(_t,xe)&&(Ke[xe]=_t[xe])}return Ke}function Pe(Ke,st){var _t=Ke.replace(/\|/g,function(et,Qe,z){for(var Rt=!1,ge=Qe;--ge>=0&&z[ge]==="\\";)Rt=!Rt;return Rt?"|":" |"}),xe=_t.split(/ \|/),_e=0;if(xe.length>st)xe.splice(st);else for(;xe.length<st;)xe.push("");for(;_e<xe.length;_e++)xe[_e]=xe[_e].trim().replace(/\\\|/g,"|");return xe}function Ze(Ke,st,_t){var xe=Ke.length;if(xe===0)return"";for(var _e=0;_e<xe;){var et=Ke.charAt(xe-_e-1);if(et===st&&!_t)_e++;else if(et!==st&&_t)_e++;else break}return Ke.substr(0,xe-_e)}function le(Ke,st){if(Ke.indexOf(st[1])===-1)return-1;for(var _t=Ke.length,xe=0,_e=0;_e<_t;_e++)if(Ke[_e]==="\\")_e++;else if(Ke[_e]===st[0])xe++;else if(Ke[_e]===st[1]&&(xe--,xe<0))return _e;return-1}function N(Ke){Ke&&Ke.sanitize&&!Ke.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function S(Ke,st){if(st<1)return"";for(var _t="";st>1;)st&1&&(_t+=Ke),st>>=1,Ke+=Ke;return _t+Ke}var q={escape:C,unescape:$,edit:X,cleanUrl:Q,resolveUrl:pe,noopTest:ze,merge:Je,splitCells:Pe,rtrim:Ze,findClosingBracket:le,checkSanitizeDeprecation:N,repeatString:S},te=fe.exports.defaults,se=q.rtrim,w=q.splitCells,I=q.escape,de=q.findClosingBracket;function De(Ke,st,_t){var xe=st.href,_e=st.title?I(st.title):null,et=Ke[1].replace(/\\([\[\]])/g,"$1");return Ke[0].charAt(0)!=="!"?{type:"link",raw:_t,href:xe,title:_e,text:et}:{type:"image",raw:_t,href:xe,title:_e,text:I(et)}}function dt(Ke,st){var _t=Ke.match(/^(\s+)(?:```)/);if(_t===null)return st;var xe=_t[1];return st.split(`
`).map(function(_e){var et=_e.match(/^\s+/);if(et===null)return _e;var Qe=et[0];return Qe.length>=xe.length?_e.slice(xe.length):_e}).join(`
`)}var It=function(){function Ke(_t){this.options=_t||te}var st=Ke.prototype;return st.space=function(xe){var _e=this.rules.block.newline.exec(xe);if(_e)return _e[0].length>1?{type:"space",raw:_e[0]}:{raw:`
`}},st.code=function(xe){var _e=this.rules.block.code.exec(xe);if(_e){var et=_e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:_e[0],codeBlockStyle:"indented",text:this.options.pedantic?et:se(et,`
`)}}},st.fences=function(xe){var _e=this.rules.block.fences.exec(xe);if(_e){var et=_e[0],Qe=dt(et,_e[3]||"");return{type:"code",raw:et,lang:_e[2]?_e[2].trim():_e[2],text:Qe}}},st.heading=function(xe){var _e=this.rules.block.heading.exec(xe);if(_e){var et=_e[2].trim();if(/#$/.test(et)){var Qe=se(et,"#");(this.options.pedantic||!Qe||/ $/.test(Qe))&&(et=Qe.trim())}return{type:"heading",raw:_e[0],depth:_e[1].length,text:et}}},st.nptable=function(xe){var _e=this.rules.block.nptable.exec(xe);if(_e){var et={type:"table",header:w(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
`):[],raw:_e[0]};if(et.header.length===et.align.length){var Qe=et.align.length,z;for(z=0;z<Qe;z++)/^ *-+: *$/.test(et.align[z])?et.align[z]="right":/^ *:-+: *$/.test(et.align[z])?et.align[z]="center":/^ *:-+ *$/.test(et.align[z])?et.align[z]="left":et.align[z]=null;for(Qe=et.cells.length,z=0;z<Qe;z++)et.cells[z]=w(et.cells[z],et.header.length);return et}}},st.hr=function(xe){var _e=this.rules.block.hr.exec(xe);if(_e)return{type:"hr",raw:_e[0]}},st.blockquote=function(xe){var _e=this.rules.block.blockquote.exec(xe);if(_e){var et=_e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:_e[0],text:et}}},st.list=function(xe){var _e=this.rules.block.list.exec(xe);if(_e){var et=_e[0],Qe=_e[2],z=Qe.length>1,Rt={type:"list",raw:et,ordered:z,start:z?+Qe.slice(0,-1):"",loose:!1,items:[]},ge=_e[0].match(this.rules.block.item),Ht=!1,cn,mt,ne,we,B,xt,lt,ot,$t,Bt=ge.length;ne=this.rules.block.listItemStart.exec(ge[0]);for(var zt=0;zt<Bt;zt++){if(cn=ge[zt],et=cn,this.options.pedantic||($t=cn.match(new RegExp("\\n\\s*\\n {0,"+(ne[0].length-1)+"}\\S")),$t&&(B=cn.length-$t.index+ge.slice(zt+1).join(`
`).length,Rt.raw=Rt.raw.substring(0,Rt.raw.length-B),cn=cn.substring(0,$t.index),et=cn,Bt=zt+1)),zt!==Bt-1){if(we=this.rules.block.listItemStart.exec(ge[zt+1]),this.options.pedantic?we[1].length>ne[1].length:we[1].length>=ne[0].length||we[1].length>3){ge.splice(zt,2,ge[zt]+(!this.options.pedantic&&we[1].length<ne[0].length&&!ge[zt].match(/\n$/)?"":`
`)+ge[zt+1]),zt--,Bt--;continue}else(!this.options.pedantic||this.options.smartLists?we[2][we[2].length-1]!==Qe[Qe.length-1]:z===(we[2].length===1))&&(B=ge.slice(zt+1).join(`
`).length,Rt.raw=Rt.raw.substring(0,Rt.raw.length-B),zt=Bt-1);ne=we}mt=cn.length,cn=cn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~cn.indexOf(`
`)&&(mt-=cn.length,cn=this.options.pedantic?cn.replace(/^ {1,4}/gm,""):cn.replace(new RegExp("^ {1,"+mt+"}","gm"),"")),cn=se(cn,`
`),zt!==Bt-1&&(et=et+`
`),xt=Ht||/\n\n(?!\s*$)/.test(et),zt!==Bt-1&&(Ht=et.slice(-2)===`
`,xt||(xt=Ht)),xt&&(Rt.loose=!0),this.options.gfm&&(lt=/^\[[ xX]\] /.test(cn),ot=void 0,lt&&(ot=cn[1]!==" ",cn=cn.replace(/^\[[ xX]\] +/,""))),Rt.items.push({type:"list_item",raw:et,task:lt,checked:ot,loose:xt,text:cn})}return Rt}},st.html=function(xe){var _e=this.rules.block.html.exec(xe);if(_e)return{type:this.options.sanitize?"paragraph":"html",raw:_e[0],pre:!this.options.sanitizer&&(_e[1]==="pre"||_e[1]==="script"||_e[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):I(_e[0]):_e[0]}},st.def=function(xe){var _e=this.rules.block.def.exec(xe);if(_e){_e[3]&&(_e[3]=_e[3].substring(1,_e[3].length-1));var et=_e[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:et,raw:_e[0],href:_e[2],title:_e[3]}}},st.table=function(xe){var _e=this.rules.block.table.exec(xe);if(_e){var et={type:"table",header:w(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
`):[]};if(et.header.length===et.align.length){et.raw=_e[0];var Qe=et.align.length,z;for(z=0;z<Qe;z++)/^ *-+: *$/.test(et.align[z])?et.align[z]="right":/^ *:-+: *$/.test(et.align[z])?et.align[z]="center":/^ *:-+ *$/.test(et.align[z])?et.align[z]="left":et.align[z]=null;for(Qe=et.cells.length,z=0;z<Qe;z++)et.cells[z]=w(et.cells[z].replace(/^ *\| *| *\| *$/g,""),et.header.length);return et}}},st.lheading=function(xe){var _e=this.rules.block.lheading.exec(xe);if(_e)return{type:"heading",raw:_e[0],depth:_e[2].charAt(0)==="="?1:2,text:_e[1]}},st.paragraph=function(xe){var _e=this.rules.block.paragraph.exec(xe);if(_e)return{type:"paragraph",raw:_e[0],text:_e[1].charAt(_e[1].length-1)===`
`?_e[1].slice(0,-1):_e[1]}},st.text=function(xe){var _e=this.rules.block.text.exec(xe);if(_e)return{type:"text",raw:_e[0],text:_e[0]}},st.escape=function(xe){var _e=this.rules.inline.escape.exec(xe);if(_e)return{type:"escape",raw:_e[0],text:I(_e[1])}},st.tag=function(xe,_e,et){var Qe=this.rules.inline.tag.exec(xe);if(Qe)return!_e&&/^<a /i.test(Qe[0])?_e=!0:_e&&/^<\/a>/i.test(Qe[0])&&(_e=!1),!et&&/^<(pre|code|kbd|script)(\s|>)/i.test(Qe[0])?et=!0:et&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Qe[0])&&(et=!1),{type:this.options.sanitize?"text":"html",raw:Qe[0],inLink:_e,inRawBlock:et,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Qe[0]):I(Qe[0]):Qe[0]}},st.link=function(xe){var _e=this.rules.inline.link.exec(xe);if(_e){var et=_e[2].trim();if(!this.options.pedantic&&/^</.test(et)){if(!/>$/.test(et))return;var Qe=se(et.slice(0,-1),"\\");if((et.length-Qe.length)%2===0)return}else{var z=de(_e[2],"()");if(z>-1){var Rt=_e[0].indexOf("!")===0?5:4,ge=Rt+_e[1].length+z;_e[2]=_e[2].substring(0,z),_e[0]=_e[0].substring(0,ge).trim(),_e[3]=""}}var Ht=_e[2],cn="";if(this.options.pedantic){var mt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ht);mt&&(Ht=mt[1],cn=mt[3])}else cn=_e[3]?_e[3].slice(1,-1):"";return Ht=Ht.trim(),/^</.test(Ht)&&(this.options.pedantic&&!/>$/.test(et)?Ht=Ht.slice(1):Ht=Ht.slice(1,-1)),De(_e,{href:Ht&&Ht.replace(this.rules.inline._escapes,"$1"),title:cn&&cn.replace(this.rules.inline._escapes,"$1")},_e[0])}},st.reflink=function(xe,_e){var et;if((et=this.rules.inline.reflink.exec(xe))||(et=this.rules.inline.nolink.exec(xe))){var Qe=(et[2]||et[1]).replace(/\s+/g," ");if(Qe=_e[Qe.toLowerCase()],!Qe||!Qe.href){var z=et[0].charAt(0);return{type:"text",raw:z,text:z}}return De(et,Qe,et[0])}},st.emStrong=function(xe,_e,et){et===void 0&&(et="");var Qe=this.rules.inline.emStrong.lDelim.exec(xe);if(Qe&&!(Qe[3]&&et.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 z=Qe[1]||Qe[2]||"";if(!z||z&&(et===""||this.rules.inline.punctuation.exec(et))){var Rt=Qe[0].length-1,ge,Ht,cn=Rt,mt=0,ne=Qe[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ne.lastIndex=0,_e=_e.slice(-1*xe.length+Rt);(Qe=ne.exec(_e))!=null;)if(ge=Qe[1]||Qe[2]||Qe[3]||Qe[4]||Qe[5]||Qe[6],!!ge){if(Ht=ge.length,Qe[3]||Qe[4]){cn+=Ht;continue}else if((Qe[5]||Qe[6])&&Rt%3&&!((Rt+Ht)%3)){mt+=Ht;continue}if(cn-=Ht,!(cn>0))return Ht=Math.min(Ht,Ht+cn+mt),Math.min(Rt,Ht)%2?{type:"em",raw:xe.slice(0,Rt+Qe.index+Ht+1),text:xe.slice(1,Rt+Qe.index+Ht)}:{type:"strong",raw:xe.slice(0,Rt+Qe.index+Ht+1),text:xe.slice(2,Rt+Qe.index+Ht-1)}}}}},st.codespan=function(xe){var _e=this.rules.inline.code.exec(xe);if(_e){var et=_e[2].replace(/\n/g," "),Qe=/[^ ]/.test(et),z=/^ /.test(et)&&/ $/.test(et);return Qe&&z&&(et=et.substring(1,et.length-1)),et=I(et,!0),{type:"codespan",raw:_e[0],text:et}}},st.br=function(xe){var _e=this.rules.inline.br.exec(xe);if(_e)return{type:"br",raw:_e[0]}},st.del=function(xe){var _e=this.rules.inline.del.exec(xe);if(_e)return{type:"del",raw:_e[0],text:_e[2]}},st.autolink=function(xe,_e){var et=this.rules.inline.autolink.exec(xe);if(et){var Qe,z;return et[2]==="@"?(Qe=I(this.options.mangle?_e(et[1]):et[1]),z="mailto:"+Qe):(Qe=I(et[1]),z=Qe),{type:"link",raw:et[0],text:Qe,href:z,tokens:[{type:"text",raw:Qe,text:Qe}]}}},st.url=function(xe,_e){var et;if(et=this.rules.inline.url.exec(xe)){var Qe,z;if(et[2]==="@")Qe=I(this.options.mangle?_e(et[0]):et[0]),z="mailto:"+Qe;else{var Rt;do Rt=et[0],et[0]=this.rules.inline._backpedal.exec(et[0])[0];while(Rt!==et[0]);Qe=I(et[0]),et[1]==="www."?z="http://"+Qe:z=Qe}return{type:"link",raw:et[0],text:Qe,href:z,tokens:[{type:"text",raw:Qe,text:Qe}]}}},st.inlineText=function(xe,_e,et){var Qe=this.rules.inline.text.exec(xe);if(Qe){var z;return _e?z=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Qe[0]):I(Qe[0]):Qe[0]:z=I(this.options.smartypants?et(Qe[0]):Qe[0]),{type:"text",raw:Qe[0],text:z}}},Ke}(),Te=q.noopTest,rt=q.edit,ht=q.merge,St={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:Te,table:Te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};St._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,St._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,St.def=rt(St.def).replace("label",St._label).replace("title",St._title).getRegex(),St.bullet=/(?:[*+-]|\d{1,9}[.)])/,St.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,St.item=rt(St.item,"gm").replace(/bull/g,St.bullet).getRegex(),St.listItemStart=rt(/^( *)(bull) */).replace("bull",St.bullet).getRegex(),St.list=rt(St.list).replace(/bull/g,St.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+St.def.source+")").getRegex(),St._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",St._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,St.html=rt(St.html,"i").replace("comment",St._comment).replace("tag",St._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),St.paragraph=rt(St._paragraph).replace("hr",St.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",St._tag).getRegex(),St.blockquote=rt(St.blockquote).replace("paragraph",St.paragraph).getRegex(),St.normal=ht({},St),St.gfm=ht({},St.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*|$)"}),St.gfm.nptable=rt(St.gfm.nptable).replace("hr",St.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",St._tag).getRegex(),St.gfm.table=rt(St.gfm.table).replace("hr",St.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",St._tag).getRegex(),St.pedantic=ht({},St.normal,{html:rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",St._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:Te,paragraph:rt(St.normal._paragraph).replace("hr",St.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",St.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,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:Te,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Me._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Me.punctuation=rt(Me.punctuation).replace(/punctuation/g,Me._punctuation).getRegex(),Me.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Me.escapedEmSt=/\\\*|\\_/g,Me._comment=rt(St._comment).replace("(?:-->|$)","-->").getRegex(),Me.emStrong.lDelim=rt(Me.emStrong.lDelim).replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimAst=rt(Me.emStrong.rDelimAst,"g").replace(/punct/g,Me._punctuation).getRegex(),Me.emStrong.rDelimUnd=rt(Me.emStrong.rDelimUnd,"g").replace(/punct/g,Me._punctuation).getRegex(),Me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Me._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])?)+(?![-_])/,Me.autolink=rt(Me.autolink).replace("scheme",Me._scheme).replace("email",Me._email).getRegex(),Me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Me.tag=rt(Me.tag).replace("comment",Me._comment).replace("attribute",Me._attribute).getRegex(),Me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Me._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Me.link=rt(Me.link).replace("label",Me._label).replace("href",Me._href).replace("title",Me._title).getRegex(),Me.reflink=rt(Me.reflink).replace("label",Me._label).getRegex(),Me.reflinkSearch=rt(Me.reflinkSearch,"g").replace("reflink",Me.reflink).replace("nolink",Me.nolink).getRegex(),Me.normal=ht({},Me),Me.pedantic=ht({},Me.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:rt(/^!?\[(label)\]\((.*?)\)/).replace("label",Me._label).getRegex(),reflink:rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Me._label).getRegex()}),Me.gfm=ht({},Me.normal,{escape:rt(Me.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Me.gfm.url=rt(Me.gfm.url,"i").replace("email",Me.gfm._extended_email).getRegex(),Me.breaks=ht({},Me.gfm,{br:rt(Me.br).replace("{2,}","*").getRegex(),text:rt(Me.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Xt={block:St,inline:Me},tt=It,un=fe.exports.defaults,vt=Xt.block,bt=Xt.inline,Ve=q.repeatString;function Le(Ke){return Ke.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function oe(Ke){var st="",_t,xe,_e=Ke.length;for(_t=0;_t<_e;_t++)xe=Ke.charCodeAt(_t),Math.random()>.5&&(xe="x"+xe.toString(16)),st+="&#"+xe+";";return st}var nt=function(){function Ke(_t){this.tokens=[],this.tokens.links=Object.create(null),this.options=_t||un,this.options.tokenizer=this.options.tokenizer||new tt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var xe={block:vt.normal,inline:bt.normal};this.options.pedantic?(xe.block=vt.pedantic,xe.inline=bt.pedantic):this.options.gfm&&(xe.block=vt.gfm,this.options.breaks?xe.inline=bt.breaks:xe.inline=bt.gfm),this.tokenizer.rules=xe}Ke.lex=function(xe,_e){var et=new Ke(_e);return et.lex(xe)},Ke.lexInline=function(xe,_e){var et=new Ke(_e);return et.inlineTokens(xe)};var st=Ke.prototype;return st.lex=function(xe){return xe=xe.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(xe,this.tokens,!0),this.inline(this.tokens),this.tokens},st.blockTokens=function(xe,_e,et){_e===void 0&&(_e=[]),et===void 0&&(et=!0),this.options.pedantic&&(xe=xe.replace(/^ +$/gm,""));for(var Qe,z,Rt,ge;xe;){if(Qe=this.tokenizer.space(xe)){xe=xe.substring(Qe.raw.length),Qe.type&&_e.push(Qe);continue}if(Qe=this.tokenizer.code(xe)){xe=xe.substring(Qe.raw.length),ge=_e[_e.length-1],ge&&ge.type==="paragraph"?(ge.raw+=`
`+Qe.raw,ge.text+=`
`+Qe.text):_e.push(Qe);continue}if(Qe=this.tokenizer.fences(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.heading(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.nptable(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.hr(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.blockquote(xe)){xe=xe.substring(Qe.raw.length),Qe.tokens=this.blockTokens(Qe.text,[],et),_e.push(Qe);continue}if(Qe=this.tokenizer.list(xe)){for(xe=xe.substring(Qe.raw.length),Rt=Qe.items.length,z=0;z<Rt;z++)Qe.items[z].tokens=this.blockTokens(Qe.items[z].text,[],!1);_e.push(Qe);continue}if(Qe=this.tokenizer.html(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(et&&(Qe=this.tokenizer.def(xe))){xe=xe.substring(Qe.raw.length),this.tokens.links[Qe.tag]||(this.tokens.links[Qe.tag]={href:Qe.href,title:Qe.title});continue}if(Qe=this.tokenizer.table(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.lheading(xe)){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(et&&(Qe=this.tokenizer.paragraph(xe))){xe=xe.substring(Qe.raw.length),_e.push(Qe);continue}if(Qe=this.tokenizer.text(xe)){xe=xe.substring(Qe.raw.length),ge=_e[_e.length-1],ge&&ge.type==="text"?(ge.raw+=`
`+Qe.raw,ge.text+=`
`+Qe.text):_e.push(Qe);continue}if(xe){var Ht="Infinite loop on byte: "+xe.charCodeAt(0);if(this.options.silent){console.error(Ht);break}else throw new Error(Ht)}}return _e},st.inline=function(xe){var _e,et,Qe,z,Rt,ge,Ht=xe.length;for(_e=0;_e<Ht;_e++)switch(ge=xe[_e],ge.type){case"paragraph":case"text":case"heading":{ge.tokens=[],this.inlineTokens(ge.text,ge.tokens);break}case"table":{for(ge.tokens={header:[],cells:[]},z=ge.header.length,et=0;et<z;et++)ge.tokens.header[et]=[],this.inlineTokens(ge.header[et],ge.tokens.header[et]);for(z=ge.cells.length,et=0;et<z;et++)for(Rt=ge.cells[et],ge.tokens.cells[et]=[],Qe=0;Qe<Rt.length;Qe++)ge.tokens.cells[et][Qe]=[],this.inlineTokens(Rt[Qe],ge.tokens.cells[et][Qe]);break}case"blockquote":{this.inline(ge.tokens);break}case"list":{for(z=ge.items.length,et=0;et<z;et++)this.inline(ge.items[et].tokens);break}}return xe},st.inlineTokens=function(xe,_e,et,Qe){_e===void 0&&(_e=[]),et===void 0&&(et=!1),Qe===void 0&&(Qe=!1);var z,Rt,ge=xe,Ht,cn,mt;if(this.tokens.links){var ne=Object.keys(this.tokens.links);if(ne.length>0)for(;(Ht=this.tokenizer.rules.inline.reflinkSearch.exec(ge))!=null;)ne.includes(Ht[0].slice(Ht[0].lastIndexOf("[")+1,-1))&&(ge=ge.slice(0,Ht.index)+"["+Ve("a",Ht[0].length-2)+"]"+ge.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ht=this.tokenizer.rules.inline.blockSkip.exec(ge))!=null;)ge=ge.slice(0,Ht.index)+"["+Ve("a",Ht[0].length-2)+"]"+ge.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Ht=this.tokenizer.rules.inline.escapedEmSt.exec(ge))!=null;)ge=ge.slice(0,Ht.index)+"++"+ge.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;xe;){if(cn||(mt=""),cn=!1,z=this.tokenizer.escape(xe)){xe=xe.substring(z.raw.length),_e.push(z);continue}if(z=this.tokenizer.tag(xe,et,Qe)){xe=xe.substring(z.raw.length),et=z.inLink,Qe=z.inRawBlock;var we=_e[_e.length-1];we&&z.type==="text"&&we.type==="text"?(we.raw+=z.raw,we.text+=z.text):_e.push(z);continue}if(z=this.tokenizer.link(xe)){xe=xe.substring(z.raw.length),z.type==="link"&&(z.tokens=this.inlineTokens(z.text,[],!0,Qe)),_e.push(z);continue}if(z=this.tokenizer.reflink(xe,this.tokens.links)){xe=xe.substring(z.raw.length);var B=_e[_e.length-1];z.type==="link"?(z.tokens=this.inlineTokens(z.text,[],!0,Qe),_e.push(z)):B&&z.type==="text"&&B.type==="text"?(B.raw+=z.raw,B.text+=z.text):_e.push(z);continue}if(z=this.tokenizer.emStrong(xe,ge,mt)){xe=xe.substring(z.raw.length),z.tokens=this.inlineTokens(z.text,[],et,Qe),_e.push(z);continue}if(z=this.tokenizer.codespan(xe)){xe=xe.substring(z.raw.length),_e.push(z);continue}if(z=this.tokenizer.br(xe)){xe=xe.substring(z.raw.length),_e.push(z);continue}if(z=this.tokenizer.del(xe)){xe=xe.substring(z.raw.length),z.tokens=this.inlineTokens(z.text,[],et,Qe),_e.push(z);continue}if(z=this.tokenizer.autolink(xe,oe)){xe=xe.substring(z.raw.length),_e.push(z);continue}if(!et&&(z=this.tokenizer.url(xe,oe))){xe=xe.substring(z.raw.length),_e.push(z);continue}if(z=this.tokenizer.inlineText(xe,Qe,Le)){xe=xe.substring(z.raw.length),z.raw.slice(-1)!=="_"&&(mt=z.raw.slice(-1)),cn=!0,Rt=_e[_e.length-1],Rt&&Rt.type==="text"?(Rt.raw+=z.raw,Rt.text+=z.text):_e.push(z);continue}if(xe){var xt="Infinite loop on byte: "+xe.charCodeAt(0);if(this.options.silent){console.error(xt);break}else throw new Error(xt)}}return _e},u(Ke,null,[{key:"rules",get:function(){return{block:vt,inline:bt}}}]),Ke}(),Ue=fe.exports.defaults,K=q.cleanUrl,D=q.escape,Se=function(){function Ke(_t){this.options=_t||Ue}var st=Ke.prototype;return st.code=function(xe,_e,et){var Qe=(_e||"").match(/\S*/)[0];if(this.options.highlight){var z=this.options.highlight(xe,Qe);z!=null&&z!==xe&&(et=!0,xe=z)}return xe=xe.replace(/\n$/,"")+`
`,Qe?'<pre><code class="'+this.options.langPrefix+D(Qe,!0)+'">'+(et?xe:D(xe,!0))+`</code></pre>
`:"<pre><code>"+(et?xe:D(xe,!0))+`</code></pre>
`},st.blockquote=function(xe){return`<blockquote>
`+xe+`</blockquote>
`},st.html=function(xe){return xe},st.heading=function(xe,_e,et,Qe){return this.options.headerIds?"<h"+_e+' id="'+this.options.headerPrefix+Qe.slug(et)+'">'+xe+"</h"+_e+`>
`:"<h"+_e+">"+xe+"</h"+_e+`>
`},st.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},st.list=function(xe,_e,et){var Qe=_e?"ol":"ul",z=_e&&et!==1?' start="'+et+'"':"";return"<"+Qe+z+`>
`+xe+"</"+Qe+`>
`},st.listitem=function(xe){return"<li>"+xe+`</li>
`},st.checkbox=function(xe){return"<input "+(xe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},st.paragraph=function(xe){return"<p>"+xe+`</p>
`},st.table=function(xe,_e){return _e&&(_e="<tbody>"+_e+"</tbody>"),`<table>
<thead>
`+xe+`</thead>
`+_e+`</table>
`},st.tablerow=function(xe){return`<tr>
`+xe+`</tr>
`},st.tablecell=function(xe,_e){var et=_e.header?"th":"td",Qe=_e.align?"<"+et+' align="'+_e.align+'">':"<"+et+">";return Qe+xe+"</"+et+`>
`},st.strong=function(xe){return"<strong>"+xe+"</strong>"},st.em=function(xe){return"<em>"+xe+"</em>"},st.codespan=function(xe){return"<code>"+xe+"</code>"},st.br=function(){return this.options.xhtml?"<br/>":"<br>"},st.del=function(xe){return"<del>"+xe+"</del>"},st.link=function(xe,_e,et){if(xe=K(this.options.sanitize,this.options.baseUrl,xe),xe===null)return et;var Qe='<a href="'+D(xe)+'"';return _e&&(Qe+=' title="'+_e+'"'),Qe+=">"+et+"</a>",Qe},st.image=function(xe,_e,et){if(xe=K(this.options.sanitize,this.options.baseUrl,xe),xe===null)return et;var Qe='<img src="'+xe+'" alt="'+et+'"';return _e&&(Qe+=' title="'+_e+'"'),Qe+=this.options.xhtml?"/>":">",Qe},st.text=function(xe){return xe},Ke}(),Ae=function(){function Ke(){}var st=Ke.prototype;return st.strong=function(xe){return xe},st.em=function(xe){return xe},st.codespan=function(xe){return xe},st.del=function(xe){return xe},st.html=function(xe){return xe},st.text=function(xe){return xe},st.link=function(xe,_e,et){return""+et},st.image=function(xe,_e,et){return""+et},st.br=function(){return""},Ke}(),Ce=function(){function Ke(){this.seen={}}var st=Ke.prototype;return st.serialize=function(xe){return xe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},st.getNextSafeSlug=function(xe,_e){var et=xe,Qe=0;if(this.seen.hasOwnProperty(et)){Qe=this.seen[xe];do Qe++,et=xe+"-"+Qe;while(this.seen.hasOwnProperty(et))}return _e||(this.seen[xe]=Qe,this.seen[et]=0),et},st.slug=function(xe,_e){_e===void 0&&(_e={});var et=this.serialize(xe);return this.getNextSafeSlug(et,_e.dryrun)},Ke}(),ke=Se,Xe=Ae,yt=Ce,he=fe.exports.defaults,me=q.unescape,Lt=function(){function Ke(_t){this.options=_t||he,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Xe,this.slugger=new yt}Ke.parse=function(xe,_e){var et=new Ke(_e);return et.parse(xe)},Ke.parseInline=function(xe,_e){var et=new Ke(_e);return et.parseInline(xe)};var st=Ke.prototype;return st.parse=function(xe,_e){_e===void 0&&(_e=!0);var et="",Qe,z,Rt,ge,Ht,cn,mt,ne,we,B,xt,lt,ot,$t,Bt,zt,re,ve,wt=xe.length;for(Qe=0;Qe<wt;Qe++)switch(B=xe[Qe],B.type){case"space":continue;case"hr":{et+=this.renderer.hr();continue}case"heading":{et+=this.renderer.heading(this.parseInline(B.tokens),B.depth,me(this.parseInline(B.tokens,this.textRenderer)),this.slugger);continue}case"code":{et+=this.renderer.code(B.text,B.lang,B.escaped);continue}case"table":{for(ne="",mt="",ge=B.header.length,z=0;z<ge;z++)mt+=this.renderer.tablecell(this.parseInline(B.tokens.header[z]),{header:!0,align:B.align[z]});for(ne+=this.renderer.tablerow(mt),we="",ge=B.cells.length,z=0;z<ge;z++){for(cn=B.tokens.cells[z],mt="",Ht=cn.length,Rt=0;Rt<Ht;Rt++)mt+=this.renderer.tablecell(this.parseInline(cn[Rt]),{header:!1,align:B.align[Rt]});we+=this.renderer.tablerow(mt)}et+=this.renderer.table(ne,we);continue}case"blockquote":{we=this.parse(B.tokens),et+=this.renderer.blockquote(we);continue}case"list":{for(xt=B.ordered,lt=B.start,ot=B.loose,ge=B.items.length,we="",z=0;z<ge;z++)Bt=B.items[z],zt=Bt.checked,re=Bt.task,$t="",Bt.task&&(ve=this.renderer.checkbox(zt),ot?Bt.tokens.length>0&&Bt.tokens[0].type==="text"?(Bt.tokens[0].text=ve+" "+Bt.tokens[0].text,Bt.tokens[0].tokens&&Bt.tokens[0].tokens.length>0&&Bt.tokens[0].tokens[0].type==="text"&&(Bt.tokens[0].tokens[0].text=ve+" "+Bt.tokens[0].tokens[0].text)):Bt.tokens.unshift({type:"text",text:ve}):$t+=ve),$t+=this.parse(Bt.tokens,ot),we+=this.renderer.listitem($t,re,zt);et+=this.renderer.list(we,xt,lt);continue}case"html":{et+=this.renderer.html(B.text);continue}case"paragraph":{et+=this.renderer.paragraph(this.parseInline(B.tokens));continue}case"text":{for(we=B.tokens?this.parseInline(B.tokens):B.text;Qe+1<wt&&xe[Qe+1].type==="text";)B=xe[++Qe],we+=`
`+(B.tokens?this.parseInline(B.tokens):B.text);et+=_e?this.renderer.paragraph(we):we;continue}default:{var Ne='Token with "'+B.type+'" type was not found.';if(this.options.silent){console.error(Ne);return}else throw new Error(Ne)}}return et},st.parseInline=function(xe,_e){_e=_e||this.renderer;var et="",Qe,z,Rt=xe.length;for(Qe=0;Qe<Rt;Qe++)switch(z=xe[Qe],z.type){case"escape":{et+=_e.text(z.text);break}case"html":{et+=_e.html(z.text);break}case"link":{et+=_e.link(z.href,z.title,this.parseInline(z.tokens,_e));break}case"image":{et+=_e.image(z.href,z.title,z.text);break}case"strong":{et+=_e.strong(this.parseInline(z.tokens,_e));break}case"em":{et+=_e.em(this.parseInline(z.tokens,_e));break}case"codespan":{et+=_e.codespan(z.text);break}case"br":{et+=_e.br();break}case"del":{et+=_e.del(this.parseInline(z.tokens,_e));break}case"text":{et+=_e.text(z.text);break}default:{var ge='Token with "'+z.type+'" type was not found.';if(this.options.silent){console.error(ge);return}else throw new Error(ge)}}return et},Ke}(),Ct=nt,Nt=Lt,kt=It,pt=Se,Vt=Ae,Zt=Ce,Re=q.merge,gt=q.checkSanitizeDeprecation,E=q.escape,R=fe.exports.getDefaults,at=fe.exports.changeDefaults,ae=fe.exports.defaults;function Y(Ke,st,_t){if(typeof Ke=="undefined"||Ke===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ke!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ke)+", string expected");if(typeof st=="function"&&(_t=st,st=null),st=Re({},Y.defaults,st||{}),gt(st),_t){var xe=st.highlight,_e;try{_e=Ct.lex(Ke,st)}catch(Rt){return _t(Rt)}var et=function(ge){var Ht;if(!ge)try{st.walkTokens&&Y.walkTokens(_e,st.walkTokens),Ht=Nt.parse(_e,st)}catch(cn){ge=cn}return st.highlight=xe,ge?_t(ge):_t(null,Ht)};if(!xe||xe.length<3||(delete st.highlight,!_e.length))return et();var Qe=0;Y.walkTokens(_e,function(Rt){Rt.type==="code"&&(Qe++,setTimeout(function(){xe(Rt.text,Rt.lang,function(ge,Ht){if(ge)return et(ge);Ht!=null&&Ht!==Rt.text&&(Rt.text=Ht,Rt.escaped=!0),Qe--,Qe===0&&et()})},0))}),Qe===0&&et();return}try{var z=Ct.lex(Ke,st);return st.walkTokens&&Y.walkTokens(z,st.walkTokens),Nt.parse(z,st)}catch(Rt){if(Rt.message+=`
Please report this to https://github.com/markedjs/marked.`,st.silent)return"<p>An error occurred:</p><pre>"+E(Rt.message+"",!0)+"</pre>";throw Rt}}Y.options=Y.setOptions=function(Ke){return Re(Y.defaults,Ke),at(Y.defaults),Y},Y.getDefaults=R,Y.defaults=ae,Y.use=function(Ke){var st=Re({},Ke);if(Ke.renderer&&function(){var xe=Y.defaults.renderer||new pt,_e=function(z){var Rt=xe[z];xe[z]=function(){for(var ge=arguments.length,Ht=new Array(ge),cn=0;cn<ge;cn++)Ht[cn]=arguments[cn];var mt=Ke.renderer[z].apply(xe,Ht);return mt===!1&&(mt=Rt.apply(xe,Ht)),mt}};for(var et in Ke.renderer)_e(et);st.renderer=xe}(),Ke.tokenizer&&function(){var xe=Y.defaults.tokenizer||new kt,_e=function(z){var Rt=xe[z];xe[z]=function(){for(var ge=arguments.length,Ht=new Array(ge),cn=0;cn<ge;cn++)Ht[cn]=arguments[cn];var mt=Ke.tokenizer[z].apply(xe,Ht);return mt===!1&&(mt=Rt.apply(xe,Ht)),mt}};for(var et in Ke.tokenizer)_e(et);st.tokenizer=xe}(),Ke.walkTokens){var _t=Y.defaults.walkTokens;st.walkTokens=function(xe){Ke.walkTokens(xe),_t&&_t(xe)}}Y.setOptions(st)},Y.walkTokens=function(Ke,st){for(var _t=O(Ke),xe;!(xe=_t()).done;){var _e=xe.value;switch(st(_e),_e.type){case"table":{for(var et=O(_e.tokens.header),Qe;!(Qe=et()).done;){var z=Qe.value;Y.walkTokens(z,st)}for(var Rt=O(_e.tokens.cells),ge;!(ge=Rt()).done;)for(var Ht=ge.value,cn=O(Ht),mt;!(mt=cn()).done;){var ne=mt.value;Y.walkTokens(ne,st)}break}case"list":{Y.walkTokens(_e.items,st);break}default:_e.tokens&&Y.walkTokens(_e.tokens,st)}}},Y.parseInline=function(Ke,st){if(typeof Ke=="undefined"||Ke===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Ke!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Ke)+", string expected");st=Re({},Y.defaults,st||{}),gt(st);try{var _t=Ct.lexInline(Ke,st);return st.walkTokens&&Y.walkTokens(_t,st.walkTokens),Nt.parseInline(_t,st)}catch(xe){if(xe.message+=`
Please report this to https://github.com/markedjs/marked.`,st.silent)return"<p>An error occurred:</p><pre>"+E(xe.message+"",!0)+"</pre>";throw xe}},Y.Parser=Nt,Y.parser=Nt.parse,Y.Renderer=pt,Y.TextRenderer=Vt,Y.Lexer=Ct,Y.lexer=Ct.lex,Y.Tokenizer=kt,Y.Slugger=Zt,Y.parse=Y;var Ft=Y;return Ft})},11690:function(zn){const Pt=/[&<>"']/,u=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,U=/[<>"']|&(?!#?\w+;)/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fe=pe=>O[pe];function Z(pe,ze){if(ze){if(Pt.test(pe))return pe.replace(u,fe)}else if(i.test(pe))return pe.replace(U,fe);return pe}const g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function H(pe){return pe.replace(g,(ze,Je)=>(Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""))}const V=/(^|[^\[])\^/g;function l(pe,ze){pe=pe.source||pe,ze=ze||"";const Je={replace:(Pe,Ze)=>(Ze=Ze.source||Ze,Ze=Ze.replace(V,"$1"),pe=pe.replace(Pe,Ze),Je),getRegex:()=>new RegExp(pe,ze)};return Je}const y=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(pe,ze,Je){if(pe){let Pe;try{Pe=decodeURIComponent(H(Je)).replace(y,"").toLowerCase()}catch(Ze){return null}if(Pe.indexOf("javascript:")===0||Pe.indexOf("vbscript:")===0||Pe.indexOf("data:")===0)return null}ze&&!M.test(Je)&&(Je=X(ze,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(Pe){return null}return Je}const C={},T=/^[^:]+:\/*[^/]*$/,$=/^([^:]+:)[\s\S]*$/,W=/^([^:]+:\/*[^/]*)[\s\S]*$/;function X(pe,ze){C[" "+pe]||(T.test(pe)?C[" "+pe]=pe+"/":C[" "+pe]=P(pe,"/",!0)),pe=C[" "+pe];const Je=pe.indexOf(":")===-1;return ze.substring(0,2)==="//"?Je?ze:pe.replace($,"$1")+ze:ze.charAt(0)==="/"?Je?ze:pe.replace(W,"$1")+ze:pe+ze}const G={exec:function(){}};function L(pe){let ze=1,Je,Pe;for(;ze<arguments.length;ze++){Je=arguments[ze];for(Pe in Je)Object.prototype.hasOwnProperty.call(Je,Pe)&&(pe[Pe]=Je[Pe])}return pe}function Q(pe,ze){const Je=pe.replace(/\|/g,(le,N,S)=>{let q=!1,te=N;for(;--te>=0&&S[te]==="\\";)q=!q;return q?"|":" |"}),Pe=Je.split(/ \|/);let Ze=0;if(Pe.length>ze)Pe.splice(ze);else for(;Pe.length<ze;)Pe.push("");for(;Ze<Pe.length;Ze++)Pe[Ze]=Pe[Ze].trim().replace(/\\\|/g,"|");return Pe}function P(pe,ze,Je){const Pe=pe.length;if(Pe===0)return"";let Ze=0;for(;Ze<Pe;){const le=pe.charAt(Pe-Ze-1);if(le===ze&&!Je)Ze++;else if(le!==ze&&Je)Ze++;else break}return pe.substr(0,Pe-Ze)}function A(pe,ze){if(pe.indexOf(ze[1])===-1)return-1;const Je=pe.length;let Pe=0,Ze=0;for(;Ze<Je;Ze++)if(pe[Ze]==="\\")Ze++;else if(pe[Ze]===ze[0])Pe++;else if(pe[Ze]===ze[1]&&(Pe--,Pe<0))return Ze;return-1}function ce(pe){pe&&pe.sanitize&&!pe.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 Ee(pe,ze){if(ze<1)return"";let Je="";for(;ze>1;)ze&1&&(Je+=pe),ze>>=1,pe+=pe;return Je+pe}zn.exports={escape:Z,unescape:H,edit:l,cleanUrl:b,resolveUrl:X,noopTest:G,merge:L,splitCells:Q,rtrim:P,findClosingBracket:A,checkSanitizeDeprecation:ce,repeatString:Ee}},75918:function(zn,Pt,u){"use strict";u.d(Pt,{Wi:function(){return g},Z0:function(){return H},aU:function(){return Z},eZ:function(){return l},wY:function(){return V}});var i=u(4348),U=u(69323),O=u(13268),fe=function(y,M,b,C){function T($){return $ instanceof b?$:new b(function(W){W($)})}return new(b||(b=Promise))(function($,W){function X(Q){try{L(C.next(Q))}catch(P){W(P)}}function G(Q){try{L(C.throw(Q))}catch(P){W(P)}}function L(Q){Q.done?$(Q.value):T(Q.value).then(X,G)}L((C=C.apply(y,M||[])).next())})};class Z extends U.JT{constructor(M,b="",C="",T=!0,$){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=M,this._label=b,this._cssClass=C,this._enabled=T,this._actionCallback=$}get id(){return this._id}get label(){return this._label}set label(M){this._setLabel(M)}_setLabel(M){this._label!==M&&(this._label=M,this._onDidChange.fire({label:M}))}get tooltip(){return this._tooltip||""}set tooltip(M){this._setTooltip(M)}_setTooltip(M){this._tooltip!==M&&(this._tooltip=M,this._onDidChange.fire({tooltip:M}))}get class(){return this._cssClass}set class(M){this._setClass(M)}_setClass(M){this._cssClass!==M&&(this._cssClass=M,this._onDidChange.fire({class:M}))}get enabled(){return this._enabled}set enabled(M){this._setEnabled(M)}_setEnabled(M){this._enabled!==M&&(this._enabled=M,this._onDidChange.fire({enabled:M}))}get checked(){return this._checked}set checked(M){this._setChecked(M)}_setChecked(M){this._checked!==M&&(this._checked=M,this._onDidChange.fire({checked:M}))}run(M,b){return fe(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(M))})}}class g extends U.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(M,b){return fe(this,void 0,void 0,function*(){if(!M.enabled)return;this._onBeforeRun.fire({action:M});let C;try{yield this.runAction(M,b)}catch(T){C=T}this._onDidRun.fire({action:M,error:C})})}runAction(M,b){return fe(this,void 0,void 0,function*(){yield M.run(b)})}}class H extends Z{constructor(M){super(H.ID,M,M?"separator text":"separator"),this.checked=!1,this.enabled=!1}}H.ID="vs.actions.separator";class V{constructor(M,b,C,T){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=M,this.label=b,this.class=T,this._actions=C}get actions(){return this._actions}dispose(){}run(){return fe(this,void 0,void 0,function*(){})}}class l extends Z{constructor(){super(l.ID,O.N("submenu.empty","(empty)"),void 0,!1)}}l.ID="vs.actions.empty"},76068:function(zn,Pt,u){"use strict";u.d(Pt,{ok:function(){return i}});function i(U,O){if(!U)throw new Error(O?`Assertion failed (${O})`:"Assertion Failed")}},52615:function(zn,Pt,u){"use strict";u.d(Pt,{CM:function(){return Z},JL:function(){return g},dT:function(){return V},fK:function(){return fe},lA:function(){return H}});var i=u(4348);class U{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(y){const M=this._icons.get(y.id);M?y.description?M.description=y.description:console.error(`Duplicate registration of codicon ${y.id}`):(this._icons.set(y.id,y),this._onDidRegister.fire(y))}get(y){return this._icons.get(y)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const O=new U,fe=O;function Z(l,y){return new H(l,y)}function g(l){return l?l.replace(/\$\((.*?)\)/g,(y,M)=>` ${M} `).trim():""}class H{constructor(y,M,b){this.id=y,this.definition=M,this.description=b,O.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var V;(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9\\-]+",l.iconModifierExpression="~[A-Za-z]+";const y=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function M(T){if(T instanceof H)return["codicon","codicon-"+T.id];const $=y.exec(T.id);if(!$)return M(H.error);let[,W,X]=$;const G=["codicon","codicon-"+W];return X&&G.push("codicon-modifier-"+X.substr(1)),G}l.asClassNameArray=M;function b(T){return M(T).join(" ")}l.asClassName=b;function C(T){return"."+M(T).join(".")}l.asCSSSelector=C})(V||(V={})),function(l){l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"})}(H||(H={}))},79881:function(zn,Pt,u){"use strict";u.d(Pt,{B8:function(){return M},Cp:function(){return fe},F0:function(){return V},L6:function(){return y},VV:function(){return H},b1:function(){return l},dL:function(){return O},ri:function(){return Z}});class i{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(C){setTimeout(()=>{throw C.stack?new Error(C.message+`
`+C.stack):C},0)}}emit(C){this.listeners.forEach(T=>{T(C)})}onUnexpectedError(C){this.unexpectedErrorHandler(C),this.emit(C)}onUnexpectedExternalError(C){this.unexpectedErrorHandler(C)}}const U=new i;function O(b){H(b)||U.onUnexpectedError(b)}function fe(b){H(b)||U.onUnexpectedExternalError(b)}function Z(b){if(b instanceof Error){let{name:C,message:T}=b;const $=b.stacktrace||b.stack;return{$isError:!0,name:C,message:T,stack:$}}return b}const g="Canceled";function H(b){return b instanceof Error&&b.name===g&&b.message===g}function V(){const b=new Error(g);return b.name=b.message,b}function l(b){return b?new Error(`Illegal argument: ${b}`):new Error("Illegal argument")}function y(b){return b?new Error(`Illegal state: ${b}`):new Error("Illegal state")}class M extends Error{constructor(C){super("NotSupported"),C&&(this.message=C)}}},4348:function(zn,Pt,u){"use strict";u.d(Pt,{D0:function(){return M},E7:function(){return b},K3:function(){return y},Q5:function(){return l},ZD:function(){return C},ju:function(){return Z}});var i=u(79881),U=u(69323),O=u(34502),fe=u(95830),Z;(function(T){T.None=()=>U.JT.None;function $(S){return(q,te=null,se)=>{let w=!1,I;return I=S(de=>{if(!w)return I?I.dispose():w=!0,q.call(te,de)},null,se),w&&I.dispose(),I}}T.once=$;function W(S,q){return A((te,se=null,w)=>S(I=>te.call(se,q(I)),null,w))}T.map=W;function X(S,q){return A((te,se=null,w)=>S(I=>{q(I),te.call(se,I)},null,w))}T.forEach=X;function G(S,q){return A((te,se=null,w)=>S(I=>q(I)&&te.call(se,I),null,w))}T.filter=G;function L(S){return S}T.signal=L;function Q(...S){return(q,te=null,se)=>(0,U.F8)(...S.map(w=>w(I=>q.call(te,I),null,se)))}T.any=Q;function P(S,q,te){let se=te;return W(S,w=>(se=q(se,w),se))}T.reduce=P;function A(S){let q;const te=new l({onFirstListenerAdd(){q=S(te.fire,te)},onLastListenerRemove(){q.dispose()}});return te.event}function ce(S,q,te=100,se=!1,w){let I,de,De,dt=0;const It=new l({leakWarningThreshold:w,onFirstListenerAdd(){I=S(Te=>{dt++,de=q(de,Te),se&&!De&&(It.fire(de),de=void 0),clearTimeout(De),De=setTimeout(()=>{const rt=de;de=void 0,De=void 0,(!se||dt>1)&&It.fire(rt),dt=0},te)})},onLastListenerRemove(){I.dispose()}});return It.event}T.debounce=ce;function Ee(S,q=(te,se)=>te===se){let te=!0,se;return G(S,w=>{const I=te||!q(w,se);return te=!1,se=w,I})}T.latch=Ee;function pe(S,q){return[T.filter(S,q),T.filter(S,te=>!q(te))]}T.split=pe;function ze(S,q=!1,te=[]){let se=te.slice(),w=S(De=>{se?se.push(De):de.fire(De)});const I=()=>{se&&se.forEach(De=>de.fire(De)),se=null},de=new l({onFirstListenerAdd(){w||(w=S(De=>de.fire(De)))},onFirstListenerDidAdd(){se&&(q?setTimeout(I):I())},onLastListenerRemove(){w&&w.dispose(),w=null}});return de.event}T.buffer=ze;class Je{constructor(q){this.event=q}map(q){return new Je(W(this.event,q))}forEach(q){return new Je(X(this.event,q))}filter(q){return new Je(G(this.event,q))}reduce(q,te){return new Je(P(this.event,q,te))}latch(){return new Je(Ee(this.event))}debounce(q,te=100,se=!1,w){return new Je(ce(this.event,q,te,se,w))}on(q,te,se){return this.event(q,te,se)}once(q,te,se){return $(this.event)(q,te,se)}}function Pe(S){return new Je(S)}T.chain=Pe;function Ze(S,q,te=se=>se){const se=(...De)=>de.fire(te(...De)),w=()=>S.on(q,se),I=()=>S.removeListener(q,se),de=new l({onFirstListenerAdd:w,onLastListenerRemove:I});return de.event}T.fromNodeEventEmitter=Ze;function le(S,q,te=se=>se){const se=(...De)=>de.fire(te(...De)),w=()=>S.addEventListener(q,se),I=()=>S.removeEventListener(q,se),de=new l({onFirstListenerAdd:w,onLastListenerRemove:I});return de.event}T.fromDOMEventEmitter=le;function N(S){return new Promise(q=>$(S)(q))}T.toPromise=N})(Z||(Z={}));class g{constructor($){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${$}_${g._idPool++}`}start($){this._stopWatch=new fe.G(!0),this._listenerCount=$}stop(){if(this._stopWatch){const $=this._stopWatch.elapsed();this._elapsedOverall+=$,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${$.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let H=-1;class V{constructor($,W=Math.random().toString(18).slice(2,5)){this.customThreshold=$,this.name=W,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check($){let W=H;if(typeof this.customThreshold=="number"&&(W=this.customThreshold),W<=0||$<W)return;this._stacks||(this._stacks=new Map);const X=new Error().stack.split(`
`).slice(3).join(`
`),G=this._stacks.get(X)||0;if(this._stacks.set(X,G+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=W*.5;let L,Q=0;for(const[P,A]of this._stacks)(!L||Q<A)&&(L=P,Q=A);console.warn(`[${this.name}] potential listener LEAK detected, having ${$} listeners already. MOST frequent listener (${Q}):`),console.warn(L)}return()=>{const L=this._stacks.get(X)||0;this._stacks.set(X,L-1)}}}class l{constructor($){var W;this._disposed=!1,this._options=$,this._leakageMon=H>0?new V(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((W=this._options)===null||W===void 0)&&W._profName?new g(this._options._profName):void 0}get event(){return this._event||(this._event=($,W,X)=>{var G;this._listeners||(this._listeners=new O.S);const L=this._listeners.isEmpty();L&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const Q=this._listeners.push(W?[$,W]:$);L&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,$,W);const P=(G=this._leakageMon)===null||G===void 0?void 0:G.check(this._listeners.size),A=(0,U.OF)(()=>{P&&P(),this._disposed||(Q(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return X instanceof U.SL?X.add(A):Array.isArray(X)&&X.push(A),A}),this._event}fire($){var W,X;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new O.S);for(let G of this._listeners)this._deliveryQueue.push([G,$]);for((W=this._perfMon)===null||W===void 0||W.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[G,L]=this._deliveryQueue.shift();try{typeof G=="function"?G.call(void 0,L):G[0].call(G[1],L)}catch(Q){(0,i.dL)(Q)}}(X=this._perfMon)===null||X===void 0||X.stop()}}dispose(){var $,W,X,G,L;this._disposed||(this._disposed=!0,($=this._listeners)===null||$===void 0||$.clear(),(W=this._deliveryQueue)===null||W===void 0||W.clear(),(G=(X=this._options)===null||X===void 0?void 0:X.onLastListenerRemove)===null||G===void 0||G.call(X),(L=this._leakageMon)===null||L===void 0||L.dispose())}}class y extends l{constructor($){super($),this._isPaused=0,this._eventQueue=new O.S,this._mergeFn=$==null?void 0:$.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const $=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn($))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire($){this._listeners&&(this._isPaused!==0?this._eventQueue.push($):super.fire($))}}class M extends y{constructor($){var W;super($),this._delay=(W=$.delay)!==null&&W!==void 0?W:100}fire($){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire($)}}class b{constructor(){this.buffers=[]}wrapEvent($){return(W,X,G)=>$(L=>{const Q=this.buffers[this.buffers.length-1];Q?Q.push(()=>W.call(X,L)):W.call(X,L)},void 0,G)}bufferEvents($){const W=[];this.buffers.push(W);const X=$();return this.buffers.pop(),W.forEach(G=>G()),X}}class C{constructor(){this.listening=!1,this.inputEvent=Z.None,this.inputEventListener=U.JT.None,this.emitter=new l({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($){this.inputEvent=$,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=$(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(zn,Pt,u){"use strict";u.d(Pt,{I:function(){return i}});function i(U){const O=this;let fe=!1,Z;return function(){return fe||(fe=!0,Z=U.apply(O,arguments)),Z}}},88226:function(zn,Pt,u){"use strict";u.d(Pt,{$:function(){return i}});var i;(function(U){function O(Q){return Q&&typeof Q=="object"&&typeof Q[Symbol.iterator]=="function"}U.is=O;const fe=Object.freeze([]);function Z(){return fe}U.empty=Z;function*g(Q){yield Q}U.single=g;function H(Q){return Q||fe}U.from=H;function V(Q){return!Q||Q[Symbol.iterator]().next().done===!0}U.isEmpty=V;function l(Q){return Q[Symbol.iterator]().next().value}U.first=l;function y(Q,P){for(const A of Q)if(P(A))return!0;return!1}U.some=y;function M(Q,P){for(const A of Q)if(P(A))return A}U.find=M;function*b(Q,P){for(const A of Q)P(A)&&(yield A)}U.filter=b;function*C(Q,P){let A=0;for(const ce of Q)yield P(ce,A++)}U.map=C;function*T(...Q){for(const P of Q)for(const A of P)yield A}U.concat=T;function*$(Q){for(const P of Q)for(const A of P)yield A}U.concatNested=$;function W(Q,P,A){let ce=A;for(const Ee of Q)ce=P(ce,Ee);return ce}U.reduce=W;function*X(Q,P,A=Q.length){for(P<0&&(P+=Q.length),A<0?A+=Q.length:A>Q.length&&(A=Q.length);P<A;P++)yield Q[P]}U.slice=X;function G(Q,P=Number.POSITIVE_INFINITY){const A=[];if(P===0)return[A,Q];const ce=Q[Symbol.iterator]();for(let Ee=0;Ee<P;Ee++){const pe=ce.next();if(pe.done)return[A,U.empty()];A.push(pe.value)}return[A,{[Symbol.iterator](){return ce}}]}U.consume=G;function L(Q,P,A=(ce,Ee)=>ce===Ee){const ce=Q[Symbol.iterator](),Ee=P[Symbol.iterator]();for(;;){const pe=ce.next(),ze=Ee.next();if(pe.done!==ze.done)return!1;if(pe.done)return!0;if(!A(pe.value,ze.value))return!1}}U.equals=L})(i||(i={}))},69323:function(zn,Pt,u){"use strict";u.d(Pt,{B9:function(){return C},F8:function(){return T},JT:function(){return X},Jz:function(){return L},OF:function(){return $},SL:function(){return W},Wf:function(){return b},XK:function(){return G},dk:function(){return y}});var i=u(17845),U=u(88226);const O=!1;let fe=null;function Z(Q){fe=Q}if(O){const Q="__is_disposable_tracked__";Z(new class{trackDisposable(P){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{P[Q]||console.log(A)},3e3)}setParent(P,A){if(P&&P!==X.None)try{P[Q]=!0}catch(ce){}}markAsDisposed(P){if(P&&P!==X.None)try{P[Q]=!0}catch(A){}}markAsSingleton(P){}})}function g(Q){return fe==null||fe.trackDisposable(Q),Q}function H(Q){fe==null||fe.markAsDisposed(Q)}function V(Q,P){fe==null||fe.setParent(Q,P)}function l(Q,P){if(fe)for(const A of Q)fe.setParent(A,P)}function y(Q){return fe==null||fe.markAsSingleton(Q),Q}class M extends Error{constructor(P){super(`Encountered errors while disposing of store. Errors: [${P.join(", ")}]`),this.errors=P}}function b(Q){return typeof Q.dispose=="function"&&Q.dispose.length===0}function C(Q){if(U.$.is(Q)){let P=[];for(const A of Q)if(A)try{A.dispose()}catch(ce){P.push(ce)}if(P.length===1)throw P[0];if(P.length>1)throw new M(P);return Array.isArray(Q)?[]:Q}else if(Q)return Q.dispose(),Q}function T(...Q){const P=$(()=>C(Q));return l(Q,P),P}function $(Q){const P=g({dispose:(0,i.I)(()=>{H(P),Q()})});return P}class W{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(H(this),this._isDisposed=!0,this.clear())}clear(){try{C(this._toDispose.values())}finally{this._toDispose.clear()}}add(P){if(!P)return P;if(P===this)throw new Error("Cannot register a disposable on itself!");return V(P,this),this._isDisposed?W.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(P),P}}W.DISABLE_DISPOSED_WARNING=!1;class X{constructor(){this._store=new W,g(this),V(this._store,this)}dispose(){H(this),this._store.dispose()}_register(P){if(P===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(P)}}X.None=Object.freeze({dispose(){}});class G{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(P){var A;this._isDisposed||P===this._value||((A=this._value)===null||A===void 0||A.dispose(),P&&V(P,this),this._value=P)}clear(){this.value=void 0}dispose(){var P;this._isDisposed=!0,H(this),(P=this._value)===null||P===void 0||P.dispose(),this._value=void 0}clearAndLeak(){const P=this._value;return this._value=void 0,P&&V(P,null),P}}class L{constructor(P){this.object=P}dispose(){}}},34502:function(zn,Pt,u){"use strict";u.d(Pt,{S:function(){return U}});class i{constructor(fe){this.element=fe,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class U{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let fe=this._first;for(;fe!==i.Undefined;){const Z=fe.next;fe.prev=i.Undefined,fe.next=i.Undefined,fe=Z}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(fe){return this._insert(fe,!1)}push(fe){return this._insert(fe,!0)}_insert(fe,Z){const g=new i(fe);if(this._first===i.Undefined)this._first=g,this._last=g;else if(Z){const V=this._last;this._last=g,g.prev=V,V.next=g}else{const V=this._first;this._first=g,g.next=V,V.prev=g}this._size+=1;let H=!1;return()=>{H||(H=!0,this._remove(g))}}shift(){if(this._first!==i.Undefined){const fe=this._first.element;return this._remove(this._first),fe}}pop(){if(this._last!==i.Undefined){const fe=this._last.element;return this._remove(this._last),fe}}_remove(fe){if(fe.prev!==i.Undefined&&fe.next!==i.Undefined){const Z=fe.prev;Z.next=fe.next,fe.next.prev=Z}else fe.prev===i.Undefined&&fe.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):fe.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):fe.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let fe=this._first;for(;fe!==i.Undefined;)yield fe.element,fe=fe.next}}},23345:function(zn,Pt,u){"use strict";u.d(Pt,{$L:function(){return ce},ED:function(){return L},IJ:function(){return P},OS:function(){return Je},WE:function(){return pe},dz:function(){return Q},gn:function(){return Ee},li:function(){return $},r:function(){return le},tY:function(){return A},xS:function(){return ze}});var i=u(97671),U;const O="en";let fe=!1,Z=!1,g=!1,H=!1,V=!1,l=!1,y=!1,M,b=null,C=null,T;const $=typeof self=="object"?self:typeof u.g=="object"?u.g:{};let W;typeof $.vscode!="undefined"&&typeof $.vscode.process!="undefined"?W=$.vscode.process:typeof i!="undefined"&&(W=i);const X=typeof((U=W==null?void 0:W.versions)===null||U===void 0?void 0:U.electron)=="string"&&W.type==="renderer";if(typeof navigator=="object"&&!X)T=navigator.userAgent,fe=T.indexOf("Windows")>=0,Z=T.indexOf("Macintosh")>=0,y=(T.indexOf("Macintosh")>=0||T.indexOf("iPad")>=0||T.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,g=T.indexOf("Linux")>=0,l=!0,M=navigator.language,b=M;else if(typeof W=="object"){fe=W.platform==="win32",Z=W.platform==="darwin",g=W.platform==="linux",H=g&&!!W.env.SNAP&&!!W.env.SNAP_REVISION,M=O,b=O;const N=W.env.VSCODE_NLS_CONFIG;if(N)try{const S=JSON.parse(N),q=S.availableLanguages["*"];M=S.locale,b=q||O,C=S._translationsConfigFile}catch(S){}V=!0}else console.error("Unable to resolve platform.");let G=0;Z?G=1:fe?G=3:g&&(G=2);const L=fe,Q=Z,P=g,A=V,ce=l,Ee=y,pe=T,ze=function(){if($.setImmediate)return $.setImmediate.bind($);if(typeof $.postMessage=="function"&&!$.importScripts){let q=[];$.addEventListener("message",se=>{if(se.data&&se.data.vscodeSetImmediateId)for(let w=0,I=q.length;w<I;w++){const de=q[w];if(de.id===se.data.vscodeSetImmediateId){q.splice(w,1),de.callback();return}}});let te=0;return se=>{const w=++te;q.push({id:w,callback:se}),$.postMessage({vscodeSetImmediateId:w},"*")}}if(typeof(W==null?void 0:W.nextTick)=="function")return W.nextTick.bind(W);const S=Promise.resolve();return q=>S.then(q)}(),Je=Z||y?2:fe?1:3;let Pe=!0,Ze=!1;function le(){if(!Ze){Ze=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2,Pe=new Uint16Array(N.buffer)[0]===513}return Pe}},95830:function(zn,Pt,u){"use strict";u.d(Pt,{G:function(){return O}});var i=u(23345);const U=i.li.performance&&typeof i.li.performance.now=="function";class O{constructor(Z){this._highResolution=U&&Z,this._startTime=this._now(),this._stopTime=-1}static create(Z=!0){return new O(Z)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(zn,Pt,u){"use strict";u.d(Pt,{$i:function(){return dt},C8:function(){return St},GF:function(){return M},HO:function(){return te},IO:function(){return b},K7:function(){return ht},Kw:function(){return tt},LC:function(){return $},Mh:function(){return ze},P1:function(){return Je},PJ:function(){return un},Qe:function(){return It},R1:function(){return y},RP:function(){return de},S6:function(){return vt},TT:function(){return L},Ut:function(){return w},V8:function(){return W},WU:function(){return O},YK:function(){return Ze},YU:function(){return fe},ZG:function(){return Pe},ZH:function(){return N},ab:function(){return Te},c1:function(){return Me},df:function(){return ce},ec:function(){return Z},fi:function(){return bt},fy:function(){return g},j3:function(){return H},j_:function(){return P},m5:function(){return i},mK:function(){return A},mr:function(){return C},oH:function(){return oe},oL:function(){return V},ok:function(){return pe},ow:function(){return X},qq:function(){return Ee},qu:function(){return G},rL:function(){return le},uS:function(){return Xt},un:function(){return l},uq:function(){return T},vH:function(){return q},xe:function(){return rt},zY:function(){return Q}});function i(D){return!D||typeof D!="string"?!0:D.trim().length===0}const U=/{(\d+)}/g;function O(D,...Se){return Se.length===0?D:D.replace(U,function(Ae,Ce){const ke=parseInt(Ce,10);return isNaN(ke)||ke<0||ke>=Se.length?Ae:Se[ke]})}function fe(D){return D.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Se}})}function Z(D){return D.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(D,Se=" "){const Ae=H(D,Se);return V(Ae,Se)}function H(D,Se){if(!D||!Se)return D;const Ae=Se.length;if(Ae===0||D.length===0)return D;let Ce=0;for(;D.indexOf(Se,Ce)===Ce;)Ce=Ce+Ae;return D.substring(Ce)}function V(D,Se){if(!D||!Se)return D;const Ae=Se.length,Ce=D.length;if(Ae===0||Ce===0)return D;let ke=Ce,Xe=-1;for(;Xe=D.lastIndexOf(Se,ke-1),!(Xe===-1||Xe+Ae!==ke);){if(Xe===0)return"";ke=Xe}return D.substring(0,ke)}function l(D){return D.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(D){return D.replace(/\*/g,"")}function M(D,Se,Ae={}){if(!D)throw new Error("Cannot create regex from empty string");Se||(D=Z(D)),Ae.wholeWord&&(/\B/.test(D.charAt(0))||(D="\\b"+D),/\B/.test(D.charAt(D.length-1))||(D=D+"\\b"));let Ce="";return Ae.global&&(Ce+="g"),Ae.matchCase||(Ce+="i"),Ae.multiline&&(Ce+="m"),Ae.unicode&&(Ce+="u"),new RegExp(D,Ce)}function b(D){return D.source==="^"||D.source==="^$"||D.source==="$"||D.source==="^\\s*$"?!1:!!(D.exec("")&&D.lastIndex===0)}function C(D){return(D.global?"g":"")+(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")}function T(D){return D.split(/\r\n|\r|\n/)}function $(D){for(let Se=0,Ae=D.length;Se<Ae;Se++){const Ce=D.charCodeAt(Se);if(Ce!==32&&Ce!==9)return Se}return-1}function W(D,Se=0,Ae=D.length){for(let Ce=Se;Ce<Ae;Ce++){const ke=D.charCodeAt(Ce);if(ke!==32&&ke!==9)return D.substring(Se,Ce)}return D.substring(Se,Ae)}function X(D,Se=D.length-1){for(let Ae=Se;Ae>=0;Ae--){const Ce=D.charCodeAt(Ae);if(Ce!==32&&Ce!==9)return Ae}return-1}function G(D,Se){return D<Se?-1:D>Se?1:0}function L(D,Se,Ae=0,Ce=D.length,ke=0,Xe=Se.length){for(;Ae<Ce&&ke<Xe;Ae++,ke++){let me=D.charCodeAt(Ae),Lt=Se.charCodeAt(ke);if(me<Lt)return-1;if(me>Lt)return 1}const yt=Ce-Ae,he=Xe-ke;return yt<he?-1:yt>he?1:0}function Q(D,Se){return P(D,Se,0,D.length,0,Se.length)}function P(D,Se,Ae=0,Ce=D.length,ke=0,Xe=Se.length){for(;Ae<Ce&&ke<Xe;Ae++,ke++){let me=D.charCodeAt(Ae),Lt=Se.charCodeAt(ke);if(me===Lt)continue;if(me>=128||Lt>=128)return L(D.toLowerCase(),Se.toLowerCase(),Ae,Ce,ke,Xe);A(me)&&(me-=32),A(Lt)&&(Lt-=32);const Ct=me-Lt;if(Ct!==0)return Ct}const yt=Ce-Ae,he=Xe-ke;return yt<he?-1:yt>he?1:0}function A(D){return D>=97&&D<=122}function ce(D){return D>=65&&D<=90}function Ee(D,Se){return D.length===Se.length&&P(D,Se)===0}function pe(D,Se){const Ae=Se.length;return Se.length>D.length?!1:P(D,Se,0,Ae)===0}function ze(D,Se){let Ae,Ce=Math.min(D.length,Se.length);for(Ae=0;Ae<Ce;Ae++)if(D.charCodeAt(Ae)!==Se.charCodeAt(Ae))return Ae;return Ce}function Je(D,Se){let Ae,Ce=Math.min(D.length,Se.length);const ke=D.length-1,Xe=Se.length-1;for(Ae=0;Ae<Ce;Ae++)if(D.charCodeAt(ke-Ae)!==Se.charCodeAt(Xe-Ae))return Ae;return Ce}function Pe(D){return 55296<=D&&D<=56319}function Ze(D){return 56320<=D&&D<=57343}function le(D,Se){return(D-55296<<10)+(Se-56320)+65536}function N(D,Se,Ae){const Ce=D.charCodeAt(Ae);if(Pe(Ce)&&Ae+1<Se){const ke=D.charCodeAt(Ae+1);if(Ze(ke))return le(Ce,ke)}return Ce}function S(D,Se){const Ae=D.charCodeAt(Se-1);if(Ze(Ae)&&Se>1){const Ce=D.charCodeAt(Se-2);if(Pe(Ce))return le(Ce,Ae)}return Ae}function q(D,Se){const Ae=Ve.getInstance(),Ce=Se,ke=D.length,Xe=N(D,ke,Se);Se+=Xe>=65536?2:1;let yt=Ae.getGraphemeBreakType(Xe);for(;Se<ke;){const he=N(D,ke,Se),me=Ae.getGraphemeBreakType(he);if(bt(yt,me))break;Se+=he>=65536?2:1,yt=me}return Se-Ce}function te(D,Se){const Ae=Ve.getInstance(),Ce=Se,ke=S(D,Se);Se-=ke>=65536?2:1;let Xe=Ae.getGraphemeBreakType(ke);for(;Se>0;){const yt=S(D,Se),he=Ae.getGraphemeBreakType(yt);if(bt(he,Xe))break;Se-=yt>=65536?2:1,Xe=he}return Ce-Se}const se=/(?:[\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 w(D){return se.test(D)}const I=/(?:[\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 de(D){return I.test(D)}const De=/^[\t\n\r\x20-\x7E]*$/;function dt(D){return De.test(D)}const It=/[\u2028\u2029]/;function Te(D){return It.test(D)}function rt(D){for(let Se=0,Ae=D.length;Se<Ae;Se++)if(ht(D.charCodeAt(Se)))return!0;return!1}function ht(D){return D=+D,D>=11904&&D<=55215||D>=63744&&D<=64255||D>=65281&&D<=65374}function St(D){return D>=127462&&D<=127487||D===8986||D===8987||D===9200||D===9203||D>=9728&&D<=10175||D===11088||D===11093||D>=127744&&D<=128591||D>=128640&&D<=128764||D>=128992&&D<=129003||D>=129280&&D<=129535||D>=129648&&D<=129750}const Me="\uFEFF";function Xt(D){return!!(D&&D.length>0&&D.charCodeAt(0)===65279)}function tt(D,Se=!1){return D?(Se&&(D=D.replace(/\\./g,"")),D.toLowerCase()!==D):!1}function un(D){return D=D%(2*26),D<26?String.fromCharCode(97+D):String.fromCharCode(65+D-26)}function vt(D){return Ve.getInstance().getGraphemeBreakType(D)}function bt(D,Se){return D===0?Se!==5&&Se!==7:D===2&&Se===3?!1:D===4||D===2||D===3||Se===4||Se===2||Se===3?!0:!(D===8&&(Se===8||Se===9||Se===11||Se===12)||(D===11||D===9)&&(Se===9||Se===10)||(D===12||D===10)&&Se===10||Se===5||Se===13||Se===7||D===1||D===13&&Se===14||D===6&&Se===6)}class Ve{constructor(){this._data=Le()}static getInstance(){return Ve._INSTANCE||(Ve._INSTANCE=new Ve),Ve._INSTANCE}getGraphemeBreakType(Se){if(Se<32)return Se===10?3:Se===13?2:4;if(Se<127)return 0;const Ae=this._data,Ce=Ae.length/3;let ke=1;for(;ke<=Ce;)if(Se<Ae[3*ke])ke=2*ke;else if(Se>Ae[3*ke+1])ke=2*ke+1;else return Ae[3*ke+2];return 0}}Ve._INSTANCE=null;function Le(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function oe(D,Se){if(D===0)return 0;const Ae=nt(D,Se);if(Ae!==void 0)return Ae;const Ce=S(Se,D);return D-=Ue(Ce),D}function nt(D,Se){let Ae=S(Se,D);for(D-=Ue(Ae);K(Ae)||Ae===65039||Ae===8419;){if(D===0)return;Ae=S(Se,D),D-=Ue(Ae)}if(St(Ae)){if(D>=0){const Ce=S(Se,D);Ce===8205&&(D-=Ue(Ce))}return D}}function Ue(D){return D>=65536?2:1}function K(D){return 127995<=D&&D<=127999}},72999:function(zn,Pt,u){"use strict";u.d(Pt,{$E:function(){return $},$K:function(){return H},D8:function(){return b},HD:function(){return U},IU:function(){return W},Jp:function(){return V},Kn:function(){return O},cW:function(){return y},f6:function(){return X},hj:function(){return fe},jn:function(){return Z},kJ:function(){return i},mf:function(){return M},o8:function(){return g},p_:function(){return l},vE:function(){return G}});function i(L){return Array.isArray(L)}function U(L){return typeof L=="string"}function O(L){return typeof L=="object"&&L!==null&&!Array.isArray(L)&&!(L instanceof RegExp)&&!(L instanceof Date)}function fe(L){return typeof L=="number"&&!isNaN(L)}function Z(L){return L===!0||L===!1}function g(L){return typeof L=="undefined"}function H(L){return!V(L)}function V(L){return g(L)||L===null}function l(L,Q){if(!L)throw new Error(Q?`Unexpected type, expected '${Q}'`:"Unexpected type")}function y(L){if(V(L))throw new Error("Assertion Failed: argument is undefined or null");return L}function M(L){return typeof L=="function"}function b(L,Q){const P=Math.min(L.length,Q.length);for(let A=0;A<P;A++)C(L[A],Q[A])}function C(L,Q){if(U(Q)){if(typeof L!==Q)throw new Error(`argument does not match constraint: typeof ${Q}`)}else if(M(Q)){try{if(L instanceof Q)return}catch(P){}if(!V(L)&&L.constructor===Q||Q.length===1&&Q.call(void 0,L)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function T(L){let Q=[],P=Object.getPrototypeOf(L);for(;Object.prototype!==P;)Q=Q.concat(Object.getOwnPropertyNames(P)),P=Object.getPrototypeOf(P);return Q}function $(L){const Q=[];for(const P of T(L))typeof L[P]=="function"&&Q.push(P);return Q}function W(L,Q){const P=ce=>function(){const Ee=Array.prototype.slice.call(arguments,0);return Q(ce,Ee)};let A={};for(const ce of L)A[ce]=P(ce);return A}function X(L){return L===null?void 0:L}function G(L,Q="Unreachable"){throw new Error(Q)}},13268:function(zn,Pt,u){"use strict";u.d(Pt,{N:function(){return U}});function i(O,fe){let Z;return fe.length===0?Z=O:Z=O.replace(/\{(\d+)\}/g,function(g,H){const V=H[0];return typeof fe[V]!="undefined"?fe[V]:g}),Z}function U(O,fe,...Z){return i(fe,Z)}},96236:function(zn,Pt,u){"use strict";u.d(Pt,{BH:function(){return W},NZ:function(){return X},U8:function(){return G},co:function(){return $},eH:function(){return T},vr:function(){return C}});var i=u(75918),U=u(52615),O=u(4348),fe=u(88226),Z=u(69323),g=u(34502),H=u(35884),V=u(90689),l=u(16925),y=u(49055),M=function(L,Q,P,A){var ce=arguments.length,Ee=ce<3?Q:A===null?A=Object.getOwnPropertyDescriptor(Q,P):A,pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ee=Reflect.decorate(L,Q,P,A);else for(var ze=L.length-1;ze>=0;ze--)(pe=L[ze])&&(Ee=(ce<3?pe(Ee):ce>3?pe(Q,P,Ee):pe(Q,P))||Ee);return ce>3&&Ee&&Object.defineProperty(Q,P,Ee),Ee},b=function(L,Q){return function(P,A){Q(P,A,L)}};function C(L){return L.command!==void 0}class T{constructor(Q){this.id=T._idPool++,this._debugName=Q}}T._idPool=0,T.CommandPalette=new T("CommandPalette"),T.EditorContext=new T("EditorContext"),T.SimpleEditorContext=new T("SimpleEditorContext"),T.EditorContextCopy=new T("EditorContextCopy"),T.EditorContextPeek=new T("EditorContextPeek"),T.MenubarEditMenu=new T("MenubarEditMenu"),T.MenubarCopy=new T("MenubarCopy"),T.MenubarGoMenu=new T("MenubarGoMenu"),T.MenubarSelectionMenu=new T("MenubarSelectionMenu"),T.InlineCompletionsActions=new T("InlineCompletionsActions");const $=(0,l.yh)("menuService"),W=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new O.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:L=>L===T.CommandPalette}}addCommand(L){return this.addCommands(fe.$.single(L))}addCommands(L){for(const Q of L)this._commands.set(Q.id,Q);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,Z.OF)(()=>{let Q=!1;for(const P of L)Q=this._commands.delete(P.id)||Q;Q&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(L){return this._commands.get(L)}getCommands(){const L=new Map;return this._commands.forEach((Q,P)=>L.set(P,Q)),L}appendMenuItem(L,Q){return this.appendMenuItems(fe.$.single({id:L,item:Q}))}appendMenuItems(L){const Q=new Set,P=new g.S;for(const{id:A,item:ce}of L){let Ee=this._menuItems.get(A);Ee||(Ee=new g.S,this._menuItems.set(A,Ee)),P.push(Ee.push(ce)),Q.add(A)}return this._onDidChangeMenu.fire(Q),(0,Z.OF)(()=>{if(P.size>0){for(let A of P)A();this._onDidChangeMenu.fire(Q),P.clear()}})}getMenuItems(L){let Q;return this._menuItems.has(L)?Q=[...this._menuItems.get(L)]:Q=[],L===T.CommandPalette&&this._appendImplicitItems(Q),Q}_appendImplicitItems(L){const Q=new Set;for(const P of L)C(P)&&(Q.add(P.command.id),P.alt&&Q.add(P.alt.id));this._commands.forEach((P,A)=>{Q.has(A)||L.push({command:P})})}};class X extends i.wY{constructor(Q,P,A,ce){super(`submenuitem.${Q.submenu.id}`,typeof Q.title=="string"?Q.title:Q.title.value,[],"submenu"),this.item=Q,this._menuService=P,this._contextKeyService=A,this._options=ce}get actions(){const Q=[],P=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=P.getActions(this._options);P.dispose();for(const[,ce]of A)ce.length>0&&(Q.push(...ce),Q.push(new i.Z0));return Q.length&&Q.pop(),Q}}let G=class cc{constructor(Q,P,A,ce,Ee){var pe,ze;if(this._commandService=Ee,this.id=Q.id,this.label=A!=null&&A.renderShortTitle&&Q.shortTitle?typeof Q.shortTitle=="string"?Q.shortTitle:Q.shortTitle.value:typeof Q.title=="string"?Q.title:Q.title.value,this.tooltip=(ze=typeof Q.tooltip=="string"?Q.tooltip:(pe=Q.tooltip)===null||pe===void 0?void 0:pe.value)!==null&&ze!==void 0?ze:"",this.enabled=!Q.precondition||ce.contextMatchesRules(Q.precondition),this.checked=void 0,Q.toggled){const Je=Q.toggled.condition?Q.toggled:{condition:Q.toggled};this.checked=ce.contextMatchesRules(Je.condition),this.checked&&Je.tooltip&&(this.tooltip=typeof Je.tooltip=="string"?Je.tooltip:Je.tooltip.value),Je.title&&(this.label=typeof Je.title=="string"?Je.title:Je.title.value)}this.item=Q,this.alt=P?new cc(P,void 0,A,ce,Ee):void 0,this._options=A,y.kS.isThemeIcon(Q.icon)&&(this.class=U.dT.asClassName(Q.icon))}dispose(){}run(...Q){var P,A;let ce=[];return!((P=this._options)===null||P===void 0)&&P.arg&&(ce=[...ce,this._options.arg]),!((A=this._options)===null||A===void 0)&&A.shouldForwardArgs&&(ce=[...ce,...Q]),this._commandService.executeCommand(this.id,...ce)}};G=M([b(3,V.i6),b(4,H.H)],G)},35884:function(zn,Pt,u){"use strict";u.d(Pt,{H:function(){return H},P:function(){return V}});var i=u(4348),U=u(88226),O=u(69323),fe=u(34502),Z=u(72999),g=u(16925);const H=(0,g.yh)("commandService"),V=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,y){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!y)throw new Error("invalid command");return this.registerCommand({id:l,handler:y})}if(l.description){const $=[];for(let X of l.description.args)$.push(X.constraint);const W=l.handler;l.handler=function(X,...G){return(0,Z.D8)(G,$),W(X,...G)}}const{id:M}=l;let b=this._commands.get(M);b||(b=new fe.S,this._commands.set(M,b));let C=b.unshift(l),T=(0,O.OF)(()=>{C();const $=this._commands.get(M);$!=null&&$.isEmpty()&&this._commands.delete(M)});return this._onDidRegisterCommand.fire(M),T}registerCommandAlias(l,y){return V.registerCommand(l,(M,...b)=>M.get(H).executeCommand(y,...b))}getCommand(l){const y=this._commands.get(l);if(!(!y||y.isEmpty()))return U.$.first(y)}getCommands(){const l=new Map;for(const y of this._commands.keys()){const M=this.getCommand(y);M&&l.set(y,M)}return l}};V.registerCommand("noop",()=>{})},90689:function(zn,Pt,u){"use strict";u.d(Pt,{Ao:function(){return H},Eq:function(){return le},Fb:function(){return V},K8:function(){return q},i6:function(){return Ze},uy:function(){return Pe}});var i=u(23345),U=u(82983),O=u(16925);let fe=i.WE||"";const Z=new Map;Z.set("false",!1),Z.set("true",!0),Z.set("isMac",i.dz),Z.set("isLinux",i.IJ),Z.set("isWindows",i.ED),Z.set("isWeb",i.$L),Z.set("isMacNative",i.dz&&!i.$L),Z.set("isEdge",fe.indexOf("Edg/")>=0),Z.set("isFirefox",fe.indexOf("Firefox")>=0),Z.set("isChrome",fe.indexOf("Chrome")>=0),Z.set("isSafari",fe.indexOf("Safari")>=0);const g=Object.prototype.hasOwnProperty;class H{static has(w){return b.create(w)}static equals(w,I){return C.create(w,I)}static regex(w,I){return ce.create(w,I)}static not(w){return X.create(w)}static and(...w){return ze.create(w,null)}static or(...w){return Je.create(w,null,!0)}static deserialize(w,I=!1){if(w)return this._deserializeOrExpression(w,I)}static _deserializeOrExpression(w,I){let de=w.split("||");return Je.create(de.map(De=>this._deserializeAndExpression(De,I)),null,!0)}static _deserializeAndExpression(w,I){let de=w.split("&&");return ze.create(de.map(De=>this._deserializeOne(De,I)),null)}static _deserializeOne(w,I){if(w=w.trim(),w.indexOf("!=")>=0){let de=w.split("!=");return W.create(de[0].trim(),this._deserializeValue(de[1],I))}if(w.indexOf("==")>=0){let de=w.split("==");return C.create(de[0].trim(),this._deserializeValue(de[1],I))}if(w.indexOf("=~")>=0){let de=w.split("=~");return ce.create(de[0].trim(),this._deserializeRegexValue(de[1],I))}if(w.indexOf(" in ")>=0){let de=w.split(" in ");return T.create(de[0].trim(),de[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(w)){const de=w.split(">=");return Q.create(de[0].trim(),de[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(w)){const de=w.split(">");return L.create(de[0].trim(),de[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(w)){const de=w.split("<=");return A.create(de[0].trim(),de[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(w)){const de=w.split("<");return P.create(de[0].trim(),de[1].trim())}return/^\!\s*/.test(w)?X.create(w.substr(1).trim()):b.create(w)}static _deserializeValue(w,I){if(w=w.trim(),w==="true")return!0;if(w==="false")return!1;let de=/^'([^']*)'$/.exec(w);return de?de[1].trim():w}static _deserializeRegexValue(w,I){if((0,U.m5)(w)){if(I)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let de=w.indexOf("/"),De=w.lastIndexOf("/");if(de===De||de<0){if(I)throw new Error(`bad regexp-value '${w}', missing /-enclosure`);return console.warn(`bad regexp-value '${w}', missing /-enclosure`),null}let dt=w.slice(de+1,De),It=w[De+1]==="i"?"i":"";try{return new RegExp(dt,It)}catch(Te){if(I)throw new Error(`bad regexp-value '${w}', parse error: ${Te}`);return console.warn(`bad regexp-value '${w}', parse error: ${Te}`),null}}}function V(se,w){const I=se?se.substituteConstants():void 0,de=w?w.substituteConstants():void 0;return!I&&!de?!0:!I||!de?!1:I.equals(de)}function l(se,w){return se.cmp(w)}class y{constructor(){this.type=0}cmp(w){return this.type-w.type}equals(w){return w.type===this.type}substituteConstants(){return this}evaluate(w){return!1}serialize(){return"false"}keys(){return[]}negate(){return M.INSTANCE}}y.INSTANCE=new y;class M{constructor(){this.type=1}cmp(w){return this.type-w.type}equals(w){return w.type===this.type}substituteConstants(){return this}evaluate(w){return!0}serialize(){return"true"}keys(){return[]}negate(){return y.INSTANCE}}M.INSTANCE=new M;class b{constructor(w,I){this.key=w,this.negated=I,this.type=2}static create(w,I=null){const de=Z.get(w);return typeof de=="boolean"?de?M.INSTANCE:y.INSTANCE:new b(w,I)}cmp(w){return w.type!==this.type?this.type-w.type:N(this.key,w.key)}equals(w){return w.type===this.type?this.key===w.key:!1}substituteConstants(){const w=Z.get(this.key);return typeof w=="boolean"?w?M.INSTANCE:y.INSTANCE:this}evaluate(w){return!!w.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this.key,this)),this.negated}}class C{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=4}static create(w,I,de=null){if(typeof I=="boolean")return I?b.create(w,de):X.create(w,de);const De=Z.get(w);return typeof De=="boolean"?I===(De?"true":"false")?M.INSTANCE:y.INSTANCE:new C(w,I,de)}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){const w=Z.get(this.key);if(typeof w=="boolean"){const I=w?"true":"false";return this.value===I?M.INSTANCE:y.INSTANCE}return this}evaluate(w){return w.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class T{constructor(w,I){this.key=w,this.valueKey=I,this.type=10,this.negated=null}static create(w,I){return new T(w,I)}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.valueKey,w.key,w.valueKey)}equals(w){return w.type===this.type?this.key===w.key&&this.valueKey===w.valueKey:!1}substituteConstants(){return this}evaluate(w){const I=w.getValue(this.valueKey),de=w.getValue(this.key);return Array.isArray(I)?I.indexOf(de)>=0:typeof de=="string"&&typeof I=="object"&&I!==null?g.call(I,de):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=$.create(this)),this.negated}}class ${constructor(w){this._actual=w,this.type=11}static create(w){return new $(w)}cmp(w){return w.type!==this.type?this.type-w.type:this._actual.cmp(w._actual)}equals(w){return w.type===this.type?this._actual.equals(w._actual):!1}substituteConstants(){return this}evaluate(w){return!this._actual.evaluate(w)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class W{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=5}static create(w,I,de=null){if(typeof I=="boolean")return I?X.create(w,de):b.create(w,de);const De=Z.get(w);return typeof De=="boolean"?I===(De?"true":"false")?y.INSTANCE:M.INSTANCE:new W(w,I,de)}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){const w=Z.get(this.key);if(typeof w=="boolean"){const I=w?"true":"false";return this.value===I?y.INSTANCE:M.INSTANCE}return this}evaluate(w){return w.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this.key,this.value,this)),this.negated}}class X{constructor(w,I){this.key=w,this.negated=I,this.type=3}static create(w,I=null){const de=Z.get(w);return typeof de=="boolean"?de?y.INSTANCE:M.INSTANCE:new X(w,I)}cmp(w){return w.type!==this.type?this.type-w.type:N(this.key,w.key)}equals(w){return w.type===this.type?this.key===w.key:!1}substituteConstants(){const w=Z.get(this.key);return typeof w=="boolean"?w?y.INSTANCE:M.INSTANCE:this}evaluate(w){return!w.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}function G(se,w){if(typeof se=="string"){const I=parseFloat(se);isNaN(I)||(se=I)}return typeof se=="string"||typeof se=="number"?w(se):y.INSTANCE}class L{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=12}static create(w,I,de=null){return G(I,De=>new L(w,De,de))}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class Q{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=13}static create(w,I,de=null){return G(I,De=>new Q(w,De,de))}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class P{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=14}static create(w,I,de=null){return G(I,De=>new P(w,De,de))}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q.create(this.key,this.value,this)),this.negated}}class A{constructor(w,I,de){this.key=w,this.value=I,this.negated=de,this.type=15}static create(w,I,de=null){return G(I,De=>new A(w,De,de))}cmp(w){return w.type!==this.type?this.type-w.type:S(this.key,this.value,w.key,w.value)}equals(w){return w.type===this.type?this.key===w.key&&this.value===w.value:!1}substituteConstants(){return this}evaluate(w){return typeof this.value=="string"?!1:parseFloat(w.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class ce{constructor(w,I){this.key=w,this.regexp=I,this.type=7,this.negated=null}static create(w,I){return new ce(w,I)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.key<w.key)return-1;if(this.key>w.key)return 1;const I=this.regexp?this.regexp.source:"",de=w.regexp?w.regexp.source:"";return I<de?-1:I>de?1:0}equals(w){if(w.type===this.type){const I=this.regexp?this.regexp.source:"",de=w.regexp?w.regexp.source:"";return this.key===w.key&&I===de}return!1}substituteConstants(){return this}evaluate(w){let I=w.getValue(this.key);return this.regexp?this.regexp.test(I):!1}serialize(){const w=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${w}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ee.create(this)),this.negated}}class Ee{constructor(w){this._actual=w,this.type=8}static create(w){return new Ee(w)}cmp(w){return w.type!==this.type?this.type-w.type:this._actual.cmp(w._actual)}equals(w){return w.type===this.type?this._actual.equals(w._actual):!1}substituteConstants(){return this}evaluate(w){return!this._actual.evaluate(w)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function pe(se){let w=null;for(let I=0,de=se.length;I<de;I++){const De=se[I].substituteConstants();if(se[I]!==De&&w===null){w=[];for(let dt=0;dt<I;dt++)w[dt]=se[dt]}w!==null&&(w[I]=De)}return w===null?se:w}class ze{constructor(w,I){this.expr=w,this.negated=I,this.type=6}static create(w,I){return ze._normalizeArr(w,I)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.expr.length<w.expr.length)return-1;if(this.expr.length>w.expr.length)return 1;for(let I=0,de=this.expr.length;I<de;I++){const De=l(this.expr[I],w.expr[I]);if(De!==0)return De}return 0}equals(w){if(w.type===this.type){if(this.expr.length!==w.expr.length)return!1;for(let I=0,de=this.expr.length;I<de;I++)if(!this.expr[I].equals(w.expr[I]))return!1;return!0}return!1}substituteConstants(){const w=pe(this.expr);return w===this.expr?this:ze.create(w,this.negated)}evaluate(w){for(let I=0,de=this.expr.length;I<de;I++)if(!this.expr[I].evaluate(w))return!1;return!0}static _normalizeArr(w,I){const de=[];let De=!1;for(const dt of w)if(dt){if(dt.type===1){De=!0;continue}if(dt.type===0)return y.INSTANCE;if(dt.type===6){de.push(...dt.expr);continue}de.push(dt)}if(de.length===0&&De)return M.INSTANCE;if(de.length!==0){if(de.length===1)return de[0];de.sort(l);for(let dt=1;dt<de.length;dt++)de[dt-1].equals(de[dt])&&(de.splice(dt,1),dt--);if(de.length===1)return de[0];for(;de.length>1;){const dt=de[de.length-1];if(dt.type!==9)break;de.pop();const It=de.pop(),Te=de.length===0,rt=Je.create(dt.expr.map(ht=>ze.create([ht,It],null)),null,Te);rt&&(de.push(rt),de.sort(l))}return de.length===1?de[0]:new ze(de,I)}}serialize(){return this.expr.map(w=>w.serialize()).join(" && ")}keys(){const w=[];for(let I of this.expr)w.push(...I.keys());return w}negate(){if(!this.negated){const w=[];for(let I of this.expr)w.push(I.negate());this.negated=Je.create(w,this,!0)}return this.negated}}class Je{constructor(w,I){this.expr=w,this.negated=I,this.type=9}static create(w,I,de){return Je._normalizeArr(w,I,de)}cmp(w){if(w.type!==this.type)return this.type-w.type;if(this.expr.length<w.expr.length)return-1;if(this.expr.length>w.expr.length)return 1;for(let I=0,de=this.expr.length;I<de;I++){const De=l(this.expr[I],w.expr[I]);if(De!==0)return De}return 0}equals(w){if(w.type===this.type){if(this.expr.length!==w.expr.length)return!1;for(let I=0,de=this.expr.length;I<de;I++)if(!this.expr[I].equals(w.expr[I]))return!1;return!0}return!1}substituteConstants(){const w=pe(this.expr);return w===this.expr?this:Je.create(w,this.negated,!1)}evaluate(w){for(let I=0,de=this.expr.length;I<de;I++)if(this.expr[I].evaluate(w))return!0;return!1}static _normalizeArr(w,I,de){let De=[],dt=!1;if(w){for(let It=0,Te=w.length;It<Te;It++){const rt=w[It];if(rt){if(rt.type===0){dt=!0;continue}if(rt.type===1)return M.INSTANCE;if(rt.type===9){De=De.concat(rt.expr);continue}De.push(rt)}}if(De.length===0&&dt)return y.INSTANCE;De.sort(l)}if(De.length!==0){if(De.length===1)return De[0];for(let It=1;It<De.length;It++)De[It-1].equals(De[It])&&(De.splice(It,1),It--);if(De.length===1)return De[0];if(de){for(let It=0;It<De.length;It++)for(let Te=It+1;Te<De.length;Te++)q(De[It],De[Te])&&(De.splice(Te,1),Te--);if(De.length===1)return De[0]}return new Je(De,I)}}serialize(){return this.expr.map(w=>w.serialize()).join(" || ")}keys(){const w=[];for(let I of this.expr)w.push(...I.keys());return w}negate(){if(!this.negated){let w=[];for(let I of this.expr)w.push(I.negate());for(;w.length>1;){const I=w.shift(),de=w.shift(),De=[];for(const It of te(I))for(const Te of te(de))De.push(ze.create([It,Te],null));const dt=w.length===0;w.unshift(Je.create(De,null,dt))}this.negated=w[0]}return this.negated}}class Pe extends b{constructor(w,I,de){super(w,null),this._defaultValue=I,typeof de=="object"?Pe._info.push(Object.assign(Object.assign({},de),{key:w})):de!==!0&&Pe._info.push({key:w,description:de,type:I!=null?typeof I:void 0})}static all(){return Pe._info.values()}bindTo(w){return w.createKey(this.key,this._defaultValue)}getValue(w){return w.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(w){return C.create(this.key,w)}}Pe._info=[];const Ze=(0,O.yh)("contextKeyService"),le="setContext";function N(se,w){return se<w?-1:se>w?1:0}function S(se,w,I,de){return se<I?-1:se>I?1:w<de?-1:w>de?1:0}function q(se,w){if(w.type===6&&se.type!==9&&se.type!==6){for(const De of w.expr)if(se.equals(De))return!0}const I=se.negate(),de=te(I).concat(te(w));de.sort(l);for(let De=0;De<de.length;De++){const It=de[De].negate();for(let Te=De+1;Te<de.length;Te++){const rt=de[Te];if(It.equals(rt))return!0}}return!1}function te(se){return se.type===9?se.expr:[se]}},16925:function(zn,Pt,u){"use strict";u.d(Pt,{I8:function(){return i},TG:function(){return U},jt:function(){return Z},yh:function(){return fe}});var i;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function H(V){return V[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=H})(i||(i={}));const U=fe("instantiationService");function O(g,H,V,l){H[i.DI_TARGET]===H?H[i.DI_DEPENDENCIES].push({id:g,index:V,optional:l}):(H[i.DI_DEPENDENCIES]=[{id:g,index:V,optional:l}],H[i.DI_TARGET]=H)}function fe(g){if(i.serviceIds.has(g))return i.serviceIds.get(g);const H=function(V,l,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(H,V,y,!1)};return H.toString=()=>g,i.serviceIds.set(g,H),H}function Z(g){return function(H,V,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(g,H,l,!0)}}},44650:function(zn,Pt,u){"use strict";u.d(Pt,{B:function(){return fe}});var i=u(76068),U=u(72999);class O{constructor(){this.data=new Map}add(g,H){i.ok(U.HD(g)),i.ok(U.Kn(H)),i.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,H)}as(g){return this.data.get(g)||null}}const fe=new O},66213:function(zn,Pt,u){"use strict";u.d(Pt,{e:function(){return i}});var i;(function(U){U.DARK="dark",U.LIGHT="light",U.HIGH_CONTRAST="hc"})(i||(i={}))},49055:function(zn,Pt,u){"use strict";u.d(Pt,{EN:function(){return l},IP:function(){return b},Ic:function(){return $},XE:function(){return H},bB:function(){return W},kS:function(){return y},m6:function(){return M}});var i=u(52615),U=u(4348),O=u(69323),fe=u(16925),Z=u(44650),g=u(66213);const H=(0,fe.yh)("themeService");var V;(function(X){function G(L){return L&&typeof L=="object"&&typeof L.id=="string"}X.isThemeColor=G})(V||(V={}));function l(X){return{id:X}}var y;(function(X){function G(Ee){return Ee&&typeof Ee=="object"&&typeof Ee.id=="string"&&(typeof Ee.color=="undefined"||V.isThemeColor(Ee.color))}X.isThemeIcon=G;const L=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);function Q(Ee){const pe=L.exec(Ee);if(!pe)return;let[,ze]=pe;return{id:ze}}X.fromString=Q;function P(Ee,pe){let ze=Ee.id;const Je=ze.lastIndexOf("~");return Je!==-1&&(ze=ze.substring(0,Je)),pe&&(ze=`${ze}~${pe}`),{id:ze}}X.modify=P;function A(Ee,pe){var ze,Je;return Ee.id===pe.id&&((ze=Ee.color)===null||ze===void 0?void 0:ze.id)===((Je=pe.color)===null||Je===void 0?void 0:Je.id)}X.isEqual=A;function ce(Ee,pe){return{id:Ee.id,color:pe?l(pe):void 0}}X.asThemeIcon=ce,X.asClassNameArray=i.dT.asClassNameArray,X.asClassName=i.dT.asClassName,X.asCSSSelector=i.dT.asCSSSelector})(y||(y={}));function M(X){switch(X){case g.e.DARK:return"vs-dark";case g.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const b={ThemingContribution:"base.contributions.theming"};class C{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new U.Q5}onColorThemeChange(G){return this.themingParticipants.push(G),this.onThemingParticipantAddedEmitter.fire(G),(0,O.OF)(()=>{const L=this.themingParticipants.indexOf(G);this.themingParticipants.splice(L,1)})}getThemingParticipants(){return this.themingParticipants}}let T=new C;Z.B.add(b.ThemingContribution,T);function $(X){return T.onColorThemeChange(X)}class W extends O.JT{constructor(G){super(),this.themeService=G,this.theme=G.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(L=>this.onThemeChange(L)))}onThemeChange(G){this.theme=G,this.updateStyles()}updateStyles(){}}},16632:function(zn,Pt,u){"use strict";var i=u(54476),U=u(33885),O=u(20068),fe=u(42978),Z=u(75931),g=u(92310),H=u.n(g),V=u(18929),l=u(59301),y=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],M=(0,l.forwardRef)(function(b,C){var T=b.prefixCls,$=T===void 0?"rc-checkbox":T,W=b.className,X=b.style,G=b.checked,L=b.disabled,Q=b.defaultChecked,P=Q===void 0?!1:Q,A=b.type,ce=A===void 0?"checkbox":A,Ee=b.title,pe=b.onChange,ze=(0,Z.Z)(b,y),Je=(0,l.useRef)(null),Pe=(0,l.useRef)(null),Ze=(0,V.Z)(P,{value:G}),le=(0,fe.Z)(Ze,2),N=le[0],S=le[1];(0,l.useImperativeHandle)(C,function(){return{focus:function(w){var I;(I=Je.current)===null||I===void 0||I.focus(w)},blur:function(){var w;(w=Je.current)===null||w===void 0||w.blur()},input:Je.current,nativeElement:Pe.current}});var q=H()($,W,(0,O.Z)((0,O.Z)({},"".concat($,"-checked"),N),"".concat($,"-disabled"),L)),te=function(w){L||("checked"in b||S(w.target.checked),pe==null||pe({target:(0,U.Z)((0,U.Z)({},b),{},{type:ce,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return l.createElement("span",{className:q,title:Ee,style:X,ref:Pe},l.createElement("input",(0,i.Z)({},ze,{className:"".concat($,"-input"),ref:Je,onChange:te,disabled:L,checked:!!N,type:ce})),l.createElement("span",{className:"".concat($,"-inner")}))});Pt.Z=M},96478:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return Ee}});var i=u(54476),U=u(20068),O=u(42978),fe=u(75931),Z=u(65030),g=u(92310),H=u.n(g),V=u(8654),l=u(59301),y=u(10228),M=u(16089),b=y.Z.ESC,C=y.Z.TAB;function T(pe){var ze=pe.visible,Je=pe.triggerRef,Pe=pe.onVisibleChange,Ze=pe.autoFocus,le=pe.overlayRef,N=l.useRef(!1),S=function(){if(ze){var w,I;(w=Je.current)===null||w===void 0||(I=w.focus)===null||I===void 0||I.call(w),Pe==null||Pe(!1)}},q=function(){var w;return(w=le.current)!==null&&w!==void 0&&w.focus?(le.current.focus(),N.current=!0,!0):!1},te=function(w){switch(w.keyCode){case b:S();break;case C:{var I=!1;N.current||(I=q()),I?w.preventDefault():S();break}}};l.useEffect(function(){return ze?(window.addEventListener("keydown",te),Ze&&(0,M.Z)(q,3),function(){window.removeEventListener("keydown",te),N.current=!1}):function(){N.current=!1}},[ze])}var $=(0,l.forwardRef)(function(pe,ze){var Je=pe.overlay,Pe=pe.arrow,Ze=pe.prefixCls,le=(0,l.useMemo)(function(){var S;return typeof Je=="function"?S=Je():S=Je,S},[Je]),N=(0,V.sQ)(ze,(0,V.C4)(le));return l.createElement(l.Fragment,null,Pe&&l.createElement("div",{className:"".concat(Ze,"-arrow")}),l.cloneElement(le,{ref:(0,V.Yr)(le)?N:void 0}))}),W=$,X={adjustX:1,adjustY:1},G=[0,0],L={topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:G},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:G},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:G},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:G},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:G}},Q=L,P=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function A(pe,ze){var Je,Pe=pe.arrow,Ze=Pe===void 0?!1:Pe,le=pe.prefixCls,N=le===void 0?"rc-dropdown":le,S=pe.transitionName,q=pe.animation,te=pe.align,se=pe.placement,w=se===void 0?"bottomLeft":se,I=pe.placements,de=I===void 0?Q:I,De=pe.getPopupContainer,dt=pe.showAction,It=pe.hideAction,Te=pe.overlayClassName,rt=pe.overlayStyle,ht=pe.visible,St=pe.trigger,Me=St===void 0?["hover"]:St,Xt=pe.autoFocus,tt=pe.overlay,un=pe.children,vt=pe.onVisibleChange,bt=(0,fe.Z)(pe,P),Ve=l.useState(),Le=(0,O.Z)(Ve,2),oe=Le[0],nt=Le[1],Ue="visible"in pe?ht:oe,K=l.useRef(null),D=l.useRef(null),Se=l.useRef(null);l.useImperativeHandle(ze,function(){return K.current});var Ae=function(Nt){nt(Nt),vt==null||vt(Nt)};T({visible:Ue,triggerRef:Se,onVisibleChange:Ae,autoFocus:Xt,overlayRef:D});var Ce=function(Nt){var kt=pe.onOverlayClick;nt(!1),kt&&kt(Nt)},ke=function(){return l.createElement(W,{ref:D,overlay:tt,prefixCls:N,arrow:Ze})},Xe=function(){return typeof tt=="function"?ke:ke()},yt=function(){var Nt=pe.minOverlayWidthMatchTrigger,kt=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?Nt:!kt},he=function(){var Nt=pe.openClassName;return Nt!==void 0?Nt:"".concat(N,"-open")},me=l.cloneElement(un,{className:H()((Je=un.props)===null||Je===void 0?void 0:Je.className,Ue&&he()),ref:(0,V.Yr)(un)?(0,V.sQ)(Se,(0,V.C4)(un)):void 0}),Lt=It;return!Lt&&Me.indexOf("contextMenu")!==-1&&(Lt=["click"]),l.createElement(Z.Z,(0,i.Z)({builtinPlacements:de},bt,{prefixCls:N,ref:K,popupClassName:H()(Te,(0,U.Z)({},"".concat(N,"-show-arrow"),Ze)),popupStyle:rt,action:Me,showAction:dt,hideAction:Lt,popupPlacement:w,popupAlign:te,popupTransitionName:S,popupAnimation:q,popupVisible:Ue,stretch:yt()?"minWidth":"",popup:Xe(),onPopupVisibleChange:Ae,onPopupClick:Ce,getPopupContainer:De}),me)}var ce=l.forwardRef(A),Ee=ce},66003:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return H}});var i=u(75931),U=u(33885),O=u(76190),fe=u(59301),Z=["show"];function g(V,l){if(!l.max)return!0;var y=l.strategy(V);return y<=l.max}function H(V,l){return fe.useMemo(function(){var y={};l&&(y.show=(0,O.Z)(l)==="object"&&l.formatter?l.formatter:!!l),y=(0,U.Z)((0,U.Z)({},y),V);var M=y,b=M.show,C=(0,i.Z)(M,Z);return(0,U.Z)((0,U.Z)({},C),{},{show:!!b,showFormatter:typeof b=="function"?b:void 0,strategy:C.strategy||function(T){return T.length}})},[V,l])}},36901:function(zn,Pt,u){"use strict";u.r(Pt),u.d(Pt,{BaseInput:function(){return y},default:function(){return Q}});var i=u(33885),U=u(54476),O=u(20068),fe=u(76190),Z=u(92310),g=u.n(Z),H=u(59301),V=u(30292),l=H.forwardRef(function(P,A){var ce,Ee,pe,ze=P.inputElement,Je=P.children,Pe=P.prefixCls,Ze=P.prefix,le=P.suffix,N=P.addonBefore,S=P.addonAfter,q=P.className,te=P.style,se=P.disabled,w=P.readOnly,I=P.focused,de=P.triggerFocus,De=P.allowClear,dt=P.value,It=P.handleReset,Te=P.hidden,rt=P.classes,ht=P.classNames,St=P.dataAttrs,Me=P.styles,Xt=P.components,tt=P.onClear,un=Je!=null?Je:ze,vt=(Xt==null?void 0:Xt.affixWrapper)||"span",bt=(Xt==null?void 0:Xt.groupWrapper)||"span",Ve=(Xt==null?void 0:Xt.wrapper)||"span",Le=(Xt==null?void 0:Xt.groupAddon)||"span",oe=(0,H.useRef)(null),nt=function(Vt){var Zt;(Zt=oe.current)!==null&&Zt!==void 0&&Zt.contains(Vt.target)&&(de==null||de())},Ue=(0,V.X3)(P),K=(0,H.cloneElement)(un,{value:dt,className:g()((ce=un.props)===null||ce===void 0?void 0:ce.className,!Ue&&(ht==null?void 0:ht.variant))||null}),D=(0,H.useRef)(null);if(H.useImperativeHandle(A,function(){return{nativeElement:D.current||oe.current}}),Ue){var Se=null;if(De){var Ae=!se&&!w&&dt,Ce="".concat(Pe,"-clear-icon"),ke=(0,fe.Z)(De)==="object"&&De!==null&&De!==void 0&&De.clearIcon?De.clearIcon:"\u2716";Se=H.createElement("button",{type:"button",tabIndex:-1,onClick:function(Vt){It==null||It(Vt),tt==null||tt()},onMouseDown:function(Vt){return Vt.preventDefault()},className:g()(Ce,(0,O.Z)((0,O.Z)({},"".concat(Ce,"-hidden"),!Ae),"".concat(Ce,"-has-suffix"),!!le))},ke)}var Xe="".concat(Pe,"-affix-wrapper"),yt=g()(Xe,(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},"".concat(Pe,"-disabled"),se),"".concat(Xe,"-disabled"),se),"".concat(Xe,"-focused"),I),"".concat(Xe,"-readonly"),w),"".concat(Xe,"-input-with-clear-btn"),le&&De&&dt),rt==null?void 0:rt.affixWrapper,ht==null?void 0:ht.affixWrapper,ht==null?void 0:ht.variant),he=(le||De)&&H.createElement("span",{className:g()("".concat(Pe,"-suffix"),ht==null?void 0:ht.suffix),style:Me==null?void 0:Me.suffix},Se,le);K=H.createElement(vt,(0,U.Z)({className:yt,style:Me==null?void 0:Me.affixWrapper,onClick:nt},St==null?void 0:St.affixWrapper,{ref:oe}),Ze&&H.createElement("span",{className:g()("".concat(Pe,"-prefix"),ht==null?void 0:ht.prefix),style:Me==null?void 0:Me.prefix},Ze),K,he)}if((0,V.He)(P)){var me="".concat(Pe,"-group"),Lt="".concat(me,"-addon"),Ct="".concat(me,"-wrapper"),Nt=g()("".concat(Pe,"-wrapper"),me,rt==null?void 0:rt.wrapper,ht==null?void 0:ht.wrapper),kt=g()(Ct,(0,O.Z)({},"".concat(Ct,"-disabled"),se),rt==null?void 0:rt.group,ht==null?void 0:ht.groupWrapper);K=H.createElement(bt,{className:kt,ref:D},H.createElement(Ve,{className:Nt},N&&H.createElement(Le,{className:Lt},N),K,S&&H.createElement(Le,{className:Lt},S)))}return H.cloneElement(K,{className:g()((Ee=K.props)===null||Ee===void 0?void 0:Ee.className,q)||null,style:(0,i.Z)((0,i.Z)({},(pe=K.props)===null||pe===void 0?void 0:pe.style),te),hidden:Te})}),y=l,M=u(94480),b=u(42978),C=u(75931),T=u(18929),$=u(2738),W=u(66003),X=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],G=(0,H.forwardRef)(function(P,A){var ce=P.autoComplete,Ee=P.onChange,pe=P.onFocus,ze=P.onBlur,Je=P.onPressEnter,Pe=P.onKeyDown,Ze=P.onKeyUp,le=P.prefixCls,N=le===void 0?"rc-input":le,S=P.disabled,q=P.htmlSize,te=P.className,se=P.maxLength,w=P.suffix,I=P.showCount,de=P.count,De=P.type,dt=De===void 0?"text":De,It=P.classes,Te=P.classNames,rt=P.styles,ht=P.onCompositionStart,St=P.onCompositionEnd,Me=(0,C.Z)(P,X),Xt=(0,H.useState)(!1),tt=(0,b.Z)(Xt,2),un=tt[0],vt=tt[1],bt=(0,H.useRef)(!1),Ve=(0,H.useRef)(!1),Le=(0,H.useRef)(null),oe=(0,H.useRef)(null),nt=function(Ft){Le.current&&(0,V.nH)(Le.current,Ft)},Ue=(0,T.Z)(P.defaultValue,{value:P.value}),K=(0,b.Z)(Ue,2),D=K[0],Se=K[1],Ae=D==null?"":String(D),Ce=(0,H.useState)(null),ke=(0,b.Z)(Ce,2),Xe=ke[0],yt=ke[1],he=(0,W.Z)(de,I),me=he.max||se,Lt=he.strategy(Ae),Ct=!!me&&Lt>me;(0,H.useImperativeHandle)(A,function(){var Y;return{focus:nt,blur:function(){var Ke;(Ke=Le.current)===null||Ke===void 0||Ke.blur()},setSelectionRange:function(Ke,st,_t){var xe;(xe=Le.current)===null||xe===void 0||xe.setSelectionRange(Ke,st,_t)},select:function(){var Ke;(Ke=Le.current)===null||Ke===void 0||Ke.select()},input:Le.current,nativeElement:((Y=oe.current)===null||Y===void 0?void 0:Y.nativeElement)||Le.current}}),(0,H.useEffect)(function(){Ve.current&&(Ve.current=!1),vt(function(Y){return Y&&S?!1:Y})},[S]);var Nt=function(Ft,Ke,st){var _t=Ke;if(!bt.current&&he.exceedFormatter&&he.max&&he.strategy(Ke)>he.max){if(_t=he.exceedFormatter(Ke,{max:he.max}),Ke!==_t){var xe,_e;yt([((xe=Le.current)===null||xe===void 0?void 0:xe.selectionStart)||0,((_e=Le.current)===null||_e===void 0?void 0:_e.selectionEnd)||0])}}else if(st.source==="compositionEnd")return;Se(_t),Le.current&&(0,V.rJ)(Le.current,Ft,Ee,_t)};(0,H.useEffect)(function(){if(Xe){var Y;(Y=Le.current)===null||Y===void 0||Y.setSelectionRange.apply(Y,(0,M.Z)(Xe))}},[Xe]);var kt=function(Ft){Nt(Ft,Ft.target.value,{source:"change"})},pt=function(Ft){bt.current=!1,Nt(Ft,Ft.currentTarget.value,{source:"compositionEnd"}),St==null||St(Ft)},Vt=function(Ft){Je&&Ft.key==="Enter"&&!Ve.current&&(Ve.current=!0,Je(Ft)),Pe==null||Pe(Ft)},Zt=function(Ft){Ft.key==="Enter"&&(Ve.current=!1),Ze==null||Ze(Ft)},Re=function(Ft){vt(!0),pe==null||pe(Ft)},gt=function(Ft){Ve.current&&(Ve.current=!1),vt(!1),ze==null||ze(Ft)},E=function(Ft){Se(""),nt(),Le.current&&(0,V.rJ)(Le.current,Ft,Ee)},R=Ct&&"".concat(N,"-out-of-range"),at=function(){var Ft=(0,$.Z)(P,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return H.createElement("input",(0,U.Z)({autoComplete:ce},Ft,{onChange:kt,onFocus:Re,onBlur:gt,onKeyDown:Vt,onKeyUp:Zt,className:g()(N,(0,O.Z)({},"".concat(N,"-disabled"),S),Te==null?void 0:Te.input),style:rt==null?void 0:rt.input,ref:Le,size:q,type:dt,onCompositionStart:function(st){bt.current=!0,ht==null||ht(st)},onCompositionEnd:pt}))},ae=function(){var Ft=Number(me)>0;if(w||he.show){var Ke=he.showFormatter?he.showFormatter({value:Ae,count:Lt,maxLength:me}):"".concat(Lt).concat(Ft?" / ".concat(me):"");return H.createElement(H.Fragment,null,he.show&&H.createElement("span",{className:g()("".concat(N,"-show-count-suffix"),(0,O.Z)({},"".concat(N,"-show-count-has-suffix"),!!w),Te==null?void 0:Te.count),style:(0,i.Z)({},rt==null?void 0:rt.count)},Ke),w)}return null};return H.createElement(y,(0,U.Z)({},Me,{prefixCls:N,className:g()(te,R),handleReset:E,value:Ae,focused:un,triggerFocus:nt,suffix:ae(),disabled:S,classes:It,classNames:Te,styles:rt}),at())}),L=G,Q=L},30292:function(zn,Pt,u){"use strict";u.d(Pt,{He:function(){return i},X3:function(){return U},nH:function(){return Z},rJ:function(){return fe}});function i(g){return!!(g.addonBefore||g.addonAfter)}function U(g){return!!(g.prefix||g.suffix||g.allowClear)}function O(g,H,V){var l=H.cloneNode(!0),y=Object.create(g,{target:{value:l},currentTarget:{value:l}});return l.value=V,typeof H.selectionStart=="number"&&typeof H.selectionEnd=="number"&&(l.selectionStart=H.selectionStart,l.selectionEnd=H.selectionEnd),l.setSelectionRange=function(){H.setSelectionRange.apply(H,arguments)},y}function fe(g,H,V,l){if(V){var y=H;if(H.type==="click"){y=O(H,g,""),V(y);return}if(g.type!=="file"&&l!==void 0){y=O(H,g,l),V(y);return}V(y)}}function Z(g,H){if(g){g.focus(H);var V=H||{},l=V.cursor;if(l){var y=g.value.length;switch(l){case"start":g.setSelectionRange(0,0);break;case"end":g.setSelectionRange(y,y);break;default:g.setSelectionRange(0,y)}}}}},28321:function(zn,Pt,u){"use strict";u.d(Pt,{iz:function(){return Ne},ck:function(){return _t},BW:function(){return Fe},sN:function(){return _t},Wd:function(){return ve},ZP:function(){return Jt},Xl:function(){return Je}});var i=u(54476),U=u(20068),O=u(33885),fe=u(94480),Z=u(42978),g=u(75931),H=u(92310),V=u.n(H),l=u(83836),y=u(18929),M=u(13697),b=u(48736),C=u(59301),T=u(4676),$=C.createContext(null);function W(Ge,ft){return Ge===void 0?null:"".concat(Ge,"-").concat(ft)}function X(Ge){var ft=C.useContext($);return W(ft,Ge)}var G=u(80547),L=["children","locked"],Q=C.createContext(null);function P(Ge,ft){var Mt=(0,O.Z)({},Ge);return Object.keys(ft).forEach(function(Ye){var jt=ft[Ye];jt!==void 0&&(Mt[Ye]=jt)}),Mt}function A(Ge){var ft=Ge.children,Mt=Ge.locked,Ye=(0,g.Z)(Ge,L),jt=C.useContext(Q),rn=(0,G.Z)(function(){return P(jt,Ye)},[jt,Ye],function(an,nn){return!Mt&&(an[0]!==nn[0]||!(0,M.Z)(an[1],nn[1],!0))});return C.createElement(Q.Provider,{value:rn},ft)}var ce=[],Ee=C.createContext(null);function pe(){return C.useContext(Ee)}var ze=C.createContext(ce);function Je(Ge){var ft=C.useContext(ze);return C.useMemo(function(){return Ge!==void 0?[].concat((0,fe.Z)(ft),[Ge]):ft},[ft,Ge])}var Pe=C.createContext(null),Ze=C.createContext({}),le=Ze,N=u(29194);function S(Ge){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,N.Z)(Ge)){var Mt=Ge.nodeName.toLowerCase(),Ye=["input","select","textarea","button"].includes(Mt)||Ge.isContentEditable||Mt==="a"&&!!Ge.getAttribute("href"),jt=Ge.getAttribute("tabindex"),rn=Number(jt),an=null;return jt&&!Number.isNaN(rn)?an=rn:Ye&&an===null&&(an=0),Ye&&Ge.disabled&&(an=null),an!==null&&(an>=0||ft&&an<0)}return!1}function q(Ge){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=(0,fe.Z)(Ge.querySelectorAll("*")).filter(function(Ye){return S(Ye,ft)});return S(Ge,ft)&&Mt.unshift(Ge),Mt}var te=null;function se(){te=document.activeElement}function w(){te=null}function I(){if(te)try{te.focus()}catch(Ge){}}function de(Ge,ft){if(ft.keyCode===9){var Mt=q(Ge),Ye=Mt[ft.shiftKey?0:Mt.length-1],jt=Ye===document.activeElement||Ge===document.activeElement;if(jt){var rn=Mt[ft.shiftKey?Mt.length-1:0];rn.focus(),ft.preventDefault()}}}var De=u(10228),dt=u(16089),It=De.Z.LEFT,Te=De.Z.RIGHT,rt=De.Z.UP,ht=De.Z.DOWN,St=De.Z.ENTER,Me=De.Z.ESC,Xt=De.Z.HOME,tt=De.Z.END,un=[rt,ht,It,Te];function vt(Ge,ft,Mt,Ye){var jt,rn="prev",an="next",nn="children",mn="parent";if(Ge==="inline"&&Ye===St)return{inlineTrigger:!0};var bn=(0,U.Z)((0,U.Z)({},rt,rn),ht,an),In=(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},It,Mt?an:rn),Te,Mt?rn:an),ht,nn),St,nn),_n=(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},rt,rn),ht,an),St,nn),Me,mn),It,Mt?nn:mn),Te,Mt?mn:nn),Cn={inline:bn,horizontal:In,vertical:_n,inlineSub:bn,horizontalSub:_n,verticalSub:_n},Zn=(jt=Cn["".concat(Ge).concat(ft?"":"Sub")])===null||jt===void 0?void 0:jt[Ye];switch(Zn){case rn:return{offset:-1,sibling:!0};case an:return{offset:1,sibling:!0};case mn:return{offset:-1,sibling:!1};case nn:return{offset:1,sibling:!1};default:return null}}function bt(Ge){for(var ft=Ge;ft;){if(ft.getAttribute("data-menu-list"))return ft;ft=ft.parentElement}return null}function Ve(Ge,ft){for(var Mt=Ge||document.activeElement;Mt;){if(ft.has(Mt))return Mt;Mt=Mt.parentElement}return null}function Le(Ge,ft){var Mt=q(Ge,!0);return Mt.filter(function(Ye){return ft.has(Ye)})}function oe(Ge,ft,Mt){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ge)return null;var jt=Le(Ge,ft),rn=jt.length,an=jt.findIndex(function(nn){return Mt===nn});return Ye<0?an===-1?an=rn-1:an-=1:Ye>0&&(an+=1),an=(an+rn)%rn,jt[an]}var nt=function(ft,Mt){var Ye=new Set,jt=new Map,rn=new Map;return ft.forEach(function(an){var nn=document.querySelector("[data-menu-id='".concat(W(Mt,an),"']"));nn&&(Ye.add(nn),rn.set(nn,an),jt.set(an,nn))}),{elements:Ye,key2element:jt,element2key:rn}};function Ue(Ge,ft,Mt,Ye,jt,rn,an,nn,mn,bn){var In=C.useRef(),_n=C.useRef();_n.current=ft;var Cn=function(){dt.Z.cancel(In.current)};return C.useEffect(function(){return function(){Cn()}},[]),function(Zn){var Ln=Zn.which;if([].concat(un,[St,Me,Xt,tt]).includes(Ln)){var rr=rn(),Dn=nt(rr,Ye),jn=Dn,Xn=jn.elements,Wn=jn.key2element,Gn=jn.element2key,Jn=Wn.get(ft),Rn=Ve(Jn,Xn),Bn=Gn.get(Rn),ln=vt(Ge,an(Bn,!0).length===1,Mt,Ln);if(!ln&&Ln!==Xt&&Ln!==tt)return;(un.includes(Ln)||[Xt,tt].includes(Ln))&&Zn.preventDefault();var Tt=function(vn){if(vn){var hn=vn,xn=vn.querySelector("a");xn!=null&&xn.getAttribute("href")&&(hn=xn);var Qn=Gn.get(vn);nn(Qn),Cn(),In.current=(0,dt.Z)(function(){_n.current===Qn&&hn.focus()})}};if([Xt,tt].includes(Ln)||ln.sibling||!Rn){var Fn;!Rn||Ge==="inline"?Fn=jt.current:Fn=bt(Rn);var On,sr=Le(Fn,Xn);Ln===Xt?On=sr[0]:Ln===tt?On=sr[sr.length-1]:On=oe(Fn,Xn,Rn,ln.offset),Tt(On)}else if(ln.inlineTrigger)mn(Bn);else if(ln.offset>0)mn(Bn,!0),Cn(),In.current=(0,dt.Z)(function(){Dn=nt(rr,Ye);var Yn=Rn.getAttribute("aria-controls"),vn=document.getElementById(Yn),hn=oe(vn,Dn.elements);Tt(hn)},5);else if(ln.offset<0){var dr=an(Bn,!0),Ar=dr[dr.length-2],ur=Wn.get(Ar);mn(Ar,!1),Tt(ur)}}bn==null||bn(Zn)}}function K(Ge){Promise.resolve().then(Ge)}var D="__RC_UTIL_PATH_SPLIT__",Se=function(ft){return ft.join(D)},Ae=function(ft){return ft.split(D)},Ce="rc-menu-more";function ke(){var Ge=C.useState({}),ft=(0,Z.Z)(Ge,2),Mt=ft[1],Ye=(0,C.useRef)(new Map),jt=(0,C.useRef)(new Map),rn=C.useState([]),an=(0,Z.Z)(rn,2),nn=an[0],mn=an[1],bn=(0,C.useRef)(0),In=(0,C.useRef)(!1),_n=function(){In.current||Mt({})},Cn=(0,C.useCallback)(function(Wn,Gn){var Jn=Se(Gn);jt.current.set(Jn,Wn),Ye.current.set(Wn,Jn),bn.current+=1;var Rn=bn.current;K(function(){Rn===bn.current&&_n()})},[]),Zn=(0,C.useCallback)(function(Wn,Gn){var Jn=Se(Gn);jt.current.delete(Jn),Ye.current.delete(Wn)},[]),Ln=(0,C.useCallback)(function(Wn){mn(Wn)},[]),rr=(0,C.useCallback)(function(Wn,Gn){var Jn=Ye.current.get(Wn)||"",Rn=Ae(Jn);return Gn&&nn.includes(Rn[0])&&Rn.unshift(Ce),Rn},[nn]),Dn=(0,C.useCallback)(function(Wn,Gn){return Wn.filter(function(Jn){return Jn!==void 0}).some(function(Jn){var Rn=rr(Jn,!0);return Rn.includes(Gn)})},[rr]),jn=function(){var Gn=(0,fe.Z)(Ye.current.keys());return nn.length&&Gn.push(Ce),Gn},Xn=(0,C.useCallback)(function(Wn){var Gn="".concat(Ye.current.get(Wn)).concat(D),Jn=new Set;return(0,fe.Z)(jt.current.keys()).forEach(function(Rn){Rn.startsWith(Gn)&&Jn.add(jt.current.get(Rn))}),Jn},[]);return C.useEffect(function(){return function(){In.current=!0}},[]),{registerPath:Cn,unregisterPath:Zn,refreshOverflowKeys:Ln,isSubPathKey:Dn,getKeyPath:rr,getKeys:jn,getSubPathKeys:Xn}}function Xe(Ge){var ft=C.useRef(Ge);ft.current=Ge;var Mt=C.useCallback(function(){for(var Ye,jt=arguments.length,rn=new Array(jt),an=0;an<jt;an++)rn[an]=arguments[an];return(Ye=ft.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[ft].concat(rn))},[]);return Ge?Mt:void 0}var yt=Math.random().toFixed(5).toString().slice(2),he=0;function me(Ge){var ft=(0,y.Z)(Ge,{value:Ge}),Mt=(0,Z.Z)(ft,2),Ye=Mt[0],jt=Mt[1];return C.useEffect(function(){he+=1;var rn="".concat(yt,"-").concat(he);jt("rc-menu-uuid-".concat(rn))},[]),Ye}var Lt=u(67732),Ct=u(83652),Nt=u(42403),kt=u(158),pt=u(2738),Vt=u(8654);function Zt(Ge,ft,Mt,Ye){var jt=C.useContext(Q),rn=jt.activeKey,an=jt.onActive,nn=jt.onInactive,mn={active:rn===Ge};return ft||(mn.onMouseEnter=function(bn){Mt==null||Mt({key:Ge,domEvent:bn}),an(Ge)},mn.onMouseLeave=function(bn){Ye==null||Ye({key:Ge,domEvent:bn}),nn(Ge)}),mn}function Re(Ge){var ft=C.useContext(Q),Mt=ft.mode,Ye=ft.rtl,jt=ft.inlineIndent;if(Mt!=="inline")return null;var rn=Ge;return Ye?{paddingRight:rn*jt}:{paddingLeft:rn*jt}}function gt(Ge){var ft=Ge.icon,Mt=Ge.props,Ye=Ge.children,jt;return ft===null||ft===!1?null:(typeof ft=="function"?jt=C.createElement(ft,(0,O.Z)({},Mt)):typeof ft!="boolean"&&(jt=ft),jt||Ye||null)}var E=["item"];function R(Ge){var ft=Ge.item,Mt=(0,g.Z)(Ge,E);return Object.defineProperty(Mt,"item",{get:function(){return(0,b.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ft}}),Mt}var at=["title","attribute","elementRef"],ae=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Y=["active"],Ft=function(Ge){(0,Nt.Z)(Mt,Ge);var ft=(0,kt.Z)(Mt);function Mt(){return(0,Lt.Z)(this,Mt),ft.apply(this,arguments)}return(0,Ct.Z)(Mt,[{key:"render",value:function(){var jt=this.props,rn=jt.title,an=jt.attribute,nn=jt.elementRef,mn=(0,g.Z)(jt,at),bn=(0,pt.Z)(mn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,b.ZP)(!an,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),C.createElement(l.Z.Item,(0,i.Z)({},an,{title:typeof rn=="string"?rn:void 0},bn,{ref:nn}))}}]),Mt}(C.Component),Ke=C.forwardRef(function(Ge,ft){var Mt=Ge.style,Ye=Ge.className,jt=Ge.eventKey,rn=Ge.warnKey,an=Ge.disabled,nn=Ge.itemIcon,mn=Ge.children,bn=Ge.role,In=Ge.onMouseEnter,_n=Ge.onMouseLeave,Cn=Ge.onClick,Zn=Ge.onKeyDown,Ln=Ge.onFocus,rr=(0,g.Z)(Ge,ae),Dn=X(jt),jn=C.useContext(Q),Xn=jn.prefixCls,Wn=jn.onItemClick,Gn=jn.disabled,Jn=jn.overflowDisabled,Rn=jn.itemIcon,Bn=jn.selectedKeys,ln=jn.onActive,Tt=C.useContext(le),Fn=Tt._internalRenderMenuItem,On="".concat(Xn,"-item"),sr=C.useRef(),dr=C.useRef(),Ar=Gn||an,ur=(0,Vt.x1)(ft,dr),Yn=Je(jt),vn=function(Cr){return{key:jt,keyPath:(0,fe.Z)(Yn).reverse(),item:sr.current,domEvent:Cr}},hn=nn||Rn,xn=Zt(jt,Ar,In,_n),Qn=xn.active,tr=(0,g.Z)(xn,Y),yr=Bn.includes(jt),Er=Re(Yn.length),$n=function(Cr){if(!Ar){var zr=vn(Cr);Cn==null||Cn(R(zr)),Wn(zr)}},Sr=function(Cr){if(Zn==null||Zn(Cr),Cr.which===De.Z.ENTER){var zr=vn(Cr);Cn==null||Cn(R(zr)),Wn(zr)}},Dr=function(Cr){ln(jt),Ln==null||Ln(Cr)},$r={};Ge.role==="option"&&($r["aria-selected"]=yr);var Mr=C.createElement(Ft,(0,i.Z)({ref:sr,elementRef:ur,role:bn===null?"none":bn||"menuitem",tabIndex:an?null:-1,"data-menu-id":Jn&&Dn?null:Dn},(0,pt.Z)(rr,["extra"]),tr,$r,{component:"li","aria-disabled":an,style:(0,O.Z)((0,O.Z)({},Er),Mt),className:V()(On,(0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(On,"-active"),Qn),"".concat(On,"-selected"),yr),"".concat(On,"-disabled"),Ar),Ye),onClick:$n,onKeyDown:Sr,onFocus:Dr}),mn,C.createElement(gt,{props:(0,O.Z)((0,O.Z)({},Ge),{},{isSelected:yr}),icon:hn}));return Fn&&(Mr=Fn(Mr,Ge,{selected:yr})),Mr});function st(Ge,ft){var Mt=Ge.eventKey,Ye=pe(),jt=Je(Mt);return C.useEffect(function(){if(Ye)return Ye.registerPath(Mt,jt),function(){Ye.unregisterPath(Mt,jt)}},[jt]),Ye?null:C.createElement(Ke,(0,i.Z)({},Ge,{ref:ft}))}var _t=C.forwardRef(st),xe=["className","children"],_e=function(ft,Mt){var Ye=ft.className,jt=ft.children,rn=(0,g.Z)(ft,xe),an=C.useContext(Q),nn=an.prefixCls,mn=an.mode,bn=an.rtl;return C.createElement("ul",(0,i.Z)({className:V()(nn,bn&&"".concat(nn,"-rtl"),"".concat(nn,"-sub"),"".concat(nn,"-").concat(mn==="inline"?"inline":"vertical"),Ye),role:"menu"},rn,{"data-menu-list":!0,ref:Mt}),jt)},et=C.forwardRef(_e);et.displayName="SubMenuList";var Qe=et,z=u(11592);function Rt(Ge,ft){return(0,z.Z)(Ge).map(function(Mt,Ye){if(C.isValidElement(Mt)){var jt,rn,an=Mt.key,nn=(jt=(rn=Mt.props)===null||rn===void 0?void 0:rn.eventKey)!==null&&jt!==void 0?jt:an,mn=nn==null;mn&&(nn="tmp_key-".concat([].concat((0,fe.Z)(ft),[Ye]).join("-")));var bn={key:nn,eventKey:nn};return C.cloneElement(Mt,bn)}return Mt})}var ge=u(65030),Ht={adjustX:1,adjustY:1},cn={topLeft:{points:["bl","tl"],overflow:Ht},topRight:{points:["br","tr"],overflow:Ht},bottomLeft:{points:["tl","bl"],overflow:Ht},bottomRight:{points:["tr","br"],overflow:Ht},leftTop:{points:["tr","tl"],overflow:Ht},leftBottom:{points:["br","bl"],overflow:Ht},rightTop:{points:["tl","tr"],overflow:Ht},rightBottom:{points:["bl","br"],overflow:Ht}},mt={topLeft:{points:["bl","tl"],overflow:Ht},topRight:{points:["br","tr"],overflow:Ht},bottomLeft:{points:["tl","bl"],overflow:Ht},bottomRight:{points:["tr","br"],overflow:Ht},rightTop:{points:["tr","tl"],overflow:Ht},rightBottom:{points:["br","bl"],overflow:Ht},leftTop:{points:["tl","tr"],overflow:Ht},leftBottom:{points:["bl","br"],overflow:Ht}},ne=null;function we(Ge,ft,Mt){if(ft)return ft;if(Mt)return Mt[Ge]||Mt.other}var B={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function xt(Ge){var ft=Ge.prefixCls,Mt=Ge.visible,Ye=Ge.children,jt=Ge.popup,rn=Ge.popupStyle,an=Ge.popupClassName,nn=Ge.popupOffset,mn=Ge.disabled,bn=Ge.mode,In=Ge.onVisibleChange,_n=C.useContext(Q),Cn=_n.getPopupContainer,Zn=_n.rtl,Ln=_n.subMenuOpenDelay,rr=_n.subMenuCloseDelay,Dn=_n.builtinPlacements,jn=_n.triggerSubMenuAction,Xn=_n.forceSubMenuRender,Wn=_n.rootClassName,Gn=_n.motion,Jn=_n.defaultMotions,Rn=C.useState(!1),Bn=(0,Z.Z)(Rn,2),ln=Bn[0],Tt=Bn[1],Fn=Zn?(0,O.Z)((0,O.Z)({},mt),Dn):(0,O.Z)((0,O.Z)({},cn),Dn),On=B[bn],sr=we(bn,Gn,Jn),dr=C.useRef(sr);bn!=="inline"&&(dr.current=sr);var Ar=(0,O.Z)((0,O.Z)({},dr.current),{},{leavedClassName:"".concat(ft,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ur=C.useRef();return C.useEffect(function(){return ur.current=(0,dt.Z)(function(){Tt(Mt)}),function(){dt.Z.cancel(ur.current)}},[Mt]),C.createElement(ge.Z,{prefixCls:ft,popupClassName:V()("".concat(ft,"-popup"),(0,U.Z)({},"".concat(ft,"-rtl"),Zn),an,Wn),stretch:bn==="horizontal"?"minWidth":null,getPopupContainer:Cn,builtinPlacements:Fn,popupPlacement:On,popupVisible:ln,popup:jt,popupStyle:rn,popupAlign:nn&&{offset:nn},action:mn?[]:[jn],mouseEnterDelay:Ln,mouseLeaveDelay:rr,onPopupVisibleChange:In,forceRender:Xn,popupMotion:Ar,fresh:!0},Ye)}var lt=u(77900);function ot(Ge){var ft=Ge.id,Mt=Ge.open,Ye=Ge.keyPath,jt=Ge.children,rn="inline",an=C.useContext(Q),nn=an.prefixCls,mn=an.forceSubMenuRender,bn=an.motion,In=an.defaultMotions,_n=an.mode,Cn=C.useRef(!1);Cn.current=_n===rn;var Zn=C.useState(!Cn.current),Ln=(0,Z.Z)(Zn,2),rr=Ln[0],Dn=Ln[1],jn=Cn.current?Mt:!1;C.useEffect(function(){Cn.current&&Dn(!1)},[_n]);var Xn=(0,O.Z)({},we(rn,bn,In));Ye.length>1&&(Xn.motionAppear=!1);var Wn=Xn.onVisibleChanged;return Xn.onVisibleChanged=function(Gn){return!Cn.current&&!Gn&&Dn(!0),Wn==null?void 0:Wn(Gn)},rr?null:C.createElement(A,{mode:rn,locked:!Cn.current},C.createElement(lt.default,(0,i.Z)({visible:jn},Xn,{forceRender:mn,removeOnLeave:!1,leavedClassName:"".concat(nn,"-hidden")}),function(Gn){var Jn=Gn.className,Rn=Gn.style;return C.createElement(Qe,{id:ft,className:Jn,style:Rn},jt)}))}var $t=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Bt=["active"],zt=C.forwardRef(function(Ge,ft){var Mt=Ge.style,Ye=Ge.className,jt=Ge.title,rn=Ge.eventKey,an=Ge.warnKey,nn=Ge.disabled,mn=Ge.internalPopupClose,bn=Ge.children,In=Ge.itemIcon,_n=Ge.expandIcon,Cn=Ge.popupClassName,Zn=Ge.popupOffset,Ln=Ge.popupStyle,rr=Ge.onClick,Dn=Ge.onMouseEnter,jn=Ge.onMouseLeave,Xn=Ge.onTitleClick,Wn=Ge.onTitleMouseEnter,Gn=Ge.onTitleMouseLeave,Jn=(0,g.Z)(Ge,$t),Rn=X(rn),Bn=C.useContext(Q),ln=Bn.prefixCls,Tt=Bn.mode,Fn=Bn.openKeys,On=Bn.disabled,sr=Bn.overflowDisabled,dr=Bn.activeKey,Ar=Bn.selectedKeys,ur=Bn.itemIcon,Yn=Bn.expandIcon,vn=Bn.onItemClick,hn=Bn.onOpenChange,xn=Bn.onActive,Qn=C.useContext(le),tr=Qn._internalRenderSubMenuItem,yr=C.useContext(Pe),Er=yr.isSubPathKey,$n=Je(),Sr="".concat(ln,"-submenu"),Dr=On||nn,$r=C.useRef(),Mr=C.useRef(),Or=In!=null?In:ur,Cr=_n!=null?_n:Yn,zr=Fn.includes(rn),wr=!sr&&zr,Vr=Er(Ar,rn),Ir=Zt(rn,Dr,Wn,Gn),tn=Ir.active,Tn=(0,g.Z)(Ir,Bt),cr=C.useState(!1),or=(0,Z.Z)(cr,2),Br=or[0],ri=or[1],vi=function(Zi){Dr||ri(Zi)},_r=function(Zi){vi(!0),Dn==null||Dn({key:rn,domEvent:Zi})},mr=function(Zi){vi(!1),jn==null||jn({key:rn,domEvent:Zi})},bi=C.useMemo(function(){return tn||(Tt!=="inline"?Br||Er([dr],rn):!1)},[Tt,tn,dr,Br,rn,Er]),ar=Re($n.length),wi=function(Zi){Dr||(Xn==null||Xn({key:rn,domEvent:Zi}),Tt==="inline"&&hn(rn,!zr))},Yi=Xe(function(Ni){rr==null||rr(R(Ni)),vn(Ni)}),Wi=function(Zi){Tt!=="inline"&&hn(rn,Zi)},Mi=function(){xn(rn)},ki=Rn&&"".concat(Rn,"-popup"),Gr=C.useMemo(function(){return C.createElement(gt,{icon:Tt!=="horizontal"?Cr:void 0,props:(0,O.Z)((0,O.Z)({},Ge),{},{isOpen:wr,isSubMenu:!0})},C.createElement("i",{className:"".concat(Sr,"-arrow")}))},[Tt,Cr,Ge,wr,Sr]),Di=C.createElement("div",(0,i.Z)({role:"menuitem",style:ar,className:"".concat(Sr,"-title"),tabIndex:Dr?null:-1,ref:$r,title:typeof jt=="string"?jt:null,"data-menu-id":sr&&Rn?null:Rn,"aria-expanded":wr,"aria-haspopup":!0,"aria-controls":ki,"aria-disabled":Dr,onClick:wi,onFocus:Mi},Tn),jt,Gr),ra=C.useRef(Tt);if(Tt!=="inline"&&$n.length>1?ra.current="vertical":ra.current=Tt,!sr){var zi=ra.current;Di=C.createElement(xt,{mode:zi,prefixCls:Sr,visible:!mn&&wr&&Tt!=="inline",popupClassName:Cn,popupOffset:Zn,popupStyle:Ln,popup:C.createElement(A,{mode:zi==="horizontal"?"vertical":zi},C.createElement(Qe,{id:ki,ref:Mr},bn)),disabled:Dr,onVisibleChange:Wi},Di)}var hi=C.createElement(l.Z.Item,(0,i.Z)({ref:ft,role:"none"},Jn,{component:"li",style:Mt,className:V()(Sr,"".concat(Sr,"-").concat(Tt),Ye,(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(Sr,"-open"),wr),"".concat(Sr,"-active"),bi),"".concat(Sr,"-selected"),Vr),"".concat(Sr,"-disabled"),Dr)),onMouseEnter:_r,onMouseLeave:mr}),Di,!sr&&C.createElement(ot,{id:ki,open:wr,keyPath:$n},bn));return tr&&(hi=tr(hi,Ge,{selected:Vr,active:bi,open:wr,disabled:Dr})),C.createElement(A,{onItemClick:Yi,mode:Tt==="horizontal"?"vertical":Tt,itemIcon:Or,expandIcon:Cr},hi)}),re=C.forwardRef(function(Ge,ft){var Mt=Ge.eventKey,Ye=Ge.children,jt=Je(Mt),rn=Rt(Ye,jt),an=pe();C.useEffect(function(){if(an)return an.registerPath(Mt,jt),function(){an.unregisterPath(Mt,jt)}},[jt]);var nn;return an?nn=rn:nn=C.createElement(zt,(0,i.Z)({ref:ft},Ge),rn),C.createElement(ze.Provider,{value:jt},nn)}),ve=re,wt=u(76190);function Ne(Ge){var ft=Ge.className,Mt=Ge.style,Ye=C.useContext(Q),jt=Ye.prefixCls,rn=pe();return rn?null:C.createElement("li",{role:"separator",className:V()("".concat(jt,"-item-divider"),ft),style:Mt})}var Be=["className","title","eventKey","children"],ue=C.forwardRef(function(Ge,ft){var Mt=Ge.className,Ye=Ge.title,jt=Ge.eventKey,rn=Ge.children,an=(0,g.Z)(Ge,Be),nn=C.useContext(Q),mn=nn.prefixCls,bn="".concat(mn,"-item-group");return C.createElement("li",(0,i.Z)({ref:ft,role:"presentation"},an,{onClick:function(_n){return _n.stopPropagation()},className:V()(bn,Mt)}),C.createElement("div",{role:"presentation",className:"".concat(bn,"-title"),title:typeof Ye=="string"?Ye:void 0},Ye),C.createElement("ul",{role:"group",className:"".concat(bn,"-list")},rn))}),Ie=C.forwardRef(function(Ge,ft){var Mt=Ge.eventKey,Ye=Ge.children,jt=Je(Mt),rn=Rt(Ye,jt),an=pe();return an?rn:C.createElement(ue,(0,i.Z)({ref:ft},(0,pt.Z)(Ge,["warnKey"])),rn)}),Fe=Ie,$e=["label","children","key","type","extra"];function ut(Ge,ft,Mt){var Ye=ft.item,jt=ft.group,rn=ft.submenu,an=ft.divider;return(Ge||[]).map(function(nn,mn){if(nn&&(0,wt.Z)(nn)==="object"){var bn=nn,In=bn.label,_n=bn.children,Cn=bn.key,Zn=bn.type,Ln=bn.extra,rr=(0,g.Z)(bn,$e),Dn=Cn!=null?Cn:"tmp-".concat(mn);return _n||Zn==="group"?Zn==="group"?C.createElement(jt,(0,i.Z)({key:Dn},rr,{title:In}),ut(_n,ft,Mt)):C.createElement(rn,(0,i.Z)({key:Dn},rr,{title:In}),ut(_n,ft,Mt)):Zn==="divider"?C.createElement(an,(0,i.Z)({key:Dn},rr)):C.createElement(Ye,(0,i.Z)({key:Dn},rr,{extra:Ln}),In,(!!Ln||Ln===0)&&C.createElement("span",{className:"".concat(Mt,"-item-extra")},Ln))}return null}).filter(function(nn){return nn})}function Gt(Ge,ft,Mt,Ye,jt){var rn=Ge,an=(0,O.Z)({divider:Ne,item:_t,group:Fe,submenu:ve},Ye);return ft&&(rn=ut(ft,an,jt)),Rt(rn,Mt)}var sn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],je=[],ct=C.forwardRef(function(Ge,ft){var Mt,Ye=Ge,jt=Ye.prefixCls,rn=jt===void 0?"rc-menu":jt,an=Ye.rootClassName,nn=Ye.style,mn=Ye.className,bn=Ye.tabIndex,In=bn===void 0?0:bn,_n=Ye.items,Cn=Ye.children,Zn=Ye.direction,Ln=Ye.id,rr=Ye.mode,Dn=rr===void 0?"vertical":rr,jn=Ye.inlineCollapsed,Xn=Ye.disabled,Wn=Ye.disabledOverflow,Gn=Ye.subMenuOpenDelay,Jn=Gn===void 0?.1:Gn,Rn=Ye.subMenuCloseDelay,Bn=Rn===void 0?.1:Rn,ln=Ye.forceSubMenuRender,Tt=Ye.defaultOpenKeys,Fn=Ye.openKeys,On=Ye.activeKey,sr=Ye.defaultActiveFirst,dr=Ye.selectable,Ar=dr===void 0?!0:dr,ur=Ye.multiple,Yn=ur===void 0?!1:ur,vn=Ye.defaultSelectedKeys,hn=Ye.selectedKeys,xn=Ye.onSelect,Qn=Ye.onDeselect,tr=Ye.inlineIndent,yr=tr===void 0?24:tr,Er=Ye.motion,$n=Ye.defaultMotions,Sr=Ye.triggerSubMenuAction,Dr=Sr===void 0?"hover":Sr,$r=Ye.builtinPlacements,Mr=Ye.itemIcon,Or=Ye.expandIcon,Cr=Ye.overflowedIndicator,zr=Cr===void 0?"...":Cr,wr=Ye.overflowedIndicatorPopupClassName,Vr=Ye.getPopupContainer,Ir=Ye.onClick,tn=Ye.onOpenChange,Tn=Ye.onKeyDown,cr=Ye.openAnimation,or=Ye.openTransitionName,Br=Ye._internalRenderMenuItem,ri=Ye._internalRenderSubMenuItem,vi=Ye._internalComponents,_r=(0,g.Z)(Ye,sn),mr=C.useMemo(function(){return[Gt(Cn,_n,je,vi,rn),Gt(Cn,_n,je,{},rn)]},[Cn,_n,vi]),bi=(0,Z.Z)(mr,2),ar=bi[0],wi=bi[1],Yi=C.useState(!1),Wi=(0,Z.Z)(Yi,2),Mi=Wi[0],ki=Wi[1],Gr=C.useRef(),Di=me(Ln),ra=Zn==="rtl",zi=(0,y.Z)(Tt,{value:Fn,postState:function(Vi){return Vi||je}}),hi=(0,Z.Z)(zi,2),Ni=hi[0],Zi=hi[1],Fr=function(Vi){var aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ma(){Zi(Vi),tn==null||tn(Vi)}aa?(0,T.flushSync)(Ma):Ma()},ti=C.useState(Ni),vr=(0,Z.Z)(ti,2),br=vr[0],Pr=vr[1],Wr=C.useRef(!1),Ci=C.useMemo(function(){return(Dn==="inline"||Dn==="vertical")&&jn?["vertical",jn]:[Dn,!1]},[Dn,jn]),xr=(0,Z.Z)(Ci,2),Rr=xr[0],Nr=xr[1],Zr=Rr==="inline",ni=C.useState(Rr),ma=(0,Z.Z)(ni,2),Xi=ma[0],ua=ma[1],fi=C.useState(Nr),ii=(0,Z.Z)(fi,2),Ti=ii[0],Li=ii[1];C.useEffect(function(){ua(Rr),Li(Nr),Wr.current&&(Zr?Zi(br):Fr(je))},[Rr,Nr]);var ia=C.useState(0),pa=(0,Z.Z)(ia,2),Sa=pa[0],Da=pa[1],Wa=Sa>=ar.length-1||Xi!=="horizontal"||Wn;C.useEffect(function(){Zr&&Pr(Ni)},[Ni]),C.useEffect(function(){return Wr.current=!0,function(){Wr.current=!1}},[]);var Ta=ke(),vs=Ta.registerPath,Cs=Ta.unregisterPath,Ds=Ta.refreshOverflowKeys,$a=Ta.isSubPathKey,Rs=Ta.getKeyPath,za=Ta.getKeys,Fs=Ta.getSubPathKeys,$s=C.useMemo(function(){return{registerPath:vs,unregisterPath:Cs}},[vs,Cs]),Ws=C.useMemo(function(){return{isSubPathKey:$a}},[$a]);C.useEffect(function(){Ds(Wa?je:ar.slice(Sa+1).map(function(Ui){return Ui.key}))},[Sa,Wa]);var Vs=(0,y.Z)(On||sr&&((Mt=ar[0])===null||Mt===void 0?void 0:Mt.key),{value:On}),ds=(0,Z.Z)(Vs,2),Ya=ds[0],Ai=ds[1],mi=Xe(function(Ui){Ai(Ui)}),Aa=Xe(function(){Ai(void 0)});(0,C.useImperativeHandle)(ft,function(){return{list:Gr.current,focus:function(Vi){var aa,Ma=za(),Ua=nt(Ma,Di),ws=Ua.elements,Ls=Ua.key2element,ys=Ua.element2key,Ys=Le(Gr.current,ws),Os=Ya!=null?Ya:Ys[0]?ys.get(Ys[0]):(aa=ar.find(function(zs){return!zs.props.disabled}))===null||aa===void 0?void 0:aa.key,Ps=Ls.get(Os);if(Os&&Ps){var Xs;Ps==null||(Xs=Ps.focus)===null||Xs===void 0||Xs.call(Ps,Vi)}}}});var Oa=(0,y.Z)(vn||[],{value:hn,postState:function(Vi){return Array.isArray(Vi)?Vi:Vi==null?je:[Vi]}}),ji=(0,Z.Z)(Oa,2),Ea=ji[0],Za=ji[1],ja=function(Vi){if(Ar){var aa=Vi.key,Ma=Ea.includes(aa),Ua;Yn?Ma?Ua=Ea.filter(function(Ls){return Ls!==aa}):Ua=[].concat((0,fe.Z)(Ea),[aa]):Ua=[aa],Za(Ua);var ws=(0,O.Z)((0,O.Z)({},Vi),{},{selectedKeys:Ua});Ma?Qn==null||Qn(ws):xn==null||xn(ws)}!Yn&&Ni.length&&Xi!=="inline"&&Fr(je)},rs=Xe(function(Ui){Ir==null||Ir(R(Ui)),ja(Ui)}),Pa=Xe(function(Ui,Vi){var aa=Ni.filter(function(Ua){return Ua!==Ui});if(Vi)aa.push(Ui);else if(Xi!=="inline"){var Ma=Fs(Ui);aa=aa.filter(function(Ua){return!Ma.has(Ua)})}(0,M.Z)(Ni,aa,!0)||Fr(aa,!0)}),ss=function(Vi,aa){var Ma=aa!=null?aa:!Ni.includes(Vi);Pa(Vi,Ma)},Xa=Ue(Xi,Ya,ra,Di,Gr,za,Rs,Ai,ss,Tn);C.useEffect(function(){ki(!0)},[]);var fs=C.useMemo(function(){return{_internalRenderMenuItem:Br,_internalRenderSubMenuItem:ri}},[Br,ri]),hs=Xi!=="horizontal"||Wn?ar:ar.map(function(Ui,Vi){return C.createElement(A,{key:Ui.key,overflowDisabled:Vi>Sa},Ui)}),Gs=C.createElement(l.Z,(0,i.Z)({id:Ln,ref:Gr,prefixCls:"".concat(rn,"-overflow"),component:"ul",itemComponent:_t,className:V()(rn,"".concat(rn,"-root"),"".concat(rn,"-").concat(Xi),mn,(0,U.Z)((0,U.Z)({},"".concat(rn,"-inline-collapsed"),Ti),"".concat(rn,"-rtl"),ra),an),dir:Zn,style:nn,role:"menu",tabIndex:In,data:hs,renderRawItem:function(Vi){return Vi},renderRawRest:function(Vi){var aa=Vi.length,Ma=aa?ar.slice(-aa):null;return C.createElement(ve,{eventKey:Ce,title:zr,disabled:Wa,internalPopupClose:aa===0,popupClassName:wr},Ma)},maxCount:Xi!=="horizontal"||Wn?l.Z.INVALIDATE:l.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vi){Da(Vi)},onKeyDown:Xa},_r));return C.createElement(le.Provider,{value:fs},C.createElement($.Provider,{value:Di},C.createElement(A,{prefixCls:rn,rootClassName:an,mode:Xi,openKeys:Ni,rtl:ra,disabled:Xn,motion:Mi?Er:null,defaultMotions:Mi?$n:null,activeKey:Ya,onActive:mi,onInactive:Aa,selectedKeys:Ea,inlineIndent:yr,subMenuOpenDelay:Jn,subMenuCloseDelay:Bn,forceSubMenuRender:ln,builtinPlacements:$r,triggerSubMenuAction:Dr,getPopupContainer:Vr,itemIcon:Mr,expandIcon:Or,onItemClick:rs,onOpenChange:Pa},C.createElement(Pe.Provider,{value:Ws},Gs),C.createElement("div",{style:{display:"none"},"aria-hidden":!0},C.createElement(Ee.Provider,{value:$s},wi)))))}),Dt=ct,qt=Dt;qt.Item=_t,qt.SubMenu=ve,qt.ItemGroup=Fe,qt.Divider=Ne;var Jt=qt},83836:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return se}});var i=u(54476),U=u(33885),O=u(42978),fe=u(75931),Z=u(59301),g=u(92310),H=u.n(g),V=u(29301),l=u(34280),y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],M=void 0;function b(w,I){var de=w.prefixCls,De=w.invalidate,dt=w.item,It=w.renderItem,Te=w.responsive,rt=w.responsiveDisabled,ht=w.registerSize,St=w.itemKey,Me=w.className,Xt=w.style,tt=w.children,un=w.display,vt=w.order,bt=w.component,Ve=bt===void 0?"div":bt,Le=(0,fe.Z)(w,y),oe=Te&&!un;function nt(Ae){ht(St,Ae)}Z.useEffect(function(){return function(){nt(null)}},[]);var Ue=It&&dt!==M?It(dt,{index:vt}):tt,K;De||(K={opacity:oe?0:1,height:oe?0:M,overflowY:oe?"hidden":M,order:Te?vt:M,pointerEvents:oe?"none":M,position:oe?"absolute":M});var D={};oe&&(D["aria-hidden"]=!0);var Se=Z.createElement(Ve,(0,i.Z)({className:H()(!De&&de,Me),style:(0,U.Z)((0,U.Z)({},K),Xt)},D,Le,{ref:I}),Ue);return Te&&(Se=Z.createElement(V.Z,{onResize:function(Ce){var ke=Ce.offsetWidth;nt(ke)},disabled:rt},Se)),Se}var C=Z.forwardRef(b);C.displayName="Item";var T=C,$=u(6089),W=u(4676),X=u(16089);function G(w){if(typeof MessageChannel=="undefined")(0,X.Z)(w);else{var I=new MessageChannel;I.port1.onmessage=function(){return w()},I.port2.postMessage(void 0)}}function L(){var w=Z.useRef(null),I=function(De){w.current||(w.current=[],G(function(){(0,W.unstable_batchedUpdates)(function(){w.current.forEach(function(dt){dt()}),w.current=null})})),w.current.push(De)};return I}function Q(w,I){var de=Z.useState(I),De=(0,O.Z)(de,2),dt=De[0],It=De[1],Te=(0,$.Z)(function(rt){w(function(){It(rt)})});return[dt,Te]}var P=Z.createContext(null),A=["component"],ce=["className"],Ee=["className"],pe=function(I,de){var De=Z.useContext(P);if(!De){var dt=I.component,It=dt===void 0?"div":dt,Te=(0,fe.Z)(I,A);return Z.createElement(It,(0,i.Z)({},Te,{ref:de}))}var rt=De.className,ht=(0,fe.Z)(De,ce),St=I.className,Me=(0,fe.Z)(I,Ee);return Z.createElement(P.Provider,{value:null},Z.createElement(T,(0,i.Z)({ref:de,className:H()(rt,St)},ht,Me)))},ze=Z.forwardRef(pe);ze.displayName="RawItem";var Je=ze,Pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Ze="responsive",le="invalidate";function N(w){return"+ ".concat(w.length," ...")}function S(w,I){var de=w.prefixCls,De=de===void 0?"rc-overflow":de,dt=w.data,It=dt===void 0?[]:dt,Te=w.renderItem,rt=w.renderRawItem,ht=w.itemKey,St=w.itemWidth,Me=St===void 0?10:St,Xt=w.ssr,tt=w.style,un=w.className,vt=w.maxCount,bt=w.renderRest,Ve=w.renderRawRest,Le=w.prefix,oe=w.suffix,nt=w.component,Ue=nt===void 0?"div":nt,K=w.itemComponent,D=w.onVisibleChange,Se=(0,fe.Z)(w,Pe),Ae=Xt==="full",Ce=L(),ke=Q(Ce,null),Xe=(0,O.Z)(ke,2),yt=Xe[0],he=Xe[1],me=yt||0,Lt=Q(Ce,new Map),Ct=(0,O.Z)(Lt,2),Nt=Ct[0],kt=Ct[1],pt=Q(Ce,0),Vt=(0,O.Z)(pt,2),Zt=Vt[0],Re=Vt[1],gt=Q(Ce,0),E=(0,O.Z)(gt,2),R=E[0],at=E[1],ae=Q(Ce,0),Y=(0,O.Z)(ae,2),Ft=Y[0],Ke=Y[1],st=Q(Ce,0),_t=(0,O.Z)(st,2),xe=_t[0],_e=_t[1],et=(0,Z.useState)(null),Qe=(0,O.Z)(et,2),z=Qe[0],Rt=Qe[1],ge=(0,Z.useState)(null),Ht=(0,O.Z)(ge,2),cn=Ht[0],mt=Ht[1],ne=Z.useMemo(function(){return cn===null&&Ae?Number.MAX_SAFE_INTEGER:cn||0},[cn,yt]),we=(0,Z.useState)(!1),B=(0,O.Z)(we,2),xt=B[0],lt=B[1],ot="".concat(De,"-item"),$t=Math.max(Zt,R),Bt=vt===Ze,zt=It.length&&Bt,re=vt===le,ve=zt||typeof vt=="number"&&It.length>vt,wt=(0,Z.useMemo)(function(){var jt=It;return zt?yt===null&&Ae?jt=It:jt=It.slice(0,Math.min(It.length,me/Me)):typeof vt=="number"&&(jt=It.slice(0,vt)),jt},[It,Me,yt,vt,zt]),Ne=(0,Z.useMemo)(function(){return zt?It.slice(ne+1):It.slice(wt.length)},[It,wt,zt,ne]),Be=(0,Z.useCallback)(function(jt,rn){var an;return typeof ht=="function"?ht(jt):(an=ht&&(jt==null?void 0:jt[ht]))!==null&&an!==void 0?an:rn},[ht]),ue=(0,Z.useCallback)(Te||function(jt){return jt},[Te]);function Ie(jt,rn,an){cn===jt&&(rn===void 0||rn===z)||(mt(jt),an||(lt(jt<It.length-1),D==null||D(jt)),rn!==void 0&&Rt(rn))}function Fe(jt,rn){he(rn.clientWidth)}function $e(jt,rn){kt(function(an){var nn=new Map(an);return rn===null?nn.delete(jt):nn.set(jt,rn),nn})}function ut(jt,rn){at(rn),Re(R)}function Gt(jt,rn){Ke(rn)}function sn(jt,rn){_e(rn)}function je(jt){return Nt.get(Be(wt[jt],jt))}(0,l.Z)(function(){if(me&&typeof $t=="number"&&wt){var jt=Ft+xe,rn=wt.length,an=rn-1;if(!rn){Ie(0,null);return}for(var nn=0;nn<rn;nn+=1){var mn=je(nn);if(Ae&&(mn=mn||0),mn===void 0){Ie(nn-1,void 0,!0);break}if(jt+=mn,an===0&&jt<=me||nn===an-1&&jt+je(an)<=me){Ie(an,null);break}else if(jt+$t>me){Ie(nn-1,jt-mn-xe+R);break}}oe&&je(0)+xe>me&&Rt(null)}},[me,Nt,R,Ft,xe,Be,wt]);var ct=xt&&!!Ne.length,Dt={};z!==null&&zt&&(Dt={position:"absolute",left:z,top:0});var qt={prefixCls:ot,responsive:zt,component:K,invalidate:re},Jt=rt?function(jt,rn){var an=Be(jt,rn);return Z.createElement(P.Provider,{key:an,value:(0,U.Z)((0,U.Z)({},qt),{},{order:rn,item:jt,itemKey:an,registerSize:$e,display:rn<=ne})},rt(jt,rn))}:function(jt,rn){var an=Be(jt,rn);return Z.createElement(T,(0,i.Z)({},qt,{order:rn,key:an,item:jt,renderItem:ue,itemKey:an,registerSize:$e,display:rn<=ne}))},Ge={order:ct?ne:Number.MAX_SAFE_INTEGER,className:"".concat(ot,"-rest"),registerSize:ut,display:ct},ft=bt||N,Mt=Ve?Z.createElement(P.Provider,{value:(0,U.Z)((0,U.Z)({},qt),Ge)},Ve(Ne)):Z.createElement(T,(0,i.Z)({},qt,Ge),typeof ft=="function"?ft(Ne):ft),Ye=Z.createElement(Ue,(0,i.Z)({className:H()(!re&&De,un),style:tt,ref:I},Se),Le&&Z.createElement(T,(0,i.Z)({},qt,{responsive:Bt,responsiveDisabled:!zt,order:-1,className:"".concat(ot,"-prefix"),registerSize:Gt,display:!0}),Le),wt.map(Jt),ve?Mt:null,oe&&Z.createElement(T,(0,i.Z)({},qt,{responsive:Bt,responsiveDisabled:!zt,order:ne,className:"".concat(ot,"-suffix"),registerSize:sn,display:!0,style:Dt}),oe));return Bt?Z.createElement(V.Z,{onResize:Fe,disabled:!zt},Ye):Ye}var q=Z.forwardRef(S);q.displayName="Overflow",q.Item=Je,q.RESPONSIVE=Ze,q.INVALIDATE=le;var te=q,se=te},29301:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return le}});var i=u(54476),U=u(59301),O=u(11592),fe=u(48736),Z=u(33885),g=u(76190),H=u(76846),V=u(8654),l=U.createContext(null);function y(N){var S=N.children,q=N.onBatchResize,te=U.useRef(0),se=U.useRef([]),w=U.useContext(l),I=U.useCallback(function(de,De,dt){te.current+=1;var It=te.current;se.current.push({size:de,element:De,data:dt}),Promise.resolve().then(function(){It===te.current&&(q==null||q(se.current),se.current=[])}),w==null||w(de,De,dt)},[q,w]);return U.createElement(l.Provider,{value:I},S)}var M=u(76374),b=new Map;function C(N){N.forEach(function(S){var q,te=S.target;(q=b.get(te))===null||q===void 0||q.forEach(function(se){return se(te)})})}var T=new M.Z(C),$=null,W=null;function X(N,S){b.has(N)||(b.set(N,new Set),T.observe(N)),b.get(N).add(S)}function G(N,S){b.has(N)&&(b.get(N).delete(S),b.get(N).size||(T.unobserve(N),b.delete(N)))}var L=u(67732),Q=u(83652),P=u(42403),A=u(158),ce=function(N){(0,P.Z)(q,N);var S=(0,A.Z)(q);function q(){return(0,L.Z)(this,q),S.apply(this,arguments)}return(0,Q.Z)(q,[{key:"render",value:function(){return this.props.children}}]),q}(U.Component);function Ee(N,S){var q=N.children,te=N.disabled,se=U.useRef(null),w=U.useRef(null),I=U.useContext(l),de=typeof q=="function",De=de?q(se):q,dt=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),It=!de&&U.isValidElement(De)&&(0,V.Yr)(De),Te=It?(0,V.C4)(De):null,rt=(0,V.x1)(Te,se),ht=function(){var tt;return(0,H.ZP)(se.current)||(se.current&&(0,g.Z)(se.current)==="object"?(0,H.ZP)((tt=se.current)===null||tt===void 0?void 0:tt.nativeElement):null)||(0,H.ZP)(w.current)};U.useImperativeHandle(S,function(){return ht()});var St=U.useRef(N);St.current=N;var Me=U.useCallback(function(Xt){var tt=St.current,un=tt.onResize,vt=tt.data,bt=Xt.getBoundingClientRect(),Ve=bt.width,Le=bt.height,oe=Xt.offsetWidth,nt=Xt.offsetHeight,Ue=Math.floor(Ve),K=Math.floor(Le);if(dt.current.width!==Ue||dt.current.height!==K||dt.current.offsetWidth!==oe||dt.current.offsetHeight!==nt){var D={width:Ue,height:K,offsetWidth:oe,offsetHeight:nt};dt.current=D;var Se=oe===Math.round(Ve)?Ve:oe,Ae=nt===Math.round(Le)?Le:nt,Ce=(0,Z.Z)((0,Z.Z)({},D),{},{offsetWidth:Se,offsetHeight:Ae});I==null||I(Ce,Xt,vt),un&&Promise.resolve().then(function(){un(Ce,Xt)})}},[]);return U.useEffect(function(){var Xt=ht();return Xt&&!te&&X(Xt,Me),function(){return G(Xt,Me)}},[se.current,te]),U.createElement(ce,{ref:w},It?U.cloneElement(De,{ref:rt}):De)}var pe=U.forwardRef(Ee),ze=pe,Je="rc-observer-key";function Pe(N,S){var q=N.children,te=typeof q=="function"?[q]:(0,O.Z)(q);return te.map(function(se,w){var I=(se==null?void 0:se.key)||"".concat(Je,"-").concat(w);return U.createElement(ze,(0,i.Z)({},N,{key:I,ref:w===0?S:void 0}),se)})}var Ze=U.forwardRef(Pe);Ze.Collection=y;var le=Ze},6551:function(zn,Pt,u){"use strict";u.d(Pt,{ZP:function(){return H}});var i=u(42978),U=u(59301),O=u(47273),fe=0,Z=(0,O.Z)();function g(){var V;return Z?(V=fe,fe+=1):V="TEST_OR_SSR",V}function H(V){var l=U.useState(),y=(0,i.Z)(l,2),M=y[0],b=y[1];return U.useEffect(function(){b("rc_select_".concat(g()))},[]),V||M}},37463:function(zn,Pt,u){"use strict";u.d(Pt,{Ac:function(){return pt},Xo:function(){return Zt},Wx:function(){return gt},ZP:function(){return wt},lk:function(){return Q}});var i=u(54476),U=u(94480),O=u(20068),fe=u(33885),Z=u(42978),g=u(75931),H=u(76190),V=u(18929),l=u(48736),y=u(59301),M=u(92310),b=u.n(M),C=u(34280),T=u(49658),$=u(8654),W=function(Be){var ue=Be.className,Ie=Be.customizeIcon,Fe=Be.customizeIconProps,$e=Be.children,ut=Be.onMouseDown,Gt=Be.onClick,sn=typeof Ie=="function"?Ie(Fe):Ie;return y.createElement("span",{className:ue,onMouseDown:function(ct){ct.preventDefault(),ut==null||ut(ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Gt,"aria-hidden":!0},sn!==void 0?sn:y.createElement("span",{className:b()(ue.split(/\s+/).map(function(je){return"".concat(je,"-icon")}))},$e))},X=W,G=function(Be,ue,Ie,Fe,$e){var ut=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Gt=arguments.length>6?arguments[6]:void 0,sn=arguments.length>7?arguments[7]:void 0,je=y.useMemo(function(){if((0,H.Z)(Fe)==="object")return Fe.clearIcon;if($e)return $e},[Fe,$e]),ct=y.useMemo(function(){return!!(!ut&&Fe&&(Ie.length||Gt)&&!(sn==="combobox"&&Gt===""))},[Fe,ut,Ie.length,Gt,sn]);return{allowClear:ct,clearIcon:y.createElement(X,{className:"".concat(Be,"-clear"),onMouseDown:ue,customizeIcon:je},"\xD7")}},L=y.createContext(null);function Q(){return y.useContext(L)}function P(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Be=y.useState(!1),ue=(0,Z.Z)(Be,2),Ie=ue[0],Fe=ue[1],$e=y.useRef(null),ut=function(){window.clearTimeout($e.current)};y.useEffect(function(){return ut},[]);var Gt=function(je,ct){ut(),$e.current=window.setTimeout(function(){Fe(je),ct&&ct()},Ne)};return[Ie,Gt,ut]}function A(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Be=y.useRef(null),ue=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(ue.current)}},[]);function Ie(Fe){(Fe||Be.current===null)&&(Be.current=Fe),window.clearTimeout(ue.current),ue.current=window.setTimeout(function(){Be.current=null},Ne)}return[function(){return Be.current},Ie]}function ce(Ne,Be,ue,Ie){var Fe=y.useRef(null);Fe.current={open:Be,triggerOpen:ue,customizedTrigger:Ie},y.useEffect(function(){function $e(ut){var Gt;if(!((Gt=Fe.current)!==null&&Gt!==void 0&&Gt.customizedTrigger)){var sn=ut.target;sn.shadowRoot&&ut.composed&&(sn=ut.composedPath()[0]||sn),Fe.current.open&&Ne().filter(function(je){return je}).every(function(je){return!je.contains(sn)&&je!==sn})&&Fe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",$e),function(){return window.removeEventListener("mousedown",$e)}},[])}var Ee=u(10228);function pe(Ne){return Ne&&![Ee.Z.ESC,Ee.Z.SHIFT,Ee.Z.BACKSPACE,Ee.Z.TAB,Ee.Z.WIN_KEY,Ee.Z.ALT,Ee.Z.META,Ee.Z.WIN_KEY_RIGHT,Ee.Z.CTRL,Ee.Z.SEMICOLON,Ee.Z.EQUALS,Ee.Z.CAPS_LOCK,Ee.Z.CONTEXT_MENU,Ee.Z.F1,Ee.Z.F2,Ee.Z.F3,Ee.Z.F4,Ee.Z.F5,Ee.Z.F6,Ee.Z.F7,Ee.Z.F8,Ee.Z.F9,Ee.Z.F10,Ee.Z.F11,Ee.Z.F12].includes(Ne)}var ze=u(26112),Je=u(83836);function Pe(Ne,Be,ue){var Ie=(0,fe.Z)((0,fe.Z)({},Ne),ue?Be:{});return Object.keys(Be).forEach(function(Fe){var $e=Be[Fe];typeof $e=="function"&&(Ie[Fe]=function(){for(var ut,Gt=arguments.length,sn=new Array(Gt),je=0;je<Gt;je++)sn[je]=arguments[je];return $e.apply(void 0,sn),(ut=Ne[Fe])===null||ut===void 0?void 0:ut.call.apply(ut,[Ne].concat(sn))})}),Ie}var Ze=Pe,le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],N=function(Be,ue){var Ie=Be.prefixCls,Fe=Be.id,$e=Be.inputElement,ut=Be.autoFocus,Gt=Be.autoComplete,sn=Be.editable,je=Be.activeDescendantId,ct=Be.value,Dt=Be.open,qt=Be.attrs,Jt=(0,g.Z)(Be,le),Ge=$e||y.createElement("input",null),ft=Ge,Mt=ft.ref,Ye=ft.props;return(0,l.Kp)(!("maxLength"in Ge.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ge=y.cloneElement(Ge,(0,fe.Z)((0,fe.Z)((0,fe.Z)({type:"search"},Ze(Jt,Ye,!0)),{},{id:Fe,ref:(0,$.sQ)(ue,Mt),autoComplete:Gt||"off",autoFocus:ut,className:b()("".concat(Ie,"-selection-search-input"),Ye==null?void 0:Ye.className),role:"combobox","aria-expanded":Dt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Fe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Fe,"_list"),"aria-activedescendant":Dt?je:void 0},qt),{},{value:sn?ct:"",readOnly:!sn,unselectable:sn?null:"on",style:(0,fe.Z)((0,fe.Z)({},Ye.style),{},{opacity:sn?null:0})})),Ge},S=y.forwardRef(N),q=S;function te(Ne){return Array.isArray(Ne)?Ne:Ne!==void 0?[Ne]:[]}var se=typeof window!="undefined"&&window.document&&window.document.documentElement,w=se;function I(Ne){return Ne!=null}function de(Ne){return!Ne&&Ne!==0}function De(Ne){return["string","number"].includes((0,H.Z)(Ne))}function dt(Ne){var Be=void 0;return Ne&&(De(Ne.title)?Be=Ne.title.toString():De(Ne.label)&&(Be=Ne.label.toString())),Be}function It(Ne,Be){w?y.useLayoutEffect(Ne,Be):y.useEffect(Ne,Be)}function Te(Ne){var Be;return(Be=Ne.key)!==null&&Be!==void 0?Be:Ne.value}var rt=function(Be){Be.preventDefault(),Be.stopPropagation()},ht=function(Be){var ue=Be.id,Ie=Be.prefixCls,Fe=Be.values,$e=Be.open,ut=Be.searchValue,Gt=Be.autoClearSearchValue,sn=Be.inputRef,je=Be.placeholder,ct=Be.disabled,Dt=Be.mode,qt=Be.showSearch,Jt=Be.autoFocus,Ge=Be.autoComplete,ft=Be.activeDescendantId,Mt=Be.tabIndex,Ye=Be.removeIcon,jt=Be.maxTagCount,rn=Be.maxTagTextLength,an=Be.maxTagPlaceholder,nn=an===void 0?function(Qn){return"+ ".concat(Qn.length," ...")}:an,mn=Be.tagRender,bn=Be.onToggleOpen,In=Be.onRemove,_n=Be.onInputChange,Cn=Be.onInputPaste,Zn=Be.onInputKeyDown,Ln=Be.onInputMouseDown,rr=Be.onInputCompositionStart,Dn=Be.onInputCompositionEnd,jn=Be.onInputBlur,Xn=y.useRef(null),Wn=(0,y.useState)(0),Gn=(0,Z.Z)(Wn,2),Jn=Gn[0],Rn=Gn[1],Bn=(0,y.useState)(!1),ln=(0,Z.Z)(Bn,2),Tt=ln[0],Fn=ln[1],On="".concat(Ie,"-selection"),sr=$e||Dt==="multiple"&&Gt===!1||Dt==="tags"?ut:"",dr=Dt==="tags"||Dt==="multiple"&&Gt===!1||qt&&($e||Tt);It(function(){Rn(Xn.current.scrollWidth)},[sr]);var Ar=function(tr,yr,Er,$n,Sr){return y.createElement("span",{title:dt(tr),className:b()("".concat(On,"-item"),(0,O.Z)({},"".concat(On,"-item-disabled"),Er))},y.createElement("span",{className:"".concat(On,"-item-content")},yr),$n&&y.createElement(X,{className:"".concat(On,"-item-remove"),onMouseDown:rt,onClick:Sr,customizeIcon:Ye},"\xD7"))},ur=function(tr,yr,Er,$n,Sr,Dr){var $r=function(Or){rt(Or),bn(!$e)};return y.createElement("span",{onMouseDown:$r},mn({label:yr,value:tr,disabled:Er,closable:$n,onClose:Sr,isMaxTag:!!Dr}))},Yn=function(tr){var yr=tr.disabled,Er=tr.label,$n=tr.value,Sr=!ct&&!yr,Dr=Er;if(typeof rn=="number"&&(typeof Er=="string"||typeof Er=="number")){var $r=String(Dr);$r.length>rn&&(Dr="".concat($r.slice(0,rn),"..."))}var Mr=function(Cr){Cr&&Cr.stopPropagation(),In(tr)};return typeof mn=="function"?ur($n,Dr,yr,Sr,Mr):Ar(tr,Dr,yr,Sr,Mr)},vn=function(tr){if(!Fe.length)return null;var yr=typeof nn=="function"?nn(tr):nn;return typeof mn=="function"?ur(void 0,yr,!1,!1,void 0,!0):Ar({title:yr},yr,!1)},hn=y.createElement("div",{className:"".concat(On,"-search"),style:{width:Jn},onFocus:function(){Fn(!0)},onBlur:function(){Fn(!1)}},y.createElement(q,{ref:sn,open:$e,prefixCls:Ie,id:ue,inputElement:null,disabled:ct,autoFocus:Jt,autoComplete:Ge,editable:dr,activeDescendantId:ft,value:sr,onKeyDown:Zn,onMouseDown:Ln,onChange:_n,onPaste:Cn,onCompositionStart:rr,onCompositionEnd:Dn,onBlur:jn,tabIndex:Mt,attrs:(0,ze.Z)(Be,!0)}),y.createElement("span",{ref:Xn,className:"".concat(On,"-search-mirror"),"aria-hidden":!0},sr,"\xA0")),xn=y.createElement(Je.Z,{prefixCls:"".concat(On,"-overflow"),data:Fe,renderItem:Yn,renderRest:vn,suffix:hn,itemKey:Te,maxCount:jt});return y.createElement("span",{className:"".concat(On,"-wrap")},xn,!Fe.length&&!sr&&y.createElement("span",{className:"".concat(On,"-placeholder")},je))},St=ht,Me=function(Be){var ue=Be.inputElement,Ie=Be.prefixCls,Fe=Be.id,$e=Be.inputRef,ut=Be.disabled,Gt=Be.autoFocus,sn=Be.autoComplete,je=Be.activeDescendantId,ct=Be.mode,Dt=Be.open,qt=Be.values,Jt=Be.placeholder,Ge=Be.tabIndex,ft=Be.showSearch,Mt=Be.searchValue,Ye=Be.activeValue,jt=Be.maxLength,rn=Be.onInputKeyDown,an=Be.onInputMouseDown,nn=Be.onInputChange,mn=Be.onInputPaste,bn=Be.onInputCompositionStart,In=Be.onInputCompositionEnd,_n=Be.onInputBlur,Cn=Be.title,Zn=y.useState(!1),Ln=(0,Z.Z)(Zn,2),rr=Ln[0],Dn=Ln[1],jn=ct==="combobox",Xn=jn||ft,Wn=qt[0],Gn=Mt||"";jn&&Ye&&!rr&&(Gn=Ye),y.useEffect(function(){jn&&Dn(!1)},[jn,Ye]);var Jn=ct!=="combobox"&&!Dt&&!ft?!1:!!Gn,Rn=Cn===void 0?dt(Wn):Cn,Bn=y.useMemo(function(){return Wn?null:y.createElement("span",{className:"".concat(Ie,"-selection-placeholder"),style:Jn?{visibility:"hidden"}:void 0},Jt)},[Wn,Jn,Jt,Ie]);return y.createElement("span",{className:"".concat(Ie,"-selection-wrap")},y.createElement("span",{className:"".concat(Ie,"-selection-search")},y.createElement(q,{ref:$e,prefixCls:Ie,id:Fe,open:Dt,inputElement:ue,disabled:ut,autoFocus:Gt,autoComplete:sn,editable:Xn,activeDescendantId:je,value:Gn,onKeyDown:rn,onMouseDown:an,onChange:function(Tt){Dn(!0),nn(Tt)},onPaste:mn,onCompositionStart:bn,onCompositionEnd:In,onBlur:_n,tabIndex:Ge,attrs:(0,ze.Z)(Be,!0),maxLength:jn?jt:void 0})),!jn&&Wn?y.createElement("span",{className:"".concat(Ie,"-selection-item"),title:Rn,style:Jn?{visibility:"hidden"}:void 0},Wn.label):null,Bn)},Xt=Me,tt=function(Be,ue){var Ie=(0,y.useRef)(null),Fe=(0,y.useRef)(!1),$e=Be.prefixCls,ut=Be.open,Gt=Be.mode,sn=Be.showSearch,je=Be.tokenWithEnter,ct=Be.disabled,Dt=Be.prefix,qt=Be.autoClearSearchValue,Jt=Be.onSearch,Ge=Be.onSearchSubmit,ft=Be.onToggleOpen,Mt=Be.onInputKeyDown,Ye=Be.onInputBlur,jt=Be.domRef;y.useImperativeHandle(ue,function(){return{focus:function(Rn){Ie.current.focus(Rn)},blur:function(){Ie.current.blur()}}});var rn=A(0),an=(0,Z.Z)(rn,2),nn=an[0],mn=an[1],bn=function(Rn){var Bn=Rn.which,ln=Ie.current instanceof HTMLTextAreaElement;!ln&&ut&&(Bn===Ee.Z.UP||Bn===Ee.Z.DOWN)&&Rn.preventDefault(),Mt&&Mt(Rn),Bn===Ee.Z.ENTER&&Gt==="tags"&&!Fe.current&&!ut&&(Ge==null||Ge(Rn.target.value)),!(ln&&!ut&&~[Ee.Z.UP,Ee.Z.DOWN,Ee.Z.LEFT,Ee.Z.RIGHT].indexOf(Bn))&&pe(Bn)&&ft(!0)},In=function(){mn(!0)},_n=(0,y.useRef)(null),Cn=function(Rn){Jt(Rn,!0,Fe.current)!==!1&&ft(!0)},Zn=function(){Fe.current=!0},Ln=function(Rn){Fe.current=!1,Gt!=="combobox"&&Cn(Rn.target.value)},rr=function(Rn){var Bn=Rn.target.value;if(je&&_n.current&&/[\r\n]/.test(_n.current)){var ln=_n.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Bn=Bn.replace(ln,_n.current)}_n.current=null,Cn(Bn)},Dn=function(Rn){var Bn=Rn.clipboardData,ln=Bn==null?void 0:Bn.getData("text");_n.current=ln||""},jn=function(Rn){var Bn=Rn.target;if(Bn!==Ie.current){var ln=document.body.style.msTouchAction!==void 0;ln?setTimeout(function(){Ie.current.focus()}):Ie.current.focus()}},Xn=function(Rn){var Bn=nn();Rn.target!==Ie.current&&!Bn&&!(Gt==="combobox"&&ct)&&Rn.preventDefault(),(Gt!=="combobox"&&(!sn||!Bn)||!ut)&&(ut&&qt!==!1&&Jt("",!0,!1),ft())},Wn={inputRef:Ie,onInputKeyDown:bn,onInputMouseDown:In,onInputChange:rr,onInputPaste:Dn,onInputCompositionStart:Zn,onInputCompositionEnd:Ln,onInputBlur:Ye},Gn=Gt==="multiple"||Gt==="tags"?y.createElement(St,(0,i.Z)({},Be,Wn)):y.createElement(Xt,(0,i.Z)({},Be,Wn));return y.createElement("div",{ref:jt,className:"".concat($e,"-selector"),onClick:jn,onMouseDown:Xn},Dt&&y.createElement("div",{className:"".concat($e,"-prefix")},Dt),Gn)},un=y.forwardRef(tt),vt=un,bt=u(65030),Ve=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Le=function(Be){var ue=Be===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ue,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ue,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ue,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ue,adjustY:1},htmlRegion:"scroll"}}},oe=function(Be,ue){var Ie=Be.prefixCls,Fe=Be.disabled,$e=Be.visible,ut=Be.children,Gt=Be.popupElement,sn=Be.animation,je=Be.transitionName,ct=Be.dropdownStyle,Dt=Be.dropdownClassName,qt=Be.direction,Jt=qt===void 0?"ltr":qt,Ge=Be.placement,ft=Be.builtinPlacements,Mt=Be.dropdownMatchSelectWidth,Ye=Be.dropdownRender,jt=Be.dropdownAlign,rn=Be.getPopupContainer,an=Be.empty,nn=Be.getTriggerDOMNode,mn=Be.onPopupVisibleChange,bn=Be.onPopupMouseEnter,In=(0,g.Z)(Be,Ve),_n="".concat(Ie,"-dropdown"),Cn=Gt;Ye&&(Cn=Ye(Gt));var Zn=y.useMemo(function(){return ft||Le(Mt)},[ft,Mt]),Ln=sn?"".concat(_n,"-").concat(sn):je,rr=typeof Mt=="number",Dn=y.useMemo(function(){return rr?null:Mt===!1?"minWidth":"width"},[Mt,rr]),jn=ct;rr&&(jn=(0,fe.Z)((0,fe.Z)({},jn),{},{width:Mt}));var Xn=y.useRef(null);return y.useImperativeHandle(ue,function(){return{getPopupElement:function(){var Gn;return(Gn=Xn.current)===null||Gn===void 0?void 0:Gn.popupElement}}}),y.createElement(bt.Z,(0,i.Z)({},In,{showAction:mn?["click"]:[],hideAction:mn?["click"]:[],popupPlacement:Ge||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zn,prefixCls:_n,popupTransitionName:Ln,popup:y.createElement("div",{onMouseEnter:bn},Cn),ref:Xn,stretch:Dn,popupAlign:jt,popupVisible:$e,getPopupContainer:rn,popupClassName:b()(Dt,(0,O.Z)({},"".concat(_n,"-empty"),an)),popupStyle:jn,getTriggerDOMNode:nn,onPopupVisibleChange:mn}),ut)},nt=y.forwardRef(oe),Ue=nt,K=u(66712);function D(Ne,Be){var ue=Ne.key,Ie;return"value"in Ne&&(Ie=Ne.value),ue!=null?ue:Ie!==void 0?Ie:"rc-index-key-".concat(Be)}function Se(Ne){return typeof Ne!="undefined"&&!Number.isNaN(Ne)}function Ae(Ne,Be){var ue=Ne||{},Ie=ue.label,Fe=ue.value,$e=ue.options,ut=ue.groupLabel,Gt=Ie||(Be?"children":"label");return{label:Gt,value:Fe||"value",options:$e||"options",groupLabel:ut||Gt}}function Ce(Ne){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=Be.fieldNames,Ie=Be.childrenAsData,Fe=[],$e=Ae(ue,!1),ut=$e.label,Gt=$e.value,sn=$e.options,je=$e.groupLabel;function ct(Dt,qt){Array.isArray(Dt)&&Dt.forEach(function(Jt){if(qt||!(sn in Jt)){var Ge=Jt[Gt];Fe.push({key:D(Jt,Fe.length),groupOption:qt,data:Jt,label:Jt[ut],value:Ge})}else{var ft=Jt[je];ft===void 0&&Ie&&(ft=Jt.label),Fe.push({key:D(Jt,Fe.length),group:!0,data:Jt,label:ft}),ct(Jt[sn],!0)}})}return ct(Ne,!1),Fe}function ke(Ne){var Be=(0,fe.Z)({},Ne);return"props"in Be||Object.defineProperty(Be,"props",{get:function(){return(0,l.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Be}}),Be}var Xe=function(Be,ue,Ie){if(!ue||!ue.length)return null;var Fe=!1,$e=function Gt(sn,je){var ct=(0,K.Z)(je),Dt=ct[0],qt=ct.slice(1);if(!Dt)return[sn];var Jt=sn.split(Dt);return Fe=Fe||Jt.length>1,Jt.reduce(function(Ge,ft){return[].concat((0,U.Z)(Ge),(0,U.Z)(Gt(ft,qt)))},[]).filter(Boolean)},ut=$e(Be,ue);return Fe?typeof Ie!="undefined"?ut.slice(0,Ie):ut:null},yt=y.createContext(null),he=yt;function me(Ne){var Be=Ne.visible,ue=Ne.values;if(!Be)return null;var Ie=50;return y.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ue.slice(0,Ie).map(function(Fe){var $e=Fe.label,ut=Fe.value;return["number","string"].includes((0,H.Z)($e))?$e:ut}).join(", ")),ue.length>Ie?", ...":null)}var Lt=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Nt=function(Be){return Be==="tags"||Be==="multiple"},kt=y.forwardRef(function(Ne,Be){var ue,Ie=Ne.id,Fe=Ne.prefixCls,$e=Ne.className,ut=Ne.showSearch,Gt=Ne.tagRender,sn=Ne.direction,je=Ne.omitDomProps,ct=Ne.displayValues,Dt=Ne.onDisplayValuesChange,qt=Ne.emptyOptions,Jt=Ne.notFoundContent,Ge=Jt===void 0?"Not Found":Jt,ft=Ne.onClear,Mt=Ne.mode,Ye=Ne.disabled,jt=Ne.loading,rn=Ne.getInputElement,an=Ne.getRawInputElement,nn=Ne.open,mn=Ne.defaultOpen,bn=Ne.onDropdownVisibleChange,In=Ne.activeValue,_n=Ne.onActiveValueChange,Cn=Ne.activeDescendantId,Zn=Ne.searchValue,Ln=Ne.autoClearSearchValue,rr=Ne.onSearch,Dn=Ne.onSearchSplit,jn=Ne.tokenSeparators,Xn=Ne.allowClear,Wn=Ne.prefix,Gn=Ne.suffixIcon,Jn=Ne.clearIcon,Rn=Ne.OptionList,Bn=Ne.animation,ln=Ne.transitionName,Tt=Ne.dropdownStyle,Fn=Ne.dropdownClassName,On=Ne.dropdownMatchSelectWidth,sr=Ne.dropdownRender,dr=Ne.dropdownAlign,Ar=Ne.placement,ur=Ne.builtinPlacements,Yn=Ne.getPopupContainer,vn=Ne.showAction,hn=vn===void 0?[]:vn,xn=Ne.onFocus,Qn=Ne.onBlur,tr=Ne.onKeyUp,yr=Ne.onKeyDown,Er=Ne.onMouseDown,$n=(0,g.Z)(Ne,Lt),Sr=Nt(Mt),Dr=(ut!==void 0?ut:Sr)||Mt==="combobox",$r=(0,fe.Z)({},$n);Ct.forEach(function(Ai){delete $r[Ai]}),je==null||je.forEach(function(Ai){delete $r[Ai]});var Mr=y.useState(!1),Or=(0,Z.Z)(Mr,2),Cr=Or[0],zr=Or[1];y.useEffect(function(){zr((0,T.Z)())},[]);var wr=y.useRef(null),Vr=y.useRef(null),Ir=y.useRef(null),tn=y.useRef(null),Tn=y.useRef(null),cr=y.useRef(!1),or=P(),Br=(0,Z.Z)(or,3),ri=Br[0],vi=Br[1],_r=Br[2];y.useImperativeHandle(Be,function(){var Ai,mi;return{focus:(Ai=tn.current)===null||Ai===void 0?void 0:Ai.focus,blur:(mi=tn.current)===null||mi===void 0?void 0:mi.blur,scrollTo:function(Oa){var ji;return(ji=Tn.current)===null||ji===void 0?void 0:ji.scrollTo(Oa)},nativeElement:wr.current||Vr.current}});var mr=y.useMemo(function(){var Ai;if(Mt!=="combobox")return Zn;var mi=(Ai=ct[0])===null||Ai===void 0?void 0:Ai.value;return typeof mi=="string"||typeof mi=="number"?String(mi):""},[Zn,Mt,ct]),bi=Mt==="combobox"&&typeof rn=="function"&&rn()||null,ar=typeof an=="function"&&an(),wi=(0,$.x1)(Vr,ar==null||(ue=ar.props)===null||ue===void 0?void 0:ue.ref),Yi=y.useState(!1),Wi=(0,Z.Z)(Yi,2),Mi=Wi[0],ki=Wi[1];(0,C.Z)(function(){ki(!0)},[]);var Gr=(0,V.Z)(!1,{defaultValue:mn,value:nn}),Di=(0,Z.Z)(Gr,2),ra=Di[0],zi=Di[1],hi=Mi?ra:!1,Ni=!Ge&&qt;(Ye||Ni&&hi&&Mt==="combobox")&&(hi=!1);var Zi=Ni?!1:hi,Fr=y.useCallback(function(Ai){var mi=Ai!==void 0?Ai:!hi;Ye||(zi(mi),hi!==mi&&(bn==null||bn(mi)))},[Ye,hi,zi,bn]),ti=y.useMemo(function(){return(jn||[]).some(function(Ai){return[`
`,`\r
`].includes(Ai)})},[jn]),vr=y.useContext(he)||{},br=vr.maxCount,Pr=vr.rawValues,Wr=function(mi,Aa,Oa){if(!(Sr&&Se(br)&&(Pr==null?void 0:Pr.size)>=br)){var ji=!0,Ea=mi;_n==null||_n(null);var Za=Xe(mi,jn,Se(br)?br-Pr.size:void 0),ja=Oa?null:Za;return Mt!=="combobox"&&ja&&(Ea="",Dn==null||Dn(ja),Fr(!1),ji=!1),rr&&mr!==Ea&&rr(Ea,{source:Aa?"typing":"effect"}),ji}},Ci=function(mi){!mi||!mi.trim()||rr(mi,{source:"submit"})};y.useEffect(function(){!hi&&!Sr&&Mt!=="combobox"&&Wr("",!1,!1)},[hi]),y.useEffect(function(){ra&&Ye&&zi(!1),Ye&&!cr.current&&vi(!1)},[Ye]);var xr=A(),Rr=(0,Z.Z)(xr,2),Nr=Rr[0],Zr=Rr[1],ni=y.useRef(!1),ma=function(mi){var Aa=Nr(),Oa=mi.key,ji=Oa==="Enter";if(ji&&(Mt!=="combobox"&&mi.preventDefault(),hi||Fr(!0)),Zr(!!mr),Oa==="Backspace"&&!Aa&&Sr&&!mr&&ct.length){for(var Ea=(0,U.Z)(ct),Za=null,ja=Ea.length-1;ja>=0;ja-=1){var rs=Ea[ja];if(!rs.disabled){Ea.splice(ja,1),Za=rs;break}}Za&&Dt(Ea,{type:"remove",values:[Za]})}for(var Pa=arguments.length,ss=new Array(Pa>1?Pa-1:0),Xa=1;Xa<Pa;Xa++)ss[Xa-1]=arguments[Xa];if(hi&&(!ji||!ni.current)){var fs;ji&&(ni.current=!0),(fs=Tn.current)===null||fs===void 0||fs.onKeyDown.apply(fs,[mi].concat(ss))}yr==null||yr.apply(void 0,[mi].concat(ss))},Xi=function(mi){for(var Aa=arguments.length,Oa=new Array(Aa>1?Aa-1:0),ji=1;ji<Aa;ji++)Oa[ji-1]=arguments[ji];if(hi){var Ea;(Ea=Tn.current)===null||Ea===void 0||Ea.onKeyUp.apply(Ea,[mi].concat(Oa))}mi.key==="Enter"&&(ni.current=!1),tr==null||tr.apply(void 0,[mi].concat(Oa))},ua=function(mi){var Aa=ct.filter(function(Oa){return Oa!==mi});Dt(Aa,{type:"remove",values:[mi]})},fi=function(){ni.current=!1},ii=y.useRef(!1),Ti=function(){vi(!0),Ye||(xn&&!ii.current&&xn.apply(void 0,arguments),hn.includes("focus")&&Fr(!0)),ii.current=!0},Li=function(){cr.current=!0,vi(!1,function(){ii.current=!1,cr.current=!1,Fr(!1)}),!Ye&&(mr&&(Mt==="tags"?rr(mr,{source:"submit"}):Mt==="multiple"&&rr("",{source:"blur"})),Qn&&Qn.apply(void 0,arguments))},ia=[];y.useEffect(function(){return function(){ia.forEach(function(Ai){return clearTimeout(Ai)}),ia.splice(0,ia.length)}},[]);var pa=function(mi){var Aa,Oa=mi.target,ji=(Aa=Ir.current)===null||Aa===void 0?void 0:Aa.getPopupElement();if(ji&&ji.contains(Oa)){var Ea=setTimeout(function(){var Pa=ia.indexOf(Ea);if(Pa!==-1&&ia.splice(Pa,1),_r(),!Cr&&!ji.contains(document.activeElement)){var ss;(ss=tn.current)===null||ss===void 0||ss.focus()}});ia.push(Ea)}for(var Za=arguments.length,ja=new Array(Za>1?Za-1:0),rs=1;rs<Za;rs++)ja[rs-1]=arguments[rs];Er==null||Er.apply(void 0,[mi].concat(ja))},Sa=y.useState({}),Da=(0,Z.Z)(Sa,2),Wa=Da[1];function Ta(){Wa({})}var vs;ar&&(vs=function(mi){Fr(mi)}),ce(function(){var Ai;return[wr.current,(Ai=Ir.current)===null||Ai===void 0?void 0:Ai.getPopupElement()]},Zi,Fr,!!ar);var Cs=y.useMemo(function(){return(0,fe.Z)((0,fe.Z)({},Ne),{},{notFoundContent:Ge,open:hi,triggerOpen:Zi,id:Ie,showSearch:Dr,multiple:Sr,toggleOpen:Fr})},[Ne,Ge,Zi,hi,Ie,Dr,Sr,Fr]),Ds=!!Gn||jt,$a;Ds&&($a=y.createElement(X,{className:b()("".concat(Fe,"-arrow"),(0,O.Z)({},"".concat(Fe,"-arrow-loading"),jt)),customizeIcon:Gn,customizeIconProps:{loading:jt,searchValue:mr,open:hi,focused:ri,showSearch:Dr}}));var Rs=function(){var mi;ft==null||ft(),(mi=tn.current)===null||mi===void 0||mi.focus(),Dt([],{type:"clear",values:ct}),Wr("",!1,!1)},za=G(Fe,Rs,ct,Xn,Jn,Ye,mr,Mt),Fs=za.allowClear,$s=za.clearIcon,Ws=y.createElement(Rn,{ref:Tn}),Vs=b()(Fe,$e,(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},"".concat(Fe,"-focused"),ri),"".concat(Fe,"-multiple"),Sr),"".concat(Fe,"-single"),!Sr),"".concat(Fe,"-allow-clear"),Xn),"".concat(Fe,"-show-arrow"),Ds),"".concat(Fe,"-disabled"),Ye),"".concat(Fe,"-loading"),jt),"".concat(Fe,"-open"),hi),"".concat(Fe,"-customize-input"),bi),"".concat(Fe,"-show-search"),Dr)),ds=y.createElement(Ue,{ref:Ir,disabled:Ye,prefixCls:Fe,visible:Zi,popupElement:Ws,animation:Bn,transitionName:ln,dropdownStyle:Tt,dropdownClassName:Fn,direction:sn,dropdownMatchSelectWidth:On,dropdownRender:sr,dropdownAlign:dr,placement:Ar,builtinPlacements:ur,getPopupContainer:Yn,empty:qt,getTriggerDOMNode:function(mi){return Vr.current||mi},onPopupVisibleChange:vs,onPopupMouseEnter:Ta},ar?y.cloneElement(ar,{ref:wi}):y.createElement(vt,(0,i.Z)({},Ne,{domRef:Vr,prefixCls:Fe,inputElement:bi,ref:tn,id:Ie,prefix:Wn,showSearch:Dr,autoClearSearchValue:Ln,mode:Mt,activeDescendantId:Cn,tagRender:Gt,values:ct,open:hi,onToggleOpen:Fr,activeValue:In,searchValue:mr,onSearch:Wr,onSearchSubmit:Ci,onRemove:ua,tokenWithEnter:ti,onInputBlur:fi}))),Ya;return ar?Ya=ds:Ya=y.createElement("div",(0,i.Z)({className:Vs},$r,{ref:wr,onMouseDown:pa,onKeyDown:ma,onKeyUp:Xi,onFocus:Ti,onBlur:Li}),y.createElement(me,{visible:ri&&!hi,values:ct}),ds,$a,Fs&&$s),y.createElement(L.Provider,{value:Cs},Ya)}),pt=kt,Vt=function(){return null};Vt.isSelectOptGroup=!0;var Zt=Vt,Re=function(){return null};Re.isSelectOption=!0;var gt=Re,E=u(80547),R=u(2738),at=u(48911);function ae(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Y=["disabled","title","children","style","className"];function Ft(Ne){return typeof Ne=="string"||typeof Ne=="number"}var Ke=function(Be,ue){var Ie=Q(),Fe=Ie.prefixCls,$e=Ie.id,ut=Ie.open,Gt=Ie.multiple,sn=Ie.mode,je=Ie.searchValue,ct=Ie.toggleOpen,Dt=Ie.notFoundContent,qt=Ie.onPopupScroll,Jt=y.useContext(he),Ge=Jt.maxCount,ft=Jt.flattenOptions,Mt=Jt.onActiveValue,Ye=Jt.defaultActiveFirstOption,jt=Jt.onSelect,rn=Jt.menuItemSelectedIcon,an=Jt.rawValues,nn=Jt.fieldNames,mn=Jt.virtual,bn=Jt.direction,In=Jt.listHeight,_n=Jt.listItemHeight,Cn=Jt.optionRender,Zn="".concat(Fe,"-item"),Ln=(0,E.Z)(function(){return ft},[ut,ft],function(vn,hn){return hn[0]&&vn[1]!==hn[1]}),rr=y.useRef(null),Dn=y.useMemo(function(){return Gt&&Se(Ge)&&(an==null?void 0:an.size)>=Ge},[Gt,Ge,an==null?void 0:an.size]),jn=function(hn){hn.preventDefault()},Xn=function(hn){var xn;(xn=rr.current)===null||xn===void 0||xn.scrollTo(typeof hn=="number"?{index:hn}:hn)},Wn=y.useCallback(function(vn){return sn==="combobox"?!1:an.has(vn)},[sn,(0,U.Z)(an).toString(),an.size]),Gn=function(hn){for(var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Qn=Ln.length,tr=0;tr<Qn;tr+=1){var yr=(hn+tr*xn+Qn)%Qn,Er=Ln[yr]||{},$n=Er.group,Sr=Er.data;if(!$n&&!(Sr!=null&&Sr.disabled)&&(Wn(Sr.value)||!Dn))return yr}return-1},Jn=y.useState(function(){return Gn(0)}),Rn=(0,Z.Z)(Jn,2),Bn=Rn[0],ln=Rn[1],Tt=function(hn){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ln(hn);var Qn={source:xn?"keyboard":"mouse"},tr=Ln[hn];if(!tr){Mt(null,-1,Qn);return}Mt(tr.value,hn,Qn)};(0,y.useEffect)(function(){Tt(Ye!==!1?Gn(0):-1)},[Ln.length,je]);var Fn=y.useCallback(function(vn){return sn==="combobox"?String(vn).toLowerCase()===je.toLowerCase():an.has(vn)},[sn,je,(0,U.Z)(an).toString(),an.size]);(0,y.useEffect)(function(){var vn=setTimeout(function(){if(!Gt&&ut&&an.size===1){var xn=Array.from(an)[0],Qn=Ln.findIndex(function(tr){var yr=tr.data;return je?String(yr.value).startsWith(je):yr.value===xn});Qn!==-1&&(Tt(Qn),Xn(Qn))}});if(ut){var hn;(hn=rr.current)===null||hn===void 0||hn.scrollTo(void 0)}return function(){return clearTimeout(vn)}},[ut,je]);var On=function(hn){hn!==void 0&&jt(hn,{selected:!an.has(hn)}),Gt||ct(!1)};if(y.useImperativeHandle(ue,function(){return{onKeyDown:function(hn){var xn=hn.which,Qn=hn.ctrlKey;switch(xn){case Ee.Z.N:case Ee.Z.P:case Ee.Z.UP:case Ee.Z.DOWN:{var tr=0;if(xn===Ee.Z.UP?tr=-1:xn===Ee.Z.DOWN?tr=1:ae()&&Qn&&(xn===Ee.Z.N?tr=1:xn===Ee.Z.P&&(tr=-1)),tr!==0){var yr=Gn(Bn+tr,tr);Xn(yr),Tt(yr,!0)}break}case Ee.Z.TAB:case Ee.Z.ENTER:{var Er,$n=Ln[Bn];$n&&!($n!=null&&(Er=$n.data)!==null&&Er!==void 0&&Er.disabled)&&!Dn?On($n.value):On(void 0),ut&&hn.preventDefault();break}case Ee.Z.ESC:ct(!1),ut&&hn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(hn){Xn(hn)}}}),Ln.length===0)return y.createElement("div",{role:"listbox",id:"".concat($e,"_list"),className:"".concat(Zn,"-empty"),onMouseDown:jn},Dt);var sr=Object.keys(nn).map(function(vn){return nn[vn]}),dr=function(hn){return hn.label};function Ar(vn,hn){var xn=vn.group;return{role:xn?"presentation":"option",id:"".concat($e,"_list_").concat(hn)}}var ur=function(hn){var xn=Ln[hn];if(!xn)return null;var Qn=xn.data||{},tr=Qn.value,yr=xn.group,Er=(0,ze.Z)(Qn,!0),$n=dr(xn);return xn?y.createElement("div",(0,i.Z)({"aria-label":typeof $n=="string"&&!yr?$n:null},Er,{key:hn},Ar(xn,hn),{"aria-selected":Fn(tr)}),tr):null},Yn={role:"listbox",id:"".concat($e,"_list")};return y.createElement(y.Fragment,null,mn&&y.createElement("div",(0,i.Z)({},Yn,{style:{height:0,width:0,overflow:"hidden"}}),ur(Bn-1),ur(Bn),ur(Bn+1)),y.createElement(at.Z,{itemKey:"key",ref:rr,data:Ln,height:In,itemHeight:_n,fullHeight:!1,onMouseDown:jn,onScroll:qt,virtual:mn,direction:bn,innerProps:mn?null:Yn},function(vn,hn){var xn=vn.group,Qn=vn.groupOption,tr=vn.data,yr=vn.label,Er=vn.value,$n=tr.key;if(xn){var Sr,Dr=(Sr=tr.title)!==null&&Sr!==void 0?Sr:Ft(yr)?yr.toString():void 0;return y.createElement("div",{className:b()(Zn,"".concat(Zn,"-group"),tr.className),title:Dr},yr!==void 0?yr:$n)}var $r=tr.disabled,Mr=tr.title,Or=tr.children,Cr=tr.style,zr=tr.className,wr=(0,g.Z)(tr,Y),Vr=(0,R.Z)(wr,sr),Ir=Wn(Er),tn=$r||!Ir&&Dn,Tn="".concat(Zn,"-option"),cr=b()(Zn,Tn,zr,(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},"".concat(Tn,"-grouped"),Qn),"".concat(Tn,"-active"),Bn===hn&&!tn),"".concat(Tn,"-disabled"),tn),"".concat(Tn,"-selected"),Ir)),or=dr(vn),Br=!rn||typeof rn=="function"||Ir,ri=typeof or=="number"?or:or||Er,vi=Ft(ri)?ri.toString():void 0;return Mr!==void 0&&(vi=Mr),y.createElement("div",(0,i.Z)({},(0,ze.Z)(Vr),mn?{}:Ar(vn,hn),{"aria-selected":Fn(Er),className:cr,title:vi,onMouseMove:function(){Bn===hn||tn||Tt(hn)},onClick:function(){tn||On(Er)},style:Cr}),y.createElement("div",{className:"".concat(Tn,"-content")},typeof Cn=="function"?Cn(vn,{index:hn}):ri),y.isValidElement(rn)||Ir,Br&&y.createElement(X,{className:"".concat(Zn,"-option-state"),customizeIcon:rn,customizeIconProps:{value:Er,disabled:tn,isSelected:Ir}},Ir?"\u2713":null))}))},st=y.forwardRef(Ke),_t=st,xe=function(Ne,Be){var ue=y.useRef({values:new Map,options:new Map}),Ie=y.useMemo(function(){var $e=ue.current,ut=$e.values,Gt=$e.options,sn=Ne.map(function(Dt){if(Dt.label===void 0){var qt;return(0,fe.Z)((0,fe.Z)({},Dt),{},{label:(qt=ut.get(Dt.value))===null||qt===void 0?void 0:qt.label})}return Dt}),je=new Map,ct=new Map;return sn.forEach(function(Dt){je.set(Dt.value,Dt),ct.set(Dt.value,Be.get(Dt.value)||Gt.get(Dt.value))}),ue.current.values=je,ue.current.options=ct,sn},[Ne,Be]),Fe=y.useCallback(function($e){return Be.get($e)||ue.current.options.get($e)},[Be]);return[Ie,Fe]};function _e(Ne,Be){return te(Ne).join("").toUpperCase().includes(Be)}var et=function(Ne,Be,ue,Ie,Fe){return y.useMemo(function(){if(!ue||Ie===!1)return Ne;var $e=Be.options,ut=Be.label,Gt=Be.value,sn=[],je=typeof Ie=="function",ct=ue.toUpperCase(),Dt=je?Ie:function(Jt,Ge){return Fe?_e(Ge[Fe],ct):Ge[$e]?_e(Ge[ut!=="children"?ut:"label"],ct):_e(Ge[Gt],ct)},qt=je?function(Jt){return ke(Jt)}:function(Jt){return Jt};return Ne.forEach(function(Jt){if(Jt[$e]){var Ge=Dt(ue,qt(Jt));if(Ge)sn.push(Jt);else{var ft=Jt[$e].filter(function(Mt){return Dt(ue,qt(Mt))});ft.length&&sn.push((0,fe.Z)((0,fe.Z)({},Jt),{},(0,O.Z)({},$e,ft)))}return}Dt(ue,qt(Jt))&&sn.push(Jt)}),sn},[Ne,Ie,Fe,ue,Be])},Qe=u(6551),z=u(11592),Rt=["children","value"],ge=["children"];function Ht(Ne){var Be=Ne,ue=Be.key,Ie=Be.props,Fe=Ie.children,$e=Ie.value,ut=(0,g.Z)(Ie,Rt);return(0,fe.Z)({key:ue,value:$e!==void 0?$e:ue,children:Fe},ut)}function cn(Ne){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,z.Z)(Ne).map(function(ue,Ie){if(!y.isValidElement(ue)||!ue.type)return null;var Fe=ue,$e=Fe.type.isSelectOptGroup,ut=Fe.key,Gt=Fe.props,sn=Gt.children,je=(0,g.Z)(Gt,ge);return Be||!$e?Ht(ue):(0,fe.Z)((0,fe.Z)({key:"__RC_SELECT_GRP__".concat(ut===null?Ie:ut,"__"),label:ut},je),{},{options:cn(sn)})}).filter(function(ue){return ue})}var mt=function(Be,ue,Ie,Fe,$e){return y.useMemo(function(){var ut=Be,Gt=!Be;Gt&&(ut=cn(ue));var sn=new Map,je=new Map,ct=function(Jt,Ge,ft){ft&&typeof ft=="string"&&Jt.set(Ge[ft],Ge)},Dt=function qt(Jt){for(var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=0;ft<Jt.length;ft+=1){var Mt=Jt[ft];!Mt[Ie.options]||Ge?(sn.set(Mt[Ie.value],Mt),ct(je,Mt,Ie.label),ct(je,Mt,Fe),ct(je,Mt,$e)):qt(Mt[Ie.options],!0)}};return Dt(ut),{options:ut,valueOptions:sn,labelOptions:je}},[Be,ue,Ie,Fe,$e])},ne=mt;function we(Ne){var Be=y.useRef();Be.current=Ne;var ue=y.useCallback(function(){return Be.current.apply(Be,arguments)},[]);return ue}function B(Ne){var Be=Ne.mode,ue=Ne.options,Ie=Ne.children,Fe=Ne.backfill,$e=Ne.allowClear,ut=Ne.placeholder,Gt=Ne.getInputElement,sn=Ne.showSearch,je=Ne.onSearch,ct=Ne.defaultOpen,Dt=Ne.autoFocus,qt=Ne.labelInValue,Jt=Ne.value,Ge=Ne.inputValue,ft=Ne.optionLabelProp,Mt=isMultiple(Be),Ye=sn!==void 0?sn:Mt||Be==="combobox",jt=ue||convertChildrenToData(Ie);if(warning(Be!=="tags"||jt.every(function(mn){return!mn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Be==="tags"||Be==="combobox"){var rn=jt.some(function(mn){return mn.options?mn.options.some(function(bn){return typeof("value"in bn?bn.value:bn.key)=="number"}):typeof("value"in mn?mn.value:mn.key)=="number"});warning(!rn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Be!=="combobox"||!ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Be==="combobox"||!Fe,"`backfill` only works with `combobox` mode."),warning(Be==="combobox"||!Gt,"`getInputElement` only work with `combobox` mode."),noteOnce(Be!=="combobox"||!Gt||!$e||!ut,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!Ye&&Be!=="combobox"&&Be!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ct||Dt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Jt!=null){var an=toArray(Jt);warning(!qt||an.every(function(mn){return _typeof(mn)==="object"&&("key"in mn||"value"in mn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mt||Array.isArray(Jt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ie){var nn=null;toNodeArray(Ie).some(function(mn){if(!React.isValidElement(mn)||!mn.type)return!1;var bn=mn,In=bn.type;if(In.isSelectOption)return!1;if(In.isSelectOptGroup){var _n=toNodeArray(mn.props.children).every(function(Cn){return!React.isValidElement(Cn)||!mn.type||Cn.type.isSelectOption?!0:(nn=Cn.type,!1)});return!_n}return nn=In,!0}),nn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nn.displayName||nn.name||nn,"`.")),warning(Ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xt(Ne,Be){if(Ne){var ue=function Ie(Fe){for(var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=0;ut<Fe.length;ut++){var Gt=Fe[ut];if(Gt[Be==null?void 0:Be.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!$e&&Array.isArray(Gt[Be==null?void 0:Be.options])&&Ie(Gt[Be==null?void 0:Be.options],!0))break}};ue(Ne)}}var lt=null,ot=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],$t=["inputValue"];function Bt(Ne){return!Ne||(0,H.Z)(Ne)!=="object"}var zt=y.forwardRef(function(Ne,Be){var ue=Ne.id,Ie=Ne.mode,Fe=Ne.prefixCls,$e=Fe===void 0?"rc-select":Fe,ut=Ne.backfill,Gt=Ne.fieldNames,sn=Ne.inputValue,je=Ne.searchValue,ct=Ne.onSearch,Dt=Ne.autoClearSearchValue,qt=Dt===void 0?!0:Dt,Jt=Ne.onSelect,Ge=Ne.onDeselect,ft=Ne.dropdownMatchSelectWidth,Mt=ft===void 0?!0:ft,Ye=Ne.filterOption,jt=Ne.filterSort,rn=Ne.optionFilterProp,an=Ne.optionLabelProp,nn=Ne.options,mn=Ne.optionRender,bn=Ne.children,In=Ne.defaultActiveFirstOption,_n=Ne.menuItemSelectedIcon,Cn=Ne.virtual,Zn=Ne.direction,Ln=Ne.listHeight,rr=Ln===void 0?200:Ln,Dn=Ne.listItemHeight,jn=Dn===void 0?20:Dn,Xn=Ne.labelRender,Wn=Ne.value,Gn=Ne.defaultValue,Jn=Ne.labelInValue,Rn=Ne.onChange,Bn=Ne.maxCount,ln=(0,g.Z)(Ne,ot),Tt=(0,Qe.ZP)(ue),Fn=Nt(Ie),On=!!(!nn&&bn),sr=y.useMemo(function(){return Ye===void 0&&Ie==="combobox"?!1:Ye},[Ye,Ie]),dr=y.useMemo(function(){return Ae(Gt,On)},[JSON.stringify(Gt),On]),Ar=(0,V.Z)("",{value:je!==void 0?je:sn,postState:function(ti){return ti||""}}),ur=(0,Z.Z)(Ar,2),Yn=ur[0],vn=ur[1],hn=ne(nn,bn,dr,rn,an),xn=hn.valueOptions,Qn=hn.labelOptions,tr=hn.options,yr=y.useCallback(function(Fr){var ti=te(Fr);return ti.map(function(vr){var br,Pr,Wr,Ci,xr;if(Bt(vr))br=vr;else{var Rr;Wr=vr.key,Pr=vr.label,br=(Rr=vr.value)!==null&&Rr!==void 0?Rr:Wr}var Nr=xn.get(br);if(Nr){var Zr;if(Pr===void 0&&(Pr=Nr==null?void 0:Nr[an||dr.label]),Wr===void 0&&(Wr=(Zr=Nr==null?void 0:Nr.key)!==null&&Zr!==void 0?Zr:br),Ci=Nr==null?void 0:Nr.disabled,xr=Nr==null?void 0:Nr.title,0)var ni}return{label:Pr,value:br,key:Wr,disabled:Ci,title:xr}})},[dr,an,xn]),Er=(0,V.Z)(Gn,{value:Wn}),$n=(0,Z.Z)(Er,2),Sr=$n[0],Dr=$n[1],$r=y.useMemo(function(){var Fr,ti=Fn&&Sr===null?[]:Sr,vr=yr(ti);return Ie==="combobox"&&de((Fr=vr[0])===null||Fr===void 0?void 0:Fr.value)?[]:vr},[Sr,yr,Ie,Fn]),Mr=xe($r,xn),Or=(0,Z.Z)(Mr,2),Cr=Or[0],zr=Or[1],wr=y.useMemo(function(){if(!Ie&&Cr.length===1){var Fr=Cr[0];if(Fr.value===null&&(Fr.label===null||Fr.label===void 0))return[]}return Cr.map(function(ti){var vr;return(0,fe.Z)((0,fe.Z)({},ti),{},{label:(vr=typeof Xn=="function"?Xn(ti):ti.label)!==null&&vr!==void 0?vr:ti.value})})},[Ie,Cr,Xn]),Vr=y.useMemo(function(){return new Set(Cr.map(function(Fr){return Fr.value}))},[Cr]);y.useEffect(function(){if(Ie==="combobox"){var Fr,ti=(Fr=Cr[0])===null||Fr===void 0?void 0:Fr.value;vn(I(ti)?String(ti):"")}},[Cr]);var Ir=we(function(Fr,ti){var vr=ti!=null?ti:Fr;return(0,O.Z)((0,O.Z)({},dr.value,Fr),dr.label,vr)}),tn=y.useMemo(function(){if(Ie!=="tags")return tr;var Fr=(0,U.Z)(tr),ti=function(br){return xn.has(br)};return(0,U.Z)(Cr).sort(function(vr,br){return vr.value<br.value?-1:1}).forEach(function(vr){var br=vr.value;ti(br)||Fr.push(Ir(br,vr.label))}),Fr},[Ir,tr,xn,Cr,Ie]),Tn=et(tn,dr,Yn,sr,rn),cr=y.useMemo(function(){return Ie!=="tags"||!Yn||Tn.some(function(Fr){return Fr[rn||"value"]===Yn})||Tn.some(function(Fr){return Fr[dr.value]===Yn})?Tn:[Ir(Yn)].concat((0,U.Z)(Tn))},[Ir,rn,Ie,Tn,Yn,dr]),or=function Fr(ti){var vr=(0,U.Z)(ti).sort(function(br,Pr){return jt(br,Pr,{searchValue:Yn})});return vr.map(function(br){return Array.isArray(br.options)?(0,fe.Z)((0,fe.Z)({},br),{},{options:br.options.length>0?Fr(br.options):br.options}):br})},Br=y.useMemo(function(){return jt?or(cr):cr},[cr,jt,Yn]),ri=y.useMemo(function(){return Ce(Br,{fieldNames:dr,childrenAsData:On})},[Br,dr,On]),vi=function(ti){var vr=yr(ti);if(Dr(vr),Rn&&(vr.length!==Cr.length||vr.some(function(Wr,Ci){var xr;return((xr=Cr[Ci])===null||xr===void 0?void 0:xr.value)!==(Wr==null?void 0:Wr.value)}))){var br=Jn?vr:vr.map(function(Wr){return Wr.value}),Pr=vr.map(function(Wr){return ke(zr(Wr.value))});Rn(Fn?br:br[0],Fn?Pr:Pr[0])}},_r=y.useState(null),mr=(0,Z.Z)(_r,2),bi=mr[0],ar=mr[1],wi=y.useState(0),Yi=(0,Z.Z)(wi,2),Wi=Yi[0],Mi=Yi[1],ki=In!==void 0?In:Ie!=="combobox",Gr=y.useCallback(function(Fr,ti){var vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},br=vr.source,Pr=br===void 0?"keyboard":br;Mi(ti),ut&&Ie==="combobox"&&Fr!==null&&Pr==="keyboard"&&ar(String(Fr))},[ut,Ie]),Di=function(ti,vr,br){var Pr=function(){var ua,fi=zr(ti);return[Jn?{label:fi==null?void 0:fi[dr.label],value:ti,key:(ua=fi==null?void 0:fi.key)!==null&&ua!==void 0?ua:ti}:ti,ke(fi)]};if(vr&&Jt){var Wr=Pr(),Ci=(0,Z.Z)(Wr,2),xr=Ci[0],Rr=Ci[1];Jt(xr,Rr)}else if(!vr&&Ge&&br!=="clear"){var Nr=Pr(),Zr=(0,Z.Z)(Nr,2),ni=Zr[0],ma=Zr[1];Ge(ni,ma)}},ra=we(function(Fr,ti){var vr,br=Fn?ti.selected:!0;br?vr=Fn?[].concat((0,U.Z)(Cr),[Fr]):[Fr]:vr=Cr.filter(function(Pr){return Pr.value!==Fr}),vi(vr),Di(Fr,br),Ie==="combobox"?ar(""):(!Nt||qt)&&(vn(""),ar(""))}),zi=function(ti,vr){vi(ti);var br=vr.type,Pr=vr.values;(br==="remove"||br==="clear")&&Pr.forEach(function(Wr){Di(Wr.value,!1,br)})},hi=function(ti,vr){if(vn(ti),ar(null),vr.source==="submit"){var br=(ti||"").trim();if(br){var Pr=Array.from(new Set([].concat((0,U.Z)(Vr),[br])));vi(Pr),Di(br,!0),vn("")}return}vr.source!=="blur"&&(Ie==="combobox"&&vi(ti),ct==null||ct(ti))},Ni=function(ti){var vr=ti;Ie!=="tags"&&(vr=ti.map(function(Pr){var Wr=Qn.get(Pr);return Wr==null?void 0:Wr.value}).filter(function(Pr){return Pr!==void 0}));var br=Array.from(new Set([].concat((0,U.Z)(Vr),(0,U.Z)(vr))));vi(br),br.forEach(function(Pr){Di(Pr,!0)})},Zi=y.useMemo(function(){var Fr=Cn!==!1&&Mt!==!1;return(0,fe.Z)((0,fe.Z)({},hn),{},{flattenOptions:ri,onActiveValue:Gr,defaultActiveFirstOption:ki,onSelect:ra,menuItemSelectedIcon:_n,rawValues:Vr,fieldNames:dr,virtual:Fr,direction:Zn,listHeight:rr,listItemHeight:jn,childrenAsData:On,maxCount:Bn,optionRender:mn})},[Bn,hn,ri,Gr,ki,ra,_n,Vr,dr,Cn,Mt,Zn,rr,jn,On,mn]);return y.createElement(he.Provider,{value:Zi},y.createElement(pt,(0,i.Z)({},ln,{id:Tt,prefixCls:$e,ref:Be,omitDomProps:$t,mode:Ie,displayValues:wr,onDisplayValuesChange:zi,direction:Zn,searchValue:Yn,onSearch:hi,autoClearSearchValue:qt,onSearchSplit:Ni,dropdownMatchSelectWidth:Mt,OptionList:_t,emptyOptions:!ri.length,activeValue:bi,activeDescendantId:"".concat(Tt,"_list_").concat(Wi)})))}),re=zt;re.Option=gt,re.OptGroup=Zt;var ve=re,wt=ve},22711:function(zn,Pt,u){"use strict";u.r(Pt),u.d(Pt,{ResizableTextArea:function(){return Ze},default:function(){return q}});var i=u(54476),U=u(20068),O=u(33885),fe=u(94480),Z=u(42978),g=u(75931),H=u(92310),V=u.n(H),l=u(36901),y=u(66003),M=u(30292),b=u(18929),C=u(59301),T=u(76190),$=u(29301),W=u(34280),X=u(16089),G=`
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;
`,L=["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"],Q={},P;function A(te){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=te.getAttribute("id")||te.getAttribute("data-reactid")||te.getAttribute("name");if(se&&Q[w])return Q[w];var I=window.getComputedStyle(te),de=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),De=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),dt=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),It=L.map(function(rt){return"".concat(rt,":").concat(I.getPropertyValue(rt))}).join(";"),Te={sizingStyle:It,paddingSize:De,borderSize:dt,boxSizing:de};return se&&w&&(Q[w]=Te),Te}function ce(te){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),P.setAttribute("name","hiddenTextarea"),document.body.appendChild(P)),te.getAttribute("wrap")?P.setAttribute("wrap",te.getAttribute("wrap")):P.removeAttribute("wrap");var de=A(te,se),De=de.paddingSize,dt=de.borderSize,It=de.boxSizing,Te=de.sizingStyle;P.setAttribute("style","".concat(Te,";").concat(G)),P.value=te.value||te.placeholder||"";var rt=void 0,ht=void 0,St,Me=P.scrollHeight;if(It==="border-box"?Me+=dt:It==="content-box"&&(Me-=De),w!==null||I!==null){P.value=" ";var Xt=P.scrollHeight-De;w!==null&&(rt=Xt*w,It==="border-box"&&(rt=rt+De+dt),Me=Math.max(rt,Me)),I!==null&&(ht=Xt*I,It==="border-box"&&(ht=ht+De+dt),St=Me>ht?"":"hidden",Me=Math.min(ht,Me))}var tt={height:Me,overflowY:St,resize:"none"};return rt&&(tt.minHeight=rt),ht&&(tt.maxHeight=ht),tt}var Ee=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pe=0,ze=1,Je=2,Pe=C.forwardRef(function(te,se){var w=te,I=w.prefixCls,de=w.defaultValue,De=w.value,dt=w.autoSize,It=w.onResize,Te=w.className,rt=w.style,ht=w.disabled,St=w.onChange,Me=w.onInternalAutoSize,Xt=(0,g.Z)(w,Ee),tt=(0,b.Z)(de,{value:De,postState:function(gt){return gt!=null?gt:""}}),un=(0,Z.Z)(tt,2),vt=un[0],bt=un[1],Ve=function(gt){bt(gt.target.value),St==null||St(gt)},Le=C.useRef();C.useImperativeHandle(se,function(){return{textArea:Le.current}});var oe=C.useMemo(function(){return dt&&(0,T.Z)(dt)==="object"?[dt.minRows,dt.maxRows]:[]},[dt]),nt=(0,Z.Z)(oe,2),Ue=nt[0],K=nt[1],D=!!dt,Se=function(){try{if(document.activeElement===Le.current){var gt=Le.current,E=gt.selectionStart,R=gt.selectionEnd,at=gt.scrollTop;Le.current.setSelectionRange(E,R),Le.current.scrollTop=at}}catch(ae){}},Ae=C.useState(Je),Ce=(0,Z.Z)(Ae,2),ke=Ce[0],Xe=Ce[1],yt=C.useState(),he=(0,Z.Z)(yt,2),me=he[0],Lt=he[1],Ct=function(){Xe(pe)};(0,W.Z)(function(){D&&Ct()},[De,Ue,K,D]),(0,W.Z)(function(){if(ke===pe)Xe(ze);else if(ke===ze){var Re=ce(Le.current,!1,Ue,K);Xe(Je),Lt(Re)}else Se()},[ke]);var Nt=C.useRef(),kt=function(){X.Z.cancel(Nt.current)},pt=function(gt){ke===Je&&(It==null||It(gt),dt&&(kt(),Nt.current=(0,X.Z)(function(){Ct()})))};C.useEffect(function(){return kt},[]);var Vt=D?me:null,Zt=(0,O.Z)((0,O.Z)({},rt),Vt);return(ke===pe||ke===ze)&&(Zt.overflowY="hidden",Zt.overflowX="hidden"),C.createElement($.Z,{onResize:pt,disabled:!(dt||It)},C.createElement("textarea",(0,i.Z)({},Xt,{ref:Le,style:Zt,className:V()(I,Te,(0,U.Z)({},"".concat(I,"-disabled"),ht)),disabled:ht,value:vt,onChange:Ve})))}),Ze=Pe,le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],N=C.forwardRef(function(te,se){var w,I=te.defaultValue,de=te.value,De=te.onFocus,dt=te.onBlur,It=te.onChange,Te=te.allowClear,rt=te.maxLength,ht=te.onCompositionStart,St=te.onCompositionEnd,Me=te.suffix,Xt=te.prefixCls,tt=Xt===void 0?"rc-textarea":Xt,un=te.showCount,vt=te.count,bt=te.className,Ve=te.style,Le=te.disabled,oe=te.hidden,nt=te.classNames,Ue=te.styles,K=te.onResize,D=te.onClear,Se=te.onPressEnter,Ae=te.readOnly,Ce=te.autoSize,ke=te.onKeyDown,Xe=(0,g.Z)(te,le),yt=(0,b.Z)(I,{value:de,defaultValue:I}),he=(0,Z.Z)(yt,2),me=he[0],Lt=he[1],Ct=me==null?"":String(me),Nt=C.useState(!1),kt=(0,Z.Z)(Nt,2),pt=kt[0],Vt=kt[1],Zt=C.useRef(!1),Re=C.useState(null),gt=(0,Z.Z)(Re,2),E=gt[0],R=gt[1],at=(0,C.useRef)(null),ae=(0,C.useRef)(null),Y=function(){var re;return(re=ae.current)===null||re===void 0?void 0:re.textArea},Ft=function(){Y().focus()};(0,C.useImperativeHandle)(se,function(){var zt;return{resizableTextArea:ae.current,focus:Ft,blur:function(){Y().blur()},nativeElement:((zt=at.current)===null||zt===void 0?void 0:zt.nativeElement)||Y()}}),(0,C.useEffect)(function(){Vt(function(zt){return!Le&&zt})},[Le]);var Ke=C.useState(null),st=(0,Z.Z)(Ke,2),_t=st[0],xe=st[1];C.useEffect(function(){if(_t){var zt;(zt=Y()).setSelectionRange.apply(zt,(0,fe.Z)(_t))}},[_t]);var _e=(0,y.Z)(vt,un),et=(w=_e.max)!==null&&w!==void 0?w:rt,Qe=Number(et)>0,z=_e.strategy(Ct),Rt=!!et&&z>et,ge=function(re,ve){var wt=ve;!Zt.current&&_e.exceedFormatter&&_e.max&&_e.strategy(ve)>_e.max&&(wt=_e.exceedFormatter(ve,{max:_e.max}),ve!==wt&&xe([Y().selectionStart||0,Y().selectionEnd||0])),Lt(wt),(0,M.rJ)(re.currentTarget,re,It,wt)},Ht=function(re){Zt.current=!0,ht==null||ht(re)},cn=function(re){Zt.current=!1,ge(re,re.currentTarget.value),St==null||St(re)},mt=function(re){ge(re,re.target.value)},ne=function(re){re.key==="Enter"&&Se&&Se(re),ke==null||ke(re)},we=function(re){Vt(!0),De==null||De(re)},B=function(re){Vt(!1),dt==null||dt(re)},xt=function(re){Lt(""),Ft(),(0,M.rJ)(Y(),re,It)},lt=Me,ot;_e.show&&(_e.showFormatter?ot=_e.showFormatter({value:Ct,count:z,maxLength:et}):ot="".concat(z).concat(Qe?" / ".concat(et):""),lt=C.createElement(C.Fragment,null,lt,C.createElement("span",{className:V()("".concat(tt,"-data-count"),nt==null?void 0:nt.count),style:Ue==null?void 0:Ue.count},ot)));var $t=function(re){var ve;K==null||K(re),(ve=Y())!==null&&ve!==void 0&&ve.style.height&&R(!0)},Bt=!Ce&&!un&&!Te;return C.createElement(l.BaseInput,{ref:at,value:Ct,allowClear:Te,handleReset:xt,suffix:lt,prefixCls:tt,classNames:(0,O.Z)((0,O.Z)({},nt),{},{affixWrapper:V()(nt==null?void 0:nt.affixWrapper,(0,U.Z)((0,U.Z)({},"".concat(tt,"-show-count"),un),"".concat(tt,"-textarea-allow-clear"),Te))}),disabled:Le,focused:pt,className:V()(bt,Rt&&"".concat(tt,"-out-of-range")),style:(0,O.Z)((0,O.Z)({},Ve),E&&!Bt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ot=="string"?ot:void 0}},hidden:oe,readOnly:Ae,onClear:D},C.createElement(Ze,(0,i.Z)({},Xe,{autoSize:Ce,maxLength:rt,onKeyDown:ne,onChange:mt,onFocus:we,onBlur:B,onCompositionStart:Ht,onCompositionEnd:cn,className:V()(nt==null?void 0:nt.textarea),style:(0,O.Z)((0,O.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:Ve==null?void 0:Ve.resize}),disabled:Le,prefixCls:tt,onResize:$t,ref:ae,readOnly:Ae})))}),S=N,q=S},29125:function(zn,Pt,u){"use strict";u.d(Pt,{G:function(){return fe},Z:function(){return G}});var i=u(92310),U=u.n(i),O=u(59301);function fe(L){var Q=L.children,P=L.prefixCls,A=L.id,ce=L.overlayInnerStyle,Ee=L.bodyClassName,pe=L.className,ze=L.style;return O.createElement("div",{className:U()("".concat(P,"-content"),pe),style:ze},O.createElement("div",{className:U()("".concat(P,"-inner"),Ee),id:A,role:"tooltip",style:ce},typeof Q=="function"?Q():Q))}var Z=u(54476),g=u(33885),H=u(75931),V=u(65030),l={shiftX:64,adjustY:1},y={adjustX:1,shiftY:!0},M=[0,0],b={left:{points:["cr","cl"],overflow:y,offset:[-4,0],targetOffset:M},right:{points:["cl","cr"],overflow:y,offset:[4,0],targetOffset:M},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:M},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:M},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:M},leftTop:{points:["tr","tl"],overflow:y,offset:[-4,0],targetOffset:M},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:M},rightTop:{points:["tl","tr"],overflow:y,offset:[4,0],targetOffset:M},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:M},rightBottom:{points:["bl","br"],overflow:y,offset:[4,0],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:M},leftBottom:{points:["br","bl"],overflow:y,offset:[-4,0],targetOffset:M}},C=null,T=u(80402),$=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],W=function(Q,P){var A=Q.overlayClassName,ce=Q.trigger,Ee=ce===void 0?["hover"]:ce,pe=Q.mouseEnterDelay,ze=pe===void 0?0:pe,Je=Q.mouseLeaveDelay,Pe=Je===void 0?.1:Je,Ze=Q.overlayStyle,le=Q.prefixCls,N=le===void 0?"rc-tooltip":le,S=Q.children,q=Q.onVisibleChange,te=Q.afterVisibleChange,se=Q.transitionName,w=Q.animation,I=Q.motion,de=Q.placement,De=de===void 0?"right":de,dt=Q.align,It=dt===void 0?{}:dt,Te=Q.destroyTooltipOnHide,rt=Te===void 0?!1:Te,ht=Q.defaultVisible,St=Q.getTooltipContainer,Me=Q.overlayInnerStyle,Xt=Q.arrowContent,tt=Q.overlay,un=Q.id,vt=Q.showArrow,bt=vt===void 0?!0:vt,Ve=Q.classNames,Le=Q.styles,oe=(0,H.Z)(Q,$),nt=(0,T.Z)(un),Ue=(0,O.useRef)(null);(0,O.useImperativeHandle)(P,function(){return Ue.current});var K=(0,g.Z)({},oe);"visible"in Q&&(K.popupVisible=Q.visible);var D=function(){return O.createElement(fe,{key:"content",prefixCls:N,id:nt,bodyClassName:Ve==null?void 0:Ve.body,overlayInnerStyle:(0,g.Z)((0,g.Z)({},Me),Le==null?void 0:Le.body)},tt)},Se=function(){var Ce=O.Children.only(S),ke=(Ce==null?void 0:Ce.props)||{},Xe=(0,g.Z)((0,g.Z)({},ke),{},{"aria-describedby":tt?nt:null});return O.cloneElement(S,Xe)};return O.createElement(V.Z,(0,Z.Z)({popupClassName:U()(A,Ve==null?void 0:Ve.root),prefixCls:N,popup:D,action:Ee,builtinPlacements:b,popupPlacement:De,ref:Ue,popupAlign:It,getPopupContainer:St,onPopupVisibleChange:q,afterPopupVisibleChange:te,popupTransitionName:se,popupAnimation:w,popupMotion:I,defaultPopupVisible:ht,autoDestroy:rt,mouseLeaveDelay:Pe,popupStyle:(0,g.Z)((0,g.Z)({},Ze),Le==null?void 0:Le.root),mouseEnterDelay:ze,arrow:bt},K),Se())},X=(0,O.forwardRef)(W),G=X},639:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return Q}});var i=u(54476),U=u(20068),O=u(33885),fe=u(42978),Z=u(75931),g=u(59301),H=u(92310),V=u.n(H),l=u(26112),y=u(30699),M=function(A){for(var ce=A.prefixCls,Ee=A.level,pe=A.isStart,ze=A.isEnd,Je="".concat(ce,"-indent-unit"),Pe=[],Ze=0;Ze<Ee;Ze+=1)Pe.push(g.createElement("span",{key:Ze,className:V()(Je,(0,U.Z)((0,U.Z)({},"".concat(Je,"-start"),pe[Ze]),"".concat(Je,"-end"),ze[Ze]))}));return g.createElement("span",{"aria-hidden":"true",className:"".concat(ce,"-indent")},Pe)},b=g.memo(M),C=u(65065),T=u(34061),$=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",X="close",G="---",L=function(A){var ce,Ee,pe,ze=A.eventKey,Je=A.className,Pe=A.style,Ze=A.dragOver,le=A.dragOverGapTop,N=A.dragOverGapBottom,S=A.isLeaf,q=A.isStart,te=A.isEnd,se=A.expanded,w=A.selected,I=A.checked,de=A.halfChecked,De=A.loading,dt=A.domRef,It=A.active,Te=A.data,rt=A.onMouseMove,ht=A.selectable,St=(0,Z.Z)(A,$),Me=g.useContext(y.k),Xt=g.useContext(y.y),tt=g.useRef(null),un=g.useState(!1),vt=(0,fe.Z)(un,2),bt=vt[0],Ve=vt[1],Le=!!(Me.disabled||A.disabled||(ce=Xt.nodeDisabled)!==null&&ce!==void 0&&ce.call(Xt,Te)),oe=g.useMemo(function(){return!Me.checkable||A.checkable===!1?!1:Me.checkable},[Me.checkable,A.checkable]),nt=function(z){Le||Me.onNodeSelect(z,(0,T.F)(A))},Ue=function(z){Le||!oe||A.disableCheckbox||Me.onNodeCheck(z,(0,T.F)(A),!I)},K=g.useMemo(function(){return typeof ht=="boolean"?ht:Me.selectable},[ht,Me.selectable]),D=function(z){Me.onNodeClick(z,(0,T.F)(A)),K?nt(z):Ue(z)},Se=function(z){Me.onNodeDoubleClick(z,(0,T.F)(A))},Ae=function(z){Me.onNodeMouseEnter(z,(0,T.F)(A))},Ce=function(z){Me.onNodeMouseLeave(z,(0,T.F)(A))},ke=function(z){Me.onNodeContextMenu(z,(0,T.F)(A))},Xe=g.useMemo(function(){return!!(Me.draggable&&(!Me.draggable.nodeDraggable||Me.draggable.nodeDraggable(Te)))},[Me.draggable,Te]),yt=function(z){z.stopPropagation(),Ve(!0),Me.onNodeDragStart(z,A);try{z.dataTransfer.setData("text/plain","")}catch(Rt){}},he=function(z){z.preventDefault(),z.stopPropagation(),Me.onNodeDragEnter(z,A)},me=function(z){z.preventDefault(),z.stopPropagation(),Me.onNodeDragOver(z,A)},Lt=function(z){z.stopPropagation(),Me.onNodeDragLeave(z,A)},Ct=function(z){z.stopPropagation(),Ve(!1),Me.onNodeDragEnd(z,A)},Nt=function(z){z.preventDefault(),z.stopPropagation(),Ve(!1),Me.onNodeDrop(z,A)},kt=function(z){De||Me.onNodeExpand(z,(0,T.F)(A))},pt=g.useMemo(function(){var Qe=(0,C.Z)(Me.keyEntities,ze)||{},z=Qe.children;return!!(z||[]).length},[Me.keyEntities,ze]),Vt=g.useMemo(function(){return S===!1?!1:S||!Me.loadData&&!pt||Me.loadData&&A.loaded&&!pt},[S,Me.loadData,pt,A.loaded]);g.useEffect(function(){De||typeof Me.loadData=="function"&&se&&!Vt&&!A.loaded&&Me.onNodeLoad((0,T.F)(A))},[De,Me.loadData,Me.onNodeLoad,se,Vt,A]);var Zt=g.useMemo(function(){var Qe;return(Qe=Me.draggable)!==null&&Qe!==void 0&&Qe.icon?g.createElement("span",{className:"".concat(Me.prefixCls,"-draggable-icon")},Me.draggable.icon):null},[Me.draggable]),Re=function(z){var Rt=A.switcherIcon||Me.switcherIcon;return typeof Rt=="function"?Rt((0,O.Z)((0,O.Z)({},A),{},{isLeaf:z})):Rt},gt=function(){if(Vt){var z=Re(!0);return z!==!1?g.createElement("span",{className:V()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher-noop"))},z):null}var Rt=Re(!1);return Rt!==!1?g.createElement("span",{onClick:kt,className:V()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher_").concat(se?W:X))},Rt):null},E=g.useMemo(function(){if(!oe)return null;var Qe=typeof oe!="boolean"?oe:null;return g.createElement("span",{className:V()("".concat(Me.prefixCls,"-checkbox"),(0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(Me.prefixCls,"-checkbox-checked"),I),"".concat(Me.prefixCls,"-checkbox-indeterminate"),!I&&de),"".concat(Me.prefixCls,"-checkbox-disabled"),Le||A.disableCheckbox)),onClick:Ue,role:"checkbox","aria-checked":de?"mixed":I,"aria-disabled":Le||A.disableCheckbox,"aria-label":"Select ".concat(typeof A.title=="string"?A.title:"tree node")},Qe)},[oe,I,de,Le,A.disableCheckbox,A.title]),R=g.useMemo(function(){return Vt?null:se?W:X},[Vt,se]),at=g.useMemo(function(){return g.createElement("span",{className:V()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__").concat(R||"docu"),(0,U.Z)({},"".concat(Me.prefixCls,"-icon_loading"),De))})},[Me.prefixCls,R,De]),ae=g.useMemo(function(){var Qe=!!Me.draggable,z=!A.disabled&&Qe&&Me.dragOverNodeKey===ze;return z?Me.dropIndicatorRender({dropPosition:Me.dropPosition,dropLevelOffset:Me.dropLevelOffset,indent:Me.indent,prefixCls:Me.prefixCls,direction:Me.direction}):null},[Me.dropPosition,Me.dropLevelOffset,Me.indent,Me.prefixCls,Me.direction,Me.draggable,Me.dragOverNodeKey,Me.dropIndicatorRender]),Y=g.useMemo(function(){var Qe=A.title,z=Qe===void 0?G:Qe,Rt="".concat(Me.prefixCls,"-node-content-wrapper"),ge;if(Me.showIcon){var Ht=A.icon||Me.icon;ge=Ht?g.createElement("span",{className:V()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__customize"))},typeof Ht=="function"?Ht(A):Ht):at}else Me.loadData&&De&&(ge=at);var cn;return typeof z=="function"?cn=z(Te):Me.titleRender?cn=Me.titleRender(Te):cn=z,g.createElement("span",{ref:tt,title:typeof z=="string"?z:"",className:V()(Rt,"".concat(Rt,"-").concat(R||"normal"),(0,U.Z)({},"".concat(Me.prefixCls,"-node-selected"),!Le&&(w||bt))),onMouseEnter:Ae,onMouseLeave:Ce,onContextMenu:ke,onClick:D,onDoubleClick:Se},ge,g.createElement("span",{className:"".concat(Me.prefixCls,"-title")},cn),ae)},[Me.prefixCls,Me.showIcon,A,Me.icon,at,Me.titleRender,Te,R,Ae,Ce,ke,D,Se]),Ft=(0,l.Z)(St,{aria:!0,data:!0}),Ke=(0,C.Z)(Me.keyEntities,ze)||{},st=Ke.level,_t=te[te.length-1],xe=!Le&&Xe,_e=Me.draggingNodeKey===ze,et=ht!==void 0?{"aria-selected":!!ht}:void 0;return g.createElement("div",(0,i.Z)({ref:dt,role:"treeitem","aria-expanded":S?void 0:se,className:V()(Je,"".concat(Me.prefixCls,"-treenode"),(pe={},(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)(pe,"".concat(Me.prefixCls,"-treenode-disabled"),Le),"".concat(Me.prefixCls,"-treenode-switcher-").concat(se?"open":"close"),!S),"".concat(Me.prefixCls,"-treenode-checkbox-checked"),I),"".concat(Me.prefixCls,"-treenode-checkbox-indeterminate"),de),"".concat(Me.prefixCls,"-treenode-selected"),w),"".concat(Me.prefixCls,"-treenode-loading"),De),"".concat(Me.prefixCls,"-treenode-active"),It),"".concat(Me.prefixCls,"-treenode-leaf-last"),_t),"".concat(Me.prefixCls,"-treenode-draggable"),Xe),"dragging",_e),(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)(pe,"drop-target",Me.dropTargetKey===ze),"drop-container",Me.dropContainerKey===ze),"drag-over",!Le&&Ze),"drag-over-gap-top",!Le&&le),"drag-over-gap-bottom",!Le&&N),"filter-node",(Ee=Me.filterTreeNode)===null||Ee===void 0?void 0:Ee.call(Me,(0,T.F)(A))),"".concat(Me.prefixCls,"-treenode-leaf"),Vt))),style:Pe,draggable:xe,onDragStart:xe?yt:void 0,onDragEnter:Xe?he:void 0,onDragOver:Xe?me:void 0,onDragLeave:Xe?Lt:void 0,onDrop:Xe?Nt:void 0,onDragEnd:Xe?Ct:void 0,onMouseMove:rt},et,Ft),g.createElement(b,{prefixCls:Me.prefixCls,level:st,isStart:q,isEnd:te}),Zt,gt(),E,Y)};L.isTreeNode=1;var Q=L},30699:function(zn,Pt,u){"use strict";u.d(Pt,{k:function(){return U},y:function(){return O}});var i=u(59301),U=i.createContext(null),O=i.createContext({})},3741:function(zn,Pt,u){"use strict";u.d(Pt,{OF:function(){return ze.Z},y6:function(){return X.y},ZP:function(){return Le}});var i=u(54476),U=u(76190),O=u(33885),fe=u(94480),Z=u(67732),g=u(83652),H=u(31226),V=u(42403),l=u(158),y=u(20068),M=u(92310),b=u.n(M),C=u(10228),T=u(26112),$=u(48736),W=u(59301),X=u(30699),G=function(nt){var Ue=nt.dropPosition,K=nt.dropLevelOffset,D=nt.indent,Se={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ue){case-1:Se.top=0,Se.left=-K*D;break;case 1:Se.bottom=0,Se.left=-K*D;break;case 0:Se.bottom=0,Se.left=D;break}return W.createElement("div",{style:Se})},L=G;function Q(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var P=u(42978),A=u(75931),ce=u(34280),Ee=u(48911),pe=u(77900),ze=u(639);function Je(oe,nt){var Ue=W.useState(!1),K=(0,P.Z)(Ue,2),D=K[0],Se=K[1];(0,ce.Z)(function(){if(D)return oe(),function(){nt()}},[D]),(0,ce.Z)(function(){return Se(!0),function(){Se(!1)}},[])}var Pe=Je,Ze=u(34061),le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],N=W.forwardRef(function(oe,nt){var Ue=oe.className,K=oe.style,D=oe.motion,Se=oe.motionNodes,Ae=oe.motionType,Ce=oe.onMotionStart,ke=oe.onMotionEnd,Xe=oe.active,yt=oe.treeNodeRequiredProps,he=(0,A.Z)(oe,le),me=W.useState(!0),Lt=(0,P.Z)(me,2),Ct=Lt[0],Nt=Lt[1],kt=W.useContext(X.k),pt=kt.prefixCls,Vt=Se&&Ae!=="hide";(0,ce.Z)(function(){Se&&Vt!==Ct&&Nt(Vt)},[Se]);var Zt=function(){Se&&Ce()},Re=W.useRef(!1),gt=function(){Se&&!Re.current&&(Re.current=!0,ke())};Pe(Zt,gt);var E=function(at){Vt===at&&gt()};return Se?W.createElement(pe.default,(0,i.Z)({ref:nt,visible:Ct},D,{motionAppear:Ae==="show",onVisibleChanged:E}),function(R,at){var ae=R.className,Y=R.style;return W.createElement("div",{ref:at,className:b()("".concat(pt,"-treenode-motion"),ae),style:Y},Se.map(function(Ft){var Ke=Object.assign({},(Q(Ft.data),Ft.data)),st=Ft.title,_t=Ft.key,xe=Ft.isStart,_e=Ft.isEnd;delete Ke.children;var et=(0,Ze.H8)(_t,yt);return W.createElement(ze.Z,(0,i.Z)({},Ke,et,{title:st,active:Xe,data:Ft.data,key:_t,isStart:xe,isEnd:_e}))}))}):W.createElement(ze.Z,(0,i.Z)({domRef:nt,className:Ue,style:K},he,{active:Xe}))}),S=N;function q(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ue=oe.length,K=nt.length;if(Math.abs(Ue-K)!==1)return{add:!1,key:null};function D(Se,Ae){var Ce=new Map;Se.forEach(function(Xe){Ce.set(Xe,!0)});var ke=Ae.filter(function(Xe){return!Ce.has(Xe)});return ke.length===1?ke[0]:null}return Ue<K?{add:!0,key:D(oe,nt)}:{add:!1,key:D(nt,oe)}}function te(oe,nt,Ue){var K=oe.findIndex(function(Ce){return Ce.key===Ue}),D=oe[K+1],Se=nt.findIndex(function(Ce){return Ce.key===Ue});if(D){var Ae=nt.findIndex(function(Ce){return Ce.key===D.key});return nt.slice(Se+1,Ae)}return nt.slice(Se+1)}var se=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],w={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},I=function(){},de="RC_TREE_MOTION_".concat(Math.random()),De={key:de},dt={key:de,level:0,index:0,pos:"0",node:De,nodes:[De]},It={parent:null,children:[],pos:dt.pos,data:De,title:null,key:de,isStart:[],isEnd:[]};function Te(oe,nt,Ue,K){return nt===!1||!Ue?oe:oe.slice(0,Math.ceil(Ue/K)+1)}function rt(oe){var nt=oe.key,Ue=oe.pos;return(0,Ze.km)(nt,Ue)}function ht(oe){for(var nt=String(oe.data.key),Ue=oe;Ue.parent;)Ue=Ue.parent,nt="".concat(Ue.data.key," > ").concat(nt);return nt}var St=W.forwardRef(function(oe,nt){var Ue=oe.prefixCls,K=oe.data,D=oe.selectable,Se=oe.checkable,Ae=oe.expandedKeys,Ce=oe.selectedKeys,ke=oe.checkedKeys,Xe=oe.loadedKeys,yt=oe.loadingKeys,he=oe.halfCheckedKeys,me=oe.keyEntities,Lt=oe.disabled,Ct=oe.dragging,Nt=oe.dragOverNodeKey,kt=oe.dropPosition,pt=oe.motion,Vt=oe.height,Zt=oe.itemHeight,Re=oe.virtual,gt=oe.scrollWidth,E=oe.focusable,R=oe.activeItem,at=oe.focused,ae=oe.tabIndex,Y=oe.onKeyDown,Ft=oe.onFocus,Ke=oe.onBlur,st=oe.onActiveChange,_t=oe.onListChangeStart,xe=oe.onListChangeEnd,_e=(0,A.Z)(oe,se),et=W.useRef(null),Qe=W.useRef(null);W.useImperativeHandle(nt,function(){return{scrollTo:function(Gt){et.current.scrollTo(Gt)},getIndentWidth:function(){return Qe.current.offsetWidth}}});var z=W.useState(Ae),Rt=(0,P.Z)(z,2),ge=Rt[0],Ht=Rt[1],cn=W.useState(K),mt=(0,P.Z)(cn,2),ne=mt[0],we=mt[1],B=W.useState(K),xt=(0,P.Z)(B,2),lt=xt[0],ot=xt[1],$t=W.useState([]),Bt=(0,P.Z)($t,2),zt=Bt[0],re=Bt[1],ve=W.useState(null),wt=(0,P.Z)(ve,2),Ne=wt[0],Be=wt[1],ue=W.useRef(K);ue.current=K;function Ie(){var ut=ue.current;we(ut),ot(ut),re([]),Be(null),xe()}(0,ce.Z)(function(){Ht(Ae);var ut=q(ge,Ae);if(ut.key!==null)if(ut.add){var Gt=ne.findIndex(function(Jt){var Ge=Jt.key;return Ge===ut.key}),sn=Te(te(ne,K,ut.key),Re,Vt,Zt),je=ne.slice();je.splice(Gt+1,0,It),ot(je),re(sn),Be("show")}else{var ct=K.findIndex(function(Jt){var Ge=Jt.key;return Ge===ut.key}),Dt=Te(te(K,ne,ut.key),Re,Vt,Zt),qt=K.slice();qt.splice(ct+1,0,It),ot(qt),re(Dt),Be("hide")}else ne!==K&&(we(K),ot(K))},[Ae,K]),W.useEffect(function(){Ct||Ie()},[Ct]);var Fe=pt?lt:K,$e={expandedKeys:Ae,selectedKeys:Ce,loadedKeys:Xe,loadingKeys:yt,checkedKeys:ke,halfCheckedKeys:he,dragOverNodeKey:Nt,dropPosition:kt,keyEntities:me};return W.createElement(W.Fragment,null,at&&R&&W.createElement("span",{style:w,"aria-live":"assertive"},ht(R)),W.createElement("div",null,W.createElement("input",{style:w,disabled:E===!1||Lt,tabIndex:E!==!1?ae:null,onKeyDown:Y,onFocus:Ft,onBlur:Ke,value:"",onChange:I,"aria-label":"for screen reader"})),W.createElement("div",{className:"".concat(Ue,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},W.createElement("div",{className:"".concat(Ue,"-indent")},W.createElement("div",{ref:Qe,className:"".concat(Ue,"-indent-unit")}))),W.createElement(Ee.Z,(0,i.Z)({},_e,{data:Fe,itemKey:rt,height:Vt,fullHeight:!1,virtual:Re,itemHeight:Zt,scrollWidth:gt,prefixCls:"".concat(Ue,"-list"),ref:et,role:"tree",onVisibleChange:function(Gt){Gt.every(function(sn){return rt(sn)!==de})&&Ie()}}),function(ut){var Gt=ut.pos,sn=Object.assign({},(Q(ut.data),ut.data)),je=ut.title,ct=ut.key,Dt=ut.isStart,qt=ut.isEnd,Jt=(0,Ze.km)(ct,Gt);delete sn.key,delete sn.children;var Ge=(0,Ze.H8)(Jt,$e);return W.createElement(S,(0,i.Z)({},sn,Ge,{title:je,active:!!R&&ct===R.key,pos:Gt,data:ut.data,isStart:Dt,isEnd:qt,motion:pt,motionNodes:ct===de?zt:null,motionType:Ne,onMotionStart:_t,onMotionEnd:Ie,treeNodeRequiredProps:$e,onMouseMove:function(){st(null)}}))}))}),Me=St,Xt=u(82661),tt=u(34643),un=u(65065),vt=10,bt=function(oe){(0,V.Z)(Ue,oe);var nt=(0,l.Z)(Ue);function Ue(){var K;(0,Z.Z)(this,Ue);for(var D=arguments.length,Se=new Array(D),Ae=0;Ae<D;Ae++)Se[Ae]=arguments[Ae];return K=nt.call.apply(nt,[this].concat(Se)),(0,y.Z)((0,H.Z)(K),"destroyed",!1),(0,y.Z)((0,H.Z)(K),"delayedDragEnterLogic",void 0),(0,y.Z)((0,H.Z)(K),"loadingRetryTimes",{}),(0,y.Z)((0,H.Z)(K),"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,Ze.w$)()}),(0,y.Z)((0,H.Z)(K),"dragStartMousePosition",null),(0,y.Z)((0,H.Z)(K),"dragNodeProps",null),(0,y.Z)((0,H.Z)(K),"currentMouseOverDroppableNodeKey",null),(0,y.Z)((0,H.Z)(K),"listRef",W.createRef()),(0,y.Z)((0,H.Z)(K),"onNodeDragStart",function(Ce,ke){var Xe=K.state,yt=Xe.expandedKeys,he=Xe.keyEntities,me=K.props.onDragStart,Lt=ke.eventKey;K.dragNodeProps=ke,K.dragStartMousePosition={x:Ce.clientX,y:Ce.clientY};var Ct=(0,Xt._5)(yt,Lt);K.setState({draggingNodeKey:Lt,dragChildrenKeys:(0,Xt.wA)(Lt,he),indent:K.listRef.current.getIndentWidth()}),K.setExpandedKeys(Ct),window.addEventListener("dragend",K.onWindowDragEnd),me==null||me({event:Ce,node:(0,Ze.F)(ke)})}),(0,y.Z)((0,H.Z)(K),"onNodeDragEnter",function(Ce,ke){var Xe=K.state,yt=Xe.expandedKeys,he=Xe.keyEntities,me=Xe.dragChildrenKeys,Lt=Xe.flattenNodes,Ct=Xe.indent,Nt=K.props,kt=Nt.onDragEnter,pt=Nt.onExpand,Vt=Nt.allowDrop,Zt=Nt.direction,Re=ke.pos,gt=ke.eventKey;if(K.currentMouseOverDroppableNodeKey!==gt&&(K.currentMouseOverDroppableNodeKey=gt),!K.dragNodeProps){K.resetDragState();return}var E=(0,Xt.OM)(Ce,K.dragNodeProps,ke,Ct,K.dragStartMousePosition,Vt,Lt,he,yt,Zt),R=E.dropPosition,at=E.dropLevelOffset,ae=E.dropTargetKey,Y=E.dropContainerKey,Ft=E.dropTargetPos,Ke=E.dropAllowed,st=E.dragOverNodeKey;if(me.includes(ae)||!Ke){K.resetDragState();return}if(K.delayedDragEnterLogic||(K.delayedDragEnterLogic={}),Object.keys(K.delayedDragEnterLogic).forEach(function(_t){clearTimeout(K.delayedDragEnterLogic[_t])}),K.dragNodeProps.eventKey!==ke.eventKey&&(Ce.persist(),K.delayedDragEnterLogic[Re]=window.setTimeout(function(){if(K.state.draggingNodeKey!==null){var _t=(0,fe.Z)(yt),xe=(0,un.Z)(he,ke.eventKey);xe&&(xe.children||[]).length&&(_t=(0,Xt.L0)(yt,ke.eventKey)),K.props.hasOwnProperty("expandedKeys")||K.setExpandedKeys(_t),pt==null||pt(_t,{node:(0,Ze.F)(ke),expanded:!0,nativeEvent:Ce.nativeEvent})}},800)),K.dragNodeProps.eventKey===ae&&at===0){K.resetDragState();return}K.setState({dragOverNodeKey:st,dropPosition:R,dropLevelOffset:at,dropTargetKey:ae,dropContainerKey:Y,dropTargetPos:Ft,dropAllowed:Ke}),kt==null||kt({event:Ce,node:(0,Ze.F)(ke),expandedKeys:yt})}),(0,y.Z)((0,H.Z)(K),"onNodeDragOver",function(Ce,ke){var Xe=K.state,yt=Xe.dragChildrenKeys,he=Xe.flattenNodes,me=Xe.keyEntities,Lt=Xe.expandedKeys,Ct=Xe.indent,Nt=K.props,kt=Nt.onDragOver,pt=Nt.allowDrop,Vt=Nt.direction;if(K.dragNodeProps){var Zt=(0,Xt.OM)(Ce,K.dragNodeProps,ke,Ct,K.dragStartMousePosition,pt,he,me,Lt,Vt),Re=Zt.dropPosition,gt=Zt.dropLevelOffset,E=Zt.dropTargetKey,R=Zt.dropContainerKey,at=Zt.dropTargetPos,ae=Zt.dropAllowed,Y=Zt.dragOverNodeKey;yt.includes(E)||!ae||(K.dragNodeProps.eventKey===E&&gt===0?K.state.dropPosition===null&&K.state.dropLevelOffset===null&&K.state.dropTargetKey===null&&K.state.dropContainerKey===null&&K.state.dropTargetPos===null&&K.state.dropAllowed===!1&&K.state.dragOverNodeKey===null||K.resetDragState():Re===K.state.dropPosition&&gt===K.state.dropLevelOffset&&E===K.state.dropTargetKey&&R===K.state.dropContainerKey&&at===K.state.dropTargetPos&&ae===K.state.dropAllowed&&Y===K.state.dragOverNodeKey||K.setState({dropPosition:Re,dropLevelOffset:gt,dropTargetKey:E,dropContainerKey:R,dropTargetPos:at,dropAllowed:ae,dragOverNodeKey:Y}),kt==null||kt({event:Ce,node:(0,Ze.F)(ke)}))}}),(0,y.Z)((0,H.Z)(K),"onNodeDragLeave",function(Ce,ke){K.currentMouseOverDroppableNodeKey===ke.eventKey&&!Ce.currentTarget.contains(Ce.relatedTarget)&&(K.resetDragState(),K.currentMouseOverDroppableNodeKey=null);var Xe=K.props.onDragLeave;Xe==null||Xe({event:Ce,node:(0,Ze.F)(ke)})}),(0,y.Z)((0,H.Z)(K),"onWindowDragEnd",function(Ce){K.onNodeDragEnd(Ce,null,!0),window.removeEventListener("dragend",K.onWindowDragEnd)}),(0,y.Z)((0,H.Z)(K),"onNodeDragEnd",function(Ce,ke){var Xe=K.props.onDragEnd;K.setState({dragOverNodeKey:null}),K.cleanDragState(),Xe==null||Xe({event:Ce,node:(0,Ze.F)(ke)}),K.dragNodeProps=null,window.removeEventListener("dragend",K.onWindowDragEnd)}),(0,y.Z)((0,H.Z)(K),"onNodeDrop",function(Ce,ke){var Xe,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,he=K.state,me=he.dragChildrenKeys,Lt=he.dropPosition,Ct=he.dropTargetKey,Nt=he.dropTargetPos,kt=he.dropAllowed;if(kt){var pt=K.props.onDrop;if(K.setState({dragOverNodeKey:null}),K.cleanDragState(),Ct!==null){var Vt=(0,O.Z)((0,O.Z)({},(0,Ze.H8)(Ct,K.getTreeNodeRequiredProps())),{},{active:((Xe=K.getActiveItem())===null||Xe===void 0?void 0:Xe.key)===Ct,data:(0,un.Z)(K.state.keyEntities,Ct).node}),Zt=me.includes(Ct);(0,$.ZP)(!Zt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Re=(0,Xt.yx)(Nt),gt={event:Ce,node:(0,Ze.F)(Vt),dragNode:K.dragNodeProps?(0,Ze.F)(K.dragNodeProps):null,dragNodesKeys:[K.dragNodeProps.eventKey].concat(me),dropToGap:Lt!==0,dropPosition:Lt+Number(Re[Re.length-1])};yt||pt==null||pt(gt),K.dragNodeProps=null}}}),(0,y.Z)((0,H.Z)(K),"cleanDragState",function(){var Ce=K.state.draggingNodeKey;Ce!==null&&K.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),K.dragStartMousePosition=null,K.currentMouseOverDroppableNodeKey=null}),(0,y.Z)((0,H.Z)(K),"triggerExpandActionExpand",function(Ce,ke){var Xe=K.state,yt=Xe.expandedKeys,he=Xe.flattenNodes,me=ke.expanded,Lt=ke.key,Ct=ke.isLeaf;if(!(Ct||Ce.shiftKey||Ce.metaKey||Ce.ctrlKey)){var Nt=he.filter(function(pt){return pt.key===Lt})[0],kt=(0,Ze.F)((0,O.Z)((0,O.Z)({},(0,Ze.H8)(Lt,K.getTreeNodeRequiredProps())),{},{data:Nt.data}));K.setExpandedKeys(me?(0,Xt._5)(yt,Lt):(0,Xt.L0)(yt,Lt)),K.onNodeExpand(Ce,kt)}}),(0,y.Z)((0,H.Z)(K),"onNodeClick",function(Ce,ke){var Xe=K.props,yt=Xe.onClick,he=Xe.expandAction;he==="click"&&K.triggerExpandActionExpand(Ce,ke),yt==null||yt(Ce,ke)}),(0,y.Z)((0,H.Z)(K),"onNodeDoubleClick",function(Ce,ke){var Xe=K.props,yt=Xe.onDoubleClick,he=Xe.expandAction;he==="doubleClick"&&K.triggerExpandActionExpand(Ce,ke),yt==null||yt(Ce,ke)}),(0,y.Z)((0,H.Z)(K),"onNodeSelect",function(Ce,ke){var Xe=K.state.selectedKeys,yt=K.state,he=yt.keyEntities,me=yt.fieldNames,Lt=K.props,Ct=Lt.onSelect,Nt=Lt.multiple,kt=ke.selected,pt=ke[me.key],Vt=!kt;Vt?Nt?Xe=(0,Xt.L0)(Xe,pt):Xe=[pt]:Xe=(0,Xt._5)(Xe,pt);var Zt=Xe.map(function(Re){var gt=(0,un.Z)(he,Re);return gt?gt.node:null}).filter(Boolean);K.setUncontrolledState({selectedKeys:Xe}),Ct==null||Ct(Xe,{event:"select",selected:Vt,node:ke,selectedNodes:Zt,nativeEvent:Ce.nativeEvent})}),(0,y.Z)((0,H.Z)(K),"onNodeCheck",function(Ce,ke,Xe){var yt=K.state,he=yt.keyEntities,me=yt.checkedKeys,Lt=yt.halfCheckedKeys,Ct=K.props,Nt=Ct.checkStrictly,kt=Ct.onCheck,pt=ke.key,Vt,Zt={event:"check",node:ke,checked:Xe,nativeEvent:Ce.nativeEvent};if(Nt){var Re=Xe?(0,Xt.L0)(me,pt):(0,Xt._5)(me,pt),gt=(0,Xt._5)(Lt,pt);Vt={checked:Re,halfChecked:gt},Zt.checkedNodes=Re.map(function(Ft){return(0,un.Z)(he,Ft)}).filter(Boolean).map(function(Ft){return Ft.node}),K.setUncontrolledState({checkedKeys:Re})}else{var E=(0,tt.S)([].concat((0,fe.Z)(me),[pt]),!0,he),R=E.checkedKeys,at=E.halfCheckedKeys;if(!Xe){var ae=new Set(R);ae.delete(pt);var Y=(0,tt.S)(Array.from(ae),{checked:!1,halfCheckedKeys:at},he);R=Y.checkedKeys,at=Y.halfCheckedKeys}Vt=R,Zt.checkedNodes=[],Zt.checkedNodesPositions=[],Zt.halfCheckedKeys=at,R.forEach(function(Ft){var Ke=(0,un.Z)(he,Ft);if(Ke){var st=Ke.node,_t=Ke.pos;Zt.checkedNodes.push(st),Zt.checkedNodesPositions.push({node:st,pos:_t})}}),K.setUncontrolledState({checkedKeys:R},!1,{halfCheckedKeys:at})}kt==null||kt(Vt,Zt)}),(0,y.Z)((0,H.Z)(K),"onNodeLoad",function(Ce){var ke,Xe=Ce.key,yt=K.state.keyEntities,he=(0,un.Z)(yt,Xe);if(!(he!=null&&(ke=he.children)!==null&&ke!==void 0&&ke.length)){var me=new Promise(function(Lt,Ct){K.setState(function(Nt){var kt=Nt.loadedKeys,pt=kt===void 0?[]:kt,Vt=Nt.loadingKeys,Zt=Vt===void 0?[]:Vt,Re=K.props,gt=Re.loadData,E=Re.onLoad;if(!gt||pt.includes(Xe)||Zt.includes(Xe))return null;var R=gt(Ce);return R.then(function(){var at=K.state.loadedKeys,ae=(0,Xt.L0)(at,Xe);E==null||E(ae,{event:"load",node:Ce}),K.setUncontrolledState({loadedKeys:ae}),K.setState(function(Y){return{loadingKeys:(0,Xt._5)(Y.loadingKeys,Xe)}}),Lt()}).catch(function(at){if(K.setState(function(Y){return{loadingKeys:(0,Xt._5)(Y.loadingKeys,Xe)}}),K.loadingRetryTimes[Xe]=(K.loadingRetryTimes[Xe]||0)+1,K.loadingRetryTimes[Xe]>=vt){var ae=K.state.loadedKeys;(0,$.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),K.setUncontrolledState({loadedKeys:(0,Xt.L0)(ae,Xe)}),Lt()}Ct(at)}),{loadingKeys:(0,Xt.L0)(Zt,Xe)}})});return me.catch(function(){}),me}}),(0,y.Z)((0,H.Z)(K),"onNodeMouseEnter",function(Ce,ke){var Xe=K.props.onMouseEnter;Xe==null||Xe({event:Ce,node:ke})}),(0,y.Z)((0,H.Z)(K),"onNodeMouseLeave",function(Ce,ke){var Xe=K.props.onMouseLeave;Xe==null||Xe({event:Ce,node:ke})}),(0,y.Z)((0,H.Z)(K),"onNodeContextMenu",function(Ce,ke){var Xe=K.props.onRightClick;Xe&&(Ce.preventDefault(),Xe({event:Ce,node:ke}))}),(0,y.Z)((0,H.Z)(K),"onFocus",function(){var Ce=K.props.onFocus;K.setState({focused:!0});for(var ke=arguments.length,Xe=new Array(ke),yt=0;yt<ke;yt++)Xe[yt]=arguments[yt];Ce==null||Ce.apply(void 0,Xe)}),(0,y.Z)((0,H.Z)(K),"onBlur",function(){var Ce=K.props.onBlur;K.setState({focused:!1}),K.onActiveChange(null);for(var ke=arguments.length,Xe=new Array(ke),yt=0;yt<ke;yt++)Xe[yt]=arguments[yt];Ce==null||Ce.apply(void 0,Xe)}),(0,y.Z)((0,H.Z)(K),"getTreeNodeRequiredProps",function(){var Ce=K.state,ke=Ce.expandedKeys,Xe=Ce.selectedKeys,yt=Ce.loadedKeys,he=Ce.loadingKeys,me=Ce.checkedKeys,Lt=Ce.halfCheckedKeys,Ct=Ce.dragOverNodeKey,Nt=Ce.dropPosition,kt=Ce.keyEntities;return{expandedKeys:ke||[],selectedKeys:Xe||[],loadedKeys:yt||[],loadingKeys:he||[],checkedKeys:me||[],halfCheckedKeys:Lt||[],dragOverNodeKey:Ct,dropPosition:Nt,keyEntities:kt}}),(0,y.Z)((0,H.Z)(K),"setExpandedKeys",function(Ce){var ke=K.state,Xe=ke.treeData,yt=ke.fieldNames,he=(0,Ze.oH)(Xe,Ce,yt);K.setUncontrolledState({expandedKeys:Ce,flattenNodes:he},!0)}),(0,y.Z)((0,H.Z)(K),"onNodeExpand",function(Ce,ke){var Xe=K.state.expandedKeys,yt=K.state,he=yt.listChanging,me=yt.fieldNames,Lt=K.props,Ct=Lt.onExpand,Nt=Lt.loadData,kt=ke.expanded,pt=ke[me.key];if(!he){var Vt=Xe.includes(pt),Zt=!kt;if((0,$.ZP)(kt&&Vt||!kt&&!Vt,"Expand state not sync with index check"),Xe=Zt?(0,Xt.L0)(Xe,pt):(0,Xt._5)(Xe,pt),K.setExpandedKeys(Xe),Ct==null||Ct(Xe,{node:ke,expanded:Zt,nativeEvent:Ce.nativeEvent}),Zt&&Nt){var Re=K.onNodeLoad(ke);Re&&Re.then(function(){var gt=(0,Ze.oH)(K.state.treeData,Xe,me);K.setUncontrolledState({flattenNodes:gt})}).catch(function(){var gt=K.state.expandedKeys,E=(0,Xt._5)(gt,pt);K.setExpandedKeys(E)})}}}),(0,y.Z)((0,H.Z)(K),"onListChangeStart",function(){K.setUncontrolledState({listChanging:!0})}),(0,y.Z)((0,H.Z)(K),"onListChangeEnd",function(){setTimeout(function(){K.setUncontrolledState({listChanging:!1})})}),(0,y.Z)((0,H.Z)(K),"onActiveChange",function(Ce){var ke=K.state.activeKey,Xe=K.props,yt=Xe.onActiveChange,he=Xe.itemScrollOffset,me=he===void 0?0:he;ke!==Ce&&(K.setState({activeKey:Ce}),Ce!==null&&K.scrollTo({key:Ce,offset:me}),yt==null||yt(Ce))}),(0,y.Z)((0,H.Z)(K),"getActiveItem",function(){var Ce=K.state,ke=Ce.activeKey,Xe=Ce.flattenNodes;return ke===null?null:Xe.find(function(yt){var he=yt.key;return he===ke})||null}),(0,y.Z)((0,H.Z)(K),"offsetActiveKey",function(Ce){var ke=K.state,Xe=ke.flattenNodes,yt=ke.activeKey,he=Xe.findIndex(function(Ct){var Nt=Ct.key;return Nt===yt});he===-1&&Ce<0&&(he=Xe.length),he=(he+Ce+Xe.length)%Xe.length;var me=Xe[he];if(me){var Lt=me.key;K.onActiveChange(Lt)}else K.onActiveChange(null)}),(0,y.Z)((0,H.Z)(K),"onKeyDown",function(Ce){var ke=K.state,Xe=ke.activeKey,yt=ke.expandedKeys,he=ke.checkedKeys,me=ke.fieldNames,Lt=K.props,Ct=Lt.onKeyDown,Nt=Lt.checkable,kt=Lt.selectable;switch(Ce.which){case C.Z.UP:{K.offsetActiveKey(-1),Ce.preventDefault();break}case C.Z.DOWN:{K.offsetActiveKey(1),Ce.preventDefault();break}}var pt=K.getActiveItem();if(pt&&pt.data){var Vt=K.getTreeNodeRequiredProps(),Zt=pt.data.isLeaf===!1||!!(pt.data[me.children]||[]).length,Re=(0,Ze.F)((0,O.Z)((0,O.Z)({},(0,Ze.H8)(Xe,Vt)),{},{data:pt.data,active:!0}));switch(Ce.which){case C.Z.LEFT:{Zt&&yt.includes(Xe)?K.onNodeExpand({},Re):pt.parent&&K.onActiveChange(pt.parent.key),Ce.preventDefault();break}case C.Z.RIGHT:{Zt&&!yt.includes(Xe)?K.onNodeExpand({},Re):pt.children&&pt.children.length&&K.onActiveChange(pt.children[0].key),Ce.preventDefault();break}case C.Z.ENTER:case C.Z.SPACE:{Nt&&!Re.disabled&&Re.checkable!==!1&&!Re.disableCheckbox?K.onNodeCheck({},Re,!he.includes(Xe)):!Nt&&kt&&!Re.disabled&&Re.selectable!==!1&&K.onNodeSelect({},Re);break}}}Ct==null||Ct(Ce)}),(0,y.Z)((0,H.Z)(K),"setUncontrolledState",function(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!K.destroyed){var yt=!1,he=!0,me={};Object.keys(Ce).forEach(function(Lt){if(K.props.hasOwnProperty(Lt)){he=!1;return}yt=!0,me[Lt]=Ce[Lt]}),yt&&(!ke||he)&&K.setState((0,O.Z)((0,O.Z)({},me),Xe))}}),(0,y.Z)((0,H.Z)(K),"scrollTo",function(Ce){K.listRef.current.scrollTo(Ce)}),K}return(0,g.Z)(Ue,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var D=this.props,Se=D.activeKey,Ae=D.itemScrollOffset,Ce=Ae===void 0?0:Ae;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:Ce}))}},{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 D=this.state,Se=D.focused,Ae=D.flattenNodes,Ce=D.keyEntities,ke=D.draggingNodeKey,Xe=D.activeKey,yt=D.dropLevelOffset,he=D.dropContainerKey,me=D.dropTargetKey,Lt=D.dropPosition,Ct=D.dragOverNodeKey,Nt=D.indent,kt=this.props,pt=kt.prefixCls,Vt=kt.className,Zt=kt.style,Re=kt.showLine,gt=kt.focusable,E=kt.tabIndex,R=E===void 0?0:E,at=kt.selectable,ae=kt.showIcon,Y=kt.icon,Ft=kt.switcherIcon,Ke=kt.draggable,st=kt.checkable,_t=kt.checkStrictly,xe=kt.disabled,_e=kt.motion,et=kt.loadData,Qe=kt.filterTreeNode,z=kt.height,Rt=kt.itemHeight,ge=kt.scrollWidth,Ht=kt.virtual,cn=kt.titleRender,mt=kt.dropIndicatorRender,ne=kt.onContextMenu,we=kt.onScroll,B=kt.direction,xt=kt.rootClassName,lt=kt.rootStyle,ot=(0,T.Z)(this.props,{aria:!0,data:!0}),$t;Ke&&((0,U.Z)(Ke)==="object"?$t=Ke:typeof Ke=="function"?$t={nodeDraggable:Ke}:$t={});var Bt={prefixCls:pt,selectable:at,showIcon:ae,icon:Y,switcherIcon:Ft,draggable:$t,draggingNodeKey:ke,checkable:st,checkStrictly:_t,disabled:xe,keyEntities:Ce,dropLevelOffset:yt,dropContainerKey:he,dropTargetKey:me,dropPosition:Lt,dragOverNodeKey:Ct,indent:Nt,direction:B,dropIndicatorRender:mt,loadData:et,filterTreeNode:Qe,titleRender:cn,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};return W.createElement(X.k.Provider,{value:Bt},W.createElement("div",{className:b()(pt,Vt,xt,(0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(pt,"-show-line"),Re),"".concat(pt,"-focused"),Se),"".concat(pt,"-active-focused"),Xe!==null)),style:lt},W.createElement(Me,(0,i.Z)({ref:this.listRef,prefixCls:pt,style:Zt,data:Ae,disabled:xe,selectable:at,checkable:!!st,motion:_e,dragging:ke!==null,height:z,itemHeight:Rt,virtual:Ht,focusable:gt,focused:Se,tabIndex:R,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ne,onScroll:we,scrollWidth:ge},this.getTreeNodeRequiredProps(),ot))))}}],[{key:"getDerivedStateFromProps",value:function(D,Se){var Ae=Se.prevProps,Ce={prevProps:D};function ke(R){return!Ae&&D.hasOwnProperty(R)||Ae&&Ae[R]!==D[R]}var Xe,yt=Se.fieldNames;if(ke("fieldNames")&&(yt=(0,Ze.w$)(D.fieldNames),Ce.fieldNames=yt),ke("treeData")?Xe=D.treeData:ke("children")&&((0,$.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Xe=(0,Ze.zn)(D.children)),Xe){Ce.treeData=Xe;var he=(0,Ze.I8)(Xe,{fieldNames:yt});Ce.keyEntities=(0,O.Z)((0,y.Z)({},de,dt),he.keyEntities)}var me=Ce.keyEntities||Se.keyEntities;if(ke("expandedKeys")||Ae&&ke("autoExpandParent"))Ce.expandedKeys=D.autoExpandParent||!Ae&&D.defaultExpandParent?(0,Xt.r7)(D.expandedKeys,me):D.expandedKeys;else if(!Ae&&D.defaultExpandAll){var Lt=(0,O.Z)({},me);delete Lt[de];var Ct=[];Object.keys(Lt).forEach(function(R){var at=Lt[R];at.children&&at.children.length&&Ct.push(at.key)}),Ce.expandedKeys=Ct}else!Ae&&D.defaultExpandedKeys&&(Ce.expandedKeys=D.autoExpandParent||D.defaultExpandParent?(0,Xt.r7)(D.defaultExpandedKeys,me):D.defaultExpandedKeys);if(Ce.expandedKeys||delete Ce.expandedKeys,Xe||Ce.expandedKeys){var Nt=(0,Ze.oH)(Xe||Se.treeData,Ce.expandedKeys||Se.expandedKeys,yt);Ce.flattenNodes=Nt}if(D.selectable&&(ke("selectedKeys")?Ce.selectedKeys=(0,Xt.BT)(D.selectedKeys,D):!Ae&&D.defaultSelectedKeys&&(Ce.selectedKeys=(0,Xt.BT)(D.defaultSelectedKeys,D))),D.checkable){var kt;if(ke("checkedKeys")?kt=(0,Xt.E6)(D.checkedKeys)||{}:!Ae&&D.defaultCheckedKeys?kt=(0,Xt.E6)(D.defaultCheckedKeys)||{}:Xe&&(kt=(0,Xt.E6)(D.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),kt){var pt=kt,Vt=pt.checkedKeys,Zt=Vt===void 0?[]:Vt,Re=pt.halfCheckedKeys,gt=Re===void 0?[]:Re;if(!D.checkStrictly){var E=(0,tt.S)(Zt,!0,me);Zt=E.checkedKeys,gt=E.halfCheckedKeys}Ce.checkedKeys=Zt,Ce.halfCheckedKeys=gt}}return ke("loadedKeys")&&(Ce.loadedKeys=D.loadedKeys),Ce}}]),Ue}(W.Component);(0,y.Z)(bt,"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:L,allowDrop:function(){return!0},expandAction:!1}),(0,y.Z)(bt,"TreeNode",ze.Z);var Ve=bt,Le=Ve},82661:function(zn,Pt,u){"use strict";u.d(Pt,{BT:function(){return W},E6:function(){return L},L0:function(){return y},OM:function(){return $},_5:function(){return l},r7:function(){return Q},wA:function(){return b},yx:function(){return M}});var i=u(94480),U=u(76190),O=u(48736),fe=u(59301),Z=u(639),g=u(65065),H=u(34061),V=null;function l(P,A){if(!P)return[];var ce=P.slice(),Ee=ce.indexOf(A);return Ee>=0&&ce.splice(Ee,1),ce}function y(P,A){var ce=(P||[]).slice();return ce.indexOf(A)===-1&&ce.push(A),ce}function M(P){return P.split("-")}function b(P,A){var ce=[],Ee=(0,g.Z)(A,P);function pe(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ze.forEach(function(Je){var Pe=Je.key,Ze=Je.children;ce.push(Pe),pe(Ze)})}return pe(Ee.children),ce}function C(P){if(P.parent){var A=M(P.pos);return Number(A[A.length-1])===P.parent.children.length-1}return!1}function T(P){var A=M(P.pos);return Number(A[A.length-1])===0}function $(P,A,ce,Ee,pe,ze,Je,Pe,Ze,le){var N,S=P.clientX,q=P.clientY,te=P.target.getBoundingClientRect(),se=te.top,w=te.height,I=(le==="rtl"?-1:1)*(((pe==null?void 0:pe.x)||0)-S),de=(I-12)/Ee,De=Ze.filter(function(Le){var oe;return(oe=Pe[Le])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),dt=(0,g.Z)(Pe,ce.eventKey);if(q<se+w/2){var It=Je.findIndex(function(Le){return Le.key===dt.key}),Te=It<=0?0:It-1,rt=Je[Te].key;dt=(0,g.Z)(Pe,rt)}var ht=dt.key,St=dt,Me=dt.key,Xt=0,tt=0;if(!De.includes(ht))for(var un=0;un<de&&C(dt);un+=1)dt=dt.parent,tt+=1;var vt=A.data,bt=dt.node,Ve=!0;return T(dt)&&dt.level===0&&q<se+w/2&&ze({dragNode:vt,dropNode:bt,dropPosition:-1})&&dt.key===ce.eventKey?Xt=-1:(St.children||[]).length&&De.includes(Me)?ze({dragNode:vt,dropNode:bt,dropPosition:0})?Xt=0:Ve=!1:tt===0?de>-1.5?ze({dragNode:vt,dropNode:bt,dropPosition:1})?Xt=1:Ve=!1:ze({dragNode:vt,dropNode:bt,dropPosition:0})?Xt=0:ze({dragNode:vt,dropNode:bt,dropPosition:1})?Xt=1:Ve=!1:ze({dragNode:vt,dropNode:bt,dropPosition:1})?Xt=1:Ve=!1,{dropPosition:Xt,dropLevelOffset:tt,dropTargetKey:dt.key,dropTargetPos:dt.pos,dragOverNodeKey:Me,dropContainerKey:Xt===0?null:((N=dt.parent)===null||N===void 0?void 0:N.key)||null,dropAllowed:Ve}}function W(P,A){if(P){var ce=A.multiple;return ce?P.slice():P.length?[P[0]]:P}}var X=function(A){return A};function G(P,A){if(!P)return[];var ce=A||{},Ee=ce.processProps,pe=Ee===void 0?X:Ee,ze=Array.isArray(P)?P:[P];return ze.map(function(Je){var Pe=Je.children,Ze=_objectWithoutProperties(Je,V),le=G(Pe,A);return React.createElement(TreeNode,_extends({key:Ze.key},pe(Ze)),le)})}function L(P){if(!P)return null;var A;if(Array.isArray(P))A={checkedKeys:P,halfCheckedKeys:void 0};else if((0,U.Z)(P)==="object")A={checkedKeys:P.checked||void 0,halfCheckedKeys:P.halfChecked||void 0};else return(0,O.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return A}function Q(P,A){var ce=new Set;function Ee(pe){if(!ce.has(pe)){var ze=(0,g.Z)(A,pe);if(ze){ce.add(pe);var Je=ze.parent,Pe=ze.node;Pe.disabled||Je&&Ee(Je.key)}}}return(P||[]).forEach(function(pe){Ee(pe)}),(0,i.Z)(ce)}},34643:function(zn,Pt,u){"use strict";u.d(Pt,{S:function(){return H}});var i=u(48736),U=u(65065);function O(V,l){var y=new Set;return V.forEach(function(M){l.has(M)||y.add(M)}),y}function fe(V){var l=V||{},y=l.disabled,M=l.disableCheckbox,b=l.checkable;return!!(y||M)||b===!1}function Z(V,l,y,M){for(var b=new Set(V),C=new Set,T=0;T<=y;T+=1){var $=l.get(T)||new Set;$.forEach(function(L){var Q=L.key,P=L.node,A=L.children,ce=A===void 0?[]:A;b.has(Q)&&!M(P)&&ce.filter(function(Ee){return!M(Ee.node)}).forEach(function(Ee){b.add(Ee.key)})})}for(var W=new Set,X=y;X>=0;X-=1){var G=l.get(X)||new Set;G.forEach(function(L){var Q=L.parent,P=L.node;if(!(M(P)||!L.parent||W.has(L.parent.key))){if(M(L.parent.node)){W.add(Q.key);return}var A=!0,ce=!1;(Q.children||[]).filter(function(Ee){return!M(Ee.node)}).forEach(function(Ee){var pe=Ee.key,ze=b.has(pe);A&&!ze&&(A=!1),!ce&&(ze||C.has(pe))&&(ce=!0)}),A&&b.add(Q.key),ce&&C.add(Q.key),W.add(Q.key)}})}return{checkedKeys:Array.from(b),halfCheckedKeys:Array.from(O(C,b))}}function g(V,l,y,M,b){for(var C=new Set(V),T=new Set(l),$=0;$<=M;$+=1){var W=y.get($)||new Set;W.forEach(function(Q){var P=Q.key,A=Q.node,ce=Q.children,Ee=ce===void 0?[]:ce;!C.has(P)&&!T.has(P)&&!b(A)&&Ee.filter(function(pe){return!b(pe.node)}).forEach(function(pe){C.delete(pe.key)})})}T=new Set;for(var X=new Set,G=M;G>=0;G-=1){var L=y.get(G)||new Set;L.forEach(function(Q){var P=Q.parent,A=Q.node;if(!(b(A)||!Q.parent||X.has(Q.parent.key))){if(b(Q.parent.node)){X.add(P.key);return}var ce=!0,Ee=!1;(P.children||[]).filter(function(pe){return!b(pe.node)}).forEach(function(pe){var ze=pe.key,Je=C.has(ze);ce&&!Je&&(ce=!1),!Ee&&(Je||T.has(ze))&&(Ee=!0)}),ce||C.delete(P.key),Ee&&T.add(P.key),X.add(P.key)}})}return{checkedKeys:Array.from(C),halfCheckedKeys:Array.from(O(T,C))}}function H(V,l,y,M){var b=[],C;M?C=M:C=fe;var T=new Set(V.filter(function(G){var L=!!(0,U.Z)(y,G);return L||b.push(G),L})),$=new Map,W=0;Object.keys(y).forEach(function(G){var L=y[G],Q=L.level,P=$.get(Q);P||(P=new Set,$.set(Q,P)),P.add(L),W=Math.max(W,Q)}),(0,i.ZP)(!b.length,"Tree missing follow keys: ".concat(b.slice(0,100).map(function(G){return"'".concat(G,"'")}).join(", ")));var X;return l===!0?X=Z(T,$,W,C):X=g(T,l.halfCheckedKeys,$,W,C),X}},65065:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return i}});function i(U,O){return U[O]}},34061:function(zn,Pt,u){"use strict";u.d(Pt,{F:function(){return Q},H8:function(){return L},I8:function(){return G},km:function(){return b},oH:function(){return W},w$:function(){return C},zn:function(){return $}});var i=u(76190),U=u(94480),O=u(33885),fe=u(75931),Z=u(11592),g=u(2738),H=u(48736),V=u(65065),l=["children"];function y(P,A){return"".concat(P,"-").concat(A)}function M(P){return P&&P.type&&P.type.isTreeNode}function b(P,A){return P!=null?P:A}function C(P){var A=P||{},ce=A.title,Ee=A._title,pe=A.key,ze=A.children,Je=ce||"title";return{title:Je,_title:Ee||[Je],key:pe||"key",children:ze||"children"}}function T(P,A){var ce=new Map;function Ee(pe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(pe||[]).forEach(function(Je){var Pe=Je[A.key],Ze=Je[A.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(ze).concat(Pe,"]"));var le=String(Pe);warning(!ce.has(le)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(le)),ce.set(le,!0),Ee(Ze,"".concat(ze).concat(le," > "))})}Ee(P)}function $(P){function A(ce){var Ee=(0,Z.Z)(ce);return Ee.map(function(pe){if(!M(pe))return(0,H.ZP)(!pe,"Tree/TreeNode can only accept TreeNode as children."),null;var ze=pe.key,Je=pe.props,Pe=Je.children,Ze=(0,fe.Z)(Je,l),le=(0,O.Z)({key:ze},Ze),N=A(Pe);return N.length&&(le.children=N),le}).filter(function(pe){return pe})}return A(P)}function W(P,A,ce){var Ee=C(ce),pe=Ee._title,ze=Ee.key,Je=Ee.children,Pe=new Set(A===!0?[]:A),Ze=[];function le(N){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function(q,te){for(var se=y(S?S.pos:"0",te),w=b(q[ze],se),I,de=0;de<pe.length;de+=1){var De=pe[de];if(q[De]!==void 0){I=q[De];break}}var dt=Object.assign((0,g.Z)(q,[].concat((0,U.Z)(pe),[ze,Je])),{title:I,key:w,parent:S,pos:se,children:null,data:q,isStart:[].concat((0,U.Z)(S?S.isStart:[]),[te===0]),isEnd:[].concat((0,U.Z)(S?S.isEnd:[]),[te===N.length-1])});return Ze.push(dt),A===!0||Pe.has(w)?dt.children=le(q[Je]||[],dt):dt.children=[],dt})}return le(P),Ze}function X(P,A,ce){var Ee={};(0,i.Z)(ce)==="object"?Ee=ce:Ee={externalGetKey:ce},Ee=Ee||{};var pe=Ee,ze=pe.childrenPropName,Je=pe.externalGetKey,Pe=pe.fieldNames,Ze=C(Pe),le=Ze.key,N=Ze.children,S=ze||N,q;Je?typeof Je=="string"?q=function(w){return w[Je]}:typeof Je=="function"&&(q=function(w){return Je(w)}):q=function(w,I){return b(w[le],I)};function te(se,w,I,de){var De=se?se[S]:P,dt=se?y(I.pos,w):"0",It=se?[].concat((0,U.Z)(de),[se]):[];if(se){var Te=q(se,dt),rt={node:se,index:w,pos:dt,key:Te,parentPos:I.node?I.pos:null,level:I.level+1,nodes:It};A(rt)}De&&De.forEach(function(ht,St){te(ht,St,{node:se,pos:dt,level:I?I.level+1:-1},It)})}te(null)}function G(P){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=A.initWrapper,Ee=A.processEntity,pe=A.onProcessFinished,ze=A.externalGetKey,Je=A.childrenPropName,Pe=A.fieldNames,Ze=arguments.length>2?arguments[2]:void 0,le=ze||Ze,N={},S={},q={posEntities:N,keyEntities:S};return ce&&(q=ce(q)||q),X(P,function(te){var se=te.node,w=te.index,I=te.pos,de=te.key,De=te.parentPos,dt=te.level,It=te.nodes,Te={node:se,nodes:It,index:w,key:de,pos:I,level:dt},rt=b(de,I);N[I]=Te,S[rt]=Te,Te.parent=N[De],Te.parent&&(Te.parent.children=Te.parent.children||[],Te.parent.children.push(Te)),Ee&&Ee(Te,q)},{externalGetKey:le,childrenPropName:Je,fieldNames:Pe}),pe&&pe(q),q}function L(P,A){var ce=A.expandedKeys,Ee=A.selectedKeys,pe=A.loadedKeys,ze=A.loadingKeys,Je=A.checkedKeys,Pe=A.halfCheckedKeys,Ze=A.dragOverNodeKey,le=A.dropPosition,N=A.keyEntities,S=(0,V.Z)(N,P),q={eventKey:P,expanded:ce.indexOf(P)!==-1,selected:Ee.indexOf(P)!==-1,loaded:pe.indexOf(P)!==-1,loading:ze.indexOf(P)!==-1,checked:Je.indexOf(P)!==-1,halfChecked:Pe.indexOf(P)!==-1,pos:String(S?S.pos:""),dragOver:Ze===P&&le===0,dragOverGapTop:Ze===P&&le===-1,dragOverGapBottom:Ze===P&&le===1};return q}function Q(P){var A=P.data,ce=P.expanded,Ee=P.selected,pe=P.checked,ze=P.loaded,Je=P.loading,Pe=P.halfChecked,Ze=P.dragOver,le=P.dragOverGapTop,N=P.dragOverGapBottom,S=P.pos,q=P.active,te=P.eventKey,se=(0,O.Z)((0,O.Z)({},A),{},{expanded:ce,selected:Ee,checked:pe,loaded:ze,loading:Je,halfChecked:Pe,dragOver:Ze,dragOverGapTop:le,dragOverGapBottom:N,pos:S,active:q,key:te});return"props"in se||Object.defineProperty(se,"props",{get:function(){return(0,H.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),P}}),se}},8224:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return U}});var i=u(4676);function U(O,fe,Z,g){var H=i.unstable_batchedUpdates?function(l){i.unstable_batchedUpdates(Z,l)}:Z;return O!=null&&O.addEventListener&&O.addEventListener(fe,H,g),{remove:function(){O!=null&&O.removeEventListener&&O.removeEventListener(fe,H,g)}}}},24514:function(zn,Pt,u){"use strict";u.d(Pt,{G:function(){return fe}});var i=u(47273),U=function(g){if((0,i.Z)()&&window.document.documentElement){var H=Array.isArray(g)?g:[g],V=window.document.documentElement;return H.some(function(l){return l in V.style})}return!1},O=function(g,H){if(!U(g))return!1;var V=document.createElement("div"),l=V.style[g];return V.style[g]=H,V.style[g]!==l};function fe(Z,g){return!Array.isArray(Z)&&g!==void 0?O(Z,g):U(Z)}},49658:function(zn,Pt){"use strict";Pt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var u=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(u)||/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(u==null?void 0:u.substr(0,4))}},48911:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return vt}});var i=u(54476),U=u(76190),O=u(33885),fe=u(20068),Z=u(42978),g=u(75931),H=u(92310),V=u.n(H),l=u(29301),y=u(70425),M=u(34280),b=u(59301),C=u(4676),T=b.forwardRef(function(bt,Ve){var Le=bt.height,oe=bt.offsetY,nt=bt.offsetX,Ue=bt.children,K=bt.prefixCls,D=bt.onInnerResize,Se=bt.innerProps,Ae=bt.rtl,Ce=bt.extra,ke={},Xe={display:"flex",flexDirection:"column"};return oe!==void 0&&(ke={height:Le,position:"relative",overflow:"hidden"},Xe=(0,O.Z)((0,O.Z)({},Xe),{},(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({transform:"translateY(".concat(oe,"px)")},Ae?"marginRight":"marginLeft",-nt),"position","absolute"),"left",0),"right",0),"top",0))),b.createElement("div",{style:ke},b.createElement(l.Z,{onResize:function(he){var me=he.offsetHeight;me&&D&&D()}},b.createElement("div",(0,i.Z)({style:Xe,className:V()((0,fe.Z)({},"".concat(K,"-holder-inner"),K)),ref:Ve},Se),Ue,Ce)))});T.displayName="Filler";var $=T;function W(bt){var Ve=bt.children,Le=bt.setRef,oe=b.useCallback(function(nt){Le(nt)},[]);return b.cloneElement(Ve,{ref:oe})}function X(bt,Ve,Le,oe,nt,Ue,K,D){var Se=D.getKey;return bt.slice(Ve,Le+1).map(function(Ae,Ce){var ke=Ve+Ce,Xe=K(Ae,ke,{style:{width:oe},offsetX:nt}),yt=Se(Ae);return b.createElement(W,{key:yt,setRef:function(me){return Ue(Ae,me)}},Xe)})}function G(bt,Ve,Le,oe){var nt=Le-bt,Ue=Ve-Le,K=Math.min(nt,Ue)*2;if(oe<=K){var D=Math.floor(oe/2);return oe%2?Le+D+1:Le-D}return nt>Ue?Le-(oe-Ue):Le+(oe-nt)}function L(bt,Ve,Le){var oe=bt.length,nt=Ve.length,Ue,K;if(oe===0&&nt===0)return null;oe<nt?(Ue=bt,K=Ve):(Ue=Ve,K=bt);var D={__EMPTY_ITEM__:!0};function Se(he){return he!==void 0?Le(he):D}for(var Ae=null,Ce=Math.abs(oe-nt)!==1,ke=0;ke<K.length;ke+=1){var Xe=Se(Ue[ke]),yt=Se(K[ke]);if(Xe!==yt){Ae=ke,Ce=Ce||Xe!==Se(K[ke+1]);break}}return Ae===null?null:{index:Ae,multiple:Ce}}function Q(bt,Ve,Le){var oe=b.useState(bt),nt=(0,Z.Z)(oe,2),Ue=nt[0],K=nt[1],D=b.useState(null),Se=(0,Z.Z)(D,2),Ae=Se[0],Ce=Se[1];return b.useEffect(function(){var ke=L(Ue||[],bt||[],Ve);(ke==null?void 0:ke.index)!==void 0&&(Le==null||Le(ke.index),Ce(bt[ke.index])),K(bt)},[bt]),[Ae]}var P=u(16089),A=(typeof navigator=="undefined"?"undefined":(0,U.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ce=A,Ee=function(bt,Ve,Le,oe){var nt=(0,b.useRef)(!1),Ue=(0,b.useRef)(null);function K(){clearTimeout(Ue.current),nt.current=!0,Ue.current=setTimeout(function(){nt.current=!1},50)}var D=(0,b.useRef)({top:bt,bottom:Ve,left:Le,right:oe});return D.current.top=bt,D.current.bottom=Ve,D.current.left=Le,D.current.right=oe,function(Se,Ae){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=Se?Ae<0&&D.current.left||Ae>0&&D.current.right:Ae<0&&D.current.top||Ae>0&&D.current.bottom;return Ce&&ke?(clearTimeout(Ue.current),nt.current=!1):(!ke||nt.current)&&K(),!nt.current&&ke}};function pe(bt,Ve,Le,oe,nt,Ue,K){var D=(0,b.useRef)(0),Se=(0,b.useRef)(null),Ae=(0,b.useRef)(null),Ce=(0,b.useRef)(!1),ke=Ee(Ve,Le,oe,nt);function Xe(Nt,kt){if(P.Z.cancel(Se.current),!ke(!1,kt)){var pt=Nt;if(!pt._virtualHandled)pt._virtualHandled=!0;else return;D.current+=kt,Ae.current=kt,ce||pt.preventDefault(),Se.current=(0,P.Z)(function(){var Vt=Ce.current?10:1;K(D.current*Vt,!1),D.current=0})}}function yt(Nt,kt){K(kt,!0),ce||Nt.preventDefault()}var he=(0,b.useRef)(null),me=(0,b.useRef)(null);function Lt(Nt){if(bt){P.Z.cancel(me.current),me.current=(0,P.Z)(function(){he.current=null},2);var kt=Nt.deltaX,pt=Nt.deltaY,Vt=Nt.shiftKey,Zt=kt,Re=pt;(he.current==="sx"||!he.current&&Vt&&pt&&!kt)&&(Zt=pt,Re=0,he.current="sx");var gt=Math.abs(Zt),E=Math.abs(Re);he.current===null&&(he.current=Ue&&gt>E?"x":"y"),he.current==="y"?Xe(Nt,Re):yt(Nt,Zt)}}function Ct(Nt){bt&&(Ce.current=Nt.detail===Ae.current)}return[Lt,Ct]}function ze(bt,Ve,Le,oe){var nt=b.useMemo(function(){return[new Map,[]]},[bt,Le.id,oe]),Ue=(0,Z.Z)(nt,2),K=Ue[0],D=Ue[1],Se=function(Ce){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ce,Xe=K.get(Ce),yt=K.get(ke);if(Xe===void 0||yt===void 0)for(var he=bt.length,me=D.length;me<he;me+=1){var Lt,Ct=bt[me],Nt=Ve(Ct);K.set(Nt,me);var kt=(Lt=Le.get(Nt))!==null&&Lt!==void 0?Lt:oe;if(D[me]=(D[me-1]||0)+kt,Nt===Ce&&(Xe=me),Nt===ke&&(yt=me),Xe!==void 0&&yt!==void 0)break}return{top:D[Xe-1]||0,bottom:D[yt]}};return Se}var Je=u(67732),Pe=u(83652),Ze=function(){function bt(){(0,Je.Z)(this,bt),(0,fe.Z)(this,"maps",void 0),(0,fe.Z)(this,"id",0),(0,fe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Pe.Z)(bt,[{key:"set",value:function(Le,oe){this.diffRecords.set(Le,this.maps[Le]),this.maps[Le]=oe,this.id+=1}},{key:"get",value:function(Le){return this.maps[Le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),bt}(),le=Ze;function N(bt){var Ve=parseFloat(bt);return isNaN(Ve)?0:Ve}function S(bt,Ve,Le){var oe=b.useState(0),nt=(0,Z.Z)(oe,2),Ue=nt[0],K=nt[1],D=(0,b.useRef)(new Map),Se=(0,b.useRef)(new le),Ae=(0,b.useRef)(0);function Ce(){Ae.current+=1}function ke(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ce();var he=function(){var Ct=!1;D.current.forEach(function(Nt,kt){if(Nt&&Nt.offsetParent){var pt=Nt.offsetHeight,Vt=getComputedStyle(Nt),Zt=Vt.marginTop,Re=Vt.marginBottom,gt=N(Zt),E=N(Re),R=pt+gt+E;Se.current.get(kt)!==R&&(Se.current.set(kt,R),Ct=!0)}}),Ct&&K(function(Nt){return Nt+1})};if(yt)he();else{Ae.current+=1;var me=Ae.current;Promise.resolve().then(function(){me===Ae.current&&he()})}}function Xe(yt,he){var me=bt(yt),Lt=D.current.get(me);he?(D.current.set(me,he),ke()):D.current.delete(me),!Lt!=!he&&(he?Ve==null||Ve(yt):Le==null||Le(yt))}return(0,b.useEffect)(function(){return Ce},[]),[Xe,ke,Se.current,Ue]}var q=14/15;function te(bt,Ve,Le){var oe=(0,b.useRef)(!1),nt=(0,b.useRef)(0),Ue=(0,b.useRef)(0),K=(0,b.useRef)(null),D=(0,b.useRef)(null),Se,Ae=function(yt){if(oe.current){var he=Math.ceil(yt.touches[0].pageX),me=Math.ceil(yt.touches[0].pageY),Lt=nt.current-he,Ct=Ue.current-me,Nt=Math.abs(Lt)>Math.abs(Ct);Nt?nt.current=he:Ue.current=me;var kt=Le(Nt,Nt?Lt:Ct,!1,yt);kt&&yt.preventDefault(),clearInterval(D.current),kt&&(D.current=setInterval(function(){Nt?Lt*=q:Ct*=q;var pt=Math.floor(Nt?Lt:Ct);(!Le(Nt,pt,!0)||Math.abs(pt)<=.1)&&clearInterval(D.current)},16))}},Ce=function(){oe.current=!1,Se()},ke=function(yt){Se(),yt.touches.length===1&&!oe.current&&(oe.current=!0,nt.current=Math.ceil(yt.touches[0].pageX),Ue.current=Math.ceil(yt.touches[0].pageY),K.current=yt.target,K.current.addEventListener("touchmove",Ae,{passive:!1}),K.current.addEventListener("touchend",Ce,{passive:!0}))};Se=function(){K.current&&(K.current.removeEventListener("touchmove",Ae),K.current.removeEventListener("touchend",Ce))},(0,M.Z)(function(){return bt&&Ve.current.addEventListener("touchstart",ke,{passive:!0}),function(){var Xe;(Xe=Ve.current)===null||Xe===void 0||Xe.removeEventListener("touchstart",ke),Se(),clearInterval(D.current)}},[bt])}function se(bt){return Math.floor(Math.pow(bt,.5))}function w(bt,Ve){var Le="touches"in bt?bt.touches[0]:bt;return Le[Ve?"pageX":"pageY"]-window[Ve?"scrollX":"scrollY"]}function I(bt,Ve,Le){b.useEffect(function(){var oe=Ve.current;if(bt&&oe){var nt=!1,Ue,K,D=function(){P.Z.cancel(Ue)},Se=function Xe(){D(),Ue=(0,P.Z)(function(){Le(K),Xe()})},Ae=function(){nt=!1,D()},Ce=function(yt){if(!(yt.target.draggable||yt.button!==0)){var he=yt;he._virtualHandled||(he._virtualHandled=!0,nt=!0)}},ke=function(yt){if(nt){var he=w(yt,!1),me=oe.getBoundingClientRect(),Lt=me.top,Ct=me.bottom;if(he<=Lt){var Nt=Lt-he;K=-se(Nt),Se()}else if(he>=Ct){var kt=he-Ct;K=se(kt),Se()}else D()}};return oe.addEventListener("mousedown",Ce),oe.ownerDocument.addEventListener("mouseup",Ae),oe.ownerDocument.addEventListener("mousemove",ke),oe.ownerDocument.addEventListener("dragend",Ae),function(){oe.removeEventListener("mousedown",Ce),oe.ownerDocument.removeEventListener("mouseup",Ae),oe.ownerDocument.removeEventListener("mousemove",ke),oe.ownerDocument.removeEventListener("dragend",Ae),D()}}},[bt])}var de=10;function De(bt,Ve,Le,oe,nt,Ue,K,D){var Se=b.useRef(),Ae=b.useState(null),Ce=(0,Z.Z)(Ae,2),ke=Ce[0],Xe=Ce[1];return(0,M.Z)(function(){if(ke&&ke.times<de){if(!bt.current){Xe(function(_e){return(0,O.Z)({},_e)});return}Ue();var yt=ke.targetAlign,he=ke.originAlign,me=ke.index,Lt=ke.offset,Ct=bt.current.clientHeight,Nt=!1,kt=yt,pt=null;if(Ct){for(var Vt=yt||he,Zt=0,Re=0,gt=0,E=Math.min(Ve.length-1,me),R=0;R<=E;R+=1){var at=nt(Ve[R]);Re=Zt;var ae=Le.get(at);gt=Re+(ae===void 0?oe:ae),Zt=gt}for(var Y=Vt==="top"?Lt:Ct-Lt,Ft=E;Ft>=0;Ft-=1){var Ke=nt(Ve[Ft]),st=Le.get(Ke);if(st===void 0){Nt=!0;break}if(Y-=st,Y<=0)break}switch(Vt){case"top":pt=Re-Lt;break;case"bottom":pt=gt-Ct+Lt;break;default:{var _t=bt.current.scrollTop,xe=_t+Ct;Re<_t?kt="top":gt>xe&&(kt="bottom")}}pt!==null&&K(pt),pt!==ke.lastTop&&(Nt=!0)}Nt&&Xe((0,O.Z)((0,O.Z)({},ke),{},{times:ke.times+1,targetAlign:kt,lastTop:pt}))}},[ke,bt.current]),function(yt){if(yt==null){D();return}if(P.Z.cancel(Se.current),typeof yt=="number")K(yt);else if(yt&&(0,U.Z)(yt)==="object"){var he,me=yt.align;"index"in yt?he=yt.index:he=Ve.findIndex(function(Nt){return nt(Nt)===yt.key});var Lt=yt.offset,Ct=Lt===void 0?0:Lt;Xe({times:0,index:he,offset:Ct,originAlign:me})}}}var dt=b.forwardRef(function(bt,Ve){var Le=bt.prefixCls,oe=bt.rtl,nt=bt.scrollOffset,Ue=bt.scrollRange,K=bt.onStartMove,D=bt.onStopMove,Se=bt.onScroll,Ae=bt.horizontal,Ce=bt.spinSize,ke=bt.containerSize,Xe=bt.style,yt=bt.thumbStyle,he=bt.showScrollBar,me=b.useState(!1),Lt=(0,Z.Z)(me,2),Ct=Lt[0],Nt=Lt[1],kt=b.useState(null),pt=(0,Z.Z)(kt,2),Vt=pt[0],Zt=pt[1],Re=b.useState(null),gt=(0,Z.Z)(Re,2),E=gt[0],R=gt[1],at=!oe,ae=b.useRef(),Y=b.useRef(),Ft=b.useState(he),Ke=(0,Z.Z)(Ft,2),st=Ke[0],_t=Ke[1],xe=b.useRef(),_e=function(){he===!0||he===!1||(clearTimeout(xe.current),_t(!0),xe.current=setTimeout(function(){_t(!1)},3e3))},et=Ue-ke||0,Qe=ke-Ce||0,z=b.useMemo(function(){if(nt===0||et===0)return 0;var xt=nt/et;return xt*Qe},[nt,et,Qe]),Rt=function(lt){lt.stopPropagation(),lt.preventDefault()},ge=b.useRef({top:z,dragging:Ct,pageY:Vt,startTop:E});ge.current={top:z,dragging:Ct,pageY:Vt,startTop:E};var Ht=function(lt){Nt(!0),Zt(w(lt,Ae)),R(ge.current.top),K(),lt.stopPropagation(),lt.preventDefault()};b.useEffect(function(){var xt=function(Bt){Bt.preventDefault()},lt=ae.current,ot=Y.current;return lt.addEventListener("touchstart",xt,{passive:!1}),ot.addEventListener("touchstart",Ht,{passive:!1}),function(){lt.removeEventListener("touchstart",xt),ot.removeEventListener("touchstart",Ht)}},[]);var cn=b.useRef();cn.current=et;var mt=b.useRef();mt.current=Qe,b.useEffect(function(){if(Ct){var xt,lt=function(Bt){var zt=ge.current,re=zt.dragging,ve=zt.pageY,wt=zt.startTop;P.Z.cancel(xt);var Ne=ae.current.getBoundingClientRect(),Be=ke/(Ae?Ne.width:Ne.height);if(re){var ue=(w(Bt,Ae)-ve)*Be,Ie=wt;!at&&Ae?Ie-=ue:Ie+=ue;var Fe=cn.current,$e=mt.current,ut=$e?Ie/$e:0,Gt=Math.ceil(ut*Fe);Gt=Math.max(Gt,0),Gt=Math.min(Gt,Fe),xt=(0,P.Z)(function(){Se(Gt,Ae)})}},ot=function(){Nt(!1),D()};return window.addEventListener("mousemove",lt,{passive:!0}),window.addEventListener("touchmove",lt,{passive:!0}),window.addEventListener("mouseup",ot,{passive:!0}),window.addEventListener("touchend",ot,{passive:!0}),function(){window.removeEventListener("mousemove",lt),window.removeEventListener("touchmove",lt),window.removeEventListener("mouseup",ot),window.removeEventListener("touchend",ot),P.Z.cancel(xt)}}},[Ct]),b.useEffect(function(){return _e(),function(){clearTimeout(xe.current)}},[nt]),b.useImperativeHandle(Ve,function(){return{delayHidden:_e}});var ne="".concat(Le,"-scrollbar"),we={position:"absolute",visibility:st?null:"hidden"},B={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ae?(Object.assign(we,{height:8,left:0,right:0,bottom:0}),Object.assign(B,(0,fe.Z)({height:"100%",width:Ce},at?"left":"right",z))):(Object.assign(we,(0,fe.Z)({width:8,top:0,bottom:0},at?"right":"left",0)),Object.assign(B,{width:"100%",height:Ce,top:z})),b.createElement("div",{ref:ae,className:V()(ne,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(ne,"-horizontal"),Ae),"".concat(ne,"-vertical"),!Ae),"".concat(ne,"-visible"),st)),style:(0,O.Z)((0,O.Z)({},we),Xe),onMouseDown:Rt,onMouseMove:_e},b.createElement("div",{ref:Y,className:V()("".concat(ne,"-thumb"),(0,fe.Z)({},"".concat(ne,"-thumb-moving"),Ct)),style:(0,O.Z)((0,O.Z)({},B),yt),onMouseDown:Ht}))}),It=dt,Te=20;function rt(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le=bt/Ve*bt;return isNaN(Le)&&(Le=0),Le=Math.max(Le,Te),Math.floor(Le)}var ht=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],St=[],Me={overflowY:"auto",overflowAnchor:"none"};function Xt(bt,Ve){var Le=bt.prefixCls,oe=Le===void 0?"rc-virtual-list":Le,nt=bt.className,Ue=bt.height,K=bt.itemHeight,D=bt.fullHeight,Se=D===void 0?!0:D,Ae=bt.style,Ce=bt.data,ke=bt.children,Xe=bt.itemKey,yt=bt.virtual,he=bt.direction,me=bt.scrollWidth,Lt=bt.component,Ct=Lt===void 0?"div":Lt,Nt=bt.onScroll,kt=bt.onVirtualScroll,pt=bt.onVisibleChange,Vt=bt.innerProps,Zt=bt.extraRender,Re=bt.styles,gt=bt.showScrollBar,E=gt===void 0?"optional":gt,R=(0,g.Z)(bt,ht),at=b.useCallback(function(hn){return typeof Xe=="function"?Xe(hn):hn==null?void 0:hn[Xe]},[Xe]),ae=S(at,null,null),Y=(0,Z.Z)(ae,4),Ft=Y[0],Ke=Y[1],st=Y[2],_t=Y[3],xe=!!(yt!==!1&&Ue&&K),_e=b.useMemo(function(){return Object.values(st.maps).reduce(function(hn,xn){return hn+xn},0)},[st.id,st.maps]),et=xe&&Ce&&(Math.max(K*Ce.length,_e)>Ue||!!me),Qe=he==="rtl",z=V()(oe,(0,fe.Z)({},"".concat(oe,"-rtl"),Qe),nt),Rt=Ce||St,ge=(0,b.useRef)(),Ht=(0,b.useRef)(),cn=(0,b.useRef)(),mt=(0,b.useState)(0),ne=(0,Z.Z)(mt,2),we=ne[0],B=ne[1],xt=(0,b.useState)(0),lt=(0,Z.Z)(xt,2),ot=lt[0],$t=lt[1],Bt=(0,b.useState)(!1),zt=(0,Z.Z)(Bt,2),re=zt[0],ve=zt[1],wt=function(){ve(!0)},Ne=function(){ve(!1)},Be={getKey:at};function ue(hn){B(function(xn){var Qn;typeof hn=="function"?Qn=hn(xn):Qn=hn;var tr=In(Qn);return ge.current.scrollTop=tr,tr})}var Ie=(0,b.useRef)({start:0,end:Rt.length}),Fe=(0,b.useRef)(),$e=Q(Rt,at),ut=(0,Z.Z)($e,1),Gt=ut[0];Fe.current=Gt;var sn=b.useMemo(function(){if(!xe)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!et){var hn;return{scrollHeight:((hn=Ht.current)===null||hn===void 0?void 0:hn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var xn=0,Qn,tr,yr,Er=Rt.length,$n=0;$n<Er;$n+=1){var Sr=Rt[$n],Dr=at(Sr),$r=st.get(Dr),Mr=xn+($r===void 0?K:$r);Mr>=we&&Qn===void 0&&(Qn=$n,tr=xn),Mr>we+Ue&&yr===void 0&&(yr=$n),xn=Mr}return Qn===void 0&&(Qn=0,tr=0,yr=Math.ceil(Ue/K)),yr===void 0&&(yr=Rt.length-1),yr=Math.min(yr+1,Rt.length-1),{scrollHeight:xn,start:Qn,end:yr,offset:tr}},[et,xe,we,Rt,_t,Ue]),je=sn.scrollHeight,ct=sn.start,Dt=sn.end,qt=sn.offset;Ie.current.start=ct,Ie.current.end=Dt,b.useLayoutEffect(function(){var hn=st.getRecord();if(hn.size===1){var xn=Array.from(hn.keys())[0],Qn=hn.get(xn),tr=Rt[ct];if(tr&&Qn===void 0){var yr=at(tr);if(yr===xn){var Er=st.get(xn),$n=Er-K;ue(function(Sr){return Sr+$n})}}}st.resetRecord()},[je]);var Jt=b.useState({width:0,height:Ue}),Ge=(0,Z.Z)(Jt,2),ft=Ge[0],Mt=Ge[1],Ye=function(xn){Mt({width:xn.offsetWidth,height:xn.offsetHeight})},jt=(0,b.useRef)(),rn=(0,b.useRef)(),an=b.useMemo(function(){return rt(ft.width,me)},[ft.width,me]),nn=b.useMemo(function(){return rt(ft.height,je)},[ft.height,je]),mn=je-Ue,bn=(0,b.useRef)(mn);bn.current=mn;function In(hn){var xn=hn;return Number.isNaN(bn.current)||(xn=Math.min(xn,bn.current)),xn=Math.max(xn,0),xn}var _n=we<=0,Cn=we>=mn,Zn=ot<=0,Ln=ot>=me,rr=Ee(_n,Cn,Zn,Ln),Dn=function(){return{x:Qe?-ot:ot,y:we}},jn=(0,b.useRef)(Dn()),Xn=(0,y.zX)(function(hn){if(kt){var xn=(0,O.Z)((0,O.Z)({},Dn()),hn);(jn.current.x!==xn.x||jn.current.y!==xn.y)&&(kt(xn),jn.current=xn)}});function Wn(hn,xn){var Qn=hn;xn?((0,C.flushSync)(function(){$t(Qn)}),Xn()):ue(Qn)}function Gn(hn){var xn=hn.currentTarget.scrollTop;xn!==we&&ue(xn),Nt==null||Nt(hn),Xn()}var Jn=function(xn){var Qn=xn,tr=me?me-ft.width:0;return Qn=Math.max(Qn,0),Qn=Math.min(Qn,tr),Qn},Rn=(0,y.zX)(function(hn,xn){xn?((0,C.flushSync)(function(){$t(function(Qn){var tr=Qn+(Qe?-hn:hn);return Jn(tr)})}),Xn()):ue(function(Qn){var tr=Qn+hn;return tr})}),Bn=pe(xe,_n,Cn,Zn,Ln,!!me,Rn),ln=(0,Z.Z)(Bn,2),Tt=ln[0],Fn=ln[1];te(xe,ge,function(hn,xn,Qn,tr){var yr=tr;return rr(hn,xn,Qn)?!1:!yr||!yr._virtualHandled?(yr&&(yr._virtualHandled=!0),Tt({preventDefault:function(){},deltaX:hn?xn:0,deltaY:hn?0:xn}),!0):!1}),I(et,ge,function(hn){ue(function(xn){return xn+hn})}),(0,M.Z)(function(){function hn(Qn){var tr=_n&&Qn.detail<0,yr=Cn&&Qn.detail>0;xe&&!tr&&!yr&&Qn.preventDefault()}var xn=ge.current;return xn.addEventListener("wheel",Tt,{passive:!1}),xn.addEventListener("DOMMouseScroll",Fn,{passive:!0}),xn.addEventListener("MozMousePixelScroll",hn,{passive:!1}),function(){xn.removeEventListener("wheel",Tt),xn.removeEventListener("DOMMouseScroll",Fn),xn.removeEventListener("MozMousePixelScroll",hn)}},[xe,_n,Cn]),(0,M.Z)(function(){if(me){var hn=Jn(ot);$t(hn),Xn({x:hn})}},[ft.width,me]);var On=function(){var xn,Qn;(xn=jt.current)===null||xn===void 0||xn.delayHidden(),(Qn=rn.current)===null||Qn===void 0||Qn.delayHidden()},sr=De(ge,Rt,st,K,at,function(){return Ke(!0)},ue,On);b.useImperativeHandle(Ve,function(){return{nativeElement:cn.current,getScrollInfo:Dn,scrollTo:function(xn){function Qn(tr){return tr&&(0,U.Z)(tr)==="object"&&("left"in tr||"top"in tr)}Qn(xn)?(xn.left!==void 0&&$t(Jn(xn.left)),sr(xn.top)):sr(xn)}}}),(0,M.Z)(function(){if(pt){var hn=Rt.slice(ct,Dt+1);pt(hn,Rt)}},[ct,Dt,Rt]);var dr=ze(Rt,at,st,K),Ar=Zt==null?void 0:Zt({start:ct,end:Dt,virtual:et,offsetX:ot,offsetY:qt,rtl:Qe,getSize:dr}),ur=X(Rt,ct,Dt,me,ot,Ft,ke,Be),Yn=null;Ue&&(Yn=(0,O.Z)((0,fe.Z)({},Se?"height":"maxHeight",Ue),Me),xe&&(Yn.overflowY="hidden",me&&(Yn.overflowX="hidden"),re&&(Yn.pointerEvents="none")));var vn={};return Qe&&(vn.dir="rtl"),b.createElement("div",(0,i.Z)({ref:cn,style:(0,O.Z)((0,O.Z)({},Ae),{},{position:"relative"}),className:z},vn,R),b.createElement(l.Z,{onResize:Ye},b.createElement(Ct,{className:"".concat(oe,"-holder"),style:Yn,ref:ge,onScroll:Gn,onMouseEnter:On},b.createElement($,{prefixCls:oe,height:je,offsetX:ot,offsetY:qt,scrollWidth:me,onInnerResize:Ke,ref:Ht,innerProps:Vt,rtl:Qe,extra:Ar},ur))),et&&je>Ue&&b.createElement(It,{ref:jt,prefixCls:oe,scrollOffset:we,scrollRange:je,rtl:Qe,onScroll:Wn,onStartMove:wt,onStopMove:Ne,spinSize:nn,containerSize:ft.height,style:Re==null?void 0:Re.verticalScrollBar,thumbStyle:Re==null?void 0:Re.verticalScrollBarThumb,showScrollBar:E}),et&&me>ft.width&&b.createElement(It,{ref:rn,prefixCls:oe,scrollOffset:ot,scrollRange:me,rtl:Qe,onScroll:Wn,onStartMove:wt,onStopMove:Ne,spinSize:an,containerSize:ft.width,horizontal:!0,style:Re==null?void 0:Re.horizontalScrollBar,thumbStyle:Re==null?void 0:Re.horizontalScrollBarThumb,showScrollBar:E}))}var tt=b.forwardRef(Xt);tt.displayName="List";var un=tt,vt=un},83145:function(zn,Pt,u){"use strict";Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.CopyToClipboard=void 0;var i=O(u(59301)),U=O(u(25769));function O(L){return L&&L.__esModule?L:{default:L}}function fe(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(P){return typeof P}:fe=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},fe(L)}function Z(L,Q){var P=Object.keys(L);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(L);Q&&(A=A.filter(function(ce){return Object.getOwnPropertyDescriptor(L,ce).enumerable})),P.push.apply(P,A)}return P}function g(L){for(var Q=1;Q<arguments.length;Q++){var P=arguments[Q]!=null?arguments[Q]:{};Q%2?Z(P,!0).forEach(function(A){X(L,A,P[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(P)):Z(P).forEach(function(A){Object.defineProperty(L,A,Object.getOwnPropertyDescriptor(P,A))})}return L}function H(L,Q){if(L==null)return{};var P=V(L,Q),A,ce;if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(L);for(ce=0;ce<Ee.length;ce++)A=Ee[ce],!(Q.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(L,A)&&(P[A]=L[A])}return P}function V(L,Q){if(L==null)return{};var P={},A=Object.keys(L),ce,Ee;for(Ee=0;Ee<A.length;Ee++)ce=A[Ee],!(Q.indexOf(ce)>=0)&&(P[ce]=L[ce]);return P}function l(L,Q){if(!(L instanceof Q))throw new TypeError("Cannot call a class as a function")}function y(L,Q){for(var P=0;P<Q.length;P++){var A=Q[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(L,A.key,A)}}function M(L,Q,P){return Q&&y(L.prototype,Q),P&&y(L,P),L}function b(L,Q){return Q&&(fe(Q)==="object"||typeof Q=="function")?Q:T(L)}function C(L){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},C(L)}function T(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function $(L,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(Q&&Q.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Q&&W(L,Q)}function W(L,Q){return W=Object.setPrototypeOf||function(A,ce){return A.__proto__=ce,A},W(L,Q)}function X(L,Q,P){return Q in L?Object.defineProperty(L,Q,{value:P,enumerable:!0,configurable:!0,writable:!0}):L[Q]=P,L}var G=function(L){$(Q,L);function Q(){var P,A;l(this,Q);for(var ce=arguments.length,Ee=new Array(ce),pe=0;pe<ce;pe++)Ee[pe]=arguments[pe];return A=b(this,(P=C(Q)).call.apply(P,[this].concat(Ee))),X(T(A),"onClick",function(ze){var Je=A.props,Pe=Je.text,Ze=Je.onCopy,le=Je.children,N=Je.options,S=i.default.Children.only(le),q=(0,U.default)(Pe,N);Ze&&Ze(Pe,q),S&&S.props&&typeof S.props.onClick=="function"&&S.props.onClick(ze)}),A}return M(Q,[{key:"render",value:function(){var A=this.props,ce=A.text,Ee=A.onCopy,pe=A.options,ze=A.children,Je=H(A,["text","onCopy","options","children"]),Pe=i.default.Children.only(ze);return i.default.cloneElement(Pe,g({},Je,{onClick:this.onClick}))}}]),Q}(i.default.PureComponent);Pt.CopyToClipboard=G,X(G,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(zn,Pt,u){"use strict";var i=u(83145),U=i.CopyToClipboard;U.CopyToClipboard=U,zn.exports=U},76374:function(zn,Pt,u){"use strict";var i=function(){if(typeof Map!="undefined")return Map;function le(N,S){var q=-1;return N.some(function(te,se){return te[0]===S?(q=se,!0):!1}),q}return function(){function N(){this.__entries__=[]}return Object.defineProperty(N.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),N.prototype.get=function(S){var q=le(this.__entries__,S),te=this.__entries__[q];return te&&te[1]},N.prototype.set=function(S,q){var te=le(this.__entries__,S);~te?this.__entries__[te][1]=q:this.__entries__.push([S,q])},N.prototype.delete=function(S){var q=this.__entries__,te=le(q,S);~te&&q.splice(te,1)},N.prototype.has=function(S){return!!~le(this.__entries__,S)},N.prototype.clear=function(){this.__entries__.splice(0)},N.prototype.forEach=function(S,q){q===void 0&&(q=null);for(var te=0,se=this.__entries__;te<se.length;te++){var w=se[te];S.call(q,w[1],w[0])}},N}()}(),U=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,O=function(){return typeof u.g!="undefined"&&u.g.Math===Math?u.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),fe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(O):function(le){return setTimeout(function(){return le(Date.now())},1e3/60)}}(),Z=2;function g(le,N){var S=!1,q=!1,te=0;function se(){S&&(S=!1,le()),q&&I()}function w(){fe(se)}function I(){var de=Date.now();if(S){if(de-te<Z)return;q=!0}else S=!0,q=!1,setTimeout(w,N);te=de}return I}var H=20,V=["top","right","bottom","left","width","height","size","weight"],l=typeof MutationObserver!="undefined",y=function(){function le(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),H)}return le.prototype.addObserver=function(N){~this.observers_.indexOf(N)||this.observers_.push(N),this.connected_||this.connect_()},le.prototype.removeObserver=function(N){var S=this.observers_,q=S.indexOf(N);~q&&S.splice(q,1),!S.length&&this.connected_&&this.disconnect_()},le.prototype.refresh=function(){var N=this.updateObservers_();N&&this.refresh()},le.prototype.updateObservers_=function(){var N=this.observers_.filter(function(S){return S.gatherActive(),S.hasActive()});return N.forEach(function(S){return S.broadcastActive()}),N.length>0},le.prototype.connect_=function(){!U||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},le.prototype.disconnect_=function(){!U||!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)},le.prototype.onTransitionEnd_=function(N){var S=N.propertyName,q=S===void 0?"":S,te=V.some(function(se){return!!~q.indexOf(se)});te&&this.refresh()},le.getInstance=function(){return this.instance_||(this.instance_=new le),this.instance_},le.instance_=null,le}(),M=function(le,N){for(var S=0,q=Object.keys(N);S<q.length;S++){var te=q[S];Object.defineProperty(le,te,{value:N[te],enumerable:!1,writable:!1,configurable:!0})}return le},b=function(le){var N=le&&le.ownerDocument&&le.ownerDocument.defaultView;return N||O},C=ce(0,0,0,0);function T(le){return parseFloat(le)||0}function $(le){for(var N=[],S=1;S<arguments.length;S++)N[S-1]=arguments[S];return N.reduce(function(q,te){var se=le["border-"+te+"-width"];return q+T(se)},0)}function W(le){for(var N=["top","right","bottom","left"],S={},q=0,te=N;q<te.length;q++){var se=te[q],w=le["padding-"+se];S[se]=T(w)}return S}function X(le){var N=le.getBBox();return ce(0,0,N.width,N.height)}function G(le){var N=le.clientWidth,S=le.clientHeight;if(!N&&!S)return C;var q=b(le).getComputedStyle(le),te=W(q),se=te.left+te.right,w=te.top+te.bottom,I=T(q.width),de=T(q.height);if(q.boxSizing==="border-box"&&(Math.round(I+se)!==N&&(I-=$(q,"left","right")+se),Math.round(de+w)!==S&&(de-=$(q,"top","bottom")+w)),!Q(le)){var De=Math.round(I+se)-N,dt=Math.round(de+w)-S;Math.abs(De)!==1&&(I-=De),Math.abs(dt)!==1&&(de-=dt)}return ce(te.left,te.top,I,de)}var L=function(){return typeof SVGGraphicsElement!="undefined"?function(le){return le instanceof b(le).SVGGraphicsElement}:function(le){return le instanceof b(le).SVGElement&&typeof le.getBBox=="function"}}();function Q(le){return le===b(le).document.documentElement}function P(le){return U?L(le)?X(le):G(le):C}function A(le){var N=le.x,S=le.y,q=le.width,te=le.height,se=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,w=Object.create(se.prototype);return M(w,{x:N,y:S,width:q,height:te,top:S,right:N+q,bottom:te+S,left:N}),w}function ce(le,N,S,q){return{x:le,y:N,width:S,height:q}}var Ee=function(){function le(N){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ce(0,0,0,0),this.target=N}return le.prototype.isActive=function(){var N=P(this.target);return this.contentRect_=N,N.width!==this.broadcastWidth||N.height!==this.broadcastHeight},le.prototype.broadcastRect=function(){var N=this.contentRect_;return this.broadcastWidth=N.width,this.broadcastHeight=N.height,N},le}(),pe=function(){function le(N,S){var q=A(S);M(this,{target:N,contentRect:q})}return le}(),ze=function(){function le(N,S,q){if(this.activeObservations_=[],this.observations_=new i,typeof N!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=N,this.controller_=S,this.callbackCtx_=q}return le.prototype.observe=function(N){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(N instanceof b(N).Element))throw new TypeError('parameter 1 is not of type "Element".');var S=this.observations_;S.has(N)||(S.set(N,new Ee(N)),this.controller_.addObserver(this),this.controller_.refresh())}},le.prototype.unobserve=function(N){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(N instanceof b(N).Element))throw new TypeError('parameter 1 is not of type "Element".');var S=this.observations_;S.has(N)&&(S.delete(N),S.size||this.controller_.removeObserver(this))}},le.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},le.prototype.gatherActive=function(){var N=this;this.clearActive(),this.observations_.forEach(function(S){S.isActive()&&N.activeObservations_.push(S)})},le.prototype.broadcastActive=function(){if(this.hasActive()){var N=this.callbackCtx_,S=this.activeObservations_.map(function(q){return new pe(q.target,q.broadcastRect())});this.callback_.call(N,S,N),this.clearActive()}},le.prototype.clearActive=function(){this.activeObservations_.splice(0)},le.prototype.hasActive=function(){return this.activeObservations_.length>0},le}(),Je=typeof WeakMap!="undefined"?new WeakMap:new i,Pe=function(){function le(N){if(!(this instanceof le))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var S=y.getInstance(),q=new ze(N,S,this);Je.set(this,q)}return le}();["observe","unobserve","disconnect"].forEach(function(le){Pe.prototype[le]=function(){var N;return(N=Je.get(this))[le].apply(N,arguments)}});var Ze=function(){return typeof O.ResizeObserver!="undefined"?O.ResizeObserver:Pe}();Pt.Z=Ze},38710:function(zn){var Pt=function(u){return u.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()}).toLowerCase()};zn.exports=Pt},98040:function(zn){zn.exports=function(){var Pt=document.getSelection();if(!Pt.rangeCount)return function(){};for(var u=document.activeElement,i=[],U=0;U<Pt.rangeCount;U++)i.push(Pt.getRangeAt(U));switch(u.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":u.blur();break;default:u=null;break}return Pt.removeAllRanges(),function(){Pt.type==="Caret"&&Pt.removeAllRanges(),Pt.rangeCount||i.forEach(function(O){Pt.addRange(O)}),u&&u.focus()}}},93314:function(zn){"use strict";zn.exports="data:image/png;base64,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"},19251:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return U}});var i=u(3208);function U(O,fe){var Z=typeof Symbol!="undefined"&&O[Symbol.iterator]||O["@@iterator"];if(!Z){if(Array.isArray(O)||(Z=(0,i.Z)(O))||fe&&O&&typeof O.length=="number"){Z&&(O=Z);var g=0,H=function(){};return{s:H,n:function(){return g>=O.length?{done:!0}:{done:!1,value:O[g++]}},e:function(b){throw b},f:H}}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 V,l=!0,y=!1;return{s:function(){Z=Z.call(O)},n:function(){var b=Z.next();return l=b.done,b},e:function(b){y=!0,V=b},f:function(){try{l||Z.return==null||Z.return()}finally{if(y)throw V}}}}},16471:function(zn,Pt,u){"use strict";u.d(Pt,{ZP:function(){return bo}});const i=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},U=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=O},O=Number.MAX_SAFE_INTEGER||9007199254740991;let fe=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}({}),Z=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.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",o.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",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.ASSET_LIST_LOAD_ERROR="assetListLoadError",o.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",o.ASSET_LIST_PARSING_ERROR="assetListParsingError",o.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",o.INTERNAL_EXCEPTION="internalException",o.INTERNAL_ABORTED="aborted",o.ATTACH_MEDIA_ERROR="attachMediaError",o.UNKNOWN="unknown",o}({}),g=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.MEDIA_ENDED="hlsMediaEnded",o.STALL_RESOLVED="hlsStallResolved",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.BUFFERED_TO_END="hlsBufferedToEnd",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.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",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_TRACK_UPDATED="hlsSubtitleTrackUpdated",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.ASSET_LIST_LOADING="hlsAssetListLoading",o.ASSET_LIST_LOADED="hlsAssetListLoaded",o.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",o.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",o.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",o.INTERSTITIAL_STARTED="hlsInterstitialStarted",o.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",o.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",o.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",o.INTERSTITIAL_ENDED="hlsInterstitialEnded",o.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",o.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",o.EVENT_CUE_ENTER="hlsEventCueEnter",o}({});var H={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},V={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class l{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 y{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 l(e),this.fast_=new l(t),this.defaultTTFB_=r,this.ttfb_=new l(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:a}=this;n.halfLife!==e&&(this.slow_=new l(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new l(t,r.getEstimate(),r.getTotalWeight())),a.halfLife!==e&&(this.ttfb_=new l(e,a.getEstimate(),a.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,a=n/r;this.fast_.sample(r,a),this.slow_.sample(r,a)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function M(o,e,t){return(e=W(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function b(){return b=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},b.apply(null,arguments)}function C(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 T(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?C(Object(t),!0).forEach(function(n){M(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function $(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function W(o){var e=$(o,"string");return typeof e=="symbol"?e:e+""}class X{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=G,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const G=function(){},L={trace:G,debug:G,log:G,warn:G,info:G,error:G};function Q(){return b({},L)}function P(o,e){const t=self.console[o];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${o}] >`):G}function A(o,e,t){return e[o]?e[o].bind(e):P(o,t)}const ce=Q();function Ee(o,e,t){const n=Q();if(typeof console=="object"&&o===!0||typeof o=="object"){const r=["debug","log","info","warn","error"];r.forEach(a=>{n[a]=A(a,o,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.15`)}catch(a){return Q()}r.forEach(a=>{ce[a]=A(a,o)})}else b(ce,n);return n}const pe=ce;function ze(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Je(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}function Pe(o,e){const t=Object.keys(o),n=Object.keys(e),r=t.length,a=n.length;return!r||!a||r===a&&!t.some(s=>n.indexOf(s)===-1)}function Ze(o,e=!1){if(typeof TextDecoder!="undefined"){const m=new TextDecoder("utf-8").decode(o);if(e){const v=m.indexOf("\0");return v!==-1?m.substring(0,v):m}return m.replace(/\0/g,"")}const t=o.length;let n,r,a,s="",d=0;for(;d<t;){if(n=o[d++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=o[d++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=o[d++],a=o[d++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(a&63)<<0);break}}return s}function le(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}function N(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function S(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var q={exports:{}},te;function se(){return te||(te=1,function(o,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,a=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,d={buildAbsoluteURL:function(p,m,v){if(v=v||{},p=p.trim(),m=m.trim(),!m){if(!v.alwaysNormalize)return p;var _=d.parseURL(p);if(!_)throw new Error("Error trying to parse base URL.");return _.path=d.normalizePath(_.path),d.buildURLFromParts(_)}var F=d.parseURL(m);if(!F)throw new Error("Error trying to parse relative URL.");if(F.scheme)return v.alwaysNormalize?(F.path=d.normalizePath(F.path),d.buildURLFromParts(F)):m;var ee=d.parseURL(p);if(!ee)throw new Error("Error trying to parse base URL.");if(!ee.netLoc&&ee.path&&ee.path[0]!=="/"){var ie=r.exec(ee.path);ee.netLoc=ie[1],ee.path=ie[2]}ee.netLoc&&!ee.path&&(ee.path="/");var We={scheme:ee.scheme,netLoc:F.netLoc,path:null,params:F.params,query:F.query,fragment:F.fragment};if(!F.netLoc&&(We.netLoc=ee.netLoc,F.path[0]!=="/"))if(!F.path)We.path=ee.path,F.params||(We.params=ee.params,F.query||(We.query=ee.query));else{var He=ee.path,Ot=He.substring(0,He.lastIndexOf("/")+1)+F.path;We.path=d.normalizePath(Ot)}return We.path===null&&(We.path=v.alwaysNormalize?d.normalizePath(F.path):F.path),d.buildURLFromParts(We)},parseURL:function(p){var m=n.exec(p);return m?{scheme:m[1]||"",netLoc:m[2]||"",path:m[3]||"",params:m[4]||"",query:m[5]||"",fragment:m[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(a,"");p.length!==(p=p.replace(s,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};o.exports=d})()}(q)),q.exports}var w=se();class I{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 de={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class De{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,ht(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[de.AUDIO]:null,[de.VIDEO]:null,[de.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new I),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=w.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[de.AUDIO]=null,e[de.VIDEO]=null,e[de.AUDIOVIDEO]=null}}function dt(o){return o.sn!=="initSegment"}class It extends De{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange.length){const e=this.byteRange[0],t=this.byteRange[1];if(i(e)&&i(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(!((e=this._decryptdata)!=null&&e.keyId)){const n=Object.keys(t);if(n.length===1){const r=this._decryptdata=t[n[0]]||null;r&&(this._decryptdata=r.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=i(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){var t;const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&(t=this.levelkeys[n[0]])!=null&&t.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!i(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return dt(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){const t=this.levelkeys;if(t){var n;const r=t[e];r&&!((n=this._decryptdata)!=null&&n.keyId)&&(this._decryptdata=r.getDecryptData(this.sn,t))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,a,s=!1){const{elementaryStreams:d}=this,p=d[e];if(!p){d[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:a,partial:s};return}p.startPTS=Math.min(p.startPTS,t),p.endPTS=Math.max(p.endPTS,n),p.startDTS=Math.min(p.startDTS,r),p.endDTS=Math.max(p.endDTS,a)}}class Te extends De{constructor(e,t,n,r,a){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function rt(o,e){const t=Object.getPrototypeOf(o);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||rt(t,e)}}function ht(o,e){const t=rt(o,e);t&&(t.enumerable=!0,Object.defineProperty(o,e,t))}const St=Math.pow(2,32)-1,Me=[].push,Xt={video:1,audio:2,id3:3,text:4};function tt(o){return String.fromCharCode.apply(null,o)}function un(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function vt(o,e){const t=Ve(o,e);return t<0?4294967296+t:t}function bt(o,e){let t=vt(o,e);return t*=Math.pow(2,32),t+=vt(o,e+4),t}function Ve(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function Le(o){const e=o.byteLength;for(let t=0;t<e;){const n=vt(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 oe(o,e){const t=[];if(!e.length)return t;const n=o.byteLength;for(let r=0;r<n;){const a=vt(o,r),s=tt(o.subarray(r+4,r+8)),d=a>1?r+a:n;if(s===e[0])if(e.length===1)t.push(o.subarray(r+8,d));else{const p=oe(o.subarray(r+8,d),e.slice(1));p.length&&Me.apply(t,p)}r=d}return t}function nt(o){const e=[],t=o[0];let n=8;const r=vt(o,n);n+=4;let a=0,s=0;t===0?(a=vt(o,n),s=vt(o,n+4),n+=8):(a=bt(o,n),s=bt(o,n+8),n+=16),n+=2;let d=o.length+s;const p=un(o,n);n+=2;for(let m=0;m<p;m++){let v=n;const _=vt(o,v);v+=4;const F=_&2147483647;if((_&2147483648)>>>31===1)return pe.warn("SIDX has hierarchical references (not supported)"),null;const ie=vt(o,v);v+=4,e.push({referenceSize:F,subsegmentDuration:ie,info:{duration:ie/r,start:d,end:d+F-1}}),d+=F,v+=4,n=v}return{earliestPresentationTime:a,timescale:r,version:t,referencesCount:p,references:e}}function Ue(o){const e=[],t=oe(o,["moov","trak"]);for(let r=0;r<t.length;r++){const a=t[r],s=oe(a,["tkhd"])[0];if(s){let d=s[0];const p=vt(s,d===0?12:20),m=oe(a,["mdia","mdhd"])[0];if(m){d=m[0];const v=vt(m,d===0?12:20),_=oe(a,["mdia","hdlr"])[0];if(_){const F=tt(_.subarray(8,12)),ee={soun:de.AUDIO,vide:de.VIDEO}[F],ie=oe(a,["mdia","minf","stbl","stsd"])[0],We=K(ie);ee?(e[p]={timescale:v,type:ee,stsd:We},e[ee]=T({timescale:v,id:p},We)):e[p]={timescale:v,type:F,stsd:We}}}}}return oe(o,["moov","mvex","trex"]).forEach(r=>{const a=vt(r,4),s=e[a];s&&(s.default={duration:vt(r,12),flags:vt(r,20)})}),e}function K(o){const e=o.subarray(8),t=e.subarray(86),n=tt(e.subarray(4,8));let r=n,a;const s=n==="enca"||n==="encv";if(s){const m=oe(e,[n])[0].subarray(n==="enca"?28:78);oe(m,["sinf"]).forEach(_=>{const F=oe(_,["schm"])[0];if(F){const ee=tt(F.subarray(4,8));if(ee==="cbcs"||ee==="cenc"){const ie=oe(_,["frma"])[0];ie&&(r=tt(ie))}}})}const d=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const p=oe(t,["avcC"])[0];p&&p.length>3&&(r+="."+Ce(p[1])+Ce(p[2])+Ce(p[3]),a=D(d==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const p=oe(e,[n])[0],m=oe(p.subarray(28),["esds"])[0];if(m&&m.length>7){let v=4;if(m[v++]!==3)break;v=Ae(m,v),v+=2;const _=m[v++];if(_&128&&(v+=2),_&64&&(v+=m[v++]),m[v++]!==4)break;v=Ae(m,v);const F=m[v++];if(F===64)r+="."+Ce(F);else break;if(v+=12,m[v++]!==5)break;v=Ae(m,v);const ee=m[v++];let ie=(ee&248)>>3;ie===31&&(ie+=1+((ee&7)<<3)+((m[v]&224)>>5)),r+="."+ie}break}case"hvc1":case"hev1":{const p=oe(t,["hvcC"])[0];if(p&&p.length>12){const m=p[1],v=["","A","B","C"][m>>6],_=m&31,F=vt(p,2),ee=(m&32)>>5?"H":"L",ie=p[12],We=p.subarray(6,12);r+="."+v+_,r+="."+Se(F).toString(16).toUpperCase(),r+="."+ee+ie;let He="";for(let Ot=We.length;Ot--;){const Kt=We[Ot];(Kt||He)&&(He="."+Kt.toString(16).toUpperCase()+He)}r+=He}a=D(d=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=D(r,t)||r;break}case"vp09":{const p=oe(t,["vpcC"])[0];if(p&&p.length>6){const m=p[4],v=p[5],_=p[6]>>4&15;r+="."+ke(m)+"."+ke(v)+"."+ke(_)}break}case"av01":{const p=oe(t,["av1C"])[0];if(p&&p.length>2){const m=p[1]>>>5,v=p[1]&31,_=p[2]>>>7?"H":"M",F=(p[2]&64)>>6,ee=(p[2]&32)>>5,ie=m===2&&F?ee?12:10:F?10:8,We=(p[2]&16)>>4,He=(p[2]&8)>>3,Ot=(p[2]&4)>>2,Kt=p[2]&3;r+="."+m+"."+ke(v)+_+"."+ke(ie)+"."+We+"."+He+Ot+Kt+"."+ke(1)+"."+ke(1)+"."+ke(1)+"."+0,a=D("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:a}}function D(o,e){const t=oe(e,["dvvC"]),n=t.length?t[0]:oe(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,a=n[2]<<5&32|n[3]>>3&31;return o+"."+ke(r)+"."+ke(a)}}function Se(o){let e=0;for(let t=0;t<32;t++)e|=(o>>t&1)<<31-t;return e>>>0}function Ae(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function Ce(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function ke(o){return(o<10?"0":"")+o}function Xe(o,e){if(!o||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&he(o,(n,r)=>{const a=n.subarray(8,24);a.some(s=>s!==0)||(pe.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${le(a)} -> ${le(t)}`),n.set(t,8))})}function yt(o){const e=[];return he(o,t=>e.push(t.subarray(8,24))),e}function he(o,e){oe(o,["moov","trak"]).forEach(n=>{const r=oe(n,["mdia","minf","stbl","stsd"])[0];if(!r)return;const a=r.subarray(8);let s=oe(a,["enca"]);const d=s.length>0;d||(s=oe(a,["encv"])),s.forEach(p=>{const m=d?p.subarray(28):p.subarray(78);oe(m,["sinf"]).forEach(_=>{const F=me(_);F&&e(F,d)})})})}function me(o){const e=oe(o,["schm"])[0];if(e){const t=tt(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=oe(o,["schi","tenc"])[0];if(n)return n}}}function Lt(o,e,t){const n={},r=oe(o,["moof","traf"]);for(let a=0;a<r.length;a++){const s=r[a],d=oe(s,["tfhd"])[0],p=vt(d,4),m=e[p];if(!m)continue;n[p]||(n[p]={start:NaN,duration:0,sampleCount:0,timescale:m.timescale,type:m.type});const v=n[p],_=oe(s,["tfdt"])[0];if(_){const Wt=_[0];let gn=vt(_,4);Wt===1&&(gn===St?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(gn*=St+1,gn+=vt(_,8))),i(gn)&&(!i(v.start)||gn<v.start)&&(v.start=gn)}const F=m.default,ee=vt(d,0)|(F==null?void 0:F.flags);let ie=(F==null?void 0:F.duration)||0;ee&8&&(ee&2?ie=vt(d,12):ie=vt(d,8));const We=oe(s,["trun"]);let He=v.start||0,Ot=0,Kt=ie;for(let Wt=0;Wt<We.length;Wt++){const gn=We[Wt],wn=vt(gn,4),lr=v.sampleCount;v.sampleCount+=wn;const An=gn[3]&1,Vn=gn[3]&4,Hn=gn[2]&1,Pn=gn[2]&2,gr=gn[2]&4,Hr=gn[2]&8;let si=8,pi=wn;for(An&&(si+=4),Vn&&wn&&(!(gn[si+1]&1)&&v.keyFrameIndex===void 0&&(v.keyFrameIndex=lr),si+=4,Hn?(Kt=vt(gn,si),si+=4):Kt=ie,Pn&&(si+=4),Hr&&(si+=4),He+=Kt,Ot+=Kt,pi--);pi--;)Hn?(Kt=vt(gn,si),si+=4):Kt=ie,Pn&&(si+=4),gr&&(gn[si+1]&1||v.keyFrameIndex===void 0&&(v.keyFrameIndex=v.sampleCount-(pi+1),v.keyFrameStart=He),si+=4),Hr&&(si+=4),He+=Kt,Ot+=Kt;!Ot&&ie&&(Ot+=ie*wn)}v.duration+=Ot}if(!Object.keys(n).some(a=>n[a].duration)){let a=1/0,s=0;const d=oe(o,["sidx"]);for(let p=0;p<d.length;p++){const m=nt(d[p]);if(m!=null&&m.references){a=Math.min(a,m.earliestPresentationTime/m.timescale);const v=m.references.reduce((_,F)=>_+F.info.duration||0,0);s=Math.max(s,v+m.earliestPresentationTime/m.timescale)}}s&&i(s)&&Object.keys(n).forEach(p=>{n[p].duration||(n[p].duration=s*n[p].timescale-n[p].start)})}return n}function Ct(o){const e={valid:null,remainder:null},t=oe(o,["moof"]);if(t.length<2)return e.remainder=o,e;const n=t[t.length-1];return e.valid=o.slice(0,n.byteOffset-8),e.remainder=o.slice(n.byteOffset-8),e}function Nt(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function kt(o,e){const t=[],n=e.samples,r=e.timescale,a=e.id;let s=!1;return oe(n,["moof"]).map(p=>{const m=p.byteOffset-8;oe(p,["traf"]).map(_=>{const F=oe(_,["tfdt"]).map(ee=>{const ie=ee[0];let We=vt(ee,4);return ie===1&&(We*=Math.pow(2,32),We+=vt(ee,8)),We/r})[0];return F!==void 0&&(o=F),oe(_,["tfhd"]).map(ee=>{const ie=vt(ee,4),We=vt(ee,0)&16777215,He=(We&1)!==0,Ot=(We&2)!==0,Kt=(We&8)!==0;let Wt=0;const gn=(We&16)!==0;let wn=0;const lr=(We&32)!==0;let An=8;ie===a&&(He&&(An+=8),Ot&&(An+=4),Kt&&(Wt=vt(ee,An),An+=4),gn&&(wn=vt(ee,An),An+=4),lr&&(An+=4),e.type==="video"&&(s=pt(e.codec)),oe(_,["trun"]).map(Vn=>{const Hn=Vn[0],Pn=vt(Vn,0)&16777215,gr=(Pn&1)!==0;let Hr=0;const si=(Pn&4)!==0,pi=(Pn&256)!==0;let oi=0;const kr=(Pn&512)!==0;let li=0;const qr=(Pn&1024)!==0,di=(Pn&2048)!==0;let _i=0;const Ur=vt(Vn,4);let Kr=8;gr&&(Hr=vt(Vn,Kr),Kr+=4),si&&(Kr+=4);let $i=Hr+m;for(let xa=0;xa<Ur;xa++){if(pi?(oi=vt(Vn,Kr),Kr+=4):oi=Wt,kr?(li=vt(Vn,Kr),Kr+=4):li=wn,qr&&(Kr+=4),di&&(Hn===0?_i=vt(Vn,Kr):_i=Ve(Vn,Kr),Kr+=4),e.type===de.VIDEO){let Hi=0;for(;Hi<li;){const na=vt(n,$i);if($i+=4,Vt(s,n[$i])){const us=n.subarray($i,$i+na);Zt(us,s?2:1,o+_i/r,t)}$i+=na,Hi+=na+4}}o+=oi/r}}))})})}),t}function pt(o){if(!o)return!1;const e=o.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Vt(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Zt(o,e,t,n){const r=Re(o);let a=0;a+=e;let s=0,d=0,p=0;for(;a<r.length;){s=0;do{if(a>=r.length)break;p=r[a++],s+=p}while(p===255);d=0;do{if(a>=r.length)break;p=r[a++],d+=p}while(p===255);const m=r.length-a;let v=a;if(d<m)a+=d;else if(d>m){pe.error(`Malformed SEI payload. ${d} is too small, only ${m} bytes left to parse.`);break}if(s===4){if(r[v++]===181){const F=un(r,v);if(v+=2,F===49){const ee=vt(r,v);if(v+=4,ee===1195456820){const ie=r[v++];if(ie===3){const We=r[v++],He=31&We,Ot=64&We,Kt=Ot?2+He*3:0,Wt=new Uint8Array(Kt);if(Ot){Wt[0]=We;for(let gn=1;gn<Kt;gn++)Wt[gn]=r[v++]}n.push({type:ie,payloadType:s,pts:t,bytes:Wt})}}}}}else if(s===5&&d>16){const _=[];for(let ie=0;ie<16;ie++){const We=r[v++].toString(16);_.push(We.length==1?"0"+We:We),(ie===3||ie===5||ie===7||ie===9)&&_.push("-")}const F=d-16,ee=new Uint8Array(F);for(let ie=0;ie<F;ie++)ee[ie]=r[v++];n.push({payloadType:s,pts:t,uuid:_.join(""),userData:Ze(ee),userDataBytes:ee})}}}function Re(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,a=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),a[n]=o[s];return a}function gt(o){const e=o[0];let t="",n="",r=0,a=0,s=0,d=0,p=0,m=0;if(e===0){for(;tt(o.subarray(m,m+1))!=="\0";)t+=tt(o.subarray(m,m+1)),m+=1;for(t+=tt(o.subarray(m,m+1)),m+=1;tt(o.subarray(m,m+1))!=="\0";)n+=tt(o.subarray(m,m+1)),m+=1;n+=tt(o.subarray(m,m+1)),m+=1,r=vt(o,12),a=vt(o,16),d=vt(o,20),p=vt(o,24),m=28}else if(e===1){m+=4,r=vt(o,m),m+=4;const _=vt(o,m);m+=4;const F=vt(o,m);for(m+=4,s=lc(2,32)*_+F,U(s)||(s=Number.MAX_SAFE_INTEGER,pe.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),d=vt(o,m),m+=4,p=vt(o,m),m+=4;tt(o.subarray(m,m+1))!=="\0";)t+=tt(o.subarray(m,m+1)),m+=1;for(t+=tt(o.subarray(m,m+1)),m+=1;tt(o.subarray(m,m+1))!=="\0";)n+=tt(o.subarray(m,m+1)),m+=1;n+=tt(o.subarray(m,m+1)),m+=1}const v=o.subarray(m,o.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:a,eventDuration:d,id:p,payload:v}}function E(o,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[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(o,4),r=0,n=8;r<t;r++)a.set(e[r],n),n+=e[r].byteLength;return a}function R(o,e,t){if(o.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let a;n>0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),E([112,115,115,104],new Uint8Array([n,0,0,0]),o,a,r,s,t)}function at(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let n=0;for(;n+32<t;){const r=new DataView(o,n),a=ae(r);e.push(a),n+=a.size}}return e}function ae(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 a=o.getUint32(8)>>>24;if(a!==0&&a!==1)return{offset:t,size:e};const s=o.buffer,d=le(new Uint8Array(s,t+12,16));let p=null,m=null,v=0;if(a===0)v=28;else{const F=o.getUint32(28);if(!F||n<32+F*16)return{offset:t,size:e};p=[];for(let ee=0;ee<F;ee++)p.push(new Uint8Array(s,t+32+ee*16,16));v=32+F*16}if(!v)return{offset:t,size:e};const _=o.getUint32(v);return e-32<_?{offset:t,size:e}:(m=new Uint8Array(s,t+v+4,_),{version:a,systemId:d,kids:p,data:m,offset:t,size:e})}const Y=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Ft={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Ke(o,e){const t=Ft[e];return!!t&&!!t[o.slice(0,4)]}function st(o,e,t=!0){return!o.split(",").some(n=>!_t(n,e,t))}function _t(o,e,t=!0){var n;const r=ze(t);return(n=r==null?void 0:r.isTypeSupported(xe(o,e)))!=null?n:!1}function xe(o,e){return`${e}/mp4;codecs=${o}`}function _e(o){if(o){const e=o.substring(0,4);return Ft.video[e]}return 2}function et(o){const e=Y();return o.split(",").reduce((t,n)=>{const a=e&&pt(n)?9:Ft.video[n];return a?(a*2+t)/(t?3:2):(Ft.audio[n]+t)/(t?2:1)},0)}const Qe={};function z(o,e=!0){if(Qe[o])return Qe[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[o];for(let r=0;r<t.length;r++){var n;if(_t(t[r],"audio",e))return Qe[o]=t[r],t[r];if(t[r]==="mp3"&&(n=ze(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return o}const Rt=/flac|opus|mp4a\.40\.34/i;function ge(o,e=!0){return o.replace(Rt,t=>z(t.toLowerCase(),e))}function Ht(o,e){const t=[];if(o){const n=o.split(",");for(let r=0;r<n.length;r++)Ke(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function cn(o,e){if(o&&(o.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(o)!==-1)&&(mt(o,"audio")||mt(o,"video")))return o;if(e){const t=e.split(",");if(t.length>1){if(o){for(let n=t.length;n--;)if(t[n].substring(0,4)===o.substring(0,4))return t[n]}return t[0]}}return e||o}function mt(o,e){return Ke(o,e)&&_t(o,e)}function ne(o){const e=o.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");n.length>2&&n[0]==="avc1"&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}function we(o){if(o.startsWith("av01.")){const e=o.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return o}function B(o){const e=ze(o)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function xt(o){return o.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const lt={supported:!0,powerEfficient:!0,smooth:!0},ot={supported:!1,smooth:!1,powerEfficient:!1},$t={supported:!0,configurations:[],decodingInfoResults:[lt]};function Bt(o,e){return{supported:!1,configurations:e,decodingInfoResults:[ot],error:o}}function zt(o,e,t,n,r,a){const s=o.videoCodec,d=o.audioCodec?o.audioGroups:null,p=a==null?void 0:a.audioCodec,m=a==null?void 0:a.channels,v=m?parseInt(m):p?1/0:2;let _=null;if(d!=null&&d.length)try{d.length===1&&d[0]?_=e.groups[d[0]].channels:_=d.reduce((F,ee)=>{if(ee){const ie=e.groups[ee];if(!ie)throw new Error(`Audio track group ${ee} not found`);Object.keys(ie.channels).forEach(We=>{F[We]=(F[We]||0)+ie.channels[We]})}return F},{2:0})}catch(F){return!0}return s!==void 0&&(s.split(",").some(F=>pt(F))||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))||!!_&&i(v)&&Object.keys(_).some(F=>parseInt(F)>v)}function re(o,e,t,n={}){const r=o.videoCodec;if(!r&&!o.audioCodec||!t)return Promise.resolve($t);const a=[],s=ve(o),d=s.length,p=wt(o,e,d>0),m=p.length;for(let v=d||1*m||1;v--;){const _={type:"media-source"};if(d&&(_.video=s[v%d]),m){_.audio=p[v%m];const F=_.audio.bitrate;_.video&&F&&(_.video.bitrate-=F)}a.push(_)}if(r){const v=navigator.userAgent;if(r.split(",").some(_=>pt(_))&&Y())return Promise.resolve(Bt(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${v})`),a))}return Promise.all(a.map(v=>{const _=ue(v);return n[_]||(n[_]=t.decodingInfo(v))})).then(v=>({supported:!v.some(_=>!_.supported),configurations:a,decodingInfoResults:v})).catch(v=>({supported:!1,configurations:a,decodingInfoResults:[],error:v}))}function ve(o){var e;const t=(e=o.videoCodec)==null?void 0:e.split(","),n=Be(o),r=o.width||640,a=o.height||480,s=o.frameRate||30,d=o.videoRange.toLowerCase();return t?t.map(p=>{const m={contentType:xe(we(p),"video"),width:r,height:a,bitrate:n,framerate:s};return d!=="sdr"&&(m.transferFunction=d),m}):[]}function wt(o,e,t){var n;const r=(n=o.audioCodec)==null?void 0:n.split(","),a=Be(o);return r&&o.audioGroups?o.audioGroups.reduce((s,d)=>{var p;const m=d?(p=e.groups[d])==null?void 0:p.tracks:null;return m?m.reduce((v,_)=>{if(_.groupId===d){const F=parseFloat(_.channels||"");r.forEach(ee=>{const ie={contentType:xe(ee,"audio"),bitrate:t?Ne(ee,a):a};F&&(ie.channels=""+F),v.push(ie)})}return v},s):s},[]):[]}function Ne(o,e){if(e<=1)return 1;let t=128e3;return o==="ec-3"?t=768e3:o==="ac-3"&&(t=64e4),Math.min(e/2,t)}function Be(o){return Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)/1e3)*1e3||1}function ue(o){let e="";const{audio:t,video:n}=o;if(n){const r=xt(n.contentType);e+=`${r}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const r=xt(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const Ie=["NONE","TYPE-0","TYPE-1",null];function Fe(o){return Ie.indexOf(o)>-1}const $e=["SDR","PQ","HLG"];function ut(o){return!!o&&$e.indexOf(o)>-1}var Gt={No:"",Yes:"YES",v2:"v2"};function sn(o){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=o,r=n<e/2;return e&&r?t?Gt.v2:Gt.Yes:Gt.No}class je{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 ct{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Dt(this._audioGroups,e)}hasSubtitleGroup(e){return Dt(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 Dt(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function qt(){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 Jt(o,e){let t=!1,n=[];if(o&&(t=o!=="SDR",n=[o]),e){n=e.allowedVideoRanges||$e.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&qt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const Ge=o=>{const e=new WeakSet;return(t,n)=>{if(o&&(n=o(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},ft=(o,e)=>JSON.stringify(o,Ge(e));function Mt(o,e,t,n,r){const a=Object.keys(o),s=n==null?void 0:n.channels,d=n==null?void 0:n.audioCodec,p=r==null?void 0:r.videoCodec,m=s&&parseInt(s)===2;let v=!1,_=!1,F=1/0,ee=1/0,ie=1/0,We=1/0,He=0,Ot=[];const{preferHDR:Kt,allowedVideoRanges:Wt}=Jt(e,r);for(let Vn=a.length;Vn--;){const Hn=o[a[Vn]];v||(v=Hn.channels[2]>0),F=Math.min(F,Hn.minHeight),ee=Math.min(ee,Hn.minFramerate),ie=Math.min(ie,Hn.minBitrate),Wt.filter(gr=>Hn.videoRanges[gr]>0).length>0&&(_=!0)}F=i(F)?F:0,ee=i(ee)?ee:0;const gn=Math.max(1080,F),wn=Math.max(30,ee);ie=i(ie)?ie:t,t=Math.max(ie,t),_||(e=void 0);const lr=a.length>1;return{codecSet:a.reduce((Vn,Hn)=>{const Pn=o[Hn];if(Hn===Vn)return Vn;if(Ot=_?Wt.filter(gr=>Pn.videoRanges[gr]>0):[],lr){if(Pn.minBitrate>t)return Ye(Hn,`min bitrate of ${Pn.minBitrate} > current estimate of ${t}`),Vn;if(!Pn.hasDefaultAudio)return Ye(Hn,"no renditions with default or auto-select sound found"),Vn;if(d&&Hn.indexOf(d.substring(0,4))%5!==0)return Ye(Hn,`audio codec preference "${d}" not found`),Vn;if(s&&!m){if(!Pn.channels[s])return Ye(Hn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Pn.channels)})`),Vn}else if((!d||m)&&v&&Pn.channels[2]===0)return Ye(Hn,"no renditions with stereo sound found"),Vn;if(Pn.minHeight>gn)return Ye(Hn,`min resolution of ${Pn.minHeight} > maximum of ${gn}`),Vn;if(Pn.minFramerate>wn)return Ye(Hn,`min framerate of ${Pn.minFramerate} > maximum of ${wn}`),Vn;if(!Ot.some(gr=>Pn.videoRanges[gr]>0))return Ye(Hn,`no variants with VIDEO-RANGE of ${ft(Ot)} found`),Vn;if(p&&Hn.indexOf(p.substring(0,4))%5!==0)return Ye(Hn,`video codec preference "${p}" not found`),Vn;if(Pn.maxScore<He)return Ye(Hn,`max score of ${Pn.maxScore} < selected max of ${He}`),Vn}return Vn&&(et(Hn)>=et(Vn)||Pn.fragmentError>o[Vn].fragmentError)?Vn:(We=Pn.minIndex,He=Pn.maxScore,Hn)},void 0),videoRanges:Ot,preferHDR:Kt,minFramerate:ee,minBitrate:ie,minIndex:We}}function Ye(o,e){pe.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function jt(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 rn(o,e,t,n){return o.slice(t,n+1).reduce((r,a,s)=>{if(!a.codecSet)return r;const d=a.audioGroups;let p=r[a.codecSet];p||(r[a.codecSet]=p={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!d,fragmentError:0}),p.minBitrate=Math.min(p.minBitrate,a.bitrate);const m=Math.min(a.height,a.width);return p.minHeight=Math.min(p.minHeight,m),p.minFramerate=Math.min(p.minFramerate,a.frameRate),p.minIndex=Math.min(p.minIndex,s),p.maxScore=Math.max(p.maxScore,a.score),p.fragmentError+=a.fragmentError,p.videoRanges[a.videoRange]=(p.videoRanges[a.videoRange]||0)+1,d&&d.forEach(v=>{if(!v)return;const _=e.groups[v];_&&(p.hasDefaultAudio=p.hasDefaultAudio||e.hasDefaultAudio?_.hasDefault:_.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(_.channels).forEach(F=>{p.channels[F]=(p.channels[F]||0)+_.channels[F]}))}),r},{})}function an(o){if(!o)return o;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:a}=o;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:a}}function nn(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(mn(o,r,t))return n}return-1}function mn(o,e,t){const{groupId:n,name:r,lang:a,assocLang:s,default:d}=o,p=o.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(a===void 0||bn(a,e.lang))&&(a===void 0||e.assocLang===s)&&(d===void 0||e.default===d)&&(p===void 0||e.forced===p)&&(!("characteristics"in o)||In(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function bn(o,e="--"){return o.length===e.length?o===e:o.startsWith(e)||e.startsWith(o)}function In(o,e=""){const t=o.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function _n(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 Cn(o,e,t,n,r){const a=e[n],d=e.reduce((F,ee,ie)=>{const We=ee.uri;return(F[We]||(F[We]=[])).push(ie),F},{})[a.uri];d.length>1&&(n=Math.max.apply(Math,d));const p=a.videoRange,m=a.frameRate,v=a.codecSet.substring(0,4),_=Zn(e,n,F=>{if(F.videoRange!==p||F.frameRate!==m||F.codecSet.substring(0,4)!==v)return!1;const ee=F.audioGroups,ie=t.filter(We=>!ee||ee.indexOf(We.groupId)!==-1);return nn(o,ie,r)>-1});return _>-1?_:Zn(e,n,F=>{const ee=F.audioGroups,ie=t.filter(We=>!ee||ee.indexOf(We.groupId)!==-1);return nn(o,ie,r)>-1})}function Zn(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}function Ln(o,e){var t;return!!o&&o!==((t=e.loadLevelObj)==null?void 0:t.uri)}class rr extends X{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:a,hls:s}=this,{autoLevelEnabled:d,media:p}=s;if(!r||!p)return;const m=performance.now(),v=a?a.stats:r.stats,_=a?a.duration:r.duration,F=m-v.loading.start,ee=s.minAutoLevel,ie=r.level,We=this._nextAutoLevel;if(v.aborted||v.loaded&&v.loaded===v.total||ie<=ee){this.clearTimer(),this._nextAutoLevel=-1;return}if(!d)return;const He=We>-1&&We!==ie,Ot=!!t||He;if(!Ot&&(p.paused||!p.playbackRate||!p.readyState))return;const Kt=s.mainForwardBufferInfo;if(!Ot&&Kt===null)return;const Wt=this.bwEstimator.getEstimateTTFB(),gn=Math.abs(p.playbackRate);if(F<=Math.max(Wt,1e3*(_/(gn*2))))return;const wn=Kt?Kt.len/gn:0,lr=v.loading.first?v.loading.first-v.loading.start:-1,An=v.loaded&&lr>-1,Vn=this.getBwEstimate(),Hn=s.levels,Pn=Hn[ie],gr=Math.max(v.loaded,Math.round(_*(r.bitrate||Pn.averageBitrate)/8));let Hr=An?F-lr:F;Hr<1&&An&&(Hr=Math.min(F,v.loaded*8/Vn));const si=An?v.loaded*1e3/Hr:0,pi=Wt/1e3,oi=si?(gr-v.loaded)/si:gr*8/Vn+pi;if(oi<=wn)return;const kr=si?si*8:Vn,li=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,qr=this.hls.config.abrBandWidthUpFactor;let di=Number.POSITIVE_INFINITY,_i;for(_i=ie-1;_i>ee;_i--){const xa=Hn[_i].maxBitrate,Hi=!Hn[_i].details||li;if(di=this.getTimeToLoadFrag(pi,kr,_*xa,Hi),di<Math.min(wn,_+pi))break}if(di>=oi||di>_*10)return;An?this.bwEstimator.sample(F-Math.min(Wt,lr),v.loaded):this.bwEstimator.sampleTTFB(F);const Ur=Hn[_i].maxBitrate;this.getBwEstimate()*qr>Ur&&this.resetEstimator(Ur);const Kr=this.findBestLevel(Ur,ee,_i,0,wn,1,1);Kr>-1&&(_i=Kr),this.warn(`Fragment ${r.sn}${a?" part "+a.index:""} of level ${ie} is loading too slowly;
Fragment duration: ${r.duration.toFixed(3)}
Time to underbuffer: ${wn.toFixed(3)} s
Estimated load time for current fragment: ${oi.toFixed(3)} s
Estimated load time for down switch fragment: ${di.toFixed(3)} s
TTFB estimate: ${lr|0} ms
Current BW estimate: ${i(Vn)?Vn|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${_i} @ ${Ur|0} bps`),s.nextLoadLevel=s.nextAutoLevel=_i,this.clearTimer();const $i=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===_i&&_i>0){const xa=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${_i>0?"and switching down":""}
Fragment duration: ${r.duration.toFixed(3)} s
Time to underbuffer: ${xa.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,_i>ee){let Hi=this.findBestLevel(this.hls.levels[ee].bitrate,ee,_i,0,xa,1,1);Hi===-1&&(Hi=ee),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Hi,this.resetEstimator(this.hls.levels[Hi].bitrate)}}};He||oi>di*2?$i():this.timer=self.setInterval($i,di*1e3),s.trigger(g.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:a,stats:v})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new y(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(g.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},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 Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Z.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:a}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),d=a?a.stats:n.stats,p=s-d.loading.start,m=d.loading.first?d.loading.first-d.loading.start:-1;if(d.loaded&&m>-1){const _=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(p-Math.min(_,m),d.loaded)}else this.bwEstimator.sampleTTFB(p)}break}}}getTimeToLoadFrag(e,t,n,r){const a=e+n/t,s=r?e+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,a=r.end-r.first;i(a)&&(this.lastLevelLoadSec=a/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===V.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 a=n?n.duration:t.duration,s=this.hls.levels[t.level],d=(s.loaded?s.loaded.bytes:0)+r.loaded,p=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:d,duration:p},s.realBitrate=Math.round(8*d/p)}if(t.bitrateTest){const a={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(g.FRAG_BUFFERED,a),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,a=r!=null&&r.stats.loaded?r.stats:n.stats;if(a.aborted||this.ignoreFragment(n))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==V.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,a=this.findBestLevel(n,t,e,0,r,1,1);if(a>-1)return a;const s=this.hls.firstLevel,d=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${d}`),d}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 a=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,a)&&s[e].loadError<=s[a].loadError)return e}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:a,minAutoLevel:s}=n,d=t?t.duration:e?e.duration:0,p=this.getBwEstimate(),m=this.getStarvationDelay();let v=a.abrBandWidthFactor,_=a.abrBandWidthUpFactor;if(m){const He=this.findBestLevel(p,s,r,m,0,v,_);if(He>=0)return this.rebufferNotice=-1,He}let F=d?Math.min(d,a.maxStarvationDelay):a.maxStarvationDelay;if(!m){const He=this.bitrateTestDelay;He&&(F=(d?Math.min(d,a.maxLoadingDelay):a.maxLoadingDelay)-He,this.info(`bitrate test took ${Math.round(1e3*He)}ms, set first fragment max fetchDuration to ${Math.round(1e3*F)} ms`),v=_=1)}const ee=this.findBestLevel(p,s,r,m,F,v,_);if(this.rebufferNotice!==ee&&(this.rebufferNotice=ee,this.info(`${m?"rebuffering expected":"buffer is empty"}, optimal quality level ${ee}`)),ee>-1)return ee;const ie=n.levels[s],We=n.loadLevelObj;return We&&(ie==null?void 0:ie.bitrate)<We.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,a,s,d){var p;const m=r+a,v=this.lastLoadedFragLevel,_=v===-1?this.hls.firstLevel:v,{fragCurrent:F,partCurrent:ee}=this,{levels:ie,allAudioTracks:We,loadLevel:He,config:Ot}=this.hls;if(ie.length===1)return 0;const Kt=ie[_],Wt=!!((p=this.hls.latestLevelDetails)!=null&&p.live),gn=He===-1||v===-1;let wn,lr="SDR",An=(Kt==null?void 0:Kt.frameRate)||0;const{audioPreference:Vn,videoPreference:Hn}=Ot,Pn=this.audioTracksByGroup||(this.audioTracksByGroup=jt(We));let gr=-1;if(gn){if(this.firstSelection!==-1)return this.firstSelection;const kr=this.codecTiers||(this.codecTiers=rn(ie,Pn,t,n)),li=Mt(kr,lr,e,Vn,Hn),{codecSet:qr,videoRanges:di,minFramerate:_i,minBitrate:Ur,minIndex:Kr,preferHDR:$i}=li;gr=Kr,wn=qr,lr=$i?di[di.length-1]:di[0],An=_i,e=Math.max(e,Ur),this.log(`picked start tier ${ft(li)}`)}else wn=Kt==null?void 0:Kt.codecSet,lr=Kt==null?void 0:Kt.videoRange;const Hr=ee?ee.duration:F?F.duration:0,si=this.bwEstimator.getEstimateTTFB()/1e3,pi=[];for(let kr=n;kr>=t;kr--){var oi;const li=ie[kr],qr=kr>_;if(!li)continue;if(Ot.useMediaCapabilities&&!li.supportedResult&&!li.supportedPromise){const Hi=navigator.mediaCapabilities;typeof(Hi==null?void 0:Hi.decodingInfo)=="function"&&zt(li,Pn,lr,An,e,Vn)?(li.supportedPromise=re(li,Pn,Hi,this.supportedCache),li.supportedPromise.then(na=>{if(!this.hls)return;li.supportedResult=na;const us=this.hls.levels,as=us.indexOf(li);na.error?this.warn(`MediaCapabilities decodingInfo error: "${na.error}" for level ${as} ${ft(na)}`):na.supported?na.decodingInfoResults.some(ks=>ks.smooth===!1||ks.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${as} not smooth or powerEfficient: ${ft(na)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${as} ${ft(na)}`),as>-1&&us.length>1&&(this.log(`Removing unsupported level ${as}`),this.hls.removeLevel(as),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(na=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${na}`)})):li.supportedResult=$t}if((wn&&li.codecSet!==wn||lr&&li.videoRange!==lr||qr&&An>li.frameRate||!qr&&An>0&&An<li.frameRate||(oi=li.supportedResult)!=null&&(oi=oi.decodingInfoResults)!=null&&oi.some(Hi=>Hi.smooth===!1))&&(!gn||kr!==gr)){pi.push(kr);continue}const di=li.details,_i=(ee?di==null?void 0:di.partTarget:di==null?void 0:di.averagetargetduration)||Hr;let Ur;qr?Ur=d*e:Ur=s*e;const Kr=Hr&&r>=Hr*2&&a===0?li.averageBitrate:li.maxBitrate,$i=this.getTimeToLoadFrag(si,Ur,Kr*_i,di===void 0);if(Ur>=Kr&&(kr===v||li.loadError===0&&li.fragmentError===0)&&($i<=si||!i($i)||Wt&&!this.bitrateTestDelay||$i<m)){const Hi=this.forcedAutoLevel;return kr!==He&&(Hi===-1||Hi!==He)&&(pi.length&&this.trace(`Skipped level(s) ${pi.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${ie[pi[0]].codecs}" ${ie[pi[0]].videoRange}; not compatible with "${wn}" ${lr}`),this.info(`switch candidate:${_}->${kr} adjustedbw(${Math.round(Ur)})-bitrate=${Math.round(Ur-Kr)} ttfb:${si.toFixed(1)} avgDuration:${_i.toFixed(1)} maxFetchDuration:${m.toFixed(1)} fetchDuration:${$i.toFixed(1)} firstSelection:${gn} codecSet:${li.codecSet} videoRange:${li.videoRange} hls.loadLevel:${He}`)),gn&&(this.firstSelection=kr),kr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const Dn={search:function(o,e){let t=0,n=o.length-1,r=null,a=null;for(;t<=n;){r=(t+n)/2|0,a=o[r];const s=e(a);if(s>0)t=r+1;else if(s<0)n=r-1;else return a}return null}};function jn(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!i(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;for(let a=0;a<o.length;++a){const s=o[a];if(Jn(e,t,s))return s}return null}function Xn(o,e,t=0,n=0,r=.005){let a=null;if(o){a=e[1+o.sn-e[0].sn]||null;const d=o.endDTS-t;d>0&&d<15e-7&&(t+=15e-7),a&&o.level!==a.level&&a.end<=o.end&&(a=e[2+o.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(a=e[0]);if(a&&((!o||o.level===a.level)&&Gn(t,n,a)===0||Wn(a,o,Math.min(r,n))))return a;const s=Dn.search(e,Gn.bind(null,t,n));return s&&(s!==o||!a)?s:a}function Wn(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,a)=>(a[0]==="INF"&&(r+=parseFloat(a[1])),r),t);return o.start<=n}return!1}function Gn(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 Jn(o,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>o}function Rn(o,e,t){if(o&&o.startCC<=e&&o.endCC>=e){let n=o.fragments;const{fragmentHint:r}=o;r&&(n=n.concat(r));let a;return Dn.search(n,s=>s.cc<e?1:s.cc>e?-1:(a=s,s.end<=t?1:s.start>t?-1:0)),a||null}return null}function Bn(o){switch(o.details){case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_TIMEOUT:case Z.LEVEL_LOAD_TIMEOUT:case Z.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function ln(o){return o.details.startsWith("key")}function Tt(o){return ln(o)&&!!o.frag&&!o.frag.decryptdata}function Fn(o,e){const t=Bn(e);return o.default[`${t?"timeout":"error"}Retry`]}function On(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function sr(o){return T(T({},o),{errorRetry:null,timeoutRetry:null})}function dr(o,e,t,n){if(!o)return!1;const r=n==null?void 0:n.code,a=e<o.maxNumRetry&&(Ar(r)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,n,a):a}function Ar(o){return ur(o)||!!o&&(o<400||o>499)}function ur(o){return o===0&&navigator.onLine===!1}var Yn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},vn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class hn extends X{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.ERROR,this.onError,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.ERROR,this.onError,this),e.off(g.ERROR,this.onErrorOut,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===V.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||n===-1?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if((n=e.details)!=null&&n.hasKey(t))return!0;const r=e.audioGroups;if(r)return this.hls.allAudioTracks.filter(s=>r.indexOf(s.groupId)>=0).some(s=>{var d;return(d=s.details)==null?void 0:d.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,a=t.context;switch(t.details){case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case Z.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=xn();return}case Z.FRAG_GAP:case Z.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Yn.SendAlternateToPenaltyBox;return}case Z.LEVEL_EMPTY_ERROR:case Z.LEVEL_PARSING_ERROR:{var s;const p=t.parent===V.MAIN?t.level:r.loadLevel;t.details===Z.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,p):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,p))}return;case Z.LEVEL_LOAD_ERROR:case Z.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level));return;case Z.AUDIO_TRACK_LOAD_ERROR:case Z.AUDIO_TRACK_LOAD_TIMEOUT:case Z.SUBTITLE_LOAD_ERROR:case Z.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const p=r.loadLevelObj;if(p&&(a.type===H.AUDIO_TRACK&&p.hasAudioGroup(a.groupId)||a.type===H.SUBTITLE_TRACK&&p.hasSubtitleGroup(a.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Yn.SendAlternateToPenaltyBox,t.errorAction.flags=vn.MoveAllAlternatesMatchingHost;return}}return;case Z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Yn.SendAlternateToPenaltyBox,flags:vn.MoveAllAlternatesMatchingHDCP};return;case Z.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Z.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Z.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Yn.SendAlternateToPenaltyBox,flags:vn.MoveAllAlternatesMatchingKey};return;case Z.BUFFER_ADD_CODEC_ERROR:case Z.REMUX_ALLOC_ERROR:case Z.BUFFER_APPEND_ERROR:if(!t.errorAction){var d;t.errorAction=this.getLevelSwitchAction(t,(d=t.level)!=null?d:r.loadLevel)}return;case Z.INTERNAL_EXCEPTION:case Z.BUFFER_APPENDING_ERROR:case Z.BUFFER_FULL_ERROR:case Z.LEVEL_SWITCH_ERROR:case Z.BUFFER_STALLED_ERROR:case Z.BUFFER_SEEK_OVER_HOLE:case Z.BUFFER_NUDGE_ON_STALL:t.errorAction=xn();return}t.type===fe.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=xn())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Fn(n.config.playlistLoadPolicy,e),a=this.playlistError++;if(dr(r,a,Bn(e),e.response))return{action:Yn.RetryRequest,flags:vn.None,retryConfig:r,retryCount:a};const d=this.getLevelSwitchAction(e,t);return r&&(d.retryConfig=r,d.retryCount=a),d}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:a,keyLoadPolicy:s}=t.config,d=Fn(ln(e)?s:a,e),p=t.levels.reduce((v,_)=>v+_.fragmentError,0);if(r&&(e.details!==Z.FRAG_GAP&&r.fragmentError++,!Tt(e)&&dr(d,p,Bn(e),e.response)))return{action:Yn.RetryRequest,flags:vn.None,retryConfig:d,retryCount:p};const m=this.getLevelSwitchAction(e,n);return d&&(m.retryConfig=d,m.retryCount=p),m}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var a,s;const m=e.details;r.loadError++,m===Z.BUFFER_APPEND_ERROR&&r.fragmentError++;let v=-1;const{levels:_,loadLevel:F,minAutoLevel:ee,maxAutoLevel:ie}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const We=(a=e.frag)==null?void 0:a.type,Ot=(We===V.AUDIO&&m===Z.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(m===Z.BUFFER_ADD_CODEC_ERROR||m===Z.BUFFER_APPEND_ERROR))&&_.some(({audioCodec:lr})=>r.audioCodec!==lr),Wt=e.sourceBufferName==="video"&&(m===Z.BUFFER_ADD_CODEC_ERROR||m===Z.BUFFER_APPEND_ERROR)&&_.some(({codecSet:lr,audioCodec:An})=>r.codecSet!==lr&&r.audioCodec===An),{type:gn,groupId:wn}=(s=e.context)!=null?s:{};for(let lr=_.length;lr--;){const An=(lr+F)%_.length;if(An!==F&&An>=ee&&An<=ie&&_[An].loadError===0){var d,p;const Vn=_[An];if(m===Z.FRAG_GAP&&We===V.MAIN&&e.frag){const Hn=_[An].details;if(Hn){const Pn=Xn(e.frag,Hn.fragments,e.frag.start);if(Pn!=null&&Pn.gap)continue}}else{if(gn===H.AUDIO_TRACK&&Vn.hasAudioGroup(wn)||gn===H.SUBTITLE_TRACK&&Vn.hasSubtitleGroup(wn))continue;if(We===V.AUDIO&&(d=r.audioGroups)!=null&&d.some(Hn=>Vn.hasAudioGroup(Hn))||We===V.SUBTITLE&&(p=r.subtitleGroups)!=null&&p.some(Hn=>Vn.hasSubtitleGroup(Hn))||Ot&&r.audioCodec===Vn.audioCodec||Wt&&r.codecSet===Vn.codecSet||!Ot&&r.codecSet!==Vn.codecSet)continue}v=An;break}}if(v>-1&&n.loadLevel!==v)return e.levelRetry=!0,this.playlistError=0,{action:Yn.SendAlternateToPenaltyBox,flags:vn.None,nextAutoLevel:v}}return{action:Yn.SendAlternateToPenaltyBox,flags:vn.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Yn.DoNothing:break;case Yn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==Z.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 Yn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r}=n,a=n.nextAutoLevel;switch(r){case vn.None:this.switchLevel(e,a);break;case vn.MoveAllAlternatesMatchingHDCP:{const p=this.getVariantLevelIndex(e.frag),m=t.levels[p],v=m==null?void 0:m.attrs["HDCP-LEVEL"];if(n.hdcpLevel=v,v==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(v){t.maxHdcpLevel=Ie[Ie.indexOf(v)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case vn.MoveAllAlternatesMatchingKey:{const p=e.decryptdata;if(p){const m=this.hls.levels,v=m.length;for(let F=v;F--;)if(this.variantHasKey(m[F],p)){var s,d;this.log(`Banned key found in level ${F} (${m[F].bitrate}bps) or audio group "${(s=m[F].audioGroups)==null?void 0:s.join(",")}" (${(d=e.frag)==null?void 0:d.type} fragment) ${le(p.keyId||[])}`),m[F].fragmentError++,m[F].loadError++,this.log(`Removing level ${F} with key error (${e.error})`),this.hls.removeLevel(F)}const _=e.frag;if(this.hls.levels.length<v)n.resolved=!0;else if(_&&_.type!==V.MAIN){const F=_.decryptdata;F&&!p.matches(F)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===Z.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=xt(e.mimeType),r=this.hls.levels;for(let a=r.length;a--;)r[a][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${a} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(a))}}}function xn(o){const e={action:Yn.DoNothing,flags:vn.None};return o&&(e.resolved=!0),e}var Qn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class tr{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&&(e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=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 a=n[r];if(!a)break;if(a.start<=e&&e<=a.end&&a.loaded)return a}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,a=Object.keys(r);for(let s=a.length;s--;){const d=r[a[s]];if((d==null?void 0:d.body.type)===t&&(!n||d.buffered)){const p=d.body;if(p.start<=e&&e<=p.end)return p}}return null}detectEvictedFragments(e,t,n,r,a){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(d=>{const p=this.fragments[d];if(!p||s>=p.body.sn)return;if(!p.buffered&&(!p.loaded||a)){p.body.type===n&&this.removeFragment(p.body);return}const m=p.range[e];if(m){if(m.time.length===0){this.removeFragment(p.body);return}m.time.some(v=>{const _=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return _&&this.removeFragment(p.body),_})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Er(n),a=this.fragments[r];if(!a||a.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(d=>{const p=n.elementaryStreams[d];if(!p)return;const m=t[d],v=s||p.partial===!0;a.range[d]=this.getBufferedTimes(n,e.part,v,m)}),a.loaded=null,Object.keys(a.range).length?(this.bufferedEnd(a,n),yr(a)||this.removeParts(n.sn-1,n.type)):this.removeFragment(a.body)}bufferedEnd(e,t){e.buffered=!0,(e.body.endList=t.endList||e.body.endList)&&(this.endListFragments[e.body.type]=e)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=$n(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Er(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,this.bufferedEnd(r,e))}getBufferedTimes(e,t,n,r){const a={time:[],partial:n},s=e.start,d=e.end,p=e.minEndPTS||d,m=e.maxStartPTS||s;for(let v=0;v<r.length;v++){const _=r.start(v)-this.bufferPadding,F=r.end(v)+this.bufferPadding;if(m>=_&&p<=F){a.time.push({startPTS:Math.max(s,r.start(v)),endPTS:Math.min(d,r.end(v))});break}else if(s<F&&d>_){const ee=Math.max(s,r.start(v)),ie=Math.min(d,r.end(v));ie>ee&&(a.partial=!0,a.time.push({startPTS:ee,endPTS:ie}))}else if(d<=_)break}return a}getPartialFragment(e){let t=null,n,r,a,s=0;const{bufferPadding:d,fragments:p}=this;return Object.keys(p).forEach(m=>{const v=p[m];v&&yr(v)&&(r=v.body.start-d,a=v.body.end+d,e>=r&&e<=a&&(n=Math.min(e-r,a-e),s<=n&&(t=v.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||yr(t))}getState(e){const t=Er(e),n=this.fragments[t];return n?n.buffered?yr(n)?Qn.PARTIAL:Qn.OK:Qn.APPENDING:Qn.NOT_LOADED}isTimeBuffered(e,t,n){let r,a;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,a=n.end(s)+this.bufferPadding,e>=r&&t<=a)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,a=Er(n);this.fragments[a]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:a,type:s}=t;if(n.sn==="initSegment")return;const d=n.type;if(r){let m=this.activePartLists[d];m||(this.activePartLists[d]=m=[]),m.push(r)}this.timeRanges=a;const p=a[s];this.detectEvictedFragments(s,p,d,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Er(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const a=t[n[r]];if((a==null?void 0:a.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,a){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const d=this.fragments[s];if(!d)return;const p=d.body;p.type!==n||r&&!p.gap||p.start<t&&p.end>e&&(d.buffered||a)&&this.removeFragment(p)})}removeFragment(e){const t=Er(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=$n(n,a=>a.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(n=>n.clearElementaryStreamInfo())}}function yr(o){var e,t,n;return o.buffered&&!!(o.body.gap||(e=o.range.video)!=null&&e.partial||(t=o.range.audio)!=null&&t.partial||(n=o.range.audiovideo)!=null&&n.partial)}function Er(o){return`${o.type}_${o.level}_${o.sn}`}function $n(o,e){return o.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var Sr={cbc:0,ctr:1};class Dr{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case Sr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Sr.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function $r(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?o.slice(0,e-t):o}class Mr{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],a=n[1],s=n[2],d=n[3],p=this.invSubMix,m=p[0],v=p[1],_=p[2],F=p[3],ee=new Uint32Array(256);let ie=0,We=0,He=0;for(He=0;He<256;He++)He<128?ee[He]=He<<1:ee[He]=He<<1^283;for(He=0;He<256;He++){let Ot=We^We<<1^We<<2^We<<3^We<<4;Ot=Ot>>>8^Ot&255^99,e[ie]=Ot,t[Ot]=ie;const Kt=ee[ie],Wt=ee[Kt],gn=ee[Wt];let wn=ee[Ot]*257^Ot*16843008;r[ie]=wn<<24|wn>>>8,a[ie]=wn<<16|wn>>>16,s[ie]=wn<<8|wn>>>24,d[ie]=wn,wn=gn*16843009^Wt*65537^Kt*257^ie*16843008,m[Ot]=wn<<24|wn>>>8,v[Ot]=wn<<16|wn>>>16,_[Ot]=wn<<8|wn>>>24,F[Ot]=wn,ie?(ie=Kt^ee[ee[ee[gn^Kt]]],We^=ee[ee[We]]):ie=We=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 a=this.keySize=t.length;if(a!==4&&a!==6&&a!==8)throw new Error("Invalid aes key size="+a);const s=this.ksRows=(a+6+1)*4;let d,p;const m=this.keySchedule=new Uint32Array(s),v=this.invKeySchedule=new Uint32Array(s),_=this.sBox,F=this.rcon,ee=this.invSubMix,ie=ee[0],We=ee[1],He=ee[2],Ot=ee[3];let Kt,Wt;for(d=0;d<s;d++){if(d<a){Kt=m[d]=t[d];continue}Wt=Kt,d%a===0?(Wt=Wt<<8|Wt>>>24,Wt=_[Wt>>>24]<<24|_[Wt>>>16&255]<<16|_[Wt>>>8&255]<<8|_[Wt&255],Wt^=F[d/a|0]<<24):a>6&&d%a===4&&(Wt=_[Wt>>>24]<<24|_[Wt>>>16&255]<<16|_[Wt>>>8&255]<<8|_[Wt&255]),m[d]=Kt=(m[d-a]^Wt)>>>0}for(p=0;p<s;p++)d=s-p,p&3?Wt=m[d]:Wt=m[d-4],p<4||d<=4?v[p]=Wt:v[p]=ie[_[Wt>>>24]]^We[_[Wt>>>16&255]]^He[_[Wt>>>8&255]]^Ot[_[Wt&255]],v[p]=v[p]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,a=this.invKeySchedule,s=this.invSBox,d=this.invSubMix,p=d[0],m=d[1],v=d[2],_=d[3],F=this.uint8ArrayToUint32Array_(n);let ee=F[0],ie=F[1],We=F[2],He=F[3];const Ot=new Int32Array(e),Kt=new Int32Array(Ot.length);let Wt,gn,wn,lr,An,Vn,Hn,Pn,gr,Hr,si,pi,oi,kr;const li=this.networkToHostOrderSwap;for(;t<Ot.length;){for(gr=li(Ot[t]),Hr=li(Ot[t+1]),si=li(Ot[t+2]),pi=li(Ot[t+3]),An=gr^a[0],Vn=pi^a[1],Hn=si^a[2],Pn=Hr^a[3],oi=4,kr=1;kr<r;kr++)Wt=p[An>>>24]^m[Vn>>16&255]^v[Hn>>8&255]^_[Pn&255]^a[oi],gn=p[Vn>>>24]^m[Hn>>16&255]^v[Pn>>8&255]^_[An&255]^a[oi+1],wn=p[Hn>>>24]^m[Pn>>16&255]^v[An>>8&255]^_[Vn&255]^a[oi+2],lr=p[Pn>>>24]^m[An>>16&255]^v[Vn>>8&255]^_[Hn&255]^a[oi+3],An=Wt,Vn=gn,Hn=wn,Pn=lr,oi=oi+4;Wt=s[An>>>24]<<24^s[Vn>>16&255]<<16^s[Hn>>8&255]<<8^s[Pn&255]^a[oi],gn=s[Vn>>>24]<<24^s[Hn>>16&255]<<16^s[Pn>>8&255]<<8^s[An&255]^a[oi+1],wn=s[Hn>>>24]<<24^s[Pn>>16&255]<<16^s[An>>8&255]<<8^s[Vn&255]^a[oi+2],lr=s[Pn>>>24]<<24^s[An>>16&255]<<16^s[Vn>>8&255]<<8^s[Hn&255]^a[oi+3],Kt[t]=li(Wt^ee),Kt[t+1]=li(lr^ie),Kt[t+2]=li(wn^We),Kt[t+3]=li(gn^He),ee=gr,ie=Hr,We=si,He=pi,t=t+4}return Kt.buffer}}class Or{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Cr(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Cr(o){switch(o){case Sr.cbc:return"AES-CBC";case Sr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${o}`)}}const zr=16;class wr{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?$r(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((a,s)=>{const d=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(d,t,n,r);const p=this.flush();p?a(p.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:a,currentResult:s,remainderData:d}=this;if(r!==Sr.cbc||t.byteLength!==16)return pe.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),d&&(e=Nt(d,e),this.remainderData=null);const p=this.getValidChunk(e);if(!p.length)return null;a&&(n=a);let m=this.softwareDecrypter;m||(m=this.softwareDecrypter=new Mr),m.expandKey(t);const v=s;return this.currentResult=m.decrypt(p.buffer,0,n),this.currentIV=p.slice(-16).buffer,v||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Or(this.subtle,t,r)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Dr(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(pe.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%zr;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(pe.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Vr=Math.pow(2,17);class Ir{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 or({type:fe.NETWORK_ERROR,details:Z.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,a=r.fLoader,s=r.loader;return new Promise((d,p)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(ie=>ie[0]==="GAP")){p(Tn(e));return}else e.gap=!1;const m=this.loader=a?new a(r):new s(r),v=tn(e);e.loader=m;const _=sr(r.fragLoadPolicy.default),F={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Vr};e.stats=m.stats;const ee={onSuccess:(ie,We,He,Ot)=>{this.resetLoader(e,m);let Kt=ie.data;He.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Kt.slice(0,16)),Kt=Kt.slice(16)),d({frag:e,part:null,payload:Kt,networkDetails:Ot})},onError:(ie,We,He,Ot)=>{this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:T({url:n,data:void 0},ie),error:new Error(`HTTP Error ${ie.code} ${ie.text}`),networkDetails:He,stats:Ot}))},onAbort:(ie,We,He)=>{this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:He,stats:ie}))},onTimeout:(ie,We,He)=>{this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${F.timeout}ms`),networkDetails:He,stats:ie}))}};t&&(ee.onProgress=(ie,We,He,Ot)=>t({frag:e,part:null,payload:He,networkDetails:Ot})),m.load(v,F,ee)})}loadPart(e,t,n){this.abort();const r=this.config,a=r.fLoader,s=r.loader;return new Promise((d,p)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){p(Tn(e,t));return}const m=this.loader=a?new a(r):new s(r),v=tn(e,t);e.loader=m;const _=sr(r.fragLoadPolicy.default),F={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Vr};t.stats=m.stats,m.load(v,F,{onSuccess:(ee,ie,We,He)=>{this.resetLoader(e,m),this.updateStatsFromPart(e,t);const Ot={frag:e,part:t,payload:ee.data,networkDetails:He};n(Ot),d(Ot)},onError:(ee,ie,We,He)=>{this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:T({url:v.url,data:void 0},ee),error:new Error(`HTTP Error ${ee.code} ${ee.text}`),networkDetails:We,stats:He}))},onAbort:(ee,ie,We)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:We,stats:ee}))},onTimeout:(ee,ie,We)=>{this.resetLoader(e,m),p(new or({type:fe.NETWORK_ERROR,details:Z.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${F.timeout}ms`),networkDetails:We,stats:ee}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,a=r.total;if(n.loaded+=r.loaded,a){const p=Math.round(e.duration/t.duration),m=Math.min(Math.round(n.loaded/a),p),_=(p-m)*Math.round(n.loaded/m);n.total=n.loaded+_}else n.total=Math.max(n.loaded,n.total);const s=n.loading,d=r.loading;s.start?s.first+=d.first-d.start:(s.start=d.start,s.first=d.first),s.end=d.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function tn(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,a=t.byteRangeEndOffset;if(i(r)&&i(a)){var s;let d=r,p=a;if(o.sn==="initSegment"&&cr((s=o.decryptdata)==null?void 0:s.method)){const m=a-r;m%16&&(p=a+(16-m%16)),r!==0&&(n.resetIV=!0,d=r-16)}n.rangeStart=d,n.rangeEnd=p}return n}function Tn(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),n={type:fe.MEDIA_ERROR,details:Z.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(n.part=e),(e||o).stats.aborted=!0,new or(n)}function cr(o){return o==="AES-128"||o==="AES-256"}class or extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Br extends X{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class ri{constructor(e,t,n,r=0,a=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=vi(),this.buffering={audio:vi(),video:vi(),audiovideo:vi()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=a,this.partial=s}}function vi(){return{start:0,executeStart:0,executeEnd:0,end:0}}const _r={length:0,start:()=>0,end:()=>0};class mr{static isBuffered(e,t){if(e){const n=mr.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=mr.getBuffered(e);return mr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=mr.bufferedRanges(e);if(r.length)return mr.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((v,_)=>v.start-_.start||_.end-v.end);let r=-1,a=[];if(n)for(let v=0;v<e.length;v++){t>=e[v].start&&t<=e[v].end&&(r=v);const _=a.length;if(_){const F=a[_-1].end;e[v].start-F<n?e[v].end>F&&(a[_-1].end=e[v].end):a.push(e[v])}else a.push(e[v])}else a=e;let s=0,d,p=t,m=t;for(let v=0;v<a.length;v++){const _=a[v].start,F=a[v].end;if(r===-1&&t>=_&&t<=F&&(r=v),t+n>=_&&t<F)p=_,m=F,s=m-t;else if(t+n<_){d=_;break}}return{len:s,start:p||0,end:m||0,nextStart:d,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||_r}catch(t){return pe.log("failed to get media.buffered",t),_r}}}const bi=/\{\$([a-zA-Z0-9-_]+)\}/g;function ar(o){return bi.test(o)}function wi(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(bi,n=>{const r=n.substring(2,n.length-1),a=t==null?void 0:t[r];return a===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):a})}return e}function Yi(o,e,t){let n=o.variableList;n||(o.variableList=n={});let r,a;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))a=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,a=e.VALUE;r in n?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=a||""}function Wi(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}"`))}const Mi=/^(\d+)x(\d+)$/,ki=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Gr{constructor(e,t){typeof e=="string"&&(e=Gr.parseAttrList(e,t)),b(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,a)=>(r[a.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Mi.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},a='"';for(ki.lastIndex=0;(n=ki.exec(e))!==null;){const s=n[1].trim();let d=n[2];const p=d.indexOf(a)===0&&d.lastIndexOf(a)===d.length-1;let m=!1;if(p)d=d.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":m=!0}if(t&&(p||m))d=wi(t,d);else if(!m&&!p)switch(s){case"CLOSED-CAPTIONS":if(d==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":pe.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=d}return r}}const Di="com.apple.hls.interstitial";function ra(o){return o!=="ID"&&o!=="CLASS"&&o!=="CUE"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function zi(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"||o==="SCTE35-CMD"}class hi{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const a=t.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==a[s]){pe.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=b(new Gr({}),a,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const a=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);i(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(pe.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(i(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===Di}get isValid(){return!!this.id&&!this._badValueForSameId&&i(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Ni=10;class Zi{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}hasKey(e){return this.encryptedFragments.some(t=>{let n=t.decryptdata;return n||(t.setKeyFormat(e.keyFormat),n=t.decryptdata),!!n&&e.matches(n)})}get hasProgramDateTime(){return this.fragments.length?i(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Ni}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(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Fr(o,e){return o.length===e.length?!o.some((t,n)=>t!==e[n]):!1}function ti(o,e){return!o&&!e?!0:!o||!e?!1:Fr(o,e)}function vr(o){return o==="AES-128"||o==="AES-256"||o==="AES-256-CTR"}function br(o){switch(o){case"AES-128":case"AES-256":return Sr.cbc;case"AES-256-CTR":return Sr.ctr;default:throw new Error(`invalid full segment method ${o}`)}}function Pr(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function Wr(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}function Ci(o){const e=Wr(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function xr(o){const e=function(n,r,a){const s=n[r];n[r]=n[a],n[a]=s};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function Rr(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 a=r[0]==="base64",s=r[1];a?(n.splice(-1,1),t=Pr(s)):t=Ci(s)}}return t}const Nr=typeof self!="undefined"?self:void 0;var Zr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ni={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ma(o){switch(o){case ni.FAIRPLAY:return Zr.FAIRPLAY;case ni.PLAYREADY:return Zr.PLAYREADY;case ni.WIDEVINE:return Zr.WIDEVINE;case ni.CLEARKEY:return Zr.CLEARKEY}}function Xi(o){switch(o){case Zr.FAIRPLAY:return ni.FAIRPLAY;case Zr.PLAYREADY:return ni.PLAYREADY;case Zr.WIDEVINE:return ni.WIDEVINE;case Zr.CLEARKEY:return ni.CLEARKEY}}function ua(o){const{drmSystems:e,widevineLicenseUrl:t}=o,n=e?[Zr.FAIRPLAY,Zr.WIDEVINE,Zr.PLAYREADY,Zr.CLEARKEY].filter(r=>!!e[r]):[];return!n[Zr.WIDEVINE]&&t&&n.push(Zr.WIDEVINE),n}const fi=function(o){return Nr!=null&&(o=Nr.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function ii(o,e,t,n){let r;switch(o){case Zr.FAIRPLAY:r=["cenc","sinf"];break;case Zr.WIDEVINE:case Zr.PLAYREADY:r=["cenc"];break;case Zr.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Ti(r,e,t,n)}function Ti(o,e,t,n){return[{initDataTypes:o,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Li(o){var e;return!!o&&(o.sessionType==="persistent-license"||!!((e=o.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function ia(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),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const d=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(d){const p=Pr(d).subarray(0,16);return xr(p),p}}return null}let pa={};class Sa{static clearKeyUriToKeyIdMap(){pa={}}static setKeyIdForUri(e,t){pa[e]=t}static addKeyIdForUri(e){const t=Object.keys(pa).length%Number.MAX_SAFE_INTEGER,n=new Uint8Array(16);return new DataView(n.buffer,12,4).setUint32(0,t),pa[e]=n,n}constructor(e,t,n,r=[1],a=null,s){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=a,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!vr(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(N(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&Fr(e.keyFormatVersions,this.keyFormatVersions)&&ti(e.iv,this.iv)&&ti(e.keyId,this.keyId)}isSupported(){if(this.method){if(vr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case ni.FAIRPLAY:case ni.WIDEVINE:case ni.PLAYREADY:case ni.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e,t){if(!this.encrypted||!this.uri)return null;if(vr(this.method)){let a=this.iv;return a||(typeof e!="number"&&(pe.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),a=Ta(e)),new Sa(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=pa[this.uri];if(a&&!Fr(this.keyId,a)&&Sa.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=Rr(this.uri);if(n)switch(this.keyFormat){case ni.WIDEVINE:if(this.pssh=n,!this.keyId){const a=at(n.buffer);if(a.length){var r;const s=a[0];this.keyId=(r=s.kids)!=null&&r.length?s.kids[0]:null}}this.keyId||(this.keyId=Wa(t));break;case ni.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=R(a,null,n),this.keyId=ia(n);break}default:{let a=n.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=Da(t),a||(a=Wa(t),a||(a=pa[this.uri])),a&&(this.keyId=a,Sa.setKeyIdForUri(this.uri,a))}return this}}function Da(o){const e=o==null?void 0:o[ni.WIDEVINE];return e?e.keyId:null}function Wa(o){const e=o==null?void 0:o[ni.PLAYREADY];if(e){const t=Rr(e.uri);if(t)return ia(t)}return null}function Ta(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const vs=/#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,Cs=/#EXT-X-MEDIA:(.*)/g,Ds=/^#EXT(?:INF|-X-TARGETDURATION):/m,$a=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Rs=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class za{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 w.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Ds.test(e)}static parseMasterPlaylist(e,t){const n=ar(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},a=[];if(vs.lastIndex=0,!e.startsWith("#EXTM3U"))return r.playlistParsingError=new Error("no EXTM3U delimiter"),r;let s;for(;(s=vs.exec(e))!=null;)if(s[1]){var d;const m=new Gr(s[1],r),v=wi(r,s[2]),_={attrs:m,bitrate:m.decimalInteger("BANDWIDTH")||m.decimalInteger("AVERAGE-BANDWIDTH"),name:m.NAME,url:za.resolve(v,t)},F=m.decimalResolution("RESOLUTION");F&&(_.width=F.width,_.height=F.height),ds(m.CODECS,_);const ee=m["SUPPLEMENTAL-CODECS"];ee&&(_.supplemental={},ds(ee,_.supplemental)),(d=_.unknownCodecs)!=null&&d.length||a.push(_),r.levels.push(_)}else if(s[3]){const m=s[3],v=s[4];switch(m){case"SESSION-DATA":{const _=new Gr(v,r),F=_["DATA-ID"];F&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[F]=_);break}case"SESSION-KEY":{const _=Ws(v,t,r);_.encrypted&&_.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(_)):pe.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${v}"`);break}case"DEFINE":{{const _=new Gr(v,r);Yi(r,_,t)}break}case"CONTENT-STEERING":{const _=new Gr(v,r);r.contentSteering={uri:za.resolve(_["SERVER-URI"],t),pathwayId:_["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Vs(v);break}}}const p=a.length>0&&a.length<r.levels.length;return r.levels=p?a:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const a={},s=n.levels,d={AUDIO:s.map(m=>({id:m.attrs.AUDIO,audioCodec:m.audioCodec})),SUBTITLES:s.map(m=>({id:m.attrs.SUBTITLES,textCodec:m.textCodec})),"CLOSED-CAPTIONS":[]};let p=0;for(Cs.lastIndex=0;(r=Cs.exec(e))!==null;){const m=new Gr(r[1],n),v=m.TYPE;if(v){const _=d[v],F=a[v]||[];a[v]=F;const ee=m.LANGUAGE,ie=m["ASSOC-LANGUAGE"],We=m.CHANNELS,He=m.CHARACTERISTICS,Ot=m["INSTREAM-ID"],Kt={attrs:m,bitrate:0,id:p++,groupId:m["GROUP-ID"]||"",name:m.NAME||ee||"",type:v,default:m.bool("DEFAULT"),autoselect:m.bool("AUTOSELECT"),forced:m.bool("FORCED"),lang:ee,url:m.URI?za.resolve(m.URI,t):""};if(ie&&(Kt.assocLang=ie),We&&(Kt.channels=We),He&&(Kt.characteristics=He),Ot&&(Kt.instreamId=Ot),_!=null&&_.length){const Wt=za.findGroup(_,Kt.groupId)||_[0];Ya(Kt,Wt,"audioCodec"),Ya(Kt,Wt,"textCodec")}F.push(Kt)}}return a}static parseLevelPlaylist(e,t,n,r,a,s){var d;const p={url:t},m=new Zi(t),v=m.fragments,_=[];let F=null,ee=0,ie=0,We=0,He=0,Ot=0,Kt=null,Wt=new It(r,p),gn,wn,lr,An=-1,Vn=!1,Hn=null,Pn;if($a.lastIndex=0,m.m3u8=e,m.hasVariableRefs=ar(e),((d=$a.exec(e))==null?void 0:d[0])!=="#EXTM3U")return m.playlistParsingError=new Error("Missing format identifier #EXTM3U"),m;for(;(gn=$a.exec(e))!==null;){Vn&&(Vn=!1,Wt=new It(r,p),Wt.playlistOffset=We,Wt.setStart(We),Wt.sn=ee,Wt.cc=He,Ot&&(Wt.bitrate=Ot),Wt.level=n,F&&(Wt.initSegment=F,F.rawProgramDateTime&&(Wt.rawProgramDateTime=F.rawProgramDateTime,F.rawProgramDateTime=null),Hn&&(Wt.setByteRange(Hn),Hn=null)));const pi=gn[1];if(pi){Wt.duration=parseFloat(pi);const oi=(" "+gn[2]).slice(1);Wt.title=oi||null,Wt.tagList.push(oi?["INF",pi,oi]:["INF",pi])}else if(gn[3]){if(i(Wt.duration)){Wt.playlistOffset=We,Wt.setStart(We),lr&&Oa(Wt,lr,m),Wt.sn=ee,Wt.level=n,Wt.cc=He,v.push(Wt);const oi=(" "+gn[3]).slice(1);Wt.relurl=wi(m,oi),mi(Wt,Kt,_),Kt=Wt,We+=Wt.duration,ee++,ie=0,Vn=!0}}else{if(gn=gn[0].match(Rs),!gn){pe.warn("No matches on slow regex match for level playlist!");continue}for(wn=1;wn<gn.length&&gn[wn]===void 0;wn++);const oi=(" "+gn[wn]).slice(1),kr=(" "+gn[wn+1]).slice(1),li=gn[wn+2]?(" "+gn[wn+2]).slice(1):null;switch(oi){case"BYTERANGE":Kt?Wt.setByteRange(kr,Kt):Wt.setByteRange(kr);break;case"PROGRAM-DATE-TIME":Wt.rawProgramDateTime=kr,Wt.tagList.push(["PROGRAM-DATE-TIME",kr]),An===-1&&(An=v.length);break;case"PLAYLIST-TYPE":m.type&&ji(m,oi,gn),m.type=kr.toUpperCase();break;case"MEDIA-SEQUENCE":m.startSN!==0?ji(m,oi,gn):v.length>0&&Ea(m,oi,gn),ee=m.startSN=parseInt(kr);break;case"SKIP":{m.skippedSegments&&ji(m,oi,gn);const qr=new Gr(kr,m),di=qr.decimalInteger("SKIPPED-SEGMENTS");if(i(di)){m.skippedSegments+=di;for(let Ur=di;Ur--;)v.push(null);ee+=di}const _i=qr.enumeratedString("RECENTLY-REMOVED-DATERANGES");_i&&(m.recentlyRemovedDateranges=(m.recentlyRemovedDateranges||[]).concat(_i.split(" ")));break}case"TARGETDURATION":m.targetduration!==0&&ji(m,oi,gn),m.targetduration=Math.max(parseInt(kr),1);break;case"VERSION":m.version!==null&&ji(m,oi,gn),m.version=parseInt(kr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":m.live||ji(m,oi,gn),m.live=!1;break;case"#":(kr||li)&&Wt.tagList.push(li?[kr,li]:[kr]);break;case"DISCONTINUITY":He++,Wt.tagList.push(["DIS"]);break;case"GAP":Wt.gap=!0,Wt.tagList.push([oi]);break;case"BITRATE":Wt.tagList.push([oi,kr]),Ot=parseInt(kr)*1e3,i(Ot)?Wt.bitrate=Ot:Ot=0;break;case"DATERANGE":{const qr=new Gr(kr,m),di=new hi(qr,m.dateRanges[qr.ID],m.dateRangeTagCount);m.dateRangeTagCount++,di.isValid||m.skippedSegments?m.dateRanges[di.id]=di:pe.warn(`Ignoring invalid DATERANGE tag: "${kr}"`),Wt.tagList.push(["EXT-X-DATERANGE",kr]);break}case"DEFINE":{{const qr=new Gr(kr,m);"IMPORT"in qr?Wi(m,qr,s):Yi(m,qr,t)}break}case"DISCONTINUITY-SEQUENCE":m.startCC!==0?ji(m,oi,gn):v.length>0&&Ea(m,oi,gn),m.startCC=He=parseInt(kr);break;case"KEY":{const qr=Ws(kr,t,m);if(qr.isSupported()){if(qr.method==="NONE"){lr=void 0;break}lr||(lr={});const di=lr[qr.keyFormat];di!=null&&di.matches(qr)||(di&&(lr=b({},lr)),lr[qr.keyFormat]=qr)}else pe.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${kr}"`);break}case"START":m.startTimeOffset=Vs(kr);break;case"MAP":{const qr=new Gr(kr,m);if(Wt.duration){const di=new It(r,p);Aa(di,qr,n,lr),F=di,Wt.initSegment=F,F.rawProgramDateTime&&!Wt.rawProgramDateTime&&(Wt.rawProgramDateTime=F.rawProgramDateTime)}else{const di=Wt.byteRangeEndOffset;if(di){const _i=Wt.byteRangeStartOffset;Hn=`${di-_i}@${_i}`}else Hn=null;Aa(Wt,qr,n,lr),F=Wt,Vn=!0}F.cc=He;break}case"SERVER-CONTROL":{Pn&&ji(m,oi,gn),Pn=new Gr(kr),m.canBlockReload=Pn.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=Pn.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&Pn.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=Pn.optionalFloat("PART-HOLD-BACK",0),m.holdBack=Pn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{m.partTarget&&ji(m,oi,gn);const qr=new Gr(kr);m.partTarget=qr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let qr=m.partList;qr||(qr=m.partList=[]);const di=ie>0?qr[qr.length-1]:void 0,_i=ie++,Ur=new Gr(kr,m),Kr=new Te(Ur,Wt,p,_i,di);qr.push(Kr),Wt.duration+=Kr.duration;break}case"PRELOAD-HINT":{const qr=new Gr(kr,m);m.preloadHint=qr;break}case"RENDITION-REPORT":{const qr=new Gr(kr,m);m.renditionReports=m.renditionReports||[],m.renditionReports.push(qr);break}default:pe.warn(`line parsed but not handled: ${gn}`);break}}}Kt&&!Kt.relurl?(v.pop(),We-=Kt.duration,m.partList&&(m.fragmentHint=Kt)):m.partList&&(mi(Wt,Kt,_),Wt.cc=He,m.fragmentHint=Wt,lr&&Oa(Wt,lr,m)),m.targetduration||(m.playlistParsingError=new Error("Missing Target Duration"));const gr=v.length,Hr=v[0],si=v[gr-1];if(We+=m.skippedSegments*m.targetduration,We>0&&gr&&si){m.averagetargetduration=We/gr;const pi=si.sn;m.endSN=pi!=="initSegment"?pi:0,m.live||(si.endList=!0),An>0&&(Ai(v,An),Hr&&_.unshift(Hr))}return m.fragmentHint&&(We+=m.fragmentHint.duration),m.totalduration=We,_.length&&m.dateRangeTagCount&&Hr&&Fs(_,m),m.endCC=He,m}}function Fs(o,e){let t=o.length;if(!t)if(e.hasProgramDateTime){const d=e.fragments[e.fragments.length-1];o.push(d),t++}else return;const n=o[t-1],r=e.live?1/0:e.totalduration,a=Object.keys(e.dateRanges);for(let d=a.length;d--;){const p=e.dateRanges[a[d]],m=p.startDate.getTime();p.tagAnchor=n.ref;for(let v=t;v--;){var s;if(((s=o[v])==null?void 0:s.sn)<e.startSN)break;const _=$s(e,m,o,v,r);if(_!==-1){p.tagAnchor=e.fragments[_].ref;break}}}}function $s(o,e,t,n,r){const a=t[n];if(a){const d=a.programDateTime;if(e>=d||n===0){var s;const p=(((s=t[n+1])==null?void 0:s.start)||r)-a.start;if(e<=d+p*1e3){const m=t[n].sn-o.startSN;if(m<0)return-1;const v=o.fragments;if(v.length>t.length){const F=(t[n+1]||v[v.length-1]).sn-o.startSN;for(let ee=F;ee>m;ee--){const ie=v[ee].programDateTime;if(e>=ie&&e<ie+v[ee].duration*1e3)return ee}}return m}}}return-1}function Ws(o,e,t){var n,r;const a=new Gr(o,t),s=(n=a.METHOD)!=null?n:"",d=a.URI,p=a.hexadecimalInteger("IV"),m=a.KEYFORMATVERSIONS,v=(r=a.KEYFORMAT)!=null?r:"identity";d&&a.IV&&!p&&pe.error(`Invalid IV: ${a.IV}`);const _=d?za.resolve(d,e):"",F=(m||"1").split("/").map(Number).filter(Number.isFinite);return new Sa(s,_,v,F,p,a.KEYID)}function Vs(o){const t=new Gr(o).decimalFloatingPoint("TIME-OFFSET");return i(t)?t:null}function ds(o,e){let t=(o||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(a=>Ke(a,n));r.length&&(e[`${n}Codec`]=r.map(a=>a.split("/")[0]).join(","),t=t.filter(a=>r.indexOf(a)===-1))}),e.unknownCodecs=t}function Ya(o,e,t){const n=e[t];n&&(o[t]=n)}function Ai(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 mi(o,e,t){o.rawProgramDateTime?t.push(o):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime)}function Aa(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 Oa(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)}function ji(o,e,t){o.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Ea(o,e,t){o.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Za(o,e){const t=e.startPTS;if(i(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.setDuration(n)}else e.sn>o.sn?o.cc===e.cc&&o.minEndPTS?e.setStart(o.start+(o.minEndPTS-o.start)):e.setStart(o.start+o.duration):e.setStart(Math.max(o.start-e.duration,0))}function ja(o,e,t,n,r,a,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,a=r+e.duration);let p=t,m=n;const v=e.startPTS,_=e.endPTS;if(i(v)){const Ot=Math.abs(v-t);o&&Ot>o.totalduration?s.warn(`media timestamps and playlist times differ by ${Ot}s for level ${e.level} ${o.url}`):i(e.deltaPTS)?e.deltaPTS=Math.max(Ot,e.deltaPTS):e.deltaPTS=Ot,p=Math.max(t,v),t=Math.min(t,v),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,m=Math.min(n,_),n=Math.max(n,_),a=e.endDTS!==void 0?Math.max(a,e.endDTS):a}const F=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=p,e.startDTS=r,e.endPTS=n,e.minEndPTS=m,e.endDTS=a;const ee=e.sn;if(!o||ee<o.startSN||ee>o.endSN)return 0;let ie;const We=ee-o.startSN,He=o.fragments;for(He[We]=e,ie=We;ie>0;ie--)Za(He[ie],He[ie-1]);for(ie=We;ie<He.length-1;ie++)Za(He[ie],He[ie+1]);return o.fragmentHint&&Za(He[He.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,F}function rs(o,e,t){if(o===e)return;let n=null;const r=o.fragments;for(let v=r.length-1;v>=0;v--){const _=r[v].initSegment;if(_){n=_;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let a;Xa(o,e,(v,_,F,ee)=>{if((!e.startCC||e.skippedSegments)&&_.cc!==v.cc){const ie=v.cc-_.cc;for(let We=F;We<ee.length;We++)ee[We].cc+=ie;e.endCC=ee[ee.length-1].cc}i(v.startPTS)&&i(v.endPTS)&&(_.setStart(_.startPTS=v.startPTS),_.startDTS=v.startDTS,_.maxStartPTS=v.maxStartPTS,_.endPTS=v.endPTS,_.endDTS=v.endDTS,_.minEndPTS=v.minEndPTS,_.setDuration(v.endPTS-v.startPTS),_.duration&&(a=_),e.PTSKnown=e.alignedSliding=!0),v.hasStreams&&(_.elementaryStreams=v.elementaryStreams),_.loader=v.loader,v.hasStats&&(_.stats=v.stats),v.initSegment&&(_.initSegment=v.initSegment,n=v.initSegment)});const s=e.fragments,d=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&d.forEach(v=>{var _;v&&(!v.initSegment||v.initSegment.relurl===((_=n)==null?void 0:_.relurl))&&(v.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(v=>!v),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let v=e.skippedSegments;v--;)s.shift();e.startSN=s[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=Pa(o.dateRanges,e,t));const v=o.fragments.filter(_=>_.rawProgramDateTime);if(o.hasProgramDateTime&&!e.hasProgramDateTime)for(let _=1;_<d.length;_++)d[_].programDateTime===null&&mi(d[_],d[_-1],v);Fs(v,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var p;const v=Vi(o,e.startSN-1);e.startCC=(p=v==null?void 0:v.cc)!=null?p:s[0].cc}ss(o.partList,e.partList,(v,_)=>{_.elementaryStreams=v.elementaryStreams,_.stats=v.stats}),a?ja(e,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,t):hs(o,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.driftStart;const m=e.advancedDateTime;if(e.advanced&&m){const v=e.edge;e.driftStart||(e.driftStartTime=m,e.driftStart=v),e.driftEndTime=m,e.driftEnd=v}else e.driftEndTime=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=o.requestScheduled)}function Pa(o,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,a=b({},o);r&&r.forEach(p=>{delete a[p]});const d=Object.keys(a).length;return d?(Object.keys(n).forEach(p=>{const m=a[p],v=new hi(n[p].attr,m);v.isValid?(a[p]=v,m||(v.tagOrder+=d)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${ft(n[p].attr)}"`)}),a):n}function ss(o,e,t){if(o&&e){let n=0;for(let r=0,a=o.length;r<=a;r++){const s=o[r],d=e[r+n];s&&d&&s.index===d.index&&s.fragment.sn===d.fragment.sn?t(s,d):n--}}}function Xa(o,e,t){const n=e.skippedSegments,r=Math.max(o.startSN,e.startSN)-e.startSN,a=(o.fragmentHint?1:0)+(n?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,s=e.startSN-o.startSN,d=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,p=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let m=r;m<=a;m++){const v=p[s+m];let _=d[m];if(n&&!_&&v&&(_=e.fragments[m]=v),v&&_){t(v,_,m,d);const F=v.relurl,ee=_.relurl;if(F&&ws(F,ee)){e.playlistParsingError=fs(`media sequence mismatch ${_.sn}:`,o,e,v,_);return}else if(v.cc!==_.cc){e.playlistParsingError=fs(`discontinuity sequence mismatch (${v.cc}!=${_.cc})`,o,e,v,_);return}}}}function fs(o,e,t,n,r){return new Error(`${o} ${r.url}
Playlist starting @${e.startSN}
${e.m3u8}
Playlist starting @${t.startSN}
${t.m3u8}`)}function hs(o,e,t=!0){const n=e.startSN+e.skippedSegments-o.startSN,r=o.fragments,a=n>=0;let s=0;if(a&&n<r.length)s=r[n].start;else if(a&&e.startSN===o.endSN+1)s=o.fragmentEnd;else if(a&&t)s=o.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=o.fragmentStart;else return;Gs(e,s)}function Gs(o,e){if(e){const t=o.fragments;for(let n=o.skippedSegments;n<t.length;n++)t[n].addStart(e);o.fragmentHint&&o.fragmentHint.addStart(e)}}function Ui(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const n=o.fragments;if(n.length&&t*4>e){const a=n[n.length-1].duration*1e3;a<t&&(t=a)}}else t/=2;return Math.round(t)}function Vi(o,e,t){if(!o)return null;let n=o.fragments[e-o.startSN];return n||(n=o.fragmentHint,n&&n.sn===e)?n:e<o.startSN&&t&&t.sn===e?t:null}function aa(o,e,t){return o?Ma(o.partList,e,t):null}function Ma(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 Ua(o){o.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function ws(o,e){return o!==e&&e?Ls(o)!==Ls(e):!1}function Ls(o){return o.replace(/\?[^?]*$/,"")}function ys(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 Ys(o,e){return!!(o&&e.startCC<o.endCC&&e.endCC>o.startCC)}function Os(o,e){const t=o.start+e;o.startPTS=t,o.setStart(t),o.endPTS=t+o.duration}function Ps(o,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Os(t[n],o);e.fragmentHint&&Os(e.fragmentHint,o),e.alignedSliding=!0}function Xs(o,e){o&&(zs(e,o),e.alignedSliding||so(e,o),!e.alignedSliding&&!e.skippedSegments&&hs(o,e,!1))}function zs(o,e){if(!Ys(e,o))return;const t=Math.min(e.endCC,o.endCC),n=ys(e.fragments,t),r=ys(o.fragments,t);if(!n||!r)return;pe.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const a=n.start-r.start;Ps(a,o)}function so(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,a;const s=Math.min(e.endCC,o.endCC);e.startCC<s&&o.startCC<s&&(r=ys(n,s),a=ys(t,s)),(!r||!a)&&(r=n[Math.floor(n.length/2)],a=ys(t,r.cc)||t[Math.floor(t.length/2)]);const d=r.programDateTime,p=a.programDateTime;if(!d||!p)return;const m=(p-d)/1e3-(a.start-r.start);Ps(m,o)}function Ka(o,e,t){Qa(o,e,t),o.addEventListener(e,t)}function Qa(o,e,t){o.removeEventListener(e,t)}const Bo={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}},fr={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 oo extends Br{constructor(e,t,n,r,a){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=fr.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:d,media:p,mediaBuffer:m,state:v}=this,_=p?p.currentTime:0,F=mr.bufferInfo(m||p,_,s.maxBufferHole),ee=!F.len;if(this.log(`Media seeking to ${i(_)?_.toFixed(3):_}, state: ${v}, ${ee?"out of":"in"} buffer`),this.state===fr.ENDED)this.resetLoadingState();else if(d){const ie=s.maxFragLookUpTolerance,We=d.start-ie,He=d.start+d.duration+ie;if(ee||He<F.start||We>F.end){const Ot=_>He;(_<We||Ot)&&(Ot&&d.loader&&(this.log(`Cancelling fragment load for seek (sn: ${d.sn})`),d.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(p){this.fragmentTracker.removeFragmentsInRange(_,1/0,this.playlistType,!0);const ie=this.lastCurrentTime;if(_>ie&&(this.lastCurrentTime=_),!this.loadingParts){const We=Math.max(F.end,_),He=this.shouldLoadParts(this.getLevelDetails(),We);He&&(this.log(`LL-Part loading ON after seeking to ${_.toFixed(2)} with buffer @${We.toFixed(2)}`),this.loadingParts=He)}}this.hls.hasEnoughToStart||(this.log(`Setting ${ee?"startPosition":"nextLoadPosition"} to ${_} for seek without enough to start`),this.nextLoadPosition=_,ee&&(this.startPosition=_)),ee&&this.state===fr.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=e,this.fragmentLoader=new Ir(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new wr(e.config)}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===fr.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=fr.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const a=e.buffered;this.config.maxBufferHole&&a&&a.length>1&&(e=mr.bufferedInfo(a,e.start,0));const s=e.nextStart;if(s&&s>r&&s<t.edge||this.media.currentTime<e.start)return!1;const p=t.partList;if(p!=null&&p.length){const v=p[p.length-1];return mr.isBuffered(this.media,v.start+v.duration/2)}const m=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(m)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;Ka(n,"seeking",this.onMediaSeeking),Ka(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===fr.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),Qa(r,"seeking",this.onMediaSeeking),Qa(r,"ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=fr.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=a=>{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(e,t,n,r).then(a=>{if(!a)return;const s=this.state,d=a.frag;if(this.fragContextChanged(d)){(s===fr.FRAG_LOADING||!this.fragCurrent&&s===fr.PARSING)&&(this.fragmentTracker.removeFragment(d),this.state=fr.IDLE);return}"payload"in a&&(this.log(`Loaded ${d.type} sn: ${d.sn} of ${this.playlistLabel()} ${d.level}`),this.hls.trigger(g.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===fr.STOPPED||this.state===fr.ERROR||(this.warn(`Frag error: ${(a==null?void 0:a.message)||a}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Qn.APPENDING){const a=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),d=Math.max(e.duration,s?s.len:this.config.maxBufferLength),p=this.backtrackFragment;((p?e.sn-p.sn:0)===1||this.reduceMaxBufferLength(d,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)===Qn.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(g.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:a,payload:s}=n,d=a.decryptdata;if(s&&s.byteLength>0&&d!=null&&d.key&&d.iv&&vr(d.method)){const p=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),d.key.buffer,d.iv.buffer,br(d.method)).catch(m=>{throw r.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_DECRYPT_ERROR,fatal:!1,error:m,reason:m.message,frag:a}),m}).then(m=>{const v=self.performance.now();return r.trigger(g.FRAG_DECRYPTED,{frag:a,payload:m,stats:{tstart:p,tdecrypt:v}}),n.payload=m,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===fr.STOPPED||this.state===fr.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!==fr.STOPPED&&(this.state=fr.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()}unhandledEncryptionError(e,t){var n,r;const a=e.tracks;if(a&&!t.encrypted&&((n=a.audio)!=null&&n.encrypted||(r=a.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,d=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(d.message),!s||s.mediaKeys?!1:(this.hls.trigger(g.ERROR,{type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_KEYS,fatal:!1,error:d,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Bo.toString(mr.getBuffered(n)):"(detached)"})`),dt(e)){var r;if(e.type!==V.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(d=>!!s[d])){this.state=fr.IDLE;return}}const a=(r=this.levels)==null?void 0:r[e.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=fr.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:a}=e,s=!a||a.length===0||a.some(p=>!p),d=new ri(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(d)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var a;this.fragCurrent=e;const s=t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let d=null;if(e.encrypted&&!((a=e.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=fr.KEY_LOADING,this.fragCurrent=e,d=this.keyLoader.load(e).then(F=>{if(!this.fragContextChanged(F.frag))return this.hls.trigger(g.KEY_LOADED,F),this.state===fr.KEY_LOADING&&(this.state=fr.IDLE),F}),this.hls.trigger(g.KEY_LOADING,{frag:e}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else e.encrypted||(d=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),d&&this.log("[eme] blocking frag load until media-keys acquired"));const p=this.fragPrevious;if(dt(e)&&(!p||e.sn!==p.sn)){const F=this.shouldLoadParts(t.details,e.end);F!==this.loadingParts&&(this.log(`LL-Part loading ${F?"ON":"OFF"} loading sn ${p==null?void 0:p.sn}->${e.sn}`),this.loadingParts=F)}if(n=Math.max(e.start,n||0),this.loadingParts&&dt(e)){const F=s.partList;if(F&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const ee=this.getNextPart(F,e,n);if(ee>-1){const ie=F[ee];e=this.fragCurrent=ie.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${ie.index} (${ee}/${F.length-1}) of ${this.fragInfo(e,!1,ie)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=ie.start+ie.duration,this.state=fr.FRAG_LOADING;let We;return d?We=d.then(He=>!He||this.fragContextChanged(He.frag)?null:this.doFragPartsLoad(e,ie,t,r)).catch(He=>this.handleFragLoadError(He)):We=this.doFragPartsLoad(e,ie,t,r).catch(He=>this.handleFragLoadError(He)),this.hls.trigger(g.FRAG_LOADING,{frag:e,part:ie,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):We}else if(!e.url||this.loadedEndOfParts(F,n))return Promise.resolve(null)}}if(dt(e)&&this.loadingParts){var m;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(m=s.partList)==null?void 0:m.filter(F=>F.loaded).map(F=>`[${F.start}-${F.end}]`)}`),this.loadingParts=!1}else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),i(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=fr.FRAG_LOADING;const v=this.config.progressive&&e.type!==V.SUBTITLE;let _;return v&&d?_=d.then(F=>!F||this.fragContextChanged(F.frag)?null:this.fragmentLoader.load(e,r)).catch(F=>this.handleFragLoadError(F)):_=Promise.all([this.fragmentLoader.load(e,v?r:void 0),d]).then(([F])=>(!v&&r&&r(F),F)).catch(F=>this.handleFragLoadError(F)),this.hls.trigger(g.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((a,s)=>{var d;const p=[],m=(d=n.details)==null?void 0:d.partList,v=_=>{this.fragmentLoader.loadPart(e,_,r).then(F=>{p[_.index]=F;const ee=F.part;this.hls.trigger(g.FRAG_LOADED,F);const ie=aa(n.details,e.sn,_.index+1)||Ma(m,e.sn,_.index+1);if(ie)v(ie);else return a({frag:e,part:ee,partsLoaded:p})}).catch(s)};v(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===Z.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===fe.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(g.ERROR,t)}else this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==fr.PARSING){!this.fragCurrent&&this.state!==fr.STOPPED&&this.state!==fr.ERROR&&(this.state=fr.IDLE);return}const{frag:n,part:r,level:a}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const d=this.getLevelDetails(),m=d&&n.sn>d.endSN||this.shouldLoadParts(d,n.end);m!==this.loadingParts&&(this.log(`LL-Part loading ${m?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=m),this.updateLevelTiming(n,r,a,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const a=e.partList[0];if(a.fragment.type===V.SUBTITLE)return!1;const s=a.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:a,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const d=t[r],p=d.details,m=s>-1?aa(p,a,s):null,v=m?m.fragment:Vi(p,a,n);return v?(n&&n!==v&&(v.stats=n.stats),{frag:v,part:m,level:d}):null}bufferFragmentData(e,t,n,r,a){if(this.state!==fr.PARSING)return;const{data1:s,data2:d}=e;let p=s;if(d&&(p=Nt(s,d)),!p.length)return;const m=this.initPTS[t.cc],v=m?-m.baseTime/m.timescale:void 0,_={type:e.type,frag:t,part:n,chunkMeta:r,offset:v,parent:t.type,data:p};if(this.hls.trigger(g.BUFFER_APPENDING,_),e.dropped&&e.independent&&!n){if(a)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!mr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=mr.bufferInfo(t,n,0),a=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),d=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-d>s&&this.flushMainBuffer(d,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!i(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const a=mr.bufferInfo(e,t,r);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(a.nextStart<=s.end||s.gap)){const d=Math.max(Math.min(a.nextStart,s.end)-t,r);return mr.bufferInfo(e,t,d)}}return a}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),a=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return a>=r?(n.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(e,t=V.MAIN){const n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:a}=this,s=n[0].start,d=a.lowLatencyMode&&!!t.partList;let p=null;if(t.live){const _=a.initialLiveManifestSize;if(r<_)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${_})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var m;d&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),p=this.getInitialLiveFragment(t);const F=this.hls.startPosition,ee=this.hls.liveSyncPosition,ie=p?(F!==-1&&F>=s?F:ee)||p.start:e;this.log(`Setting startPosition to ${ie} to match start frag at live edge. mainStart: ${F} liveSyncPosition: ${ee} frag.start: ${(m=p)==null?void 0:m.start}`),this.startPosition=this.nextLoadPosition=ie}}else e<=s&&(p=n[0]);if(!p){const _=this.loadingParts?t.partEnd:t.fragmentEnd;p=this.getFragmentAtPosition(e,_,t)}let v=this.filterReplacedPrimary(p,t);if(!v&&p){const _=p.sn-t.startSN;v=this.filterReplacedPrimary(n[_+1]||null,t)}return this.mapToInitFragWhenRequired(v)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Qn.OK||n===Qn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,a){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const d=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(d!==null&&n.len+d.len>=a){const p=s.sn;return this.loopSn!==p&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${p}`),this.loopSn=p),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ci(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ci(this.config)&&e.type!==V.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const a=n==null?void 0:n.playerQueue;if(a)for(let s=a.length;s--;){const d=a[s].interstitial;if(d.appendInPlace&&e.start>=d.startTime&&e.end<=d.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!e.initSegment.data&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,a=!1,s=!0;for(let d=0,p=e.length;d<p;d++){const m=e[d];if(s=s&&!m.independent,r>-1&&n<m.start)break;const v=m.loaded;v?r=-1:(a||(m.independent||s)&&m.fragment===t)&&(m.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${m.start}`),r=d),a=v}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,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=jn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const a=n.sn+1;if(a>=e.startSN&&a<=e.endSN){const s=t[a-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=Rn(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(r=this.getFragmentAtPosition(a,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:a}=this,{fragments:s,endSN:d}=n;const{fragmentHint:p}=n,{maxFragLookUpTolerance:m}=r,v=n.partList,_=!!(this.loadingParts&&v!=null&&v.length&&p);_&&!this.bitrateTest&&v[v.length-1].fragment.sn===p.sn&&(s=s.concat(p),d=p.sn);let F;if(e<t){var ee;const We=e<this.lastCurrentTime||e>t-m||(ee=this.media)!=null&&ee.paused||!this.startFragRequested?0:m;F=Xn(a,s,e,We)}else F=s[s.length-1];if(F){const ie=F.sn-n.startSN,We=this.fragmentTracker.getState(F);if((We===Qn.OK||We===Qn.PARTIAL&&F.gap)&&(a=F),a&&F.sn===a.sn&&(!_||v[0].fragment.sn>F.sn||!n.live)&&F.level===a.level){const Ot=s[ie+1];F.sn<d&&this.fragmentTracker.getState(Ot)!==Qn.OK?F=Ot:F=null}}return F}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const a=e.fragmentStart,s=!t,d=e.alignedSliding&&i(a);if(s||!d&&!a){Xs(n,e);const p=e.fragmentStart;return this.log(`Live playlist sliding: ${p.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),p}return a}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const a=this.startTimeOffset!==null,s=a?this.startTimeOffset:e.startTimeOffset;s!==null&&i(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${a?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&dt(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==fr.FRAG_LOADING_WAITING_RETRY)&&(this.state=fr.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const Ot=this.getCurrentContext(t.chunkMeta);Ot&&(t.frag=Ot.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var a;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=t.details===Z.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const d=t.errorAction;if(!d){this.state=fr.ERROR;return}const{action:p,flags:m,retryCount:v=0,retryConfig:_}=d,F=!!_,ee=F&&p===Yn.RetryRequest,ie=F&&!d.resolved&&m===vn.MoveAllAlternatesMatchingHost,We=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!ee&&ie&&dt(r)&&!r.endList&&We&&!Tt(t))this.resetFragmentErrors(e),this.treatAsGap(r),d.resolved=!0;else if((ee||ie)&&v<_.maxNumRetry){var He;const Ot=ur((He=t.response)==null?void 0:He.code),Kt=On(_,v);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+Kt,this.state=fr.FRAG_LOADING_WAITING_RETRY,d.resolved=!0,Ot){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${v+1}/${_.maxNumRetry} in ${Kt}ms`)}else if(_)if(this.resetFragmentErrors(e),v<_.maxNumRetry)!s&&p!==Yn.RemoveAlternatePermanently&&(d.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${v})`);return}else p===Yn.SendAlternateToPenaltyBox?this.state=fr.WAITING_LEVEL:this.state=fr.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!ur(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=fr.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===fr.PARSING||this.state===fr.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),a=r&&r.len>.5;a&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===V.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==fr.STOPPED&&(this.state=fr.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=mr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===fr.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==fr.STOPPED&&(this.state=fr.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.levelLastLoaded,t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${e.level===-1?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const a=n.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((p,m)=>{const v=e.elementaryStreams[m];if(v){const _=v.endPTS-v.startPTS;if(_<=0)return this.warn(`Could not parse fragment ${e.sn} ${m} duration reliably (${_})`),p||!1;const F=r?0:ja(a,e,v.startPTS,v.endPTS,v.startDTS,v.endDTS,this);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:a,level:n,drift:F,type:m,frag:e,start:v.startPTS,end:v.endPTS}),!0}return p},!1)){var d;const p=((d=this.transmuxer)==null?void 0:d.error)===null;if((n.fragmentError===0||p&&(n.fragmentError<2||e.endList))&&this.treatAsGap(e,n),p){const m=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(m.message),this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,error:m,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=fr.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(g.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===V.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,a;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((a=t&&!n?e.endPTS:(n||e).end)!=null?a:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ci(o){return!!o.interstitialsController&&o.enableInterstitialPlayback!==!1}class Zs{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=Qs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Qs(o,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<o.length;r++){const a=o[r];t.set(a,n),n+=a.length}return t}var Ms={exports:{}},Js;function _l(){return Js||(Js=1,function(o){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(p,m,v){this.fn=p,this.context=m,this.once=v||!1}function a(p,m,v,_,F){if(typeof v!="function")throw new TypeError("The listener must be a function");var ee=new r(v,_||p,F),ie=t?t+m:m;return p._events[ie]?p._events[ie].fn?p._events[ie]=[p._events[ie],ee]:p._events[ie].push(ee):(p._events[ie]=ee,p._eventsCount++),p}function s(p,m){--p._eventsCount===0?p._events=new n:delete p._events[m]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var m=[],v,_;if(this._eventsCount===0)return m;for(_ in v=this._events)e.call(v,_)&&m.push(t?_.slice(1):_);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(v)):m},d.prototype.listeners=function(m){var v=t?t+m:m,_=this._events[v];if(!_)return[];if(_.fn)return[_.fn];for(var F=0,ee=_.length,ie=new Array(ee);F<ee;F++)ie[F]=_[F].fn;return ie},d.prototype.listenerCount=function(m){var v=t?t+m:m,_=this._events[v];return _?_.fn?1:_.length:0},d.prototype.emit=function(m,v,_,F,ee,ie){var We=t?t+m:m;if(!this._events[We])return!1;var He=this._events[We],Ot=arguments.length,Kt,Wt;if(He.fn){switch(He.once&&this.removeListener(m,He.fn,void 0,!0),Ot){case 1:return He.fn.call(He.context),!0;case 2:return He.fn.call(He.context,v),!0;case 3:return He.fn.call(He.context,v,_),!0;case 4:return He.fn.call(He.context,v,_,F),!0;case 5:return He.fn.call(He.context,v,_,F,ee),!0;case 6:return He.fn.call(He.context,v,_,F,ee,ie),!0}for(Wt=1,Kt=new Array(Ot-1);Wt<Ot;Wt++)Kt[Wt-1]=arguments[Wt];He.fn.apply(He.context,Kt)}else{var gn=He.length,wn;for(Wt=0;Wt<gn;Wt++)switch(He[Wt].once&&this.removeListener(m,He[Wt].fn,void 0,!0),Ot){case 1:He[Wt].fn.call(He[Wt].context);break;case 2:He[Wt].fn.call(He[Wt].context,v);break;case 3:He[Wt].fn.call(He[Wt].context,v,_);break;case 4:He[Wt].fn.call(He[Wt].context,v,_,F);break;default:if(!Kt)for(wn=1,Kt=new Array(Ot-1);wn<Ot;wn++)Kt[wn-1]=arguments[wn];He[Wt].fn.apply(He[Wt].context,Kt)}}return!0},d.prototype.on=function(m,v,_){return a(this,m,v,_,!1)},d.prototype.once=function(m,v,_){return a(this,m,v,_,!0)},d.prototype.removeListener=function(m,v,_,F){var ee=t?t+m:m;if(!this._events[ee])return this;if(!v)return s(this,ee),this;var ie=this._events[ee];if(ie.fn)ie.fn===v&&(!F||ie.once)&&(!_||ie.context===_)&&s(this,ee);else{for(var We=0,He=[],Ot=ie.length;We<Ot;We++)(ie[We].fn!==v||F&&!ie[We].once||_&&ie[We].context!==_)&&He.push(ie[We]);He.length?this._events[ee]=He.length===1?He[0]:He:s(this,ee)}return this},d.prototype.removeAllListeners=function(m){var v;return m?(v=t?t+m:m,this._events[v]&&s(this,v)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=t,d.EventEmitter=d,o.exports=d}(Ms)),Ms.exports}var rl=_l(),xo=S(rl);const lo="1.6.15",qs={};function Fo(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Cl(){const o=qs[lo];if(o)return o.clientCount++,o;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return qs[lo]=r,r}function $o(o){const e=qs[o];if(e)return e.clientCount++,e;const t=new self.URL(o,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return qs[o]=r,r}function wl(o){const e=qs[o||lo];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete qs[o||lo],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Eo(o,e){return 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}function po(o,e){return 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}function eo(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}function uo(o,e){const t=e;let n=0;for(;po(o,e);){n+=10;const r=eo(o,e+6);n+=r,Eo(o,e+10)&&(n+=10),e+=n}if(n>0)return o.subarray(t,t+n)}function zo(o,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=e[t+2],s=a>>2&15;if(s>12){const ee=new Error(`invalid ADTS sampling index:${s}`);o.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!0,error:ee,reason:ee.message});return}const d=(a>>6&3)+1,p=e[t+3]>>6&3|(a&1)<<2,m="mp4a.40."+d,v=r[s];let _=s;(d===5||d===29)&&(_-=3);const F=[d<<3|(_&14)>>1,(_&1)<<7|p<<3];return pe.log(`manifest codec:${n}, parsed codec:${m}, channels:${p}, rate:${v} (ADTS object type:${d} sampling index:${s})`),{config:F,samplerate:v,channelCount:p,codec:m,parsedCodec:m,manifestCodec:n}}function Zo(o,e){return o[e]===255&&(o[e+1]&246)===240}function jo(o,e){return o[e+1]&1?7:9}function So(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function Uo(o,e){return e+5<o.length}function _o(o,e){return e+1<o.length&&Zo(o,e)}function co(o,e){return Uo(o,e)&&Zo(o,e)&&So(o,e)<=o.length-e}function Ko(o,e){if(_o(o,e)){const t=jo(o,e);if(e+t>=o.length)return!1;const n=So(o,e);if(n<=t)return!1;const r=e+n;return r===o.length||_o(o,r)}return!1}function Co(o,e,t,n,r){if(!o.samplerate){const a=zo(e,t,n,r);if(!a)return;b(o,a)}}function il(o){return 1024*9e4/o}function al(o,e){const t=jo(o,e);if(e+t<=o.length){const n=So(o,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function sl(o,e,t,n,r){const a=il(o.samplerate),s=n+r*a,d=al(e,t);let p;if(d){const{frameLength:_,headerLength:F}=d,ee=F+_,ie=Math.max(0,t+ee-e.length);ie?(p=new Uint8Array(ee-F),p.set(e.subarray(t+F,e.length),0)):p=e.subarray(t+F,t+ee);const We={unit:p,pts:s};return ie||o.samples.push(We),{sample:We,length:ee,missing:ie}}const m=e.length-t;return p=new Uint8Array(m),p.set(e.subarray(t,e.length),0),{sample:{unit:p,pts:s},length:m,missing:-1}}function wo(o,e){return po(o,e)&&eo(o,e+6)+10<=o.length-e}function Tl(o){return o instanceof ArrayBuffer?o:o.byteOffset==0&&o.byteLength==o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer}function go(o,e=0,t=1/0){return ol(o,e,t,Uint8Array)}function ol(o,e,t,n){const r=ll(o);let a=1;"BYTES_PER_ELEMENT"in n&&(a=n.BYTES_PER_ELEMENT);const s=Ho(o)?o.byteOffset:0,d=(s+o.byteLength)/a,p=(s+e)/a,m=Math.floor(Math.max(0,Math.min(p,d))),v=Math.floor(Math.min(m+Math.max(t,0),d));return new n(r,m,v-m)}function ll(o){return o instanceof ArrayBuffer?o:o.buffer}function Ho(o){return o&&o.buffer instanceof ArrayBuffer&&o.byteLength!==void 0&&o.byteOffset!==void 0}function ul(o){const e={key:o.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(o.size<2)return;if(o.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=o.data.subarray(1).indexOf(0);if(n===-1)return;const r=Ze(go(o.data,1,n)),a=o.data[2+n],s=o.data.subarray(3+n).indexOf(0);if(s===-1)return;const d=Ze(go(o.data,3+n,s));let p;return r==="-->"?p=Ze(go(o.data,4+n+s)):p=Tl(o.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=a,e.description=d,e.data=p,e}function Ut(o){if(o.size<2)return;const e=Ze(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}}function Wo(o){if(o.size<2)return;if(o.type==="TXXX"){let t=1;const n=Ze(o.data.subarray(t),!0);t+=n.length+1;const r=Ze(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Ze(o.data.subarray(1));return{key:o.type,info:"",data:e}}function To(o){if(o.type==="WXXX"){if(o.size<2)return;let t=1;const n=Ze(o.data.subarray(t),!0);t+=n.length+1;const r=Ze(o.data.subarray(t));return{key:o.type,info:n,data:r}}const e=Ze(o.data);return{key:o.type,info:"",data:e}}function Ao(o){return o.type==="PRIV"?Ut(o):o.type[0]==="W"?To(o):o.type==="APIC"?ul(o):Wo(o)}function Vo(o){const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=eo(o,4),n=10;return{type:e,size:t,data:o.subarray(n,n+t)}}const to=10,bs=10;function Io(o){let e=0;const t=[];for(;po(o,e);){const n=eo(o,e+6);o[e+5]>>6&1&&(e+=to),e+=to;const r=e+n;for(;e+bs<r;){const a=Vo(o.subarray(e)),s=Ao(a);s&&t.push(s),e+=a.size+to}Eo(o,e)&&(e+=to)}return t}function Go(o){return o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp"}function be(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)}}function ye(o){const e=Io(o);for(let t=0;t<e.length;t++){const n=e[t];if(Go(n))return be(n)}}let it=function(o){return o.audioId3="org.id3",o.dateRange="com.apple.quicktime.HLS",o.emsg="https://aomedia.org/emsg/ID3",o.misbklv="urn:misb:KLV:bin:1910.1",o}({});function At(o="",e=9e4){return{type:o,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Yt{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=Nt(this.cachedData,e),this.cachedData=null);let n=uo(e,0),r=n?n.length:0,a;const s=this._audioTrack,d=this._id3Track,p=n?ye(n):void 0,m=e.length;for((this.basePTS===null||this.frameIndex===0&&i(p))&&(this.basePTS=en(p,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:it.audioId3,duration:Number.POSITIVE_INFINITY});r<m;){if(this.canParse(e,r)){const v=this.appendFrame(s,e,r);v?(this.frameIndex++,this.lastPTS=v.sample.pts,r+=v.length,a=r):r=m}else wo(e,r)?(n=uo(e,r),d.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:it.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,a=r):r++;if(r===m&&a!==m){const v=e.slice(a);this.cachedData?this.cachedData=Nt(this.cachedData,v):this.cachedData=v}}return{audioTrack:s,videoTrack:At(),id3Track:d,textTrack:At()}}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:At(),id3Track:this._id3Track,textTrack:At()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const en=(o,e,t)=>{if(i(o))return o*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let pn=null;const on=[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],Sn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],yn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],qn=[0,1,1,4];function kn(o,e,t,n,r){if(t+24>e.length)return;const a=Mn(e,t);if(a&&t+a.frameLength<=e.length){const s=a.samplesPerFrame*9e4/a.sampleRate,d=n+r*s,p={unit:e.subarray(t,t+a.frameLength),pts:d,dts:d};return o.config=[],o.channelCount=a.channelCount,o.samplerate=a.sampleRate,o.samples.push(p),{sample:p,length:a.frameLength,missing:0}}}function Mn(o,e){const t=o[e+1]>>3&3,n=o[e+1]>>1&3,r=o[e+2]>>4&15,a=o[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&a!==3){const s=o[e+2]>>1&1,d=o[e+3]>>6,p=t===3?3-n:n===3?3:4,m=on[p*14+r-1]*1e3,_=Sn[(t===3?0:t===2?1:2)*3+a],F=d===3?1:2,ee=yn[t][n],ie=qn[n],We=ee*8*ie,He=Math.floor(ee*m/_+s)*ie;if(pn===null){const Wt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);pn=Wt?parseInt(Wt[1]):0}return!!pn&&pn<=87&&n===2&&m>=224e3&&d===0&&(o[e+3]=o[e+3]|128),{sampleRate:_,channelCount:F,frameLength:He,samplesPerFrame:We}}}function j(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function c(o,e){return e+1<o.length&&j(o,e)}function f(o,e){return j(o,e)&&4<=o.length-e}function h(o,e){if(e+1<o.length&&j(o,e)){const n=Mn(o,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const a=e+r;return a===o.length||c(o,a)}return!1}class x extends Yt{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=uo(e,0);let r=(n==null?void 0:n.length)||0;if(h(e,r))return!1;for(let a=e.length;r<a;r++)if(Ko(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return co(e,t)}appendFrame(e,t,n){Co(e,this.observer,t,n,e.manifestCodec);const r=sl(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const k=(o,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=o[e];const d=Math.min(n,8),p=8-d;a[0]=4278190080>>>24+p<<p,r[0]=(s[0]&a[0])>>p,t=t?t<<d|r[0]:r[0],e+=1,n-=d}return t};class J extends Yt{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=Oe(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=uo(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ye(t)!==void 0&&k(e,n)<16}}function Oe(o,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const a=e[t+4]>>6;if(a>=3)return-1;const d=[48e3,44100,32e3][a],p=e[t+4]&63,v=[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][p*3+a]*2;if(t+v>e.length)return-1;const _=e[t+6]>>5;let F=0;_===2?F+=2:(_&1&&_!==1&&(F+=2),_&4&&(F+=2));const ee=(e[t+6]<<8|e[t+7])>>12-F&1,We=[2,1,2,3,3,4,4,5][_]+ee,He=e[t+5]>>3,Ot=e[t+5]&7,Kt=new Uint8Array([a<<6|He<<1|Ot>>2,(Ot&3)<<6|_<<3|ee<<2|p>>4,p<<4&224]),Wt=1536/d*9e4,gn=n+r*Wt,wn=e.subarray(t,t+v);return o.config=Kt,o.channelCount=We,o.samplerate=d,o.samples.push({unit:wn,pts:gn}),v}class qe extends Yt{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=uo(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ye(t)!==void 0&&k(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(h(e,n))return pe.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return f(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return kn(e,t,n,this.basePTS,this.frameIndex)}}const Et=/\/emsg[-/]ID3/i;class Qt{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 a=this.videoTrack=At("video",1),s=this.audioTrack=At("audio",1),d=this.txtTrack=At("text",1);if(this.id3Track=At("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const p=Ue(e);if(p.video){const{id:m,timescale:v,codec:_,supplemental:F}=p.video;a.id=m,a.timescale=d.timescale=v,a.codec=_,a.supplemental=F}if(p.audio){const{id:m,timescale:v,codec:_}=p.audio;s.id=m,s.timescale=v,s.codec=_}d.id=Xt.text,a.sampleDuration=0,a.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Le(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,a=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Nt(this.remainderData,e));const d=Ct(n);this.remainderData=d.remainder,r.samples=d.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return a.samples=kt(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=kt(e,t),{videoTrack:t,audioTrack:At(),id3Track:r,textTrack:At()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=oe(e.samples,["emsg"]);r&&r.forEach(a=>{const s=gt(a);if(Et.test(s.schemeIdUri)){const d=dn(s,t);let p=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;p<=.001&&(p=Number.POSITIVE_INFINITY);const m=s.payload;n.samples.push({data:m,len:m.byteLength,dts:d,pts:d,type:it.emsg,duration:p})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const d=dn(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:d,pts:d,type:it.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function dn(o,e){return i(o.presentationTime)?o.presentationTime/o.timeScale:e+o.presentationTimeDelta/o.timeScale}class En{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new wr(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Sr.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const a=r.subarray(16,r.length-r.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(d=>{const p=new Uint8Array(d);r.set(p,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}).catch(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 a=32;a<e.length-16;a+=160,r+=16)n.set(e.subarray(a,a+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let a=32;a<e.length-16;a+=160,r+=16)e.set(n.subarray(r,r+16),a);return e}decryptAvcSample(e,t,n,r,a){const s=Re(a.data),d=this.getAvcEncryptedData(s);this.decryptBuffer(d.buffer).then(p=>{a.data=this.getAvcDecryptedUnit(s,p),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)}).catch(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 a=e[t].units;for(;!(n>=a.length);n++){const s=a[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class Nn{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const a=n.units;r=a[a.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 a=n[r-1];e.pts=a.pts,e.dts=a.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let a=e.naluState||0;const s=a,d=[];let p=0,m,v,_,F=-1,ee=0;for(a===-1&&(F=0,ee=this.getNALuType(t,0),a=0,p=1);p<r;){if(m=t[p++],!a){a=m?0:1;continue}if(a===1){a=m?0:2;continue}if(!m)a=3;else if(m===1){if(v=p-a-1,F>=0){const ie={data:t.subarray(F,v),type:ee};d.push(ie)}else{const ie=this.getLastNalUnit(e.samples);ie&&(s&&p<=4-s&&ie.state&&(ie.data=ie.data.subarray(0,ie.data.byteLength-s)),v>0&&(ie.data=Nt(ie.data,t.subarray(0,v)),ie.state=0))}p<r?(_=this.getNALuType(t,p),F=p,ee=_,a=0):a=-1}else a=0}if(F>=0&&a>=0){const ie={data:t.subarray(F,r),type:ee,state:a};d.push(ie)}if(d.length===0){const ie=this.getLastNalUnit(e.samples);ie&&(ie.data=Nt(ie.data,t))}return e.naluState=a,d}}class Un{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),a=Math.min(4,t);if(a===0)throw new Error("no bytes available");r.set(e.subarray(n,n+a)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}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&&pe.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class Kn extends Nn{parsePES(e,t,n,r){const a=this.parseNALu(e,n.data,r);let s=this.VideoSample,d,p=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(m=>{var v,_;switch(m.type){case 1:{let We=!1;d=!0;const He=m.data;if(p&&He.length>4){const Ot=this.readSliceType(He);(Ot===2||Ot===4||Ot===7||Ot===9)&&(We=!0)}if(We){var F;(F=s)!=null&&F.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=We;break}case 5:d=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{d=!0,Zt(m.data,1,n.pts,t.samples);break}case 7:{var ee,ie;d=!0,p=!0;const We=m.data,He=this.readSPS(We);if(!e.sps||e.width!==He.width||e.height!==He.height||((ee=e.pixelRatio)==null?void 0:ee[0])!==He.pixelRatio[0]||((ie=e.pixelRatio)==null?void 0:ie[1])!==He.pixelRatio[1]){e.width=He.width,e.height=He.height,e.pixelRatio=He.pixelRatio,e.sps=[We];const Ot=We.subarray(1,4);let Kt="avc1.";for(let Wt=0;Wt<3;Wt++){let gn=Ot[Wt].toString(16);gn.length<2&&(gn="0"+gn),Kt+=gn}e.codec=Kt}break}case 8:d=!0,e.pps=[m.data];break;case 9:d=!0,e.audFound=!0,(_=s)!=null&&_.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:d=!0;break;default:d=!1;break}s&&d&&s.units.push(m)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new Un(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,a;for(let s=0;s<e;s++)r!==0&&(a=t.readEG(),r=(n+a+256)%256),n=r===0?n:r}readSPS(e){const t=new Un(e);let n=0,r=0,a=0,s=0,d,p,m;const v=t.readUByte.bind(t),_=t.readBits.bind(t),F=t.readUEG.bind(t),ee=t.readBoolean.bind(t),ie=t.skipBits.bind(t),We=t.skipEG.bind(t),He=t.skipUEG.bind(t),Ot=this.skipScalingList.bind(this);v();const Kt=v();if(_(5),ie(3),v(),He(),Kt===100||Kt===110||Kt===122||Kt===244||Kt===44||Kt===83||Kt===86||Kt===118||Kt===128){const Vn=F();if(Vn===3&&ie(1),He(),He(),ie(1),ee())for(p=Vn!==3?8:12,m=0;m<p;m++)ee()&&(m<6?Ot(16,t):Ot(64,t))}He();const Wt=F();if(Wt===0)F();else if(Wt===1)for(ie(1),We(),We(),d=F(),m=0;m<d;m++)We();He(),ie(1);const gn=F(),wn=F(),lr=_(1);lr===0&&ie(1),ie(1),ee()&&(n=F(),r=F(),a=F(),s=F());let An=[1,1];if(ee()&&ee())switch(v()){case 1:An=[1,1];break;case 2:An=[12,11];break;case 3:An=[10,11];break;case 4:An=[16,11];break;case 5:An=[40,33];break;case 6:An=[24,11];break;case 7:An=[20,11];break;case 8:An=[32,11];break;case 9:An=[80,33];break;case 10:An=[18,11];break;case 11:An=[15,11];break;case 12:An=[64,33];break;case 13:An=[160,99];break;case 14:An=[4,3];break;case 15:An=[3,2];break;case 16:An=[2,1];break;case 255:{An=[v()<<8|v(),v()<<8|v()];break}}return{width:Math.ceil((gn+1)*16-n*2-r*2),height:(2-lr)*(wn+1)*16-(lr?2:4)*(a+s),pixelRatio:An}}}class ir extends Nn{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const a=this.parseNALu(e,n.data,r);let s=this.VideoSample,d,p=!1;n.data=null,s&&a.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(m=>{var v,_;switch(m.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,d=!0;break;case 16:case 17:case 18:case 21:if(d=!0,p){var F;(F=s)!=null&&F.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:d=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:d=!0,Zt(m.data,2,n.pts,t.samples);break;case 32:d=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=b(e.params,this.readVPS(m.data)),this.initVPS=m.data),e.vps=[m.data];break;case 33:if(d=!0,p=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],m.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const ee=this.readSPS(m.data);e.width=ee.width,e.height=ee.height,e.pixelRatio=ee.pixelRatio,e.codec=ee.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const ie in ee.params)e.params[ie]=ee.params[ie]}this.pushParameterSet(e.sps,m.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(d=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const ee=this.readPPS(m.data);for(const ie in ee)e.params[ie]=ee[ie]}this.pushParameterSet(e.pps,m.data,e.vps)}break;case 35:d=!0,e.audFound=!0,(_=s)!=null&&_.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:d=!1;break}s&&d&&s.units.push(m)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Un(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new Un(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),a=t.readBoolean(),s=t.readBits(5),d=t.readUByte(),p=t.readUByte(),m=t.readUByte(),v=t.readUByte(),_=t.readUByte(),F=t.readUByte(),ee=t.readUByte(),ie=t.readUByte(),We=t.readUByte(),He=t.readUByte(),Ot=t.readUByte(),Kt=[],Wt=[];for(let va=0;va<n;va++)Kt.push(t.readBoolean()),Wt.push(t.readBoolean());if(n>0)for(let va=n;va<8;va++)t.readBits(2);for(let va=0;va<n;va++)Kt[va]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Wt[va]&&t.readUByte();t.readUEG();const gn=t.readUEG();gn==3&&t.skipBits(1);const wn=t.readUEG(),lr=t.readUEG(),An=t.readBoolean();let Vn=0,Hn=0,Pn=0,gr=0;An&&(Vn+=t.readUEG(),Hn+=t.readUEG(),Pn+=t.readUEG(),gr+=t.readUEG());const Hr=t.readUEG(),si=t.readUEG(),pi=t.readUEG(),oi=t.readBoolean();for(let va=oi?0:n;va<=n;va++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let cs=0;cs<4;cs++)for(let Bs=0;Bs<(cs===3?2:6);Bs++)if(!t.readBoolean())t.readUEG();else{const Hs=Math.min(64,1<<4+(cs<<1));cs>1&&t.readEG();for(let nl=0;nl<Hs;nl++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const qr=t.readUEG();let di=0;for(let va=0;va<qr;va++){let cs=!1;if(va!==0&&(cs=t.readBoolean()),cs){va===qr&&t.readUEG(),t.readBoolean(),t.readUEG();let Bs=0;for(let No=0;No<=di;No++){const Hs=t.readBoolean();let nl=!1;Hs||(nl=t.readBoolean()),(Hs||nl)&&Bs++}di=Bs}else{const Bs=t.readUEG(),No=t.readUEG();di=Bs+No;for(let Hs=0;Hs<Bs;Hs++)t.readUEG(),t.readBoolean();for(let Hs=0;Hs<No;Hs++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const va=t.readUEG();for(let cs=0;cs<va;cs++){for(let Bs=0;Bs<pi+4;Bs++)t.readBits(1);t.readBits(1)}}let Ur=0,Kr=1,$i=1,xa=!0,Hi=1,na=0;t.readBoolean(),t.readBoolean();let us=!1;if(t.readBoolean()){if(t.readBoolean()){const ko=t.readUByte(),rc=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Xl=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];ko>0&&ko<16?(Kr=rc[ko-1],$i=Xl[ko-1]):ko===255&&(Kr=t.readBits(16),$i=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),us=t.readBoolean(),us&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Hi=t.readBits(32),na=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Xl=t.readBoolean(),ic=t.readBoolean();let El=!1;(Xl||ic)&&(El=t.readBoolean(),El&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),El&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let ac=0;ac<=n;ac++){xa=t.readBoolean();const Vd=xa||t.readBoolean();let sc=!1;Vd?t.readEG():sc=t.readBoolean();const oc=sc?1:t.readUEG()+1;if(Xl)for(let Sl=0;Sl<oc;Sl++)t.readUEG(),t.readUEG(),El&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ic)for(let Sl=0;Sl<oc;Sl++)t.readUEG(),t.readUEG(),El&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Ur=t.readUEG())}let ks=wn,ao=lr;if(An){let va=1,cs=1;gn===1?va=cs=2:gn==2&&(va=2),ks=wn-va*Hn-va*Vn,ao=lr-cs*gr-cs*Pn}const Mo=r?["A","B","C"][r]:"",Wd=d<<24|p<<16|m<<8|v;let bu=0;for(let va=0;va<32;va++)bu=(bu|(Wd>>va&1)<<31-va)>>>0;let xu=bu.toString(16);return s===1&&xu==="2"&&(xu="6"),{codecString:`hvc1.${Mo}${s}.${xu}.${a?"H":"L"}${Ot}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[d,p,m,v],general_constraint_indicator_flags:[_,F,ee,ie,We,He],general_level_idc:Ot,bit_depth:Hr+8,bit_depth_luma_minus8:Hr,bit_depth_chroma_minus8:si,min_spatial_segmentation_idc:Ur,chroma_format_idc:gn,frame_rate:{fixed:xa,fps:na/Hi}},width:ks,height:ao,pixelRatio:[Kr,$i]}}readPPS(e){const t=new Un(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),a=t.readBoolean();let s=1;return a&&r?s=0:a?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const er=188;class nr{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=nr.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(er*5,t-er)+1,r=0;for(;r<n;){let a=!1,s=-1,d=0;for(let p=r;p<t;p+=er)if(e[p]===71&&(t-p===er||e[p+er]===71)){if(d++,s===-1&&(s=p,s!==0&&(n=Math.min(s+er*99,e.length-er)+1)),a||(a=hr(e,p)===0),a&&d>1&&(s===0&&d>2||p+er>n))return s}else{if(d)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Xt[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=nr.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=nr.createTrack("audio",r),this._id3Track=nr.createTrack("id3"),this._txtTrack=nr.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let a;const s=this._videoTrack,d=this._audioTrack,p=this._id3Track,m=this._txtTrack;let v=s.pid,_=s.pesData,F=d.pid,ee=p.pid,ie=d.pesData,We=p.pesData,He=null,Ot=this.pmtParsed,Kt=this._pmtId,Wt=e.length;if(this.remainderData&&(e=Nt(this.remainderData,e),Wt=e.length,this.remainderData=null),Wt<er&&!r)return this.remainderData=e,{audioTrack:d,videoTrack:s,id3Track:p,textTrack:m};const gn=Math.max(0,nr.syncOffset(e));Wt-=(Wt-gn)%er,Wt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Wt,e.buffer.byteLength-Wt));let wn=0;for(let An=gn;An<Wt;An+=er)if(e[An]===71){const Vn=!!(e[An+1]&64),Hn=hr(e,An),Pn=(e[An+3]&48)>>4;let gr;if(Pn>1){if(gr=An+5+e[An+4],gr===An+er)continue}else gr=An+4;switch(Hn){case v:Vn&&(_&&(a=ei(_,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,m,a,!1)),_={data:[],size:0}),_&&(_.data.push(e.subarray(gr,An+er)),_.size+=An+er-gr);break;case F:if(Vn){if(ie&&(a=ei(ie,this.logger)))switch(d.segmentCodec){case"aac":this.parseAACPES(d,a);break;case"mp3":this.parseMPEGPES(d,a);break;case"ac3":this.parseAC3PES(d,a);break}ie={data:[],size:0}}ie&&(ie.data.push(e.subarray(gr,An+er)),ie.size+=An+er-gr);break;case ee:Vn&&(We&&(a=ei(We,this.logger))&&this.parseID3PES(p,a),We={data:[],size:0}),We&&(We.data.push(e.subarray(gr,An+er)),We.size+=An+er-gr);break;case 0:Vn&&(gr+=e[gr]+1),Kt=this._pmtId=Tr(e,gr);break;case Kt:{Vn&&(gr+=e[gr]+1);const Hr=Lr(e,gr,this.typeSupported,n,this.observer,this.logger);v=Hr.videoPid,v>0&&(s.pid=v,s.segmentCodec=Hr.segmentVideoCodec),F=Hr.audioPid,F>0&&(d.pid=F,d.segmentCodec=Hr.segmentAudioCodec),ee=Hr.id3Pid,ee>0&&(p.pid=ee),He!==null&&!Ot&&(this.logger.warn(`MPEG-TS PMT found at ${An} after unknown PID '${He}'. Backtracking to sync byte @${gn} to parse all TS packets.`),He=null,An=gn-188),Ot=this.pmtParsed=!0;break}case 17:case 8191:break;default:He=Hn;break}}else wn++;wn>0&&pr(this.observer,new Error(`Found ${wn} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=_,d.pesData=ie,p.pesData=We;const lr={audioTrack:d,videoTrack:s,id3Track:p,textTrack:m};return r&&this.extractRemainingSamples(lr),lr}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:a}=e,s=n.pesData,d=t.pesData,p=r.pesData;let m;if(s&&(m=ei(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,a,m,!0),n.pesData=null)):n.pesData=s,d&&(m=ei(d,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,m);break;case"mp3":this.parseMPEGPES(t,m);break;case"ac3":this.parseAC3PES(t,m);break}t.pesData=null}else d!=null&&d.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=d;p&&(m=ei(p,this.logger))?(this.parseID3PES(r,m),r.pesData=null):r.pesData=p}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),a=this.sampleAes=new En(this.observer,this.config,t);return this.decrypt(r,a)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new Kn:e==="hevc"&&(this.videoParser=new ir))}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:a}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{a.samples?t.decryptAvcSamples(a.samples,0,0,()=>{n(e)}):n(e)}):a.samples&&t.decryptAvcSamples(a.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let a=t.data;if(r){this.aacOverFlow=null;const _=r.missing,F=r.sample.unit.byteLength;if(_===-1)a=Nt(r.sample.unit,a);else{const ee=F-_;r.sample.unit.set(a.subarray(0,_),ee),e.samples.push(r.sample),n=r.missing}}let s,d;for(s=n,d=a.length;s<d-1&&!_o(a,s);s++);if(s!==n){let _;const F=s<d-1;if(F?_=`AAC PES did not start with ADTS header,offset:${s}`:_="No ADTS header found in AAC PES",pr(this.observer,new Error(_),F,this.logger),!F)return}Co(e,this.observer,a,s,this.audioCodec);let p;if(t.pts!==void 0)p=t.pts;else if(r){const _=il(e.samplerate);p=r.sample.pts+_}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let m=0,v;for(;s<d;)if(v=sl(e,a,s,p,m),s+=v.length,v.missing){this.aacOverFlow=v;break}else for(m++;s<d-1&&!_o(a,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let a=0,s=0;const d=t.pts;if(d===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(c(n,s)){const p=kn(e,n,s,d,a);if(p)s+=p.length,a++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const a=n.length;let s=0,d=0,p;for(;d<a&&(p=Oe(e,n,d,r,s++))>0;)d+=p}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=b({},t,{type:this._videoTrack?it.emsg:it.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function hr(o,e){return((o[e+1]&31)<<8)+o[e+2]}function Tr(o,e){return(o[e+10]&31)<<8|o[e+11]}function Lr(o,e,t,n,r,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},d=(o[e+1]&15)<<8|o[e+2],p=e+3+d-4,m=(o[e+10]&15)<<8|o[e+11];for(e+=12+m;e<p;){const v=hr(o,e),_=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!n){Yr("ADTS AAC",a);break}case 15:s.audioPid===-1&&(s.audioPid=v);break;case 21:s.id3Pid===-1&&(s.id3Pid=v);break;case 219:if(!n){Yr("H.264",a);break}case 27:s.videoPid===-1&&(s.videoPid=v);break;case 3:case 4:!t.mpeg&&!t.mp3?a.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="mp3");break;case 193:if(!n){Yr("AC-3",a);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&_>0){let F=e+5,ee=_;for(;ee>2;){switch(o[F]){case 106:t.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=v,s.segmentAudioCodec="ac3");break}const We=o[F+1]+2;F+=We,ee-=We}}break;case 194:case 135:return pr(r,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=v,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}e+=_+5}return s}function pr(o,e,t,n){n.warn(`parsing error: ${e.message}`),o.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Yr(o,e){e.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function ei(o,e){let t=0,n,r,a,s,d;const p=o.data;if(!o||o.size===0)return null;for(;p[0].length<19&&p.length>1;)p[0]=Nt(p[0],p[1]),p.splice(1,1);if(n=p[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>o.size-6)return null;const v=n[7];v&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,v&64?(d=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-d>60*9e4&&(e.warn(`${Math.round((s-d)/9e4)}s delta between PTS and DTS, align them`),s=d)):d=s),a=n[8];let _=a+9;if(o.size<=_)return null;o.size-=_;const F=new Uint8Array(o.size);for(let ee=0,ie=p.length;ee<ie;ee++){n=p[ee];let We=n.byteLength;if(_)if(_>We){_-=We;continue}else n=n.subarray(_),We-=_,_=0;F.set(n,t),t+=We}return r&&(r-=a+3),{data:F,pts:s,dts:d,len:r}}return null}class Ri{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 xi=Math.pow(2,32)-1;class fn{static init(){fn.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in fn.types)fn.types.hasOwnProperty(e)&&(fn.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]);fn.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]),a=new Uint8Array([0,0,0,0,0,0,0,0]);fn.STTS=fn.STSC=fn.STCO=a,fn.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),fn.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),fn.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),fn.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),d=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);fn.FTYP=fn.box(fn.types.ftyp,s,p,s,d),fn.DINF=fn.box(fn.types.dinf,fn.box(fn.types.dref,r))}static box(e,...t){let n=8,r=t.length;const a=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<a;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return fn.box(fn.types.hdlr,fn.HDLR_TYPES[e])}static mdat(e){return fn.box(fn.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(xi+1)),r=Math.floor(t%(xi+1));return fn.box(fn.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 fn.box(fn.types.mdia,fn.mdhd(e.timescale||0,e.duration||0),fn.hdlr(e.type),fn.minf(e))}static mfhd(e){return fn.box(fn.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"?fn.box(fn.types.minf,fn.box(fn.types.smhd,fn.SMHD),fn.DINF,fn.stbl(e)):fn.box(fn.types.minf,fn.box(fn.types.vmhd,fn.VMHD),fn.DINF,fn.stbl(e))}static moof(e,t,n){return fn.box(fn.types.moof,fn.mfhd(e),fn.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=fn.trak(e[t]);return fn.box.apply(null,[fn.types.moov,fn.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(fn.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=fn.trex(e[t]);return fn.box.apply(null,[fn.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(xi+1)),r=Math.floor(t%(xi+1)),a=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 fn.box(fn.types.mvhd,a)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,a;for(r=0;r<t.length;r++)a=t[r].flags,n[r+4]=a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy;return fn.box(fn.types.sdtp,n)}static stbl(e){return fn.box(fn.types.stbl,fn.stsd(e),fn.box(fn.types.stts,fn.STTS),fn.box(fn.types.stsc,fn.STSC),fn.box(fn.types.stsz,fn.STSZ),fn.box(fn.types.stco,fn.STCO))}static avc1(e){let t=[],n=[],r,a,s;for(r=0;r<e.sps.length;r++)a=e.sps[r],s=a.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(a));for(r=0;r<e.pps.length;r++)a=e.pps[r],s=a.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));const d=fn.box(fn.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),p=e.width,m=e.height,v=e.pixelRatio[0],_=e.pixelRatio[1];return fn.box(fn.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,p>>8&255,p&255,m>>8&255,m&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]),d,fn.box(fn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),fn.box(fn.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,_>>24,_>>16&255,_>>8&255,_&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return fn.box(fn.types.mp4a,fn.audioStsd(e),fn.box(fn.types.esds,fn.esds(e)))}static mp3(e){return fn.box(fn.types[".mp3"],fn.audioStsd(e))}static ac3(e){return fn.box(fn.types["ac-3"],fn.audioStsd(e),fn.box(fn.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return fn.box(fn.types.stsd,fn.STSD,fn.mp4a(e));if(t==="ac3"&&e.config)return fn.box(fn.types.stsd,fn.STSD,fn.ac3(e));if(t==="mp3"&&e.codec==="mp3")return fn.box(fn.types.stsd,fn.STSD,fn.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return fn.box(fn.types.stsd,fn.STSD,fn.avc1(e));if(t==="hevc"&&e.vps)return fn.box(fn.types.stsd,fn.STSD,fn.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,a=e.height||0,s=Math.floor(n/(xi+1)),d=Math.floor(n%(xi+1));return fn.box(fn.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,d>>24,d>>16&255,d>>8&255,d&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,a>>8&255,a&255,0,0]))}static traf(e,t){const n=fn.sdtp(e),r=e.id,a=Math.floor(t/(xi+1)),s=Math.floor(t%(xi+1));return fn.box(fn.types.traf,fn.box(fn.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),fn.box(fn.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),fn.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,fn.box(fn.types.trak,fn.tkhd(e),fn.mdia(e))}static trex(e){const t=e.id;return fn.box(fn.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,a=12+16*r,s=new Uint8Array(a);let d,p,m,v,_,F;for(t+=8+a,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),d=0;d<r;d++)p=n[d],m=p.duration,v=p.size,_=p.flags,F=p.cts,s.set([m>>>24&255,m>>>16&255,m>>>8&255,m&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.paddingValue<<1|_.isNonSync,_.degradPrio&61440,_.degradPrio&15,F>>>24&255,F>>>16&255,F>>>8&255,F&255],12+16*d);return fn.box(fn.types.trun,s)}static initSegment(e){fn.types||fn.init();const t=fn.moov(e);return Nt(fn.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,a=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=a.length;for(let ie=0;ie<n.length;ie+=1){s+=3;for(let We=0;We<n[ie].length;We+=1)s+=2+n[ie][We].length}const d=new Uint8Array(s);d.set(a,0),s=a.length;const p=n.length-1;for(let ie=0;ie<n.length;ie+=1){d.set(new Uint8Array([32+ie|(ie===p?128:0),0,n[ie].length]),s),s+=3;for(let We=0;We<n[ie].length;We+=1)d.set(new Uint8Array([n[ie][We].length>>8,n[ie][We].length&255]),s),s+=2,d.set(n[ie][We],s),s+=n[ie][We].length}const m=fn.box(fn.types.hvcC,d),v=e.width,_=e.height,F=e.pixelRatio[0],ee=e.pixelRatio[1];return fn.box(fn.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,v>>8&255,v&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]),m,fn.box(fn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),fn.box(fn.types.pasp,new Uint8Array([F>>24,F>>16&255,F>>8&255,F&255,ee>>24,ee>>16&255,ee>>8&255,ee&255])))}}fn.types=void 0,fn.HDLR_TYPES=void 0,fn.STTS=void 0,fn.STSC=void 0,fn.STCO=void 0,fn.STSZ=void 0,fn.VMHD=void 0,fn.SMHD=void 0,fn.STSD=void 0,fn.FTYP=void 0,fn.DINF=void 0;const Oi=9e4;function ya(o,e,t=1,n=!1){const r=o*e*t;return n?Math.round(r):r}function yi(o,e,t=1,n=!1){return ya(o,e,1/t,n)}function ui(o,e=!1){return ya(o,1e3,1/Oi,e)}function ca(o,e=1){return ya(o,Oi,1/e)}function da(o){const{baseTime:e,timescale:t,trackId:n}=o;return`${e/t} (${e}/${t}) trackId: ${n}`}const Qr=10*1e3,gi=1024,jr=1152,Xr=1536;let Si=null,Ii=null;function ea(o,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:o?2:1,isNonSync:o?0:1}}}class Qi extends X{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=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,Si===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Si=s?parseInt(s[1]):0}if(Ii===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);Ii=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;(!t||!e||e.trackId!==t.trackId||e.baseTime!==t.baseTime||e.timescale!==t.timescale)&&this.log(`Reset initPTS: ${t&&da(t)} > ${e&&da(e)}`),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((a,s)=>{let d=s.pts,p=d-a;return p<-4294967296&&(t=!0,d=sa(d,n),p=d-a),p>0?a:d},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,a,s,d,p){let m,v,_,F,ee,ie,We=a,He=a;const Ot=e.pid>-1,Kt=t.pid>-1,Wt=t.samples.length,gn=e.samples.length>0,wn=d&&Wt>0||Wt>1;if((!Ot||gn)&&(!Kt||wn)||this.ISGenerated||d){if(this.ISGenerated){var An,Vn,Hn,Pn;const pi=this.videoTrackConfig;(pi&&(t.width!==pi.width||t.height!==pi.height||((An=t.pixelRatio)==null?void 0:An[0])!==((Vn=pi.pixelRatio)==null?void 0:Vn[0])||((Hn=t.pixelRatio)==null?void 0:Hn[1])!==((Pn=pi.pixelRatio)==null?void 0:Pn[1]))||!pi&&wn||this.nextAudioTs===null&&gn)&&this.resetInitSegment()}this.ISGenerated||(_=this.generateIS(e,t,a,s));const gr=this.isVideoContiguous;let Hr=-1,si;if(wn&&(Hr=Na(t.samples),!gr&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,Hr>0){this.warn(`Dropped ${Hr} out of ${Wt} video samples due to a missing keyframe`);const pi=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Hr),t.dropped+=Hr,He+=(t.samples[0].pts-pi)/t.inputTimeScale,si=He}else Hr===-1&&(this.warn(`No keyframe found out of ${Wt} video samples`),ie=!1);if(this.ISGenerated){if(gn&&wn){const pi=this.getVideoStartPts(t.samples),kr=(sa(e.samples[0].pts,pi)-pi)/t.inputTimeScale;We+=Math.max(0,kr),He+=Math.max(0,-kr)}if(gn){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),_=this.generateIS(e,t,a,s)),v=this.remuxAudio(e,We,this.isAudioContiguous,s,Kt||wn||p===V.AUDIO?He:void 0),wn){const pi=v?v.endPTS-v.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),_=this.generateIS(e,t,a,s)),m=this.remuxVideo(t,He,gr,pi)}}else wn&&(m=this.remuxVideo(t,He,gr,0));m&&(m.firstKeyFrame=Hr,m.independent=Hr!==-1,m.firstKeyFramePTS=si)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(ee=Jr(n,a,this._initPTS,this._initDTS)),r.samples.length&&(F=ai(r,a,this._initPTS))),{audio:v,video:m,initSegment:_,independent:ie,text:F,id3:ee}}computeInitPts(e,t,n,r){const a=Math.round(n*t);let s=sa(e,a);if(s<a+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(a-s)/t} ${r}`);s<a+t;)s+=8589934592;return s-a}generateIS(e,t,n,r){const a=e.samples,s=t.samples,d=this.typeSupported,p={},m=this._initPTS;let v=!m||r,_="audio/mp4",F,ee,ie,We=-1;if(v&&(F=ee=1/0),e.config&&a.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":d.mpeg?(_="audio/mpeg",e.codec=""):d.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}p.audio={id:"audio",container:_,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&d.mpeg?new Uint8Array(0):fn.initSegment([e]),metadata:{channelCount:e.channelCount}},v&&(We=e.id,ie=e.inputTimeScale,!m||ie!==m.timescale?F=ee=this.computeInitPts(a[0].pts,ie,n,"audio"):v=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,p.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:fn.initSegment([t]),metadata:{width:t.width,height:t.height}},v)if(We=t.id,ie=t.inputTimeScale,!m||ie!==m.timescale){const He=this.getVideoStartPts(s),Ot=sa(s[0].dts,He),Kt=this.computeInitPts(Ot,ie,n,"video"),Wt=this.computeInitPts(He,ie,n,"video");ee=Math.min(ee,Kt),F=Math.min(F,Wt)}else v=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(p).length)return this.ISGenerated=!0,v?(m&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${F/ie} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${F/ie} (${F}/${ie}) trackId: ${We}`),this._initPTS={baseTime:F,timescale:ie,trackId:We},this._initDTS={baseTime:ee,timescale:ie,trackId:We}):F=ie=void 0,{tracks:p,initPTS:F,timescale:ie,trackId:We}}remuxVideo(e,t,n,r){const a=e.inputTimeScale,s=e.samples,d=[],p=s.length,m=this._initPTS,v=m.baseTime*a/m.timescale;let _=this.nextVideoTs,F=8,ee=this.videoSampleDuration,ie,We,He=Number.POSITIVE_INFINITY,Ot=Number.NEGATIVE_INFINITY,Kt=!1;if(!n||_===null){const Ur=v+t*a,Kr=s[0].pts-sa(s[0].dts,s[0].pts);Si&&_!==null&&Math.abs(Ur-Kr-(_+v))<15e3?n=!0:_=Ur-Kr-v}const Wt=_+v;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur];Kr.pts=sa(Kr.pts,Wt),Kr.dts=sa(Kr.dts,Wt),Kr.dts<s[Ur>0?Ur-1:Ur].dts&&(Kt=!0)}Kt&&s.sort(function(Ur,Kr){const $i=Ur.dts-Kr.dts,xa=Ur.pts-Kr.pts;return $i||xa}),ie=s[0].dts,We=s[s.length-1].dts;const gn=We-ie,wn=gn?Math.round(gn/(p-1)):ee||e.inputTimeScale/30;if(n){const Ur=ie-Wt,Kr=Ur>wn,$i=Ur<-1;if((Kr||$i)&&(Kr?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ui(Ur,!0)} ms (${Ur}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ui(-Ur,!0)} ms (${Ur}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!$i||Wt>=s[0].pts||Si)){ie=Wt;const xa=s[0].pts-Ur;if(Kr)s[0].dts=ie,s[0].pts=xa;else{let Hi=!0;for(let na=0;na<s.length&&!(s[na].dts>xa&&Hi);na++){const us=s[na].pts;if(s[na].dts-=Ur,s[na].pts-=Ur,na<s.length-1){const as=s[na+1].pts,ks=s[na].pts,ao=as<=ks,Mo=as<=us;Hi=ao==Mo}}}this.log(`Video: Initial PTS/DTS adjusted: ${ui(xa,!0)}/${ui(ie,!0)}, delta: ${ui(Ur,!0)} ms`)}}ie=Math.max(0,ie);let lr=0,An=0,Vn=ie;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur],$i=Kr.units,xa=$i.length;let Hi=0;for(let na=0;na<xa;na++)Hi+=$i[na].data.length;An+=Hi,lr+=xa,Kr.length=Hi,Kr.dts<Vn?(Kr.dts=Vn,Vn+=wn/4|0||1):Vn=Kr.dts,He=Math.min(Kr.pts,He),Ot=Math.max(Kr.pts,Ot)}We=s[p-1].dts;const Hn=An+4*lr+8;let Pn;try{Pn=new Uint8Array(Hn)}catch(Ur){this.observer.emit(g.ERROR,g.ERROR,{type:fe.MUX_ERROR,details:Z.REMUX_ALLOC_ERROR,fatal:!1,error:Ur,bytes:Hn,reason:`fail allocating video mdat ${Hn}`});return}const gr=new DataView(Pn.buffer);gr.setUint32(0,Hn),Pn.set(fn.types.mdat,4);let Hr=!1,si=Number.POSITIVE_INFINITY,pi=Number.POSITIVE_INFINITY,oi=Number.NEGATIVE_INFINITY,kr=Number.NEGATIVE_INFINITY;for(let Ur=0;Ur<p;Ur++){const Kr=s[Ur],$i=Kr.units;let xa=0;for(let us=0,as=$i.length;us<as;us++){const ks=$i[us],ao=ks.data,Mo=ks.data.byteLength;gr.setUint32(F,Mo),F+=4,Pn.set(ao,F),F+=Mo,xa+=4+Mo}let Hi;if(Ur<p-1)ee=s[Ur+1].dts-Kr.dts,Hi=s[Ur+1].pts-Kr.pts;else{const us=this.config,as=Ur>0?Kr.dts-s[Ur-1].dts:wn;if(Hi=Ur>0?Kr.pts-s[Ur-1].pts:wn,us.stretchShortVideoTrack&&this.nextAudioTs!==null){const ks=Math.floor(us.maxBufferHole*a),ao=(r?He+r*a:this.nextAudioTs+v)-Kr.pts;ao>ks?(ee=ao-as,ee<0?ee=as:Hr=!0,this.log(`It is approximately ${ao/90} ms to the next segment; using duration ${ee/90} ms for the last video frame.`)):ee=as}else ee=as}const na=Math.round(Kr.pts-Kr.dts);si=Math.min(si,ee),oi=Math.max(oi,ee),pi=Math.min(pi,Hi),kr=Math.max(kr,Hi),d.push(ea(Kr.key,ee,xa,na))}if(d.length){if(Si){if(Si<70){const Ur=d[0].flags;Ur.dependsOn=2,Ur.isNonSync=0}}else if(Ii&&kr-pi<oi-si&&wn/oi<.025&&d[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Ur=ie;for(let Kr=0,$i=d.length;Kr<$i;Kr++){const xa=Ur+d[Kr].duration,Hi=Ur+d[Kr].cts;if(Kr<$i-1){const na=xa+d[Kr+1].cts;d[Kr].duration=na-Hi}else d[Kr].duration=Kr?d[Kr-1].duration:wn;d[Kr].cts=0,Ur=xa}}}ee=Hr||!ee?wn:ee;const li=We+ee;this.nextVideoTs=_=li-v,this.videoSampleDuration=ee,this.isVideoContiguous=!0;const _i={data1:fn.moof(e.sequenceNumber++,ie,b(e,{samples:d})),data2:Pn,startPTS:(He-v)/a,endPTS:(Ot+ee-v)/a,startDTS:(ie-v)/a,endDTS:_/a,type:"video",hasAudio:!1,hasVideo:!0,nb:d.length,dropped:e.dropped};return e.samples=[],e.dropped=0,_i}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return jr;case"ac3":return Xr;default:return gi}}remuxAudio(e,t,n,r,a){const s=e.inputTimeScale,d=e.samplerate?e.samplerate:s,p=s/d,m=this.getSamplesPerFrame(e),v=m*p,_=this._initPTS,F=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,ee=[],ie=a!==void 0;let We=e.samples,He=F?0:8,Ot=this.nextAudioTs||-1;const Kt=_.baseTime*s/_.timescale,Wt=Kt+t*s;if(this.isAudioContiguous=n=n||We.length&&Ot>0&&(r&&Math.abs(Wt-(Ot+Kt))<9e3||Math.abs(sa(We[0].pts,Wt)-(Ot+Kt))<20*v),We.forEach(function(kr){kr.pts=sa(kr.pts,Wt)}),!n||Ot<0){const kr=We.length;if(We=We.filter(li=>li.pts>=0),kr!==We.length&&this.warn(`Removed ${We.length-kr} of ${kr} samples (initPTS ${Kt} / ${s})`),!We.length)return;a===0?Ot=0:r&&!ie?Ot=Math.max(0,Wt-Kt):Ot=We[0].pts-Kt}if(e.segmentCodec==="aac"){const kr=this.config.maxAudioFramesDrift;for(let li=0,qr=Ot+Kt;li<We.length;li++){const di=We[li],_i=di.pts,Ur=_i-qr,Kr=Math.abs(1e3*Ur/s);if(Ur<=-kr*v&&ie)li===0&&(this.warn(`Audio frame @ ${(_i/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*Ur/s)} ms.`),this.nextAudioTs=Ot=_i-Kt,qr=_i);else if(Ur>=kr*v&&Kr<Qr&&ie){let $i=Math.round(Ur/v);for(qr=_i-$i*v;qr<0&&$i&&v;)$i--,qr+=v;li===0&&(this.nextAudioTs=Ot=qr-Kt),this.warn(`Injecting ${$i} audio frames @ ${((qr-Kt)/s).toFixed(3)}s due to ${Math.round(1e3*Ur/s)} ms gap.`);for(let xa=0;xa<$i;xa++){let Hi=Ri.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Hi||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Hi=di.unit.subarray()),We.splice(li,0,{unit:Hi,pts:qr}),qr+=v,li++}}di.pts=qr,qr+=v}}let gn=null,wn=null,lr,An=0,Vn=We.length;for(;Vn--;)An+=We[Vn].unit.byteLength;for(let kr=0,li=We.length;kr<li;kr++){const qr=We[kr],di=qr.unit;let _i=qr.pts;if(wn!==null){const Kr=ee[kr-1];Kr.duration=Math.round((_i-wn)/p)}else if(n&&e.segmentCodec==="aac"&&(_i=Ot+Kt),gn=_i,An>0){An+=He;try{lr=new Uint8Array(An)}catch(Kr){this.observer.emit(g.ERROR,g.ERROR,{type:fe.MUX_ERROR,details:Z.REMUX_ALLOC_ERROR,fatal:!1,error:Kr,bytes:An,reason:`fail allocating audio mdat ${An}`});return}F||(new DataView(lr.buffer).setUint32(0,An),lr.set(fn.types.mdat,4))}else return;lr.set(di,He);const Ur=di.byteLength;He+=Ur,ee.push(ea(!0,m,Ur,0)),wn=_i}const Hn=ee.length;if(!Hn)return;const Pn=ee[ee.length-1];Ot=wn-Kt,this.nextAudioTs=Ot+p*Pn.duration;const gr=F?new Uint8Array(0):fn.moof(e.sequenceNumber++,gn/p,b({},e,{samples:ee}));e.samples=[];const Hr=(gn-Kt)/s,si=this.nextAudioTs/s,oi={data1:gr,data2:lr,startPTS:Hr,endPTS:si,startDTS:Hr,endDTS:si,type:"audio",hasAudio:!0,hasVideo:!1,nb:Hn};return this.isAudioContiguous=!0,oi}}function sa(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 Na(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Jr(o,e,t,n){const r=o.samples.length;if(!r)return;const a=o.inputTimeScale;for(let d=0;d<r;d++){const p=o.samples[d];p.pts=sa(p.pts-t.baseTime*a/t.timescale,e*a)/a,p.dts=sa(p.dts-n.baseTime*a/n.timescale,e*a)/a}const s=o.samples;return o.samples=[],{samples:s}}function ai(o,e,t){const n=o.samples.length;if(!n)return;const r=o.inputTimeScale;for(let s=0;s<n;s++){const d=o.samples[s];d.pts=sa(d.pts-t.baseTime*r/t.timescale,e*r)/r}o.samples.sort((s,d)=>s.pts-d.pts);const a=o.samples;return o.samples=[],{samples:a}}class Bi extends X{constructor(e,t,n,r){super("passthrough-remuxer",r),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=Ue(e);if(t)Xe(e,t);else{const p=a||s;p!=null&&p.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${p.codec}")!`)}a&&(n=Ha(a,de.AUDIO,this)),s&&(r=Ha(s,de.VIDEO,this));const d={};a&&s?d.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:a?d.audio={container:"audio/mp4",codec:n,encrypted:a.encrypted,initSegment:e,id:"audio"}:s?d.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=d}remux(e,t,n,r,a,s){var d,p;let{initPTS:m,lastEndTime:v}=this;const _={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};i(v)||(v=this.lastEndTime=a||0);const F=t.samples;if(!F.length)return _;const ee={initPTS:void 0,timescale:void 0,trackId:void 0};let ie=this.initData;if((d=ie)!=null&&d.length||(this.generateInitSegment(F),ie=this.initData),!((p=ie)!=null&&p.length))return this.warn("Failed to generate initSegment."),_;this.emitInitSegment&&(ee.tracks=this.initTracks,this.emitInitSegment=!1);const We=Lt(F,ie,this),He=ie.audio?We[ie.audio.id]:null,Ot=ie.video?We[ie.video.id]:null,Kt=ta(Ot,1/0),Wt=ta(He,1/0),gn=ta(Ot,0,!0),wn=ta(He,0,!0);let lr=a,An=0;const Vn=He&&(!Ot||!m&&Wt<Kt||m&&m.trackId===ie.audio.id),Hn=Vn?He:Ot;if(Hn){const qr=Hn.timescale,di=Hn.start-a*qr,_i=Vn?ie.audio.id:ie.video.id;lr=Hn.start/qr,An=Vn?wn-Wt:gn-Kt,(s||!m)&&(Fi(m,lr,a,An)||qr!==m.timescale)&&(m&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${a} ${di/qr} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${a} offset: ${lr-a} (${di}/${qr}) trackId: ${_i}`),m=null,ee.initPTS=di,ee.timescale=qr,ee.trackId=_i)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${a}`);m?(ee.initPTS=m.baseTime,ee.timescale=m.timescale,ee.trackId=m.trackId):((!ee.timescale||ee.trackId===void 0||ee.initPTS===void 0)&&(this.warn("Could not set initPTS"),ee.initPTS=lr,ee.timescale=1,ee.trackId=-1),this.initPTS=m={baseTime:ee.initPTS,timescale:ee.timescale,trackId:ee.trackId});const Pn=lr-m.baseTime/m.timescale,gr=Pn+An;An>0?this.lastEndTime=gr:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Hr=!!ie.audio,si=!!ie.video;let pi="";Hr&&(pi+="audio"),si&&(pi+="video");const oi=(ie.audio?ie.audio.encrypted:!1)||(ie.video?ie.video.encrypted:!1),kr={data1:F,startPTS:Pn,startDTS:Pn,endPTS:gr,endDTS:gr,type:pi,hasAudio:Hr,hasVideo:si,nb:1,dropped:0,encrypted:oi};_.audio=Hr&&!si?kr:void 0,_.video=si?kr:void 0;const li=Ot==null?void 0:Ot.sampleCount;if(li){const qr=Ot.keyFrameIndex,di=qr!==-1;kr.nb=li,kr.dropped=qr===0||this.isVideoContiguous?0:di?qr:li,kr.independent=di,kr.firstKeyFrame=qr,di&&Ot.keyFrameStart&&(kr.firstKeyFramePTS=(Ot.keyFrameStart-m.baseTime)/m.timescale),this.isVideoContiguous||(_.independent=di),this.isVideoContiguous||(this.isVideoContiguous=di),kr.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${qr}/${li} dropped: ${kr.dropped} start: ${kr.firstKeyFramePTS||"NA"}`)}return _.initSegment=ee,_.id3=Jr(n,a,m,m),r.samples.length&&(_.text=ai(r,a,m)),_}}function ta(o,e,t=!1){return(o==null?void 0:o.start)!==void 0?(o.start+(t?o.duration:0))/o.timescale:e}function Fi(o,e,t,n){if(o===null)return!0;const r=Math.max(n,1),a=e-o.baseTime/o.timescale;return Math.abs(a-t)>r}function Ha(o,e,t){const n=o.codec;return n&&n.length>4?n:e===de.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?ge(n,!1):(t.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(t.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}let ga;try{ga=self.performance.now.bind(self.performance)}catch(o){ga=Date.now}const os=[{demux:Qt,remux:Bi},{demux:nr,remux:Qi},{demux:x,remux:Qi},{demux:qe,remux:Qi}];os.splice(2,0,{demux:J,remux:Qi});class ba{constructor(e,t,n,r,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=a,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const a=n.transmuxing;a.executeStart=ga();let s=new Uint8Array(e);const{currentTransmuxState:d,transmuxConfig:p}=this;r&&(this.currentTransmuxState=r);const{contiguous:m,discontinuity:v,trackSwitch:_,accurateTimeOffset:F,timeOffset:ee,initSegmentChange:ie}=r||d,{audioCodec:We,videoCodec:He,defaultInitPts:Ot,duration:Kt,initSegmentData:Wt}=p,gn=Ji(s,t);if(gn&&vr(gn.method)){const Vn=this.getDecrypter(),Hn=br(gn.method);if(Vn.isSync()){let Pn=Vn.softwareDecrypt(s,gn.key.buffer,gn.iv.buffer,Hn);if(n.part>-1){const Hr=Vn.flush();Pn=Hr&&Hr.buffer}if(!Pn)return a.executeEnd=ga(),fa(n);s=new Uint8Array(Pn)}else return this.asyncResult=!0,this.decryptionPromise=Vn.webCryptoDecrypt(s,gn.key.buffer,gn.iv.buffer,Hn).then(Pn=>{const gr=this.push(Pn,null,n);return this.decryptionPromise=null,gr}),this.decryptionPromise}const wn=this.needsProbing(v,_);if(wn){const Vn=this.configureTransmuxer(s);if(Vn)return this.logger.warn(`[transmuxer] ${Vn.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,fatal:!1,error:Vn,reason:Vn.message}),a.executeEnd=ga(),fa(n)}(v||_||ie||wn)&&this.resetInitSegment(Wt,We,He,Kt,t),(v||ie||wn)&&this.resetInitialTimestamp(Ot),m||this.resetContiguity();const lr=this.transmux(s,gn,ee,F,n);this.asyncResult=oa(lr);const An=this.currentTransmuxState;return An.contiguous=!0,An.discontinuity=!1,An.trackSwitch=!1,a.executeEnd=ga(),lr}flush(e){const t=e.transmuxing;t.executeStart=ga();const{decrypter:n,currentTransmuxState:r,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(e));const s=[],{timeOffset:d}=r;if(n){const _=n.flush();_&&s.push(this.push(_.buffer,null,e))}const{demuxer:p,remuxer:m}=this;if(!p||!m){t.executeEnd=ga();const _=[fa(e)];return this.asyncResult?Promise.resolve(_):_}const v=p.flush(d);return oa(v)?(this.asyncResult=!0,v.then(_=>(this.flushRemux(s,_,e),s))):(this.flushRemux(s,v,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:a,id3Track:s,textTrack:d}=t,{accurateTimeOffset:p,timeOffset:m}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===V.MAIN?"level":"track"} ${n.level}`);const v=this.remuxer.remux(r,a,s,d,m,p,!0,this.id);e.push({remuxResult:v,chunkMeta:n}),n.transmuxing.executeEnd=ga()}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,a){const{demuxer:s,remuxer:d}=this;!s||!d||(s.resetInitSegment(e,t,n,r),d.resetInitSegment(e,t,n,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,a){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,a):s=this.transmuxUnencrypted(e,n,r,a),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:a,videoTrack:s,id3Track:d,textTrack:p}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,d,p,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,a){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:a}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let a;for(let _=0,F=os.length;_<F;_++){var s;if((s=os[_].demux)!=null&&s.probe(e,this.logger)){a=os[_];break}}if(!a)return new Error("Failed to find demuxer by probing fragment data");const d=this.demuxer,p=this.remuxer,m=a.remux,v=a.demux;(!p||!(p instanceof m))&&(this.remuxer=new m(n,t,r,this.logger)),(!d||!(d instanceof v))&&(this.demuxer=new v(n,t,r,this.logger),this.probe=v.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new wr(this.config)),e}}function Ji(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 fa=o=>({remuxResult:{},chunkMeta:o});function oa(o){return"then"in o&&o.then instanceof Function}class ka{constructor(e,t,n,r,a){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=a||null}}class Ra{constructor(e,t,n,r,a,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=a,this.initSegmentChange=s}}let Gi=0;class Ca{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Gi++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=p=>{const m=p.data,v=this.hls;if(!(!v||!(m!=null&&m.event)||m.instanceNo!==this.instanceNo))switch(m.event){case"init":{var _;const F=(_=this.workerContext)==null?void 0:_.objectURL;F&&self.URL.revokeObjectURL(F);break}case"transmuxComplete":{this.handleTransmuxComplete(m.data);break}case"flush":{this.onFlush(m.data);break}case"workerLog":{v.logger[m.data.logType]&&v.logger[m.data.logType](m.data.message);break}default:{m.data=m.data||{},m.data.frag=this.frag,m.data.part=this.part,m.data.id=this.id,v.trigger(m.event,m.data);break}}},this.onWorkerError=p=>{if(!this.hls)return;const m=new Error(`${p.message} (${p.filename}:${p.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:m})};const a=e.config;this.hls=e,this.id=t,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(p,m)=>{m=m||{},m.frag=this.frag||void 0,p===g.ERROR&&(m=m,m.parent=this.id,m.part=this.part,this.error=m.error),this.hls.trigger(p,m)};this.observer=new xo,this.observer.on(g.FRAG_DECRYPTED,s),this.observer.on(g.ERROR,s);const d=B(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const p=this.hls.logger;if(a.workerPath||Fo()){try{a.workerPath?(p.log(`loading Web Worker ${a.workerPath} for "${t}"`),this.workerContext=$o(a.workerPath)):(p.log(`injecting Web Worker for "${t}"`),this.workerContext=Cl());const{worker:v}=this.workerContext;v.addEventListener("message",this.onWorkerMessage),v.addEventListener("error",this.onWorkerError),v.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:d,id:t,config:ft(a)})}catch(v){p.warn(`Error setting up "${t}" Web Worker, fallback to inline`,v),this.terminateWorker(),this.error=null,this.transmuxer=new ba(this.observer,d,a,"",t,e.logger)}return}}this.transmuxer=new ba(this.observer,d,a,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Gi++;const t=this.hls.config,n=B(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:ft(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),wl(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,a,s,d,p,m,v){var _,F;m.transmuxing.start=self.performance.now();const{instanceNo:ee,transmuxer:ie}=this,We=s?s.start:a.start,He=a.decryptdata,Ot=this.frag,Kt=!(Ot&&a.cc===Ot.cc),Wt=!(Ot&&m.level===Ot.level),gn=Ot?m.sn-Ot.sn:-1,wn=this.part?m.part-this.part.index:-1,lr=gn===0&&m.id>1&&m.id===(Ot==null?void 0:Ot.stats.chunkCount),An=!Wt&&(gn===1||gn===0&&(wn===1||lr&&wn<=0)),Vn=self.performance.now();(Wt||gn||a.stats.parsing.start===0)&&(a.stats.parsing.start=Vn),s&&(wn||!An)&&(s.stats.parsing.start=Vn);const Hn=!(Ot&&((_=a.initSegment)==null?void 0:_.url)===((F=Ot.initSegment)==null?void 0:F.url)),Pn=new Ra(Kt,An,p,Wt,We,Hn);if(!An||Kt||Hn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${m.sn}${m.part>-1?" part: "+m.part:""} ${this.id===V.MAIN?"level":"track"}: ${m.level} id: ${m.id}
discontinuity: ${Kt}
trackSwitch: ${Wt}
contiguous: ${An}
accurateTimeOffset: ${p}
timeOffset: ${We}
initSegmentChange: ${Hn}`);const gr=new ka(n,r,t,d,v);this.configureTransmuxer(gr)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:ee,cmd:"demux",data:e,decryptdata:He,chunkMeta:m,state:Pn},e instanceof ArrayBuffer?[e]:[]);else if(ie){const gr=ie.push(e,He,m,Pn);oa(gr)?gr.then(Hr=>{this.handleTransmuxComplete(Hr)}).catch(Hr=>{this.transmuxerError(Hr,m,"transmuxer-interface push error")}):this.handleTransmuxComplete(gr)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);oa(r)?r.then(a=>{this.handleFlushResult(a,e)}).catch(a=>{this.transmuxerError(a,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const la=100;class Va extends oo{constructor(e,t,n){super(e,t,n,"audio-stream-controller",V.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:a,trackId:s}){if(n===V.MAIN){const d=t.cc,p=this.fragCurrent;if(this.initPTS[d]={baseTime:r,timescale:a,trackId:s},this.log(`InitPTS for cc: ${d} found from main: ${r/a} (${r}/${a}) trackId: ${s}`),this.mainAnchor=t,this.state===fr.WAITING_INIT_PTS){const m=this.waitingData;(!m&&!this.loadingParts||m&&m.frag.cc!==d)&&this.syncWithAnchor(t,m==null?void 0:m.frag)}else!this.hls.hasEnoughToStart&&p&&p.cc!==d?(p.abortRequests(),this.syncWithAnchor(t,p)):this.state===fr.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(r==null?void 0:r.cc)===t.cc)return;const a=(r||e).cc,s=this.getLevelDetails(),d=this.getLoadPosition(),p=Rn(s,a,d);p&&(this.log(`Syncing with main frag at ${p.start} cc ${p.cc}`),this.startFragRequested=!1,this.nextLoadPosition=p.start,this.resetLoadingState(),this.state===fr.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=fr.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(la),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=fr.IDLE):this.state=fr.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case fr.IDLE:this.doTickIdle();break;case fr.WAITING_TRACK:{const{levels:e,trackId:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=fr.WAITING_INIT_PTS}break}case fr.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case fr.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:a}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=fr.FRAG_LOADING;const d=r.flush().buffer,p={frag:t,part:n,payload:d,networkDetails:null};this._handleFragmentLoadProgress(p),a&&super._handleFragmentLoadComplete(p)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=fr.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:a}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[a]))return;const d=n[a],p=d.details;if(!p||this.waitForLive(d)||this.waitForCdnTuneIn(p)){this.state=fr.WAITING_TRACK,this.startFragRequested=!1;return}const m=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&m&&(this.bufferFlushed=!1,this.afterBufferFlushed(m,de.AUDIO,V.AUDIO));const v=this.getFwdBufferInfo(m,V.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,p)){t.trigger(g.BUFFER_EOS,{type:"audio"}),this.state=fr.ENDED;return}const _=v.len,F=t.maxBufferLength,ee=p.fragments,ie=ee[0].start,We=this.getLoadPosition(),He=this.flushing?We:v.end;if(this.switchingTrack&&r){const Wt=We;p.PTSKnown&&Wt<ie&&(v.end>ie||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=ie+.05)}if(_>=F&&!this.switchingTrack&&He<ee[ee.length-1].start)return;let Ot=this.getNextFragment(He,p);if(Ot&&this.isLoopLoading(Ot,He)&&(Ot=this.getNextFragmentLoopLoading(Ot,p,v,V.MAIN,F)),!Ot){this.bufferFlushed=!0;return}let Kt=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Kt&&dt(Ot)&&!Ot.endList&&(!p.live||!this.loadingParts&&He<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Kt)===Qn.OK&&(this.mainFragLoading=Kt=null),Kt&&dt(Kt))){if(Ot.start>Kt.end){const gn=this.fragmentTracker.getFragAtPos(He,V.MAIN);gn&&gn.end>Kt.end&&(Kt=gn,this.mainFragLoading={frag:gn,targetBufferTime:null})}if(Ot.start>Kt.end)return}this.loadFragment(Ot,d,He)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new ct(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==fr.STOPPED&&(this.setInterval(la),this.state=fr.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(g.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:a,id:s,groupId:d,track:p}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${p.name}" of "${d}"`);return}const m=this.mainDetails;if(!m||a.endCC>m.endCC||m.expired){this.cachedTrackLoadedData=t,this.state!==fr.STOPPED&&(this.state=fr.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${p.name}" of "${d}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const v=r[s];let _=0;if(a.live||(n=v.details)!=null&&n.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(v.details){var F;_=this.alignPlaylists(a,v.details,(F=this.levelLastLoaded)==null?void 0:F.details)}a.alignedSliding||(zs(a,m),a.alignedSliding||so(a,m),_=a.fragmentStart)}v.details=a,this.levelLastLoaded=v,this.startFragRequested||this.setStartPosition(m,_),this.hls.trigger(g.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.state===fr.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=fr.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:a}=e,{config:s,trackId:d,levels:p}=this;if(!p){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 m=p[d];if(!m){this.warn("Audio track is undefined on fragment load progress");return}const v=m.details;if(!v){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const _=s.defaultAudioCodec||m.audioCodec||"mp4a.40.2";let F=this.transmuxer;F||(F=this.transmuxer=new Ca(this.hls,V.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const ee=this.initPTS[n.cc],ie=(t=n.initSegment)==null?void 0:t.data;if(ee!==void 0){const He=r?r.index:-1,Ot=He!==-1,Kt=new ri(n.level,n.sn,n.stats.chunkCount,a.byteLength,He,Ot);F.push(a,ie,_,"",n,r,v.totalduration,!1,Kt,ee)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${v.startSN} ,${v.endSN}],track ${d}`);const{cache:We}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Zs,complete:!1};We.push(new Uint8Array(a)),this.state!==fr.STOPPED&&(this.state=fr.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===V.MAIN&&dt(t.frag)&&(this.mainFragLoading=t,this.state===fr.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==V.AUDIO){!this.audioOnly&&n.type===V.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(dt(n)){this.fragPrevious=n;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,T({},a)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=fr.ERROR;return}switch(t.details){case Z.FRAG_GAP:case Z.FRAG_PARSING_ERROR:case Z.FRAG_DECRYPT_ERROR:case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(V.AUDIO,t);break;case Z.AUDIO_TRACK_LOAD_ERROR:case Z.AUDIO_TRACK_LOAD_TIMEOUT:case Z.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===fr.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===H.AUDIO_TRACK&&(this.state=fr.IDLE);break;case Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case Z.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Z.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==de.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==de.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===fr.ENDED&&(this.state=fr.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,V.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:a,chunkMeta:s}=e,d=this.getCurrentContext(s);if(!d){this.resetWhenMissingContext(s);return}const{frag:p,part:m,level:v}=d,{details:_}=v,{audio:F,text:ee,id3:ie,initSegment:We}=a;if(this.fragContextChanged(p)||!_){this.fragmentTracker.removeFragment(p);return}if(this.state=fr.PARSING,this.switchingTrack&&F&&this.completeAudioSwitch(this.switchingTrack),We!=null&&We.tracks){const He=p.initSegment||p;if(this.unhandledEncryptionError(We,p))return;this._bufferInitSegment(v,We.tracks,He,s),r.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:He,id:n,tracks:We.tracks})}if(F){const{startPTS:He,endPTS:Ot,startDTS:Kt,endDTS:Wt}=F;m&&(m.elementaryStreams[de.AUDIO]={startPTS:He,endPTS:Ot,startDTS:Kt,endDTS:Wt}),p.setElementaryStreamInfo(de.AUDIO,He,Ot,Kt,Wt),this.bufferFragmentData(F,p,m,s)}if(ie!=null&&(t=ie.samples)!=null&&t.length){const He=b({id:n,frag:p,details:_},ie);r.trigger(g.FRAG_PARSING_METADATA,He)}if(ee){const He=b({id:n,frag:p,details:_},ee);r.trigger(g.FRAG_PARSING_USERDATA,He)}}_bufferInitSegment(e,t,n,r){if(this.state!==fr.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const a=t.audio;a.id=V.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(g.BUFFER_CODECS,t);const d=a.initSegment;if(d!=null&&d.byteLength){const p={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:d};this.hls.trigger(g.BUFFER_APPENDING,p)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===Qn.NOT_LOADED||r===Qn.PARTIAL){var a;if(!dt(e))this._loadInitSegment(e,t);else if((a=t.details)!=null&&a.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=fr.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&so(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:a,audioCodec:s,channels:d}=this.bufferedTrack;mn({name:t,lang:n,assocLang:r,characteristics:a,audioCodec:s,channels:d},e,_n)||(Ln(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(g.AUDIO_TRACK_SWITCHED,T({},e))}}class wa extends X{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let a=-1;for(let s=0;s<r.length;s++){const d=r[s];let p;try{p=new self.URL(d.URI,t.url).href}catch(m){this.warn(`Could not construct new URL for Rendition Report: ${m}`),p=d.URI||""}if(p===e){a=s;break}else p===e.substring(0,p.length)&&(a=s)}if(a!==-1){const s=r[a],d=parseInt(s["LAST-MSN"])||t.lastPartSn;let p=parseInt(s["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const v=Math.min(t.age-t.partTarget,t.targetduration);p>=0&&v>t.partTarget&&(p+=1)}const m=n&&sn(n);return new je(d,p>=0?p:void 0,m)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:a}=t,s=self.performance.now(),d=a.loading.first?Math.max(0,s-a.loading.first):0;r.advancedDateTime=Date.now()-d;const p=this.hls.config.timelineOffset;if(p!==r.appliedTimelineOffset){const v=Math.max(p||0,0);r.appliedTimelineOffset=v,r.fragments.forEach(_=>{_.setStart(_.playlistOffset+v)})}if(r.live||n!=null&&n.live){const v="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){rs(n,r,this);const Kt=r.playlistParsingError;if(Kt){this.warn(Kt);const Wt=this.hls;if(!Wt.config.ignorePlaylistParsingErrors){var m;const{networkDetails:gn}=t;Wt.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:Z.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Kt,reason:Kt.message,level:t.level||void 0,parent:(m=r.fragments[0])==null?void 0:m.type,networkDetails:gn,stats:a});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=a.loading.start);const _=this.hls.mainForwardBufferInfo,F=_?_.end-_.len:0,ee=(r.edge-F)*1e3,ie=Ui(r,ee);if(r.requestScheduled+ie<s?r.requestScheduled=s:r.requestScheduled+=ie,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let We,He,Ot;if(r.canBlockReload&&r.endSN&&r.advanced){const Kt=this.hls.config.lowLatencyMode,Wt=r.lastPartSn,gn=r.endSN,wn=r.lastPartIndex,lr=wn!==-1,An=Wt===gn;lr?An?(He=gn+1,Ot=Kt?0:wn):(He=Wt,Ot=Kt?wn+1:r.maxPartIndex):He=gn+1;const Vn=r.age,Hn=Vn+r.ageHeader;let Pn=Math.min(Hn-r.partTarget,r.targetduration*1.5);if(Pn>0){if(Hn>r.targetduration*3)this.log(`Playlist last advanced ${Vn.toFixed(2)}s ago. Omitting segment and part directives.`),He=void 0,Ot=void 0;else if(n!=null&&n.tuneInGoal&&Hn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Pn} with playlist age: ${r.age}`),Pn=0;else{const gr=Math.floor(Pn/r.targetduration);if(He+=gr,Ot!==void 0){const Hr=Math.round(Pn%r.targetduration/r.partTarget);Ot+=Hr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Vn.toFixed(2)}s goal: ${Pn} skip sn ${gr} to part ${Ot}`)}r.tuneInGoal=Pn}if(We=this.getDeliveryDirectives(r,t.deliveryDirectives,He,Ot),Kt||!An){r.requestScheduled=s,this.loadingPlaylist(v,We);return}}else(r.canBlockReload||r.canSkipUntil)&&(We=this.getDeliveryDirectives(r,t.deliveryDirectives,He,Ot));We&&He!==void 0&&r.canBlockReload&&(r.requestScheduled=a.loading.first+Math.max(ie-d*2,ie/2)),this.scheduleLoading(v,We,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const a=self.performance.now(),s=r.requestScheduled;if(a>=s){this.loadingPlaylist(e,t);return}const d=s-a;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(d)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),d)}getDeliveryDirectives(e,t,n,r){let a=sn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,a=Gt.No),new je(n,r,a)}checkRetry(e){const t=e.details,n=Bn(e),r=e.errorAction,{action:a,retryCount:s=0,retryConfig:d}=r||{},p=!!r&&!!d&&(a===Yn.RetryRequest||!r.resolved&&a===Yn.SendAlternateToPenaltyBox);if(p){var m;if(s>=d.maxNumRetry)return!1;if(n&&(m=e.context)!=null&&m.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${d.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const v=On(d,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),v),this.warn(`Retrying playlist loading ${s+1}/${d.maxNumRetry} after "${t}" in ${v}ms`)}e.levelRetry=!0,r.resolved=!0}return p}}function Ja(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!xs(o[t].attrs,e[t].attrs))return!1;return!0}function xs(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 fo(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class _a extends wa{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(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.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:a}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const d=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${a.startSN}-${a.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,d)}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 a=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(d=>(r==null?void 0:r.indexOf(d))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const d=this.tracks.filter(F=>!n||n.indexOf(F.groupId)!==-1);if(d.length)this.selectDefaultTrack&&!d.some(F=>F.default)&&(this.selectDefaultTrack=!1),d.forEach((F,ee)=>{F.id=ee});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=d;const p=this.hls.config.audioPreference;if(!a&&p){const F=nn(p,d,_n);if(F>-1)a=d[F];else{const ee=nn(p,this.tracks);a=this.tracks[ee]}}let m=this.findTrackId(a);m===-1&&a&&(m=this.findTrackId(null));const v={audioTracks:d};this.log(`Updating audio tracks, ${d.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(g.AUDIO_TRACKS_UPDATED,v);const _=this.trackId;if(m!==-1&&_===-1)this.setAudioTrack(m);else if(d.length&&_===-1){var s;const F=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${d.length}`);this.warn(F.message),this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:F})}}}onError(e,t){t.fatal||!t.context||t.context.type===H.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&mn(e,r,_n))return r;const a=nn(e,this.tracksInGroup,_n);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const d=Cn(e,t.levels,n,s,_n);if(d===-1)return null;t.nextLoadLevel=d}if(e.channels||e.audioCodec){const s=nn(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],a=r.details&&!r.details.live;if(e===this.trackId&&r===n&&a||(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(g.AUDIO_TRACK_SWITCHING,T({},r)),a))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||mn(e,r,_n)))return n}if(e){const{name:n,lang:r,assocLang:a,characteristics:s,audioCodec:d,channels:p}=e;for(let m=0;m<t.length;m++){const v=t[m];if(mn({name:n,lang:r,assocLang:a,characteristics:s,audioCodec:d,channels:p},v,_n))return m}for(let m=0;m<t.length;m++){const v=t[m];if(xs(e.attrs,v.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return m}for(let m=0;m<t.length;m++){const v=t[m];if(xs(e.attrs,v.attrs,["LANGUAGE"]))return m}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Ln(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,a=this.getUrlWithDirectives(e.url,t),s=e.details,d=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${a}`),this.hls.trigger(g.AUDIO_TRACK_LOADING,{url:a,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class Do{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(a){var n;if(r.onError(a),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
${this.list("video")}
${this.list("audio")}
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const qa=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ms="HlsJsTrackRemovedError";class ps extends Error{constructor(e){super(e),this.name=ms}}class is extends X{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:a}=this;n&&this.log("Media source opened"),!(!r||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(g.MEDIA_ATTACHED,{media:r,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Je(ze(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_APPENDING,this.onBufferAppending,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.BUFFER_EOS,this.onBufferEos,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.FRAG_PARSED,this.onFragParsed,this),e.on(g.FRAG_CHANGED,this.onFragChanged,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_APPENDING,this.onBufferAppending,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_EOS,this.onBufferEos,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.FRAG_PARSED,this.onFragParsed,this),e.off(g.FRAG_CHANGED,this.onFragChanged,this),e.off(g.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?b(n,r.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(n[s]=b({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const r=ze(this.appendSource);if(r){const a=!!t.mediaSource;(a||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),a)this._objectUrl=n.src,this.attachTransferred();else{const d=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const p=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||p&&s instanceof p,es(n),Es(n,d),n.load()}catch(p){n.src=d}else n.src=d}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,a=r?Object.keys(r):null,s=a?a.length:0,d=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
required tracks: ${ft(n,(p,m)=>p==="initSegment"?void 0:m)};
transfer tracks: ${ft(r,(p,m)=>p==="initSegment"?void 0:m)}}`),!Pe(r,n)){t.mediaSource=null,t.tracks=void 0;const p=e.currentTime,m=this.details,v=Math.max(p,(m==null?void 0:m.fragments[0].start)||0);if(v-p>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${p} -> ${v}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${v} currentTime: ${p}`),this.onMediaDetaching(g.MEDIA_DETACHING,{}),this.onMediaAttaching(g.MEDIA_ATTACHING,t),e.currentTime=v;return}this.transferData=void 0,a.forEach(p=>{const m=p,v=r[m];if(v){const _=v.buffer;if(_){const F=this.fragmentTracker,ee=v.id;if(F.hasFragments(ee)||F.hasParts(ee)){const He=mr.getBuffered(_);F.detectEvictedFragments(m,He,ee,null,!0)}const ie=Ns(m),We=[m,_];this.sourceBuffers[ie]=We,_.updating&&this.operationQueue&&this.operationQueue.prependBlocker(m),this.trackSourceBuffer(m,v)}}}),d(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),d()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([d])=>{d&&this.removeBuffer(d)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const d=a.readyState==="open";try{const p=a.sourceBuffers;for(let m=p.length;m--;)d&&p[m].abort(),a.removeSourceBuffer(p[m]);d&&a.endOfStream()}catch(p){this.warn(`onMediaDetaching: ${p.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&es(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(g.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(a){this.warn(`onBufferReset ${e}`,a)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ns(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Do(this.tracks)}onBufferCodecs(e,t){var n;const r=this.tracks,a=Object.keys(t);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),d=!s&&this.sourceBufferCount&&this.media&&a.some(p=>!r[p]);if(s||d){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${a}" SourceBuffers`);return}a.forEach(p=>{var m,v;const _=t[p],{id:F,codec:ee,levelCodec:ie,container:We,metadata:He,supplemental:Ot}=_;let Kt=r[p];const Wt=(m=this.transferData)==null||(m=m.tracks)==null?void 0:m[p],gn=Wt!=null&&Wt.buffer?Wt:Kt,wn=(gn==null?void 0:gn.pendingCodec)||(gn==null?void 0:gn.codec),lr=gn==null?void 0:gn.levelCodec;Kt||(Kt=r[p]={buffer:void 0,listeners:[],codec:ee,supplemental:Ot,container:We,levelCodec:ie,metadata:He,id:F});const An=cn(wn,lr),Vn=An==null?void 0:An.replace(qa,"$1");let Hn=cn(ee,ie);const Pn=(v=Hn)==null?void 0:v.replace(qa,"$1");Hn&&An&&Vn!==Pn&&(p.slice(0,5)==="audio"&&(Hn=ge(Hn,this.appendSource)),this.log(`switching codec ${wn} to ${Hn}`),Hn!==(Kt.pendingCodec||Kt.codec)&&(Kt.pendingCodec=Hn),Kt.container=We,this.appendChangeType(p,We,Hn))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((n=t.audio)==null?void 0:n.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,a={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const d=s.buffer;d!=null&&d.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),d.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(a,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,V.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var d;const p=this.tracks.video;(this.lastVideoAppendEnd>r||p!=null&&p.buffer&&mr.isBuffered(p.buffer,r)||((d=this.fragmentTracker.getAppendedFrag(r,V.MAIN))==null?void 0:d.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:d=>{this.warn("Error executing block-audio operation",d)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:a,parent:s,frag:d,part:p,chunkMeta:m,offset:v}=t,_=m.buffering[a],{sn:F,cc:ee}=d,ie=self.performance.now();_.start=ie;const We=d.stats.buffering,He=p?p.stats.buffering:null;We.start===0&&(We.start=ie),He&&He.start===0&&(He.start=ie);const Ot=n.audio;let Kt=!1;a==="audio"&&(Ot==null?void 0:Ot.container)==="audio/mpeg"&&(Kt=!this.lastMpegAudioChunk||m.id===1||this.lastMpegAudioChunk.sn!==m.sn,this.lastMpegAudioChunk=m);const Wt=n.video,gn=Wt==null?void 0:Wt.buffer;if(gn&&F!=="initSegment"){const An=p||d,Vn=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(Wt.ending||Wt.ended)){const Pn=An.start+An.duration*.05,gr=gn.buffered,Hr=this.currentOp("video");!gr.length&&!Hr?this.blockAudio(An):!Hr&&!mr.isBuffered(gn,Pn)&&this.lastVideoAppendEnd<Pn&&this.blockAudio(An)}else if(a==="video"){const Hn=An.end;if(Vn){const Pn=Vn.frag.start;(Hn>Pn||Hn<this.lastVideoAppendEnd||mr.isBuffered(gn,Pn))&&this.unblockAudio()}this.lastVideoAppendEnd=Hn}}const wn=(p||d).start,lr={label:`append-${a}`,execute:()=>{var An;_.executeStart=self.performance.now();const Vn=(An=this.tracks[a])==null?void 0:An.buffer;Vn&&(Kt?this.updateTimestampOffset(Vn,wn,.1,a,F,ee):v!==void 0&&i(v)&&this.updateTimestampOffset(Vn,v,1e-6,a,F,ee)),this.appendExecutor(r,a)},onStart:()=>{},onComplete:()=>{const An=self.performance.now();_.executeEnd=_.end=An,We.first===0&&(We.first=An),He&&He.first===0&&(He.first=An);const Vn={};this.sourceBuffers.forEach(([Hn,Pn])=>{Hn&&(Vn[Hn]=mr.getBuffered(Pn))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(g.BUFFER_APPENDED,{type:a,frag:d,part:p,chunkMeta:m,parent:d.type,timeRanges:Vn})},onError:An=>{var Vn;const Hn={type:fe.MEDIA_ERROR,parent:d.type,details:Z.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:d,part:p,chunkMeta:m,error:An,err:An,fatal:!1},Pn=(Vn=this.media)==null?void 0:Vn.error;if(An.code===DOMException.QUOTA_EXCEEDED_ERR||An.name=="QuotaExceededError"||"quota"in An)Hn.details=Z.BUFFER_FULL_ERROR;else if(An.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Pn)Hn.errorAction=xn(!0);else if(An.name===ms&&this.sourceBufferCount===0)Hn.errorAction=xn(!0);else{const gr=++this.appendErrors[a];this.warn(`Failed ${gr}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${Pn||"no media error"})`),(gr>=this.hls.config.appendErrorMaxRetry||Pn)&&(Hn.fatal=!0)}this.hls.trigger(g.ERROR,Hn)}};this.log(`queuing "${a}" append sn: ${F}${p?" p: "+p.index:""} of ${d.type===V.MAIN?"level":"track"} ${d.level} cc: ${ee}`),this.append(lr,a,this.isPending(this.tracks[a]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(g.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:a}=t;n?this.append(this.getFlushOp(n,r,a),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,a),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,a=[],s=r?r.elementaryStreams:n.elementaryStreams;s[de.AUDIOVIDEO]?a.push("audiovideo"):(s[de.AUDIO]&&a.push("audio"),s[de.VIDEO]&&a.push("video"));const d=()=>{const p=self.performance.now();n.stats.buffering.end=p,r&&(r.stats.buffering.end=p);const m=r?r.stats:n.stats;this.hls.trigger(g.FRAG_BUFFERED,{frag:n,part:r,stats:m,id:n.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(d,a).catch(p=>{this.warn(`Fragment buffered callback ${p}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const d=this.tracks[s];(!t.type||t.type===s)&&(d.ending=!0,d.ended||(d.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var d;return s&&!((d=this.tracks[s])!=null&&d.ended)})?r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(g.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(g.BUFFERED_TO_END,void 0)):t.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===Z.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;i(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,a=n.currentTime,s=t.levelTargetDuration,d=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(i(d)&&d>=0){const m=Math.max(d,s),v=Math.floor(a/s)*s-m;this.flushBackBuffer(a,s,v)}const p=r.frontBufferFlushThreshold;if(i(p)&&p>0){const m=Math.max(r.maxBufferLength,p),v=Math.max(m,s),_=Math.floor(a/s)*s+v;this.flushFrontBuffer(a,s,_)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,a])=>{if(a){const d=mr.getBuffered(a);if(d.length>0&&n>d.start(0)){var s;this.hls.trigger(g.BACK_BUFFER_REACHED,{bufferEnd:n});const p=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(g.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(p!=null&&p.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,a])=>{if(a){const s=mr.getBuffered(a),d=s.length;if(d<2)return;const p=s.start(d-1),m=s.end(d-1);if(n>p||e>=p&&e<=m)return;this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:p,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const m=Math.max(0,t.fragmentStart),v=Math.max(m,r);return{duration:1/0,start:m,end:v}}return{duration:1/0}}const a=(e=this.overrides)==null?void 0:e.duration;if(a)return i(a)?{duration:a}:null;const s=this.media.duration,d=i(n.duration)?n.duration:0;return r>d&&r>s||!i(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(i(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${ft(n)}`),this.tracksReady){var r;const a=(r=this.transferData)==null?void 0:r.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(g.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in e){const s=a,d=e[s];if(this.isPending(d)){const p=this.getTrackCodec(d,s),m=`${d.container};codecs=${p}`;d.codec=p,this.log(`creating sourceBuffer(${m})${this.currentOp(s)?" Queued":""} ${ft(d)}`);try{const v=n.addSourceBuffer(m),_=Ns(s),F=[s,v];t[_]=F,d.buffer=v}catch(v){var r;this.error(`error while trying to add sourceBuffer: ${v.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:s,mimeType:m,parent:d.id});return}this.trackSourceBuffer(s,d)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&st(n,"video")&&(r=Ht(r,n));const a=cn(r,e.levelCodec);return a?t.slice(0,5)==="audio"?ge(a,this.appendSource):a:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(a,s)=>{const d=s.removedRanges;d!=null&&d.length&&this.hls.trigger(g.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const a=this.currentOp(e);a&&a.onError(r)}updateTimestampOffset(e,t,n,r,a,s){const d=t-e.timestampOffset;Math.abs(d)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${a} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:a}=this,s=this.tracks[e],d=s==null?void 0:s.buffer;if(!r||!a||!d){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const p=i(r.duration)?r.duration:1/0,m=i(a.duration)?a.duration:1/0,v=Math.max(0,t),_=Math.min(n,p,m);_>v&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${v},${_}] from the ${e} SourceBuffer`),d.remove(v,_)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new ps(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const a=r.buffer;if(!a)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),a.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function es(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function Es(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}function Ns(o){return o==="audio"?1:0}class Ss{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(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.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&&i(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,a)=>this.isLevelAllowed(r)&&a<=e);return this.clientRect=null,Ss.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(d,p)=>p?d.width!==p.width||d.height!==p.height:!0;let a=e.length-1;const s=Math.max(t,n);for(let d=0;d<e.length;d+=1){const p=e[d];if((p.width>=s||p.height>=s)&&r(p,e[d+1])){a=d;break}}return a}}const ts={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},cl={HLS:"h"};class gs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof gs?n:new gs(n))),this.value=e,this.params=t}}const dl="Dict";function Ei(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 qi(o,e,t,n){return new Error(`failed to ${o} "${Ei(e)}" as ${t}`,{cause:n})}function ha(o,e,t){return qi("serialize",o,e,t)}class La{constructor(e){this.description=e}}const ns="Bare Item",_s="Boolean";function Ts(o){if(typeof o!="boolean")throw ha(o,_s);return o?"?1":"?0"}function Ga(o){return btoa(String.fromCharCode(...o))}const Ql="Byte Sequence";function Il(o){if(ArrayBuffer.isView(o)===!1)throw ha(o,Ql);return`:${Ga(o)}:`}const Yo="Integer";function vo(o){return o<-999999999999999||999999999999999<o}function Dl(o){if(vo(o))throw ha(o,Yo);return o.toString()}function Rl(o){return`@${Dl(o.getTime()/1e3)}`}function Ll(o,e){if(o<0)return-Ll(-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}const Ol="Decimal";function Jl(o){const e=Ll(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ha(o,Ol);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pl="String",Xo=/[\x00-\x1f\x7f]+/;function Ml(o){if(Xo.test(o))throw ha(o,Pl);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function ql(o){return o.description||o.toString().slice(7,-1)}const Nl="Token";function fl(o){const e=ql(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ha(e,Nl);return e}function hl(o){switch(typeof o){case"number":if(!i(o))throw ha(o,ns);return Number.isInteger(o)?Dl(o):Jl(o);case"string":return Ml(o);case"symbol":return fl(o);case"boolean":return Ts(o);case"object":if(o instanceof Date)return Rl(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof La)return fl(o);default:throw ha(o,ns)}}const eu="Key";function ml(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw ha(o,eu);return o}function Qo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${ml(e)}`:`;${ml(e)}=${hl(t)}`).join("")}function Ro(o){return o instanceof gs?`${hl(o.value)}${Qo(o.params)}`:hl(o)}function pl(o){return`(${o.value.map(Ro).join(" ")})${Qo(o.params)}`}function gl(o,e={whitespace:!0}){if(typeof o!="object"||o==null)throw ha(o,dl);const t=o instanceof Map?o.entries():Object.entries(o),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,a])=>{a instanceof gs||(a=new gs(a));let s=ml(r);return a.value===!0?s+=Qo(a.params):(s+="=",Array.isArray(a.value)?s+=pl(a):s+=Ro(a)),s}).join(`,${n}`)}function vl(o,e){return gl(o,e)}const As="CMCD-Object",Ia="CMCD-Request",no="CMCD-Session",ro="CMCD-Status",kl={br:As,ab:As,d:As,ot:As,tb:As,tpb:As,lb:As,tab:As,lab:As,url:As,pb:Ia,bl:Ia,tbl:Ia,dl:Ia,ltc:Ia,mtp:Ia,nor:Ia,nrr:Ia,rc:Ia,sn:Ia,sta:Ia,su:Ia,ttfb:Ia,ttfbb:Ia,ttlb:Ia,cmsdd:Ia,cmsds:Ia,smrt:Ia,df:Ia,cs:Ia,ts:Ia,cid:no,pr:no,sf:no,sid:no,st:no,v:no,msd:no,bs:ro,bsd:ro,cdn:ro,rtp:ro,bg:ro,pt:ro,ec:ro,e:ro},yl={REQUEST:Ia};function Bl(o){return Object.keys(o).reduce((e,t)=>{var n;return(n=o[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function bl(o,e){const t={};if(!o)return t;const n=Object.keys(o),r=e?Bl(e):{};return n.reduce((a,s)=>{var d;const p=kl[s]||r[s]||yl.REQUEST,m=(d=a[p])!==null&&d!==void 0?d:a[p]={};return m[s]=o[s],a},t)}function Fl(o){return["ot","sf","st","e","sta"].includes(o)}function tu(o){return typeof o=="number"?i(o):o!=null&&o!==""&&o!==!1}const Pi="event";function Ki(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),a=n.pathname.split("/").slice(1,-1);for(;r[0]===a[0];)r.shift(),a.shift();for(;a.length;)a.shift(),r.unshift("..");return r.join("/")+t.search+t.hash}const Ba=o=>Math.round(o),ls=(o,e)=>Array.isArray(o)?o.map(t=>ls(t,e)):o instanceof gs&&typeof o.value=="string"?new gs(ls(o.value,e),o.params):(e.baseUrl&&(o=Ki(o,e.baseUrl)),e.version===1?encodeURIComponent(o):o),Fa=o=>Ba(o/100)*100,ho={br:Ba,d:Ba,bl:Fa,dl:Fa,mtp:Fa,nor:(o,e)=>{let t=o;return e.version>=2&&(o instanceof gs&&typeof o.value=="string"?t=new gs([o]):typeof o=="string"&&(t=[o])),ls(t,e)},rtp:Fa,tb:Ba},io="request",yo="response",Oo=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],dc=["e"],fc=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function $l(o){return fc.test(o)}function hc(o){return Oo.includes(o)||dc.includes(o)||$l(o)}const Eu=["d","dl","nor","ot","rtp","su"];function mc(o){return Oo.includes(o)||Eu.includes(o)||$l(o)}const pc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function gc(o){return Oo.includes(o)||Eu.includes(o)||pc.includes(o)||$l(o)}const vc=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function yc(o){return vc.includes(o)||$l(o)}const bc={[yo]:gc,[Pi]:hc,[io]:mc};function Su(o,e={}){const t={};if(o==null||typeof o!="object")return t;const n=e.version||o.v||1,r=e.reportingMode||io,a=n===1?yc:bc[r];let s=Object.keys(o).filter(a);const d=e.filter;typeof d=="function"&&(s=s.filter(d));const p=r===yo||r===Pi;p&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const m=b({},ho,e.formatters),v={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(_=>{let F=o[_];const ee=m[_];if(typeof ee=="function"&&(F=ee(F,v)),_==="v"){if(n===1)return;F=n}_=="pr"&&F===1||(p&&_==="ts"&&!i(F)&&(F=Date.now()),tu(F)&&(Fl(_)&&typeof F=="string"&&(F=new La(F)),t[_]=F))}),t}function xc(o,e={}){const t={};if(!o)return t;const n=Su(o,e),r=bl(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((a,[s,d])=>{const p=vl(d,{whitespace:!1});return p&&(a[s]=p),a},t)}function Ec(o,e,t){return b(o,xc(e,t))}const Sc="CMCD";function _c(o,e={}){return o?vl(Su(o,e),{whitespace:!1}):""}function Cc(o,e={}){if(!o)return"";const t=_c(o,e);return encodeURIComponent(t)}function wc(o,e={}){if(!o)return"";const t=Cc(o,e);return`${Sc}=${t}`}const _u=/CMCD=[^&#]+/;function Tc(o,e,t){const n=wc(e,t);if(!n)return o;if(_u.test(o))return o.replace(_u,n);const r=o.includes("?")?"&":"?";return`${o}${r}${n}`}class Ac{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:ts.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=r=>{try{const{frag:a,part:s}=r,d=this.hls.levels[a.level],p=this.getObjectType(a),m={d:(s||a).duration*1e3,ot:p};(p===ts.VIDEO||p===ts.AUDIO||p==ts.MUXED)&&(m.br=d.bitrate/1e3,m.tb=this.getTopBandwidth(p)/1e3,m.bl=this.getBufferLength(p));const v=s?this.getNextPart(s):this.getNextFrag(a);v!=null&&v.url&&v.url!==a.url&&(m.nor=v.url),this.apply(r,m)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHED,this.onMediaDetached,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHED,this.onMediaDetached,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:cl.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){b(t,this.createData());const n=t.ot===ts.INIT||t.ot===ts.VIDEO||t.ot===ts.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,d)=>(r.includes(d)&&(s[d]=t[d]),s),{}));const a={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Ec(e.headers,t,a)):e.url=Tc(e.url,t,a)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t;const{index:n,fragment:r}=e,a=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(a){const{sn:s}=r;for(let d=a.length-1;d>=0;d--){const p=a[d];if(p.index===n&&p.fragment.sn===s)return a[d+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return ts.TIMED_TEXT;if(e.sn==="initSegment")return ts.INIT;if(t==="audio")return ts.AUDIO;if(t==="main")return this.hls.audioTracks.length?ts.VIDEO:ts.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===ts.AUDIO)n=r.audioTracks;else{const a=r.maxAutoLevel,s=a>-1?a+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(a=>{a.bitrate>t&&(t=a.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===ts.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:mr.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(a){this.loader=void 0,this.loader=new n(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,d){t(a),this.loader.load(a,s,d)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new n(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,d){t(a),this.loader.load(a,s,d)}}}}const Ic=3e5;class Dc extends X{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Yn.SendAlternateToPenaltyBox&&n.flags===vn.MoveAllAlternatesMatchingHost){const r=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:d,pathwayId:p,type:m}=t.context;d&&r?s=this.getPathwayForGroupId(d,m,s):p&&(s=p)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&r&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),n.resolved=this.pathwayId!==s),t.details===Z.BUFFER_APPEND_ERROR&&!t.fatal?n.resolved=!0:n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${ft(a)} penalized: ${ft(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(a=>{r-n[a]>Ic&&delete n[a]});for(let a=0;a<e.length;a++){const s=e[a];if(s in n)continue;if(s===this.pathwayId)return;const d=this.hls.nextLoadLevel,p=this.hls.levels[d];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,Ua(t),this.hls.trigger(g.LEVELS_UPDATED,{levels:t});const m=this.hls.levels[d];p&&m&&this.levels&&(m.attrs["STABLE-VARIANT-ID"]!==p.attrs["STABLE-VARIANT-ID"]&&m.bitrate!==p.bitrate&&this.log(`Unstable Pathways change from bitrate ${p.bitrate} to ${m.bitrate}`),this.hls.nextLoadLevel=d);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let a=0;a<r.length;a++)if(t===H.AUDIO_TRACK&&r[a].hasAudioGroup(e)||t===H.SUBTITLE_TRACK&&r[a].hasSubtitleGroup(e))return r[a].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(a=>{const{ID:s,"BASE-ID":d,"URI-REPLACEMENT":p}=a;if(t.some(v=>v.pathwayId===s))return;const m=this.getLevelsForPathway(d).map(v=>{const _=new Gr(v.attrs);_["PATHWAY-ID"]=s;const F=_.AUDIO&&`${_.AUDIO}_clone_${s}`,ee=_.SUBTITLES&&`${_.SUBTITLES}_clone_${s}`;F&&(n[_.AUDIO]=F,_.AUDIO=F),ee&&(r[_.SUBTITLES]=ee,_.SUBTITLES=ee);const ie=wu(v.uri,_["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",p),We=new ct({attrs:_,audioCodec:v.audioCodec,bitrate:v.bitrate,height:v.height,name:v.name,url:ie,videoCodec:v.videoCodec,width:v.width});if(v.audioGroups)for(let He=1;He<v.audioGroups.length;He++)We.addGroupId("audio",`${v.audioGroups[He]}_clone_${s}`);if(v.subtitleGroups)for(let He=1;He<v.subtitleGroups.length;He++)We.addGroupId("text",`${v.subtitleGroups[He]}_clone_${s}`);return We});t.push(...m),Cu(this.audioTracks,n,p,s),Cu(this.subtitleTracks,r,p,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(v){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const v=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+v)}const a={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,d=s.errorRetry||s.timeoutRetry||{},p={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:d.maxNumRetry||0,retryDelay:d.retryDelayMs||0,maxRetryDelay:d.maxRetryDelayMs||0},m={onSuccess:(v,_,F,ee)=>{this.log(`Loaded steering manifest: "${r}"`);const ie=v.data;if((ie==null?void 0:ie.VERSION)!==1){this.log(`Steering VERSION ${ie.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ie.TTL;const{"RELOAD-URI":We,"PATHWAY-CLONES":He,"PATHWAY-PRIORITY":Ot}=ie;if(We)try{this.uri=new self.URL(We,r).href}catch(Wt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${We}`);return}this.scheduleRefresh(this.uri||F.url),He&&this.clonePathways(He);const Kt={steeringManifest:ie,url:r.toString()};this.hls.trigger(g.STEERING_MANIFEST_LOADED,Kt),Ot&&this.updatePathwayPriority(Ot)},onError:(v,_,F,ee)=>{if(this.log(`Error loading steering manifest: ${v.code} ${v.text} (${_.url})`),this.stopLoad(),v.code===410){this.enabled=!1,this.log(`Steering manifest ${_.url} no longer available`);return}let ie=this.timeToLoad*1e3;if(v.code===429){const We=this.loader;if(typeof(We==null?void 0:We.getResponseHeader)=="function"){const He=We.getResponseHeader("Retry-After");He&&(ie=parseFloat(He)*1e3)}this.log(`Steering manifest ${_.url} rate limited`);return}this.scheduleRefresh(this.uri||_.url,ie)},onTimeout:(v,_,F)=>{this.log(`Timeout loading steering manifest (${_.url})`),this.scheduleRefresh(this.uri||_.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(a,p,m)}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 Cu(o,e,t,n){o&&Object.keys(e).forEach(r=>{const a=o.filter(s=>s.groupId===r).map(s=>{const d=b({},s);return d.details=void 0,d.attrs=new Gr(d.attrs),d.url=d.attrs.URI=wu(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),d.groupId=d.attrs["GROUP-ID"]=e[r],d.attrs["PATHWAY-ID"]=n,d});o.push(...a)})}function wu(o,e,t,n){const{HOST:r,PARAMS:a,[t]:s}=n;let d;e&&(d=s==null?void 0:s[e],d&&(o=d));const p=new self.URL(o);return r&&!d&&(p.host=r),a&&Object.keys(a).sort().forEach(m=>{m&&p.searchParams.set(m,a[m])}),p.href}class Jo extends X{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Jo.CDMCleanupPromise?[Jo.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,a=`"${t.type}" event: init data type: "${n}"`;if(this.debug(a),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=ua(this.config));const d=s.map(Xi).filter(p=>!!p);this.keyFormatPromise=this.getKeyFormatPromise(d)}this.keyFormatPromise.then(s=>{const d=ma(s);if(n!=="sinf"||d!==Zr.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${d}`);return}let p;try{const ee=tt(new Uint8Array(r)),ie=Pr(JSON.parse(ee).sinf),We=me(ie);if(!We)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");p=new Uint8Array(We.subarray(8,24))}catch(ee){this.warn(`${a} Failed to parse sinf: ${ee}`);return}const m=le(p),{keyIdToKeySessionPromise:v,mediaKeySessions:_}=this;let F=v[m];for(let ee=0;ee<_.length;ee++){const ie=_[ee],We=ie.decryptdata;if(!We.keyId)continue;const He=le(We.keyId);if(Fr(p,We.keyId)||We.uri.replace(/-/g,"").indexOf(m)!==-1){if(F=v[He],!F)continue;if(We.pssh)break;delete v[He],We.pssh=new Uint8Array(r),We.keyId=p,F=v[m]=F.then(()=>this.generateRequestWithPreferredKeySession(ie,n,r,"encrypted-event-key-match")),F.catch(Ot=>this.handleError(Ot));break}}F||this.handleError(new Error(`Key ID ${m} not encountered in playlist. Key-system sessions ${_.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),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(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(g.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(g.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t==null?void 0:t[e];if(r)return r.licenseUrl;if(e===Zr.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==null?void 0:t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,d,p)=>!!s&&p.indexOf(s)===d,r=t.map(s=>s.audioCodec).filter(n),a=t.map(s=>s.videoCodec).filter(n);return r.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,d)=>{const p=m=>{const v=m.shift();this.getMediaKeysPromise(v,r,a).then(_=>s({keySystem:v,mediaKeys:_})).catch(_=>{m.length?p(m):_ instanceof Is?d(_):d(new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_ACCESS,error:_,fatal:!0},_.message))})};p(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return fi===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){var r;const a=ii(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],d=(r=s)==null?void 0:r.keySystemAccess;if(!d){this.log(`Requesting encrypted media "${e}" key-system access with config: ${ft(a)}`),d=this.requestMediaKeySystemAccess(e,a);const p=s=this.keySystemAccessPromises[e]={keySystemAccess:d};return d.catch(m=>{this.log(`Failed to obtain access to key-system "${e}": ${m}`)}),d.then(m=>{this.log(`Access for key-system "${m.keySystem}" obtained`);const v=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const _=p.mediaKeys=m.createMediaKeys().then(F=>(this.log(`Media-keys created for "${e}"`),p.hasMediaKeys=!0,v.then(ee=>ee?this.setMediaKeysServerCertificate(F,e,ee):F)));return _.catch(F=>{this.error(`Failed to create media-keys for "${e}"}: ${F}`)}),_})}return d.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${le(e.keyId||[])} keyUri: ${e.uri}`);const r=n.createSession(),a={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=zl(t),a="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,a,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${le(e.decryptdata.keyId||[])}
} (data length: ${t.byteLength})`),n.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>Xi(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:n})=>this.attemptSetMediaKeys(t,n))}selectKeySystem(e){return new Promise((t,n)=>{this.getKeySystemSelectionPromise(e).then(({keySystem:r})=>{const a=Xi(r);a?t(a):n(new Error(`Unable to find format for key-system "${r}"`))}).catch(n)})}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){const t=ua(this.config),n=e.map(ma).filter(r=>!!r&&t.indexOf(r)!==-1);return this.selectKeySystem(n)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const r=Rc(e,t[n]);if(r)return r}}loadKey(e){const t=e.keyInfo.decryptdata,n=zl(t),r=this.bannedKeyIds[n];if(r||this.getKeyStatus(t)==="internal-error"){const d=Tu(r||"internal-error",t);return this.handleError(d,e.frag),Promise.reject(d)}const a=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${a}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const d=this.getKeySystemForKeyPromise(t).then(({keySystem:p,mediaKeys:m})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${a}`),this.attemptSetMediaKeys(p,m).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:p,mediaKeys:m,decryptdata:t}))))).then(p=>{const m="cenc",v=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(p,m,v,"playlist-key")});return d.catch(p=>this.handleError(p,e.frag)),this.keyIdToKeySessionPromise[n]=d,d}return s.catch(d=>{if(d instanceof Is){const p=T({},d.data);this.getKeyStatus(t)==="internal-error"&&(p.decryptdata=t);const m=new Is(p,d.message);this.handleError(m,e.frag)}}),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Is){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${le(n.keyId||[])})`:""}`),this.hls.trigger(g.ERROR,e.data)}else this.error(e.message),this.hls.trigger(g.ERROR,{type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=zl(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=ma(e.keyFormat),a=r?[r]:ua(this.config);return this.attemptKeySystemAccess(a)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=ua(this.config)),e.length===0)throw new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${ft({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>this.media?this.media.setMediaKeys(t):new Promise((a,s)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return s(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(a).catch(s)}}));return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>n.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var a;const s=(a=this.config.drmSystems)==null||(a=a[e.keySystem])==null?void 0:a.generateRequest;if(s)try{const ie=s.call(this.hls,t,n,e);if(!ie)throw new Error("Invalid response from configured generateRequest filter");t=ie.initDataType,n=ie.initData?ie.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(ie){if(this.warn(ie.message),this.hls&&this.hls.config.debug)throw ie}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const d=zl(e.decryptdata),p=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${d} URI: ${p} (init data type: ${t} length: ${n.byteLength})`);const m=new xo,v=e._onmessage=ie=>{const We=e.mediaKeysSession;if(!We){m.emit("error",new Error("invalid state"));return}const{messageType:He,message:Ot}=ie;this.log(`"${He}" message event for session "${We.sessionId}" message size: ${Ot.byteLength}`),He==="license-request"||He==="license-renewal"?this.renewLicense(e,Ot).catch(Kt=>{m.eventNames().length?m.emit("error",Kt):this.handleError(Kt)}):He==="license-release"?e.keySystem===Zr.FAIRPLAY&&this.updateKeySession(e,Wr("acknowledged")).then(()=>this.removeSession(e)).catch(Kt=>this.handleError(Kt)):this.warn(`unhandled media key message type "${He}"`)},_=(ie,We)=>{We.keyStatus=ie;let He;ie.startsWith("usable")?m.emit("resolved"):ie==="internal-error"||ie==="output-restricted"||ie==="output-downscaled"?He=Tu(ie,We.decryptdata):ie==="expired"?He=new Error(`key expired (keyId: ${d})`):ie==="released"?He=new Error("key released"):ie==="status-pending"||this.warn(`unhandled key status change "${ie}" (keyId: ${d})`),He&&(m.eventNames().length?m.emit("error",He):this.handleError(He))},F=e._onkeystatuseschange=ie=>{if(!e.mediaKeysSession){m.emit("error",new Error("invalid state"));return}const He=this.getKeyStatuses(e);if(!Object.keys(He).some(gn=>He[gn]!=="status-pending"))return;if(He[d]==="expired"){this.log(`Expired key ${ft(He)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let Kt=He[d];if(Kt)_(Kt,e);else{var Wt;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(Wt=e.keyStatusTimeouts)[d]||(Wt[d]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const wn=this.getKeyStatus(e.decryptdata);if(wn&&wn!=="status-pending")return this.log(`No status for keyId ${d} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${wn} from other session.`),_(wn,e);this.log(`key status for ${d} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),Kt="internal-error",_(Kt,e)},1e3)),this.log(`No status for keyId ${d} (${ft(He)}).`)}};Ka(e.mediaKeysSession,"message",v),Ka(e.mediaKeysSession,"keystatuseschange",F);const ee=new Promise((ie,We)=>{m.on("error",We),m.on("resolved",ie)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${d} URI: ${p}`)}).catch(ie=>{throw new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_NO_SESSION,error:ie,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${ie}`)}).then(()=>ee).catch(ie=>(m.removeAllListeners(),this.removeSession(e).then(()=>{throw ie}))).then(()=>(m.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((n,r)=>{if(typeof r=="string"&&typeof n=="object"){const d=r;r=n,n=d}const a="buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);if(e.keySystem===Zr.PLAYREADY&&a.length===16){const d=le(a);t[d]=n,xr(a)}const s=le(a);n==="internal-error"&&(this.bannedKeyIds[s]=n),this.log(`key status change "${n}" for keyStatuses keyId: ${s} key-session "${e.mediaKeysSession.sessionId}"`),t[s]=n}),t}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),a=this.getServerCertificateUrl(e);return a?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,d)=>{const p={responseType:"arraybuffer",url:a},m=t.certLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(F,ee,ie,We)=>{s(F.data)},onError:(F,ee,ie,We)=>{d(new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:T({url:p.url,data:void 0},F)},`"${e}" certificate request failed (${a}). Status: ${F.code} (${F.text})`))},onTimeout:(F,ee,ie)=>{d(new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:{url:p.url,data:void 0}},`"${e}" certificate request timed out (${a})`))},onAbort:(F,ee,ie)=>{d(new Error("aborted"))}};r.load(p,v,_)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,a)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)}).catch(s=>{a(new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:r,fatal:!1},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"),a=r.querySelectorAll("HttpHeader");if(a.length>0){let v;for(let _=0,F=a.length;_<F;_++){var s,d;v=a[_];const ee=(s=v.querySelector("name"))==null?void 0:s.textContent,ie=(d=v.querySelector("value"))==null?void 0:d.textContent;ee&&ie&&e.setRequestHeader(ee,ie)}}const p=r.querySelector("Challenge"),m=p==null?void 0:p.textContent;if(!m)throw new Error("Cannot find <Challenge> in key message");return Wr(atob(m))}setupLicenseXHR(e,t,n,r){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return a.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),a.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,a)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const d=new XMLHttpRequest;d.responseType="arraybuffer",d.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return a(new Error("invalid state"));if(d.readyState===4)if(d.status===200){this._requestLicenseFailureCount=0;let p=d.response;this.log(`License received ${p instanceof ArrayBuffer?p.byteLength:p}`);const m=this.config.licenseResponseCallback;if(m)try{p=m.call(this.hls,d,s,e)}catch(v){this.error(v)}r(p)}else{const p=n.errorRetry,m=p?p.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>m||d.status>=400&&d.status<500)a(new Is({type:fe.KEY_SYSTEM_ERROR,details:Z.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:d,response:{url:s,data:void 0,code:d.status,text:d.statusText}},`License Request XHR failed (${s}). Status: ${d.status} (${d.statusText})`));else{const v=m-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${v} attempts left`),this.requestLicense(e,t).then(r,a)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=d,this.setupLicenseXHR(d,s,e,t).then(({xhr:p,licenseChallenge:m})=>{e.keySystem==Zr.PLAYREADY&&(m=this.unpackPlayReadyKeyMessage(p,m)),p.send(m)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ka(n,"encrypted",this.onMediaEncrypted),Ka(n,"waitingforkey",this.onWaitingForKey);const r=this.mediaResolved;r?r():this.mediaKeys=n.mediaKeys}onMediaDetached(){const e=this.media;e&&(Qa(e,"encrypted",this.onMediaEncrypted),Qa(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={};const t=this.mediaResolved;if(t&&t(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Sa.clearKeyUriToKeyIdMap();const a=r.length;Jo.CDMCleanupPromise=Promise.all(r.map(s=>this.removeSession(s)).concat((n==null||(e=n.setMediaKeys(null))==null?void 0:e.catch(s=>{this.log(`Could not clear media keys: ${s}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${s}`)})}))||Promise.resolve())).catch(s=>{this.log(`Could not close sessions and clear media keys: ${s}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${s}`)})}).then(()=>{a&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear()}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,a)=>(r.indexOf(a.keyFormat)===-1&&r.push(a.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n,decryptdata:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${le((r==null?void 0:r.keyId)||[])}`),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 a=this.mediaKeySessions.indexOf(e);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(m=>self.clearTimeout(s[m]));const{drmSystemOptions:d}=this.config;return(Li(d)?new Promise((m,v)=>{self.setTimeout(()=>v(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(m).catch(v)}):Promise.resolve()).catch(m=>{this.log(`Could not remove session: ${m}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${m}`)})}).then(()=>t.close()).catch(m=>{this.log(`Could not close session: ${m}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${m}`)})})}return Promise.resolve()}}Jo.CDMCleanupPromise=void 0;function zl(o){if(!o)throw new Error("Could not read keyId of undefined decryptdata");if(o.keyId===null)throw new Error("keyId is null");return le(o.keyId)}function Rc(o,e){if(o.keyId&&e.mediaKeysSession.keyStatuses.has(o.keyId))return e.mediaKeysSession.keyStatuses.get(o.keyId);if(o.matches(e.decryptdata))return e.keyStatus}class Is 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}}function Tu(o,e){const t=o==="output-restricted",n=t?Z.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Z.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Is({type:fe.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${o}"`)}class Lc{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(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(g.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const a=r-this.lastTime,s=n-this.lastDroppedFrames,d=t-this.lastDecodedFrames,p=1e3*s/a,m=this.hls;if(m.trigger(g.FPS_DROP,{currentDropped:s,currentDecoded:d,totalDroppedFrames:n}),p>0&&s>m.config.fpsDroppedMonitoringThreshold*d){let v=m.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+v),v>0&&(m.autoLevelCapping===-1||m.autoLevelCapping>=v)&&(v=v-1,m.trigger(g.FPS_DROP_LEVEL_CAPPING,{level:v,droppedLevel:m.currentLevel}),m.autoLevelCapping=v,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Au(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 Iu(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){pe.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){pe.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(o.mode=t)}function qo(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues)for(let n=o.cues.length;n--;)e&&o.cues[n].removeEventListener("enter",e),o.removeCue(o.cues[n]);t==="disabled"&&(o.mode=t)}function nu(o,e,t,n){const r=o.mode;if(r==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const a=Pc(o.cues,e,t);for(let s=0;s<a.length;s++)(!n||n(a[s]))&&o.removeCue(a[s])}r==="disabled"&&(o.mode=r)}function Oc(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,a;for(;n<=r;)if(a=Math.floor((r+n)/2),e<o[a].startTime)r=a-1;else if(e>o[a].startTime&&n<t)n=a+1;else return a;return o[n].startTime-e<e-o[r].startTime?n:r}function Pc(o,e,t){const n=[],r=Oc(o,e);if(r>-1)for(let a=r,s=o.length;a<s;a++){const d=o[a];if(d.startTime>=e&&d.endTime<=t)n.push(d);else if(d.startTime>t)return n}return n}function Zl(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}class Mc extends wa{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=Zl(this.media.textTracks);for(let a=0;a<n.length;a++)if(n[a].mode==="hidden")t=n[a];else if(n[a].mode==="showing"){t=n[a];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(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;Zl(n.textTracks).forEach(s=>{qo(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:a}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const d=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${a.startSN}-${a.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,d)}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 a=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(v=>!n||n.indexOf(v.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(v=>v.default)&&(this.selectDefaultTrack=!1),s.forEach((v,_)=>{v.id=_});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const d=this.hls.config.subtitlePreference;if(!a&&d){this.selectDefaultTrack=!1;const v=nn(d,s);if(v>-1)a=s[v];else{const _=nn(d,this.tracks);a=this.tracks[_]}}let p=this.findTrackId(a);p===-1&&a&&(p=this.findTrackId(null));const m={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(g.SUBTITLE_TRACKS_UPDATED,m),p!==-1&&this.trackId===-1&&this.setSubtitleTrack(p)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const a=t[r];if(!(n&&!a.default||!n&&!e)&&(!e||mn(a,e)))return r}if(e){for(let r=0;r<t.length;r++){const a=t[r];if(xs(e.attrs,a.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const a=t[r];if(xs(e.attrs,a.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(fo(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===H.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&mn(e,n))return n;const r=nn(e,this.tracksInGroup);if(r>-1){const a=this.tracksInGroup[r];return this.setSubtitleTrack(r),a}else{if(n)return null;{const a=nn(e,t);if(a>-1)return t[a]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,a=this.getUrlWithDirectives(e.url,t),s=e.details,d=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${a}`),this.hls.trigger(g.SUBTITLE_TRACK_LOADING,{url:a,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Zl(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(a=>fo(n,a))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(a=>{a.mode!=="disabled"&&a!==r&&(a.mode="disabled")}),r){const a=this.subtitleDisplay?"showing":"hidden";r.mode!==a&&(r.mode=a)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!i(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:e});return}const a=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&a)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:d="",name:p,type:m,url:v}=r;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:s,groupId:d,name:p,type:m,url:v});const _=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(_)}}function Nc(){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 a=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?a:a&3|8).toString(16)})}}}function xl(o){let e=5381,t=o.length;for(;t;)e=e*33^o.charCodeAt(--t);return(e>>>0).toString()}const el=.025;let jl=function(o){return o[o.Point=0]="Point",o[o.Range=1]="Range",o}({});function kc(o,e,t){return`${o.identifier}-${t+1}-${xl(e)}`}class Bc{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;return e<=0||isNaN(n)?!1:n===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return ru(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=ru(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=i(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return ru(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<el))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?jl.Range:jl.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Fc(this)}}function ru(o,e){return o-e.start<e.duration/2&&!(Math.abs(o-(e.start+e.duration))<el)?e.start:e.start+e.duration}function Du(o,e,t){const n=new self.URL(o,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function iu(o,e){for(;(t=o.assetList[++e])!=null&&t.error;)var t;return e}function Fc(o){return`["${o.identifier}" ${o.cue.pre?"<pre>":o.cue.post?"<post>":""}${o.timelineStart.toFixed(2)}-${o.resumeTime.toFixed(2)}]`}function tl(o){const e=o.timelineStart,t=o.duration||0;return`["${o.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class $c{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(g.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};a.once(g.LEVEL_LOADED,s),a.once(g.AUDIO_TRACK_LOADED,s),a.once(g.SUBTITLE_TRACK_LOADED,s),a.on(g.MEDIA_ATTACHING,(d,{media:p})=>{this.removeMediaListeners(),this.mediaAttached=p,this.interstitial.playoutLimit&&(p.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(g.BUFFER_APPENDED,()=>{const v=this.bufferedEnd;this.reachedPlayout(v)&&(this._bufferedEosTime=v,a.trigger(g.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=Du(t,e.config.primarySessionId||"").href}catch(n){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),r=this.timelineOffset,a=mr.bufferInfo(e,r,0);return this.getAssetTime(a.end)>=n-.02}reachedPlayout(e){const n=this.interstitial.playoutLimit;return this.startOffset+e>=n}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=mr.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=n=>delete n.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;(r=this.hls)==null||r.on(e,t)}once(e,t,n){var r;(r=this.hls)==null||r.once(e,t)}off(e,t,n){var r;(r=this.hls)==null||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${tl(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Ru=.033;class zc extends X{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(a=r[n])!=null&&a.event;){var a;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let a=n[r];if(t&&t!=="primary"&&(a=a[t]),e===a.start||e>a.start&&e<a.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const a=n[r].event;if(a!=null&&a.restrictions.jump&&!a.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let a=0;a<r;a++){const s=n[a];if(!s.error){const d=s.timelineStart;if(t===d||t>d&&(t<d+(s.duration||0)||a===r-1))return a}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const n=t.assetList,r=n[n.length-1];if(r)return r.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,a=this.events,s=this.parseDateRanges(r,{url:n.url},t),d=Object.keys(r),p=a?a.filter(m=>!d.includes(m.identifier)):[];s.length&&s.sort((m,v)=>{const _=m.cue.pre,F=m.cue.post,ee=v.cue.pre,ie=v.cue.post;if(_&&!ee)return-1;if(ee&&!_||F&&!ie)return 1;if(ie&&!F)return-1;if(!_&&!ee&&!F&&!ie){const We=m.startTime,He=v.startTime;if(We!==He)return We-He}return m.dateRange.tagOrder-v.dateRange.tagOrder}),this.events=s,p.forEach(m=>{this.removeEvent(m)}),this.updateSchedule(e,p)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const a=this.items,s=this.parseSchedule(r,e);(n||t.length||(a==null?void 0:a.length)!==s.length||s.some((p,m)=>Math.abs(p.playout.start-a[m].playout.start)>.005||Math.abs(p.playout.end-a[m].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,a))}}parseDateRanges(e,t,n){const r=[],a=Object.keys(e);for(let s=0;s<a.length;s++){const d=a[s],p=e[d];if(p.isInterstitial){let m=this.eventMap[d];m?m.setDateRange(p):(m=new Bc(p,t),this.eventMap[d]=m,n===!1&&(m.appendInPlace=n)),r.push(m)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,a=r.live?1/0:r.edge;let s=0;if(e=e.filter(p=>!p.error&&!(p.cue.once&&p.hasPlayed)),e.length){this.resolveOffsets(e,t);let p=0,m=0;if(e.forEach((v,_)=>{const F=v.cue.pre,ee=v.cue.post,ie=e[_-1]||null,We=v.appendInPlace,He=ee?a:v.startOffset,Ot=v.duration,Kt=v.timelineOccupancy===jl.Range?Ot:0,Wt=v.resumptionOffset,gn=(ie==null?void 0:ie.startTime)===He,wn=He+v.cumulativeDuration;let lr=We?wn+Ot:He+Wt;if(F||!ee&&He<=0){const Vn=m;m+=Kt,v.timelineStart=wn;const Hn=s;s+=Ot,n.push({event:v,start:wn,end:lr,playout:{start:Hn,end:s},integrated:{start:Vn,end:m}})}else if(He<=a){if(!gn){const Pn=He-p;if(Pn>Ru){const gr=p,Hr=m;m+=Pn;const si=s;s+=Pn;const pi={previousEvent:e[_-1]||null,nextEvent:v,start:gr,end:gr+Pn,playout:{start:si,end:s},integrated:{start:Hr,end:m}};n.push(pi)}else Pn>0&&ie&&(ie.cumulativeDuration+=Pn,n[n.length-1].end=He)}ee&&(lr=wn),v.timelineStart=wn;const Vn=m;m+=Kt;const Hn=s;s+=Ot,n.push({event:v,start:wn,end:lr,playout:{start:Hn,end:s},integrated:{start:Vn,end:m}})}else return;const An=v.resumeTime;ee||An>a?p=a:p=An}),p<a){var d;const v=p,_=m,F=a-p;m+=F;const ee=s;s+=F,n.push({previousEvent:((d=n[n.length-1])==null?void 0:d.event)||null,nextEvent:null,start:p,end:v+F,playout:{start:ee,end:s},integrated:{start:_,end:m}})}this.setDurations(a,s,m)}else n.push({previousEvent:null,nextEvent:null,start:0,end:a,playout:{start:0,end:a},integrated:{start:0,end:a}}),this.setDurations(a,a,a);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let a=0,s=-1;e.forEach((d,p)=>{const m=d.cue.pre,v=d.cue.post,_=m?0:v?r:d.startTime;this.updateAssetDurations(d),s===_?d.cumulativeDuration=a:(a=0,s=_),!v&&d.snapOptions.in&&(d.resumeAnchor=Xn(null,n.fragments,d.startOffset+d.resumptionOffset,0,0)||void 0),d.appendInPlace&&!d.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(d,t)||(d.appendInPlace=!1)),!d.appendInPlace&&p+1<e.length&&e[p+1].startTime-e[p].resumeTime<Ru&&(e[p+1].appendInPlace=!1,e[p+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${d}`));const ee=i(d.resumeOffset)?d.resumeOffset:d.duration;a+=ee})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>el?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):!Object.keys(t).some(s=>{const d=t[s].details,p=d.edge;if(n>=p)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${p}`),!1;const m=Xn(null,d.fragments,n);if(!m)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${d.fragStart}-${d.fragmentEnd})`),!0;const v=s==="audio"?.175:0;return Math.abs(m.start-n)<el+v||Math.abs(m.end-n)<el+v?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${m.start}-${m.end} sn: ${m.sn} cc: ${m.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,a=!1;for(let s=0;s<e.assetList.length;s++){const d=e.assetList[s],p=t+n;d.startOffset=n,d.timelineStart=p,r||(r=d.duration===null),a||(a=!!d.error);const m=d.error?0:d.duration||0;n+=m}r&&!a?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Us(o){return`[${o.event?'"'+o.event.identifier+'"':"primary"}: ${o.start.toFixed(2)}-${o.end.toFixed(2)}]`}class Zc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Du(n,this.hls.sessionId,e.baseUrl)}catch(F){const ee=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_ERROR,F,n);this.hls.trigger(g.ERROR,ee);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const a=this.hls.config,s=a.loader,d=new s(a),p={responseType:"json",url:r.href},m=a.interstitialAssetListLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(F,ee,ie,We)=>{const He=F.data,Ot=He==null?void 0:He.ASSETS;if(!Array.isArray(Ot)){const Kt=this.assignAssetListError(e,Z.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),ie.url,ee,We);this.hls.trigger(g.ERROR,Kt);return}e.assetListResponse=He,this.hls.trigger(g.ASSET_LIST_LOADED,{event:e,assetListResponse:He,networkDetails:We})},onError:(F,ee,ie,We)=>{const He=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${F.code} ${F.text} (${ee.url})`),ee.url,We,ie);this.hls.trigger(g.ERROR,He)},onTimeout:(F,ee,ie)=>{const We=this.assignAssetListError(e,Z.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${ee.url})`),ee.url,F,ie);this.hls.trigger(g.ERROR,We)}};return d.load(p,v,_),this.hls.trigger(g.ASSET_LIST_LOADING,{event:e}),d}assignAssetListError(e,t,n,r,a,s){return e.error=n,{type:fe.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:a}}}function Lu(o){var e;o==null||(e=o.play())==null||e.catch(()=>{})}function Ul(o,e){return`[${o}] Advancing timeline position to ${e}`}class jc extends X{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled||!this.schedule)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const d=this.playingItem;if(!d){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(!0),this.checkBuffer(),s&&n<d.start||n>=d.end){var p;const ee=this.findItemIndex(d);let ie=this.schedule.findItemIndexAtTime(n);if(ie===-1&&(ie=ee+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${ee} to ${ie})`)),!this.isInterstitial(d)&&(p=this.media)!=null&&p.paused&&(this.shouldPlay=!1),!s&&ie>ee){const We=this.schedule.findJumpRestrictedIndex(ee+1,ie);if(We>ee){this.setSchedulePosition(We);return}}this.setSchedulePosition(ie);return}const m=this.playingAsset;if(!m){if(this.playingLastItem&&this.isInterstitial(d)){const ee=d.event.assetList[0];ee&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,ee))}return}const v=m.timelineStart,_=m.duration||0;if(s&&n<v||n>=v+_){var F;(F=d.event)!=null&&F.appendInPlace&&(this.clearAssetPlayers(d.event,d),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,m)}},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const d=this.findItemIndex(r);this.setSchedulePosition(d+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,a)},this.onScheduleUpdate=(n,r)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,d=a.events||[],p=a.items||[],m=a.durations,v=n.map(We=>We.identifier),_=!!(d.length||v.length);(_||r)&&this.log(`INTERSTITIALS_UPDATED (${d.length}): ${d}
Schedule: ${p.map(We=>Us(We))} pos: ${this.timelinePos}`),v.length&&this.log(`Removed events ${v}`);let F=null,ee=null;s&&(F=this.updateItem(s,this.timelinePos),this.itemsMatch(s,F)?this.playingItem=F:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const ie=this.bufferingItem;if(ie&&(ee=this.updateItem(ie,this.bufferedPos),this.itemsMatch(ie,ee)?this.bufferingItem=ee:ie.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(ie.event,null))),n.forEach(We=>{We.assetList.forEach(He=>{this.clearAssetPlayer(He.identifier,null)})}),this.playerQueue.forEach(We=>{if(We.interstitial.appendInPlace){const He=We.assetItem.timelineStart,Ot=We.timelineOffset-He;if(Ot)try{We.timelineOffset=He}catch(Kt){Math.abs(Ot)>el&&this.warn(`${Kt} ("${We.assetId}" ${We.timelineOffset}->${He})`)}}}),_||r){if(this.hls.trigger(g.INTERSTITIALS_UPDATED,{events:d.slice(0),schedule:p.slice(0),durations:m,removedIds:v}),this.isInterstitial(s)&&v.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(F,s),ie&&ee!==F&&this.trimInPlace(ee,ie),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Zc(e),this.schedule=new zc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(g.MEDIA_ENDED,this.onMediaEnded,this),e.on(g.ERROR,this.onError,this),e.on(g.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(g.MEDIA_ENDED,this.onMediaEnded,this),e.off(g.ERROR,this.onError,this),e.off(g.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Qa(e,"play",this.onPlay),Qa(e,"pause",this.onPause),Qa(e,"seeking",this.onSeeking),Qa(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ka(n,"seeking",this.onSeeking),Ka(n,"timeupdate",this.onTimeupdate),Ka(n,"play",this.onPlay),Ka(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const a=this.findItemIndex(n);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=_=>_&&e.getAssetPlayer(_.identifier),r=(_,F,ee,ie,We)=>{if(_){let He=_[F].start;const Ot=_.event;if(Ot){if(F==="playout"||Ot.timelineOccupancy!==jl.Point){const Kt=n(ee);(Kt==null?void 0:Kt.interstitial)===Ot&&(He+=Kt.assetItem.startOffset+Kt[We])}}else{const Kt=ie==="bufferedPos"?s():e[ie];He+=Kt-_.start}return He}return 0},a=(_,F)=>{var ee;if(_!==0&&F!=="primary"&&(ee=e.schedule)!=null&&ee.length){var ie;const We=e.schedule.findItemIndexAtTime(_),He=(ie=e.schedule.items)==null?void 0:ie[We];if(He){const Ot=He[F].start-He.start;return _+Ot}}return _},s=()=>{const _=e.bufferedPos;return _===Number.MAX_VALUE?d("primary"):Math.max(_,0)},d=_=>{var F,ee;return(F=e.primaryDetails)!=null&&F.live?e.primaryDetails.edge:((ee=e.schedule)==null?void 0:ee.durations[_])||0},p=(_,F)=>{var ee,ie;const We=e.effectivePlayingItem;if(We!=null&&(ee=We.event)!=null&&ee.restrictions.skip||!e.schedule)return;e.log(`seek to ${_} "${F}"`);const He=e.effectivePlayingItem,Ot=e.schedule.findItemIndexAtTime(_,F),Kt=(ie=e.schedule.items)==null?void 0:ie[Ot],Wt=e.getBufferingPlayer(),gn=Wt==null?void 0:Wt.interstitial,wn=gn==null?void 0:gn.appendInPlace,lr=He&&e.itemsMatch(He,Kt);if(He&&(wn||lr)){const An=n(e.playingAsset),Vn=(An==null?void 0:An.media)||e.primaryMedia;if(Vn){const Hn=F==="primary"?Vn.currentTime:r(He,F,e.playingAsset,"timelinePos","currentTime"),Pn=_-Hn,gr=(wn?Hn:Vn.currentTime)+Pn;if(gr>=0&&(!An||wn||gr<=An.duration)){Vn.currentTime=gr;return}}}if(Kt){let An=_;if(F!=="primary"){const Hn=Kt[F].start,Pn=_-Hn;An=Kt.start+Pn}const Vn=!e.isInterstitial(Kt);if((!e.isInterstitial(He)||He.event.appendInPlace)&&(Vn||Kt.event.appendInPlace)){const Hn=e.media||(wn?Wt==null?void 0:Wt.media:null);Hn&&(Hn.currentTime=An)}else if(He){const Hn=e.findItemIndex(He);if(Ot>Hn){const gr=e.schedule.findJumpRestrictedIndex(Hn+1,Ot);if(gr>Hn){e.setSchedulePosition(gr);return}}let Pn=0;if(Vn)e.timelinePos=An,e.checkBuffer();else{const gr=Kt.event.assetList,Hr=_-(Kt[F]||Kt).start;for(let si=gr.length;si--;){const pi=gr[si];if(pi.duration&&Hr>=pi.startOffset&&Hr<pi.startOffset+pi.duration){Pn=si;break}}}e.setSchedulePosition(Ot,Pn)}}},m=()=>{const _=e.effectivePlayingItem;if(e.isInterstitial(_))return _;const F=t();return e.isInterstitial(F)?F:null},v={get bufferedEnd(){const _=t(),F=e.bufferingItem;if(F&&F===_){var ee;return r(F,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-F.playout.start||((ee=e.bufferingAsset)==null?void 0:ee.startOffset)||0}return 0},get currentTime(){const _=m(),F=e.effectivePlayingItem;return F&&F===_?r(F,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-F.playout.start:0},set currentTime(_){const F=m(),ee=e.effectivePlayingItem;ee&&ee===F&&p(_+ee.playout.start,"playout")},get duration(){const _=m();return _?_.playout.end-_.playout.start:0},get assetPlayers(){var _;const F=(_=m())==null?void 0:_.event.assetList;return F?F.map(ee=>e.getAssetPlayer(ee.identifier)):[]},get playingIndex(){var _;const F=(_=m())==null?void 0:_.event;return F&&e.effectivePlayingAsset?F.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return m()}};return this.manager={get events(){var _;return((_=e.schedule)==null||(_=_.events)==null?void 0:_.slice(0))||[]},get schedule(){var _;return((_=e.schedule)==null||(_=_.items)==null?void 0:_.slice(0))||[]},get interstitialPlayer(){return m()?v:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const _=t();return e.findItemIndex(_)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const _=e.effectivePlayingItem;return e.findItemIndex(_)},primary:{get bufferedEnd(){return s()},get currentTime(){const _=e.timelinePos;return _>0?_:0},set currentTime(_){p(_,"primary")},get duration(){return d("primary")},get seekableStart(){var _;return((_=e.primaryDetails)==null?void 0:_.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(_){p(_,"integrated")},get duration(){return d("integrated")},get seekableStart(){var _;return a(((_=e.primaryDetails)==null?void 0:_.fragmentStart)||0,"integrated")}},skip:()=>{const _=e.effectivePlayingItem,F=_==null?void 0:_.event;if(F&&!F.restrictions.skip){const ee=e.findItemIndex(_);if(F.appendInPlace){const ie=_.playout.start+_.event.duration;p(ie+.001,"playout")}else e.advanceAfterAssetEnded(F,ee,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(r=this.primaryMedia);const a=(t=r)==null?void 0:t.currentTime;if(!(a===void 0||!i(a)))return a}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const a=e.transferMedia();this.log(`transfer MediaSource from ${e} ${ft(a)}`),this.detachedData=a}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let a=null;const s=this.hls,d=e!==s,p=d&&e.interstitial.appendInPlace,m=(n=this.detachedData)==null?void 0:n.mediaSource;let v;if(s.media)p&&(a=s.transferMedia(),this.detachedData=a),v="Primary";else if(m){const ie=this.getBufferingPlayer();ie?(a=ie.transferMedia(),v=`${ie}`):v="detached MediaSource"}else v="detached media";if(!a){if(m)a=this.detachedData,this.log(`using detachedData: MediaSource ${ft(a)}`);else if(!this.detachedData||s.media===t){const ie=this.playerQueue;ie.length>1&&ie.forEach(We=>{if(d&&We.interstitial.appendInPlace!==p){const He=We.interstitial;this.clearInterstitial(We.interstitial,null),He.appendInPlace=!1,He.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${He}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const _=a&&"mediaSource"in a&&((r=a.mediaSource)==null?void 0:r.readyState)!=="closed",F=_&&a?a:t;this.log(`${_?"transfering MediaSource":"attaching media"} to ${d?e:"Primary"} from ${v} (media.currentTime: ${t.currentTime})`);const ee=this.schedule;if(F===a&&ee){const ie=d&&e.assetId===ee.assetIdAtEnd;F.overrides={duration:ee.duration,endOfStream:!d||ie,cueRemoval:!d}}e.attachMedia(F)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0:e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const a=this.hls.startPosition;if(this.log(Ul("checkStart",a)),this.timelinePos=a,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,d=e.findItemIndexAtTime(s);this.setSchedulePosition(d)}}else if(r&&!this.playingItem){const a=e.findItemIndex(r);this.setSchedulePosition(a)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),a=iu(n,r);if(!n.isAssetPastPlayoutLimit(a))this.bufferedToEvent(e,a);else if(this.schedule){var s;const d=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];d&&this.bufferedToItem(d)}}advanceAfterAssetEnded(e,t,n){const r=iu(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const a=this.schedule.items;if(a){const s=t+1,d=a.length;if(s>=d){this.setSchedulePosition(-1);return}const p=e.resumeTime;this.timelinePos<p&&(this.log(Ul("advanceAfterAssetEnded",p)),this.timelinePos=p,e.appendInPlace&&this.advanceInPlace(p),this.checkBuffer(this.bufferedPos<p)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const a=e.assetList[r];a&&this.advanceInPlace(a.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,a=n.getEvent(r);if(a){const s=n.findEventIndex(r),d=n.findAssetIndex(a,e);this.advanceAfterAssetEnded(a,s,d-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const a=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${a&&Us(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,d=this.playingLastItem;if(this.isInterstitial(s)){const v=s.event,_=this.playingAsset,F=_==null?void 0:_.identifier,ee=F?this.getAssetPlayer(F):null;if(ee&&F&&(!this.eventItemsMatch(s,a)||t!==void 0&&F!==v.assetList[t].identifier)){var p;const ie=v.findAssetIndex(_);if(this.log(`INTERSTITIAL_ASSET_ENDED ${ie+1}/${v.assetList.length} ${tl(_)}`),this.endedAsset=_,this.playingAsset=null,this.hls.trigger(g.INTERSTITIAL_ASSET_ENDED,{asset:_,assetListIndex:ie,event:v,schedule:r.slice(0),scheduleIndex:e,player:ee}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(v,this.findItemIndex(this.playingItem),ie);return}this.retreiveMediaSource(F,a),ee.media&&!((p=this.detachedData)!=null&&p.mediaSource)&&ee.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${v} ${Us(s)}`),v.hasPlayed=!0,this.hls.trigger(g.INTERSTITIAL_ENDED,{event:v,schedule:r.slice(0),scheduleIndex:e}),v.cue.once)){var m;this.updateSchedule();const ie=(m=this.schedule)==null?void 0:m.items;if(a&&ie){const We=this.findItemIndex(a);this.advanceSchedule(We,ie,t,s,d)}return}}this.advanceSchedule(e,r,t,s,d)}advanceSchedule(e,t,n,r,a){const s=this.schedule;if(!s)return;const d=t[e]||null,p=this.primaryMedia,m=this.playerQueue;if(m.length&&m.forEach(v=>{const _=v.interstitial,F=s.findEventIndex(_.identifier);(F<e||F>e+1)&&this.clearInterstitial(_,d)}),this.isInterstitial(d)){this.timelinePos=Math.min(Math.max(this.timelinePos,d.start),d.end);const v=d.event;if(n===void 0){n=s.findAssetIndex(v,this.timelinePos);const ie=iu(v,n-1);if(v.isAssetPastPlayoutLimit(ie)||v.appendInPlace&&this.timelinePos===d.end){this.advanceAfterAssetEnded(v,e,n);return}n=ie}const _=this.waitingItem;this.assetsBuffered(d,p)||this.setBufferingItem(d);let F=this.preloadAssets(v,n);if(this.eventItemsMatch(d,_||r)||(this.waitingItem=d,this.log(`INTERSTITIAL_STARTED ${Us(d)} ${v.appendInPlace?"append in place":""}`),this.hls.trigger(g.INTERSTITIAL_STARTED,{event:v,schedule:t.slice(0),scheduleIndex:e})),!v.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${v}`);return}if(v.assetListLoader&&(v.assetListLoader.destroy(),v.assetListLoader=void 0),!p){this.log(`Waiting for attachMedia to start Interstitial ${v}`);return}this.waitingItem=this.endedItem=null,this.playingItem=d;const ee=v.assetList[n];if(!ee){this.advanceAfterAssetEnded(v,e,n||0);return}if(F||(F=this.getAssetPlayer(ee.identifier)),F===null||F.destroyed){const ie=v.assetList.length;this.warn(`asset ${n+1}/${ie} player destroyed ${v}`),F=this.createAssetPlayer(v,ee,n),F.loadSource()}if(!this.eventItemsMatch(d,this.bufferingItem)&&v.appendInPlace&&this.isAssetBuffered(ee))return;this.startAssetPlayer(F,n,t,e,p),this.shouldPlay&&Lu(F.media)}else d?(this.resumePrimary(d,e,r),this.shouldPlay&&Lu(this.hls.media)):a&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r,a;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Us(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let d=this.timelinePos;(d<e.start||d>=e.end)&&(d=this.getPrimaryResumption(e,t),this.log(Ul("resumePrimary",d)),this.timelinePos=d),this.attachPrimary(d,e)}if(!n)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Us(e)}`),this.hls.trigger(g.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:mr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(Ul("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),(e=this.schedule)==null||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(g.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(g.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const r=T(T({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=T(T({},this.altSelection),{},{audio:n});return}const a=T(T({},r),{},{audio:n});this.mediaSelection=a}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=T(T({},this.altSelection),{},{subtitles:n});return}const a=T(T({},r),{},{subtitles:n});this.mediaSelection=a}onAudioTrackSwitching(e,t){const n=an(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=an(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setSubtitleOption(t)||t.id!==-1&&r.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const a=t[r];if(a.cue.post){var n;const s=this.schedule.findEventIndex(a.identifier),d=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(d)&&this.eventItemsMatch(d,this.bufferingItem)&&this.bufferedToItem(d,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(e&&r){const a=this.findItemIndex(e,t);return r[a]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((a,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const n=e.end+.25,r=mr.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${Us(e)} (was ${Us(t)})`),this.attachPrimary(n,null,!0),this.flushFrontBuffer(n))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const n=this.mediaSelection;n&&((t=this.schedule)==null||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=(t=this.schedule)==null?void 0:t.items;if(!n)return;const r=mr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,a=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(t.length===1&&this.itemsMatch(t[0],a)){this.bufferedPos=e;return}const s=this.playingItem,d=this.findItemIndex(s);let p=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var m;const v=this.findItemIndex(a),_=Math.min(v+1,t.length-1),F=t[_];if((p===-1&&a&&e>=a.end||(m=F.event)!=null&&m.appendInPlace&&e+.01>=F.start)&&(p=_),this.isInterstitial(a)){const ee=a.event;if(_-d>1&&ee.appendInPlace===!1||ee.assetList.length===0&&ee.assetListLoader)return}if(this.bufferedPos=e,p>v&&p>d)this.bufferedToItem(F);else{const ee=this.primaryDetails;this.primaryLive&&ee&&e>ee.edge-ee.targetduration&&F.start<ee.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(F)&&this.preloadAssets(F.event,0)}}else n&&s&&!this.itemsMatch(s,a)&&(p===d?this.bufferedToItem(s):p===d+1&&this.bufferedToItem(t[p]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const a=this.getAssetPlayer(r.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:r,events:a}=n;if(!r||!a)return t;const s=this.isInterstitial(e),d=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const p=d?d.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Us(e)}`+(t?` (${p.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const m=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((v,_)=>{const F=this.getAssetPlayer(v.identifier);F&&(_===m&&F.loadSource(),F.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(m=>m.pauseBuffering());this.hls.trigger(g.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,a=n.cue.once;if(r||!a){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const d=this.primaryMedia;d&&this.bufferAssetPlayer(s,d)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,a=r===0&&!e.assetListLoader,s=e.cue.once;if(a){const p=e.timelineStart;if(e.appendInPlace){var d;const F=this.playingItem;!this.isInterstitial(F)&&(F==null||(d=F.nextEvent)==null?void 0:d.identifier)===e.identifier&&this.flushFrontBuffer(p+.25)}let m,v=0;if(!this.playingItem&&this.primaryLive&&(v=this.hls.startPosition,v===-1&&(v=this.hls.liveSyncPosition||0)),v&&!(e.cue.pre||e.cue.post)){const F=v-p;F>0&&(m=Math.round(F*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${m?` live-start: ${v} start-offset: ${m}`:""}`),n)return this.createAsset(e,0,0,p,e.duration,n);const _=this.assetListLoader.loadAssetList(e,m);_&&(e.assetListLoader=_)}else if(!s&&r){for(let m=t;m<r;m++){const v=e.assetList[m],_=this.getAssetPlayerQueueIndex(v.identifier);(_===-1||this.playerQueue[_].destroyed)&&!v.error&&this.createAssetPlayer(e,v,m)}const p=e.assetList[t];if(p){const m=this.getAssetPlayer(p.identifier);return m&&m.loadSource(),m}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,a,s){const d={parentIdentifier:e.identifier,identifier:kc(e,s,t),duration:a,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,d,t)}createAssetPlayer(e,t,n){const r=this.hls,a=r.userConfig;let s=a.videoPreference;const d=r.loadLevelObj||r.levels[r.currentLevel];(s||d)&&(s=b({},s),d.videoCodec&&(s.videoCodec=d.videoCodec),d.videoRange&&(s.allowedVideoRanges=[d.videoRange]));const p=r.audioTracks[r.audioTrack],m=r.subtitleTracks[r.subtitleTrack];let v=0;if(this.primaryLive||e.appendInPlace){const gn=this.timelinePos-t.timelineStart;if(gn>1){const wn=t.duration;wn&&gn<wn&&(v=gn)}}const _=t.identifier,F=T(T({},a),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:_,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:v,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:p||a.audioPreference,subtitlePreference:m||a.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(F.timelineOffset=t.timelineStart));const ee=F.cmcd;ee!=null&&ee.sessionId&&ee.contentId&&(F.cmcd=b({},ee,{contentId:xl(t.uri)})),this.getAssetPlayer(_)&&this.warn(`Duplicate date range identifier ${e} and asset ${_}`);const ie=new $c(this.HlsPlayerClass,F,e,t);this.playerQueue.push(ie),e.assetList[n]=t;let We=!0;const He=gn=>{if(gn.live){var wn;const Vn=new Error(`Interstitials MUST be VOD assets ${e}`),Hn={fatal:!0,type:fe.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:Vn},Pn=((wn=this.schedule)==null?void 0:wn.findEventIndex(e.identifier))||-1;this.handleAssetItemError(Hn,e,Pn,n,Vn.message);return}const lr=gn.edge-gn.fragmentStart,An=t.duration;(We||An===null||lr>An)&&(We=!1,this.log(`Interstitial asset "${_}" duration change ${An} > ${lr}`),t.duration=lr,this.updateSchedule())};ie.on(g.LEVEL_UPDATED,(gn,{details:wn})=>He(wn)),ie.on(g.LEVEL_PTS_UPDATED,(gn,{details:wn})=>He(wn)),ie.on(g.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const Ot=(gn,wn)=>{const lr=this.getAssetPlayer(_);if(lr&&wn.tracks){lr.off(g.BUFFER_CODECS,Ot),lr.tracks=wn.tracks;const An=this.primaryMedia;this.bufferingAsset===lr.assetItem&&An&&!lr.media&&this.bufferAssetPlayer(lr,An)}};ie.on(g.BUFFER_CODECS,Ot);const Kt=()=>{var gn;const wn=this.getAssetPlayer(_);if(this.log(`buffered to end of asset ${wn}`),!wn||!this.schedule)return;const lr=this.schedule.findEventIndex(e.identifier),An=(gn=this.schedule.items)==null?void 0:gn[lr];this.isInterstitial(An)&&this.advanceAssetBuffering(An,t)};ie.on(g.BUFFERED_TO_END,Kt);const Wt=gn=>()=>{if(!this.getAssetPlayer(_)||!this.schedule)return;this.shouldPlay=!0;const lr=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,lr,gn)};return ie.once(g.MEDIA_ENDED,Wt(n)),ie.once(g.PLAYOUT_LIMIT_REACHED,Wt(1/0)),ie.on(g.ERROR,(gn,wn)=>{if(!this.schedule)return;const lr=this.getAssetPlayer(_);if(wn.details===Z.BUFFER_STALLED_ERROR){if(lr!=null&&lr.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(wn,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${wn.error} ${e}`)}),ie.on(g.DESTROYING,()=>{if(!this.getAssetPlayer(_)||!this.schedule)return;const wn=new Error(`Asset player destroyed unexpectedly ${_}`),lr={fatal:!0,type:fe.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:wn};this.handleAssetItemError(lr,e,this.schedule.findEventIndex(e.identifier),n,wn.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${tl(t)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:ie}),ie}clearInterstitial(e,t){this.clearAssetPlayers(e,t),e.reset()}clearAssetPlayers(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)})}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){const r=this.playerQueue[n];this.log(`clear ${r} toSegment: ${t&&Us(t)}`),this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,a){const{interstitial:s,assetItem:d,assetId:p}=e,m=s.assetList.length,v=this.playingAsset;this.endedAsset=null,this.playingAsset=d,(!v||v.identifier!==p)&&(v&&(this.clearAssetPlayer(v.identifier,n[r]),delete v.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${m} ${tl(d)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_STARTED,{asset:d,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,a)}bufferAssetPlayer(e,t){var n,r;if(!this.schedule)return;const{interstitial:a,assetItem:s}=e,d=this.schedule.findEventIndex(a.identifier),p=(n=this.schedule.items)==null?void 0:n[d];if(!p)return;e.loadSource(),this.setBufferingItem(p),this.bufferingAsset=s;const m=this.getBufferingPlayer();if(m===e)return;const v=a.appendInPlace;if(v&&(m==null?void 0:m.interstitial.appendInPlace)===!1)return;const _=(m==null?void 0:m.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(v&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(_&&!Pe(_,e.tracks)){const F=new Error(`Asset ${tl(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(_)}')`),ee={fatal:!0,type:fe.OTHER_ERROR,details:Z.INTERSTITIAL_ASSET_ITEM_ERROR,error:F},ie=a.findAssetIndex(s);this.handleAssetItemError(ee,a,d,ie,F.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,a=t.findAssetIndex(e,r),s=e.assetList[a];if(s){const d=this.getAssetPlayer(s.identifier);if(d){const p=d.currentTime||r-s.timelineStart,m=d.duration-p;if(this.warn(`Stalled at ${p} of ${p+m} in ${d} ${e} (media.currentTime: ${r})`),p&&(m/n.playbackRate<.5||d.bufferedInPlaceToEnd(n))&&d.hls){const v=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,v,a)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,a){if(e.details===Z.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&tl(s)} ${e.error}`),!this.schedule)return;const d=(s==null?void 0:s.identifier)||"",p=this.getAssetPlayerQueueIndex(d),m=this.playerQueue[p]||null,v=this.schedule.items,_=b({},e,{fatal:!1,errorAction:xn(!0),asset:s,assetListIndex:r,event:t,schedule:v,scheduleIndex:n,player:m});if(this.hls.trigger(g.INTERSTITIAL_ASSET_ERROR,_),!e.fatal)return;const F=this.playingAsset,ee=this.bufferingAsset,ie=new Error(a);if(s&&(this.clearAssetPlayer(d,null),s.error=ie),!t.assetList.some(We=>!We.error))t.error=ie;else for(let We=r;We<t.assetList.length;We++)this.resetAssetPlayer(t.assetList[We].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):F&&F.identifier===d?this.advanceAfterAssetEnded(t,n,r):ee&&ee.identifier===d&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,ee)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;let r=this.timelinePos;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${r} playing: ${Us(n)} error: ${e.error}`),r===-1&&(r=this.hls.startPosition);const s=this.updateItem(n,r);this.itemsMatch(n,s)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}else if(r===-1){this.checkStart();return}if(!this.schedule)return;const a=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(a)}onAssetListLoaded(e,t){var n,r;const a=t.event,s=a.identifier,d=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const p=a.timelineStart,m=a.duration;let v=0;d.forEach((We,He)=>{const Ot=parseFloat(We.DURATION);this.createAsset(a,He,v,p+v,Ot,We.URI),v+=Ot}),a.duration=v,this.log(`Loaded asset-list with duration: ${v} (was: ${m}) ${a}`);const _=this.waitingItem,F=(_==null?void 0:_.event.identifier)===s;this.updateSchedule();const ee=(r=this.bufferingItem)==null?void 0:r.event;if(F){var ie;const We=this.schedule.findEventIndex(s),He=(ie=this.schedule.items)==null?void 0:ie[We];if(He){if(!this.playingItem&&this.timelinePos>He.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==We){a.error=new Error(`Interstitial ${d.length?"no longer within playback range":"asset-list is empty"} ${this.timelinePos} ${a}`),this.log(a.error.message),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(He)}this.setSchedulePosition(We)}else if((ee==null?void 0:ee.identifier)===s){const We=a.assetList[0];if(We){const He=this.getAssetPlayer(We.identifier);if(ee.appendInPlace){const Ot=this.primaryMedia;He&&Ot&&this.bufferAssetPlayer(He,Ot)}else He&&He.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case Z.ASSET_LIST_PARSING_ERROR:case Z.ASSET_LIST_LOAD_ERROR:case Z.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case Z.BUFFER_STALLED_ERROR:{const n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace){this.handleInPlaceStall(n.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Ou=500;class Uc extends oo{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",V.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=fr.IDLE,this.setInterval(Ou),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragContextChanged(n)||(dt(n)&&(this.fragPrevious=n),this.state=fr.IDLE),!r)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const d=n.start;for(let m=0;m<a.length;m++)if(d>=a[m].start&&d<=a[m].end){s=a[m];break}const p=n.start+n.duration;s?s.end=p:(s={start:d,end:p},a.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const a=r-1;if(a<=0)return;t.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let d=0;d<s.length;){if(s[d].end<=a){s.shift();continue}else if(s[d].start<a)s[d].start=a;else break;d++}}),this.fragmentTracker.removeFragmentsInRange(n,a,V.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===V.SUBTITLE&&(t.details===Z.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==fr.STOPPED&&(this.state=fr.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Ja(this.levels,t)){this.levels=t.map(n=>new ct(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new ct(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,V.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==fr.STOPPED&&this.setInterval(Ou)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:a}=this,{details:s,id:d}=t;if(!a){this.warn(`Subtitle tracks were reset while loading level ${d}`);return}const p=a[d];if(d>=a.length||!p)return;this.log(`Subtitle track ${d} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let m=0;if(s.live||(n=p.details)!=null&&n.live){if(s.deltaUpdateFailed)return;const _=this.mainDetails;if(!_){this.startFragRequested=!1;return}const F=_.fragments[0];if(!p.details)s.hasProgramDateTime&&_.hasProgramDateTime?(so(s,_),m=s.fragmentStart):F&&(m=F.start,Gs(s,m));else{var v;m=this.alignPlaylists(s,p.details,(v=this.levelLastLoaded)==null?void 0:v.details),m===0&&F&&(m=F.start,Gs(s,m))}_&&!this.startFragRequested&&this.setStartPosition(_,m)}p.details=s,this.levelLastLoaded=p,d===r&&(this.hls.trigger(g.SUBTITLE_TRACK_UPDATED,{details:s,id:d,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===fr.IDLE&&(Xn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),p.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,a=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&vr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,br(r.method)).catch(d=>{throw a.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:t}),d}).then(d=>{const p=performance.now();a.trigger(g.FRAG_DECRYPTED,{frag:t,payload:d,stats:{tstart:s,tdecrypt:p}})}).catch(d=>{this.warn(`${d.name}: ${d.message}`),this.state=fr.IDLE})}}doTick(){if(!this.media){this.state=fr.IDLE;return}if(this.state===fr.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,a=this.getLoadPosition(),s=mr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,r.maxBufferHole),{end:d,len:p}=s,m=n.details,v=this.hls.maxBufferLength+m.levelTargetDuration;if(p>v)return;const _=m.fragments,F=_.length,ee=m.edge;let ie=null;const We=this.fragPrevious;if(d<ee){const Kt=r.maxFragLookUpTolerance,Wt=d>ee-Kt?0:Kt;ie=Xn(We,_,Math.max(_[0].start,d),Wt),!ie&&We&&We.start<_[0].start&&(ie=_[0])}else ie=_[F-1];if(ie=this.filterReplacedPrimary(ie,n.details),!ie)return;const He=ie.sn-m.startSN,Ot=_[He-1];if(Ot&&Ot.cc===ie.cc&&this.fragmentTracker.getState(Ot)===Qn.NOT_LOADED&&(ie=Ot),this.fragmentTracker.getState(ie)===Qn.NOT_LOADED){const Kt=this.mapToInitFragWhenRequired(ie);Kt&&this.loadFragment(Kt,n,d)}}}loadFragment(e,t,n){dt(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Kc(this.tracksBuffered[this.currentTrackId]||[])}}class Kc{constructor(e){this.buffered=void 0;const t=(n,r,a)=>{if(r=r>>>0,r>a-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${a})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const Hc={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},Pu=o=>String.fromCharCode(Hc[o]||o),Ks=15,mo=100,Wc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Vc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Gc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Yc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Xc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Qc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;pe.log(`${this.time} [${e}] ${n}`)}}}const Po=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Mu{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 Jc{constructor(){this.uchar=" ",this.penState=new Mu}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 qc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Mu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<mo;t++)this.chars.push(new Jc);this.logger=e}equals(e){for(let t=0;t<mo;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<mo;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<mo;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>mo&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=mo)}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=Pu(e);if(this.pos>=mo){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<mo;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<mo;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 au{constructor(e){this.rows=[],this.currRow=Ks-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ks;t++)this.rows.push(new qc(e));this.logger=e}reset(){for(let e=0;e<Ks;e++)this.rows[e].clear();this.currRow=Ks-1}equals(e){let t=!0;for(let n=0;n<Ks;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ks;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ks;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 = "+ft(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let d=0;d<Ks;d++)this.rows[d].clear();const a=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const d=s.rows[a].cueStartTime,p=this.logger.time;if(d!==null&&p!==null&&d<p)for(let m=0;m<this.nrRollUpRows;m++)this.rows[t-this.nrRollUpRows+m+1].copy(s.rows[a+m])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const a=e.indent,s=Math.max(a-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+ft(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 a=0;a<Ks;a++){const s=this.rows[a].getTextString();s&&(r=a+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
`)),n}getTextAndFormat(){return this.rows}}class Nu{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 au(n),this.nonDisplayedMemory=new au(n),this.lastOutputScreen=new au(n),this.currRollUpRow=this.displayedMemory.rows[Ks-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[Ks-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: "+ft(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 ku{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=td(),this.logger=void 0;const r=this.logger=new Qc;this.channels=[null,new Nu(e,t,r),new Nu(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,a=t[n+1]&127;let s=!1,d=null;if(r===0&&a===0)continue;this.logger.log(3,()=>"["+Po([t[n],t[n+1]])+"] -> ("+Po([r,a])+")");const p=this.cmdHistory;if(r>=16&&r<=31){if(ed(r,a,p)){Kl(null,null,p),this.logger.log(3,()=>"Repeated command ("+Po([r,a])+") is dropped");continue}Kl(r,a,this.cmdHistory),s=this.parseCmd(r,a),s||(s=this.parseMidrow(r,a)),s||(s=this.parsePAC(r,a)),s||(s=this.parseBackgroundAttributes(r,a))}else Kl(null,null,p);if(!s&&(d=this.parseChars(r,a),d)){const v=this.currentChannel;v&&v>0?this.channels[v].insertChars(d):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!d&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Po([r,a])+" orig: "+Po([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 a=e===20||e===21||e===23?1:2,s=this.channels[a];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=a,!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 ("+Po([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,a=(e===16||e===24)&&t>=64&&t<=95;if(!(r||a))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?Wc[e]:Gc[e]:n=s===1?Vc[e]:Yc[e];const d=this.channels[s];return d?(d.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,a=null;if(e>=25?(n=2,a=e-8):(n=1,a=e),a>=17&&a<=19){let s;a===17?s=t+80:a===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+Pu(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+Po(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 a;const s={};e===16||e===24?(a=Math.floor((t-32)/2),s.background=Xc[a],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const d=e<=23?1:2;return this.channels[d].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}Kl(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 Kl(o,e,t){t.a=o,t.b=e}function ed(o,e,t){return t.a===o&&t.b===e}function td(){return{a:null,b:null}}var su=function(){if(Nr!=null&&Nr.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(d,p){if(typeof p!="string"||!Array.isArray(d))return!1;const m=p.toLowerCase();return~d.indexOf(m)?m:!1}function n(d){return t(o,d)}function r(d){return t(e,d)}function a(d,...p){let m=1;for(;m<arguments.length;m++){const v=arguments[m];for(const _ in v)d[_]=v[_]}return d}function s(d,p,m){const v=this,_={enumerable:!0};v.hasBeenReset=!1;let F="",ee=!1,ie=d,We=p,He=m,Ot=null,Kt="",Wt=!0,gn="auto",wn="start",lr=50,An="middle",Vn=50,Hn="middle";Object.defineProperty(v,"id",a({},_,{get:function(){return F},set:function(Pn){F=""+Pn}})),Object.defineProperty(v,"pauseOnExit",a({},_,{get:function(){return ee},set:function(Pn){ee=!!Pn}})),Object.defineProperty(v,"startTime",a({},_,{get:function(){return ie},set:function(Pn){if(typeof Pn!="number")throw new TypeError("Start time must be set to a number.");ie=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"endTime",a({},_,{get:function(){return We},set:function(Pn){if(typeof Pn!="number")throw new TypeError("End time must be set to a number.");We=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"text",a({},_,{get:function(){return He},set:function(Pn){He=""+Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"region",a({},_,{get:function(){return Ot},set:function(Pn){Ot=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"vertical",a({},_,{get:function(){return Kt},set:function(Pn){const gr=n(Pn);if(gr===!1)throw new SyntaxError("An invalid or illegal string was specified.");Kt=gr,this.hasBeenReset=!0}})),Object.defineProperty(v,"snapToLines",a({},_,{get:function(){return Wt},set:function(Pn){Wt=!!Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"line",a({},_,{get:function(){return gn},set:function(Pn){if(typeof Pn!="number"&&Pn!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");gn=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"lineAlign",a({},_,{get:function(){return wn},set:function(Pn){const gr=r(Pn);if(!gr)throw new SyntaxError("An invalid or illegal string was specified.");wn=gr,this.hasBeenReset=!0}})),Object.defineProperty(v,"position",a({},_,{get:function(){return lr},set:function(Pn){if(Pn<0||Pn>100)throw new Error("Position must be between 0 and 100.");lr=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",a({},_,{get:function(){return An},set:function(Pn){const gr=r(Pn);if(!gr)throw new SyntaxError("An invalid or illegal string was specified.");An=gr,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",a({},_,{get:function(){return Vn},set:function(Pn){if(Pn<0||Pn>100)throw new Error("Size must be between 0 and 100.");Vn=Pn,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",a({},_,{get:function(){return Hn},set:function(Pn){const gr=r(Pn);if(!gr)throw new SyntaxError("An invalid or illegal string was specified.");Hn=gr,this.hasBeenReset=!0}})),v.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class nd{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Bu(o){function e(n,r,a,s){return(n|0)*3600+(r|0)*60+(a|0)+parseFloat(s||0)}const t=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class rd{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 Fu(o,e,t,n){const r=n?o.split(n):[o];for(const a in r){if(typeof r[a]!="string")continue;const s=r[a].split(t);if(s.length!==2)continue;const d=s[0],p=s[1];e(d,p)}}const ou=new su(0,0,""),Hl=ou.align==="middle"?"middle":"center";function id(o,e,t){const n=o;function r(){const d=Bu(o);if(d===null)throw new Error("Malformed timestamp: "+n);return o=o.replace(/^[^\sa-zA-Z-]+/,""),d}function a(d,p){const m=new rd;Fu(d,function(F,ee){let ie;switch(F){case"region":for(let We=t.length-1;We>=0;We--)if(t[We].id===ee){m.set(F,t[We].region);break}break;case"vertical":m.alt(F,ee,["rl","lr"]);break;case"line":ie=ee.split(","),m.integer(F,ie[0]),m.percent(F,ie[0])&&m.set("snapToLines",!1),m.alt(F,ie[0],["auto"]),ie.length===2&&m.alt("lineAlign",ie[1],["start",Hl,"end"]);break;case"position":ie=ee.split(","),m.percent(F,ie[0]),ie.length===2&&m.alt("positionAlign",ie[1],["start",Hl,"end","line-left","line-right","auto"]);break;case"size":m.percent(F,ee);break;case"align":m.alt(F,ee,["start",Hl,"end","left","right"]);break}},/:/,/\s/),p.region=m.get("region",null),p.vertical=m.get("vertical","");let v=m.get("line","auto");v==="auto"&&ou.line===-1&&(v=-1),p.line=v,p.lineAlign=m.get("lineAlign","start"),p.snapToLines=m.get("snapToLines",!0),p.size=m.get("size",100),p.align=m.get("align",Hl);let _=m.get("position","auto");_==="auto"&&ou.position===50&&(_=p.align==="start"||p.align==="left"?0:p.align==="end"||p.align==="right"?100:50),p.position=_}function s(){o=o.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);o=o.slice(3),s(),e.endTime=r(),s(),a(o,e)}function $u(o){return o.replace(/<br(?: \/)?>/gi,`
`)}class ad{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new nd,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 a=t.buffer,s=0;for(a=$u(a);s<a.length&&a[s]!=="\r"&&a[s]!==`
`;)++s;const d=a.slice(0,s);return a[s]==="\r"&&++s,a[s]===`
`&&++s,t.buffer=a.slice(s),d}function r(a){Fu(a,function(s,d){},/:/)}try{let a="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;a=n();const d=a.match(/^()?WEBVTT([ \t].*)?$/);if(!(d!=null&&d[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:a=n(),t.state){case"HEADER":/:/.test(a)?r(a):a||(t.state="ID");continue;case"NOTE":a||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){t.state="NOTE";break}if(!a)continue;if(t.cue=new su(0,0,""),t.state="CUE",a.indexOf("-->")===-1){t.cue.id=a;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{id(a,t.cue,t.regionList)}catch(d){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const d=a.indexOf("-->")!==-1;if(!a||d&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
`),t.cue.text+=a}continue;case"BADCUE":a||(t.state="ID")}}}catch(a){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 sd=/\r\n|\n\r|\n|\r/g,lu=function(e,t,n=0){return e.slice(n,n+t.length)===t},od=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),a=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!i(t)||!i(n)||!i(r)||!i(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*a,t};function uu(o,e,t){return xl(o.toString())+xl(e.toString())+xl(t)}const ld=function(e,t,n){let r=e[t],a=e[r.prevCC];if(!a||!a.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=a)!=null&&s.new;){var s;e.ccOffset+=r.start-a.start,r.new=!1,r=a,a=e[r.prevCC]}e.presentationOffset=n};function ud(o,e,t,n,r,a,s){const d=new ad,p=Ze(new Uint8Array(o)).trim().replace(sd,`
`).split(`
`),m=[],v=e?ca(e.baseTime,e.timescale):0;let _="00:00.000",F=0,ee=0,ie,We=!0;d.oncue=function(He){const Ot=t[n];let Kt=t.ccOffset;const Wt=(F-v)/9e4;if(Ot!=null&&Ot.new&&(ee!==void 0?Kt=t.ccOffset=Ot.start:ld(t,n,Wt)),Wt){if(!e){ie=new Error("Missing initPTS for VTT MPEGTS");return}Kt=Wt-t.presentationOffset}const gn=He.endTime-He.startTime,wn=sa((He.startTime+Kt-ee)*9e4,r*9e4)/9e4;He.startTime=Math.max(wn,0),He.endTime=Math.max(wn+gn,0);const lr=He.text.trim();He.text=decodeURIComponent(encodeURIComponent(lr)),He.id||(He.id=uu(He.startTime,He.endTime,lr)),He.endTime>0&&m.push(He)},d.onparsingerror=function(He){ie=He},d.onflush=function(){if(ie){s(ie);return}a(m)},p.forEach(He=>{if(We)if(lu(He,"X-TIMESTAMP-MAP=")){We=!1,He.slice(16).split(",").forEach(Ot=>{lu(Ot,"LOCAL:")?_=Ot.slice(6):lu(Ot,"MPEGTS:")&&(F=parseInt(Ot.slice(7)))});try{ee=od(_)/1e3}catch(Ot){ie=Ot}return}else He===""&&(We=!1);d.parse(He+`
`)}),d.flush()}const cu="stpp.ttml.im1t",zu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Zu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,cd={left:"start",center:"center",right:"end",start:"start",end:"end"};function ju(o,e,t,n){const r=oe(new Uint8Array(o),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const a=r.map(d=>Ze(d)),s=yi(e.baseTime,1,e.timescale);try{a.forEach(d=>t(dd(d,s)))}catch(d){n(d)}}function dd(o,e){const r=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((_,F)=>(_[F]=r.getAttribute(`ttp:${F}`)||a[F],_),{}),d=r.getAttribute("xml:space")!=="preserve",p=Uu(du(r,"styling","style")),m=Uu(du(r,"layout","region")),v=du(r,"body","[begin]");return[].map.call(v,_=>{const F=Ku(_,d);if(!F||!_.hasAttribute("begin"))return null;const ee=hu(_.getAttribute("begin"),s),ie=hu(_.getAttribute("dur"),s);let We=hu(_.getAttribute("end"),s);if(ee===null)throw Hu(_);if(We===null){if(ie===null)throw Hu(_);We=ee+ie}const He=new su(ee-e,We-e,F);He.id=uu(He.startTime,He.endTime,He.text);const Ot=m[_.getAttribute("region")],Kt=p[_.getAttribute("style")],Wt=fd(Ot,Kt,p),{textAlign:gn}=Wt;if(gn){const wn=cd[gn];wn&&(He.lineAlign=wn),He.align=gn}return b(He,Wt),He}).filter(_=>_!==null)}function du(o,e,t){const n=o.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Uu(o){return o.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Ku(o,e){return[].slice.call(o.childNodes).reduce((t,n,r)=>{var a;return n.nodeName==="br"&&r?t+`
`:(a=n.childNodes)!=null&&a.length?Ku(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function fd(o,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),a.reduce((d,p)=>{const m=fu(e,n,p)||fu(o,n,p)||fu(r,n,p);return m&&(d[p]=m),d},{})}function fu(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function Hu(o){return new Error(`Could not parse ttml timestamp ${o}`)}function hu(o,e){if(!o)return null;let t=Bu(o);return t===null&&(zu.test(o)?t=hd(o,e):Zu.test(o)&&(t=md(o,e))),t}function hd(o,e){const t=zu.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 md(o,e){const t=Zu.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 Wl{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class pd{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=Gu(),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(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Wl(this,"textTrack1"),t=new Wl(this,"textTrack2"),n=new Wl(this,"textTrack3"),r=new Wl(this,"textTrack4");this.cea608Parser1=new ku(1,e,t),this.cea608Parser2=new ku(3,n,r)}addCues(e,t,n,r,a){let s=!1;for(let d=a.length;d--;){const p=a[d],m=gd(p[0],p[1],t,n);if(m>=0&&(p[0]=Math.min(p[0],t),p[1]=Math.max(p[1],n),s=!0,m/(n-t)>.5))return}if(s||a.push([t,n]),this.config.renderTextTracksNatively){const d=this.captionsTracks[e];this.Cues.newCue(d,t,n,r)}else{const d=this.Cues.newCue(null,t,n,r);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:d,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:a,trackId:s}){const{unparsedVttFrags:d}=this;n===V.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:a,trackId:s}),d.length&&(this.unparsedVttFrags=[],d.forEach(p=>{this.initPTS[p.frag.cc]?this.onFragLoaded(g.FRAG_LOADED,p):this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const a=n.textTracks[r];if(Vu(a,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return a}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:a,languageCode:s}=t[e],d=this.getExistingTrack(a,s);if(d)n[e]=d,qo(n[e]),Au(n[e],r);else{const p=this.createTextTrack("captions",a,s);p&&(p[e]=!0,n[e]=p)}}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(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(a=>{qo(r[a]),delete r[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Gu(),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++)qo(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(a=>a.textCodec===cu);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Ja(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,d=s?Zl(s.textTracks):null;if(this.tracks.forEach((p,m)=>{let v;if(d){let _=null;for(let F=0;F<d.length;F++)if(d[F]&&Vu(d[F],p)){_=d[F],d[F]=null;break}_&&(v=_)}if(v)qo(v);else{const _=Wu(p);v=this.createTextTrack(_,p.name,p.lang),v&&(v.mode="disabled")}v&&this.textTracks.push(v)}),d!=null&&d.length){const p=d.filter(m=>m!==null).map(m=>m.label);p.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${p.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(d=>({label:d.name,kind:d.type.toLowerCase(),default:d.default,subtitleTrack:d}));this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const a=`textTrack${r[1]}`,s=this.captionsProperties[a];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===V.MAIN){var n,r;const{cea608Parser1:a,cea608Parser2:s,lastSn:d}=this,{cc:p,sn:m}=t.frag,v=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;a&&s&&(m!==d+1||m===d&&v!==this.lastPartIndex+1||p!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=p,this.lastSn=m,this.lastPartIndex=v}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===V.SUBTITLE)if(r.byteLength){const a=n.decryptdata,s="stats"in t;if(a==null||!a.encrypted||s){const d=this.tracks[n.level],p=this.vttCCs;p[n.cc]||(p[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),d&&d.textCodec===cu?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;ju(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:a,unparsedVttFrags:s}=this,d=a.length-1;if(!a[n.cc]&&d===-1){s.push(e);return}const p=this.hls,m=(t=n.initSegment)!=null&&t.data?Nt(n.initSegment.data,new Uint8Array(r)).buffer:r;ud(m,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,v=>{this._appendCues(v,n.level),p.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},v=>{const _=v.message==="Missing initPTS for VTT MPEGTS";_?s.push(e):this._fallbackToIMSC1(n,r),p.logger.log(`Failed to parse VTT cue: ${v}`),!(_&&d>n.cc)&&p.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:v})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||ju(t,this.initPTS[e.cc],()=>{n.textCodec=cu,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(a=>Iu(r,a))}else{const r=this.tracks[t];if(!r)return;const a=r.default?"default":"subtitles"+t;n.trigger(g.CUES_PARSED,{type:"subtitles",cues:e,track:a})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===V.SUBTITLE&&this.onFragLoaded(g.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===V.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let a=0;a<r.length;a++){const s=r[a].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const d=this.extractCea608Data(s);this.cea608Parser1.addData(r[a].pts,d[0]),this.cea608Parser2.addData(r[a].pts,d[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:a}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!a||a==="video"){const{captionsTracks:d}=this;Object.keys(d).forEach(p=>nu(d[p],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:d}=this;Object.keys(d).forEach(p=>nu(d[p],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let a=0;a<n;a++){const s=e[r++],d=127&e[r++],p=127&e[r++];if(d===0&&p===0)continue;if((4&s)!==0){const v=3&s;(v===0||v===1)&&(t[v].push(d),t[v].push(p))}}return t}}function Wu(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function Vu(o,e){return!!o&&o.kind===Wu(e)&&fo(e,o)}function gd(o,e,t,n){return Math.min(e,n)-Math.max(o,t)}function Gu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const vd=/\s/,yd={newCue(o,e,t,n){const r=[];let a,s,d,p,m;const v=self.VTTCue||self.TextTrackCue;for(let F=0;F<n.rows.length;F++)if(a=n.rows[F],d=!0,p=0,m="",!a.isEmpty()){var _;for(let We=0;We<a.chars.length;We++)vd.test(a.chars[We].uchar)&&d?p++:(m+=a.chars[We].uchar,d=!1);a.cueStartTime=e,e===t&&(t+=1e-4),p>=16?p--:p++;const ee=$u(m.trim()),ie=uu(e,t,ee);o!=null&&(_=o.cues)!=null&&_.getCueById(ie)||(s=new v(e,t,ee),s.id=ie,s.line=F+1,s.align="left",s.position=10+Math.min(80,Math.floor(p*8/32)*10),r.push(s))}return o&&r.length&&(r.sort((F,ee)=>F.line==="auto"||ee.line==="auto"?0:F.line>8&&ee.line>8?ee.line-F.line:F.line-ee.line),r.forEach(F=>Iu(o,F))),r}};function bd(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(o){}return!1}const xd=/(\d+)-(\d+)\/(\d+)/;class Yu{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||Cd,this.controller=new self.AbortController,this.stats=new I}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 a=Ed(e,this.controller.signal),s=e.responseType==="arraybuffer",d=s?"byteLength":"length",{maxTimeToFirstByteMs:p,maxLoadTimeMs:m}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,a),self.clearTimeout(this.requestTimeout),t.timeout=p&&i(p)?p:m,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(oa(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(_=>{var F;this.response=this.loader=_;const ee=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=m,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},m-(ee-r.loading.start)),!_.ok){const{status:We,statusText:He}=_;throw new wd(He||"fetch, bad network response",We,_)}r.loading.first=ee,r.total=_d(_.headers)||r.total;const ie=(F=this.callbacks)==null?void 0:F.onProgress;return ie&&i(t.highWaterMark)?this.loadProgressively(_,r,e,t.highWaterMark,ie):s?_.arrayBuffer():e.responseType==="json"?_.json():_.text()}).then(_=>{var F,ee;const ie=this.response;if(!ie)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const We=_[d];We&&(r.loaded=r.total=We);const He={url:ie.url,data:_,code:ie.status},Ot=(F=this.callbacks)==null?void 0:F.onProgress;Ot&&!i(t.highWaterMark)&&Ot(r,e,_,ie),(ee=this.callbacks)==null||ee.onSuccess(He,r,e,ie)}).catch(_=>{var F;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const ee=_&&_.code||0,ie=_?_.message:null;(F=this.callbacks)==null||F.onError({code:ee,text:ie},e,_?_.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,a){const s=new Zs,d=e.body.getReader(),p=()=>d.read().then(m=>{if(m.done)return s.dataLength&&a(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const v=m.value,_=v.length;return t.loaded+=_,_<r||s.dataLength?(s.push(v),s.dataLength>=r&&a(t,n,s.flush().buffer,e)):a(t,n,v.buffer,e),p()}).catch(()=>Promise.reject());return p()}}function Ed(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(b({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function Sd(o){const e=xd.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function _d(o){const e=o.get("Content-Range");if(e){const n=Sd(e);if(i(n))return n}const t=o.get("Content-Length");if(t)return parseInt(t)}function Cd(o,e){return new self.Request(o.url,e)}class wd extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Td=/^age:\s*[\d.]+\s*$/im;class Xu{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 I,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 a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return a(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),a(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var d;(d=this.callbacks)==null||d.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const d in r)e.setRequestHeader(d,r[d]);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=a&&i(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,a=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const m=t.status,v=t.responseType==="text"?t.responseText:null;if(m>=200&&m<300){const ie=v!=null?v:t.response;if(ie!=null){var s,d;n.loading.end=Math.max(self.performance.now(),n.loading.first);const We=t.responseType==="arraybuffer"?ie.byteLength:ie.length;n.loaded=n.total=We,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const He=(s=this.callbacks)==null?void 0:s.onProgress;He&&He(n,e,ie,t);const Ot={url:t.responseURL,data:ie,code:m};(d=this.callbacks)==null||d.onSuccess(Ot,n,e,t);return}}const _=a.loadPolicy.errorRetry,F=n.retry,ee={url:e.url,data:void 0,code:m};if(dr(_,F,!1,ee))this.retry(_);else{var p;pe.error(`${m} while loading ${e.url}`),(p=this.callbacks)==null||p.onError({code:m,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(dr(e,t,!0))this.retry(e);else{var n;pe.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=On(e,n.retry),n.retry++,pe.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&&Td.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const Ad={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Id=T(T({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Xu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:rr,bufferController:is,capLevelController:Ss,errorController:hn,fpsController:Lc,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:fi,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:Ad},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Dd()),{},{subtitleStreamController:Uc,subtitleTrackController:Mc,timelineController:pd,audioStreamController:Va,audioTrackController:_a,emeController:Jo,cmcdController:Ac,contentSteeringController:Dc,interstitialsController:jc});function Dd(){return{cueHandler:yd,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 Rd(o,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=mu(o),r=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const d=`${s==="level"?"playlist":s}LoadPolicy`,p=e[d]===void 0,m=[];a.forEach(v=>{const _=`${s}Loading${v}`,F=e[_];if(F!==void 0&&p){m.push(_);const ee=n[d].default;switch(e[d]={default:ee},v){case"TimeOut":ee.maxLoadTimeMs=F,ee.maxTimeToFirstByteMs=F;break;case"MaxRetry":ee.errorRetry.maxNumRetry=F,ee.timeoutRetry.maxNumRetry=F;break;case"RetryDelay":ee.errorRetry.retryDelayMs=F,ee.timeoutRetry.retryDelayMs=F;break;case"MaxRetryTimeout":ee.errorRetry.maxRetryDelayMs=F,ee.timeoutRetry.maxRetryDelayMs=F;break}}}),m.length&&t.warn(`hls.js config: "${m.join('", "')}" setting(s) are deprecated, use "${d}": ${ft(e[d])}`)}),T(T({},n),e)}function mu(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(mu):Object.keys(o).reduce((e,t)=>(e[t]=mu(o[t]),e),{}):o}function Ld(o,e){const t=o.loader;t!==Yu&&t!==Xu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):bd()&&(o.loader=Yu,o.progressive=!0,o.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Vl=2,Od=.1,Pd=.05,Md=100;class Nd extends Br{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Md),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ka(n,"playing",this.onMediaPlaying),Ka(n,"waiting",this.onMediaWaiting),Ka(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Qa(n,"playing",this.onMediaPlaying),Qa(n,"waiting",this.onMediaWaiting),Qa(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const a=(n=this.hls)==null?void 0:n.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:d}=s,p=this.seeking&&!d,m=!this.seeking&&d,v=s.paused&&!d||s.ended||s.playbackRate===0;if(this.seeking=d,e!==t){t&&(this.ended=0),this.moved=!0,d||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!v&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(m||p){p&&this.stallResolved(e);return}if(v){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1}));return}if(!mr.getBuffered(s).length){this.nudgeRetry=0;return}const _=mr.bufferInfo(s,e,0),F=_.nextStart||0,ee=this.fragmentTracker;if(d&&ee&&this.hls){const lr=Qu(this.hls.inFlightFragments,e),An=_.len>Vl,Vn=!F||lr||F-e>Vl&&!ee.getPartialFragment(e);if(An||Vn)return;this.moved=!1}const ie=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&ee){if(!(_.len>0)&&!F)return;const An=Math.max(F,_.start||0)-e,Hn=!!(ie!=null&&ie.live)?ie.targetduration*2:Vl,Pn=Gl(e,ee);if(An>0&&(An<=Hn||Pn)){s.paused||this._trySkipBufferHole(Pn);return}}const We=a.detectStallWithCurrentTimeMs,He=self.performance.now(),Ot=this.waiting;let Kt=this.stalled;if(Kt===null)if(Ot>0&&He-Ot<We)Kt=this.stalled=Ot;else{this.stalled=He;return}const Wt=He-Kt;if(!d&&(Wt>=We||Ot)&&this.hls){var gn;if(((gn=this.mediaSource)==null?void 0:gn.readyState)==="ended"&&!(ie!=null&&ie.live)&&Math.abs(e-((ie==null?void 0:ie.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(_),!this.media||!this.hls)return}const wn=mr.bufferInfo(s,e,a.maxBufferHole);this._tryFixBufferStall(wn,Wt,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(g.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const a=mr.bufferedInfo(mr.timeRangesToArray(this.buffered.audio),e,0);if(a.len>1&&t>=a.start){const s=mr.timeRangesToArray(r),d=mr.bufferedInfo(s,t,0).bufferedIndex;if(d>-1&&d<s.length-1){const p=mr.bufferedInfo(s,e,0).bufferedIndex,m=s[d].end,v=s[d+1].start;if((p===-1||p>d)&&v-m<1&&e-m<2){const _=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${m} -> ${v} buffered index: ${p}`);this.warn(_.message),this.media.currentTime+=1e-6;let F=Gl(e,this.fragmentTracker);F&&"fragment"in F?F=F.fragment:F||(F=void 0);const ee=mr.bufferInfo(this.media,e,0);this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:_,reason:_.message,frag:F,buffer:ee.len,bufferInfo:ee})}}}}}_tryFixBufferStall(e,t,n){var r,a;const{fragmentTracker:s,media:d}=this,p=(r=this.hls)==null?void 0:r.config;if(!d||!s||!p)return;const m=(a=this.hls)==null?void 0:a.latestLevelDetails,v=Gl(n,s);if((v||m!=null&&m.live&&n<m.fragmentStart)&&(this._trySkipBufferHole(v)||!this.media))return;const _=e.buffered,F=this.adjacentTraversal(e,n);(_&&_.length>1&&e.len>p.maxBufferHole||e.nextStart&&(e.nextStart-n<p.maxBufferHole||F))&&(t>p.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const a=n.getFragAtPos(t,V.MAIN),s=n.getFragAtPos(r,V.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:a}=this;if(!r&&a!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${ft(e)})`);this.warn(s.message),t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:a}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,a=(t=this.hls)==null?void 0:t.config;if(!r||!n||!a)return 0;const s=r.currentTime,d=mr.bufferInfo(r,s,0),p=s<d.start?d.start:d.nextStart;if(p&&this.hls){const v=d.len<=a.maxBufferHole,_=d.len>0&&d.len<1&&r.readyState<3,F=p-s;if(F>0&&(v||_)){if(F>a.maxBufferHole){let ie=!1;if(s===0){const We=n.getAppendedFrag(0,V.MAIN);We&&p<We.end&&(ie=!0)}if(!ie&&e){var m;if(!((m=this.hls.loadLevelObj)!=null&&m.details)||Qu(this.hls.inFlightFragments,p))return 0;let He=!1,Ot=e.end;for(;Ot<p;){const Kt=Gl(Ot,n);if(Kt)Ot+=Kt.duration;else{He=!0;break}}if(He)return 0}}const ee=Math.max(p+Pd,s+Od);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${ee}`),this.moved=!0,r.currentTime=ee,!(e!=null&&e.gap)){const ie=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${ee}`),We={type:fe.MEDIA_ERROR,details:Z.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:ie,reason:ie.message,buffer:d.len,bufferInfo:d};e&&("fragment"in e?We.part=e:We.frag=e),this.hls.trigger(g.ERROR,We)}return ee}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,a=t==null?void 0:t.config;if(!n||!a)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<a.nudgeMaxRetry){const d=s+(r+1)*a.nudgeOffset,p=new Error(`Nudging 'currentTime' from ${s} to ${d}`);this.warn(p.message),n.currentTime=d,t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_NUDGE_ON_STALL,error:p,fatal:!1,buffer:e.len,bufferInfo:e})}else{const d=new Error(`Playhead still not moving while enough data buffered @${s} after ${a.nudgeMaxRetry} nudges`);this.error(d.message),t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.BUFFER_STALLED_ERROR,error:d,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Qu(o,e){const t=Ju(o.main);if(t&&t.start<=e)return t;const n=Ju(o.audio);return n&&n.start<=e?n:null}function Ju(o){if(!o)return null;switch(o.state){case fr.IDLE:case fr.STOPPED:case fr.ENDED:case fr.ERROR:return null}return o.frag}function Gl(o,e){return e.getAppendedFrag(o,V.MAIN)||e.getPartialFragment(o)}const kd=.25;function pu(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function gu(o,e,t,n,r){let a=new o(e,t,"");try{a.value=n,r&&(a.type=r)}catch(s){a=new o(e,t,ft(r?T({type:r},n):n))}return a}const Yl=(()=>{const o=pu();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Bd{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(g.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&qo(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Au(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:a}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=pu();if(s)for(let d=0;d<a.length;d++){const p=a[d].type;if(p===it.emsg&&!n||!r)continue;const m=Io(a[d].data),v=a[d].pts;let _=v+a[d].duration;_>Yl&&(_=Yl),_-v<=0&&(_=v+kd);for(let ee=0;ee<m.length;ee++){const ie=m[ee];if(!Go(ie)){this.updateId3CueEnds(v,p);const We=gu(s,v,_,ie,p);We&&this.id3Track.addCue(We)}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let a=r.length;a--;){const s=r[a];s.type===t&&s.startTime<e&&s.endTime===Yl&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:a,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:d,enableID3MetadataCues:p}}=s;if(a&&(d||p)){let m;r==="audio"?m=v=>v.type===it.audioId3&&p:r==="video"?m=v=>v.type===it.emsg&&d:m=v=>v.type===it.audioId3&&p||v.type===it.emsg&&d,nu(a,t,n,m)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const d=pu();if(n&&r&&!s){const{fragmentStart:We,fragmentEnd:He}=e;let Ot=this.assetCue;Ot?(Ot.startTime=We,Ot.endTime=He):d&&(Ot=this.assetCue=gu(d,We,He,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),Ot&&(Ot.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(Ot),Ot.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:p}=this,{dateRanges:m}=e,v=Object.keys(m);let _=this.dateRangeCuesAppended;if(p&&t){var F;if((F=p.cues)!=null&&F.length){const We=Object.keys(_).filter(He=>!v.includes(He));for(let He=We.length;He--;){var ee;const Ot=We[He],Kt=(ee=_[Ot])==null?void 0:ee.cues;delete _[Ot],Kt&&Object.keys(Kt).forEach(Wt=>{const gn=Kt[Wt];if(gn){gn.removeEventListener("enter",this.onEventCueEnter);try{p.removeCue(gn)}catch(wn){}}})}}else _=this.dateRangeCuesAppended={}}const ie=e.fragments[e.fragments.length-1];if(!(v.length===0||!i(ie==null?void 0:ie.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let We=0;We<v.length;We++){const He=v[We],Ot=m[He],Kt=Ot.startTime,Wt=_[He],gn=(Wt==null?void 0:Wt.cues)||{};let wn=(Wt==null?void 0:Wt.durationKnown)||!1,lr=Yl;const{duration:An,endDate:Vn}=Ot;if(Vn&&An!==null)lr=Kt+An,wn=!0;else if(Ot.endOnNext&&!wn){const Pn=v.reduce((gr,Hr)=>{if(Hr!==Ot.id){const si=m[Hr];if(si.class===Ot.class&&si.startDate>Ot.startDate&&(!gr||Ot.startDate<gr.startDate))return si}return gr},null);Pn&&(lr=Pn.startTime,wn=!0)}const Hn=Object.keys(Ot.attr);for(let Pn=0;Pn<Hn.length;Pn++){const gr=Hn[Pn];if(!ra(gr))continue;const Hr=gn[gr];if(Hr)wn&&!(Wt!=null&&Wt.durationKnown)?Hr.endTime=lr:Math.abs(Hr.startTime-Kt)>.01&&(Hr.startTime=Kt,Hr.endTime=lr);else if(d){let si=Ot.attr[gr];zi(gr)&&(si=N(si));const oi=gu(d,Kt,lr,{key:gr,data:si},it.dateRange);oi&&(oi.id=He,this.id3Track.addCue(oi),gn[gr]=oi,s&&(gr==="X-ASSET-LIST"||gr==="X-ASSET-URL")&&oi.addEventListener("enter",this.onEventCueEnter))}}_[He]={cues:gn,dateRange:Ot,durationKnown:wn}}}}}class Fd{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!n.live)return;const d=this.targetLatency;if(d===null)return;const p=r-d,m=Math.min(this.maxLatency,d+n.targetduration);if(p<m&&p>.05&&this.forwardBufferLength>1){const _=Math.min(2,Math.max(1,s)),F=Math.round(2/(1+Math.exp(-.75*p-this.edgeStalled))*20)/20,ee=Math.min(_,Math.max(1,F));this.changeMediaPlaybackRate(t,ee)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:d}=this.config,p=this.hls.userConfig;let m=d&&n||t;(this._targetLatencyUpdated||p.liveSyncDuration||p.liveSyncDurationCount||m===0)&&(m=a!==void 0?a:s*r);const v=r;return m+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,v)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,a=e-t-this.edgeStalled,s=r-n.totalduration,d=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,a),d)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===Z.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class $d extends wa{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(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.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=[],a={},s={};let d=!1,p=!1,m=!1;t.levels.forEach(v=>{const _=v.attrs;let{audioCodec:F,videoCodec:ee}=v;F&&(v.audioCodec=F=ge(F,n)||void 0),ee&&(ee=v.videoCodec=ne(ee));const{width:ie,height:We,unknownCodecs:He}=v,Ot=(He==null?void 0:He.length)||0;if(d||(d=!!(ie&&We)),p||(p=!!ee),m||(m=!!F),Ot||F&&!this.isAudioSupported(F)||ee&&!this.isVideoSupported(ee)){this.log(`Some or all CODECS not supported "${_.CODECS}"`);return}const{CODECS:Kt,"FRAME-RATE":Wt,"HDCP-LEVEL":gn,"PATHWAY-ID":wn,RESOLUTION:lr,"VIDEO-RANGE":An}=_,Hn=`${`${wn||"."}-`}${v.bitrate}-${lr}-${Wt}-${Kt}-${An}-${gn}`;if(a[Hn])if(a[Hn].uri!==v.url&&!v.attrs["PATHWAY-ID"]){const Pn=s[Hn]+=1;v.attrs["PATHWAY-ID"]=new Array(Pn+1).join(".");const gr=this.createLevel(v);a[Hn]=gr,r.push(gr)}else a[Hn].addGroupId("audio",_.AUDIO),a[Hn].addGroupId("text",_.SUBTITLES);else{const Pn=this.createLevel(v);a[Hn]=Pn,s[Hn]=1,r.push(Pn)}}),this.filterAndSortMediaOptions(r,t,d,p,m)}createLevel(e){const t=new ct(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=Bt(r,[])}return t}isAudioSupported(e){return st(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return st(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,a){var s;let d=[],p=[],m=e;const v=((s=t.stats)==null?void 0:s.parsing)||{};if((n||r)&&a&&(m=m.filter(({videoCodec:Kt,videoRange:Wt,width:gn,height:wn})=>(!!Kt||!!(gn&&wn))&&ut(Wt))),m.length===0){Promise.resolve().then(()=>{if(this.hls){let Kt="no level with compatible codecs found in manifest",Wt=Kt;t.levels.length&&(Wt=`one or more CODECS in variant not supported: ${ft(t.levels.map(wn=>wn.attrs.CODECS).filter((wn,lr,An)=>An.indexOf(wn)===lr))}`,this.warn(Wt),Kt+=` (${Wt})`);const gn=new Error(Kt);this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:Z.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:gn,reason:Wt})}}),v.end=performance.now();return}t.audioTracks&&(d=t.audioTracks.filter(Kt=>!Kt.audioCodec||this.isAudioSupported(Kt.audioCodec)),qu(d)),t.subtitles&&(p=t.subtitles,qu(p));const _=m.slice(0);m.sort((Kt,Wt)=>{if(Kt.attrs["HDCP-LEVEL"]!==Wt.attrs["HDCP-LEVEL"])return(Kt.attrs["HDCP-LEVEL"]||"")>(Wt.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&Kt.height!==Wt.height)return Kt.height-Wt.height;if(Kt.frameRate!==Wt.frameRate)return Kt.frameRate-Wt.frameRate;if(Kt.videoRange!==Wt.videoRange)return $e.indexOf(Kt.videoRange)-$e.indexOf(Wt.videoRange);if(Kt.videoCodec!==Wt.videoCodec){const gn=_e(Kt.videoCodec),wn=_e(Wt.videoCodec);if(gn!==wn)return wn-gn}if(Kt.uri===Wt.uri&&Kt.codecSet!==Wt.codecSet){const gn=et(Kt.codecSet),wn=et(Wt.codecSet);if(gn!==wn)return wn-gn}return Kt.averageBitrate!==Wt.averageBitrate?Kt.averageBitrate-Wt.averageBitrate:0});let F=_[0];if(this.steering&&(m=this.steering.filterParsedLevels(m),m.length!==_.length)){for(let Kt=0;Kt<_.length;Kt++)if(_[Kt].pathwayId===m[0].pathwayId){F=_[Kt];break}}this._levels=m;for(let Kt=0;Kt<m.length;Kt++)if(m[Kt]===F){var ee;this._firstLevel=Kt;const Wt=F.bitrate,gn=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${m.length} level(s) found, first bitrate: ${Wt}`),((ee=this.hls.userConfig)==null?void 0:ee.abrEwmaDefaultEstimate)===void 0){const wn=Math.min(Wt,this.hls.config.abrEwmaDefaultEstimateMax);wn>gn&&gn===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=wn)}break}const ie=a&&!r,We=this.hls.config,He=!!(We.audioStreamController&&We.audioTrackController),Ot={levels:m,audioTracks:d,subtitleTracks:p,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:a,video:r,altAudio:He&&!ie&&d.some(Kt=>!!Kt.url)};v.end=performance.now(),this.hls.trigger(g.MANIFEST_PARSED,Ot)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const v=new Error("invalid level idx"),_=e<0;if(this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.LEVEL_SWITCH_ERROR,level:e,fatal:_,error:v,reason:v.message}),_)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,a=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],d=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&a===d)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${d?" with Pathway "+d:""} from level ${n}${a?" with Pathway "+a:""}`);const p={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(g.LEVEL_SWITCHING,p);const m=s.details;if(!m||m.live){const v=this.switchParams(s.uri,r==null?void 0:r.details,m);this.loadPlaylist(v)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===H.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===V.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(a=>!!n[a]))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:a}=t,s=t.levelInfo;if(!s){var d;this.warn(`Invalid level index ${r}`),(d=t.deliveryDirectives)!=null&&d.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let p=s.details;p===t.details&&p.advanced&&(p=void 0),this.playlistLoaded(r,t,p)}else(n=t.deliveryDirectives)!=null&&n.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,a=e.attrs["PATHWAY-ID"],s=e.details,d=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${a?" Pathway "+a:""}${d&&s.live?" age "+d.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(g.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((a,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(d=>d.level=-1)),!1));Ua(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(g.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(g.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function qu(o){const e={};o.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function ec(){return self.SourceBuffer||self.WebKitSourceBuffer}function tc(){if(!ze())return!1;const e=ec();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function zd(){if(!tc())return!1;const o=ze();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(xe(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(xe(e,"audio"))))}function Zd(){var o;const e=ec();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const jd=100;class Ud extends oo{constructor(e,t,n){super(e,t,n,"stream-controller",V.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,a=r?r.currentTime:null;if(a===null||!i(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(r,a,V.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(jd),this.level=-1,!this.startFragRequested){let a=r.startLevel;a===-1&&(r.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=r.firstAutoLevel),r.nextLoadLevel=a,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=fr.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=fr.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case fr.WAITING_LEVEL:{const{levels:e,level:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=fr.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=fr.IDLE;break}break}case fr.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===fr.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[a]))return;const s=n[a],d=this.getMainFwdBufferInfo();if(d===null)return;const p=this.getLevelDetails();if(p&&this._streamEnded(d,p)){const We={};this.altAudio===2&&(We.type="video"),this.hls.trigger(g.BUFFER_EOS,We),this.state=fr.ENDED;return}if(!this.buffering)return;e.loadLevel!==a&&e.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=e.nextLoadLevel=a;const m=s.details;if(!m||this.state===fr.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=fr.WAITING_LEVEL,this.startFragRequested=!1;return}const v=d.len,_=this.getMaxBufferLength(s.maxBitrate);if(v>=_)return;this.backtrackFragment&&this.backtrackFragment.start>d.end&&(this.backtrackFragment=null);const F=this.backtrackFragment?this.backtrackFragment.start:d.end;let ee=this.getNextFragment(F,m);if(this.couldBacktrack&&!this.fragPrevious&&ee&&dt(ee)&&this.fragmentTracker.getState(ee)!==Qn.OK){var ie;const He=((ie=this.backtrackFragment)!=null?ie:ee).sn-m.startSN,Ot=m.fragments[He-1];Ot&&ee.cc===Ot.cc&&(ee=Ot,this.fragmentTracker.removeFragment(Ot))}else this.backtrackFragment&&d.len&&(this.backtrackFragment=null);if(ee&&this.isLoopLoading(ee,F)){if(!ee.gap){const He=this.audioOnly&&!this.altAudio?de.AUDIO:de.VIDEO,Ot=(He===de.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ot&&this.afterBufferFlushed(Ot,He,V.MAIN)}ee=this.getNextFragmentLoopLoading(ee,m,d,V.MAIN,_)}ee&&(ee.initSegment&&!ee.initSegment.data&&!this.bitrateTest&&(ee=ee.initSegment),this.loadFragment(ee,s,F))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Qn.NOT_LOADED||r===Qn.PARTIAL?dt(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,V.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 a=this.getLevelDetails();if(a!=null&&a.live){const d=this.getMainFwdBufferInfo();if(!d||d.len<a.targetduration*2)return}if(!t.paused&&e){const d=this.hls.nextLoadLevel,p=e[d],m=this.fragLastKbps;m&&this.fragCurrent?n=this.fragCurrent.duration*p.maxBitrate/(1e3*m)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const d=this.followingBufferedFrag(s);if(d){this.abortCurrentFrag();const p=d.maxStartPTS?d.maxStartPTS:d.start,m=d.duration,v=Math.max(s.end,p+Math.min(Math.max(m-this.config.maxFragLookUpTolerance,m*(this.couldBacktrack?.5:.125)),m*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(v,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 fr.KEY_LOADING:case fr.FRAG_LOADING:case fr.FRAG_LOADING_WAITING_RETRY:case fr.PARSING:case fr.PARSED:this.state=fr.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ka(n,"playing",this.onMediaPlaying),Ka(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Qa(n,"playing",this.onMediaPlaying),Qa(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(g.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;for(let a=0;a<t.levels.length;a++){const s=t.levels[a].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!Zd(),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!==fr.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=fr.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:a}=this,s=t.level,d=t.details,p=d.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${d.startSN},${d.endSN}]${d.lastPartSn?`[part-${d.lastPartSn}-${d.lastPartIndex}]`:""}, cc [${d.startCC}, ${d.endCC}] duration:${p}`);const m=t.levelInfo,v=this.fragCurrent;v&&(this.state===fr.FRAG_LOADING||this.state===fr.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let _=0;if(d.live||(n=m.details)!=null&&n.live){var F;if(this.checkLiveUpdate(d),d.deltaUpdateFailed)return;_=this.alignPlaylists(d,m.details,(F=this.levelLastLoaded)==null?void 0:F.details)}if(m.details=d,this.levelLastLoaded=m,a||this.setStartPosition(d,_),this.hls.trigger(g.LEVEL_UPDATED,{details:d,level:s}),this.state===fr.WAITING_LEVEL){if(this.waitForCdnTuneIn(d))return;this.state=fr.IDLE}a&&d.live&&this.synchronizeToLiveEdge(d),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,a=this.getLoadPosition(),s=e.fragmentStart,d=e.edge,p=a>=s-t.maxFragLookUpTolerance&&a<=d;if(r!==null&&n.duration>r&&(a<r||!p)){const v=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!p&&n.readyState<4||a<d-v)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${a.toFixed(3)} is located too far from the end of live sliding playlist: ${d}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var m;const _=mr.bufferInfo(n,r,0);if(!((m=_.buffered)!=null&&m.length)){n.currentTime=r;return}if(_.start<=a){n.currentTime=r;return}const{nextStart:ee}=mr.bufferedInfo(_.buffered,a,0);ee&&(n.currentTime=ee)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:a}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const d=s[n.level];if(!d){this.warn(`Level ${n.level} not found on progress`);return}const p=d.details;if(!p){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const m=d.videoCodec,v=p.PTSKnown||!p.live,_=(t=n.initSegment)==null?void 0:t.data,F=this._getAudioCodec(d),ee=this.transmuxer=this.transmuxer||new Ca(this.hls,V.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ie=r?r.index:-1,We=ie!==-1,He=new ri(n.level,n.sn,n.stats.chunkCount,a.byteLength,ie,We),Ot=this.initPTS[n.cc];ee.push(a,_,F,m,n,r,p.totalduration,v,He,Ot)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio!==0;if(Ln(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.altAudio=0,this.fragmentTracker.removeAllFragments(),n.once(g.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(g.AUDIO_TRACK_SWITCHED,t)}),n.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(g.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Ln(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,a,s=!1;for(const d in n){const p=n[d];if(p.id==="main"){if(a=d,r=p,d==="video"){const m=n[d];m&&(this.videoBuffer=m.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,a=n.type===V.MAIN;if(a){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===fr.PARSED&&(this.state=fr.IDLE);return}const d=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*d.total/(d.buffering.end-d.loading.first)),dt(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&mr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=fr.ERROR;return}switch(t.details){case Z.FRAG_GAP:case Z.FRAG_PARSING_ERROR:case Z.FRAG_DECRYPT_ERROR:case Z.FRAG_LOAD_ERROR:case Z.FRAG_LOAD_TIMEOUT:case Z.KEY_LOAD_ERROR:case Z.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(V.MAIN,t);break;case Z.LEVEL_LOAD_ERROR:case Z.LEVEL_LOAD_TIMEOUT:case Z.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===fr.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===H.LEVEL&&(this.state=fr.IDLE);break;case Z.BUFFER_ADD_CODEC_ERROR:case Z.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case Z.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case Z.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=fr.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==de.AUDIO||!this.altAudio){const n=(t===de.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,V.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const a=this.getLevelDetails(),s=mr.getBuffered(e),d=s.length?s.start(0):0,p=d-n,m=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||p>0&&(p<m||this.loadingParts&&p<2*((a==null?void 0:a.partTarget)||0)))&&(this.log(`adjusting start position by ${p} to match buffer start`),n+=p,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${d}`),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,a=n==null?void 0:n.frag;if(!a||this.fragContextChanged(a))return;t.fragmentError=0,this.state=fr.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(g.FRAG_LOADED,n),a.bitrateTest=!1}).catch(n=>{this.state===fr.STOPPED||this.state===fr.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:d,part:p,level:m}=s,{video:v,text:_,id3:F,initSegment:ee}=r,{details:ie}=m,We=this.altAudio?void 0:r.audio;if(this.fragContextChanged(d)){this.fragmentTracker.removeFragment(d);return}if(this.state=fr.PARSING,ee){const He=ee.tracks;if(He){const gn=d.initSegment||d;if(this.unhandledEncryptionError(ee,d))return;this._bufferInitSegment(m,He,gn,a),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:gn,id:t,tracks:He})}const Ot=ee.initPTS,Kt=ee.timescale,Wt=this.initPTS[d.cc];if(i(Ot)&&(!Wt||Wt.baseTime!==Ot||Wt.timescale!==Kt)){const gn=ee.trackId;this.initPTS[d.cc]={baseTime:Ot,timescale:Kt,trackId:gn},n.trigger(g.INIT_PTS_FOUND,{frag:d,id:t,initPTS:Ot,timescale:Kt,trackId:gn})}}if(v&&ie){We&&v.type==="audiovideo"&&this.logMuxedErr(d);const He=ie.fragments[d.sn-1-ie.startSN],Ot=d.sn===ie.startSN,Kt=!He||d.cc>He.cc;if(r.independent!==!1){const{startPTS:Wt,endPTS:gn,startDTS:wn,endDTS:lr}=v;if(p)p.elementaryStreams[v.type]={startPTS:Wt,endPTS:gn,startDTS:wn,endDTS:lr};else if(v.firstKeyFrame&&v.independent&&a.id===1&&!Kt&&(this.couldBacktrack=!0),v.dropped&&v.independent){const An=this.getMainFwdBufferInfo(),Vn=(An?An.end:this.getLoadPosition())+this.config.maxBufferHole,Hn=v.firstKeyFramePTS?v.firstKeyFramePTS:Wt;if(!Ot&&Vn<Hn-this.config.maxBufferHole&&!Kt){this.backtrack(d);return}else Kt&&(d.gap=!0);d.setElementaryStreamInfo(v.type,d.start,gn,d.start,lr,!0)}else Ot&&Wt-(ie.appliedTimelineOffset||0)>Vl&&(d.gap=!0);d.setElementaryStreamInfo(v.type,Wt,gn,wn,lr),this.backtrackFragment&&(this.backtrackFragment=d),this.bufferFragmentData(v,d,p,a,Ot||Kt)}else if(Ot||Kt)d.gap=!0;else{this.backtrack(d);return}}if(We){const{startPTS:He,endPTS:Ot,startDTS:Kt,endDTS:Wt}=We;p&&(p.elementaryStreams[de.AUDIO]={startPTS:He,endPTS:Ot,startDTS:Kt,endDTS:Wt}),d.setElementaryStreamInfo(de.AUDIO,He,Ot,Kt,Wt),this.bufferFragmentData(We,d,p,a)}if(ie&&F!=null&&F.samples.length){const He={id:t,frag:d,details:ie,samples:F.samples};n.trigger(g.FRAG_PARSING_METADATA,He)}if(ie&&_){const He={id:t,frag:d,details:ie,samples:_.samples};n.trigger(g.FRAG_PARSING_USERDATA,He)}}logMuxedErr(e){this.warn(`${dt(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==fr.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:a,video:s,audiovideo:d}=t;if(a){const m=e.audioCodec;let v=cn(a.codec,m);v==="mp4a"&&(v="mp4a.40.5");const _=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){v&&(v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5");const F=a.metadata;F&&"channelCount"in F&&(F.channelCount||1)!==1&&_.indexOf("firefox")===-1&&(v="mp4a.40.5")}v&&v.indexOf("mp4a.40.5")!==-1&&_.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(v="mp4a.40.2",this.log(`Android: force audio codec to ${v}`)),m&&m!==v&&this.log(`Swapping manifest audio codec "${m}" for "${v}"`),a.levelCodec=v,a.id=V.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${v||""}/${m||""}/${a.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=V.MAIN;const m=s.codec;if((m==null?void 0:m.length)===4)switch(m){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${m}]${s.codec!==m?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}d&&(this.log(`Init audiovideo buffer, container:${d.container}, codecs[level/parsed]=[${e.codecs}/${d.codec}]`),delete t.video,delete t.audio);const p=Object.keys(t);if(p.length){if(this.hls.trigger(g.BUFFER_CODECS,t),!this.hls)return;p.forEach(m=>{const _=t[m].initSegment;_!=null&&_.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:m,data:_,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,V.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=fr.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(mr.isBuffered(e,n)?t=this.getAppendedFrag(n):mr.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,a=t.level;(!r||t.sn!==r.sn||r.level!==a)&&(this.fragPlaying=t,this.hls.trigger(g.FRAG_CHANGED,{frag:t}),(!r||r.level!==a)&&this.hls.trigger(g.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return i(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(i(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Xn(null,n.fragments,t):null);if(r){const a=r.programDateTime;if(a!==null){const s=a+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Kd extends X{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyIdToKeyInfo){const r=this.keyIdToKeyInfo[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.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(e,t=Z.KEY_LOAD_ERROR,n,r,a){return new or({type:fe.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:a,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,a=t.length;r<a;r++){const s=t[r];if(e.cc<=s.cc&&(!dt(e)||!dt(s)||e.sn<s.sn)||!n&&r==a-1)return this.emeController.selectKeySystemFormat(s).then(d=>{if(!this.emeController)return;s.setKeyFormat(d);const p=ma(d);if(p)return this.emeController.getKeySystemAccess([p])})}if(this.config.requireKeySystemAccessOnStart){const r=ua(this.config);if(r.length)return this.emeController.getKeySystemAccess(r)}}return null}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 a=e.decryptdata;if(!a){const m=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,m))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const d=vu(a);let p=this.keyIdToKeyInfo[d];if((n=p)!=null&&n.decryptdata.key)return a.key=p.decryptdata.key,Promise.resolve({frag:e,keyInfo:p});if(this.emeController&&(r=p)!=null&&r.keyLoadPromise)switch(this.emeController.getKeyStatus(p.decryptdata)){case"usable":case"usable-in-future":return p.keyLoadPromise.then(v=>{const{keyInfo:_}=v;return a.key=_.decryptdata.key,{frag:e,keyInfo:_}})}switch(this.log(`${this.keyIdToKeyInfo[d]?"Rel":"L"}oading${a.keyId?" keyId: "+le(a.keyId):""} URI: ${a.uri} from ${e.type} ${e.level}`),p=this.keyIdToKeyInfo[d]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(p,e):this.loadKeyEME(p,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(p,e);default:return Promise.reject(this.createKeyLoadError(e,Z.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r;if(!e.decryptdata.keyId&&(r=t.initSegment)!=null&&r.data){const s=yt(t.initSegment.data);if(s.length){let d=s[0];d.some(p=>p!==0)?(this.log(`Using keyId found in init segment ${le(d)}`),Sa.setKeyIdForUri(e.decryptdata.uri,d)):(d=Sa.addKeyIdForUri(e.decryptdata.uri),this.log(`Generating keyId to patch media ${le(d)}`)),e.decryptdata.keyId=d}}if(!e.decryptdata.keyId&&!dt(t))return Promise.resolve(n);const a=this.emeController.loadKey(n);return(e.keyLoadPromise=a.then(s=>(e.mediaKeySessionContext=s,n))).catch(s=>{throw e.keyLoadPromise=null,"data"in s&&(s.data.frag=t),s})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,a=new r(n);return t.keyLoader=e.loader=a,e.keyLoadPromise=new Promise((s,d)=>{const p={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},m=n.keyLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(F,ee,ie,We)=>{const{frag:He,keyInfo:Ot}=ie,Kt=vu(Ot.decryptdata);if(!He.decryptdata||Ot!==this.keyIdToKeyInfo[Kt])return d(this.createKeyLoadError(He,Z.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),We));Ot.decryptdata.key=He.decryptdata.key=new Uint8Array(F.data),He.keyLoader=null,Ot.loader=null,s({frag:He,keyInfo:Ot})},onError:(F,ee,ie,We)=>{this.resetLoader(ee),d(this.createKeyLoadError(t,Z.KEY_LOAD_ERROR,new Error(`HTTP Error ${F.code} loading key ${F.text}`),ie,T({url:p.url,data:void 0},F)))},onTimeout:(F,ee,ie)=>{this.resetLoader(ee),d(this.createKeyLoadError(t,Z.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ie))},onAbort:(F,ee,ie)=>{this.resetLoader(ee),d(this.createKeyLoadError(t,Z.INTERNAL_ABORTED,new Error("key loading aborted"),ie))}};a.load(p,v,_)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,a=n.loader;t.keyLoader===a&&(t.keyLoader=null,n.loader=null);const s=vu(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function vu(o){if(o.keyFormat!==ni.FAIRPLAY){const e=o.keyId;if(e)return le(e)}return o.uri}function nc(o){const{type:e}=o;switch(e){case H.AUDIO_TRACK:return V.AUDIO;case H.SUBTITLE_TRACK:return V.SUBTITLE;default:return V.MAIN}}function yu(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Hd{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,a=n||r,s=new a(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:H.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:a,url:s,deliveryDirectives:d,levelInfo:p}=t;this.load({id:n,level:r,pathwayId:a,responseType:"text",type:H.LEVEL,url:s,deliveryDirectives:d,levelOrTrack:p})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:a,deliveryDirectives:s,track:d}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:H.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:d})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:a,deliveryDirectives:s,track:d}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:H.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:d})}onLevelsUpdated(e,t){const n=this.loaders[H.LEVEL];if(n){const r=n.context;r&&!t.levels.some(a=>a===r.levelOrTrack)&&(n.abort(),delete this.loaders[H.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const m=this.hls.logger,v=r.context;if(v&&v.levelOrTrack===e.levelOrTrack&&(v.url===e.url||v.deliveryDirectives&&!e.deliveryDirectives)){v.url===e.url?m.log(`[playlist-loader]: ignore ${e.url} ongoing request`):m.log(`[playlist-loader]: ignore ${e.url} in favor of ${v.url}`);return}m.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let a;if(e.type===H.MANIFEST?a=n.manifestLoadPolicy.default:a=b({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),i((t=e.deliveryDirectives)==null?void 0:t.part)){let m;if(e.type===H.LEVEL&&e.level!==null?m=this.hls.levels[e.level].details:e.type===H.AUDIO_TRACK&&e.id!==null?m=this.hls.audioTracks[e.id].details:e.type===H.SUBTITLE_TRACK&&e.id!==null&&(m=this.hls.subtitleTracks[e.id].details),m){const v=m.partTarget,_=m.targetduration;if(v&&_){const F=Math.max(v*3,_*.8)*1e3;a=b({},a,{maxTimeToFirstByteMs:Math.min(F,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(F,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},d={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},p={onSuccess:(m,v,_,F)=>{const ee=this.getInternalLoader(_);this.resetInternalLoader(_.type);const ie=m.data;v.parsing.start=performance.now(),za.isMediaPlaylist(ie)||_.type!==H.MANIFEST?this.handleTrackOrLevelPlaylist(m,v,_,F||null,ee):this.handleMasterPlaylist(m,v,_,F)},onError:(m,v,_,F)=>{this.handleNetworkError(v,_,!1,m,F)},onTimeout:(m,v,_)=>{this.handleNetworkError(v,_,!0,void 0,m)}};r.load(e,d,p)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const a=this.hls,s=e.data,d=yu(e,n),p=za.parseMasterPlaylist(s,d);if(p.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,p.playlistParsingError,r,t);return}const{contentSteering:m,levels:v,sessionData:_,sessionKeys:F,startTimeOffset:ee,variableList:ie}=p;this.variableList=ie,v.forEach(Kt=>{const{unknownCodecs:Wt}=Kt;if(Wt){const{preferManagedMediaSource:gn}=this.hls.config;let{audioCodec:wn,videoCodec:lr}=Kt;for(let An=Wt.length;An--;){const Vn=Wt[An];st(Vn,"audio",gn)?(Kt.audioCodec=wn=wn?`${wn},${Vn}`:Vn,Ft.audio[wn.substring(0,4)]=2,Wt.splice(An,1)):st(Vn,"video",gn)&&(Kt.videoCodec=lr=lr?`${lr},${Vn}`:Vn,Ft.video[lr.substring(0,4)]=2,Wt.splice(An,1))}}});const{AUDIO:We=[],SUBTITLES:He,"CLOSED-CAPTIONS":Ot}=za.parseMasterPlaylistMedia(s,d,p);We.length&&!We.some(Wt=>!Wt.url)&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),We.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Gr({}),bitrate:0,url:""})),a.trigger(g.MANIFEST_LOADED,{levels:v,audioTracks:We,subtitles:He,captions:Ot,contentSteering:m,url:d,stats:t,networkDetails:r,sessionData:_,sessionKeys:F,startTimeOffset:ee,variableList:ie})}handleTrackOrLevelPlaylist(e,t,n,r,a){const s=this.hls,{id:d,level:p,type:m}=n,v=yu(e,n),_=i(p)?p:i(d)?d:0,F=nc(n),ee=za.parseLevelPlaylist(e.data,v,_,F,0,this.variableList);if(m===H.MANIFEST){const ie={attrs:new Gr({}),bitrate:0,details:ee,name:"",url:v};ee.requestScheduled=t.loading.start+Ui(ee,0),s.trigger(g.MANIFEST_LOADED,{levels:[ie],audioTracks:[],url:v,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=ee,this.handlePlaylistLoaded(ee,e,t,n,r,a)}handleManifestParsingError(e,t,n,r,a){this.hls.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:Z.MANIFEST_PARSING_ERROR,fatal:t.type===H.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:a})}handleNetworkError(e,t,n=!1,r,a){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===H.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===H.AUDIO_TRACK||e.type===H.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const d=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=Z.UNKNOWN,m=!1;const v=this.getInternalLoader(e);switch(e.type){case H.MANIFEST:p=n?Z.MANIFEST_LOAD_TIMEOUT:Z.MANIFEST_LOAD_ERROR,m=!0;break;case H.LEVEL:p=n?Z.LEVEL_LOAD_TIMEOUT:Z.LEVEL_LOAD_ERROR,m=!1;break;case H.AUDIO_TRACK:p=n?Z.AUDIO_TRACK_LOAD_TIMEOUT:Z.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case H.SUBTITLE_TRACK:p=n?Z.SUBTITLE_TRACK_LOAD_TIMEOUT:Z.SUBTITLE_LOAD_ERROR,m=!1;break}v&&this.resetInternalLoader(e.type);const _={type:fe.NETWORK_ERROR,details:p,fatal:m,url:e.url,loader:v,context:e,error:d,networkDetails:t,stats:a};if(r){const F=(t==null?void 0:t.url)||e.url;_.response=T({url:F,data:void 0},r)}this.hls.trigger(g.ERROR,_)}handlePlaylistLoaded(e,t,n,r,a,s){const d=this.hls,{type:p,level:m,levelOrTrack:v,id:_,groupId:F,deliveryDirectives:ee}=r,ie=yu(t,r),We=nc(r);let He=typeof r.level=="number"&&We===V.MAIN?m:void 0;const Ot=e.playlistParsingError;if(Ot){if(this.hls.logger.warn(`${Ot} ${e.url}`),!d.config.ignorePlaylistParsingErrors){d.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:Z.LEVEL_PARSING_ERROR,fatal:!1,url:ie,error:Ot,reason:Ot.message,response:t,context:r,level:He,parent:We,networkDetails:a,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const Kt=e.playlistParsingError=new Error("No Segments found in Playlist");d.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:Z.LEVEL_EMPTY_ERROR,fatal:!1,url:ie,error:Kt,reason:Kt.message,response:t,context:r,level:He,parent:We,networkDetails:a,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),p){case H.MANIFEST:case H.LEVEL:if(He){if(!v)He=0;else if(v!==d.levels[He]){const Kt=d.levels.indexOf(v);Kt>-1&&(He=Kt)}}d.trigger(g.LEVEL_LOADED,{details:e,levelInfo:v||d.levels[0],level:He||0,id:_||0,stats:n,networkDetails:a,deliveryDirectives:ee,withoutMultiVariant:p===H.MANIFEST});break;case H.AUDIO_TRACK:d.trigger(g.AUDIO_TRACK_LOADED,{details:e,track:v,id:_||0,groupId:F||"",stats:n,networkDetails:a,deliveryDirectives:ee});break;case H.SUBTITLE_TRACK:d.trigger(g.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:_||0,groupId:F||"",stats:n,networkDetails:a,deliveryDirectives:ee});break}}}class bo{static get version(){return lo}static isMSESupported(){return tc()}static isSupported(){return zd()}static getMediaSource(){return ze()}static get Events(){return g}static get MetadataSchema(){return it}static get ErrorTypes(){return fe}static get ErrorDetails(){return Z}static get DefaultConfig(){return bo.defaultConfig?bo.defaultConfig:Id}static set DefaultConfig(e){bo.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new xo,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=Ee(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Rd(bo.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Ld(n,t);const{abrController:r,bufferController:a,capLevelController:s,errorController:d,fpsController:p}=n,m=new d(this),v=this.abrController=new r(this),_=new tr(this),F=n.interstitialsController,ee=F?this.interstitialsController=new F(this,bo):null,ie=this.bufferController=new a(this,_),We=this.capLevelController=new s(this),He=new p(this),Ot=new Hd(this),Kt=n.contentSteeringController,Wt=Kt?new Kt(this):null,gn=this.levelController=new $d(this,Wt),wn=new Bd(this),lr=new Kd(this.config,this.logger),An=this.streamController=new Ud(this,_,lr),Vn=this.gapController=new Nd(this,_);We.setStreamController(An),He.setStreamController(An);const Hn=[Ot,gn,An];ee&&Hn.splice(1,0,ee),Wt&&Hn.splice(1,0,Wt),this.networkControllers=Hn;const Pn=[v,ie,Vn,We,He,wn,_];this.audioTrackController=this.createController(n.audioTrackController,Hn);const gr=n.audioStreamController;gr&&Hn.push(this.audioStreamController=new gr(this,_,lr)),this.subtitleTrackController=this.createController(n.subtitleTrackController,Hn);const Hr=n.subtitleStreamController;Hr&&Hn.push(this.subtititleStreamController=new Hr(this,_,lr)),this.createController(n.timelineController,Pn),lr.emeController=this.emeController=this.createController(n.emeController,Pn),this.cmcdController=this.createController(n.cmcdController,Pn),this.latencyController=this.createController(Fd,Pn),this.coreComponents=Pn,Hn.push(m);const si=m.onErrorOut;typeof si=="function"&&this.on(g.ERROR,si,m),this.on(g.MANIFEST_LOADED,Ot.onManifestLoaded,Ot)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===g.ERROR;this.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(g.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const a=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:Z.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(g.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(g.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(g.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=w.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(g.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[V.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[V.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[V.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=Nc()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Fe(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 a=r;a--;){const s=e[a].attrs["HDCP-LEVEL"];if(s&&s<=n)return a}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=jt(t);return re(e,n,navigator.mediaCapabilities)}}bo.defaultConfig=void 0},16722:function(zn,Pt,u){"use strict";u.d(Pt,{Z:function(){return V}});const i=l=>typeof l=="object"&&l!=null&&l.nodeType===1,U=(l,y)=>(!y||l!=="hidden")&&l!=="visible"&&l!=="clip",O=(l,y)=>{if(l.clientHeight<l.scrollHeight||l.clientWidth<l.scrollWidth){const M=getComputedStyle(l,null);return U(M.overflowY,y)||U(M.overflowX,y)||(b=>{const C=(T=>{if(!T.ownerDocument||!T.ownerDocument.defaultView)return null;try{return T.ownerDocument.defaultView.frameElement}catch($){return null}})(b);return!!C&&(C.clientHeight<b.scrollHeight||C.clientWidth<b.scrollWidth)})(l)}return!1},fe=(l,y,M,b,C,T,$,W)=>T<l&&$>y||T>l&&$<y?0:T<=l&&W<=M||$>=y&&W>=M?T-l-b:$>y&&W<M||T<l&&W>M?$-y+C:0,Z=l=>{const y=l.parentElement;return y==null?l.getRootNode().host||null:y},g=(l,y)=>{var M,b,C,T;if(typeof document=="undefined")return[];const{scrollMode:$,block:W,inline:X,boundary:G,skipOverflowHiddenElements:L}=y,Q=typeof G=="function"?G:It=>It!==G;if(!i(l))throw new TypeError("Invalid target");const P=document.scrollingElement||document.documentElement,A=[];let ce=l;for(;i(ce)&&Q(ce);){if(ce=Z(ce),ce===P){A.push(ce);break}ce!=null&&ce===document.body&&O(ce)&&!O(document.documentElement)||ce!=null&&O(ce,L)&&A.push(ce)}const Ee=(b=(M=window.visualViewport)==null?void 0:M.width)!=null?b:innerWidth,pe=(T=(C=window.visualViewport)==null?void 0:C.height)!=null?T:innerHeight,{scrollX:ze,scrollY:Je}=window,{height:Pe,width:Ze,top:le,right:N,bottom:S,left:q}=l.getBoundingClientRect(),{top:te,right:se,bottom:w,left:I}=(It=>{const Te=window.getComputedStyle(It);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(l);let de=W==="start"||W==="nearest"?le-te:W==="end"?S+w:le+Pe/2-te+w,De=X==="center"?q+Ze/2-I+se:X==="end"?N+se:q-I;const dt=[];for(let It=0;It<A.length;It++){const Te=A[It],{height:rt,width:ht,top:St,right:Me,bottom:Xt,left:tt}=Te.getBoundingClientRect();if($==="if-needed"&&le>=0&&q>=0&&S<=pe&&N<=Ee&&(Te===P&&!O(Te)||le>=St&&S<=Xt&&q>=tt&&N<=Me))return dt;const un=getComputedStyle(Te),vt=parseInt(un.borderLeftWidth,10),bt=parseInt(un.borderTopWidth,10),Ve=parseInt(un.borderRightWidth,10),Le=parseInt(un.borderBottomWidth,10);let oe=0,nt=0;const Ue="offsetWidth"in Te?Te.offsetWidth-Te.clientWidth-vt-Ve:0,K="offsetHeight"in Te?Te.offsetHeight-Te.clientHeight-bt-Le:0,D="offsetWidth"in Te?Te.offsetWidth===0?0:ht/Te.offsetWidth:0,Se="offsetHeight"in Te?Te.offsetHeight===0?0:rt/Te.offsetHeight:0;if(P===Te)oe=W==="start"?de:W==="end"?de-pe:W==="nearest"?fe(Je,Je+pe,pe,bt,Le,Je+de,Je+de+Pe,Pe):de-pe/2,nt=X==="start"?De:X==="center"?De-Ee/2:X==="end"?De-Ee:fe(ze,ze+Ee,Ee,vt,Ve,ze+De,ze+De+Ze,Ze),oe=Math.max(0,oe+Je),nt=Math.max(0,nt+ze);else{oe=W==="start"?de-St-bt:W==="end"?de-Xt+Le+K:W==="nearest"?fe(St,Xt,rt,bt,Le+K,de,de+Pe,Pe):de-(St+rt/2)+K/2,nt=X==="start"?De-tt-vt:X==="center"?De-(tt+ht/2)+Ue/2:X==="end"?De-Me+Ve+Ue:fe(tt,Me,ht,vt,Ve+Ue,De,De+Ze,Ze);const{scrollLeft:Ae,scrollTop:Ce}=Te;oe=Se===0?0:Math.max(0,Math.min(Ce+oe/Se,Te.scrollHeight-rt/Se+K)),nt=D===0?0:Math.max(0,Math.min(Ae+nt/D,Te.scrollWidth-ht/D+Ue)),de+=Ce-oe,De+=Ae-nt}dt.push({el:Te,top:oe,left:nt})}return dt},H=l=>l===!1?{block:"end",inline:"nearest"}:(y=>y===Object(y)&&Object.keys(y).length!==0)(l)?l:{block:"start",inline:"nearest"};function V(l,y){if(!l.isConnected||!(C=>{let T=C;for(;T&&T.parentNode;){if(T.parentNode===document)return!0;T=T.parentNode instanceof ShadowRoot?T.parentNode.host:T.parentNode}return!1})(l))return;const M=(C=>{const T=window.getComputedStyle(C);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(l);if((C=>typeof C=="object"&&typeof C.behavior=="function")(y))return y.behavior(g(l,y));const b=typeof y=="boolean"||y==null?void 0:y.behavior;for(const{el:C,top:T,left:$}of g(l,H(y))){const W=T-M.top+M.bottom,X=$-M.left+M.right;C.scroll({top:W,left:X,behavior:b})}}}}]);
}());