|
|
!(function(){var lc=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[3504],{70557:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},27812:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},89489:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},59477:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},40001:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},49198:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},84105:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},18785:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},73331:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},15277:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},52671:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},8657:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},56082:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},33853:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},15075:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},43531:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},61485:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={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"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},47472:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(60499),ie=d(59301),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},le=U,F=d(7657),g=function(C,P){return ie.createElement(F.Z,(0,l.Z)({},C,{ref:P,icon:le}))},q=ie.forwardRef(g),Q=q},68196:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Qe}});var l=d(85899),ie=d(72190),U=d(42244),le=d(43403),F=d(92310),g=d.n(F),q=d(29301),Q=d(76846),o=d(96452),C=d(6089),P=d(80402),y=d(34280),S=d(49658),I=d(59301),N=d(60499),W=d(77900),H=d(8654);function j(Ne){var Oe=Ne.prefixCls,re=Ne.align,Fe=Ne.arrow,Re=Ne.arrowPos,Z=Fe||{},O=Z.className,me=Z.content,Ee=Re.x,ge=Ee===void 0?0:Ee,we=Re.y,ke=we===void 0?0:we,Ye=I.useRef();if(!re||!re.points)return null;var oe={position:"absolute"};if(re.autoArrow!==!1){var fe=re.points[0],dt=re.points[1],ot=fe[0],ft=fe[1],ht=dt[0],Ge=dt[1];ot===ht||!["t","b"].includes(ot)?oe.top=ke:ot==="t"?oe.top=0:oe.bottom=0,ft===Ge||!["l","r"].includes(ft)?oe.left=ge:ft==="l"?oe.left=0:oe.right=0}return I.createElement("div",{ref:Ye,className:g()("".concat(Oe,"-arrow"),O),style:oe},me)}function A(Ne){var Oe=Ne.prefixCls,re=Ne.open,Fe=Ne.zIndex,Re=Ne.mask,Z=Ne.motion;return Re?I.createElement(W.default,(0,N.Z)({},Z,{motionAppear:!0,visible:re,removeOnLeave:!0}),function(O){var me=O.className;return I.createElement("div",{style:{zIndex:Fe},className:g()("".concat(Oe,"-mask"),me)})}):null}var V=I.memo(function(Ne){var Oe=Ne.children;return Oe},function(Ne,Oe){return Oe.cache}),R=V,L=I.forwardRef(function(Ne,Oe){var re=Ne.popup,Fe=Ne.className,Re=Ne.prefixCls,Z=Ne.style,O=Ne.target,me=Ne.onVisibleChanged,Ee=Ne.open,ge=Ne.keepDom,we=Ne.fresh,ke=Ne.onClick,Ye=Ne.mask,oe=Ne.arrow,fe=Ne.arrowPos,dt=Ne.align,ot=Ne.motion,ft=Ne.maskMotion,ht=Ne.forceRender,Ge=Ne.getPopupContainer,Ct=Ne.autoDestroy,gt=Ne.portal,Ce=Ne.zIndex,Je=Ne.onMouseEnter,_=Ne.onMouseLeave,D=Ne.onPointerEnter,Ze=Ne.onPointerDownCapture,ee=Ne.ready,ye=Ne.offsetX,Ot=Ne.offsetY,He=Ne.offsetR,it=Ne.offsetB,ct=Ne.onAlign,he=Ne.onPrepare,be=Ne.stretch,je=Ne.targetWidth,Ue=Ne.targetHeight,$=typeof re=="function"?re():re,ut=Ee||ge,xe=(Ge==null?void 0:Ge.length)>0,At=I.useState(!Ge||!xe),zt=(0,ie.Z)(At,2),qt=zt[0],cn=zt[1];if((0,y.Z)(function(){!qt&&xe&&O&&cn(!0)},[qt,xe,O]),!qt)return null;var gn="auto",En={left:"-1000vw",top:"-1000vh",right:gn,bottom:gn};if(ee||!Ee){var Fn,Hn=dt.points,An=dt.dynamicInset||((Fn=dt._experimental)===null||Fn===void 0?void 0:Fn.dynamicInset),qn=An&&Hn[0][1]==="r",vn=An&&Hn[0][0]==="b";qn?(En.right=He,En.left=gn):(En.left=ye,En.right=gn),vn?(En.bottom=it,En.top=gn):(En.top=Ot,En.bottom=gn)}var Gt={};return be&&(be.includes("height")&&Ue?Gt.height=Ue:be.includes("minHeight")&&Ue&&(Gt.minHeight=Ue),be.includes("width")&&je?Gt.width=je:be.includes("minWidth")&&je&&(Gt.minWidth=je)),Ee||(Gt.pointerEvents="none"),I.createElement(gt,{open:ht||ut,getContainer:Ge&&function(){return Ge(O)},autoDestroy:Ct},I.createElement(A,{prefixCls:Re,open:Ee,zIndex:Ce,mask:Ye,motion:ft}),I.createElement(q.Z,{onResize:ct,disabled:!Ee},function(Xt){return I.createElement(W.default,(0,N.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ht,leavedClassName:"".concat(Re,"-hidden")},ot,{onAppearPrepare:he,onEnterPrepare:he,visible:Ee,onVisibleChanged:function(Cn){var yt;ot==null||(yt=ot.onVisibleChanged)===null||yt===void 0||yt.call(ot,Cn),me(Cn)}}),function(Dn,Cn){var yt=Dn.className,Et=Dn.style,Be=g()(Re,yt,Fe);return I.createElement("div",{ref:(0,H.sQ)(Xt,Oe,Cn),className:Be,style:(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({"--arrow-x":"".concat(fe.x||0,"px"),"--arrow-y":"".concat(fe.y||0,"px")},En),Gt),Et),{},{boxSizing:"border-box",zIndex:Ce},Z),onMouseEnter:Je,onMouseLeave:_,onPointerEnter:D,onClick:ke,onPointerDownCapture:Ze},oe&&I.createElement(j,{prefixCls:Re,arrow:oe,arrowPos:fe,align:dt}),I.createElement(R,{cache:!Ee&&!we},$))})}))}),ae=L,pe=I.forwardRef(function(Ne,Oe){var re=Ne.children,Fe=Ne.getTriggerDOMNode,Re=(0,H.Yr)(re),Z=I.useCallback(function(me){(0,H.mH)(Oe,Fe?Fe(me):me)},[Fe]),O=(0,H.x1)(Z,(0,H.C4)(re));return Re?I.cloneElement(re,{ref:O}):re}),ce=pe,Le=I.createContext(null),$e=Le;function Te(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function Pe(Ne,Oe,re,Fe){return I.useMemo(function(){var Re=Te(re!=null?re:Oe),Z=Te(Fe!=null?Fe:Oe),O=new Set(Re),me=new Set(Z);return Ne&&(O.has("hover")&&(O.delete("hover"),O.add("click")),me.has("hover")&&(me.delete("hover"),me.add("click"))),[O,me]},[Ne,Oe,re,Fe])}var se=d(29194);function K(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=arguments.length>2?arguments[2]:void 0;return re?Ne[0]===Oe[0]:Ne[0]===Oe[0]&&Ne[1]===Oe[1]}function w(Ne,Oe,re,Fe){for(var Re=re.points,Z=Object.keys(Ne),O=0;O<Z.length;O+=1){var me,Ee=Z[O];if(K((me=Ne[Ee])===null||me===void 0?void 0:me.points,Re,Fe))return"".concat(Oe,"-placement-").concat(Ee)}return""}function te(Ne,Oe,re,Fe){return Oe||(re?{motionName:"".concat(Ne,"-").concat(re)}:Fe?{motionName:Fe}:null)}function ne(Ne){return Ne.ownerDocument.defaultView}function z(Ne){for(var Oe=[],re=Ne==null?void 0:Ne.parentElement,Fe=["hidden","scroll","clip","auto"];re;){var Re=ne(re).getComputedStyle(re),Z=Re.overflowX,O=Re.overflowY,me=Re.overflow;[Z,O,me].some(function(Ee){return Fe.includes(Ee)})&&Oe.push(re),re=re.parentElement}return Oe}function x(Ne){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ne)?Oe:Ne}function T(Ne){return x(parseFloat(Ne),0)}function G(Ne,Oe){var re=(0,l.Z)({},Ne);return(Oe||[]).forEach(function(Fe){if(!(Fe instanceof HTMLBodyElement||Fe instanceof HTMLHtmlElement)){var Re=ne(Fe).getComputedStyle(Fe),Z=Re.overflow,O=Re.overflowClipMargin,me=Re.borderTopWidth,Ee=Re.borderBottomWidth,ge=Re.borderLeftWidth,we=Re.borderRightWidth,ke=Fe.getBoundingClientRect(),Ye=Fe.offsetHeight,oe=Fe.clientHeight,fe=Fe.offsetWidth,dt=Fe.clientWidth,ot=T(me),ft=T(Ee),ht=T(ge),Ge=T(we),Ct=x(Math.round(ke.width/fe*1e3)/1e3),gt=x(Math.round(ke.height/Ye*1e3)/1e3),Ce=(fe-dt-ht-Ge)*Ct,Je=(Ye-oe-ot-ft)*gt,_=ot*gt,D=ft*gt,Ze=ht*Ct,ee=Ge*Ct,ye=0,Ot=0;if(Z==="clip"){var He=T(O);ye=He*Ct,Ot=He*gt}var it=ke.x+Ze-ye,ct=ke.y+_-Ot,he=it+ke.width+2*ye-Ze-ee-Ce,be=ct+ke.height+2*Ot-_-D-Je;re.left=Math.max(re.left,it),re.top=Math.max(re.top,ct),re.right=Math.min(re.right,he),re.bottom=Math.min(re.bottom,be)}}),re}function ve(Ne){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,re="".concat(Oe),Fe=re.match(/^(.*)\%$/);return Fe?Ne*(parseFloat(Fe[1])/100):parseFloat(re)}function We(Ne,Oe){var re=Oe||[],Fe=(0,ie.Z)(re,2),Re=Fe[0],Z=Fe[1];return[ve(Ne.width,Re),ve(Ne.height,Z)]}function st(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ne[0],Ne[1]]}function _e(Ne,Oe){var re=Oe[0],Fe=Oe[1],Re,Z;return re==="t"?Z=Ne.y:re==="b"?Z=Ne.y+Ne.height:Z=Ne.y+Ne.height/2,Fe==="l"?Re=Ne.x:Fe==="r"?Re=Ne.x+Ne.width:Re=Ne.x+Ne.width/2,{x:Re,y:Z}}function Ke(Ne,Oe){var re={t:"b",b:"t",l:"r",r:"l"};return Ne.map(function(Fe,Re){return Re===Oe?re[Fe]||"c":Fe}).join("")}function Ve(Ne,Oe,re,Fe,Re,Z,O){var me=I.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Re[Fe]||{}}),Ee=(0,ie.Z)(me,2),ge=Ee[0],we=Ee[1],ke=I.useRef(0),Ye=I.useMemo(function(){return Oe?z(Oe):[]},[Oe]),oe=I.useRef({}),fe=function(){oe.current={}};Ne||fe();var dt=(0,C.Z)(function(){if(Oe&&re&&Ne){let ci=function(ns,xr){var Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dt,_r=ut.x+ns,Or=ut.y+xr,ui=_r+vn,_i=Or+qn,as=Math.max(_r,Ur.left),ur=Math.max(Or,Ur.top),Rr=Math.min(ui,Ur.right),ei=Math.min(_i,Ur.bottom);return Math.max(0,(Rr-as)*(ei-ur))},zi=function(){li=ut.y+Qn,Qr=li+qn,Zn=ut.x+Wn,Pn=Zn+vn};var ht,Ge,Ct,gt,Ce=Oe,Je=Ce.ownerDocument,_=ne(Ce),D=_.getComputedStyle(Ce),Ze=D.position,ee=Ce.style.left,ye=Ce.style.top,Ot=Ce.style.right,He=Ce.style.bottom,it=Ce.style.overflow,ct=(0,l.Z)((0,l.Z)({},Re[Fe]),Z),he=Je.createElement("div");(ht=Ce.parentElement)===null||ht===void 0||ht.appendChild(he),he.style.left="".concat(Ce.offsetLeft,"px"),he.style.top="".concat(Ce.offsetTop,"px"),he.style.position=Ze,he.style.height="".concat(Ce.offsetHeight,"px"),he.style.width="".concat(Ce.offsetWidth,"px"),Ce.style.left="0",Ce.style.top="0",Ce.style.right="auto",Ce.style.bottom="auto",Ce.style.overflow="hidden";var be;if(Array.isArray(re))be={x:re[0],y:re[1],width:0,height:0};else{var je,Ue,$=re.getBoundingClientRect();$.x=(je=$.x)!==null&&je!==void 0?je:$.left,$.y=(Ue=$.y)!==null&&Ue!==void 0?Ue:$.top,be={x:$.x,y:$.y,width:$.width,height:$.height}}var ut=Ce.getBoundingClientRect(),xe=_.getComputedStyle(Ce),At=xe.height,zt=xe.width;ut.x=(Ge=ut.x)!==null&&Ge!==void 0?Ge:ut.left,ut.y=(Ct=ut.y)!==null&&Ct!==void 0?Ct:ut.top;var qt=Je.documentElement,cn=qt.clientWidth,gn=qt.clientHeight,En=qt.scrollWidth,Fn=qt.scrollHeight,Hn=qt.scrollTop,An=qt.scrollLeft,qn=ut.height,vn=ut.width,Gt=be.height,Xt=be.width,Dn={left:0,top:0,right:cn,bottom:gn},Cn={left:-An,top:-Hn,right:En-An,bottom:Fn-Hn},yt=ct.htmlRegion,Et="visible",Be="visibleFirst";yt!=="scroll"&&yt!==Be&&(yt=Et);var lt=yt===Be,vt=G(Cn,Ye),xt=G(Dn,Ye),Dt=yt===Et?xt:vt,Jt=lt?xt:Dt;Ce.style.left="auto",Ce.style.top="auto",Ce.style.right="0",Ce.style.bottom="0";var pn=Ce.getBoundingClientRect();Ce.style.left=ee,Ce.style.top=ye,Ce.style.right=Ot,Ce.style.bottom=He,Ce.style.overflow=it,(gt=Ce.parentElement)===null||gt===void 0||gt.removeChild(he);var _n=x(Math.round(vn/parseFloat(zt)*1e3)/1e3),Vt=x(Math.round(qn/parseFloat(At)*1e3)/1e3);if(_n===0||Vt===0||(0,Q.Sh)(re)&&!(0,se.Z)(re))return;var yn=ct.offset,Nn=ct.targetOffset,Sn=We(ut,yn),bt=(0,ie.Z)(Sn,2),Rt=bt[0],Wt=bt[1],Bt=We(be,Nn),jt=(0,ie.Z)(Bt,2),Qt=jt[0],an=jt[1];be.x-=Qt,be.y-=an;var on=ct.points||[],Rn=(0,ie.Z)(on,2),$n=Rn[0],dr=Rn[1],jn=st(dr),zn=st($n),er=_e(be,jn),Xn=_e(ut,zn),sr=(0,l.Z)({},ct),Wn=er.x-Xn.x+Rt,Qn=er.y-Xn.y+Wt,or=ci(Wn,Qn),cr=ci(Wn,Qn,xt),rr=_e(be,["t","l"]),nr=_e(ut,["t","l"]),ir=_e(be,["b","r"]),Vn=_e(ut,["b","r"]),$r=ct.overflow||{},Kt=$r.adjustX,ar=$r.adjustY,hr=$r.shiftX,Yr=$r.shiftY,zr=function(xr){return typeof xr=="boolean"?xr:xr>=0},li,Qr,Zn,Pn;zi();var sn=zr(ar),un=zn[0]===jn[0];if(sn&&zn[0]==="t"&&(Qr>Jt.bottom||oe.current.bt)){var Bn=Qn;un?Bn-=qn-Gt:Bn=rr.y-Vn.y-Wt;var Yn=ci(Wn,Bn),lr=ci(Wn,Bn,xt);Yn>or||Yn===or&&(!lt||lr>=cr)?(oe.current.bt=!0,Qn=Bn,Wt=-Wt,sr.points=[Ke(zn,0),Ke(jn,0)]):oe.current.bt=!1}if(sn&&zn[0]==="b"&&(li<Jt.top||oe.current.tb)){var Ir=Qn;un?Ir+=qn-Gt:Ir=ir.y-nr.y-Wt;var On=ci(Wn,Ir),mr=ci(Wn,Ir,xt);On>or||On===or&&(!lt||mr>=cr)?(oe.current.tb=!0,Qn=Ir,Wt=-Wt,sr.points=[Ke(zn,0),Ke(jn,0)]):oe.current.tb=!1}var Dr=zr(Kt),Jr=zn[1]===jn[1];if(Dr&&zn[1]==="l"&&(Pn>Jt.right||oe.current.rl)){var mi=Wn;Jr?mi-=vn-Xt:mi=rr.x-Vn.x-Rt;var Li=ci(mi,Qn),Gr=ci(mi,Qn,xt);Li>or||Li===or&&(!lt||Gr>=cr)?(oe.current.rl=!0,Wn=mi,Rt=-Rt,sr.points=[Ke(zn,1),Ke(jn,1)]):oe.current.rl=!1}if(Dr&&zn[1]==="r"&&(Zn<Jt.left||oe.current.lr)){var Ri=Wn;Jr?Ri+=vn-Xt:Ri=ir.x-nr.x-Rt;var qr=ci(Ri,Qn),bi=ci(Ri,Qn,xt);qr>or||qr===or&&(!lt||bi>=cr)?(oe.current.lr=!0,Wn=Ri,Rt=-Rt,sr.points=[Ke(zn,1),Ke(jn,1)]):oe.current.lr=!1}zi();var ri=hr===!0?0:hr;typeof ri=="number"&&(Zn<xt.left&&(Wn-=Zn-xt.left-Rt,be.x+Xt<xt.left+ri&&(Wn+=be.x-xt.left+Xt-ri)),Pn>xt.right&&(Wn-=Pn-xt.right-Rt,be.x>xt.right-ri&&(Wn+=be.x-xt.right+ri)));var di=Yr===!0?0:Yr;typeof di=="number"&&(li<xt.top&&(Qn-=li-xt.top-Wt,be.y+Gt<xt.top+di&&(Qn+=be.y-xt.top+Gt-di)),Qr>xt.bottom&&(Qn-=Qr-xt.bottom-Wt,be.y>xt.bottom-di&&(Qn+=be.y-xt.bottom+di)));var ii=ut.x+Wn,Oi=ii+vn,Lr=ut.y+Qn,Pi=Lr+qn,Mi=be.x,ki=Mi+Xt,yr=be.y,Gn=yr+Gt,pi=Math.max(ii,Mi),Ln=Math.min(Oi,ki),Fi=(pi+Ln)/2,Os=Fi-ii,vs=Math.max(Lr,yr),ss=Math.min(Pi,Gn),ls=(vs+ss)/2,Pr=ls-Lr;O==null||O(Oe,sr);var Gi=pn.right-ut.x-(Wn+ut.width),ds=pn.bottom-ut.y-(Qn+ut.height);_n===1&&(Wn=Math.floor(Wn),Gi=Math.floor(Gi)),Vt===1&&(Qn=Math.floor(Qn),ds=Math.floor(ds));var _s={ready:!0,offsetX:Wn/_n,offsetY:Qn/Vt,offsetR:Gi/_n,offsetB:ds/Vt,arrowX:Os/_n,arrowY:Pr/Vt,scaleX:_n,scaleY:Vt,align:sr};we(_s)}}),ot=function(){ke.current+=1;var Ge=ke.current;Promise.resolve().then(function(){ke.current===Ge&&dt()})},ft=function(){we(function(Ge){return(0,l.Z)((0,l.Z)({},Ge),{},{ready:!1})})};return(0,y.Z)(ft,[Fe]),(0,y.Z)(function(){Ne||ft()},[Ne]),[ge.ready,ge.offsetX,ge.offsetY,ge.offsetR,ge.offsetB,ge.arrowX,ge.arrowY,ge.scaleX,ge.scaleY,ge.align,ot]}var rt=d(77654);function Ae(Ne,Oe,re,Fe,Re){(0,y.Z)(function(){if(Ne&&Oe&&re){let ke=function(){Fe(),Re()};var Z=Oe,O=re,me=z(Z),Ee=z(O),ge=ne(O),we=new Set([ge].concat((0,rt.Z)(me),(0,rt.Z)(Ee)));return we.forEach(function(Ye){Ye.addEventListener("scroll",ke,{passive:!0})}),ge.addEventListener("resize",ke,{passive:!0}),Fe(),function(){we.forEach(function(Ye){Ye.removeEventListener("scroll",ke),ge.removeEventListener("resize",ke)})}}},[Ne,Oe,re])}var Tt=d(48736);function tt(Ne,Oe,re,Fe,Re,Z,O,me){var Ee=I.useRef(Ne);Ee.current=Ne;var ge=I.useRef(!1);I.useEffect(function(){if(Oe&&Fe&&(!Re||Z)){var ke=function(){ge.current=!1},Ye=function(Ct){var gt;Ee.current&&!O(((gt=Ct.composedPath)===null||gt===void 0||(gt=gt.call(Ct))===null||gt===void 0?void 0:gt[0])||Ct.target)&&!ge.current&&me(!1)},oe=ne(Fe);oe.addEventListener("pointerdown",ke,!0),oe.addEventListener("mousedown",Ye,!0),oe.addEventListener("contextmenu",Ye,!0);var fe=(0,o.A)(re);if(fe&&(fe.addEventListener("mousedown",Ye,!0),fe.addEventListener("contextmenu",Ye,!0)),0)var dt,ot,ft,ht;return function(){oe.removeEventListener("pointerdown",ke,!0),oe.removeEventListener("mousedown",Ye,!0),oe.removeEventListener("contextmenu",Ye,!0),fe&&(fe.removeEventListener("mousedown",Ye,!0),fe.removeEventListener("contextmenu",Ye,!0))}}},[Oe,re,Fe,Re,Z]);function we(){ge.current=!0}return we}var Pt=["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 Xe(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le.Z,Oe=I.forwardRef(function(re,Fe){var Re=re.prefixCls,Z=Re===void 0?"rc-trigger-popup":Re,O=re.children,me=re.action,Ee=me===void 0?"hover":me,ge=re.showAction,we=re.hideAction,ke=re.popupVisible,Ye=re.defaultPopupVisible,oe=re.onPopupVisibleChange,fe=re.afterPopupVisibleChange,dt=re.mouseEnterDelay,ot=re.mouseLeaveDelay,ft=ot===void 0?.1:ot,ht=re.focusDelay,Ge=re.blurDelay,Ct=re.mask,gt=re.maskClosable,Ce=gt===void 0?!0:gt,Je=re.getPopupContainer,_=re.forceRender,D=re.autoDestroy,Ze=re.destroyPopupOnHide,ee=re.popup,ye=re.popupClassName,Ot=re.popupStyle,He=re.popupPlacement,it=re.builtinPlacements,ct=it===void 0?{}:it,he=re.popupAlign,be=re.zIndex,je=re.stretch,Ue=re.getPopupClassNameFromAlign,$=re.fresh,ut=re.alignPoint,xe=re.onPopupClick,At=re.onPopupAlign,zt=re.arrow,qt=re.popupMotion,cn=re.maskMotion,gn=re.popupTransitionName,En=re.popupAnimation,Fn=re.maskTransitionName,Hn=re.maskAnimation,An=re.className,qn=re.getTriggerDOMNode,vn=(0,U.Z)(re,Pt),Gt=D||Ze||!1,Xt=I.useState(!1),Dn=(0,ie.Z)(Xt,2),Cn=Dn[0],yt=Dn[1];(0,y.Z)(function(){yt((0,S.Z)())},[]);var Et=I.useRef({}),Be=I.useContext($e),lt=I.useMemo(function(){return{registerSubPopup:function(Rr,ei){Et.current[Rr]=ei,Be==null||Be.registerSubPopup(Rr,ei)}}},[Be]),vt=(0,P.Z)(),xt=I.useState(null),Dt=(0,ie.Z)(xt,2),Jt=Dt[0],pn=Dt[1],_n=I.useRef(null),Vt=(0,C.Z)(function(ur){_n.current=ur,(0,Q.Sh)(ur)&&Jt!==ur&&pn(ur),Be==null||Be.registerSubPopup(vt,ur)}),yn=I.useState(null),Nn=(0,ie.Z)(yn,2),Sn=Nn[0],bt=Nn[1],Rt=I.useRef(null),Wt=(0,C.Z)(function(ur){(0,Q.Sh)(ur)&&Sn!==ur&&(bt(ur),Rt.current=ur)}),Bt=I.Children.only(O),jt=(Bt==null?void 0:Bt.props)||{},Qt={},an=(0,C.Z)(function(ur){var Rr,ei,Kr=Sn;return(Kr==null?void 0:Kr.contains(ur))||((Rr=(0,o.A)(Kr))===null||Rr===void 0?void 0:Rr.host)===ur||ur===Kr||(Jt==null?void 0:Jt.contains(ur))||((ei=(0,o.A)(Jt))===null||ei===void 0?void 0:ei.host)===ur||ur===Jt||Object.values(Et.current).some(function(ti){return(ti==null?void 0:ti.contains(ur))||ur===ti})}),on=te(Z,qt,En,gn),Rn=te(Z,cn,Hn,Fn),$n=I.useState(Ye||!1),dr=(0,ie.Z)($n,2),jn=dr[0],zn=dr[1],er=ke!=null?ke:jn,Xn=(0,C.Z)(function(ur){ke===void 0&&zn(ur)});(0,y.Z)(function(){zn(ke||!1)},[ke]);var sr=I.useRef(er);sr.current=er;var Wn=I.useRef([]);Wn.current=[];var Qn=(0,C.Z)(function(ur){var Rr;Xn(ur),((Rr=Wn.current[Wn.current.length-1])!==null&&Rr!==void 0?Rr:er)!==ur&&(Wn.current.push(ur),oe==null||oe(ur))}),or=I.useRef(),cr=function(){clearTimeout(or.current)},rr=function(Rr){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;cr(),ei===0?Qn(Rr):or.current=setTimeout(function(){Qn(Rr)},ei*1e3)};I.useEffect(function(){return cr},[]);var nr=I.useState(!1),ir=(0,ie.Z)(nr,2),Vn=ir[0],$r=ir[1];(0,y.Z)(function(ur){(!ur||er)&&$r(!0)},[er]);var Kt=I.useState(null),ar=(0,ie.Z)(Kt,2),hr=ar[0],Yr=ar[1],zr=I.useState(null),li=(0,ie.Z)(zr,2),Qr=li[0],Zn=li[1],Pn=function(Rr){Zn([Rr.clientX,Rr.clientY])},sn=Ve(er,Jt,ut&&Qr!==null?Qr:Sn,He,ct,he,At),un=(0,ie.Z)(sn,11),Bn=un[0],Yn=un[1],lr=un[2],Ir=un[3],On=un[4],mr=un[5],Dr=un[6],Jr=un[7],mi=un[8],Li=un[9],Gr=un[10],Ri=Pe(Cn,Ee,ge,we),qr=(0,ie.Z)(Ri,2),bi=qr[0],ri=qr[1],di=bi.has("click"),ii=ri.has("click")||ri.has("contextMenu"),Oi=(0,C.Z)(function(){Vn||Gr()}),Lr=function(){sr.current&&ut&&ii&&rr(!1)};Ae(er,Sn,Jt,Oi,Lr),(0,y.Z)(function(){Oi()},[Qr,He]),(0,y.Z)(function(){er&&!(ct!=null&&ct[He])&&Oi()},[JSON.stringify(he)]);var Pi=I.useMemo(function(){var ur=w(ct,Z,Li,ut);return g()(ur,Ue==null?void 0:Ue(Li))},[Li,Ue,ct,Z,ut]);I.useImperativeHandle(Fe,function(){return{nativeElement:Rt.current,popupElement:_n.current,forceAlign:Oi}});var Mi=I.useState(0),ki=(0,ie.Z)(Mi,2),yr=ki[0],Gn=ki[1],pi=I.useState(0),Ln=(0,ie.Z)(pi,2),Fi=Ln[0],Os=Ln[1],vs=function(){if(je&&Sn){var Rr=Sn.getBoundingClientRect();Gn(Rr.width),Os(Rr.height)}},ss=function(){vs(),Oi()},ls=function(Rr){$r(!1),Gr(),fe==null||fe(Rr)},Pr=function(){return new Promise(function(Rr){vs(),Yr(function(){return Rr})})};(0,y.Z)(function(){hr&&(Gr(),hr(),Yr(null))},[hr]);function Gi(ur,Rr,ei,Kr){Qt[ur]=function(ti){var xs;Kr==null||Kr(ti),rr(Rr,ei);for(var us=arguments.length,Es=new Array(us>1?us-1:0),ms=1;ms<us;ms++)Es[ms-1]=arguments[ms];(xs=jt[ur])===null||xs===void 0||xs.call.apply(xs,[jt,ti].concat(Es))}}(di||ii)&&(Qt.onClick=function(ur){var Rr;sr.current&&ii?rr(!1):!sr.current&&di&&(Pn(ur),rr(!0));for(var ei=arguments.length,Kr=new Array(ei>1?ei-1:0),ti=1;ti<ei;ti++)Kr[ti-1]=arguments[ti];(Rr=jt.onClick)===null||Rr===void 0||Rr.call.apply(Rr,[jt,ur].concat(Kr))});var ds=tt(er,ii,Sn,Jt,Ct,Ce,an,rr),_s=bi.has("hover"),ci=ri.has("hover"),zi,ns;_s&&(Gi("onMouseEnter",!0,dt,function(ur){Pn(ur)}),Gi("onPointerEnter",!0,dt,function(ur){Pn(ur)}),zi=function(Rr){(er||Vn)&&Jt!==null&&Jt!==void 0&&Jt.contains(Rr.target)&&rr(!0,dt)},ut&&(Qt.onMouseMove=function(ur){var Rr;(Rr=jt.onMouseMove)===null||Rr===void 0||Rr.call(jt,ur)})),ci&&(Gi("onMouseLeave",!1,ft),Gi("onPointerLeave",!1,ft),ns=function(){rr(!1,ft)}),bi.has("focus")&&Gi("onFocus",!0,ht),ri.has("focus")&&Gi("onBlur",!1,Ge),bi.has("contextMenu")&&(Qt.onContextMenu=function(ur){var Rr;sr.current&&ri.has("contextMenu")?rr(!1):(Pn(ur),rr(!0)),ur.preventDefault();for(var ei=arguments.length,Kr=new Array(ei>1?ei-1:0),ti=1;ti<ei;ti++)Kr[ti-1]=arguments[ti];(Rr=jt.onContextMenu)===null||Rr===void 0||Rr.call.apply(Rr,[jt,ur].concat(Kr))}),An&&(Qt.className=g()(jt.className,An));var xr=I.useRef(!1);xr.current||(xr.current=_||er||Vn);var Ur=(0,l.Z)((0,l.Z)({},jt),Qt),_r={},Or=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Or.forEach(function(ur){vn[ur]&&(_r[ur]=function(){for(var Rr,ei=arguments.length,Kr=new Array(ei),ti=0;ti<ei;ti++)Kr[ti]=arguments[ti];(Rr=Ur[ur])===null||Rr===void 0||Rr.call.apply(Rr,[Ur].concat(Kr)),vn[ur].apply(vn,Kr)})});var ui=I.cloneElement(Bt,(0,l.Z)((0,l.Z)({},Ur),_r)),_i={x:mr,y:Dr},as=zt?(0,l.Z)({},zt!==!0?zt:{}):null;return I.createElement(I.Fragment,null,I.createElement(q.Z,{disabled:!er,ref:Wt,onResize:ss},I.createElement(ce,{getTriggerDOMNode:qn},ui)),xr.current&&I.createElement($e.Provider,{value:lt},I.createElement(ae,{portal:Ne,ref:Vt,prefixCls:Z,popup:ee,className:g()(ye,Pi),style:Ot,target:Sn,onMouseEnter:zi,onMouseLeave:ns,onPointerEnter:zi,zIndex:be,open:er,keepDom:Vn,fresh:$,onClick:xe,onPointerDownCapture:ds,mask:Ct,motion:on,maskMotion:Rn,onVisibleChanged:ls,onPrepare:Pr,forceRender:_,autoDestroy:Gt,getPopupContainer:Je,align:Li,arrow:as,arrowPos:_i,ready:Bn,offsetX:Yn,offsetY:lr,offsetR:Ir,offsetB:On,onAlign:Oi,stretch:je,targetWidth:yr/Jr,targetHeight:Fi/mi})))});return Oe}var Qe=Xe(le.Z)},46214:function(){"use strict"},90736:function(ln,qe,d){"use strict";var l=d(59301),ie=d(4977),U=d(7939),le=Object.defineProperty,F=Object.defineProperties,g=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,C=(I,N,W)=>N in I?le(I,N,{enumerable:!0,configurable:!0,writable:!0,value:W}):I[N]=W,P=(I,N)=>{for(var W in N||(N={}))Q.call(N,W)&&C(I,W,N[W]);if(q)for(var W of q(N))o.call(N,W)&&C(I,W,N[W]);return I},y=(I,N)=>F(I,g(N));const S=({img:I,buttonProps:N={},styles:W={},customText:H,ButtonText:j,ButtonClick:A,Buttonclass:V,ButtonTwo:R,imgStyles:L,loading:ae=!1,className:pe=""})=>l.createElement("section",{className:`tc animated fadeIn ${pe}`,style:P({color:"#999",margin:"100px auto",visibility:ae?"hidden":"visible"},W)},l.createElement("img",{src:I||ie,style:y(P({},L),{pointerEvents:"none",userSelect:"none"})}),l.createElement("p",{className:"mt20 font14"},H||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),j&&l.createElement(U.ZP,P({className:V,onClick:A},N),j),R&&R);qe.Z=S},86974:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return V}});var l=d(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},U=d(7939),le=d(70557),F=d(34728),g=d(25399),q=d(76406),Q=d(84849),o=d(90736),C=d(14185),P=d(52078),y=d(59301),S=Object.defineProperty,I=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,H=(R,L,ae)=>L in R?S(R,L,{enumerable:!0,configurable:!0,writable:!0,value:ae}):R[L]=ae,j=(R,L)=>{for(var ae in L||(L={}))N.call(L,ae)&&H(R,ae,L[ae]);if(I)for(var ae of I(L))W.call(L,ae)&&H(R,ae,L[ae]);return R},A=(R,L,ae)=>new Promise((pe,ce)=>{var Le=Pe=>{try{Te(ae.next(Pe))}catch(se){ce(se)}},$e=Pe=>{try{Te(ae.throw(Pe))}catch(se){ce(se)}},Te=Pe=>Pe.done?pe(Pe.value):Promise.resolve(Pe.value).then(Le,$e);Te((ae=ae.apply(R,L)).next())}),V=({editOffice:R="view",data:L,issaver:ae,onSaver:pe,theme:ce,type:Le,filename:$e,monacoEditor:Te,className:Pe,style:se,close:K,onClose:w,hasMask:te,disabledDownload:ne,onImgDimensions:z,showNodata:x,recordInfo:T})=>{const[G,ve]=(0,l.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[We,st]=(0,l.useState)(""),[_e,Ke]=(0,l.useState)(),Ve=window.ENV==="build"?"/react/build":"",rt=location.host.startsWith("localhost")?C.Z.PROXY_SERVER:C.Z.API_SERVER,Tt=10*(1024*1024),tt=(0,l.useRef)();L!=null&&L.startsWith("/api")&&Le!=="txt"&&(L=C.Z.API_SERVER+L);const Pt=Fe=>Fe.substring(Fe.lastIndexOf("/")+1).split(".").pop();$e&&Te&&(Te.filename=$e),(0,l.useEffect)(()=>{var Fe,Re;const Z=(Re=(Fe=document.cookie)==null?void 0:Fe.replace(/\s/g,""))==null?void 0:Re.split(";");Z==null||Z.map(O=>{let me=O.split("=");me[0]==="_educoder_session"&&st(me[1])})},[]),(0,l.useEffect)(()=>{Le==="office"&&(L.indexOf("bigfilescdn.")>-1||L.indexOf("bigfiles1")>-1?Ke({url:L,fileType:Pt(L),model:L.indexOf("model=edit")?"edit":"view"}):L.indexOf("coze")>-1?Ke({url:L,fileType:"doc",model:"view"}):Qe())},[Le,L]);function Xe(Fe){return A(this,null,function*(){Fe.data.type==="pdfdata"&&(pe(Fe.data.data),window.removeEventListener("message",Xe,!1)),console.log("mess---:",Fe.data)})}const Qe=()=>A(void 0,null,function*(){console.log("data:",L);let Fe=L;L.startsWith("http")||(Fe=location.origin+Fe);let Re=new URL(Fe).pathname.split("/").pop();const Z=yield(0,Q.gJ)({attachment_id:Re});Z.url=rt+Z.url,Ke(Z)}),Ne=()=>{if(L.startsWith("http")||L.startsWith("blob:")){Oe();return}(0,q.Sv)($e||"educoder",L,$e)},Oe=()=>{T&&(0,P.fc)({id:T==null?void 0:T.id,watch_type:1,course_id:T==null?void 0:T.course_id}),(0,q.Nd)($e||"educoder",decodeURIComponent(L))};(0,l.useEffect)(()=>(window.addEventListener("message",re),()=>{window.removeEventListener("message",re)}),[]);const re=Fe=>{var Re;((Re=Fe==null?void 0:Fe.data)==null?void 0:Re.type)==="closePop"&&w()};return y.createElement("div",{style:j({},se||{}),className:`${te&&ie.bgBlack} ${Le?ie.wrp:"hide"}`},!!Le&&K&&y.createElement("div",{id:"closePop",className:ie.close,ref:tt},!!z&&y.createElement(g.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>tt.current},y.createElement("span",{onClick:()=>{w(),z()}},y.createElement("i",{className:"icon-yulanpizhu"}))),!ne&&window.parent===window&&y.createElement(g.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>tt.current},y.createElement("span",{onClick:Oe},y.createElement("i",{className:"icon-quxiaozhiding"}))),ae&&y.createElement(g.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>tt.current},y.createElement("span",{className:"",onClick:()=>{const Fe=document.getElementById("pdfiframe");window.addEventListener("message",Xe,!1),setTimeout(()=>{Fe.contentWindow.postMessage("getData","*")},300)}},y.createElement("i",{className:"icon-baocun"}))),y.createElement(g.Z,{title:"\u5173\u95ED",getPopupContainer:()=>tt.current},y.createElement("span",{className:"",onClick:()=>{w()}},y.createElement("i",{className:"icon-guanbi1"})))),y.createElement("div",{className:`${ie[Pe]} ${Pe} ${ie.monaco} ${Le==="txt"?"show":"hide"}`},Le==="txt"&&y.createElement(y.Fragment,null,y.createElement(F.ZP,j({},Te)))),Le==="audio"&&y.createElement("audio",{controls:!0,src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${L}`,autoPlay:!0}),Le==="video"&&y.createElement(y.Fragment,null,(L==null?void 0:L.indexOf("http"))>-1?y.createElement("video",{controls:!0,src:`${L}`,autoPlay:!0}):y.createElement("video",{controls:!0,src:`data:video/mp4;base64,${L}`,autoPlay:!0})),Le==="office"&&_e&&y.createElement("iframe",{src:`${Ve}/office.html?key=${_e.key}&url=${btoa(_e.url)}&callbackUrl=${rt+(_e.callbackUrl||"")}&fileType=${_e.fileType}&title=${_e.title||""}&model=${R}&officeServer=${C.Z.ONLYOFFICE}&disabledDownload=${!!ne}`}),Le==="html"&&y.createElement("iframe",{src:L+"&disposition=inline"}),Le==="pdf"&&y.createElement("iframe",{id:"pdfiframe",src:`${Ve}/js/pdf/index.html?filename=${$e||"educoder.pdf"}&url=${encodeURIComponent(L)}&disabledDownload=${!!ne}&model=${R}`}),Le==="image"&&y.createElement("img",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:image/png;base64,"}${L}`}),(Le==="other"||Le==="download")&&y.createElement(y.Fragment,null,x?y.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:y.createElement(U.ZP,{icon:y.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ne,disabled:ne},"\u4E0B\u8F7D")}):y.createElement(U.ZP,{type:"primary",size:"middle",onClick:Ne,disabled:ne},y.createElement(le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Le==="flowChart"&&y.createElement("div",{className:"embed"},y.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${L||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(ln,qe,d){"use strict";d.d(qe,{z:function(){return Te},Z:function(){return Pe}});var l=d(59301),ie=d(46214),U=d(20047),le=d(64018),F=d(16471),g=d(14185),q=d(76406),Q=d(15342),o=d(44104),C=d(7939),P=d(1012),y=d(86974),S=d(59301),N=({html:se})=>{const K=(0,l.useRef)(null),w=(0,l.useRef)(null),te=`.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,l.useEffect)(()=>{const ne=K.current.attachShadow({mode:"open"});w.current=document.createElement("div"),w.current.className="markdown-body",w.current.innerHTML=se,ne.appendChild(w.current);const z=document.createElement("style");return z.textContent=te,ne.appendChild(z),()=>{ne.innerHTML=""}},[]),(0,l.useEffect)(()=>{w.current&&(w.current.innerHTML=se)},[se]),S.createElement("div",{ref:K})};function W(se){const K=["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"],w=new RegExp(`\\b(${K.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),te=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return se.replace(w,"").replace(te,"").trim()}var H={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},j=Object.defineProperty,A=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,L=(se,K,w)=>K in se?j(se,K,{enumerable:!0,configurable:!0,writable:!0,value:w}):se[K]=w,ae=(se,K)=>{for(var w in K||(K={}))V.call(K,w)&&L(se,w,K[w]);if(A)for(var w of A(K))R.call(K,w)&&L(se,w,K[w]);return se};const pe="@\u2581\u2581@",ce="@\u2581@",Le=/<pre[^>]*>/g;function $e(se){let K=document.createElement("div");return K.innerHTML=se,K.childNodes.length===0?"":K.childNodes[0].nodeValue}const Te=(se,K)=>{se=se||"";const w=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,te=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ne=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,z=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return K?se.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(w,(x,T,G,ve,We,st,_e)=>{const Ke=T||ve||st,Ve=G||We||_e||"?";return g.Z.API_SERVER+"/api/attachments/"+Ke+Ve+"&t="+(0,q.Jn)(Ke,Date.now())+(x.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(se=se.replace(z,(x,T,G,ve,We,st,_e)=>{const Ke=T||ve||st,Ve=G||We||_e||"?";return g.Z.API_SERVER+"/attachments/download/"+Ke+Ve+"&t="+(0,q.Jn)(Ke,Date.now())+(x.indexOf(")")>-1?")":"&")}).replace(w,(x,T,G,ve,We,st,_e)=>{const Ke=T||ve||st,Ve=G||We||_e||"?";return g.Z.API_SERVER+"/api/attachments/"+Ke+Ve+"&t="+(0,q.Jn)(Ke,Date.now())+(x.indexOf(")")>-1?")":"&")}).replace(te,(x,T,G,ve,We)=>{const st=T||ve,_e=G||We||"";return'"'+g.Z.API_SERVER+"/api/attachments/"+st+_e+st+_e+"&t="+(0,q.Jn)(st,Date.now())}).replace(ne,(x,T,G,ve,We)=>{const st=T||ve,_e=G||We||"";return"("+g.Z.API_SERVER+"/files/uploads/"+st+_e+st+_e+"&t="+(0,q.Jn)(st,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,`
|
|
|
`),se)};var Pe=({value:se="",edit:K=!1,className:w,showTextOnly:te,showLines:ne,style:z={},stylesPrev:x={},highlightKeywords:T,showProgramFill:G,isProgramFill:ve,disabledFill:We=!1,programFillValue:st,openEditor:_e=()=>{},onFillChange:Ke=Ae=>{},onFillBlur:Ve=()=>{},onFillFocus:rt=()=>{}})=>{let Ae=W(String(se||""));const Tt=(0,l.useRef)(),tt=(0,l.useRef)(),[Pt,Xe]=(0,l.useState)(""),[Qe,Ne]=(0,l.useState)("office"),[Oe,re]=(0,l.useState)([]),Fe=(0,l.useRef)("a"+(0,P.Z)()),Re={},Z=Ge=>/<style[\s\S]*?>/i.test(Ge||""),O=(Ge,Ct,gt)=>{const Ce=document.createElement(Ge===ce?"input":"textarea");Ce.style.width="100%",Ce.style.height=Ge===ce?"40px":"151px",Ce.rows=5,Ce.spellcheck=!1,Ce.name="edu-program-fill",Ce.placeholder="\u8BF7\u8F93\u5165",Ce.dataset.id=Ct;const Je=Object.keys(Re).length;return Re[Je]=Ce,`<span class="edu-program-fill-wrap ${Ge===ce?"":"show"}" style="width:${Ge===ce?"600px":"100%"}" title=${gt||""}><span>${Ce.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function me(Ge){return Ge=Ge.replace(/!\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(/\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ge=Ge.replace(/<embed.*?>/g,""),Ge=Ge.replace(/<img.*?>/g,""),Ge=Ge.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ge=Ge.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ge=Ge.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ge=Ge.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ge}const Ee=Ge=>!te&&Z(Ae)?Ge:Ge.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ct,gt){let Ce=gt.replace(/(\n|\r)/g,"").split("}"),Je=[];return Ce.map(_=>{_!=""&&Je.push(`.${Fe.current} ${_}`)}),`<style>${Je.join("}")}</style>`}),ge=(0,l.useMemo)(()=>{(0,U.Iy)();try{const Ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Je=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,D=/\(\/attachments\/download\//g;Ae=Ae.replace(D,"("+g.Z.API_SERVER+"/attachments/download/").replace(Ce,"("+g.Z.API_SERVER+"/api/attachments/").replace(Je,'"'+g.Z.API_SERVER+"/api/attachments/").replace(_,'"'+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,`
|
|
|
`),Tt.current.style.display="none"}catch(Ce){}if(G){let Ce=-1;return Ae=Ae.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Je,_,D){var Ze;return++Ce,O(Je,Ce,(Ze=st==null?void 0:st[Ce])==null?void 0:Ze.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ee(Ae||"")}</pre>`}let Ge=Ee(Ae);Ge=(0,U.ZP)(Ge);const Ct=(0,U.ez)();Ae.match(/\[TOC\]/)&&(Ge=Ge.replace("<p>[TOC]</p>",(0,U.Qv)()),(0,U.Iy)()),Ge=Ge.replace(/(__special_katext_id_\d+__)/g,(Ce,Je)=>{const{type:_,expression:D}=Ct[Je];return(0,Q.renderToString)($e(D)||"",{displayMode:_==="block",throwOnError:!1,output:"html"})}),Ge=Ge.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,U.AL)();const gt=document.createElement("div");if(gt.innerHTML=Ge,te)return gt.innerText;if(T){const Ce=T.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return oe(gt,Ce),gt.innerHTML}return setTimeout(()=>ot(),500),gt.innerHTML},[Ae,T]);(0,l.useEffect)(()=>{fe.current&&fe.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=we,Ct.onblur=ke,Ct.onfocus=Ye})},[Oe]),(0,l.useEffect)(()=>{var Ge,Ct,gt,Ce,Je;if(st!=null&&st.length)try{const _=fe.current.querySelectorAll(".edu-program-fill-score"),D=fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ze,ee]of D.entries())ee.value=((Ge=st==null?void 0:st[Ze])==null?void 0:Ge.value)||"",((Ct=st==null?void 0:st[Ze])==null?void 0:Ct.type)==="warning"?ee.className="program-fill-warning":((gt=st==null?void 0:st[Ze])==null?void 0:gt.type)==="success"?ee.className="program-fill-success":ee.className="";for(const[Ze,ee]of _.entries())ee.innerHTML=(Ce=st==null?void 0:st[Ze])!=null&&Ce.score?`${(Je=st==null?void 0:st[Ze])==null?void 0:Je.score}\u5206`:"";re(st)}catch(_){console.log(_,"error")}},[st]);const we=Ge=>{Oe[Ge.target.dataset.id]=Oe[Ge.target.dataset.id]||{},Oe[Ge.target.dataset.id].value=Ge.target.value,re([...Oe]),Ke(Oe,Ge.target.dataset.id)},ke=Ge=>{Oe[Ge.target.dataset.id]=Oe[Ge.target.dataset.id]||{},Oe[Ge.target.dataset.id].value=Ge.target.value,re([...Oe]),Ve(Oe,Ge.target.dataset.id)},Ye=Ge=>{Oe[Ge.target.dataset.id]=Oe[Ge.target.dataset.id]||{},Oe[Ge.target.dataset.id].value=Ge.target.value,re([...Oe]),rt(Oe,Ge.target.dataset.id)};function oe(Ge,Ct){return Ge.childNodes.forEach(gt=>{var Ce;if(gt.childNodes.length>0)oe(gt,Ct);else if(gt.nodeName!=="IMG")if(gt.innerHTML)gt.innerHTML=(Ce=gt.innerHTML)==null?void 0:Ce.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Je=document.createElement("span");Je.innerHTML=gt.textContent.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),gt.replaceWith(Je)}})}const fe=(0,l.useRef)();U.jb.WebkitLineClamp=ne,ne&&(z=ae(ae({},z),U.jb));function dt(Ge){let Ct=Ge.target;if(Ct.tagName.toUpperCase()==="A"){let gt=Ct.getAttribute("href");if(gt.indexOf("office")>-1)Ge.preventDefault(),Xe(gt),Ne("office");else if(gt.indexOf("application/pdf")>-1)Ge.preventDefault(),Xe(gt),Ne("pdf");else if(gt.indexOf("text/html")>-1)Ge.preventDefault(),Xe(gt),Ne("html");else if(gt.startsWith("#")){Ge.preventDefault();let Ce=document.getElementById(gt.replace("#",""));Ce&&Ce.scrollIntoView(!0)}}}const ot=()=>{var Ge;const Ct=(Ge=fe.current)==null?void 0:Ge.querySelectorAll("video");Ct==null||Ct.forEach(gt=>{if(gt.oncontextmenu=()=>!1,gt.src.indexOf(".m3u8")>-1&&!gt.canPlayType("application/vnd.apple.mpegurl")){if(F.ZP.isSupported()){var Ce=new F.ZP;Ce.loadSource(gt.src),Ce.attachMedia(gt)}}})};(0,l.useEffect)(()=>{if(fe.current&&ge&&ge.match(Le)&&window.PR.prettyPrint(),fe.current)return fe.current.addEventListener("click",dt),()=>{var Ge;(Ge=fe.current)==null||Ge.removeEventListener("click",dt),(0,U.AL)(),(0,U.Iy)()}},[ge,fe.current,dt]);const ft=Ge=>{Ge.target.nodeName==="IMG"&&Ge.target.className.indexOf("draw-flowchart")>-1?(Tt.current.style.zIndex=1,Tt.current.style.display="flex",Tt.current.style.width=Ge.target.clientWidth+"px",Tt.current.style.height=Ge.target.clientHeight+"px",Tt.current.style.top=Ge.target.offsetTop+"px",Tt.current.style.left=Ge.target.offsetLeft+"px",Ge.target.id&&(tt.current=Ge.target.id)):Tt.current.style.display="none"},ht=()=>{Tt.current.style.display="none"};return(0,l.useEffect)(()=>{var Ge;const Ct=gt=>{gt.preventDefault(),gt.clipboardData.setData("text",window.getSelection().toString())};return(Ge=fe.current)==null||Ge.addEventListener("copy",Ct),()=>{var gt;(gt=fe.current)==null||gt.removeEventListener("copy",Ct)}},[fe.current]),l.createElement("div",{style:{position:"relative"},onMouseLeave:ht},te&&l.createElement("div",{ref:fe,className:`${H.mdBody} `},ge),!te&&!Z(ge)&&l.createElement("div",{ref:fe,style:ae({},z),onMouseOver:ft,className:`${w||""} ${We?"disabled-fill":""} markdown-body ${H.mdBody} ${Fe.current}`,dangerouslySetInnerHTML:{__html:ge}}),!te&&Z(ge)&&l.createElement(N,{html:ge}),l.createElement("div",{ref:Tt,className:`${H.button} ${K?"":H.previewFlowChart}`},l.createElement(o.Z,null,l.createElement(C.ZP,{onClick:()=>{K?_e(tt.current):(Xe(tt.current),Ne("flowChart"))}},K?"\u7F16\u8F91":"\u9884\u89C8"))),l.createElement(y.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?Qe:"",style:ae({},x),onClose:()=>Xe("")}))}},34728:function(ln,qe,d){"use strict";d.d(qe,{SV:function(){return Tt},ZP:function(){return Ae}});var l=d(59301),ie=d(76374);const U={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},le={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},F={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(`
|
|
|
`)}]},q={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 Q=d(53184),o=d.n(Q),C=(tt,Pt,Xe)=>new Promise((Qe,Ne)=>{var Oe=Re=>{try{Fe(Xe.next(Re))}catch(Z){Ne(Z)}},re=Re=>{try{Fe(Xe.throw(Re))}catch(Z){Ne(Z)}},Fe=Re=>Re.done?Qe(Re.value):Promise.resolve(Re.value).then(Oe,re);Fe((Xe=Xe.apply(tt,Pt)).next())});const P={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"]}},y=(tt,Pt,Xe,Qe)=>{const Ne=Pt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Xe.lineNumber,endColumn:Xe.column});return Array.from(new Set(Ne.match(/\b\w{2,}\b/g)||[])).map(re=>({label:re,kind:tt.languages.CompletionItemKind.Text,insertText:re,range:Qe}))},S=(tt,Pt,Xe,Qe)=>{tt.languages.registerCompletionItemProvider(Pt,{provideCompletionItems(Ne,Oe){const re=Ne.getWordUntilPosition(Oe),Fe={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:re.startColumn,endColumn:re.endColumn},Re=Ne.getLineContent(Oe.lineNumber).substring(re.startColumn-2,re.endColumn);return{suggestions:[...y(tt,Ne,Oe,Fe),...Xe.map(O=>({label:O,kind:tt.languages.CompletionItemKind.Keyword,documentation:O,insertText:O,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe})),...Qe.map(O=>({label:O.label,kind:tt.languages.CompletionItemKind.Snippet,documentation:O.content,insertText:Re.startsWith("#")?O.content.replace(/#/,""):O.content,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe}))]}}})};var I=tt=>{P.languages.forEach(Pt=>{tt.languages.registerDocumentFormattingEditProvider(Pt,{provideDocumentFormattingEdits(Xe){return C(this,null,function*(){const Qe=o()(Xe.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:Xe.getFullModelRange(),text:Qe}]})}})}),S(tt,"java",le.keywords,le.quickKey),S(tt,"cpp",F.keywords,F.quickKey),S(tt,"c",U.keywords,[]),S(tt,"python",g.keywords,g.quickKey),S(tt,"scala",q.keywords,q.quickKey)};const N="\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,H=(tt,Pt,Xe)=>Pt in tt?W(tt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):tt[Pt]=Xe,j=(tt,Pt,Xe)=>H(tt,typeof Pt!="symbol"?Pt+"":Pt,Xe);const A=class uc{constructor(Pt,Xe,Qe){this.placeholder=Pt,this.editor=Xe,this.monaco=Qe,Xe.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)}};j(A,"ID","editor.widget.placeholderHint");var R=A,L=d(96236),ae=d(6767),pe=d(25399),ce=d(78267),Le=d(33156),$e=d(56102),Te=Object.defineProperty,Pe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(tt,Pt,Xe)=>Pt in tt?Te(tt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):tt[Pt]=Xe,z=(tt,Pt)=>{for(var Xe in Pt||(Pt={}))w.call(Pt,Xe)&&ne(tt,Xe,Pt[Xe]);if(K)for(var Xe of K(Pt))te.call(Pt,Xe)&&ne(tt,Xe,Pt[Xe]);return tt},x=(tt,Pt)=>Pe(tt,se(Pt)),T=(tt,Pt)=>{var Xe={};for(var Qe in tt)w.call(tt,Qe)&&Pt.indexOf(Qe)<0&&(Xe[Qe]=tt[Qe]);if(tt!=null&&K)for(var Qe of K(tt))Pt.indexOf(Qe)<0&&te.call(tt,Qe)&&(Xe[Qe]=tt[Qe]);return Xe},G=(tt,Pt,Xe)=>new Promise((Qe,Ne)=>{var Oe=Re=>{try{Fe(Xe.next(Re))}catch(Z){Ne(Z)}},re=Re=>{try{Fe(Xe.throw(Re))}catch(Z){Ne(Z)}},Fe=Re=>Re.done?Qe(Re.value):Promise.resolve(Re.value).then(Oe,re);Fe((Xe=Xe.apply(tt,Pt)).next())});function ve(tt){return/^\d+$/.test(tt)?`${tt}px`:tt}function We(){}let st=!1;const _e={"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 Ke(tt=[]){let Pt=tt;if(Array.isArray(tt)){for(let Xe=0;Xe<tt.length;Xe++){let Qe=_e[tt[Xe]];if(Qe)return Qe}return Pt[0]}return _e[Pt]||Pt}let Ve=null;const rt=()=>G(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 Ae=tt=>{var Pt=tt,{width:Xe="100%",height:Qe="100%",value:Ne,language:Oe="javascript",style:re={},options:Fe={},overrideServices:Re={},theme:Z="vs-dark",onEditBlur:O,isCopy:me=!1,onSave:Ee,autoHeight:ge=!1,forbidCopy:we=!1,forbidCopyTips:ke,onChange:Ye=We,editorDidMount:oe=We,onFocus:fe=We,onBreakPoint:dt=We,breakPointValue:ot=[],filename:ft="educoder.txt",errorLine:ht,errorContent:Ge="",highlightLine:Ct,openBreakPoint:gt=!1,placeholder:Ce="",showMiniMap:Je=!0}=Pt,_=T(Pt,["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 D=(0,l.useRef)(),Ze=(0,l.useRef)({}),ee=(0,l.useRef)(),ye=(0,l.useRef)(),Ot=(0,l.useRef)([]),He=(0,l.useRef)(!1),it=(0,l.useRef)(),ct=(0,l.useRef)(),he=(0,l.useRef)(!1),[be,je]=(0,l.useState)(!1);function Ue(){let Gt;return D.current&&(Gt=new ie.Z(Xt=>{for(let Dn of Xt)(Dn.target.offsetHeight>0||Dn.target.offsetWidth>0)&&Ze.current.instance.layout()}),Gt.observe(D.current)),Gt}function $(){ae.ZP.warning({content:decodeURIComponent(ke||N),key:"monaco-editor-tip"})}const ut=()=>{let Gt=Ze.current.instance;if(Ne!=null&&Gt&&be){const Xt=Gt.getModel();Xt&&Ne!==Xt.getValue()&&(st=!0,Xt.setValue(Ne),Gt.layout(),st=!1)}};(0,l.useEffect)(()=>{const Gt=Le.Z.subscribe("formatDocument",Xt=>{var Dn;let Cn=Ze.current.instance;(Dn=Cn==null?void 0:Cn.getAction)==null||Dn.call(Cn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Xt=>{Ye(Xt)},Gt},[]),(0,l.useEffect)(()=>{var Gt;let Xt=Ze.current.instance;ye.current&&clearTimeout(ye.current),ye.current=setTimeout(()=>{ut()},500),Ne&&(Ne!=null&&Ne.length)&&((Gt=Xt==null?void 0:Xt.updateOptions)==null||Gt.call(Xt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ne,be,Ze.current]),(0,l.useEffect)(()=>{if(ht&&Ze.current&&Ze.current.instance){let Xt=Ze.current.instance;Xt.changeViewZones(function(Dn){var Cn=document.createElement("div");Cn.style.padding="10px 20px",Cn.style.width="calc(100% - 20px)",Cn.className="my-error-line-wrp",Cn.innerHTML=Ge,Dn.addZone({afterLineNumber:ht||11,heightInLines:3,domNode:Cn})});var Gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Xt.addOverlayWidget(Gt),Xt.revealPositionInCenter({lineNumber:20,column:1})}},[ht,Ze.current,be]);const xe=(Gt="",Xt)=>{if(!Gt||Gt.trim()==="")return!0;const Cn=Ze.current.instance.getModel().getLineTokens(Xt);let yt=!1;for(let Et=0;Et<2;Et++)Cn.getStandardTokenType(Et)===1&&(yt=!0);return yt};(0,l.useEffect)(()=>{var Gt;const Xt=(Gt=Ze.current)==null?void 0:Gt.instance;if(Xt&&be&&we){const Dn=Xt.onDidBlurEditorWidget(()=>{he.current=!1}),Cn=Xt.onDidFocusEditorText(()=>{he.current=!0});return()=>{Dn.dispose(),Cn.dispose()}}},[Ze.current,be,we]),(0,l.useEffect)(()=>{var Gt;if((Gt=Ze.current)!=null&&Gt.instance&&be&>){let Xt=Ze.current.instance,Dn=Xt.getModel();if(!Dn)return;(()=>{var Vt;let yn=[],Nn=[];const Sn=Dn.getAllDecorations();for(let Rt of Sn)Rt.options.className==="highlighted-line"&&(yn.push((Vt=Rt==null?void 0:Rt.range)==null?void 0:Vt.startLineNumber),Nn.push(Rt==null?void 0:Rt.id));if(Ct===yn[0])return;Dn.deltaDecorations(Nn,[]);const bt=Dn.getLineCount();Ct&&Ct<=bt&&(Xt.deltaDecorations([],[{range:new Ve.Range(Ct,1,Ct,Dn.getLineMaxColumn(Ct)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Xt.revealLineInCenter(Ct))})();const yt=(Vt=!1)=>{var yn;let Nn=[],Sn=[];const bt=Dn.getAllDecorations();for(let Rt of bt)Rt.options.linesDecorationsClassName==="breakpoints-select"&&(Nn.push((yn=Rt==null?void 0:Rt.range)==null?void 0:yn.startLineNumber),Sn.push(Rt==null?void 0:Rt.id));if(Vt)return{lines:Nn,ids:Sn};dt(Nn)},Et=Vt=>G(void 0,null,function*(){let yn={range:new Ve.Range(Vt,1,Vt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Dn.deltaDecorations([],[yn]),yt()}),Be=Vt=>G(void 0,null,function*(){let yn=[];const Nn=Xt.getLineDecorations(Vt);for(let Sn of Nn)Sn.options.linesDecorationsClassName==="breakpoints-select"&&yn.push(Sn.id);yield Dn.deltaDecorations(yn,[]),yt()}),lt=Vt=>{let yn=Xt.getLineDecorations(Vt);for(let Nn of yn)if(Nn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ce.isEqual)(ot,yt(!0).lines)){Dn.deltaDecorations(yt(!0).ids,[]);const Vt=ot.map(yn=>({range:new Ve.Range(yn,1,yn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Dn.deltaDecorations([],Vt)}const vt=Xt.onDidChangeModelContent(Vt=>{let yn=Xt.getPosition();if(yn){let Nn=yn.lineNumber;clearTimeout(ct.current),ct.current=setTimeout(()=>{xe(Dn.getLineContent(Nn),Nn)?Be(Nn):lt(Nn)?(Be(Nn),Et(Nn)):yt()},100)}}),xt=Xt.onMouseDown(Vt=>{var yn,Nn,Sn;if(Vt.target.detail&&((Sn=(Nn=(yn=Vt.target)==null?void 0:yn.element)==null?void 0:Nn.className)!=null&&Sn.includes("line-numbers"))){let bt=Vt.target.position.lineNumber;if(xe(Dn.getLineContent(bt),bt))return;lt(bt)?Be(bt):Et(bt)}}),Dt=Vt=>{let yn={range:new Ve.Range(Vt,1,Vt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ot.current=Xt.deltaDecorations(Ot.current,[yn])},Jt=()=>{Ot.current=Xt.deltaDecorations(Ot.current,[])},pn=Xt.onMouseMove(Vt=>{var yn,Nn,Sn;if(Jt(),Vt.target.detail&&((Sn=(Nn=(yn=Vt.target)==null?void 0:yn.element)==null?void 0:Nn.className)!=null&&Sn.includes("line-numbers"))){let bt=Vt.target.position.lineNumber;if(xe(Dn.getLineContent(bt),bt))return;Dt(bt)}}),_n=Xt.onMouseLeave(()=>{Jt()});return()=>{vt.dispose(),xt.dispose(),pn.dispose(),_n.dispose()}}},[Ze.current,be,ot,Ct,gt,Oe]),(0,l.useEffect)(()=>{var Gt;(Gt=Ze.current)!=null&&Gt.instance&>&&Ze.current.instance.setPosition({lineNumber:0,column:0})},[Ct]);function At(){let Gt=Ze.current.instance;if(Gt){const Xt=Gt.getSelection(),Dn=Ze.current.pastePos||{},Cn=new Ve.Range(Dn.startLineNumber||Xt.endLineNumber,Dn.startColumn||Xt.endColumn,Dn.endLineNumber||Xt.endLineNumber,Dn.endColumn||Xt.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:Cn,text:""}])},300)}}function zt(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),Ee())}const qt=()=>{if(ge&&Ze.current.instance){const Gt=Ze.current.instance.getContentHeight();qn(Gt<Qe?Qe:Gt)}else qn(Qe)};function cn(Gt){var Xt=document.createEvent("MouseEvents");Xt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Xt)}const gn=Gt=>{if(!he.current)return;const{keyCode:Xt,ctrlKey:Dn,metaKey:Cn,target:yt,type:Et}=Gt;return(Et==="paste"||(Xt===67||Xt===86)&&(Cn||Dn))&&yt.nodeName==="TEXTAREA"&&($(),Gt.preventDefault()),!1};function En(Gt,Xt){var Dn=window.URL||window.webkitURL||window,Cn=new Blob([Xt]),yt=document.createElementNS("http://www.w3.org/1999/xhtml","a");yt.href=Dn.createObjectURL(Cn),yt.download=Gt,cn(yt)}(0,l.useEffect)(()=>{qt()},[qt]),(0,l.useEffect)(()=>{D.current&&!be&&Promise.all([d.e(8909),d.e(5977)]).then(d.bind(d,71448)).then(Gt=>{try{Ve=Gt,Ze.current.instance=Ve.editor.create(D.current,{value:Ne,language:Ke(Oe),theme:Z,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Je||!1}},Re);const Xt=Ze.current.instance;let yt=[...L.BH._menuItems].find(vt=>vt[0]._debugName=="EditorContext")[1],Et=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Be=(vt,xt)=>{var Dt,Jt;let pn=vt._first;do xt.includes((Jt=(Dt=pn.element)==null?void 0:Dt.command)==null?void 0:Jt.id)&&vt._remove(pn);while(pn=pn.next)};if(oe(Xt,Ve),setTimeout(()=>{qt(),Ze.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{En(ft||"educoder.txt",Xt.getValue())}})},500),Ze.current.subscription=Xt.onDidChangeModelContent(vt=>{He.current?clearTimeout(it.current):(qt(),Ye(Xt.getValue(),vt)),it.current=setTimeout(()=>{He.current=!1},500)}),window.Monaco||I(Ve,Ke(Oe)),we&&(Be(yt,Et),D.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gn),window.removeEventListener("paste",gn),window.addEventListener("keydown",gn),window.addEventListener("paste",gn)),window.Monaco=Ve,O&&Xt.onDidBlurEditorWidget(()=>{O(Xt.getValue())}),fe&&Xt.onDidFocusEditorText(()=>{we&&rt(),fe(Xt.getValue())}),we){rt();try{Xt.onDidPaste(vt=>{const xt=Xt.getSelection(),Dt=Ze.current.pastePos||{},Jt=new Ve.Range(Dt.startLineNumber||xt.endLineNumber,Dt.startColumn||xt.endColumn,Dt.endLineNumber||xt.endLineNumber,Dt.endColumn||xt.endColumn);Xt.executeEdits("",[{range:vt.range,text:""}])})}catch(vt){}}let lt=Ue();return Ce&&typeof Ce=="string"&&new R(Ce,Xt,Ve),je(!0),()=>{const vt=Ze.current.instance;vt.dispose();const xt=vt.getModel();xt&&xt.dispose(),Ze.current.subscription&&Ze.current.subscription.dispose(),lt.unobserve(D.current)}}catch(Xt){}})},[]),(0,l.useEffect)(()=>{if(Ze.current.instance&&be)return document.addEventListener("keydown",zt,!1),()=>{document.removeEventListener("keydown",zt)}},[Ee,be]),(0,l.useEffect)(()=>{let Gt=Ze.current.instance;if(Gt&&be){let Xt=Ke(Oe);Ve.editor.setModelLanguage(Gt.getModel(),Xt)}},[Oe,be]),(0,l.useEffect)(()=>{Ze.current.instance&&be&&Ve.editor.setTheme(Z)},[Z,be]),(0,l.useEffect)(()=>{let Gt=Ze.current.instance;ee.current=Fe,Gt&&be&&(Gt.updateOptions(z({},Fe)),setTimeout(()=>{Gt.getModel().updateOptions(z({},Fe))},200))},[JSON.stringify(Fe),be]),(0,l.useEffect)(()=>{let Gt=Ze.current.instance;Gt&&be&&Gt.layout()},[Xe,Qe,be]);const[Fn,Hn]=(0,l.useState)(ve(Xe)),[An,qn]=(0,l.useState)(ve(Qe)),vn=x(z({},re),{width:Fn,height:An,position:"relative"});return l.createElement("div",{className:"my-monaco-editor",ref:D,style:vn,onFocus:()=>{we&&rt()}},me&&l.createElement($e.CopyToClipboard,{text:Ne,onCopy:()=>ae.ZP.success("\u590D\u5236\u6210\u529F")},l.createElement(pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},l.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},l.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Tt({width:tt="100%",height:Pt="100%",original:Xe,modified:Qe,language:Ne,options:Oe={}}){const re=(0,l.useRef)(),[Fe,Re]=(0,l.useState)(null);function Z(ge){let we;return re.current&&(we=new ie.Z(ke=>{for(let Ye of ke)(Ye.target.offsetHeight>0||Ye.target.offsetWidth>0)&&ge.layout()}),we.observe(re.current)),we}(0,l.useEffect)(()=>(re.current&&Promise.all([d.e(8909),d.e(9404)]).then(d.bind(d,2550)).then(ge=>{Ve=ge;const we=Ve.editor.createDiffEditor(re.current,x(z({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},Oe),{wordWrap:!0}));Re(we);let ke=Z(we);return()=>{we.dispose();const Ye=we.getModel();Ye&&Ye.dispose(),ke.unobserve(re.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,l.useEffect)(()=>{Fe&&Fe.setModel({original:Ve.editor.createModel(Xe,Ne),modified:Ve.editor.createModel(Qe,Ne)})},[Xe,Qe,Ne,Fe]);const O=ve(tt),me=ve(Pt),Ee={width:O,height:me};return l.createElement("div",{className:"my-diff-editor",ref:re,style:Ee})}},54077:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return P}});var l={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"},ie=d(29787),U=d(25399),le=d(89787),F=d(92310),g=d.n(F),q=d(76406),Q=d(90736),o=d(59301),P=({className:y,dataSource:S=[],col:I=4,right:N,bottom:W=23,precision:H=0,wrapWidth:j=1200,trackEventItems:A,loading:V,onRemove:R=()=>{},isCurrent:L=!0,showProgress:ae=!1,showAlias:pe=!1,category:ce="notDisplay",hiddenClick:Le=()=>{}})=>{const $e=Math.floor((j-(I-1)*N)/I),Te=[{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 o.createElement(ie.Z,{spinning:V},o.createElement("div",{className:g()(l.list,y)},!!(S!=null&&S.length)&&(S==null?void 0:S.map((Pe,se)=>{var K,w,te,ne,z,x,T;const{name:G,id:ve,identifier:We,featured:st,school_name:_e,image_url:Ke,excellent:Ve,is_plan:rt}=Pe;return o.createElement("div",{key:ve,className:L&&ae?l.wrapisCurrent:l.wrap,style:{width:$e,marginRight:(1+se)%I===0?0:N+H,marginBottom:W}},o.createElement("a",{className:l.li,onClick:Ae=>{Ae.preventDefault(),Ae.stopPropagation(),A&&(0,q.L9)([A]),(0,q.xg)(`/paths/${We}`)}},o.createElement("div",{className:l.img},o.createElement("img",{className:l.cover,src:`${Ke}`}),(K=Pe==null?void 0:Pe.subject_tags)==null?void 0:K.map((Ae,Tt)=>{var tt,Pt;if(Tt===0){const Qe=(tt=Te.find(Ne=>Ne.name==Ae))==null?void 0:tt.swclass;return o.createElement("span",{className:`sprite ${Qe} ${l.sign}`,style:{left:"-4px"}})}const Xe=(Pt=Te.find(Qe=>Qe.name==Ae))==null?void 0:Pt.ptclass;return o.createElement("span",{className:`sprite ${Xe} ${l.sign}`,style:{left:`${48+52*(Tt-1)+2*Tt}px`}})}),o.createElement("div",{className:l.tagsDom},o.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Pe==null?void 0:Pe.excellent)&&o.createElement("div",{className:l.bq},"\u5F00\u653E\u8BFE\u7A0B"),((w=Pe==null?void 0:Pe.custom_tags)==null?void 0:w.length)>0&&(Pe==null?void 0:Pe.custom_tags.map((Ae,Tt)=>{var tt;return o.createElement(U.Z,{title:Ae==null?void 0:Ae.tag_name,key:Tt},o.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((tt=Pe==null?void 0:Pe.custom_tags)==null?void 0:tt.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},o.createElement("span",{className:"multi-llipsis1e"},Ae==null?void 0:Ae.tag_name)))})))),ce=="hide"&&(Pe==null?void 0:Pe.studying)&&L&&o.createElement("div",{className:`${l.movebq} user-path-items`,onClick:Ae=>{Ae.stopPropagation(),R(Pe)}},o.createElement("i",{className:"iconfont icon-yichu1 font12"}),o.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ce)&&L&&o.createElement("div",{className:`${l.hiddenbq} user-path-items`,onClick:Ae=>{Ae.stopPropagation(),Le(Pe)}},o.createElement("i",{className:`iconfont ${ce=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),o.createElement("span",null,ce=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),o.createElement("div",{className:l.name},o.createElement(U.Z,{title:pe&&(Pe!=null&&Pe.excellent_alias_name)?o.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${G}`,o.createElement("br",null),o.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pe==null?void 0:Pe.excellent_alias_name}`)):G},o.createElement("span",{className:l.e},pe&&(Pe==null?void 0:Pe.excellent_alias_name)||G))),L&&ae&&((te=Pe==null?void 0:Pe.progress)==null?void 0:te.all_score)!=0&&o.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},o.createElement(le.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ne=Pe==null?void 0:Pe.progress)==null?void 0:ne.my_score)/((z=Pe==null?void 0:Pe.progress)==null?void 0:z.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(x=Pe==null?void 0:Pe.progress)==null?void 0:x.my_score,"/",(T=Pe==null?void 0:Pe.progress)==null?void 0:T.all_score),(!L||!ae)&&o.createElement(U.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_e}`},o.createElement("div",{className:l.unit},o.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_e)),(!L||!ae)&&o.createElement("div",{className:l.tags},o.createElement("div",null,o.createElement(U.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),o.createElement("span",null,Pe.stages_count))),o.createElement(U.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),o.createElement("span",null,Pe.members_count)))))))})),!S.length&&o.createElement(Q.Z,null)))}},70467:function(ln,qe,d){"use strict";d.d(qe,{jL:function(){return le},w9:function(){return G},QD:function(){return ot},cQ:function(){return se.Z},op:function(){return we},O5:function(){return Ue},_b:function(){return Ce},t7:function(){return H},Gi:function(){return Ve},YG:function(){return _e},qp:function(){return C},vr:function(){return Ge},qE:function(){return oe},Je:function(){return V},wb:function(){return Pe},cq:function(){return Xe},tp:function(){return S}});var l=d(59301),ie={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"},le=({dataSource:$=[],img:ut,imgWidth:xe=346,title:At,sunTitle:zt,bannerExtraContent:qt})=>l.createElement("div",{className:ie.banner},l.createElement("div",{className:ie.content},l.createElement("aside",null,l.createElement("p",null,l.createElement("b",null,At),l.createElement("span",null,zt)),$.length>0&&l.createElement("div",{className:ie.btns},$.map((cn,gn)=>l.createElement("div",{key:gn,onClick:cn.click},cn.name,cn.sign?l.createElement("span",{className:"sprite sprite-33"}):null))),qt),ut&&l.createElement("img",{style:{marginTop:33,marginRight:38},src:ut,width:xe}))),F={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=d(92310),q=d.n(g),Q=d(78267),C=({dataSource:$=[],value:ut,onChange:xe,onTitleChange:At,className:zt,title:qt,titleWidth:cn=41,style:gn={},fontColor:En="#6A7283",showCount:Fn})=>{const[Hn,An]=(0,l.useState)(1),[qn,vn]=(0,l.useState)(!1),Gt=(0,l.useRef)(null),Xt=(0,l.useRef)(null);return(0,l.useEffect)(()=>{var Dn;$.length!==0&&(((Dn=Gt==null?void 0:Gt.current)==null?void 0:Dn.clientHeight)>97?An(1):An(0)),$.length===0&&An(0),vn(!1)},[$]),l.createElement("div",{className:q()(F.row,zt,"fadeIn","animated"),style:gn},l.createElement("div",{onClick:(0,Q.throttle)(()=>At==null?void 0:At(),2e3),style:{width:cn,marginTop:qn?12:4},className:`${F.title} ${At?"current":""}`},qt),l.createElement("div",{className:qn?`${F.tagsWrap} ${F.tagsBorderWrap}`:F.tagsWrap},l.createElement("div",{className:F.bar,ref:Xt,style:Hn>0?{height:Hn===1?97:"auto",overflow:Hn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},l.createElement("div",{className:F.tag,ref:Gt},$==null?void 0:$.map(Dn=>l.createElement("span",{onClick:()=>xe(Dn.id),key:Dn.id,style:{color:En},className:ut===Dn.id?F.active:""},l.createElement("span",{title:Dn.name,className:F.name},Dn.name),!!Fn&&l.createElement("span",{className:F.num},Dn.count))))),!!Hn&&l.createElement(l.Fragment,null,Hn===1?l.createElement("div",{onClick:()=>{var Dn;An(2),((Dn=Gt==null?void 0:Gt.current)==null?void 0:Dn.clientHeight)>245?vn(!0):vn(!1)},className:F.action},"\u5C55\u5F00",l.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):l.createElement("div",{onClick:()=>{Xt.current.scrollTop=0,An(1),vn(!1)},className:F.action},"\u6536\u8D77",l.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},P={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"},S=({dataSource:$=[],value:ut,onChange:xe,className:At,style:zt={}})=>l.createElement("div",{style:zt,className:q()(P.tabs,At)},$.map(qt=>l.createElement("span",{onClick:()=>xe(qt.id),className:ut===qt.id?P.active:"",key:qt.id},qt.name))),I={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"},N=d(37568),H=({dataSource:$=[],value:ut="",onChange:xe,onInputChange:At=()=>{},className:zt,style:qt={},placeholder:cn,allowClear:gn=!1})=>{var En;const[Fn,Hn]=(0,l.useState)(""),[An,qn]=(0,l.useState)("");(0,l.useEffect)(()=>{var Xt;let Dn=ut;(Xt=JSON.stringify(ut))!=null&&Xt.includes("{")&&(Hn(ut.id),Dn=ut.value||"");try{qn(decodeURIComponent(Dn||""))}catch(Cn){qn(decodeURIComponent(Dn||""))}},[ut]);const vn=()=>{xe(encodeURIComponent(An),Fn||null)},Gt=Xt=>{Xt!==Fn&&(Hn(Xt),xe(encodeURIComponent(An),Xt))};return l.createElement("div",{className:q()(I.input,zt),style:qt},!!$.length&&l.createElement("div",{className:I.dropdown},l.createElement("div",{className:I.text},(En=$.find(Xt=>Xt.id===Fn))==null?void 0:En.name,l.createElement("i",{className:"iconfont icon-zhankai4"}),l.createElement("b",{className:I.b1}),l.createElement("b",{className:I.b2})),l.createElement("div",{className:I.menu},$.map((Xt,Dn)=>l.createElement("div",{key:Dn,onClick:()=>Gt(Xt.id)},Xt.name)))),l.createElement(N.default,{onPressEnter:vn,value:An,onChange:Xt=>{qn(Xt.target.value),At(encodeURIComponent(Xt.target.value),Fn||null)},placeholder:cn,variant:"borderless",allowClear:gn,onClear:()=>xe("",Fn||null)}),l.createElement("i",{onClick:vn,className:"iconfont icon-sousuo9 font14 current"}))},j={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"},V=({value:$,onChange:ut,className:xe,total:At,pageSize:zt,style:qt={}})=>{const cn=$<2,gn=$>=Math.ceil(At/zt);return At<=zt?l.createElement(l.Fragment,null):l.createElement("div",{className:q()(j.quickPager,xe),style:qt},l.createElement("div",{onClick:()=>{cn||ut($-1,"prev")},className:cn?j.disabled:""},"\u4E0A\u4E00\u9875"),l.createElement("div",{onClick:()=>{gn||ut($+1,"next")},className:gn?j.disabled:""},"\u4E0B\u4E00\u9875"))},R={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"},L=d(29787),ae=d(25399),pe=d(63139),ce=d(14185),Le=d(76406),$e=d(90736),Pe=({className:$,dataSource:ut=[],col:xe=4,right:At,bottom:zt=23,precision:qt=0,wrapWidth:cn=1200,trackEventItems:gn,loading:En})=>{const Fn=Math.floor((cn-(xe-1)*At)/xe);return l.createElement(L.Z,{spinning:En},l.createElement("div",{className:q()(R.list,$)},!!ut.length&&ut.map((Hn,An)=>{const{name:qn,id:vn,identifier:Gt,power:Xt,cover_image_id:Dn,pic:Cn}=Hn;return l.createElement("div",{className:R.wrap,key:vn,style:{width:Fn,marginRight:(1+An)%xe===0?0:At+qt,marginBottom:zt}},l.createElement("a",{target:"_blank",href:`/shixuns/${Gt}/challenges`,className:R.li,onClick:yt=>{yt.preventDefault(),gn&&(0,Le.L9)([gn]),Xt&&(0,Le.xg)(`/shixuns/${Gt}/challenges`)}},l.createElement("div",{className:R.img},l.createElement("img",{className:R.cover,src:`${Cn}`}),Hn.is_jupyter&&l.createElement("span",{className:`sprite sprite-43 ${R.sign}`}),Hn.is_jupyter_lab&&l.createElement("span",{className:`sprite sprite-42 ${R.sign}`}),Hn.is_unity_3d&&l.createElement("span",{className:`sprite sprite-44 ${R.sign}`})),l.createElement("div",{className:R.name},l.createElement(ae.Z,{title:qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},l.createElement("span",{className:R.e},qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),l.createElement("div",{className:R.tags},l.createElement(ae.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),l.createElement("span",null,Hn.challenges_count))),!!Hn.myshixuns_count&&l.createElement(ae.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),l.createElement("span",null,Hn.myshixuns_count))),l.createElement(ae.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},l.createElement("span",null,l.createElement("span",null,Hn.level))),l.createElement("div",{className:R.rate},l.createElement(pe.Z,{allowHalf:!0,disabled:!0,defaultValue:Hn.score_info}),l.createElement("span",null,"\xA0",Hn.score_info?`${Hn.score_info}\u5206`:"5\u5206")))),!Xt&&l.createElement("div",{className:R.lockWrap},l.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),l.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ut.length&&l.createElement($e.Z,null)))},se=d(54077),K={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"},w=d(62957),te=d(96599),ne="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",z=d(59301),x=($,ut,xe)=>new Promise((At,zt)=>{var qt=En=>{try{gn(xe.next(En))}catch(Fn){zt(Fn)}},cn=En=>{try{gn(xe.throw(En))}catch(Fn){zt(Fn)}},gn=En=>En.done?At(En.value):Promise.resolve(En.value).then(qt,cn);gn((xe=xe.apply($,ut)).next())}),G=({className:$,dataSource:ut=[],col:xe=4,right:At,bottom:zt=23,precision:qt=0,wrapWidth:cn=1200,trackEventItems:gn,loading:En,category:Fn,hiddenClick:Hn,handleVery:An=()=>!0,isCurrent:qn})=>{const[vn,Gt]=w.default.useModal(),Xt=Math.floor((cn-(xe-1)*At)/xe),Dn=Cn=>x(void 0,null,function*(){vn.confirm({title:"\u7F6E\u9876",width:500,content:z.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",z.createElement("span",{className:"c-blue"},"\u201C",Cn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return z.createElement(L.Z,{spinning:En},Gt,z.createElement("div",{className:q()(K.list,$)},!!ut.length&&ut.map((Cn,yt)=>{const{subject_identifier:Et,id:Be,identifier:lt,power:vt}=Cn,xt=Cn.is_public!=0&&Cn.is_public;return z.createElement("div",{className:K.wrap,key:Be,style:{width:Xt,marginRight:(1+yt)%xe===0?0:At+qt,marginBottom:zt}},Cn.homepage_show&&z.createElement("div",{className:K.btnsTop},z.createElement(te.default,{color:"red"},"\u7F6E\u9876")),z.createElement("a",{className:K.li,onClick:Dt=>{Dt.preventDefault(),An(Cn==null?void 0:Cn.first_category_url)&&(gn&&(0,Le.L9)([gn]),(0,Le.xg)(Cn.first_category_url))}},z.createElement("div",{className:K.top},z.createElement(ae.Z,{title:Cn.name},z.createElement("div",{className:K.name},Cn.name)),z.createElement("img",{className:K.img,src:ce.Z.IMG_SERVER+"/images/"+Cn.avatar_url}),z.createElement("div",{className:K.text,title:Cn.creator},Cn.creator),Et&&z.createElement("div",{className:K.btns},z.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),z.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xt&&z.createElement("div",{className:K.sign},"\u516C\u5F00"),qn&&z.createElement("div",{className:K.hidden,onClick:Dt=>{Dt.stopPropagation(),Hn(Cn)}},z.createElement("i",{className:`iconfont ${Fn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Fn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),z.createElement("div",{className:K.bottom},Cn.visits>0&&z.createElement(ae.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-liulanyan"}),z.createElement("span",null,Cn.visits))),Cn.course_members_count>0&&z.createElement(ae.Z,{title:"\u6210\u5458",placement:"bottom"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan"}),Cn.course_members_count)),Cn.tasks_count>0&&z.createElement(ae.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-zuoye"}),Cn.tasks_count)),Cn.is_end?z.createElement("div",{style:{color:"#6B758B"}}):z.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Cn.is_accessible&&z.createElement("div",{className:K.lockWrap},z.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ut.length&&z.createElement($e.Z,null)))},ve={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"},We=d(44283),_e=({dataSource:$=[],value:ut,onChange:xe,className:At,style:zt={},tabBarExtraContent:qt})=>l.createElement("div",{className:q()(ve.tabs,At),style:zt},l.createElement("div",{className:ve.tabsWrap},$.map((cn,gn)=>!(cn!=null&&cn.hide)&&l.createElement("aside",{className:ve.tab,onClick:()=>{xe(cn.id),cn.link&&We.history.push(cn.link)},key:gn},l.createElement("div",{className:ut===cn.id?ve.active:""},cn.name),(cn==null?void 0:cn.resetCount)==null&&(cn==null?void 0:cn.total)!==void 0&&l.createElement("span",null,"\uFF08",cn==null?void 0:cn.total,"\uFF09"),(cn==null?void 0:cn.resetCount)!==void 0&&(cn==null?void 0:cn.total)!==void 0&&l.createElement(ae.Z,{title:(cn==null?void 0:cn.tip)!=null?cn==null?void 0:cn.tip:""},l.createElement("span",{style:{color:"#9096A3"}},"\uFF08",l.createElement("span",{style:{color:"#000"}},cn==null?void 0:cn.resetCount),"/",l.createElement("span",null,cn==null?void 0:cn.total),"\uFF09"))))),l.createElement("div",{className:ve.tabBar},qt)),Ve=({className:$,style:ut={},children:xe})=>l.createElement("div",{className:q()($),style:ut},xe),rt={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"},Ae=d(75727),Tt=d(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 Xe=({sortValue:$,dropValue:ut,className:xe,onSort:At,onDrop:zt,dataSource:qt=tt})=>{var cn;return l.createElement("div",{className:q()(rt.orderWrap,xe)},l.createElement(Ae.Z,{dropdownRender:()=>l.createElement(Tt.default,null,qt.map((gn,En)=>l.createElement(Tt.default.Item,{key:En,onClick:()=>zt(gn.id)},gn.name)))},l.createElement("span",{className:rt.orderTextWrap},(cn=qt.find(gn=>ut===gn.id))==null?void 0:cn.name)),l.createElement("span",{className:rt.orderIconWrap},l.createElement("span",{className:rt.orderAsc},l.createElement("i",{className:$==="asc"?`iconfont icon-sanjiaoxing-up font12 ${rt.cursorPointer} ${rt.active}`:`iconfont icon-sanjiaoxing-up font12 ${rt.cursorPointer}`,onClick:()=>At($==="asc"?"desc":"asc")})),l.createElement("span",{className:rt.orderDesc},l.createElement("i",{className:$==="desc"?`iconfont icon-sanjiaoxing-down font12 ${rt.cursorPointer} ${rt.active}`:`iconfont icon-sanjiaoxing-down font12 ${rt.cursorPointer}`,onClick:()=>At($==="asc"?"desc":"asc")}))))},Qe={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"},Ne=d(7939),Oe=Object.defineProperty,re=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Z=($,ut,xe)=>ut in $?Oe($,ut,{enumerable:!0,configurable:!0,writable:!0,value:xe}):$[ut]=xe,O=($,ut)=>{for(var xe in ut||(ut={}))Fe.call(ut,xe)&&Z($,xe,ut[xe]);if(re)for(var xe of re(ut))Re.call(ut,xe)&&Z($,xe,ut[xe]);return $},me=($,ut)=>{var xe={};for(var At in $)Fe.call($,At)&&ut.indexOf(At)<0&&(xe[At]=$[At]);if($!=null&&re)for(var At of re($))ut.indexOf(At)<0&&Re.call($,At)&&(xe[At]=$[At]);return xe},Ee=($,ut,xe)=>new Promise((At,zt)=>{var qt=En=>{try{gn(xe.next(En))}catch(Fn){zt(Fn)}},cn=En=>{try{gn(xe.throw(En))}catch(Fn){zt(Fn)}},gn=En=>En.done?At(En.value):Promise.resolve(En.value).then(qt,cn);gn((xe=xe.apply($,ut)).next())}),we=$=>{var ut=$,{className:xe,style:At,children:zt,loading:qt=!1,openLoading:cn,onClick:gn=()=>{},size:En="middle",shape:Fn="round"}=ut,Hn=me(ut,["className","style","children","loading","openLoading","onClick","size","shape"]);const[An,qn]=(0,l.useState)(!1);return l.createElement(Ne.ZP,O({onClick:(0,Q.throttle)(vn=>Ee(void 0,null,function*(){cn&&qn(!0);try{yield gn(vn)}catch(Gt){console.log("error",Gt)}cn&&qn(!1)}),2e3,{leading:!0,trailing:!1}),className:q()(Qe.btn,Qe[`${En}-${Fn}`],xe),style:At,size:En,shape:Fn,loading:An||qt},Hn),zt)},ke={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"},oe=({className:$,style:ut,children:xe=null,onClick:At,title:zt})=>l.createElement("div",{className:q()(ke.head,$),style:ut},l.createElement("span",{className:"primary-hover",onClick:At},l.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),l.createElement("b",{title:zt},zt),l.createElement("div",{className:ke.node},xe)),fe={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"},ot=({confirmShow:$=!0,confirmTitle:ut,confirmClick:xe,cancelShow:At=!0,cancelTitle:zt,cancelClick:qt,className:cn,style:gn,confirmLoading:En=!1})=>l.createElement("div",{className:q()(fe.btns,cn),style:gn},$&&l.createElement(Ne.ZP,{loading:En,onClick:xe,type:"primary",className:fe.confirm},ut),At&&l.createElement(Ne.ZP,{onClick:qt,className:fe.cancel},zt)),ft={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"},Ge=({className:$,style:ut={},LeftContent:xe,children:At,RightContent:zt})=>l.createElement("div",{className:q()(ft.fixedBottom,$),style:ut},l.createElement("div",{className:ft.wrap},l.createElement("div",{className:ft.left},xe),l.createElement("div",{className:ft.center},At),l.createElement("div",{className:ft.right},zt))),Ct={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"},Ce=({className:$,style:ut={},dataSource:xe=[]})=>l.createElement("div",{className:q()(Ct.crumbs,$),style:ut},xe.map((At,zt)=>zt<xe.length-1?l.createElement(l.Fragment,{key:zt},At.path||At.onClick?l.createElement("span",{className:Ct.hover,onClick:At!=null&&At.onClick?At.onClick:()=>We.history.push(At.path)},At.name):l.createElement("span",null,At.name),l.createElement("span",null,"\xA0",">","\xA0")):l.createElement("span",{key:zt,style:{color:"#5F6368"}},At.name))),Je=d(11938),_=Object.defineProperty,D=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,He=($,ut,xe)=>ut in $?_($,ut,{enumerable:!0,configurable:!0,writable:!0,value:xe}):$[ut]=xe,it=($,ut)=>{for(var xe in ut||(ut={}))ye.call(ut,xe)&&He($,xe,ut[xe]);if(ee)for(var xe of ee(ut))Ot.call(ut,xe)&&He($,xe,ut[xe]);return $},ct=($,ut)=>D($,Ze(ut)),he=($,ut)=>{var xe={};for(var At in $)ye.call($,At)&&ut.indexOf(At)<0&&(xe[At]=$[At]);if($!=null&&ee)for(var At of ee($))ut.indexOf(At)<0&&Ot.call($,At)&&(xe[At]=$[At]);return xe};const{Countdown:be}=Je.default;var Ue=$=>{var ut=$,{onChange:xe}=ut,At=he(ut,["onChange"]);const[zt,qt]=(0,l.useState)(null);(0,l.useEffect)(()=>{typeof zt=="number"&&zt>=0&&xe(zt)},[zt]);const cn=gn=>{const En=Math.floor(gn/1e3);qt(En)};return l.createElement(be,ct(it({},At),{onChange:cn}))}},34006:function(ln,qe,d){"use strict";d.d(qe,{H:function(){return C}});var l=d(59301),ie=d(28284),U=d(29787),le=d(37568),F=d(42441),g=d(35883),q=d(70467),Q=d(8633);const o=({form:P,index:y=1,field:S,ParentName:I=[],handleModules:N})=>{(typeof I=="string"||typeof I=="number")&&(I=[I]);const W=ie.default.useWatch([...I,S.name,"chart_1"],{form:P}),H=ie.default.useWatch([...I,S.name,"chart_2"],{form:P}),j=ie.default.useWatch([...I,S.name,"name"],{form:P}),A=ie.default.useWatch([...I,S.name,"question_type"],{form:P}),V=ie.default.useWatch([...I,S.name,"ai_exam_summary_record_info"],{form:P}),R=(0,l.useMemo)(()=>{const ae=[],pe=[];return W==null||W.forEach(ce=>{ae.push(ce==null?void 0:ce.x_axis),pe.push(ce==null?void 0:ce.y_axis)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%",containLabel:!0},xAxis:{type:"category",data:[...ae||[],[4,5,6,7,8].includes(A)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:pe,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[W]),L=(0,l.useMemo)(()=>{const ae=[],pe=[];return H==null||H.forEach(ce=>{ae.push(ce==null?void 0:ce.x_axis),pe.push(Math.round((ce==null?void 0:ce.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...ae||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(ce,Le)=>ce!=="\u9898\u76EE"?`${Le+1}
|
|
|
|
|
|
{subtext|${(ce.length>6?ce==null?void 0:ce.slice(0,6):ce).split("").join(`
|
|
|
`)}}`:ce,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:pe,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[H]);return l.createElement(l.Fragment,null,l.createElement("div",{className:"flex item-center justify-between mb10"},l.createElement("div",{className:"text-500 font14"},y,".",j),l.createElement(q.op,{disabled:(V==null?void 0:V.status)===Q.Jb.REQUESTING,style:{borderRadius:"4px"},onClick:()=>{N({exam_summary_type:0,question_type:A},[...I,S.name,"ai_exam_summary_record_info"])}},"\u5927\u6A21\u578B\u751F\u6210\u5206\u6790")),l.createElement(U.Z,{spinning:(V==null?void 0:V.status)===Q.Jb.REQUESTING,tip:"\u5927\u6A21\u578B\u751F\u6210\u4E2D..."},l.createElement(ie.default.Item,{name:[S.name,"content"]},l.createElement(le.default.TextArea,{rows:3}))),l.createElement("div",{className:"mt20"},l.createElement("div",{className:"font14 mb10"},"\u5B66\u5458\u7B54\u9898\u60C5\u51B5"),l.createElement(F.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB"},option:R})),l.createElement("div",{className:"mt20"},l.createElement("div",{className:"font14 mb10"},"\u5404\u5C0F\u9898\u7B54\u9898\u60C5\u51B5"),l.createElement(F.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB",height:331},option:L})))};qe.Z=l.memo(o);const C=l.memo(({form:P,index:y=1,data:S})=>{const I=(0,l.useMemo)(()=>{var W;const H=[],j=[];return(W=S==null?void 0:S.chart_1)==null||W.forEach(A=>{H.push(A==null?void 0:A.x_axis),j.push(A==null?void 0:A.y_axis)}),{backgroundColor:"#F6F7F9",tooltip:{},grid:{left:"5%",right:"5%",bottom:"15%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...H||[],[4,5,6,7,8].includes(S==null?void 0:S.question_type)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:j,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[S==null?void 0:S.chart_1]),N=(0,l.useMemo)(()=>{var W;const H=[],j=[];return(W=S==null?void 0:S.chart_2)==null||W.forEach(A=>{H.push(A==null?void 0:A.x_axis),j.push(Math.round((A==null?void 0:A.y_axis)*1e4)/100)}),{backgroundColor:"#F6F7F9",tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...H||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(A,V)=>A!=="\u9898\u76EE"?`${V+1}
|
|
|
|
|
|
{subtext|${(A.length>6?A==null?void 0:A.slice(0,6):A).split("").join(`
|
|
|
`)}}`:A,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:j,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[S==null?void 0:S.chart_2]);return l.createElement(l.Fragment,null,l.createElement("div",{className:`w-full text-500 font14 mb10 c-black ${y!=1?"mt-40px":""}`},y,".",S==null?void 0:S.name),l.createElement("div",{className:"w-full"},l.createElement(g.Z,{className:"font14 c-grey-333",value:S==null?void 0:S.content})),l.createElement(F.Z,{className:"mt20",option:I}),l.createElement("div",{className:"font14 mt10 text-center w-full"},"\u56FE",y*2-1,"\xA0\xA0",S==null?void 0:S.name,"\u7B54\u9898\u5F97\u5206\u60C5\u51B5\u5206\u5E03"),l.createElement(F.Z,{className:"mt20",style:{height:331},option:N}),l.createElement("div",{className:"font14 mt10 text-center w-full"},"\u56FE",y*2,"\xA0\xA0",S==null?void 0:S.name,"\u5404\u5C0F\u9898\u5F97\u5206\u7387"))})},63392:function(ln,qe,d){"use strict";d.d(qe,{U:function(){return o}});var l=d(59301),ie=Object.defineProperty,U=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,g=(C,P,y)=>P in C?ie(C,P,{enumerable:!0,configurable:!0,writable:!0,value:y}):C[P]=y,q=(C,P)=>{for(var y in P||(P={}))le.call(P,y)&&g(C,y,P[y]);if(U)for(var y of U(P))F.call(P,y)&&g(C,y,P[y]);return C},Q=(C,P,y)=>new Promise((S,I)=>{var N=j=>{try{H(y.next(j))}catch(A){I(A)}},W=j=>{try{H(y.throw(j))}catch(A){I(A)}},H=j=>j.done?S(j.value):Promise.resolve(j.value).then(N,W);H((y=y.apply(C,P)).next())});function o(C,P){const[y,S]=(0,l.useState)(P),[I,N]=(0,l.useState)(!1),[W,H]=(0,l.useState)();return[y,I,(A,V=!1)=>Q(this,null,function*(){const R=V?P:q(q({},y),A);N(!0),S(R);const L=yield C(R);return N(!1),H(L),L}),W,H]}},20047:function(ln,qe,d){"use strict";d.d(qe,{AL:function(){return R},Iy:function(){return P},Qv:function(){return I},ez:function(){return V},jb:function(){return y}});var l=d(32834),ie=d.n(l),U=d(11690),le=d.n(U);let F=1;function g(Le,$e){const Te=Le.match(/^(\s+)(?:```)/);if(Te===null)return $e;const Pe=Te[1];return $e.split(`
|
|
|
`).map(se=>{const K=se.match(/^\s+/);if(K===null)return se;const[w]=K;return w.length>=Pe.length?se.slice(Pe.length):se}).join(`
|
|
|
`)}let q=[],Q=["<ul>"];const o=new(ie()).Renderer,C=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function P(){q.length=0,Q=["<ul>"]}const y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function S(Le,$e,Te,Pe){if($e>=Le.length||Le[$e].level<=Te)return $e;var se=Le[$e];Pe.push("<li><a href='#"+F+se.anchor+"'>"+se.text+"</a>"),$e++;var K=[];return $e=S(Le,$e,se.level,K),K.length>0&&(Pe.push("<ul>"),K.forEach(function(w){Pe.push(w)}),Pe.push("</ul>")),Pe.push("</li>"),$e=S(Le,$e,Te,Pe),$e}function I(){return S(q,0,0,Q),Q.push("</ul>"),Q.join("")}const N={heading(Le){const $e=C.exec(Le);if(F+=1,$e)return{type:"heading",raw:$e[0],depth:$e[1].length,text:$e[2]}},fences(Le){const $e=this.rules.block.fences.exec(Le);if($e){const Te=$e[0];let Pe=g(Te,$e[3]||"");const se=$e[2]?$e[2].trim():$e[2];if(["latex","katex","math"].indexOf(se)>=0){const K=j(),w=Pe;Pe=K,A[K]={type:"block",expression:w}}return{type:"code",raw:Te,lang:se,text:Pe}}}},W=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let H=0;const j=()=>`__special_katext_id_${H++}__`;let A={};function V(){return A}function R(){H=0,A={}}function L(Le){return Le=Le.replace(W,($e,Te)=>{const Pe=j();return A[Pe]={type:"inline",expression:Te},Pe}),Le}const ae=o.listitem;o.listitem=function(Le){return ae(L(Le))};const pe=o.paragraph;o.paragraph=function(Le){return pe(L(Le))};const ce=o.tablecell;o.tablecell=function(Le,$e){return ce(L(Le),$e)},o.code=function(Le,$e,Te){const Pe=($e||"").match(/\S*/)[0];return Pe?["latex","katex","math"].indexOf(Pe)>=0?`<p class='editormd-tex'>${Le}</p>`:`<pre class="prettyprint linenums"><code class="language-${$e}">${Te?Le:(0,U.escape)(Le,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Te?Le:(0,U.escape)(Le,!0))+"</code></pre>"},o.heading=function(Le,$e,Te){let Pe=this.options.headerPrefix+Te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return q.push({anchor:Pe,level:$e,text:Le}),"<h"+$e+' id="'+F+Pe+'">'+Le+"</h"+$e+">"},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:N,renderer:o}),qe.ZP=ie()},29509:function(ln,qe,d){"use strict";d.d(qe,{o2:function(){return F},yT:function(){return g}});var l=d(77654),ie=d(34998);const U=ie.i.map(q=>`${q}-inverse`),le=["success","processing","error","default","warning"];function F(q){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,l.Z)(U),(0,l.Z)(ie.i)).includes(q):ie.i.includes(q)}function g(q){return le.includes(q)}},9981:function(ln,qe){"use strict";const d=function(){const l=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ie=1;ie<arguments.length;ie++){const U=ie<0||arguments.length<=ie?void 0:arguments[ie];U&&Object.keys(U).forEach(le=>{const F=U[le];F!==void 0&&(l[le]=F)})}return l};qe.Z=d},99402:function(ln,qe,d){"use strict";d.d(qe,{T:function(){return ie},n:function(){return l}});function l(U){return["small","middle","large"].includes(U)}function ie(U){return U?typeof U=="number"&&!Number.isNaN(U):!1}},86013:function(ln,qe,d){"use strict";var l=d(59301),ie=d(19248);const U=le=>{let F;return typeof le=="object"&&(le!=null&&le.clearIcon)?F=le:le&&(F={clearIcon:l.createElement(ie.Z,null)}),F};qe.Z=U},97224:function(ln,qe,d){"use strict";d.d(qe,{F:function(){return l}});function l(U){return U!=null&&U===U.window}const ie=U=>{var le,F;if(typeof window=="undefined")return 0;let g=0;return l(U)?g=U.pageYOffset:U instanceof Document?g=U.documentElement.scrollTop:(U instanceof HTMLElement||U)&&(g=U.scrollTop),U&&!l(U)&&typeof g!="number"&&(g=(F=((le=U.ownerDocument)!==null&&le!==void 0?le:U).documentElement)===null||F===void 0?void 0:F.scrollTop),g};qe.Z=ie},52838:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return g}});var l=d(37645);function ie(q,Q,o,C){if(C===!1)return{adjustX:!1,adjustY:!1};const P=C&&typeof C=="object"?C:{},y={};switch(q){case"top":case"bottom":y.shiftX=Q.arrowOffsetHorizontal*2+o,y.shiftY=!0,y.adjustY=!0;break;case"left":case"right":y.shiftY=Q.arrowOffsetVertical*2+o,y.shiftX=!0,y.adjustX=!0;break}const S=Object.assign(Object.assign({},y),P);return S.shiftX||(S.adjustX=!0),S.shiftY||(S.adjustY=!0),S}const U={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},le={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},F=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(q){const{arrowWidth:Q,autoAdjustOverflow:o,arrowPointAtCenter:C,offset:P,borderRadius:y,visibleFirst:S}=q,I=Q/2,N={};return Object.keys(U).forEach(W=>{const H=C&&le[W]||U[W],j=Object.assign(Object.assign({},H),{offset:[0,0],dynamicInset:!0});switch(N[W]=j,F.has(W)&&(j.autoArrow=!1),W){case"top":case"topLeft":case"topRight":j.offset[1]=-I-P;break;case"bottom":case"bottomLeft":case"bottomRight":j.offset[1]=I+P;break;case"left":case"leftTop":case"leftBottom":j.offset[0]=-I-P;break;case"right":case"rightTop":case"rightBottom":j.offset[0]=I+P;break}const A=(0,l.wZ)({contentRadius:y,limitVerticalRadius:!0});if(C)switch(W){case"topLeft":case"bottomLeft":j.offset[0]=-A.arrowOffsetHorizontal-I;break;case"topRight":case"bottomRight":j.offset[0]=A.arrowOffsetHorizontal+I;break;case"leftTop":case"rightTop":j.offset[1]=-A.arrowOffsetHorizontal*2+I;break;case"leftBottom":case"rightBottom":j.offset[1]=A.arrowOffsetHorizontal*2-I;break}j.overflow=ie(W,A,Q,o),S&&(j.htmlRegion="visibleFirst")}),N}},83010:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return le}});var l=d(16089);function ie(F,g,q,Q){const o=q-g;return F/=Q/2,F<1?o/2*F*F*F+g:o/2*((F-=2)*F*F+2)+g}var U=d(97224);function le(F){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:q=()=>window,callback:Q,duration:o=450}=g,C=q(),P=(0,U.Z)(C),y=Date.now(),S=()=>{const N=Date.now()-y,W=ie(N>o?o:N,P,F,o);(0,U.F)(C)?C.scrollTo(window.pageXOffset,W):C instanceof Document||C.constructor.name==="HTMLDocument"?C.documentElement.scrollTop=W:C.scrollTop=W,N<o?(0,l.Z)(S):typeof Q=="function"&&Q()};(0,l.Z)(S)}},82855:function(ln,qe,d){"use strict";d.d(qe,{F:function(){return F},Z:function(){return le}});var l=d(92310),ie=d.n(l);const U=null;function le(g,q,Q){return ie()({[`${g}-status-success`]:q==="success",[`${g}-status-warning`]:q==="warning",[`${g}-status-error`]:q==="error",[`${g}-status-validating`]:q==="validating",[`${g}-has-feedback`]:Q})}const F=(g,q)=>q||g},91882:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return ne}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(11592),F=d(26112),g=d(22703),q=d(48755),Q=d(84105),o=d(19563);const C=z=>{let{children:x}=z;const{getPrefixCls:T}=l.useContext(q.E_),G=T("breadcrumb");return l.createElement("li",{className:`${G}-separator`,"aria-hidden":"true"},x===""?x:x||"/")};C.__ANT_BREADCRUMB_SEPARATOR=!0;var P=C,y=function(z,x){var T={};for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&x.indexOf(G)<0&&(T[G]=z[G]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,G=Object.getOwnPropertySymbols(z);ve<G.length;ve++)x.indexOf(G[ve])<0&&Object.prototype.propertyIsEnumerable.call(z,G[ve])&&(T[G[ve]]=z[G[ve]]);return T};function S(z,x){if(z.title===void 0||z.title===null)return null;const T=Object.keys(x).join("|");return typeof z.title=="object"?z.title:String(z.title).replace(new RegExp(`:(${T})`,"g"),(G,ve)=>x[ve]||G)}function I(z,x,T,G){if(T==null)return null;const{className:ve,onClick:We}=x,st=y(x,["className","onClick"]),_e=Object.assign(Object.assign({},(0,F.Z)(st,{data:!0,aria:!0})),{onClick:We});return G!==void 0?l.createElement("a",Object.assign({},_e,{className:U()(`${z}-link`,ve),href:G}),T):l.createElement("span",Object.assign({},_e,{className:U()(`${z}-link`,ve)}),T)}function N(z,x){return(G,ve,We,st,_e)=>{if(x)return x(G,ve,We,st);const Ke=S(G,ve);return I(z,G,Ke,_e)}}var W=function(z,x){var T={};for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&x.indexOf(G)<0&&(T[G]=z[G]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,G=Object.getOwnPropertySymbols(z);ve<G.length;ve++)x.indexOf(G[ve])<0&&Object.prototype.propertyIsEnumerable.call(z,G[ve])&&(T[G[ve]]=z[G[ve]]);return T};const H=z=>{const{prefixCls:x,separator:T="/",children:G,menu:ve,overlay:We,dropdownProps:st,href:_e}=z,Ve=(rt=>{if(ve||We){const Ae=Object.assign({},st);if(ve){const Tt=ve||{},{items:tt}=Tt,Pt=W(Tt,["items"]);Ae.menu=Object.assign(Object.assign({},Pt),{items:tt==null?void 0:tt.map((Xe,Qe)=>{var{key:Ne,title:Oe,label:re,path:Fe}=Xe,Re=W(Xe,["key","title","label","path"]);let Z=re!=null?re:Oe;return Fe&&(Z=l.createElement("a",{href:`${_e}${Fe}`},Z)),Object.assign(Object.assign({},Re),{key:Ne!=null?Ne:Qe,label:Z})})})}else We&&(Ae.overlay=We);return l.createElement(o.Z,Object.assign({placement:"bottom"},Ae),l.createElement("span",{className:`${x}-overlay-link`},rt,l.createElement(Q.Z,null)))}return rt})(G);return Ve!=null?l.createElement(l.Fragment,null,l.createElement("li",null,Ve),T&&l.createElement(P,null,T)):null},j=z=>{const{prefixCls:x,children:T,href:G}=z,ve=W(z,["prefixCls","children","href"]),{getPrefixCls:We}=l.useContext(q.E_),st=We("breadcrumb",x);return l.createElement(H,Object.assign({},ve,{prefixCls:st}),I(st,ve,T,G))};j.__ANT_BREADCRUMB_ITEM=!0;var A=j,V=d(36237),R=d(63356),L=d(16931),ae=d(51636);const pe=z=>{const{componentCls:x,iconCls:T,calc:G}=z;return{[x]:Object.assign(Object.assign({},(0,R.Wf)(z)),{color:z.itemColor,fontSize:z.fontSize,[T]:{fontSize:z.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:z.linkColor,transition:`color ${z.motionDurationMid}`,padding:`0 ${(0,V.unit)(z.paddingXXS)}`,borderRadius:z.borderRadiusSM,height:z.fontHeight,display:"inline-block",marginInline:G(z.marginXXS).mul(-1).equal(),"&:hover":{color:z.linkHoverColor,backgroundColor:z.colorBgTextHover}},(0,R.Qy)(z)),"li:last-child":{color:z.lastItemColor},[`${x}-separator`]:{marginInline:z.separatorMargin,color:z.separatorColor},[`${x}-link`]:{[`
|
|
|
> ${T} + span,
|
|
|
> ${T} + a
|
|
|
`]:{marginInlineStart:z.marginXXS}},[`${x}-overlay-link`]:{borderRadius:z.borderRadiusSM,height:z.fontHeight,display:"inline-block",padding:`0 ${(0,V.unit)(z.paddingXXS)}`,marginInline:G(z.marginXXS).mul(-1).equal(),[`> ${T}`]:{marginInlineStart:z.marginXXS,fontSize:z.fontSizeIcon},"&:hover":{color:z.linkHoverColor,backgroundColor:z.colorBgTextHover,a:{color:z.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${z.componentCls}-rtl`]:{direction:"rtl"}})}},ce=z=>({itemColor:z.colorTextDescription,lastItemColor:z.colorText,iconFontSize:z.fontSize,linkColor:z.colorTextDescription,linkHoverColor:z.colorText,separatorColor:z.colorTextDescription,separatorMargin:z.marginXS});var Le=(0,L.I$)("Breadcrumb",z=>{const x=(0,ae.mergeToken)(z,{});return pe(x)},ce),$e=function(z,x){var T={};for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&x.indexOf(G)<0&&(T[G]=z[G]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,G=Object.getOwnPropertySymbols(z);ve<G.length;ve++)x.indexOf(G[ve])<0&&Object.prototype.propertyIsEnumerable.call(z,G[ve])&&(T[G[ve]]=z[G[ve]]);return T};function Te(z){const{breadcrumbName:x,children:T}=z,G=$e(z,["breadcrumbName","children"]),ve=Object.assign({title:x},G);return T&&(ve.menu={items:T.map(We=>{var{breadcrumbName:st}=We,_e=$e(We,["breadcrumbName"]);return Object.assign(Object.assign({},_e),{title:st})})}),ve}function Pe(z,x){return(0,l.useMemo)(()=>z||(x?x.map(Te):null),[z,x])}var se=function(z,x){var T={};for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&x.indexOf(G)<0&&(T[G]=z[G]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,G=Object.getOwnPropertySymbols(z);ve<G.length;ve++)x.indexOf(G[ve])<0&&Object.prototype.propertyIsEnumerable.call(z,G[ve])&&(T[G[ve]]=z[G[ve]]);return T};const K=(z,x)=>{if(x===void 0)return x;let T=(x||"").replace(/^\//,"");return Object.keys(z).forEach(G=>{T=T.replace(`:${G}`,z[G])}),T},w=z=>{const{prefixCls:x,separator:T="/",style:G,className:ve,rootClassName:We,routes:st,items:_e,children:Ke,itemRender:Ve,params:rt={}}=z,Ae=se(z,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:tt,breadcrumb:Pt}=l.useContext(q.E_);let Xe;const Qe=Tt("breadcrumb",x),[Ne,Oe,re]=Le(Qe),Fe=Pe(_e,st),Re=N(Qe,Ve);if(Fe&&Fe.length>0){const me=[],Ee=_e||st;Xe=Fe.map((ge,we)=>{const{path:ke,key:Ye,type:oe,menu:fe,overlay:dt,onClick:ot,className:ft,separator:ht,dropdownProps:Ge}=ge,Ct=K(rt,ke);Ct!==void 0&&me.push(Ct);const gt=Ye!=null?Ye:we;if(oe==="separator")return l.createElement(P,{key:gt},ht);const Ce={},Je=we===Fe.length-1;fe?Ce.menu=fe:dt&&(Ce.overlay=dt);let{href:_}=ge;return me.length&&Ct!==void 0&&(_=`#/${me.join("/")}`),l.createElement(H,Object.assign({key:gt},Ce,(0,F.Z)(ge,{data:!0,aria:!0}),{className:ft,dropdownProps:Ge,href:_,separator:Je?"":T,onClick:ot,prefixCls:Qe}),Re(ge,rt,Ee,me,_))})}else if(Ke){const me=(0,le.Z)(Ke).length;Xe=(0,le.Z)(Ke).map((Ee,ge)=>{if(!Ee)return Ee;const we=ge===me-1;return(0,g.Tm)(Ee,{separator:we?"":T,key:ge})})}const Z=U()(Qe,Pt==null?void 0:Pt.className,{[`${Qe}-rtl`]:tt==="rtl"},ve,We,Oe,re),O=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),G);return Ne(l.createElement("nav",Object.assign({className:Z,style:O},Ae),l.createElement("ol",null,Xe)))};w.Item=A,w.Separator=P;var te=w,ne=te},62673:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Le}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(16632),F=d(8654),g=d(12919),q=d(63872),Q=d(48755),o=d(2171),C=d(83397),P=d(56553),S=l.createContext(null),I=d(36170),N=d(74632),W=function($e,Te){var Pe={};for(var se in $e)Object.prototype.hasOwnProperty.call($e,se)&&Te.indexOf(se)<0&&(Pe[se]=$e[se]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,se=Object.getOwnPropertySymbols($e);K<se.length;K++)Te.indexOf(se[K])<0&&Object.prototype.propertyIsEnumerable.call($e,se[K])&&(Pe[se[K]]=$e[se[K]]);return Pe};const H=($e,Te)=>{var Pe;const{prefixCls:se,className:K,rootClassName:w,children:te,indeterminate:ne=!1,style:z,onMouseEnter:x,onMouseLeave:T,skipGroup:G=!1,disabled:ve}=$e,We=W($e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:st,direction:_e,checkbox:Ke}=l.useContext(Q.E_),Ve=l.useContext(S),{isFormItemInput:rt}=l.useContext(P.aM),Ae=l.useContext(o.Z),Tt=(Pe=(Ve==null?void 0:Ve.disabled)||ve)!==null&&Pe!==void 0?Pe:Ae,tt=l.useRef(We.value),Pt=l.useRef(null),Xe=(0,F.sQ)(Te,Pt);l.useEffect(()=>{Ve==null||Ve.registerValue(We.value)},[]),l.useEffect(()=>{if(!G)return We.value!==tt.current&&(Ve==null||Ve.cancelValue(tt.current),Ve==null||Ve.registerValue(We.value),tt.current=We.value),()=>Ve==null?void 0:Ve.cancelValue(We.value)},[We.value]),l.useEffect(()=>{var ge;!((ge=Pt.current)===null||ge===void 0)&&ge.input&&(Pt.current.input.indeterminate=ne)},[ne]);const Qe=st("checkbox",se),Ne=(0,C.Z)(Qe),[Oe,re,Fe]=(0,I.ZP)(Qe,Ne),Re=Object.assign({},We);Ve&&!G&&(Re.onChange=function(){We.onChange&&We.onChange.apply(We,arguments),Ve.toggleOption&&Ve.toggleOption({label:te,value:We.value})},Re.name=Ve.name,Re.checked=Ve.value.includes(We.value));const Z=U()(`${Qe}-wrapper`,{[`${Qe}-rtl`]:_e==="rtl",[`${Qe}-wrapper-checked`]:Re.checked,[`${Qe}-wrapper-disabled`]:Tt,[`${Qe}-wrapper-in-form-item`]:rt},Ke==null?void 0:Ke.className,K,w,Fe,Ne,re),O=U()({[`${Qe}-indeterminate`]:ne},q.A,re),[me,Ee]=(0,N.Z)(Re.onClick);return Oe(l.createElement(g.Z,{component:"Checkbox",disabled:Tt},l.createElement("label",{className:Z,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),z),onMouseEnter:x,onMouseLeave:T,onClick:me},l.createElement(le.Z,Object.assign({},Re,{onClick:Ee,prefixCls:Qe,className:O,disabled:Tt,ref:Xe})),te!==void 0&&l.createElement("span",{className:`${Qe}-label`},te))))};var A=l.forwardRef(H),V=d(77654),R=d(2738),L=function($e,Te){var Pe={};for(var se in $e)Object.prototype.hasOwnProperty.call($e,se)&&Te.indexOf(se)<0&&(Pe[se]=$e[se]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,se=Object.getOwnPropertySymbols($e);K<se.length;K++)Te.indexOf(se[K])<0&&Object.prototype.propertyIsEnumerable.call($e,se[K])&&(Pe[se[K]]=$e[se[K]]);return Pe},pe=l.forwardRef(($e,Te)=>{const{defaultValue:Pe,children:se,options:K=[],prefixCls:w,className:te,rootClassName:ne,style:z,onChange:x}=$e,T=L($e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:G,direction:ve}=l.useContext(Q.E_),[We,st]=l.useState(T.value||Pe||[]),[_e,Ke]=l.useState([]);l.useEffect(()=>{"value"in T&&st(T.value||[])},[T.value]);const Ve=l.useMemo(()=>K.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[K]),rt=O=>{Ke(me=>me.filter(Ee=>Ee!==O))},Ae=O=>{Ke(me=>[].concat((0,V.Z)(me),[O]))},Tt=O=>{const me=We.indexOf(O.value),Ee=(0,V.Z)(We);me===-1?Ee.push(O.value):Ee.splice(me,1),"value"in T||st(Ee),x==null||x(Ee.filter(ge=>_e.includes(ge)).sort((ge,we)=>{const ke=Ve.findIndex(oe=>oe.value===ge),Ye=Ve.findIndex(oe=>oe.value===we);return ke-Ye}))},tt=G("checkbox",w),Pt=`${tt}-group`,Xe=(0,C.Z)(tt),[Qe,Ne,Oe]=(0,I.ZP)(tt,Xe),re=(0,R.Z)(T,["value","disabled"]),Fe=K.length?Ve.map(O=>l.createElement(A,{prefixCls:tt,key:O.value.toString(),disabled:"disabled"in O?O.disabled:T.disabled,value:O.value,checked:We.includes(O.value),onChange:O.onChange,className:`${Pt}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):se,Re={toggleOption:Tt,value:We,disabled:T.disabled,name:T.name,registerValue:Ae,cancelValue:rt},Z=U()(Pt,{[`${Pt}-rtl`]:ve==="rtl"},te,ne,Oe,Xe,Ne);return Qe(l.createElement("div",Object.assign({className:Z,style:z},re,{ref:Te}),l.createElement(S.Provider,{value:Re},Fe)))});const ce=A;ce.Group=pe,ce.__ANT_CHECKBOX=!0;var Le=ce},36170:function(ln,qe,d){"use strict";d.d(qe,{C2:function(){return g}});var l=d(36237),ie=d(63356),U=d(51636),le=d(16931);const F=q=>{const{checkboxCls:Q}=q,o=`${Q}-wrapper`;return[{[`${Q}-group`]:Object.assign(Object.assign({},(0,ie.Wf)(q)),{display:"inline-flex",flexWrap:"wrap",columnGap:q.marginXS,[`> ${q.antCls}-row`]:{flex:1}}),[o]:Object.assign(Object.assign({},(0,ie.Wf)(q)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Q]:Object.assign(Object.assign({},(0,ie.Wf)(q)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:q.borderRadiusSM,alignSelf:"center",[`${Q}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Q}-inner`]:Object.assign({},(0,ie.oN)(q))},[`${Q}-inner`]:{boxSizing:"border-box",display:"block",width:q.checkboxSize,height:q.checkboxSize,direction:"ltr",backgroundColor:q.colorBgContainer,border:`${(0,l.unit)(q.lineWidth)} ${q.lineType} ${q.colorBorder}`,borderRadius:q.borderRadiusSM,borderCollapse:"separate",transition:`all ${q.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:q.calc(q.checkboxSize).div(14).mul(5).equal(),height:q.calc(q.checkboxSize).div(14).mul(8).equal(),border:`${(0,l.unit)(q.lineWidthBold)} solid ${q.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${q.motionDurationFast} ${q.motionEaseInBack}, opacity ${q.motionDurationFast}`}},"& + span":{paddingInlineStart:q.paddingXS,paddingInlineEnd:q.paddingXS}})},{[`
|
|
|
${o}:not(${o}-disabled),
|
|
|
${Q}:not(${Q}-disabled)
|
|
|
`]:{[`&:hover ${Q}-inner`]:{borderColor:q.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${Q}-checked:not(${Q}-disabled) ${Q}-inner`]:{backgroundColor:q.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Q}-checked:not(${Q}-disabled):after`]:{borderColor:q.colorPrimaryHover}}},{[`${Q}-checked`]:{[`${Q}-inner`]:{backgroundColor:q.colorPrimary,borderColor:q.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${q.motionDurationMid} ${q.motionEaseOutBack} ${q.motionDurationFast}`}}},[`
|
|
|
${o}-checked:not(${o}-disabled),
|
|
|
${Q}-checked:not(${Q}-disabled)
|
|
|
`]:{[`&:hover ${Q}-inner`]:{backgroundColor:q.colorPrimaryHover,borderColor:"transparent"}}},{[Q]:{"&-indeterminate":{[`${Q}-inner`]:{backgroundColor:`${q.colorBgContainer} !important`,borderColor:`${q.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:q.calc(q.fontSizeLG).div(2).equal(),height:q.calc(q.fontSizeLG).div(2).equal(),backgroundColor:q.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Q}-inner`]:{backgroundColor:`${q.colorBgContainer} !important`,borderColor:`${q.colorPrimary} !important`}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${Q}-disabled`]:{[`&, ${Q}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Q}-inner`]:{background:q.colorBgContainerDisabled,borderColor:q.colorBorder,"&:after":{borderColor:q.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:q.colorTextDisabled},[`&${Q}-indeterminate ${Q}-inner::after`]:{background:q.colorTextDisabled}}}]};function g(q,Q){const o=(0,U.mergeToken)(Q,{checkboxCls:`.${q}`,checkboxSize:Q.controlInteractiveSize});return[F(o)]}qe.ZP=(0,le.I$)("Checkbox",(q,Q)=>{let{prefixCls:o}=Q;return[g(o,q)]})},74632:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return U}});var l=d(59301),ie=d(16089);function U(le){const F=l.useRef(null),g=()=>{ie.Z.cancel(F.current),F.current=null};return[()=>{g(),F.current=(0,ie.Z)(()=>{F.current=null})},o=>{F.current&&(o.stopPropagation(),g()),le==null||le(o)}]}},38406:function(ln,qe,d){"use strict";var l=d(59301),ie=d(48755),U=d(584);const le=F=>{const{componentName:g}=F,{getPrefixCls:q}=(0,l.useContext)(ie.E_),Q=q("empty");switch(g){case"Table":case"List":return l.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return l.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE,className:`${Q}-small`});case"Table.filter":return null;default:return l.createElement(U.Z,null)}};qe.Z=le},19563:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return st}});var l=d(59301),ie=d(33853),U=d(38819),le=d(92310),F=d.n(le),g=d(96478),q=d(6089),Q=d(18929),o=d(2738),C=d(75030),y=_e=>typeof _e!="object"&&typeof _e!="function"||_e===null,S=d(52838),I=d(45915),N=d(22703),W=d(32383),H=d(55743),j=d(48755),A=d(83397),V=d(93041),R=d(78857),L=d(57700),ae=d(36237),pe=d(63356),ce=d(46e3),Le=d(93873),$e=d(34925),Te=d(37645),Pe=d(36305),se=d(16931),K=d(51636),te=_e=>{const{componentCls:Ke,menuCls:Ve,colorError:rt,colorTextLightSolid:Ae}=_e,Tt=`${Ve}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${Ve} ${Tt}`]:{[`&${Tt}-danger:not(${Tt}-disabled)`]:{color:rt,"&:hover":{color:Ae,backgroundColor:rt}}}}}};const ne=_e=>{const{componentCls:Ke,menuCls:Ve,zIndexPopup:rt,dropdownArrowDistance:Ae,sizePopupArrow:Tt,antCls:tt,iconCls:Pt,motionDurationMid:Xe,paddingBlock:Qe,fontSize:Ne,dropdownEdgeChildPadding:Oe,colorTextDisabled:re,fontSizeIcon:Fe,controlPaddingHorizontal:Re,colorBgElevated:Z}=_e;return[{[Ke]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:rt,display:"block","&::before":{position:"absolute",insetBlock:_e.calc(Tt).div(2).sub(Ae).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${tt}-btn`]:{[`& > ${Pt}-down, & > ${tt}-btn-icon > ${Pt}-down`]:{fontSize:Fe}},[`${Ke}-wrap`]:{position:"relative",[`${tt}-btn > ${Pt}-down`]:{fontSize:Fe},[`${Pt}-down::before`]:{transition:`transform ${Xe}`}},[`${Ke}-wrap-open`]:{[`${Pt}-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${Ke}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Ke}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-enter${tt}-slide-down-enter-active${Ke}-placement-bottom,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Ke}-placement-bottom,
|
|
|
&${tt}-slide-down-enter${tt}-slide-down-enter-active${Ke}-placement-bottomRight,
|
|
|
&${tt}-slide-down-appear${tt}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:ce.fJ},[`&${tt}-slide-up-enter${tt}-slide-up-enter-active${Ke}-placement-topLeft,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Ke}-placement-topLeft,
|
|
|
&${tt}-slide-up-enter${tt}-slide-up-enter-active${Ke}-placement-top,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Ke}-placement-top,
|
|
|
&${tt}-slide-up-enter${tt}-slide-up-enter-active${Ke}-placement-topRight,
|
|
|
&${tt}-slide-up-appear${tt}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:ce.Qt},[`&${tt}-slide-down-leave${tt}-slide-down-leave-active${Ke}-placement-bottomLeft,
|
|
|
&${tt}-slide-down-leave${tt}-slide-down-leave-active${Ke}-placement-bottom,
|
|
|
&${tt}-slide-down-leave${tt}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:ce.Uw},[`&${tt}-slide-up-leave${tt}-slide-up-leave-active${Ke}-placement-topLeft,
|
|
|
&${tt}-slide-up-leave${tt}-slide-up-leave-active${Ke}-placement-top,
|
|
|
&${tt}-slide-up-leave${tt}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:ce.ly}}},(0,Te.ZP)(_e,Z,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${Ve}`]:{position:"relative",margin:0},[`${Ve}-submenu-popup`]:{position:"absolute",zIndex:rt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:Object.assign(Object.assign({},(0,pe.Wf)(_e)),{[Ve]:Object.assign(Object.assign({padding:Oe,listStyleType:"none",backgroundColor:Z,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,pe.Qy)(_e)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ve}-item-group-title`]:{padding:`${(0,ae.unit)(Qe)} ${(0,ae.unit)(Re)}`,color:_e.colorTextDescription,transition:`all ${Xe}`},[`${Ve}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ve}-item-icon`]:{minWidth:Ne,marginInlineEnd:_e.marginXS,fontSize:_e.fontSizeSM},[`${Ve}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Xe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ve}-item-extra`]:{paddingInlineStart:_e.padding,marginInlineStart:"auto",fontSize:_e.fontSizeSM,color:_e.colorTextDescription}},[`${Ve}-item, ${Ve}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ae.unit)(Qe)} ${(0,ae.unit)(Re)}`,color:_e.colorText,fontWeight:"normal",fontSize:Ne,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${Xe}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,pe.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:Z,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ae.unit)(_e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:Fe,fontStyle:"normal"}}}),[`${Ve}-item-group-list`]:{margin:`0 ${(0,ae.unit)(_e.marginXS)}`,padding:0,listStyle:"none"},[`${Ve}-submenu-title`]:{paddingInlineEnd:_e.calc(Re).add(_e.fontSizeSM).equal()},[`${Ve}-submenu-vertical`]:{position:"relative"},[`${Ve}-submenu${Ve}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:Z,cursor:"not-allowed"}},[`${Ve}-submenu-selected ${Ke}-menu-submenu-title`]:{color:_e.colorPrimary}})})},[(0,ce.oN)(_e,"slide-up"),(0,ce.oN)(_e,"slide-down"),(0,Le.Fm)(_e,"move-up"),(0,Le.Fm)(_e,"move-down"),(0,$e._y)(_e,"zoom-big")]]},z=_e=>Object.assign(Object.assign({zIndexPopup:_e.zIndexPopupBase+50,paddingBlock:(_e.controlHeight-_e.fontSize*_e.lineHeight)/2},(0,Te.wZ)({contentRadius:_e.borderRadiusLG,limitVerticalRadius:!0})),(0,Pe.w)(_e));var x=(0,se.I$)("Dropdown",_e=>{const{marginXXS:Ke,sizePopupArrow:Ve,paddingXXS:rt,componentCls:Ae}=_e,Tt=(0,K.mergeToken)(_e,{menuCls:`${Ae}-menu`,dropdownArrowDistance:_e.calc(Ve).div(2).add(Ke).equal(),dropdownEdgeChildPadding:rt});return[ne(Tt),te(Tt)]},z,{resetStyle:!1});const T=null,G=_e=>{var Ke;const{menu:Ve,arrow:rt,prefixCls:Ae,children:Tt,trigger:tt,disabled:Pt,dropdownRender:Xe,getPopupContainer:Qe,overlayClassName:Ne,rootClassName:Oe,overlayStyle:re,open:Fe,onOpenChange:Re,visible:Z,onVisibleChange:O,mouseEnterDelay:me=.15,mouseLeaveDelay:Ee=.1,autoAdjustOverflow:ge=!0,placement:we="",overlay:ke,transitionName:Ye}=_e,{getPopupContainer:oe,getPrefixCls:fe,direction:dt,dropdown:ot}=l.useContext(j.E_),ft=(0,W.ln)("Dropdown"),ht=l.useMemo(()=>{const At=fe();return Ye!==void 0?Ye:we.includes("top")?`${At}-slide-down`:`${At}-slide-up`},[fe,we,Ye]),Ge=l.useMemo(()=>we?we.includes("Center")?we.slice(0,we.indexOf("Center")):we:dt==="rtl"?"bottomRight":"bottomLeft",[we,dt]),Ct=fe("dropdown",Ae),gt=(0,A.Z)(Ct),[Ce,Je,_]=x(Ct,gt),[,D]=(0,L.ZP)(),Ze=l.Children.only(y(Tt)?l.createElement("span",null,Tt):Tt),ee=(0,N.Tm)(Ze,{className:F()(`${Ct}-trigger`,{[`${Ct}-rtl`]:dt==="rtl"},Ze.props.className),disabled:(Ke=Ze.props.disabled)!==null&&Ke!==void 0?Ke:Pt}),ye=Pt?[]:tt,Ot=!!(ye!=null&&ye.includes("contextMenu")),[He,it]=(0,Q.Z)(!1,{value:Fe!=null?Fe:Z}),ct=(0,q.Z)(At=>{Re==null||Re(At,{source:"trigger"}),O==null||O(At),it(At)}),he=F()(Ne,Oe,Je,_,gt,ot==null?void 0:ot.className,{[`${Ct}-rtl`]:dt==="rtl"}),be=(0,S.Z)({arrowPointAtCenter:typeof rt=="object"&&rt.pointAtCenter,autoAdjustOverflow:ge,offset:D.marginXXS,arrowWidth:rt?D.sizePopupArrow:0,borderRadius:D.borderRadius}),je=l.useCallback(()=>{Ve!=null&&Ve.selectable&&(Ve!=null&&Ve.multiple)||(Re==null||Re(!1,{source:"menu"}),it(!1))},[Ve==null?void 0:Ve.selectable,Ve==null?void 0:Ve.multiple]),Ue=()=>{let At;return Ve!=null&&Ve.items?At=l.createElement(V.default,Object.assign({},Ve)):typeof ke=="function"?At=ke():At=ke,Xe&&(At=Xe(At)),At=l.Children.only(typeof At=="string"?l.createElement("span",null,At):At),l.createElement(R.J,{prefixCls:`${Ct}-menu`,rootClassName:F()(_,gt),expandIcon:l.createElement("span",{className:`${Ct}-menu-submenu-arrow`},dt==="rtl"?l.createElement(ie.Z,{className:`${Ct}-menu-submenu-arrow-icon`}):l.createElement(U.Z,{className:`${Ct}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:je,validator:zt=>{let{mode:qt}=zt}},At)},[$,ut]=(0,C.Cn)("Dropdown",re==null?void 0:re.zIndex);let xe=l.createElement(g.Z,Object.assign({alignPoint:Ot},(0,o.Z)(_e,["rootClassName"]),{mouseEnterDelay:me,mouseLeaveDelay:Ee,visible:He,builtinPlacements:be,arrow:!!rt,overlayClassName:he,prefixCls:Ct,getPopupContainer:Qe||oe,transitionName:ht,trigger:ye,overlay:Ue,placement:Ge,onVisibleChange:ct,overlayStyle:Object.assign(Object.assign(Object.assign({},ot==null?void 0:ot.style),re),{zIndex:$})}),ee);return $&&(xe=l.createElement(H.Z.Provider,{value:ut},xe)),Ce(xe)},ve=(0,I.Z)(G,"align",void 0,"dropdown",_e=>_e),We=_e=>l.createElement(ve,Object.assign({},_e),l.createElement("span",null));G._InternalPanelDoNotUseOrYouWillBeFired=We;var st=G},75727:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return I}});var l=d(19563),ie=d(59301),U=d(18785),le=d(92310),F=d.n(le),g=d(7939),q=d(48755),Q=d(44104),o=d(70045),C=function(N,W){var H={};for(var j in N)Object.prototype.hasOwnProperty.call(N,j)&&W.indexOf(j)<0&&(H[j]=N[j]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,j=Object.getOwnPropertySymbols(N);A<j.length;A++)W.indexOf(j[A])<0&&Object.prototype.propertyIsEnumerable.call(N,j[A])&&(H[j[A]]=N[j[A]]);return H};const P=N=>{const{getPopupContainer:W,getPrefixCls:H,direction:j}=ie.useContext(q.E_),{prefixCls:A,type:V="default",danger:R,disabled:L,loading:ae,onClick:pe,htmlType:ce,children:Le,className:$e,menu:Te,arrow:Pe,autoFocus:se,overlay:K,trigger:w,align:te,open:ne,onOpenChange:z,placement:x,getPopupContainer:T,href:G,icon:ve=ie.createElement(U.Z,null),title:We,buttonsRender:st=me=>me,mouseEnterDelay:_e,mouseLeaveDelay:Ke,overlayClassName:Ve,overlayStyle:rt,destroyPopupOnHide:Ae,dropdownRender:Tt}=N,tt=C(N,["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"]),Pt=H("dropdown",A),Xe=`${Pt}-button`,Qe={menu:Te,arrow:Pe,autoFocus:se,align:te,disabled:L,trigger:L?[]:w,onOpenChange:z,getPopupContainer:T||W,mouseEnterDelay:_e,mouseLeaveDelay:Ke,overlayClassName:Ve,overlayStyle:rt,destroyPopupOnHide:Ae,dropdownRender:Tt},{compactSize:Ne,compactItemClassnames:Oe}=(0,o.ri)(Pt,j),re=F()(Xe,Oe,$e);"overlay"in N&&(Qe.overlay=K),"open"in N&&(Qe.open=ne),"placement"in N?Qe.placement=x:Qe.placement=j==="rtl"?"bottomLeft":"bottomRight";const Fe=ie.createElement(g.ZP,{type:V,danger:R,disabled:L,loading:ae,onClick:pe,htmlType:ce,href:G,title:We},Le),Re=ie.createElement(g.ZP,{type:V,danger:R,icon:ve}),[Z,O]=st([Fe,Re]);return ie.createElement(Q.Z.Compact,Object.assign({className:re,size:Ne,block:!0},tt),Z,ie.createElement(l.Z,Object.assign({},Qe),O))};P.__ANT_BUTTON=!0;var y=P;const S=l.Z;S.Button=y;var I=S},584:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return V}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(9017),F=d(17835),g=d(57700),Q=()=>{const[,R]=(0,g.ZP)(),[L]=(0,le.Z)("Empty"),pe=new F.FastColor(R.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:pe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(L==null?void 0:L.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},C=()=>{const[,R]=(0,g.ZP)(),[L]=(0,le.Z)("Empty"),{colorFill:ae,colorFillTertiary:pe,colorFillQuaternary:ce,colorBgContainer:Le}=R,{borderColor:$e,shadowColor:Te,contentColor:Pe}=(0,l.useMemo)(()=>({borderColor:new F.FastColor(ae).onBackground(Le).toHexString(),shadowColor:new F.FastColor(pe).onBackground(Le).toHexString(),contentColor:new F.FastColor(ce).onBackground(Le).toHexString()}),[ae,pe,ce,Le]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(L==null?void 0:L.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:Te,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:$e},l.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"}),l.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:Pe}))))},P=d(16931),y=d(51636);const S=R=>{const{componentCls:L,margin:ae,marginXS:pe,marginXL:ce,fontSize:Le,lineHeight:$e}=R;return{[L]:{marginInline:pe,fontSize:Le,lineHeight:$e,textAlign:"center",[`${L}-image`]:{height:R.emptyImgHeight,marginBottom:pe,opacity:R.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:R.colorTextDescription},[`${L}-footer`]:{marginTop:ae},"&-normal":{marginBlock:ce,color:R.colorTextDescription,[`${L}-description`]:{color:R.colorTextDescription},[`${L}-image`]:{height:R.emptyImgHeightMD}},"&-small":{marginBlock:pe,color:R.colorTextDescription,[`${L}-image`]:{height:R.emptyImgHeightSM}}}}};var I=(0,P.I$)("Empty",R=>{const{componentCls:L,controlHeightLG:ae,calc:pe}=R,ce=(0,y.mergeToken)(R,{emptyImgCls:`${L}-img`,emptyImgHeight:pe(ae).mul(2.5).equal(),emptyImgHeightMD:ae,emptyImgHeightSM:pe(ae).mul(.875).equal()});return[S(ce)]}),N=d(48755),W=function(R,L){var ae={};for(var pe in R)Object.prototype.hasOwnProperty.call(R,pe)&&L.indexOf(pe)<0&&(ae[pe]=R[pe]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,pe=Object.getOwnPropertySymbols(R);ce<pe.length;ce++)L.indexOf(pe[ce])<0&&Object.prototype.propertyIsEnumerable.call(R,pe[ce])&&(ae[pe[ce]]=R[pe[ce]]);return ae};const H=l.createElement(Q,null),j=l.createElement(C,null),A=R=>{const{className:L,rootClassName:ae,prefixCls:pe,image:ce=H,description:Le,children:$e,imageStyle:Te,style:Pe,classNames:se,styles:K}=R,w=W(R,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:te,direction:ne,className:z,style:x,classNames:T,styles:G}=(0,N.dj)("empty"),ve=te("empty",pe),[We,st,_e]=I(ve),[Ke]=(0,le.Z)("Empty"),Ve=typeof Le!="undefined"?Le:Ke==null?void 0:Ke.description,rt=typeof Ve=="string"?Ve:"empty";let Ae=null;return typeof ce=="string"?Ae=l.createElement("img",{alt:rt,src:ce}):Ae=ce,We(l.createElement("div",Object.assign({className:U()(st,_e,ve,z,{[`${ve}-normal`]:ce===j,[`${ve}-rtl`]:ne==="rtl"},L,ae,T.root,se==null?void 0:se.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},G.root),x),K==null?void 0:K.root),Pe)},w),l.createElement("div",{className:U()(`${ve}-image`,T.image,se==null?void 0:se.image),style:Object.assign(Object.assign(Object.assign({},Te),G.image),K==null?void 0:K.image)},Ae),Ve&&l.createElement("div",{className:U()(`${ve}-description`,T.description,se==null?void 0:se.description),style:Object.assign(Object.assign({},G.description),K==null?void 0:K.description)},Ve),$e&&l.createElement("div",{className:U()(`${ve}-footer`,T.footer,se==null?void 0:se.footer),style:Object.assign(Object.assign({},G.footer),K==null?void 0:K.footer)},$e)))};A.PRESENTED_IMAGE_DEFAULT=H,A.PRESENTED_IMAGE_SIMPLE=j;var V=A},24971:function(ln,qe,d){"use strict";var l=d(59301),ie=d(56553),U=d(48755);const le=function(F,g){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var Q,o;const{variant:C,[F]:P}=l.useContext(U.E_),y=l.useContext(ie.pg),S=P==null?void 0:P.variant;let I;typeof g!="undefined"?I=g:q===!1?I="borderless":I=(o=(Q=y!=null?y:S)!==null&&Q!==void 0?Q:C)!==null&&o!==void 0?o:"outlined";const N=U.tr.includes(I);return[I,N]};qe.Z=le},28284:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Et}});var l=d(56553),ie=d(77654),U=d(59301),le=d(92310),F=d.n(le),g=d(77900),q=d(86641),Q=d(83397);function o(Be){const[lt,vt]=U.useState(Be);return U.useEffect(()=>{const xt=setTimeout(()=>{vt(Be)},Be.length?0:10);return()=>{clearTimeout(xt)}},[Be]),lt}var C=d(36237),P=d(63356),y=d(34925),S=d(34961),I=d(51636),N=d(16931),H=Be=>{const{componentCls:lt}=Be,vt=`${lt}-show-help`,xt=`${lt}-show-help-item`;return{[vt]:{transition:`opacity ${Be.motionDurationFast} ${Be.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${Be.motionDurationFast} ${Be.motionEaseInOut},
|
|
|
opacity ${Be.motionDurationFast} ${Be.motionEaseInOut},
|
|
|
transform ${Be.motionDurationFast} ${Be.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const j=Be=>({legend:{display:"block",width:"100%",marginBottom:Be.marginLG,padding:0,color:Be.colorTextDescription,fontSize:Be.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,C.unit)(Be.lineWidth)} ${Be.lineType} ${Be.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,C.unit)(Be.controlOutlineWidth)} ${Be.controlOutline}`},output:{display:"block",paddingTop:15,color:Be.colorText,fontSize:Be.fontSize,lineHeight:Be.lineHeight}}),A=(Be,lt)=>{const{formItemCls:vt}=Be;return{[vt]:{[`${vt}-label > label`]:{height:lt},[`${vt}-control-input`]:{minHeight:lt}}}},V=Be=>{const{componentCls:lt}=Be;return{[Be.componentCls]:Object.assign(Object.assign(Object.assign({},(0,P.Wf)(Be)),j(Be)),{[`${lt}-text`]:{display:"inline-block",paddingInlineEnd:Be.paddingSM},"&-small":Object.assign({},A(Be,Be.controlHeightSM)),"&-large":Object.assign({},A(Be,Be.controlHeightLG))})}},R=Be=>{const{formItemCls:lt,iconCls:vt,rootPrefixCls:xt,antCls:Dt,labelRequiredMarkColor:Jt,labelColor:pn,labelFontSize:_n,labelHeight:Vt,labelColonMarginInlineStart:yn,labelColonMarginInlineEnd:Nn,itemMarginBottom:Sn}=Be;return{[lt]:Object.assign(Object.assign({},(0,P.Wf)(Be)),{marginBottom:Sn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Dt}-row`]:{display:"none"},"&-has-warning":{[`${lt}-split`]:{color:Be.colorError}},"&-has-error":{[`${lt}-split`]:{color:Be.colorWarning}},[`${lt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Be.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Vt,color:pn,fontSize:_n,[`> ${vt}`]:{fontSize:Be.fontSize,verticalAlign:"top"},[`&${lt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Be.marginXXS,color:Jt,fontSize:Be.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${lt}-required-mark-hidden, &${lt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${lt}-optional`]:{display:"inline-block",marginInlineStart:Be.marginXXS,color:Be.colorTextDescription,[`&${lt}-required-mark-hidden`]:{display:"none"}},[`${lt}-tooltip`]:{color:Be.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Be.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:yn,marginInlineEnd:Nn},[`&${lt}-no-colon::after`]:{content:'"\\a0"'}}},[`${lt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${xt}-col-'"]):not([class*="' ${xt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Be.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[lt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Be.colorTextDescription,fontSize:Be.fontSize,lineHeight:Be.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Be.controlHeightSM,transition:`color ${Be.motionDurationMid} ${Be.motionEaseOut}`},"&-explain":{"&-error":{color:Be.colorError},"&-warning":{color:Be.colorWarning}}},[`&-with-help ${lt}-explain`]:{height:"auto",opacity:1},[`${lt}-feedback-icon`]:{fontSize:Be.fontSize,textAlign:"center",visibility:"visible",animationName:y.kr,animationDuration:Be.motionDurationMid,animationTimingFunction:Be.motionEaseOutBack,pointerEvents:"none","&-success":{color:Be.colorSuccess},"&-error":{color:Be.colorError},"&-warning":{color:Be.colorWarning},"&-validating":{color:Be.colorPrimary}}})}},L=(Be,lt)=>{const{formItemCls:vt}=Be;return{[`${lt}-horizontal`]:{[`${vt}-label`]:{flexGrow:0},[`${vt}-control`]:{flex:"1 1 0",minWidth:0},[`${vt}-label[class$='-24'], ${vt}-label[class*='-24 ']`]:{[`& + ${vt}-control`]:{minWidth:"unset"}}}}},ae=Be=>{const{componentCls:lt,formItemCls:vt,inlineItemMarginBottom:xt}=Be;return{[`${lt}-inline`]:{display:"flex",flexWrap:"wrap",[vt]:{flex:"none",marginInlineEnd:Be.margin,marginBottom:xt,"&-row":{flexWrap:"nowrap"},[`> ${vt}-label,
|
|
|
> ${vt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${vt}-label`]:{flex:"none"},[`${lt}-text`]:{display:"inline-block"},[`${vt}-has-feedback`]:{display:"inline-block"}}}}},pe=Be=>({padding:Be.verticalLabelPadding,margin:Be.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ce=Be=>{const{componentCls:lt,formItemCls:vt,rootPrefixCls:xt}=Be;return{[`${vt} ${vt}-label`]:pe(Be),[`${lt}:not(${lt}-inline)`]:{[vt]:{flexWrap:"wrap",[`${vt}-label, ${vt}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Le=Be=>{const{componentCls:lt,formItemCls:vt,antCls:xt}=Be;return{[`${lt}-vertical`]:{[`${vt}:not(${vt}-horizontal)`]:{[`${vt}-row`]:{flexDirection:"column"},[`${vt}-label > label`]:{height:"auto"},[`${vt}-control`]:{width:"100%"},[`${vt}-label,
|
|
|
${xt}-col-24${vt}-label,
|
|
|
${xt}-col-xl-24${vt}-label`]:pe(Be)}},[`@media (max-width: ${(0,C.unit)(Be.screenXSMax)})`]:[ce(Be),{[lt]:{[`${vt}:not(${vt}-horizontal)`]:{[`${xt}-col-xs-24${vt}-label`]:pe(Be)}}}],[`@media (max-width: ${(0,C.unit)(Be.screenSMMax)})`]:{[lt]:{[`${vt}:not(${vt}-horizontal)`]:{[`${xt}-col-sm-24${vt}-label`]:pe(Be)}}},[`@media (max-width: ${(0,C.unit)(Be.screenMDMax)})`]:{[lt]:{[`${vt}:not(${vt}-horizontal)`]:{[`${xt}-col-md-24${vt}-label`]:pe(Be)}}},[`@media (max-width: ${(0,C.unit)(Be.screenLGMax)})`]:{[lt]:{[`${vt}:not(${vt}-horizontal)`]:{[`${xt}-col-lg-24${vt}-label`]:pe(Be)}}}}},$e=Be=>{const{formItemCls:lt,antCls:vt}=Be;return{[`${lt}-vertical`]:{[`${lt}-row`]:{flexDirection:"column"},[`${lt}-label > label`]:{height:"auto"},[`${lt}-control`]:{width:"100%"}},[`${lt}-vertical ${lt}-label,
|
|
|
${vt}-col-24${lt}-label,
|
|
|
${vt}-col-xl-24${lt}-label`]:pe(Be),[`@media (max-width: ${(0,C.unit)(Be.screenXSMax)})`]:[ce(Be),{[lt]:{[`${vt}-col-xs-24${lt}-label`]:pe(Be)}}],[`@media (max-width: ${(0,C.unit)(Be.screenSMMax)})`]:{[lt]:{[`${vt}-col-sm-24${lt}-label`]:pe(Be)}},[`@media (max-width: ${(0,C.unit)(Be.screenMDMax)})`]:{[lt]:{[`${vt}-col-md-24${lt}-label`]:pe(Be)}},[`@media (max-width: ${(0,C.unit)(Be.screenLGMax)})`]:{[lt]:{[`${vt}-col-lg-24${lt}-label`]:pe(Be)}}}},Te=Be=>({labelRequiredMarkColor:Be.colorError,labelColor:Be.colorTextHeading,labelFontSize:Be.fontSize,labelHeight:Be.controlHeight,labelColonMarginInlineStart:Be.marginXXS/2,labelColonMarginInlineEnd:Be.marginXS,itemMarginBottom:Be.marginLG,verticalLabelPadding:`0 0 ${Be.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Pe=(Be,lt)=>(0,I.mergeToken)(Be,{formItemCls:`${Be.componentCls}-item`,rootPrefixCls:lt});var se=(0,N.I$)("Form",(Be,lt)=>{let{rootPrefixCls:vt}=lt;const xt=Pe(Be,vt);return[V(xt),R(xt),H(xt),L(xt,xt.componentCls),L(xt,xt.formItemCls),ae(xt),Le(xt),$e(xt),(0,S.Z)(xt),y.kr]},Te,{order:-1e3});const K=[];function w(Be,lt,vt){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Be=="string"?Be:`${lt}-${xt}`,error:Be,errorStatus:vt}}var ne=Be=>{let{help:lt,helpStatus:vt,errors:xt=K,warnings:Dt=K,className:Jt,fieldId:pn,onVisibleChanged:_n}=Be;const{prefixCls:Vt}=U.useContext(l.Rk),yn=`${Vt}-item-explain`,Nn=(0,Q.Z)(Vt),[Sn,bt,Rt]=se(Vt,Nn),Wt=U.useMemo(()=>(0,q.Z)(Vt),[Vt]),Bt=o(xt),jt=o(Dt),Qt=U.useMemo(()=>lt!=null?[w(lt,"help",vt)]:[].concat((0,ie.Z)(Bt.map((Rn,$n)=>w(Rn,"error","error",$n))),(0,ie.Z)(jt.map((Rn,$n)=>w(Rn,"warning","warning",$n)))),[lt,vt,Bt,jt]),an=U.useMemo(()=>{const Rn={};return Qt.forEach($n=>{let{key:dr}=$n;Rn[dr]=(Rn[dr]||0)+1}),Qt.map(($n,dr)=>Object.assign(Object.assign({},$n),{key:Rn[$n.key]>1?`${$n.key}-fallback-${dr}`:$n.key}))},[Qt]),on={};return pn&&(on.id=`${pn}_help`),Sn(U.createElement(g.default,{motionDeadline:Wt.motionDeadline,motionName:`${Vt}-show-help`,visible:!!an.length,onVisibleChanged:_n},Rn=>{const{className:$n,style:dr}=Rn;return U.createElement("div",Object.assign({},on,{className:F()(yn,$n,Rt,Nn,Jt,bt),style:dr}),U.createElement(g.CSSMotionList,Object.assign({keys:an},(0,q.Z)(Vt),{motionName:`${Vt}-show-help-item`,component:!1}),jn=>{const{key:zn,error:er,errorStatus:Xn,className:sr,style:Wn}=jn;return U.createElement("div",{key:zn,className:F()(sr,{[`${yn}-${Xn}`]:Xn}),style:Wn},er)}))}))},z=d(69180),x=d(48755),T=d(2171),G=d(31756),ve=d(23069),We=d(76846),st=d(16722);const _e=["parentNode"],Ke="form_item";function Ve(Be){return Be===void 0||Be===!1?[]:Array.isArray(Be)?Be:[Be]}function rt(Be,lt){if(!Be.length)return;const vt=Be.join("_");return lt?`${lt}_${vt}`:_e.includes(vt)?`${Ke}_${vt}`:vt}function Ae(Be,lt,vt,xt,Dt,Jt){let pn=xt;return Jt!==void 0?pn=Jt:vt.validating?pn="validating":Be.length?pn="error":lt.length?pn="warning":(vt.touched||Dt&&vt.validated)&&(pn="success"),pn}var Tt=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt};function tt(Be){return Ve(Be).join("_")}function Pt(Be,lt){const vt=lt.getFieldInstance(Be),xt=(0,We.bn)(vt);if(xt)return xt;const Dt=rt(Ve(Be),lt.__INTERNAL__.name);if(Dt)return document.getElementById(Dt)}function Xe(Be){const[lt]=(0,z.useForm)(),vt=U.useRef({}),xt=U.useMemo(()=>Be!=null?Be:Object.assign(Object.assign({},lt),{__INTERNAL__:{itemRef:Dt=>Jt=>{const pn=tt(Dt);Jt?vt.current[pn]=Jt:delete vt.current[pn]}},scrollToField:function(Dt){let Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:pn}=Jt,_n=Tt(Jt,["focus"]),Vt=Pt(Dt,xt);Vt&&((0,st.Z)(Vt,Object.assign({scrollMode:"if-needed",block:"nearest"},_n)),pn&&xt.focusField(Dt))},focusField:Dt=>{var Jt,pn;const _n=xt.getFieldInstance(Dt);typeof(_n==null?void 0:_n.focus)=="function"?_n.focus():(pn=(Jt=Pt(Dt,xt))===null||Jt===void 0?void 0:Jt.focus)===null||pn===void 0||pn.call(Jt)},getFieldInstance:Dt=>{const Jt=tt(Dt);return vt.current[Jt]}}),[Be,lt]);return[xt]}var Qe=d(98350),Ne=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt};const Oe=(Be,lt)=>{const vt=U.useContext(T.Z),{getPrefixCls:xt,direction:Dt,requiredMark:Jt,colon:pn,scrollToFirstError:_n,className:Vt,style:yn}=(0,x.dj)("form"),{prefixCls:Nn,className:Sn,rootClassName:bt,size:Rt,disabled:Wt=vt,form:Bt,colon:jt,labelAlign:Qt,labelWrap:an,labelCol:on,wrapperCol:Rn,hideRequiredMark:$n,layout:dr="horizontal",scrollToFirstError:jn,requiredMark:zn,onFinishFailed:er,name:Xn,style:sr,feedbackIcons:Wn,variant:Qn}=Be,or=Ne(Be,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),cr=(0,G.Z)(Rt),rr=U.useContext(Qe.Z),nr=U.useMemo(()=>zn!==void 0?zn:$n?!1:Jt!==void 0?Jt:!0,[$n,zn,Jt]),ir=jt!=null?jt:pn,Vn=xt("form",Nn),$r=(0,Q.Z)(Vn),[Kt,ar,hr]=se(Vn,$r),Yr=F()(Vn,`${Vn}-${dr}`,{[`${Vn}-hide-required-mark`]:nr===!1,[`${Vn}-rtl`]:Dt==="rtl",[`${Vn}-${cr}`]:cr},hr,$r,ar,Vt,Sn,bt),[zr]=Xe(Bt),{__INTERNAL__:li}=zr;li.name=Xn;const Qr=U.useMemo(()=>({name:Xn,labelAlign:Qt,labelCol:on,labelWrap:an,wrapperCol:Rn,vertical:dr==="vertical",colon:ir,requiredMark:nr,itemRef:li.itemRef,form:zr,feedbackIcons:Wn}),[Xn,Qt,on,Rn,dr,ir,nr,zr,Wn]),Zn=U.useRef(null);U.useImperativeHandle(lt,()=>{var un;return Object.assign(Object.assign({},zr),{nativeElement:(un=Zn.current)===null||un===void 0?void 0:un.nativeElement})});const Pn=(un,Bn)=>{if(un){let Yn={block:"nearest"};typeof un=="object"&&(Yn=Object.assign(Object.assign({},Yn),un)),zr.scrollToField(Bn,Yn)}},sn=un=>{if(er==null||er(un),un.errorFields.length){const Bn=un.errorFields[0].name;if(jn!==void 0){Pn(jn,Bn);return}_n!==void 0&&Pn(_n,Bn)}};return Kt(U.createElement(l.pg.Provider,{value:Qn},U.createElement(T.n,{disabled:Wt},U.createElement(ve.Z.Provider,{value:cr},U.createElement(l.RV,{validateMessages:rr},U.createElement(l.q3.Provider,{value:Qr},U.createElement(z.default,Object.assign({id:Xn},or,{name:Xn,onFinishFailed:sn,form:zr,ref:Zn,style:Object.assign(Object.assign({},yn),sr),className:Yr}))))))))};var Fe=U.forwardRef(Oe),Re=d(41799),Z=d(8654),O=d(22703),me=d(32383),Ee=d(11592);function ge(Be){if(typeof Be=="function")return Be;const lt=(0,Ee.Z)(Be);return lt.length<=1?lt[0]:lt}const we=()=>{const{status:Be,errors:lt=[],warnings:vt=[]}=U.useContext(l.aM);return{status:Be,errors:lt,warnings:vt}};we.Context=l.aM;var ke=we,Ye=d(16089);function oe(Be){const[lt,vt]=U.useState(Be),xt=U.useRef(null),Dt=U.useRef([]),Jt=U.useRef(!1);U.useEffect(()=>(Jt.current=!1,()=>{Jt.current=!0,Ye.Z.cancel(xt.current),xt.current=null}),[]);function pn(_n){Jt.current||(xt.current===null&&(Dt.current=[],xt.current=(0,Ye.Z)(()=>{xt.current=null,vt(Vt=>{let yn=Vt;return Dt.current.forEach(Nn=>{yn=Nn(yn)}),yn})})),Dt.current.push(_n))}return[lt,pn]}function fe(){const{itemRef:Be}=U.useContext(l.q3),lt=U.useRef({});function vt(xt,Dt){const Jt=Dt&&typeof Dt=="object"&&(0,Z.C4)(Dt),pn=xt.join("_");return(lt.current.name!==pn||lt.current.originRef!==Jt)&&(lt.current.name=pn,lt.current.originRef=Jt,lt.current.ref=(0,Z.sQ)(Be(xt),Jt)),lt.current.ref}return vt}var dt=d(29194),ot=d(34280),ft=d(2738),ht=d(65970),Ge=d(70425),Ct=d(5472);const gt=Be=>{const{formItemCls:lt}=Be;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${lt}-control`]:{display:"flex"}}}};var Ce=(0,N.bk)(["Form","item-item"],(Be,lt)=>{let{rootPrefixCls:vt}=lt;const xt=Pe(Be,vt);return[gt(xt)]}),Je=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt};const _=24;var Ze=Be=>{const{prefixCls:lt,status:vt,labelCol:xt,wrapperCol:Dt,children:Jt,errors:pn,warnings:_n,_internalItemRender:Vt,extra:yn,help:Nn,fieldId:Sn,marginBottom:bt,onErrorVisibleChanged:Rt,label:Wt}=Be,Bt=`${lt}-item`,jt=U.useContext(l.q3),Qt=U.useMemo(()=>{let or=Object.assign({},Dt||jt.wrapperCol||{});return Wt===null&&!xt&&!Dt&&jt.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(rr=>{const nr=rr?[rr]:[],ir=(0,Ge.U2)(jt.labelCol,nr),Vn=typeof ir=="object"?ir:{},$r=(0,Ge.U2)(or,nr),Kt=typeof $r=="object"?$r:{};"span"in Vn&&!("offset"in Kt)&&Vn.span<_&&(or=(0,Ge.t8)(or,[].concat(nr,["offset"]),Vn.span))}),or},[Dt,jt]),an=F()(`${Bt}-control`,Qt.className),on=U.useMemo(()=>{const{labelCol:or,wrapperCol:cr}=jt;return Je(jt,["labelCol","wrapperCol"])},[jt]),Rn=U.useRef(null),[$n,dr]=U.useState(0);(0,ot.Z)(()=>{yn&&Rn.current?dr(Rn.current.clientHeight):dr(0)},[yn]);const jn=U.createElement("div",{className:`${Bt}-control-input`},U.createElement("div",{className:`${Bt}-control-input-content`},Jt)),zn=U.useMemo(()=>({prefixCls:lt,status:vt}),[lt,vt]),er=bt!==null||pn.length||_n.length?U.createElement(l.Rk.Provider,{value:zn},U.createElement(ne,{fieldId:Sn,errors:pn,warnings:_n,help:Nn,helpStatus:vt,className:`${Bt}-explain-connected`,onVisibleChanged:Rt})):null,Xn={};Sn&&(Xn.id=`${Sn}_extra`);const sr=yn?U.createElement("div",Object.assign({},Xn,{className:`${Bt}-extra`,ref:Rn}),yn):null,Wn=er||sr?U.createElement("div",{className:`${Bt}-additional`,style:bt?{minHeight:bt+$n}:{}},er,sr):null,Qn=Vt&&Vt.mark==="pro_table_render"&&Vt.render?Vt.render(Be,{input:jn,errorList:er,extra:sr}):U.createElement(U.Fragment,null,jn,Wn);return U.createElement(l.q3.Provider,{value:on},U.createElement(Ct.Z,Object.assign({},Qt,{className:an}),Qn),U.createElement(Ce,{prefixCls:lt}))},ee=d(61485),ye=d(9017),Ot=d(85981),He=d(25399),it=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt};function ct(Be){return Be?typeof Be=="object"&&!U.isValidElement(Be)?Be:{title:Be}:null}var be=Be=>{let{prefixCls:lt,label:vt,htmlFor:xt,labelCol:Dt,labelAlign:Jt,colon:pn,required:_n,requiredMark:Vt,tooltip:yn,vertical:Nn}=Be;var Sn;const[bt]=(0,ye.Z)("Form"),{labelAlign:Rt,labelCol:Wt,labelWrap:Bt,colon:jt}=U.useContext(l.q3);if(!vt)return null;const Qt=Dt||Wt||{},an=Jt||Rt,on=`${lt}-item-label`,Rn=F()(on,an==="left"&&`${on}-left`,Qt.className,{[`${on}-wrap`]:!!Bt});let $n=vt;const dr=pn===!0||jt!==!1&&pn!==!1;dr&&!Nn&&typeof vt=="string"&&vt.trim()&&($n=vt.replace(/[:|:]\s*$/,""));const zn=ct(yn);if(zn){const{icon:or=U.createElement(ee.Z,null)}=zn,cr=it(zn,["icon"]),rr=U.createElement(He.Z,Object.assign({},cr),U.cloneElement(or,{className:`${lt}-item-tooltip`,title:"",onClick:nr=>{nr.preventDefault()},tabIndex:null}));$n=U.createElement(U.Fragment,null,$n,rr)}const er=Vt==="optional",Xn=typeof Vt=="function",sr=Vt===!1;Xn?$n=Vt($n,{required:!!_n}):er&&!_n&&($n=U.createElement(U.Fragment,null,$n,U.createElement("span",{className:`${lt}-item-optional`,title:""},(bt==null?void 0:bt.optional)||((Sn=Ot.Z.Form)===null||Sn===void 0?void 0:Sn.optional))));let Wn;sr?Wn="hidden":(er||Xn)&&(Wn="optional");const Qn=F()({[`${lt}-item-required`]:_n,[`${lt}-item-required-mark-${Wn}`]:Wn,[`${lt}-item-no-colon`]:!dr});return U.createElement(Ct.Z,Object.assign({},Qt,{className:Rn}),U.createElement("label",{htmlFor:xt,className:Qn,title:typeof vt=="string"?vt:""},$n))},je=d(29679),Ue=d(19248),$=d(96512),ut=d(58617);const xe={success:je.Z,warning:$.Z,error:Ue.Z,validating:ut.Z};function At(Be){let{children:lt,errors:vt,warnings:xt,hasFeedback:Dt,validateStatus:Jt,prefixCls:pn,meta:_n,noStyle:Vt}=Be;const yn=`${pn}-item`,{feedbackIcons:Nn}=U.useContext(l.q3),Sn=Ae(vt,xt,_n,null,!!Dt,Jt),{isFormItemInput:bt,status:Rt,hasFeedback:Wt,feedbackIcon:Bt}=U.useContext(l.aM),jt=U.useMemo(()=>{var Qt;let an;if(Dt){const Rn=Dt!==!0&&Dt.icons||Nn,$n=Sn&&((Qt=Rn==null?void 0:Rn({status:Sn,errors:vt,warnings:xt}))===null||Qt===void 0?void 0:Qt[Sn]),dr=Sn&&xe[Sn];an=$n!==!1&&dr?U.createElement("span",{className:F()(`${yn}-feedback-icon`,`${yn}-feedback-icon-${Sn}`)},$n||U.createElement(dr,null)):null}const on={status:Sn||"",errors:vt,warnings:xt,hasFeedback:!!Dt,feedbackIcon:an,isFormItemInput:!0};return Vt&&(on.status=(Sn!=null?Sn:Rt)||"",on.isFormItemInput=bt,on.hasFeedback=!!(Dt!=null?Dt:Wt),on.feedbackIcon=Dt!==void 0?on.feedbackIcon:Bt),on},[Sn,Dt,Vt,bt,Rt]);return U.createElement(l.aM.Provider,{value:jt},lt)}var zt=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt};function qt(Be){const{prefixCls:lt,className:vt,rootClassName:xt,style:Dt,help:Jt,errors:pn,warnings:_n,validateStatus:Vt,meta:yn,hasFeedback:Nn,hidden:Sn,children:bt,fieldId:Rt,required:Wt,isRequired:Bt,onSubItemMetaChange:jt,layout:Qt}=Be,an=zt(Be,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),on=`${lt}-item`,{requiredMark:Rn,vertical:$n}=U.useContext(l.q3),dr=$n||Qt==="vertical",jn=U.useRef(null),zn=o(pn),er=o(_n),Xn=Jt!=null,sr=!!(Xn||pn.length||_n.length),Wn=!!jn.current&&(0,dt.Z)(jn.current),[Qn,or]=U.useState(null);(0,ot.Z)(()=>{if(sr&&jn.current){const Vn=getComputedStyle(jn.current);or(parseInt(Vn.marginBottom,10))}},[sr,Wn]);const cr=Vn=>{Vn||or(null)},nr=function(){let Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $r=Vn?zn:yn.errors,Kt=Vn?er:yn.warnings;return Ae($r,Kt,yn,"",!!Nn,Vt)}(),ir=F()(on,vt,xt,{[`${on}-with-help`]:Xn||zn.length||er.length,[`${on}-has-feedback`]:nr&&Nn,[`${on}-has-success`]:nr==="success",[`${on}-has-warning`]:nr==="warning",[`${on}-has-error`]:nr==="error",[`${on}-is-validating`]:nr==="validating",[`${on}-hidden`]:Sn,[`${on}-${Qt}`]:Qt});return U.createElement("div",{className:ir,style:Dt,ref:jn},U.createElement(ht.Z,Object.assign({className:`${on}-row`},(0,ft.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"])),U.createElement(be,Object.assign({htmlFor:Rt},Be,{requiredMark:Rn,required:Wt!=null?Wt:Bt,prefixCls:lt,vertical:dr})),U.createElement(Ze,Object.assign({},Be,yn,{errors:zn,warnings:er,prefixCls:lt,status:nr,help:Jt,marginBottom:Qn,onErrorVisibleChanged:cr}),U.createElement(l.qI.Provider,{value:jt},U.createElement(At,{prefixCls:lt,meta:yn,errors:yn.errors,warnings:yn.warnings,hasFeedback:Nn,validateStatus:nr},bt)))),!!Qn&&U.createElement("div",{className:`${on}-margin-offset`,style:{marginBottom:-Qn}}))}const cn="__SPLIT__",gn=null;function En(Be,lt){const vt=Object.keys(Be),xt=Object.keys(lt);return vt.length===xt.length&&vt.every(Dt=>{const Jt=Be[Dt],pn=lt[Dt];return Jt===pn||typeof Jt=="function"||typeof pn=="function"})}const Fn=U.memo(Be=>{let{children:lt}=Be;return lt},(Be,lt)=>En(Be.control,lt.control)&&Be.update===lt.update&&Be.childProps.length===lt.childProps.length&&Be.childProps.every((vt,xt)=>vt===lt.childProps[xt]));function Hn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function An(Be){const{name:lt,noStyle:vt,className:xt,dependencies:Dt,prefixCls:Jt,shouldUpdate:pn,rules:_n,children:Vt,required:yn,label:Nn,messageVariables:Sn,trigger:bt="onChange",validateTrigger:Rt,hidden:Wt,help:Bt,layout:jt}=Be,{getPrefixCls:Qt}=U.useContext(x.E_),{name:an}=U.useContext(l.q3),on=ge(Vt),Rn=typeof on=="function",$n=U.useContext(l.qI),{validateTrigger:dr}=U.useContext(z.FieldContext),jn=Rt!==void 0?Rt:dr,zn=lt!=null,er=Qt("form",Jt),Xn=(0,Q.Z)(er),[sr,Wn,Qn]=se(er,Xn),or=(0,me.ln)("Form.Item"),cr=U.useContext(z.ListContext),rr=U.useRef(null),[nr,ir]=oe({}),[Vn,$r]=(0,Re.Z)(()=>Hn()),Kt=Zn=>{const Pn=cr==null?void 0:cr.getKey(Zn.name);if($r(Zn.destroy?Hn():Zn,!0),vt&&Bt!==!1&&$n){let sn=Zn.name;if(Zn.destroy)sn=rr.current||sn;else if(Pn!==void 0){const[un,Bn]=Pn;sn=[un].concat((0,ie.Z)(Bn)),rr.current=sn}$n(Zn,sn)}},ar=(Zn,Pn)=>{ir(sn=>{const un=Object.assign({},sn),Yn=[].concat((0,ie.Z)(Zn.name.slice(0,-1)),(0,ie.Z)(Pn)).join(cn);return Zn.destroy?delete un[Yn]:un[Yn]=Zn,un})},[hr,Yr]=U.useMemo(()=>{const Zn=(0,ie.Z)(Vn.errors),Pn=(0,ie.Z)(Vn.warnings);return Object.values(nr).forEach(sn=>{Zn.push.apply(Zn,(0,ie.Z)(sn.errors||[])),Pn.push.apply(Pn,(0,ie.Z)(sn.warnings||[]))}),[Zn,Pn]},[nr,Vn.errors,Vn.warnings]),zr=fe();function li(Zn,Pn,sn){return vt&&!Wt?U.createElement(At,{prefixCls:er,hasFeedback:Be.hasFeedback,validateStatus:Be.validateStatus,meta:Vn,errors:hr,warnings:Yr,noStyle:!0},Zn):U.createElement(qt,Object.assign({key:"row"},Be,{className:F()(xt,Qn,Xn,Wn),prefixCls:er,fieldId:Pn,isRequired:sn,errors:hr,warnings:Yr,meta:Vn,onSubItemMetaChange:ar,layout:jt}),Zn)}if(!zn&&!Rn&&!Dt)return sr(li(on));let Qr={};return typeof Nn=="string"?Qr.label=Nn:lt&&(Qr.label=String(lt)),Sn&&(Qr=Object.assign(Object.assign({},Qr),Sn)),sr(U.createElement(z.Field,Object.assign({},Be,{messageVariables:Qr,trigger:bt,validateTrigger:jn,onMetaChange:Kt}),(Zn,Pn,sn)=>{const un=Ve(lt).length&&Pn?Pn.name:[],Bn=rt(un,an),Yn=yn!==void 0?yn:!!(_n!=null&&_n.some(On=>{if(On&&typeof On=="object"&&On.required&&!On.warningOnly)return!0;if(typeof On=="function"){const mr=On(sn);return(mr==null?void 0:mr.required)&&!(mr!=null&&mr.warningOnly)}return!1})),lr=Object.assign({},Zn);let Ir=null;if(Array.isArray(on)&&zn)Ir=on;else if(!(Rn&&(!(pn||Dt)||zn))){if(!(Dt&&!Rn&&!zn))if(U.isValidElement(on)){const On=Object.assign(Object.assign({},on.props),lr);if(On.id||(On.id=Bn),Bt||hr.length>0||Yr.length>0||Be.extra){const Jr=[];(Bt||hr.length>0)&&Jr.push(`${Bn}_help`),Be.extra&&Jr.push(`${Bn}_extra`),On["aria-describedby"]=Jr.join(" ")}hr.length>0&&(On["aria-invalid"]="true"),Yn&&(On["aria-required"]="true"),(0,Z.Yr)(on)&&(On.ref=zr(un,on)),new Set([].concat((0,ie.Z)(Ve(bt)),(0,ie.Z)(Ve(jn)))).forEach(Jr=>{On[Jr]=function(){for(var mi,Li,Gr,Ri,qr,bi=arguments.length,ri=new Array(bi),di=0;di<bi;di++)ri[di]=arguments[di];(Gr=lr[Jr])===null||Gr===void 0||(mi=Gr).call.apply(mi,[lr].concat(ri)),(qr=(Ri=on.props)[Jr])===null||qr===void 0||(Li=qr).call.apply(Li,[Ri].concat(ri))}});const Dr=[On["aria-required"],On["aria-invalid"],On["aria-describedby"]];Ir=U.createElement(Fn,{control:lr,update:on,childProps:Dr},(0,O.Tm)(on,On))}else Rn&&(pn||Dt)&&!zn?Ir=on(sn):Ir=on}return li(Ir,Bn,Yn)}))}const qn=An;qn.useStatus=ke;var vn=qn,Gt=function(Be,lt){var vt={};for(var xt in Be)Object.prototype.hasOwnProperty.call(Be,xt)&<.indexOf(xt)<0&&(vt[xt]=Be[xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,xt=Object.getOwnPropertySymbols(Be);Dt<xt.length;Dt++)lt.indexOf(xt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,xt[Dt])&&(vt[xt[Dt]]=Be[xt[Dt]]);return vt},Dn=Be=>{var{prefixCls:lt,children:vt}=Be,xt=Gt(Be,["prefixCls","children"]);const{getPrefixCls:Dt}=U.useContext(x.E_),Jt=Dt("form",lt),pn=U.useMemo(()=>({prefixCls:Jt,status:"error"}),[Jt]);return U.createElement(z.List,Object.assign({},xt),(_n,Vt,yn)=>U.createElement(l.Rk.Provider,{value:pn},vt(_n.map(Nn=>Object.assign(Object.assign({},Nn),{fieldKey:Nn.key})),Vt,{errors:yn.errors,warnings:yn.warnings})))};function Cn(){const{form:Be}=U.useContext(l.q3);return Be}const yt=Fe;yt.Item=vn,yt.List=Dn,yt.ErrorList=ne,yt.useForm=Xe,yt.useFormInstance=Cn,yt.useWatch=z.useWatch,yt.Provider=l.RV,yt.create=()=>{};var Et=yt},49397:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return R}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(36901),F=d(8654),g=d(62487),q=d(86013),Q=d(82855),o=d(48755),C=d(2171),P=d(83397),y=d(31756),S=d(56553),I=d(24971),N=d(70045),W=d(23826),H=d(53075);function j(L){return!!(L.prefix||L.suffix||L.allowClear||L.showCount)}var A=function(L,ae){var pe={};for(var ce in L)Object.prototype.hasOwnProperty.call(L,ce)&&ae.indexOf(ce)<0&&(pe[ce]=L[ce]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ce=Object.getOwnPropertySymbols(L);Le<ce.length;Le++)ae.indexOf(ce[Le])<0&&Object.prototype.propertyIsEnumerable.call(L,ce[Le])&&(pe[ce[Le]]=L[ce[Le]]);return pe},R=(0,l.forwardRef)((L,ae)=>{const{prefixCls:pe,bordered:ce=!0,status:Le,size:$e,disabled:Te,onBlur:Pe,onFocus:se,suffix:K,allowClear:w,addonAfter:te,addonBefore:ne,className:z,style:x,styles:T,rootClassName:G,onChange:ve,classNames:We,variant:st}=L,_e=A(L,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ke,direction:Ve,allowClear:rt,autoComplete:Ae,className:Tt,style:tt,classNames:Pt,styles:Xe}=(0,o.dj)("input"),Qe=Ke("input",pe),Ne=(0,l.useRef)(null),Oe=(0,P.Z)(Qe),[re,Fe,Re]=(0,H.TI)(Qe,G),[Z]=(0,H.ZP)(Qe,Oe),{compactSize:O,compactItemClassnames:me}=(0,N.ri)(Qe,Ve),Ee=(0,y.Z)(D=>{var Ze;return(Ze=$e!=null?$e:O)!==null&&Ze!==void 0?Ze:D}),ge=l.useContext(C.Z),we=Te!=null?Te:ge,{status:ke,hasFeedback:Ye,feedbackIcon:oe}=(0,l.useContext)(S.aM),fe=(0,Q.F)(ke,Le),dt=j(L)||!!Ye,ot=(0,l.useRef)(dt),ft=(0,W.Z)(Ne,!0),ht=D=>{ft(),Pe==null||Pe(D)},Ge=D=>{ft(),se==null||se(D)},Ct=D=>{ft(),ve==null||ve(D)},gt=(Ye||K)&&l.createElement(l.Fragment,null,K,Ye&&oe),Ce=(0,q.Z)(w!=null?w:rt),[Je,_]=(0,I.Z)("input",st,ce);return re(Z(l.createElement(le.default,Object.assign({ref:(0,F.sQ)(ae,Ne),prefixCls:Qe,autoComplete:Ae},_e,{disabled:we,onBlur:ht,onFocus:Ge,style:Object.assign(Object.assign({},tt),x),styles:Object.assign(Object.assign({},Xe),T),suffix:gt,allowClear:Ce,className:U()(z,G,Re,Oe,me,Tt),onChange:Ct,addonBefore:ne&&l.createElement(g.Z,{form:!0,space:!0},ne),addonAfter:te&&l.createElement(g.Z,{form:!0,space:!0},te),classNames:Object.assign(Object.assign(Object.assign({},We),Pt),{input:U()({[`${Qe}-sm`]:Ee==="small",[`${Qe}-lg`]:Ee==="large",[`${Qe}-rtl`]:Ve==="rtl"},We==null?void 0:We.input,Pt.input,Fe),variant:U()({[`${Qe}-${Je}`]:_},(0,Q.Z)(Qe,fe)),affixWrapper:U()({[`${Qe}-affix-wrapper-sm`]:Ee==="small",[`${Qe}-affix-wrapper-lg`]:Ee==="large",[`${Qe}-affix-wrapper-rtl`]:Ve==="rtl"},Fe),wrapper:U()({[`${Qe}-group-rtl`]:Ve==="rtl"},Fe),groupWrapper:U()({[`${Qe}-group-wrapper-sm`]:Ee==="small",[`${Qe}-group-wrapper-lg`]:Ee==="large",[`${Qe}-group-wrapper-rtl`]:Ve==="rtl",[`${Qe}-group-wrapper-${Je}`]:_},(0,Q.Z)(`${Qe}-group-wrapper`,fe,Ye),Fe)})}))))})},79809:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return ae}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(22711),F=d(86013),g=d(82855),q=d(48755),Q=d(2171),o=d(83397),C=d(31756),P=d(56553),y=d(24971),S=d(70045),I=d(30292),N=d(53075),W=d(16931),H=d(51636),j=d(64910);const A=pe=>{const{componentCls:ce,paddingLG:Le}=pe,$e=`${ce}-textarea`;return{[`textarea${ce}`]:{maxWidth:"100%",height:"auto",minHeight:pe.controlHeight,lineHeight:pe.lineHeight,verticalAlign:"bottom",transition:`all ${pe.motionDurationSlow}`,resize:"vertical",[`&${ce}-mouse-active`]:{transition:`all ${pe.motionDurationSlow}, height 0s, width 0s`}},[`${ce}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[$e]:{position:"relative","&-show-count":{[`> ${ce}`]:{height:"100%"},[`${ce}-data-count`]:{position:"absolute",bottom:pe.calc(pe.fontSize).mul(pe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:pe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${ce},
|
|
|
&-affix-wrapper${$e}-has-feedback ${ce}
|
|
|
`]:{paddingInlineEnd:Le},[`&-affix-wrapper${ce}-affix-wrapper`]:{padding:0,[`> textarea${ce}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ce}-clear-icon`]:{position:"absolute",insetInlineEnd:pe.paddingInline,insetBlockStart:pe.paddingXS},[`${$e}-suffix`]:{position:"absolute",top:0,insetInlineEnd:pe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ce}-affix-wrapper-sm`]:{[`${ce}-suffix`]:{[`${ce}-clear-icon`]:{insetInlineEnd:pe.paddingInlineSM}}}}}};var V=(0,W.I$)(["Input","TextArea"],pe=>{const ce=(0,H.mergeToken)(pe,(0,j.e)(pe));return[A(ce)]},j.T,{resetFont:!1}),R=function(pe,ce){var Le={};for(var $e in pe)Object.prototype.hasOwnProperty.call(pe,$e)&&ce.indexOf($e)<0&&(Le[$e]=pe[$e]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,$e=Object.getOwnPropertySymbols(pe);Te<$e.length;Te++)ce.indexOf($e[Te])<0&&Object.prototype.propertyIsEnumerable.call(pe,$e[Te])&&(Le[$e[Te]]=pe[$e[Te]]);return Le},ae=(0,l.forwardRef)((pe,ce)=>{var Le;const{prefixCls:$e,bordered:Te=!0,size:Pe,disabled:se,status:K,allowClear:w,classNames:te,rootClassName:ne,className:z,style:x,styles:T,variant:G,showCount:ve,onMouseDown:We,onResize:st}=pe,_e=R(pe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ke,direction:Ve,allowClear:rt,autoComplete:Ae,className:Tt,style:tt,classNames:Pt,styles:Xe}=(0,q.dj)("textArea"),Qe=l.useContext(Q.Z),Ne=se!=null?se:Qe,{status:Oe,hasFeedback:re,feedbackIcon:Fe}=l.useContext(P.aM),Re=(0,g.F)(Oe,K),Z=l.useRef(null);l.useImperativeHandle(ce,()=>{var _;return{resizableTextArea:(_=Z.current)===null||_===void 0?void 0:_.resizableTextArea,focus:D=>{var Ze,ee;(0,I.nH)((ee=(Ze=Z.current)===null||Ze===void 0?void 0:Ze.resizableTextArea)===null||ee===void 0?void 0:ee.textArea,D)},blur:()=>{var D;return(D=Z.current)===null||D===void 0?void 0:D.blur()}}});const O=Ke("input",$e),me=(0,o.Z)(O),[Ee,ge,we]=(0,N.TI)(O,ne),[ke]=V(O,me),{compactSize:Ye,compactItemClassnames:oe}=(0,S.ri)(O,Ve),fe=(0,C.Z)(_=>{var D;return(D=Pe!=null?Pe:Ye)!==null&&D!==void 0?D:_}),[dt,ot]=(0,y.Z)("textArea",G,Te),ft=(0,F.Z)(w!=null?w:rt),[ht,Ge]=l.useState(!1),[Ct,gt]=l.useState(!1),Ce=_=>{Ge(!0),We==null||We(_);const D=()=>{Ge(!1),document.removeEventListener("mouseup",D)};document.addEventListener("mouseup",D)},Je=_=>{var D,Ze;if(st==null||st(_),ht&&typeof getComputedStyle=="function"){const ee=(Ze=(D=Z.current)===null||D===void 0?void 0:D.nativeElement)===null||Ze===void 0?void 0:Ze.querySelector("textarea");ee&&getComputedStyle(ee).resize==="both"&>(!0)}};return Ee(ke(l.createElement(le.default,Object.assign({autoComplete:Ae},_e,{style:Object.assign(Object.assign({},tt),x),styles:Object.assign(Object.assign({},Xe),T),disabled:Ne,allowClear:ft,className:U()(we,me,z,ne,oe,Tt,Ct&&`${O}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},te),Pt),{textarea:U()({[`${O}-sm`]:fe==="small",[`${O}-lg`]:fe==="large"},ge,te==null?void 0:te.textarea,Pt.textarea,ht&&`${O}-mouse-active`),variant:U()({[`${O}-${dt}`]:ot},(0,g.Z)(O,Re)),affixWrapper:U()(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:Ve==="rtl",[`${O}-affix-wrapper-sm`]:fe==="small",[`${O}-affix-wrapper-lg`]:fe==="large",[`${O}-textarea-show-count`]:ve||((Le=pe.count)===null||Le===void 0?void 0:Le.show)},ge)}),prefixCls:O,suffix:re&&l.createElement("span",{className:`${O}-textarea-suffix`},Fe),showCount:ve,ref:Z,onResize:Je,onMouseDown:Ce}))))})},23826:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return ie}});var l=d(59301);function ie(U,le){const F=(0,l.useRef)([]),g=()=>{F.current.push(setTimeout(()=>{var q,Q,o,C;!((q=U.current)===null||q===void 0)&&q.input&&((Q=U.current)===null||Q===void 0?void 0:Q.input.getAttribute("type"))==="password"&&(!((o=U.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((C=U.current)===null||C===void 0||C.input.removeAttribute("value"))}))};return(0,l.useEffect)(()=>(le&&g(),()=>F.current.forEach(q=>{q&&clearTimeout(q)})),[]),g}},37568:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Pt}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(48755),F=d(56553),g=d(53075),Q=Xe=>{const{getPrefixCls:Qe,direction:Ne}=(0,l.useContext)(le.E_),{prefixCls:Oe,className:re}=Xe,Fe=Qe("input-group",Oe),Re=Qe("input"),[Z,O,me]=(0,g.ZP)(Re),Ee=U()(Fe,me,{[`${Fe}-lg`]:Xe.size==="large",[`${Fe}-sm`]:Xe.size==="small",[`${Fe}-compact`]:Xe.compact,[`${Fe}-rtl`]:Ne==="rtl"},O,re),ge=(0,l.useContext)(F.aM),we=(0,l.useMemo)(()=>Object.assign(Object.assign({},ge),{isFormItemInput:!1}),[ge]);return Z(l.createElement("span",{className:Ee,style:Xe.style,onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave,onFocus:Xe.onFocus,onBlur:Xe.onBlur},l.createElement(F.aM.Provider,{value:we},Xe.children)))},o=d(49397),C=d(77654),P=d(6089),y=d(26112),S=d(82855),I=d(31756),N=d(16931),W=d(51636),H=d(64910);const j=Xe=>{const{componentCls:Qe,paddingXS:Ne}=Xe;return{[Qe]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Ne,"&-rtl":{direction:"rtl"},[`${Qe}-input`]:{textAlign:"center",paddingInline:Xe.paddingXXS},[`&${Qe}-sm ${Qe}-input`]:{paddingInline:Xe.calc(Xe.paddingXXS).div(2).equal()},[`&${Qe}-lg ${Qe}-input`]:{paddingInline:Xe.paddingXS}}}};var A=(0,N.I$)(["Input","OTP"],Xe=>{const Qe=(0,W.mergeToken)(Xe,(0,H.e)(Xe));return[j(Qe)]},H.T),V=d(16089),R=function(Xe,Qe){var Ne={};for(var Oe in Xe)Object.prototype.hasOwnProperty.call(Xe,Oe)&&Qe.indexOf(Oe)<0&&(Ne[Oe]=Xe[Oe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Oe=Object.getOwnPropertySymbols(Xe);re<Oe.length;re++)Qe.indexOf(Oe[re])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Oe[re])&&(Ne[Oe[re]]=Xe[Oe[re]]);return Ne},ae=l.forwardRef((Xe,Qe)=>{const{value:Ne,onChange:Oe,onActiveChange:re,index:Fe,mask:Re}=Xe,Z=R(Xe,["value","onChange","onActiveChange","index","mask"]),O=Ne&&typeof Re=="string"?Re:Ne,me=Ye=>{Oe(Fe,Ye.target.value)},Ee=l.useRef(null);l.useImperativeHandle(Qe,()=>Ee.current);const ge=()=>{(0,V.Z)(()=>{var Ye;const oe=(Ye=Ee.current)===null||Ye===void 0?void 0:Ye.input;document.activeElement===oe&&oe&&oe.select()})},we=Ye=>{const{key:oe,ctrlKey:fe,metaKey:dt}=Ye;oe==="ArrowLeft"?re(Fe-1):oe==="ArrowRight"?re(Fe+1):oe==="z"&&(fe||dt)&&Ye.preventDefault(),ge()},ke=Ye=>{Ye.key==="Backspace"&&!Ne&&re(Fe-1),ge()};return l.createElement(o.Z,Object.assign({type:Re===!0?"password":"text"},Z,{ref:Ee,value:O,onInput:me,onFocus:ge,onKeyDown:we,onKeyUp:ke,onMouseDown:ge,onMouseUp:ge}))}),pe=function(Xe,Qe){var Ne={};for(var Oe in Xe)Object.prototype.hasOwnProperty.call(Xe,Oe)&&Qe.indexOf(Oe)<0&&(Ne[Oe]=Xe[Oe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Oe=Object.getOwnPropertySymbols(Xe);re<Oe.length;re++)Qe.indexOf(Oe[re])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Oe[re])&&(Ne[Oe[re]]=Xe[Oe[re]]);return Ne};function ce(Xe){return(Xe||"").split("")}const Le=Xe=>{const{index:Qe,prefixCls:Ne,separator:Oe}=Xe,re=typeof Oe=="function"?Oe(Qe):Oe;return re?l.createElement("span",{className:`${Ne}-separator`},re):null};var Te=l.forwardRef((Xe,Qe)=>{const{prefixCls:Ne,length:Oe=6,size:re,defaultValue:Fe,value:Re,onChange:Z,formatter:O,separator:me,variant:Ee,disabled:ge,status:we,autoFocus:ke,mask:Ye,type:oe,onInput:fe,inputMode:dt}=Xe,ot=pe(Xe,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:ft,direction:ht}=l.useContext(le.E_),Ge=ft("otp",Ne),Ct=(0,y.Z)(ot,{aria:!0,data:!0,attr:!0}),[gt,Ce,Je]=A(Ge),_=(0,I.Z)(ut=>re!=null?re:ut),D=l.useContext(F.aM),Ze=(0,S.F)(D.status,we),ee=l.useMemo(()=>Object.assign(Object.assign({},D),{status:Ze,hasFeedback:!1,feedbackIcon:null}),[D,Ze]),ye=l.useRef(null),Ot=l.useRef({});l.useImperativeHandle(Qe,()=>({focus:()=>{var ut;(ut=Ot.current[0])===null||ut===void 0||ut.focus()},blur:()=>{var ut;for(let xe=0;xe<Oe;xe+=1)(ut=Ot.current[xe])===null||ut===void 0||ut.blur()},nativeElement:ye.current}));const He=ut=>O?O(ut):ut,[it,ct]=l.useState(()=>ce(He(Fe||"")));l.useEffect(()=>{Re!==void 0&&ct(ce(Re))},[Re]);const he=(0,P.Z)(ut=>{ct(ut),fe&&fe(ut),Z&&ut.length===Oe&&ut.every(xe=>xe)&&ut.some((xe,At)=>it[At]!==xe)&&Z(ut.join(""))}),be=(0,P.Z)((ut,xe)=>{let At=(0,C.Z)(it);for(let qt=0;qt<ut;qt+=1)At[qt]||(At[qt]="");xe.length<=1?At[ut]=xe:At=At.slice(0,ut).concat(ce(xe)),At=At.slice(0,Oe);for(let qt=At.length-1;qt>=0&&!At[qt];qt-=1)At.pop();const zt=He(At.map(qt=>qt||" ").join(""));return At=ce(zt).map((qt,cn)=>qt===" "&&!At[cn]?At[cn]:qt),At}),je=(ut,xe)=>{var At;const zt=be(ut,xe),qt=Math.min(ut+xe.length,Oe-1);qt!==ut&&zt[ut]!==void 0&&((At=Ot.current[qt])===null||At===void 0||At.focus()),he(zt)},Ue=ut=>{var xe;(xe=Ot.current[ut])===null||xe===void 0||xe.focus()},$={variant:Ee,disabled:ge,status:Ze,mask:Ye,type:oe,inputMode:dt};return gt(l.createElement("div",Object.assign({},Ct,{ref:ye,className:U()(Ge,{[`${Ge}-sm`]:_==="small",[`${Ge}-lg`]:_==="large",[`${Ge}-rtl`]:ht==="rtl"},Je,Ce)}),l.createElement(F.aM.Provider,{value:ee},Array.from({length:Oe}).map((ut,xe)=>{const At=`otp-${xe}`,zt=it[xe]||"";return l.createElement(l.Fragment,{key:At},l.createElement(ae,Object.assign({ref:qt=>{Ot.current[xe]=qt},index:xe,size:_,htmlSize:1,className:`${Ge}-input`,onChange:je,value:zt,onActiveChange:Ue,autoFocus:xe===0&&ke},$)),xe<Oe-1&&l.createElement(Le,{separator:me,index:xe,prefixCls:Ge}))}))))}),Pe=d(73331),se=d(15277),K=d(2738),w=d(8654),te=d(2171),ne=d(23826),z=function(Xe,Qe){var Ne={};for(var Oe in Xe)Object.prototype.hasOwnProperty.call(Xe,Oe)&&Qe.indexOf(Oe)<0&&(Ne[Oe]=Xe[Oe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Oe=Object.getOwnPropertySymbols(Xe);re<Oe.length;re++)Qe.indexOf(Oe[re])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Oe[re])&&(Ne[Oe[re]]=Xe[Oe[re]]);return Ne};const x=Xe=>Xe?l.createElement(se.Z,null):l.createElement(Pe.Z,null),T={click:"onClick",hover:"onMouseOver"};var ve=l.forwardRef((Xe,Qe)=>{const{disabled:Ne,action:Oe="click",visibilityToggle:re=!0,iconRender:Fe=x}=Xe,Re=l.useContext(te.Z),Z=Ne!=null?Ne:Re,O=typeof re=="object"&&re.visible!==void 0,[me,Ee]=(0,l.useState)(()=>O?re.visible:!1),ge=(0,l.useRef)(null);l.useEffect(()=>{O&&Ee(re.visible)},[O,re]);const we=(0,ne.Z)(ge),ke=()=>{var _;if(Z)return;me&&we();const D=!me;Ee(D),typeof re=="object"&&((_=re.onVisibleChange)===null||_===void 0||_.call(re,D))},Ye=_=>{const D=T[Oe]||"",Ze=Fe(me),ee={[D]:ke,className:`${_}-icon`,key:"passwordIcon",onMouseDown:ye=>{ye.preventDefault()},onMouseUp:ye=>{ye.preventDefault()}};return l.cloneElement(l.isValidElement(Ze)?Ze:l.createElement("span",null,Ze),ee)},{className:oe,prefixCls:fe,inputPrefixCls:dt,size:ot}=Xe,ft=z(Xe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ht}=l.useContext(le.E_),Ge=ht("input",dt),Ct=ht("input-password",fe),gt=re&&Ye(Ct),Ce=U()(Ct,oe,{[`${Ct}-${ot}`]:!!ot}),Je=Object.assign(Object.assign({},(0,K.Z)(ft,["suffix","iconRender","visibilityToggle"])),{type:me?"text":"password",className:Ce,prefixCls:Ge,suffix:gt});return ot&&(Je.size=ot),l.createElement(o.Z,Object.assign({ref:(0,w.sQ)(Qe,ge)},Je))}),We=d(47472),st=d(22703),_e=d(7939),Ke=d(70045),Ve=function(Xe,Qe){var Ne={};for(var Oe in Xe)Object.prototype.hasOwnProperty.call(Xe,Oe)&&Qe.indexOf(Oe)<0&&(Ne[Oe]=Xe[Oe]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Oe=Object.getOwnPropertySymbols(Xe);re<Oe.length;re++)Qe.indexOf(Oe[re])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Oe[re])&&(Ne[Oe[re]]=Xe[Oe[re]]);return Ne},Ae=l.forwardRef((Xe,Qe)=>{const{prefixCls:Ne,inputPrefixCls:Oe,className:re,size:Fe,suffix:Re,enterButton:Z=!1,addonAfter:O,loading:me,disabled:Ee,onSearch:ge,onChange:we,onCompositionStart:ke,onCompositionEnd:Ye}=Xe,oe=Ve(Xe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:fe,direction:dt}=l.useContext(le.E_),ot=l.useRef(!1),ft=fe("input-search",Ne),ht=fe("input",Oe),{compactSize:Ge}=(0,Ke.ri)(ft,dt),Ct=(0,I.Z)(je=>{var Ue;return(Ue=Fe!=null?Fe:Ge)!==null&&Ue!==void 0?Ue:je}),gt=l.useRef(null),Ce=je=>{je!=null&&je.target&&je.type==="click"&&ge&&ge(je.target.value,je,{source:"clear"}),we==null||we(je)},Je=je=>{var Ue;document.activeElement===((Ue=gt.current)===null||Ue===void 0?void 0:Ue.input)&&je.preventDefault()},_=je=>{var Ue,$;ge&&ge(($=(Ue=gt.current)===null||Ue===void 0?void 0:Ue.input)===null||$===void 0?void 0:$.value,je,{source:"input"})},D=je=>{ot.current||me||_(je)},Ze=typeof Z=="boolean"?l.createElement(We.Z,null):null,ee=`${ft}-button`;let ye;const Ot=Z||{},He=Ot.type&&Ot.type.__ANT_BUTTON===!0;He||Ot.type==="button"?ye=(0,st.Tm)(Ot,Object.assign({onMouseDown:Je,onClick:je=>{var Ue,$;($=(Ue=Ot==null?void 0:Ot.props)===null||Ue===void 0?void 0:Ue.onClick)===null||$===void 0||$.call(Ue,je),_(je)},key:"enterButton"},He?{className:ee,size:Ct}:{})):ye=l.createElement(_e.ZP,{className:ee,type:Z?"primary":void 0,size:Ct,disabled:Ee,key:"enterButton",onMouseDown:Je,onClick:_,loading:me,icon:Ze},Z),O&&(ye=[ye,(0,st.Tm)(O,{key:"addonAfter"})]);const it=U()(ft,{[`${ft}-rtl`]:dt==="rtl",[`${ft}-${Ct}`]:!!Ct,[`${ft}-with-button`]:!!Z},re),ct=Object.assign(Object.assign({},oe),{className:it,prefixCls:ht,type:"search"}),he=je=>{ot.current=!0,ke==null||ke(je)},be=je=>{ot.current=!1,Ye==null||Ye(je)};return l.createElement(o.Z,Object.assign({ref:(0,w.sQ)(gt,Qe),onPressEnter:D},ct,{size:Ct,onCompositionStart:he,onCompositionEnd:be,addonAfter:ye,suffix:Re,onChange:Ce,disabled:Ee}))}),Tt=d(79809);const tt=o.Z;tt.Group=Q,tt.Search=Ae,tt.TextArea=Tt.Z,tt.Password=ve,tt.OTP=Te;var Pt=tt},53075:function(ln,qe,d){"use strict";d.d(qe,{TI:function(){return V},ik:function(){return y},nz:function(){return Q},s7:function(){return S},x0:function(){return P}});var l=d(36237),ie=d(63356),U=d(56119),le=d(16931),F=d(51636),g=d(64910),q=d(39082);const Q=R=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:R,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),o=R=>({borderColor:R.activeBorderColor,boxShadow:R.activeShadow,outline:0,backgroundColor:R.activeBg}),C=R=>{const{paddingBlockLG:L,lineHeightLG:ae,borderRadiusLG:pe,paddingInlineLG:ce}=R;return{padding:`${(0,l.unit)(L)} ${(0,l.unit)(ce)}`,fontSize:R.inputFontSizeLG,lineHeight:ae,borderRadius:pe}},P=R=>({padding:`${(0,l.unit)(R.paddingBlockSM)} ${(0,l.unit)(R.paddingInlineSM)}`,fontSize:R.inputFontSizeSM,borderRadius:R.borderRadiusSM}),y=R=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,l.unit)(R.paddingBlock)} ${(0,l.unit)(R.paddingInline)}`,color:R.colorText,fontSize:R.inputFontSize,lineHeight:R.lineHeight,borderRadius:R.borderRadius,transition:`all ${R.motionDurationMid}`},Q(R.colorTextPlaceholder)),{"&-lg":Object.assign({},C(R)),"&-sm":Object.assign({},P(R)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),S=R=>{const{componentCls:L,antCls:ae}=R;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:R.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${L}, &-lg > ${L}-group-addon`]:Object.assign({},C(R)),[`&-sm ${L}, &-sm > ${L}-group-addon`]:Object.assign({},P(R)),[`&-lg ${ae}-select-single ${ae}-select-selector`]:{height:R.controlHeightLG},[`&-sm ${ae}-select-single ${ae}-select-selector`]:{height:R.controlHeightSM},[`> ${L}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${L}-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,l.unit)(R.paddingInline)}`,color:R.colorText,fontWeight:"normal",fontSize:R.inputFontSize,textAlign:"center",borderRadius:R.borderRadius,transition:`all ${R.motionDurationSlow}`,lineHeight:1,[`${ae}-select`]:{margin:`${(0,l.unit)(R.calc(R.paddingBlock).add(1).mul(-1).equal())} ${(0,l.unit)(R.calc(R.paddingInline).mul(-1).equal())}`,[`&${ae}-select-single:not(${ae}-select-customize-input):not(${ae}-pagination-size-changer)`]:{[`${ae}-select-selector`]:{backgroundColor:"inherit",border:`${(0,l.unit)(R.lineWidth)} ${R.lineType} transparent`,boxShadow:"none"}}},[`${ae}-cascader-picker`]:{margin:`-9px ${(0,l.unit)(R.calc(R.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${ae}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[L]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${L}-search-with-button &`]:{zIndex:0}}},[`> ${L}:first-child, ${L}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ae}-select ${ae}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}-affix-wrapper`]:{[`&:not(:first-child) ${L}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${L}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}:last-child, ${L}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ae}-select ${ae}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${L}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${L}-search &`]:{borderStartStartRadius:R.borderRadius,borderEndStartRadius:R.borderRadius}},[`&:not(:first-child), ${L}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${L}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ie.dF)()),{[`${L}-group-addon, ${L}-group-wrap, > ${L}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:R.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${L}-affix-wrapper,
|
|
|
& > ${L}-number-affix-wrapper,
|
|
|
& > ${ae}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:R.calc(R.lineWidth).mul(-1).equal(),borderInlineEndWidth:R.lineWidth},[L]:{float:"none"},[`& > ${ae}-select > ${ae}-select-selector,
|
|
|
& > ${ae}-select-auto-complete ${L},
|
|
|
& > ${ae}-cascader-picker ${L},
|
|
|
& > ${L}-group-wrapper ${L}`]:{borderInlineEndWidth:R.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${ae}-select-focused`]:{zIndex:1},[`& > ${ae}-select > ${ae}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${ae}-select:first-child > ${ae}-select-selector,
|
|
|
& > ${ae}-select-auto-complete:first-child ${L},
|
|
|
& > ${ae}-cascader-picker:first-child ${L}`]:{borderStartStartRadius:R.borderRadius,borderEndStartRadius:R.borderRadius},[`& > *:last-child,
|
|
|
& > ${ae}-select:last-child > ${ae}-select-selector,
|
|
|
& > ${ae}-cascader-picker:last-child ${L},
|
|
|
& > ${ae}-cascader-picker-focused:last-child ${L}`]:{borderInlineEndWidth:R.lineWidth,borderStartEndRadius:R.borderRadius,borderEndEndRadius:R.borderRadius},[`& > ${ae}-select-auto-complete ${L}`]:{verticalAlign:"top"},[`${L}-group-wrapper + ${L}-group-wrapper`]:{marginInlineStart:R.calc(R.lineWidth).mul(-1).equal(),[`${L}-affix-wrapper`]:{borderRadius:0}},[`${L}-group-wrapper:not(:last-child)`]:{[`&${L}-search > ${L}-group`]:{[`& > ${L}-group-addon > ${L}-search-button`]:{borderRadius:0},[`& > ${L}`]:{borderStartStartRadius:R.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:R.borderRadius}}}})}},I=R=>{const{componentCls:L,controlHeightSM:ae,lineWidth:pe,calc:ce}=R,$e=ce(ae).sub(ce(pe).mul(2)).sub(16).div(2).equal();return{[L]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ie.Wf)(R)),y(R)),(0,q.qG)(R)),(0,q.H8)(R)),(0,q.Mu)(R)),(0,q.vc)(R)),{'&[type="color"]':{height:R.controlHeight,[`&${L}-lg`]:{height:R.controlHeightLG},[`&${L}-sm`]:{height:ae,paddingTop:$e,paddingBottom:$e}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},N=R=>{const{componentCls:L}=R;return{[`${L}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:R.colorTextQuaternary,fontSize:R.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${R.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:R.colorTextTertiary},"&:active":{color:R.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,l.unit)(R.inputAffixPadding)}`}}}},W=R=>{const{componentCls:L,inputAffixPadding:ae,colorTextDescription:pe,motionDurationSlow:ce,colorIcon:Le,colorIconHover:$e,iconCls:Te}=R,Pe=`${L}-affix-wrapper`,se=`${L}-affix-wrapper-disabled`;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign({},y(R)),{display:"inline-flex",[`&:not(${L}-disabled):hover`]:{zIndex:1,[`${L}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${L}`]:{padding:0},[`> input${L}, > textarea${L}`]:{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"'},[L]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:R.paddingXS}},"&-show-count-suffix":{color:pe},"&-show-count-has-suffix":{marginInlineEnd:R.paddingXXS},"&-prefix":{marginInlineEnd:ae},"&-suffix":{marginInlineStart:ae}}}),N(R)),{[`${Te}${L}-password-icon`]:{color:Le,cursor:"pointer",transition:`all ${ce}`,"&:hover":{color:$e}}}),[`${L}-underlined`]:{borderRadius:0},[se]:{[`${Te}${L}-password-icon`]:{color:Le,cursor:"not-allowed","&:hover":{color:Le}}}}},H=R=>{const{componentCls:L,borderRadiusLG:ae,borderRadiusSM:pe}=R;return{[`${L}-group`]:Object.assign(Object.assign(Object.assign({},(0,ie.Wf)(R)),S(R)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${L}-group-addon`]:{borderRadius:ae,fontSize:R.inputFontSizeLG}},"&-sm":{[`${L}-group-addon`]:{borderRadius:pe}}},(0,q.ir)(R)),(0,q.S5)(R)),{[`&:not(${L}-compact-first-item):not(${L}-compact-last-item)${L}-compact-item`]:{[`${L}, ${L}-group-addon`]:{borderRadius:0}},[`&:not(${L}-compact-last-item)${L}-compact-first-item`]:{[`${L}, ${L}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${L}-compact-first-item)${L}-compact-last-item`]:{[`${L}, ${L}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${L}-compact-last-item)${L}-compact-item`]:{[`${L}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${L}-compact-first-item)${L}-compact-item`]:{[`${L}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},j=R=>{const{componentCls:L,antCls:ae}=R,pe=`${L}-search`;return{[pe]:{[L]:{"&:hover, &:focus":{[`+ ${L}-group-addon ${pe}-button:not(${ae}-btn-primary)`]:{borderInlineStartColor:R.colorPrimaryHover}}},[`${L}-affix-wrapper`]:{height:R.controlHeight,borderRadius:0},[`${L}-lg`]:{lineHeight:R.calc(R.lineHeightLG).sub(2e-4).equal()},[`> ${L}-group`]:{[`> ${L}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${pe}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${pe}-button:not(${ae}-btn-primary)`]:{color:R.colorTextDescription,"&:hover":{color:R.colorPrimaryHover},"&:active":{color:R.colorPrimaryActive},[`&${ae}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${pe}-button`]:{height:R.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${L}-affix-wrapper, ${pe}-button`]:{height:R.controlHeightLG}},"&-small":{[`${L}-affix-wrapper, ${pe}-button`]:{height:R.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${L}-compact-item`]:{[`&:not(${L}-compact-last-item)`]:{[`${L}-group-addon`]:{[`${L}-search-button`]:{marginInlineEnd:R.calc(R.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${L}-compact-first-item)`]:{[`${L},${L}-affix-wrapper`]:{borderRadius:0}},[`> ${L}-group-addon ${L}-search-button,
|
|
|
> ${L},
|
|
|
${L}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${L}-affix-wrapper-focused`]:{zIndex:2}}}}},A=R=>{const{componentCls:L}=R;return{[`${L}-out-of-range`]:{[`&, & input, & textarea, ${L}-show-count-suffix, ${L}-data-count`]:{color:R.colorError}}}},V=(0,le.I$)(["Input","Shared"],R=>{const L=(0,F.mergeToken)(R,(0,g.e)(R));return[I(L),W(L)]},g.T,{resetFont:!1});qe.ZP=(0,le.I$)(["Input","Component"],R=>{const L=(0,F.mergeToken)(R,(0,g.e)(R));return[H(L),j(L),A(L),(0,U.c)(L)]},g.T,{resetFont:!1})},64910:function(ln,qe,d){"use strict";d.d(qe,{T:function(){return U},e:function(){return ie}});var l=d(51636);function ie(le){return(0,l.mergeToken)(le,{inputAffixPadding:le.paddingXXS})}const U=le=>{const{controlHeight:F,fontSize:g,lineHeight:q,lineWidth:Q,controlHeightSM:o,controlHeightLG:C,fontSizeLG:P,lineHeightLG:y,paddingSM:S,controlPaddingHorizontalSM:I,controlPaddingHorizontal:N,colorFillAlter:W,colorPrimaryHover:H,colorPrimary:j,controlOutlineWidth:A,controlOutline:V,colorErrorOutline:R,colorWarningOutline:L,colorBgContainer:ae,inputFontSize:pe,inputFontSizeLG:ce,inputFontSizeSM:Le}=le,$e=pe||g,Te=Le||$e,Pe=ce||P,se=Math.round((F-$e*q)/2*10)/10-Q,K=Math.round((o-Te*q)/2*10)/10-Q,w=Math.ceil((C-Pe*y)/2*10)/10-Q;return{paddingBlock:Math.max(se,0),paddingBlockSM:Math.max(K,0),paddingBlockLG:Math.max(w,0),paddingInline:S-Q,paddingInlineSM:I-Q,paddingInlineLG:N-Q,addonBg:W,activeBorderColor:j,hoverBorderColor:H,activeShadow:`0 0 0 ${A}px ${V}`,errorActiveShadow:`0 0 0 ${A}px ${R}`,warningActiveShadow:`0 0 0 ${A}px ${L}`,hoverBg:ae,activeBg:ae,inputFontSize:$e,inputFontSizeLG:Pe,inputFontSizeSM:Te}}},39082:function(ln,qe,d){"use strict";d.d(qe,{$U:function(){return F},H8:function(){return S},Mu:function(){return C},S5:function(){return N},Xy:function(){return le},ir:function(){return o},qG:function(){return q},vc:function(){return j}});var l=d(36237),ie=d(51636);const U=A=>({borderColor:A.hoverBorderColor,backgroundColor:A.hoverBg}),le=A=>({color:A.colorTextDisabled,backgroundColor:A.colorBgContainerDisabled,borderColor:A.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},U((0,ie.mergeToken)(A,{hoverBorderColor:A.colorBorder,hoverBg:A.colorBgContainerDisabled})))}),F=(A,V)=>({background:A.colorBgContainer,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:V.borderColor,"&:hover":{borderColor:V.hoverBorderColor,backgroundColor:A.hoverBg},"&:focus, &:focus-within":{borderColor:V.activeBorderColor,boxShadow:V.activeShadow,outline:0,backgroundColor:A.activeBg}}),g=(A,V)=>({[`&${A.componentCls}-status-${V.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},F(A,V)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:V.affixColor}}),[`&${A.componentCls}-status-${V.status}${A.componentCls}-disabled`]:{borderColor:V.borderColor}}),q=(A,V)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F(A,{borderColor:A.colorBorder,hoverBorderColor:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeShadow:A.activeShadow})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},le(A))}),g(A,{status:"error",borderColor:A.colorError,hoverBorderColor:A.colorErrorBorderHover,activeBorderColor:A.colorError,activeShadow:A.errorActiveShadow,affixColor:A.colorError})),g(A,{status:"warning",borderColor:A.colorWarning,hoverBorderColor:A.colorWarningBorderHover,activeBorderColor:A.colorWarning,activeShadow:A.warningActiveShadow,affixColor:A.colorWarning})),V)}),Q=(A,V)=>({[`&${A.componentCls}-group-wrapper-status-${V.status}`]:{[`${A.componentCls}-group-addon`]:{borderColor:V.addonBorderColor,color:V.addonColor}}}),o=A=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.addonBg,border:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Q(A,{status:"error",addonBorderColor:A.colorError,addonColor:A.colorErrorText})),Q(A,{status:"warning",addonBorderColor:A.colorWarning,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group-addon`]:Object.assign({},le(A))}})}),C=(A,V)=>{const{componentCls:R}=A;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${R}-disabled, &[disabled]`]:{color:A.colorTextDisabled,cursor:"not-allowed"},[`&${R}-status-error`]:{"&, & input, & textarea":{color:A.colorError}},[`&${R}-status-warning`]:{"&, & input, & textarea":{color:A.colorWarning}}},V)}},P=(A,V)=>{var R;return{background:V.bg,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(R=V==null?void 0:V.inputColor)!==null&&R!==void 0?R:"unset"},"&:hover":{background:V.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:V.activeBorderColor,backgroundColor:A.activeBg}}},y=(A,V)=>({[`&${A.componentCls}-status-${V.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},P(A,V)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:V.affixColor}})}),S=(A,V)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.activeBorderColor})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},le(A))}),y(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,inputColor:A.colorErrorText,affixColor:A.colorError})),y(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,inputColor:A.colorWarningText,affixColor:A.colorWarning})),V)}),I=(A,V)=>({[`&${A.componentCls}-group-wrapper-status-${V.status}`]:{[`${A.componentCls}-group-addon`]:{background:V.addonBg,color:V.addonColor}}}),N=A=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary},[`${A.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}}}},I(A,{status:"error",addonBg:A.colorErrorBg,addonColor:A.colorErrorText})),I(A,{status:"warning",addonBg:A.colorWarningBg,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary,color:A.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${(0,l.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`}}}})}),W=(A,V)=>({background:A.colorBgContainer,borderWidth:`${(0,l.unit)(A.lineWidth)} 0`,borderStyle:`${A.lineType} none`,borderColor:`transparent transparent ${V.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${V.borderColor} transparent`,backgroundColor:A.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${V.borderColor} transparent`,outline:0,backgroundColor:A.activeBg}}),H=(A,V)=>({[`&${A.componentCls}-status-${V.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},W(A,V)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:V.affixColor}}),[`&${A.componentCls}-status-${V.status}${A.componentCls}-disabled`]:{borderColor:`transparent transparent ${V.borderColor} transparent`}}),j=(A,V)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(A,{borderColor:A.colorBorder,hoverBorderColor:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeShadow:A.activeShadow})),{[`&${A.componentCls}-disabled, &[disabled]`]:{color:A.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${A.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),H(A,{status:"error",borderColor:A.colorError,hoverBorderColor:A.colorErrorBorderHover,activeBorderColor:A.colorError,activeShadow:A.errorActiveShadow,affixColor:A.colorError})),H(A,{status:"warning",borderColor:A.colorWarning,hoverBorderColor:A.colorWarningBorderHover,activeBorderColor:A.colorWarning,activeShadow:A.warningActiveShadow,affixColor:A.colorWarning})),V)})},24303:function(ln,qe,d){"use strict";d.d(qe,{D:function(){return pe},Z:function(){return $e}});var l=d(59301),ie=d(60499),U={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},le=U,F=d(7657),g=function(Pe,se){return l.createElement(F.Z,(0,ie.Z)({},Pe,{ref:se,icon:le}))},q=l.forwardRef(g),Q=q,o=d(33853),C=d(38819),P=d(92310),y=d.n(P),S=d(2738),I=d(48755),N=d(6989),W=d(36237),H=d(48923),j=d(16931);const A=Te=>{const{componentCls:Pe,siderBg:se,motionDurationMid:K,motionDurationSlow:w,antCls:te,triggerHeight:ne,triggerColor:z,triggerBg:x,headerHeight:T,zeroTriggerWidth:G,zeroTriggerHeight:ve,borderRadiusLG:We,lightSiderBg:st,lightTriggerColor:_e,lightTriggerBg:Ke,bodyBg:Ve}=Te;return{[Pe]:{position:"relative",minWidth:0,background:se,transition:`all ${K}, background 0s`,"&-has-trigger":{paddingBottom:ne},"&-right":{order:1},[`${Pe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${te}-menu${te}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Pe}-children`]:{overflow:"hidden"},[`${Pe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ne,color:z,lineHeight:(0,W.unit)(ne),textAlign:"center",background:x,cursor:"pointer",transition:`all ${K}`},[`${Pe}-zero-width-trigger`]:{position:"absolute",top:T,insetInlineEnd:Te.calc(G).mul(-1).equal(),zIndex:1,width:G,height:ve,color:z,fontSize:Te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:se,borderRadius:`0 ${(0,W.unit)(We)} ${(0,W.unit)(We)} 0`,cursor:"pointer",transition:`background ${w} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${w}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Te.calc(G).mul(-1).equal(),borderRadius:`${(0,W.unit)(We)} 0 0 ${(0,W.unit)(We)}`}},"&-light":{background:st,[`${Pe}-trigger`]:{color:_e,background:Ke},[`${Pe}-zero-width-trigger`]:{color:_e,background:Ke,border:`1px solid ${Ve}`,borderInlineStart:0}}}}};var V=(0,j.I$)(["Layout","Sider"],Te=>[A(Te)],H.eh,{deprecatedTokens:H.jn}),R=function(Te,Pe){var se={};for(var K in Te)Object.prototype.hasOwnProperty.call(Te,K)&&Pe.indexOf(K)<0&&(se[K]=Te[K]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,K=Object.getOwnPropertySymbols(Te);w<K.length;w++)Pe.indexOf(K[w])<0&&Object.prototype.propertyIsEnumerable.call(Te,K[w])&&(se[K[w]]=Te[K[w]]);return se};const L={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ae=Te=>!Number.isNaN(Number.parseFloat(Te))&&isFinite(Te),pe=l.createContext({}),ce=(()=>{let Te=0;return function(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Te+=1,`${Pe}${Te}`}})();var $e=l.forwardRef((Te,Pe)=>{const{prefixCls:se,className:K,trigger:w,children:te,defaultCollapsed:ne=!1,theme:z="dark",style:x={},collapsible:T=!1,reverseArrow:G=!1,width:ve=200,collapsedWidth:We=80,zeroWidthTriggerStyle:st,breakpoint:_e,onCollapse:Ke,onBreakpoint:Ve}=Te,rt=R(Te,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ae}=(0,l.useContext)(N.V),[Tt,tt]=(0,l.useState)("collapsed"in Te?Te.collapsed:ne),[Pt,Xe]=(0,l.useState)(!1);(0,l.useEffect)(()=>{"collapsed"in Te&&tt(Te.collapsed)},[Te.collapsed]);const Qe=(Ct,gt)=>{"collapsed"in Te||tt(Ct),Ke==null||Ke(Ct,gt)},{getPrefixCls:Ne,direction:Oe}=(0,l.useContext)(I.E_),re=Ne("layout-sider",se),[Fe,Re,Z]=V(re),O=(0,l.useRef)(null);O.current=Ct=>{Xe(Ct.matches),Ve==null||Ve(Ct.matches),Tt!==Ct.matches&&Qe(Ct.matches,"responsive")},(0,l.useEffect)(()=>{function Ct(Ce){return O.current(Ce)}let gt;if(typeof window!="undefined"){const{matchMedia:Ce}=window;if(Ce&&_e&&_e in L){gt=Ce(`screen and (max-width: ${L[_e]})`);try{gt.addEventListener("change",Ct)}catch(Je){gt.addListener(Ct)}Ct(gt)}}return()=>{try{gt==null||gt.removeEventListener("change",Ct)}catch(Ce){gt==null||gt.removeListener(Ct)}}},[_e]),(0,l.useEffect)(()=>{const Ct=ce("ant-sider-");return Ae.addSider(Ct),()=>Ae.removeSider(Ct)},[]);const me=()=>{Qe(!Tt,"clickTrigger")},Ee=(0,S.Z)(rt,["collapsed"]),ge=Tt?We:ve,we=ae(ge)?`${ge}px`:String(ge),ke=parseFloat(String(We||0))===0?l.createElement("span",{onClick:me,className:y()(`${re}-zero-width-trigger`,`${re}-zero-width-trigger-${G?"right":"left"}`),style:st},w||l.createElement(Q,null)):null,Ye=Oe==="rtl"==!G,dt={expanded:Ye?l.createElement(C.Z,null):l.createElement(o.Z,null),collapsed:Ye?l.createElement(o.Z,null):l.createElement(C.Z,null)}[Tt?"collapsed":"expanded"],ot=w!==null?ke||l.createElement("div",{className:`${re}-trigger`,onClick:me,style:{width:we}},w||dt):null,ft=Object.assign(Object.assign({},x),{flex:`0 0 ${we}`,maxWidth:we,minWidth:we,width:we}),ht=y()(re,`${re}-${z}`,{[`${re}-collapsed`]:!!Tt,[`${re}-has-trigger`]:T&&w!==null&&!ke,[`${re}-below`]:!!Pt,[`${re}-zero-width`]:parseFloat(we)===0},K,Re,Z),Ge=l.useMemo(()=>({siderCollapsed:Tt}),[Tt]);return Fe(l.createElement(pe.Provider,{value:Ge},l.createElement("aside",Object.assign({className:ht},Ee,{style:ft,ref:Pe}),l.createElement("div",{className:`${re}-children`},te),T||Pt&&ke?ot:null)))})},6989:function(ln,qe,d){"use strict";d.d(qe,{V:function(){return ie}});var l=d(59301);const ie=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(ln,qe,d){"use strict";d.d(qe,{eh:function(){return le},jn:function(){return F}});var l=d(36237),ie=d(16931);const U=g=>{const{antCls:q,componentCls:Q,colorText:o,footerBg:C,headerHeight:P,headerPadding:y,headerColor:S,footerPadding:I,fontSize:N,bodyBg:W,headerBg:H}=g;return{[Q]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:W,"&, *":{boxSizing:"border-box"},[`&${Q}-has-sider`]:{flexDirection:"row",[`> ${Q}, > ${Q}-content`]:{width:0}},[`${Q}-header, &${Q}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Q}-header`]:{height:P,padding:y,color:S,lineHeight:(0,l.unit)(P),background:H,[`${q}-menu`]:{lineHeight:"inherit"}},[`${Q}-footer`]:{padding:I,color:o,fontSize:N,background:C},[`${Q}-content`]:{flex:"auto",color:o,minHeight:0}}},le=g=>{const{colorBgLayout:q,controlHeight:Q,controlHeightLG:o,colorText:C,controlHeightSM:P,marginXXS:y,colorTextLightSolid:S,colorBgContainer:I}=g,N=o*1.25;return{colorBgHeader:"#001529",colorBgBody:q,colorBgTrigger:"#002140",bodyBg:q,headerBg:"#001529",headerHeight:Q*2,headerPadding:`0 ${N}px`,headerColor:C,footerPadding:`${P}px ${N}px`,footerBg:q,siderBg:"#001529",triggerHeight:o+y*2,triggerBg:"#002140",triggerColor:S,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:I,lightTriggerBg:I,lightTriggerColor:C}},F=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];qe.ZP=(0,ie.I$)("Layout",g=>[U(g)],le,{deprecatedTokens:F})},78857:function(ln,qe,d){"use strict";d.d(qe,{J:function(){return g}});var l=d(59301),ie=d(8654),U=d(62487),le=function(q,Q){var o={};for(var C in q)Object.prototype.hasOwnProperty.call(q,C)&&Q.indexOf(C)<0&&(o[C]=q[C]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,C=Object.getOwnPropertySymbols(q);P<C.length;P++)Q.indexOf(C[P])<0&&Object.prototype.propertyIsEnumerable.call(q,C[P])&&(o[C[P]]=q[C[P]]);return o};const F=l.createContext(null),g=l.forwardRef((q,Q)=>{const{children:o}=q,C=le(q,["children"]),P=l.useContext(F),y=l.useMemo(()=>Object.assign(Object.assign({},P),C),[P,C.prefixCls,C.mode,C.selectable,C.rootClassName]),S=(0,ie.t4)(o),I=(0,ie.x1)(Q,S?(0,ie.C4)(o):null);return l.createElement(F.Provider,{value:y},l.createElement(U.Z,{space:!0},S?l.cloneElement(o,{ref:I}):o))});qe.Z=F},93041:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Fe}});var l=d(59301),ie=d(28321),U=d(24303),le=d(18785),F=d(92310),g=d.n(F),q=d(6089),Q=d(2738),o=d(86641),C=d(22703),P=d(48755),y=d(83397),I=(0,l.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),N=function(Re,Z){var O={};for(var me in Re)Object.prototype.hasOwnProperty.call(Re,me)&&Z.indexOf(me)<0&&(O[me]=Re[me]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,me=Object.getOwnPropertySymbols(Re);Ee<me.length;Ee++)Z.indexOf(me[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Re,me[Ee])&&(O[me[Ee]]=Re[me[Ee]]);return O},H=Re=>{const{prefixCls:Z,className:O,dashed:me}=Re,Ee=N(Re,["prefixCls","className","dashed"]),{getPrefixCls:ge}=l.useContext(P.E_),we=ge("menu",Z),ke=g()({[`${we}-item-divider-dashed`]:!!me},O);return l.createElement(ie.iz,Object.assign({className:ke},Ee))},j=d(11592),A=d(25399),R=Re=>{var Z;const{className:O,children:me,icon:Ee,title:ge,danger:we,extra:ke}=Re,{prefixCls:Ye,firstLevel:oe,direction:fe,disableMenuItemTitleTooltip:dt,inlineCollapsed:ot}=l.useContext(I),ft=Je=>{const _=me==null?void 0:me[0],D=l.createElement("span",{className:g()(`${Ye}-title-content`,{[`${Ye}-title-content-with-extra`]:!!ke||ke===0})},me);return(!Ee||l.isValidElement(me)&&me.type==="span")&&me&&Je&&oe&&typeof _=="string"?l.createElement("div",{className:`${Ye}-inline-collapsed-noicon`},_.charAt(0)):D},{siderCollapsed:ht}=l.useContext(U.D);let Ge=ge;typeof ge=="undefined"?Ge=oe?me:"":ge===!1&&(Ge="");const Ct={title:Ge};!ht&&!ot&&(Ct.title=null,Ct.open=!1);const gt=(0,j.Z)(me).length;let Ce=l.createElement(ie.ck,Object.assign({},(0,Q.Z)(Re,["title","icon","danger"]),{className:g()({[`${Ye}-item-danger`]:we,[`${Ye}-item-only-child`]:(Ee?gt+1:gt)===1},O),title:typeof ge=="string"?ge:void 0}),(0,C.Tm)(Ee,{className:g()(l.isValidElement(Ee)?(Z=Ee.props)===null||Z===void 0?void 0:Z.className:"",`${Ye}-item-icon`)}),ft(ot));return dt||(Ce=l.createElement(A.Z,Object.assign({},Ct,{placement:fe==="rtl"?"left":"right",classNames:{root:`${Ye}-inline-collapsed-tooltip`}}),Ce)),Ce},L=d(78857),ae=d(36237),pe=d(17835),ce=d(63356),Le=d(34961),$e=d(46e3),Te=d(34925),Pe=d(16931),se=d(51636),w=Re=>{const{componentCls:Z,motionDurationSlow:O,horizontalLineHeight:me,colorSplit:Ee,lineWidth:ge,lineType:we,itemPaddingInline:ke}=Re;return{[`${Z}-horizontal`]:{lineHeight:me,border:0,borderBottom:`${(0,ae.unit)(ge)} ${we} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Z}-item, ${Z}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ke},[`> ${Z}-item:hover,
|
|
|
> ${Z}-item-active,
|
|
|
> ${Z}-submenu ${Z}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Z}-item, ${Z}-submenu-title`]:{transition:[`border-color ${O}`,`background ${O}`].join(",")},[`${Z}-submenu-arrow`]:{display:"none"}}}},ne=Re=>{let{componentCls:Z,menuArrowOffset:O,calc:me}=Re;return{[`${Z}-rtl`]:{direction:"rtl"},[`${Z}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Z}-rtl${Z}-vertical,
|
|
|
${Z}-submenu-rtl ${Z}-vertical`]:{[`${Z}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ae.unit)(me(O).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ae.unit)(O)})`}}}}};const z=Re=>Object.assign({},(0,ce.oN)(Re));var T=(Re,Z)=>{const{componentCls:O,itemColor:me,itemSelectedColor:Ee,subMenuItemSelectedColor:ge,groupTitleColor:we,itemBg:ke,subMenuItemBg:Ye,itemSelectedBg:oe,activeBarHeight:fe,activeBarWidth:dt,activeBarBorderWidth:ot,motionDurationSlow:ft,motionEaseInOut:ht,motionEaseOut:Ge,itemPaddingInline:Ct,motionDurationMid:gt,itemHoverColor:Ce,lineType:Je,colorSplit:_,itemDisabledColor:D,dangerItemColor:Ze,dangerItemHoverColor:ee,dangerItemSelectedColor:ye,dangerItemActiveBg:Ot,dangerItemSelectedBg:He,popupBg:it,itemHoverBg:ct,itemActiveBg:he,menuSubMenuBg:be,horizontalItemSelectedColor:je,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:$,horizontalItemHoverBg:ut}=Re;return{[`${O}-${Z}, ${O}-${Z} > ${O}`]:{color:me,background:ke,[`&${O}-root:focus-visible`]:Object.assign({},z(Re)),[`${O}-item`]:{"&-group-title, &-extra":{color:we}},[`${O}-submenu-selected > ${O}-submenu-title`]:{color:ge},[`${O}-item, ${O}-submenu-title`]:{color:me,[`&:not(${O}-item-disabled):focus-visible`]:Object.assign({},z(Re))},[`${O}-item-disabled, ${O}-submenu-disabled`]:{color:`${D} !important`},[`${O}-item:not(${O}-item-selected):not(${O}-submenu-selected)`]:{[`&:hover, > ${O}-submenu-title:hover`]:{color:Ce}},[`&:not(${O}-horizontal)`]:{[`${O}-item:not(${O}-item-selected)`]:{"&:hover":{backgroundColor:ct},"&:active":{backgroundColor:he}},[`${O}-submenu-title`]:{"&:hover":{backgroundColor:ct},"&:active":{backgroundColor:he}}},[`${O}-item-danger`]:{color:Ze,[`&${O}-item:hover`]:{[`&:not(${O}-item-selected):not(${O}-submenu-selected)`]:{color:ee}},[`&${O}-item:active`]:{background:Ot}},[`${O}-item a`]:{"&, &:hover":{color:"inherit"}},[`${O}-item-selected`]:{color:Ee,[`&${O}-item-danger`]:{color:ye},"a, a:hover":{color:"inherit"}},[`& ${O}-item-selected`]:{backgroundColor:oe,[`&${O}-item-danger`]:{backgroundColor:He}},[`&${O}-submenu > ${O}`]:{backgroundColor:be},[`&${O}-popup > ${O}`]:{backgroundColor:it},[`&${O}-submenu-popup > ${O}`]:{backgroundColor:it},[`&${O}-horizontal`]:Object.assign(Object.assign({},Z==="dark"?{borderBottom:0}:{}),{[`> ${O}-item, > ${O}-submenu`]:{top:ot,marginTop:Re.calc(ot).mul(-1).equal(),marginBottom:0,borderRadius:$,"&::after":{position:"absolute",insetInline:Ct,bottom:0,borderBottom:`${(0,ae.unit)(fe)} solid transparent`,transition:`border-color ${ft} ${ht}`,content:'""'},"&:hover, &-active, &-open":{background:ut,"&::after":{borderBottomWidth:fe,borderBottomColor:je}},"&-selected":{color:je,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:fe,borderBottomColor:je}}}}),[`&${O}-root`]:{[`&${O}-inline, &${O}-vertical`]:{borderInlineEnd:`${(0,ae.unit)(ot)} ${Je} ${_}`}},[`&${O}-inline`]:{[`${O}-sub${O}-inline`]:{background:Ye},[`${O}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ae.unit)(dt)} solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${gt} ${Ge}`,`opacity ${gt} ${Ge}`].join(","),content:'""'},[`&${O}-item-danger`]:{"&::after":{borderInlineEndColor:ye}}},[`${O}-selected, ${O}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${gt} ${ht}`,`opacity ${gt} ${ht}`].join(",")}}}}}};const G=Re=>{const{componentCls:Z,itemHeight:O,itemMarginInline:me,padding:Ee,menuArrowSize:ge,marginXS:we,itemMarginBlock:ke,itemWidth:Ye,itemPaddingInline:oe}=Re,fe=Re.calc(ge).add(Ee).add(we).equal();return{[`${Z}-item`]:{position:"relative",overflow:"hidden"},[`${Z}-item, ${Z}-submenu-title`]:{height:O,lineHeight:(0,ae.unit)(O),paddingInline:oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:me,marginBlock:ke,width:Ye},[`> ${Z}-item,
|
|
|
> ${Z}-submenu > ${Z}-submenu-title`]:{height:O,lineHeight:(0,ae.unit)(O)},[`${Z}-item-group-list ${Z}-submenu-title,
|
|
|
${Z}-submenu-title`]:{paddingInlineEnd:fe}}};var We=Re=>{const{componentCls:Z,iconCls:O,itemHeight:me,colorTextLightSolid:Ee,dropdownWidth:ge,controlHeightLG:we,motionEaseOut:ke,paddingXL:Ye,itemMarginInline:oe,fontSizeLG:fe,motionDurationFast:dt,motionDurationSlow:ot,paddingXS:ft,boxShadowSecondary:ht,collapsedWidth:Ge,collapsedIconSize:Ct}=Re,gt={height:me,lineHeight:(0,ae.unit)(me),listStylePosition:"inside",listStyleType:"disc"};return[{[Z]:{"&-inline, &-vertical":Object.assign({[`&${Z}-root`]:{boxShadow:"none"}},G(Re))},[`${Z}-submenu-popup`]:{[`${Z}-vertical`]:Object.assign(Object.assign({},G(Re)),{boxShadow:ht})}},{[`${Z}-submenu-popup ${Z}-vertical${Z}-sub`]:{minWidth:ge,maxHeight:`calc(100vh - ${(0,ae.unit)(Re.calc(we).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Z}-inline`]:{width:"100%",[`&${Z}-root`]:{[`${Z}-item, ${Z}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ot}`,`background ${ot}`,`padding ${dt} ${ke}`].join(","),[`> ${Z}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Z}-sub${Z}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Z}-submenu > ${Z}-submenu-title`]:gt,[`& ${Z}-item-group-title`]:{paddingInlineStart:Ye}},[`${Z}-item`]:gt}},{[`${Z}-inline-collapsed`]:{width:Ge,[`&${Z}-root`]:{[`${Z}-item, ${Z}-submenu ${Z}-submenu-title`]:{[`> ${Z}-inline-collapsed-noicon`]:{fontSize:fe,textAlign:"center"}}},[`> ${Z}-item,
|
|
|
> ${Z}-item-group > ${Z}-item-group-list > ${Z}-item,
|
|
|
> ${Z}-item-group > ${Z}-item-group-list > ${Z}-submenu > ${Z}-submenu-title,
|
|
|
> ${Z}-submenu > ${Z}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ae.unit)(Re.calc(Ct).div(2).equal())} - ${(0,ae.unit)(oe)})`,textOverflow:"clip",[`
|
|
|
${Z}-submenu-arrow,
|
|
|
${Z}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Z}-item-icon, ${O}`]:{margin:0,fontSize:Ct,lineHeight:(0,ae.unit)(me),"+ span":{display:"inline-block",opacity:0}}},[`${Z}-item-icon, ${O}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Z}-item-icon, ${O}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${Z}-item-group-title`]:Object.assign(Object.assign({},ce.vS),{paddingInline:ft})}}]};const st=Re=>{const{componentCls:Z,motionDurationSlow:O,motionDurationMid:me,motionEaseInOut:Ee,motionEaseOut:ge,iconCls:we,iconSize:ke,iconMarginInlineEnd:Ye}=Re;return{[`${Z}-item, ${Z}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${O}`,`background ${O}`,`padding calc(${O} + 0.1s) ${Ee}`].join(","),[`${Z}-item-icon, ${we}`]:{minWidth:ke,fontSize:ke,transition:[`font-size ${me} ${ge}`,`margin ${O} ${Ee}`,`color ${O}`].join(","),"+ span":{marginInlineStart:Ye,opacity:1,transition:[`opacity ${O} ${Ee}`,`margin ${O}`,`color ${O}`].join(",")}},[`${Z}-item-icon`]:Object.assign({},(0,ce.Ro)()),[`&${Z}-item-only-child`]:{[`> ${we}, > ${Z}-item-icon`]:{marginInlineEnd:0}}},[`${Z}-item-disabled, ${Z}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Z}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_e=Re=>{const{componentCls:Z,motionDurationSlow:O,motionEaseInOut:me,borderRadius:Ee,menuArrowSize:ge,menuArrowOffset:we}=Re;return{[`${Z}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Re.margin,width:ge,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${O} ${me}, opacity ${O}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Re.calc(ge).mul(.6).equal(),height:Re.calc(ge).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${O} ${me}`,`transform ${O} ${me}`,`top ${O} ${me}`,`color ${O} ${me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ae.unit)(Re.calc(we).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ae.unit)(we)})`}}}}},Ke=Re=>{const{antCls:Z,componentCls:O,fontSize:me,motionDurationSlow:Ee,motionDurationMid:ge,motionEaseInOut:we,paddingXS:ke,padding:Ye,colorSplit:oe,lineWidth:fe,zIndexPopup:dt,borderRadiusLG:ot,subMenuItemBorderRadius:ft,menuArrowSize:ht,menuArrowOffset:Ge,lineType:Ct,groupTitleLineHeight:gt,groupTitleFontSize:Ce}=Re;return[{"":{[O]:Object.assign(Object.assign({},(0,ce.dF)()),{"&-hidden":{display:"none"}})},[`${O}-submenu-hidden`]:{display:"none"}},{[O]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(Re)),(0,ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${O}-item`]:{flex:"none"}},[`${O}-item, ${O}-submenu, ${O}-submenu-title`]:{borderRadius:Re.itemBorderRadius},[`${O}-item-group-title`]:{padding:`${(0,ae.unit)(ke)} ${(0,ae.unit)(Ye)}`,fontSize:Ce,lineHeight:gt,transition:`all ${Ee}`},[`&-horizontal ${O}-submenu`]:{transition:[`border-color ${Ee} ${we}`,`background ${Ee} ${we}`].join(",")},[`${O}-submenu, ${O}-submenu-inline`]:{transition:[`border-color ${Ee} ${we}`,`background ${Ee} ${we}`,`padding ${ge} ${we}`].join(",")},[`${O}-submenu ${O}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${we}`,`padding ${Ee} ${we}`].join(",")},[`${O}-title-content`]:{transition:`color ${Ee}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Z}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${O}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Re.padding}},[`${O}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${O}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:oe,borderStyle:Ct,borderWidth:0,borderTopWidth:fe,marginBlock:fe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),st(Re)),{[`${O}-item-group`]:{[`${O}-item-group-list`]:{margin:0,padding:0,[`${O}-item, ${O}-submenu-title`]:{paddingInline:`${(0,ae.unit)(Re.calc(me).mul(2).equal())} ${(0,ae.unit)(Ye)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:dt,borderRadius:ot,boxShadow:"none",transformOrigin:"0 0",[`&${O}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${O}`]:Object.assign(Object.assign(Object.assign({borderRadius:ot},st(Re)),_e(Re)),{[`${O}-item, ${O}-submenu > ${O}-submenu-title`]:{borderRadius:ft},[`${O}-submenu-title::after`]:{transition:`transform ${Ee} ${we}`}})},"\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:Re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Re.paddingXS}}}),_e(Re)),{[`&-inline-collapsed ${O}-submenu-arrow,
|
|
|
&-inline ${O}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ae.unit)(Ge)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ae.unit)(Re.calc(Ge).mul(-1).equal())})`}},[`${O}-submenu-open${O}-submenu-inline > ${O}-submenu-title > ${O}-submenu-arrow`]:{transform:`translateY(${(0,ae.unit)(Re.calc(ht).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ae.unit)(Re.calc(Ge).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ae.unit)(Ge)})`}}})},{[`${Z}-layout-header`]:{[O]:{lineHeight:"inherit"}}}]},Ve=Re=>{var Z,O,me;const{colorPrimary:Ee,colorError:ge,colorTextDisabled:we,colorErrorBg:ke,colorText:Ye,colorTextDescription:oe,colorBgContainer:fe,colorFillAlter:dt,colorFillContent:ot,lineWidth:ft,lineWidthBold:ht,controlItemBgActive:Ge,colorBgTextHover:Ct,controlHeightLG:gt,lineHeight:Ce,colorBgElevated:Je,marginXXS:_,padding:D,fontSize:Ze,controlHeightSM:ee,fontSizeLG:ye,colorTextLightSolid:Ot,colorErrorHover:He}=Re,it=(Z=Re.activeBarWidth)!==null&&Z!==void 0?Z:0,ct=(O=Re.activeBarBorderWidth)!==null&&O!==void 0?O:ft,he=(me=Re.itemMarginInline)!==null&&me!==void 0?me:Re.marginXXS,be=new pe.FastColor(Ot).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Ye,itemColor:Ye,colorItemTextHover:Ye,itemHoverColor:Ye,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:oe,groupTitleColor:oe,colorItemTextSelected:Ee,itemSelectedColor:Ee,subMenuItemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:fe,itemBg:fe,colorItemBgHover:Ct,itemHoverBg:Ct,colorItemBgActive:ot,itemActiveBg:Ge,colorSubItemBg:dt,subMenuItemBg:dt,colorItemBgSelected:Ge,itemSelectedBg:Ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:it,colorActiveBarHeight:ht,activeBarHeight:ht,colorActiveBarBorderSize:ft,activeBarBorderWidth:ct,colorItemTextDisabled:we,itemDisabledColor:we,colorDangerItemText:ge,dangerItemColor:ge,colorDangerItemTextHover:ge,dangerItemHoverColor:ge,colorDangerItemTextSelected:ge,dangerItemSelectedColor:ge,colorDangerItemBgActive:ke,dangerItemActiveBg:ke,colorDangerItemBgSelected:ke,dangerItemSelectedBg:ke,itemMarginInline:he,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:gt,groupTitleLineHeight:Ce,collapsedWidth:gt*2,popupBg:Je,itemMarginBlock:_,itemPaddingInline:D,horizontalLineHeight:`${gt*1.15}px`,iconSize:Ze,iconMarginInlineEnd:ee-Ze,collapsedIconSize:ye,groupTitleFontSize:Ze,darkItemDisabledColor:new pe.FastColor(Ot).setA(.25).toRgbString(),darkItemColor:be,darkDangerItemColor:ge,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ot,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:ge,darkItemHoverBg:"transparent",darkGroupTitleColor:be,darkItemHoverColor:Ot,darkDangerItemHoverColor:He,darkDangerItemSelectedColor:Ot,darkDangerItemActiveBg:ge,itemWidth:it?`calc(100% + ${ct}px)`:`calc(100% - ${he*2}px)`}};var rt=function(Re){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Pe.I$)("Menu",Ee=>{const{colorBgElevated:ge,controlHeightLG:we,fontSize:ke,darkItemColor:Ye,darkDangerItemColor:oe,darkItemBg:fe,darkSubMenuItemBg:dt,darkItemSelectedColor:ot,darkItemSelectedBg:ft,darkDangerItemSelectedBg:ht,darkItemHoverBg:Ge,darkGroupTitleColor:Ct,darkItemHoverColor:gt,darkItemDisabledColor:Ce,darkDangerItemHoverColor:Je,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:D,popupBg:Ze,darkPopupBg:ee}=Ee,ye=Ee.calc(ke).div(7).mul(5).equal(),Ot=(0,se.mergeToken)(Ee,{menuArrowSize:ye,menuHorizontalHeight:Ee.calc(we).mul(1.15).equal(),menuArrowOffset:Ee.calc(ye).mul(.25).equal(),menuSubMenuBg:ge,calc:Ee.calc,popupBg:Ze}),He=(0,se.mergeToken)(Ot,{itemColor:Ye,itemHoverColor:gt,groupTitleColor:Ct,itemSelectedColor:ot,subMenuItemSelectedColor:ot,itemBg:fe,popupBg:ee,subMenuItemBg:dt,itemActiveBg:"transparent",itemSelectedBg:ft,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ge,itemDisabledColor:Ce,dangerItemColor:oe,dangerItemHoverColor:Je,dangerItemSelectedColor:_,dangerItemActiveBg:D,dangerItemSelectedBg:ht,menuSubMenuBg:dt,horizontalItemSelectedColor:ot,horizontalItemSelectedBg:ft});return[Ke(Ot),w(Ot),We(Ot),T(Ot,"light"),T(He,"dark"),ne(Ot),(0,Le.Z)(Ot),(0,$e.oN)(Ot,"slide-up"),(0,$e.oN)(Ot,"slide-down"),(0,Te._y)(Ot,"zoom-big")]},Ve,{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:O,unitless:{groupTitleLineHeight:!0}})(Re,Z)},Ae=d(75030),tt=Re=>{var Z;const{popupClassName:O,icon:me,title:Ee,theme:ge}=Re,we=l.useContext(I),{prefixCls:ke,inlineCollapsed:Ye,theme:oe}=we,fe=(0,ie.Xl)();let dt;if(!me)dt=Ye&&!fe.length&&Ee&&typeof Ee=="string"?l.createElement("div",{className:`${ke}-inline-collapsed-noicon`},Ee.charAt(0)):l.createElement("span",{className:`${ke}-title-content`},Ee);else{const ht=l.isValidElement(Ee)&&Ee.type==="span";dt=l.createElement(l.Fragment,null,(0,C.Tm)(me,{className:g()(l.isValidElement(me)?(Z=me.props)===null||Z===void 0?void 0:Z.className:"",`${ke}-item-icon`)}),ht?Ee:l.createElement("span",{className:`${ke}-title-content`},Ee))}const ot=l.useMemo(()=>Object.assign(Object.assign({},we),{firstLevel:!1}),[we]),[ft]=(0,Ae.Cn)("Menu");return l.createElement(I.Provider,{value:ot},l.createElement(ie.Wd,Object.assign({},(0,Q.Z)(Re,["icon"]),{title:dt,popupClassName:g()(ke,O,`${ke}-${ge||oe}`),popupStyle:Object.assign({zIndex:ft},Re.popupStyle)})))},Pt=function(Re,Z){var O={};for(var me in Re)Object.prototype.hasOwnProperty.call(Re,me)&&Z.indexOf(me)<0&&(O[me]=Re[me]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,me=Object.getOwnPropertySymbols(Re);Ee<me.length;Ee++)Z.indexOf(me[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Re,me[Ee])&&(O[me[Ee]]=Re[me[Ee]]);return O};function Xe(Re){return Re===null||Re===!1}const Qe={item:R,submenu:tt,divider:H};var Oe=(0,l.forwardRef)((Re,Z)=>{var O;const me=l.useContext(L.Z),Ee=me||{},{getPrefixCls:ge,getPopupContainer:we,direction:ke,menu:Ye}=l.useContext(P.E_),oe=ge(),{prefixCls:fe,className:dt,style:ot,theme:ft="light",expandIcon:ht,_internalDisableMenuItemTitleTooltip:Ge,inlineCollapsed:Ct,siderCollapsed:gt,rootClassName:Ce,mode:Je,selectable:_,onClick:D,overflowedIndicatorPopupClassName:Ze}=Re,ee=Pt(Re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ye=(0,Q.Z)(ee,["collapsedWidth"]);(O=Ee.validator)===null||O===void 0||O.call(Ee,{mode:Je});const Ot=(0,q.Z)(function(){var qt;D==null||D.apply(void 0,arguments),(qt=Ee.onClick)===null||qt===void 0||qt.call(Ee)}),He=Ee.mode||Je,it=_!=null?_:Ee.selectable,ct=Ct!=null?Ct:gt,he={horizontal:{motionName:`${oe}-slide-up`},inline:(0,o.Z)(oe),other:{motionName:`${oe}-zoom-big`}},be=ge("menu",fe||Ee.prefixCls),je=(0,y.Z)(be),[Ue,$,ut]=rt(be,je,!me),xe=g()(`${be}-${ft}`,Ye==null?void 0:Ye.className,dt),At=l.useMemo(()=>{var qt,cn;if(typeof ht=="function"||Xe(ht))return ht||null;if(typeof Ee.expandIcon=="function"||Xe(Ee.expandIcon))return Ee.expandIcon||null;if(typeof(Ye==null?void 0:Ye.expandIcon)=="function"||Xe(Ye==null?void 0:Ye.expandIcon))return(Ye==null?void 0:Ye.expandIcon)||null;const gn=(qt=ht!=null?ht:Ee==null?void 0:Ee.expandIcon)!==null&&qt!==void 0?qt:Ye==null?void 0:Ye.expandIcon;return(0,C.Tm)(gn,{className:g()(`${be}-submenu-expand-icon`,l.isValidElement(gn)?(cn=gn.props)===null||cn===void 0?void 0:cn.className:void 0)})},[ht,Ee==null?void 0:Ee.expandIcon,Ye==null?void 0:Ye.expandIcon,be]),zt=l.useMemo(()=>({prefixCls:be,inlineCollapsed:ct||!1,direction:ke,firstLevel:!0,theme:ft,mode:He,disableMenuItemTitleTooltip:Ge}),[be,ct,ke,Ge,ft]);return Ue(l.createElement(L.Z.Provider,{value:null},l.createElement(I.Provider,{value:zt},l.createElement(ie.ZP,Object.assign({getPopupContainer:we,overflowedIndicator:l.createElement(le.Z,null),overflowedIndicatorPopupClassName:g()(be,`${be}-${ft}`,Ze),mode:He,selectable:it,onClick:Ot},ye,{inlineCollapsed:ct,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),ot),className:xe,prefixCls:be,direction:ke,defaultMotions:he,expandIcon:At,ref:Z,rootClassName:g()(Ce,$,Ee.rootClassName,ut,je),_internalComponents:Qe})))))});const re=(0,l.forwardRef)((Re,Z)=>{const O=(0,l.useRef)(null),me=l.useContext(U.D);return(0,l.useImperativeHandle)(Z,()=>({menu:O.current,focus:Ee=>{var ge;(ge=O.current)===null||ge===void 0||ge.focus(Ee)}})),l.createElement(Oe,Object.assign({ref:O},Re,me))});re.Item=R,re.SubMenu=tt,re.Divider=H,re.ItemGroup=ie.BW;var Fe=re},31709:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Ye}});var l=d(59301),ie=d(60499),U={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"},le=U,F=d(7657),g=function(fe,dt){return l.createElement(F.Z,(0,ie.Z)({},fe,{ref:dt,icon:le}))},q=l.forwardRef(g),Q=q,o=d(49198),C=d(33853),P=d(38819),y=d(92310),S=d.n(y),I=d(18642),N=d(43749),W=d(85899),H=d(72190),j=d(18929),A=d(10228),V=d(26112),R=d(48736),L=d(17119),ae=[10,20,50,100],pe=function(fe){var dt=fe.pageSizeOptions,ot=dt===void 0?ae:dt,ft=fe.locale,ht=fe.changeSize,Ge=fe.pageSize,Ct=fe.goButton,gt=fe.quickGo,Ce=fe.rootPrefixCls,Je=fe.disabled,_=fe.buildOptionText,D=fe.showSizeChanger,Ze=fe.sizeChangerRender,ee=l.useState(""),ye=(0,H.Z)(ee,2),Ot=ye[0],He=ye[1],it=function(){return!Ot||Number.isNaN(Ot)?void 0:Number(Ot)},ct=typeof _=="function"?_:function(zt){return"".concat(zt," ").concat(ft.items_per_page)},he=function(qt){He(qt.target.value)},be=function(qt){Ct||Ot===""||(He(""),!(qt.relatedTarget&&(qt.relatedTarget.className.indexOf("".concat(Ce,"-item-link"))>=0||qt.relatedTarget.className.indexOf("".concat(Ce,"-item"))>=0))&&(gt==null||gt(it())))},je=function(qt){Ot!==""&&(qt.keyCode===A.Z.ENTER||qt.type==="click")&&(He(""),gt==null||gt(it()))},Ue=function(){return ot.some(function(qt){return qt.toString()===Ge.toString()})?ot:ot.concat([Ge]).sort(function(qt,cn){var gn=Number.isNaN(Number(qt))?0:Number(qt),En=Number.isNaN(Number(cn))?0:Number(cn);return gn-En})},$="".concat(Ce,"-options");if(!D&&!gt)return null;var ut=null,xe=null,At=null;return D&&Ze&&(ut=Ze({disabled:Je,size:Ge,onSizeChange:function(qt){ht==null||ht(Number(qt))},"aria-label":ft.page_size,className:"".concat($,"-size-changer"),options:Ue().map(function(zt){return{label:ct(zt),value:zt}})})),gt&&(Ct&&(At=typeof Ct=="boolean"?l.createElement("button",{type:"button",onClick:je,onKeyUp:je,disabled:Je,className:"".concat($,"-quick-jumper-button")},ft.jump_to_confirm):l.createElement("span",{onClick:je,onKeyUp:je},Ct)),xe=l.createElement("div",{className:"".concat($,"-quick-jumper")},ft.jump_to,l.createElement("input",{disabled:Je,type:"text",value:Ot,onChange:he,onKeyUp:je,onBlur:be,"aria-label":ft.page}),ft.page,At)),l.createElement("li",{className:$},ut,xe)},ce=pe,Le=function(fe){var dt=fe.rootPrefixCls,ot=fe.page,ft=fe.active,ht=fe.className,Ge=fe.showTitle,Ct=fe.onClick,gt=fe.onKeyPress,Ce=fe.itemRender,Je="".concat(dt,"-item"),_=S()(Je,"".concat(Je,"-").concat(ot),(0,I.Z)((0,I.Z)({},"".concat(Je,"-active"),ft),"".concat(Je,"-disabled"),!ot),ht),D=function(){Ct(ot)},Ze=function(Ot){gt(Ot,Ct,ot)},ee=Ce(ot,"page",l.createElement("a",{rel:"nofollow"},ot));return ee?l.createElement("li",{title:Ge?String(ot):null,className:_,onClick:D,onKeyDown:Ze,tabIndex:0},ee):null},$e=Le,Te=function(fe,dt,ot){return ot};function Pe(){}function se(oe){var fe=Number(oe);return typeof fe=="number"&&!Number.isNaN(fe)&&isFinite(fe)&&Math.floor(fe)===fe}function K(oe,fe,dt){var ot=typeof oe=="undefined"?fe:oe;return Math.floor((dt-1)/ot)+1}var w=function(fe){var dt=fe.prefixCls,ot=dt===void 0?"rc-pagination":dt,ft=fe.selectPrefixCls,ht=ft===void 0?"rc-select":ft,Ge=fe.className,Ct=fe.current,gt=fe.defaultCurrent,Ce=gt===void 0?1:gt,Je=fe.total,_=Je===void 0?0:Je,D=fe.pageSize,Ze=fe.defaultPageSize,ee=Ze===void 0?10:Ze,ye=fe.onChange,Ot=ye===void 0?Pe:ye,He=fe.hideOnSinglePage,it=fe.align,ct=fe.showPrevNextJumpers,he=ct===void 0?!0:ct,be=fe.showQuickJumper,je=fe.showLessItems,Ue=fe.showTitle,$=Ue===void 0?!0:Ue,ut=fe.onShowSizeChange,xe=ut===void 0?Pe:ut,At=fe.locale,zt=At===void 0?L.Z:At,qt=fe.style,cn=fe.totalBoundaryShowSizeChanger,gn=cn===void 0?50:cn,En=fe.disabled,Fn=fe.simple,Hn=fe.showTotal,An=fe.showSizeChanger,qn=An===void 0?_>gn:An,vn=fe.sizeChangerRender,Gt=fe.pageSizeOptions,Xt=fe.itemRender,Dn=Xt===void 0?Te:Xt,Cn=fe.jumpPrevIcon,yt=fe.jumpNextIcon,Et=fe.prevIcon,Be=fe.nextIcon,lt=l.useRef(null),vt=(0,j.Z)(10,{value:D,defaultValue:ee}),xt=(0,H.Z)(vt,2),Dt=xt[0],Jt=xt[1],pn=(0,j.Z)(1,{value:Ct,defaultValue:Ce,postState:function(Gn){return Math.max(1,Math.min(Gn,K(void 0,Dt,_)))}}),_n=(0,H.Z)(pn,2),Vt=_n[0],yn=_n[1],Nn=l.useState(Vt),Sn=(0,H.Z)(Nn,2),bt=Sn[0],Rt=Sn[1];(0,l.useEffect)(function(){Rt(Vt)},[Vt]);var Wt=Ot!==Pe,Bt="current"in fe,jt=Math.max(1,Vt-(je?3:5)),Qt=Math.min(K(void 0,Dt,_),Vt+(je?3:5));function an(yr,Gn){var pi=yr||l.createElement("button",{type:"button","aria-label":Gn,className:"".concat(ot,"-item-link")});return typeof yr=="function"&&(pi=l.createElement(yr,(0,W.Z)({},fe))),pi}function on(yr){var Gn=yr.target.value,pi=K(void 0,Dt,_),Ln;return Gn===""?Ln=Gn:Number.isNaN(Number(Gn))?Ln=bt:Gn>=pi?Ln=pi:Ln=Number(Gn),Ln}function Rn(yr){return se(yr)&&yr!==Vt&&se(_)&&_>0}var $n=_>Dt?be:!1;function dr(yr){(yr.keyCode===A.Z.UP||yr.keyCode===A.Z.DOWN)&&yr.preventDefault()}function jn(yr){var Gn=on(yr);switch(Gn!==bt&&Rt(Gn),yr.keyCode){case A.Z.ENTER:Xn(Gn);break;case A.Z.UP:Xn(Gn-1);break;case A.Z.DOWN:Xn(Gn+1);break;default:break}}function zn(yr){Xn(on(yr))}function er(yr){var Gn=K(yr,Dt,_),pi=Vt>Gn&&Gn!==0?Gn:Vt;Jt(yr),Rt(pi),xe==null||xe(Vt,yr),yn(pi),Ot==null||Ot(pi,yr)}function Xn(yr){if(Rn(yr)&&!En){var Gn=K(void 0,Dt,_),pi=yr;return yr>Gn?pi=Gn:yr<1&&(pi=1),pi!==bt&&Rt(pi),yn(pi),Ot==null||Ot(pi,Dt),pi}return Vt}var sr=Vt>1,Wn=Vt<K(void 0,Dt,_);function Qn(){sr&&Xn(Vt-1)}function or(){Wn&&Xn(Vt+1)}function cr(){Xn(jt)}function rr(){Xn(Qt)}function nr(yr,Gn){if(yr.key==="Enter"||yr.charCode===A.Z.ENTER||yr.keyCode===A.Z.ENTER){for(var pi=arguments.length,Ln=new Array(pi>2?pi-2:0),Fi=2;Fi<pi;Fi++)Ln[Fi-2]=arguments[Fi];Gn.apply(void 0,Ln)}}function ir(yr){nr(yr,Qn)}function Vn(yr){nr(yr,or)}function $r(yr){nr(yr,cr)}function Kt(yr){nr(yr,rr)}function ar(yr){var Gn=Dn(yr,"prev",an(Et,"prev page"));return l.isValidElement(Gn)?l.cloneElement(Gn,{disabled:!sr}):Gn}function hr(yr){var Gn=Dn(yr,"next",an(Be,"next page"));return l.isValidElement(Gn)?l.cloneElement(Gn,{disabled:!Wn}):Gn}function Yr(yr){(yr.type==="click"||yr.keyCode===A.Z.ENTER)&&Xn(bt)}var zr=null,li=(0,V.Z)(fe,{aria:!0,data:!0}),Qr=Hn&&l.createElement("li",{className:"".concat(ot,"-total-text")},Hn(_,[_===0?0:(Vt-1)*Dt+1,Vt*Dt>_?_:Vt*Dt])),Zn=null,Pn=K(void 0,Dt,_);if(He&&_<=Dt)return null;var sn=[],un={rootPrefixCls:ot,onClick:Xn,onKeyPress:nr,showTitle:$,itemRender:Dn,page:-1},Bn=Vt-1>0?Vt-1:0,Yn=Vt+1<Pn?Vt+1:Pn,lr=be&&be.goButton,Ir=(0,N.Z)(Fn)==="object"?Fn.readOnly:!Fn,On=lr,mr=null;Fn&&(lr&&(typeof lr=="boolean"?On=l.createElement("button",{type:"button",onClick:Yr,onKeyUp:Yr},zt.jump_to_confirm):On=l.createElement("span",{onClick:Yr,onKeyUp:Yr},lr),On=l.createElement("li",{title:$?"".concat(zt.jump_to).concat(Vt,"/").concat(Pn):null,className:"".concat(ot,"-simple-pager")},On)),mr=l.createElement("li",{title:$?"".concat(Vt,"/").concat(Pn):null,className:"".concat(ot,"-simple-pager")},Ir?bt:l.createElement("input",{type:"text","aria-label":zt.jump_to,value:bt,disabled:En,onKeyDown:dr,onKeyUp:jn,onChange:jn,onBlur:zn,size:3}),l.createElement("span",{className:"".concat(ot,"-slash")},"/"),Pn));var Dr=je?1:2;if(Pn<=3+Dr*2){Pn||sn.push(l.createElement($e,(0,ie.Z)({},un,{key:"noPager",page:1,className:"".concat(ot,"-item-disabled")})));for(var Jr=1;Jr<=Pn;Jr+=1)sn.push(l.createElement($e,(0,ie.Z)({},un,{key:Jr,page:Jr,active:Vt===Jr})))}else{var mi=je?zt.prev_3:zt.prev_5,Li=je?zt.next_3:zt.next_5,Gr=Dn(jt,"jump-prev",an(Cn,"prev page")),Ri=Dn(Qt,"jump-next",an(yt,"next page"));he&&(zr=Gr?l.createElement("li",{title:$?mi:null,key:"prev",onClick:cr,tabIndex:0,onKeyDown:$r,className:S()("".concat(ot,"-jump-prev"),(0,I.Z)({},"".concat(ot,"-jump-prev-custom-icon"),!!Cn))},Gr):null,Zn=Ri?l.createElement("li",{title:$?Li:null,key:"next",onClick:rr,tabIndex:0,onKeyDown:Kt,className:S()("".concat(ot,"-jump-next"),(0,I.Z)({},"".concat(ot,"-jump-next-custom-icon"),!!yt))},Ri):null);var qr=Math.max(1,Vt-Dr),bi=Math.min(Vt+Dr,Pn);Vt-1<=Dr&&(bi=1+Dr*2),Pn-Vt<=Dr&&(qr=Pn-Dr*2);for(var ri=qr;ri<=bi;ri+=1)sn.push(l.createElement($e,(0,ie.Z)({},un,{key:ri,page:ri,active:Vt===ri})));if(Vt-1>=Dr*2&&Vt!==3&&(sn[0]=l.cloneElement(sn[0],{className:S()("".concat(ot,"-item-after-jump-prev"),sn[0].props.className)}),sn.unshift(zr)),Pn-Vt>=Dr*2&&Vt!==Pn-2){var di=sn[sn.length-1];sn[sn.length-1]=l.cloneElement(di,{className:S()("".concat(ot,"-item-before-jump-next"),di.props.className)}),sn.push(Zn)}qr!==1&&sn.unshift(l.createElement($e,(0,ie.Z)({},un,{key:1,page:1}))),bi!==Pn&&sn.push(l.createElement($e,(0,ie.Z)({},un,{key:Pn,page:Pn})))}var ii=ar(Bn);if(ii){var Oi=!sr||!Pn;ii=l.createElement("li",{title:$?zt.prev_page:null,onClick:Qn,tabIndex:Oi?null:0,onKeyDown:ir,className:S()("".concat(ot,"-prev"),(0,I.Z)({},"".concat(ot,"-disabled"),Oi)),"aria-disabled":Oi},ii)}var Lr=hr(Yn);if(Lr){var Pi,Mi;Fn?(Pi=!Wn,Mi=sr?0:null):(Pi=!Wn||!Pn,Mi=Pi?null:0),Lr=l.createElement("li",{title:$?zt.next_page:null,onClick:or,tabIndex:Mi,onKeyDown:Vn,className:S()("".concat(ot,"-next"),(0,I.Z)({},"".concat(ot,"-disabled"),Pi)),"aria-disabled":Pi},Lr)}var ki=S()(ot,Ge,(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},"".concat(ot,"-start"),it==="start"),"".concat(ot,"-center"),it==="center"),"".concat(ot,"-end"),it==="end"),"".concat(ot,"-simple"),Fn),"".concat(ot,"-disabled"),En));return l.createElement("ul",(0,ie.Z)({className:ki,style:qt,ref:lt},li),Qr,ii,Fn?mr:sn,Lr,l.createElement(ce,{locale:zt,rootPrefixCls:ot,disabled:En,selectPrefixCls:ht,changeSize:er,pageSize:Dt,pageSizeOptions:Gt,quickGo:$n?Xn:null,goButton:On,showSizeChanger:qn,sizeChangerRender:vn}))},te=w,ne=d(61852),z=d(48755),x=d(31756),T=d(13783),G=d(9017),ve=d(82326),We=d(57700),st=d(36237),_e=d(53075),Ke=d(64910),Ve=d(39082),rt=d(63356),Ae=d(51636),Tt=d(16931);const tt=oe=>{const{componentCls:fe}=oe;return{[`${fe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${fe}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${fe}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${fe}-disabled`]:{cursor:"not-allowed",[`${fe}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:oe.colorBorder,backgroundColor:oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:oe.itemActiveBgDisabled},a:{color:oe.itemActiveColorDisabled}}},[`${fe}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${fe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${fe}-simple-pager`]:{color:oe.colorTextDisabled},[`${fe}-jump-prev, ${fe}-jump-next`]:{[`${fe}-item-link-icon`]:{opacity:0},[`${fe}-item-ellipsis`]:{opacity:1}}},[`&${fe}-simple`]:{[`${fe}-prev, ${fe}-next`]:{[`&${fe}-disabled ${fe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pt=oe=>{const{componentCls:fe}=oe;return{[`&${fe}-mini ${fe}-total-text, &${fe}-mini ${fe}-simple-pager`]:{height:oe.itemSizeSM,lineHeight:(0,st.unit)(oe.itemSizeSM)},[`&${fe}-mini ${fe}-item`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,st.unit)(oe.calc(oe.itemSizeSM).sub(2).equal())},[`&${fe}-mini ${fe}-prev, &${fe}-mini ${fe}-next`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,st.unit)(oe.itemSizeSM)},[`&${fe}-mini:not(${fe}-disabled)`]:{[`${fe}-prev, ${fe}-next`]:{[`&:hover ${fe}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${fe}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${fe}-disabled:hover ${fe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${fe}-mini ${fe}-prev ${fe}-item-link,
|
|
|
&${fe}-mini ${fe}-next ${fe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:oe.itemSizeSM,lineHeight:(0,st.unit)(oe.itemSizeSM)}},[`&${fe}-mini ${fe}-jump-prev, &${fe}-mini ${fe}-jump-next`]:{height:oe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,st.unit)(oe.itemSizeSM)},[`&${fe}-mini ${fe}-options`]:{marginInlineStart:oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:oe.itemSizeSM,lineHeight:(0,st.unit)(oe.itemSizeSM),input:Object.assign(Object.assign({},(0,_e.x0)(oe)),{width:oe.paginationMiniQuickJumperInputWidth,height:oe.controlHeightSM})}}}},Xe=oe=>{const{componentCls:fe}=oe;return{[`
|
|
|
&${fe}-simple ${fe}-prev,
|
|
|
&${fe}-simple ${fe}-next
|
|
|
`]:{height:oe.itemSizeSM,lineHeight:(0,st.unit)(oe.itemSizeSM),verticalAlign:"top",[`${fe}-item-link`]:{height:oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive},"&::after":{height:oe.itemSizeSM,lineHeight:(0,st.unit)(oe.itemSizeSM)}}},[`&${fe}-simple ${fe}-simple-pager`]:{display:"inline-block",height:oe.itemSizeSM,marginInlineEnd:oe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,st.unit)(oe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:oe.itemInputBg,border:`${(0,st.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,borderRadius:oe.borderRadius,outline:"none",transition:`border-color ${oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:oe.colorPrimary},"&:focus":{borderColor:oe.colorPrimaryHover,boxShadow:`${(0,st.unit)(oe.inputOutlineOffset)} 0 ${(0,st.unit)(oe.controlOutlineWidth)} ${oe.controlOutline}`},"&[disabled]":{color:oe.colorTextDisabled,backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,cursor:"not-allowed"}}}}},Qe=oe=>{const{componentCls:fe}=oe;return{[`${fe}-jump-prev, ${fe}-jump-next`]:{outline:0,[`${fe}-item-container`]:{position:"relative",[`${fe}-item-link-icon`]:{color:oe.colorPrimary,fontSize:oe.fontSizeSM,opacity:0,transition:`all ${oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${fe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:oe.colorTextDisabled,letterSpacing:oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${oe.motionDurationMid}`}},"&:hover":{[`${fe}-item-link-icon`]:{opacity:1},[`${fe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${fe}-prev,
|
|
|
${fe}-jump-prev,
|
|
|
${fe}-jump-next
|
|
|
`]:{marginInlineEnd:oe.marginXS},[`
|
|
|
${fe}-prev,
|
|
|
${fe}-next,
|
|
|
${fe}-jump-prev,
|
|
|
${fe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,color:oe.colorText,fontFamily:oe.fontFamily,lineHeight:(0,st.unit)(oe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:oe.borderRadius,cursor:"pointer",transition:`all ${oe.motionDurationMid}`},[`${fe}-prev, ${fe}-next`]:{outline:0,button:{color:oe.colorText,cursor:"pointer",userSelect:"none"},[`${fe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,st.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:"none",transition:`all ${oe.motionDurationMid}`},[`&:hover ${fe}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${fe}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${fe}-disabled:hover`]:{[`${fe}-item-link`]:{backgroundColor:"transparent"}}},[`${fe}-slash`]:{marginInlineEnd:oe.paginationSlashMarginInlineEnd,marginInlineStart:oe.paginationSlashMarginInlineStart},[`${fe}-options`]:{display:"inline-block",marginInlineStart:oe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:oe.controlHeight,marginInlineStart:oe.marginXS,lineHeight:(0,st.unit)(oe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,_e.ik)(oe)),(0,Ve.$U)(oe,{borderColor:oe.colorBorder,hoverBorderColor:oe.colorPrimaryHover,activeBorderColor:oe.colorPrimary,activeShadow:oe.activeShadow})),{"&[disabled]":Object.assign({},(0,Ve.Xy)(oe)),width:oe.calc(oe.controlHeightLG).mul(1.25).equal(),height:oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:oe.marginXS,marginInlineEnd:oe.marginXS})}}}},Ne=oe=>{const{componentCls:fe}=oe;return{[`${fe}-item`]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,marginInlineEnd:oe.marginXS,fontFamily:oe.fontFamily,lineHeight:(0,st.unit)(oe.calc(oe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:oe.itemBg,border:`${(0,st.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,st.unit)(oe.paginationItemPaddingInline)}`,color:oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${fe}-item-active)`]:{"&:hover":{transition:`all ${oe.motionDurationMid}`,backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive}},"&-active":{fontWeight:oe.fontWeightStrong,backgroundColor:oe.itemActiveBg,borderColor:oe.colorPrimary,a:{color:oe.colorPrimary},"&:hover":{borderColor:oe.colorPrimaryHover},"&:hover a":{color:oe.colorPrimaryHover}}}}},Oe=oe=>{const{componentCls:fe}=oe;return{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(oe)),{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:'""'},[`${fe}-total-text`]:{display:"inline-block",height:oe.itemSize,marginInlineEnd:oe.marginXS,lineHeight:(0,st.unit)(oe.calc(oe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ne(oe)),Qe(oe)),Xe(oe)),Pt(oe)),tt(oe)),{[`@media only screen and (max-width: ${oe.screenLG}px)`]:{[`${fe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${oe.screenSM}px)`]:{[`${fe}-options`]:{display:"none"}}}),[`&${oe.componentCls}-rtl`]:{direction:"rtl"}}},re=oe=>{const{componentCls:fe}=oe;return{[`${fe}:not(${fe}-disabled)`]:{[`${fe}-item`]:Object.assign({},(0,rt.Qy)(oe)),[`${fe}-jump-prev, ${fe}-jump-next`]:{"&:focus-visible":Object.assign({[`${fe}-item-link-icon`]:{opacity:1},[`${fe}-item-ellipsis`]:{opacity:0}},(0,rt.oN)(oe))},[`${fe}-prev, ${fe}-next`]:{[`&:focus-visible ${fe}-item-link`]:Object.assign({},(0,rt.oN)(oe))}}}},Fe=oe=>Object.assign({itemBg:oe.colorBgContainer,itemSize:oe.controlHeight,itemSizeSM:oe.controlHeightSM,itemActiveBg:oe.colorBgContainer,itemLinkBg:oe.colorBgContainer,itemActiveColorDisabled:oe.colorTextDisabled,itemActiveBgDisabled:oe.controlItemBgActiveDisabled,itemInputBg:oe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ke.T)(oe)),Re=oe=>(0,Ae.mergeToken)(oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:oe.calc(oe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:oe.calc(oe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:oe.calc(oe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:oe.calc(oe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:oe.marginSM,paginationSlashMarginInlineEnd:oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ke.e)(oe));var Z=(0,Tt.I$)("Pagination",oe=>{const fe=Re(oe);return[Oe(fe),re(fe)]},Fe);const O=oe=>{const{componentCls:fe}=oe;return{[`${fe}${fe}-bordered${fe}-disabled:not(${fe}-mini)`]:{"&, &:hover":{[`${fe}-item-link`]:{borderColor:oe.colorBorder}},"&:focus-visible":{[`${fe}-item-link`]:{borderColor:oe.colorBorder}},[`${fe}-item, ${fe}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,[`&:hover:not(${fe}-item-active)`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,a:{color:oe.colorTextDisabled}},[`&${fe}-item-active`]:{backgroundColor:oe.itemActiveBgDisabled}},[`${fe}-prev, ${fe}-next`]:{"&:hover button":{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,color:oe.colorTextDisabled},[`${fe}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder}}},[`${fe}${fe}-bordered:not(${fe}-mini)`]:{[`${fe}-prev, ${fe}-next`]:{"&:hover button":{borderColor:oe.colorPrimaryHover,backgroundColor:oe.itemBg},[`${fe}-item-link`]:{backgroundColor:oe.itemLinkBg,borderColor:oe.colorBorder},[`&:hover ${fe}-item-link`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,color:oe.colorPrimary},[`&${fe}-disabled`]:{[`${fe}-item-link`]:{borderColor:oe.colorBorder,color:oe.colorTextDisabled}}},[`${fe}-item`]:{backgroundColor:oe.itemBg,border:`${(0,st.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,[`&:hover:not(${fe}-item-active)`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,a:{color:oe.colorPrimary}},"&-active":{borderColor:oe.colorPrimary}}}}};var me=(0,Tt.bk)(["Pagination","bordered"],oe=>{const fe=Re(oe);return[O(fe)]},Fe);function Ee(oe){return(0,l.useMemo)(()=>typeof oe=="boolean"?[oe,{}]:oe&&typeof oe=="object"?[!0,oe]:[void 0,void 0],[oe])}var ge=function(oe,fe){var dt={};for(var ot in oe)Object.prototype.hasOwnProperty.call(oe,ot)&&fe.indexOf(ot)<0&&(dt[ot]=oe[ot]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ot=Object.getOwnPropertySymbols(oe);ft<ot.length;ft++)fe.indexOf(ot[ft])<0&&Object.prototype.propertyIsEnumerable.call(oe,ot[ft])&&(dt[ot[ft]]=oe[ot[ft]]);return dt},ke=oe=>{const{align:fe,prefixCls:dt,selectPrefixCls:ot,className:ft,rootClassName:ht,style:Ge,size:Ct,locale:gt,responsive:Ce,showSizeChanger:Je,selectComponentClass:_,pageSizeOptions:D}=oe,Ze=ge(oe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ee}=(0,T.Z)(Ce),[,ye]=(0,We.ZP)(),{getPrefixCls:Ot,direction:He,showSizeChanger:it,className:ct,style:he}=(0,z.dj)("pagination"),be=Ot("pagination",dt),[je,Ue,$]=Z(be),ut=(0,x.Z)(Ct),xe=ut==="small"||!!(ee&&!ut&&Ce),[At]=(0,G.Z)("Pagination",ne.Z),zt=Object.assign(Object.assign({},At),gt),[qt,cn]=Ee(Je),[gn,En]=Ee(it),Fn=qt!=null?qt:gn,Hn=cn!=null?cn:En,An=_||ve.default,qn=l.useMemo(()=>D?D.map(yt=>Number(yt)):void 0,[D]),vn=yt=>{var Et;const{disabled:Be,size:lt,onSizeChange:vt,"aria-label":xt,className:Dt,options:Jt}=yt,{className:pn,onChange:_n}=Hn||{},Vt=(Et=Jt.find(yn=>String(yn.value)===String(lt)))===null||Et===void 0?void 0:Et.value;return l.createElement(An,Object.assign({disabled:Be,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:yn=>yn.parentNode,"aria-label":xt,options:Jt},Hn,{value:Vt,onChange:(yn,Nn)=>{vt==null||vt(yn),_n==null||_n(yn,Nn)},size:xe?"small":"middle",className:S()(Dt,pn)}))},Gt=l.useMemo(()=>{const yt=l.createElement("span",{className:`${be}-item-ellipsis`},"\u2022\u2022\u2022"),Et=l.createElement("button",{className:`${be}-item-link`,type:"button",tabIndex:-1},He==="rtl"?l.createElement(P.Z,null):l.createElement(C.Z,null)),Be=l.createElement("button",{className:`${be}-item-link`,type:"button",tabIndex:-1},He==="rtl"?l.createElement(C.Z,null):l.createElement(P.Z,null)),lt=l.createElement("a",{className:`${be}-item-link`},l.createElement("div",{className:`${be}-item-container`},He==="rtl"?l.createElement(o.Z,{className:`${be}-item-link-icon`}):l.createElement(Q,{className:`${be}-item-link-icon`}),yt)),vt=l.createElement("a",{className:`${be}-item-link`},l.createElement("div",{className:`${be}-item-container`},He==="rtl"?l.createElement(Q,{className:`${be}-item-link-icon`}):l.createElement(o.Z,{className:`${be}-item-link-icon`}),yt));return{prevIcon:Et,nextIcon:Be,jumpPrevIcon:lt,jumpNextIcon:vt}},[He,be]),Xt=Ot("select",ot),Dn=S()({[`${be}-${fe}`]:!!fe,[`${be}-mini`]:xe,[`${be}-rtl`]:He==="rtl",[`${be}-bordered`]:ye.wireframe},ct,ft,ht,Ue,$),Cn=Object.assign(Object.assign({},he),Ge);return je(l.createElement(l.Fragment,null,ye.wireframe&&l.createElement(me,{prefixCls:be}),l.createElement(te,Object.assign({},Gt,Ze,{style:Cn,prefixCls:be,selectPrefixCls:Xt,className:Dn,locale:zt,pageSizeOptions:qn,showSizeChanger:Fn,sizeChangerRender:vn}))))},Ye=ke},89787:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return gt}});var l=d(59301),ie=d(17835),U=d(29679),le=d(40001),F=d(19248),g=d(99267),q=d(92310),Q=d.n(q),o=d(2738),C=d(48755),P=d(60499),y=d(85899),S=d(42244),I={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},N=function(){var Je=(0,l.useRef)([]),_=(0,l.useRef)(null);return(0,l.useEffect)(function(){var D=Date.now(),Ze=!1;Je.current.forEach(function(ee){if(ee){Ze=!0;var ye=ee.style;ye.transitionDuration=".3s, .3s, .3s, .06s",_.current&&D-_.current<100&&(ye.transitionDuration="0s, 0s")}}),Ze&&(_.current=Date.now())}),Je.current},W=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],H=function(Je){var _=(0,y.Z)((0,y.Z)({},I),Je),D=_.className,Ze=_.percent,ee=_.prefixCls,ye=_.strokeColor,Ot=_.strokeLinecap,He=_.strokeWidth,it=_.style,ct=_.trailColor,he=_.trailWidth,be=_.transition,je=(0,S.Z)(_,W);delete je.gapPosition;var Ue=Array.isArray(Ze)?Ze:[Ze],$=Array.isArray(ye)?ye:[ye],ut=N(),xe=He/2,At=100-He/2,zt="M ".concat(Ot==="round"?xe:0,",").concat(xe,`
|
|
|
L `).concat(Ot==="round"?At:100,",").concat(xe),qt="0 0 100 ".concat(He),cn=0;return l.createElement("svg",(0,P.Z)({className:Q()("".concat(ee,"-line"),D),viewBox:qt,preserveAspectRatio:"none",style:it},je),l.createElement("path",{className:"".concat(ee,"-line-trail"),d:zt,strokeLinecap:Ot,stroke:ct,strokeWidth:he||He,fillOpacity:"0"}),Ue.map(function(gn,En){var Fn=1;switch(Ot){case"round":Fn=1-He/100;break;case"square":Fn=1-He/2/100;break;default:Fn=1;break}var Hn={strokeDasharray:"".concat(gn*Fn,"px, 100px"),strokeDashoffset:"-".concat(cn,"px"),transition:be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},An=$[En]||$[$.length-1];return cn+=gn,l.createElement("path",{key:En,className:"".concat(ee,"-line-path"),d:zt,strokeLinecap:Ot,stroke:An,strokeWidth:He,fillOpacity:"0",ref:function(vn){ut[En]=vn},style:Hn})}))},j=H,A=d(43749),V=d(72190),R=d(47273),L=0,ae=(0,R.Z)();function pe(){var Ce;return ae?(Ce=L,L+=1):Ce="TEST_OR_SSR",Ce}var ce=function(Ce){var Je=l.useState(),_=(0,V.Z)(Je,2),D=_[0],Ze=_[1];return l.useEffect(function(){Ze("rc_progress_".concat(pe()))},[]),Ce||D},Le=function(Je){var _=Je.bg,D=Je.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:_}},D)};function $e(Ce,Je){return Object.keys(Ce).map(function(_){var D=parseFloat(_),Ze="".concat(Math.floor(D*Je),"%");return"".concat(Ce[_]," ").concat(Ze)})}var Te=l.forwardRef(function(Ce,Je){var _=Ce.prefixCls,D=Ce.color,Ze=Ce.gradientId,ee=Ce.radius,ye=Ce.style,Ot=Ce.ptg,He=Ce.strokeLinecap,it=Ce.strokeWidth,ct=Ce.size,he=Ce.gapDegree,be=D&&(0,A.Z)(D)==="object",je=be?"#FFF":void 0,Ue=ct/2,$=l.createElement("circle",{className:"".concat(_,"-circle-path"),r:ee,cx:Ue,cy:Ue,stroke:je,strokeLinecap:He,strokeWidth:it,opacity:Ot===0?0:1,style:ye,ref:Je});if(!be)return $;var ut="".concat(Ze,"-conic"),xe=he?"".concat(180+he/2,"deg"):"0deg",At=$e(D,(360-he)/360),zt=$e(D,1),qt="conic-gradient(from ".concat(xe,", ").concat(At.join(", "),")"),cn="linear-gradient(to ".concat(he?"bottom":"top",", ").concat(zt.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:ut},$),l.createElement("foreignObject",{x:0,y:0,width:ct,height:ct,mask:"url(#".concat(ut,")")},l.createElement(Le,{bg:cn},l.createElement(Le,{bg:qt}))))}),Pe=Te,se=100,K=function(Je,_,D,Ze,ee,ye,Ot,He,it,ct){var he=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,be=D/100*360*((360-ye)/360),je=ye===0?0:{bottom:0,top:180,left:90,right:-90}[Ot],Ue=(100-Ze)/100*_;it==="round"&&Ze!==100&&(Ue+=ct/2,Ue>=_&&(Ue=_-.01));var $=se/2;return{stroke:typeof He=="string"?He:void 0,strokeDasharray:"".concat(_,"px ").concat(Je),strokeDashoffset:Ue+he,transform:"rotate(".concat(ee+be+je,"deg)"),transformOrigin:"".concat($,"px ").concat($,"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}},w=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function te(Ce){var Je=Ce!=null?Ce:[];return Array.isArray(Je)?Je:[Je]}var ne=function(Je){var _=(0,y.Z)((0,y.Z)({},I),Je),D=_.id,Ze=_.prefixCls,ee=_.steps,ye=_.strokeWidth,Ot=_.trailWidth,He=_.gapDegree,it=He===void 0?0:He,ct=_.gapPosition,he=_.trailColor,be=_.strokeLinecap,je=_.style,Ue=_.className,$=_.strokeColor,ut=_.percent,xe=(0,S.Z)(_,w),At=se/2,zt=ce(D),qt="".concat(zt,"-gradient"),cn=At-ye/2,gn=Math.PI*2*cn,En=it>0?90+it/2:-90,Fn=gn*((360-it)/360),Hn=(0,A.Z)(ee)==="object"?ee:{count:ee,gap:2},An=Hn.count,qn=Hn.gap,vn=te(ut),Gt=te($),Xt=Gt.find(function(vt){return vt&&(0,A.Z)(vt)==="object"}),Dn=Xt&&(0,A.Z)(Xt)==="object",Cn=Dn?"butt":be,yt=K(gn,Fn,0,100,En,it,ct,he,Cn,ye),Et=N(),Be=function(){var xt=0;return vn.map(function(Dt,Jt){var pn=Gt[Jt]||Gt[Gt.length-1],_n=K(gn,Fn,xt,Dt,En,it,ct,pn,Cn,ye);return xt+=Dt,l.createElement(Pe,{key:Jt,color:pn,ptg:Dt,radius:cn,prefixCls:Ze,gradientId:qt,style:_n,strokeLinecap:Cn,strokeWidth:ye,gapDegree:it,ref:function(yn){Et[Jt]=yn},size:se})}).reverse()},lt=function(){var xt=Math.round(An*(vn[0]/100)),Dt=100/An,Jt=0;return new Array(An).fill(null).map(function(pn,_n){var Vt=_n<=xt-1?Gt[0]:he,yn=Vt&&(0,A.Z)(Vt)==="object"?"url(#".concat(qt,")"):void 0,Nn=K(gn,Fn,Jt,Dt,En,it,ct,Vt,"butt",ye,qn);return Jt+=(Fn-Nn.strokeDashoffset+qn)*100/Fn,l.createElement("circle",{key:_n,className:"".concat(Ze,"-circle-path"),r:cn,cx:At,cy:At,stroke:yn,strokeWidth:ye,opacity:1,style:Nn,ref:function(bt){Et[_n]=bt}})})};return l.createElement("svg",(0,P.Z)({className:Q()("".concat(Ze,"-circle"),Ue),viewBox:"0 0 ".concat(se," ").concat(se),style:je,id:D,role:"presentation"},xe),!An&&l.createElement("circle",{className:"".concat(Ze,"-circle-trail"),r:cn,cx:At,cy:At,stroke:he,strokeLinecap:Cn,strokeWidth:Ot||ye,style:yt}),An?lt():Be())},z=ne,x={Line:j,Circle:z},T=d(25399),G=d(68361);function ve(Ce){return!Ce||Ce<0?0:Ce>100?100:Ce}function We(Ce){let{success:Je,successPercent:_}=Ce,D=_;return Je&&"progress"in Je&&(D=Je.progress),Je&&"percent"in Je&&(D=Je.percent),D}const st=Ce=>{let{percent:Je,success:_,successPercent:D}=Ce;const Ze=ve(We({success:_,successPercent:D}));return[Ze,ve(ve(Je)-Ze)]},_e=Ce=>{let{success:Je={},strokeColor:_}=Ce;const{strokeColor:D}=Je;return[D||G.presetPrimaryColors.green,_||null]},Ke=(Ce,Je,_)=>{var D,Ze,ee,ye;let Ot=-1,He=-1;if(Je==="step"){const it=_.steps,ct=_.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?(Ot=Ce==="small"?2:14,He=ct!=null?ct:8):typeof Ce=="number"?[Ot,He]=[Ce,Ce]:[Ot=14,He=8]=Array.isArray(Ce)?Ce:[Ce.width,Ce.height],Ot*=it}else if(Je==="line"){const it=_==null?void 0:_.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?He=it||(Ce==="small"?6:8):typeof Ce=="number"?[Ot,He]=[Ce,Ce]:[Ot=-1,He=8]=Array.isArray(Ce)?Ce:[Ce.width,Ce.height]}else(Je==="circle"||Je==="dashboard")&&(typeof Ce=="string"||typeof Ce=="undefined"?[Ot,He]=Ce==="small"?[60,60]:[120,120]:typeof Ce=="number"?[Ot,He]=[Ce,Ce]:Array.isArray(Ce)&&(Ot=(Ze=(D=Ce[0])!==null&&D!==void 0?D:Ce[1])!==null&&Ze!==void 0?Ze:120,He=(ye=(ee=Ce[0])!==null&&ee!==void 0?ee:Ce[1])!==null&&ye!==void 0?ye:120));return[Ot,He]},Ve=3,rt=Ce=>Ve/Ce*100;var Tt=Ce=>{const{prefixCls:Je,trailColor:_=null,strokeLinecap:D="round",gapPosition:Ze,gapDegree:ee,width:ye=120,type:Ot,children:He,success:it,size:ct=ye,steps:he}=Ce,[be,je]=Ke(ct,"circle");let{strokeWidth:Ue}=Ce;Ue===void 0&&(Ue=Math.max(rt(be),6));const $={width:be,height:je,fontSize:be*.15+6},ut=l.useMemo(()=>{if(ee||ee===0)return ee;if(Ot==="dashboard")return 75},[ee,Ot]),xe=st(Ce),At=Ze||Ot==="dashboard"&&"bottom"||void 0,zt=Object.prototype.toString.call(Ce.strokeColor)==="[object Object]",qt=_e({success:it,strokeColor:Ce.strokeColor}),cn=Q()(`${Je}-inner`,{[`${Je}-circle-gradient`]:zt}),gn=l.createElement(z,{steps:he,percent:he?xe[1]:xe,strokeWidth:Ue,trailWidth:Ue,strokeColor:he?qt[1]:qt,strokeLinecap:D,trailColor:_,prefixCls:Je,gapDegree:ut,gapPosition:At}),En=be<=20,Fn=l.createElement("div",{className:cn,style:$},gn,!En&&He);return En?l.createElement(T.Z,{title:He},Fn):Fn},tt=d(36237),Pt=d(63356),Xe=d(16931),Qe=d(51636);const Ne="--progress-line-stroke-color",Oe="--progress-percent",re=Ce=>{const Je=Ce?"100%":"-100%";return new tt.Keyframes(`antProgress${Ce?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Je}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Je}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Fe=Ce=>{const{componentCls:Je,iconCls:_}=Ce;return{[Je]:Object.assign(Object.assign({},(0,Pt.Wf)(Ce)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ce.fontSize},[`${Je}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Je}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ce.remainingColor,borderRadius:Ce.lineBorderRadius},[`${Je}-inner:not(${Je}-circle-gradient)`]:{[`${Je}-circle-path`]:{stroke:Ce.defaultColor}},[`${Je}-success-bg, ${Je}-bg`]:{position:"relative",background:Ce.defaultColor,borderRadius:Ce.lineBorderRadius,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOutCirc}`},[`${Je}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Je}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ce.marginXXS}},[`${Je}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ne})`]},height:"100%",width:`calc(1 / var(${Oe}) * 100%)`,display:"block"},[`&${Je}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Je}-text-inner`]:{color:Ce.colorWhite,[`&${Je}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Je}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ce.colorSuccess},[`${Je}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,color:Ce.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_]:{fontSize:Ce.fontSize},[`&${Je}-text-outer`]:{width:"max-content"},[`&${Je}-text-outer${Je}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ce.marginXS}},[`${Je}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,tt.unit)(Ce.paddingXXS)}`,[`&${Je}-text-start`]:{justifyContent:"start"},[`&${Je}-text-end`]:{justifyContent:"end"}},[`&${Je}-status-active`]:{[`${Je}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ce.colorBgContainer,borderRadius:Ce.lineBorderRadius,opacity:0,animationName:re(),animationDuration:Ce.progressActiveMotionDuration,animationTimingFunction:Ce.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Je}-rtl${Je}-status-active`]:{[`${Je}-bg::before`]:{animationName:re(!0)}},[`&${Je}-status-exception`]:{[`${Je}-bg`]:{backgroundColor:Ce.colorError},[`${Je}-text`]:{color:Ce.colorError}},[`&${Je}-status-exception ${Je}-inner:not(${Je}-circle-gradient)`]:{[`${Je}-circle-path`]:{stroke:Ce.colorError}},[`&${Je}-status-success`]:{[`${Je}-bg`]:{backgroundColor:Ce.colorSuccess},[`${Je}-text`]:{color:Ce.colorSuccess}},[`&${Je}-status-success ${Je}-inner:not(${Je}-circle-gradient)`]:{[`${Je}-circle-path`]:{stroke:Ce.colorSuccess}}})}},Re=Ce=>{const{componentCls:Je,iconCls:_}=Ce;return{[Je]:{[`${Je}-circle-trail`]:{stroke:Ce.remainingColor},[`&${Je}-circle ${Je}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Je}-circle ${Je}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ce.circleTextColor,fontSize:Ce.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[_]:{fontSize:Ce.circleIconFontSize}},[`${Je}-circle&-status-exception`]:{[`${Je}-text`]:{color:Ce.colorError}},[`${Je}-circle&-status-success`]:{[`${Je}-text`]:{color:Ce.colorSuccess}}},[`${Je}-inline-circle`]:{lineHeight:1,[`${Je}-inner`]:{verticalAlign:"bottom"}}}},Z=Ce=>{const{componentCls:Je}=Ce;return{[Je]:{[`${Je}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ce.progressStepMinWidth,marginInlineEnd:Ce.progressStepMarginInlineEnd,backgroundColor:Ce.remainingColor,transition:`all ${Ce.motionDurationSlow}`,"&-active":{backgroundColor:Ce.defaultColor}}}}}},O=Ce=>{const{componentCls:Je,iconCls:_}=Ce;return{[Je]:{[`${Je}-small&-line, ${Je}-small&-line ${Je}-text ${_}`]:{fontSize:Ce.fontSizeSM}}}},me=Ce=>({circleTextColor:Ce.colorText,defaultColor:Ce.colorInfo,remainingColor:Ce.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ce.fontSize/Ce.fontSizeSM}em`});var Ee=(0,Xe.I$)("Progress",Ce=>{const Je=Ce.calc(Ce.marginXXS).div(2).equal(),_=(0,Qe.mergeToken)(Ce,{progressStepMarginInlineEnd:Je,progressStepMinWidth:Je,progressActiveMotionDuration:"2.4s"});return[Fe(_),Re(_),Z(_),O(_)]},me),ge=function(Ce,Je){var _={};for(var D in Ce)Object.prototype.hasOwnProperty.call(Ce,D)&&Je.indexOf(D)<0&&(_[D]=Ce[D]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,D=Object.getOwnPropertySymbols(Ce);Ze<D.length;Ze++)Je.indexOf(D[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ce,D[Ze])&&(_[D[Ze]]=Ce[D[Ze]]);return _};const we=Ce=>{let Je=[];return Object.keys(Ce).forEach(_=>{const D=parseFloat(_.replace(/%/g,""));Number.isNaN(D)||Je.push({key:D,value:Ce[_]})}),Je=Je.sort((_,D)=>_.key-D.key),Je.map(_=>{let{key:D,value:Ze}=_;return`${Ze} ${D}%`}).join(", ")},ke=(Ce,Je)=>{const{from:_=G.presetPrimaryColors.blue,to:D=G.presetPrimaryColors.blue,direction:Ze=Je==="rtl"?"to left":"to right"}=Ce,ee=ge(Ce,["from","to","direction"]);if(Object.keys(ee).length!==0){const Ot=we(ee),He=`linear-gradient(${Ze}, ${Ot})`;return{background:He,[Ne]:He}}const ye=`linear-gradient(${Ze}, ${_}, ${D})`;return{background:ye,[Ne]:ye}};var oe=Ce=>{const{prefixCls:Je,direction:_,percent:D,size:Ze,strokeWidth:ee,strokeColor:ye,strokeLinecap:Ot="round",children:He,trailColor:it=null,percentPosition:ct,success:he}=Ce,{align:be,type:je}=ct,Ue=ye&&typeof ye!="string"?ke(ye,_):{[Ne]:ye,background:ye},$=Ot==="square"||Ot==="butt"?0:void 0,ut=Ze!=null?Ze:[-1,ee||(Ze==="small"?6:8)],[xe,At]=Ke(ut,"line",{strokeWidth:ee}),zt={backgroundColor:it||void 0,borderRadius:$},qt=Object.assign(Object.assign({width:`${ve(D)}%`,height:At,borderRadius:$},Ue),{[Oe]:ve(D)/100}),cn=We(Ce),gn={width:`${ve(cn)}%`,height:At,borderRadius:$,backgroundColor:he==null?void 0:he.strokeColor},En={width:xe<0?"100%":xe},Fn=l.createElement("div",{className:`${Je}-inner`,style:zt},l.createElement("div",{className:Q()(`${Je}-bg`,`${Je}-bg-${je}`),style:qt},je==="inner"&&He),cn!==void 0&&l.createElement("div",{className:`${Je}-success-bg`,style:gn})),Hn=je==="outer"&&be==="start",An=je==="outer"&&be==="end";return je==="outer"&&be==="center"?l.createElement("div",{className:`${Je}-layout-bottom`},Fn,He):l.createElement("div",{className:`${Je}-outer`,style:En},Hn&&He,Fn,An&&He)},dt=Ce=>{const{size:Je,steps:_,rounding:D=Math.round,percent:Ze=0,strokeWidth:ee=8,strokeColor:ye,trailColor:Ot=null,prefixCls:He,children:it}=Ce,ct=D(_*(Ze/100)),he=Je==="small"?2:14,be=Je!=null?Je:[he,ee],[je,Ue]=Ke(be,"step",{steps:_,strokeWidth:ee}),$=je/_,ut=Array.from({length:_});for(let xe=0;xe<_;xe++){const At=Array.isArray(ye)?ye[xe]:ye;ut[xe]=l.createElement("div",{key:xe,className:Q()(`${He}-steps-item`,{[`${He}-steps-item-active`]:xe<=ct-1}),style:{backgroundColor:xe<=ct-1?At:Ot,width:$,height:Ue}})}return l.createElement("div",{className:`${He}-steps-outer`},ut,it)},ot=function(Ce,Je){var _={};for(var D in Ce)Object.prototype.hasOwnProperty.call(Ce,D)&&Je.indexOf(D)<0&&(_[D]=Ce[D]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,D=Object.getOwnPropertySymbols(Ce);Ze<D.length;Ze++)Je.indexOf(D[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ce,D[Ze])&&(_[D[Ze]]=Ce[D[Ze]]);return _};const ft=null,ht=["normal","exception","active","success"];var Ct=l.forwardRef((Ce,Je)=>{const{prefixCls:_,className:D,rootClassName:Ze,steps:ee,strokeColor:ye,percent:Ot=0,size:He="default",showInfo:it=!0,type:ct="line",status:he,format:be,style:je,percentPosition:Ue={}}=Ce,$=ot(Ce,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:ut="end",type:xe="outer"}=Ue,At=Array.isArray(ye)?ye[0]:ye,zt=typeof ye=="string"||Array.isArray(ye)?ye:void 0,qt=l.useMemo(()=>{if(At){const Be=typeof At=="string"?At:Object.values(At)[0];return new ie.FastColor(Be).isLight()}return!1},[ye]),cn=l.useMemo(()=>{var Be,lt;const vt=We(Ce);return parseInt(vt!==void 0?(Be=vt!=null?vt:0)===null||Be===void 0?void 0:Be.toString():(lt=Ot!=null?Ot:0)===null||lt===void 0?void 0:lt.toString(),10)},[Ot,Ce.success,Ce.successPercent]),gn=l.useMemo(()=>!ht.includes(he)&&cn>=100?"success":he||"normal",[he,cn]),{getPrefixCls:En,direction:Fn,progress:Hn}=l.useContext(C.E_),An=En("progress",_),[qn,vn,Gt]=Ee(An),Xt=ct==="line",Dn=Xt&&!ee,Cn=l.useMemo(()=>{if(!it)return null;const Be=We(Ce);let lt;const vt=be||(Dt=>`${Dt}%`),xt=Xt&&qt&&xe==="inner";return xe==="inner"||be||gn!=="exception"&&gn!=="success"?lt=vt(ve(Ot),ve(Be)):gn==="exception"?lt=Xt?l.createElement(F.Z,null):l.createElement(g.Z,null):gn==="success"&&(lt=Xt?l.createElement(U.Z,null):l.createElement(le.Z,null)),l.createElement("span",{className:Q()(`${An}-text`,{[`${An}-text-bright`]:xt,[`${An}-text-${ut}`]:Dn,[`${An}-text-${xe}`]:Dn}),title:typeof lt=="string"?lt:void 0},lt)},[it,Ot,cn,gn,ct,An,be]);let yt;ct==="line"?yt=ee?l.createElement(dt,Object.assign({},Ce,{strokeColor:zt,prefixCls:An,steps:typeof ee=="object"?ee.count:ee}),Cn):l.createElement(oe,Object.assign({},Ce,{strokeColor:At,prefixCls:An,direction:Fn,percentPosition:{align:ut,type:xe}}),Cn):(ct==="circle"||ct==="dashboard")&&(yt=l.createElement(Tt,Object.assign({},Ce,{strokeColor:At,prefixCls:An,progressStatus:gn}),Cn));const Et=Q()(An,`${An}-status-${gn}`,{[`${An}-${ct==="dashboard"&&"circle"||ct}`]:ct!=="line",[`${An}-inline-circle`]:ct==="circle"&&Ke(He,"circle")[0]<=20,[`${An}-line`]:Dn,[`${An}-line-align-${ut}`]:Dn,[`${An}-line-position-${xe}`]:Dn,[`${An}-steps`]:ee,[`${An}-show-info`]:it,[`${An}-${He}`]:typeof He=="string",[`${An}-rtl`]:Fn==="rtl"},Hn==null?void 0:Hn.className,D,Ze,vn,Gt);return qn(l.createElement("div",Object.assign({ref:Je,style:Object.assign(Object.assign({},Hn==null?void 0:Hn.style),je),className:Et,role:"progressbar","aria-valuenow":cn,"aria-valuemin":0,"aria-valuemax":100},(0,o.Z)($,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),yt))}),gt=Ct},47889:function(ln,qe,d){"use strict";d.d(qe,{ZP:function(){return st}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(18929),F=d(26112),g=d(48755),q=d(83397),Q=d(31756);const o=l.createContext(null),C=o.Provider;var P=o;const y=l.createContext(null),S=y.Provider;var I=d(16632),N=d(8654),W=d(12919),H=d(63872),j=d(74632),A=d(2171),V=d(56553),R=d(36237),L=d(63356),ae=d(16931),pe=d(51636);const ce=_e=>{const{componentCls:Ke,antCls:Ve}=_e,rt=`${Ke}-group`;return{[rt]:Object.assign(Object.assign({},(0,L.Wf)(_e)),{display:"inline-block",fontSize:0,[`&${rt}-rtl`]:{direction:"rtl"},[`&${rt}-block`]:{display:"flex"},[`${Ve}-badge ${Ve}-badge-count`]:{zIndex:1},[`> ${Ve}-badge:not(:first-child) > ${Ve}-button-wrapper`]:{borderInlineStart:"none"}})}},Le=_e=>{const{componentCls:Ke,wrapperMarginInlineEnd:Ve,colorPrimary:rt,radioSize:Ae,motionDurationSlow:Tt,motionDurationMid:tt,motionEaseInOutCirc:Pt,colorBgContainer:Xe,colorBorder:Qe,lineWidth:Ne,colorBgContainerDisabled:Oe,colorTextDisabled:re,paddingXS:Fe,dotColorDisabled:Re,lineType:Z,radioColor:O,radioBgColor:me,calc:Ee}=_e,ge=`${Ke}-inner`,ke=Ee(Ae).sub(Ee(4).mul(2)),Ye=Ee(1).mul(Ae).equal({unit:!0});return{[`${Ke}-wrapper`]:Object.assign(Object.assign({},(0,L.Wf)(_e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ve,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${Ke}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${Ke}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,R.unit)(Ne)} ${Z} ${rt}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[Ke]:Object.assign(Object.assign({},(0,L.Wf)(_e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ke}-wrapper:hover &,
|
|
|
&:hover ${ge}`]:{borderColor:rt},[`${Ke}-input:focus-visible + ${ge}`]:Object.assign({},(0,L.oN)(_e)),[`${Ke}:hover::after, ${Ke}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ke}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ye,height:Ye,marginBlockStart:Ee(1).mul(Ae).div(-2).equal({unit:!0}),marginInlineStart:Ee(1).mul(Ae).div(-2).equal({unit:!0}),backgroundColor:O,borderBlockStart:0,borderInlineStart:0,borderRadius:Ye,transform:"scale(0)",opacity:0,transition:`all ${Tt} ${Pt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ye,height:Ye,backgroundColor:Xe,borderColor:Qe,borderStyle:"solid",borderWidth:Ne,borderRadius:"50%",transition:`all ${tt}`},[`${Ke}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ke}-checked`]:{[ge]:{borderColor:rt,backgroundColor:me,"&::after":{transform:`scale(${_e.calc(_e.dotSize).div(Ae).equal()})`,opacity:1,transition:`all ${Tt} ${Pt}`}}},[`${Ke}-disabled`]:{cursor:"not-allowed",[ge]:{backgroundColor:Oe,borderColor:Qe,cursor:"not-allowed","&::after":{backgroundColor:Re}},[`${Ke}-input`]:{cursor:"not-allowed"},[`${Ke}-disabled + span`]:{color:re,cursor:"not-allowed"},[`&${Ke}-checked`]:{[ge]:{"&::after":{transform:`scale(${Ee(ke).div(Ae).equal()})`}}}},[`span${Ke} + *`]:{paddingInlineStart:Fe,paddingInlineEnd:Fe}})}},$e=_e=>{const{buttonColor:Ke,controlHeight:Ve,componentCls:rt,lineWidth:Ae,lineType:Tt,colorBorder:tt,motionDurationSlow:Pt,motionDurationMid:Xe,buttonPaddingInline:Qe,fontSize:Ne,buttonBg:Oe,fontSizeLG:re,controlHeightLG:Fe,controlHeightSM:Re,paddingXS:Z,borderRadius:O,borderRadiusSM:me,borderRadiusLG:Ee,buttonCheckedBg:ge,buttonSolidCheckedColor:we,colorTextDisabled:ke,colorBgContainerDisabled:Ye,buttonCheckedBgDisabled:oe,buttonCheckedColorDisabled:fe,colorPrimary:dt,colorPrimaryHover:ot,colorPrimaryActive:ft,buttonSolidCheckedBg:ht,buttonSolidCheckedHoverBg:Ge,buttonSolidCheckedActiveBg:Ct,calc:gt}=_e;return{[`${rt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ve,margin:0,paddingInline:Qe,paddingBlock:0,color:Ke,fontSize:Ne,lineHeight:(0,R.unit)(gt(Ve).sub(gt(Ae).mul(2)).equal()),background:Oe,border:`${(0,R.unit)(Ae)} ${Tt} ${tt}`,borderBlockStartWidth:gt(Ae).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:Ae,cursor:"pointer",transition:[`color ${Xe}`,`background ${Xe}`,`box-shadow ${Xe}`].join(","),a:{color:Ke},[`> ${rt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:gt(Ae).mul(-1).equal(),insetInlineStart:gt(Ae).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ae,paddingInline:0,backgroundColor:tt,transition:`background-color ${Pt}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,R.unit)(Ae)} ${Tt} ${tt}`,borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child":{borderStartEndRadius:O,borderEndEndRadius:O},"&:first-child:last-child":{borderRadius:O},[`${rt}-group-large &`]:{height:Fe,fontSize:re,lineHeight:(0,R.unit)(gt(Fe).sub(gt(Ae).mul(2)).equal()),"&:first-child":{borderStartStartRadius:Ee,borderEndStartRadius:Ee},"&:last-child":{borderStartEndRadius:Ee,borderEndEndRadius:Ee}},[`${rt}-group-small &`]:{height:Re,paddingInline:gt(Z).sub(Ae).equal(),paddingBlock:0,lineHeight:(0,R.unit)(gt(Re).sub(gt(Ae).mul(2)).equal()),"&:first-child":{borderStartStartRadius:me,borderEndStartRadius:me},"&:last-child":{borderStartEndRadius:me,borderEndEndRadius:me}},"&:hover":{position:"relative",color:dt},"&:has(:focus-visible)":Object.assign({},(0,L.oN)(_e)),[`${rt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${rt}-button-wrapper-disabled)`]:{zIndex:1,color:dt,background:ge,borderColor:dt,"&::before":{backgroundColor:dt},"&:first-child":{borderColor:dt},"&:hover":{color:ot,borderColor:ot,"&::before":{backgroundColor:ot}},"&:active":{color:ft,borderColor:ft,"&::before":{backgroundColor:ft}}},[`${rt}-group-solid &-checked:not(${rt}-button-wrapper-disabled)`]:{color:we,background:ht,borderColor:ht,"&:hover":{color:we,background:Ge,borderColor:Ge},"&:active":{color:we,background:Ct,borderColor:Ct}},"&-disabled":{color:ke,backgroundColor:Ye,borderColor:tt,cursor:"not-allowed","&:first-child, &:hover":{color:ke,backgroundColor:Ye,borderColor:tt}},[`&-disabled${rt}-button-wrapper-checked`]:{color:fe,backgroundColor:oe,borderColor:tt,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Te=_e=>{const{wireframe:Ke,padding:Ve,marginXS:rt,lineWidth:Ae,fontSizeLG:Tt,colorText:tt,colorBgContainer:Pt,colorTextDisabled:Xe,controlItemBgActiveDisabled:Qe,colorTextLightSolid:Ne,colorPrimary:Oe,colorPrimaryHover:re,colorPrimaryActive:Fe,colorWhite:Re}=_e,Z=4,O=Tt,me=Ke?O-Z*2:O-(Z+Ae)*2;return{radioSize:O,dotSize:me,dotColorDisabled:Xe,buttonSolidCheckedColor:Ne,buttonSolidCheckedBg:Oe,buttonSolidCheckedHoverBg:re,buttonSolidCheckedActiveBg:Fe,buttonBg:Pt,buttonCheckedBg:Pt,buttonColor:tt,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:Xe,buttonPaddingInline:Ve-Ae,wrapperMarginInlineEnd:rt,radioColor:Ke?Oe:Re,radioBgColor:Ke?Pt:Oe}};var Pe=(0,ae.I$)("Radio",_e=>{const{controlOutline:Ke,controlOutlineWidth:Ve}=_e,rt=`0 0 0 ${(0,R.unit)(Ve)} ${Ke}`,Ae=rt,Tt=(0,pe.mergeToken)(_e,{radioFocusShadow:rt,radioButtonFocusShadow:Ae});return[ce(Tt),Le(Tt),$e(Tt)]},Te,{unitless:{radioSize:!0,dotSize:!0}}),se=function(_e,Ke){var Ve={};for(var rt in _e)Object.prototype.hasOwnProperty.call(_e,rt)&&Ke.indexOf(rt)<0&&(Ve[rt]=_e[rt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,rt=Object.getOwnPropertySymbols(_e);Ae<rt.length;Ae++)Ke.indexOf(rt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,rt[Ae])&&(Ve[rt[Ae]]=_e[rt[Ae]]);return Ve};const K=(_e,Ke)=>{var Ve,rt;const Ae=l.useContext(P),Tt=l.useContext(y),{getPrefixCls:tt,direction:Pt,radio:Xe}=l.useContext(g.E_),Qe=l.useRef(null),Ne=(0,N.sQ)(Ke,Qe),{isFormItemInput:Oe}=l.useContext(V.aM),re=Ce=>{var Je,_;(Je=_e.onChange)===null||Je===void 0||Je.call(_e,Ce),(_=Ae==null?void 0:Ae.onChange)===null||_===void 0||_.call(Ae,Ce)},{prefixCls:Fe,className:Re,rootClassName:Z,children:O,style:me,title:Ee}=_e,ge=se(_e,["prefixCls","className","rootClassName","children","style","title"]),we=tt("radio",Fe),ke=((Ae==null?void 0:Ae.optionType)||Tt)==="button",Ye=ke?`${we}-button`:we,oe=(0,q.Z)(we),[fe,dt,ot]=Pe(we,oe),ft=Object.assign({},ge),ht=l.useContext(A.Z);Ae&&(ft.name=Ae.name,ft.onChange=re,ft.checked=_e.value===Ae.value,ft.disabled=(Ve=ft.disabled)!==null&&Ve!==void 0?Ve:Ae.disabled),ft.disabled=(rt=ft.disabled)!==null&&rt!==void 0?rt:ht;const Ge=U()(`${Ye}-wrapper`,{[`${Ye}-wrapper-checked`]:ft.checked,[`${Ye}-wrapper-disabled`]:ft.disabled,[`${Ye}-wrapper-rtl`]:Pt==="rtl",[`${Ye}-wrapper-in-form-item`]:Oe,[`${Ye}-wrapper-block`]:!!(Ae!=null&&Ae.block)},Xe==null?void 0:Xe.className,Re,Z,dt,ot,oe),[Ct,gt]=(0,j.Z)(ft.onClick);return fe(l.createElement(W.Z,{component:"Radio",disabled:ft.disabled},l.createElement("label",{className:Ge,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),me),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,title:Ee,onClick:Ct},l.createElement(I.Z,Object.assign({},ft,{className:U()(ft.className,{[H.A]:!ke}),type:"radio",prefixCls:Ye,ref:Ne,onClick:gt})),O!==void 0?l.createElement("span",{className:`${Ye}-label`},O):null)))};var te=l.forwardRef(K),ne=d(80402);const z=l.forwardRef((_e,Ke)=>{const{getPrefixCls:Ve,direction:rt}=l.useContext(g.E_),Ae=(0,ne.Z)(),{prefixCls:Tt,className:tt,rootClassName:Pt,options:Xe,buttonStyle:Qe="outline",disabled:Ne,children:Oe,size:re,style:Fe,id:Re,optionType:Z,name:O=Ae,defaultValue:me,value:Ee,block:ge=!1,onChange:we,onMouseEnter:ke,onMouseLeave:Ye,onFocus:oe,onBlur:fe}=_e,[dt,ot]=(0,le.Z)(me,{value:Ee}),ft=l.useCallback(ye=>{const Ot=dt,He=ye.target.value;"value"in _e||ot(He),He!==Ot&&(we==null||we(ye))},[dt,ot,we]),ht=Ve("radio",Tt),Ge=`${ht}-group`,Ct=(0,q.Z)(ht),[gt,Ce,Je]=Pe(ht,Ct);let _=Oe;Xe&&Xe.length>0&&(_=Xe.map(ye=>typeof ye=="string"||typeof ye=="number"?l.createElement(te,{key:ye.toString(),prefixCls:ht,disabled:Ne,value:ye,checked:dt===ye},ye):l.createElement(te,{key:`radio-group-value-options-${ye.value}`,prefixCls:ht,disabled:ye.disabled||Ne,value:ye.value,checked:dt===ye.value,title:ye.title,style:ye.style,id:ye.id,required:ye.required},ye.label)));const D=(0,Q.Z)(re),Ze=U()(Ge,`${Ge}-${Qe}`,{[`${Ge}-${D}`]:D,[`${Ge}-rtl`]:rt==="rtl",[`${Ge}-block`]:ge},tt,Pt,Ce,Je,Ct),ee=l.useMemo(()=>({onChange:ft,value:dt,disabled:Ne,name:O,optionType:Z,block:ge}),[ft,dt,Ne,O,Z,ge]);return gt(l.createElement("div",Object.assign({},(0,F.Z)(_e,{aria:!0,data:!0}),{className:Ze,style:Fe,onMouseEnter:ke,onMouseLeave:Ye,onFocus:oe,onBlur:fe,id:Re,ref:Ke}),l.createElement(C,{value:ee},_)))});var x=l.memo(z),T=function(_e,Ke){var Ve={};for(var rt in _e)Object.prototype.hasOwnProperty.call(_e,rt)&&Ke.indexOf(rt)<0&&(Ve[rt]=_e[rt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,rt=Object.getOwnPropertySymbols(_e);Ae<rt.length;Ae++)Ke.indexOf(rt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,rt[Ae])&&(Ve[rt[Ae]]=_e[rt[Ae]]);return Ve};const G=(_e,Ke)=>{const{getPrefixCls:Ve}=l.useContext(g.E_),{prefixCls:rt}=_e,Ae=T(_e,["prefixCls"]),Tt=Ve("radio",rt);return l.createElement(S,{value:"button"},l.createElement(te,Object.assign({prefixCls:Tt},Ae,{type:"radio",ref:Ke})))};var ve=l.forwardRef(G);const We=te;We.Button=ve,We.Group=x,We.__ANT_RADIO=!0;var st=We},63139:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return st}});var l=d(59301),ie=d(60499),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},le=U,F=d(7657),g=function(Ke,Ve){return l.createElement(F.Z,(0,ie.Z)({},Ke,{ref:Ve,icon:le}))},q=l.forwardRef(g),Q=q,o=d(92310),C=d.n(o),P=d(18642),y=d(72190),S=d(42244),I=d(18929),N=d(10228),W=d(26112);function H(_e,Ke){var Ve=_e.disabled,rt=_e.prefixCls,Ae=_e.character,Tt=_e.characterRender,tt=_e.index,Pt=_e.count,Xe=_e.value,Qe=_e.allowHalf,Ne=_e.focused,Oe=_e.onHover,re=_e.onClick,Fe=function(ke){Oe(ke,tt)},Re=function(ke){re(ke,tt)},Z=function(ke){ke.keyCode===N.Z.ENTER&&re(ke,tt)},O=tt+1,me=new Set([rt]);Xe===0&&tt===0&&Ne?me.add("".concat(rt,"-focused")):Qe&&Xe+.5>=O&&Xe<O?(me.add("".concat(rt,"-half")),me.add("".concat(rt,"-active")),Ne&&me.add("".concat(rt,"-focused"))):(O<=Xe?me.add("".concat(rt,"-full")):me.add("".concat(rt,"-zero")),O===Xe&&Ne&&me.add("".concat(rt,"-focused")));var Ee=typeof Ae=="function"?Ae(_e):Ae,ge=l.createElement("li",{className:C()(Array.from(me)),ref:Ke},l.createElement("div",{onClick:Ve?null:Re,onKeyDown:Ve?null:Z,onMouseMove:Ve?null:Fe,role:"radio","aria-checked":Xe>tt?"true":"false","aria-posinset":tt+1,"aria-setsize":Pt,tabIndex:Ve?-1:0},l.createElement("div",{className:"".concat(rt,"-first")},Ee),l.createElement("div",{className:"".concat(rt,"-second")},Ee)));return Tt&&(ge=Tt(ge,_e)),ge}var j=l.forwardRef(H);function A(){var _e=l.useRef({});function Ke(rt){return _e.current[rt]}function Ve(rt){return function(Ae){_e.current[rt]=Ae}}return[Ke,Ve]}function V(_e){var Ke=_e.pageXOffset,Ve="scrollLeft";if(typeof Ke!="number"){var rt=_e.document;Ke=rt.documentElement[Ve],typeof Ke!="number"&&(Ke=rt.body[Ve])}return Ke}function R(_e){var Ke,Ve,rt=_e.ownerDocument,Ae=rt.body,Tt=rt&&rt.documentElement,tt=_e.getBoundingClientRect();return Ke=tt.left,Ve=tt.top,Ke-=Tt.clientLeft||Ae.clientLeft||0,Ve-=Tt.clientTop||Ae.clientTop||0,{left:Ke,top:Ve}}function L(_e){var Ke=R(_e),Ve=_e.ownerDocument,rt=Ve.defaultView||Ve.parentWindow;return Ke.left+=V(rt),Ke.left}var ae=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function pe(_e,Ke){var Ve=_e.prefixCls,rt=Ve===void 0?"rc-rate":Ve,Ae=_e.className,Tt=_e.defaultValue,tt=_e.value,Pt=_e.count,Xe=Pt===void 0?5:Pt,Qe=_e.allowHalf,Ne=Qe===void 0?!1:Qe,Oe=_e.allowClear,re=Oe===void 0?!0:Oe,Fe=_e.keyboard,Re=Fe===void 0?!0:Fe,Z=_e.character,O=Z===void 0?"\u2605":Z,me=_e.characterRender,Ee=_e.disabled,ge=_e.direction,we=ge===void 0?"ltr":ge,ke=_e.tabIndex,Ye=ke===void 0?0:ke,oe=_e.autoFocus,fe=_e.onHoverChange,dt=_e.onChange,ot=_e.onFocus,ft=_e.onBlur,ht=_e.onKeyDown,Ge=_e.onMouseLeave,Ct=(0,S.Z)(_e,ae),gt=A(),Ce=(0,y.Z)(gt,2),Je=Ce[0],_=Ce[1],D=l.useRef(null),Ze=function(){if(!Ee){var Cn;(Cn=D.current)===null||Cn===void 0||Cn.focus()}};l.useImperativeHandle(Ke,function(){return{focus:Ze,blur:function(){if(!Ee){var Cn;(Cn=D.current)===null||Cn===void 0||Cn.blur()}}}});var ee=(0,I.Z)(Tt||0,{value:tt}),ye=(0,y.Z)(ee,2),Ot=ye[0],He=ye[1],it=(0,I.Z)(null),ct=(0,y.Z)(it,2),he=ct[0],be=ct[1],je=function(Cn,yt){var Et=we==="rtl",Be=Cn+1;if(Ne){var lt=Je(Cn),vt=L(lt),xt=lt.clientWidth;(Et&&yt-vt>xt/2||!Et&&yt-vt<xt/2)&&(Be-=.5)}return Be},Ue=function(Cn){He(Cn),dt==null||dt(Cn)},$=l.useState(!1),ut=(0,y.Z)($,2),xe=ut[0],At=ut[1],zt=function(){At(!0),ot==null||ot()},qt=function(){At(!1),ft==null||ft()},cn=l.useState(null),gn=(0,y.Z)(cn,2),En=gn[0],Fn=gn[1],Hn=function(Cn,yt){var Et=je(yt,Cn.pageX);Et!==he&&(Fn(Et),be(null)),fe==null||fe(Et)},An=function(Cn){Ee||(Fn(null),be(null),fe==null||fe(void 0)),Cn&&(Ge==null||Ge(Cn))},qn=function(Cn,yt){var Et=je(yt,Cn.pageX),Be=!1;re&&(Be=Et===Ot),An(),Ue(Be?0:Et),be(Be?Et:null)},vn=function(Cn){var yt=Cn.keyCode,Et=we==="rtl",Be=Ne?.5:1;Re&&(yt===N.Z.RIGHT&&Ot<Xe&&!Et?(Ue(Ot+Be),Cn.preventDefault()):yt===N.Z.LEFT&&Ot>0&&!Et||yt===N.Z.RIGHT&&Ot>0&&Et?(Ue(Ot-Be),Cn.preventDefault()):yt===N.Z.LEFT&&Ot<Xe&&Et&&(Ue(Ot+Be),Cn.preventDefault())),ht==null||ht(Cn)};l.useEffect(function(){oe&&!Ee&&Ze()},[]);var Gt=new Array(Xe).fill(0).map(function(Dn,Cn){return l.createElement(j,{ref:_(Cn),index:Cn,count:Xe,disabled:Ee,prefixCls:"".concat(rt,"-star"),allowHalf:Ne,value:En===null?Ot:En,onClick:qn,onHover:Hn,key:Dn||Cn,character:O,characterRender:me,focused:xe})}),Xt=C()(rt,Ae,(0,P.Z)((0,P.Z)({},"".concat(rt,"-disabled"),Ee),"".concat(rt,"-rtl"),we==="rtl"));return l.createElement("ul",(0,ie.Z)({className:Xt,onMouseLeave:An,tabIndex:Ee?-1:Ye,onFocus:Ee?null:zt,onBlur:Ee?null:qt,onKeyDown:Ee?null:vn,ref:D},(0,W.Z)(Ct,{aria:!0,data:!0,attr:!0})),Gt)}var ce=l.forwardRef(pe),Le=ce,$e=d(48755),Te=d(25399),Pe=d(36237),se=d(63356),K=d(16931),w=d(51636);const te=_e=>{const{componentCls:Ke}=_e;return{[`${Ke}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:_e.marginXS},"> div":{transition:`all ${_e.motionDurationMid}, outline 0s`,"&:hover":{transform:_e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Pe.unit)(_e.lineWidth)} dashed ${_e.starColor}`,transform:_e.starHoverScale}},"&-first, &-second":{color:_e.starBg,transition:`all ${_e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ke}-star-first, &-half ${Ke}-star-second`]:{opacity:1},[`&-half ${Ke}-star-first, &-full ${Ke}-star-second`]:{color:"inherit"}}}},ne=_e=>({[`&-rtl${_e.componentCls}`]:{direction:"rtl"}}),z=_e=>{const{componentCls:Ke}=_e;return{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(_e)),{display:"inline-block",margin:0,padding:0,color:_e.starColor,fontSize:_e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ke} ${Ke}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),te(_e)),ne(_e))}},x=_e=>({starColor:_e.yellow6,starSize:_e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:_e.colorFillContent});var T=(0,K.I$)("Rate",_e=>{const Ke=(0,w.mergeToken)(_e,{});return[z(Ke)]},x),G=d(2171),ve=function(_e,Ke){var Ve={};for(var rt in _e)Object.prototype.hasOwnProperty.call(_e,rt)&&Ke.indexOf(rt)<0&&(Ve[rt]=_e[rt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,rt=Object.getOwnPropertySymbols(_e);Ae<rt.length;Ae++)Ke.indexOf(rt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,rt[Ae])&&(Ve[rt[Ae]]=_e[rt[Ae]]);return Ve},st=l.forwardRef((_e,Ke)=>{const{prefixCls:Ve,className:rt,rootClassName:Ae,style:Tt,tooltips:tt,character:Pt=l.createElement(Q,null),disabled:Xe}=_e,Qe=ve(_e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Ne=(ke,Ye)=>{let{index:oe}=Ye;return tt?l.createElement(Te.Z,{title:tt[oe]},ke):ke},{getPrefixCls:Oe,direction:re,rate:Fe}=l.useContext($e.E_),Re=Oe("rate",Ve),[Z,O,me]=T(Re),Ee=Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Tt),ge=l.useContext(G.Z),we=Xe!=null?Xe:ge;return Z(l.createElement(Le,Object.assign({ref:Ke,character:Pt,characterRender:Ne,disabled:we},Qe,{className:C()(rt,Ae,O,me,Fe==null?void 0:Fe.className),style:Ee,prefixCls:Re,direction:re})))})},82326:function(ln,qe,d){"use strict";var l=d(59301),ie=d(92310),U=d.n(ie),le=d(37463),F=d(2738),g=d(75030),q=d(86641),Q=d(45915),o=d(82855),C=d(48755),P=d(38406),y=d(2171),S=d(83397),I=d(31756),N=d(56553),W=d(24971),H=d(70045),j=d(57700),A=d(1722),V=d(90376),R=d(68525),L=d(90005),ae=function(Te,Pe){var se={};for(var K in Te)Object.prototype.hasOwnProperty.call(Te,K)&&Pe.indexOf(K)<0&&(se[K]=Te[K]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,K=Object.getOwnPropertySymbols(Te);w<K.length;w++)Pe.indexOf(K[w])<0&&Object.prototype.propertyIsEnumerable.call(Te,K[w])&&(se[K[w]]=Te[K[w]]);return se};const pe="SECRET_COMBOBOX_MODE_DO_NOT_USE",ce=(Te,Pe)=>{var se;const{prefixCls:K,bordered:w,className:te,rootClassName:ne,getPopupContainer:z,popupClassName:x,dropdownClassName:T,listHeight:G=256,placement:ve,listItemHeight:We,size:st,disabled:_e,notFoundContent:Ke,status:Ve,builtinPlacements:rt,dropdownMatchSelectWidth:Ae,popupMatchSelectWidth:Tt,direction:tt,style:Pt,allowClear:Xe,variant:Qe,dropdownStyle:Ne,transitionName:Oe,tagRender:re,maxCount:Fe,prefix:Re}=Te,Z=ae(Te,["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:O,getPrefixCls:me,renderEmpty:Ee,direction:ge,virtual:we,popupMatchSelectWidth:ke,popupOverflow:Ye}=l.useContext(C.E_),oe=(0,C.dj)("select"),[,fe]=(0,j.ZP)(),dt=We!=null?We:fe==null?void 0:fe.controlHeight,ot=me("select",K),ft=me(),ht=tt!=null?tt:ge,{compactSize:Ge,compactItemClassnames:Ct}=(0,H.ri)(ot,ht),[gt,Ce]=(0,W.Z)("select",Qe,w),Je=(0,S.Z)(ot),[_,D,Ze]=(0,V.Z)(ot,Je),ee=l.useMemo(()=>{const{mode:vn}=Te;if(vn!=="combobox")return vn===pe?"combobox":vn},[Te.mode]),ye=ee==="multiple"||ee==="tags",Ot=(0,L.Z)(Te.suffixIcon,Te.showArrow),He=(se=Tt!=null?Tt:Ae)!==null&&se!==void 0?se:ke,{status:it,hasFeedback:ct,isFormItemInput:he,feedbackIcon:be}=l.useContext(N.aM),je=(0,o.F)(it,Ve);let Ue;Ke!==void 0?Ue=Ke:ee==="combobox"?Ue=null:Ue=(Ee==null?void 0:Ee("Select"))||l.createElement(P.Z,{componentName:"Select"});const{suffixIcon:$,itemIcon:ut,removeIcon:xe,clearIcon:At}=(0,R.Z)(Object.assign(Object.assign({},Z),{multiple:ye,hasFeedback:ct,feedbackIcon:be,showSuffixIcon:Ot,prefixCls:ot,componentName:"Select"})),zt=Xe===!0?{clearIcon:At}:Xe,qt=(0,F.Z)(Z,["suffixIcon","itemIcon"]),cn=U()(x||T,{[`${ot}-dropdown-${ht}`]:ht==="rtl"},ne,Ze,Je,D),gn=(0,I.Z)(vn=>{var Gt;return(Gt=st!=null?st:Ge)!==null&&Gt!==void 0?Gt:vn}),En=l.useContext(y.Z),Fn=_e!=null?_e:En,Hn=U()({[`${ot}-lg`]:gn==="large",[`${ot}-sm`]:gn==="small",[`${ot}-rtl`]:ht==="rtl",[`${ot}-${gt}`]:Ce,[`${ot}-in-form-item`]:he},(0,o.Z)(ot,je,ct),Ct,oe.className,te,ne,Ze,Je,D),An=l.useMemo(()=>ve!==void 0?ve:ht==="rtl"?"bottomRight":"bottomLeft",[ve,ht]),[qn]=(0,g.Cn)("SelectLike",Ne==null?void 0:Ne.zIndex);return _(l.createElement(le.ZP,Object.assign({ref:Pe,virtual:we,showSearch:oe.showSearch},qt,{style:Object.assign(Object.assign({},oe.style),Pt),dropdownMatchSelectWidth:He,transitionName:(0,q.m)(ft,"slide-up",Oe),builtinPlacements:(0,A.Z)(rt,Ye),listHeight:G,listItemHeight:dt,mode:ee,prefixCls:ot,placement:An,direction:ht,prefix:Re,suffixIcon:$,menuItemSelectedIcon:ut,removeIcon:xe,allowClear:zt,notFoundContent:Ue,className:Hn,getPopupContainer:z||O,dropdownClassName:cn,disabled:Fn,dropdownStyle:Object.assign(Object.assign({},Ne),{zIndex:qn}),maxCount:ye?Fe:void 0,tagRender:ye?re:void 0})))},Le=l.forwardRef(ce),$e=(0,Q.Z)(Le,"dropdownAlign");Le.SECRET_COMBOBOX_MODE_DO_NOT_USE=pe,Le.Option=le.Wx,Le.OptGroup=le.Xo,Le._InternalPanelDoNotUseOrYouWillBeFired=$e,qe.default=Le},1722:function(ln,qe){"use strict";const d=ie=>{const le={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},le),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},le),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},le),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},le),{points:["br","tr"],offset:[0,-4]})}};function l(ie,U){return ie||d(U)}qe.Z=l},90376:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return K}});var l=d(63356),ie=d(56119),U=d(16931),le=d(51636),F=d(46e3),g=d(93873);const q=w=>{const{optionHeight:te,optionFontSize:ne,optionLineHeight:z,optionPadding:x}=w;return{position:"relative",display:"block",minHeight:te,padding:x,color:w.colorText,fontWeight:"normal",fontSize:ne,lineHeight:z,boxSizing:"border-box"}};var o=w=>{const{antCls:te,componentCls:ne}=w,z=`${ne}-item`,x=`&${te}-slide-up-enter${te}-slide-up-enter-active`,T=`&${te}-slide-up-appear${te}-slide-up-appear-active`,G=`&${te}-slide-up-leave${te}-slide-up-leave-active`,ve=`${ne}-dropdown-placement-`,We=`${z}-option-selected`;return[{[`${ne}-dropdown`]:Object.assign(Object.assign({},(0,l.Wf)(w)),{position:"absolute",top:-9999,zIndex:w.zIndexPopup,boxSizing:"border-box",padding:w.paddingXXS,overflow:"hidden",fontSize:w.fontSize,fontVariant:"initial",backgroundColor:w.colorBgElevated,borderRadius:w.borderRadiusLG,outline:"none",boxShadow:w.boxShadowSecondary,[`
|
|
|
${x}${ve}bottomLeft,
|
|
|
${T}${ve}bottomLeft
|
|
|
`]:{animationName:F.fJ},[`
|
|
|
${x}${ve}topLeft,
|
|
|
${T}${ve}topLeft,
|
|
|
${x}${ve}topRight,
|
|
|
${T}${ve}topRight
|
|
|
`]:{animationName:F.Qt},[`${G}${ve}bottomLeft`]:{animationName:F.Uw},[`
|
|
|
${G}${ve}topLeft,
|
|
|
${G}${ve}topRight
|
|
|
`]:{animationName:F.ly},"&-hidden":{display:"none"},[z]:Object.assign(Object.assign({},q(w)),{cursor:"pointer",transition:`background ${w.motionDurationSlow} ease`,borderRadius:w.borderRadiusSM,"&-group":{color:w.colorTextDescription,fontSize:w.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},l.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${z}-option-disabled)`]:{backgroundColor:w.optionActiveBg},[`&-selected:not(${z}-option-disabled)`]:{color:w.optionSelectedColor,fontWeight:w.optionSelectedFontWeight,backgroundColor:w.optionSelectedBg,[`${z}-option-state`]:{color:w.colorPrimary}},"&-disabled":{[`&${z}-option-selected`]:{backgroundColor:w.colorBgContainerDisabled},color:w.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:w.calc(w.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},q(w)),{color:w.colorTextDisabled})}),[`${We}:has(+ ${We})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${We}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,F.oN)(w,"slide-up"),(0,F.oN)(w,"slide-down"),(0,g.Fm)(w,"move-up"),(0,g.Fm)(w,"move-down")]},C=d(26743),P=d(36237);function y(w,te){const{componentCls:ne,inputPaddingHorizontalBase:z,borderRadius:x}=w,T=w.calc(w.controlHeight).sub(w.calc(w.lineWidth).mul(2)).equal(),G=te?`${ne}-${te}`:"";return{[`${ne}-single${G}`]:{fontSize:w.fontSize,height:w.controlHeight,[`${ne}-selector`]:Object.assign(Object.assign({},(0,l.Wf)(w,!0)),{display:"flex",borderRadius:x,flex:"1 1 auto",[`${ne}-selection-wrap:after`]:{lineHeight:(0,P.unit)(T)},[`${ne}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${ne}-selection-item,
|
|
|
${ne}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,P.unit)(T),transition:`all ${w.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ne}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ne}-selection-item:empty:after`,`${ne}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${ne}-show-arrow ${ne}-selection-item,
|
|
|
&${ne}-show-arrow ${ne}-selection-search,
|
|
|
&${ne}-show-arrow ${ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:w.showArrowPaddingInlineEnd},[`&${ne}-open ${ne}-selection-item`]:{color:w.colorTextPlaceholder},[`&:not(${ne}-customize-input)`]:{[`${ne}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,P.unit)(z)}`,[`${ne}-selection-search-input`]:{height:T,fontSize:w.fontSize},"&:after":{lineHeight:(0,P.unit)(T)}}},[`&${ne}-customize-input`]:{[`${ne}-selector`]:{"&:after":{display:"none"},[`${ne}-selection-search`]:{position:"static",width:"100%"},[`${ne}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,P.unit)(z)}`,"&:after":{display:"none"}}}}}}}function S(w){const{componentCls:te}=w,ne=w.calc(w.controlPaddingHorizontalSM).sub(w.lineWidth).equal();return[y(w),y((0,le.mergeToken)(w,{controlHeight:w.controlHeightSM,borderRadius:w.borderRadiusSM}),"sm"),{[`${te}-single${te}-sm`]:{[`&:not(${te}-customize-input)`]:{[`${te}-selector`]:{padding:`0 ${(0,P.unit)(ne)}`},[`&${te}-show-arrow ${te}-selection-search`]:{insetInlineEnd:w.calc(ne).add(w.calc(w.fontSize).mul(1.5)).equal()},[`
|
|
|
&${te}-show-arrow ${te}-selection-item,
|
|
|
&${te}-show-arrow ${te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:w.calc(w.fontSize).mul(1.5).equal()}}}},y((0,le.mergeToken)(w,{controlHeight:w.singleItemHeightLG,fontSize:w.fontSizeLG,borderRadius:w.borderRadiusLG}),"lg")]}const I=w=>{const{fontSize:te,lineHeight:ne,lineWidth:z,controlHeight:x,controlHeightSM:T,controlHeightLG:G,paddingXXS:ve,controlPaddingHorizontal:We,zIndexPopupBase:st,colorText:_e,fontWeightStrong:Ke,controlItemBgActive:Ve,controlItemBgHover:rt,colorBgContainer:Ae,colorFillSecondary:Tt,colorBgContainerDisabled:tt,colorTextDisabled:Pt,colorPrimaryHover:Xe,colorPrimary:Qe,controlOutline:Ne}=w,Oe=ve*2,re=z*2,Fe=Math.min(x-Oe,x-re),Re=Math.min(T-Oe,T-re),Z=Math.min(G-Oe,G-re);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ve/2),zIndexPopup:st+50,optionSelectedColor:_e,optionSelectedFontWeight:Ke,optionSelectedBg:Ve,optionActiveBg:rt,optionPadding:`${(x-te*ne)/2}px ${We}px`,optionFontSize:te,optionLineHeight:ne,optionHeight:x,selectorBg:Ae,clearBg:Ae,singleItemHeightLG:G,multipleItemBg:Tt,multipleItemBorderColor:"transparent",multipleItemHeight:Fe,multipleItemHeightSM:Re,multipleItemHeightLG:Z,multipleSelectorBgDisabled:tt,multipleItemColorDisabled:Pt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(w.fontSize*1.25),hoverBorderColor:Xe,activeBorderColor:Qe,activeOutlineColor:Ne,selectAffixPadding:ve}},N=(w,te)=>{const{componentCls:ne,antCls:z,controlOutlineWidth:x}=w;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} ${te.borderColor}`,background:w.selectorBg},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${z}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{borderColor:te.hoverBorderHover},[`${ne}-focused& ${ne}-selector`]:{borderColor:te.activeBorderColor,boxShadow:`0 0 0 ${(0,P.unit)(x)} ${te.activeOutlineColor}`,outline:0},[`${ne}-prefix`]:{color:te.color}}}},W=(w,te)=>({[`&${w.componentCls}-status-${te.status}`]:Object.assign({},N(w,te))}),H=w=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},N(w,{borderColor:w.colorBorder,hoverBorderHover:w.hoverBorderColor,activeBorderColor:w.activeBorderColor,activeOutlineColor:w.activeOutlineColor,color:w.colorText})),W(w,{status:"error",borderColor:w.colorError,hoverBorderHover:w.colorErrorHover,activeBorderColor:w.colorError,activeOutlineColor:w.colorErrorOutline,color:w.colorError})),W(w,{status:"warning",borderColor:w.colorWarning,hoverBorderHover:w.colorWarningHover,activeBorderColor:w.colorWarning,activeOutlineColor:w.colorWarningOutline,color:w.colorWarning})),{[`&${w.componentCls}-disabled`]:{[`&:not(${w.componentCls}-customize-input) ${w.componentCls}-selector`]:{background:w.colorBgContainerDisabled,color:w.colorTextDisabled}},[`&${w.componentCls}-multiple ${w.componentCls}-selection-item`]:{background:w.multipleItemBg,border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} ${w.multipleItemBorderColor}`}})}),j=(w,te)=>{const{componentCls:ne,antCls:z}=w;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{background:te.bg,border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} transparent`,color:te.color},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${z}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{background:te.hoverBg},[`${ne}-focused& ${ne}-selector`]:{background:w.selectorBg,borderColor:te.activeBorderColor,outline:0}}}},A=(w,te)=>({[`&${w.componentCls}-status-${te.status}`]:Object.assign({},j(w,te))}),V=w=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},j(w,{bg:w.colorFillTertiary,hoverBg:w.colorFillSecondary,activeBorderColor:w.activeBorderColor,color:w.colorText})),A(w,{status:"error",bg:w.colorErrorBg,hoverBg:w.colorErrorBgHover,activeBorderColor:w.colorError,color:w.colorError})),A(w,{status:"warning",bg:w.colorWarningBg,hoverBg:w.colorWarningBgHover,activeBorderColor:w.colorWarning,color:w.colorWarning})),{[`&${w.componentCls}-disabled`]:{[`&:not(${w.componentCls}-customize-input) ${w.componentCls}-selector`]:{borderColor:w.colorBorder,background:w.colorBgContainerDisabled,color:w.colorTextDisabled}},[`&${w.componentCls}-multiple ${w.componentCls}-selection-item`]:{background:w.colorBgContainer,border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} ${w.colorSplit}`}})}),R=w=>({"&-borderless":{[`${w.componentCls}-selector`]:{background:"transparent",border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} transparent`},[`&${w.componentCls}-disabled`]:{[`&:not(${w.componentCls}-customize-input) ${w.componentCls}-selector`]:{color:w.colorTextDisabled}},[`&${w.componentCls}-multiple ${w.componentCls}-selection-item`]:{background:w.multipleItemBg,border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} ${w.multipleItemBorderColor}`},[`&${w.componentCls}-status-error`]:{[`${w.componentCls}-prefix, ${w.componentCls}-selection-item`]:{color:w.colorError}},[`&${w.componentCls}-status-warning`]:{[`${w.componentCls}-prefix, ${w.componentCls}-selection-item`]:{color:w.colorWarning}}}}),L=(w,te)=>{const{componentCls:ne,antCls:z}=w;return{[`&:not(${ne}-customize-input) ${ne}-selector`]:{borderWidth:`0 0 ${(0,P.unit)(w.lineWidth)} 0`,borderStyle:`none none ${w.lineType} none`,borderColor:te.borderColor,background:w.selectorBg,borderRadius:0},[`&:not(${ne}-disabled):not(${ne}-customize-input):not(${z}-pagination-size-changer)`]:{[`&:hover ${ne}-selector`]:{borderColor:te.hoverBorderHover},[`${ne}-focused& ${ne}-selector`]:{borderColor:te.activeBorderColor,outline:0},[`${ne}-prefix`]:{color:te.color}}}},ae=(w,te)=>({[`&${w.componentCls}-status-${te.status}`]:Object.assign({},L(w,te))}),pe=w=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},L(w,{borderColor:w.colorBorder,hoverBorderHover:w.hoverBorderColor,activeBorderColor:w.activeBorderColor,activeOutlineColor:w.activeOutlineColor,color:w.colorText})),ae(w,{status:"error",borderColor:w.colorError,hoverBorderHover:w.colorErrorHover,activeBorderColor:w.colorError,activeOutlineColor:w.colorErrorOutline,color:w.colorError})),ae(w,{status:"warning",borderColor:w.colorWarning,hoverBorderHover:w.colorWarningHover,activeBorderColor:w.colorWarning,activeOutlineColor:w.colorWarningOutline,color:w.colorWarning})),{[`&${w.componentCls}-disabled`]:{[`&:not(${w.componentCls}-customize-input) ${w.componentCls}-selector`]:{color:w.colorTextDisabled}},[`&${w.componentCls}-multiple ${w.componentCls}-selection-item`]:{background:w.multipleItemBg,border:`${(0,P.unit)(w.lineWidth)} ${w.lineType} ${w.multipleItemBorderColor}`}})});var Le=w=>({[w.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},H(w)),V(w)),R(w)),pe(w))});const $e=w=>{const{componentCls:te}=w;return{position:"relative",transition:`all ${w.motionDurationMid} ${w.motionEaseInOut}`,input:{cursor:"pointer"},[`${te}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${te}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Te=w=>{const{componentCls:te}=w;return{[`${te}-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"}}}},Pe=w=>{const{antCls:te,componentCls:ne,inputPaddingHorizontalBase:z,iconCls:x}=w;return{[ne]:Object.assign(Object.assign({},(0,l.Wf)(w)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ne}-customize-input) ${ne}-selector`]:Object.assign(Object.assign({},$e(w)),Te(w)),[`${ne}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},l.vS),{[`> ${te}-typography`]:{display:"inline"}}),[`${ne}-selection-placeholder`]:Object.assign(Object.assign({},l.vS),{flex:1,color:w.colorTextPlaceholder,pointerEvents:"none"}),[`${ne}-arrow`]:Object.assign(Object.assign({},(0,l.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:z,height:w.fontSizeIcon,marginTop:w.calc(w.fontSizeIcon).mul(-1).div(2).equal(),color:w.colorTextQuaternary,fontSize:w.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${w.motionDurationSlow} ease`,[x]:{verticalAlign:"top",transition:`transform ${w.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ne}-suffix)`]:{pointerEvents:"auto"}},[`${ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ne}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ne}-prefix`]:{flex:"none",marginInlineEnd:w.selectAffixPadding},[`${ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:z,zIndex:1,display:"inline-block",width:w.fontSizeIcon,height:w.fontSizeIcon,marginTop:w.calc(w.fontSizeIcon).mul(-1).div(2).equal(),color:w.colorTextQuaternary,fontSize:w.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${w.motionDurationMid} ease, opacity ${w.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:w.colorTextTertiary}},[`&:hover ${ne}-clear`]:{opacity:1,background:w.colorBgBase,borderRadius:"50%"}}),[`${ne}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ne}-has-feedback`]:{[`${ne}-clear`]:{insetInlineEnd:w.calc(z).add(w.fontSize).add(w.paddingXS).equal()}}}}}},se=w=>{const{componentCls:te}=w;return[{[te]:{[`&${te}-in-form-item`]:{width:"100%"}}},Pe(w),S(w),(0,C.ZP)(w),o(w),{[`${te}-rtl`]:{direction:"rtl"}},(0,ie.c)(w,{borderElCls:`${te}-selector`,focusElCls:`${te}-focused`})]};var K=(0,U.I$)("Select",(w,te)=>{let{rootPrefixCls:ne}=te;const z=(0,le.mergeToken)(w,{rootPrefixCls:ne,inputPaddingHorizontalBase:w.calc(w.paddingSM).sub(1).equal(),multipleSelectItemHeight:w.multipleItemHeight,selectHeight:w.controlHeight});return[se(z),Le(z)]},I,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(ln,qe,d){"use strict";d.d(qe,{_z:function(){return g},gp:function(){return le}});var l=d(36237),ie=d(63356),U=d(51636);const le=C=>{const{multipleSelectItemHeight:P,paddingXXS:y,lineWidth:S,INTERNAL_FIXED_ITEM_MARGIN:I}=C,N=C.max(C.calc(y).sub(S).equal(),0),W=C.max(C.calc(N).sub(I).equal(),0);return{basePadding:N,containerPadding:W,itemHeight:(0,l.unit)(P),itemLineHeight:(0,l.unit)(C.calc(P).sub(C.calc(C.lineWidth).mul(2)).equal())}},F=C=>{const{multipleSelectItemHeight:P,selectHeight:y,lineWidth:S}=C;return C.calc(y).sub(P).div(2).sub(S).equal()},g=C=>{const{componentCls:P,iconCls:y,borderRadiusSM:S,motionDurationSlow:I,paddingXS:N,multipleItemColorDisabled:W,multipleItemBorderColorDisabled:H,colorIcon:j,colorIconHover:A,INTERNAL_FIXED_ITEM_MARGIN:V}=C;return{[`${P}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${P}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:V,borderRadius:S,cursor:"default",transition:`font-size ${I}, line-height ${I}, height ${I}`,marginInlineEnd:C.calc(V).mul(2).equal(),paddingInlineStart:N,paddingInlineEnd:C.calc(N).div(2).equal(),[`${P}-disabled&`]:{color:W,borderColor:H,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:C.calc(N).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ie.Ro)()),{display:"inline-flex",alignItems:"center",color:j,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${y}`]:{verticalAlign:"-0.2em"},"&:hover":{color:A}})}}}},q=(C,P)=>{const{componentCls:y,INTERNAL_FIXED_ITEM_MARGIN:S}=C,I=`${y}-selection-overflow`,N=C.multipleSelectItemHeight,W=F(C),H=P?`${y}-${P}`:"",j=le(C);return{[`${y}-multiple${H}`]:Object.assign(Object.assign({},g(C)),{[`${y}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:j.basePadding,paddingBlock:j.containerPadding,borderRadius:C.borderRadius,[`${y}-disabled&`]:{background:C.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,l.unit)(S)} 0`,lineHeight:(0,l.unit)(N),visibility:"hidden",content:'"\\a0"'}},[`${y}-selection-item`]:{height:j.itemHeight,lineHeight:(0,l.unit)(j.itemLineHeight)},[`${y}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,l.unit)(N),marginBlock:S}},[`${y}-prefix`]:{marginInlineStart:C.calc(C.inputPaddingHorizontalBase).sub(j.basePadding).equal()},[`${I}-item + ${I}-item,
|
|
|
${y}-prefix + ${y}-selection-wrap
|
|
|
`]:{[`${y}-selection-search`]:{marginInlineStart:0},[`${y}-selection-placeholder`]:{insetInlineStart:0}},[`${I}-item-suffix`]:{minHeight:j.itemHeight,marginBlock:S},[`${y}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:C.calc(C.inputPaddingHorizontalBase).sub(W).equal(),"\n &-input,\n &-mirror\n ":{height:N,fontFamily:C.fontFamily,lineHeight:(0,l.unit)(N),transition:`all ${C.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${y}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:C.calc(C.inputPaddingHorizontalBase).sub(j.basePadding).equal(),insetInlineEnd:C.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${C.motionDurationSlow}`}})}};function Q(C,P){const{componentCls:y}=C,S=P?`${y}-${P}`:"",I={[`${y}-multiple${S}`]:{fontSize:C.fontSize,[`${y}-selector`]:{[`${y}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${y}-show-arrow ${y}-selector,
|
|
|
&${y}-allow-clear ${y}-selector
|
|
|
`]:{paddingInlineEnd:C.calc(C.fontSizeIcon).add(C.controlPaddingHorizontal).equal()}}};return[q(C,P),I]}const o=C=>{const{componentCls:P}=C,y=(0,U.mergeToken)(C,{selectHeight:C.controlHeightSM,multipleSelectItemHeight:C.multipleItemHeightSM,borderRadius:C.borderRadiusSM,borderRadiusSM:C.borderRadiusXS}),S=(0,U.mergeToken)(C,{fontSize:C.fontSizeLG,selectHeight:C.controlHeightLG,multipleSelectItemHeight:C.multipleItemHeightLG,borderRadius:C.borderRadiusLG,borderRadiusSM:C.borderRadius});return[Q(C),Q(y,"sm"),{[`${P}-multiple${P}-sm`]:{[`${P}-selection-placeholder`]:{insetInline:C.calc(C.controlPaddingHorizontalSM).sub(C.lineWidth).equal()},[`${P}-selection-search`]:{marginInlineStart:2}}},Q(S,"lg")]};qe.ZP=o},68525:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});var l=d(59301),ie=d(40001),U=d(19248),le=d(99267),F=d(84105),g=d(58617),q=d(47472);function Q(o){let{suffixIcon:C,clearIcon:P,menuItemSelectedIcon:y,removeIcon:S,loading:I,multiple:N,hasFeedback:W,prefixCls:H,showSuffixIcon:j,feedbackIcon:A,showArrow:V,componentName:R}=o;const L=P!=null?P:l.createElement(U.Z,null),ae=$e=>C===null&&!W&&!V?null:l.createElement(l.Fragment,null,j!==!1&&$e,W&&A);let pe=null;if(C!==void 0)pe=ae(C);else if(I)pe=ae(l.createElement(g.Z,{spin:!0}));else{const $e=`${H}-suffix`;pe=Te=>{let{open:Pe,showSearch:se}=Te;return ae(Pe&&se?l.createElement(q.Z,{className:$e}):l.createElement(F.Z,{className:$e}))}}let ce=null;y!==void 0?ce=y:N?ce=l.createElement(ie.Z,null):ce=null;let Le=null;return S!==void 0?Le=S:Le=l.createElement(le.Z,null),{clearIcon:L,suffixIcon:pe,itemIcon:ce,removeIcon:Le}}},90005:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return l}});function l(ie,U){return U!==void 0?U:ie!==null}},44104:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return W}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(11592),F=d(99402),g=d(48755),q=d(70045);const Q=l.createContext({latestIndex:0}),o=Q.Provider;var P=H=>{let{className:j,index:A,children:V,split:R,style:L}=H;const{latestIndex:ae}=l.useContext(Q);return V==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:j,style:L},V),A<ae&&R&&l.createElement("span",{className:`${j}-split`},R))},y=d(31547),S=function(H,j){var A={};for(var V in H)Object.prototype.hasOwnProperty.call(H,V)&&j.indexOf(V)<0&&(A[V]=H[V]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,V=Object.getOwnPropertySymbols(H);R<V.length;R++)j.indexOf(V[R])<0&&Object.prototype.propertyIsEnumerable.call(H,V[R])&&(A[V[R]]=H[V[R]]);return A};const N=l.forwardRef((H,j)=>{var A;const{getPrefixCls:V,direction:R,size:L,className:ae,style:pe,classNames:ce,styles:Le}=(0,g.dj)("space"),{size:$e=L!=null?L:"small",align:Te,className:Pe,rootClassName:se,children:K,direction:w="horizontal",prefixCls:te,split:ne,style:z,wrap:x=!1,classNames:T,styles:G}=H,ve=S(H,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[We,st]=Array.isArray($e)?$e:[$e,$e],_e=(0,F.n)(st),Ke=(0,F.n)(We),Ve=(0,F.T)(st),rt=(0,F.T)(We),Ae=(0,le.Z)(K,{keepEmpty:!0}),Tt=Te===void 0&&w==="horizontal"?"center":Te,tt=V("space",te),[Pt,Xe,Qe]=(0,y.Z)(tt),Ne=U()(tt,ae,Xe,`${tt}-${w}`,{[`${tt}-rtl`]:R==="rtl",[`${tt}-align-${Tt}`]:Tt,[`${tt}-gap-row-${st}`]:_e,[`${tt}-gap-col-${We}`]:Ke},Pe,se,Qe),Oe=U()(`${tt}-item`,(A=T==null?void 0:T.item)!==null&&A!==void 0?A:ce.item);let re=0;const Fe=Ae.map((O,me)=>{var Ee;O!=null&&(re=me);const ge=(O==null?void 0:O.key)||`${Oe}-${me}`;return l.createElement(P,{className:Oe,key:ge,index:me,split:ne,style:(Ee=G==null?void 0:G.item)!==null&&Ee!==void 0?Ee:Le.item},O)}),Re=l.useMemo(()=>({latestIndex:re}),[re]);if(Ae.length===0)return null;const Z={};return x&&(Z.flexWrap="wrap"),!Ke&&rt&&(Z.columnGap=We),!_e&&Ve&&(Z.rowGap=st),Pt(l.createElement("div",Object.assign({ref:j,className:Ne,style:Object.assign(Object.assign(Object.assign({},Z),pe),z)},ve),l.createElement(o,{value:Re},Fe)))});N.Compact=q.ZP;var W=N},11938:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Te}});var l=d(59301),ie=d(40192),U=d(22703),le=d(92310),F=d.n(le),g=d(26112),q=d(48755),Q=d(458),C=Pe=>{const{value:se,formatter:K,precision:w,decimalSeparator:te,groupSeparator:ne="",prefixCls:z}=Pe;let x;if(typeof K=="function")x=K(se);else{const T=String(se),G=T.match(/^(-?)(\d*)(\.(\d+))?$/);if(!G||T==="-")x=T;else{const ve=G[1];let We=G[2]||"0",st=G[4]||"";We=We.replace(/\B(?=(\d{3})+(?!\d))/g,ne),typeof w=="number"&&(st=st.padEnd(w,"0").slice(0,w>0?w:0)),st&&(st=`${te}${st}`),x=[l.createElement("span",{key:"int",className:`${z}-content-value-int`},ve,We),st&&l.createElement("span",{key:"decimal",className:`${z}-content-value-decimal`},st)]}}return l.createElement("span",{className:`${z}-content-value`},x)},P=d(63356),y=d(16931),S=d(51636);const I=Pe=>{const{componentCls:se,marginXXS:K,padding:w,colorTextDescription:te,titleFontSize:ne,colorTextHeading:z,contentFontSize:x,fontFamily:T}=Pe;return{[se]:Object.assign(Object.assign({},(0,P.Wf)(Pe)),{[`${se}-title`]:{marginBottom:K,color:te,fontSize:ne},[`${se}-skeleton`]:{paddingTop:w},[`${se}-content`]:{color:z,fontSize:x,fontFamily:T,[`${se}-content-value`]:{display:"inline-block",direction:"ltr"},[`${se}-content-prefix, ${se}-content-suffix`]:{display:"inline-block"},[`${se}-content-prefix`]:{marginInlineEnd:K},[`${se}-content-suffix`]:{marginInlineStart:K}}})}},N=Pe=>{const{fontSizeHeading3:se,fontSize:K}=Pe;return{titleFontSize:K,contentFontSize:se}};var W=(0,y.I$)("Statistic",Pe=>{const se=(0,S.mergeToken)(Pe,{});return[I(se)]},N),H=function(Pe,se){var K={};for(var w in Pe)Object.prototype.hasOwnProperty.call(Pe,w)&&se.indexOf(w)<0&&(K[w]=Pe[w]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,w=Object.getOwnPropertySymbols(Pe);te<w.length;te++)se.indexOf(w[te])<0&&Object.prototype.propertyIsEnumerable.call(Pe,w[te])&&(K[w[te]]=Pe[w[te]]);return K},A=Pe=>{const{prefixCls:se,className:K,rootClassName:w,style:te,valueStyle:ne,value:z=0,title:x,valueRender:T,prefix:G,suffix:ve,loading:We=!1,formatter:st,precision:_e,decimalSeparator:Ke=".",groupSeparator:Ve=",",onMouseEnter:rt,onMouseLeave:Ae}=Pe,Tt=H(Pe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:tt,direction:Pt,className:Xe,style:Qe}=(0,q.dj)("statistic"),Ne=tt("statistic",se),[Oe,re,Fe]=W(Ne),Re=l.createElement(C,{decimalSeparator:Ke,groupSeparator:Ve,prefixCls:Ne,formatter:st,precision:_e,value:z}),Z=F()(Ne,{[`${Ne}-rtl`]:Pt==="rtl"},Xe,K,w,re,Fe),O=(0,g.Z)(Tt,{aria:!0,data:!0});return Oe(l.createElement("div",Object.assign({},O,{className:Z,style:Object.assign(Object.assign({},Qe),te),onMouseEnter:rt,onMouseLeave:Ae}),x&&l.createElement("div",{className:`${Ne}-title`},x),l.createElement(Q.Z,{paragraph:!1,loading:We,className:`${Ne}-skeleton`},l.createElement("div",{style:ne,className:`${Ne}-content`},G&&l.createElement("span",{className:`${Ne}-content-prefix`},G),T?T(Re):Re,ve&&l.createElement("span",{className:`${Ne}-content-suffix`},ve)))))};const V=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function R(Pe,se){let K=Pe;const w=/\[[^\]]*]/g,te=(se.match(w)||[]).map(T=>T.slice(1,-1)),ne=se.replace(w,"[]"),z=V.reduce((T,G)=>{let[ve,We]=G;if(T.includes(ve)){const st=Math.floor(K/We);return K-=st*We,T.replace(new RegExp(`${ve}+`,"g"),_e=>{const Ke=_e.length;return st.toString().padStart(Ke,"0")})}return T},ne);let x=0;return z.replace(w,()=>{const T=te[x];return x+=1,T})}function L(Pe,se){const{format:K=""}=se,w=new Date(Pe).getTime(),te=Date.now(),ne=Math.max(w-te,0);return R(ne,K)}var ae=function(Pe,se){var K={};for(var w in Pe)Object.prototype.hasOwnProperty.call(Pe,w)&&se.indexOf(w)<0&&(K[w]=Pe[w]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,w=Object.getOwnPropertySymbols(Pe);te<w.length;te++)se.indexOf(w[te])<0&&Object.prototype.propertyIsEnumerable.call(Pe,w[te])&&(K[w[te]]=Pe[w[te]]);return K};const pe=1e3/30;function ce(Pe){return new Date(Pe).getTime()}const Le=Pe=>{const{value:se,format:K="HH:mm:ss",onChange:w,onFinish:te}=Pe,ne=ae(Pe,["value","format","onChange","onFinish"]),z=(0,ie.Z)(),x=l.useRef(null),T=()=>{te==null||te(),x.current&&(clearInterval(x.current),x.current=null)},G=()=>{const st=ce(se);st>=Date.now()&&(x.current=setInterval(()=>{z(),w==null||w(st-Date.now()),st<Date.now()&&T()},pe))};l.useEffect(()=>(G(),()=>{x.current&&(clearInterval(x.current),x.current=null)}),[se]);const ve=(st,_e)=>L(st,Object.assign(Object.assign({},_e),{format:K})),We=st=>(0,U.Tm)(st,{title:void 0});return l.createElement(A,Object.assign({},ne,{value:se,valueRender:We,formatter:ve}))};var $e=l.memo(Le);A.Countdown=$e;var Te=A},93873:function(ln,qe,d){"use strict";d.d(qe,{Fm:function(){return y}});var l=d(36237),ie=d(48746);const U=new l.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),le=new l.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),F=new l.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 l.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new l.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q=new l.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),o=new l.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),C=new l.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),P={"move-up":{inKeyframes:o,outKeyframes:C},"move-down":{inKeyframes:U,outKeyframes:le},"move-left":{inKeyframes:F,outKeyframes:g},"move-right":{inKeyframes:q,outKeyframes:Q}},y=(S,I)=>{const{antCls:N}=S,W=`${N}-${I}`,{inKeyframes:H,outKeyframes:j}=P[I];return[(0,ie.R)(W,H,j,S.motionDurationMid),{[`
|
|
|
${W}-enter,
|
|
|
${W}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:S.motionEaseOutCirc},[`${W}-leave`]:{animationTimingFunction:S.motionEaseInOutCirc}}]}},46e3:function(ln,qe,d){"use strict";d.d(qe,{Qt:function(){return F},Uw:function(){return le},fJ:function(){return U},ly:function(){return g},oN:function(){return y}});var l=d(36237),ie=d(48746);const U=new l.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),le=new l.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new l.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new l.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),q=new l.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Q=new l.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new l.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),C=new l.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),P={"slide-up":{inKeyframes:U,outKeyframes:le},"slide-down":{inKeyframes:F,outKeyframes:g},"slide-left":{inKeyframes:q,outKeyframes:Q},"slide-right":{inKeyframes:o,outKeyframes:C}},y=(S,I)=>{const{antCls:N}=S,W=`${N}-${I}`,{inKeyframes:H,outKeyframes:j}=P[I];return[(0,ie.R)(W,H,j,S.motionDurationMid),{[`
|
|
|
${W}-enter,
|
|
|
${W}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:S.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${W}-leave`]:{animationTimingFunction:S.motionEaseInQuint}}]}},37645:function(ln,qe,d){"use strict";d.d(qe,{ZP:function(){return g},qN:function(){return U},wZ:function(){return le}});var l=d(36237),ie=d(36305);const U=8;function le(q){const{contentRadius:Q,limitVerticalRadius:o}=q,C=Q>12?Q+2:12;return{arrowOffsetHorizontal:C,arrowOffsetVertical:o?U:C}}function F(q,Q){return q?Q:{}}function g(q,Q,o){const{componentCls:C,boxShadowPopoverArrow:P,arrowOffsetVertical:y,arrowOffsetHorizontal:S}=q,{arrowDistance:I=0,arrowPlacement:N={left:!0,right:!0,top:!0,bottom:!0}}=o||{};return{[C]:Object.assign(Object.assign(Object.assign(Object.assign({[`${C}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,ie.W)(q,Q,P)),{"&:before":{background:Q}})]},F(!!N.top,{[[`&-placement-top > ${C}-arrow`,`&-placement-topLeft > ${C}-arrow`,`&-placement-topRight > ${C}-arrow`].join(",")]:{bottom:I,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":S,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:S}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,l.unit)(S)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:S}}}})),F(!!N.bottom,{[[`&-placement-bottom > ${C}-arrow`,`&-placement-bottomLeft > ${C}-arrow`,`&-placement-bottomRight > ${C}-arrow`].join(",")]:{top:I,transform:"translateY(-100%)"},[`&-placement-bottom > ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":S,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:S}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,l.unit)(S)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:S}}}})),F(!!N.left,{[[`&-placement-left > ${C}-arrow`,`&-placement-leftTop > ${C}-arrow`,`&-placement-leftBottom > ${C}-arrow`].join(",")]:{right:{_skip_check_:!0,value:I},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${C}-arrow`]:{top:y},[`&-placement-leftBottom > ${C}-arrow`]:{bottom:y}})),F(!!N.right,{[[`&-placement-right > ${C}-arrow`,`&-placement-rightTop > ${C}-arrow`,`&-placement-rightBottom > ${C}-arrow`].join(",")]:{left:{_skip_check_:!0,value:I},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${C}-arrow`]:{top:y},[`&-placement-rightBottom > ${C}-arrow`]:{bottom:y}}))}}},36305:function(ln,qe,d){"use strict";d.d(qe,{W:function(){return U},w:function(){return ie}});var l=d(36237);function ie(le){const{sizePopupArrow:F,borderRadiusXS:g,borderRadiusOuter:q}=le,Q=F/2,o=0,C=Q,P=q*1/Math.sqrt(2),y=Q-q*(1-1/Math.sqrt(2)),S=Q-g*(1/Math.sqrt(2)),I=q*(Math.sqrt(2)-1)+g*(1/Math.sqrt(2)),N=2*Q-S,W=I,H=2*Q-P,j=y,A=2*Q-o,V=C,R=Q*Math.sqrt(2)+q*(Math.sqrt(2)-2),L=q*(Math.sqrt(2)-1),ae=`polygon(${L}px 100%, 50% ${L}px, ${2*Q-L}px 100%, ${L}px 100%)`,pe=`path('M ${o} ${C} A ${q} ${q} 0 0 0 ${P} ${y} L ${S} ${I} A ${g} ${g} 0 0 1 ${N} ${W} L ${H} ${j} A ${q} ${q} 0 0 0 ${A} ${V} Z')`;return{arrowShadowWidth:R,arrowPath:pe,arrowPolygon:ae}}const U=(le,F,g)=>{const{sizePopupArrow:q,arrowPolygon:Q,arrowPath:o,arrowShadowWidth:C,borderRadiusXS:P,calc:y}=le;return{pointerEvents:"none",width:q,height:q,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:q,height:y(q).div(2).equal(),background:F,clipPath:{_multi_value_:!0,value:[Q,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:C,height:C,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,l.unit)(P)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}}},70858:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return Go}});var l=d(59301),ie={},U="rc-table-internal-hook",le=d(72190),F=d(6089),g=d(34280),q=d(13697),Q=d(4676);function o(de){var ue=l.createContext(void 0),ze=function(St){var It=St.value,Nt=St.children,Lt=l.useRef(It);Lt.current=It;var Zt=l.useState(function(){return{getValue:function(){return Lt.current},listeners:new Set}}),Ft=(0,le.Z)(Zt,1),bn=Ft[0];return(0,g.Z)(function(){(0,Q.unstable_batchedUpdates)(function(){bn.listeners.forEach(function(rn){rn(It)})})},[It]),l.createElement(ue.Provider,{value:bn},Nt)};return{Context:ue,Provider:ze,defaultValue:de}}function C(de,ue){var ze=(0,F.Z)(typeof ue=="function"?ue:function(rn){if(ue===void 0)return rn;if(!Array.isArray(ue))return rn[ue];var tn={};return ue.forEach(function(B){tn[B]=rn[B]}),tn}),nt=l.useContext(de==null?void 0:de.Context),St=nt||{},It=St.listeners,Nt=St.getValue,Lt=l.useRef();Lt.current=ze(nt?Nt():de==null?void 0:de.defaultValue);var Zt=l.useState({}),Ft=(0,le.Z)(Zt,2),bn=Ft[1];return(0,g.Z)(function(){if(!nt)return;function rn(tn){var B=ze(tn);(0,q.Z)(Lt.current,B,!0)||bn({})}return It.add(rn),function(){It.delete(rn)}},[nt]),Lt.current}var P=d(60499),y=d(8654);function S(){var de=l.createContext(null);function ue(){return l.useContext(de)}function ze(St,It){var Nt=(0,y.Yr)(St),Lt=function(Ft,bn){var rn=Nt?{ref:bn}:{},tn=l.useRef(0),B=l.useRef(Ft),u=ue();return u!==null?l.createElement(St,(0,P.Z)({},Ft,rn)):((!It||It(B.current,Ft))&&(tn.current+=1),B.current=Ft,l.createElement(de.Provider,{value:tn.current},l.createElement(St,(0,P.Z)({},Ft,rn))))};return Nt?l.forwardRef(Lt):Lt}function nt(St,It){var Nt=(0,y.Yr)(St),Lt=function(Ft,bn){var rn=Nt?{ref:bn}:{};return ue(),l.createElement(St,(0,P.Z)({},Ft,rn))};return Nt?l.memo(l.forwardRef(Lt),It):l.memo(Lt,It)}return{makeImmutable:ze,responseImmutable:nt,useImmutableMark:ue}}var I=S(),N=I.makeImmutable,W=I.responseImmutable,H=I.useImmutableMark,j=S(),A=j.makeImmutable,V=j.responseImmutable,R=j.useImmutableMark,L=o(),ae=L;function pe(de,ue){var ze=React.useRef(0);ze.current+=1;var nt=React.useRef(de),St=[];Object.keys(de||{}).map(function(Nt){var Lt;(de==null?void 0:de[Nt])!==((Lt=nt.current)===null||Lt===void 0?void 0:Lt[Nt])&&St.push(Nt)}),nt.current=de;var It=React.useRef([]);return St.length&&(It.current=St),React.useDebugValue(ze.current),React.useDebugValue(It.current.join(", ")),ue&&console.log("".concat(ue,":"),ze.current,It.current),ze.current}var ce=null,Le=null,$e=d(43749),Te=d(85899),Pe=d(18642),se=d(92310),K=d.n(se),w=d(80547),te=d(97938),ne=d(48736),z=l.createContext({renderWithProps:!1}),x=z,T="RC_TABLE_KEY";function G(de){return de==null?[]:Array.isArray(de)?de:[de]}function ve(de){var ue=[],ze={};return de.forEach(function(nt){for(var St=nt||{},It=St.key,Nt=St.dataIndex,Lt=It||G(Nt).join("-")||T;ze[Lt];)Lt="".concat(Lt,"_next");ze[Lt]=!0,ue.push(Lt)}),ue}function We(de){return de!=null}function st(de){return typeof de=="number"&&!Number.isNaN(de)}function _e(de){return de&&(0,$e.Z)(de)==="object"&&!Array.isArray(de)&&!l.isValidElement(de)}function Ke(de,ue,ze,nt,St,It){var Nt=l.useContext(x),Lt=R(),Zt=(0,w.Z)(function(){if(We(nt))return[nt];var Ft=ue==null||ue===""?[]:Array.isArray(ue)?ue:[ue],bn=(0,te.Z)(de,Ft),rn=bn,tn=void 0;if(St){var B=St(bn,de,ze);_e(B)?(rn=B.children,tn=B.props,Nt.renderWithProps=!0):rn=B}return[rn,tn]},[Lt,de,nt,ue,St,ze],function(Ft,bn){if(It){var rn=(0,le.Z)(Ft,2),tn=rn[1],B=(0,le.Z)(bn,2),u=B[1];return It(u,tn)}return Nt.renderWithProps?!0:!(0,q.Z)(Ft,bn,!0)});return Zt}function Ve(de,ue,ze,nt){var St=de+ue-1;return de<=nt&&St>=ze}function rt(de,ue){return C(ae,function(ze){var nt=Ve(de,ue||1,ze.hoverStartRow,ze.hoverEndRow);return[nt,ze.onHover]})}var Ae=d(70425),Tt=function(ue){var ze=ue.ellipsis,nt=ue.rowType,St=ue.children,It,Nt=ze===!0?{showTitle:!0}:ze;return Nt&&(Nt.showTitle||nt==="header")&&(typeof St=="string"||typeof St=="number"?It=St.toString():l.isValidElement(St)&&typeof St.props.children=="string"&&(It=St.props.children)),It};function tt(de){var ue,ze,nt,St,It,Nt,Lt,Zt,Ft=de.component,bn=de.children,rn=de.ellipsis,tn=de.scope,B=de.prefixCls,u=de.className,f=de.align,h=de.record,b=de.render,M=de.dataIndex,Y=de.renderIndex,Se=de.shouldCellUpdate,Me=de.index,et=de.rowType,wt=de.colSpan,Mt=de.rowSpan,Ut=de.fixLeft,nn=de.fixRight,dn=de.firstFixLeft,fn=de.lastFixLeft,Tn=de.firstFixRight,xn=de.lastFixRight,wn=de.appendNode,kn=de.additionalProps,Jn=kn===void 0?{}:kn,tr=de.isSticky,Un="".concat(B,"-cell"),Er=C(ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ar=Er.supportSticky,gi=Er.allColumnsFixedLeft,ni=Er.rowHoverable,kt=Ke(h,M,Y,bn,b,Se),vi=(0,le.Z)(kt,2),ts=vi[0],Xr=vi[1],Fr={},Yi=typeof Ut=="number"&&Ar,Xi=typeof nn=="number"&&Ar;Yi&&(Fr.position="sticky",Fr.left=Ut),Xi&&(Fr.position="sticky",Fr.right=nn);var Cr=(ue=(ze=(nt=Xr==null?void 0:Xr.colSpan)!==null&&nt!==void 0?nt:Jn.colSpan)!==null&&ze!==void 0?ze:wt)!==null&&ue!==void 0?ue:1,Vr=(St=(It=(Nt=Xr==null?void 0:Xr.rowSpan)!==null&&Nt!==void 0?Nt:Jn.rowSpan)!==null&&It!==void 0?It:Mt)!==null&&St!==void 0?St:1,pr=rt(Me,Vr),Sr=(0,le.Z)(pr,2),ai=Sr[0],hi=Sr[1],Ui=(0,Ae.zX)(function(Ki){var Ei;h&&hi(Me,Me+Vr-1),Jn==null||(Ei=Jn.onMouseEnter)===null||Ei===void 0||Ei.call(Jn,Ki)}),Ni=(0,Ae.zX)(function(Ki){var Ei;h&&hi(-1,-1),Jn==null||(Ei=Jn.onMouseLeave)===null||Ei===void 0||Ei.call(Jn,Ki)});if(Cr===0||Vr===0)return null;var Hi=(Lt=Jn.title)!==null&&Lt!==void 0?Lt:Tt({rowType:et,ellipsis:rn,children:ts}),As=K()(Un,u,(Zt={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(Zt,"".concat(Un,"-fix-left"),Yi&&Ar),"".concat(Un,"-fix-left-first"),dn&&Ar),"".concat(Un,"-fix-left-last"),fn&&Ar),"".concat(Un,"-fix-left-all"),fn&&gi&&Ar),"".concat(Un,"-fix-right"),Xi&&Ar),"".concat(Un,"-fix-right-first"),Tn&&Ar),"".concat(Un,"-fix-right-last"),xn&&Ar),"".concat(Un,"-ellipsis"),rn),"".concat(Un,"-with-append"),wn),"".concat(Un,"-fix-sticky"),(Yi||Xi)&&tr&&Ar),(0,Pe.Z)(Zt,"".concat(Un,"-row-hover"),!Xr&&ai)),Jn.className,Xr==null?void 0:Xr.className),wr={};f&&(wr.textAlign=f);var Mr=(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Xr==null?void 0:Xr.style),Fr),wr),Jn.style),xi=ts;return(0,$e.Z)(xi)==="object"&&!Array.isArray(xi)&&!l.isValidElement(xi)&&(xi=null),rn&&(fn||Tn)&&(xi=l.createElement("span",{className:"".concat(Un,"-content")},xi)),l.createElement(Ft,(0,P.Z)({},Xr,Jn,{className:As,style:Mr,title:Hi,scope:tn,onMouseEnter:ni?Ui:void 0,onMouseLeave:ni?Ni:void 0,colSpan:Cr!==1?Cr:null,rowSpan:Vr!==1?Vr:null}),wn,xi)}var Pt=l.memo(tt);function Xe(de,ue,ze,nt,St){var It=ze[de]||{},Nt=ze[ue]||{},Lt,Zt;It.fixed==="left"?Lt=nt.left[St==="rtl"?ue:de]:Nt.fixed==="right"&&(Zt=nt.right[St==="rtl"?de:ue]);var Ft=!1,bn=!1,rn=!1,tn=!1,B=ze[ue+1],u=ze[de-1],f=B&&!B.fixed||u&&!u.fixed||ze.every(function(Se){return Se.fixed==="left"});if(St==="rtl"){if(Lt!==void 0){var h=u&&u.fixed==="left";tn=!h&&f}else if(Zt!==void 0){var b=B&&B.fixed==="right";rn=!b&&f}}else if(Lt!==void 0){var M=B&&B.fixed==="left";Ft=!M&&f}else if(Zt!==void 0){var Y=u&&u.fixed==="right";bn=!Y&&f}return{fixLeft:Lt,fixRight:Zt,lastFixLeft:Ft,firstFixRight:bn,lastFixRight:rn,firstFixLeft:tn,isSticky:nt.isSticky}}var Qe=l.createContext({}),Ne=Qe;function Oe(de){var ue=de.className,ze=de.index,nt=de.children,St=de.colSpan,It=St===void 0?1:St,Nt=de.rowSpan,Lt=de.align,Zt=C(ae,["prefixCls","direction"]),Ft=Zt.prefixCls,bn=Zt.direction,rn=l.useContext(Ne),tn=rn.scrollColumnIndex,B=rn.stickyOffsets,u=rn.flattenColumns,f=ze+It-1,h=f+1===tn?It+1:It,b=Xe(ze,ze+h-1,u,B,bn);return l.createElement(Pt,(0,P.Z)({className:ue,index:ze,component:"td",prefixCls:Ft,record:null,dataIndex:null,align:Lt,colSpan:h,rowSpan:Nt,render:function(){return nt}},b))}var re=d(42244),Fe=["children"];function Re(de){var ue=de.children,ze=(0,re.Z)(de,Fe);return l.createElement("tr",ze,ue)}function Z(de){var ue=de.children;return ue}Z.Row=Re,Z.Cell=Oe;var O=Z;function me(de){var ue=de.children,ze=de.stickyOffsets,nt=de.flattenColumns,St=C(ae,"prefixCls"),It=nt.length-1,Nt=nt[It],Lt=l.useMemo(function(){return{stickyOffsets:ze,flattenColumns:nt,scrollColumnIndex:Nt!=null&&Nt.scrollbar?It:null}},[Nt,nt,It,ze]);return l.createElement(Ne.Provider,{value:Lt},l.createElement("tfoot",{className:"".concat(St,"-summary")},ue))}var Ee=V(me),ge=O,we=d(29301),ke=d(24514),Ye=d(75152),oe=d(26112);function fe(de,ue,ze,nt,St,It,Nt){de.push({record:ue,indent:ze,index:Nt});var Lt=It(ue),Zt=St==null?void 0:St.has(Lt);if(ue&&Array.isArray(ue[nt])&&Zt)for(var Ft=0;Ft<ue[nt].length;Ft+=1)fe(de,ue[nt][Ft],ze+1,nt,St,It,Ft)}function dt(de,ue,ze,nt){var St=l.useMemo(function(){if(ze!=null&&ze.size){for(var It=[],Nt=0;Nt<(de==null?void 0:de.length);Nt+=1){var Lt=de[Nt];fe(It,Lt,0,ue,ze,nt,Nt)}return It}return de==null?void 0:de.map(function(Zt,Ft){return{record:Zt,indent:0,index:Ft}})},[de,ue,ze,nt]);return St}function ot(de,ue,ze,nt){var St=C(ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),It=St.flattenColumns,Nt=St.expandableType,Lt=St.expandedKeys,Zt=St.childrenColumnName,Ft=St.onTriggerExpand,bn=St.rowExpandable,rn=St.onRow,tn=St.expandRowByClick,B=St.rowClassName,u=Nt==="nest",f=Nt==="row"&&(!bn||bn(de)),h=f||u,b=Lt&&Lt.has(ue),M=Zt&&de&&de[Zt],Y=(0,Ae.zX)(Ft),Se=rn==null?void 0:rn(de,ze),Me=Se==null?void 0:Se.onClick,et=function(nn){tn&&h&&Ft(de,nn);for(var dn=arguments.length,fn=new Array(dn>1?dn-1:0),Tn=1;Tn<dn;Tn++)fn[Tn-1]=arguments[Tn];Me==null||Me.apply(void 0,[nn].concat(fn))},wt;typeof B=="string"?wt=B:typeof B=="function"&&(wt=B(de,ze,nt));var Mt=ve(It);return(0,Te.Z)((0,Te.Z)({},St),{},{columnsKey:Mt,nestExpandable:u,expanded:b,hasNestChildren:M,record:de,onTriggerExpand:Y,rowSupportExpand:f,expandable:h,rowProps:(0,Te.Z)((0,Te.Z)({},Se),{},{className:K()(wt,Se==null?void 0:Se.className),onClick:et})})}function ft(de){var ue=de.prefixCls,ze=de.children,nt=de.component,St=de.cellComponent,It=de.className,Nt=de.expanded,Lt=de.colSpan,Zt=de.isEmpty,Ft=C(ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),bn=Ft.scrollbarSize,rn=Ft.fixHeader,tn=Ft.fixColumn,B=Ft.componentWidth,u=Ft.horizonScroll,f=ze;return(Zt?u&&B:tn)&&(f=l.createElement("div",{style:{width:B-(rn&&!Zt?bn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ue,"-expanded-row-fixed")},f)),l.createElement(nt,{className:It,style:{display:Nt?null:"none"}},l.createElement(Pt,{component:St,prefixCls:ue,colSpan:Lt},f))}var ht=ft;function Ge(de){var ue=de.prefixCls,ze=de.record,nt=de.onExpand,St=de.expanded,It=de.expandable,Nt="".concat(ue,"-row-expand-icon");if(!It)return l.createElement("span",{className:K()(Nt,"".concat(ue,"-row-spaced"))});var Lt=function(Ft){nt(ze,Ft),Ft.stopPropagation()};return l.createElement("span",{className:K()(Nt,(0,Pe.Z)((0,Pe.Z)({},"".concat(ue,"-row-expanded"),St),"".concat(ue,"-row-collapsed"),!St)),onClick:Lt})}function Ct(de,ue,ze){var nt=[];function St(It){(It||[]).forEach(function(Nt,Lt){nt.push(ue(Nt,Lt)),St(Nt[ze])})}return St(de),nt}function gt(de,ue,ze,nt){return typeof de=="string"?de:typeof de=="function"?de(ue,ze,nt):""}function Ce(de,ue,ze,nt,St){var It=de.record,Nt=de.prefixCls,Lt=de.columnsKey,Zt=de.fixedInfoList,Ft=de.expandIconColumnIndex,bn=de.nestExpandable,rn=de.indentSize,tn=de.expandIcon,B=de.expanded,u=de.hasNestChildren,f=de.onTriggerExpand,h=Lt[ze],b=Zt[ze],M;ze===(Ft||0)&&bn&&(M=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(rn*nt,"px")},className:"".concat(Nt,"-row-indent indent-level-").concat(nt)}),tn({prefixCls:Nt,expanded:B,expandable:u,record:It,onExpand:f})));var Y;return ue.onCell&&(Y=ue.onCell(It,St)),{key:h,fixedInfo:b,appendCellNode:M,additionalCellProps:Y||{}}}function Je(de){var ue=de.className,ze=de.style,nt=de.record,St=de.index,It=de.renderIndex,Nt=de.rowKey,Lt=de.indent,Zt=Lt===void 0?0:Lt,Ft=de.rowComponent,bn=de.cellComponent,rn=de.scopeCellComponent,tn=ot(nt,Nt,St,Zt),B=tn.prefixCls,u=tn.flattenColumns,f=tn.expandedRowClassName,h=tn.expandedRowRender,b=tn.rowProps,M=tn.expanded,Y=tn.rowSupportExpand,Se=l.useRef(!1);Se.current||(Se.current=M);var Me=gt(f,nt,St,Zt),et=l.createElement(Ft,(0,P.Z)({},b,{"data-row-key":Nt,className:K()(ue,"".concat(B,"-row"),"".concat(B,"-row-level-").concat(Zt),b==null?void 0:b.className,(0,Pe.Z)({},Me,Zt>=1)),style:(0,Te.Z)((0,Te.Z)({},ze),b==null?void 0:b.style)}),u.map(function(Ut,nn){var dn=Ut.render,fn=Ut.dataIndex,Tn=Ut.className,xn=Ce(tn,Ut,nn,Zt,St),wn=xn.key,kn=xn.fixedInfo,Jn=xn.appendCellNode,tr=xn.additionalCellProps;return l.createElement(Pt,(0,P.Z)({className:Tn,ellipsis:Ut.ellipsis,align:Ut.align,scope:Ut.rowScope,component:Ut.rowScope?rn:bn,prefixCls:B,key:wn,record:nt,index:St,renderIndex:It,dataIndex:fn,render:dn,shouldCellUpdate:Ut.shouldCellUpdate},kn,{appendNode:Jn,additionalProps:tr}))})),wt;if(Y&&(Se.current||M)){var Mt=h(nt,St,Zt+1,M);wt=l.createElement(ht,{expanded:M,className:K()("".concat(B,"-expanded-row"),"".concat(B,"-expanded-row-level-").concat(Zt+1),Me),prefixCls:B,component:Ft,cellComponent:bn,colSpan:u.length,isEmpty:!1},Mt)}return l.createElement(l.Fragment,null,et,wt)}var _=V(Je);function D(de){var ue=de.columnKey,ze=de.onColumnResize,nt=l.useRef();return(0,g.Z)(function(){nt.current&&ze(ue,nt.current.offsetWidth)},[]),l.createElement(we.Z,{data:ue},l.createElement("td",{ref:nt,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ze=d(29194);function ee(de){var ue=de.prefixCls,ze=de.columnsKey,nt=de.onColumnResize,St=l.useRef(null);return l.createElement("tr",{"aria-hidden":"true",className:"".concat(ue,"-measure-row"),style:{height:0,fontSize:0},ref:St},l.createElement(we.Z.Collection,{onBatchResize:function(Nt){(0,Ze.Z)(St.current)&&Nt.forEach(function(Lt){var Zt=Lt.data,Ft=Lt.size;nt(Zt,Ft.offsetWidth)})}},ze.map(function(It){return l.createElement(D,{key:It,columnKey:It,onColumnResize:nt})})))}function ye(de){var ue=de.data,ze=de.measureColumnWidth,nt=C(ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),St=nt.prefixCls,It=nt.getComponent,Nt=nt.onColumnResize,Lt=nt.flattenColumns,Zt=nt.getRowKey,Ft=nt.expandedKeys,bn=nt.childrenColumnName,rn=nt.emptyNode,tn=dt(ue,bn,Ft,Zt),B=l.useRef({renderWithProps:!1}),u=It(["body","wrapper"],"tbody"),f=It(["body","row"],"tr"),h=It(["body","cell"],"td"),b=It(["body","cell"],"th"),M;ue.length?M=tn.map(function(Se,Me){var et=Se.record,wt=Se.indent,Mt=Se.index,Ut=Zt(et,Me);return l.createElement(_,{key:Ut,rowKey:Ut,record:et,index:Me,renderIndex:Mt,rowComponent:f,cellComponent:h,scopeCellComponent:b,indent:wt})}):M=l.createElement(ht,{expanded:!0,className:"".concat(St,"-placeholder"),prefixCls:St,component:f,cellComponent:h,colSpan:Lt.length,isEmpty:!0},rn);var Y=ve(Lt);return l.createElement(x.Provider,{value:B.current},l.createElement(u,{className:"".concat(St,"-tbody")},ze&&l.createElement(ee,{prefixCls:St,columnsKey:Y,onColumnResize:Nt}),M))}var Ot=V(ye),He=["expandable"],it="RC_TABLE_INTERNAL_COL_DEFINE";function ct(de){var ue=de.expandable,ze=(0,re.Z)(de,He),nt;return"expandable"in de?nt=(0,Te.Z)((0,Te.Z)({},ze),ue):nt=ze,nt.showExpandColumn===!1&&(nt.expandIconColumnIndex=-1),nt}var he=["columnType"];function be(de){for(var ue=de.colWidths,ze=de.columns,nt=de.columCount,St=C(ae,["tableLayout"]),It=St.tableLayout,Nt=[],Lt=nt||ze.length,Zt=!1,Ft=Lt-1;Ft>=0;Ft-=1){var bn=ue[Ft],rn=ze&&ze[Ft],tn=void 0,B=void 0;if(rn&&(tn=rn[it],It==="auto"&&(B=rn.minWidth)),bn||B||tn||Zt){var u=tn||{},f=u.columnType,h=(0,re.Z)(u,he);Nt.unshift(l.createElement("col",(0,P.Z)({key:Ft,style:{width:bn,minWidth:B}},h))),Zt=!0}}return l.createElement("colgroup",null,Nt)}var je=be,Ue=d(77654),$=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ut(de,ue){return(0,l.useMemo)(function(){for(var ze=[],nt=0;nt<ue;nt+=1){var St=de[nt];if(St!==void 0)ze[nt]=St;else return null}return ze},[de.join("_"),ue])}var xe=l.forwardRef(function(de,ue){var ze=de.className,nt=de.noData,St=de.columns,It=de.flattenColumns,Nt=de.colWidths,Lt=de.columCount,Zt=de.stickyOffsets,Ft=de.direction,bn=de.fixHeader,rn=de.stickyTopOffset,tn=de.stickyBottomOffset,B=de.stickyClassName,u=de.onScroll,f=de.maxContentScroll,h=de.children,b=(0,re.Z)(de,$),M=C(ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),Y=M.prefixCls,Se=M.scrollbarSize,Me=M.isSticky,et=M.getComponent,wt=et(["header","table"],"table"),Mt=Me&&!bn?0:Se,Ut=l.useRef(null),nn=l.useCallback(function(tr){(0,y.mH)(ue,tr),(0,y.mH)(Ut,tr)},[]);l.useEffect(function(){var tr;function Un(Er){var Ar=Er,gi=Ar.currentTarget,ni=Ar.deltaX;ni&&(u({currentTarget:gi,scrollLeft:gi.scrollLeft+ni}),Er.preventDefault())}return(tr=Ut.current)===null||tr===void 0||tr.addEventListener("wheel",Un,{passive:!1}),function(){var Er;(Er=Ut.current)===null||Er===void 0||Er.removeEventListener("wheel",Un)}},[]);var dn=l.useMemo(function(){return It.every(function(tr){return tr.width})},[It]),fn=It[It.length-1],Tn={fixed:fn?fn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Y,"-cell-scrollbar")}}},xn=(0,l.useMemo)(function(){return Mt?[].concat((0,Ue.Z)(St),[Tn]):St},[Mt,St]),wn=(0,l.useMemo)(function(){return Mt?[].concat((0,Ue.Z)(It),[Tn]):It},[Mt,It]),kn=(0,l.useMemo)(function(){var tr=Zt.right,Un=Zt.left;return(0,Te.Z)((0,Te.Z)({},Zt),{},{left:Ft==="rtl"?[].concat((0,Ue.Z)(Un.map(function(Er){return Er+Mt})),[0]):Un,right:Ft==="rtl"?tr:[].concat((0,Ue.Z)(tr.map(function(Er){return Er+Mt})),[0]),isSticky:Me})},[Mt,Zt,Me]),Jn=ut(Nt,Lt);return l.createElement("div",{style:(0,Te.Z)({overflow:"hidden"},Me?{top:rn,bottom:tn}:{}),ref:nn,className:K()(ze,(0,Pe.Z)({},B,!!B))},l.createElement(wt,{style:{tableLayout:"fixed",visibility:nt||Jn?null:"hidden"}},(!nt||!f||dn)&&l.createElement(je,{colWidths:Jn?[].concat((0,Ue.Z)(Jn),[Mt]):[],columCount:Lt+1,columns:wn}),h((0,Te.Z)((0,Te.Z)({},b),{},{stickyOffsets:kn,columns:xn,flattenColumns:wn}))))}),At=l.memo(xe),zt=function(ue){var ze=ue.cells,nt=ue.stickyOffsets,St=ue.flattenColumns,It=ue.rowComponent,Nt=ue.cellComponent,Lt=ue.onHeaderRow,Zt=ue.index,Ft=C(ae,["prefixCls","direction"]),bn=Ft.prefixCls,rn=Ft.direction,tn;Lt&&(tn=Lt(ze.map(function(u){return u.column}),Zt));var B=ve(ze.map(function(u){return u.column}));return l.createElement(It,tn,ze.map(function(u,f){var h=u.column,b=Xe(u.colStart,u.colEnd,St,nt,rn),M;return h&&h.onHeaderCell&&(M=u.column.onHeaderCell(h)),l.createElement(Pt,(0,P.Z)({},u,{scope:h.title?u.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:Nt,prefixCls:bn,key:B[f]},b,{additionalProps:M,rowType:"header"}))}))},qt=zt;function cn(de){var ue=[];function ze(Nt,Lt){var Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ue[Zt]=ue[Zt]||[];var Ft=Lt,bn=Nt.filter(Boolean).map(function(rn){var tn={key:rn.key,className:rn.className||"",children:rn.title,column:rn,colStart:Ft},B=1,u=rn.children;return u&&u.length>0&&(B=ze(u,Ft,Zt+1).reduce(function(f,h){return f+h},0),tn.hasSubColumns=!0),"colSpan"in rn&&(B=rn.colSpan),"rowSpan"in rn&&(tn.rowSpan=rn.rowSpan),tn.colSpan=B,tn.colEnd=tn.colStart+B-1,ue[Zt].push(tn),Ft+=B,B});return bn}ze(de,0);for(var nt=ue.length,St=function(Lt){ue[Lt].forEach(function(Zt){!("rowSpan"in Zt)&&!Zt.hasSubColumns&&(Zt.rowSpan=nt-Lt)})},It=0;It<nt;It+=1)St(It);return ue}var gn=function(ue){var ze=ue.stickyOffsets,nt=ue.columns,St=ue.flattenColumns,It=ue.onHeaderRow,Nt=C(ae,["prefixCls","getComponent"]),Lt=Nt.prefixCls,Zt=Nt.getComponent,Ft=l.useMemo(function(){return cn(nt)},[nt]),bn=Zt(["header","wrapper"],"thead"),rn=Zt(["header","row"],"tr"),tn=Zt(["header","cell"],"th");return l.createElement(bn,{className:"".concat(Lt,"-thead")},Ft.map(function(B,u){var f=l.createElement(qt,{key:u,flattenColumns:St,cells:B,stickyOffsets:ze,rowComponent:rn,cellComponent:tn,onHeaderRow:It,index:u});return f}))},En=V(gn),Fn=d(11592);function Hn(de){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ue=="number"?ue:ue.endsWith("%")?de*parseFloat(ue)/100:null}function An(de,ue,ze){return l.useMemo(function(){if(ue&&ue>0){var nt=0,St=0;de.forEach(function(tn){var B=Hn(ue,tn.width);B?nt+=B:St+=1});var It=Math.max(ue,ze),Nt=Math.max(It-nt,St),Lt=St,Zt=Nt/St,Ft=0,bn=de.map(function(tn){var B=(0,Te.Z)({},tn),u=Hn(ue,B.width);if(u)B.width=u;else{var f=Math.floor(Zt);B.width=Lt===1?Nt:f,Nt-=f,Lt-=1}return Ft+=B.width,B});if(Ft<It){var rn=It/Ft;Nt=It,bn.forEach(function(tn,B){var u=Math.floor(tn.width*rn);tn.width=B===bn.length-1?Nt:u,Nt-=u})}return[bn,Math.max(Ft,It)]}return[de,ue]},[de,ue,ze])}var qn=["children"],vn=["fixed"];function Gt(de){return(0,Fn.Z)(de).filter(function(ue){return l.isValidElement(ue)}).map(function(ue){var ze=ue.key,nt=ue.props,St=nt.children,It=(0,re.Z)(nt,qn),Nt=(0,Te.Z)({key:ze},It);return St&&(Nt.children=Gt(St)),Nt})}function Xt(de){return de.filter(function(ue){return ue&&(0,$e.Z)(ue)==="object"&&!ue.hidden}).map(function(ue){var ze=ue.children;return ze&&ze.length>0?(0,Te.Z)((0,Te.Z)({},ue),{},{children:Xt(ze)}):ue})}function Dn(de){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return de.filter(function(ze){return ze&&(0,$e.Z)(ze)==="object"}).reduce(function(ze,nt,St){var It=nt.fixed,Nt=It===!0?"left":It,Lt="".concat(ue,"-").concat(St),Zt=nt.children;return Zt&&Zt.length>0?[].concat((0,Ue.Z)(ze),(0,Ue.Z)(Dn(Zt,Lt).map(function(Ft){return(0,Te.Z)({fixed:Nt},Ft)}))):[].concat((0,Ue.Z)(ze),[(0,Te.Z)((0,Te.Z)({key:Lt},nt),{},{fixed:Nt})])},[])}function Cn(de){return de.map(function(ue){var ze=ue.fixed,nt=(0,re.Z)(ue,vn),St=ze;return ze==="left"?St="right":ze==="right"&&(St="left"),(0,Te.Z)({fixed:St},nt)})}function yt(de,ue){var ze=de.prefixCls,nt=de.columns,St=de.children,It=de.expandable,Nt=de.expandedKeys,Lt=de.columnTitle,Zt=de.getRowKey,Ft=de.onTriggerExpand,bn=de.expandIcon,rn=de.rowExpandable,tn=de.expandIconColumnIndex,B=de.direction,u=de.expandRowByClick,f=de.columnWidth,h=de.fixed,b=de.scrollWidth,M=de.clientWidth,Y=l.useMemo(function(){var fn=nt||Gt(St)||[];return Xt(fn.slice())},[nt,St]),Se=l.useMemo(function(){if(It){var fn=Y.slice();if(!fn.includes(ie)){var Tn=tn||0;Tn>=0&&(Tn||h==="left"||!h)&&fn.splice(Tn,0,ie),h==="right"&&fn.splice(Y.length,0,ie)}var xn=fn.indexOf(ie);fn=fn.filter(function(tr,Un){return tr!==ie||Un===xn});var wn=Y[xn],kn;h?kn=h:kn=wn?wn.fixed:null;var Jn=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},it,{className:"".concat(ze,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Lt),"fixed",kn),"className","".concat(ze,"-row-expand-icon-cell")),"width",f),"render",function(Un,Er,Ar){var gi=Zt(Er,Ar),ni=Nt.has(gi),kt=rn?rn(Er):!0,vi=bn({prefixCls:ze,expanded:ni,expandable:kt,record:Er,onExpand:Ft});return u?l.createElement("span",{onClick:function(Xr){return Xr.stopPropagation()}},vi):vi});return fn.map(function(tr){return tr===ie?Jn:tr})}return Y.filter(function(tr){return tr!==ie})},[It,Y,Zt,Nt,bn,B]),Me=l.useMemo(function(){var fn=Se;return ue&&(fn=ue(fn)),fn.length||(fn=[{render:function(){return null}}]),fn},[ue,Se,B]),et=l.useMemo(function(){return B==="rtl"?Cn(Dn(Me)):Dn(Me)},[Me,B,b]),wt=l.useMemo(function(){for(var fn=-1,Tn=et.length-1;Tn>=0;Tn-=1){var xn=et[Tn].fixed;if(xn==="left"||xn===!0){fn=Tn;break}}if(fn>=0)for(var wn=0;wn<=fn;wn+=1){var kn=et[wn].fixed;if(kn!=="left"&&kn!==!0)return!0}var Jn=et.findIndex(function(Er){var Ar=Er.fixed;return Ar==="right"});if(Jn>=0)for(var tr=Jn;tr<et.length;tr+=1){var Un=et[tr].fixed;if(Un!=="right")return!0}return!1},[et]),Mt=An(et,b,M),Ut=(0,le.Z)(Mt,2),nn=Ut[0],dn=Ut[1];return[Me,nn,dn,wt]}var Et=yt;function Be(de,ue,ze){var nt=ct(de),St=nt.expandIcon,It=nt.expandedRowKeys,Nt=nt.defaultExpandedRowKeys,Lt=nt.defaultExpandAllRows,Zt=nt.expandedRowRender,Ft=nt.onExpand,bn=nt.onExpandedRowsChange,rn=nt.childrenColumnName,tn=St||Ge,B=rn||"children",u=l.useMemo(function(){return Zt?"row":de.expandable&&de.internalHooks===U&&de.expandable.__PARENT_RENDER_ICON__||ue.some(function(Me){return Me&&(0,$e.Z)(Me)==="object"&&Me[B]})?"nest":!1},[!!Zt,ue]),f=l.useState(function(){return Nt||(Lt?Ct(ue,ze,B):[])}),h=(0,le.Z)(f,2),b=h[0],M=h[1],Y=l.useMemo(function(){return new Set(It||b||[])},[It,b]),Se=l.useCallback(function(Me){var et=ze(Me,ue.indexOf(Me)),wt,Mt=Y.has(et);Mt?(Y.delete(et),wt=(0,Ue.Z)(Y)):wt=[].concat((0,Ue.Z)(Y),[et]),M(wt),Ft&&Ft(!Mt,Me),bn&&bn(wt)},[ze,Y,ue,Ft,bn]);return[nt,u,Y,tn,B,Se]}function lt(de,ue,ze){var nt=de.map(function(St,It){return Xe(It,It,de,ue,ze)});return(0,w.Z)(function(){return nt},[nt],function(St,It){return!(0,q.Z)(St,It)})}function vt(de){var ue=(0,l.useRef)(de),ze=(0,l.useState)({}),nt=(0,le.Z)(ze,2),St=nt[1],It=(0,l.useRef)(null),Nt=(0,l.useRef)([]);function Lt(Zt){Nt.current.push(Zt);var Ft=Promise.resolve();It.current=Ft,Ft.then(function(){if(It.current===Ft){var bn=Nt.current,rn=ue.current;Nt.current=[],bn.forEach(function(tn){ue.current=tn(ue.current)}),It.current=null,rn!==ue.current&&St({})}})}return(0,l.useEffect)(function(){return function(){It.current=null}},[]),[ue.current,Lt]}function xt(de){var ue=(0,l.useRef)(de||null),ze=(0,l.useRef)();function nt(){window.clearTimeout(ze.current)}function St(Nt){ue.current=Nt,nt(),ze.current=window.setTimeout(function(){ue.current=null,ze.current=void 0},100)}function It(){return ue.current}return(0,l.useEffect)(function(){return nt},[]),[St,It]}function Dt(){var de=l.useState(-1),ue=(0,le.Z)(de,2),ze=ue[0],nt=ue[1],St=l.useState(-1),It=(0,le.Z)(St,2),Nt=It[0],Lt=It[1],Zt=l.useCallback(function(Ft,bn){nt(Ft),Lt(bn)},[]);return[ze,Nt,Zt]}var Jt=d(47273),pn=(0,Jt.Z)()?window:null;function _n(de,ue){var ze=(0,$e.Z)(de)==="object"?de:{},nt=ze.offsetHeader,St=nt===void 0?0:nt,It=ze.offsetSummary,Nt=It===void 0?0:It,Lt=ze.offsetScroll,Zt=Lt===void 0?0:Lt,Ft=ze.getContainer,bn=Ft===void 0?function(){return pn}:Ft,rn=bn()||pn,tn=!!de;return l.useMemo(function(){return{isSticky:tn,stickyClassName:tn?"".concat(ue,"-sticky-holder"):"",offsetHeader:St,offsetSummary:Nt,offsetScroll:Zt,container:rn}},[tn,Zt,St,Nt,ue,rn])}function Vt(de,ue,ze){var nt=(0,l.useMemo)(function(){var St=ue.length,It=function(Ft,bn,rn){for(var tn=[],B=0,u=Ft;u!==bn;u+=rn)tn.push(B),ue[u].fixed&&(B+=de[u]||0);return tn},Nt=It(0,St,1),Lt=It(St-1,-1,-1).reverse();return ze==="rtl"?{left:Lt,right:Nt}:{left:Nt,right:Lt}},[de,ue,ze]);return nt}var yn=Vt;function Nn(de){var ue=de.className,ze=de.children;return l.createElement("div",{className:ue},ze)}var Sn=Nn,bt=d(8224),Rt=d(16089),Wt=d(76846);function Bt(de){var ue=(0,Wt.bn)(de),ze=ue.getBoundingClientRect(),nt=document.documentElement;return{left:ze.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:ze.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}var jt=function(ue,ze){var nt,St,It=ue.scrollBodyRef,Nt=ue.onScroll,Lt=ue.offsetScroll,Zt=ue.container,Ft=ue.direction,bn=C(ae,"prefixCls"),rn=((nt=It.current)===null||nt===void 0?void 0:nt.scrollWidth)||0,tn=((St=It.current)===null||St===void 0?void 0:St.clientWidth)||0,B=rn&&tn*(tn/rn),u=l.useRef(),f=vt({scrollLeft:0,isHiddenScrollBar:!0}),h=(0,le.Z)(f,2),b=h[0],M=h[1],Y=l.useRef({delta:0,x:0}),Se=l.useState(!1),Me=(0,le.Z)(Se,2),et=Me[0],wt=Me[1],Mt=l.useRef(null);l.useEffect(function(){return function(){Rt.Z.cancel(Mt.current)}},[]);var Ut=function(){wt(!1)},nn=function(wn){wn.persist(),Y.current.delta=wn.pageX-b.scrollLeft,Y.current.x=0,wt(!0),wn.preventDefault()},dn=function(wn){var kn,Jn=wn||((kn=window)===null||kn===void 0?void 0:kn.event),tr=Jn.buttons;if(!et||tr===0){et&&wt(!1);return}var Un=Y.current.x+wn.pageX-Y.current.x-Y.current.delta,Er=Ft==="rtl";Un=Math.max(Er?B-tn:0,Math.min(Er?0:tn-B,Un));var Ar=!Er||Math.abs(Un)+Math.abs(B)<tn;Ar&&(Nt({scrollLeft:Un/tn*(rn+2)}),Y.current.x=wn.pageX)},fn=function(){Rt.Z.cancel(Mt.current),Mt.current=(0,Rt.Z)(function(){if(It.current){var wn=Bt(It.current).top,kn=wn+It.current.offsetHeight,Jn=Zt===window?document.documentElement.scrollTop+window.innerHeight:Bt(Zt).top+Zt.clientHeight;kn-(0,Ye.Z)()<=Jn||wn>=Jn-Lt?M(function(tr){return(0,Te.Z)((0,Te.Z)({},tr),{},{isHiddenScrollBar:!0})}):M(function(tr){return(0,Te.Z)((0,Te.Z)({},tr),{},{isHiddenScrollBar:!1})})}})},Tn=function(wn){M(function(kn){return(0,Te.Z)((0,Te.Z)({},kn),{},{scrollLeft:wn/rn*tn||0})})};return l.useImperativeHandle(ze,function(){return{setScrollLeft:Tn,checkScrollBarVisible:fn}}),l.useEffect(function(){var xn=(0,bt.Z)(document.body,"mouseup",Ut,!1),wn=(0,bt.Z)(document.body,"mousemove",dn,!1);return fn(),function(){xn.remove(),wn.remove()}},[B,et]),l.useEffect(function(){if(It.current){for(var xn=[],wn=(0,Wt.bn)(It.current);wn;)xn.push(wn),wn=wn.parentElement;return xn.forEach(function(kn){return kn.addEventListener("scroll",fn,!1)}),window.addEventListener("resize",fn,!1),window.addEventListener("scroll",fn,!1),Zt.addEventListener("scroll",fn,!1),function(){xn.forEach(function(kn){return kn.removeEventListener("scroll",fn)}),window.removeEventListener("resize",fn),window.removeEventListener("scroll",fn),Zt.removeEventListener("scroll",fn)}}},[Zt]),l.useEffect(function(){b.isHiddenScrollBar||M(function(xn){var wn=It.current;return wn?(0,Te.Z)((0,Te.Z)({},xn),{},{scrollLeft:wn.scrollLeft/wn.scrollWidth*wn.clientWidth}):xn})},[b.isHiddenScrollBar]),rn<=tn||!B||b.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,Ye.Z)(),width:tn,bottom:Lt},className:"".concat(bn,"-sticky-scroll")},l.createElement("div",{onMouseDown:nn,ref:u,className:K()("".concat(bn,"-sticky-scroll-bar"),(0,Pe.Z)({},"".concat(bn,"-sticky-scroll-bar-active"),et)),style:{width:"".concat(B,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))},Qt=l.forwardRef(jt);function an(de){return null}var on=an;function Rn(de){return null}var $n=Rn,dr="rc-table",jn=[],zn={};function er(){return"No Data"}function Xn(de,ue){var ze=(0,Te.Z)({rowKey:"key",prefixCls:dr,emptyText:er},de),nt=ze.prefixCls,St=ze.className,It=ze.rowClassName,Nt=ze.style,Lt=ze.data,Zt=ze.rowKey,Ft=ze.scroll,bn=ze.tableLayout,rn=ze.direction,tn=ze.title,B=ze.footer,u=ze.summary,f=ze.caption,h=ze.id,b=ze.showHeader,M=ze.components,Y=ze.emptyText,Se=ze.onRow,Me=ze.onHeaderRow,et=ze.onScroll,wt=ze.internalHooks,Mt=ze.transformColumns,Ut=ze.internalRefs,nn=ze.tailor,dn=ze.getContainerWidth,fn=ze.sticky,Tn=ze.rowHoverable,xn=Tn===void 0?!0:Tn,wn=Lt||jn,kn=!!wn.length,Jn=wt===U,tr=l.useCallback(function(yi,Ti){return(0,te.Z)(M,yi)||Ti},[M]),Un=l.useMemo(function(){return typeof Zt=="function"?Zt:function(yi){var Ti=yi&&yi[Zt];return Ti}},[Zt]),Er=tr(["body"]),Ar=Dt(),gi=(0,le.Z)(Ar,3),ni=gi[0],kt=gi[1],vi=gi[2],ts=Be(ze,wn,Un),Xr=(0,le.Z)(ts,6),Fr=Xr[0],Yi=Xr[1],Xi=Xr[2],Cr=Xr[3],Vr=Xr[4],pr=Xr[5],Sr=Ft==null?void 0:Ft.x,ai=l.useState(0),hi=(0,le.Z)(ai,2),Ui=hi[0],Ni=hi[1],Hi=Et((0,Te.Z)((0,Te.Z)((0,Te.Z)({},ze),Fr),{},{expandable:!!Fr.expandedRowRender,columnTitle:Fr.columnTitle,expandedKeys:Xi,getRowKey:Un,onTriggerExpand:pr,expandIcon:Cr,expandIconColumnIndex:Fr.expandIconColumnIndex,direction:rn,scrollWidth:Jn&&nn&&typeof Sr=="number"?Sr:null,clientWidth:Ui}),Jn?Mt:null),As=(0,le.Z)(Hi,4),wr=As[0],Mr=As[1],xi=As[2],Ki=As[3],Ei=xi!=null?xi:Sr,$s=l.useMemo(function(){return{columns:wr,flattenColumns:Mr}},[wr,Mr]),qi=l.useRef(),na=l.useRef(),rs=l.useRef(),Bi=l.useRef();l.useImperativeHandle(ue,function(){return{nativeElement:qi.current,scrollTo:function(Ti){var Ds;if(rs.current instanceof HTMLElement){var ra=Ti.index,Rs=Ti.top,Oo=Ti.key;if(st(Rs)){var ho;(ho=rs.current)===null||ho===void 0||ho.scrollTo({top:Rs})}else{var ro,yo=Oo!=null?Oo:Un(wn[ra]);(ro=rs.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||ro===void 0||ro.scrollIntoView()}}else(Ds=rs.current)!==null&&Ds!==void 0&&Ds.scrollTo&&rs.current.scrollTo(Ti)}}});var Qi=l.useRef(),Wi=l.useState(!1),Is=(0,le.Z)(Wi,2),ys=Is[0],Di=Is[1],fs=l.useState(!1),Vi=(0,le.Z)(fs,2),Us=Vi[0],hs=Vi[1],Vs=l.useState(new Map),pa=(0,le.Z)(Vs,2),fo=pa[0],cs=pa[1],Do=ve(Mr),Gs=Do.map(function(yi){return fo.get(yi)}),ca=l.useMemo(function(){return Gs},[Gs.join("_")]),da=yn(ca,Mr,rn),qs=Ft&&We(Ft.y),Ys=Ft&&We(Ei)||!!Fr.fixed,ga=Ys&&Mr.some(function(yi){var Ti=yi.fixed;return Ti}),Ra=l.useRef(),va=_n(fn,nt),$a=va.isSticky,Xs=va.offsetHeader,Al=va.offsetSummary,cl=va.offsetScroll,fa=va.stickyClassName,dl=va.container,si=l.useMemo(function(){return u==null?void 0:u(wn)},[u,wn]),$i=(qs||$a)&&l.isValidElement(si)&&si.type===O&&si.props.fixed,Ji,bs,Qs;qs&&(bs={overflowY:kn?"scroll":"auto",maxHeight:Ft.y}),Ys&&(Ji={overflowX:"auto"},qs||(bs={overflowY:"hidden"}),Qs={width:Ei===!0?"auto":Ei,minWidth:"100%"});var ya=l.useCallback(function(yi,Ti){cs(function(Ds){if(Ds.get(yi)!==Ti){var ra=new Map(Ds);return ra.set(yi,Ti),ra}return Ds})},[]),xa=xt(null),Ks=(0,le.Z)(xa,2),Ql=Ks[0],Il=Ks[1];function Yo(yi,Ti){Ti&&(typeof Ti=="function"?Ti(yi):Ti.scrollLeft!==yi&&(Ti.scrollLeft=yi,Ti.scrollLeft!==yi&&setTimeout(function(){Ti.scrollLeft=yi},0)))}var vo=(0,F.Z)(function(yi){var Ti=yi.currentTarget,Ds=yi.scrollLeft,ra=rn==="rtl",Rs=typeof Ds=="number"?Ds:Ti.scrollLeft,Oo=Ti||zn;if(!Il()||Il()===Oo){var ho;Ql(Oo),Yo(Rs,na.current),Yo(Rs,rs.current),Yo(Rs,Qi.current),Yo(Rs,(ho=Ra.current)===null||ho===void 0?void 0:ho.setScrollLeft)}var ro=Ti||na.current;if(ro){var yo=Jn&&nn&&typeof Ei=="number"?Ei:ro.scrollWidth,Lo=ro.clientWidth;if(yo===Lo){Di(!1),hs(!1);return}ra?(Di(-Rs<yo-Lo),hs(-Rs>0)):(Di(Rs>0),hs(Rs<yo-Lo))}}),Dl=(0,F.Z)(function(yi){vo(yi),et==null||et(yi)}),Rl=function(){if(Ys&&rs.current){var Ti;vo({currentTarget:(0,Wt.bn)(rs.current),scrollLeft:(Ti=rs.current)===null||Ti===void 0?void 0:Ti.scrollLeft})}else Di(!1),hs(!1)},Ol=function(Ti){var Ds,ra=Ti.width;(Ds=Ra.current)===null||Ds===void 0||Ds.checkScrollBarVisible();var Rs=qi.current?qi.current.offsetWidth:ra;Jn&&dn&&qi.current&&(Rs=dn(qi.current,Rs)||Rs),Rs!==Ui&&(Rl(),Ni(Rs))},Ll=l.useRef(!1);l.useEffect(function(){Ll.current&&Rl()},[Ys,Lt,wr.length]),l.useEffect(function(){Ll.current=!0},[]);var Jl=l.useState(0),Pl=(0,le.Z)(Jl,2),Xo=Pl[0],Ml=Pl[1],ql=l.useState(!0),kl=(0,le.Z)(ql,2),fl=kl[0],hl=kl[1];(0,g.Z)(function(){(!nn||!Jn)&&(rs.current instanceof Element?Ml((0,Ye.o)(rs.current).width):Ml((0,Ye.o)(Bi.current).width)),hl((0,ke.G)("position","sticky"))},[]),l.useEffect(function(){Jn&&Ut&&(Ut.body.current=rs.current)});var eu=l.useCallback(function(yi){return l.createElement(l.Fragment,null,l.createElement(En,yi),$i==="top"&&l.createElement(Ee,yi,si))},[$i,si]),ml=l.useCallback(function(yi){return l.createElement(Ee,yi,si)},[si]),Qo=tr(["table"],"table"),Ro=l.useMemo(function(){return bn||(ga?Ei==="max-content"?"auto":"fixed":qs||$a||Mr.some(function(yi){var Ti=yi.ellipsis;return Ti})?"fixed":"auto")},[qs,ga,Mr,bn,$a]),pl,gl={colWidths:ca,columCount:Mr.length,stickyOffsets:da,onHeaderRow:Me,fixHeader:qs,scroll:Ft},vl=l.useMemo(function(){return kn?null:typeof Y=="function"?Y():Y},[kn,Y]),Ea=l.createElement(Ot,{data:wn,measureColumnWidth:qs||Ys||$a}),gs=l.createElement(je,{colWidths:Mr.map(function(yi){var Ti=yi.width;return Ti}),columns:Mr}),to=f!=null?l.createElement("caption",{className:"".concat(nt,"-caption")},f):void 0,no=(0,oe.Z)(ze,{data:!0}),Nl=(0,oe.Z)(ze,{aria:!0});if(qs||$a){var yl;typeof Er=="function"?(yl=Er(wn,{scrollbarSize:Xo,ref:rs,onScroll:vo}),gl.colWidths=Mr.map(function(yi,Ti){var Ds=yi.width,ra=Ti===Mr.length-1?Ds-Xo:Ds;return typeof ra=="number"&&!Number.isNaN(ra)?ra:0})):yl=l.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},Ji),bs),onScroll:Dl,ref:rs,className:K()("".concat(nt,"-body"))},l.createElement(Qo,(0,P.Z)({style:(0,Te.Z)((0,Te.Z)({},Qs),{},{tableLayout:Ro})},Nl),to,gs,Ea,!$i&&si&&l.createElement(Ee,{stickyOffsets:da,flattenColumns:Mr},si)));var Bl=(0,Te.Z)((0,Te.Z)((0,Te.Z)({noData:!wn.length,maxContentScroll:Ys&&Ei==="max-content"},gl),$s),{},{direction:rn,stickyClassName:fa,onScroll:vo});pl=l.createElement(l.Fragment,null,b!==!1&&l.createElement(At,(0,P.Z)({},Bl,{stickyTopOffset:Xs,className:"".concat(nt,"-header"),ref:na}),eu),yl,$i&&$i!=="top"&&l.createElement(At,(0,P.Z)({},Bl,{stickyBottomOffset:Al,className:"".concat(nt,"-summary"),ref:Qi}),ml),$a&&rs.current&&rs.current instanceof Element&&l.createElement(Qt,{ref:Ra,offsetScroll:cl,scrollBodyRef:rs,onScroll:vo,container:dl,direction:rn}))}else pl=l.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},Ji),bs),className:K()("".concat(nt,"-content")),onScroll:vo,ref:rs},l.createElement(Qo,(0,P.Z)({style:(0,Te.Z)((0,Te.Z)({},Qs),{},{tableLayout:Ro})},Nl),to,gs,b!==!1&&l.createElement(En,(0,P.Z)({},gl,$s)),Ea,si&&l.createElement(Ee,{stickyOffsets:da,flattenColumns:Mr},si)));var bl=l.createElement("div",(0,P.Z)({className:K()(nt,St,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(nt,"-rtl"),rn==="rtl"),"".concat(nt,"-ping-left"),ys),"".concat(nt,"-ping-right"),Us),"".concat(nt,"-layout-fixed"),bn==="fixed"),"".concat(nt,"-fixed-header"),qs),"".concat(nt,"-fixed-column"),ga),"".concat(nt,"-fixed-column-gapped"),ga&&Ki),"".concat(nt,"-scroll-horizontal"),Ys),"".concat(nt,"-has-fix-left"),Mr[0]&&Mr[0].fixed),"".concat(nt,"-has-fix-right"),Mr[Mr.length-1]&&Mr[Mr.length-1].fixed==="right")),style:Nt,id:h,ref:qi},no),tn&&l.createElement(Sn,{className:"".concat(nt,"-title")},tn(wn)),l.createElement("div",{ref:Bi,className:"".concat(nt,"-container")},pl),B&&l.createElement(Sn,{className:"".concat(nt,"-footer")},B(wn)));Ys&&(bl=l.createElement(we.Z,{onResize:Ol},bl));var $l=lt(Mr,da,rn),tu=l.useMemo(function(){return{scrollX:Ei,prefixCls:nt,getComponent:tr,scrollbarSize:Xo,direction:rn,fixedInfoList:$l,isSticky:$a,supportSticky:fl,componentWidth:Ui,fixHeader:qs,fixColumn:ga,horizonScroll:Ys,tableLayout:Ro,rowClassName:It,expandedRowClassName:Fr.expandedRowClassName,expandIcon:Cr,expandableType:Yi,expandRowByClick:Fr.expandRowByClick,expandedRowRender:Fr.expandedRowRender,onTriggerExpand:pr,expandIconColumnIndex:Fr.expandIconColumnIndex,indentSize:Fr.indentSize,allColumnsFixedLeft:Mr.every(function(yi){return yi.fixed==="left"}),emptyNode:vl,columns:wr,flattenColumns:Mr,onColumnResize:ya,hoverStartRow:ni,hoverEndRow:kt,onHover:vi,rowExpandable:Fr.rowExpandable,onRow:Se,getRowKey:Un,expandedKeys:Xi,childrenColumnName:Vr,rowHoverable:xn}},[Ei,nt,tr,Xo,rn,$l,$a,fl,Ui,qs,ga,Ys,Ro,It,Fr.expandedRowClassName,Cr,Yi,Fr.expandRowByClick,Fr.expandedRowRender,pr,Fr.expandIconColumnIndex,Fr.indentSize,vl,wr,Mr,ya,ni,kt,vi,Fr.rowExpandable,Se,Un,Xi,Vr,xn]);return l.createElement(ae.Provider,{value:tu},bl)}var sr=l.forwardRef(Xn);function Wn(de){return A(sr,de)}var Qn=Wn();Qn.EXPAND_COLUMN=ie,Qn.INTERNAL_HOOKS=U,Qn.Column=on,Qn.ColumnGroup=$n,Qn.Summary=ge;var or=Qn,cr=d(48911),rr=o(null),nr=o(null);function ir(de,ue,ze){var nt=ue||1;return ze[de+nt]-(ze[de]||0)}function Vn(de){var ue=de.rowInfo,ze=de.column,nt=de.colIndex,St=de.indent,It=de.index,Nt=de.component,Lt=de.renderIndex,Zt=de.record,Ft=de.style,bn=de.className,rn=de.inverse,tn=de.getHeight,B=ze.render,u=ze.dataIndex,f=ze.className,h=ze.width,b=C(nr,["columnsOffset"]),M=b.columnsOffset,Y=Ce(ue,ze,nt,St,It),Se=Y.key,Me=Y.fixedInfo,et=Y.appendCellNode,wt=Y.additionalCellProps,Mt=wt.style,Ut=wt.colSpan,nn=Ut===void 0?1:Ut,dn=wt.rowSpan,fn=dn===void 0?1:dn,Tn=nt-1,xn=ir(Tn,nn,M),wn=nn>1?h-xn:0,kn=(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Mt),Ft),{},{flex:"0 0 ".concat(xn,"px"),width:"".concat(xn,"px"),marginRight:wn,pointerEvents:"auto"}),Jn=l.useMemo(function(){return rn?fn<=1:nn===0||fn===0||fn>1},[fn,nn,rn]);Jn?kn.visibility="hidden":rn&&(kn.height=tn==null?void 0:tn(fn));var tr=Jn?function(){return null}:B,Un={};return(fn===0||nn===0)&&(Un.rowSpan=1,Un.colSpan=1),l.createElement(Pt,(0,P.Z)({className:K()(f,bn),ellipsis:ze.ellipsis,align:ze.align,scope:ze.rowScope,component:Nt,prefixCls:ue.prefixCls,key:Se,record:Zt,index:It,renderIndex:Lt,dataIndex:u,render:tr,shouldCellUpdate:ze.shouldCellUpdate},Me,{appendNode:et,additionalProps:(0,Te.Z)((0,Te.Z)({},wt),{},{style:kn},Un)}))}var $r=Vn,Kt=["data","index","className","rowKey","style","extra","getHeight"],ar=l.forwardRef(function(de,ue){var ze=de.data,nt=de.index,St=de.className,It=de.rowKey,Nt=de.style,Lt=de.extra,Zt=de.getHeight,Ft=(0,re.Z)(de,Kt),bn=ze.record,rn=ze.indent,tn=ze.index,B=C(ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),u=B.scrollX,f=B.flattenColumns,h=B.prefixCls,b=B.fixColumn,M=B.componentWidth,Y=C(rr,["getComponent"]),Se=Y.getComponent,Me=ot(bn,It,nt,rn),et=Se(["body","row"],"div"),wt=Se(["body","cell"],"div"),Mt=Me.rowSupportExpand,Ut=Me.expanded,nn=Me.rowProps,dn=Me.expandedRowRender,fn=Me.expandedRowClassName,Tn;if(Mt&&Ut){var xn=dn(bn,nt,rn+1,Ut),wn=gt(fn,bn,nt,rn),kn={};b&&(kn={style:(0,Pe.Z)({},"--virtual-width","".concat(M,"px"))});var Jn="".concat(h,"-expanded-row-cell");Tn=l.createElement(et,{className:K()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(rn+1),wn)},l.createElement(Pt,{component:wt,prefixCls:h,className:K()(Jn,(0,Pe.Z)({},"".concat(Jn,"-fixed"),b)),additionalProps:kn},xn))}var tr=(0,Te.Z)((0,Te.Z)({},Nt),{},{width:u});Lt&&(tr.position="absolute",tr.pointerEvents="none");var Un=l.createElement(et,(0,P.Z)({},nn,Ft,{"data-row-key":It,ref:Mt?null:ue,className:K()(St,"".concat(h,"-row"),nn==null?void 0:nn.className,(0,Pe.Z)({},"".concat(h,"-row-extra"),Lt)),style:(0,Te.Z)((0,Te.Z)({},tr),nn==null?void 0:nn.style)}),f.map(function(Er,Ar){return l.createElement($r,{key:Ar,component:wt,rowInfo:Me,column:Er,colIndex:Ar,indent:rn,index:nt,renderIndex:tn,record:bn,inverse:Lt,getHeight:Zt})}));return Mt?l.createElement("div",{ref:ue},Un,Tn):Un}),hr=V(ar),Yr=hr,zr=l.forwardRef(function(de,ue){var ze=de.data,nt=de.onScroll,St=C(ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),It=St.flattenColumns,Nt=St.onColumnResize,Lt=St.getRowKey,Zt=St.expandedKeys,Ft=St.prefixCls,bn=St.childrenColumnName,rn=St.scrollX,tn=St.direction,B=C(rr),u=B.sticky,f=B.scrollY,h=B.listItemHeight,b=B.getComponent,M=B.onScroll,Y=l.useRef(),Se=dt(ze,bn,Zt,Lt),Me=l.useMemo(function(){var Tn=0;return It.map(function(xn){var wn=xn.width,kn=xn.key;return Tn+=wn,[kn,wn,Tn]})},[It]),et=l.useMemo(function(){return Me.map(function(Tn){return Tn[2]})},[Me]);l.useEffect(function(){Me.forEach(function(Tn){var xn=(0,le.Z)(Tn,2),wn=xn[0],kn=xn[1];Nt(wn,kn)})},[Me]),l.useImperativeHandle(ue,function(){var Tn,xn={scrollTo:function(kn){var Jn;(Jn=Y.current)===null||Jn===void 0||Jn.scrollTo(kn)},nativeElement:(Tn=Y.current)===null||Tn===void 0?void 0:Tn.nativeElement};return Object.defineProperty(xn,"scrollLeft",{get:function(){var kn;return((kn=Y.current)===null||kn===void 0?void 0:kn.getScrollInfo().x)||0},set:function(kn){var Jn;(Jn=Y.current)===null||Jn===void 0||Jn.scrollTo({left:kn})}}),xn});var wt=function(xn,wn){var kn,Jn=(kn=Se[wn])===null||kn===void 0?void 0:kn.record,tr=xn.onCell;if(tr){var Un,Er=tr(Jn,wn);return(Un=Er==null?void 0:Er.rowSpan)!==null&&Un!==void 0?Un:1}return 1},Mt=function(xn){var wn=xn.start,kn=xn.end,Jn=xn.getSize,tr=xn.offsetY;if(kn<0)return null;for(var Un=It.filter(function(Cr){return wt(Cr,wn)===0}),Er=wn,Ar=function(Vr){if(Un=Un.filter(function(pr){return wt(pr,Vr)===0}),!Un.length)return Er=Vr,1},gi=wn;gi>=0&&!Ar(gi);gi-=1);for(var ni=It.filter(function(Cr){return wt(Cr,kn)!==1}),kt=kn,vi=function(Vr){if(ni=ni.filter(function(pr){return wt(pr,Vr)!==1}),!ni.length)return kt=Math.max(Vr-1,kn),1},ts=kn;ts<Se.length&&!vi(ts);ts+=1);for(var Xr=[],Fr=function(Vr){var pr=Se[Vr];if(!pr)return 1;It.some(function(Sr){return wt(Sr,Vr)>1})&&Xr.push(Vr)},Yi=Er;Yi<=kt;Yi+=1)Fr(Yi);var Xi=Xr.map(function(Cr){var Vr=Se[Cr],pr=Lt(Vr.record,Cr),Sr=function(Ui){var Ni=Cr+Ui-1,Hi=Lt(Se[Ni].record,Ni),As=Jn(pr,Hi);return As.bottom-As.top},ai=Jn(pr);return l.createElement(Yr,{key:Cr,data:Vr,rowKey:pr,index:Cr,style:{top:-tr+ai.top},extra:!0,getHeight:Sr})});return Xi},Ut=l.useMemo(function(){return{columnsOffset:et}},[et]),nn="".concat(Ft,"-tbody"),dn=b(["body","wrapper"]),fn={};return u&&(fn.position="sticky",fn.bottom=0,(0,$e.Z)(u)==="object"&&u.offsetScroll&&(fn.bottom=u.offsetScroll)),l.createElement(nr.Provider,{value:Ut},l.createElement(cr.Z,{fullHeight:!1,ref:Y,prefixCls:"".concat(nn,"-virtual"),styles:{horizontalScrollBar:fn},className:nn,height:f,itemHeight:h||24,data:Se,itemKey:function(xn){return Lt(xn.record)},component:dn,scrollWidth:rn,direction:tn,onVirtualScroll:function(xn){var wn,kn=xn.x;nt({currentTarget:(wn=Y.current)===null||wn===void 0?void 0:wn.nativeElement,scrollLeft:kn})},onScroll:M,extraRender:Mt},function(Tn,xn,wn){var kn=Lt(Tn.record,xn);return l.createElement(Yr,{data:Tn,rowKey:kn,index:xn,style:wn.style})}))}),li=V(zr),Qr=li,Zn=function(ue,ze){var nt=ze.ref,St=ze.onScroll;return l.createElement(Qr,{ref:nt,data:ue,onScroll:St})};function Pn(de,ue){var ze=de.data,nt=de.columns,St=de.scroll,It=de.sticky,Nt=de.prefixCls,Lt=Nt===void 0?dr:Nt,Zt=de.className,Ft=de.listItemHeight,bn=de.components,rn=de.onScroll,tn=St||{},B=tn.x,u=tn.y;typeof B!="number"&&(B=1),typeof u!="number"&&(u=500);var f=(0,Ae.zX)(function(M,Y){return(0,te.Z)(bn,M)||Y}),h=(0,Ae.zX)(rn),b=l.useMemo(function(){return{sticky:It,scrollY:u,listItemHeight:Ft,getComponent:f,onScroll:h}},[It,u,Ft,f,h]);return l.createElement(rr.Provider,{value:b},l.createElement(or,(0,P.Z)({},de,{className:K()(Zt,"".concat(Lt,"-virtual")),scroll:(0,Te.Z)((0,Te.Z)({},St),{},{x:B}),components:(0,Te.Z)((0,Te.Z)({},bn),{},{body:ze!=null&&ze.length?Zn:void 0}),columns:nt,internalHooks:U,tailor:!0,ref:ue})))}var sn=l.forwardRef(Pn);function un(de){return A(sn,de)}var Bn=un(),Yn=null,Ir=de=>null,mr=de=>null,Dr=d(84105),Jr=d(82661),mi=d(34643),Li=d(34061),Gr=d(18929);function Ri(de){const[ue,ze]=(0,l.useState)(null);return[(0,l.useCallback)((It,Nt,Lt)=>{const Zt=ue!=null?ue:It,Ft=Math.min(Zt||0,It),bn=Math.max(Zt||0,It),rn=Nt.slice(Ft,bn+1).map(u=>de(u)),tn=rn.some(u=>!Lt.has(u)),B=[];return rn.forEach(u=>{tn?(Lt.has(u)||B.push(u),Lt.add(u)):(Lt.delete(u),B.push(u))}),ze(tn?bn:null),B},[ue]),It=>{ze(It)}]}var qr=d(32383),bi=d(62673),ri=d(75727),di=d(47889);const ii={},Oi="SELECT_ALL",Lr="SELECT_INVERT",Pi="SELECT_NONE",Mi=[],ki=(de,ue)=>{let ze=[];return(ue||[]).forEach(nt=>{ze.push(nt),nt&&typeof nt=="object"&&de in nt&&(ze=[].concat((0,Ue.Z)(ze),(0,Ue.Z)(ki(de,nt[de]))))}),ze};var Gn=(de,ue)=>{const{preserveSelectedRowKeys:ze,selectedRowKeys:nt,defaultSelectedRowKeys:St,getCheckboxProps:It,onChange:Nt,onSelect:Lt,onSelectAll:Zt,onSelectInvert:Ft,onSelectNone:bn,onSelectMultiple:rn,columnWidth:tn,type:B,selections:u,fixed:f,renderCell:h,hideSelectAll:b,checkStrictly:M=!0}=ue||{},{prefixCls:Y,data:Se,pageData:Me,getRecordByKey:et,getRowKey:wt,expandType:Mt,childrenColumnName:Ut,locale:nn,getPopupContainer:dn}=de,fn=(0,qr.ln)("Table"),[Tn,xn]=Ri(Cr=>Cr),[wn,kn]=(0,Gr.Z)(nt||St||Mi,{value:nt}),Jn=l.useRef(new Map),tr=(0,l.useCallback)(Cr=>{if(ze){const Vr=new Map;Cr.forEach(pr=>{let Sr=et(pr);!Sr&&Jn.current.has(pr)&&(Sr=Jn.current.get(pr)),Vr.set(pr,Sr)}),Jn.current=Vr}},[et,ze]);l.useEffect(()=>{tr(wn)},[wn]);const Un=(0,l.useMemo)(()=>ki(Ut,Me),[Ut,Me]),{keyEntities:Er}=(0,l.useMemo)(()=>{if(M)return{keyEntities:null};let Cr=Se;if(ze){const Vr=new Set(Un.map((Sr,ai)=>wt(Sr,ai))),pr=Array.from(Jn.current).reduce((Sr,ai)=>{let[hi,Ui]=ai;return Vr.has(hi)?Sr:Sr.concat(Ui)},[]);Cr=[].concat((0,Ue.Z)(Cr),(0,Ue.Z)(pr))}return(0,Li.I8)(Cr,{externalGetKey:wt,childrenPropName:Ut})},[Se,wt,M,Ut,ze,Un]),Ar=(0,l.useMemo)(()=>{const Cr=new Map;return Un.forEach((Vr,pr)=>{const Sr=wt(Vr,pr),ai=(It?It(Vr):null)||{};Cr.set(Sr,ai)}),Cr},[Un,wt,It]),gi=(0,l.useCallback)(Cr=>{const Vr=wt(Cr);let pr;return Ar.has(Vr)?pr=Ar.get(wt(Cr)):pr=It?It(Cr):void 0,!!(pr!=null&&pr.disabled)},[Ar,wt]),[ni,kt]=(0,l.useMemo)(()=>{if(M)return[wn||[],[]];const{checkedKeys:Cr,halfCheckedKeys:Vr}=(0,mi.S)(wn,!0,Er,gi);return[Cr||[],Vr]},[wn,M,Er,gi]),vi=(0,l.useMemo)(()=>{const Cr=B==="radio"?ni.slice(0,1):ni;return new Set(Cr)},[ni,B]),ts=(0,l.useMemo)(()=>B==="radio"?new Set:new Set(kt),[kt,B]);l.useEffect(()=>{ue||kn(Mi)},[!!ue]);const Xr=(0,l.useCallback)((Cr,Vr)=>{let pr,Sr;tr(Cr),ze?(pr=Cr,Sr=Cr.map(ai=>Jn.current.get(ai))):(pr=[],Sr=[],Cr.forEach(ai=>{const hi=et(ai);hi!==void 0&&(pr.push(ai),Sr.push(hi))})),kn(pr),Nt==null||Nt(pr,Sr,{type:Vr})},[kn,et,Nt,ze]),Fr=(0,l.useCallback)((Cr,Vr,pr,Sr)=>{if(Lt){const ai=pr.map(hi=>et(hi));Lt(et(Cr),Vr,ai,Sr)}Xr(pr,"single")},[Lt,et,Xr]),Yi=(0,l.useMemo)(()=>!u||b?null:(u===!0?[Oi,Lr,Pi]:u).map(Vr=>Vr===Oi?{key:"all",text:nn.selectionAll,onSelect(){Xr(Se.map((pr,Sr)=>wt(pr,Sr)).filter(pr=>{const Sr=Ar.get(pr);return!(Sr!=null&&Sr.disabled)||vi.has(pr)}),"all")}}:Vr===Lr?{key:"invert",text:nn.selectInvert,onSelect(){const pr=new Set(vi);Me.forEach((ai,hi)=>{const Ui=wt(ai,hi),Ni=Ar.get(Ui);Ni!=null&&Ni.disabled||(pr.has(Ui)?pr.delete(Ui):pr.add(Ui))});const Sr=Array.from(pr);Ft&&(fn.deprecated(!1,"onSelectInvert","onChange"),Ft(Sr)),Xr(Sr,"invert")}}:Vr===Pi?{key:"none",text:nn.selectNone,onSelect(){bn==null||bn(),Xr(Array.from(vi).filter(pr=>{const Sr=Ar.get(pr);return Sr==null?void 0:Sr.disabled}),"none")}}:Vr).map(Vr=>Object.assign(Object.assign({},Vr),{onSelect:function(){for(var pr,Sr,ai=arguments.length,hi=new Array(ai),Ui=0;Ui<ai;Ui++)hi[Ui]=arguments[Ui];(Sr=Vr.onSelect)===null||Sr===void 0||(pr=Sr).call.apply(pr,[Vr].concat(hi)),xn(null)}})),[u,vi,Me,wt,Ft,Xr]);return[(0,l.useCallback)(Cr=>{var Vr;if(!ue)return Cr.filter(Bi=>Bi!==ii);let pr=(0,Ue.Z)(Cr);const Sr=new Set(vi),ai=Un.map(wt).filter(Bi=>!Ar.get(Bi).disabled),hi=ai.every(Bi=>Sr.has(Bi)),Ui=ai.some(Bi=>Sr.has(Bi)),Ni=()=>{const Bi=[];hi?ai.forEach(Wi=>{Sr.delete(Wi),Bi.push(Wi)}):ai.forEach(Wi=>{Sr.has(Wi)||(Sr.add(Wi),Bi.push(Wi))});const Qi=Array.from(Sr);Zt==null||Zt(!hi,Qi.map(Wi=>et(Wi)),Bi.map(Wi=>et(Wi))),Xr(Qi,"all"),xn(null)};let Hi,As;if(B!=="radio"){let Bi;if(Yi){const Di={getPopupContainer:dn,items:Yi.map((fs,Vi)=>{const{key:Us,text:hs,onSelect:Vs}=fs;return{key:Us!=null?Us:Vi,onClick:()=>{Vs==null||Vs(ai)},label:hs}})};Bi=l.createElement("div",{className:`${Y}-selection-extra`},l.createElement(ri.Z,{menu:Di,getPopupContainer:dn},l.createElement("span",null,l.createElement(Dr.Z,null))))}const Qi=Un.map((Di,fs)=>{const Vi=wt(Di,fs),Us=Ar.get(Vi)||{};return Object.assign({checked:Sr.has(Vi)},Us)}).filter(Di=>{let{disabled:fs}=Di;return fs}),Wi=!!Qi.length&&Qi.length===Un.length,Is=Wi&&Qi.every(Di=>{let{checked:fs}=Di;return fs}),ys=Wi&&Qi.some(Di=>{let{checked:fs}=Di;return fs});As=l.createElement(bi.default,{checked:Wi?Is:!!Un.length&&hi,indeterminate:Wi?!Is&&ys:!hi&&Ui,onChange:Ni,disabled:Un.length===0||Wi,"aria-label":Bi?"Custom selection":"Select all",skipGroup:!0}),Hi=!b&&l.createElement("div",{className:`${Y}-selection`},As,Bi)}let wr;B==="radio"?wr=(Bi,Qi,Wi)=>{const Is=wt(Qi,Wi),ys=Sr.has(Is),Di=Ar.get(Is);return{node:l.createElement(di.ZP,Object.assign({},Di,{checked:ys,onClick:fs=>{var Vi;fs.stopPropagation(),(Vi=Di==null?void 0:Di.onClick)===null||Vi===void 0||Vi.call(Di,fs)},onChange:fs=>{var Vi;Sr.has(Is)||Fr(Is,!0,[Is],fs.nativeEvent),(Vi=Di==null?void 0:Di.onChange)===null||Vi===void 0||Vi.call(Di,fs)}})),checked:ys}}:wr=(Bi,Qi,Wi)=>{var Is;const ys=wt(Qi,Wi),Di=Sr.has(ys),fs=ts.has(ys),Vi=Ar.get(ys);let Us;return Mt==="nest"?Us=fs:Us=(Is=Vi==null?void 0:Vi.indeterminate)!==null&&Is!==void 0?Is:fs,{node:l.createElement(bi.default,Object.assign({},Vi,{indeterminate:Us,checked:Di,skipGroup:!0,onClick:hs=>{var Vs;hs.stopPropagation(),(Vs=Vi==null?void 0:Vi.onClick)===null||Vs===void 0||Vs.call(Vi,hs)},onChange:hs=>{var Vs;const{nativeEvent:pa}=hs,{shiftKey:fo}=pa,cs=ai.findIndex(Gs=>Gs===ys),Do=ni.some(Gs=>ai.includes(Gs));if(fo&&M&&Do){const Gs=Tn(cs,ai,Sr),ca=Array.from(Sr);rn==null||rn(!Di,ca.map(da=>et(da)),Gs.map(da=>et(da))),Xr(ca,"multiple")}else{const Gs=ni;if(M){const ca=Di?(0,Jr._5)(Gs,ys):(0,Jr.L0)(Gs,ys);Fr(ys,!Di,ca,pa)}else{const ca=(0,mi.S)([].concat((0,Ue.Z)(Gs),[ys]),!0,Er,gi),{checkedKeys:da,halfCheckedKeys:qs}=ca;let Ys=da;if(Di){const ga=new Set(da);ga.delete(ys),Ys=(0,mi.S)(Array.from(ga),{checked:!1,halfCheckedKeys:qs},Er,gi).checkedKeys}Fr(ys,!Di,Ys,pa)}}xn(Di?null:cs),(Vs=Vi==null?void 0:Vi.onChange)===null||Vs===void 0||Vs.call(Vi,hs)}})),checked:Di}};const Mr=(Bi,Qi,Wi)=>{const{node:Is,checked:ys}=wr(Bi,Qi,Wi);return h?h(ys,Qi,Wi,Is):Is};if(!pr.includes(ii))if(pr.findIndex(Bi=>{var Qi;return((Qi=Bi[it])===null||Qi===void 0?void 0:Qi.columnType)==="EXPAND_COLUMN"})===0){const[Bi,...Qi]=pr;pr=[Bi,ii].concat((0,Ue.Z)(Qi))}else pr=[ii].concat((0,Ue.Z)(pr));const xi=pr.indexOf(ii);pr=pr.filter((Bi,Qi)=>Bi!==ii||Qi===xi);const Ki=pr[xi-1],Ei=pr[xi+1];let $s=f;$s===void 0&&((Ei==null?void 0:Ei.fixed)!==void 0?$s=Ei.fixed:(Ki==null?void 0:Ki.fixed)!==void 0&&($s=Ki.fixed)),$s&&Ki&&((Vr=Ki[it])===null||Vr===void 0?void 0:Vr.columnType)==="EXPAND_COLUMN"&&Ki.fixed===void 0&&(Ki.fixed=$s);const qi=K()(`${Y}-selection-col`,{[`${Y}-selection-col-with-dropdown`]:u&&B==="checkbox"}),na=()=>ue!=null&&ue.columnTitle?typeof ue.columnTitle=="function"?ue.columnTitle(As):ue.columnTitle:Hi,rs={fixed:$s,width:tn,className:`${Y}-selection-column`,title:na(),render:Mr,onCell:ue.onCell,[it]:{className:qi}};return pr.map(Bi=>Bi===ii?rs:Bi)},[wt,Un,ue,ni,vi,ts,tn,Yi,Mt,Ar,rn,Fr,gi]),vi]},pi=d(2738);function Ln(de,ue){return de._antProxy=de._antProxy||{},Object.keys(ue).forEach(ze=>{if(!(ze in de._antProxy)){const nt=de[ze];de._antProxy[ze]=nt,de[ze]=ue[ze]}}),de}function Fi(de,ue){return(0,l.useImperativeHandle)(de,()=>{const ze=ue(),{nativeElement:nt}=ze;return typeof Proxy!="undefined"?new Proxy(nt,{get(St,It){return ze[It]?ze[It]:Reflect.get(St,It)}}):Ln(nt,ze)})}var Os=d(83010),vs=d(48755),ss=d(38406),ls=d(83397),Pr=d(31756),Gi=d(13783),ds=d(85981),_s=d(31709),ci=d(29787),zi=d(57700);function ns(de){return ue=>{const{prefixCls:ze,onExpand:nt,record:St,expanded:It,expandable:Nt}=ue,Lt=`${ze}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:Zt=>{nt(St,Zt),Zt.stopPropagation()},className:K()(Lt,{[`${Lt}-spaced`]:!Nt,[`${Lt}-expanded`]:Nt&&It,[`${Lt}-collapsed`]:Nt&&!It}),"aria-label":It?de.collapse:de.expand,"aria-expanded":It})}}var xr=ns;function Ur(de){return(ze,nt)=>{const St=ze.querySelector(`.${de}-container`);let It=nt;if(St){const Nt=getComputedStyle(St),Lt=parseInt(Nt.borderLeftWidth,10),Zt=parseInt(Nt.borderRightWidth,10);It=nt-Lt-Zt}return It}}const _r=(de,ue)=>"key"in de&&de.key!==void 0&&de.key!==null?de.key:de.dataIndex?Array.isArray(de.dataIndex)?de.dataIndex.join("."):de.dataIndex:ue;function Or(de,ue){return ue?`${ue}-${de}`:`${de}`}const ui=(de,ue)=>typeof de=="function"?de(ue):de,_i=(de,ue)=>{const ze=ui(de,ue);return Object.prototype.toString.call(ze)==="[object Object]"?"":ze};var as={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"},ur=as,Rr=d(7657),ei=function(ue,ze){return l.createElement(Rr.Z,(0,P.Z)({},ue,{ref:ze,icon:ur}))},Kr=l.forwardRef(ei),ti=Kr,xs=d(9981),us=d(40192);function Es(de){const ue=l.useRef(de),ze=(0,us.Z)();return[()=>ue.current,nt=>{ue.current=nt,ze()}]}var ms=d(7939),ba=d(584),so=d(93041),Ka=d(78857),Ss=d(18287),Fs=d(47472),ks=d(49397),aa=de=>{const{value:ue,filterSearch:ze,tablePrefixCls:nt,locale:St,onChange:It}=de;return ze?l.createElement("div",{className:`${nt}-filter-dropdown-search`},l.createElement(ks.Z,{prefix:l.createElement(Fs.Z,null),placeholder:St.filterSearchPlaceholder,onChange:It,value:ue,htmlSize:1,className:`${nt}-filter-dropdown-search-input`})):null},js=d(10228);const Ca=de=>{const{keyCode:ue}=de;ue===js.Z.ENTER&&de.stopPropagation()};var Za=l.forwardRef((de,ue)=>l.createElement("div",{className:de.className,onClick:ze=>ze.stopPropagation(),onKeyDown:Ca,ref:ue},de.children));function zs(de){let ue=[];return(de||[]).forEach(ze=>{let{value:nt,children:St}=ze;ue.push(nt),St&&(ue=[].concat((0,Ue.Z)(ue),(0,Ue.Z)(zs(St))))}),ue}function wa(de){return de.some(ue=>{let{children:ze}=ue;return ze})}function Ls(de,ue){return typeof ue=="string"||typeof ue=="number"?ue==null?void 0:ue.toString().toLowerCase().includes(de.trim().toLowerCase()):!1}function Ma(de){let{filters:ue,prefixCls:ze,filteredKeys:nt,filterMultiple:St,searchValue:It,filterSearch:Nt}=de;return ue.map((Lt,Zt)=>{const Ft=String(Lt.value);if(Lt.children)return{key:Ft||Zt,label:Lt.text,popupClassName:`${ze}-dropdown-submenu`,children:Ma({filters:Lt.children,prefixCls:ze,filteredKeys:nt,filterMultiple:St,searchValue:It,filterSearch:Nt})};const bn=St?bi.default:di.ZP,rn={key:Lt.value!==void 0?Ft:Zt,label:l.createElement(l.Fragment,null,l.createElement(bn,{checked:nt.includes(Ft)}),l.createElement("span",null,Lt.text))};return It.trim()?typeof Nt=="function"?Nt(It,Lt)?rn:null:Ls(It,Lt.text)?rn:null:rn})}function ka(de){return de||[]}var Wa=de=>{var ue,ze,nt,St;const{tablePrefixCls:It,prefixCls:Nt,column:Lt,dropdownPrefixCls:Zt,columnKey:Ft,filterOnClose:bn,filterMultiple:rn,filterMode:tn="menu",filterSearch:B=!1,filterState:u,triggerFilter:f,locale:h,children:b,getPopupContainer:M,rootClassName:Y}=de,{filterResetToDefaultFilteredValue:Se,defaultFilteredValue:Me,filterDropdownProps:et={},filterDropdownOpen:wt,filterDropdownVisible:Mt,onFilterDropdownVisibleChange:Ut,onFilterDropdownOpenChange:nn}=Lt,[dn,fn]=l.useState(!1),Tn=!!(u&&(!((ue=u.filteredKeys)===null||ue===void 0)&&ue.length||u.forceFiltered)),xn=wr=>{var Mr;fn(wr),(Mr=et.onOpenChange)===null||Mr===void 0||Mr.call(et,wr),nn==null||nn(wr),Ut==null||Ut(wr)},wn=(St=(nt=(ze=et.open)!==null&&ze!==void 0?ze:wt)!==null&&nt!==void 0?nt:Mt)!==null&&St!==void 0?St:dn,kn=u==null?void 0:u.filteredKeys,[Jn,tr]=Es(ka(kn)),Un=wr=>{let{selectedKeys:Mr}=wr;tr(Mr)},Er=(wr,Mr)=>{let{node:xi,checked:Ki}=Mr;Un(rn?{selectedKeys:wr}:{selectedKeys:Ki&&xi.key?[xi.key]:[]})};l.useEffect(()=>{dn&&Un({selectedKeys:ka(kn)})},[kn]);const[Ar,gi]=l.useState([]),ni=wr=>{gi(wr)},[kt,vi]=l.useState(""),ts=wr=>{const{value:Mr}=wr.target;vi(Mr)};l.useEffect(()=>{dn||vi("")},[dn]);const Xr=wr=>{const Mr=wr!=null&&wr.length?wr:null;if(Mr===null&&(!u||!u.filteredKeys)||(0,q.Z)(Mr,u==null?void 0:u.filteredKeys,!0))return null;f({column:Lt,key:Ft,filteredKeys:Mr})},Fr=()=>{xn(!1),Xr(Jn())},Yi=function(){let{confirm:wr,closeDropdown:Mr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};wr&&Xr([]),Mr&&xn(!1),vi(""),tr(Se?(Me||[]).map(xi=>String(xi)):[])},Xi=function(){let{closeDropdown:wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};wr&&xn(!1),Xr(Jn())},Cr=(wr,Mr)=>{Mr.source==="trigger"&&(wr&&kn!==void 0&&tr(ka(kn)),xn(wr),!wr&&!Lt.filterDropdown&&bn&&Fr())},Vr=K()({[`${Zt}-menu-without-submenu`]:!wa(Lt.filters||[])}),pr=wr=>{if(wr.target.checked){const Mr=zs(Lt==null?void 0:Lt.filters).map(xi=>String(xi));tr(Mr)}else tr([])},Sr=wr=>{let{filters:Mr}=wr;return(Mr||[]).map((xi,Ki)=>{const Ei=String(xi.value),$s={title:xi.text,key:xi.value!==void 0?Ei:String(Ki)};return xi.children&&($s.children=Sr({filters:xi.children})),$s})},ai=wr=>{var Mr;return Object.assign(Object.assign({},wr),{text:wr.title,value:wr.key,children:((Mr=wr.children)===null||Mr===void 0?void 0:Mr.map(xi=>ai(xi)))||[]})};let hi;const{direction:Ui,renderEmpty:Ni}=l.useContext(vs.E_);if(typeof Lt.filterDropdown=="function")hi=Lt.filterDropdown({prefixCls:`${Zt}-custom`,setSelectedKeys:wr=>Un({selectedKeys:wr}),selectedKeys:Jn(),confirm:Xi,clearFilters:Yi,filters:Lt.filters,visible:wn,close:()=>{xn(!1)}});else if(Lt.filterDropdown)hi=Lt.filterDropdown;else{const wr=Jn()||[],Mr=()=>{var Ki,Ei;const $s=(Ki=Ni==null?void 0:Ni("Table.filter"))!==null&&Ki!==void 0?Ki:l.createElement(ba.Z,{image:ba.Z.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Lt.filters||[]).length===0)return $s;if(tn==="tree")return l.createElement(l.Fragment,null,l.createElement(aa,{filterSearch:B,value:kt,onChange:ts,tablePrefixCls:It,locale:h}),l.createElement("div",{className:`${It}-filter-dropdown-tree`},rn?l.createElement(bi.default,{checked:wr.length===zs(Lt.filters).length,indeterminate:wr.length>0&&wr.length<zs(Lt.filters).length,className:`${It}-filter-dropdown-checkall`,onChange:pr},(Ei=h==null?void 0:h.filterCheckall)!==null&&Ei!==void 0?Ei:h==null?void 0:h.filterCheckAll):null,l.createElement(Ss.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:rn,checkStrictly:!rn,className:`${Zt}-menu`,onCheck:Er,checkedKeys:wr,selectedKeys:wr,showIcon:!1,treeData:Sr({filters:Lt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:kt.trim()?rs=>typeof B=="function"?B(kt,ai(rs)):Ls(kt,rs.title):void 0})));const qi=Ma({filters:Lt.filters||[],filterSearch:B,prefixCls:Nt,filteredKeys:Jn(),filterMultiple:rn,searchValue:kt}),na=qi.every(rs=>rs===null);return l.createElement(l.Fragment,null,l.createElement(aa,{filterSearch:B,value:kt,onChange:ts,tablePrefixCls:It,locale:h}),na?$s:l.createElement(so.default,{selectable:!0,multiple:rn,prefixCls:`${Zt}-menu`,className:Vr,onSelect:Un,onDeselect:Un,selectedKeys:wr,getPopupContainer:M,openKeys:Ar,onOpenChange:ni,items:qi}))},xi=()=>Se?(0,q.Z)((Me||[]).map(Ki=>String(Ki)),wr,!0):wr.length===0;hi=l.createElement(l.Fragment,null,Mr(),l.createElement("div",{className:`${Nt}-dropdown-btns`},l.createElement(ms.ZP,{type:"link",size:"small",disabled:xi(),onClick:()=>Yi()},h.filterReset),l.createElement(ms.ZP,{type:"primary",size:"small",onClick:Fr},h.filterConfirm)))}Lt.filterDropdown&&(hi=l.createElement(Ka.J,{selectable:void 0},hi)),hi=l.createElement(Za,{className:`${Nt}-dropdown`},hi);const Hi=()=>{let wr;return typeof Lt.filterIcon=="function"?wr=Lt.filterIcon(Tn):Lt.filterIcon?wr=Lt.filterIcon:wr=l.createElement(ti,null),l.createElement("span",{role:"button",tabIndex:-1,className:K()(`${Nt}-trigger`,{active:Tn}),onClick:Mr=>{Mr.stopPropagation()}},wr)},As=(0,xs.Z)({trigger:["click"],placement:Ui==="rtl"?"bottomLeft":"bottomRight",children:Hi(),getPopupContainer:M},Object.assign(Object.assign({},et),{rootClassName:K()(Y,et.rootClassName),open:wn,onOpenChange:Cr,dropdownRender:()=>typeof(et==null?void 0:et.dropdownRender)=="function"?et.dropdownRender(hi):hi}));return l.createElement("div",{className:`${Nt}-column`},l.createElement("span",{className:`${It}-column-title`},b),l.createElement(ri.Z,Object.assign({},As)))};const oa=(de,ue,ze)=>{let nt=[];return(de||[]).forEach((St,It)=>{var Nt;const Lt=Or(It,ze);if(St.filters||"filterDropdown"in St||"onFilter"in St)if("filteredValue"in St){let Zt=St.filteredValue;"filterDropdown"in St||(Zt=(Nt=Zt==null?void 0:Zt.map(String))!==null&&Nt!==void 0?Nt:Zt),nt.push({column:St,key:_r(St,Lt),filteredKeys:Zt,forceFiltered:St.filtered})}else nt.push({column:St,key:_r(St,Lt),filteredKeys:ue&&St.defaultFilteredValue?St.defaultFilteredValue:void 0,forceFiltered:St.filtered});"children"in St&&(nt=[].concat((0,Ue.Z)(nt),(0,Ue.Z)(oa(St.children,ue,Lt))))}),nt};function Zs(de,ue,ze,nt,St,It,Nt,Lt,Zt){return ze.map((Ft,bn)=>{const rn=Or(bn,Lt),{filterOnClose:tn=!0,filterMultiple:B=!0,filterMode:u,filterSearch:f}=Ft;let h=Ft;if(h.filters||h.filterDropdown){const b=_r(h,rn),M=nt.find(Y=>{let{key:Se}=Y;return b===Se});h=Object.assign(Object.assign({},h),{title:Y=>l.createElement(Wa,{tablePrefixCls:de,prefixCls:`${de}-filter`,dropdownPrefixCls:ue,column:h,columnKey:b,filterState:M,filterOnClose:tn,filterMultiple:B,filterMode:u,filterSearch:f,triggerFilter:It,locale:St,getPopupContainer:Nt,rootClassName:Zt},ui(Ft.title,Y))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Zs(de,ue,h.children,nt,St,It,Nt,rn,Zt)})),h})}const fi=de=>{const ue={};return de.forEach(ze=>{let{key:nt,filteredKeys:St,column:It}=ze;const Nt=nt,{filters:Lt,filterDropdown:Zt}=It;if(Zt)ue[Nt]=St||null;else if(Array.isArray(St)){const Ft=zs(Lt);ue[Nt]=Ft.filter(bn=>St.includes(String(bn)))}else ue[Nt]=null}),ue},Hr=(de,ue,ze)=>ue.reduce((St,It)=>{const{column:{onFilter:Nt,filters:Lt},filteredKeys:Zt}=It;return Nt&&Zt&&Zt.length?St.map(Ft=>Object.assign({},Ft)).filter(Ft=>Zt.some(bn=>{const rn=zs(Lt),tn=rn.findIndex(u=>String(u)===String(bn)),B=tn!==-1?rn[tn]:bn;return Ft[ze]&&(Ft[ze]=Hr(Ft[ze],ue,ze)),Nt(B,Ft)})):St},de),ps=de=>de.flatMap(ue=>"children"in ue?[ue].concat((0,Ue.Z)(ps(ue.children||[]))):[ue]);var Ci=de=>{const{prefixCls:ue,dropdownPrefixCls:ze,mergedColumns:nt,onFilterChange:St,getPopupContainer:It,locale:Nt,rootClassName:Lt}=de,Zt=(0,qr.ln)("Table"),Ft=l.useMemo(()=>ps(nt||[]),[nt]),[bn,rn]=l.useState(()=>oa(Ft,!0)),tn=l.useMemo(()=>{const h=oa(Ft,!1);if(h.length===0)return h;let b=!0,M=!0;if(h.forEach(Y=>{let{filteredKeys:Se}=Y;Se!==void 0?b=!1:M=!1}),b){const Y=(Ft||[]).map((Se,Me)=>_r(Se,Or(Me)));return bn.filter(Se=>{let{key:Me}=Se;return Y.includes(Me)}).map(Se=>{const Me=Ft[Y.findIndex(et=>et===Se.key)];return Object.assign(Object.assign({},Se),{column:Object.assign(Object.assign({},Se.column),Me),forceFiltered:Me.filtered})})}return h},[Ft,bn]),B=l.useMemo(()=>fi(tn),[tn]),u=h=>{const b=tn.filter(M=>{let{key:Y}=M;return Y!==h.key});b.push(h),rn(b),St(fi(b),b)};return[h=>Zs(ue,ze,h,tn,Nt,u,It,void 0,Lt),tn,B]},Ps=(de,ue,ze)=>{const nt=l.useRef({});function St(It){var Nt;if(!nt.current||nt.current.data!==de||nt.current.childrenColumnName!==ue||nt.current.getRowKey!==ze){let Zt=function(Ft){Ft.forEach((bn,rn)=>{const tn=ze(bn,rn);Lt.set(tn,bn),bn&&typeof bn=="object"&&ue in bn&&Zt(bn[ue]||[])})};const Lt=new Map;Zt(de),nt.current={data:de,childrenColumnName:ue,kvMap:Lt,getRowKey:ze}}return(Nt=nt.current.kvMap)===null||Nt===void 0?void 0:Nt.get(It)}return[St]},Ms=function(de,ue){var ze={};for(var nt in de)Object.prototype.hasOwnProperty.call(de,nt)&&ue.indexOf(nt)<0&&(ze[nt]=de[nt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,nt=Object.getOwnPropertySymbols(de);St<nt.length;St++)ue.indexOf(nt[St])<0&&Object.prototype.propertyIsEnumerable.call(de,nt[St])&&(ze[nt[St]]=de[nt[St]]);return ze};const Js=10;function ws(de,ue){const ze={current:de.current,pageSize:de.pageSize};return Object.keys(ue&&typeof ue=="object"?ue:{}).forEach(St=>{const It=de[St];typeof It!="function"&&(ze[St]=It)}),ze}function ta(de,ue,ze){const nt=ze&&typeof ze=="object"?ze:{},{total:St=0}=nt,It=Ms(nt,["total"]),[Nt,Lt]=(0,l.useState)(()=>({current:"defaultCurrent"in It?It.defaultCurrent:1,pageSize:"defaultPageSize"in It?It.defaultPageSize:Js})),Zt=(0,xs.Z)(Nt,It,{total:St>0?St:de}),Ft=Math.ceil((St||de)/Zt.pageSize);Zt.current>Ft&&(Zt.current=Ft||1);const bn=(tn,B)=>{Lt({current:tn!=null?tn:1,pageSize:B||Zt.pageSize})},rn=(tn,B)=>{var u;ze&&((u=ze.onChange)===null||u===void 0||u.call(ze,tn,B)),bn(tn,B),ue(tn,B||(Zt==null?void 0:Zt.pageSize))};return ze===!1?[{},()=>{}]:[Object.assign(Object.assign({},Zt),{onChange:rn}),bn]}var Hs=ta,la=d(89489),ua=d(59477),Va=d(25399);const wi="ascend",Ii="descend",Zi=de=>typeof de.sorter=="object"&&typeof de.sorter.multiple=="number"?de.sorter.multiple:!1,Ts=de=>typeof de=="function"?de:de&&typeof de=="object"&&de.compare?de.compare:!1,Ns=(de,ue)=>ue?de[de.indexOf(ue)+1]:de[0],_a=(de,ue,ze)=>{let nt=[];const St=(It,Nt)=>{nt.push({column:It,key:_r(It,Nt),multiplePriority:Zi(It),sortOrder:It.sortOrder})};return(de||[]).forEach((It,Nt)=>{const Lt=Or(Nt,ze);It.children?("sortOrder"in It&&St(It,Lt),nt=[].concat((0,Ue.Z)(nt),(0,Ue.Z)(_a(It.children,ue,Lt)))):It.sorter&&("sortOrder"in It?St(It,Lt):ue&&It.defaultSortOrder&&nt.push({column:It,key:_r(It,Lt),multiplePriority:Zi(It),sortOrder:It.defaultSortOrder}))}),nt},Ta=(de,ue,ze,nt,St,It,Nt,Lt)=>(ue||[]).map((Ft,bn)=>{const rn=Or(bn,Lt);let tn=Ft;if(tn.sorter){const B=tn.sortDirections||St,u=tn.showSorterTooltip===void 0?Nt:tn.showSorterTooltip,f=_r(tn,rn),h=ze.find(Ut=>{let{key:nn}=Ut;return nn===f}),b=h?h.sortOrder:null,M=Ns(B,b);let Y;if(Ft.sortIcon)Y=Ft.sortIcon({sortOrder:b});else{const Ut=B.includes(wi)&&l.createElement(ua.Z,{className:K()(`${de}-column-sorter-up`,{active:b===wi})}),nn=B.includes(Ii)&&l.createElement(la.Z,{className:K()(`${de}-column-sorter-down`,{active:b===Ii})});Y=l.createElement("span",{className:K()(`${de}-column-sorter`,{[`${de}-column-sorter-full`]:!!(Ut&&nn)})},l.createElement("span",{className:`${de}-column-sorter-inner`,"aria-hidden":"true"},Ut,nn))}const{cancelSort:Se,triggerAsc:Me,triggerDesc:et}=It||{};let wt=Se;M===Ii?wt=et:M===wi&&(wt=Me);const Mt=typeof u=="object"?Object.assign({title:wt},u):{title:wt};tn=Object.assign(Object.assign({},tn),{className:K()(tn.className,{[`${de}-column-sort`]:b}),title:Ut=>{const nn=`${de}-column-sorters`,dn=l.createElement("span",{className:`${de}-column-title`},ui(Ft.title,Ut)),fn=l.createElement("div",{className:nn},dn,Y);return u?typeof u!="boolean"&&(u==null?void 0:u.target)==="sorter-icon"?l.createElement("div",{className:`${nn} ${de}-column-sorters-tooltip-target-sorter`},dn,l.createElement(Va.Z,Object.assign({},Mt),Y)):l.createElement(Va.Z,Object.assign({},Mt),fn):fn},onHeaderCell:Ut=>{var nn;const dn=((nn=Ft.onHeaderCell)===null||nn===void 0?void 0:nn.call(Ft,Ut))||{},fn=dn.onClick,Tn=dn.onKeyDown;dn.onClick=kn=>{nt({column:Ft,key:f,sortOrder:M,multiplePriority:Zi(Ft)}),fn==null||fn(kn)},dn.onKeyDown=kn=>{kn.keyCode===js.Z.ENTER&&(nt({column:Ft,key:f,sortOrder:M,multiplePriority:Zi(Ft)}),Tn==null||Tn(kn))};const xn=_i(Ft.title,{}),wn=xn==null?void 0:xn.toString();return b&&(dn["aria-sort"]=b==="ascend"?"ascending":"descending"),dn["aria-label"]=wn||"",dn.className=K()(dn.className,`${de}-column-has-sorters`),dn.tabIndex=0,Ft.ellipsis&&(dn.title=(xn!=null?xn:"").toString()),dn}})}return"children"in tn&&(tn=Object.assign(Object.assign({},tn),{children:Ta(de,tn.children,ze,nt,St,It,Nt,rn)})),tn}),ha=de=>{const{column:ue,sortOrder:ze}=de;return{column:ue,order:ze,field:ue.dataIndex,columnKey:ue.key}},Ga=de=>{const ue=de.filter(ze=>{let{sortOrder:nt}=ze;return nt}).map(ha);if(ue.length===0&&de.length){const ze=de.length-1;return Object.assign(Object.assign({},ha(de[ze])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ue.length<=1?ue[0]||{}:ue},Aa=(de,ue,ze)=>{const nt=ue.slice().sort((Nt,Lt)=>Lt.multiplePriority-Nt.multiplePriority),St=de.slice(),It=nt.filter(Nt=>{let{column:{sorter:Lt},sortOrder:Zt}=Nt;return Ts(Lt)&&Zt});return It.length?St.sort((Nt,Lt)=>{for(let Zt=0;Zt<It.length;Zt+=1){const Ft=It[Zt],{column:{sorter:bn},sortOrder:rn}=Ft,tn=Ts(bn);if(tn&&rn){const B=tn(Nt,Lt,rn);if(B!==0)return rn===wi?B:-B}}return 0}).map(Nt=>{const Lt=Nt[ze];return Lt?Object.assign(Object.assign({},Nt),{[ze]:Aa(Lt,ue,ze)}):Nt}):St};var Ya=de=>{const{prefixCls:ue,mergedColumns:ze,sortDirections:nt,tableLocale:St,showSorterTooltip:It,onSorterChange:Nt}=de,[Lt,Zt]=l.useState(_a(ze,!0)),Ft=(f,h)=>{const b=[];return f.forEach((M,Y)=>{const Se=Or(Y,h);if(b.push(_r(M,Se)),Array.isArray(M.children)){const Me=Ft(M.children,Se);b.push.apply(b,(0,Ue.Z)(Me))}}),b},bn=l.useMemo(()=>{let f=!0;const h=_a(ze,!1);if(!h.length){const Se=Ft(ze);return Lt.filter(Me=>{let{key:et}=Me;return Se.includes(et)})}const b=[];function M(Se){f?b.push(Se):b.push(Object.assign(Object.assign({},Se),{sortOrder:null}))}let Y=null;return h.forEach(Se=>{Y===null?(M(Se),Se.sortOrder&&(Se.multiplePriority===!1?f=!1:Y=!0)):(Y&&Se.multiplePriority!==!1||(f=!1),M(Se))}),b},[ze,Lt]),rn=l.useMemo(()=>{var f,h;const b=bn.map(M=>{let{column:Y,sortOrder:Se}=M;return{column:Y,order:Se}});return{sortColumns:b,sortColumn:(f=b[0])===null||f===void 0?void 0:f.column,sortOrder:(h=b[0])===null||h===void 0?void 0:h.order}},[bn]),tn=f=>{let h;f.multiplePriority===!1||!bn.length||bn[0].multiplePriority===!1?h=[f]:h=[].concat((0,Ue.Z)(bn.filter(b=>{let{key:M}=b;return M!==f.key})),[f]),Zt(h),Nt(Ga(h),h)};return[f=>Ta(ue,f,bn,tn,nt,St,It),bn,rn,()=>Ga(bn)]};const Na=(de,ue)=>de.map(nt=>{const St=Object.assign({},nt);return St.title=ui(nt.title,ue),"children"in St&&(St.children=Na(St.children,ue)),St});var Bs=de=>[l.useCallback(ze=>Na(ze,de),[de])],Bo=Wn((de,ue)=>{const{_renderTimes:ze}=de,{_renderTimes:nt}=ue;return ze!==nt}),oo=un((de,ue)=>{const{_renderTimes:ze}=de,{_renderTimes:nt}=ue;return ze!==nt}),jr=d(36237),Ba=d(17835),Xa=d(63356),Da=d(16931),Qa=d(51636),rl=de=>{const{componentCls:ue,lineWidth:ze,lineType:nt,tableBorderColor:St,tableHeaderBg:It,tablePaddingVertical:Nt,tablePaddingHorizontal:Lt,calc:Zt}=de,Ft=`${(0,jr.unit)(ze)} ${nt} ${St}`,bn=(rn,tn,B)=>({[`&${ue}-${rn}`]:{[`> ${ue}-container`]:{[`> ${ue}-content, > ${ue}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ue}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(Zt(tn).mul(-1).equal())}
|
|
|
${(0,jr.unit)(Zt(Zt(B).add(ze)).mul(-1).equal())}`}}}}}});return{[`${ue}-wrapper`]:{[`${ue}${ue}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ue}-title`]:{border:Ft,borderBottom:0},[`> ${ue}-container`]:{borderInlineStart:Ft,borderTop:Ft,[`
|
|
|
> ${ue}-content,
|
|
|
> ${ue}-header,
|
|
|
> ${ue}-body,
|
|
|
> ${ue}-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:Ft},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ft},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ue}-cell-fix-right-first::after`]:{borderInlineEnd:Ft}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ue}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(Zt(Nt).mul(-1).equal())} ${(0,jr.unit)(Zt(Zt(Lt).add(ze)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:ze,bottom:0,borderInlineEnd:Ft,content:'""'}}}}}},[`&${ue}-scroll-horizontal`]:{[`> ${ue}-container > ${ue}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ue}-expanded-row,
|
|
|
> tr${ue}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},bn("middle",de.tablePaddingVerticalMiddle,de.tablePaddingHorizontalMiddle)),bn("small",de.tablePaddingVerticalSmall,de.tablePaddingHorizontalSmall)),{[`> ${ue}-footer`]:{border:Ft,borderTop:0}}),[`${ue}-cell`]:{[`${ue}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,jr.unit)(ze)} 0 ${(0,jr.unit)(ze)} ${It}`}},[`${ue}-bordered ${ue}-cell-scrollbar`]:{borderInlineEnd:Ft}}}},lo=de=>{const{componentCls:ue}=de;return{[`${ue}-wrapper`]:{[`${ue}-cell-ellipsis`]:Object.assign(Object.assign({},Xa.vS),{wordBreak:"keep-all",[`
|
|
|
&${ue}-cell-fix-left-last,
|
|
|
&${ue}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ue}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ue}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},$o=de=>{const{componentCls:ue}=de;return{[`${ue}-wrapper`]:{[`${ue}-tbody > tr${ue}-placeholder`]:{textAlign:"center",color:de.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:de.colorBgContainer}}}}},Fo=de=>{const{componentCls:ue,antCls:ze,motionDurationSlow:nt,lineWidth:St,paddingXS:It,lineType:Nt,tableBorderColor:Lt,tableExpandIconBg:Zt,tableExpandColumnWidth:Ft,borderRadius:bn,tablePaddingVertical:rn,tablePaddingHorizontal:tn,tableExpandedRowBg:B,paddingXXS:u,expandIconMarginTop:f,expandIconSize:h,expandIconHalfInner:b,expandIconScale:M,calc:Y}=de,Se=`${(0,jr.unit)(St)} ${Nt} ${Lt}`,Me=Y(u).sub(St).equal();return{[`${ue}-wrapper`]:{[`${ue}-expand-icon-col`]:{width:Ft},[`${ue}-row-expand-icon-cell`]:{textAlign:"center",[`${ue}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ue}-row-indent`]:{height:1,float:"left"},[`${ue}-row-expand-icon`]:Object.assign(Object.assign({},(0,Xa.Nd)(de)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,jr.unit)(h),background:Zt,border:Se,borderRadius:bn,transform:`scale(${M})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${nt} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:Me,insetInlineStart:Me,height:St},"&::after":{top:Me,bottom:Me,insetInlineStart:b,width:St,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"}}),[`${ue}-row-indent + ${ue}-row-expand-icon`]:{marginTop:f,marginInlineEnd:It},[`tr${ue}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:B}},[`${ze}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ue}-expanded-row-fixed`]:{position:"relative",margin:`${(0,jr.unit)(Y(rn).mul(-1).equal())} ${(0,jr.unit)(Y(tn).mul(-1).equal())}`,padding:`${(0,jr.unit)(rn)} ${(0,jr.unit)(tn)}`}}}},xo=de=>{const{componentCls:ue,antCls:ze,iconCls:nt,tableFilterDropdownWidth:St,tableFilterDropdownSearchWidth:It,paddingXXS:Nt,paddingXS:Lt,colorText:Zt,lineWidth:Ft,lineType:bn,tableBorderColor:rn,headerIconColor:tn,fontSizeSM:B,tablePaddingHorizontal:u,borderRadius:f,motionDurationSlow:h,colorTextDescription:b,colorPrimary:M,tableHeaderFilterActiveBg:Y,colorTextDisabled:Se,tableFilterDropdownBg:Me,tableFilterDropdownHeight:et,controlItemBgHover:wt,controlItemBgActive:Mt,boxShadowSecondary:Ut,filterDropdownMenuBg:nn,calc:dn}=de,fn=`${ze}-dropdown`,Tn=`${ue}-filter-dropdown`,xn=`${ze}-tree`,wn=`${(0,jr.unit)(Ft)} ${bn} ${rn}`;return[{[`${ue}-wrapper`]:{[`${ue}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ue}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:dn(Nt).mul(-1).equal(),marginInline:`${(0,jr.unit)(Nt)} ${(0,jr.unit)(dn(u).div(2).mul(-1).equal())}`,padding:`0 ${(0,jr.unit)(Nt)}`,color:tn,fontSize:B,borderRadius:f,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:b,background:Y},"&.active":{color:M}}}},{[`${ze}-dropdown`]:{[Tn]:Object.assign(Object.assign({},(0,Xa.Wf)(de)),{minWidth:St,backgroundColor:Me,borderRadius:f,boxShadow:Ut,overflow:"hidden",[`${fn}-menu`]:{maxHeight:et,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:nn,"&:empty::after":{display:"block",padding:`${(0,jr.unit)(Lt)} 0`,color:Se,fontSize:B,textAlign:"center",content:'"Not Found"'}},[`${Tn}-tree`]:{paddingBlock:`${(0,jr.unit)(Lt)} 0`,paddingInline:Lt,[xn]:{padding:0},[`${xn}-treenode ${xn}-node-content-wrapper:hover`]:{backgroundColor:wt},[`${xn}-treenode-checkbox-checked ${xn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Mt}}},[`${Tn}-search`]:{padding:Lt,borderBottom:wn,"&-input":{input:{minWidth:It},[nt]:{color:Se}}},[`${Tn}-checkall`]:{width:"100%",marginBottom:Nt,marginInlineStart:Nt},[`${Tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,jr.unit)(dn(Lt).sub(Ft).equal())} ${(0,jr.unit)(Lt)}`,overflow:"hidden",borderTop:wn}})}},{[`${ze}-dropdown ${Tn}, ${Tn}-submenu`]:{[`${ze}-checkbox-wrapper + span`]:{paddingInlineStart:Lt,color:Zt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qa=de=>{const{componentCls:ue,lineWidth:ze,colorSplit:nt,motionDurationSlow:St,zIndexTableFixed:It,tableBg:Nt,zIndexTableSticky:Lt,calc:Zt}=de,Ft=nt;return{[`${ue}-wrapper`]:{[`
|
|
|
${ue}-cell-fix-left,
|
|
|
${ue}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:It,background:Nt},[`
|
|
|
${ue}-cell-fix-left-first::after,
|
|
|
${ue}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Zt(ze).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},[`${ue}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ue}-cell-fix-right-first::after,
|
|
|
${ue}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:Zt(ze).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},[`${ue}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Zt(Lt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ue}-ping-left`]:{[`&:not(${ue}-has-fix-left) ${ue}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Ft}`},[`
|
|
|
${ue}-cell-fix-left-first::after,
|
|
|
${ue}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ft}`},[`${ue}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ue}-ping-right`]:{[`&:not(${ue}-has-fix-right) ${ue}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Ft}`},[`
|
|
|
${ue}-cell-fix-right-first::after,
|
|
|
${ue}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ft}`}},[`${ue}-fixed-column-gapped`]:{[`
|
|
|
${ue}-cell-fix-left-first::after,
|
|
|
${ue}-cell-fix-left-last::after,
|
|
|
${ue}-cell-fix-right-first::after,
|
|
|
${ue}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},zo=de=>{const{componentCls:ue,antCls:ze,margin:nt}=de;return{[`${ue}-wrapper`]:{[`${ue}-pagination${ze}-pagination`]:{margin:`${(0,jr.unit)(nt)} 0`},[`${ue}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:de.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ko=de=>{const{componentCls:ue,tableRadius:ze}=de;return{[`${ue}-wrapper`]:{[ue]:{[`${ue}-title, ${ue}-header`]:{borderRadius:`${(0,jr.unit)(ze)} ${(0,jr.unit)(ze)} 0 0`},[`${ue}-title + ${ue}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ue}-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:ze,borderStartEndRadius:ze,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ze},"> *:last-child":{borderStartEndRadius:ze}}},"&-footer":{borderRadius:`0 0 ${(0,jr.unit)(ze)} ${(0,jr.unit)(ze)}`}}}}},jo=de=>{const{componentCls:ue}=de;return{[`${ue}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ue}-pagination-left`]:{justifyContent:"flex-end"},[`${ue}-pagination-right`]:{justifyContent:"flex-start"},[`${ue}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ue}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ue}-row-indent`]:{float:"right"}}}}},co=de=>{const{componentCls:ue,antCls:ze,iconCls:nt,fontSizeIcon:St,padding:It,paddingXS:Nt,headerIconColor:Lt,headerIconHoverColor:Zt,tableSelectionColumnWidth:Ft,tableSelectedRowBg:bn,tableSelectedRowHoverBg:rn,tableRowHoverBg:tn,tablePaddingHorizontal:B,calc:u}=de;return{[`${ue}-wrapper`]:{[`${ue}-selection-col`]:{width:Ft,[`&${ue}-selection-col-with-dropdown`]:{width:u(Ft).add(St).add(u(It).div(4)).equal()}},[`${ue}-bordered ${ue}-selection-col`]:{width:u(Ft).add(u(Nt).mul(2)).equal(),[`&${ue}-selection-col-with-dropdown`]:{width:u(Ft).add(St).add(u(It).div(4)).add(u(Nt).mul(2)).equal()}},[`
|
|
|
table tr th${ue}-selection-column,
|
|
|
table tr td${ue}-selection-column,
|
|
|
${ue}-selection-column
|
|
|
`]:{paddingInlineEnd:de.paddingXS,paddingInlineStart:de.paddingXS,textAlign:"center",[`${ze}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ue}-selection-column${ue}-cell-fix-left`]:{zIndex:u(de.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ue}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ue}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ue}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${de.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,jr.unit)(u(B).div(4).equal()),[nt]:{color:Lt,fontSize:St,verticalAlign:"baseline","&:hover":{color:Zt}}},[`${ue}-tbody`]:{[`${ue}-row`]:{[`&${ue}-row-selected`]:{[`> ${ue}-cell`]:{background:bn,"&-row-hover":{background:rn}}},[`> ${ue}-cell-row-hover`]:{background:tn}}}}}},Co=de=>{const{componentCls:ue,tableExpandColumnWidth:ze,calc:nt}=de,St=(It,Nt,Lt,Zt)=>({[`${ue}${ue}-${It}`]:{fontSize:Zt,[`
|
|
|
${ue}-title,
|
|
|
${ue}-footer,
|
|
|
${ue}-cell,
|
|
|
${ue}-thead > tr > th,
|
|
|
${ue}-tbody > tr > th,
|
|
|
${ue}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,jr.unit)(Nt)} ${(0,jr.unit)(Lt)}`},[`${ue}-filter-trigger`]:{marginInlineEnd:(0,jr.unit)(nt(Lt).div(2).mul(-1).equal())},[`${ue}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(nt(Nt).mul(-1).equal())} ${(0,jr.unit)(nt(Lt).mul(-1).equal())}`},[`${ue}-tbody`]:{[`${ue}-wrapper:only-child ${ue}`]:{marginBlock:(0,jr.unit)(nt(Nt).mul(-1).equal()),marginInline:`${(0,jr.unit)(nt(ze).sub(Lt).equal())} ${(0,jr.unit)(nt(Lt).mul(-1).equal())}`}},[`${ue}-selection-extra`]:{paddingInlineStart:(0,jr.unit)(nt(Lt).div(4).equal())}}});return{[`${ue}-wrapper`]:Object.assign(Object.assign({},St("middle",de.tablePaddingVerticalMiddle,de.tablePaddingHorizontalMiddle,de.tableFontSizeMiddle)),St("small",de.tablePaddingVerticalSmall,de.tablePaddingHorizontalSmall,de.tableFontSizeSmall))}},sl=de=>{const{componentCls:ue,marginXXS:ze,fontSizeIcon:nt,headerIconColor:St,headerIconHoverColor:It}=de;return{[`${ue}-wrapper`]:{[`${ue}-thead th${ue}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${de.motionDurationSlow}, left 0s`,"&:hover":{background:de.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:de.colorPrimary},[`
|
|
|
&${ue}-cell-fix-left:hover,
|
|
|
&${ue}-cell-fix-right:hover
|
|
|
`]:{background:de.tableFixedHeaderSortActiveBg}},[`${ue}-thead th${ue}-column-sort`]:{background:de.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ue}-column-sort`]:{background:de.tableBodySortBg},[`${ue}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ue}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ue}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ue}-column-sorter`]:{marginInlineStart:ze,color:St,fontSize:0,transition:`color ${de.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:nt,"&.active":{color:de.colorPrimary}},[`${ue}-column-sorter-up + ${ue}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ue}-column-sorters:hover ${ue}-column-sorter`]:{color:It}}}},wo=de=>{const{componentCls:ue,opacityLoading:ze,tableScrollThumbBg:nt,tableScrollThumbBgHover:St,tableScrollThumbSize:It,tableScrollBg:Nt,zIndexTableSticky:Lt,stickyScrollBarBorderRadius:Zt,lineWidth:Ft,lineType:bn,tableBorderColor:rn}=de,tn=`${(0,jr.unit)(Ft)} ${bn} ${rn}`;return{[`${ue}-wrapper`]:{[`${ue}-sticky`]:{"&-holder":{position:"sticky",zIndex:Lt,background:de.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,jr.unit)(It)} !important`,zIndex:Lt,display:"flex",alignItems:"center",background:Nt,borderTop:tn,opacity:ze,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:It,backgroundColor:nt,borderRadius:Zt,transition:`all ${de.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:St}}}}}}},go=de=>{const{componentCls:ue,lineWidth:ze,tableBorderColor:nt,calc:St}=de,It=`${(0,jr.unit)(ze)} ${de.lineType} ${nt}`;return{[`${ue}-wrapper`]:{[`${ue}-summary`]:{position:"relative",zIndex:de.zIndexTableFixed,background:de.tableBg,"> tr":{"> th, > td":{borderBottom:It}}},[`div${ue}-summary`]:{boxShadow:`0 ${(0,jr.unit)(St(ze).mul(-1).equal())} 0 ${nt}`}}}},ll=de=>{const{componentCls:ue,motionDurationMid:ze,lineWidth:nt,lineType:St,tableBorderColor:It,calc:Nt}=de,Lt=`${(0,jr.unit)(nt)} ${St} ${It}`,Zt=`${ue}-expanded-row-cell`;return{[`${ue}-wrapper`]:{[`${ue}-tbody-virtual`]:{[`${ue}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${ue}-row,
|
|
|
& > div:not(${ue}-row) > ${ue}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ue}-cell`]:{borderBottom:Lt,transition:`background ${ze}`},[`${ue}-expanded-row`]:{[`${Zt}${Zt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,jr.unit)(nt)})`,borderInlineEnd:"none"}}},[`${ue}-bordered`]:{[`${ue}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Lt,position:"absolute"},[`${ue}-cell`]:{borderInlineEnd:Lt,[`&${ue}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Nt(nt).mul(-1).equal(),borderInlineStart:Lt}}},[`&${ue}-virtual`]:{[`${ue}-placeholder ${ue}-cell`]:{borderInlineEnd:Lt,borderBottom:Lt}}}}}};const Ho=de=>{const{componentCls:ue,fontWeightStrong:ze,tablePaddingVertical:nt,tablePaddingHorizontal:St,tableExpandColumnWidth:It,lineWidth:Nt,lineType:Lt,tableBorderColor:Zt,tableFontSize:Ft,tableBg:bn,tableRadius:rn,tableHeaderTextColor:tn,motionDurationMid:B,tableHeaderBg:u,tableHeaderCellSplitColor:f,tableFooterTextColor:h,tableFooterBg:b,calc:M}=de,Y=`${(0,jr.unit)(Nt)} ${Lt} ${Zt}`;return{[`${ue}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Xa.dF)()),{[ue]:Object.assign(Object.assign({},(0,Xa.Wf)(de)),{fontSize:Ft,background:bn,borderRadius:`${(0,jr.unit)(rn)} ${(0,jr.unit)(rn)} 0 0`,scrollbarColor:`${de.tableScrollThumbBg} ${de.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,jr.unit)(rn)} ${(0,jr.unit)(rn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ue}-cell,
|
|
|
${ue}-thead > tr > th,
|
|
|
${ue}-tbody > tr > th,
|
|
|
${ue}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,jr.unit)(nt)} ${(0,jr.unit)(St)}`,overflowWrap:"break-word"},[`${ue}-title`]:{padding:`${(0,jr.unit)(nt)} ${(0,jr.unit)(St)}`},[`${ue}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:tn,fontWeight:ze,textAlign:"start",background:u,borderBottom:Y,transition:`background ${B} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ue}-selection-column):not(${ue}-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 ${B}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ue}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${B}, border-color ${B}`,borderBottom:Y,[`
|
|
|
> ${ue}-wrapper:only-child,
|
|
|
> ${ue}-expanded-row-fixed > ${ue}-wrapper:only-child
|
|
|
`]:{[ue]:{marginBlock:(0,jr.unit)(M(nt).mul(-1).equal()),marginInline:`${(0,jr.unit)(M(It).sub(St).equal())}
|
|
|
${(0,jr.unit)(M(St).mul(-1).equal())}`,[`${ue}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:tn,fontWeight:ze,textAlign:"start",background:u,borderBottom:Y,transition:`background ${B} ease`}}},[`${ue}-footer`]:{padding:`${(0,jr.unit)(nt)} ${(0,jr.unit)(St)}`,color:h,background:b}})}},ul=de=>{const{colorFillAlter:ue,colorBgContainer:ze,colorTextHeading:nt,colorFillSecondary:St,colorFillContent:It,controlItemBgActive:Nt,controlItemBgActiveHover:Lt,padding:Zt,paddingSM:Ft,paddingXS:bn,colorBorderSecondary:rn,borderRadiusLG:tn,controlHeight:B,colorTextPlaceholder:u,fontSize:f,fontSizeSM:h,lineHeight:b,lineWidth:M,colorIcon:Y,colorIconHover:Se,opacityLoading:Me,controlInteractiveSize:et}=de,wt=new Ba.FastColor(St).onBackground(ze).toHexString(),Mt=new Ba.FastColor(It).onBackground(ze).toHexString(),Ut=new Ba.FastColor(ue).onBackground(ze).toHexString(),nn=new Ba.FastColor(Y),dn=new Ba.FastColor(Se),fn=et/2-M,Tn=fn*2+M*3;return{headerBg:Ut,headerColor:nt,headerSortActiveBg:wt,headerSortHoverBg:Mt,bodySortBg:Ut,rowHoverBg:Ut,rowSelectedBg:Nt,rowSelectedHoverBg:Lt,rowExpandedBg:ue,cellPaddingBlock:Zt,cellPaddingInline:Zt,cellPaddingBlockMD:Ft,cellPaddingInlineMD:bn,cellPaddingBlockSM:bn,cellPaddingInlineSM:bn,borderColor:rn,headerBorderRadius:tn,footerBg:Ut,footerColor:nt,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:rn,fixedHeaderSortActiveBg:wt,headerFilterHoverBg:It,filterDropdownMenuBg:ze,filterDropdownBg:ze,expandIconBg:ze,selectionColumnWidth:B,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*b-M*3)/2-Math.ceil((h*1.4-M*3)/2),headerIconColor:nn.clone().setA(nn.a*Me).toRgbString(),headerIconHoverColor:dn.clone().setA(dn.a*Me).toRgbString(),expandIconHalfInner:fn,expandIconSize:Tn,expandIconScale:et/Tn}},mt=2;var Wo=(0,Da.I$)("Table",de=>{const{colorTextHeading:ue,colorSplit:ze,colorBgContainer:nt,controlInteractiveSize:St,headerBg:It,headerColor:Nt,headerSortActiveBg:Lt,headerSortHoverBg:Zt,bodySortBg:Ft,rowHoverBg:bn,rowSelectedBg:rn,rowSelectedHoverBg:tn,rowExpandedBg:B,cellPaddingBlock:u,cellPaddingInline:f,cellPaddingBlockMD:h,cellPaddingInlineMD:b,cellPaddingBlockSM:M,cellPaddingInlineSM:Y,borderColor:Se,footerBg:Me,footerColor:et,headerBorderRadius:wt,cellFontSize:Mt,cellFontSizeMD:Ut,cellFontSizeSM:nn,headerSplitColor:dn,fixedHeaderSortActiveBg:fn,headerFilterHoverBg:Tn,filterDropdownBg:xn,expandIconBg:wn,selectionColumnWidth:kn,stickyScrollBarBg:Jn,calc:tr}=de,Un=(0,Qa.mergeToken)(de,{tableFontSize:Mt,tableBg:nt,tableRadius:wt,tablePaddingVertical:u,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:M,tablePaddingHorizontalSmall:Y,tableBorderColor:Se,tableHeaderTextColor:Nt,tableHeaderBg:It,tableFooterTextColor:et,tableFooterBg:Me,tableHeaderCellSplitColor:dn,tableHeaderSortBg:Lt,tableHeaderSortHoverBg:Zt,tableBodySortBg:Ft,tableFixedHeaderSortActiveBg:fn,tableHeaderFilterActiveBg:Tn,tableFilterDropdownBg:xn,tableRowHoverBg:bn,tableSelectedRowBg:rn,tableSelectedRowHoverBg:tn,zIndexTableFixed:mt,zIndexTableSticky:tr(mt).add(1).equal({unit:!1}),tableFontSizeMiddle:Ut,tableFontSizeSmall:nn,tableSelectionColumnWidth:kn,tableExpandIconBg:wn,tableExpandColumnWidth:tr(St).add(tr(de.padding).mul(2)).equal(),tableExpandedRowBg:B,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Jn,tableScrollThumbBgHover:ue,tableScrollBg:ze});return[Ho(Un),zo(Un),go(Un),sl(Un),xo(Un),rl(Un),Ko(Un),Fo(Un),go(Un),$o(Un),co(Un),qa(Un),wo(Un),lo(Un),Co(Un),jo(Un),ll(Un)]},ul,{unitless:{expandIconScale:!0}});const To=[],Ao=(de,ue)=>{var ze,nt;const{prefixCls:St,className:It,rootClassName:Nt,style:Lt,size:Zt,bordered:Ft,dropdownPrefixCls:bn,dataSource:rn,pagination:tn,rowSelection:B,rowKey:u="key",rowClassName:f,columns:h,children:b,childrenColumnName:M,onChange:Y,getPopupContainer:Se,loading:Me,expandIcon:et,expandable:wt,expandedRowRender:Mt,expandIconColumnIndex:Ut,indentSize:nn,scroll:dn,sortDirections:fn,locale:Tn,showSorterTooltip:xn={target:"full-header"},virtual:wn}=de,kn=(0,qr.ln)("Table"),Jn=l.useMemo(()=>h||Gt(b),[h,b]),tr=l.useMemo(()=>Jn.some(si=>si.responsive),[Jn]),Un=(0,Gi.Z)(tr),Er=l.useMemo(()=>{const si=new Set(Object.keys(Un).filter($i=>Un[$i]));return Jn.filter($i=>!$i.responsive||$i.responsive.some(Ji=>si.has(Ji)))},[Jn,Un]),Ar=(0,pi.Z)(de,["className","style","columns"]),{locale:gi=ds.Z,direction:ni,table:kt,renderEmpty:vi,getPrefixCls:ts,getPopupContainer:Xr}=l.useContext(vs.E_),Fr=(0,Pr.Z)(Zt),Yi=Object.assign(Object.assign({},gi.Table),Tn),Xi=rn||To,Cr=ts("table",St),Vr=ts("dropdown",bn),[,pr]=(0,zi.ZP)(),Sr=(0,ls.Z)(Cr),[ai,hi,Ui]=Wo(Cr,Sr),Ni=Object.assign(Object.assign({childrenColumnName:M,expandIconColumnIndex:Ut},wt),{expandIcon:(ze=wt==null?void 0:wt.expandIcon)!==null&&ze!==void 0?ze:(nt=kt==null?void 0:kt.expandable)===null||nt===void 0?void 0:nt.expandIcon}),{childrenColumnName:Hi="children"}=Ni,As=l.useMemo(()=>Xi.some(si=>si==null?void 0:si[Hi])?"nest":Mt||wt!=null&&wt.expandedRowRender?"row":null,[Xi]),wr={body:l.useRef(null)},Mr=Ur(Cr),xi=l.useRef(null),Ki=l.useRef(null);Fi(ue,()=>Object.assign(Object.assign({},Ki.current),{nativeElement:xi.current}));const Ei=l.useMemo(()=>typeof u=="function"?u:si=>si==null?void 0:si[u],[u]),[$s]=Ps(Xi,Hi,Ei),qi={},na=function(si,$i){let Ji=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bs,Qs,ya,xa;const Ks=Object.assign(Object.assign({},qi),si);Ji&&((bs=qi.resetPagination)===null||bs===void 0||bs.call(qi),!((Qs=Ks.pagination)===null||Qs===void 0)&&Qs.current&&(Ks.pagination.current=1),tn&&((ya=tn.onChange)===null||ya===void 0||ya.call(tn,1,(xa=Ks.pagination)===null||xa===void 0?void 0:xa.pageSize))),dn&&dn.scrollToFirstRowOnChange!==!1&&wr.body.current&&(0,Os.Z)(0,{getContainer:()=>wr.body.current}),Y==null||Y(Ks.pagination,Ks.filters,Ks.sorter,{currentDataSource:Hr(Aa(Xi,Ks.sorterStates,Hi),Ks.filterStates,Hi),action:$i})},rs=(si,$i)=>{na({sorter:si,sorterStates:$i},"sort",!1)},[Bi,Qi,Wi,Is]=Ya({prefixCls:Cr,mergedColumns:Er,onSorterChange:rs,sortDirections:fn||["ascend","descend"],tableLocale:Yi,showSorterTooltip:xn}),ys=l.useMemo(()=>Aa(Xi,Qi,Hi),[Xi,Qi]);qi.sorter=Is(),qi.sorterStates=Qi;const Di=(si,$i)=>{na({filters:si,filterStates:$i},"filter",!0)},[fs,Vi,Us]=Ci({prefixCls:Cr,locale:Yi,dropdownPrefixCls:Vr,mergedColumns:Er,onFilterChange:Di,getPopupContainer:Se||Xr,rootClassName:K()(Nt,Sr)}),hs=Hr(ys,Vi,Hi);qi.filters=Us,qi.filterStates=Vi;const Vs=l.useMemo(()=>{const si={};return Object.keys(Us).forEach($i=>{Us[$i]!==null&&(si[$i]=Us[$i])}),Object.assign(Object.assign({},Wi),{filters:si})},[Wi,Us]),[pa]=Bs(Vs),fo=(si,$i)=>{na({pagination:Object.assign(Object.assign({},qi.pagination),{current:si,pageSize:$i})},"paginate")},[cs,Do]=Hs(hs.length,fo,tn);qi.pagination=tn===!1?{}:ws(cs,tn),qi.resetPagination=Do;const Gs=l.useMemo(()=>{if(tn===!1||!cs.pageSize)return hs;const{current:si=1,total:$i,pageSize:Ji=Js}=cs;return hs.length<$i?hs.length>Ji?hs.slice((si-1)*Ji,si*Ji):hs:hs.slice((si-1)*Ji,si*Ji)},[!!tn,hs,cs==null?void 0:cs.current,cs==null?void 0:cs.pageSize,cs==null?void 0:cs.total]),[ca,da]=Gn({prefixCls:Cr,data:hs,pageData:Gs,getRowKey:Ei,getRecordByKey:$s,expandType:As,childrenColumnName:Hi,locale:Yi,getPopupContainer:Se||Xr},B),qs=(si,$i,Ji)=>{let bs;return typeof f=="function"?bs=K()(f(si,$i,Ji)):bs=K()(f),K()({[`${Cr}-row-selected`]:da.has(Ei(si,$i))},bs)};Ni.__PARENT_RENDER_ICON__=Ni.expandIcon,Ni.expandIcon=Ni.expandIcon||et||xr(Yi),As==="nest"&&Ni.expandIconColumnIndex===void 0?Ni.expandIconColumnIndex=B?1:0:Ni.expandIconColumnIndex>0&&B&&(Ni.expandIconColumnIndex-=1),typeof Ni.indentSize!="number"&&(Ni.indentSize=typeof nn=="number"?nn:15);const Ys=l.useCallback(si=>pa(ca(fs(Bi(si)))),[Bi,fs,ca]);let ga,Ra;if(tn!==!1&&(cs!=null&&cs.total)){let si;cs.size?si=cs.size:si=Fr==="small"||Fr==="middle"?"small":void 0;const $i=Qs=>l.createElement(_s.Z,Object.assign({},cs,{className:K()(`${Cr}-pagination ${Cr}-pagination-${Qs}`,cs.className),size:si})),Ji=ni==="rtl"?"left":"right",{position:bs}=cs;if(bs!==null&&Array.isArray(bs)){const Qs=bs.find(Ks=>Ks.includes("top")),ya=bs.find(Ks=>Ks.includes("bottom")),xa=bs.every(Ks=>`${Ks}`=="none");!Qs&&!ya&&!xa&&(Ra=$i(Ji)),Qs&&(ga=$i(Qs.toLowerCase().replace("top",""))),ya&&(Ra=$i(ya.toLowerCase().replace("bottom","")))}else Ra=$i(Ji)}let va;typeof Me=="boolean"?va={spinning:Me}:typeof Me=="object"&&(va=Object.assign({spinning:!0},Me));const $a=K()(Ui,Sr,`${Cr}-wrapper`,kt==null?void 0:kt.className,{[`${Cr}-wrapper-rtl`]:ni==="rtl"},It,Nt,hi),Xs=Object.assign(Object.assign({},kt==null?void 0:kt.style),Lt),Al=typeof(Tn==null?void 0:Tn.emptyText)!="undefined"?Tn.emptyText:(vi==null?void 0:vi("Table"))||l.createElement(ss.Z,{componentName:"Table"}),cl=wn?oo:Bo,fa={},dl=l.useMemo(()=>{const{fontSize:si,lineHeight:$i,lineWidth:Ji,padding:bs,paddingXS:Qs,paddingSM:ya}=pr,xa=Math.floor(si*$i);switch(Fr){case"middle":return ya*2+xa+Ji;case"small":return Qs*2+xa+Ji;default:return bs*2+xa+Ji}},[pr,Fr]);return wn&&(fa.listItemHeight=dl),ai(l.createElement("div",{ref:xi,className:$a,style:Xs},l.createElement(ci.Z,Object.assign({spinning:!1},va),ga,l.createElement(cl,Object.assign({},fa,Ar,{ref:Ki,columns:Er,direction:ni,expandable:Ni,prefixCls:Cr,className:K()({[`${Cr}-middle`]:Fr==="middle",[`${Cr}-small`]:Fr==="small",[`${Cr}-bordered`]:Ft,[`${Cr}-empty`]:Xi.length===0},Ui,Sr,hi),data:Gs,rowKey:Ei,rowClassName:qs,emptyText:Al,internalHooks:U,internalRefs:wr,transformColumns:Ys,getContainerWidth:Mr})),Ra)))};var Vo=l.forwardRef(Ao);const eo=(de,ue)=>{const ze=l.useRef(0);return ze.current+=1,l.createElement(Vo,Object.assign({},de,{ref:ue,_renderTimes:ze.current}))},ma=l.forwardRef(eo);ma.SELECTION_COLUMN=ii,ma.EXPAND_COLUMN=ie,ma.SELECTION_ALL=Oi,ma.SELECTION_INVERT=Lr,ma.SELECTION_NONE=Pi,ma.Column=Ir,ma.ColumnGroup=mr,ma.Summary=ge;var Io=ma,Go=Io},96599:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return K}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(2738),F=d(29509),g=d(78776),q=d(22703),Q=d(12919),o=d(48755),C=d(36237),P=d(17835),y=d(63356),S=d(51636),I=d(16931);const N=w=>{const{paddingXXS:te,lineWidth:ne,tagPaddingHorizontal:z,componentCls:x,calc:T}=w,G=T(z).sub(ne).equal(),ve=T(te).sub(ne).equal();return{[x]:Object.assign(Object.assign({},(0,y.Wf)(w)),{display:"inline-block",height:"auto",marginInlineEnd:w.marginXS,paddingInline:G,fontSize:w.tagFontSize,lineHeight:w.tagLineHeight,whiteSpace:"nowrap",background:w.defaultBg,border:`${(0,C.unit)(w.lineWidth)} ${w.lineType} ${w.colorBorder}`,borderRadius:w.borderRadiusSM,opacity:1,transition:`all ${w.motionDurationMid}`,textAlign:"start",position:"relative",[`&${x}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:w.defaultColor},[`${x}-close-icon`]:{marginInlineStart:ve,fontSize:w.tagIconSize,color:w.colorTextDescription,cursor:"pointer",transition:`all ${w.motionDurationMid}`,"&:hover":{color:w.colorTextHeading}},[`&${x}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${w.iconCls}-close, ${w.iconCls}-close:hover`]:{color:w.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${x}-checkable-checked):hover`]:{color:w.colorPrimary,backgroundColor:w.colorFillSecondary},"&:active, &-checked":{color:w.colorTextLightSolid},"&-checked":{backgroundColor:w.colorPrimary,"&:hover":{backgroundColor:w.colorPrimaryHover}},"&:active":{backgroundColor:w.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${w.iconCls} + span, > span + ${w.iconCls}`]:{marginInlineStart:G}}),[`${x}-borderless`]:{borderColor:"transparent",background:w.tagBorderlessBg}}},W=w=>{const{lineWidth:te,fontSizeIcon:ne,calc:z}=w,x=w.fontSizeSM;return(0,S.mergeToken)(w,{tagFontSize:x,tagLineHeight:(0,C.unit)(z(w.lineHeightSM).mul(x).equal()),tagIconSize:z(ne).sub(z(te).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:w.defaultBg})},H=w=>({defaultBg:new P.FastColor(w.colorFillQuaternary).onBackground(w.colorBgContainer).toHexString(),defaultColor:w.colorText});var j=(0,I.I$)("Tag",w=>{const te=W(w);return N(te)},H),A=function(w,te){var ne={};for(var z in w)Object.prototype.hasOwnProperty.call(w,z)&&te.indexOf(z)<0&&(ne[z]=w[z]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,z=Object.getOwnPropertySymbols(w);x<z.length;x++)te.indexOf(z[x])<0&&Object.prototype.propertyIsEnumerable.call(w,z[x])&&(ne[z[x]]=w[z[x]]);return ne},R=l.forwardRef((w,te)=>{const{prefixCls:ne,style:z,className:x,checked:T,onChange:G,onClick:ve}=w,We=A(w,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:st,tag:_e}=l.useContext(o.E_),Ke=Pt=>{G==null||G(!T),ve==null||ve(Pt)},Ve=st("tag",ne),[rt,Ae,Tt]=j(Ve),tt=U()(Ve,`${Ve}-checkable`,{[`${Ve}-checkable-checked`]:T},_e==null?void 0:_e.className,x,Ae,Tt);return rt(l.createElement("span",Object.assign({},We,{ref:te,style:Object.assign(Object.assign({},z),_e==null?void 0:_e.style),className:tt,onClick:Ke})))}),L=d(93427);const ae=w=>(0,L.Z)(w,(te,ne)=>{let{textColor:z,lightBorderColor:x,lightColor:T,darkColor:G}=ne;return{[`${w.componentCls}${w.componentCls}-${te}`]:{color:z,background:T,borderColor:x,"&-inverse":{color:w.colorTextLightSolid,background:G,borderColor:G},[`&${w.componentCls}-borderless`]:{borderColor:"transparent"}}}});var pe=(0,I.bk)(["Tag","preset"],w=>{const te=W(w);return ae(te)},H);function ce(w){return typeof w!="string"?w:w.charAt(0).toUpperCase()+w.slice(1)}const Le=(w,te,ne)=>{const z=ce(ne);return{[`${w.componentCls}${w.componentCls}-${te}`]:{color:w[`color${ne}`],background:w[`color${z}Bg`],borderColor:w[`color${z}Border`],[`&${w.componentCls}-borderless`]:{borderColor:"transparent"}}}};var $e=(0,I.bk)(["Tag","status"],w=>{const te=W(w);return[Le(te,"success","Success"),Le(te,"processing","Info"),Le(te,"error","Error"),Le(te,"warning","Warning")]},H),Te=function(w,te){var ne={};for(var z in w)Object.prototype.hasOwnProperty.call(w,z)&&te.indexOf(z)<0&&(ne[z]=w[z]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,z=Object.getOwnPropertySymbols(w);x<z.length;x++)te.indexOf(z[x])<0&&Object.prototype.propertyIsEnumerable.call(w,z[x])&&(ne[z[x]]=w[z[x]]);return ne};const se=l.forwardRef((w,te)=>{const{prefixCls:ne,className:z,rootClassName:x,style:T,children:G,icon:ve,color:We,onClose:st,bordered:_e=!0,visible:Ke}=w,Ve=Te(w,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:rt,direction:Ae,tag:Tt}=l.useContext(o.E_),[tt,Pt]=l.useState(!0),Xe=(0,le.Z)(Ve,["closeIcon","closable"]);l.useEffect(()=>{Ke!==void 0&&Pt(Ke)},[Ke]);const Qe=(0,F.o2)(We),Ne=(0,F.yT)(We),Oe=Qe||Ne,re=Object.assign(Object.assign({backgroundColor:We&&!Oe?We:void 0},Tt==null?void 0:Tt.style),T),Fe=rt("tag",ne),[Re,Z,O]=j(Fe),me=U()(Fe,Tt==null?void 0:Tt.className,{[`${Fe}-${We}`]:Oe,[`${Fe}-has-color`]:We&&!Oe,[`${Fe}-hidden`]:!tt,[`${Fe}-rtl`]:Ae==="rtl",[`${Fe}-borderless`]:!_e},z,x,Z,O),Ee=fe=>{fe.stopPropagation(),st==null||st(fe),!fe.defaultPrevented&&Pt(!1)},[,ge]=(0,g.Z)((0,g.w)(w),(0,g.w)(Tt),{closable:!1,closeIconRender:fe=>{const dt=l.createElement("span",{className:`${Fe}-close-icon`,onClick:Ee},fe);return(0,q.wm)(fe,dt,ot=>({onClick:ft=>{var ht;(ht=ot==null?void 0:ot.onClick)===null||ht===void 0||ht.call(ot,ft),Ee(ft)},className:U()(ot==null?void 0:ot.className,`${Fe}-close-icon`)}))}}),we=typeof Ve.onClick=="function"||G&&G.type==="a",ke=ve||null,Ye=ke?l.createElement(l.Fragment,null,ke,G&&l.createElement("span",null,G)):G,oe=l.createElement("span",Object.assign({},Xe,{ref:te,className:me,style:re}),Ye,ge,Qe&&l.createElement(pe,{key:"preset",prefixCls:Fe}),Ne&&l.createElement($e,{key:"status",prefixCls:Fe}));return Re(we?l.createElement(Q.Z,{component:"Tag"},oe):oe)});se.CheckableTag=R;var K=se},93427:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return ie}});var l=d(34998);function ie(U,le){return l.i.reduce((F,g)=>{const q=U[`${g}1`],Q=U[`${g}3`],o=U[`${g}6`],C=U[`${g}7`];return Object.assign(Object.assign({},F),le(g,{lightColor:q,lightBorderColor:Q,darkColor:o,textColor:C}))},{})}},25399:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return te}});var l=d(59301),ie=d(92310),U=d.n(ie),le=d(29125),F=d(18929),g=d(62487),q=d(75030),Q=d(86641),o=d(52838),C=d(22703),P=d(32383),y=d(55743),S=d(57700),I=d(48755),N=d(36237),W=d(63356),H=d(34925),j=d(37645),A=d(36305),V=d(93427),R=d(51636),L=d(16931);const ae=ne=>{const{calc:z,componentCls:x,tooltipMaxWidth:T,tooltipColor:G,tooltipBg:ve,tooltipBorderRadius:We,zIndexPopup:st,controlHeight:_e,boxShadowSecondary:Ke,paddingSM:Ve,paddingXS:rt,arrowOffsetHorizontal:Ae,sizePopupArrow:Tt}=ne,tt=z(We).add(Tt).add(Ae).equal(),Pt=z(We).mul(2).add(Tt).equal();return[{[x]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(ne)),{position:"absolute",zIndex:st,display:"block",width:"max-content",maxWidth:T,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":ve,[`${x}-inner`]:{minWidth:Pt,minHeight:_e,padding:`${(0,N.unit)(ne.calc(Ve).div(2).equal())} ${(0,N.unit)(rt)}`,color:G,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ve,borderRadius:We,boxShadow:Ke,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(",")]:{[`${x}-inner`]:{borderRadius:ne.min(We,j.qN)}},[`${x}-content`]:{position:"relative"}}),(0,V.Z)(ne,(Xe,Qe)=>{let{darkColor:Ne}=Qe;return{[`&${x}-${Xe}`]:{[`${x}-inner`]:{backgroundColor:Ne},[`${x}-arrow`]:{"--antd-arrow-background-color":Ne}}}})),{"&-rtl":{direction:"rtl"}})},(0,j.ZP)(ne,"var(--antd-arrow-background-color)"),{[`${x}-pure`]:{position:"relative",maxWidth:"none",margin:ne.sizePopupArrow}}]},pe=ne=>Object.assign(Object.assign({zIndexPopup:ne.zIndexPopupBase+70},(0,j.wZ)({contentRadius:ne.borderRadius,limitVerticalRadius:!0})),(0,A.w)((0,R.mergeToken)(ne,{borderRadiusOuter:Math.min(ne.borderRadiusOuter,4)})));var ce=function(ne){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,L.I$)("Tooltip",T=>{const{borderRadius:G,colorTextLightSolid:ve,colorBgSpotlight:We}=T,st=(0,R.mergeToken)(T,{tooltipMaxWidth:250,tooltipColor:ve,tooltipBorderRadius:G,tooltipBg:We});return[ae(st),(0,H._y)(T,"zoom-big-fast")]},pe,{resetStyle:!1,injectStyle:z})(ne)},Le=d(29509);function $e(ne,z){const x=(0,Le.o2)(z),T=U()({[`${ne}-${z}`]:z&&x}),G={},ve={};return z&&!x&&(G.background=z,ve["--antd-arrow-background-color"]=z),{className:T,overlayStyle:G,arrowStyle:ve}}var Pe=ne=>{const{prefixCls:z,className:x,placement:T="top",title:G,color:ve,overlayInnerStyle:We}=ne,{getPrefixCls:st}=l.useContext(I.E_),_e=st("tooltip",z),[Ke,Ve,rt]=ce(_e),Ae=$e(_e,ve),Tt=Ae.arrowStyle,tt=Object.assign(Object.assign({},We),Ae.overlayStyle),Pt=U()(Ve,rt,_e,`${_e}-pure`,`${_e}-placement-${T}`,x,Ae.className);return Ke(l.createElement("div",{className:Pt,style:Tt},l.createElement("div",{className:`${_e}-arrow`}),l.createElement(le.G,Object.assign({},ne,{className:Ve,prefixCls:_e,overlayInnerStyle:tt}),G)))},se=function(ne,z){var x={};for(var T in ne)Object.prototype.hasOwnProperty.call(ne,T)&&z.indexOf(T)<0&&(x[T]=ne[T]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,T=Object.getOwnPropertySymbols(ne);G<T.length;G++)z.indexOf(T[G])<0&&Object.prototype.propertyIsEnumerable.call(ne,T[G])&&(x[T[G]]=ne[T[G]]);return x};const w=l.forwardRef((ne,z)=>{var x,T;const{prefixCls:G,openClassName:ve,getTooltipContainer:We,color:st,overlayInnerStyle:_e,children:Ke,afterOpenChange:Ve,afterVisibleChange:rt,destroyTooltipOnHide:Ae,arrow:Tt=!0,title:tt,overlay:Pt,builtinPlacements:Xe,arrowPointAtCenter:Qe=!1,autoAdjustOverflow:Ne=!0,motion:Oe,getPopupContainer:re,placement:Fe="top",mouseEnterDelay:Re=.1,mouseLeaveDelay:Z=.1,overlayStyle:O,rootClassName:me,overlayClassName:Ee,styles:ge,classNames:we}=ne,ke=se(ne,["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"]),Ye=!!Tt,[,oe]=(0,S.ZP)(),{getPopupContainer:fe,getPrefixCls:dt,direction:ot,className:ft,style:ht,classNames:Ge,styles:Ct}=(0,I.dj)("tooltip"),gt=(0,P.ln)("Tooltip"),Ce=l.useRef(null),Je=()=>{var An;(An=Ce.current)===null||An===void 0||An.forceAlign()};l.useImperativeHandle(z,()=>{var An,qn;return{forceAlign:Je,forcePopupAlign:()=>{gt.deprecated(!1,"forcePopupAlign","forceAlign"),Je()},nativeElement:(An=Ce.current)===null||An===void 0?void 0:An.nativeElement,popupElement:(qn=Ce.current)===null||qn===void 0?void 0:qn.popupElement}});const[_,D]=(0,F.Z)(!1,{value:(x=ne.open)!==null&&x!==void 0?x:ne.visible,defaultValue:(T=ne.defaultOpen)!==null&&T!==void 0?T:ne.defaultVisible}),Ze=!tt&&!Pt&&tt!==0,ee=An=>{var qn,vn;D(Ze?!1:An),Ze||((qn=ne.onOpenChange)===null||qn===void 0||qn.call(ne,An),(vn=ne.onVisibleChange)===null||vn===void 0||vn.call(ne,An))},ye=l.useMemo(()=>{var An,qn;let vn=Qe;return typeof Tt=="object"&&(vn=(qn=(An=Tt.pointAtCenter)!==null&&An!==void 0?An:Tt.arrowPointAtCenter)!==null&&qn!==void 0?qn:Qe),Xe||(0,o.Z)({arrowPointAtCenter:vn,autoAdjustOverflow:Ne,arrowWidth:Ye?oe.sizePopupArrow:0,borderRadius:oe.borderRadius,offset:oe.marginXXS,visibleFirst:!0})},[Qe,Tt,Xe,oe]),Ot=l.useMemo(()=>tt===0?tt:Pt||tt||"",[Pt,tt]),He=l.createElement(g.Z,{space:!0},typeof Ot=="function"?Ot():Ot),it=dt("tooltip",G),ct=dt(),he=ne["data-popover-inject"];let be=_;!("open"in ne)&&!("visible"in ne)&&Ze&&(be=!1);const je=l.isValidElement(Ke)&&!(0,C.M2)(Ke)?Ke:l.createElement("span",null,Ke),Ue=je.props,$=!Ue.className||typeof Ue.className=="string"?U()(Ue.className,ve||`${it}-open`):Ue.className,[ut,xe,At]=ce(it,!he),zt=$e(it,st),qt=zt.arrowStyle,cn=U()(Ee,{[`${it}-rtl`]:ot==="rtl"},zt.className,me,xe,At,ft,Ge.root,we==null?void 0:we.root),gn=U()(Ge.body,we==null?void 0:we.body),[En,Fn]=(0,q.Cn)("Tooltip",ke.zIndex),Hn=l.createElement(le.Z,Object.assign({},ke,{zIndex:En,showArrow:Ye,placement:Fe,mouseEnterDelay:Re,mouseLeaveDelay:Z,prefixCls:it,classNames:{root:cn,body:gn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qt),Ct.root),ht),O),ge==null?void 0:ge.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Ct.body),_e),ge==null?void 0:ge.body),zt.overlayStyle)},getTooltipContainer:re||We||fe,ref:Ce,builtinPlacements:ye,overlay:He,visible:be,onVisibleChange:ee,afterVisibleChange:Ve!=null?Ve:rt,arrowContent:l.createElement("span",{className:`${it}-arrow-content`}),motion:{motionName:(0,Q.m)(ct,"zoom-big-fast",ne.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ae}),be?(0,C.Tm)(je,{className:$}):je);return ut(l.createElement(y.Z.Provider,{value:Fn},Hn))});w._InternalPanelDoNotUseOrYouWillBeFired=Pe;var te=w},18287:function(ln,qe,d){"use strict";d.d(qe,{default:function(){return st}});var l=d(87632),ie=d(77654),U=d(59301),le=d(52671),F=d(8657),g=d(60499),q={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"},Q=q,o=d(7657),C=function(Ke,Ve){return U.createElement(o.Z,(0,g.Z)({},Ke,{ref:Ve,icon:Q}))},P=U.forwardRef(C),y=P,S=d(92310),I=d.n(S),N=d(82661),W=d(34061),H=d(48755),j=d(56082),A=d(86641),V=d(57700),R=d(12425);const L=4;function ae(_e){const{dropPosition:Ke,dropLevelOffset:Ve,prefixCls:rt,indent:Ae,direction:Tt="ltr"}=_e,tt=Tt==="ltr"?"left":"right",Pt=Tt==="ltr"?"right":"left",Xe={[tt]:-Ve*Ae+L,[Pt]:0};switch(Ke){case-1:Xe.top=-3;break;case 1:Xe.bottom=-3;break;default:Xe.bottom=-3,Xe[tt]=Ae+L;break}return U.createElement("div",{style:Xe,className:`${rt}-drop-indicator`})}var pe=ae,ce=d(85278),$e=U.forwardRef((_e,Ke)=>{var Ve;const{getPrefixCls:rt,direction:Ae,virtual:Tt,tree:tt}=U.useContext(H.E_),{prefixCls:Pt,className:Xe,showIcon:Qe=!1,showLine:Ne,switcherIcon:Oe,switcherLoadingIcon:re,blockNode:Fe=!1,children:Re,checkable:Z=!1,selectable:O=!0,draggable:me,motion:Ee,style:ge}=_e,we=rt("tree",Pt),ke=rt(),Ye=Ee!=null?Ee:Object.assign(Object.assign({},(0,A.Z)(ke)),{motionAppear:!1}),oe=Object.assign(Object.assign({},_e),{checkable:Z,selectable:O,showIcon:Qe,motion:Ye,blockNode:Fe,showLine:!!Ne,dropIndicatorRender:pe}),[fe,dt,ot]=(0,R.ZP)(we),[,ft]=(0,V.ZP)(),ht=ft.paddingXS/2+(((Ve=ft.Tree)===null||Ve===void 0?void 0:Ve.titleHeight)||ft.controlHeightSM),Ge=U.useMemo(()=>{if(!me)return!1;let gt={};switch(typeof me){case"function":gt.nodeDraggable=me;break;case"object":gt=Object.assign({},me);break;default:break}return gt.icon!==!1&&(gt.icon=gt.icon||U.createElement(j.Z,null)),gt},[me]),Ct=gt=>U.createElement(ce.Z,{prefixCls:we,switcherIcon:Oe,switcherLoadingIcon:re,treeNodeProps:gt,showLine:Ne});return fe(U.createElement(l.ZP,Object.assign({itemHeight:ht,ref:Ke,virtual:Tt},oe,{style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ge),prefixCls:we,className:I()({[`${we}-icon-hide`]:!Qe,[`${we}-block-node`]:Fe,[`${we}-unselectable`]:!O,[`${we}-rtl`]:Ae==="rtl"},tt==null?void 0:tt.className,Xe,dt,ot),direction:Ae,checkable:Z&&U.createElement("span",{className:`${we}-checkbox-inner`}),selectable:O,switcherIcon:Ct,draggable:Ge}),Re))});const Te=0,Pe=1,se=2;function K(_e,Ke,Ve){const{key:rt,children:Ae}=Ve;function Tt(tt){const Pt=tt[rt],Xe=tt[Ae];Ke(Pt,tt)!==!1&&K(Xe||[],Ke,Ve)}_e.forEach(Tt)}function w(_e){let{treeData:Ke,expandedKeys:Ve,startKey:rt,endKey:Ae,fieldNames:Tt}=_e;const tt=[];let Pt=Te;if(rt&&rt===Ae)return[rt];if(!rt||!Ae)return[];function Xe(Qe){return Qe===rt||Qe===Ae}return K(Ke,Qe=>{if(Pt===se)return!1;if(Xe(Qe)){if(tt.push(Qe),Pt===Te)Pt=Pe;else if(Pt===Pe)return Pt=se,!1}else Pt===Pe&&tt.push(Qe);return Ve.includes(Qe)},(0,W.w$)(Tt)),tt}function te(_e,Ke,Ve){const rt=(0,ie.Z)(Ke),Ae=[];return K(_e,(Tt,tt)=>{const Pt=rt.indexOf(Tt);return Pt!==-1&&(Ae.push(tt),rt.splice(Pt,1)),!!rt.length},(0,W.w$)(Ve)),Ae}var ne=function(_e,Ke){var Ve={};for(var rt in _e)Object.prototype.hasOwnProperty.call(_e,rt)&&Ke.indexOf(rt)<0&&(Ve[rt]=_e[rt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,rt=Object.getOwnPropertySymbols(_e);Ae<rt.length;Ae++)Ke.indexOf(rt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,rt[Ae])&&(Ve[rt[Ae]]=_e[rt[Ae]]);return Ve};function z(_e){const{isLeaf:Ke,expanded:Ve}=_e;return Ke?U.createElement(le.Z,null):Ve?U.createElement(F.Z,null):U.createElement(y,null)}function x(_e){let{treeData:Ke,children:Ve}=_e;return Ke||(0,W.zn)(Ve)}const T=(_e,Ke)=>{var{defaultExpandAll:Ve,defaultExpandParent:rt,defaultExpandedKeys:Ae}=_e,Tt=ne(_e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const tt=U.useRef(null),Pt=U.useRef(null),Xe=()=>{const{keyEntities:fe}=(0,W.I8)(x(Tt));let dt;return Ve?dt=Object.keys(fe):rt?dt=(0,N.r7)(Tt.expandedKeys||Ae||[],fe):dt=Tt.expandedKeys||Ae||[],dt},[Qe,Ne]=U.useState(Tt.selectedKeys||Tt.defaultSelectedKeys||[]),[Oe,re]=U.useState(()=>Xe());U.useEffect(()=>{"selectedKeys"in Tt&&Ne(Tt.selectedKeys)},[Tt.selectedKeys]),U.useEffect(()=>{"expandedKeys"in Tt&&re(Tt.expandedKeys)},[Tt.expandedKeys]);const Fe=(fe,dt)=>{var ot;return"expandedKeys"in Tt||re(fe),(ot=Tt.onExpand)===null||ot===void 0?void 0:ot.call(Tt,fe,dt)},Re=(fe,dt)=>{var ot;const{multiple:ft,fieldNames:ht}=Tt,{node:Ge,nativeEvent:Ct}=dt,{key:gt=""}=Ge,Ce=x(Tt),Je=Object.assign(Object.assign({},dt),{selected:!0}),_=(Ct==null?void 0:Ct.ctrlKey)||(Ct==null?void 0:Ct.metaKey),D=Ct==null?void 0:Ct.shiftKey;let Ze;ft&&_?(Ze=fe,tt.current=gt,Pt.current=Ze,Je.selectedNodes=te(Ce,Ze,ht)):ft&&D?(Ze=Array.from(new Set([].concat((0,ie.Z)(Pt.current||[]),(0,ie.Z)(w({treeData:Ce,expandedKeys:Oe,startKey:gt,endKey:tt.current,fieldNames:ht}))))),Je.selectedNodes=te(Ce,Ze,ht)):(Ze=[gt],tt.current=gt,Pt.current=Ze,Je.selectedNodes=te(Ce,Ze,ht)),(ot=Tt.onSelect)===null||ot===void 0||ot.call(Tt,Ze,Je),"selectedKeys"in Tt||Ne(Ze)},{getPrefixCls:Z,direction:O}=U.useContext(H.E_),{prefixCls:me,className:Ee,showIcon:ge=!0,expandAction:we="click"}=Tt,ke=ne(Tt,["prefixCls","className","showIcon","expandAction"]),Ye=Z("tree",me),oe=I()(`${Ye}-directory`,{[`${Ye}-directory-rtl`]:O==="rtl"},Ee);return U.createElement($e,Object.assign({icon:z,ref:Ke,blockNode:!0},ke,{showIcon:ge,expandAction:we,prefixCls:Ye,className:oe,expandedKeys:Oe,selectedKeys:Qe,onSelect:Re,onExpand:Fe}))};var ve=U.forwardRef(T);const We=$e;We.DirectoryTree=ve,We.TreeNode=l.OF;var st=We},12425:function(ln,qe,d){"use strict";d.d(qe,{ZP:function(){return N},Yk:function(){return y},TM:function(){return S}});var l=d(36237),ie=d(36170),U=d(63356),le=d(34961),F=d(51636),g=d(16931);const q=W=>{let{treeCls:H,treeNodeCls:j,directoryNodeSelectedBg:A,directoryNodeSelectedColor:V,motionDurationMid:R,borderRadius:L,controlItemBgHover:ae}=W;return{[`${H}${H}-directory ${j}`]:{[`${H}-node-content-wrapper`]:{position:"static",[`> *:not(${H}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${R}`,content:'""',borderRadius:L},"&:hover:before":{background:ae}},[`${H}-switcher, ${H}-checkbox, ${H}-draggable-icon`]:{zIndex:1},"&-selected":{[`${H}-switcher, ${H}-draggable-icon`]:{color:V},[`${H}-node-content-wrapper`]:{color:V,background:"transparent","&:before, &:hover:before":{background:A}}}}}},Q=new l.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),o=(W,H)=>({[`.${W}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${H.motionDurationSlow}`}}}),C=(W,H)=>({[`.${W}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:H.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,l.unit)(H.lineWidthBold)} solid ${H.colorPrimary}`,borderRadius:"50%",content:'""'}}}),P=(W,H)=>{const{treeCls:j,treeNodeCls:A,treeNodePadding:V,titleHeight:R,indentSize:L,nodeSelectedBg:ae,nodeHoverBg:pe,colorTextQuaternary:ce,controlItemBgActiveDisabled:Le}=H;return{[j]:Object.assign(Object.assign({},(0,U.Wf)(H)),{background:H.colorBgContainer,borderRadius:H.borderRadius,transition:`background-color ${H.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${j}-rtl ${j}-switcher_close ${j}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${j}-active-focused)`]:Object.assign({},(0,U.oN)(H)),[`${j}-list-holder-inner`]:{alignItems:"flex-start"},[`&${j}-block-node`]:{[`${j}-list-holder-inner`]:{alignItems:"stretch",[`${j}-node-content-wrapper`]:{flex:"auto"},[`${A}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${H.colorPrimary}`,opacity:0,animationName:Q,animationDuration:H.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:H.borderRadius}}},[A]:{display:"flex",alignItems:"flex-start",marginBottom:V,lineHeight:(0,l.unit)(R),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:V},[`&-disabled ${j}-node-content-wrapper`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${j}-checkbox-disabled + ${j}-node-selected,&${A}-disabled${A}-selected ${j}-node-content-wrapper`]:{backgroundColor:Le},[`${j}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${A}-disabled)`]:{[`${j}-node-content-wrapper`]:{"&:hover":{color:H.nodeHoverColor}}},[`&-active ${j}-node-content-wrapper`]:{background:H.controlItemBgHover},[`&:not(${A}-disabled).filter-node ${j}-title`]:{color:H.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${j}-draggable-icon`]:{flexShrink:0,width:R,textAlign:"center",visibility:"visible",color:ce},[`&${A}-disabled ${j}-draggable-icon`]:{visibility:"hidden"}}},[`${j}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:L}},[`${j}-draggable-icon`]:{visibility:"hidden"},[`${j}-switcher, ${j}-checkbox`]:{marginInlineEnd:H.calc(H.calc(R).sub(H.controlInteractiveSize)).div(2).equal()},[`${j}-switcher`]:Object.assign(Object.assign({},o(W,H)),{position:"relative",flex:"none",alignSelf:"stretch",width:R,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${H.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:R,height:R,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:H.borderRadius,transition:`all ${H.motionDurationSlow}`},[`&:not(${j}-switcher-noop):hover:before`]:{backgroundColor:H.colorBgTextHover},[`&_close ${j}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:H.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H.calc(R).div(2).equal(),bottom:H.calc(V).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${H.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:H.calc(H.calc(R).div(2).equal()).mul(.8).equal(),height:H.calc(R).div(2).equal(),borderBottom:`1px solid ${H.colorBorder}`,content:'""'}}}),[`${j}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:R,paddingBlock:0,paddingInline:H.paddingXS,background:"transparent",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},C(W,H)),{"&:hover":{backgroundColor:pe},[`&${j}-node-selected`]:{color:H.nodeSelectedColor,backgroundColor:ae},[`${j}-iconEle`]:{display:"inline-block",width:R,height:R,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${j}-unselectable ${j}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${A}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${H.colorPrimary}`},"&-show-line":{[`${j}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H.calc(R).div(2).equal(),bottom:H.calc(V).mul(-1).equal(),borderInlineEnd:`1px solid ${H.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${j}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${A}-leaf-last ${j}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,l.unit)(H.calc(R).div(2).equal())} !important`}})}},y=function(W,H){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const A=`.${W}`,V=`${A}-treenode`,R=H.calc(H.paddingXS).div(2).equal(),L=(0,F.mergeToken)(H,{treeCls:A,treeNodeCls:V,treeNodePadding:R});return[P(W,L),j&&q(L)].filter(Boolean)},S=W=>{const{controlHeightSM:H,controlItemBgHover:j,controlItemBgActive:A}=W,V=H;return{titleHeight:V,indentSize:V,nodeHoverBg:j,nodeHoverColor:W.colorText,nodeSelectedBg:A,nodeSelectedColor:W.colorText}},I=W=>{const{colorTextLightSolid:H,colorPrimary:j}=W;return Object.assign(Object.assign({},S(W)),{directoryNodeSelectedColor:H,directoryNodeSelectedBg:j})};var N=(0,g.I$)("Tree",(W,H)=>{let{prefixCls:j}=H;return[{[W.componentCls]:(0,ie.C2)(`${j}-checkbox`,W)},y(j,W),(0,le.Z)(W)]},I)},85278:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return H}});var l=d(59301),ie=d(60499),U={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"},le=U,F=d(7657),g=function(A,V){return l.createElement(F.Z,(0,ie.Z)({},A,{ref:V,icon:le}))},q=l.forwardRef(g),Q=q,o=d(52671),C=d(58617),P=d(15075),y=d(43531),S=d(92310),I=d.n(S),N=d(22703),H=j=>{const{prefixCls:A,switcherIcon:V,treeNodeProps:R,showLine:L,switcherLoadingIcon:ae}=j,{isLeaf:pe,expanded:ce,loading:Le}=R;if(Le)return l.isValidElement(ae)?ae:l.createElement(C.Z,{className:`${A}-switcher-loading-icon`});let $e;if(L&&typeof L=="object"&&($e=L.showLeafIcon),pe){if(!L)return null;if(typeof $e!="boolean"&&$e){const se=typeof $e=="function"?$e(R):$e,K=`${A}-switcher-line-custom-icon`;return l.isValidElement(se)?(0,N.Tm)(se,{className:I()(se.props.className||"",K)}):se}return $e?l.createElement(o.Z,{className:`${A}-switcher-line-icon`}):l.createElement("span",{className:`${A}-switcher-leaf-line`})}const Te=`${A}-switcher-icon`,Pe=typeof V=="function"?V(R):V;return l.isValidElement(Pe)?(0,N.Tm)(Pe,{className:I()(Pe.props.className||"",Te)}):Pe!==void 0?Pe:L?ce?l.createElement(P.Z,{className:`${A}-switcher-line-icon`}):l.createElement(y.Z,{className:`${A}-switcher-line-icon`}):l.createElement(Q,{className:Te})}},64018:function(){var ln,qe,d,l=!1,ie,U;window.PR_SHOULD_USE_CONTINUATION=!0;var le,F;(function(){var g=window,q=["break,continue,do,else,for,if,return,while"],Q=[q,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[Q,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],P=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],S="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",I=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],N="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=[q,"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"],H=[q,"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"],j=[q,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],A=[C,y,P,I,N,W,H,j],V=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,R="str",L="kwd",ae="com",pe="typ",ce="lit",Le="pun",$e="pln",Te="tag",Pe="dec",se="src",K="atn",w="atv",te="nocode",ne="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function z(Oe){for(var re=0,Fe=!1,Re=!1,Z=0,O=Oe.length;Z<O;++Z){var me=Oe[Z];if(me.ignoreCase)Re=!0;else if(/[a-z]/i.test(me.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Fe=!0,Re=!1;break}}var Ee={b:8,t:9,n:10,v:11,f:12,r:13};function ge(fe){var dt=fe.charCodeAt(0);if(dt!==92)return dt;var ot=fe.charAt(1);return dt=Ee[ot],dt||("0"<=ot&&ot<="7"?parseInt(fe.substring(1),8):ot==="u"||ot==="x"?parseInt(fe.substring(2),16):fe.charCodeAt(1))}function we(fe){if(fe<32)return(fe<16?"\\x0":"\\x")+fe.toString(16);var dt=String.fromCharCode(fe);return dt==="\\"||dt==="-"||dt==="]"||dt==="^"?"\\"+dt:dt}function ke(fe){var dt=fe.substring(1,fe.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")),ot=[],ft=dt[0]==="^",ht=["["];ft&&ht.push("^");for(var Ge=ft?1:0,Ct=dt.length;Ge<Ct;++Ge){var gt=dt[Ge];if(/\\[bdsw]/i.test(gt))ht.push(gt);else{var Ce=ge(gt),Je;Ge+2<Ct&&dt[Ge+1]==="-"?(Je=ge(dt[Ge+2]),Ge+=2):Je=Ce,ot.push([Ce,Je]),Je<65||Ce>122||(Je<65||Ce>90||ot.push([Math.max(65,Ce)|32,Math.min(Je,90)|32]),Je<97||Ce>122||ot.push([Math.max(97,Ce)&-33,Math.min(Je,122)&-33]))}}ot.sort(function(ee,ye){return ee[0]-ye[0]||ye[1]-ee[1]});for(var _=[],D=[],Ge=0;Ge<ot.length;++Ge){var Ze=ot[Ge];Ze[0]<=D[1]+1?D[1]=Math.max(D[1],Ze[1]):_.push(D=Ze)}for(var Ge=0;Ge<_.length;++Ge){var Ze=_[Ge];ht.push(we(Ze[0])),Ze[1]>Ze[0]&&(Ze[1]+1>Ze[0]&&ht.push("-"),ht.push(we(Ze[1])))}return ht.push("]"),ht.join("")}function Ye(fe){for(var dt=fe.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")),ot=dt.length,ft=[],ht=0,Ge=0;ht<ot;++ht){var Ct=dt[ht];if(Ct==="(")++Ge;else if(Ct.charAt(0)==="\\"){var gt=+Ct.substring(1);gt&&(gt<=Ge?ft[gt]=-1:dt[ht]=we(gt))}}for(var ht=1;ht<ft.length;++ht)ft[ht]===-1&&(ft[ht]=++re);for(var ht=0,Ge=0;ht<ot;++ht){var Ct=dt[ht];if(Ct==="(")++Ge,ft[Ge]||(dt[ht]="(?:");else if(Ct.charAt(0)==="\\"){var gt=+Ct.substring(1);gt&><=Ge&&(dt[ht]="\\"+ft[gt])}}for(var ht=0;ht<ot;++ht)dt[ht]==="^"&&dt[ht+1]!=="^"&&(dt[ht]="");if(fe.ignoreCase&&Fe)for(var ht=0;ht<ot;++ht){var Ct=dt[ht],Ce=Ct.charAt(0);Ct.length>=2&&Ce==="["?dt[ht]=ke(Ct):Ce!=="\\"&&(dt[ht]=Ct.replace(/[a-zA-Z]/g,function(D){var Ze=D.charCodeAt(0);return"["+String.fromCharCode(Ze&-33,Ze|32)+"]"}))}return dt.join("")}for(var oe=[],Z=0,O=Oe.length;Z<O;++Z){var me=Oe[Z];if(me.global||me.multiline)throw new Error(""+me);oe.push("(?:"+Ye(me)+")")}return new RegExp(oe.join("|"),Re?"gi":"g")}function x(Oe,re){var Fe=/(?:^|\s)nocode(?:\s|$)/,Re=[],Z=0,O=[],me=0;function Ee(ge){var we=ge.nodeType;if(we==1){if(Fe.test(ge.className))return;for(var ke=ge.firstChild;ke;ke=ke.nextSibling)Ee(ke);var Ye=ge.nodeName.toLowerCase();(Ye==="br"||Ye==="li")&&(Re[me]=`
|
|
|
`,O[me<<1]=Z++,O[me++<<1|1]=ge)}else if(we==3||we==4){var oe=ge.nodeValue;oe.length&&(re?oe=oe.replace(/\r\n?/g,`
|
|
|
`):oe=oe.replace(/[ \t\r\n]+/g," "),Re[me]=oe,O[me<<1]=Z,Z+=oe.length,O[me++<<1|1]=ge)}}return Ee(Oe),{sourceCode:Re.join("").replace(/\n$/,""),spans:O}}function T(Oe,re,Fe,Re,Z){if(Fe){var O={sourceNode:Oe,pre:1,langExtension:null,numberLines:null,sourceCode:Fe,spans:null,basePos:re,decorations:null};Re(O),Z.push.apply(Z,O.decorations)}}var G=/\S/;function ve(Oe){for(var re=void 0,Fe=Oe.firstChild;Fe;Fe=Fe.nextSibling){var Re=Fe.nodeType;re=Re===1?re?Oe:Fe:Re===3&&G.test(Fe.nodeValue)?Oe:re}return re===Oe?void 0:re}function We(Oe,re){var Fe={},Re;(function(){for(var me=Oe.concat(re),Ee=[],ge={},we=0,ke=me.length;we<ke;++we){var Ye=me[we],oe=Ye[3];if(oe)for(var fe=oe.length;--fe>=0;)Fe[oe.charAt(fe)]=Ye;var dt=Ye[1],ot=""+dt;ge.hasOwnProperty(ot)||(Ee.push(dt),ge[ot]=null)}Ee.push(/[\0-\uffff]/),Re=z(Ee)})();var Z=re.length,O=function(me){for(var Ee=me.sourceCode,ge=me.basePos,we=me.sourceNode,ke=[ge,$e],Ye=0,oe=Ee.match(Re)||[],fe={},dt=0,ot=oe.length;dt<ot;++dt){var ft=oe[dt],ht=fe[ft],Ge=void 0,Ct;if(typeof ht=="string")Ct=!1;else{var gt=Fe[ft.charAt(0)];if(gt)Ge=ft.match(gt[1]),ht=gt[0];else{for(var Ce=0;Ce<Z;++Ce)if(gt=re[Ce],Ge=ft.match(gt[1]),Ge){ht=gt[0];break}Ge||(ht=$e)}Ct=ht.length>=5&&ht.substring(0,5)==="lang-",Ct&&!(Ge&&typeof Ge[1]=="string")&&(Ct=!1,ht=se),Ct||(fe[ft]=ht)}var Je=Ye;if(Ye+=ft.length,!Ct)ke.push(ge+Je,ht);else{var _=Ge[1],D=ft.indexOf(_),Ze=D+_.length;Ge[2]&&(Ze=ft.length-Ge[2].length,D=Ze-_.length);var ee=ht.substring(5);T(we,ge+Je,ft.substring(0,D),O,ke),T(we,ge+Je+D,_,Tt(ee,_),ke),T(we,ge+Je+Ze,ft.substring(Ze),O,ke)}}me.decorations=ke};return O}function st(Oe){var re=[],Fe=[];Oe.tripleQuotedStrings?re.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Oe.multiLineStrings?re.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):re.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Oe.verbatimStrings&&Fe.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Re=Oe.hashComments;Re&&(Oe.cStyleComments?(Re>1?re.push([ae,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):re.push([ae,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Fe.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):re.push([ae,/^#[^\r\n]*/,null,"#"])),Oe.cStyleComments&&(Fe.push([ae,/^\/\/[^\r\n]*/,null]),Fe.push([ae,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Z=Oe.regexLiterals;if(Z){var O=Z>1?"":`
|
|
|
\r`,me=O?".":"[\\S\\s]",Ee="/(?=[^/*"+O+"])(?:[^/\\x5B\\x5C"+O+"]|\\x5C"+me+"|\\x5B(?:[^\\x5C\\x5D"+O+"]|\\x5C"+me+")*(?:\\x5D|$))+/";Fe.push(["lang-regex",RegExp("^"+ne+"("+Ee+")")])}var ge=Oe.types;ge&&Fe.push([pe,ge]);var we=(""+Oe.keywords).replace(/^ | $/g,"");we.length&&Fe.push([L,new RegExp("^(?:"+we.replace(/[\s,]+/g,"|")+")\\b"),null]),re.push([$e,/^\s+/,null,` \r
|
|
|
\xA0`]);var ke="^.[^\\s\\w.$@'\"`/\\\\]*";return Oe.regexLiterals&&(ke+="(?!s*/)"),Fe.push([ce,/^@[a-z_$][a-z_$@0-9]*/i,null],[pe,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[$e,/^[a-z_$][a-z_$@0-9]*/i,null],[ce,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[$e,/^\\[\s\S]?/,null],[Le,new RegExp(ke),null]),We(re,Fe)}var _e=st({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ke(Oe,re,Fe){for(var Re=/(?:^|\s)nocode(?:\s|$)/,Z=/\r\n?|\n/,O=Oe.ownerDocument,me=O.createElement("li");Oe.firstChild;)me.appendChild(Oe.firstChild);var Ee=[me];function ge(dt){var ot=dt.nodeType;if(ot==1&&!Re.test(dt.className))if(dt.nodeName==="br")we(dt),dt.parentNode&&dt.parentNode.removeChild(dt);else for(var ft=dt.firstChild;ft;ft=ft.nextSibling)ge(ft);else if((ot==3||ot==4)&&Fe){var ht=dt.nodeValue,Ge=ht.match(Z);if(Ge){var Ct=ht.substring(0,Ge.index);dt.nodeValue=Ct;var gt=ht.substring(Ge.index+Ge[0].length);if(gt){var Ce=dt.parentNode;Ce.insertBefore(O.createTextNode(gt),dt.nextSibling)}we(dt),Ct||dt.parentNode.removeChild(dt)}}}function we(dt){for(;!dt.nextSibling;)if(dt=dt.parentNode,!dt)return;function ot(Ge,Ct){var gt=Ct?Ge.cloneNode(!1):Ge,Ce=Ge.parentNode;if(Ce){var Je=ot(Ce,1),_=Ge.nextSibling;Je.appendChild(gt);for(var D=_;D;D=_)_=D.nextSibling,Je.appendChild(D)}return gt}for(var ft=ot(dt.nextSibling,0),ht;(ht=ft.parentNode)&&ht.nodeType===1;)ft=ht;Ee.push(ft)}for(var ke=0;ke<Ee.length;++ke)ge(Ee[ke]);re===(re|0)&&Ee[0].setAttribute("value",re);var Ye=O.createElement("ol");Ye.className="linenums";for(var oe=Math.max(0,re-1|0)||0,ke=0,fe=Ee.length;ke<fe;++ke)me=Ee[ke],me.className="L"+(ke+oe)%10,me.firstChild||me.appendChild(O.createTextNode("\xA0")),Ye.appendChild(me);Oe.appendChild(Ye)}function Ve(Oe){var re=/\bMSIE\s(\d+)/.exec(navigator.userAgent);re=re&&+re[1]<=8;var Fe=/\n/g,Re=Oe.sourceCode,Z=Re.length,O=0,me=Oe.spans,Ee=me.length,ge=0,we=Oe.decorations,ke=we.length,Ye=0;we[ke]=Z;var oe,fe;for(fe=oe=0;fe<ke;)we[fe]!==we[fe+2]?(we[oe++]=we[fe++],we[oe++]=we[fe++]):fe+=2;for(ke=oe,fe=oe=0;fe<ke;){for(var dt=we[fe],ot=we[fe+1],ft=fe+2;ft+2<=ke&&we[ft+1]===ot;)ft+=2;we[oe++]=dt,we[oe++]=ot,fe=ft}ke=we.length=oe;var ht=Oe.sourceNode,Ge="";ht&&(Ge=ht.style.display,ht.style.display="none");try{for(var Ct=null;ge<Ee;){var gt=me[ge],Ce=me[ge+2]||Z,Je=we[Ye+2]||Z,ft=Math.min(Ce,Je),_=me[ge+1],D;if(_.nodeType!==1&&(D=Re.substring(O,ft))){re&&(D=D.replace(Fe,"\r")),_.nodeValue=D;var Ze=_.ownerDocument,ee=Ze.createElement("span");ee.className=we[Ye+1];var ye=_.parentNode;ye.replaceChild(ee,_),ee.appendChild(_),O<Ce&&(me[ge+1]=_=Ze.createTextNode(Re.substring(ft,Ce)),ye.insertBefore(_,ee.nextSibling))}O=ft,O>=Ce&&(ge+=2),O>=Je&&(Ye+=2)}}finally{ht&&(ht.style.display=Ge)}}var rt={};function Ae(Oe,re){for(var Fe=re.length;--Fe>=0;){var Re=re[Fe];rt.hasOwnProperty(Re)?g.console&&console.warn("cannot override language handler %s",Re):rt[Re]=Oe}}function Tt(Oe,re){return Oe&&rt.hasOwnProperty(Oe)||(Oe=/^\s*</.test(re)?"default-markup":"default-code"),rt[Oe]}Ae(_e,["default-code"]),Ae(We([],[[$e,/^[^<?]+/],[Pe,/^<!\w[^>]*(?:>|$)/],[ae,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[Le,/^(?:<[%?]|[%?]>)/],["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"]),Ae(We([[$e,/^[\s]+/,null,` \r
|
|
|
`],[w,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Te,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[K,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[Le,/^[=<>\/]+/],["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"]),Ae(We([],[[w,/^[\s\S]+/]]),["uq.val"]),Ae(st({keywords:C,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),Ae(st({keywords:"null,true,false"}),["json"]),Ae(st({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),Ae(st({keywords:P,cStyleComments:!0}),["java"]),Ae(st({keywords:j,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(st({keywords:W,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae(st({keywords:N,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae(st({keywords:H,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae(st({keywords:I,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(st({keywords:S,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(We([],[[R,/^[\s\S]+/]]),["regex"]);function tt(Oe){var re=Oe.langExtension;try{var Fe=x(Oe.sourceNode,Oe.pre),Re=Fe.sourceCode;Oe.sourceCode=Re,Oe.spans=Fe.spans,Oe.basePos=0,Tt(re,Re)(Oe),Ve(Oe)}catch(Z){g.console&&console.log(Z&&Z.stack||Z)}}function Pt(Oe,re,Fe){var Re=Fe||!1,Z=re||null,O=document.createElement("div");O.innerHTML="<pre>"+Oe+"</pre>",O=O.firstChild,Re&&Ke(O,Re,!0);var me={langExtension:Z,numberLines:Re,sourceNode:O,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return tt(me),O.innerHTML}function Xe(Oe,re){var Fe=re||document.body,Re=Fe.ownerDocument||document;function Z(gt){return Fe.getElementsByTagName(gt)}for(var O=[Z("pre"),Z("code"),Z("xmp")],me=[],Ee=0;Ee<O.length;++Ee)for(var ge=0,we=O[Ee].length;ge<we;++ge)me.push(O[Ee][ge]);O=null;var ke=Date;ke.now||(ke={now:function(){return+new Date}});var Ye=0,oe=/\blang(?:uage)?-([\w.]+)(?!\S)/,fe=/\bprettyprint\b/,dt=/\bprettyprinted\b/,ot=/pre|xmp/i,ft=/^code$/i,ht=/^(?:pre|code|xmp)$/i,Ge={};function Ct(){for(var gt=g.PR_SHOULD_USE_CONTINUATION?ke.now()+250:1/0;Ye<me.length&&ke.now()<gt;Ye++){for(var Ce=me[Ye],Je=Ge,_=Ce;_=_.previousSibling;){var D=_.nodeType,Ze=(D===7||D===8)&&_.nodeValue;if(Ze?!/^\??prettify\b/.test(Ze):D!==3||/\S/.test(_.nodeValue))break;if(Ze){Je={},Ze.replace(/\b(\w+)=([\w:.%+-]+)/g,function(xe,At,zt){Je[At]=zt});break}}var ee=Ce.className;if((Je!==Ge||fe.test(ee))&&!dt.test(ee)){for(var ye=!1,Ot=Ce.parentNode;Ot;Ot=Ot.parentNode){var He=Ot.tagName;if(ht.test(He)&&Ot.className&&fe.test(Ot.className)){ye=!0;break}}if(!ye){Ce.className+=" prettyprinted";var it=Je.lang;if(!it){it=ee.match(oe);var ct;!it&&(ct=ve(Ce))&&ft.test(ct.tagName)&&(it=ct.className.match(oe)),it&&(it=it[1])}var he;if(ot.test(Ce.tagName))he=1;else{var be=Ce.currentStyle,je=Re.defaultView,Ue=be?be.whiteSpace:je&&je.getComputedStyle?je.getComputedStyle(Ce,null).getPropertyValue("white-space"):0;he=Ue&&Ue.substring(0,3)==="pre"}var $=Je.linenums;($=$==="true"||+$)||($=ee.match(/\blinenums\b(?::(\d+))?/),$=$?$[1]&&$[1].length?+$[1]:!0:!1),$&&Ke(Ce,$,he);var ut={langExtension:it,sourceNode:Ce,numberLines:$,pre:he,sourceCode:null,basePos:null,spans:null,decorations:null};tt(ut)}}}Ye<me.length?g.setTimeout(Ct,250):typeof Oe=="function"&&Oe()}Ct()}var Qe=g.PR={createSimpleLexer:We,registerLangHandler:Ae,sourceDecorator:st,PR_ATTRIB_NAME:K,PR_ATTRIB_VALUE:w,PR_COMMENT:ae,PR_DECLARATION:Pe,PR_KEYWORD:L,PR_LITERAL:ce,PR_NOCODE:te,PR_PLAIN:$e,PR_PUNCTUATION:Le,PR_SOURCE:se,PR_STRING:R,PR_TAG:Te,PR_TYPE:pe,prettyPrintOne:l?g.prettyPrintOne=Pt:le=Pt,prettyPrint:F=l?g.prettyPrint=Xe:F=Xe},Ne=g.define;typeof Ne=="function"&&Ne.amd&&Ne("google-code-prettify",[],function(){return Qe})})()},25769:function(ln,qe,d){"use strict";var l=d(98040),ie={"text/plain":"Text","text/html":"Url",default:"Text"},U="Copy to clipboard: #{key}, Enter";function le(g){var q=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,q)}function F(g,q){var Q,o,C,P,y,S,I=!1;q||(q={}),Q=q.debug||!1;try{C=l(),P=document.createRange(),y=document.getSelection(),S=document.createElement("span"),S.textContent=g,S.ariaHidden="true",S.style.all="unset",S.style.position="fixed",S.style.top=0,S.style.clip="rect(0, 0, 0, 0)",S.style.whiteSpace="pre",S.style.webkitUserSelect="text",S.style.MozUserSelect="text",S.style.msUserSelect="text",S.style.userSelect="text",S.addEventListener("copy",function(W){if(W.stopPropagation(),q.format)if(W.preventDefault(),typeof W.clipboardData=="undefined"){Q&&console.warn("unable to use e.clipboardData"),Q&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var H=ie[q.format]||ie.default;window.clipboardData.setData(H,g)}else W.clipboardData.clearData(),W.clipboardData.setData(q.format,g);q.onCopy&&(W.preventDefault(),q.onCopy(W.clipboardData))}),document.body.appendChild(S),P.selectNodeContents(S),y.addRange(P);var N=document.execCommand("copy");if(!N)throw new Error("copy command was unsuccessful");I=!0}catch(W){Q&&console.error("unable to copy using execCommand: ",W),Q&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(q.format||"text",g),q.onCopy&&q.onCopy(window.clipboardData),I=!0}catch(H){Q&&console.error("unable to copy using clipboardData: ",H),Q&&console.error("falling back to prompt"),o=le("message"in q?q.message:U),window.prompt(o,g)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(P):y.removeAllRanges()),S&&document.body.removeChild(S),C()}return I}ln.exports=F},97774:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=void 0;var l=Object.assign||function(W){for(var H=1;H<arguments.length;H++){var j=arguments[H];for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(W[A]=j[A])}return W},ie=function(){function W(H,j){for(var A=0;A<j.length;A++){var V=j[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(H,V.key,V)}}return function(H,j,A){return j&&W(H.prototype,j),A&&W(H,A),H}}(),U=d(59301),le=P(U),F=d(12708),g=P(F),q=d(53291),Q=P(q),o=d(10413),C=d(65429);function P(W){return W&&W.__esModule?W:{default:W}}function y(W,H){if(!(W instanceof H))throw new TypeError("Cannot call a class as a function")}function S(W,H){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:W}function I(W,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);W.prototype=Object.create(H&&H.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(W,H):W.__proto__=H)}var N=function(W){I(H,W);function H(j){y(this,H);var A=S(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,j));return A.getEchartsInstance=function(){return A.echartsLib.getInstanceByDom(A.echartsElement)||A.echartsLib.init(A.echartsElement,A.props.theme,A.props.opts)},A.dispose=function(){if(A.echartsElement){try{(0,o.clear)(A.echartsElement)}catch(V){console.warn(V)}A.echartsLib.dispose(A.echartsElement)}},A.rerender=function(){var V=A.props,R=V.onEvents,L=V.onChartReady,ae=A.renderEchartDom();A.bindEvents(ae,R||{}),typeof L=="function"&&A.props.onChartReady(ae),A.echartsElement&&(0,o.bind)(A.echartsElement,function(){try{ae.resize()}catch(pe){console.warn(pe)}})},A.bindEvents=function(V,R){var L=function(ce,Le){typeof ce=="string"&&typeof Le=="function"&&V.on(ce,function($e){Le($e,V)})};for(var ae in R)Object.prototype.hasOwnProperty.call(R,ae)&&L(ae,R[ae])},A.renderEchartDom=function(){var V=A.getEchartsInstance();return V.setOption(A.props.option,A.props.notMerge||!1,A.props.lazyUpdate||!1),A.props.showLoading?V.showLoading(A.props.loadingOption||null):V.hideLoading(),V},A.echartsLib=j.echarts,A.echartsElement=null,A}return ie(H,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(A){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(A,this.props))){if(!(0,Q.default)(A.theme,this.props.theme)||!(0,Q.default)(A.opts,this.props.opts)||!(0,Q.default)(A.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var V=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,Q.default)((0,C.pick)(this.props,V),(0,C.pick)(A,V))){var R=this.renderEchartDom();if(!(0,Q.default)(A.style,this.props.style)||!(0,Q.default)(A.className,this.props.className))try{R.resize()}catch(L){console.warn(L)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var A=this,V=this.props,R=V.style,L=V.className,ae=l({height:300},R);return le.default.createElement("div",{ref:function(ce){A.echartsElement=ce},style:ae,className:"echarts-for-react "+L})}}]),H}(U.Component);qe.default=N,N.propTypes={option:g.default.object.isRequired,echarts:g.default.object,notMerge:g.default.bool,lazyUpdate:g.default.bool,style:g.default.object,className:g.default.string,theme:g.default.oneOfType([g.default.string,g.default.object]),onChartReady:g.default.func,showLoading:g.default.bool,loadingOption:g.default.object,onEvents:g.default.object,opts:g.default.shape({devicePixelRatio:g.default.number,renderer:g.default.oneOf(["canvas","svg"]),width:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])]),height:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:g.default.func},N.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(ln,qe,d){"use strict";var l;l={value:!0},qe.Z=void 0;var ie=d(76411),U=g(ie),le=d(97774),F=g(le);function g(P){return P&&P.__esModule?P:{default:P}}function q(P,y){if(!(P instanceof y))throw new TypeError("Cannot call a class as a function")}function Q(P,y){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:P}function o(P,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);P.prototype=Object.create(y&&y.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(P,y):P.__proto__=y)}var C=function(P){o(y,P);function y(S){q(this,y);var I=Q(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,S));return I.echartsLib=U.default,I}return y}(F.default);qe.Z=C},65429:function(ln,qe){"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var d=qe.pick=function(ie,U){var le={};return U.forEach(function(F){le[F]=ie[F]}),le}},53291:function(ln){"use strict";var qe=Array.isArray,d=Object.keys,l=Object.prototype.hasOwnProperty;ln.exports=function ie(U,le){if(U===le)return!0;if(U&&le&&typeof U=="object"&&typeof le=="object"){var F=qe(U),g=qe(le),q,Q,o;if(F&&g){if(Q=U.length,Q!=le.length)return!1;for(q=Q;q--!==0;)if(!ie(U[q],le[q]))return!1;return!0}if(F!=g)return!1;var C=U instanceof Date,P=le instanceof Date;if(C!=P)return!1;if(C&&P)return U.getTime()==le.getTime();var y=U instanceof RegExp,S=le instanceof RegExp;if(y!=S)return!1;if(y&&S)return U.toString()==le.toString();var I=d(U);if(Q=I.length,Q!==d(le).length)return!1;for(q=Q;q--!==0;)if(!l.call(le,I[q]))return!1;for(q=Q;q--!==0;)if(o=I[q],!ie(U[o],le[o]))return!1;return!0}return U!==U&&le!==le}},53184:function(ln,qe,d){"use strict";var l,ie;function U(le,F,g){var q=function(Q,o){return le.js_beautify(Q,o)};return q.js=le.js_beautify,q.css=F.css_beautify,q.html=g.html_beautify,q.js_beautify=le.js_beautify,q.css_beautify=F.css_beautify,q.html_beautify=g.html_beautify,q}l=[d(58553),d(87804),d(40998)],ie=function(le,F,g){return U(le,F,g)}.apply(qe,l),ie!==void 0&&(ln.exports=ie)},87804:function(ln,qe){var d,l;(function(){var ie;(function(){"use strict";var le=[,,function(Q){function o(y){this.__parent=y,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var y=new o(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},o.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},o.prototype.has_match=function(y){for(var S=this.__items.length-1;S>=0;S--)if(this.__items[S].match(y))return!0;return!1},o.prototype.set_indent=function(y,S){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=S||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(y){this.__items.push(y);var S=y.lastIndexOf(`
|
|
|
`);S!==-1?this.__character_count=y.length-S:this.__character_count+=y.length},o.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function C(y,S){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),S=S||"",y.indent_level>0&&(S=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=S,this.__base_string_length=S.length}C.prototype.get_indent_size=function(y,S){var I=this.__base_string_length;return S=S||0,y<0&&(I=0),I+=y*this.__indent_size,I+=S,I},C.prototype.get_indent_string=function(y,S){var I=this.__base_string;return S=S||0,y<0&&(y=0,I=""),S+=y*this.__indent_size,this.__ensure_cache(S),I+=this.__cache[S],I},C.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var y=this.__cache.length,S=0,I="";this.__indent_size&&y>=this.__indent_size&&(S=Math.floor(y/this.__indent_size),y-=S*this.__indent_size,I=new Array(S+1).join(this.__indent_string)),y&&(I+=new Array(y+1).join(" ")),this.__cache.push(I)};function P(y,S){this.__indent_cache=new C(y,S),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}P.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},P.prototype.get_line_number=function(){return this.__lines.length},P.prototype.get_indent_string=function(y,S){return this.__indent_cache.get_indent_string(y,S)},P.prototype.get_indent_size=function(y,S){return this.__indent_cache.get_indent_size(y,S)},P.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},P.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},P.prototype.get_code=function(y){this.trim(!0);var S=this.current_line.pop();S&&(S[S.length-1]===`
|
|
|
`&&(S=S.replace(/\n+$/g,"")),this.current_line.push(S)),this._end_with_newline&&this.__add_outputline();var I=this.__lines.join(`
|
|
|
`);return y!==`
|
|
|
`&&(I=I.replace(/[\n]/g,y)),I},P.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},P.prototype.set_indent=function(y,S){return y=y||0,S=S||0,this.next_line.set_indent(y,S),this.__lines.length>1?(this.current_line.set_indent(y,S),!0):(this.current_line.set_indent(),!1)},P.prototype.add_raw_token=function(y){for(var S=0;S<y.newlines;S++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},P.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},P.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},P.prototype.remove_indent=function(y){for(var S=this.__lines.length;y<S;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},P.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},P.prototype.just_added_newline=function(){return this.current_line.is_empty()},P.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},P.prototype.ensure_empty_line_above=function(y,S){for(var I=this.__lines.length-2;I>=0;){var N=this.__lines[I];if(N.is_empty())break;if(N.item(0).indexOf(y)!==0&&N.item(-1)!==S){this.__lines.splice(I+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}I--}},Q.exports.Output=P},,,,function(Q){function o(y,S){this.raw_options=C(y,S),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(y,S){var I=this.raw_options[y],N=S||[];return typeof I=="object"?I!==null&&typeof I.concat=="function"&&(N=I.concat()):typeof I=="string"&&(N=I.split(/[^a-zA-Z0-9_\/\-]+/)),N},o.prototype._get_boolean=function(y,S){var I=this.raw_options[y],N=I===void 0?!!S:!!I;return N},o.prototype._get_characters=function(y,S){var I=this.raw_options[y],N=S||"";return typeof I=="string"&&(N=I.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),N},o.prototype._get_number=function(y,S){var I=this.raw_options[y];S=parseInt(S,10),isNaN(S)&&(S=0);var N=parseInt(I,10);return isNaN(N)&&(N=S),N},o.prototype._get_selection=function(y,S,I){var N=this._get_selection_list(y,S,I);if(N.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return N[0]},o.prototype._get_selection_list=function(y,S,I){if(!S||S.length===0)throw new Error("Selection list cannot be empty.");if(I=I||[S[0]],!this._is_valid_selection(I,S))throw new Error("Invalid Default Value!");var N=this._get_array(y,I);if(!this._is_valid_selection(N,S))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return N},o.prototype._is_valid_selection=function(y,S){return y.length&&S.length&&!y.some(function(I){return S.indexOf(I)===-1})};function C(y,S){var I={};y=P(y);var N;for(N in y)N!==S&&(I[N]=y[N]);if(S&&y[S])for(N in y[S])I[N]=y[S][N];return I}function P(y){var S={},I;for(I in y){var N=I.replace(/-/g,"_");S[N]=y[I]}return S}Q.exports.Options=o,Q.exports.normalizeOpts=P,Q.exports.mergeOpts=C},,function(Q){var o=RegExp.prototype.hasOwnProperty("sticky");function C(P){this.__input=P||"",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 P=null;return this.hasNext()&&(P=this.__input.charAt(this.__position),this.__position+=1),P},C.prototype.peek=function(P){var y=null;return P=P||0,P+=this.__position,P>=0&&P<this.__input_length&&(y=this.__input.charAt(P)),y},C.prototype.__match=function(P,y){P.lastIndex=y;var S=P.exec(this.__input);return S&&!(o&&P.sticky)&&S.index!==y&&(S=null),S},C.prototype.test=function(P,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(P,y):!1},C.prototype.testChar=function(P,y){var S=this.peek(y);return P.lastIndex=0,S!==null&&P.test(S)},C.prototype.match=function(P){var y=this.__match(P,this.__position);return y?this.__position+=y[0].length:y=null,y},C.prototype.read=function(P,y,S){var I="",N;return P&&(N=this.match(P),N&&(I+=N[0])),y&&(N||!P)&&(I+=this.readUntil(y,S)),I},C.prototype.readUntil=function(P,y){var S="",I=this.__position;P.lastIndex=this.__position;var N=P.exec(this.__input);return N?(I=N.index,y&&(I+=N[0].length)):I=this.__input_length,S=this.__input.substring(this.__position,I),this.__position=I,S},C.prototype.readUntilAfter=function(P){return this.readUntil(P,!0)},C.prototype.get_regexp=function(P,y){var S=null,I="g";return y&&o&&(I="y"),typeof P=="string"&&P!==""?S=new RegExp(P,I):P&&(S=new RegExp(P.source,I)),S},C.prototype.get_literal_regexp=function(P){return RegExp(P.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(P){var y=this.__position,S=this.readUntilAfter(P);return this.__position=y,S},C.prototype.lookBack=function(P){var y=this.__position-1;return y>=P.length&&this.__input.substring(y-P.length,y).toLowerCase()===P},Q.exports.InputScanner=C},,,,,function(Q){function o(C,P){C=typeof C=="string"?C:C.source,P=typeof P=="string"?P:P.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+P,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+P,"g")}o.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var P={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(C);y;)P[y[1]]=y[2],y=this.__directive_pattern.exec(C);return P},o.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},Q.exports.Directives=o},,function(Q,o,C){var P=C(16).Beautifier,y=C(17).Options;function S(I,N){var W=new P(I,N);return W.beautify()}Q.exports=S,Q.exports.defaultOptions=function(){return new y}},function(Q,o,C){var P=C(17).Options,y=C(2).Output,S=C(8).InputScanner,I=C(13).Directives,N=new I(/\/\*/,/\*\//),W=/\r\n|[\r\n]/,H=/\r\n|[\r\n]/g,j=/\s/,A=/(?:\s|\n)+/g,V=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function L(ae,pe){this._source_text=ae||"",this._options=new P(pe),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"]}L.prototype.eatString=function(ae){var pe="";for(this._ch=this._input.next();this._ch;){if(pe+=this._ch,this._ch==="\\")pe+=this._input.next();else if(ae.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return pe},L.prototype.eatWhitespace=function(ae){for(var pe=j.test(this._input.peek()),ce=0;j.test(this._input.peek());)this._ch=this._input.next(),ae&&this._ch===`
|
|
|
`&&(ce===0||ce<this._options.max_preserve_newlines)&&(ce++,this._output.add_new_line(!0));return pe},L.prototype.foundNestedPseudoClass=function(){for(var ae=0,pe=1,ce=this._input.peek(pe);ce;){if(ce==="{")return!0;if(ce==="(")ae+=1;else if(ce===")"){if(ae===0)return!1;ae-=1}else if(ce===";"||ce==="}")return!1;pe++,ce=this._input.peek(pe)}return!1},L.prototype.print_string=function(ae){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(ae)},L.prototype.preserveSingleSpace=function(ae){ae&&(this._output.space_before_token=!0)},L.prototype.indent=function(){this._indentLevel++},L.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ae=this._source_text,pe=this._options.eol;pe==="auto"&&(pe=`
|
|
|
`,ae&&W.test(ae||"")&&(pe=ae.match(W)[0])),ae=ae.replace(H,`
|
|
|
`);var ce=ae.match(/^[\t ]*/)[0];this._output=new y(this._options,ce),this._input=new S(ae),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var Le=0,$e=!1,Te=!1,Pe=!1,se=!1,K=!1,w=this._ch,te=!1,ne,z,x;ne=this._input.read(A),z=ne!=="",x=w,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var T=this._input.read(V),G=N.get_directives(T);G&&G.ignore==="start"&&(T+=N.readIgnored(this._input)),this.print_string(T),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(R)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(z),this.print_string(this._ch);var ve=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ve.match(/[ :]$/)&&(ve=this.eatString(": ").replace(/\s+$/,""),this.print_string(ve),this._output.space_before_token=!0),Le===0&&ve.indexOf(":")!==-1&&(Te=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(z),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var We=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);We.match(/[ :]$/)&&(We=this.eatString(": ").replace(/\s+$/,""),this.print_string(We),this._output.space_before_token=!0),Le===0&&We.indexOf(":")!==-1?(Te=!0,this.indent()):We in this.NESTED_AT_RULE?(this._nestedLevel+=1,We in this.CONDITIONAL_GROUP_RULE&&(Pe=!0)):Le===0&&!Te&&(se=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(z),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Te&&(Te=!1,this.outdent()),se=!1,Pe?(Pe=!1,$e=this._indentLevel>=this._nestedLevel):$e=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&$e&&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)):(x==="("?this._output.space_before_token=!1:x!==","&&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(),x==="{"&&this._output.trim(!0),Te&&(this.outdent(),Te=!1),this.print_string(this._ch),$e=!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 st=0;st<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;st++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[st])){te=!0;break}($e||Pe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!se&&Le===0?(this.print_string(":"),Te||(Te=!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 _e=x==='"'||x==="'";this.preserveSingleSpace(_e||z),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")te=!1,Le===0?(Te&&(this.outdent(),Te=!1),se=!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(),Le++,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(")")),Le&&(Le--,this.outdent()));else{var Ke=!1;this._input.lookBack("with")&&(Ke=!0),this.preserveSingleSpace(z||Ke),this.print_string(this._ch),Te&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),K=!0):(this.eatWhitespace(),Le++,this.indent())}else if(this._ch===")")Le&&(Le--,this.outdent()),K&&this._input.peek()===";"&&this._options.selector_separator_newline&&(K=!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&&(!Te||K)&&Le===0&&!se?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Te&&Le===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&&j.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(z),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),j.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 Ve=x==='"'||x==="'";this.preserveSingleSpace(Ve||z),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&te&&this._output.add_new_line()}var rt=this._output.get_code(pe);return rt},Q.exports.Beautifier=L},function(Q,o,C){var P=C(6).Options;function y(S){P.call(this,S,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var I=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||I;var N=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var W=0;W<N.length;W++)N[W]!=="expand"?this.brace_style="collapse":this.brace_style=N[W]}y.prototype=new P,Q.exports.Options=y}],F={};function g(Q){var o=F[Q];if(o!==void 0)return o.exports;var C=F[Q]={exports:{}};return le[Q](C,C.exports,g),C.exports}var q=g(15);ie=q})();var U=ie;d=[],l=function(){return{css_beautify:U}}.apply(qe,d),l!==void 0&&(ln.exports=l)})()},40998:function(ln,qe,d){var l,ie;(function(){var U;(function(){"use strict";var q=[,,function(P){function y(N){this.__parent=N,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=[]}y.prototype.clone_empty=function(){var N=new y(this.__parent);return N.set_indent(this.__indent_count,this.__alignment_count),N},y.prototype.item=function(N){return N<0?this.__items[this.__items.length+N]:this.__items[N]},y.prototype.has_match=function(N){for(var W=this.__items.length-1;W>=0;W--)if(this.__items[W].match(N))return!0;return!1},y.prototype.set_indent=function(N,W){this.is_empty()&&(this.__indent_count=N||0,this.__alignment_count=W||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},y.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)},y.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},y.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var N=this.__parent.current_line;return N.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),N.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),N.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,N.__items[0]===" "&&(N.__items.splice(0,1),N.__character_count-=1),!0}return!1},y.prototype.is_empty=function(){return this.__items.length===0},y.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},y.prototype.push=function(N){this.__items.push(N);var W=N.lastIndexOf(`
|
|
|
`);W!==-1?this.__character_count=N.length-W:this.__character_count+=N.length},y.prototype.pop=function(){var N=null;return this.is_empty()||(N=this.__items.pop(),this.__character_count-=N.length),N},y.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},y.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},y.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},y.prototype.toString=function(){var N="";return this.is_empty()?this.__parent.indent_empty_lines&&(N=this.__parent.get_indent_string(this.__indent_count)):(N=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),N+=this.__items.join("")),N};function S(N,W){this.__cache=[""],this.__indent_size=N.indent_size,this.__indent_string=N.indent_char,N.indent_with_tabs||(this.__indent_string=new Array(N.indent_size+1).join(N.indent_char)),W=W||"",N.indent_level>0&&(W=new Array(N.indent_level+1).join(this.__indent_string)),this.__base_string=W,this.__base_string_length=W.length}S.prototype.get_indent_size=function(N,W){var H=this.__base_string_length;return W=W||0,N<0&&(H=0),H+=N*this.__indent_size,H+=W,H},S.prototype.get_indent_string=function(N,W){var H=this.__base_string;return W=W||0,N<0&&(N=0,H=""),W+=N*this.__indent_size,this.__ensure_cache(W),H+=this.__cache[W],H},S.prototype.__ensure_cache=function(N){for(;N>=this.__cache.length;)this.__add_column()},S.prototype.__add_column=function(){var N=this.__cache.length,W=0,H="";this.__indent_size&&N>=this.__indent_size&&(W=Math.floor(N/this.__indent_size),N-=W*this.__indent_size,H=new Array(W+1).join(this.__indent_string)),N&&(H+=new Array(N+1).join(" ")),this.__cache.push(H)};function I(N,W){this.__indent_cache=new S(N,W),this.raw=!1,this._end_with_newline=N.end_with_newline,this.indent_size=N.indent_size,this.wrap_line_length=N.wrap_line_length,this.indent_empty_lines=N.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new y(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}I.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},I.prototype.get_line_number=function(){return this.__lines.length},I.prototype.get_indent_string=function(N,W){return this.__indent_cache.get_indent_string(N,W)},I.prototype.get_indent_size=function(N,W){return this.__indent_cache.get_indent_size(N,W)},I.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},I.prototype.add_new_line=function(N){return this.is_empty()||!N&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},I.prototype.get_code=function(N){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 H=this.__lines.join(`
|
|
|
`);return N!==`
|
|
|
`&&(H=H.replace(/[\n]/g,N)),H},I.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},I.prototype.set_indent=function(N,W){return N=N||0,W=W||0,this.next_line.set_indent(N,W),this.__lines.length>1?(this.current_line.set_indent(N,W),!0):(this.current_line.set_indent(),!1)},I.prototype.add_raw_token=function(N){for(var W=0;W<N.newlines;W++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(N.whitespace_before),this.current_line.push(N.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},I.prototype.add_token=function(N){this.__add_space_before_token(),this.current_line.push(N),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},I.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(" "))},I.prototype.remove_indent=function(N){for(var W=this.__lines.length;N<W;)this.__lines[N]._remove_indent(),N++;this.current_line._remove_wrap_indent()},I.prototype.trim=function(N){for(N=N===void 0?!1:N,this.current_line.trim();N&&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},I.prototype.just_added_newline=function(){return this.current_line.is_empty()},I.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},I.prototype.ensure_empty_line_above=function(N,W){for(var H=this.__lines.length-2;H>=0;){var j=this.__lines[H];if(j.is_empty())break;if(j.item(0).indexOf(N)!==0&&j.item(-1)!==W){this.__lines.splice(H+1,0,new y(this)),this.previous_line=this.__lines[this.__lines.length-2];break}H--}},P.exports.Output=I},function(P){function y(S,I,N,W){this.type=S,this.text=I,this.comments_before=null,this.newlines=N||0,this.whitespace_before=W||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}P.exports.Token=y},,,function(P){function y(N,W){this.raw_options=S(N,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"])}y.prototype._get_array=function(N,W){var H=this.raw_options[N],j=W||[];return typeof H=="object"?H!==null&&typeof H.concat=="function"&&(j=H.concat()):typeof H=="string"&&(j=H.split(/[^a-zA-Z0-9_\/\-]+/)),j},y.prototype._get_boolean=function(N,W){var H=this.raw_options[N],j=H===void 0?!!W:!!H;return j},y.prototype._get_characters=function(N,W){var H=this.raw_options[N],j=W||"";return typeof H=="string"&&(j=H.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),j},y.prototype._get_number=function(N,W){var H=this.raw_options[N];W=parseInt(W,10),isNaN(W)&&(W=0);var j=parseInt(H,10);return isNaN(j)&&(j=W),j},y.prototype._get_selection=function(N,W,H){var j=this._get_selection_list(N,W,H);if(j.length!==1)throw new Error("Invalid Option Value: The option '"+N+`' can only be one of the following values:
|
|
|
`+W+`
|
|
|
You passed in: '`+this.raw_options[N]+"'");return j[0]},y.prototype._get_selection_list=function(N,W,H){if(!W||W.length===0)throw new Error("Selection list cannot be empty.");if(H=H||[W[0]],!this._is_valid_selection(H,W))throw new Error("Invalid Default Value!");var j=this._get_array(N,H);if(!this._is_valid_selection(j,W))throw new Error("Invalid Option Value: The option '"+N+`' can contain only the following values:
|
|
|
`+W+`
|
|
|
You passed in: '`+this.raw_options[N]+"'");return j},y.prototype._is_valid_selection=function(N,W){return N.length&&W.length&&!N.some(function(H){return W.indexOf(H)===-1})};function S(N,W){var H={};N=I(N);var j;for(j in N)j!==W&&(H[j]=N[j]);if(W&&N[W])for(j in N[W])H[j]=N[W][j];return H}function I(N){var W={},H;for(H in N){var j=H.replace(/-/g,"_");W[j]=N[H]}return W}P.exports.Options=y,P.exports.normalizeOpts=I,P.exports.mergeOpts=S},,function(P){var y=RegExp.prototype.hasOwnProperty("sticky");function S(I){this.__input=I||"",this.__input_length=this.__input.length,this.__position=0}S.prototype.restart=function(){this.__position=0},S.prototype.back=function(){this.__position>0&&(this.__position-=1)},S.prototype.hasNext=function(){return this.__position<this.__input_length},S.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__input.charAt(this.__position),this.__position+=1),I},S.prototype.peek=function(I){var N=null;return I=I||0,I+=this.__position,I>=0&&I<this.__input_length&&(N=this.__input.charAt(I)),N},S.prototype.__match=function(I,N){I.lastIndex=N;var W=I.exec(this.__input);return W&&!(y&&I.sticky)&&W.index!==N&&(W=null),W},S.prototype.test=function(I,N){return N=N||0,N+=this.__position,N>=0&&N<this.__input_length?!!this.__match(I,N):!1},S.prototype.testChar=function(I,N){var W=this.peek(N);return I.lastIndex=0,W!==null&&I.test(W)},S.prototype.match=function(I){var N=this.__match(I,this.__position);return N?this.__position+=N[0].length:N=null,N},S.prototype.read=function(I,N,W){var H="",j;return I&&(j=this.match(I),j&&(H+=j[0])),N&&(j||!I)&&(H+=this.readUntil(N,W)),H},S.prototype.readUntil=function(I,N){var W="",H=this.__position;I.lastIndex=this.__position;var j=I.exec(this.__input);return j?(H=j.index,N&&(H+=j[0].length)):H=this.__input_length,W=this.__input.substring(this.__position,H),this.__position=H,W},S.prototype.readUntilAfter=function(I){return this.readUntil(I,!0)},S.prototype.get_regexp=function(I,N){var W=null,H="g";return N&&y&&(H="y"),typeof I=="string"&&I!==""?W=new RegExp(I,H):I&&(W=new RegExp(I.source,H)),W},S.prototype.get_literal_regexp=function(I){return RegExp(I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},S.prototype.peekUntilAfter=function(I){var N=this.__position,W=this.readUntilAfter(I);return this.__position=N,W},S.prototype.lookBack=function(I){var N=this.__position-1;return N>=I.length&&this.__input.substring(N-I.length,N).toLowerCase()===I},P.exports.InputScanner=S},function(P,y,S){var I=S(8).InputScanner,N=S(3).Token,W=S(10).TokenStream,H=S(11).WhitespacePattern,j={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},A=function(V,R){this._input=new I(V),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new H(this._input)};A.prototype.tokenize=function(){this._input.restart(),this.__tokens=new W,this._reset();for(var V,R=new N(j.START,""),L=null,ae=[],pe=new W;R.type!==j.EOF;){for(V=this._get_next_token(R,L);this._is_comment(V);)pe.add(V),V=this._get_next_token(R,L);pe.isEmpty()||(V.comments_before=pe,pe=new W),V.parent=L,this._is_opening(V)?(ae.push(L),L=V):L&&this._is_closing(V,L)&&(V.opened=L,L.closed=V,L=ae.pop(),V.parent=L),V.previous=R,R.next=V,this.__tokens.add(V),R=V}return this.__tokens},A.prototype._is_first_token=function(){return this.__tokens.isEmpty()},A.prototype._reset=function(){},A.prototype._get_next_token=function(V,R){this._readWhitespace();var L=this._input.read(/.+/g);return L?this._create_token(j.RAW,L):this._create_token(j.EOF,"")},A.prototype._is_comment=function(V){return!1},A.prototype._is_opening=function(V){return!1},A.prototype._is_closing=function(V,R){return!1},A.prototype._create_token=function(V,R){var L=new N(V,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return L},A.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},P.exports.Tokenizer=A,P.exports.TOKEN=j},function(P){function y(S){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=S}y.prototype.restart=function(){this.__position=0},y.prototype.isEmpty=function(){return this.__tokens_length===0},y.prototype.hasNext=function(){return this.__position<this.__tokens_length},y.prototype.next=function(){var S=null;return this.hasNext()&&(S=this.__tokens[this.__position],this.__position+=1),S},y.prototype.peek=function(S){var I=null;return S=S||0,S+=this.__position,S>=0&&S<this.__tokens_length&&(I=this.__tokens[S]),I},y.prototype.add=function(S){this.__parent_token&&(S.parent=this.__parent_token),this.__tokens.push(S),this.__tokens_length+=1},P.exports.TokenStream=y},function(P,y,S){var I=S(12).Pattern;function N(W,H){I.call(this,W,H),H?this._line_regexp=this._input.get_regexp(H._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}N.prototype=new I,N.prototype.__set_whitespace_patterns=function(W,H){W+="\\t ",H+="\\n\\r",this._match_pattern=this._input.get_regexp("["+W+H+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+H+"]")},N.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 H=this.__split(this._newline_regexp,W);this.newline_count=H.length-1,this.whitespace_before_token=H[this.newline_count]}return W},N.prototype.matching=function(W,H){var j=this._create();return j.__set_whitespace_patterns(W,H),j._update(),j},N.prototype._create=function(){return new N(this._input,this)},N.prototype.__split=function(W,H){W.lastIndex=0;for(var j=0,A=[],V=W.exec(H);V;)A.push(H.substring(j,V.index)),j=V.index+V[0].length,V=W.exec(H);return j<H.length?A.push(H.substring(j,H.length)):A.push(""),A},P.exports.WhitespacePattern=N},function(P){function y(S,I){this._input=S,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,I&&(this._starting_pattern=this._input.get_regexp(I._starting_pattern,!0),this._match_pattern=this._input.get_regexp(I._match_pattern,!0),this._until_pattern=this._input.get_regexp(I._until_pattern),this._until_after=I._until_after)}y.prototype.read=function(){var S=this._input.read(this._starting_pattern);return(!this._starting_pattern||S)&&(S+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),S},y.prototype.read_match=function(){return this._input.match(this._match_pattern)},y.prototype.until_after=function(S){var I=this._create();return I._until_after=!0,I._until_pattern=this._input.get_regexp(S),I._update(),I},y.prototype.until=function(S){var I=this._create();return I._until_after=!1,I._until_pattern=this._input.get_regexp(S),I._update(),I},y.prototype.starting_with=function(S){var I=this._create();return I._starting_pattern=this._input.get_regexp(S,!0),I._update(),I},y.prototype.matching=function(S){var I=this._create();return I._match_pattern=this._input.get_regexp(S,!0),I._update(),I},y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){},P.exports.Pattern=y},function(P){function y(S,I){S=typeof S=="string"?S:S.source,I=typeof I=="string"?I:I.source,this.__directives_block_pattern=new RegExp(S+/ beautify( \w+[:]\w+)+ /.source+I,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(S+/\sbeautify\signore:end\s/.source+I,"g")}y.prototype.get_directives=function(S){if(!S.match(this.__directives_block_pattern))return null;var I={};this.__directive_pattern.lastIndex=0;for(var N=this.__directive_pattern.exec(S);N;)I[N[1]]=N[2],N=this.__directive_pattern.exec(S);return I},y.prototype.readIgnored=function(S){return S.readUntilAfter(this.__directives_end_ignore_pattern)},P.exports.Directives=y},function(P,y,S){var I=S(12).Pattern,N={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function W(H,j){I.call(this,H,j),this.__template_pattern=null,this._disabled=Object.assign({},N),this._excluded=Object.assign({},N),j&&(this.__template_pattern=this._input.get_regexp(j.__template_pattern),this._excluded=Object.assign(this._excluded,j._excluded),this._disabled=Object.assign(this._disabled,j._disabled));var A=new I(H);this.__patterns={handlebars_comment:A.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:A.starting_with(/{{{/).until_after(/}}}/),handlebars:A.starting_with(/{{/).until_after(/}}/),php:A.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:A.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:A.starting_with(/{%/).until_after(/%}/),django_value:A.starting_with(/{{/).until_after(/}}/),django_comment:A.starting_with(/{#/).until_after(/#}/),smarty:A.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:A.starting_with(/{\*/).until_after(/\*}/),smarty_literal:A.starting_with(/{literal}/).until_after(/{\/literal}/)}}W.prototype=new I,W.prototype._create=function(){return new W(this._input,this)},W.prototype._update=function(){this.__set_templated_pattern()},W.prototype.disable=function(H){var j=this._create();return j._disabled[H]=!0,j._update(),j},W.prototype.read_options=function(H){var j=this._create();for(var A in N)j._disabled[A]=H.templating.indexOf(A)===-1;return j._update(),j},W.prototype.exclude=function(H){var j=this._create();return j._excluded[H]=!0,j._update(),j},W.prototype.read=function(){var H="";this._match_pattern?H=this._input.read(this._starting_pattern):H=this._input.read(this._starting_pattern,this.__template_pattern);for(var j=this._read_template();j;)this._match_pattern?j+=this._input.read(this._match_pattern):j+=this._input.readUntil(this.__template_pattern),H+=j,j=this._read_template();return this._until_after&&(H+=this._input.readUntilAfter(this._until_pattern)),H},W.prototype.__set_templated_pattern=function(){var H=[];this._disabled.php||H.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||H.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||H.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||H.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(H.push(this.__patterns.django._starting_pattern.source),H.push(this.__patterns.django_value._starting_pattern.source),H.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||H.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&H.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+H.join("|")+")")},W.prototype._read_template=function(){var H="",j=this._input.peek();if(j==="<"){var A=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&A==="?"&&(H=H||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&A==="%"&&(H=H||this.__patterns.erb.read())}else j==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(H=H||this.__patterns.handlebars_comment.read(),H=H||this.__patterns.handlebars_unescaped.read(),H=H||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(H=H||this.__patterns.django_value.read()),this._excluded.django||(H=H||this.__patterns.django_comment.read(),H=H||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(H=H||this.__patterns.smarty_comment.read(),H=H||this.__patterns.smarty_literal.read(),H=H||this.__patterns.smarty.read()));return H},P.exports.TemplatablePattern=W},,,,function(P,y,S){var I=S(19).Beautifier,N=S(20).Options;function W(H,j,A,V){var R=new I(H,j,A,V);return R.beautify()}P.exports=W,P.exports.defaultOptions=function(){return new N}},function(P,y,S){var I=S(20).Options,N=S(2).Output,W=S(21).Tokenizer,H=S(21).TOKEN,j=/\r\n|[\r\n]/,A=/\r\n|[\r\n]/g,V=function(se,K){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=se.max_preserve_newlines,this.preserve_newlines=se.preserve_newlines,this._output=new N(se,K)};V.prototype.current_line_has_match=function(se){return this._output.current_line.has_match(se)},V.prototype.set_space_before_token=function(se,K){this._output.space_before_token=se,this._output.non_breaking_space=K},V.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},V.prototype.add_raw_token=function(se){this._output.add_raw_token(se)},V.prototype.print_preserved_newlines=function(se){var K=0;se.type!==H.TEXT&&se.previous.type!==H.TEXT&&(K=se.newlines?1:0),this.preserve_newlines&&(K=se.newlines<this.max_preserve_newlines+1?se.newlines:this.max_preserve_newlines+1);for(var w=0;w<K;w++)this.print_newline(w>0);return K!==0},V.prototype.traverse_whitespace=function(se){return se.whitespace_before||se.newlines?(this.print_preserved_newlines(se)||(this._output.space_before_token=!0),!0):!1},V.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},V.prototype.print_newline=function(se){this._output.add_new_line(se)},V.prototype.print_token=function(se){se.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(se.text))},V.prototype.indent=function(){this.indent_level++},V.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},V.prototype.get_full_indent=function(se){return se=this.indent_level+(se||0),se<1?"":this._output.get_indent_string(se)};var R=function(se){for(var K=null,w=se.next;w.type!==H.EOF&&se.closed!==w;){if(w.type===H.ATTRIBUTE&&w.text==="type"){w.next&&w.next.type===H.EQUALS&&w.next.next&&w.next.next.type===H.VALUE&&(K=w.next.next.text);break}w=w.next}return K},L=function(se,K){var w=null,te=null;return K.closed?(se==="script"?w="text/javascript":se==="style"&&(w="text/css"),w=R(K)||w,w.search("text/css")>-1?te="css":w.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?te="javascript":w.search(/(text|application|dojo)\/(x-)?(html)/)>-1?te="html":w.search(/test\/null/)>-1&&(te="null"),te):null};function ae(se,K){return K.indexOf(se)!==-1}function pe(se,K,w){this.parent=se||null,this.tag=K?K.tag_name:"",this.indent_level=w||0,this.parser_token=K||null}function ce(se){this._printer=se,this._current_frame=null}ce.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},ce.prototype.record_tag=function(se){var K=new pe(this._current_frame,se,this._printer.indent_level);this._current_frame=K},ce.prototype._try_pop_frame=function(se){var K=null;return se&&(K=se.parser_token,this._printer.indent_level=se.indent_level,this._current_frame=se.parent),K},ce.prototype._get_frame=function(se,K){for(var w=this._current_frame;w&&se.indexOf(w.tag)===-1;){if(K&&K.indexOf(w.tag)!==-1){w=null;break}w=w.parent}return w},ce.prototype.try_pop=function(se,K){var w=this._get_frame([se],K);return this._try_pop_frame(w)},ce.prototype.indent_to_tag=function(se){var K=this._get_frame(se);K&&(this._printer.indent_level=K.indent_level)};function Le(se,K,w,te){this._source_text=se||"",K=K||{},this._js_beautify=w,this._css_beautify=te,this._tag_stack=null;var ne=new I(K,"html");this._options=ne,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"}Le.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var se=this._source_text,K=this._options.eol;this._options.eol==="auto"&&(K=`
|
|
|
`,se&&j.test(se)&&(K=se.match(j)[0])),se=se.replace(A,`
|
|
|
`);var w=se.match(/^[\t ]*/)[0],te={text:"",type:""},ne=new $e(this._options),z=new V(this._options,w),x=new W(se,this._options).tokenize();this._tag_stack=new ce(z);for(var T=null,G=x.next();G.type!==H.EOF;)G.type===H.TAG_OPEN||G.type===H.COMMENT?(T=this._handle_tag_open(z,G,ne,te,x),ne=T):G.type===H.ATTRIBUTE||G.type===H.EQUALS||G.type===H.VALUE||G.type===H.TEXT&&!ne.tag_complete?T=this._handle_inside_tag(z,G,ne,te):G.type===H.TAG_CLOSE?T=this._handle_tag_close(z,G,ne):G.type===H.TEXT?T=this._handle_text(z,G,ne):G.type===H.CONTROL_FLOW_OPEN?T=this._handle_control_flow_open(z,G):G.type===H.CONTROL_FLOW_CLOSE?T=this._handle_control_flow_close(z,G):z.add_raw_token(G),te=T,G=x.next();var ve=z._output.get_code(K);return ve},Le.prototype._handle_control_flow_open=function(se,K){var w={text:K.text,type:K.type};return se.set_space_before_token(K.newlines||K.whitespace_before!=="",!0),K.newlines?se.print_preserved_newlines(K):se.set_space_before_token(K.newlines||K.whitespace_before!=="",!0),se.print_token(K),se.indent(),w},Le.prototype._handle_control_flow_close=function(se,K){var w={text:K.text,type:K.type};return se.deindent(),K.newlines?se.print_preserved_newlines(K):se.set_space_before_token(K.newlines||K.whitespace_before!=="",!0),se.print_token(K),w},Le.prototype._handle_tag_close=function(se,K,w){var te={text:K.text,type:K.type};return se.alignment_size=0,w.tag_complete=!0,se.set_space_before_token(K.newlines||K.whitespace_before!=="",!0),w.is_unformatted?se.add_raw_token(K):(w.tag_start_char==="<"&&(se.set_space_before_token(K.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&w.has_wrapped_attrs&&se.print_newline(!1)),se.print_token(K)),w.indent_content&&!(w.is_unformatted||w.is_content_unformatted)&&(se.indent(),w.indent_content=!1),!w.is_inline_element&&!(w.is_unformatted||w.is_content_unformatted)&&se.set_wrap_point(),te},Le.prototype._handle_inside_tag=function(se,K,w,te){var ne=w.has_wrapped_attrs,z={text:K.text,type:K.type};return se.set_space_before_token(K.newlines||K.whitespace_before!=="",!0),w.is_unformatted?se.add_raw_token(K):w.tag_start_char==="{"&&K.type===H.TEXT?se.print_preserved_newlines(K)?(K.newlines=0,se.add_raw_token(K)):se.print_token(K):(K.type===H.ATTRIBUTE?se.set_space_before_token(!0):(K.type===H.EQUALS||K.type===H.VALUE&&K.previous.type===H.EQUALS)&&se.set_space_before_token(!1),K.type===H.ATTRIBUTE&&w.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(se.traverse_whitespace(K),ne=ne||K.newlines!==0),this._is_wrap_attributes_force&&w.attr_count>=this._options.wrap_attributes_min_attrs&&(te.type!==H.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(se.print_newline(!1),ne=!0)),se.print_token(K),ne=ne||se.previous_token_wrapped(),w.has_wrapped_attrs=ne),z},Le.prototype._handle_text=function(se,K,w){var te={text:K.text,type:"TK_CONTENT"};return w.custom_beautifier_name?this._print_custom_beatifier_text(se,K,w):w.is_unformatted||w.is_content_unformatted?se.add_raw_token(K):(se.traverse_whitespace(K),se.print_token(K)),te},Le.prototype._print_custom_beatifier_text=function(se,K,w){var te=this;if(K.text!==""){var ne=K.text,z,x=1,T="",G="";w.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?z=this._js_beautify:w.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?z=this._css_beautify:w.custom_beautifier_name==="html"&&(z=function(Ve,rt){var Ae=new Le(Ve,rt,te._js_beautify,te._css_beautify);return Ae.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-se.indent_level);var ve=se.get_full_indent(x);if(ne=ne.replace(/\n[ \t]*$/,""),w.custom_beautifier_name!=="html"&&ne[0]==="<"&&ne.match(/^(<!--|<!\[CDATA\[)/)){var We=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ne);if(!We){se.add_raw_token(K);return}T=ve+We[1]+`
|
|
|
`,ne=We[4],We[5]&&(G=ve+We[5]),ne=ne.replace(/\n[ \t]*$/,""),(We[2]||We[3].indexOf(`
|
|
|
`)!==-1)&&(We=We[3].match(/[ \t]+$/),We&&(K.whitespace_before=We[0]))}if(ne)if(z){var st=function(){this.eol=`
|
|
|
`};st.prototype=this._options.raw_options;var _e=new st;ne=z(ve+ne,_e)}else{var Ke=K.whitespace_before;Ke&&(ne=ne.replace(new RegExp(`
|
|
|
(`+Ke+")?","g"),`
|
|
|
`)),ne=ve+ne.replace(/\n/g,`
|
|
|
`+ve)}T&&(ne?ne=T+ne+`
|
|
|
`+G:ne=T+G),se.print_newline(!1),ne&&(K.text=ne,K.whitespace_before="",K.newlines=0,se.add_raw_token(K),se.print_newline(!0))}},Le.prototype._handle_tag_open=function(se,K,w,te,ne){var z=this._get_tag_open_token(K);if((w.is_unformatted||w.is_content_unformatted)&&!w.is_empty_element&&K.type===H.TAG_OPEN&&!z.is_start_tag?(se.add_raw_token(K),z.start_tag_token=this._tag_stack.try_pop(z.tag_name)):(se.traverse_whitespace(K),this._set_tag_position(se,K,z,w,te),z.is_inline_element||se.set_wrap_point(),se.print_token(K)),z.is_start_tag&&this._is_wrap_attributes_force){var x=0,T;do T=ne.peek(x),T.type===H.ATTRIBUTE&&(z.attr_count+=1),x+=1;while(T.type!==H.EOF&&T.type!==H.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(z.alignment_size=K.text.length+1),!z.tag_complete&&!z.is_unformatted&&(se.alignment_size=z.alignment_size),z};var $e=function(se,K,w){if(this.parent=K||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="",!w)this.tag_complete=!0;else{var te;this.tag_start_char=w.text[0],this.text=w.text,this.tag_start_char==="<"?(te=w.text.match(/^<([^\s>]*)/),this.tag_check=te?te[1]:""):(te=w.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=te?te[1]:"",(w.text.startsWith("{{#>")||w.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&w.next!==null?this.tag_check=w.next.text.split(" ")[0]:this.tag_check=w.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),w.type===H.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||w.closed&&w.closed.text==="/>";var ne=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ne=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!se.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ne)))}};Le.prototype._get_tag_open_token=function(se){var K=new $e(this._options,this._tag_stack.get_parser_token(),se);return K.alignment_size=this._options.wrap_attributes_indent_size,K.is_end_tag=K.is_end_tag||ae(K.tag_check,this._options.void_elements),K.is_empty_element=K.tag_complete||K.is_start_tag&&K.is_end_tag,K.is_unformatted=!K.tag_complete&&ae(K.tag_check,this._options.unformatted),K.is_content_unformatted=!K.is_empty_element&&ae(K.tag_check,this._options.content_unformatted),K.is_inline_element=ae(K.tag_name,this._options.inline)||this._options.inline_custom_elements&&K.tag_name.includes("-")||K.tag_start_char==="{",K},Le.prototype._set_tag_position=function(se,K,w,te,ne){if(w.is_empty_element||(w.is_end_tag?w.start_tag_token=this._tag_stack.try_pop(w.tag_name):(this._do_optional_end_element(w)&&(w.is_inline_element||se.print_newline(!1)),this._tag_stack.record_tag(w),(w.tag_name==="script"||w.tag_name==="style")&&!(w.is_unformatted||w.is_content_unformatted)&&(w.custom_beautifier_name=L(w.tag_check,K)))),ae(w.tag_check,this._options.extra_liners)&&(se.print_newline(!1),se._output.just_added_blankline()||se.print_newline(!0)),w.is_empty_element){if(w.tag_start_char==="{"&&w.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),w.indent_content=!0;var z=se.current_line_has_match(/{{#if/);z||se.print_newline(!1)}w.tag_name==="!--"&&ne.type===H.TAG_CLOSE&&te.is_end_tag&&w.text.indexOf(`
|
|
|
`)===-1||(w.is_inline_element||w.is_unformatted||se.print_newline(!1),this._calcluate_parent_multiline(se,w))}else if(w.is_end_tag){var x=!1;x=w.start_tag_token&&w.start_tag_token.multiline_content,x=x||!w.is_inline_element&&!(te.is_inline_element||te.is_unformatted)&&!(ne.type===H.TAG_CLOSE&&w.start_tag_token===te)&&ne.type!=="TK_CONTENT",(w.is_content_unformatted||w.is_unformatted)&&(x=!1),x&&se.print_newline(!1)}else w.indent_content=!w.custom_beautifier_name,w.tag_start_char==="<"&&(w.tag_name==="html"?w.indent_content=this._options.indent_inner_html:w.tag_name==="head"?w.indent_content=this._options.indent_head_inner_html:w.tag_name==="body"&&(w.indent_content=this._options.indent_body_inner_html)),!(w.is_inline_element||w.is_unformatted)&&(ne.type!=="TK_CONTENT"||w.is_content_unformatted)&&se.print_newline(!1),this._calcluate_parent_multiline(se,w)},Le.prototype._calcluate_parent_multiline=function(se,K){K.parent&&se._output.just_added_newline()&&!((K.is_inline_element||K.is_unformatted)&&K.parent.is_inline_element)&&(K.parent.multiline_content=!0)};var Te=["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"],Pe=["a","audio","del","ins","map","noscript","video"];Le.prototype._do_optional_end_element=function(se){var K=null;if(!(se.is_empty_element||!se.is_start_tag||!se.parent)){if(se.tag_name==="body")K=K||this._tag_stack.try_pop("head");else if(se.tag_name==="li")K=K||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(se.tag_name==="dd"||se.tag_name==="dt")K=K||this._tag_stack.try_pop("dt",["dl"]),K=K||this._tag_stack.try_pop("dd",["dl"]);else if(se.parent.tag_name==="p"&&Te.indexOf(se.tag_name)!==-1){var w=se.parent.parent;(!w||Pe.indexOf(w.tag_name)===-1)&&(K=K||this._tag_stack.try_pop("p"))}else se.tag_name==="rp"||se.tag_name==="rt"?(K=K||this._tag_stack.try_pop("rt",["ruby","rtc"]),K=K||this._tag_stack.try_pop("rp",["ruby","rtc"])):se.tag_name==="optgroup"?K=K||this._tag_stack.try_pop("optgroup",["select"]):se.tag_name==="option"?K=K||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):se.tag_name==="colgroup"?K=K||this._tag_stack.try_pop("caption",["table"]):se.tag_name==="thead"?(K=K||this._tag_stack.try_pop("caption",["table"]),K=K||this._tag_stack.try_pop("colgroup",["table"])):se.tag_name==="tbody"||se.tag_name==="tfoot"?(K=K||this._tag_stack.try_pop("caption",["table"]),K=K||this._tag_stack.try_pop("colgroup",["table"]),K=K||this._tag_stack.try_pop("thead",["table"]),K=K||this._tag_stack.try_pop("tbody",["table"])):se.tag_name==="tr"?(K=K||this._tag_stack.try_pop("caption",["table"]),K=K||this._tag_stack.try_pop("colgroup",["table"]),K=K||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(se.tag_name==="th"||se.tag_name==="td")&&(K=K||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),K=K||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return se.parent=this._tag_stack.get_parser_token(),K}},P.exports.Beautifier=Le},function(P,y,S){var I=S(6).Options;function N(W){I.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"])}N.prototype=new I,P.exports.Options=N},function(P,y,S){var I=S(9).Tokenizer,N=S(9).TOKEN,W=S(13).Directives,H=S(14).TemplatablePattern,j=S(12).Pattern,A={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:N.START,RAW:N.RAW,EOF:N.EOF},V=new W(/<\!--/,/-->/),R=function(L,ae){I.call(this,L,ae),this._current_tag_name="";var pe=new H(this._input).read_options(this._options),ce=new j(this._input);if(this.__patterns={word:pe.until(/[\n\r\t <]/),word_control_flow_close_excluded:pe.until(/[\n\r\t <}]/),single_quote:pe.until_after(/'/),double_quote:pe.until_after(/"/),attribute:pe.until(/[\n\r\t =>]|\/>/),element_name:pe.until(/[\n\r\t >\/]/),angular_control_flow_start:ce.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:ce.starting_with(/{{!--/).until_after(/--}}/),handlebars:ce.starting_with(/{{/).until_after(/}}/),handlebars_open:ce.until(/[\n\r\t }]/),handlebars_raw_close:ce.until(/}}/),comment:ce.starting_with(/<!--/).until_after(/-->/),cdata:ce.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:ce.starting_with(/<!\[/).until_after(/]>/),processing:ce.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 Le=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=ce.matching(Le).until_after(Le)}};R.prototype=new I,R.prototype._is_comment=function(L){return!1},R.prototype._is_opening=function(L){return L.type===A.TAG_OPEN||L.type===A.CONTROL_FLOW_OPEN},R.prototype._is_closing=function(L,ae){return L.type===A.TAG_CLOSE&&ae&&((L.text===">"||L.text==="/>")&&ae.text[0]==="<"||L.text==="}}"&&ae.text[0]==="{"&&ae.text[1]==="{")||L.type===A.CONTROL_FLOW_CLOSE&&L.text==="}"&&ae.text.endsWith("{")},R.prototype._reset=function(){this._current_tag_name=""},R.prototype._get_next_token=function(L,ae){var pe=null;this._readWhitespace();var ce=this._input.peek();return ce===null?this._create_token(A.EOF,""):(pe=pe||this._read_open_handlebars(ce,ae),pe=pe||this._read_attribute(ce,L,ae),pe=pe||this._read_close(ce,ae),pe=pe||this._read_script_and_style(ce,L),pe=pe||this._read_control_flows(ce,ae),pe=pe||this._read_raw_content(ce,L,ae),pe=pe||this._read_content_word(ce,ae),pe=pe||this._read_comment_or_cdata(ce),pe=pe||this._read_processing(ce),pe=pe||this._read_open(ce,ae),pe=pe||this._create_token(A.UNKNOWN,this._input.next()),pe)},R.prototype._read_comment_or_cdata=function(L){var ae=null,pe=null,ce=null;if(L==="<"){var Le=this._input.peek(1);Le==="!"&&(pe=this.__patterns.comment.read(),pe?(ce=V.get_directives(pe),ce&&ce.ignore==="start"&&(pe+=V.readIgnored(this._input))):pe=this.__patterns.cdata.read()),pe&&(ae=this._create_token(A.COMMENT,pe),ae.directives=ce)}return ae},R.prototype._read_processing=function(L){var ae=null,pe=null,ce=null;if(L==="<"){var Le=this._input.peek(1);(Le==="!"||Le==="?")&&(pe=this.__patterns.conditional_comment.read(),pe=pe||this.__patterns.processing.read()),pe&&(ae=this._create_token(A.COMMENT,pe),ae.directives=ce)}return ae},R.prototype._read_open=function(L,ae){var pe=null,ce=null;return(!ae||ae.type===A.CONTROL_FLOW_OPEN)&&L==="<"&&(pe=this._input.next(),this._input.peek()==="/"&&(pe+=this._input.next()),pe+=this.__patterns.element_name.read(),ce=this._create_token(A.TAG_OPEN,pe)),ce},R.prototype._read_open_handlebars=function(L,ae){var pe=null,ce=null;return(!ae||ae.type===A.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&L==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(pe=this.__patterns.handlebars_comment.read(),pe=pe||this.__patterns.handlebars.read(),ce=this._create_token(A.COMMENT,pe)):(pe=this.__patterns.handlebars_open.read(),ce=this._create_token(A.TAG_OPEN,pe))),ce},R.prototype._read_control_flows=function(L,ae){var pe="",ce=null;if(!this._options.templating.includes("angular"))return ce;if(L==="@"){if(pe=this.__patterns.angular_control_flow_start.read(),pe==="")return ce;for(var Le=pe.endsWith("(")?1:0,$e=0;!(pe.endsWith("{")&&Le===$e);){var Te=this._input.next();if(Te===null)break;Te==="("?Le++:Te===")"&&$e++,pe+=Te}ce=this._create_token(A.CONTROL_FLOW_OPEN,pe)}else L==="}"&&ae&&ae.type===A.CONTROL_FLOW_OPEN&&(pe=this._input.next(),ce=this._create_token(A.CONTROL_FLOW_CLOSE,pe));return ce},R.prototype._read_close=function(L,ae){var pe=null,ce=null;return ae&&ae.type===A.TAG_OPEN&&(ae.text[0]==="<"&&(L===">"||L==="/"&&this._input.peek(1)===">")?(pe=this._input.next(),L==="/"&&(pe+=this._input.next()),ce=this._create_token(A.TAG_CLOSE,pe)):ae.text[0]==="{"&&L==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),ce=this._create_token(A.TAG_CLOSE,"}}"))),ce},R.prototype._read_attribute=function(L,ae,pe){var ce=null,Le="";if(pe&&pe.text[0]==="<")if(L==="=")ce=this._create_token(A.EQUALS,this._input.next());else if(L==='"'||L==="'"){var $e=this._input.next();L==='"'?$e+=this.__patterns.double_quote.read():$e+=this.__patterns.single_quote.read(),ce=this._create_token(A.VALUE,$e)}else Le=this.__patterns.attribute.read(),Le&&(ae.type===A.EQUALS?ce=this._create_token(A.VALUE,Le):ce=this._create_token(A.ATTRIBUTE,Le));return ce},R.prototype._is_content_unformatted=function(L){return this._options.void_elements.indexOf(L)===-1&&(this._options.content_unformatted.indexOf(L)!==-1||this._options.unformatted.indexOf(L)!==-1)},R.prototype._read_raw_content=function(L,ae,pe){var ce="";if(pe&&pe.text[0]==="{")ce=this.__patterns.handlebars_raw_close.read();else if(ae.type===A.TAG_CLOSE&&ae.opened.text[0]==="<"&&ae.text[0]!=="/"){var Le=ae.opened.text.substr(1).toLowerCase();this._is_content_unformatted(Le)&&(ce=this._input.readUntil(new RegExp("</"+Le+"[\\n\\r\\t ]*?>","ig")))}return ce?this._create_token(A.TEXT,ce):null},R.prototype._read_script_and_style=function(L,ae){if(ae.type===A.TAG_CLOSE&&ae.opened.text[0]==="<"&&ae.text[0]!=="/"){var pe=ae.opened.text.substr(1).toLowerCase();if(pe==="script"||pe==="style"){var ce=this._read_comment_or_cdata(L);if(ce)return ce.type=A.TEXT,ce;var Le=this._input.readUntil(new RegExp("</"+pe+"[\\n\\r\\t ]*?>","ig"));if(Le)return this._create_token(A.TEXT,Le)}}return null},R.prototype._read_content_word=function(L,ae){var pe="";return this._options.unformatted_content_delimiter&&L===this._options.unformatted_content_delimiter[0]&&(pe=this.__patterns.unformatted_content_delimiter.read()),pe||(pe=ae&&ae.type===A.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),pe?this._create_token(A.TEXT,pe):null},P.exports.Tokenizer=R,P.exports.TOKEN=A}],Q={};function o(P){var y=Q[P];if(y!==void 0)return y.exports;var S=Q[P]={exports:{}};return q[P](S,S.exports,o),S.exports}var C=o(18);U=C})();var le=U;if(1)l=[d,d(58553),d(87804)],ie=function(q){var Q=d(58553),o=d(87804);return{html_beautify:function(C,P){return le(C,P,Q.js_beautify,o.css_beautify)}}}.apply(qe,l),ie!==void 0&&(ln.exports=ie);else var F,g})()},58553:function(ln,qe){var d,l;(function(){var ie;(function(){"use strict";var le=[function(Q,o,C){var P=C(1).Beautifier,y=C(5).Options;function S(I,N){var W=new P(I,N);return W.beautify()}Q.exports=S,Q.exports.defaultOptions=function(){return new y}},function(Q,o,C){var P=C(2).Output,y=C(3).Token,S=C(4),I=C(5).Options,N=C(7).Tokenizer,W=C(7).line_starters,H=C(7).positionable_operators,j=C(7).TOKEN;function A(T,G){return G.indexOf(T)!==-1}function V(T){return T.replace(/^\s+/g,"")}function R(T){for(var G={},ve=0;ve<T.length;ve++)G[T[ve].replace(/-/g,"_")]=T[ve];return G}function L(T,G){return T&&T.type===j.RESERVED&&T.text===G}function ae(T,G){return T&&T.type===j.RESERVED&&A(T.text,G)}var pe=["case","return","do","if","throw","else","await","break","continue","async"],ce=["before-newline","after-newline","preserve-newline"],Le=R(ce),$e=[Le.before_newline,Le.preserve_newline],Te={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Pe(T,G){G.multiline_frame||G.mode===Te.ForInitializer||G.mode===Te.Conditional||T.remove_indent(G.start_line_index)}function se(T){T=T.replace(S.allLineBreaks,`
|
|
|
`);for(var G=[],ve=T.indexOf(`
|
|
|
`);ve!==-1;)G.push(T.substring(0,ve)),T=T.substring(ve+1),ve=T.indexOf(`
|
|
|
`);return T.length&&G.push(T),G}function K(T){return T===Te.ArrayLiteral}function w(T){return A(T,[Te.Expression,Te.ForInitializer,Te.Conditional])}function te(T,G){for(var ve=0;ve<T.length;ve++){var We=T[ve].trim();if(We.charAt(0)!==G)return!1}return!0}function ne(T,G){for(var ve=0,We=T.length,st;ve<We;ve++)if(st=T[ve],st&&st.indexOf(G)!==0)return!1;return!0}function z(T,G){G=G||{},this._source_text=T||"",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 I(G)}z.prototype.create_flags=function(T,G){var ve=0;T&&(ve=T.indentation_level,!this._output.just_added_newline()&&T.line_indent_level>ve&&(ve=T.line_indent_level));var We={mode:G,parent:T,last_token:T?T.last_token:new y(j.START_BLOCK,""),last_word:T?T.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:ve,alignment:0,line_indent_level:T?T.line_indent_level:ve,start_line_index:this._output.get_line_number(),ternary_depth:0};return We},z.prototype._reset=function(T){var G=T.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new P(this._options,G),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Te.BlockStatement);var ve=new N(T,this._options);return this._tokens=ve.tokenize(),T},z.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T,G=this._reset(this._source_text),ve=this._options.eol;this._options.eol==="auto"&&(ve=`
|
|
|
`,G&&S.lineBreak.test(G||"")&&(ve=G.match(S.lineBreak)[0]));for(var We=this._tokens.next();We;)this.handle_token(We),this._last_last_text=this._flags.last_token.text,this._flags.last_token=We,We=this._tokens.next();return T=this._output.get_code(ve),T},z.prototype.handle_token=function(T,G){T.type===j.START_EXPR?this.handle_start_expr(T):T.type===j.END_EXPR?this.handle_end_expr(T):T.type===j.START_BLOCK?this.handle_start_block(T):T.type===j.END_BLOCK?this.handle_end_block(T):T.type===j.WORD?this.handle_word(T):T.type===j.RESERVED?this.handle_word(T):T.type===j.SEMICOLON?this.handle_semicolon(T):T.type===j.STRING?this.handle_string(T):T.type===j.EQUALS?this.handle_equals(T):T.type===j.OPERATOR?this.handle_operator(T):T.type===j.COMMA?this.handle_comma(T):T.type===j.BLOCK_COMMENT?this.handle_block_comment(T,G):T.type===j.COMMENT?this.handle_comment(T,G):T.type===j.DOT?this.handle_dot(T):T.type===j.EOF?this.handle_eof(T):T.type===j.UNKNOWN?this.handle_unknown(T,G):this.handle_unknown(T,G)},z.prototype.handle_whitespace_and_comments=function(T,G){var ve=T.newlines,We=this._options.keep_array_indentation&&K(this._flags.mode);if(T.comments_before)for(var st=T.comments_before.next();st;)this.handle_whitespace_and_comments(st,G),this.handle_token(st,G),st=T.comments_before.next();if(We)for(var _e=0;_e<ve;_e+=1)this.print_newline(_e>0,G);else if(this._options.max_preserve_newlines&&ve>this._options.max_preserve_newlines&&(ve=this._options.max_preserve_newlines),this._options.preserve_newlines&&ve>1){this.print_newline(!1,G);for(var Ke=1;Ke<ve;Ke+=1)this.print_newline(!0,G)}};var x=["async","break","continue","return","throw","yield"];z.prototype.allow_wrap_or_preserved_newline=function(T,G){if(G=G===void 0?!1:G,!this._output.just_added_newline()){var ve=this._options.preserve_newlines&&T.newlines||G,We=A(this._flags.last_token.text,H)||A(T.text,H);if(We){var st=A(this._flags.last_token.text,H)&&A(this._options.operator_position,$e)||A(T.text,H);ve=ve&&st}if(ve)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(ae(this._flags.last_token,x))return;this._output.set_wrap_point()}}},z.prototype.print_newline=function(T,G){if(!G&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==j.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var ve=this._tokens.peek();this._flags.mode===Te.Statement&&!(this._flags.if_block&&L(ve,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(T)&&(this._flags.multiline_frame=!0)},z.prototype.print_token_line_indentation=function(T){this._output.just_added_newline()&&(this._options.keep_array_indentation&&T.newlines&&(T.text==="["||K(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(T.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))},z.prototype.print_token=function(T){if(this._output.raw){this._output.add_raw_token(T);return}if(this._options.comma_first&&T.previous&&T.previous.type===j.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var G=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(G),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(T),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(T),this._output.non_breaking_space=!0,this._output.add_token(T.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},z.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.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))},z.prototype.set_mode=function(T){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,T),this._flags=this.create_flags(this._previous_flags,T),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Te.Statement&&Pe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},z.prototype.start_of_object_property=function(){return this._flags.parent.mode===Te.ObjectLiteral&&this._flags.mode===Te.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ae(this._flags.last_token,["get","set"]))},z.prototype.start_of_statement=function(T){var G=!1;return G=G||ae(this._flags.last_token,["var","let","const"])&&T.type===j.WORD,G=G||L(this._flags.last_token,"do"),G=G||!(this._flags.parent.mode===Te.ObjectLiteral&&this._flags.mode===Te.Statement)&&ae(this._flags.last_token,x)&&!T.newlines,G=G||L(this._flags.last_token,"else")&&!(L(T,"if")&&!T.comments_before),G=G||this._flags.last_token.type===j.END_EXPR&&(this._previous_flags.mode===Te.ForInitializer||this._previous_flags.mode===Te.Conditional),G=G||this._flags.last_token.type===j.WORD&&this._flags.mode===Te.BlockStatement&&!this._flags.in_case&&!(T.text==="--"||T.text==="++")&&this._last_last_text!=="function"&&T.type!==j.WORD&&T.type!==j.RESERVED,G=G||this._flags.mode===Te.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ae(this._flags.last_token,["get","set"])),G?(this.set_mode(Te.Statement),this.indent(),this.handle_whitespace_and_comments(T,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T,ae(T,["do","for","if","while"])),!0):!1},z.prototype.handle_start_expr=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T);var G=Te.Expression;if(T.text==="["){if(this._flags.last_token.type===j.WORD||this._flags.last_token.text===")"){ae(this._flags.last_token,W)&&(this._output.space_before_token=!0),this.print_token(T),this.set_mode(G),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}G=Te.ArrayLiteral,K(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()),A(this._flags.last_token.type,[j.START_EXPR,j.END_EXPR,j.WORD,j.OPERATOR,j.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===j.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,G=Te.ForInitializer):A(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,G=Te.Conditional):A(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&T.whitespace_before===""?this._output.space_before_token=!1:(A(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===j.EQUALS||this._flags.last_token.type===j.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T);else if(this._flags.last_token.type===j.WORD){this._output.space_before_token=!1;var ve=this._tokens.peek(-3);if(this._options.space_after_named_function&&ve){var We=this._tokens.peek(-4);ae(ve,["async","function"])||ve.text==="*"&&ae(We,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Te.ObjectLiteral?(ve.text==="{"||ve.text===","||ve.text==="*"&&(We.text==="{"||We.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(T);(this._flags.last_token.type===j.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(A(this._last_last_text,["function","yield"])||this._flags.mode===Te.ObjectLiteral&&A(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===j.START_BLOCK?this.print_newline():(this._flags.last_token.type===j.END_EXPR||this._flags.last_token.type===j.START_EXPR||this._flags.last_token.type===j.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===j.COMMA)&&this.allow_wrap_or_preserved_newline(T,T.newlines),this.print_token(T),this.set_mode(G),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},z.prototype.handle_end_expr=function(T){for(;this._flags.mode===Te.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(T,T.text==="]"&&K(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===j.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(T),this.restore_mode(),Pe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Te.Conditional&&(this._previous_flags.mode=Te.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},z.prototype.handle_start_block=function(T){this.handle_whitespace_and_comments(T);var G=this._tokens.peek(),ve=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===j.END_EXPR?(this.set_mode(Te.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Te.BlockStatement):ve&&(A(ve.text,[":",","])&&A(G.type,[j.STRING,j.WORD,j.RESERVED])||A(G.text,["get","set","..."])&&A(ve.type,[j.WORD,j.RESERVED]))?A(this._last_last_text,["class","interface"])&&!A(ve.text,[":",","])?this.set_mode(Te.BlockStatement):this.set_mode(Te.ObjectLiteral):this._flags.last_token.type===j.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Te.BlockStatement):A(this._flags.last_token.type,[j.EQUALS,j.START_EXPR,j.COMMA,j.OPERATOR])||ae(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Te.ObjectLiteral):this.set_mode(Te.BlockStatement),this._flags.last_token&&ae(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var We=!G.comments_before&&G.text==="}",st=We&&this._flags.last_word==="function"&&this._flags.last_token.type===j.END_EXPR;if(this._options.brace_preserve_inline){var _e=0,Ke=null;this._flags.inline_frame=!0;do if(_e+=1,Ke=this._tokens.peek(_e-1),Ke.newlines){this._flags.inline_frame=!1;break}while(Ke.type!==j.EOF&&!(Ke.type===j.END_BLOCK&&Ke.opened===T))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==j.OPERATOR&&(st||this._flags.last_token.type===j.EQUALS||ae(this._flags.last_token,pe)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(K(this._previous_flags.mode)&&(this._flags.last_token.type===j.START_EXPR||this._flags.last_token.type===j.COMMA)&&((this._flags.last_token.type===j.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===j.COMMA||this._flags.last_token.type===j.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(T),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==j.OPERATOR&&this._flags.last_token.type!==j.START_EXPR&&(A(this._flags.last_token.type,[j.START_BLOCK,j.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(T),this.indent(),!We&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},z.prototype.handle_end_block=function(T){for(this.handle_whitespace_and_comments(T);this._flags.mode===Te.Statement;)this.restore_mode();var G=this._flags.last_token.type===j.START_BLOCK;this._flags.inline_frame&&!G?this._output.space_before_token=!0:this._options.brace_style==="expand"?G||this.print_newline():G||(K(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(T)},z.prototype.handle_word=function(T){if(T.type===j.RESERVED){if(A(T.text,["set","get"])&&this._flags.mode!==Te.ObjectLiteral)T.type=j.WORD;else if(T.text==="import"&&A(this._tokens.peek().text,["(","."]))T.type=j.WORD;else if(A(T.text,["as","from"])&&!this._flags.import_block)T.type=j.WORD;else if(this._flags.mode===Te.ObjectLiteral){var G=this._tokens.peek();G.text===":"&&(T.type=j.WORD)}}if(this.start_of_statement(T)?ae(this._flags.last_token,["var","let","const"])&&T.type===j.WORD&&(this._flags.declaration_statement=!0):T.newlines&&!w(this._flags.mode)&&(this._flags.last_token.type!==j.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==j.EQUALS&&(this._options.preserve_newlines||!ae(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(T),this.print_newline()):this.handle_whitespace_and_comments(T),this._flags.do_block&&!this._flags.do_while)if(L(T,"while")){this._output.space_before_token=!0,this.print_token(T),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&&L(T,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Te.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ae(T,["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(T),this._flags.in_case=!0;return}if((this._flags.last_token.type===j.COMMA||this._flags.last_token.type===j.START_EXPR||this._flags.last_token.type===j.EQUALS||this._flags.last_token.type===j.OPERATOR)&&!this.start_of_object_property()&&!(A(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Te.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(T),L(T,"function")){(A(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(A(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===j.OPERATOR))&&!this._output.just_added_blankline()&&!T.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===j.RESERVED||this._flags.last_token.type===j.WORD?ae(this._flags.last_token,["get","set","new","export"])||ae(this._flags.last_token,x)?this._output.space_before_token=!0:L(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===j.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(w(this._flags.mode)||K(this._flags.mode))||this.print_newline(),this.print_token(T),this._flags.last_word=T.text;return}var ve="NONE";if(this._flags.last_token.type===j.END_BLOCK?this._previous_flags.inline_frame?ve="SPACE":ae(T,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines?ve="NEWLINE":(ve="SPACE",this._output.space_before_token=!0):ve="NEWLINE":this._flags.last_token.type===j.SEMICOLON&&this._flags.mode===Te.BlockStatement?ve="NEWLINE":this._flags.last_token.type===j.SEMICOLON&&w(this._flags.mode)?ve="SPACE":this._flags.last_token.type===j.STRING?ve="NEWLINE":this._flags.last_token.type===j.RESERVED||this._flags.last_token.type===j.WORD||this._flags.last_token.text==="*"&&(A(this._last_last_text,["function","yield"])||this._flags.mode===Te.ObjectLiteral&&A(this._last_last_text,["{",","]))?ve="SPACE":this._flags.last_token.type===j.START_BLOCK?this._flags.inline_frame?ve="SPACE":ve="NEWLINE":this._flags.last_token.type===j.END_EXPR&&(this._output.space_before_token=!0,ve="NEWLINE"),ae(T,W)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ve="SPACE":ve="NEWLINE"),ae(T,["else","catch","finally"]))if((!(this._flags.last_token.type===j.END_BLOCK&&this._previous_flags.mode===Te.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var We=this._output.current_line;We.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ve==="NEWLINE"?ae(this._flags.last_token,pe)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ae(T,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==j.END_EXPR?(this._flags.last_token.type!==j.START_EXPR||!ae(T,["var","let","const"]))&&this._flags.last_token.text!==":"&&(L(T,"if")&&L(T.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ae(T,W)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&K(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ve==="SPACE"&&(this._output.space_before_token=!0);T.previous&&(T.previous.type===j.WORD||T.previous.type===j.RESERVED)&&(this._output.space_before_token=!0),this.print_token(T),this._flags.last_word=T.text,T.type===j.RESERVED&&(T.text==="do"?this._flags.do_block=!0:T.text==="if"?this._flags.if_block=!0:T.text==="import"?this._flags.import_block=!0:this._flags.import_block&&L(T,"from")&&(this._flags.import_block=!1))},z.prototype.handle_semicolon=function(T){this.start_of_statement(T)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(T);for(var G=this._tokens.peek();this._flags.mode===Te.Statement&&!(this._flags.if_block&&L(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(T)},z.prototype.handle_string=function(T){T.text.startsWith("`")&&T.newlines===0&&T.whitespace_before===""&&(T.previous.text===")"||this._flags.last_token.type===j.WORD)||(this.start_of_statement(T)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(T),this._flags.last_token.type===j.RESERVED||this._flags.last_token.type===j.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===j.COMMA||this._flags.last_token.type===j.START_EXPR||this._flags.last_token.type===j.EQUALS||this._flags.last_token.type===j.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T):T.text.startsWith("`")&&this._flags.last_token.type===j.END_EXPR&&(T.previous.text==="]"||T.previous.text===")")&&T.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(T)},z.prototype.handle_equals=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0},z.prototype.handle_comma=function(T){this.handle_whitespace_and_comments(T,!0),this.print_token(T),this._output.space_before_token=!0,this._flags.declaration_statement?(w(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(T)):this._flags.mode===Te.ObjectLiteral||this._flags.mode===Te.Statement&&this._flags.parent.mode===Te.ObjectLiteral?(this._flags.mode===Te.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)},z.prototype.handle_operator=function(T){var G=T.text==="*"&&(ae(this._flags.last_token,["function","yield"])||A(this._flags.last_token.type,[j.START_BLOCK,j.COMMA,j.END_BLOCK,j.SEMICOLON])),ve=A(T.text,["-","+"])&&(A(this._flags.last_token.type,[j.START_BLOCK,j.START_EXPR,j.EQUALS,j.OPERATOR])||A(this._flags.last_token.text,W)||this._flags.last_token.text===",");if(!this.start_of_statement(T)){var We=!G;this.handle_whitespace_and_comments(T,We)}if(T.text==="*"&&this._flags.last_token.type===j.DOT){this.print_token(T);return}if(T.text==="::"){this.print_token(T);return}if(A(T.text,["-","+"])&&this.start_of_object_property()){this.print_token(T);return}if(this._flags.last_token.type===j.OPERATOR&&A(this._options.operator_position,$e)&&this.allow_wrap_or_preserved_newline(T),T.text===":"&&this._flags.in_case){this.print_token(T),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==j.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 st=!0,_e=!0,Ke=!1;if(T.text===":"?this._flags.ternary_depth===0?st=!1:(this._flags.ternary_depth-=1,Ke=!0):T.text==="?"&&(this._flags.ternary_depth+=1),!ve&&!G&&this._options.preserve_newlines&&A(T.text,H)){var Ve=T.text===":",rt=Ve&&Ke,Ae=Ve&&!Ke;switch(this._options.operator_position){case Le.before_newline:this._output.space_before_token=!Ae,this.print_token(T),(!Ve||rt)&&this.allow_wrap_or_preserved_newline(T),this._output.space_before_token=!0;return;case Le.after_newline:this._output.space_before_token=!0,!Ve||rt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(T):this._output.space_before_token=!1,this.print_token(T),this._output.space_before_token=!0;return;case Le.preserve_newline:Ae||this.allow_wrap_or_preserved_newline(T),st=!(this._output.just_added_newline()||Ae),this._output.space_before_token=st,this.print_token(T),this._output.space_before_token=!0;return}}if(G){this.allow_wrap_or_preserved_newline(T),st=!1;var Tt=this._tokens.peek();_e=Tt&&A(Tt.type,[j.WORD,j.RESERVED])}else if(T.text==="...")this.allow_wrap_or_preserved_newline(T),st=this._flags.last_token.type===j.START_BLOCK,_e=!1;else if(A(T.text,["--","++","!","~"])||ve){if((this._flags.last_token.type===j.COMMA||this._flags.last_token.type===j.START_EXPR)&&this.allow_wrap_or_preserved_newline(T),st=!1,_e=!1,T.newlines&&(T.text==="--"||T.text==="++"||T.text==="~")){var tt=ae(this._flags.last_token,pe)&&T.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===";"&&w(this._flags.mode)&&(st=!0),this._flags.last_token.type===j.RESERVED?st=!0:this._flags.last_token.type===j.END_EXPR?st=!(this._flags.last_token.text==="]"&&(T.text==="--"||T.text==="++")):this._flags.last_token.type===j.OPERATOR&&(st=A(T.text,["--","-","++","+"])&&A(this._flags.last_token.text,["--","-","++","+"]),A(T.text,["+","-"])&&A(this._flags.last_token.text,["--","++"])&&(_e=!0)),(this._flags.mode===Te.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Te.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||st,this.print_token(T),this._output.space_before_token=_e},z.prototype.handle_block_comment=function(T,G){if(this._output.raw){this._output.add_raw_token(T),T.directives&&T.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(T.directives){this.print_newline(!1,G),this.print_token(T),T.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!S.newline.test(T.text)&&!T.newlines){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0;return}else this.print_block_commment(T,G)},z.prototype.print_block_commment=function(T,G){var ve=se(T.text),We,st=!1,_e=!1,Ke=T.whitespace_before,Ve=Ke.length;if(this.print_newline(!1,G),this.print_token_line_indentation(T),this._output.add_token(ve[0]),this.print_newline(!1,G),ve.length>1){for(ve=ve.slice(1),st=te(ve,"*"),_e=ne(ve,Ke),st&&(this._flags.alignment=1),We=0;We<ve.length;We++)st?(this.print_token_line_indentation(T),this._output.add_token(V(ve[We]))):_e&&ve[We]?(this.print_token_line_indentation(T),this._output.add_token(ve[We].substring(Ve))):(this._output.current_line.set_indent(-1),this._output.add_token(ve[We])),this.print_newline(!1,G);this._flags.alignment=0}},z.prototype.handle_comment=function(T,G){T.newlines?this.print_newline(!1,G):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(T),this.print_newline(!1,G)},z.prototype.handle_dot=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),ae(this._flags.last_token,pe)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(T,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(T)},z.prototype.handle_unknown=function(T,G){this.print_token(T),T.text[T.text.length-1]===`
|
|
|
`&&this.print_newline(!1,G)},z.prototype.handle_eof=function(T){for(;this._flags.mode===Te.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T)},Q.exports.Beautifier=z},function(Q){function o(y){this.__parent=y,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var y=new o(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},o.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},o.prototype.has_match=function(y){for(var S=this.__items.length-1;S>=0;S--)if(this.__items[S].match(y))return!0;return!1},o.prototype.set_indent=function(y,S){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=S||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(y){this.__items.push(y);var S=y.lastIndexOf(`
|
|
|
`);S!==-1?this.__character_count=y.length-S:this.__character_count+=y.length},o.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function C(y,S){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),S=S||"",y.indent_level>0&&(S=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=S,this.__base_string_length=S.length}C.prototype.get_indent_size=function(y,S){var I=this.__base_string_length;return S=S||0,y<0&&(I=0),I+=y*this.__indent_size,I+=S,I},C.prototype.get_indent_string=function(y,S){var I=this.__base_string;return S=S||0,y<0&&(y=0,I=""),S+=y*this.__indent_size,this.__ensure_cache(S),I+=this.__cache[S],I},C.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var y=this.__cache.length,S=0,I="";this.__indent_size&&y>=this.__indent_size&&(S=Math.floor(y/this.__indent_size),y-=S*this.__indent_size,I=new Array(S+1).join(this.__indent_string)),y&&(I+=new Array(y+1).join(" ")),this.__cache.push(I)};function P(y,S){this.__indent_cache=new C(y,S),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}P.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},P.prototype.get_line_number=function(){return this.__lines.length},P.prototype.get_indent_string=function(y,S){return this.__indent_cache.get_indent_string(y,S)},P.prototype.get_indent_size=function(y,S){return this.__indent_cache.get_indent_size(y,S)},P.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},P.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},P.prototype.get_code=function(y){this.trim(!0);var S=this.current_line.pop();S&&(S[S.length-1]===`
|
|
|
`&&(S=S.replace(/\n+$/g,"")),this.current_line.push(S)),this._end_with_newline&&this.__add_outputline();var I=this.__lines.join(`
|
|
|
`);return y!==`
|
|
|
`&&(I=I.replace(/[\n]/g,y)),I},P.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},P.prototype.set_indent=function(y,S){return y=y||0,S=S||0,this.next_line.set_indent(y,S),this.__lines.length>1?(this.current_line.set_indent(y,S),!0):(this.current_line.set_indent(),!1)},P.prototype.add_raw_token=function(y){for(var S=0;S<y.newlines;S++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},P.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},P.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},P.prototype.remove_indent=function(y){for(var S=this.__lines.length;y<S;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},P.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},P.prototype.just_added_newline=function(){return this.current_line.is_empty()},P.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},P.prototype.ensure_empty_line_above=function(y,S){for(var I=this.__lines.length-2;I>=0;){var N=this.__lines[I];if(N.is_empty())break;if(N.item(0).indexOf(y)!==0&&N.item(-1)!==S){this.__lines.splice(I+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}I--}},Q.exports.Output=P},function(Q){function o(C,P,y,S){this.type=C,this.text=P,this.comments_before=null,this.newlines=y||0,this.whitespace_before=S||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}Q.exports.Token=o},function(Q,o){var C="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",P="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",y="\\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",S="\\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",I="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",N="(?:"+I+"|["+C+y+"])",W="(?:"+I+"|["+P+y+S+"])*";o.identifier=new RegExp(N+W,"g"),o.identifierStart=new RegExp(N),o.identifierMatch=new RegExp("(?:"+I+"|["+P+y+S+"])+");var H=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|
|
|
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(Q,o,C){var P=C(6).Options,y=["before-newline","after-newline","preserve-newline"];function S(I){P.call(this,I,"js");var N=this.raw_options.brace_style||null;N==="expand-strict"?this.raw_options.brace_style="expand":N==="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 H=0;H<W.length;H++)W[H]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=W[H];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",y),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}S.prototype=new P,Q.exports.Options=S},function(Q){function o(y,S){this.raw_options=C(y,S),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(y,S){var I=this.raw_options[y],N=S||[];return typeof I=="object"?I!==null&&typeof I.concat=="function"&&(N=I.concat()):typeof I=="string"&&(N=I.split(/[^a-zA-Z0-9_\/\-]+/)),N},o.prototype._get_boolean=function(y,S){var I=this.raw_options[y],N=I===void 0?!!S:!!I;return N},o.prototype._get_characters=function(y,S){var I=this.raw_options[y],N=S||"";return typeof I=="string"&&(N=I.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),N},o.prototype._get_number=function(y,S){var I=this.raw_options[y];S=parseInt(S,10),isNaN(S)&&(S=0);var N=parseInt(I,10);return isNaN(N)&&(N=S),N},o.prototype._get_selection=function(y,S,I){var N=this._get_selection_list(y,S,I);if(N.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return N[0]},o.prototype._get_selection_list=function(y,S,I){if(!S||S.length===0)throw new Error("Selection list cannot be empty.");if(I=I||[S[0]],!this._is_valid_selection(I,S))throw new Error("Invalid Default Value!");var N=this._get_array(y,I);if(!this._is_valid_selection(N,S))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[y]+"'");return N},o.prototype._is_valid_selection=function(y,S){return y.length&&S.length&&!y.some(function(I){return S.indexOf(I)===-1})};function C(y,S){var I={};y=P(y);var N;for(N in y)N!==S&&(I[N]=y[N]);if(S&&y[S])for(N in y[S])I[N]=y[S][N];return I}function P(y){var S={},I;for(I in y){var N=I.replace(/-/g,"_");S[N]=y[I]}return S}Q.exports.Options=o,Q.exports.normalizeOpts=P,Q.exports.mergeOpts=C},function(Q,o,C){var P=C(8).InputScanner,y=C(9).Tokenizer,S=C(9).TOKEN,I=C(13).Directives,N=C(4),W=C(12).Pattern,H=C(14).TemplatablePattern;function j(te,ne){return ne.indexOf(te)!==-1}var A={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:S.START,RAW:S.RAW,EOF:S.EOF},V=new I(/\/\*/,/\*\//),R=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,L=/[0-9]/,ae=/[^\d\.]/,pe=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),ce=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";ce=ce.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),ce="\\?\\.(?!\\d) "+ce,ce=ce.replace(/ /g,"|");var Le=new RegExp(ce),$e="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Te=$e.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Pe=new RegExp("^(?:"+Te.join("|")+")$"),se,K=function(te,ne){y.call(this,te,ne),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var z=new W(this._input),x=new H(this._input).read_options(this._options);this.__patterns={template:x,identifier:x.starting_with(N.identifier).matching(N.identifierMatch),number:z.matching(R),punct:z.matching(Le),comment:z.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:z.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:z.matching(/<!--/),html_comment_end:z.matching(/-->/),include:z.starting_with(/#include/).until_after(N.lineBreak),shebang:z.starting_with(/#!/).until_after(N.lineBreak),xml:z.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:x.until(/['\\\n\r\u2028\u2029]/),double_quote:x.until(/["\\\n\r\u2028\u2029]/),template_text:x.until(/[`\\$]/),template_expression:x.until(/[`}\\]/)}};K.prototype=new y,K.prototype._is_comment=function(te){return te.type===A.COMMENT||te.type===A.BLOCK_COMMENT||te.type===A.UNKNOWN},K.prototype._is_opening=function(te){return te.type===A.START_BLOCK||te.type===A.START_EXPR},K.prototype._is_closing=function(te,ne){return(te.type===A.END_BLOCK||te.type===A.END_EXPR)&&ne&&(te.text==="]"&&ne.text==="["||te.text===")"&&ne.text==="("||te.text==="}"&&ne.text==="{")},K.prototype._reset=function(){se=!1},K.prototype._get_next_token=function(te,ne){var z=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(A.EOF,""):(z=z||this._read_non_javascript(x),z=z||this._read_string(x),z=z||this._read_pair(x,this._input.peek(1)),z=z||this._read_word(te),z=z||this._read_singles(x),z=z||this._read_comment(x),z=z||this._read_regexp(x,te),z=z||this._read_xml(x,te),z=z||this._read_punctuation(),z=z||this._create_token(A.UNKNOWN,this._input.next()),z)},K.prototype._read_word=function(te){var ne;if(ne=this.__patterns.identifier.read(),ne!=="")return ne=ne.replace(N.allLineBreaks,`
|
|
|
`),!(te.type===A.DOT||te.type===A.RESERVED&&(te.text==="set"||te.text==="get"))&&Pe.test(ne)?(ne==="in"||ne==="of")&&(te.type===A.WORD||te.type===A.STRING)?this._create_token(A.OPERATOR,ne):this._create_token(A.RESERVED,ne):this._create_token(A.WORD,ne);if(ne=this.__patterns.number.read(),ne!=="")return this._create_token(A.WORD,ne)},K.prototype._read_singles=function(te){var ne=null;return te==="("||te==="["?ne=this._create_token(A.START_EXPR,te):te===")"||te==="]"?ne=this._create_token(A.END_EXPR,te):te==="{"?ne=this._create_token(A.START_BLOCK,te):te==="}"?ne=this._create_token(A.END_BLOCK,te):te===";"?ne=this._create_token(A.SEMICOLON,te):te==="."&&ae.test(this._input.peek(1))?ne=this._create_token(A.DOT,te):te===","&&(ne=this._create_token(A.COMMA,te)),ne&&this._input.next(),ne},K.prototype._read_pair=function(te,ne){var z=null;return te==="#"&&ne==="{"&&(z=this._create_token(A.START_BLOCK,te+ne)),z&&(this._input.next(),this._input.next()),z},K.prototype._read_punctuation=function(){var te=this.__patterns.punct.read();if(te!=="")return te==="="?this._create_token(A.EQUALS,te):te==="?."?this._create_token(A.DOT,te):this._create_token(A.OPERATOR,te)},K.prototype._read_non_javascript=function(te){var ne="";if(te==="#"){if(this._is_first_token()&&(ne=this.__patterns.shebang.read(),ne))return this._create_token(A.UNKNOWN,ne.trim()+`
|
|
|
`);if(ne=this.__patterns.include.read(),ne)return this._create_token(A.UNKNOWN,ne.trim()+`
|
|
|
`);te=this._input.next();var z="#";if(this._input.hasNext()&&this._input.testChar(L)){do te=this._input.next(),z+=te;while(this._input.hasNext()&&te!=="#"&&te!=="=");return te==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(z+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(z+="{}",this._input.next(),this._input.next())),this._create_token(A.WORD,z)}this._input.back()}else if(te==="<"&&this._is_first_token()){if(ne=this.__patterns.html_comment_start.read(),ne){for(;this._input.hasNext()&&!this._input.testChar(N.newline);)ne+=this._input.next();return se=!0,this._create_token(A.COMMENT,ne)}}else if(se&&te==="-"&&(ne=this.__patterns.html_comment_end.read(),ne))return se=!1,this._create_token(A.COMMENT,ne);return null},K.prototype._read_comment=function(te){var ne=null;if(te==="/"){var z="";if(this._input.peek(1)==="*"){z=this.__patterns.block_comment.read();var x=V.get_directives(z);x&&x.ignore==="start"&&(z+=V.readIgnored(this._input)),z=z.replace(N.allLineBreaks,`
|
|
|
`),ne=this._create_token(A.BLOCK_COMMENT,z),ne.directives=x}else this._input.peek(1)==="/"&&(z=this.__patterns.comment.read(),ne=this._create_token(A.COMMENT,z))}return ne},K.prototype._read_string=function(te){if(te==="`"||te==="'"||te==='"'){var ne=this._input.next();return this.has_char_escapes=!1,te==="`"?ne+=this._read_string_recursive("`",!0,"${"):ne+=this._read_string_recursive(te),this.has_char_escapes&&this._options.unescape_strings&&(ne=w(ne)),this._input.peek()===te&&(ne+=this._input.next()),ne=ne.replace(N.allLineBreaks,`
|
|
|
`),this._create_token(A.STRING,ne)}return null},K.prototype._allow_regexp_or_xml=function(te){return te.type===A.RESERVED&&j(te.text,["return","case","throw","else","do","typeof","yield"])||te.type===A.END_EXPR&&te.text===")"&&te.opened.previous.type===A.RESERVED&&j(te.opened.previous.text,["if","while","for"])||j(te.type,[A.COMMENT,A.START_EXPR,A.START_BLOCK,A.START,A.END_BLOCK,A.OPERATOR,A.EQUALS,A.EOF,A.SEMICOLON,A.COMMA])},K.prototype._read_regexp=function(te,ne){if(te==="/"&&this._allow_regexp_or_xml(ne)){for(var z=this._input.next(),x=!1,T=!1;this._input.hasNext()&&(x||T||this._input.peek()!==te)&&!this._input.testChar(N.newline);)z+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?T=!0:this._input.peek()==="]"&&(T=!1)),this._input.next();return this._input.peek()===te&&(z+=this._input.next(),z+=this._input.read(N.identifier)),this._create_token(A.STRING,z)}return null},K.prototype._read_xml=function(te,ne){if(this._options.e4x&&te==="<"&&this._allow_regexp_or_xml(ne)){var z="",x=this.__patterns.xml.read_match();if(x){for(var T=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),G=T.indexOf("{")===0,ve=0;x;){var We=!!x[1],st=x[2],_e=!!x[x.length-1]||st.slice(0,8)==="![CDATA[";if(!_e&&(st===T||G&&st.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(We?--ve:++ve),z+=x[0],ve<=0)break;x=this.__patterns.xml.read_match()}return x||(z+=this._input.match(/[\s\S]*/g)[0]),z=z.replace(N.allLineBreaks,`
|
|
|
`),this._create_token(A.STRING,z)}}return null};function w(te){for(var ne="",z=0,x=new P(te),T=null;x.hasNext();)if(T=x.match(/([\s]|[^\\]|\\\\)+/g),T&&(ne+=T[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")T=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")T=x.match(/u([0-9A-Fa-f]{4})/g),T||(T=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{ne+="\\",x.hasNext()&&(ne+=x.next());continue}if(!T||(z=parseInt(T[1],16),z>126&&z<=255&&T[0].indexOf("x")===0))return te;z>=0&&z<32||z>1114111?ne+="\\"+T[0]:z===34||z===39||z===92?ne+="\\"+String.fromCharCode(z):ne+=String.fromCharCode(z)}return ne}K.prototype._read_string_recursive=function(te,ne,z){var x,T;te==="'"?T=this.__patterns.single_quote:te==='"'?T=this.__patterns.double_quote:te==="`"?T=this.__patterns.template_text:te==="}"&&(T=this.__patterns.template_expression);for(var G=T.read(),ve="";this._input.hasNext();){if(ve=this._input.next(),ve===te||!ne&&N.newline.test(ve)){this._input.back();break}else ve==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),ve+=this._input.next()):z&&(z==="${"&&ve==="$"&&this._input.peek()==="{"&&(ve+=this._input.next()),z===ve&&(te==="`"?ve+=this._read_string_recursive("}",ne,"`"):ve+=this._read_string_recursive("`",ne,"${"),this._input.hasNext()&&(ve+=this._input.next())));ve+=T.read(),G+=ve}return G},Q.exports.Tokenizer=K,Q.exports.TOKEN=A,Q.exports.positionable_operators=pe.slice(),Q.exports.line_starters=$e.slice()},function(Q){var o=RegExp.prototype.hasOwnProperty("sticky");function C(P){this.__input=P||"",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 P=null;return this.hasNext()&&(P=this.__input.charAt(this.__position),this.__position+=1),P},C.prototype.peek=function(P){var y=null;return P=P||0,P+=this.__position,P>=0&&P<this.__input_length&&(y=this.__input.charAt(P)),y},C.prototype.__match=function(P,y){P.lastIndex=y;var S=P.exec(this.__input);return S&&!(o&&P.sticky)&&S.index!==y&&(S=null),S},C.prototype.test=function(P,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(P,y):!1},C.prototype.testChar=function(P,y){var S=this.peek(y);return P.lastIndex=0,S!==null&&P.test(S)},C.prototype.match=function(P){var y=this.__match(P,this.__position);return y?this.__position+=y[0].length:y=null,y},C.prototype.read=function(P,y,S){var I="",N;return P&&(N=this.match(P),N&&(I+=N[0])),y&&(N||!P)&&(I+=this.readUntil(y,S)),I},C.prototype.readUntil=function(P,y){var S="",I=this.__position;P.lastIndex=this.__position;var N=P.exec(this.__input);return N?(I=N.index,y&&(I+=N[0].length)):I=this.__input_length,S=this.__input.substring(this.__position,I),this.__position=I,S},C.prototype.readUntilAfter=function(P){return this.readUntil(P,!0)},C.prototype.get_regexp=function(P,y){var S=null,I="g";return y&&o&&(I="y"),typeof P=="string"&&P!==""?S=new RegExp(P,I):P&&(S=new RegExp(P.source,I)),S},C.prototype.get_literal_regexp=function(P){return RegExp(P.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(P){var y=this.__position,S=this.readUntilAfter(P);return this.__position=y,S},C.prototype.lookBack=function(P){var y=this.__position-1;return y>=P.length&&this.__input.substring(y-P.length,y).toLowerCase()===P},Q.exports.InputScanner=C},function(Q,o,C){var P=C(8).InputScanner,y=C(3).Token,S=C(10).TokenStream,I=C(11).WhitespacePattern,N={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},W=function(H,j){this._input=new P(H),this._options=j||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new I(this._input)};W.prototype.tokenize=function(){this._input.restart(),this.__tokens=new S,this._reset();for(var H,j=new y(N.START,""),A=null,V=[],R=new S;j.type!==N.EOF;){for(H=this._get_next_token(j,A);this._is_comment(H);)R.add(H),H=this._get_next_token(j,A);R.isEmpty()||(H.comments_before=R,R=new S),H.parent=A,this._is_opening(H)?(V.push(A),A=H):A&&this._is_closing(H,A)&&(H.opened=A,A.closed=H,A=V.pop(),H.parent=A),H.previous=j,j.next=H,this.__tokens.add(H),j=H}return this.__tokens},W.prototype._is_first_token=function(){return this.__tokens.isEmpty()},W.prototype._reset=function(){},W.prototype._get_next_token=function(H,j){this._readWhitespace();var A=this._input.read(/.+/g);return A?this._create_token(N.RAW,A):this._create_token(N.EOF,"")},W.prototype._is_comment=function(H){return!1},W.prototype._is_opening=function(H){return!1},W.prototype._is_closing=function(H,j){return!1},W.prototype._create_token=function(H,j){var A=new y(H,j,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return A},W.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Q.exports.Tokenizer=W,Q.exports.TOKEN=N},function(Q){function o(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},o.prototype.peek=function(C){var P=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(P=this.__tokens[C]),P},o.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},Q.exports.TokenStream=o},function(Q,o,C){var P=C(12).Pattern;function y(S,I){P.call(this,S,I),I?this._line_regexp=this._input.get_regexp(I._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new P,y.prototype.__set_whitespace_patterns=function(S,I){S+="\\t ",I+="\\n\\r",this._match_pattern=this._input.get_regexp("["+S+I+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+I+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var S=this._input.read(this._match_pattern);if(S===" ")this.whitespace_before_token=" ";else if(S){var I=this.__split(this._newline_regexp,S);this.newline_count=I.length-1,this.whitespace_before_token=I[this.newline_count]}return S},y.prototype.matching=function(S,I){var N=this._create();return N.__set_whitespace_patterns(S,I),N._update(),N},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(S,I){S.lastIndex=0;for(var N=0,W=[],H=S.exec(I);H;)W.push(I.substring(N,H.index)),N=H.index+H[0].length,H=S.exec(I);return N<I.length?W.push(I.substring(N,I.length)):W.push(""),W},Q.exports.WhitespacePattern=y},function(Q){function o(C,P){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,P&&(this._starting_pattern=this._input.get_regexp(P._starting_pattern,!0),this._match_pattern=this._input.get_regexp(P._match_pattern,!0),this._until_pattern=this._input.get_regexp(P._until_pattern),this._until_after=P._until_after)}o.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},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(C){var P=this._create();return P._until_after=!0,P._until_pattern=this._input.get_regexp(C),P._update(),P},o.prototype.until=function(C){var P=this._create();return P._until_after=!1,P._until_pattern=this._input.get_regexp(C),P._update(),P},o.prototype.starting_with=function(C){var P=this._create();return P._starting_pattern=this._input.get_regexp(C,!0),P._update(),P},o.prototype.matching=function(C){var P=this._create();return P._match_pattern=this._input.get_regexp(C,!0),P._update(),P},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},Q.exports.Pattern=o},function(Q){function o(C,P){C=typeof C=="string"?C:C.source,P=typeof P=="string"?P:P.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+P,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+P,"g")}o.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var P={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(C);y;)P[y[1]]=y[2],y=this.__directive_pattern.exec(C);return P},o.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},Q.exports.Directives=o},function(Q,o,C){var P=C(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function S(I,N){P.call(this,I,N),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),N&&(this.__template_pattern=this._input.get_regexp(N.__template_pattern),this._excluded=Object.assign(this._excluded,N._excluded),this._disabled=Object.assign(this._disabled,N._disabled));var W=new P(I);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}/)}}S.prototype=new P,S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){this.__set_templated_pattern()},S.prototype.disable=function(I){var N=this._create();return N._disabled[I]=!0,N._update(),N},S.prototype.read_options=function(I){var N=this._create();for(var W in y)N._disabled[W]=I.templating.indexOf(W)===-1;return N._update(),N},S.prototype.exclude=function(I){var N=this._create();return N._excluded[I]=!0,N._update(),N},S.prototype.read=function(){var I="";this._match_pattern?I=this._input.read(this._starting_pattern):I=this._input.read(this._starting_pattern,this.__template_pattern);for(var N=this._read_template();N;)this._match_pattern?N+=this._input.read(this._match_pattern):N+=this._input.readUntil(this.__template_pattern),I+=N,N=this._read_template();return this._until_after&&(I+=this._input.readUntilAfter(this._until_pattern)),I},S.prototype.__set_templated_pattern=function(){var I=[];this._disabled.php||I.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||I.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||I.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||I.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(I.push(this.__patterns.django._starting_pattern.source),I.push(this.__patterns.django_value._starting_pattern.source),I.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||I.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&I.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+I.join("|")+")")},S.prototype._read_template=function(){var I="",N=this._input.peek();if(N==="<"){var W=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&W==="?"&&(I=I||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&W==="%"&&(I=I||this.__patterns.erb.read())}else N==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(I=I||this.__patterns.handlebars_comment.read(),I=I||this.__patterns.handlebars_unescaped.read(),I=I||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(I=I||this.__patterns.django_value.read()),this._excluded.django||(I=I||this.__patterns.django_comment.read(),I=I||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(I=I||this.__patterns.smarty_comment.read(),I=I||this.__patterns.smarty_literal.read(),I=I||this.__patterns.smarty.read()));return I},Q.exports.TemplatablePattern=S}],F={};function g(Q){var o=F[Q];if(o!==void 0)return o.exports;var C=F[Q]={exports:{}};return le[Q](C,C.exports,g),C.exports}var q=g(0);ie=q})();var U=ie;d=[],l=function(){return{js_beautify:U}}.apply(qe,d),l!==void 0&&(ln.exports=l)})()},15342:function(ln){(function(d,l){ln.exports=l()})(typeof self!="undefined"?self:this,function(){return function(qe){var d={};function l(ie){if(d[ie])return d[ie].exports;var U=d[ie]={i:ie,l:!1,exports:{}};return qe[ie].call(U.exports,U,U.exports,l),U.l=!0,U.exports}return l.m=qe,l.c=d,l.d=function(ie,U,le){l.o(ie,U)||Object.defineProperty(ie,U,{enumerable:!0,get:le})},l.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},l.t=function(ie,U){if(U&1&&(ie=l(ie)),U&8||U&4&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var le=Object.create(null);if(l.r(le),Object.defineProperty(le,"default",{enumerable:!0,value:ie}),U&2&&typeof ie!="string")for(var F in ie)l.d(le,F,function(g){return ie[g]}.bind(null,F));return le},l.n=function(ie){var U=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return l.d(U,"a",U),U},l.o=function(ie,U){return Object.prototype.hasOwnProperty.call(ie,U)},l.p="",l(l.s=1)}([function(qe,d,l){},function(qe,d,l){"use strict";l.r(d);var ie=l(0),U=function(){function B(u,f,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=u,this.start=f,this.end=h}return B.range=function(f,h){return h?!f||!f.loc||!h.loc||f.loc.lexer!==h.loc.lexer?null:new B(f.loc.lexer,f.loc.start,h.loc.end):f&&f.loc},B}(),le=function(){function B(f,h){this.text=void 0,this.loc=void 0,this.text=f,this.loc=h}var u=B.prototype;return u.range=function(h,b){return new B(b,U.range(this,h))},B}(),F=function B(u,f){this.position=void 0;var h="KaTeX parse error: "+u,b,M=f&&f.loc;if(M&&M.start<=M.end){var Y=M.lexer.input;b=M.start;var Se=M.end;b===Y.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";var Me=Y.slice(b,Se).replace(/[^]/g,"$&\u0332"),et;b>15?et="\u2026"+Y.slice(b-15,b):et=Y.slice(0,b);var wt;Se+15<Y.length?wt=Y.slice(Se,Se+15)+"\u2026":wt=Y.slice(Se),h+=et+Me+wt}var Mt=new Error(h);return Mt.name="ParseError",Mt.__proto__=B.prototype,Mt.position=b,Mt};F.prototype.__proto__=Error.prototype;var g=F,q=function(u,f){return u.indexOf(f)!==-1},Q=function(u,f){return u===void 0?f:u},o=/([A-Z])/g,C=function(u){return u.replace(o,"-$1").toLowerCase()},P={"&":"&",">":">","<":"<",'"':""","'":"'"},y=/[&><"']/g;function S(B){return String(B).replace(y,function(u){return P[u]})}var I=function B(u){return u.type==="ordgroup"||u.type==="color"?u.body.length===1?B(u.body[0]):u:u.type==="font"?B(u.body):u},N=function(u){var f=I(u);return f.type==="mathord"||f.type==="textord"||f.type==="atom"},W=function(u){if(!u)throw new Error("Expected non-null, but got "+String(u));return u},H=function(u){var f=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(u);return f!=null?f[1]:"_relative"},j={contains:q,deflt:Q,escape:S,hyphenate:C,getBaseElem:I,isCharacterBox:N,protocolFromUrl:H},A=function(){function B(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=j.deflt(f.displayMode,!1),this.output=j.deflt(f.output,"htmlAndMathml"),this.leqno=j.deflt(f.leqno,!1),this.fleqn=j.deflt(f.fleqn,!1),this.throwOnError=j.deflt(f.throwOnError,!0),this.errorColor=j.deflt(f.errorColor,"#cc0000"),this.macros=f.macros||{},this.minRuleThickness=Math.max(0,j.deflt(f.minRuleThickness,0)),this.colorIsTextColor=j.deflt(f.colorIsTextColor,!1),this.strict=j.deflt(f.strict,"warn"),this.trust=j.deflt(f.trust,!1),this.maxSize=Math.max(0,j.deflt(f.maxSize,1/0)),this.maxExpand=Math.max(0,j.deflt(f.maxExpand,1e3))}var u=B.prototype;return u.reportNonstrict=function(h,b,M){var Y=this.strict;if(typeof Y=="function"&&(Y=Y(h,b,M)),!(!Y||Y==="ignore")){if(Y===!0||Y==="error")throw new g("LaTeX-incompatible input and strict mode is set to 'error': "+(b+" ["+h+"]"),M);Y==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Y+"': "+b+" ["+h+"]"))}},u.useStrictBehavior=function(h,b,M){var Y=this.strict;if(typeof Y=="function")try{Y=Y(h,b,M)}catch(Se){Y="error"}return!Y||Y==="ignore"?!1:Y===!0||Y==="error"?!0:Y==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Y+"': "+b+" ["+h+"]")),!1)},u.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=j.protocolFromUrl(h.url));var b=typeof this.trust=="function"?this.trust(h):this.trust;return!!b},B}(),V=function(){function B(f,h,b){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=h,this.cramped=b}var u=B.prototype;return u.sup=function(){return Pe[se[this.id]]},u.sub=function(){return Pe[K[this.id]]},u.fracNum=function(){return Pe[w[this.id]]},u.fracDen=function(){return Pe[te[this.id]]},u.cramp=function(){return Pe[ne[this.id]]},u.text=function(){return Pe[z[this.id]]},u.isTight=function(){return this.size>=2},B}(),R=0,L=1,ae=2,pe=3,ce=4,Le=5,$e=6,Te=7,Pe=[new V(R,0,!1),new V(L,0,!0),new V(ae,1,!1),new V(pe,1,!0),new V(ce,2,!1),new V(Le,2,!0),new V($e,3,!1),new V(Te,3,!0)],se=[ce,Le,ce,Le,$e,Te,$e,Te],K=[Le,Le,Le,Le,Te,Te,Te,Te],w=[ae,pe,ce,Le,$e,Te,$e,Te],te=[pe,pe,Le,Le,Te,Te,Te,Te],ne=[L,L,pe,pe,Le,Le,Te,Te],z=[R,L,ae,pe,ae,pe,ae,pe],x={DISPLAY:Pe[R],TEXT:Pe[ae],SCRIPT:Pe[ce],SCRIPTSCRIPT:Pe[$e]},T=[{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 G(B){for(var u=0;u<T.length;u++)for(var f=T[u],h=0;h<f.blocks.length;h++){var b=f.blocks[h];if(B>=b[0]&&B<=b[1])return f.name}return null}var ve=[];T.forEach(function(B){return B.blocks.forEach(function(u){return ve.push.apply(ve,u)})});function We(B){for(var u=0;u<ve.length;u+=2)if(B>=ve[u]&&B<=ve[u+1])return!0;return!1}var st=80,_e=function(u,f){return"M95,"+(622+u+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`+u/2.075+" -"+u+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+u)+`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+u)+" "+f+"h400000v"+(40+u)+"h-400000z"},Ke=function(u,f){return"M263,"+(601+u+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`+u/2.084+" -"+u+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+u)+`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+u)+" "+f+"h400000v"+(40+u)+"h-400000z"},Ve=function(u,f){return"M983 "+(10+u+f)+`
|
|
|
l`+u/3.13+" -"+u+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+u)+`
|
|
|
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+u)+" "+f+"h400000v"+(40+u)+"h-400000z"},rt=function(u,f){return"M424,"+(2398+u+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`+u/4.223+" -"+u+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+u)+`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+u)+" "+f+`
|
|
|
h400000v`+(40+u)+"h-400000z"},Ae=function(u,f){return"M473,"+(2713+u+f)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+u/5.298+" -"+u+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+u)+`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+u)+" "+f+"h400000v"+(40+u)+"H1017.7z"},Tt=function(u,f,h){var b=h-54-f-u;return"M702 "+(u+f)+"H400000"+(40+u)+`
|
|
|
H742v`+b+`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+u)+"H742z"},tt=function(u,f,h){f=1e3*f;var b="";switch(u){case"sqrtMain":b=_e(f,st);break;case"sqrtSize1":b=Ke(f,st);break;case"sqrtSize2":b=Ve(f,st);break;case"sqrtSize3":b=rt(f,st);break;case"sqrtSize4":b=Ae(f,st);break;case"sqrtTall":b=Tt(f,st,h)}return b},Pt={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`},Xe=function(){function B(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 u=B.prototype;return u.hasClass=function(h){return j.contains(this.classes,h)},u.toNode=function(){for(var h=document.createDocumentFragment(),b=0;b<this.children.length;b++)h.appendChild(this.children[b].toNode());return h},u.toMarkup=function(){for(var h="",b=0;b<this.children.length;b++)h+=this.children[b].toMarkup();return h},u.toText=function(){var h=function(M){return M.toText()};return this.children.map(h).join("")},B}(),Qe=function(u){return u.filter(function(f){return f}).join(" ")},Ne=function(u,f,h){if(this.classes=u||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},f){f.style.isTight()&&this.classes.push("mtight");var b=f.getColor();b&&(this.style.color=b)}},Oe=function(u){var f=document.createElement(u);f.className=Qe(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(f.style[h]=this.style[h]);for(var b in this.attributes)this.attributes.hasOwnProperty(b)&&f.setAttribute(b,this.attributes[b]);for(var M=0;M<this.children.length;M++)f.appendChild(this.children[M].toNode());return f},re=function(u){var f="<"+u;this.classes.length&&(f+=' class="'+j.escape(Qe(this.classes))+'"');var h="";for(var b in this.style)this.style.hasOwnProperty(b)&&(h+=j.hyphenate(b)+":"+this.style[b]+";");h&&(f+=' style="'+j.escape(h)+'"');for(var M in this.attributes)this.attributes.hasOwnProperty(M)&&(f+=" "+M+'="'+j.escape(this.attributes[M])+'"');f+=">";for(var Y=0;Y<this.children.length;Y++)f+=this.children[Y].toMarkup();return f+="</"+u+">",f},Fe=function(){function B(f,h,b,M){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,Ne.call(this,f,b,M),this.children=h||[]}var u=B.prototype;return u.setAttribute=function(h,b){this.attributes[h]=b},u.hasClass=function(h){return j.contains(this.classes,h)},u.toNode=function(){return Oe.call(this,"span")},u.toMarkup=function(){return re.call(this,"span")},B}(),Re=function(){function B(f,h,b,M){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,Ne.call(this,h,M),this.children=b||[],this.setAttribute("href",f)}var u=B.prototype;return u.setAttribute=function(h,b){this.attributes[h]=b},u.hasClass=function(h){return j.contains(this.classes,h)},u.toNode=function(){return Oe.call(this,"a")},u.toMarkup=function(){return re.call(this,"a")},B}(),Z=function(){function B(f,h,b){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=b}var u=B.prototype;return u.hasClass=function(h){return j.contains(this.classes,h)},u.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var b in this.style)this.style.hasOwnProperty(b)&&(h.style[b]=this.style[b]);return h},u.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",b="";for(var M in this.style)this.style.hasOwnProperty(M)&&(b+=j.hyphenate(M)+":"+this.style[M]+";");return b&&(h+=' style="'+j.escape(b)+'"'),h+="'/>",h},B}(),O={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},me=function(){function B(f,h,b,M,Y,Se,Me,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=b||0,this.italic=M||0,this.skew=Y||0,this.width=Se||0,this.classes=Me||[],this.style=et||{},this.maxFontSize=0;var wt=G(this.text.charCodeAt(0));wt&&this.classes.push(wt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O[this.text])}var u=B.prototype;return u.hasClass=function(h){return j.contains(this.classes,h)},u.toNode=function(){var h=document.createTextNode(this.text),b=null;this.italic>0&&(b=document.createElement("span"),b.style.marginRight=this.italic+"em"),this.classes.length>0&&(b=b||document.createElement("span"),b.className=Qe(this.classes));for(var M in this.style)this.style.hasOwnProperty(M)&&(b=b||document.createElement("span"),b.style[M]=this.style[M]);return b?(b.appendChild(h),b):h},u.toMarkup=function(){var h=!1,b="<span";this.classes.length&&(h=!0,b+=' class="',b+=j.escape(Qe(this.classes)),b+='"');var M="";this.italic>0&&(M+="margin-right:"+this.italic+"em;");for(var Y in this.style)this.style.hasOwnProperty(Y)&&(M+=j.hyphenate(Y)+":"+this.style[Y]+";");M&&(h=!0,b+=' style="'+j.escape(M)+'"');var Se=j.escape(this.text);return h?(b+=">",b+=Se,b+="</span>",b):Se},B}(),Ee=function(){function B(f,h){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=h||{}}var u=B.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"svg");for(var M in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,M)&&b.setAttribute(M,this.attributes[M]);for(var Y=0;Y<this.children.length;Y++)b.appendChild(this.children[Y].toNode());return b},u.toMarkup=function(){var h="<svg";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");h+=">";for(var M=0;M<this.children.length;M++)h+=this.children[M].toMarkup();return h+="</svg>",h},B}(),ge=function(){function B(f,h){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=h}var u=B.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"path");return this.alternate?b.setAttribute("d",this.alternate):b.setAttribute("d",Pt[this.pathName]),b},u.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Pt[this.pathName]+"'/>"},B}(),we=function(){function B(f){this.attributes=void 0,this.attributes=f||{}}var u=B.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"line");for(var M in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,M)&&b.setAttribute(M,this.attributes[M]);return b},u.toMarkup=function(){var h="<line";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");return h+="/>",h},B}();function ke(B){if(B instanceof me)return B;throw new Error("Expected symbolNode but got "+String(B)+".")}function Ye(B){if(B instanceof Fe)return B;throw new Error("Expected span<HtmlDomNode> but got "+String(B)+".")}var oe={"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]}},fe={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]},dt={\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 ot(B,u){oe[B]=u}function ft(B,u,f){if(!oe[u])throw new Error("Font metrics not found for font: "+u+".");var h=B.charCodeAt(0),b=oe[u][h];if(!b&&B[0]in dt&&(h=dt[B[0]].charCodeAt(0),b=oe[u][h]),!b&&f==="text"&&We(h)&&(b=oe[u][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}var ht={};function Ge(B){var u;if(B>=5?u=0:B>=3?u=1:u=2,!ht[u]){var f=ht[u]={cssEmPerMu:fe.quad[u]/18};for(var h in fe)fe.hasOwnProperty(h)&&(f[h]=fe[h][u])}return ht[u]}var Ct={bin:1,close:1,inner:1,open:1,punct:1,rel:1},gt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ce={math:{},text:{}},Je=Ce;function _(B,u,f,h,b,M){Ce[B][b]={font:u,group:f,replace:h},M&&h&&(Ce[B][h]=Ce[B][b])}var D="math",Ze="text",ee="main",ye="ams",Ot="accent-token",He="bin",it="close",ct="inner",he="mathord",be="op-token",je="open",Ue="punct",$="rel",ut="spacing",xe="textord";_(D,ee,$,"\u2261","\\equiv",!0),_(D,ee,$,"\u227A","\\prec",!0),_(D,ee,$,"\u227B","\\succ",!0),_(D,ee,$,"\u223C","\\sim",!0),_(D,ee,$,"\u22A5","\\perp"),_(D,ee,$,"\u2AAF","\\preceq",!0),_(D,ee,$,"\u2AB0","\\succeq",!0),_(D,ee,$,"\u2243","\\simeq",!0),_(D,ee,$,"\u2223","\\mid",!0),_(D,ee,$,"\u226A","\\ll",!0),_(D,ee,$,"\u226B","\\gg",!0),_(D,ee,$,"\u224D","\\asymp",!0),_(D,ee,$,"\u2225","\\parallel"),_(D,ee,$,"\u22C8","\\bowtie",!0),_(D,ee,$,"\u2323","\\smile",!0),_(D,ee,$,"\u2291","\\sqsubseteq",!0),_(D,ee,$,"\u2292","\\sqsupseteq",!0),_(D,ee,$,"\u2250","\\doteq",!0),_(D,ee,$,"\u2322","\\frown",!0),_(D,ee,$,"\u220B","\\ni",!0),_(D,ee,$,"\u221D","\\propto",!0),_(D,ee,$,"\u22A2","\\vdash",!0),_(D,ee,$,"\u22A3","\\dashv",!0),_(D,ee,$,"\u220B","\\owns"),_(D,ee,Ue,".","\\ldotp"),_(D,ee,Ue,"\u22C5","\\cdotp"),_(D,ee,xe,"#","\\#"),_(Ze,ee,xe,"#","\\#"),_(D,ee,xe,"&","\\&"),_(Ze,ee,xe,"&","\\&"),_(D,ee,xe,"\u2135","\\aleph",!0),_(D,ee,xe,"\u2200","\\forall",!0),_(D,ee,xe,"\u210F","\\hbar",!0),_(D,ee,xe,"\u2203","\\exists",!0),_(D,ee,xe,"\u2207","\\nabla",!0),_(D,ee,xe,"\u266D","\\flat",!0),_(D,ee,xe,"\u2113","\\ell",!0),_(D,ee,xe,"\u266E","\\natural",!0),_(D,ee,xe,"\u2663","\\clubsuit",!0),_(D,ee,xe,"\u2118","\\wp",!0),_(D,ee,xe,"\u266F","\\sharp",!0),_(D,ee,xe,"\u2662","\\diamondsuit",!0),_(D,ee,xe,"\u211C","\\Re",!0),_(D,ee,xe,"\u2661","\\heartsuit",!0),_(D,ee,xe,"\u2111","\\Im",!0),_(D,ee,xe,"\u2660","\\spadesuit",!0),_(Ze,ee,xe,"\xA7","\\S",!0),_(Ze,ee,xe,"\xB6","\\P",!0),_(D,ee,xe,"\u2020","\\dag"),_(Ze,ee,xe,"\u2020","\\dag"),_(Ze,ee,xe,"\u2020","\\textdagger"),_(D,ee,xe,"\u2021","\\ddag"),_(Ze,ee,xe,"\u2021","\\ddag"),_(Ze,ee,xe,"\u2021","\\textdaggerdbl"),_(D,ee,it,"\u23B1","\\rmoustache",!0),_(D,ee,je,"\u23B0","\\lmoustache",!0),_(D,ee,it,"\u27EF","\\rgroup",!0),_(D,ee,je,"\u27EE","\\lgroup",!0),_(D,ee,He,"\u2213","\\mp",!0),_(D,ee,He,"\u2296","\\ominus",!0),_(D,ee,He,"\u228E","\\uplus",!0),_(D,ee,He,"\u2293","\\sqcap",!0),_(D,ee,He,"\u2217","\\ast"),_(D,ee,He,"\u2294","\\sqcup",!0),_(D,ee,He,"\u25EF","\\bigcirc"),_(D,ee,He,"\u2219","\\bullet"),_(D,ee,He,"\u2021","\\ddagger"),_(D,ee,He,"\u2240","\\wr",!0),_(D,ee,He,"\u2A3F","\\amalg"),_(D,ee,He,"&","\\And"),_(D,ee,$,"\u27F5","\\longleftarrow",!0),_(D,ee,$,"\u21D0","\\Leftarrow",!0),_(D,ee,$,"\u27F8","\\Longleftarrow",!0),_(D,ee,$,"\u27F6","\\longrightarrow",!0),_(D,ee,$,"\u21D2","\\Rightarrow",!0),_(D,ee,$,"\u27F9","\\Longrightarrow",!0),_(D,ee,$,"\u2194","\\leftrightarrow",!0),_(D,ee,$,"\u27F7","\\longleftrightarrow",!0),_(D,ee,$,"\u21D4","\\Leftrightarrow",!0),_(D,ee,$,"\u27FA","\\Longleftrightarrow",!0),_(D,ee,$,"\u21A6","\\mapsto",!0),_(D,ee,$,"\u27FC","\\longmapsto",!0),_(D,ee,$,"\u2197","\\nearrow",!0),_(D,ee,$,"\u21A9","\\hookleftarrow",!0),_(D,ee,$,"\u21AA","\\hookrightarrow",!0),_(D,ee,$,"\u2198","\\searrow",!0),_(D,ee,$,"\u21BC","\\leftharpoonup",!0),_(D,ee,$,"\u21C0","\\rightharpoonup",!0),_(D,ee,$,"\u2199","\\swarrow",!0),_(D,ee,$,"\u21BD","\\leftharpoondown",!0),_(D,ee,$,"\u21C1","\\rightharpoondown",!0),_(D,ee,$,"\u2196","\\nwarrow",!0),_(D,ee,$,"\u21CC","\\rightleftharpoons",!0),_(D,ye,$,"\u226E","\\nless",!0),_(D,ye,$,"\uE010","\\@nleqslant"),_(D,ye,$,"\uE011","\\@nleqq"),_(D,ye,$,"\u2A87","\\lneq",!0),_(D,ye,$,"\u2268","\\lneqq",!0),_(D,ye,$,"\uE00C","\\@lvertneqq"),_(D,ye,$,"\u22E6","\\lnsim",!0),_(D,ye,$,"\u2A89","\\lnapprox",!0),_(D,ye,$,"\u2280","\\nprec",!0),_(D,ye,$,"\u22E0","\\npreceq",!0),_(D,ye,$,"\u22E8","\\precnsim",!0),_(D,ye,$,"\u2AB9","\\precnapprox",!0),_(D,ye,$,"\u2241","\\nsim",!0),_(D,ye,$,"\uE006","\\@nshortmid"),_(D,ye,$,"\u2224","\\nmid",!0),_(D,ye,$,"\u22AC","\\nvdash",!0),_(D,ye,$,"\u22AD","\\nvDash",!0),_(D,ye,$,"\u22EA","\\ntriangleleft"),_(D,ye,$,"\u22EC","\\ntrianglelefteq",!0),_(D,ye,$,"\u228A","\\subsetneq",!0),_(D,ye,$,"\uE01A","\\@varsubsetneq"),_(D,ye,$,"\u2ACB","\\subsetneqq",!0),_(D,ye,$,"\uE017","\\@varsubsetneqq"),_(D,ye,$,"\u226F","\\ngtr",!0),_(D,ye,$,"\uE00F","\\@ngeqslant"),_(D,ye,$,"\uE00E","\\@ngeqq"),_(D,ye,$,"\u2A88","\\gneq",!0),_(D,ye,$,"\u2269","\\gneqq",!0),_(D,ye,$,"\uE00D","\\@gvertneqq"),_(D,ye,$,"\u22E7","\\gnsim",!0),_(D,ye,$,"\u2A8A","\\gnapprox",!0),_(D,ye,$,"\u2281","\\nsucc",!0),_(D,ye,$,"\u22E1","\\nsucceq",!0),_(D,ye,$,"\u22E9","\\succnsim",!0),_(D,ye,$,"\u2ABA","\\succnapprox",!0),_(D,ye,$,"\u2246","\\ncong",!0),_(D,ye,$,"\uE007","\\@nshortparallel"),_(D,ye,$,"\u2226","\\nparallel",!0),_(D,ye,$,"\u22AF","\\nVDash",!0),_(D,ye,$,"\u22EB","\\ntriangleright"),_(D,ye,$,"\u22ED","\\ntrianglerighteq",!0),_(D,ye,$,"\uE018","\\@nsupseteqq"),_(D,ye,$,"\u228B","\\supsetneq",!0),_(D,ye,$,"\uE01B","\\@varsupsetneq"),_(D,ye,$,"\u2ACC","\\supsetneqq",!0),_(D,ye,$,"\uE019","\\@varsupsetneqq"),_(D,ye,$,"\u22AE","\\nVdash",!0),_(D,ye,$,"\u2AB5","\\precneqq",!0),_(D,ye,$,"\u2AB6","\\succneqq",!0),_(D,ye,$,"\uE016","\\@nsubseteqq"),_(D,ye,He,"\u22B4","\\unlhd"),_(D,ye,He,"\u22B5","\\unrhd"),_(D,ye,$,"\u219A","\\nleftarrow",!0),_(D,ye,$,"\u219B","\\nrightarrow",!0),_(D,ye,$,"\u21CD","\\nLeftarrow",!0),_(D,ye,$,"\u21CF","\\nRightarrow",!0),_(D,ye,$,"\u21AE","\\nleftrightarrow",!0),_(D,ye,$,"\u21CE","\\nLeftrightarrow",!0),_(D,ye,$,"\u25B3","\\vartriangle"),_(D,ye,xe,"\u210F","\\hslash"),_(D,ye,xe,"\u25BD","\\triangledown"),_(D,ye,xe,"\u25CA","\\lozenge"),_(D,ye,xe,"\u24C8","\\circledS"),_(D,ye,xe,"\xAE","\\circledR"),_(Ze,ye,xe,"\xAE","\\circledR"),_(D,ye,xe,"\u2221","\\measuredangle",!0),_(D,ye,xe,"\u2204","\\nexists"),_(D,ye,xe,"\u2127","\\mho"),_(D,ye,xe,"\u2132","\\Finv",!0),_(D,ye,xe,"\u2141","\\Game",!0),_(D,ye,xe,"\u2035","\\backprime"),_(D,ye,xe,"\u25B2","\\blacktriangle"),_(D,ye,xe,"\u25BC","\\blacktriangledown"),_(D,ye,xe,"\u25A0","\\blacksquare"),_(D,ye,xe,"\u29EB","\\blacklozenge"),_(D,ye,xe,"\u2605","\\bigstar"),_(D,ye,xe,"\u2222","\\sphericalangle",!0),_(D,ye,xe,"\u2201","\\complement",!0),_(D,ye,xe,"\xF0","\\eth",!0),_(D,ye,xe,"\u2571","\\diagup"),_(D,ye,xe,"\u2572","\\diagdown"),_(D,ye,xe,"\u25A1","\\square"),_(D,ye,xe,"\u25A1","\\Box"),_(D,ye,xe,"\u25CA","\\Diamond"),_(D,ye,xe,"\xA5","\\yen",!0),_(Ze,ye,xe,"\xA5","\\yen",!0),_(D,ye,xe,"\u2713","\\checkmark",!0),_(Ze,ye,xe,"\u2713","\\checkmark"),_(D,ye,xe,"\u2136","\\beth",!0),_(D,ye,xe,"\u2138","\\daleth",!0),_(D,ye,xe,"\u2137","\\gimel",!0),_(D,ye,xe,"\u03DD","\\digamma",!0),_(D,ye,xe,"\u03F0","\\varkappa"),_(D,ye,je,"\u250C","\\ulcorner",!0),_(D,ye,it,"\u2510","\\urcorner",!0),_(D,ye,je,"\u2514","\\llcorner",!0),_(D,ye,it,"\u2518","\\lrcorner",!0),_(D,ye,$,"\u2266","\\leqq",!0),_(D,ye,$,"\u2A7D","\\leqslant",!0),_(D,ye,$,"\u2A95","\\eqslantless",!0),_(D,ye,$,"\u2272","\\lesssim",!0),_(D,ye,$,"\u2A85","\\lessapprox",!0),_(D,ye,$,"\u224A","\\approxeq",!0),_(D,ye,He,"\u22D6","\\lessdot"),_(D,ye,$,"\u22D8","\\lll",!0),_(D,ye,$,"\u2276","\\lessgtr",!0),_(D,ye,$,"\u22DA","\\lesseqgtr",!0),_(D,ye,$,"\u2A8B","\\lesseqqgtr",!0),_(D,ye,$,"\u2251","\\doteqdot"),_(D,ye,$,"\u2253","\\risingdotseq",!0),_(D,ye,$,"\u2252","\\fallingdotseq",!0),_(D,ye,$,"\u223D","\\backsim",!0),_(D,ye,$,"\u22CD","\\backsimeq",!0),_(D,ye,$,"\u2AC5","\\subseteqq",!0),_(D,ye,$,"\u22D0","\\Subset",!0),_(D,ye,$,"\u228F","\\sqsubset",!0),_(D,ye,$,"\u227C","\\preccurlyeq",!0),_(D,ye,$,"\u22DE","\\curlyeqprec",!0),_(D,ye,$,"\u227E","\\precsim",!0),_(D,ye,$,"\u2AB7","\\precapprox",!0),_(D,ye,$,"\u22B2","\\vartriangleleft"),_(D,ye,$,"\u22B4","\\trianglelefteq"),_(D,ye,$,"\u22A8","\\vDash",!0),_(D,ye,$,"\u22AA","\\Vvdash",!0),_(D,ye,$,"\u2323","\\smallsmile"),_(D,ye,$,"\u2322","\\smallfrown"),_(D,ye,$,"\u224F","\\bumpeq",!0),_(D,ye,$,"\u224E","\\Bumpeq",!0),_(D,ye,$,"\u2267","\\geqq",!0),_(D,ye,$,"\u2A7E","\\geqslant",!0),_(D,ye,$,"\u2A96","\\eqslantgtr",!0),_(D,ye,$,"\u2273","\\gtrsim",!0),_(D,ye,$,"\u2A86","\\gtrapprox",!0),_(D,ye,He,"\u22D7","\\gtrdot"),_(D,ye,$,"\u22D9","\\ggg",!0),_(D,ye,$,"\u2277","\\gtrless",!0),_(D,ye,$,"\u22DB","\\gtreqless",!0),_(D,ye,$,"\u2A8C","\\gtreqqless",!0),_(D,ye,$,"\u2256","\\eqcirc",!0),_(D,ye,$,"\u2257","\\circeq",!0),_(D,ye,$,"\u225C","\\triangleq",!0),_(D,ye,$,"\u223C","\\thicksim"),_(D,ye,$,"\u2248","\\thickapprox"),_(D,ye,$,"\u2AC6","\\supseteqq",!0),_(D,ye,$,"\u22D1","\\Supset",!0),_(D,ye,$,"\u2290","\\sqsupset",!0),_(D,ye,$,"\u227D","\\succcurlyeq",!0),_(D,ye,$,"\u22DF","\\curlyeqsucc",!0),_(D,ye,$,"\u227F","\\succsim",!0),_(D,ye,$,"\u2AB8","\\succapprox",!0),_(D,ye,$,"\u22B3","\\vartriangleright"),_(D,ye,$,"\u22B5","\\trianglerighteq"),_(D,ye,$,"\u22A9","\\Vdash",!0),_(D,ye,$,"\u2223","\\shortmid"),_(D,ye,$,"\u2225","\\shortparallel"),_(D,ye,$,"\u226C","\\between",!0),_(D,ye,$,"\u22D4","\\pitchfork",!0),_(D,ye,$,"\u221D","\\varpropto"),_(D,ye,$,"\u25C0","\\blacktriangleleft"),_(D,ye,$,"\u2234","\\therefore",!0),_(D,ye,$,"\u220D","\\backepsilon"),_(D,ye,$,"\u25B6","\\blacktriangleright"),_(D,ye,$,"\u2235","\\because",!0),_(D,ye,$,"\u22D8","\\llless"),_(D,ye,$,"\u22D9","\\gggtr"),_(D,ye,He,"\u22B2","\\lhd"),_(D,ye,He,"\u22B3","\\rhd"),_(D,ye,$,"\u2242","\\eqsim",!0),_(D,ee,$,"\u22C8","\\Join"),_(D,ye,$,"\u2251","\\Doteq",!0),_(D,ye,He,"\u2214","\\dotplus",!0),_(D,ye,He,"\u2216","\\smallsetminus"),_(D,ye,He,"\u22D2","\\Cap",!0),_(D,ye,He,"\u22D3","\\Cup",!0),_(D,ye,He,"\u2A5E","\\doublebarwedge",!0),_(D,ye,He,"\u229F","\\boxminus",!0),_(D,ye,He,"\u229E","\\boxplus",!0),_(D,ye,He,"\u22C7","\\divideontimes",!0),_(D,ye,He,"\u22C9","\\ltimes",!0),_(D,ye,He,"\u22CA","\\rtimes",!0),_(D,ye,He,"\u22CB","\\leftthreetimes",!0),_(D,ye,He,"\u22CC","\\rightthreetimes",!0),_(D,ye,He,"\u22CF","\\curlywedge",!0),_(D,ye,He,"\u22CE","\\curlyvee",!0),_(D,ye,He,"\u229D","\\circleddash",!0),_(D,ye,He,"\u229B","\\circledast",!0),_(D,ye,He,"\u22C5","\\centerdot"),_(D,ye,He,"\u22BA","\\intercal",!0),_(D,ye,He,"\u22D2","\\doublecap"),_(D,ye,He,"\u22D3","\\doublecup"),_(D,ye,He,"\u22A0","\\boxtimes",!0),_(D,ye,$,"\u21E2","\\dashrightarrow",!0),_(D,ye,$,"\u21E0","\\dashleftarrow",!0),_(D,ye,$,"\u21C7","\\leftleftarrows",!0),_(D,ye,$,"\u21C6","\\leftrightarrows",!0),_(D,ye,$,"\u21DA","\\Lleftarrow",!0),_(D,ye,$,"\u219E","\\twoheadleftarrow",!0),_(D,ye,$,"\u21A2","\\leftarrowtail",!0),_(D,ye,$,"\u21AB","\\looparrowleft",!0),_(D,ye,$,"\u21CB","\\leftrightharpoons",!0),_(D,ye,$,"\u21B6","\\curvearrowleft",!0),_(D,ye,$,"\u21BA","\\circlearrowleft",!0),_(D,ye,$,"\u21B0","\\Lsh",!0),_(D,ye,$,"\u21C8","\\upuparrows",!0),_(D,ye,$,"\u21BF","\\upharpoonleft",!0),_(D,ye,$,"\u21C3","\\downharpoonleft",!0),_(D,ye,$,"\u22B8","\\multimap",!0),_(D,ye,$,"\u21AD","\\leftrightsquigarrow",!0),_(D,ye,$,"\u21C9","\\rightrightarrows",!0),_(D,ye,$,"\u21C4","\\rightleftarrows",!0),_(D,ye,$,"\u21A0","\\twoheadrightarrow",!0),_(D,ye,$,"\u21A3","\\rightarrowtail",!0),_(D,ye,$,"\u21AC","\\looparrowright",!0),_(D,ye,$,"\u21B7","\\curvearrowright",!0),_(D,ye,$,"\u21BB","\\circlearrowright",!0),_(D,ye,$,"\u21B1","\\Rsh",!0),_(D,ye,$,"\u21CA","\\downdownarrows",!0),_(D,ye,$,"\u21BE","\\upharpoonright",!0),_(D,ye,$,"\u21C2","\\downharpoonright",!0),_(D,ye,$,"\u21DD","\\rightsquigarrow",!0),_(D,ye,$,"\u21DD","\\leadsto"),_(D,ye,$,"\u21DB","\\Rrightarrow",!0),_(D,ye,$,"\u21BE","\\restriction"),_(D,ee,xe,"\u2018","`"),_(D,ee,xe,"$","\\$"),_(Ze,ee,xe,"$","\\$"),_(Ze,ee,xe,"$","\\textdollar"),_(D,ee,xe,"%","\\%"),_(Ze,ee,xe,"%","\\%"),_(D,ee,xe,"_","\\_"),_(Ze,ee,xe,"_","\\_"),_(Ze,ee,xe,"_","\\textunderscore"),_(D,ee,xe,"\u2220","\\angle",!0),_(D,ee,xe,"\u221E","\\infty",!0),_(D,ee,xe,"\u2032","\\prime"),_(D,ee,xe,"\u25B3","\\triangle"),_(D,ee,xe,"\u0393","\\Gamma",!0),_(D,ee,xe,"\u0394","\\Delta",!0),_(D,ee,xe,"\u0398","\\Theta",!0),_(D,ee,xe,"\u039B","\\Lambda",!0),_(D,ee,xe,"\u039E","\\Xi",!0),_(D,ee,xe,"\u03A0","\\Pi",!0),_(D,ee,xe,"\u03A3","\\Sigma",!0),_(D,ee,xe,"\u03A5","\\Upsilon",!0),_(D,ee,xe,"\u03A6","\\Phi",!0),_(D,ee,xe,"\u03A8","\\Psi",!0),_(D,ee,xe,"\u03A9","\\Omega",!0),_(D,ee,xe,"A","\u0391"),_(D,ee,xe,"B","\u0392"),_(D,ee,xe,"E","\u0395"),_(D,ee,xe,"Z","\u0396"),_(D,ee,xe,"H","\u0397"),_(D,ee,xe,"I","\u0399"),_(D,ee,xe,"K","\u039A"),_(D,ee,xe,"M","\u039C"),_(D,ee,xe,"N","\u039D"),_(D,ee,xe,"O","\u039F"),_(D,ee,xe,"P","\u03A1"),_(D,ee,xe,"T","\u03A4"),_(D,ee,xe,"X","\u03A7"),_(D,ee,xe,"\xAC","\\neg",!0),_(D,ee,xe,"\xAC","\\lnot"),_(D,ee,xe,"\u22A4","\\top"),_(D,ee,xe,"\u22A5","\\bot"),_(D,ee,xe,"\u2205","\\emptyset"),_(D,ye,xe,"\u2205","\\varnothing"),_(D,ee,he,"\u03B1","\\alpha",!0),_(D,ee,he,"\u03B2","\\beta",!0),_(D,ee,he,"\u03B3","\\gamma",!0),_(D,ee,he,"\u03B4","\\delta",!0),_(D,ee,he,"\u03F5","\\epsilon",!0),_(D,ee,he,"\u03B6","\\zeta",!0),_(D,ee,he,"\u03B7","\\eta",!0),_(D,ee,he,"\u03B8","\\theta",!0),_(D,ee,he,"\u03B9","\\iota",!0),_(D,ee,he,"\u03BA","\\kappa",!0),_(D,ee,he,"\u03BB","\\lambda",!0),_(D,ee,he,"\u03BC","\\mu",!0),_(D,ee,he,"\u03BD","\\nu",!0),_(D,ee,he,"\u03BE","\\xi",!0),_(D,ee,he,"\u03BF","\\omicron",!0),_(D,ee,he,"\u03C0","\\pi",!0),_(D,ee,he,"\u03C1","\\rho",!0),_(D,ee,he,"\u03C3","\\sigma",!0),_(D,ee,he,"\u03C4","\\tau",!0),_(D,ee,he,"\u03C5","\\upsilon",!0),_(D,ee,he,"\u03D5","\\phi",!0),_(D,ee,he,"\u03C7","\\chi",!0),_(D,ee,he,"\u03C8","\\psi",!0),_(D,ee,he,"\u03C9","\\omega",!0),_(D,ee,he,"\u03B5","\\varepsilon",!0),_(D,ee,he,"\u03D1","\\vartheta",!0),_(D,ee,he,"\u03D6","\\varpi",!0),_(D,ee,he,"\u03F1","\\varrho",!0),_(D,ee,he,"\u03C2","\\varsigma",!0),_(D,ee,he,"\u03C6","\\varphi",!0),_(D,ee,He,"\u2217","*"),_(D,ee,He,"+","+"),_(D,ee,He,"\u2212","-"),_(D,ee,He,"\u22C5","\\cdot",!0),_(D,ee,He,"\u2218","\\circ"),_(D,ee,He,"\xF7","\\div",!0),_(D,ee,He,"\xB1","\\pm",!0),_(D,ee,He,"\xD7","\\times",!0),_(D,ee,He,"\u2229","\\cap",!0),_(D,ee,He,"\u222A","\\cup",!0),_(D,ee,He,"\u2216","\\setminus"),_(D,ee,He,"\u2227","\\land"),_(D,ee,He,"\u2228","\\lor"),_(D,ee,He,"\u2227","\\wedge",!0),_(D,ee,He,"\u2228","\\vee",!0),_(D,ee,xe,"\u221A","\\surd"),_(D,ee,je,"(","("),_(D,ee,je,"[","["),_(D,ee,je,"\u27E8","\\langle",!0),_(D,ee,je,"\u2223","\\lvert"),_(D,ee,je,"\u2225","\\lVert"),_(D,ee,it,")",")"),_(D,ee,it,"]","]"),_(D,ee,it,"?","?"),_(D,ee,it,"!","!"),_(D,ee,it,"\u27E9","\\rangle",!0),_(D,ee,it,"\u2223","\\rvert"),_(D,ee,it,"\u2225","\\rVert"),_(D,ee,$,"=","="),_(D,ee,$,"<","<"),_(D,ee,$,">",">"),_(D,ee,$,":",":"),_(D,ee,$,"\u2248","\\approx",!0),_(D,ee,$,"\u2245","\\cong",!0),_(D,ee,$,"\u2265","\\ge"),_(D,ee,$,"\u2265","\\geq",!0),_(D,ee,$,"\u2190","\\gets"),_(D,ee,$,">","\\gt"),_(D,ee,$,"\u2208","\\in",!0),_(D,ee,$,"\uE020","\\@not"),_(D,ee,$,"\u2282","\\subset",!0),_(D,ee,$,"\u2283","\\supset",!0),_(D,ee,$,"\u2286","\\subseteq",!0),_(D,ee,$,"\u2287","\\supseteq",!0),_(D,ye,$,"\u2288","\\nsubseteq",!0),_(D,ye,$,"\u2289","\\nsupseteq",!0),_(D,ee,$,"\u22A8","\\models"),_(D,ee,$,"\u2190","\\leftarrow",!0),_(D,ee,$,"\u2264","\\le"),_(D,ee,$,"\u2264","\\leq",!0),_(D,ee,$,"<","\\lt"),_(D,ee,$,"\u2192","\\rightarrow",!0),_(D,ee,$,"\u2192","\\to"),_(D,ye,$,"\u2271","\\ngeq",!0),_(D,ye,$,"\u2270","\\nleq",!0),_(D,ee,ut,"\xA0","\\ "),_(D,ee,ut,"\xA0","~"),_(D,ee,ut,"\xA0","\\space"),_(D,ee,ut,"\xA0","\\nobreakspace"),_(Ze,ee,ut,"\xA0","\\ "),_(Ze,ee,ut,"\xA0","~"),_(Ze,ee,ut,"\xA0","\\space"),_(Ze,ee,ut,"\xA0","\\nobreakspace"),_(D,ee,ut,null,"\\nobreak"),_(D,ee,ut,null,"\\allowbreak"),_(D,ee,Ue,",",","),_(D,ee,Ue,";",";"),_(D,ye,He,"\u22BC","\\barwedge",!0),_(D,ye,He,"\u22BB","\\veebar",!0),_(D,ee,He,"\u2299","\\odot",!0),_(D,ee,He,"\u2295","\\oplus",!0),_(D,ee,He,"\u2297","\\otimes",!0),_(D,ee,xe,"\u2202","\\partial",!0),_(D,ee,He,"\u2298","\\oslash",!0),_(D,ye,He,"\u229A","\\circledcirc",!0),_(D,ye,He,"\u22A1","\\boxdot",!0),_(D,ee,He,"\u25B3","\\bigtriangleup"),_(D,ee,He,"\u25BD","\\bigtriangledown"),_(D,ee,He,"\u2020","\\dagger"),_(D,ee,He,"\u22C4","\\diamond"),_(D,ee,He,"\u22C6","\\star"),_(D,ee,He,"\u25C3","\\triangleleft"),_(D,ee,He,"\u25B9","\\triangleright"),_(D,ee,je,"{","\\{"),_(Ze,ee,xe,"{","\\{"),_(Ze,ee,xe,"{","\\textbraceleft"),_(D,ee,it,"}","\\}"),_(Ze,ee,xe,"}","\\}"),_(Ze,ee,xe,"}","\\textbraceright"),_(D,ee,je,"{","\\lbrace"),_(D,ee,it,"}","\\rbrace"),_(D,ee,je,"[","\\lbrack"),_(Ze,ee,xe,"[","\\lbrack"),_(D,ee,it,"]","\\rbrack"),_(Ze,ee,xe,"]","\\rbrack"),_(D,ee,je,"(","\\lparen"),_(D,ee,it,")","\\rparen"),_(Ze,ee,xe,"<","\\textless"),_(Ze,ee,xe,">","\\textgreater"),_(D,ee,je,"\u230A","\\lfloor",!0),_(D,ee,it,"\u230B","\\rfloor",!0),_(D,ee,je,"\u2308","\\lceil",!0),_(D,ee,it,"\u2309","\\rceil",!0),_(D,ee,xe,"\\","\\backslash"),_(D,ee,xe,"\u2223","|"),_(D,ee,xe,"\u2223","\\vert"),_(Ze,ee,xe,"|","\\textbar"),_(D,ee,xe,"\u2225","\\|"),_(D,ee,xe,"\u2225","\\Vert"),_(Ze,ee,xe,"\u2225","\\textbardbl"),_(Ze,ee,xe,"~","\\textasciitilde"),_(Ze,ee,xe,"\\","\\textbackslash"),_(Ze,ee,xe,"^","\\textasciicircum"),_(D,ee,$,"\u2191","\\uparrow",!0),_(D,ee,$,"\u21D1","\\Uparrow",!0),_(D,ee,$,"\u2193","\\downarrow",!0),_(D,ee,$,"\u21D3","\\Downarrow",!0),_(D,ee,$,"\u2195","\\updownarrow",!0),_(D,ee,$,"\u21D5","\\Updownarrow",!0),_(D,ee,be,"\u2210","\\coprod"),_(D,ee,be,"\u22C1","\\bigvee"),_(D,ee,be,"\u22C0","\\bigwedge"),_(D,ee,be,"\u2A04","\\biguplus"),_(D,ee,be,"\u22C2","\\bigcap"),_(D,ee,be,"\u22C3","\\bigcup"),_(D,ee,be,"\u222B","\\int"),_(D,ee,be,"\u222B","\\intop"),_(D,ee,be,"\u222C","\\iint"),_(D,ee,be,"\u222D","\\iiint"),_(D,ee,be,"\u220F","\\prod"),_(D,ee,be,"\u2211","\\sum"),_(D,ee,be,"\u2A02","\\bigotimes"),_(D,ee,be,"\u2A01","\\bigoplus"),_(D,ee,be,"\u2A00","\\bigodot"),_(D,ee,be,"\u222E","\\oint"),_(D,ee,be,"\u222F","\\oiint"),_(D,ee,be,"\u2230","\\oiiint"),_(D,ee,be,"\u2A06","\\bigsqcup"),_(D,ee,be,"\u222B","\\smallint"),_(Ze,ee,ct,"\u2026","\\textellipsis"),_(D,ee,ct,"\u2026","\\mathellipsis"),_(Ze,ee,ct,"\u2026","\\ldots",!0),_(D,ee,ct,"\u2026","\\ldots",!0),_(D,ee,ct,"\u22EF","\\@cdots",!0),_(D,ee,ct,"\u22F1","\\ddots",!0),_(D,ee,xe,"\u22EE","\\varvdots"),_(D,ee,Ot,"\u02CA","\\acute"),_(D,ee,Ot,"\u02CB","\\grave"),_(D,ee,Ot,"\xA8","\\ddot"),_(D,ee,Ot,"~","\\tilde"),_(D,ee,Ot,"\u02C9","\\bar"),_(D,ee,Ot,"\u02D8","\\breve"),_(D,ee,Ot,"\u02C7","\\check"),_(D,ee,Ot,"^","\\hat"),_(D,ee,Ot,"\u20D7","\\vec"),_(D,ee,Ot,"\u02D9","\\dot"),_(D,ee,Ot,"\u02DA","\\mathring"),_(D,ee,he,"\u0131","\\imath",!0),_(D,ee,he,"\u0237","\\jmath",!0),_(Ze,ee,xe,"\u0131","\\i",!0),_(Ze,ee,xe,"\u0237","\\j",!0),_(Ze,ee,xe,"\xDF","\\ss",!0),_(Ze,ee,xe,"\xE6","\\ae",!0),_(Ze,ee,xe,"\xE6","\\ae",!0),_(Ze,ee,xe,"\u0153","\\oe",!0),_(Ze,ee,xe,"\xF8","\\o",!0),_(Ze,ee,xe,"\xC6","\\AE",!0),_(Ze,ee,xe,"\u0152","\\OE",!0),_(Ze,ee,xe,"\xD8","\\O",!0),_(Ze,ee,Ot,"\u02CA","\\'"),_(Ze,ee,Ot,"\u02CB","\\`"),_(Ze,ee,Ot,"\u02C6","\\^"),_(Ze,ee,Ot,"\u02DC","\\~"),_(Ze,ee,Ot,"\u02C9","\\="),_(Ze,ee,Ot,"\u02D8","\\u"),_(Ze,ee,Ot,"\u02D9","\\."),_(Ze,ee,Ot,"\u02DA","\\r"),_(Ze,ee,Ot,"\u02C7","\\v"),_(Ze,ee,Ot,"\xA8",'\\"'),_(Ze,ee,Ot,"\u02DD","\\H"),_(Ze,ee,Ot,"\u25EF","\\textcircled");var At={"--":!0,"---":!0,"``":!0,"''":!0};_(Ze,ee,xe,"\u2013","--"),_(Ze,ee,xe,"\u2013","\\textendash"),_(Ze,ee,xe,"\u2014","---"),_(Ze,ee,xe,"\u2014","\\textemdash"),_(Ze,ee,xe,"\u2018","`"),_(Ze,ee,xe,"\u2018","\\textquoteleft"),_(Ze,ee,xe,"\u2019","'"),_(Ze,ee,xe,"\u2019","\\textquoteright"),_(Ze,ee,xe,"\u201C","``"),_(Ze,ee,xe,"\u201C","\\textquotedblleft"),_(Ze,ee,xe,"\u201D","''"),_(Ze,ee,xe,"\u201D","\\textquotedblright"),_(D,ee,xe,"\xB0","\\degree",!0),_(Ze,ee,xe,"\xB0","\\degree"),_(Ze,ee,xe,"\xB0","\\textdegree",!0),_(D,ee,he,"\xA3","\\pounds"),_(D,ee,he,"\xA3","\\mathsterling",!0),_(Ze,ee,he,"\xA3","\\pounds"),_(Ze,ee,he,"\xA3","\\textsterling",!0),_(D,ye,xe,"\u2720","\\maltese"),_(Ze,ye,xe,"\u2720","\\maltese"),_(Ze,ee,ut,"\xA0","\\ "),_(Ze,ee,ut,"\xA0"," "),_(Ze,ee,ut,"\xA0","~");for(var zt='0123456789/@."',qt=0;qt<zt.length;qt++){var cn=zt.charAt(qt);_(D,ee,xe,cn,cn)}for(var gn='0123456789!@*()-=+[]<>|";:?/.,',En=0;En<gn.length;En++){var Fn=gn.charAt(En);_(Ze,ee,xe,Fn,Fn)}for(var Hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",An=0;An<Hn.length;An++){var qn=Hn.charAt(An);_(D,ee,he,qn,qn),_(Ze,ee,xe,qn,qn)}_(D,ye,xe,"C","\u2102"),_(Ze,ye,xe,"C","\u2102"),_(D,ye,xe,"H","\u210D"),_(Ze,ye,xe,"H","\u210D"),_(D,ye,xe,"N","\u2115"),_(Ze,ye,xe,"N","\u2115"),_(D,ye,xe,"P","\u2119"),_(Ze,ye,xe,"P","\u2119"),_(D,ye,xe,"Q","\u211A"),_(Ze,ye,xe,"Q","\u211A"),_(D,ye,xe,"R","\u211D"),_(Ze,ye,xe,"R","\u211D"),_(D,ye,xe,"Z","\u2124"),_(Ze,ye,xe,"Z","\u2124"),_(D,ee,he,"h","\u210E"),_(Ze,ee,he,"h","\u210E");for(var vn="",Gt=0;Gt<Hn.length;Gt++){var Xt=Hn.charAt(Gt);vn=String.fromCharCode(55349,56320+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56372+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56424+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56580+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56736+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56788+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56840+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56944+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),Gt<26&&(vn=String.fromCharCode(55349,56632+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn),vn=String.fromCharCode(55349,56476+Gt),_(D,ee,he,Xt,vn),_(Ze,ee,xe,Xt,vn))}vn="\u{1D55C}",_(D,ee,he,"k",vn),_(Ze,ee,xe,"k",vn);for(var Dn=0;Dn<10;Dn++){var Cn=Dn.toString();vn=String.fromCharCode(55349,57294+Dn),_(D,ee,he,Cn,vn),_(Ze,ee,xe,Cn,vn),vn=String.fromCharCode(55349,57314+Dn),_(D,ee,he,Cn,vn),_(Ze,ee,xe,Cn,vn),vn=String.fromCharCode(55349,57324+Dn),_(D,ee,he,Cn,vn),_(Ze,ee,xe,Cn,vn),vn=String.fromCharCode(55349,57334+Dn),_(D,ee,he,Cn,vn),_(Ze,ee,xe,Cn,vn)}for(var yt="\xC7\xD0\xDE\xE7\xFE",Et=0;Et<yt.length;Et++){var Be=yt.charAt(Et);_(D,ee,he,Be,Be),_(Ze,ee,xe,Be,Be)}_(Ze,ee,xe,"\xF0","\xF0"),_(Ze,ee,xe,"\u2013","\u2013"),_(Ze,ee,xe,"\u2014","\u2014"),_(Ze,ee,xe,"\u2018","\u2018"),_(Ze,ee,xe,"\u2019","\u2019"),_(Ze,ee,xe,"\u201C","\u201C"),_(Ze,ee,xe,"\u201D","\u201D");var lt=[["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"]],vt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xt=function(u,f){var h=u.charCodeAt(0),b=u.charCodeAt(1),M=(h-55296)*1024+(b-56320)+65536,Y=f==="math"?0:1;if(119808<=M&&M<120484){var Se=Math.floor((M-119808)/26);return[lt[Se][2],lt[Se][Y]]}else if(120782<=M&&M<=120831){var Me=Math.floor((M-120782)/10);return[vt[Me][2],vt[Me][Y]]}else{if(M===120485||M===120486)return[lt[0][2],lt[0][Y]];if(120486<M&&M<120782)return["",""];throw new g("Unsupported character: "+u)}},Dt=[[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]],Jt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],pn=function(u,f){return f.size<2?u:Dt[u-1][f.size-1]},_n=function(){function B(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||B.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=Jt[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}var u=B.prototype;return u.extend=function(h){var b={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 M in h)h.hasOwnProperty(M)&&(b[M]=h[M]);return new B(b)},u.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:pn(this.textSize,h)})},u.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},u.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:Jt[h-1]})},u.havingBaseStyle=function(h){h=h||this.style.text();var b=pn(B.BASESIZE,h);return this.size===b&&this.textSize===B.BASESIZE&&this.style===h?this:this.extend({style:h,size:b})},u.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})},u.withColor=function(h){return this.extend({color:h})},u.withPhantom=function(){return this.extend({phantom:!0})},u.withFont=function(h){return this.extend({font:h})},u.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},u.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},u.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},u.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},u.baseSizingClasses=function(){return this.size!==B.BASESIZE?["sizing","reset-size"+this.size,"size"+B.BASESIZE]:[]},u.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ge(this.size)),this._fontMetrics},u.getColor=function(){return this.phantom?"transparent":this.color},B}();_n.BASESIZE=6;var Vt=_n,yn={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},Nn={ex:!0,em:!0,mu:!0},Sn=function(u){return typeof u!="string"&&(u=u.unit),u in yn||u in Nn||u==="ex"},bt=function(u,f){var h;if(u.unit in yn)h=yn[u.unit]/f.fontMetrics().ptPerEm/f.sizeMultiplier;else if(u.unit==="mu")h=f.fontMetrics().cssEmPerMu;else{var b;if(f.style.isTight()?b=f.havingStyle(f.style.text()):b=f,u.unit==="ex")h=b.fontMetrics().xHeight;else if(u.unit==="em")h=b.fontMetrics().quad;else throw new g("Invalid unit: '"+u.unit+"'");b!==f&&(h*=b.sizeMultiplier/f.sizeMultiplier)}return Math.min(u.number*h,f.maxSize)},Rt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Wt=function(u,f,h){return Je[h][u]&&Je[h][u].replace&&(u=Je[h][u].replace),{value:u,metrics:ft(u,f,h)}},Bt=function(u,f,h,b,M){var Y=Wt(u,f,h),Se=Y.metrics;u=Y.value;var Me;if(Se){var et=Se.italic;(h==="text"||b&&b.font==="mathit")&&(et=0),Me=new me(u,Se.height,Se.depth,et,Se.skew,Se.width,M)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+u+"' in style '"+f+"' and mode '"+h+"'")),Me=new me(u,0,0,0,0,0,M);if(b){Me.maxFontSize=b.sizeMultiplier,b.style.isTight()&&Me.classes.push("mtight");var wt=b.getColor();wt&&(Me.style.color=wt)}return Me},jt=function(u,f,h,b){return b===void 0&&(b=[]),h.font==="boldsymbol"&&Wt(u,"Main-Bold",f).metrics?Bt(u,"Main-Bold",f,h,b.concat(["mathbf"])):u==="\\"||Je[f][u].font==="main"?Bt(u,"Main-Regular",f,h,b):Bt(u,"AMS-Regular",f,h,b.concat(["amsrm"]))},Qt=function(u,f,h,b){return/[0-9]/.test(u.charAt(0))||j.contains(Rt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},an=function(u,f,h,b){return j.contains(Rt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(u.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},on=function(u,f,h,b){return Wt(u,"Math-BoldItalic",f).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Rn=function(u,f,h){var b=u.mode,M=u.text,Y=["mord"],Se=b==="math"||b==="text"&&f.font,Me=Se?f.font:f.fontFamily;if(M.charCodeAt(0)===55349){var et=xt(M,b),wt=et[0],Mt=et[1];return Bt(M,wt,b,f,Y.concat(Mt))}else if(Me){var Ut,nn;if(Me==="boldsymbol"||Me==="mathnormal"){var dn=Me==="boldsymbol"?on(M,b,f,Y):an(M,b,f,Y);Ut=dn.fontName,nn=[dn.fontClass]}else j.contains(Rt,M)?(Ut="Main-Italic",nn=["mathit"]):Se?(Ut=ir[Me].fontName,nn=[Me]):(Ut=nr(Me,f.fontWeight,f.fontShape),nn=[Me,f.fontWeight,f.fontShape]);if(Wt(M,Ut,b).metrics)return Bt(M,Ut,b,f,Y.concat(nn));if(At.hasOwnProperty(M)&&Ut.substr(0,10)==="Typewriter"){for(var fn=[],Tn=0;Tn<M.length;Tn++)fn.push(Bt(M[Tn],Ut,b,f,Y.concat(nn)));return Wn(fn)}}if(h==="mathord"){var xn=Qt(M,b,f,Y);return Bt(M,xn.fontName,b,f,Y.concat([xn.fontClass]))}else if(h==="textord"){var wn=Je[b][M]&&Je[b][M].font;if(wn==="ams"){var kn=nr("amsrm",f.fontWeight,f.fontShape);return Bt(M,kn,b,f,Y.concat("amsrm",f.fontWeight,f.fontShape))}else if(wn==="main"||!wn){var Jn=nr("textrm",f.fontWeight,f.fontShape);return Bt(M,Jn,b,f,Y.concat(f.fontWeight,f.fontShape))}else{var tr=nr(wn,f.fontWeight,f.fontShape);return Bt(M,tr,b,f,Y.concat(tr,f.fontWeight,f.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},$n=function(u,f){if(Qe(u.classes)!==Qe(f.classes)||u.skew!==f.skew||u.maxFontSize!==f.maxFontSize)return!1;for(var h in u.style)if(u.style.hasOwnProperty(h)&&u.style[h]!==f.style[h])return!1;for(var b in f.style)if(f.style.hasOwnProperty(b)&&u.style[b]!==f.style[b])return!1;return!0},dr=function(u){for(var f=0;f<u.length-1;f++){var h=u[f],b=u[f+1];h instanceof me&&b instanceof me&&$n(h,b)&&(h.text+=b.text,h.height=Math.max(h.height,b.height),h.depth=Math.max(h.depth,b.depth),h.italic=b.italic,u.splice(f+1,1),f--)}return u},jn=function(u){for(var f=0,h=0,b=0,M=0;M<u.children.length;M++){var Y=u.children[M];Y.height>f&&(f=Y.height),Y.depth>h&&(h=Y.depth),Y.maxFontSize>b&&(b=Y.maxFontSize)}u.height=f,u.depth=h,u.maxFontSize=b},zn=function(u,f,h,b){var M=new Fe(u,f,h,b);return jn(M),M},er=function(u,f,h,b){return new Fe(u,f,h,b)},Xn=function(u,f,h){var b=zn([u],[],f);return b.height=Math.max(h||f.fontMetrics().defaultRuleThickness,f.minRuleThickness),b.style.borderBottomWidth=b.height+"em",b.maxFontSize=1,b},sr=function(u,f,h,b){var M=new Re(u,f,h,b);return jn(M),M},Wn=function(u){var f=new Xe(u);return jn(f),f},Qn=function(u,f){return u instanceof Xe?zn([],[u],f):u},or=function(u){if(u.positionType==="individualShift"){for(var f=u.children,h=[f[0]],b=-f[0].shift-f[0].elem.depth,M=b,Y=1;Y<f.length;Y++){var Se=-f[Y].shift-M-f[Y].elem.depth,Me=Se-(f[Y-1].elem.height+f[Y-1].elem.depth);M=M+Se,h.push({type:"kern",size:Me}),h.push(f[Y])}return{children:h,depth:b}}var et;if(u.positionType==="top"){for(var wt=u.positionData,Mt=0;Mt<u.children.length;Mt++){var Ut=u.children[Mt];wt-=Ut.type==="kern"?Ut.size:Ut.elem.height+Ut.elem.depth}et=wt}else if(u.positionType==="bottom")et=-u.positionData;else{var nn=u.children[0];if(nn.type!=="elem")throw new Error('First child must have type "elem".');if(u.positionType==="shift")et=-nn.elem.depth-u.positionData;else if(u.positionType==="firstBaseline")et=-nn.elem.depth;else throw new Error("Invalid positionType "+u.positionType+".")}return{children:u.children,depth:et}},cr=function(u,f){for(var h=or(u),b=h.children,M=h.depth,Y=0,Se=0;Se<b.length;Se++){var Me=b[Se];if(Me.type==="elem"){var et=Me.elem;Y=Math.max(Y,et.maxFontSize,et.height)}}Y+=2;var wt=zn(["pstrut"],[]);wt.style.height=Y+"em";for(var Mt=[],Ut=M,nn=M,dn=M,fn=0;fn<b.length;fn++){var Tn=b[fn];if(Tn.type==="kern")dn+=Tn.size;else{var xn=Tn.elem,wn=Tn.wrapperClasses||[],kn=Tn.wrapperStyle||{},Jn=zn(wn,[wt,xn],void 0,kn);Jn.style.top=-Y-dn-xn.depth+"em",Tn.marginLeft&&(Jn.style.marginLeft=Tn.marginLeft),Tn.marginRight&&(Jn.style.marginRight=Tn.marginRight),Mt.push(Jn),dn+=xn.height+xn.depth}Ut=Math.min(Ut,dn),nn=Math.max(nn,dn)}var tr=zn(["vlist"],Mt);tr.style.height=nn+"em";var Un;if(Ut<0){var Er=zn([],[]),Ar=zn(["vlist"],[Er]);Ar.style.height=-Ut+"em";var gi=zn(["vlist-s"],[new me("\u200B")]);Un=[zn(["vlist-r"],[tr,gi]),zn(["vlist-r"],[Ar])]}else Un=[zn(["vlist-r"],[tr])];var ni=zn(["vlist-t"],Un);return Un.length===2&&ni.classes.push("vlist-t2"),ni.height=nn,ni.depth=-Ut,ni},rr=function(u,f){var h=zn(["mspace"],[],f),b=bt(u,f);return h.style.marginRight=b+"em",h},nr=function(u,f,h){var b="";switch(u){case"amsrm":b="AMS";break;case"textrm":b="Main";break;case"textsf":b="SansSerif";break;case"texttt":b="Typewriter";break;default:b=u}var M;return f==="textbf"&&h==="textit"?M="BoldItalic":f==="textbf"?M="Bold":f==="textit"?M="Italic":M="Regular",b+"-"+M},ir={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"}},Vn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$r=function(u,f){var h=Vn[u],b=h[0],M=h[1],Y=h[2],Se=new ge(b),Me=new Ee([Se],{width:M+"em",height:Y+"em",style:"width:"+M+"em",viewBox:"0 0 "+1e3*M+" "+1e3*Y,preserveAspectRatio:"xMinYMin"}),et=er(["overlay"],[Me],f);return et.height=Y,et.style.height=Y+"em",et.style.width=M+"em",et},Kt={fontMap:ir,makeSymbol:Bt,mathsym:jt,makeSpan:zn,makeSvgSpan:er,makeLineSpan:Xn,makeAnchor:sr,makeFragment:Wn,wrapFragment:Qn,makeVList:cr,makeOrd:Rn,makeGlue:rr,staticSvg:$r,svgData:Vn,tryCombineChars:dr};function ar(B,u){var f=hr(B,u);if(!f)throw new Error("Expected node of type "+u+", but got "+(B?"node of type "+B.type:String(B)));return f}function hr(B,u){return B&&B.type===u?B:null}function Yr(B,u){var f=zr(B,u);if(!f)throw new Error('Expected node of type "atom" and family "'+u+'", but got '+(B?B.type==="atom"?"atom of family "+B.family:"node of type "+B.type:String(B)));return f}function zr(B,u){return B&&B.type==="atom"&&B.family===u?B:null}function li(B){var u=Qr(B);if(!u)throw new Error("Expected node of symbol group type, but got "+(B?"node of type "+B.type:String(B)));return u}function Qr(B){return B&&(B.type==="atom"||gt.hasOwnProperty(B.type))?B:null}var Zn={number:3,unit:"mu"},Pn={number:4,unit:"mu"},sn={number:5,unit:"mu"},un={mord:{mop:Zn,mbin:Pn,mrel:sn,minner:Zn},mop:{mord:Zn,mop:Zn,mrel:sn,minner:Zn},mbin:{mord:Pn,mop:Pn,mopen:Pn,minner:Pn},mrel:{mord:sn,mop:sn,mopen:sn,minner:sn},mopen:{},mclose:{mop:Zn,mbin:Pn,mrel:sn,minner:Zn},mpunct:{mord:Zn,mop:Zn,mrel:sn,mopen:Zn,mclose:Zn,mpunct:Zn,minner:Zn},minner:{mord:Zn,mop:Zn,mbin:Pn,mrel:sn,mopen:Zn,mpunct:Zn,minner:Zn}},Bn={mord:{mop:Zn},mop:{mord:Zn,mop:Zn},mbin:{},mrel:{},mopen:{},mclose:{mop:Zn},mpunct:{},minner:{mop:Zn}},Yn={},lr={},Ir={};function On(B){for(var u=B.type,f=B.names,h=B.props,b=B.handler,M=B.htmlBuilder,Y=B.mathmlBuilder,Se={type:u,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:b},Me=0;Me<f.length;++Me)Yn[f[Me]]=Se;u&&(M&&(lr[u]=M),Y&&(Ir[u]=Y))}function mr(B){var u=B.type,f=B.htmlBuilder,h=B.mathmlBuilder;On({type:u,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:f,mathmlBuilder:h})}var Dr=function(u){var f=hr(u,"ordgroup");return f?f.body:[u]},Jr=Kt.makeSpan,mi=["leftmost","mbin","mopen","mrel","mop","mpunct"],Li=["rightmost","mrel","mclose","mpunct"],Gr={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT},Ri={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},qr=function(u,f,h,b){b===void 0&&(b=[null,null]);for(var M=[],Y=0;Y<u.length;Y++){var Se=Lr(u[Y],f);if(Se instanceof Xe){var Me=Se.children;M.push.apply(M,Me)}else M.push(Se)}if(!h)return M;var et=f;if(u.length===1){var wt=hr(u[0],"sizing")||hr(u[0],"styling");wt&&(wt.type==="sizing"?et=f.havingSize(wt.size):wt.type==="styling"&&(et=f.havingStyle(Gr[wt.style])))}var Mt=Jr([b[0]||"leftmost"],[],f),Ut=Jr([b[1]||"rightmost"],[],f);return bi(M,function(nn,dn){var fn=dn.classes[0],Tn=nn.classes[0];fn==="mbin"&&j.contains(Li,Tn)?dn.classes[0]="mord":Tn==="mbin"&&j.contains(mi,fn)&&(nn.classes[0]="mord")},{node:Mt},Ut),bi(M,function(nn,dn){var fn=ii(dn),Tn=ii(nn),xn=fn&&Tn?nn.hasClass("mtight")?Bn[fn][Tn]:un[fn][Tn]:null;if(xn)return Kt.makeGlue(xn,et)},{node:Mt},Ut),M},bi=function B(u,f,h,b){b&&u.push(b);for(var M=0;M<u.length;M++){var Y=u[M],Se=ri(Y);if(Se){B(Se.children,f,h);continue}if(Y.classes[0]!=="mspace"){var Me=f(Y,h.node);Me&&(h.insertAfter?h.insertAfter(Me):(u.unshift(Me),M++)),h.node=Y,h.insertAfter=function(et){return function(wt){u.splice(et+1,0,wt),M++}}(M)}}b&&u.pop()},ri=function(u){return u instanceof Xe||u instanceof Re?u:null},di=function B(u,f){var h=ri(u);if(h){var b=h.children;if(b.length){if(f==="right")return B(b[b.length-1],"right");if(f==="left")return B(b[0],"left")}}return u},ii=function(u,f){return u?(f&&(u=di(u,f)),Ri[u.classes[0]]||null):null},Oi=function(u,f){var h=["nulldelimiter"].concat(u.baseSizingClasses());return Jr(f.concat(h))},Lr=function(u,f,h){if(!u)return Jr();if(lr[u.type]){var b=lr[u.type](u,f);if(h&&f.size!==h.size){b=Jr(f.sizingClasses(h),[b],f);var M=f.sizeMultiplier/h.sizeMultiplier;b.height*=M,b.depth*=M}return b}else throw new g("Got group of unknown type: '"+u.type+"'")};function Pi(B,u){var f=Jr(["base"],B,u),h=Jr(["strut"]);return h.style.height=f.height+f.depth+"em",h.style.verticalAlign=-f.depth+"em",f.children.unshift(h),f}function Mi(B,u){var f=null;B.length===1&&B[0].type==="tag"&&(f=B[0].tag,B=B[0].body);for(var h=qr(B,u,!0),b=[],M=[],Y=0;Y<h.length;Y++)if(M.push(h[Y]),h[Y].hasClass("mbin")||h[Y].hasClass("mrel")||h[Y].hasClass("allowbreak")){for(var Se=!1;Y<h.length-1&&h[Y+1].hasClass("mspace")&&!h[Y+1].hasClass("newline");)Y++,M.push(h[Y]),h[Y].hasClass("nobreak")&&(Se=!0);Se||(b.push(Pi(M,u)),M=[])}else h[Y].hasClass("newline")&&(M.pop(),M.length>0&&(b.push(Pi(M,u)),M=[]),b.push(h[Y]));M.length>0&&b.push(Pi(M,u));var Me;f&&(Me=Pi(qr(f,u,!0)),Me.classes=["tag"],b.push(Me));var et=Jr(["katex-html"],b);if(et.setAttribute("aria-hidden","true"),Me){var wt=Me.children[0];wt.style.height=et.height+et.depth+"em",wt.style.verticalAlign=-et.depth+"em"}return et}function ki(B){return new Xe(B)}var yr=function(){function B(f,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=f,this.attributes={},this.children=h||[]}var u=B.prototype;return u.setAttribute=function(h,b){this.attributes[h]=b},u.getAttribute=function(h){return this.attributes[h]},u.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&h.setAttribute(b,this.attributes[b]);for(var M=0;M<this.children.length;M++)h.appendChild(this.children[M].toNode());return h},u.toMarkup=function(){var h="<"+this.type;for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+'="',h+=j.escape(this.attributes[b]),h+='"');h+=">";for(var M=0;M<this.children.length;M++)h+=this.children[M].toMarkup();return h+="</"+this.type+">",h},u.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},B}(),Gn=function(){function B(f){this.text=void 0,this.text=f}var u=B.prototype;return u.toNode=function(){return document.createTextNode(this.text)},u.toMarkup=function(){return j.escape(this.toText())},u.toText=function(){return this.text},B}(),pi=function(){function B(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 u=B.prototype;return u.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},u.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},u.toText=function(){return this.character?this.character:" "},B}(),Ln={MathNode:yr,TextNode:Gn,SpaceNode:pi,newDocumentFragment:ki},Fi=function(u,f,h){return Je[f][u]&&Je[f][u].replace&&u.charCodeAt(0)!==55349&&!(At.hasOwnProperty(u)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(u=Je[f][u].replace),new Ln.TextNode(u)},Os=function(u){return u.length===1?u[0]:new Ln.MathNode("mrow",u)},vs=function(u,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 b=u.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 M=u.text;if(j.contains(["\\imath","\\jmath"],M))return null;Je[b][M]&&Je[b][M].replace&&(M=Je[b][M].replace);var Y=Kt.fontMap[h].fontName;return ft(M,Y,b)?Kt.fontMap[h].variant:null},ss=function(u,f,h){if(u.length===1){var b=Pr(u[0],f);return h&&b instanceof yr&&b.type==="mo"&&(b.setAttribute("lspace","0em"),b.setAttribute("rspace","0em")),[b]}for(var M=[],Y,Se=0;Se<u.length;Se++){var Me=Pr(u[Se],f);if(Me instanceof yr&&Y instanceof yr){if(Me.type==="mtext"&&Y.type==="mtext"&&Me.getAttribute("mathvariant")===Y.getAttribute("mathvariant")){var et;(et=Y.children).push.apply(et,Me.children);continue}else if(Me.type==="mn"&&Y.type==="mn"){var wt;(wt=Y.children).push.apply(wt,Me.children);continue}else if(Me.type==="mi"&&Me.children.length===1&&Y.type==="mn"){var Mt=Me.children[0];if(Mt instanceof Gn&&Mt.text==="."){var Ut;(Ut=Y.children).push.apply(Ut,Me.children);continue}}else if(Y.type==="mi"&&Y.children.length===1){var nn=Y.children[0];if(nn instanceof Gn&&nn.text==="\u0338"&&(Me.type==="mo"||Me.type==="mi"||Me.type==="mn")){var dn=Me.children[0];dn instanceof Gn&&dn.text.length>0&&(dn.text=dn.text.slice(0,1)+"\u0338"+dn.text.slice(1),M.pop())}}}M.push(Me),Y=Me}return M},ls=function(u,f,h){return Os(ss(u,f,h))},Pr=function(u,f){if(!u)return new Ln.MathNode("mrow");if(Ir[u.type]){var h=Ir[u.type](u,f);return h}else throw new g("Got group of unknown type: '"+u.type+"'")};function Gi(B,u,f,h){var b=ss(B,f),M;b.length===1&&b[0]instanceof yr&&j.contains(["mrow","mtable"],b[0].type)?M=b[0]:M=new Ln.MathNode("mrow",b);var Y=new Ln.MathNode("annotation",[new Ln.TextNode(u)]);Y.setAttribute("encoding","application/x-tex");var Se=new Ln.MathNode("semantics",[M,Y]),Me=new Ln.MathNode("math",[Se]);Me.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var et=h?"katex":"katex-mathml";return Kt.makeSpan([et],[Me])}var ds=function(u){return new Vt({style:u.displayMode?x.DISPLAY:x.TEXT,maxSize:u.maxSize,minRuleThickness:u.minRuleThickness})},_s=function(u,f){if(f.displayMode){var h=["katex-display"];f.leqno&&h.push("leqno"),f.fleqn&&h.push("fleqn"),u=Kt.makeSpan(h,[u])}return u},ci=function(u,f,h){var b=ds(h),M;if(h.output==="mathml")return Gi(u,f,b,!0);if(h.output==="html"){var Y=Mi(u,b);M=Kt.makeSpan(["katex"],[Y])}else{var Se=Gi(u,f,b,!1),Me=Mi(u,b);M=Kt.makeSpan(["katex"],[Se,Me])}return _s(M,h)},zi=function(u,f,h){var b=ds(h),M=Mi(u,b),Y=Kt.makeSpan(["katex"],[M]);return _s(Y,h)},ns=ci,xr={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"},Ur=function(u){var f=new Ln.MathNode("mo",[new Ln.TextNode(xr[u.substr(1)])]);return f.setAttribute("stretchy","true"),f},_r={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]},Or=function(u){return u.type==="ordgroup"?u.body.length:1},ui=function(u,f){function h(){var Me=4e5,et=u.label.substr(1);if(j.contains(["widehat","widecheck","widetilde","utilde"],et)){var wt=u,Mt=Or(wt.base),Ut,nn,dn;if(Mt>5)et==="widehat"||et==="widecheck"?(Ut=420,Me=2364,dn=.42,nn=et+"4"):(Ut=312,Me=2340,dn=.34,nn="tilde4");else{var fn=[1,1,2,2,3,3][Mt];et==="widehat"||et==="widecheck"?(Me=[0,1062,2364,2364,2364][fn],Ut=[0,239,300,360,420][fn],dn=[0,.24,.3,.3,.36,.42][fn],nn=et+fn):(Me=[0,600,1033,2339,2340][fn],Ut=[0,260,286,306,312][fn],dn=[0,.26,.286,.3,.306,.34][fn],nn="tilde"+fn)}var Tn=new ge(nn),xn=new Ee([Tn],{width:"100%",height:dn+"em",viewBox:"0 0 "+Me+" "+Ut,preserveAspectRatio:"none"});return{span:Kt.makeSvgSpan([],[xn],f),minWidth:0,height:dn}}else{var wn=[],kn=_r[et],Jn=kn[0],tr=kn[1],Un=kn[2],Er=Un/1e3,Ar=Jn.length,gi,ni;if(Ar===1){var kt=kn[3];gi=["hide-tail"],ni=[kt]}else if(Ar===2)gi=["halfarrow-left","halfarrow-right"],ni=["xMinYMin","xMaxYMin"];else if(Ar===3)gi=["brace-left","brace-center","brace-right"],ni=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ar+" children.");for(var vi=0;vi<Ar;vi++){var ts=new ge(Jn[vi]),Xr=new Ee([ts],{width:"400em",height:Er+"em",viewBox:"0 0 "+Me+" "+Un,preserveAspectRatio:ni[vi]+" slice"}),Fr=Kt.makeSvgSpan([gi[vi]],[Xr],f);if(Ar===1)return{span:Fr,minWidth:tr,height:Er};Fr.style.height=Er+"em",wn.push(Fr)}return{span:Kt.makeSpan(["stretchy"],wn,f),minWidth:tr,height:Er}}}var b=h(),M=b.span,Y=b.minWidth,Se=b.height;return M.height=Se,M.style.height=Se+"em",Y>0&&(M.style.minWidth=Y+"em"),M},_i=function(u,f,h,b){var M,Y=u.height+u.depth+2*h;if(/fbox|color/.test(f)){if(M=Kt.makeSpan(["stretchy",f],[],b),f==="fbox"){var Se=b.color&&b.getColor();Se&&(M.style.borderColor=Se)}}else{var Me=[];/^[bx]cancel$/.test(f)&&Me.push(new we({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(f)&&Me.push(new we({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var et=new Ee(Me,{width:"100%",height:Y+"em"});M=Kt.makeSvgSpan([],[et],b)}return M.height=Y,M.style.height=Y+"em",M},as={encloseSpan:_i,mathMLnode:Ur,svgSpan:ui},ur=function(u,f){var h,b,M=hr(u,"supsub"),Y;M?(b=ar(M.base,"accent"),h=b.base,M.base=h,Y=Ye(Lr(M,f)),M.base=b):(b=ar(u,"accent"),h=b.base);var Se=Lr(h,f.havingCrampedStyle()),Me=b.isShifty&&j.isCharacterBox(h),et=0;if(Me){var wt=j.getBaseElem(h),Mt=Lr(wt,f.havingCrampedStyle());et=ke(Mt).skew}var Ut=Math.min(Se.height,f.fontMetrics().xHeight),nn;if(b.isStretchy)nn=as.svgSpan(b,f),nn=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se},{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 dn,fn;b.label==="\\vec"?(dn=Kt.staticSvg("vec",f),fn=Kt.svgData.vec[1]):(dn=Kt.makeOrd({mode:b.mode,text:b.label},f,"textord"),dn=ke(dn),dn.italic=0,fn=dn.width),nn=Kt.makeSpan(["accent-body"],[dn]);var Tn=b.label==="\\textcircled";Tn&&(nn.classes.push("accent-full"),Ut=Se.height);var xn=et;Tn||(xn-=fn/2),nn.style.left=xn+"em",b.label==="\\textcircled"&&(nn.style.top=".2em"),nn=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se},{type:"kern",size:-Ut},{type:"elem",elem:nn}]},f)}var wn=Kt.makeSpan(["mord","accent"],[nn],f);return Y?(Y.children[0]=wn,Y.height=Math.max(wn.height,Y.height),Y.classes[0]="mord",Y):wn},Rr=function(u,f){var h=u.isStretchy?as.mathMLnode(u.label):new Ln.MathNode("mo",[Fi(u.label,u.mode)]),b=new Ln.MathNode("mover",[Pr(u.base,f),h]);return b.setAttribute("accent","true"),b},ei=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(B){return"\\"+B}).join("|"));On({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(u,f){var h=f[0],b=!ei.test(u.funcName),M=!b||u.funcName==="\\widehat"||u.funcName==="\\widetilde"||u.funcName==="\\widecheck";return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:b,isShifty:M,base:h}},htmlBuilder:ur,mathmlBuilder:Rr}),On({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(u,f){var h=f[0];return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:ur,mathmlBuilder:Rr}),On({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];return{type:"accentUnder",mode:h.mode,label:b,base:M}},htmlBuilder:function(u,f){var h=Lr(u.base,f),b=as.svgSpan(u,f),M=u.label==="\\utilde"?.12:0,Y=Kt.makeVList({positionType:"bottom",positionData:b.height+M,children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:M},{type:"elem",elem:h}]},f);return Kt.makeSpan(["mord","accentunder"],[Y],f)},mathmlBuilder:function(u,f){var h=as.mathMLnode(u.label),b=new Ln.MathNode("munder",[Pr(u.base,f),h]);return b.setAttribute("accentunder","true"),b}});var Kr=function(u){var f=new Ln.MathNode("mpadded",u?[u]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};On({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(u,f,h){var b=u.parser,M=u.funcName;return{type:"xArrow",mode:b.mode,label:M,body:f[0],below:h[0]}},htmlBuilder:function(u,f){var h=f.style,b=f.havingStyle(h.sup()),M=Kt.wrapFragment(Lr(u.body,b,f),f);M.classes.push("x-arrow-pad");var Y;u.below&&(b=f.havingStyle(h.sub()),Y=Kt.wrapFragment(Lr(u.below,b,f),f),Y.classes.push("x-arrow-pad"));var Se=as.svgSpan(u,f),Me=-f.fontMetrics().axisHeight+.5*Se.height,et=-f.fontMetrics().axisHeight-.5*Se.height-.111;(M.depth>.25||u.label==="\\xleftequilibrium")&&(et-=M.depth);var wt;if(Y){var Mt=-f.fontMetrics().axisHeight+Y.height+.5*Se.height+.111;wt=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:et},{type:"elem",elem:Se,shift:Me},{type:"elem",elem:Y,shift:Mt}]},f)}else wt=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:et},{type:"elem",elem:Se,shift:Me}]},f);return wt.children[0].children[0].children[1].classes.push("svg-align"),Kt.makeSpan(["mrel","x-arrow"],[wt],f)},mathmlBuilder:function(u,f){var h=as.mathMLnode(u.label),b;if(u.body){var M=Kr(Pr(u.body,f));if(u.below){var Y=Kr(Pr(u.below,f));b=new Ln.MathNode("munderover",[h,Y,M])}else b=new Ln.MathNode("mover",[h,M])}else if(u.below){var Se=Kr(Pr(u.below,f));b=new Ln.MathNode("munder",[h,Se])}else b=Kr(),b=new Ln.MathNode("mover",[h,b]);return b}}),On({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){for(var h=u.parser,b=ar(f[0],"ordgroup"),M=b.body,Y="",Se=0;Se<M.length;Se++){var Me=ar(M[Se],"textord");Y+=Me.text}var et=parseInt(Y);if(isNaN(et))throw new g("\\@char has non-numeric argument "+Y);return{type:"textord",mode:h.mode,text:String.fromCharCode(et)}}});var ti=function(u,f){var h=qr(u.body,f.withColor(u.color),!1);return Kt.makeFragment(h)},xs=function(u,f){var h=ss(u.body,f.withColor(u.color)),b=new Ln.MathNode("mstyle",h);return b.setAttribute("mathcolor",u.color),b};On({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(u,f){var h=u.parser,b=ar(f[0],"color-token").color,M=f[1];return{type:"color",mode:h.mode,color:b,body:Dr(M)}},htmlBuilder:ti,mathmlBuilder:xs}),On({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(u,f){var h=u.parser,b=u.breakOnTokenText,M=ar(f[0],"color-token").color;h.gullet.macros.set("\\current@color",M);var Y=h.parseExpression(!0,b);return{type:"color",mode:h.mode,color:M,body:Y}},htmlBuilder:ti,mathmlBuilder:xs}),On({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,f,h){var b=u.parser,M=u.funcName,Y=h[0],Se=M==="\\cr",Me=!1;return Se||(b.settings.displayMode&&b.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Me=!1:Me=!0),{type:"cr",mode:b.mode,newLine:Me,newRow:Se,size:Y&&ar(Y,"size").value}},htmlBuilder:function(u,f){if(u.newRow)throw new g("\\cr valid only within a tabular/array environment");var h=Kt.makeSpan(["mspace"],[],f);return u.newLine&&(h.classes.push("newline"),u.size&&(h.style.marginTop=bt(u.size,f)+"em")),h},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mspace");return u.newLine&&(h.setAttribute("linebreak","newline"),u.size&&h.setAttribute("height",bt(u.size,f)+"em")),h}});var us=function(u,f,h){var b=Je.math[u]&&Je.math[u].replace,M=ft(b||u,f,h);if(!M)throw new Error("Unsupported symbol "+u+" and font size "+f+".");return M},Es=function(u,f,h,b){var M=h.havingBaseStyle(f),Y=Kt.makeSpan(b.concat(M.sizingClasses(h)),[u],h),Se=M.sizeMultiplier/h.sizeMultiplier;return Y.height*=Se,Y.depth*=Se,Y.maxFontSize=M.sizeMultiplier,Y},ms=function(u,f,h){var b=f.havingBaseStyle(h),M=(1-f.sizeMultiplier/b.sizeMultiplier)*f.fontMetrics().axisHeight;u.classes.push("delimcenter"),u.style.top=M+"em",u.height-=M,u.depth+=M},ba=function(u,f,h,b,M,Y){var Se=Kt.makeSymbol(u,"Main-Regular",M,b),Me=Es(Se,f,b,Y);return h&&ms(Me,b,f),Me},so=function(u,f,h,b){return Kt.makeSymbol(u,"Size"+f+"-Regular",h,b)},Ka=function(u,f,h,b,M,Y){var Se=so(u,f,M,b),Me=Es(Kt.makeSpan(["delimsizing","size"+f],[Se],b),x.TEXT,b,Y);return h&&ms(Me,b,x.TEXT),Me},Ss=function(u,f,h){var b;f==="Size1-Regular"?b="delim-size1":b="delim-size4";var M=Kt.makeSpan(["delimsizinginner",b],[Kt.makeSpan([],[Kt.makeSymbol(u,f,h)])]);return{type:"elem",elem:M}},Fs={type:"kern",size:-.005},ks=function(u,f,h,b,M,Y){var Se,Me,et,wt;Se=et=wt=u,Me=null;var Mt="Size1-Regular";u==="\\uparrow"?et=wt="\u23D0":u==="\\Uparrow"?et=wt="\u2016":u==="\\downarrow"?Se=et="\u23D0":u==="\\Downarrow"?Se=et="\u2016":u==="\\updownarrow"?(Se="\\uparrow",et="\u23D0",wt="\\downarrow"):u==="\\Updownarrow"?(Se="\\Uparrow",et="\u2016",wt="\\Downarrow"):u==="["||u==="\\lbrack"?(Se="\u23A1",et="\u23A2",wt="\u23A3",Mt="Size4-Regular"):u==="]"||u==="\\rbrack"?(Se="\u23A4",et="\u23A5",wt="\u23A6",Mt="Size4-Regular"):u==="\\lfloor"||u==="\u230A"?(et=Se="\u23A2",wt="\u23A3",Mt="Size4-Regular"):u==="\\lceil"||u==="\u2308"?(Se="\u23A1",et=wt="\u23A2",Mt="Size4-Regular"):u==="\\rfloor"||u==="\u230B"?(et=Se="\u23A5",wt="\u23A6",Mt="Size4-Regular"):u==="\\rceil"||u==="\u2309"?(Se="\u23A4",et=wt="\u23A5",Mt="Size4-Regular"):u==="("||u==="\\lparen"?(Se="\u239B",et="\u239C",wt="\u239D",Mt="Size4-Regular"):u===")"||u==="\\rparen"?(Se="\u239E",et="\u239F",wt="\u23A0",Mt="Size4-Regular"):u==="\\{"||u==="\\lbrace"?(Se="\u23A7",Me="\u23A8",wt="\u23A9",et="\u23AA",Mt="Size4-Regular"):u==="\\}"||u==="\\rbrace"?(Se="\u23AB",Me="\u23AC",wt="\u23AD",et="\u23AA",Mt="Size4-Regular"):u==="\\lgroup"||u==="\u27EE"?(Se="\u23A7",wt="\u23A9",et="\u23AA",Mt="Size4-Regular"):u==="\\rgroup"||u==="\u27EF"?(Se="\u23AB",wt="\u23AD",et="\u23AA",Mt="Size4-Regular"):u==="\\lmoustache"||u==="\u23B0"?(Se="\u23A7",wt="\u23AD",et="\u23AA",Mt="Size4-Regular"):(u==="\\rmoustache"||u==="\u23B1")&&(Se="\u23AB",wt="\u23A9",et="\u23AA",Mt="Size4-Regular");var Ut=us(Se,Mt,M),nn=Ut.height+Ut.depth,dn=us(et,Mt,M),fn=dn.height+dn.depth,Tn=us(wt,Mt,M),xn=Tn.height+Tn.depth,wn=0,kn=1;if(Me!==null){var Jn=us(Me,Mt,M);wn=Jn.height+Jn.depth,kn=2}var tr=nn+xn+wn,Un=Math.max(0,Math.ceil((f-tr)/(kn*fn))),Er=tr+Un*kn*fn,Ar=b.fontMetrics().axisHeight;h&&(Ar*=b.sizeMultiplier);var gi=Er/2-Ar,ni=(Un+1)*.005-fn,kt=[];if(kt.push(Ss(wt,Mt,M)),Me===null)for(var vi=0;vi<Un;vi++)kt.push(Fs),kt.push(Ss(et,Mt,M));else{for(var ts=0;ts<Un;ts++)kt.push(Fs),kt.push(Ss(et,Mt,M));kt.push({type:"kern",size:ni}),kt.push(Ss(et,Mt,M)),kt.push(Fs),kt.push(Ss(Me,Mt,M));for(var Xr=0;Xr<Un;Xr++)kt.push(Fs),kt.push(Ss(et,Mt,M))}kt.push({type:"kern",size:ni}),kt.push(Ss(et,Mt,M)),kt.push(Fs),kt.push(Ss(Se,Mt,M));var Fr=b.havingBaseStyle(x.TEXT),Yi=Kt.makeVList({positionType:"bottom",positionData:gi,children:kt},Fr);return Es(Kt.makeSpan(["delimsizing","mult"],[Yi],Fr),x.TEXT,b,Y)},ja=80,aa=.08,js=function(u,f,h,b,M){var Y=tt(u,b,h),Se=new ge(u,Y),Me=new Ee([Se],{width:"400em",height:f+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Kt.makeSvgSpan(["hide-tail"],[Me],M)},Ca=function(u,f){var h=f.havingBaseSizing(),b=oa("\\surd",u*h.sizeMultiplier,Ha,h),M=h.sizeMultiplier,Y=Math.max(0,f.minRuleThickness-f.fontMetrics().sqrtRuleThickness),Se,Me=0,et=0,wt=0,Mt;return b.type==="small"?(wt=1e3+1e3*Y+ja,u<1?M=1:u<1.4&&(M=.7),Me=(1+Y+aa)/M,et=(1+Y)/M,Se=js("sqrtMain",Me,wt,Y,f),Se.style.minWidth="0.853em",Mt=.833/M):b.type==="large"?(wt=(1e3+ja)*wa[b.size],et=(wa[b.size]+Y)/M,Me=(wa[b.size]+Y+aa)/M,Se=js("sqrtSize"+b.size,Me,wt,Y,f),Se.style.minWidth="1.02em",Mt=1/M):(Me=u+Y+aa,et=u+Y,wt=Math.floor(1e3*u+Y)+ja,Se=js("sqrtTall",Me,wt,Y,f),Se.style.minWidth="0.742em",Mt=1.056),Se.height=et,Se.style.height=Me+"em",{span:Se,advanceWidth:Mt,ruleWidth:(f.fontMetrics().sqrtRuleThickness+Y)*M}},Pa=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Za=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],zs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],wa=[0,1.2,1.8,2.4,3],Ls=function(u,f,h,b,M){if(u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle"),j.contains(Pa,u)||j.contains(zs,u))return Ka(u,f,!1,h,b,M);if(j.contains(Za,u))return ks(u,wa[f],!1,h,b,M);throw new g("Illegal delimiter: '"+u+"'")},Ma=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ka=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],Ha=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Wa=function(u){if(u.type==="small")return"Main-Regular";if(u.type==="large")return"Size"+u.size+"-Regular";if(u.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+u.type+"' here.")},oa=function(u,f,h,b){for(var M=Math.min(2,3-b.style.size),Y=M;Y<h.length&&h[Y].type!=="stack";Y++){var Se=us(u,Wa(h[Y]),"math"),Me=Se.height+Se.depth;if(h[Y].type==="small"){var et=b.havingBaseStyle(h[Y].style);Me*=et.sizeMultiplier}if(Me>f)return h[Y]}return h[h.length-1]},Zs=function(u,f,h,b,M,Y){u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle");var Se;j.contains(zs,u)?Se=Ma:j.contains(Pa,u)?Se=Ha:Se=ka;var Me=oa(u,f,Se,b);return Me.type==="small"?ba(u,Me.style,h,b,M,Y):Me.type==="large"?Ka(u,Me.size,h,b,M,Y):ks(u,f,h,b,M,Y)},fi=function(u,f,h,b,M,Y){var Se=b.fontMetrics().axisHeight*b.sizeMultiplier,Me=901,et=5/b.fontMetrics().ptPerEm,wt=Math.max(f-Se,h+Se),Mt=Math.max(wt/500*Me,2*wt-et);return Zs(u,Mt,!0,b,M,Y)},Hr={sqrtImage:Ca,sizedDelim:Ls,customSizedDelim:Zs,leftRightDelim:fi},ps={"\\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}},Cs=["(","\\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 Ci(B,u){var f=Qr(B);if(f&&j.contains(Cs,f.text))return f;throw new g("Invalid delimiter: '"+(f?f.text:JSON.stringify(B))+"' after '"+u.funcName+"'",B)}On({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(u,f){var h=Ci(f[0],u);return{type:"delimsizing",mode:u.parser.mode,size:ps[u.funcName].size,mclass:ps[u.funcName].mclass,delim:h.text}},htmlBuilder:function(u,f){return u.delim==="."?Kt.makeSpan([u.mclass]):Hr.sizedDelim(u.delim,u.size,f,u.mode,[u.mclass])},mathmlBuilder:function(u){var f=[];u.delim!=="."&&f.push(Fi(u.delim,u.mode));var h=new Ln.MathNode("mo",f);return u.mclass==="mopen"||u.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function os(B){if(!B.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}On({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(u,f){var h=u.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:u.parser.mode,delim:Ci(f[0],u).text,color:h}}}),On({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(u,f){var h=Ci(f[0],u),b=u.parser;++b.leftrightDepth;var M=b.parseExpression(!1);--b.leftrightDepth,b.expect("\\right",!1);var Y=ar(b.parseFunction(),"leftright-right");return{type:"leftright",mode:b.mode,body:M,left:h.text,right:Y.delim,rightColor:Y.color}},htmlBuilder:function(u,f){os(u);for(var h=qr(u.body,f,!0,["mopen","mclose"]),b=0,M=0,Y=!1,Se=0;Se<h.length;Se++)h[Se].isMiddle?Y=!0:(b=Math.max(h[Se].height,b),M=Math.max(h[Se].depth,M));b*=f.sizeMultiplier,M*=f.sizeMultiplier;var Me;if(u.left==="."?Me=Oi(f,["mopen"]):Me=Hr.leftRightDelim(u.left,b,M,f,u.mode,["mopen"]),h.unshift(Me),Y)for(var et=1;et<h.length;et++){var wt=h[et],Mt=wt.isMiddle;Mt&&(h[et]=Hr.leftRightDelim(Mt.delim,b,M,Mt.options,u.mode,[]))}var Ut;if(u.right===".")Ut=Oi(f,["mclose"]);else{var nn=u.rightColor?f.withColor(u.rightColor):f;Ut=Hr.leftRightDelim(u.right,b,M,nn,u.mode,["mclose"])}return h.push(Ut),Kt.makeSpan(["minner"],h,f)},mathmlBuilder:function(u,f){os(u);var h=ss(u.body,f);if(u.left!=="."){var b=new Ln.MathNode("mo",[Fi(u.left,u.mode)]);b.setAttribute("fence","true"),h.unshift(b)}if(u.right!=="."){var M=new Ln.MathNode("mo",[Fi(u.right,u.mode)]);M.setAttribute("fence","true"),u.rightColor&&M.setAttribute("mathcolor",u.rightColor),h.push(M)}return Os(h)}}),On({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(u,f){var h=Ci(f[0],u);if(!u.parser.leftrightDepth)throw new g("\\middle without preceding \\left",h);return{type:"middle",mode:u.parser.mode,delim:h.text}},htmlBuilder:function(u,f){var h;if(u.delim===".")h=Oi(f,[]);else{h=Hr.sizedDelim(u.delim,1,f,u.mode,[]);var b={delim:u.delim,options:f};h.isMiddle=b}return h},mathmlBuilder:function(u,f){var h=u.delim==="\\vert"||u.delim==="|"?Fi("|","text"):Fi(u.delim,u.mode),b=new Ln.MathNode("mo",[h]);return b.setAttribute("fence","true"),b.setAttribute("lspace","0.05em"),b.setAttribute("rspace","0.05em"),b}});var Ps=function(u,f){var h=Kt.wrapFragment(Lr(u.body,f),f),b=u.label.substr(1),M=f.sizeMultiplier,Y,Se=0,Me=j.isCharacterBox(u.body);if(b==="sout")Y=Kt.makeSpan(["stretchy","sout"]),Y.height=f.fontMetrics().defaultRuleThickness/M,Se=-.5*f.fontMetrics().xHeight;else{/cancel/.test(b)?Me||h.classes.push("cancel-pad"):h.classes.push("boxpad");var et=0,wt=0;/box/.test(b)?(wt=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),et=f.fontMetrics().fboxsep+(b==="colorbox"?0:wt)):et=Me?.2:0,Y=as.encloseSpan(h,b,et,f),/fbox|boxed|fcolorbox/.test(b)&&(Y.style.borderStyle="solid",Y.style.borderWidth=wt+"em"),Se=h.depth+et,u.backgroundColor&&(Y.style.backgroundColor=u.backgroundColor,u.borderColor&&(Y.style.borderColor=u.borderColor))}var Mt;return u.backgroundColor?Mt=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Y,shift:Se},{type:"elem",elem:h,shift:0}]},f):Mt=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:Y,shift:Se,wrapperClasses:/cancel/.test(b)?["svg-align"]:[]}]},f),/cancel/.test(b)&&(Mt.height=h.height,Mt.depth=h.depth),/cancel/.test(b)&&!Me?Kt.makeSpan(["mord","cancel-lap"],[Mt],f):Kt.makeSpan(["mord"],[Mt],f)},Ms=function(u,f){var h=0,b=new Ln.MathNode(u.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Pr(u.body,f)]);switch(u.label){case"\\cancel":b.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":b.setAttribute("notation","downdiagonalstrike");break;case"\\sout":b.setAttribute("notation","horizontalstrike");break;case"\\fbox":b.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,b.setAttribute("width","+"+2*h+"pt"),b.setAttribute("height","+"+2*h+"pt"),b.setAttribute("lspace",h+"pt"),b.setAttribute("voffset",h+"pt"),u.label==="\\fcolorbox"){var M=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);b.setAttribute("style","border: "+M+"em solid "+String(u.borderColor))}break;case"\\xcancel":b.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return u.backgroundColor&&b.setAttribute("mathbackground",u.backgroundColor),b};On({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(u,f,h){var b=u.parser,M=u.funcName,Y=ar(f[0],"color-token").color,Se=f[1];return{type:"enclose",mode:b.mode,label:M,backgroundColor:Y,body:Se}},htmlBuilder:Ps,mathmlBuilder:Ms}),On({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(u,f,h){var b=u.parser,M=u.funcName,Y=ar(f[0],"color-token").color,Se=ar(f[1],"color-token").color,Me=f[2];return{type:"enclose",mode:b.mode,label:M,backgroundColor:Se,borderColor:Y,body:Me}},htmlBuilder:Ps,mathmlBuilder:Ms}),On({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(u,f){var h=u.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:f[0]}}}),On({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(u,f,h){var b=u.parser,M=u.funcName,Y=f[0];return{type:"enclose",mode:b.mode,label:M,body:Y}},htmlBuilder:Ps,mathmlBuilder:Ms});var Js={};function ws(B){for(var u=B.type,f=B.names,h=B.props,b=B.handler,M=B.htmlBuilder,Y=B.mathmlBuilder,Se={type:u,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:b},Me=0;Me<f.length;++Me)Js[f[Me]]=Se;M&&(lr[u]=M),Y&&(Ir[u]=Y)}function ta(B){var u=[];B.consumeSpaces();for(var f=B.fetch().text;f==="\\hline"||f==="\\hdashline";)B.consume(),u.push(f==="\\hdashline"),B.consumeSpaces(),f=B.fetch().text;return u}function Hs(B,u,f){var h=u.hskipBeforeAndAfter,b=u.addJot,M=u.cols,Y=u.arraystretch,Se=u.colSeparationType;if(B.gullet.beginGroup(),B.gullet.macros.set("\\\\","\\cr"),!Y){var Me=B.gullet.expandMacroAsText("\\arraystretch");if(Me==null)Y=1;else if(Y=parseFloat(Me),!Y||Y<0)throw new g("Invalid \\arraystretch: "+Me)}B.gullet.beginGroup();var et=[],wt=[et],Mt=[],Ut=[];for(Ut.push(ta(B));;){var nn=B.parseExpression(!1,"\\cr");B.gullet.endGroup(),B.gullet.beginGroup(),nn={type:"ordgroup",mode:B.mode,body:nn},f&&(nn={type:"styling",mode:B.mode,style:f,body:[nn]}),et.push(nn);var dn=B.fetch().text;if(dn==="&")B.consume();else if(dn==="\\end"){et.length===1&&nn.type==="styling"&&nn.body[0].body.length===0&&wt.pop(),Ut.length<wt.length+1&&Ut.push([]);break}else if(dn==="\\cr"){var fn=ar(B.parseFunction(),"cr");Mt.push(fn.size),Ut.push(ta(B)),et=[],wt.push(et)}else throw new g("Expected & or \\\\ or \\cr or \\end",B.nextToken)}return B.gullet.endGroup(),B.gullet.endGroup(),{type:"array",mode:B.mode,addJot:b,arraystretch:Y,body:wt,cols:M,rowGaps:Mt,hskipBeforeAndAfter:h,hLinesBeforeRow:Ut,colSeparationType:Se}}function la(B){return B.substr(0,1)==="d"?"display":"text"}var ua=function(u,f){var h,b,M=u.body.length,Y=u.hLinesBeforeRow,Se=0,Me=new Array(M),et=[],wt=Math.max(f.fontMetrics().arrayRuleWidth,f.minRuleThickness),Mt=1/f.fontMetrics().ptPerEm,Ut=5*Mt;if(u.colSeparationType&&u.colSeparationType==="small"){var nn=f.havingStyle(x.SCRIPT).sizeMultiplier;Ut=.2778*(nn/f.sizeMultiplier)}var dn=12*Mt,fn=3*Mt,Tn=u.arraystretch*dn,xn=.7*Tn,wn=.3*Tn,kn=0;function Jn(Ki){for(var Ei=0;Ei<Ki.length;++Ei)Ei>0&&(kn+=.25),et.push({pos:kn,isDashed:Ki[Ei]})}for(Jn(Y[0]),h=0;h<u.body.length;++h){var tr=u.body[h],Un=xn,Er=wn;Se<tr.length&&(Se=tr.length);var Ar=new Array(tr.length);for(b=0;b<tr.length;++b){var gi=Lr(tr[b],f);Er<gi.depth&&(Er=gi.depth),Un<gi.height&&(Un=gi.height),Ar[b]=gi}var ni=u.rowGaps[h],kt=0;ni&&(kt=bt(ni,f),kt>0&&(kt+=wn,Er<kt&&(Er=kt),kt=0)),u.addJot&&(Er+=fn),Ar.height=Un,Ar.depth=Er,kn+=Un,Ar.pos=kn,kn+=Er+kt,Me[h]=Ar,Jn(Y[h+1])}var vi=kn/2+f.fontMetrics().axisHeight,ts=u.cols||[],Xr=[],Fr,Yi;for(b=0,Yi=0;b<Se||Yi<ts.length;++b,++Yi){for(var Xi=ts[Yi]||{},Cr=!0;Xi.type==="separator";){if(Cr||(Fr=Kt.makeSpan(["arraycolsep"],[]),Fr.style.width=f.fontMetrics().doubleRuleSep+"em",Xr.push(Fr)),Xi.separator==="|"||Xi.separator===":"){var Vr=Xi.separator==="|"?"solid":"dashed",pr=Kt.makeSpan(["vertical-separator"],[],f);pr.style.height=kn+"em",pr.style.borderRightWidth=wt+"em",pr.style.borderRightStyle=Vr,pr.style.margin="0 -"+wt/2+"em",pr.style.verticalAlign=-(kn-vi)+"em",Xr.push(pr)}else throw new g("Invalid separator type: "+Xi.separator);Yi++,Xi=ts[Yi]||{},Cr=!1}if(!(b>=Se)){var Sr=void 0;(b>0||u.hskipBeforeAndAfter)&&(Sr=j.deflt(Xi.pregap,Ut),Sr!==0&&(Fr=Kt.makeSpan(["arraycolsep"],[]),Fr.style.width=Sr+"em",Xr.push(Fr)));var ai=[];for(h=0;h<M;++h){var hi=Me[h],Ui=hi[b];if(Ui){var Ni=hi.pos-vi;Ui.depth=hi.depth,Ui.height=hi.height,ai.push({type:"elem",elem:Ui,shift:Ni})}}ai=Kt.makeVList({positionType:"individualShift",children:ai},f),ai=Kt.makeSpan(["col-align-"+(Xi.align||"c")],[ai]),Xr.push(ai),(b<Se-1||u.hskipBeforeAndAfter)&&(Sr=j.deflt(Xi.postgap,Ut),Sr!==0&&(Fr=Kt.makeSpan(["arraycolsep"],[]),Fr.style.width=Sr+"em",Xr.push(Fr)))}}if(Me=Kt.makeSpan(["mtable"],Xr),et.length>0){for(var Hi=Kt.makeLineSpan("hline",f,wt),As=Kt.makeLineSpan("hdashline",f,wt),wr=[{type:"elem",elem:Me,shift:0}];et.length>0;){var Mr=et.pop(),xi=Mr.pos-vi;Mr.isDashed?wr.push({type:"elem",elem:As,shift:xi}):wr.push({type:"elem",elem:Hi,shift:xi})}Me=Kt.makeVList({positionType:"individualShift",children:wr},f)}return Kt.makeSpan(["mord"],[Me],f)},Va={c:"center ",l:"left ",r:"right "},wi=function(u,f){var h=new Ln.MathNode("mtable",u.body.map(function(kn){return new Ln.MathNode("mtr",kn.map(function(Jn){return new Ln.MathNode("mtd",[Pr(Jn,f)])}))})),b=u.arraystretch===.5?.1:.16+u.arraystretch-1+(u.addJot?.09:0);h.setAttribute("rowspacing",b+"em");var M="",Y="";if(u.cols){var Se=u.cols,Me="",et=!1,wt=0,Mt=Se.length;Se[0].type==="separator"&&(M+="top ",wt=1),Se[Se.length-1].type==="separator"&&(M+="bottom ",Mt-=1);for(var Ut=wt;Ut<Mt;Ut++)Se[Ut].type==="align"?(Y+=Va[Se[Ut].align],et&&(Me+="none "),et=!0):Se[Ut].type==="separator"&&et&&(Me+=Se[Ut].separator==="|"?"solid ":"dashed ",et=!1);h.setAttribute("columnalign",Y.trim()),/[sd]/.test(Me)&&h.setAttribute("columnlines",Me.trim())}if(u.colSeparationType==="align"){for(var nn=u.cols||[],dn="",fn=1;fn<nn.length;fn++)dn+=fn%2?"0em ":"1em ";h.setAttribute("columnspacing",dn.trim())}else u.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):u.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var Tn="",xn=u.hLinesBeforeRow;M+=xn[0].length>0?"left ":"",M+=xn[xn.length-1].length>0?"right ":"";for(var wn=1;wn<xn.length-1;wn++)Tn+=xn[wn].length===0?"none ":xn[wn][0]?"dashed ":"solid ";return/[sd]/.test(Tn)&&h.setAttribute("rowlines",Tn.trim()),M!==""&&(h=new Ln.MathNode("menclose",[h]),h.setAttribute("notation",M.trim())),u.arraystretch&&u.arraystretch<1&&(h=new Ln.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Ii=function(u,f){var h=[],b=Hs(u.parser,{cols:h,addJot:!0},"display"),M,Y=0,Se={type:"ordgroup",mode:u.mode,body:[]},Me=hr(f[0],"ordgroup");if(Me){for(var et="",wt=0;wt<Me.body.length;wt++){var Mt=ar(Me.body[wt],"textord");et+=Mt.text}M=Number(et),Y=M*2}var Ut=!Y;b.body.forEach(function(Tn){for(var xn=1;xn<Tn.length;xn+=2){var wn=ar(Tn[xn],"styling"),kn=ar(wn.body[0],"ordgroup");kn.body.unshift(Se)}if(Ut)Y<Tn.length&&(Y=Tn.length);else{var Jn=Tn.length/2;if(M<Jn)throw new g("Too many math in a row: "+("expected "+M+", but got "+Jn),Tn[0])}});for(var nn=0;nn<Y;++nn){var dn="r",fn=0;nn%2===1?dn="l":nn>0&&Ut&&(fn=1),h[nn]={type:"align",align:dn,pregap:fn,postgap:0}}return b.colSeparationType=Ut?"align":"alignat",b};ws({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(u,f){var h=Qr(f[0]),b=h?[f[0]]:ar(f[0],"ordgroup").body,M=b.map(function(Se){var Me=li(Se),et=Me.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,Se)}),Y={cols:M,hskipBeforeAndAfter:!0};return Hs(u.parser,Y,la(u.envName))},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(u){var f={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[u.envName],h={hskipBeforeAndAfter:!1},b=Hs(u.parser,h,la(u.envName));return f?{type:"leftright",mode:u.mode,body:[b],left:f[0],right:f[1],rightColor:void 0}:b},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(u){var f={arraystretch:.5},h=Hs(u.parser,f,"script");return h.colSeparationType="small",h},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["subarray"],props:{numArgs:1},handler:function(u,f){var h=Qr(f[0]),b=h?[f[0]]:ar(f[0],"ordgroup").body,M=b.map(function(Se){var Me=li(Se),et=Me.text;if("lc".indexOf(et)!==-1)return{type:"align",align:et};throw new g("Unknown column alignment: "+et,Se)});if(M.length>1)throw new g("{subarray} can contain only one column");var Y={cols:M,hskipBeforeAndAfter:!1,arraystretch:.5};if(Y=Hs(u.parser,Y,"script"),Y.body[0].length>1)throw new g("{subarray} can contain only one column");return Y},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(u){var f={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Hs(u.parser,f,la(u.envName));return{type:"leftright",mode:u.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["aligned"],props:{numArgs:0},handler:Ii,htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["gathered"],props:{numArgs:0},handler:function(u){var f={cols:[{type:"align",align:"c"}],addJot:!0};return Hs(u.parser,f,"display")},htmlBuilder:ua,mathmlBuilder:wi}),ws({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ii,htmlBuilder:ua,mathmlBuilder:wi}),On({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(u,f){throw new g(u.funcName+" valid only within array environment")}});var Zi=Js,Ts=Zi;On({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];if(M.type!=="ordgroup")throw new g("Invalid environment name",M);for(var Y="",Se=0;Se<M.body.length;++Se)Y+=ar(M.body[Se],"textord").text;if(b==="\\begin"){if(!Ts.hasOwnProperty(Y))throw new g("No such environment: "+Y,M);var Me=Ts[Y],et=h.parseArguments("\\begin{"+Y+"}",Me),wt=et.args,Mt=et.optArgs,Ut={mode:h.mode,envName:Y,parser:h},nn=Me.handler(Ut,wt,Mt);h.expect("\\end",!1);var dn=h.nextToken,fn=ar(h.parseFunction(),"environment");if(fn.name!==Y)throw new g("Mismatch: \\begin{"+Y+"} matched by \\end{"+fn.name+"}",dn);return nn}return{type:"environment",mode:h.mode,name:Y,nameGroup:M}}});var Ns=Kt.makeSpan;function _a(B,u){var f=qr(B.body,u,!0);return Ns([B.mclass],f,u)}function Ta(B,u){var f,h=ss(B.body,u);return B.mclass==="minner"?Ln.newDocumentFragment(h):(B.mclass==="mord"?B.isCharacterBox?(f=h[0],f.type="mi"):f=new Ln.MathNode("mi",h):(B.isCharacterBox?(f=h[0],f.type="mo"):f=new Ln.MathNode("mo",h),B.mclass==="mbin"?(f.attributes.lspace="0.22em",f.attributes.rspace="0.22em"):B.mclass==="mpunct"?(f.attributes.lspace="0em",f.attributes.rspace="0.17em"):(B.mclass==="mopen"||B.mclass==="mclose")&&(f.attributes.lspace="0em",f.attributes.rspace="0em")),f)}On({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];return{type:"mclass",mode:h.mode,mclass:"m"+b.substr(5),body:Dr(M),isCharacterBox:j.isCharacterBox(M)}},htmlBuilder:_a,mathmlBuilder:Ta});var ha=function(u){var f=u.type==="ordgroup"&&u.body.length?u.body[0]:u;return f.type==="atom"&&(f.family==="bin"||f.family==="rel")?"m"+f.family:"mord"};On({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(u,f){var h=u.parser;return{type:"mclass",mode:h.mode,mclass:ha(f[0]),body:[f[1]],isCharacterBox:j.isCharacterBox(f[1])}}}),On({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[1],Y=f[0],Se;b!=="\\stackrel"?Se=ha(M):Se="mrel";var Me={type:"op",mode:M.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:b!=="\\stackrel",body:Dr(M)},et={type:"supsub",mode:Y.mode,base:Me,sup:b==="\\underset"?null:Y,sub:b==="\\underset"?Y:null};return{type:"mclass",mode:h.mode,mclass:Se,body:[et],isCharacterBox:j.isCharacterBox(et)}},htmlBuilder:_a,mathmlBuilder:Ta});var Ga=function(u,f){var h=u.font,b=f.withFont(h);return Lr(u.body,b)},Aa=function(u,f){var h=u.font,b=f.withFont(h);return Pr(u.body,b)},Ia={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};On({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0],Y=b;return Y in Ia&&(Y=Ia[Y]),{type:"font",mode:h.mode,font:Y.slice(1),body:M}},htmlBuilder:Ga,mathmlBuilder:Aa}),On({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(u,f){var h=u.parser,b=f[0],M=j.isCharacterBox(b);return{type:"mclass",mode:h.mode,mclass:ha(b),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:b}],isCharacterBox:M}}}),On({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.parser,b=u.funcName,M=u.breakOnTokenText,Y=h.mode,Se=h.parseExpression(!0,M),Me="math"+b.slice(1);return{type:"font",mode:Y,font:Me,body:{type:"ordgroup",mode:h.mode,body:Se}}},htmlBuilder:Ga,mathmlBuilder:Aa});var Ya=function(u,f){var h=f;return u==="display"?h=h.id>=x.SCRIPT.id?h.text():x.DISPLAY:u==="text"&&h.size===x.DISPLAY.size?h=x.TEXT:u==="script"?h=x.SCRIPT:u==="scriptscript"&&(h=x.SCRIPTSCRIPT),h},Na=function(u,f){var h=Ya(u.size,f.style),b=h.fracNum(),M=h.fracDen(),Y;Y=f.havingStyle(b);var Se=Lr(u.numer,Y,f);if(u.continued){var Me=8.5/f.fontMetrics().ptPerEm,et=3.5/f.fontMetrics().ptPerEm;Se.height=Se.height<Me?Me:Se.height,Se.depth=Se.depth<et?et:Se.depth}Y=f.havingStyle(M);var wt=Lr(u.denom,Y,f),Mt,Ut,nn;u.hasBarLine?(u.barSize?(Ut=bt(u.barSize,f),Mt=Kt.makeLineSpan("frac-line",f,Ut)):Mt=Kt.makeLineSpan("frac-line",f),Ut=Mt.height,nn=Mt.height):(Mt=null,Ut=0,nn=f.fontMetrics().defaultRuleThickness);var dn,fn,Tn;h.size===x.DISPLAY.size||u.size==="display"?(dn=f.fontMetrics().num1,Ut>0?fn=3*nn:fn=7*nn,Tn=f.fontMetrics().denom1):(Ut>0?(dn=f.fontMetrics().num2,fn=nn):(dn=f.fontMetrics().num3,fn=3*nn),Tn=f.fontMetrics().denom2);var xn;if(Mt){var kn=f.fontMetrics().axisHeight;dn-Se.depth-(kn+.5*Ut)<fn&&(dn+=fn-(dn-Se.depth-(kn+.5*Ut))),kn-.5*Ut-(wt.height-Tn)<fn&&(Tn+=fn-(kn-.5*Ut-(wt.height-Tn)));var Jn=-(kn-.5*Ut);xn=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:wt,shift:Tn},{type:"elem",elem:Mt,shift:Jn},{type:"elem",elem:Se,shift:-dn}]},f)}else{var wn=dn-Se.depth-(wt.height-Tn);wn<fn&&(dn+=.5*(fn-wn),Tn+=.5*(fn-wn)),xn=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:wt,shift:Tn},{type:"elem",elem:Se,shift:-dn}]},f)}Y=f.havingStyle(h),xn.height*=Y.sizeMultiplier/f.sizeMultiplier,xn.depth*=Y.sizeMultiplier/f.sizeMultiplier;var tr;h.size===x.DISPLAY.size?tr=f.fontMetrics().delim1:tr=f.fontMetrics().delim2;var Un,Er;return u.leftDelim==null?Un=Oi(f,["mopen"]):Un=Hr.customSizedDelim(u.leftDelim,tr,!0,f.havingStyle(h),u.mode,["mopen"]),u.continued?Er=Kt.makeSpan([]):u.rightDelim==null?Er=Oi(f,["mclose"]):Er=Hr.customSizedDelim(u.rightDelim,tr,!0,f.havingStyle(h),u.mode,["mclose"]),Kt.makeSpan(["mord"].concat(Y.sizingClasses(f)),[Un,Kt.makeSpan(["mfrac"],[xn]),Er],f)},ao=function(u,f){var h=new Ln.MathNode("mfrac",[Pr(u.numer,f),Pr(u.denom,f)]);if(!u.hasBarLine)h.setAttribute("linethickness","0px");else if(u.barSize){var b=bt(u.barSize,f);h.setAttribute("linethickness",b+"em")}var M=Ya(u.size,f.style);if(M.size!==f.style.size){h=new Ln.MathNode("mstyle",[h]);var Y=M.size===x.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",Y),h.setAttribute("scriptlevel","0")}if(u.leftDelim!=null||u.rightDelim!=null){var Se=[];if(u.leftDelim!=null){var Me=new Ln.MathNode("mo",[new Ln.TextNode(u.leftDelim.replace("\\",""))]);Me.setAttribute("fence","true"),Se.push(Me)}if(Se.push(h),u.rightDelim!=null){var et=new Ln.MathNode("mo",[new Ln.TextNode(u.rightDelim.replace("\\",""))]);et.setAttribute("fence","true"),Se.push(et)}return Os(Se)}return h};On({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0],Y=f[1],Se,Me=null,et=null,wt="auto";switch(b){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Se=!0;break;case"\\\\atopfrac":Se=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Se=!1,Me="(",et=")";break;case"\\\\bracefrac":Se=!1,Me="\\{",et="\\}";break;case"\\\\brackfrac":Se=!1,Me="[",et="]";break;default:throw new Error("Unrecognized genfrac command")}switch(b){case"\\cfrac":case"\\dfrac":case"\\dbinom":wt="display";break;case"\\tfrac":case"\\tbinom":wt="text";break}return{type:"genfrac",mode:h.mode,continued:b==="\\cfrac",numer:M,denom:Y,hasBarLine:Se,leftDelim:Me,rightDelim:et,size:wt,barSize:null}},htmlBuilder:Na,mathmlBuilder:ao}),On({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(u){var f=u.parser,h=u.funcName,b=u.token,M;switch(h){case"\\over":M="\\frac";break;case"\\choose":M="\\binom";break;case"\\atop":M="\\\\atopfrac";break;case"\\brace":M="\\\\bracefrac";break;case"\\brack":M="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:M,token:b}}});var Bs=["display","text","script","scriptscript"],Ws=function(u){var f=null;return u.length>0&&(f=u,f=f==="."?null:f),f};On({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(u,f){var h=u.parser,b=f[4],M=f[5],Y=hr(f[0],"atom");Y&&(Y=Yr(f[0],"open"));var Se=Y?Ws(Y.text):null,Me=hr(f[1],"atom");Me&&(Me=Yr(f[1],"close"));var et=Me?Ws(Me.text):null,wt=ar(f[2],"size"),Mt,Ut=null;wt.isBlank?Mt=!0:(Ut=wt.value,Mt=Ut.number>0);var nn="auto",dn=hr(f[3],"ordgroup");if(dn){if(dn.body.length>0){var fn=ar(dn.body[0],"textord");nn=Bs[Number(fn.text)]}}else dn=ar(f[3],"textord"),nn=Bs[Number(dn.text)];return{type:"genfrac",mode:h.mode,numer:b,denom:M,continued:!1,hasBarLine:Mt,barSize:Ut,leftDelim:Se,rightDelim:et,size:nn}},htmlBuilder:Na,mathmlBuilder:ao}),On({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(u,f){var h=u.parser,b=u.funcName,M=u.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:ar(f[0],"size").value,token:M}}}),On({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0],Y=W(ar(f[1],"infix").size),Se=f[2],Me=Y.number>0;return{type:"genfrac",mode:h.mode,numer:M,denom:Se,continued:!1,hasBarLine:Me,barSize:Y,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Na,mathmlBuilder:ao});var Bo=function(u,f){var h=f.style,b,M,Y=hr(u,"supsub");Y?(b=Y.sup?Lr(Y.sup,f.havingStyle(h.sup()),f):Lr(Y.sub,f.havingStyle(h.sub()),f),M=ar(Y.base,"horizBrace")):M=ar(u,"horizBrace");var Se=Lr(M.base,f.havingBaseStyle(x.DISPLAY)),Me=as.svgSpan(M,f),et;if(M.isOver?(et=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se},{type:"kern",size:.1},{type:"elem",elem:Me}]},f),et.children[0].children[0].children[1].classes.push("svg-align")):(et=Kt.makeVList({positionType:"bottom",positionData:Se.depth+.1+Me.height,children:[{type:"elem",elem:Me},{type:"kern",size:.1},{type:"elem",elem:Se}]},f),et.children[0].children[0].children[0].classes.push("svg-align")),b){var wt=Kt.makeSpan(["mord",M.isOver?"mover":"munder"],[et],f);M.isOver?et=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:wt},{type:"kern",size:.2},{type:"elem",elem:b}]},f):et=Kt.makeVList({positionType:"bottom",positionData:wt.depth+.2+b.height+b.depth,children:[{type:"elem",elem:b},{type:"kern",size:.2},{type:"elem",elem:wt}]},f)}return Kt.makeSpan(["mord",M.isOver?"mover":"munder"],[et],f)},Mn=function(u,f){var h=as.mathMLnode(u.label);return new Ln.MathNode(u.isOver?"mover":"munder",[Pr(u.base,f),h])};On({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=u.funcName;return{type:"horizBrace",mode:h.mode,label:b,isOver:/^\\over/.test(b),base:f[0]}},htmlBuilder:Bo,mathmlBuilder:Mn}),On({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(u,f){var h=u.parser,b=f[1],M=ar(f[0],"url").url;return h.settings.isTrusted({command:"\\href",url:M})?{type:"href",mode:h.mode,href:M,body:Dr(b)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(u,f){var h=qr(u.body,f,!1);return Kt.makeAnchor(u.href,[],h,f)},mathmlBuilder:function(u,f){var h=ls(u.body,f);return h instanceof yr||(h=new yr("mrow",[h])),h.setAttribute("href",u.href),h}}),On({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(u,f){var h=u.parser,b=ar(f[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:b}))return h.formatUnsupportedCmd("\\url");for(var M=[],Y=0;Y<b.length;Y++){var Se=b[Y];Se==="~"&&(Se="\\textasciitilde"),M.push({type:"textord",mode:"text",text:Se})}var Me={type:"text",mode:h.mode,font:"\\texttt",body:M};return{type:"href",mode:h.mode,href:b,body:Dr(Me)}}}),On({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(u,f){var h=u.parser;return{type:"htmlmathml",mode:h.mode,html:Dr(f[0]),mathml:Dr(f[1])}},htmlBuilder:function(u,f){var h=qr(u.html,f,!1);return Kt.makeFragment(h)},mathmlBuilder:function(u,f){return ls(u.mathml,f)}});var oo=function(u){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(u))return{number:+u,unit:"bp"};var f=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(u);if(!f)throw new g("Invalid size: '"+u+"' in \\includegraphics");var h={number:+(f[1]+f[2]),unit:f[3]};if(!Sn(h))throw new g("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};On({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(u,f,h){var b=u.parser,M={number:0,unit:"em"},Y={number:.9,unit:"em"},Se={number:0,unit:"em"},Me="";if(h[0])for(var et=ar(h[0],"raw").string,wt=et.split(","),Mt=0;Mt<wt.length;Mt++){var Ut=wt[Mt].split("=");if(Ut.length===2){var nn=Ut[1].trim();switch(Ut[0].trim()){case"alt":Me=nn;break;case"width":M=oo(nn);break;case"height":Y=oo(nn);break;case"totalheight":Se=oo(nn);break;default:throw new g("Invalid key: '"+Ut[0]+"' in \\includegraphics.")}}}var dn=ar(f[0],"url").url;return Me===""&&(Me=dn,Me=Me.replace(/^.*[\\/]/,""),Me=Me.substring(0,Me.lastIndexOf("."))),b.settings.isTrusted({command:"\\includegraphics",url:dn})?{type:"includegraphics",mode:b.mode,alt:Me,width:M,height:Y,totalheight:Se,src:dn}:b.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(u,f){var h=bt(u.height,f),b=0;u.totalheight.number>0&&(b=bt(u.totalheight,f)-h,b=Number(b.toFixed(2)));var M=0;u.width.number>0&&(M=bt(u.width,f));var Y={height:h+b+"em"};M>0&&(Y.width=M+"em"),b>0&&(Y.verticalAlign=-b+"em");var Se=new Z(u.src,u.alt,Y);return Se.height=h,Se.depth=b,Se},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mglyph",[]);h.setAttribute("alt",u.alt);var b=bt(u.height,f),M=0;if(u.totalheight.number>0&&(M=bt(u.totalheight,f)-b,M=M.toFixed(2),h.setAttribute("valign","-"+M+"em")),h.setAttribute("height",b+M+"em"),u.width.number>0){var Y=bt(u.width,f);h.setAttribute("width",Y+"em")}return h.setAttribute("src",u.src),h}}),On({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,f){var h=u.parser,b=u.funcName,M=ar(f[0],"size");if(h.settings.strict){var Y=b[1]==="m",Se=M.value.unit==="mu";Y?(Se||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" supports only mu units, "+("not "+M.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" works only in math mode")):Se&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:M.value}},htmlBuilder:function(u,f){return Kt.makeGlue(u.dimension,f)},mathmlBuilder:function(u,f){var h=bt(u.dimension,f);return new Ln.SpaceNode(h)}}),On({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];return{type:"lap",mode:h.mode,alignment:b.slice(5),body:M}},htmlBuilder:function(u,f){var h;u.alignment==="clap"?(h=Kt.makeSpan([],[Lr(u.body,f)]),h=Kt.makeSpan(["inner"],[h],f)):h=Kt.makeSpan(["inner"],[Lr(u.body,f)]);var b=Kt.makeSpan(["fix"],[]),M=Kt.makeSpan([u.alignment],[h,b],f),Y=Kt.makeSpan(["strut"]);return Y.style.height=M.height+M.depth+"em",Y.style.verticalAlign=-M.depth+"em",M.children.unshift(Y),M=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:M}]},f),Kt.makeSpan(["mord"],[M],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Pr(u.body,f)]);if(u.alignment!=="rlap"){var b=u.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",b+"width")}return h.setAttribute("width","0px"),h}}),On({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,f){var h=u.funcName,b=u.parser,M=b.mode;b.switchMode("math");var Y=h==="\\("?"\\)":"$",Se=b.parseExpression(!1,Y);return b.expect(Y),b.switchMode(M),{type:"styling",mode:b.mode,style:"text",body:Se}}}),On({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,f){throw new g("Mismatched "+u.funcName)}});var jr=function(u,f){switch(f.style.size){case x.DISPLAY.size:return u.display;case x.TEXT.size:return u.text;case x.SCRIPT.size:return u.script;case x.SCRIPTSCRIPT.size:return u.scriptscript;default:return u.text}};On({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(u,f){var h=u.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(u,f){var h=jr(u,f),b=qr(h,f,!1);return Kt.makeFragment(b)},mathmlBuilder:function(u,f){var h=jr(u,f);return ls(h,f)}});var Ba=function(u,f,h,b,M,Y,Se){u=Kt.makeSpan([],[u]);var Me,et;if(f){var wt=Lr(f,b.havingStyle(M.sup()),b);et={elem:wt,kern:Math.max(b.fontMetrics().bigOpSpacing1,b.fontMetrics().bigOpSpacing3-wt.depth)}}if(h){var Mt=Lr(h,b.havingStyle(M.sub()),b);Me={elem:Mt,kern:Math.max(b.fontMetrics().bigOpSpacing2,b.fontMetrics().bigOpSpacing4-Mt.height)}}var Ut;if(et&&Me){var nn=b.fontMetrics().bigOpSpacing5+Me.elem.height+Me.elem.depth+Me.kern+u.depth+Se;Ut=Kt.makeVList({positionType:"bottom",positionData:nn,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:Me.elem,marginLeft:-Y+"em"},{type:"kern",size:Me.kern},{type:"elem",elem:u},{type:"kern",size:et.kern},{type:"elem",elem:et.elem,marginLeft:Y+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else if(Me){var dn=u.height-Se;Ut=Kt.makeVList({positionType:"top",positionData:dn,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:Me.elem,marginLeft:-Y+"em"},{type:"kern",size:Me.kern},{type:"elem",elem:u}]},b)}else if(et){var fn=u.depth+Se;Ut=Kt.makeVList({positionType:"bottom",positionData:fn,children:[{type:"elem",elem:u},{type:"kern",size:et.kern},{type:"elem",elem:et.elem,marginLeft:Y+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else return u;return Kt.makeSpan(["mop","op-limits"],[Ut],b)},Xa=["\\smallint"],Da=function(u,f){var h,b,M=!1,Y,Se=hr(u,"supsub");Se?(h=Se.sup,b=Se.sub,Y=ar(Se.base,"op"),M=!0):Y=ar(u,"op");var Me=f.style,et=!1;Me.size===x.DISPLAY.size&&Y.symbol&&!j.contains(Xa,Y.name)&&(et=!0);var wt;if(Y.symbol){var Mt=et?"Size2-Regular":"Size1-Regular",Ut="";if((Y.name==="\\oiint"||Y.name==="\\oiiint")&&(Ut=Y.name.substr(1),Y.name=Ut==="oiint"?"\\iint":"\\iiint"),wt=Kt.makeSymbol(Y.name,Mt,"math",f,["mop","op-symbol",et?"large-op":"small-op"]),Ut.length>0){var nn=wt.italic,dn=Kt.staticSvg(Ut+"Size"+(et?"2":"1"),f);wt=Kt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:wt,shift:0},{type:"elem",elem:dn,shift:et?.08:0}]},f),Y.name="\\"+Ut,wt.classes.unshift("mop"),wt.italic=nn}}else if(Y.body){var fn=qr(Y.body,f,!0);fn.length===1&&fn[0]instanceof me?(wt=fn[0],wt.classes[0]="mop"):wt=Kt.makeSpan(["mop"],Kt.tryCombineChars(fn),f)}else{for(var Tn=[],xn=1;xn<Y.name.length;xn++)Tn.push(Kt.mathsym(Y.name[xn],Y.mode,f));wt=Kt.makeSpan(["mop"],Tn,f)}var wn=0,kn=0;return(wt instanceof me||Y.name==="\\oiint"||Y.name==="\\oiiint")&&!Y.suppressBaseShift&&(wn=(wt.height-wt.depth)/2-f.fontMetrics().axisHeight,kn=wt.italic),M?Ba(wt,h,b,f,Me,kn,wn):(wn&&(wt.style.position="relative",wt.style.top=wn+"em"),wt)},Qa=function(u,f){var h;if(u.symbol)h=new yr("mo",[Fi(u.name,u.mode)]),j.contains(Xa,u.name)&&h.setAttribute("largeop","false");else if(u.body)h=new yr("mo",ss(u.body,f));else{h=new yr("mi",[new Gn(u.name.slice(1))]);var b=new yr("mo",[Fi("\u2061","text")]);u.parentIsSupSub?h=new yr("mo",[h,b]):h=ki([h,b])}return h},Sl={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};On({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(u,f){var h=u.parser,b=u.funcName,M=b;return M.length===1&&(M=Sl[M]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:M}},htmlBuilder:Da,mathmlBuilder:Qa}),On({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=f[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dr(b)}},htmlBuilder:Da,mathmlBuilder:Qa});var rl={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};On({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(u){var f=u.parser,h=u.funcName;return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Da,mathmlBuilder:Qa}),On({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(u){var f=u.parser,h=u.funcName;return{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Da,mathmlBuilder:Qa}),On({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(u){var f=u.parser,h=u.funcName,b=h;return b.length===1&&(b=rl[b]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:Da,mathmlBuilder:Qa});var _o=function(u,f){var h,b,M=!1,Y,Se=hr(u,"supsub");Se?(h=Se.sup,b=Se.sub,Y=ar(Se.base,"operatorname"),M=!0):Y=ar(u,"operatorname");var Me;if(Y.body.length>0){for(var et=Y.body.map(function(nn){var dn=nn.text;return typeof dn=="string"?{type:"textord",mode:nn.mode,text:dn}:nn}),wt=qr(et,f.withFont("mathrm"),!0),Mt=0;Mt<wt.length;Mt++){var Ut=wt[Mt];Ut instanceof me&&(Ut.text=Ut.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Me=Kt.makeSpan(["mop"],wt,f)}else Me=Kt.makeSpan(["mop"],[],f);return M?Ba(Me,h,b,f,f.style,0,0):Me},lo=function(u,f){for(var h=ss(u.body,f.withFont("mathrm")),b=!0,M=0;M<h.length;M++){var Y=h[M];if(!(Y instanceof Ln.SpaceNode))if(Y instanceof Ln.MathNode)switch(Y.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Se=Y.children[0];Y.children.length===1&&Se instanceof Ln.TextNode?Se.text=Se.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):b=!1;break}default:b=!1}else b=!1}if(b){var Me=h.map(function(Mt){return Mt.toText()}).join("");h=[new Ln.TextNode(Me)]}var et=new Ln.MathNode("mi",h);et.setAttribute("mathvariant","normal");var wt=new Ln.MathNode("mo",[Fi("\u2061","text")]);return u.parentIsSupSub?new Ln.MathNode("mo",[et,wt]):Ln.newDocumentFragment([et,wt])};On({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];return{type:"operatorname",mode:h.mode,body:Dr(M),alwaysHandleSupSub:b==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:_o,mathmlBuilder:lo}),mr({type:"ordgroup",htmlBuilder:function(u,f){return u.semisimple?Kt.makeFragment(qr(u.body,f,!1)):Kt.makeSpan(["mord"],qr(u.body,f,!0),f)},mathmlBuilder:function(u,f){return ls(u.body,f,!0)}}),On({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(u,f){var h=u.parser,b=f[0];return{type:"overline",mode:h.mode,body:b}},htmlBuilder:function(u,f){var h=Lr(u.body,f.havingCrampedStyle()),b=Kt.makeLineSpan("overline-line",f),M=f.fontMetrics().defaultRuleThickness,Y=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*M},{type:"elem",elem:b},{type:"kern",size:M}]},f);return Kt.makeSpan(["mord","overline"],[Y],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[new Ln.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Ln.MathNode("mover",[Pr(u.body,f),h]);return b.setAttribute("accent","true"),b}}),On({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,b=f[0];return{type:"phantom",mode:h.mode,body:Dr(b)}},htmlBuilder:function(u,f){var h=qr(u.body,f.withPhantom(),!1);return Kt.makeFragment(h)},mathmlBuilder:function(u,f){var h=ss(u.body,f);return new Ln.MathNode("mphantom",h)}}),On({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,b=f[0];return{type:"hphantom",mode:h.mode,body:b}},htmlBuilder:function(u,f){var h=Kt.makeSpan([],[Lr(u.body,f.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var b=0;b<h.children.length;b++)h.children[b].height=0,h.children[b].depth=0;return h=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f),Kt.makeSpan(["mord"],[h],f)},mathmlBuilder:function(u,f){var h=ss(Dr(u.body),f),b=new Ln.MathNode("mphantom",h),M=new Ln.MathNode("mpadded",[b]);return M.setAttribute("height","0px"),M.setAttribute("depth","0px"),M}}),On({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,b=f[0];return{type:"vphantom",mode:h.mode,body:b}},htmlBuilder:function(u,f){var h=Kt.makeSpan(["inner"],[Lr(u.body,f.withPhantom())]),b=Kt.makeSpan(["fix"],[]);return Kt.makeSpan(["mord","rlap"],[h,b],f)},mathmlBuilder:function(u,f){var h=ss(Dr(u.body),f),b=new Ln.MathNode("mphantom",h),M=new Ln.MathNode("mpadded",[b]);return M.setAttribute("width","0px"),M}}),On({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(u,f){var h=u.parser,b=ar(f[0],"size").value,M=f[1];return{type:"raisebox",mode:h.mode,dy:b,body:M}},htmlBuilder:function(u,f){var h=Lr(u.body,f),b=bt(u.dy,f);return Kt.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:h}]},f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Pr(u.body,f)]),b=u.dy.number+u.dy.unit;return h.setAttribute("voffset",b),h}}),On({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(u,f,h){var b=u.parser,M=h[0],Y=ar(f[0],"size"),Se=ar(f[1],"size");return{type:"rule",mode:b.mode,shift:M&&ar(M,"size").value,width:Y.value,height:Se.value}},htmlBuilder:function(u,f){var h=Kt.makeSpan(["mord","rule"],[],f),b=bt(u.width,f),M=bt(u.height,f),Y=u.shift?bt(u.shift,f):0;return h.style.borderRightWidth=b+"em",h.style.borderTopWidth=M+"em",h.style.bottom=Y+"em",h.width=b,h.height=M+Y,h.depth=-Y,h.maxFontSize=M*1.125*f.sizeMultiplier,h},mathmlBuilder:function(u,f){var h=bt(u.width,f),b=bt(u.height,f),M=u.shift?bt(u.shift,f):0,Y=f.color&&f.getColor()||"black",Se=new Ln.MathNode("mspace");Se.setAttribute("mathbackground",Y),Se.setAttribute("width",h+"em"),Se.setAttribute("height",b+"em");var Me=new Ln.MathNode("mpadded",[Se]);return M>=0?Me.setAttribute("height","+"+M+"em"):(Me.setAttribute("height",M+"em"),Me.setAttribute("depth","+"+-M+"em")),Me.setAttribute("voffset",M+"em"),Me}});function Ja(B,u,f){for(var h=qr(B,u,!1),b=u.sizeMultiplier/f.sizeMultiplier,M=0;M<h.length;M++){var Y=h[M].classes.indexOf("sizing");Y<0?Array.prototype.push.apply(h[M].classes,u.sizingClasses(f)):h[M].classes[Y+1]==="reset-size"+u.size&&(h[M].classes[Y+1]="reset-size"+f.size),h[M].height*=b,h[M].depth*=b}return Kt.makeFragment(h)}var $o=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Cl=function(u,f){var h=f.havingSize(u.size);return Ja(u.body,h,f)};On({type:"sizing",names:$o,props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.breakOnTokenText,b=u.funcName,M=u.parser,Y=M.parseExpression(!1,h);return{type:"sizing",mode:M.mode,size:$o.indexOf(b)+1,body:Y}},htmlBuilder:Cl,mathmlBuilder:function(u,f){var h=f.havingSize(u.size),b=ss(u.body,h),M=new Ln.MathNode("mstyle",b);return M.setAttribute("mathsize",h.sizeMultiplier+"em"),M}}),On({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(u,f,h){var b=u.parser,M=!1,Y=!1,Se=h[0]&&ar(h[0],"ordgroup");if(Se)for(var Me="",et=0;et<Se.body.length;++et){var wt=Se.body[et];if(Me=wt.text,Me==="t")M=!0;else if(Me==="b")Y=!0;else{M=!1,Y=!1;break}}else M=!0,Y=!0;var Mt=f[0];return{type:"smash",mode:b.mode,body:Mt,smashHeight:M,smashDepth:Y}},htmlBuilder:function(u,f){var h=Kt.makeSpan([],[Lr(u.body,f)]);if(!u.smashHeight&&!u.smashDepth)return h;if(u.smashHeight&&(h.height=0,h.children))for(var b=0;b<h.children.length;b++)h.children[b].height=0;if(u.smashDepth&&(h.depth=0,h.children))for(var M=0;M<h.children.length;M++)h.children[M].depth=0;var Y=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f);return Kt.makeSpan(["mord"],[Y],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Pr(u.body,f)]);return u.smashHeight&&h.setAttribute("height","0px"),u.smashDepth&&h.setAttribute("depth","0px"),h}}),On({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,f,h){var b=u.parser,M=h[0],Y=f[0];return{type:"sqrt",mode:b.mode,body:Y,index:M}},htmlBuilder:function(u,f){var h=Lr(u.body,f.havingCrampedStyle());h.height===0&&(h.height=f.fontMetrics().xHeight),h=Kt.wrapFragment(h,f);var b=f.fontMetrics(),M=b.defaultRuleThickness,Y=M;f.style.id<x.TEXT.id&&(Y=f.fontMetrics().xHeight);var Se=M+Y/4,Me=h.height+h.depth+Se+M,et=Hr.sqrtImage(Me,f),wt=et.span,Mt=et.ruleWidth,Ut=et.advanceWidth,nn=wt.height-Mt;nn>h.height+h.depth+Se&&(Se=(Se+nn-h.height-h.depth)/2);var dn=wt.height-h.height-Se-Mt;h.style.paddingLeft=Ut+"em";var fn=Kt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+dn)},{type:"elem",elem:wt},{type:"kern",size:Mt}]},f);if(u.index){var Tn=f.havingStyle(x.SCRIPTSCRIPT),xn=Lr(u.index,Tn,f),wn=.6*(fn.height-fn.depth),kn=Kt.makeVList({positionType:"shift",positionData:-wn,children:[{type:"elem",elem:xn}]},f),Jn=Kt.makeSpan(["root"],[kn]);return Kt.makeSpan(["mord","sqrt"],[Jn,fn],f)}else return Kt.makeSpan(["mord","sqrt"],[fn],f)},mathmlBuilder:function(u,f){var h=u.body,b=u.index;return b?new Ln.MathNode("mroot",[Pr(h,f),Pr(b,f)]):new Ln.MathNode("msqrt",[Pr(h,f)])}});var Fo={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};On({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.breakOnTokenText,b=u.funcName,M=u.parser,Y=M.parseExpression(!0,h),Se=b.slice(1,b.length-5);return{type:"styling",mode:M.mode,style:Se,body:Y}},htmlBuilder:function(u,f){var h=Fo[u.style],b=f.havingStyle(h).withFont("");return Ja(u.body,b,f)},mathmlBuilder:function(u,f){var h=Fo[u.style],b=f.havingStyle(h),M=ss(u.body,b),Y=new Ln.MathNode("mstyle",M),Se={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Me=Se[u.style];return Y.setAttribute("scriptlevel",Me[0]),Y.setAttribute("displaystyle",Me[1]),Y}});var wl=function(u,f){var h=u.base;if(h)if(h.type==="op"){var b=h.limits&&(f.style.size===x.DISPLAY.size||h.alwaysHandleSupSub);return b?Da:null}else if(h.type==="operatorname"){var M=h.alwaysHandleSupSub&&(f.style.size===x.DISPLAY.size||h.limits);return M?_o:null}else{if(h.type==="accent")return j.isCharacterBox(h.base)?ur:null;if(h.type==="horizBrace"){var Y=!u.sub;return Y===h.isOver?Bo:null}else return null}else return null};mr({type:"supsub",htmlBuilder:function(u,f){var h=wl(u,f);if(h)return h(u,f);var b=u.base,M=u.sup,Y=u.sub,Se=Lr(b,f),Me,et,wt=f.fontMetrics(),Mt=0,Ut=0,nn=b&&j.isCharacterBox(b);if(M){var dn=f.havingStyle(f.style.sup());Me=Lr(M,dn,f),nn||(Mt=Se.height-dn.fontMetrics().supDrop*dn.sizeMultiplier/f.sizeMultiplier)}if(Y){var fn=f.havingStyle(f.style.sub());et=Lr(Y,fn,f),nn||(Ut=Se.depth+fn.fontMetrics().subDrop*fn.sizeMultiplier/f.sizeMultiplier)}var Tn;f.style===x.DISPLAY?Tn=wt.sup1:f.style.cramped?Tn=wt.sup3:Tn=wt.sup2;var xn=f.sizeMultiplier,wn=.5/wt.ptPerEm/xn+"em",kn=null;if(et){var Jn=u.base&&u.base.type==="op"&&u.base.name&&(u.base.name==="\\oiint"||u.base.name==="\\oiiint");(Se instanceof me||Jn)&&(kn=-Se.italic+"em")}var tr;if(Me&&et){Mt=Math.max(Mt,Tn,Me.depth+.25*wt.xHeight),Ut=Math.max(Ut,wt.sub2);var Un=wt.defaultRuleThickness,Er=4*Un;if(Mt-Me.depth-(et.height-Ut)<Er){Ut=Er-(Mt-Me.depth)+et.height;var Ar=.8*wt.xHeight-(Mt-Me.depth);Ar>0&&(Mt+=Ar,Ut-=Ar)}var gi=[{type:"elem",elem:et,shift:Ut,marginRight:wn,marginLeft:kn},{type:"elem",elem:Me,shift:-Mt,marginRight:wn}];tr=Kt.makeVList({positionType:"individualShift",children:gi},f)}else if(et){Ut=Math.max(Ut,wt.sub1,et.height-.8*wt.xHeight);var ni=[{type:"elem",elem:et,marginLeft:kn,marginRight:wn}];tr=Kt.makeVList({positionType:"shift",positionData:Ut,children:ni},f)}else if(Me)Mt=Math.max(Mt,Tn,Me.depth+.25*wt.xHeight),tr=Kt.makeVList({positionType:"shift",positionData:-Mt,children:[{type:"elem",elem:Me,marginRight:wn}]},f);else throw new Error("supsub must have either sup or sub.");var kt=ii(Se,"right")||"mord";return Kt.makeSpan([kt],[Se,Kt.makeSpan(["msupsub"],[tr])],f)},mathmlBuilder:function(u,f){var h=!1,b,M,Y=hr(u.base,"horizBrace");Y&&(M=!!u.sup,M===Y.isOver&&(h=!0,b=Y.isOver)),u.base&&(u.base.type==="op"||u.base.type==="operatorname")&&(u.base.parentIsSupSub=!0);var Se=[Pr(u.base,f)];u.sub&&Se.push(Pr(u.sub,f)),u.sup&&Se.push(Pr(u.sup,f));var Me;if(h)Me=b?"mover":"munder";else if(u.sub)if(u.sup){var Mt=u.base;Mt&&Mt.type==="op"&&Mt.limits&&f.style===x.DISPLAY||Mt&&Mt.type==="operatorname"&&Mt.alwaysHandleSupSub&&(f.style===x.DISPLAY||Mt.limits)?Me="munderover":Me="msubsup"}else{var wt=u.base;wt&&wt.type==="op"&&wt.limits&&(f.style===x.DISPLAY||wt.alwaysHandleSupSub)||wt&&wt.type==="operatorname"&&wt.alwaysHandleSupSub&&(wt.limits||f.style===x.DISPLAY)?Me="munder":Me="msub"}else{var et=u.base;et&&et.type==="op"&&et.limits&&(f.style===x.DISPLAY||et.alwaysHandleSupSub)||et&&et.type==="operatorname"&&et.alwaysHandleSupSub&&(et.limits||f.style===x.DISPLAY)?Me="mover":Me="msup"}var Ut=new Ln.MathNode(Me,Se);return Ut}}),mr({type:"atom",htmlBuilder:function(u,f){return Kt.mathsym(u.text,u.mode,f,["m"+u.family])},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[Fi(u.text,u.mode)]);if(u.family==="bin"){var b=vs(u,f);b==="bold-italic"&&h.setAttribute("mathvariant",b)}else u.family==="punct"?h.setAttribute("separator","true"):(u.family==="open"||u.family==="close")&&h.setAttribute("stretchy","false");return h}});var xo={mi:"italic",mn:"normal",mtext:"normal"};mr({type:"mathord",htmlBuilder:function(u,f){return Kt.makeOrd(u,f,"mathord")},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mi",[Fi(u.text,u.mode,f)]),b=vs(u,f)||"italic";return b!==xo[h.type]&&h.setAttribute("mathvariant",b),h}}),mr({type:"textord",htmlBuilder:function(u,f){return Kt.makeOrd(u,f,"textord")},mathmlBuilder:function(u,f){var h=Fi(u.text,u.mode,f),b=vs(u,f)||"normal",M;return u.mode==="text"?M=new Ln.MathNode("mtext",[h]):/[0-9]/.test(u.text)?M=new Ln.MathNode("mn",[h]):u.text==="\\prime"?M=new Ln.MathNode("mo",[h]):M=new Ln.MathNode("mi",[h]),b!==xo[M.type]&&M.setAttribute("mathvariant",b),M}});var po={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},qa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};mr({type:"spacing",htmlBuilder:function(u,f){if(qa.hasOwnProperty(u.text)){var h=qa[u.text].className||"";if(u.mode==="text"){var b=Kt.makeOrd(u,f,"textord");return b.classes.push(h),b}else return Kt.makeSpan(["mspace",h],[Kt.mathsym(u.text,u.mode,f)],f)}else{if(po.hasOwnProperty(u.text))return Kt.makeSpan(["mspace",po[u.text]],[],f);throw new g('Unknown type of space "'+u.text+'"')}},mathmlBuilder:function(u,f){var h;if(qa.hasOwnProperty(u.text))h=new Ln.MathNode("mtext",[new Ln.TextNode("\xA0")]);else{if(po.hasOwnProperty(u.text))return new Ln.MathNode("mspace");throw new g('Unknown type of space "'+u.text+'"')}return h}});var uo=function(){var u=new Ln.MathNode("mtd",[]);return u.setAttribute("width","50%"),u};mr({type:"tag",mathmlBuilder:function(u,f){var h=new Ln.MathNode("mtable",[new Ln.MathNode("mtr",[uo(),new Ln.MathNode("mtd",[ls(u.body,f)]),uo(),new Ln.MathNode("mtd",[ls(u.tag,f)])])]);return h.setAttribute("width","100%"),h}});var zo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Uo={"\\textbf":"textbf","\\textmd":"textmd"},Ko={"\\textit":"textit","\\textup":"textup"},Eo=function(u,f){var h=u.font;return h?zo[h]?f.withTextFontFamily(zo[h]):Uo[h]?f.withTextFontWeight(Uo[h]):f.withTextFontShape(Ko[h]):f};On({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(u,f){var h=u.parser,b=u.funcName,M=f[0];return{type:"text",mode:h.mode,body:Dr(M),font:b}},htmlBuilder:function(u,f){var h=Eo(u,f),b=qr(u.body,h,!0);return Kt.makeSpan(["mord","text"],Kt.tryCombineChars(b),h)},mathmlBuilder:function(u,f){var h=Eo(u,f);return ls(u.body,h)}}),On({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser;return{type:"underline",mode:h.mode,body:f[0]}},htmlBuilder:function(u,f){var h=Lr(u.body,f),b=Kt.makeLineSpan("underline-line",f),M=f.fontMetrics().defaultRuleThickness,Y=Kt.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:M},{type:"elem",elem:b},{type:"kern",size:3*M},{type:"elem",elem:h}]},f);return Kt.makeSpan(["mord","underline"],[Y],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[new Ln.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Ln.MathNode("munder",[Pr(u.body,f),h]);return b.setAttribute("accentunder","true"),b}}),On({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(u,f,h){throw new g("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(u,f){for(var h=jo(u),b=[],M=f.havingStyle(f.style.text()),Y=0;Y<h.length;Y++){var Se=h[Y];Se==="~"&&(Se="\\textasciitilde"),b.push(Kt.makeSymbol(Se,"Typewriter-Regular",u.mode,M,["mord","texttt"]))}return Kt.makeSpan(["mord","text"].concat(M.sizingClasses(f)),Kt.tryCombineChars(b),M)},mathmlBuilder:function(u,f){var h=new Ln.TextNode(jo(u)),b=new Ln.MathNode("mtext",[h]);return b.setAttribute("mathvariant","monospace"),b}});var jo=function(u){return u.body.replace(/ /g,u.star?"\u2423":"\xA0")},So=Yn,co=So,Zo=`[ \r
|
|
|
]`,Co="\\\\[a-zA-Z@]+",il="\\\\[^\uD800-\uDFFF]",sl=""+Co+Zo+"*",al=new RegExp("^("+Co+")"+Zo+"*$"),wo="[\u0300-\u036F]",Tl=new RegExp(wo+"+$"),go="("+Zo+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(wo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+sl)+("|"+il+")"),ol=function(){function B(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 u=B.prototype;return u.setCatcode=function(h,b){this.catcodes[h]=b},u.lex=function(){var h=this.input,b=this.tokenRegex.lastIndex;if(b===h.length)return new le("EOF",new U(this,b,b));var M=this.tokenRegex.exec(h);if(M===null||M.index!==b)throw new g("Unexpected character: '"+h[b]+"'",new le(h[b],new U(this,b,b+1)));var Y=M[2]||" ";if(this.catcodes[Y]===14){var Se=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Se===-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=Se+1,this.lex()}var Me=Y.match(al);return Me&&(Y=Me[1]),new le(Y,new U(this,b,this.tokenRegex.lastIndex))},B}(),ll=function(){function B(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 u=B.prototype;return u.beginGroup=function(){this.undefStack.push({})},u.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 b in h)h.hasOwnProperty(b)&&(h[b]===void 0?delete this.current[b]:this.current[b]=h[b])},u.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},u.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},u.set=function(h,b,M){if(M===void 0&&(M=!1),M){for(var Y=0;Y<this.undefStack.length;Y++)delete this.undefStack[Y][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=b)}else{var Se=this.undefStack[this.undefStack.length-1];Se&&!Se.hasOwnProperty(h)&&(Se[h]=this.current[h])}this.current[h]=b},B}(),Ho={},ul=Ho;function mt(B,u){Ho[B]=u}mt("\\@firstoftwo",function(B){var u=B.consumeArgs(2);return{tokens:u[0],numArgs:0}}),mt("\\@secondoftwo",function(B){var u=B.consumeArgs(2);return{tokens:u[1],numArgs:0}}),mt("\\@ifnextchar",function(B){var u=B.consumeArgs(3),f=B.future();return u[0].length===1&&u[0][0].text===f.text?{tokens:u[1],numArgs:0}:{tokens:u[2],numArgs:0}}),mt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),mt("\\TextOrMath",function(B){var u=B.consumeArgs(2);return B.mode==="text"?{tokens:u[0],numArgs:0}:{tokens:u[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};mt("\\char",function(B){var u=B.popToken(),f,h="";if(u.text==="'")f=8,u=B.popToken();else if(u.text==='"')f=16,u=B.popToken();else if(u.text==="`")if(u=B.popToken(),u.text[0]==="\\")h=u.text.charCodeAt(1);else{if(u.text==="EOF")throw new g("\\char` missing argument");h=u.text.charCodeAt(0)}else f=10;if(f){if(h=Wo[u.text],h==null||h>=f)throw new g("Invalid base-"+f+" digit "+u.text);for(var b;(b=Wo[B.future().text])!=null&&b<f;)h*=f,h+=b,B.popToken()}return"\\@char{"+h+"}"});var To=function(u,f){var h=u.consumeArgs(1)[0];if(h.length!==1)throw new g("\\gdef's first argument must be a macro name");var b=h[0].text,M=0;for(h=u.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=u.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(M++,parseInt(h[0].text)!==M)throw new g('Argument number "'+h[0].text+'" out of order');h=u.consumeArgs(1)[0]}return u.macros.set(b,{tokens:h,numArgs:M},f),""};mt("\\gdef",function(B){return To(B,!0)}),mt("\\def",function(B){return To(B,!1)}),mt("\\global",function(B){var u=B.consumeArgs(1)[0];if(u.length!==1)throw new g("Invalid command after \\global");var f=u[0].text;if(f==="\\def")return To(B,!0);throw new g("Invalid command '"+f+"' after \\global")});var Ao=function(u,f,h){var b=u.consumeArgs(1)[0];if(b.length!==1)throw new g("\\newcommand's first argument must be a macro name");var M=b[0].text,Y=u.isDefined(M);if(Y&&!f)throw new g("\\newcommand{"+M+"} attempting to redefine "+(M+"; use \\renewcommand"));if(!Y&&!h)throw new g("\\renewcommand{"+M+"} when command "+M+" does not yet exist; use \\newcommand");var Se=0;if(b=u.consumeArgs(1)[0],b.length===1&&b[0].text==="["){for(var Me="",et=u.expandNextToken();et.text!=="]"&&et.text!=="EOF";)Me+=et.text,et=u.expandNextToken();if(!Me.match(/^\s*[0-9]+\s*$/))throw new g("Invalid number of arguments: "+Me);Se=parseInt(Me),b=u.consumeArgs(1)[0]}return u.macros.set(M,{tokens:b,numArgs:Se}),""};mt("\\newcommand",function(B){return Ao(B,!1,!0)}),mt("\\renewcommand",function(B){return Ao(B,!0,!1)}),mt("\\providecommand",function(B){return Ao(B,!0,!0)}),mt("\\bgroup","{"),mt("\\egroup","}"),mt("\\lq","`"),mt("\\rq","'"),mt("\\aa","\\r a"),mt("\\AA","\\r A"),mt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),mt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),mt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),mt("\u212C","\\mathscr{B}"),mt("\u2130","\\mathscr{E}"),mt("\u2131","\\mathscr{F}"),mt("\u210B","\\mathscr{H}"),mt("\u2110","\\mathscr{I}"),mt("\u2112","\\mathscr{L}"),mt("\u2133","\\mathscr{M}"),mt("\u211B","\\mathscr{R}"),mt("\u212D","\\mathfrak{C}"),mt("\u210C","\\mathfrak{H}"),mt("\u2128","\\mathfrak{Z}"),mt("\\Bbbk","\\Bbb{k}"),mt("\xB7","\\cdotp"),mt("\\llap","\\mathllap{\\textrm{#1}}"),mt("\\rlap","\\mathrlap{\\textrm{#1}}"),mt("\\clap","\\mathclap{\\textrm{#1}}"),mt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),mt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),mt("\\ne","\\neq"),mt("\u2260","\\neq"),mt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),mt("\u2209","\\notin"),mt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),mt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),mt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),mt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),mt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),mt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),mt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),mt("\u27C2","\\perp"),mt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),mt("\u220C","\\notni"),mt("\u231C","\\ulcorner"),mt("\u231D","\\urcorner"),mt("\u231E","\\llcorner"),mt("\u231F","\\lrcorner"),mt("\xA9","\\copyright"),mt("\xAE","\\textregistered"),mt("\uFE0F","\\textregistered"),mt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),mt("\u22EE","\\vdots"),mt("\\varGamma","\\mathit{\\Gamma}"),mt("\\varDelta","\\mathit{\\Delta}"),mt("\\varTheta","\\mathit{\\Theta}"),mt("\\varLambda","\\mathit{\\Lambda}"),mt("\\varXi","\\mathit{\\Xi}"),mt("\\varPi","\\mathit{\\Pi}"),mt("\\varSigma","\\mathit{\\Sigma}"),mt("\\varUpsilon","\\mathit{\\Upsilon}"),mt("\\varPhi","\\mathit{\\Phi}"),mt("\\varPsi","\\mathit{\\Psi}"),mt("\\varOmega","\\mathit{\\Omega}"),mt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),mt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),mt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),mt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),mt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),mt("\\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"};mt("\\dots",function(B){var u="\\dotso",f=B.expandAfterFuture().text;return f in Vo?u=Vo[f]:(f.substr(0,4)==="\\not"||f in Je.math&&j.contains(["bin","rel"],Je.math[f].group))&&(u="\\dotsb"),u});var eo={")":!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};mt("\\dotso",function(B){var u=B.future().text;return u in eo?"\\ldots\\,":"\\ldots"}),mt("\\dotsc",function(B){var u=B.future().text;return u in eo&&u!==","?"\\ldots\\,":"\\ldots"}),mt("\\cdots",function(B){var u=B.future().text;return u in eo?"\\@cdots\\,":"\\@cdots"}),mt("\\dotsb","\\cdots"),mt("\\dotsm","\\cdots"),mt("\\dotsi","\\!\\cdots"),mt("\\dotsx","\\ldots\\,"),mt("\\DOTSI","\\relax"),mt("\\DOTSB","\\relax"),mt("\\DOTSX","\\relax"),mt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),mt("\\,","\\tmspace+{3mu}{.1667em}"),mt("\\thinspace","\\,"),mt("\\>","\\mskip{4mu}"),mt("\\:","\\tmspace+{4mu}{.2222em}"),mt("\\medspace","\\:"),mt("\\;","\\tmspace+{5mu}{.2777em}"),mt("\\thickspace","\\;"),mt("\\!","\\tmspace-{3mu}{.1667em}"),mt("\\negthinspace","\\!"),mt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),mt("\\negthickspace","\\tmspace-{5mu}{.277em}"),mt("\\enspace","\\kern.5em "),mt("\\enskip","\\hskip.5em\\relax"),mt("\\quad","\\hskip1em\\relax"),mt("\\qquad","\\hskip2em\\relax"),mt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),mt("\\tag@paren","\\tag@literal{({#1})}"),mt("\\tag@literal",function(B){if(B.macros.get("\\df@tag"))throw new g("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),mt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),mt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),mt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),mt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),mt("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),mt("\\\\","\\newline"),mt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ma=oe["Main-Regular"][84][1]-.7*oe["Main-Regular"][65][1]+"em";mt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ma+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),mt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ma+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),mt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),mt("\\@hspace","\\hskip #1\\relax"),mt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),mt("\\ordinarycolon",":"),mt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),mt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),mt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),mt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),mt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),mt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),mt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),mt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),mt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),mt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),mt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),mt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),mt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),mt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),mt("\u2237","\\dblcolon"),mt("\u2239","\\eqcolon"),mt("\u2254","\\coloneqq"),mt("\u2255","\\eqqcolon"),mt("\u2A74","\\Coloneqq"),mt("\\ratio","\\vcentcolon"),mt("\\coloncolon","\\dblcolon"),mt("\\colonequals","\\coloneqq"),mt("\\coloncolonequals","\\Coloneqq"),mt("\\equalscolon","\\eqqcolon"),mt("\\equalscoloncolon","\\Eqqcolon"),mt("\\colonminus","\\coloneq"),mt("\\coloncolonminus","\\Coloneq"),mt("\\minuscolon","\\eqcolon"),mt("\\minuscoloncolon","\\Eqcolon"),mt("\\coloncolonapprox","\\Colonapprox"),mt("\\coloncolonsim","\\Colonsim"),mt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),mt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),mt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),mt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),mt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),mt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),mt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),mt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),mt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),mt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),mt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),mt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),mt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),mt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),mt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),mt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),mt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),mt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),mt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),mt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),mt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),mt("\u27E6","\\llbracket"),mt("\u27E7","\\rrbracket"),mt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),mt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),mt("\u2983","\\lBrace"),mt("\u2984","\\rBrace"),mt("\\darr","\\downarrow"),mt("\\dArr","\\Downarrow"),mt("\\Darr","\\Downarrow"),mt("\\lang","\\langle"),mt("\\rang","\\rangle"),mt("\\uarr","\\uparrow"),mt("\\uArr","\\Uparrow"),mt("\\Uarr","\\Uparrow"),mt("\\N","\\mathbb{N}"),mt("\\R","\\mathbb{R}"),mt("\\Z","\\mathbb{Z}"),mt("\\alef","\\aleph"),mt("\\alefsym","\\aleph"),mt("\\Alpha","\\mathrm{A}"),mt("\\Beta","\\mathrm{B}"),mt("\\bull","\\bullet"),mt("\\Chi","\\mathrm{X}"),mt("\\clubs","\\clubsuit"),mt("\\cnums","\\mathbb{C}"),mt("\\Complex","\\mathbb{C}"),mt("\\Dagger","\\ddagger"),mt("\\diamonds","\\diamondsuit"),mt("\\empty","\\emptyset"),mt("\\Epsilon","\\mathrm{E}"),mt("\\Eta","\\mathrm{H}"),mt("\\exist","\\exists"),mt("\\harr","\\leftrightarrow"),mt("\\hArr","\\Leftrightarrow"),mt("\\Harr","\\Leftrightarrow"),mt("\\hearts","\\heartsuit"),mt("\\image","\\Im"),mt("\\infin","\\infty"),mt("\\Iota","\\mathrm{I}"),mt("\\isin","\\in"),mt("\\Kappa","\\mathrm{K}"),mt("\\larr","\\leftarrow"),mt("\\lArr","\\Leftarrow"),mt("\\Larr","\\Leftarrow"),mt("\\lrarr","\\leftrightarrow"),mt("\\lrArr","\\Leftrightarrow"),mt("\\Lrarr","\\Leftrightarrow"),mt("\\Mu","\\mathrm{M}"),mt("\\natnums","\\mathbb{N}"),mt("\\Nu","\\mathrm{N}"),mt("\\Omicron","\\mathrm{O}"),mt("\\plusmn","\\pm"),mt("\\rarr","\\rightarrow"),mt("\\rArr","\\Rightarrow"),mt("\\Rarr","\\Rightarrow"),mt("\\real","\\Re"),mt("\\reals","\\mathbb{R}"),mt("\\Reals","\\mathbb{R}"),mt("\\Rho","\\mathrm{P}"),mt("\\sdot","\\cdot"),mt("\\sect","\\S"),mt("\\spades","\\spadesuit"),mt("\\sub","\\subset"),mt("\\sube","\\subseteq"),mt("\\supe","\\supseteq"),mt("\\Tau","\\mathrm{T}"),mt("\\thetasym","\\vartheta"),mt("\\weierp","\\wp"),mt("\\Zeta","\\mathrm{Z}"),mt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),mt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),mt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),mt("\\blue","\\textcolor{##6495ed}{#1}"),mt("\\orange","\\textcolor{##ffa500}{#1}"),mt("\\pink","\\textcolor{##ff00af}{#1}"),mt("\\red","\\textcolor{##df0030}{#1}"),mt("\\green","\\textcolor{##28ae7b}{#1}"),mt("\\gray","\\textcolor{gray}{#1}"),mt("\\purple","\\textcolor{##9d38bd}{#1}"),mt("\\blueA","\\textcolor{##ccfaff}{#1}"),mt("\\blueB","\\textcolor{##80f6ff}{#1}"),mt("\\blueC","\\textcolor{##63d9ea}{#1}"),mt("\\blueD","\\textcolor{##11accd}{#1}"),mt("\\blueE","\\textcolor{##0c7f99}{#1}"),mt("\\tealA","\\textcolor{##94fff5}{#1}"),mt("\\tealB","\\textcolor{##26edd5}{#1}"),mt("\\tealC","\\textcolor{##01d1c1}{#1}"),mt("\\tealD","\\textcolor{##01a995}{#1}"),mt("\\tealE","\\textcolor{##208170}{#1}"),mt("\\greenA","\\textcolor{##b6ffb0}{#1}"),mt("\\greenB","\\textcolor{##8af281}{#1}"),mt("\\greenC","\\textcolor{##74cf70}{#1}"),mt("\\greenD","\\textcolor{##1fab54}{#1}"),mt("\\greenE","\\textcolor{##0d923f}{#1}"),mt("\\goldA","\\textcolor{##ffd0a9}{#1}"),mt("\\goldB","\\textcolor{##ffbb71}{#1}"),mt("\\goldC","\\textcolor{##ff9c39}{#1}"),mt("\\goldD","\\textcolor{##e07d10}{#1}"),mt("\\goldE","\\textcolor{##a75a05}{#1}"),mt("\\redA","\\textcolor{##fca9a9}{#1}"),mt("\\redB","\\textcolor{##ff8482}{#1}"),mt("\\redC","\\textcolor{##f9685d}{#1}"),mt("\\redD","\\textcolor{##e84d39}{#1}"),mt("\\redE","\\textcolor{##bc2612}{#1}"),mt("\\maroonA","\\textcolor{##ffbde0}{#1}"),mt("\\maroonB","\\textcolor{##ff92c6}{#1}"),mt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),mt("\\maroonD","\\textcolor{##ca337c}{#1}"),mt("\\maroonE","\\textcolor{##9e034e}{#1}"),mt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),mt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),mt("\\purpleC","\\textcolor{##aa87ff}{#1}"),mt("\\purpleD","\\textcolor{##7854ab}{#1}"),mt("\\purpleE","\\textcolor{##543b78}{#1}"),mt("\\mintA","\\textcolor{##f5f9e8}{#1}"),mt("\\mintB","\\textcolor{##edf2df}{#1}"),mt("\\mintC","\\textcolor{##e0e5cc}{#1}"),mt("\\grayA","\\textcolor{##f6f7f7}{#1}"),mt("\\grayB","\\textcolor{##f0f1f2}{#1}"),mt("\\grayC","\\textcolor{##e3e5e6}{#1}"),mt("\\grayD","\\textcolor{##d6d8da}{#1}"),mt("\\grayE","\\textcolor{##babec2}{#1}"),mt("\\grayF","\\textcolor{##888d93}{#1}"),mt("\\grayG","\\textcolor{##626569}{#1}"),mt("\\grayH","\\textcolor{##3b3e40}{#1}"),mt("\\grayI","\\textcolor{##21242c}{#1}"),mt("\\kaBlue","\\textcolor{##314453}{#1}"),mt("\\kaGreen","\\textcolor{##71B307}{#1}");var Io={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Go=function(){function B(f,h,b){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=b,this.stack=[]}var u=B.prototype;return u.feed=function(h){this.lexer=new ol(h,this.settings)},u.switchMode=function(h){this.mode=h},u.beginGroup=function(){this.macros.beginGroup()},u.endGroup=function(){this.macros.endGroup()},u.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},u.popToken=function(){return this.future(),this.stack.pop()},u.pushToken=function(h){this.stack.push(h)},u.pushTokens=function(h){var b;(b=this.stack).push.apply(b,h)},u.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},u.consumeArgs=function(h){for(var b=[],M=0;M<h;++M){this.consumeSpaces();var Y=this.popToken();if(Y.text==="{"){for(var Se=[],Me=1;Me!==0;){var et=this.popToken();if(Se.push(et),et.text==="{")++Me;else if(et.text==="}")--Me;else if(et.text==="EOF")throw new g("End of input in macro argument",Y)}Se.pop(),Se.reverse(),b[M]=Se}else{if(Y.text==="EOF")throw new g("End of input expecting macro argument");b[M]=[Y]}}return b},u.expandOnce=function(){var h=this.popToken(),b=h.text,M=this._getExpansion(b);if(M==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 Y=M.tokens;if(M.numArgs){var Se=this.consumeArgs(M.numArgs);Y=Y.slice();for(var Me=Y.length-1;Me>=0;--Me){var et=Y[Me];if(et.text==="#"){if(Me===0)throw new g("Incomplete placeholder at end of macro body",et);if(et=Y[--Me],et.text==="#")Y.splice(Me+1,1);else if(/^[1-9]$/.test(et.text)){var wt;(wt=Y).splice.apply(wt,[Me,2].concat(Se[+et.text-1]))}else throw new g("Not a valid argument number",et)}}}return this.pushTokens(Y),Y},u.expandAfterFuture=function(){return this.expandOnce(),this.future()},u.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof le)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},u.expandMacro=function(h){if(this.macros.get(h)){var b=[],M=this.stack.length;for(this.pushToken(new le(h));this.stack.length>M;){var Y=this.expandOnce();Y instanceof le&&b.push(this.stack.pop())}return b}},u.expandMacroAsText=function(h){var b=this.expandMacro(h);return b&&b.map(function(M){return M.text}).join("")},u._getExpansion=function(h){var b=this.macros.get(h);if(b==null)return b;var M=typeof b=="function"?b(this):b;if(typeof M=="string"){var Y=0;if(M.indexOf("#")!==-1)for(var Se=M.replace(/##/g,"");Se.indexOf("#"+(Y+1))!==-1;)++Y;for(var Me=new ol(M,this.settings),et=[],wt=Me.lex();wt.text!=="EOF";)et.push(wt),wt=Me.lex();et.reverse();var Mt={tokens:et,numArgs:Y};return Mt}return M},u.isDefined=function(h){return this.macros.has(h)||co.hasOwnProperty(h)||Je.math.hasOwnProperty(h)||Je.text.hasOwnProperty(h)||Io.hasOwnProperty(h)},B}(),de={"\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"}},ue={\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"},ze=function(){function B(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 u=B.prototype;return u.expect=function(h,b){if(b===void 0&&(b=!0),this.fetch().text!==h)throw new g("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());b&&this.consume()},u.consume=function(){this.nextToken=null},u.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},u.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},u.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},u.parseExpression=function(h,b){for(var M=[];;){this.mode==="math"&&this.consumeSpaces();var Y=this.fetch();if(B.endOfExpression.indexOf(Y.text)!==-1||b&&Y.text===b||h&&co[Y.text]&&co[Y.text].infix)break;var Se=this.parseAtom(b);if(!Se)break;M.push(Se)}return this.mode==="text"&&this.formLigatures(M),this.handleInfixNodes(M)},u.handleInfixNodes=function(h){for(var b=-1,M,Y=0;Y<h.length;Y++){var Se=hr(h[Y],"infix");if(Se){if(b!==-1)throw new g("only one infix operator per group",Se.token);b=Y,M=Se.replaceWith}}if(b!==-1&&M){var Me,et,wt=h.slice(0,b),Mt=h.slice(b+1);wt.length===1&&wt[0].type==="ordgroup"?Me=wt[0]:Me={type:"ordgroup",mode:this.mode,body:wt},Mt.length===1&&Mt[0].type==="ordgroup"?et=Mt[0]:et={type:"ordgroup",mode:this.mode,body:Mt};var Ut;return M==="\\\\abovefrac"?Ut=this.callFunction(M,[Me,h[b],et],[]):Ut=this.callFunction(M,[Me,et],[]),[Ut]}else return h},u.handleSupSubscript=function(h){var b=this.fetch(),M=b.text;this.consume();var Y=this.parseGroup(h,!1,B.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Y)throw new g("Expected group after '"+M+"'",b);return Y},u.formatUnsupportedCmd=function(h){for(var b=[],M=0;M<h.length;M++)b.push({type:"textord",mode:"text",text:h[M]});var Y={type:"text",mode:this.mode,body:b},Se={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Y]};return Se},u.parseAtom=function(h){var b=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return b;for(var M,Y;;){this.consumeSpaces();var Se=this.fetch();if(Se.text==="\\limits"||Se.text==="\\nolimits"){var Me=hr(b,"op");if(Me){var et=Se.text==="\\limits";Me.limits=et,Me.alwaysHandleSupSub=!0}else if(Me=hr(b,"operatorname"),Me&&Me.alwaysHandleSupSub){var wt=Se.text==="\\limits";Me.limits=wt}else throw new g("Limit controls must follow a math operator",Se);this.consume()}else if(Se.text==="^"){if(M)throw new g("Double superscript",Se);M=this.handleSupSubscript("superscript")}else if(Se.text==="_"){if(Y)throw new g("Double subscript",Se);Y=this.handleSupSubscript("subscript")}else if(Se.text==="'"){if(M)throw new g("Double superscript",Se);var Mt={type:"textord",mode:this.mode,text:"\\prime"},Ut=[Mt];for(this.consume();this.fetch().text==="'";)Ut.push(Mt),this.consume();this.fetch().text==="^"&&Ut.push(this.handleSupSubscript("superscript")),M={type:"ordgroup",mode:this.mode,body:Ut}}else break}return M||Y?{type:"supsub",mode:this.mode,base:b,sup:M,sub:Y}:b},u.parseFunction=function(h,b,M){var Y=this.fetch(),Se=Y.text,Me=co[Se];if(!Me)return null;if(this.consume(),M!=null&&Me.greediness<=M)throw new g("Got function '"+Se+"' with no arguments"+(b?" as "+b:""),Y);if(this.mode==="text"&&!Me.allowedInText)throw new g("Can't use function '"+Se+"' in text mode",Y);if(this.mode==="math"&&Me.allowedInMath===!1)throw new g("Can't use function '"+Se+"' in math mode",Y);var et=this.parseArguments(Se,Me),wt=et.args,Mt=et.optArgs;return this.callFunction(Se,wt,Mt,Y,h)},u.callFunction=function(h,b,M,Y,Se){var Me={funcName:h,parser:this,token:Y,breakOnTokenText:Se},et=co[h];if(et&&et.handler)return et.handler(Me,b,M);throw new g("No function handler for "+h)},u.parseArguments=function(h,b){var M=b.numArgs+b.numOptionalArgs;if(M===0)return{args:[],optArgs:[]};for(var Y=b.greediness,Se=[],Me=[],et=0;et<M;et++){var wt=b.argTypes&&b.argTypes[et],Mt=et<b.numOptionalArgs,Ut=et>0&&!Mt||et===0&&!Mt&&this.mode==="math",nn=this.parseGroupOfType("argument to '"+h+"'",wt,Mt,Y,Ut);if(!nn){if(Mt){Me.push(null);continue}throw new g("Expected group after '"+h+"'",this.fetch())}(Mt?Me:Se).push(nn)}return{args:Se,optArgs:Me}},u.parseGroupOfType=function(h,b,M,Y,Se){switch(b){case"color":return Se&&this.consumeSpaces(),this.parseColorGroup(M);case"size":return Se&&this.consumeSpaces(),this.parseSizeGroup(M);case"url":return this.parseUrlGroup(M,Se);case"math":case"text":return this.parseGroup(h,M,Y,void 0,b,Se);case"hbox":{var Me=this.parseGroup(h,M,Y,void 0,"text",Se);if(!Me)return Me;var et={type:"styling",mode:Me.mode,body:[Me],style:"text"};return et}case"raw":{if(Se&&this.consumeSpaces(),M&&this.fetch().text==="{")return null;var wt=this.parseStringGroup("raw",M,!0);if(wt)return{type:"raw",mode:"text",string:wt.text};throw new g("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,M,Y,void 0,void 0,Se);default:throw new g("Unknown group type as "+h,this.fetch())}},u.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},u.parseStringGroup=function(h,b,M){var Y=b?"[":"{",Se=b?"]":"}",Me=this.fetch();if(Me.text!==Y){if(b)return null;if(M&&Me.text!=="EOF"&&/[^{}[\]]/.test(Me.text))return this.consume(),Me}var et=this.mode;this.mode="text",this.expect(Y);for(var wt="",Mt=this.fetch(),Ut=0,nn=Mt,dn;(dn=this.fetch()).text!==Se||M&&Ut>0;){switch(dn.text){case"EOF":throw new g("Unexpected end of input in "+h,Mt.range(nn,wt));case Y:Ut++;break;case Se:Ut--;break}nn=dn,wt+=nn.text,this.consume()}return this.expect(Se),this.mode=et,Mt.range(nn,wt)},u.parseRegexGroup=function(h,b){var M=this.mode;this.mode="text";for(var Y=this.fetch(),Se=Y,Me="",et;(et=this.fetch()).text!=="EOF"&&h.test(Me+et.text);)Se=et,Me+=Se.text,this.consume();if(Me==="")throw new g("Invalid "+b+": '"+Y.text+"'",Y);return this.mode=M,Y.range(Se,Me)},u.parseColorGroup=function(h){var b=this.parseStringGroup("color",h);if(!b)return null;var M=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(b.text);if(!M)throw new g("Invalid color: '"+b.text+"'",b);var Y=M[0];return/^[0-9a-f]{6}$/i.test(Y)&&(Y="#"+Y),{type:"color-token",mode:this.mode,color:Y}},u.parseSizeGroup=function(h){var b,M=!1;if(!h&&this.fetch().text!=="{"?b=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):b=this.parseStringGroup("size",h),!b)return null;!h&&b.text.length===0&&(b.text="0pt",M=!0);var Y=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(b.text);if(!Y)throw new g("Invalid size: '"+b.text+"'",b);var Se={number:+(Y[1]+Y[2]),unit:Y[3]};if(!Sn(Se))throw new g("Invalid unit: '"+Se.unit+"'",b);return{type:"size",mode:this.mode,value:Se,isBlank:M}},u.parseUrlGroup=function(h,b){this.gullet.lexer.setCatcode("%",13);var M=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!M)return null;var Y=M.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Y}},u.parseGroup=function(h,b,M,Y,Se,Me){var et=this.mode;Se&&this.switchMode(Se),Me&&this.consumeSpaces();var wt=this.fetch(),Mt=wt.text,Ut;if(b?Mt==="[":Mt==="{"||Mt==="\\begingroup"){this.consume();var nn=B.endOfGroup[Mt];this.gullet.beginGroup();var dn=this.parseExpression(!1,nn),fn=this.fetch();this.expect(nn),this.gullet.endGroup(),Ut={type:"ordgroup",mode:this.mode,loc:U.range(wt,fn),body:dn,semisimple:Mt==="\\begingroup"||void 0}}else if(b)Ut=null;else if(Ut=this.parseFunction(Y,h,M)||this.parseSymbol(),Ut==null&&Mt[0]==="\\"&&!Io.hasOwnProperty(Mt)){if(this.settings.throwOnError)throw new g("Undefined control sequence: "+Mt,wt);Ut=this.formatUnsupportedCmd(Mt),this.consume()}return Se&&this.switchMode(et),Ut},u.formLigatures=function(h){for(var b=h.length-1,M=0;M<b;++M){var Y=h[M],Se=Y.text;Se==="-"&&h[M+1].text==="-"&&(M+1<b&&h[M+2].text==="-"?(h.splice(M,3,{type:"textord",mode:"text",loc:U.range(Y,h[M+2]),text:"---"}),b-=2):(h.splice(M,2,{type:"textord",mode:"text",loc:U.range(Y,h[M+1]),text:"--"}),b-=1)),(Se==="'"||Se==="`")&&h[M+1].text===Se&&(h.splice(M,2,{type:"textord",mode:"text",loc:U.range(Y,h[M+1]),text:Se+Se}),b-=1)}},u.parseSymbol=function(){var h=this.fetch(),b=h.text;if(/^\\verb[^a-zA-Z]/.test(b)){this.consume();var M=b.slice(5),Y=M.charAt(0)==="*";if(Y&&(M=M.slice(1)),M.length<2||M.charAt(0)!==M.slice(-1))throw new g(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return M=M.slice(1,-1),{type:"verb",mode:"text",body:M,star:Y}}ue.hasOwnProperty(b[0])&&!Je[this.mode][b[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+b[0]+'" used in math mode',h),b=ue[b[0]]+b.substr(1));var Se=Tl.exec(b);Se&&(b=b.substring(0,Se.index),b==="i"?b="\u0131":b==="j"&&(b="\u0237"));var Me;if(Je[this.mode][b]){this.settings.strict&&this.mode==="math"&&yt.indexOf(b)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+b[0]+'" used in math mode',h);var et=Je[this.mode][b].group,wt=U.range(h),Mt;if(Ct.hasOwnProperty(et)){var Ut=et;Mt={type:"atom",mode:this.mode,family:Ut,loc:wt,text:b}}else Mt={type:et,mode:this.mode,loc:wt,text:b};Me=Mt}else if(b.charCodeAt(0)>=128)this.settings.strict&&(We(b.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+b[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+b[0]+'"'+(" ("+b.charCodeAt(0)+")"),h)),Me={type:"textord",mode:"text",loc:U.range(h),text:b};else return null;if(this.consume(),Se)for(var nn=0;nn<Se[0].length;nn++){var dn=Se[0][nn];if(!de[dn])throw new g("Unknown accent ' "+dn+"'",h);var fn=de[dn][this.mode];if(!fn)throw new g("Accent "+dn+" unsupported in "+this.mode+" mode",h);Me={type:"accent",mode:this.mode,loc:U.range(h),label:fn,isStretchy:!1,isShifty:!0,base:Me}}return Me},B}();ze.endOfExpression=["}","\\endgroup","\\end","\\right","&"],ze.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},ze.SUPSUB_GREEDINESS=1;var nt=function(u,f){if(!(typeof u=="string"||u instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new ze(u,f);delete h.gullet.macros.current["\\df@tag"];var b=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"),b=[{type:"tag",mode:"text",body:b,tag:h.parse()}]}return b},St=nt,It=function(u,f,h){f.textContent="";var b=Ft(u,h).toNode();f.appendChild(b)};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."),It=function(){throw new g("KaTeX doesn't work in quirks mode.")});var Nt=function(u,f){var h=Ft(u,f).toMarkup();return h},Lt=function(u,f){var h=new A(f);return St(u,h)},Zt=function(u,f,h){if(h.throwOnError||!(u instanceof g))throw u;var b=Kt.makeSpan(["katex-error"],[new me(f)]);return b.setAttribute("title",u.toString()),b.setAttribute("style","color:"+h.errorColor),b},Ft=function(u,f){var h=new A(f);try{var b=St(u,h);return ci(b,u,h)}catch(M){return Zt(M,u,h)}},bn=function(u,f){var h=new A(f);try{var b=St(u,h);return zi(b,u,h)}catch(M){return Zt(M,u,h)}},rn={version:"0.11.1",render:It,renderToString:Nt,ParseError:g,__parse:Lt,__renderToDomTree:Ft,__renderToHTMLTree:bn,__setFontMetrics:ot,__defineSymbol:_,__defineMacro:mt,__domTree:{Span:Fe,Anchor:Re,SymbolNode:me,SvgNode:Ee,PathNode:ge,LineNode:we}},tn=d.default=rn}]).default})},32834:function(ln){(function(qe,d){ln.exports=d()})(this,function(){"use strict";function qe(He,it){for(var ct=0;ct<it.length;ct++){var he=it[ct];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(He,he.key,he)}}function d(He,it,ct){return it&&qe(He.prototype,it),ct&&qe(He,ct),He}function l(He,it){if(He){if(typeof He=="string")return ie(He,it);var ct=Object.prototype.toString.call(He).slice(8,-1);if(ct==="Object"&&He.constructor&&(ct=He.constructor.name),ct==="Map"||ct==="Set")return Array.from(He);if(ct==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ct))return ie(He,it)}}function ie(He,it){(it==null||it>He.length)&&(it=He.length);for(var ct=0,he=new Array(it);ct<it;ct++)he[ct]=He[ct];return he}function U(He,it){var ct=typeof Symbol!="undefined"&&He[Symbol.iterator]||He["@@iterator"];if(ct)return(ct=ct.call(He)).next.bind(ct);if(Array.isArray(He)||(ct=l(He))||it&&He&&typeof He.length=="number"){ct&&(He=ct);var he=0;return function(){return he>=He.length?{done:!0}:{done:!1,value:He[he++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le={exports:{}};function F(){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(He){le.exports.defaults=He}le.exports={defaults:F(),getDefaults:F,changeDefaults:g};var q=/[&<>"']/,Q=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,P={"&":"&","<":"<",">":">",'"':""","'":"'"},y=function(it){return P[it]};function S(He,it){if(it){if(q.test(He))return He.replace(Q,y)}else if(o.test(He))return He.replace(C,y);return He}var I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function N(He){return He.replace(I,function(it,ct){return ct=ct.toLowerCase(),ct==="colon"?":":ct.charAt(0)==="#"?ct.charAt(1)==="x"?String.fromCharCode(parseInt(ct.substring(2),16)):String.fromCharCode(+ct.substring(1)):""})}var W=/(^|[^\[])\^/g;function H(He,it){He=He.source||He,it=it||"";var ct={replace:function(be,je){return je=je.source||je,je=je.replace(W,"$1"),He=He.replace(be,je),ct},getRegex:function(){return new RegExp(He,it)}};return ct}var j=/[^\w:]/g,A=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(He,it,ct){if(He){var he;try{he=decodeURIComponent(N(ct)).replace(j,"").toLowerCase()}catch(be){return null}if(he.indexOf("javascript:")===0||he.indexOf("vbscript:")===0||he.indexOf("data:")===0)return null}it&&!A.test(ct)&&(ct=ce(it,ct));try{ct=encodeURI(ct).replace(/%25/g,"%")}catch(be){return null}return ct}var R={},L=/^[^:]+:\/*[^/]*$/,ae=/^([^:]+:)[\s\S]*$/,pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ce(He,it){R[" "+He]||(L.test(He)?R[" "+He]=He+"/":R[" "+He]=Pe(He,"/",!0)),He=R[" "+He];var ct=He.indexOf(":")===-1;return it.substring(0,2)==="//"?ct?it:He.replace(ae,"$1")+it:it.charAt(0)==="/"?ct?it:He.replace(pe,"$1")+it:He+it}var Le={exec:function(){}};function $e(He){for(var it=1,ct,he;it<arguments.length;it++){ct=arguments[it];for(he in ct)Object.prototype.hasOwnProperty.call(ct,he)&&(He[he]=ct[he])}return He}function Te(He,it){var ct=He.replace(/\|/g,function(je,Ue,$){for(var ut=!1,xe=Ue;--xe>=0&&$[xe]==="\\";)ut=!ut;return ut?"|":" |"}),he=ct.split(/ \|/),be=0;if(he.length>it)he.splice(it);else for(;he.length<it;)he.push("");for(;be<he.length;be++)he[be]=he[be].trim().replace(/\\\|/g,"|");return he}function Pe(He,it,ct){var he=He.length;if(he===0)return"";for(var be=0;be<he;){var je=He.charAt(he-be-1);if(je===it&&!ct)be++;else if(je!==it&&ct)be++;else break}return He.substr(0,he-be)}function se(He,it){if(He.indexOf(it[1])===-1)return-1;for(var ct=He.length,he=0,be=0;be<ct;be++)if(He[be]==="\\")be++;else if(He[be]===it[0])he++;else if(He[be]===it[1]&&(he--,he<0))return be;return-1}function K(He){He&&He.sanitize&&!He.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 w(He,it){if(it<1)return"";for(var ct="";it>1;)it&1&&(ct+=He),it>>=1,He+=He;return ct+He}var te={escape:S,unescape:N,edit:H,cleanUrl:V,resolveUrl:ce,noopTest:Le,merge:$e,splitCells:Te,rtrim:Pe,findClosingBracket:se,checkSanitizeDeprecation:K,repeatString:w},ne=le.exports.defaults,z=te.rtrim,x=te.splitCells,T=te.escape,G=te.findClosingBracket;function ve(He,it,ct){var he=it.href,be=it.title?T(it.title):null,je=He[1].replace(/\\([\[\]])/g,"$1");return He[0].charAt(0)!=="!"?{type:"link",raw:ct,href:he,title:be,text:je}:{type:"image",raw:ct,href:he,title:be,text:T(je)}}function We(He,it){var ct=He.match(/^(\s+)(?:```)/);if(ct===null)return it;var he=ct[1];return it.split(`
|
|
|
`).map(function(be){var je=be.match(/^\s+/);if(je===null)return be;var Ue=je[0];return Ue.length>=he.length?be.slice(he.length):be}).join(`
|
|
|
`)}var st=function(){function He(ct){this.options=ct||ne}var it=He.prototype;return it.space=function(he){var be=this.rules.block.newline.exec(he);if(be)return be[0].length>1?{type:"space",raw:be[0]}:{raw:`
|
|
|
`}},it.code=function(he){var be=this.rules.block.code.exec(he);if(be){var je=be[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:be[0],codeBlockStyle:"indented",text:this.options.pedantic?je:z(je,`
|
|
|
`)}}},it.fences=function(he){var be=this.rules.block.fences.exec(he);if(be){var je=be[0],Ue=We(je,be[3]||"");return{type:"code",raw:je,lang:be[2]?be[2].trim():be[2],text:Ue}}},it.heading=function(he){var be=this.rules.block.heading.exec(he);if(be){var je=be[2].trim();if(/#$/.test(je)){var Ue=z(je,"#");(this.options.pedantic||!Ue||/ $/.test(Ue))&&(je=Ue.trim())}return{type:"heading",raw:be[0],depth:be[1].length,text:je}}},it.nptable=function(he){var be=this.rules.block.nptable.exec(he);if(be){var je={type:"table",header:x(be[1].replace(/^ *| *\| *$/g,"")),align:be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:be[3]?be[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:be[0]};if(je.header.length===je.align.length){var Ue=je.align.length,$;for($=0;$<Ue;$++)/^ *-+: *$/.test(je.align[$])?je.align[$]="right":/^ *:-+: *$/.test(je.align[$])?je.align[$]="center":/^ *:-+ *$/.test(je.align[$])?je.align[$]="left":je.align[$]=null;for(Ue=je.cells.length,$=0;$<Ue;$++)je.cells[$]=x(je.cells[$],je.header.length);return je}}},it.hr=function(he){var be=this.rules.block.hr.exec(he);if(be)return{type:"hr",raw:be[0]}},it.blockquote=function(he){var be=this.rules.block.blockquote.exec(he);if(be){var je=be[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:be[0],text:je}}},it.list=function(he){var be=this.rules.block.list.exec(he);if(be){var je=be[0],Ue=be[2],$=Ue.length>1,ut={type:"list",raw:je,ordered:$,start:$?+Ue.slice(0,-1):"",loose:!1,items:[]},xe=be[0].match(this.rules.block.item),At=!1,zt,qt,cn,gn,En,Fn,Hn,An,qn,vn=xe.length;cn=this.rules.block.listItemStart.exec(xe[0]);for(var Gt=0;Gt<vn;Gt++){if(zt=xe[Gt],je=zt,this.options.pedantic||(qn=zt.match(new RegExp("\\n\\s*\\n {0,"+(cn[0].length-1)+"}\\S")),qn&&(En=zt.length-qn.index+xe.slice(Gt+1).join(`
|
|
|
`).length,ut.raw=ut.raw.substring(0,ut.raw.length-En),zt=zt.substring(0,qn.index),je=zt,vn=Gt+1)),Gt!==vn-1){if(gn=this.rules.block.listItemStart.exec(xe[Gt+1]),this.options.pedantic?gn[1].length>cn[1].length:gn[1].length>=cn[0].length||gn[1].length>3){xe.splice(Gt,2,xe[Gt]+(!this.options.pedantic&&gn[1].length<cn[0].length&&!xe[Gt].match(/\n$/)?"":`
|
|
|
`)+xe[Gt+1]),Gt--,vn--;continue}else(!this.options.pedantic||this.options.smartLists?gn[2][gn[2].length-1]!==Ue[Ue.length-1]:$===(gn[2].length===1))&&(En=xe.slice(Gt+1).join(`
|
|
|
`).length,ut.raw=ut.raw.substring(0,ut.raw.length-En),Gt=vn-1);cn=gn}qt=zt.length,zt=zt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~zt.indexOf(`
|
|
|
`)&&(qt-=zt.length,zt=this.options.pedantic?zt.replace(/^ {1,4}/gm,""):zt.replace(new RegExp("^ {1,"+qt+"}","gm"),"")),zt=z(zt,`
|
|
|
`),Gt!==vn-1&&(je=je+`
|
|
|
`),Fn=At||/\n\n(?!\s*$)/.test(je),Gt!==vn-1&&(At=je.slice(-2)===`
|
|
|
|
|
|
`,Fn||(Fn=At)),Fn&&(ut.loose=!0),this.options.gfm&&(Hn=/^\[[ xX]\] /.test(zt),An=void 0,Hn&&(An=zt[1]!==" ",zt=zt.replace(/^\[[ xX]\] +/,""))),ut.items.push({type:"list_item",raw:je,task:Hn,checked:An,loose:Fn,text:zt})}return ut}},it.html=function(he){var be=this.rules.block.html.exec(he);if(be)return{type:this.options.sanitize?"paragraph":"html",raw:be[0],pre:!this.options.sanitizer&&(be[1]==="pre"||be[1]==="script"||be[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(be[0]):T(be[0]):be[0]}},it.def=function(he){var be=this.rules.block.def.exec(he);if(be){be[3]&&(be[3]=be[3].substring(1,be[3].length-1));var je=be[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:je,raw:be[0],href:be[2],title:be[3]}}},it.table=function(he){var be=this.rules.block.table.exec(he);if(be){var je={type:"table",header:x(be[1].replace(/^ *| *\| *$/g,"")),align:be[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:be[3]?be[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(je.header.length===je.align.length){je.raw=be[0];var Ue=je.align.length,$;for($=0;$<Ue;$++)/^ *-+: *$/.test(je.align[$])?je.align[$]="right":/^ *:-+: *$/.test(je.align[$])?je.align[$]="center":/^ *:-+ *$/.test(je.align[$])?je.align[$]="left":je.align[$]=null;for(Ue=je.cells.length,$=0;$<Ue;$++)je.cells[$]=x(je.cells[$].replace(/^ *\| *| *\| *$/g,""),je.header.length);return je}}},it.lheading=function(he){var be=this.rules.block.lheading.exec(he);if(be)return{type:"heading",raw:be[0],depth:be[2].charAt(0)==="="?1:2,text:be[1]}},it.paragraph=function(he){var be=this.rules.block.paragraph.exec(he);if(be)return{type:"paragraph",raw:be[0],text:be[1].charAt(be[1].length-1)===`
|
|
|
`?be[1].slice(0,-1):be[1]}},it.text=function(he){var be=this.rules.block.text.exec(he);if(be)return{type:"text",raw:be[0],text:be[0]}},it.escape=function(he){var be=this.rules.inline.escape.exec(he);if(be)return{type:"escape",raw:be[0],text:T(be[1])}},it.tag=function(he,be,je){var Ue=this.rules.inline.tag.exec(he);if(Ue)return!be&&/^<a /i.test(Ue[0])?be=!0:be&&/^<\/a>/i.test(Ue[0])&&(be=!1),!je&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ue[0])?je=!0:je&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ue[0])&&(je=!1),{type:this.options.sanitize?"text":"html",raw:Ue[0],inLink:be,inRawBlock:je,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):T(Ue[0]):Ue[0]}},it.link=function(he){var be=this.rules.inline.link.exec(he);if(be){var je=be[2].trim();if(!this.options.pedantic&&/^</.test(je)){if(!/>$/.test(je))return;var Ue=z(je.slice(0,-1),"\\");if((je.length-Ue.length)%2===0)return}else{var $=G(be[2],"()");if($>-1){var ut=be[0].indexOf("!")===0?5:4,xe=ut+be[1].length+$;be[2]=be[2].substring(0,$),be[0]=be[0].substring(0,xe).trim(),be[3]=""}}var At=be[2],zt="";if(this.options.pedantic){var qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(At);qt&&(At=qt[1],zt=qt[3])}else zt=be[3]?be[3].slice(1,-1):"";return At=At.trim(),/^</.test(At)&&(this.options.pedantic&&!/>$/.test(je)?At=At.slice(1):At=At.slice(1,-1)),ve(be,{href:At&&At.replace(this.rules.inline._escapes,"$1"),title:zt&&zt.replace(this.rules.inline._escapes,"$1")},be[0])}},it.reflink=function(he,be){var je;if((je=this.rules.inline.reflink.exec(he))||(je=this.rules.inline.nolink.exec(he))){var Ue=(je[2]||je[1]).replace(/\s+/g," ");if(Ue=be[Ue.toLowerCase()],!Ue||!Ue.href){var $=je[0].charAt(0);return{type:"text",raw:$,text:$}}return ve(je,Ue,je[0])}},it.emStrong=function(he,be,je){je===void 0&&(je="");var Ue=this.rules.inline.emStrong.lDelim.exec(he);if(Ue&&!(Ue[3]&&je.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 $=Ue[1]||Ue[2]||"";if(!$||$&&(je===""||this.rules.inline.punctuation.exec(je))){var ut=Ue[0].length-1,xe,At,zt=ut,qt=0,cn=Ue[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(cn.lastIndex=0,be=be.slice(-1*he.length+ut);(Ue=cn.exec(be))!=null;)if(xe=Ue[1]||Ue[2]||Ue[3]||Ue[4]||Ue[5]||Ue[6],!!xe){if(At=xe.length,Ue[3]||Ue[4]){zt+=At;continue}else if((Ue[5]||Ue[6])&&ut%3&&!((ut+At)%3)){qt+=At;continue}if(zt-=At,!(zt>0))return At=Math.min(At,At+zt+qt),Math.min(ut,At)%2?{type:"em",raw:he.slice(0,ut+Ue.index+At+1),text:he.slice(1,ut+Ue.index+At)}:{type:"strong",raw:he.slice(0,ut+Ue.index+At+1),text:he.slice(2,ut+Ue.index+At-1)}}}}},it.codespan=function(he){var be=this.rules.inline.code.exec(he);if(be){var je=be[2].replace(/\n/g," "),Ue=/[^ ]/.test(je),$=/^ /.test(je)&&/ $/.test(je);return Ue&&$&&(je=je.substring(1,je.length-1)),je=T(je,!0),{type:"codespan",raw:be[0],text:je}}},it.br=function(he){var be=this.rules.inline.br.exec(he);if(be)return{type:"br",raw:be[0]}},it.del=function(he){var be=this.rules.inline.del.exec(he);if(be)return{type:"del",raw:be[0],text:be[2]}},it.autolink=function(he,be){var je=this.rules.inline.autolink.exec(he);if(je){var Ue,$;return je[2]==="@"?(Ue=T(this.options.mangle?be(je[1]):je[1]),$="mailto:"+Ue):(Ue=T(je[1]),$=Ue),{type:"link",raw:je[0],text:Ue,href:$,tokens:[{type:"text",raw:Ue,text:Ue}]}}},it.url=function(he,be){var je;if(je=this.rules.inline.url.exec(he)){var Ue,$;if(je[2]==="@")Ue=T(this.options.mangle?be(je[0]):je[0]),$="mailto:"+Ue;else{var ut;do ut=je[0],je[0]=this.rules.inline._backpedal.exec(je[0])[0];while(ut!==je[0]);Ue=T(je[0]),je[1]==="www."?$="http://"+Ue:$=Ue}return{type:"link",raw:je[0],text:Ue,href:$,tokens:[{type:"text",raw:Ue,text:Ue}]}}},it.inlineText=function(he,be,je){var Ue=this.rules.inline.text.exec(he);if(Ue){var $;return be?$=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):T(Ue[0]):Ue[0]:$=T(this.options.smartypants?je(Ue[0]):Ue[0]),{type:"text",raw:Ue[0],text:$}}},He}(),_e=te.noopTest,Ke=te.edit,Ve=te.merge,rt={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:_e,table:_e,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};rt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,rt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,rt.def=Ke(rt.def).replace("label",rt._label).replace("title",rt._title).getRegex(),rt.bullet=/(?:[*+-]|\d{1,9}[.)])/,rt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,rt.item=Ke(rt.item,"gm").replace(/bull/g,rt.bullet).getRegex(),rt.listItemStart=Ke(/^( *)(bull) */).replace("bull",rt.bullet).getRegex(),rt.list=Ke(rt.list).replace(/bull/g,rt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+rt.def.source+")").getRegex(),rt._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",rt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,rt.html=Ke(rt.html,"i").replace("comment",rt._comment).replace("tag",rt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),rt.paragraph=Ke(rt._paragraph).replace("hr",rt.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",rt._tag).getRegex(),rt.blockquote=Ke(rt.blockquote).replace("paragraph",rt.paragraph).getRegex(),rt.normal=Ve({},rt),rt.gfm=Ve({},rt.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*|$)"}),rt.gfm.nptable=Ke(rt.gfm.nptable).replace("hr",rt.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",rt._tag).getRegex(),rt.gfm.table=Ke(rt.gfm.table).replace("hr",rt.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",rt._tag).getRegex(),rt.pedantic=Ve({},rt.normal,{html:Ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rt._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:_e,paragraph:Ke(rt.normal._paragraph).replace("hr",rt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",rt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_e,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:_e,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ae._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ae.punctuation=Ke(Ae.punctuation).replace(/punctuation/g,Ae._punctuation).getRegex(),Ae.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ae.escapedEmSt=/\\\*|\\_/g,Ae._comment=Ke(rt._comment).replace("(?:-->|$)","-->").getRegex(),Ae.emStrong.lDelim=Ke(Ae.emStrong.lDelim).replace(/punct/g,Ae._punctuation).getRegex(),Ae.emStrong.rDelimAst=Ke(Ae.emStrong.rDelimAst,"g").replace(/punct/g,Ae._punctuation).getRegex(),Ae.emStrong.rDelimUnd=Ke(Ae.emStrong.rDelimUnd,"g").replace(/punct/g,Ae._punctuation).getRegex(),Ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ae._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])?)+(?![-_])/,Ae.autolink=Ke(Ae.autolink).replace("scheme",Ae._scheme).replace("email",Ae._email).getRegex(),Ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ae.tag=Ke(Ae.tag).replace("comment",Ae._comment).replace("attribute",Ae._attribute).getRegex(),Ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ae._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ae.link=Ke(Ae.link).replace("label",Ae._label).replace("href",Ae._href).replace("title",Ae._title).getRegex(),Ae.reflink=Ke(Ae.reflink).replace("label",Ae._label).getRegex(),Ae.reflinkSearch=Ke(Ae.reflinkSearch,"g").replace("reflink",Ae.reflink).replace("nolink",Ae.nolink).getRegex(),Ae.normal=Ve({},Ae),Ae.pedantic=Ve({},Ae.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:Ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Ae._label).getRegex(),reflink:Ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ae._label).getRegex()}),Ae.gfm=Ve({},Ae.normal,{escape:Ke(Ae.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ae.gfm.url=Ke(Ae.gfm.url,"i").replace("email",Ae.gfm._extended_email).getRegex(),Ae.breaks=Ve({},Ae.gfm,{br:Ke(Ae.br).replace("{2,}","*").getRegex(),text:Ke(Ae.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Tt={block:rt,inline:Ae},tt=st,Pt=le.exports.defaults,Xe=Tt.block,Qe=Tt.inline,Ne=te.repeatString;function Oe(He){return He.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 re(He){var it="",ct,he,be=He.length;for(ct=0;ct<be;ct++)he=He.charCodeAt(ct),Math.random()>.5&&(he="x"+he.toString(16)),it+="&#"+he+";";return it}var Fe=function(){function He(ct){this.tokens=[],this.tokens.links=Object.create(null),this.options=ct||Pt,this.options.tokenizer=this.options.tokenizer||new tt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var he={block:Xe.normal,inline:Qe.normal};this.options.pedantic?(he.block=Xe.pedantic,he.inline=Qe.pedantic):this.options.gfm&&(he.block=Xe.gfm,this.options.breaks?he.inline=Qe.breaks:he.inline=Qe.gfm),this.tokenizer.rules=he}He.lex=function(he,be){var je=new He(be);return je.lex(he)},He.lexInline=function(he,be){var je=new He(be);return je.inlineTokens(he)};var it=He.prototype;return it.lex=function(he){return he=he.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(he,this.tokens,!0),this.inline(this.tokens),this.tokens},it.blockTokens=function(he,be,je){be===void 0&&(be=[]),je===void 0&&(je=!0),this.options.pedantic&&(he=he.replace(/^ +$/gm,""));for(var Ue,$,ut,xe;he;){if(Ue=this.tokenizer.space(he)){he=he.substring(Ue.raw.length),Ue.type&&be.push(Ue);continue}if(Ue=this.tokenizer.code(he)){he=he.substring(Ue.raw.length),xe=be[be.length-1],xe&&xe.type==="paragraph"?(xe.raw+=`
|
|
|
`+Ue.raw,xe.text+=`
|
|
|
`+Ue.text):be.push(Ue);continue}if(Ue=this.tokenizer.fences(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.heading(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.nptable(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.hr(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.blockquote(he)){he=he.substring(Ue.raw.length),Ue.tokens=this.blockTokens(Ue.text,[],je),be.push(Ue);continue}if(Ue=this.tokenizer.list(he)){for(he=he.substring(Ue.raw.length),ut=Ue.items.length,$=0;$<ut;$++)Ue.items[$].tokens=this.blockTokens(Ue.items[$].text,[],!1);be.push(Ue);continue}if(Ue=this.tokenizer.html(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(je&&(Ue=this.tokenizer.def(he))){he=he.substring(Ue.raw.length),this.tokens.links[Ue.tag]||(this.tokens.links[Ue.tag]={href:Ue.href,title:Ue.title});continue}if(Ue=this.tokenizer.table(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.lheading(he)){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(je&&(Ue=this.tokenizer.paragraph(he))){he=he.substring(Ue.raw.length),be.push(Ue);continue}if(Ue=this.tokenizer.text(he)){he=he.substring(Ue.raw.length),xe=be[be.length-1],xe&&xe.type==="text"?(xe.raw+=`
|
|
|
`+Ue.raw,xe.text+=`
|
|
|
`+Ue.text):be.push(Ue);continue}if(he){var At="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(At);break}else throw new Error(At)}}return be},it.inline=function(he){var be,je,Ue,$,ut,xe,At=he.length;for(be=0;be<At;be++)switch(xe=he[be],xe.type){case"paragraph":case"text":case"heading":{xe.tokens=[],this.inlineTokens(xe.text,xe.tokens);break}case"table":{for(xe.tokens={header:[],cells:[]},$=xe.header.length,je=0;je<$;je++)xe.tokens.header[je]=[],this.inlineTokens(xe.header[je],xe.tokens.header[je]);for($=xe.cells.length,je=0;je<$;je++)for(ut=xe.cells[je],xe.tokens.cells[je]=[],Ue=0;Ue<ut.length;Ue++)xe.tokens.cells[je][Ue]=[],this.inlineTokens(ut[Ue],xe.tokens.cells[je][Ue]);break}case"blockquote":{this.inline(xe.tokens);break}case"list":{for($=xe.items.length,je=0;je<$;je++)this.inline(xe.items[je].tokens);break}}return he},it.inlineTokens=function(he,be,je,Ue){be===void 0&&(be=[]),je===void 0&&(je=!1),Ue===void 0&&(Ue=!1);var $,ut,xe=he,At,zt,qt;if(this.tokens.links){var cn=Object.keys(this.tokens.links);if(cn.length>0)for(;(At=this.tokenizer.rules.inline.reflinkSearch.exec(xe))!=null;)cn.includes(At[0].slice(At[0].lastIndexOf("[")+1,-1))&&(xe=xe.slice(0,At.index)+"["+Ne("a",At[0].length-2)+"]"+xe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(At=this.tokenizer.rules.inline.blockSkip.exec(xe))!=null;)xe=xe.slice(0,At.index)+"["+Ne("a",At[0].length-2)+"]"+xe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(At=this.tokenizer.rules.inline.escapedEmSt.exec(xe))!=null;)xe=xe.slice(0,At.index)+"++"+xe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;he;){if(zt||(qt=""),zt=!1,$=this.tokenizer.escape(he)){he=he.substring($.raw.length),be.push($);continue}if($=this.tokenizer.tag(he,je,Ue)){he=he.substring($.raw.length),je=$.inLink,Ue=$.inRawBlock;var gn=be[be.length-1];gn&&$.type==="text"&&gn.type==="text"?(gn.raw+=$.raw,gn.text+=$.text):be.push($);continue}if($=this.tokenizer.link(he)){he=he.substring($.raw.length),$.type==="link"&&($.tokens=this.inlineTokens($.text,[],!0,Ue)),be.push($);continue}if($=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring($.raw.length);var En=be[be.length-1];$.type==="link"?($.tokens=this.inlineTokens($.text,[],!0,Ue),be.push($)):En&&$.type==="text"&&En.type==="text"?(En.raw+=$.raw,En.text+=$.text):be.push($);continue}if($=this.tokenizer.emStrong(he,xe,qt)){he=he.substring($.raw.length),$.tokens=this.inlineTokens($.text,[],je,Ue),be.push($);continue}if($=this.tokenizer.codespan(he)){he=he.substring($.raw.length),be.push($);continue}if($=this.tokenizer.br(he)){he=he.substring($.raw.length),be.push($);continue}if($=this.tokenizer.del(he)){he=he.substring($.raw.length),$.tokens=this.inlineTokens($.text,[],je,Ue),be.push($);continue}if($=this.tokenizer.autolink(he,re)){he=he.substring($.raw.length),be.push($);continue}if(!je&&($=this.tokenizer.url(he,re))){he=he.substring($.raw.length),be.push($);continue}if($=this.tokenizer.inlineText(he,Ue,Oe)){he=he.substring($.raw.length),$.raw.slice(-1)!=="_"&&(qt=$.raw.slice(-1)),zt=!0,ut=be[be.length-1],ut&&ut.type==="text"?(ut.raw+=$.raw,ut.text+=$.text):be.push($);continue}if(he){var Fn="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(Fn);break}else throw new Error(Fn)}}return be},d(He,null,[{key:"rules",get:function(){return{block:Xe,inline:Qe}}}]),He}(),Re=le.exports.defaults,Z=te.cleanUrl,O=te.escape,me=function(){function He(ct){this.options=ct||Re}var it=He.prototype;return it.code=function(he,be,je){var Ue=(be||"").match(/\S*/)[0];if(this.options.highlight){var $=this.options.highlight(he,Ue);$!=null&&$!==he&&(je=!0,he=$)}return he=he.replace(/\n$/,"")+`
|
|
|
`,Ue?'<pre><code class="'+this.options.langPrefix+O(Ue,!0)+'">'+(je?he:O(he,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(je?he:O(he,!0))+`</code></pre>
|
|
|
`},it.blockquote=function(he){return`<blockquote>
|
|
|
`+he+`</blockquote>
|
|
|
`},it.html=function(he){return he},it.heading=function(he,be,je,Ue){return this.options.headerIds?"<h"+be+' id="'+this.options.headerPrefix+Ue.slug(je)+'">'+he+"</h"+be+`>
|
|
|
`:"<h"+be+">"+he+"</h"+be+`>
|
|
|
`},it.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},it.list=function(he,be,je){var Ue=be?"ol":"ul",$=be&&je!==1?' start="'+je+'"':"";return"<"+Ue+$+`>
|
|
|
`+he+"</"+Ue+`>
|
|
|
`},it.listitem=function(he){return"<li>"+he+`</li>
|
|
|
`},it.checkbox=function(he){return"<input "+(he?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},it.paragraph=function(he){return"<p>"+he+`</p>
|
|
|
`},it.table=function(he,be){return be&&(be="<tbody>"+be+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+he+`</thead>
|
|
|
`+be+`</table>
|
|
|
`},it.tablerow=function(he){return`<tr>
|
|
|
`+he+`</tr>
|
|
|
`},it.tablecell=function(he,be){var je=be.header?"th":"td",Ue=be.align?"<"+je+' align="'+be.align+'">':"<"+je+">";return Ue+he+"</"+je+`>
|
|
|
`},it.strong=function(he){return"<strong>"+he+"</strong>"},it.em=function(he){return"<em>"+he+"</em>"},it.codespan=function(he){return"<code>"+he+"</code>"},it.br=function(){return this.options.xhtml?"<br/>":"<br>"},it.del=function(he){return"<del>"+he+"</del>"},it.link=function(he,be,je){if(he=Z(this.options.sanitize,this.options.baseUrl,he),he===null)return je;var Ue='<a href="'+O(he)+'"';return be&&(Ue+=' title="'+be+'"'),Ue+=">"+je+"</a>",Ue},it.image=function(he,be,je){if(he=Z(this.options.sanitize,this.options.baseUrl,he),he===null)return je;var Ue='<img src="'+he+'" alt="'+je+'"';return be&&(Ue+=' title="'+be+'"'),Ue+=this.options.xhtml?"/>":">",Ue},it.text=function(he){return he},He}(),Ee=function(){function He(){}var it=He.prototype;return it.strong=function(he){return he},it.em=function(he){return he},it.codespan=function(he){return he},it.del=function(he){return he},it.html=function(he){return he},it.text=function(he){return he},it.link=function(he,be,je){return""+je},it.image=function(he,be,je){return""+je},it.br=function(){return""},He}(),ge=function(){function He(){this.seen={}}var it=He.prototype;return it.serialize=function(he){return he.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},it.getNextSafeSlug=function(he,be){var je=he,Ue=0;if(this.seen.hasOwnProperty(je)){Ue=this.seen[he];do Ue++,je=he+"-"+Ue;while(this.seen.hasOwnProperty(je))}return be||(this.seen[he]=Ue,this.seen[je]=0),je},it.slug=function(he,be){be===void 0&&(be={});var je=this.serialize(he);return this.getNextSafeSlug(je,be.dryrun)},He}(),we=me,ke=Ee,Ye=ge,oe=le.exports.defaults,fe=te.unescape,dt=function(){function He(ct){this.options=ct||oe,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ke,this.slugger=new Ye}He.parse=function(he,be){var je=new He(be);return je.parse(he)},He.parseInline=function(he,be){var je=new He(be);return je.parseInline(he)};var it=He.prototype;return it.parse=function(he,be){be===void 0&&(be=!0);var je="",Ue,$,ut,xe,At,zt,qt,cn,gn,En,Fn,Hn,An,qn,vn,Gt,Xt,Dn,Cn=he.length;for(Ue=0;Ue<Cn;Ue++)switch(En=he[Ue],En.type){case"space":continue;case"hr":{je+=this.renderer.hr();continue}case"heading":{je+=this.renderer.heading(this.parseInline(En.tokens),En.depth,fe(this.parseInline(En.tokens,this.textRenderer)),this.slugger);continue}case"code":{je+=this.renderer.code(En.text,En.lang,En.escaped);continue}case"table":{for(cn="",qt="",xe=En.header.length,$=0;$<xe;$++)qt+=this.renderer.tablecell(this.parseInline(En.tokens.header[$]),{header:!0,align:En.align[$]});for(cn+=this.renderer.tablerow(qt),gn="",xe=En.cells.length,$=0;$<xe;$++){for(zt=En.tokens.cells[$],qt="",At=zt.length,ut=0;ut<At;ut++)qt+=this.renderer.tablecell(this.parseInline(zt[ut]),{header:!1,align:En.align[ut]});gn+=this.renderer.tablerow(qt)}je+=this.renderer.table(cn,gn);continue}case"blockquote":{gn=this.parse(En.tokens),je+=this.renderer.blockquote(gn);continue}case"list":{for(Fn=En.ordered,Hn=En.start,An=En.loose,xe=En.items.length,gn="",$=0;$<xe;$++)vn=En.items[$],Gt=vn.checked,Xt=vn.task,qn="",vn.task&&(Dn=this.renderer.checkbox(Gt),An?vn.tokens.length>0&&vn.tokens[0].type==="text"?(vn.tokens[0].text=Dn+" "+vn.tokens[0].text,vn.tokens[0].tokens&&vn.tokens[0].tokens.length>0&&vn.tokens[0].tokens[0].type==="text"&&(vn.tokens[0].tokens[0].text=Dn+" "+vn.tokens[0].tokens[0].text)):vn.tokens.unshift({type:"text",text:Dn}):qn+=Dn),qn+=this.parse(vn.tokens,An),gn+=this.renderer.listitem(qn,Xt,Gt);je+=this.renderer.list(gn,Fn,Hn);continue}case"html":{je+=this.renderer.html(En.text);continue}case"paragraph":{je+=this.renderer.paragraph(this.parseInline(En.tokens));continue}case"text":{for(gn=En.tokens?this.parseInline(En.tokens):En.text;Ue+1<Cn&&he[Ue+1].type==="text";)En=he[++Ue],gn+=`
|
|
|
`+(En.tokens?this.parseInline(En.tokens):En.text);je+=be?this.renderer.paragraph(gn):gn;continue}default:{var yt='Token with "'+En.type+'" type was not found.';if(this.options.silent){console.error(yt);return}else throw new Error(yt)}}return je},it.parseInline=function(he,be){be=be||this.renderer;var je="",Ue,$,ut=he.length;for(Ue=0;Ue<ut;Ue++)switch($=he[Ue],$.type){case"escape":{je+=be.text($.text);break}case"html":{je+=be.html($.text);break}case"link":{je+=be.link($.href,$.title,this.parseInline($.tokens,be));break}case"image":{je+=be.image($.href,$.title,$.text);break}case"strong":{je+=be.strong(this.parseInline($.tokens,be));break}case"em":{je+=be.em(this.parseInline($.tokens,be));break}case"codespan":{je+=be.codespan($.text);break}case"br":{je+=be.br();break}case"del":{je+=be.del(this.parseInline($.tokens,be));break}case"text":{je+=be.text($.text);break}default:{var xe='Token with "'+$.type+'" type was not found.';if(this.options.silent){console.error(xe);return}else throw new Error(xe)}}return je},He}(),ot=Fe,ft=dt,ht=st,Ge=me,Ct=Ee,gt=ge,Ce=te.merge,Je=te.checkSanitizeDeprecation,_=te.escape,D=le.exports.getDefaults,Ze=le.exports.changeDefaults,ee=le.exports.defaults;function ye(He,it,ct){if(typeof He=="undefined"||He===null)throw new Error("marked(): input parameter is undefined or null");if(typeof He!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(He)+", string expected");if(typeof it=="function"&&(ct=it,it=null),it=Ce({},ye.defaults,it||{}),Je(it),ct){var he=it.highlight,be;try{be=ot.lex(He,it)}catch(ut){return ct(ut)}var je=function(xe){var At;if(!xe)try{it.walkTokens&&ye.walkTokens(be,it.walkTokens),At=ft.parse(be,it)}catch(zt){xe=zt}return it.highlight=he,xe?ct(xe):ct(null,At)};if(!he||he.length<3||(delete it.highlight,!be.length))return je();var Ue=0;ye.walkTokens(be,function(ut){ut.type==="code"&&(Ue++,setTimeout(function(){he(ut.text,ut.lang,function(xe,At){if(xe)return je(xe);At!=null&&At!==ut.text&&(ut.text=At,ut.escaped=!0),Ue--,Ue===0&&je()})},0))}),Ue===0&&je();return}try{var $=ot.lex(He,it);return it.walkTokens&&ye.walkTokens($,it.walkTokens),ft.parse($,it)}catch(ut){if(ut.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,it.silent)return"<p>An error occurred:</p><pre>"+_(ut.message+"",!0)+"</pre>";throw ut}}ye.options=ye.setOptions=function(He){return Ce(ye.defaults,He),Ze(ye.defaults),ye},ye.getDefaults=D,ye.defaults=ee,ye.use=function(He){var it=Ce({},He);if(He.renderer&&function(){var he=ye.defaults.renderer||new Ge,be=function($){var ut=he[$];he[$]=function(){for(var xe=arguments.length,At=new Array(xe),zt=0;zt<xe;zt++)At[zt]=arguments[zt];var qt=He.renderer[$].apply(he,At);return qt===!1&&(qt=ut.apply(he,At)),qt}};for(var je in He.renderer)be(je);it.renderer=he}(),He.tokenizer&&function(){var he=ye.defaults.tokenizer||new ht,be=function($){var ut=he[$];he[$]=function(){for(var xe=arguments.length,At=new Array(xe),zt=0;zt<xe;zt++)At[zt]=arguments[zt];var qt=He.tokenizer[$].apply(he,At);return qt===!1&&(qt=ut.apply(he,At)),qt}};for(var je in He.tokenizer)be(je);it.tokenizer=he}(),He.walkTokens){var ct=ye.defaults.walkTokens;it.walkTokens=function(he){He.walkTokens(he),ct&&ct(he)}}ye.setOptions(it)},ye.walkTokens=function(He,it){for(var ct=U(He),he;!(he=ct()).done;){var be=he.value;switch(it(be),be.type){case"table":{for(var je=U(be.tokens.header),Ue;!(Ue=je()).done;){var $=Ue.value;ye.walkTokens($,it)}for(var ut=U(be.tokens.cells),xe;!(xe=ut()).done;)for(var At=xe.value,zt=U(At),qt;!(qt=zt()).done;){var cn=qt.value;ye.walkTokens(cn,it)}break}case"list":{ye.walkTokens(be.items,it);break}default:be.tokens&&ye.walkTokens(be.tokens,it)}}},ye.parseInline=function(He,it){if(typeof He=="undefined"||He===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof He!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(He)+", string expected");it=Ce({},ye.defaults,it||{}),Je(it);try{var ct=ot.lexInline(He,it);return it.walkTokens&&ye.walkTokens(ct,it.walkTokens),ft.parseInline(ct,it)}catch(he){if(he.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,it.silent)return"<p>An error occurred:</p><pre>"+_(he.message+"",!0)+"</pre>";throw he}},ye.Parser=ft,ye.parser=ft.parse,ye.Renderer=Ge,ye.TextRenderer=Ct,ye.Lexer=ot,ye.lexer=ot.lex,ye.Tokenizer=ht,ye.Slugger=gt,ye.parse=ye;var Ot=ye;return Ot})},11690:function(ln){const qe=/[&<>"']/,d=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,ie=/[<>"']|&(?!#?\w+;)/g,U={"&":"&","<":"<",">":">",'"':""","'":"'"},le=ce=>U[ce];function F(ce,Le){if(Le){if(qe.test(ce))return ce.replace(d,le)}else if(l.test(ce))return ce.replace(ie,le);return ce}const g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function q(ce){return ce.replace(g,(Le,$e)=>($e=$e.toLowerCase(),$e==="colon"?":":$e.charAt(0)==="#"?$e.charAt(1)==="x"?String.fromCharCode(parseInt($e.substring(2),16)):String.fromCharCode(+$e.substring(1)):""))}const Q=/(^|[^\[])\^/g;function o(ce,Le){ce=ce.source||ce,Le=Le||"";const $e={replace:(Te,Pe)=>(Pe=Pe.source||Pe,Pe=Pe.replace(Q,"$1"),ce=ce.replace(Te,Pe),$e),getRegex:()=>new RegExp(ce,Le)};return $e}const C=/[^\w:]/g,P=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(ce,Le,$e){if(ce){let Te;try{Te=decodeURIComponent(q($e)).replace(C,"").toLowerCase()}catch(Pe){return null}if(Te.indexOf("javascript:")===0||Te.indexOf("vbscript:")===0||Te.indexOf("data:")===0)return null}Le&&!P.test($e)&&($e=H(Le,$e));try{$e=encodeURI($e).replace(/%25/g,"%")}catch(Te){return null}return $e}const S={},I=/^[^:]+:\/*[^/]*$/,N=/^([^:]+:)[\s\S]*$/,W=/^([^:]+:\/*[^/]*)[\s\S]*$/;function H(ce,Le){S[" "+ce]||(I.test(ce)?S[" "+ce]=ce+"/":S[" "+ce]=R(ce,"/",!0)),ce=S[" "+ce];const $e=ce.indexOf(":")===-1;return Le.substring(0,2)==="//"?$e?Le:ce.replace(N,"$1")+Le:Le.charAt(0)==="/"?$e?Le:ce.replace(W,"$1")+Le:ce+Le}const j={exec:function(){}};function A(ce){let Le=1,$e,Te;for(;Le<arguments.length;Le++){$e=arguments[Le];for(Te in $e)Object.prototype.hasOwnProperty.call($e,Te)&&(ce[Te]=$e[Te])}return ce}function V(ce,Le){const $e=ce.replace(/\|/g,(se,K,w)=>{let te=!1,ne=K;for(;--ne>=0&&w[ne]==="\\";)te=!te;return te?"|":" |"}),Te=$e.split(/ \|/);let Pe=0;if(Te.length>Le)Te.splice(Le);else for(;Te.length<Le;)Te.push("");for(;Pe<Te.length;Pe++)Te[Pe]=Te[Pe].trim().replace(/\\\|/g,"|");return Te}function R(ce,Le,$e){const Te=ce.length;if(Te===0)return"";let Pe=0;for(;Pe<Te;){const se=ce.charAt(Te-Pe-1);if(se===Le&&!$e)Pe++;else if(se!==Le&&$e)Pe++;else break}return ce.substr(0,Te-Pe)}function L(ce,Le){if(ce.indexOf(Le[1])===-1)return-1;const $e=ce.length;let Te=0,Pe=0;for(;Pe<$e;Pe++)if(ce[Pe]==="\\")Pe++;else if(ce[Pe]===Le[0])Te++;else if(ce[Pe]===Le[1]&&(Te--,Te<0))return Pe;return-1}function ae(ce){ce&&ce.sanitize&&!ce.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 pe(ce,Le){if(Le<1)return"";let $e="";for(;Le>1;)Le&1&&($e+=ce),Le>>=1,ce+=ce;return $e+ce}ln.exports={escape:F,unescape:q,edit:o,cleanUrl:y,resolveUrl:H,noopTest:j,merge:A,splitCells:V,rtrim:R,findClosingBracket:L,checkSanitizeDeprecation:ae,repeatString:pe}},75918:function(ln,qe,d){"use strict";d.d(qe,{Wi:function(){return g},Z0:function(){return q},aU:function(){return F},eZ:function(){return o},wY:function(){return Q}});var l=d(4348),ie=d(69323),U=d(13268),le=function(C,P,y,S){function I(N){return N instanceof y?N:new y(function(W){W(N)})}return new(y||(y=Promise))(function(N,W){function H(V){try{A(S.next(V))}catch(R){W(R)}}function j(V){try{A(S.throw(V))}catch(R){W(R)}}function A(V){V.done?N(V.value):I(V.value).then(H,j)}A((S=S.apply(C,P||[])).next())})};class F extends ie.JT{constructor(P,y="",S="",I=!0,N){super(),this._onDidChange=this._register(new l.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=P,this._label=y,this._cssClass=S,this._enabled=I,this._actionCallback=N}get id(){return this._id}get label(){return this._label}set label(P){this._setLabel(P)}_setLabel(P){this._label!==P&&(this._label=P,this._onDidChange.fire({label:P}))}get tooltip(){return this._tooltip||""}set tooltip(P){this._setTooltip(P)}_setTooltip(P){this._tooltip!==P&&(this._tooltip=P,this._onDidChange.fire({tooltip:P}))}get class(){return this._cssClass}set class(P){this._setClass(P)}_setClass(P){this._cssClass!==P&&(this._cssClass=P,this._onDidChange.fire({class:P}))}get enabled(){return this._enabled}set enabled(P){this._setEnabled(P)}_setEnabled(P){this._enabled!==P&&(this._enabled=P,this._onDidChange.fire({enabled:P}))}get checked(){return this._checked}set checked(P){this._setChecked(P)}_setChecked(P){this._checked!==P&&(this._checked=P,this._onDidChange.fire({checked:P}))}run(P,y){return le(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(P))})}}class g extends ie.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new l.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new l.Q5),this.onDidRun=this._onDidRun.event}run(P,y){return le(this,void 0,void 0,function*(){if(!P.enabled)return;this._onBeforeRun.fire({action:P});let S;try{yield this.runAction(P,y)}catch(I){S=I}this._onDidRun.fire({action:P,error:S})})}runAction(P,y){return le(this,void 0,void 0,function*(){yield P.run(y)})}}class q extends F{constructor(P){super(q.ID,P,P?"separator text":"separator"),this.checked=!1,this.enabled=!1}}q.ID="vs.actions.separator";class Q{constructor(P,y,S,I){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=P,this.label=y,this.class=I,this._actions=S}get actions(){return this._actions}dispose(){}run(){return le(this,void 0,void 0,function*(){})}}class o extends F{constructor(){super(o.ID,U.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(ln,qe,d){"use strict";d.d(qe,{ok:function(){return l}});function l(ie,U){if(!ie)throw new Error(U?`Assertion failed (${U})`:"Assertion Failed")}},52615:function(ln,qe,d){"use strict";d.d(qe,{CM:function(){return F},JL:function(){return g},dT:function(){return Q},fK:function(){return le},lA:function(){return q}});var l=d(4348);class ie{constructor(){this._icons=new Map,this._onDidRegister=new l.Q5}add(C){const P=this._icons.get(C.id);P?C.description?P.description=C.description:console.error(`Duplicate registration of codicon ${C.id}`):(this._icons.set(C.id,C),this._onDidRegister.fire(C))}get(C){return this._icons.get(C)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const U=new ie,le=U;function F(o,C){return new q(o,C)}function g(o){return o?o.replace(/\$\((.*?)\)/g,(C,P)=>` ${P} `).trim():""}class q{constructor(C,P,y){this.id=C,this.definition=P,this.description=y,U.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var Q;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const C=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function P(I){if(I instanceof q)return["codicon","codicon-"+I.id];const N=C.exec(I.id);if(!N)return P(q.error);let[,W,H]=N;const j=["codicon","codicon-"+W];return H&&j.push("codicon-modifier-"+H.substr(1)),j}o.asClassNameArray=P;function y(I){return P(I).join(" ")}o.asClassName=y;function S(I){return"."+P(I).join(".")}o.asCSSSelector=S})(Q||(Q={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(q||(q={}))},79881:function(ln,qe,d){"use strict";d.d(qe,{B8:function(){return P},Cp:function(){return le},F0:function(){return Q},L6:function(){return C},VV:function(){return q},b1:function(){return o},dL:function(){return U},ri:function(){return F}});class l{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(S){setTimeout(()=>{throw S.stack?new Error(S.message+`
|
|
|
|
|
|
`+S.stack):S},0)}}emit(S){this.listeners.forEach(I=>{I(S)})}onUnexpectedError(S){this.unexpectedErrorHandler(S),this.emit(S)}onUnexpectedExternalError(S){this.unexpectedErrorHandler(S)}}const ie=new l;function U(y){q(y)||ie.onUnexpectedError(y)}function le(y){q(y)||ie.onUnexpectedExternalError(y)}function F(y){if(y instanceof Error){let{name:S,message:I}=y;const N=y.stacktrace||y.stack;return{$isError:!0,name:S,message:I,stack:N}}return y}const g="Canceled";function q(y){return y instanceof Error&&y.name===g&&y.message===g}function Q(){const y=new Error(g);return y.name=y.message,y}function o(y){return y?new Error(`Illegal argument: ${y}`):new Error("Illegal argument")}function C(y){return y?new Error(`Illegal state: ${y}`):new Error("Illegal state")}class P extends Error{constructor(S){super("NotSupported"),S&&(this.message=S)}}},4348:function(ln,qe,d){"use strict";d.d(qe,{D0:function(){return P},E7:function(){return y},K3:function(){return C},Q5:function(){return o},ZD:function(){return S},ju:function(){return F}});var l=d(79881),ie=d(69323),U=d(34502),le=d(95830),F;(function(I){I.None=()=>ie.JT.None;function N(w){return(te,ne=null,z)=>{let x=!1,T;return T=w(G=>{if(!x)return T?T.dispose():x=!0,te.call(ne,G)},null,z),x&&T.dispose(),T}}I.once=N;function W(w,te){return L((ne,z=null,x)=>w(T=>ne.call(z,te(T)),null,x))}I.map=W;function H(w,te){return L((ne,z=null,x)=>w(T=>{te(T),ne.call(z,T)},null,x))}I.forEach=H;function j(w,te){return L((ne,z=null,x)=>w(T=>te(T)&&ne.call(z,T),null,x))}I.filter=j;function A(w){return w}I.signal=A;function V(...w){return(te,ne=null,z)=>(0,ie.F8)(...w.map(x=>x(T=>te.call(ne,T),null,z)))}I.any=V;function R(w,te,ne){let z=ne;return W(w,x=>(z=te(z,x),z))}I.reduce=R;function L(w){let te;const ne=new o({onFirstListenerAdd(){te=w(ne.fire,ne)},onLastListenerRemove(){te.dispose()}});return ne.event}function ae(w,te,ne=100,z=!1,x){let T,G,ve,We=0;const st=new o({leakWarningThreshold:x,onFirstListenerAdd(){T=w(_e=>{We++,G=te(G,_e),z&&!ve&&(st.fire(G),G=void 0),clearTimeout(ve),ve=setTimeout(()=>{const Ke=G;G=void 0,ve=void 0,(!z||We>1)&&st.fire(Ke),We=0},ne)})},onLastListenerRemove(){T.dispose()}});return st.event}I.debounce=ae;function pe(w,te=(ne,z)=>ne===z){let ne=!0,z;return j(w,x=>{const T=ne||!te(x,z);return ne=!1,z=x,T})}I.latch=pe;function ce(w,te){return[I.filter(w,te),I.filter(w,ne=>!te(ne))]}I.split=ce;function Le(w,te=!1,ne=[]){let z=ne.slice(),x=w(ve=>{z?z.push(ve):G.fire(ve)});const T=()=>{z&&z.forEach(ve=>G.fire(ve)),z=null},G=new o({onFirstListenerAdd(){x||(x=w(ve=>G.fire(ve)))},onFirstListenerDidAdd(){z&&(te?setTimeout(T):T())},onLastListenerRemove(){x&&x.dispose(),x=null}});return G.event}I.buffer=Le;class $e{constructor(te){this.event=te}map(te){return new $e(W(this.event,te))}forEach(te){return new $e(H(this.event,te))}filter(te){return new $e(j(this.event,te))}reduce(te,ne){return new $e(R(this.event,te,ne))}latch(){return new $e(pe(this.event))}debounce(te,ne=100,z=!1,x){return new $e(ae(this.event,te,ne,z,x))}on(te,ne,z){return this.event(te,ne,z)}once(te,ne,z){return N(this.event)(te,ne,z)}}function Te(w){return new $e(w)}I.chain=Te;function Pe(w,te,ne=z=>z){const z=(...ve)=>G.fire(ne(...ve)),x=()=>w.on(te,z),T=()=>w.removeListener(te,z),G=new o({onFirstListenerAdd:x,onLastListenerRemove:T});return G.event}I.fromNodeEventEmitter=Pe;function se(w,te,ne=z=>z){const z=(...ve)=>G.fire(ne(...ve)),x=()=>w.addEventListener(te,z),T=()=>w.removeEventListener(te,z),G=new o({onFirstListenerAdd:x,onLastListenerRemove:T});return G.event}I.fromDOMEventEmitter=se;function K(w){return new Promise(te=>N(w)(te))}I.toPromise=K})(F||(F={}));class g{constructor(N){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${N}_${g._idPool++}`}start(N){this._stopWatch=new le.G(!0),this._listenerCount=N}stop(){if(this._stopWatch){const N=this._stopWatch.elapsed();this._elapsedOverall+=N,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${N.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let q=-1;class Q{constructor(N,W=Math.random().toString(18).slice(2,5)){this.customThreshold=N,this.name=W,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(N){let W=q;if(typeof this.customThreshold=="number"&&(W=this.customThreshold),W<=0||N<W)return;this._stacks||(this._stacks=new Map);const H=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),j=this._stacks.get(H)||0;if(this._stacks.set(H,j+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=W*.5;let A,V=0;for(const[R,L]of this._stacks)(!A||V<L)&&(A=R,V=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${N} listeners already. MOST frequent listener (${V}):`),console.warn(A)}return()=>{const A=this._stacks.get(H)||0;this._stacks.set(H,A-1)}}}class o{constructor(N){var W;this._disposed=!1,this._options=N,this._leakageMon=q>0?new Q(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=(N,W,H)=>{var j;this._listeners||(this._listeners=new U.S);const A=this._listeners.isEmpty();A&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const V=this._listeners.push(W?[N,W]:N);A&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,N,W);const R=(j=this._leakageMon)===null||j===void 0?void 0:j.check(this._listeners.size),L=(0,ie.OF)(()=>{R&&R(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return H instanceof ie.SL?H.add(L):Array.isArray(H)&&H.push(L),L}),this._event}fire(N){var W,H;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new U.S);for(let j of this._listeners)this._deliveryQueue.push([j,N]);for((W=this._perfMon)===null||W===void 0||W.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[j,A]=this._deliveryQueue.shift();try{typeof j=="function"?j.call(void 0,A):j[0].call(j[1],A)}catch(V){(0,l.dL)(V)}}(H=this._perfMon)===null||H===void 0||H.stop()}}dispose(){var N,W,H,j,A;this._disposed||(this._disposed=!0,(N=this._listeners)===null||N===void 0||N.clear(),(W=this._deliveryQueue)===null||W===void 0||W.clear(),(j=(H=this._options)===null||H===void 0?void 0:H.onLastListenerRemove)===null||j===void 0||j.call(H),(A=this._leakageMon)===null||A===void 0||A.dispose())}}class C extends o{constructor(N){super(N),this._isPaused=0,this._eventQueue=new U.S,this._mergeFn=N==null?void 0:N.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const N=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(N))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(N){this._listeners&&(this._isPaused!==0?this._eventQueue.push(N):super.fire(N))}}class P extends C{constructor(N){var W;super(N),this._delay=(W=N.delay)!==null&&W!==void 0?W:100}fire(N){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(N)}}class y{constructor(){this.buffers=[]}wrapEvent(N){return(W,H,j)=>N(A=>{const V=this.buffers[this.buffers.length-1];V?V.push(()=>W.call(H,A)):W.call(H,A)},void 0,j)}bufferEvents(N){const W=[];this.buffers.push(W);const H=N();return this.buffers.pop(),W.forEach(j=>j()),H}}class S{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=ie.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(N){this.inputEvent=N,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=N(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(ln,qe,d){"use strict";d.d(qe,{I:function(){return l}});function l(ie){const U=this;let le=!1,F;return function(){return le||(le=!0,F=ie.apply(U,arguments)),F}}},88226:function(ln,qe,d){"use strict";d.d(qe,{$:function(){return l}});var l;(function(ie){function U(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}ie.is=U;const le=Object.freeze([]);function F(){return le}ie.empty=F;function*g(V){yield V}ie.single=g;function q(V){return V||le}ie.from=q;function Q(V){return!V||V[Symbol.iterator]().next().done===!0}ie.isEmpty=Q;function o(V){return V[Symbol.iterator]().next().value}ie.first=o;function C(V,R){for(const L of V)if(R(L))return!0;return!1}ie.some=C;function P(V,R){for(const L of V)if(R(L))return L}ie.find=P;function*y(V,R){for(const L of V)R(L)&&(yield L)}ie.filter=y;function*S(V,R){let L=0;for(const ae of V)yield R(ae,L++)}ie.map=S;function*I(...V){for(const R of V)for(const L of R)yield L}ie.concat=I;function*N(V){for(const R of V)for(const L of R)yield L}ie.concatNested=N;function W(V,R,L){let ae=L;for(const pe of V)ae=R(ae,pe);return ae}ie.reduce=W;function*H(V,R,L=V.length){for(R<0&&(R+=V.length),L<0?L+=V.length:L>V.length&&(L=V.length);R<L;R++)yield V[R]}ie.slice=H;function j(V,R=Number.POSITIVE_INFINITY){const L=[];if(R===0)return[L,V];const ae=V[Symbol.iterator]();for(let pe=0;pe<R;pe++){const ce=ae.next();if(ce.done)return[L,ie.empty()];L.push(ce.value)}return[L,{[Symbol.iterator](){return ae}}]}ie.consume=j;function A(V,R,L=(ae,pe)=>ae===pe){const ae=V[Symbol.iterator](),pe=R[Symbol.iterator]();for(;;){const ce=ae.next(),Le=pe.next();if(ce.done!==Le.done)return!1;if(ce.done)return!0;if(!L(ce.value,Le.value))return!1}}ie.equals=A})(l||(l={}))},69323:function(ln,qe,d){"use strict";d.d(qe,{B9:function(){return S},F8:function(){return I},JT:function(){return H},Jz:function(){return A},OF:function(){return N},SL:function(){return W},Wf:function(){return y},XK:function(){return j},dk:function(){return C}});var l=d(17845),ie=d(88226);const U=!1;let le=null;function F(V){le=V}if(U){const V="__is_disposable_tracked__";F(new class{trackDisposable(R){const L=new Error("Potentially leaked disposable").stack;setTimeout(()=>{R[V]||console.log(L)},3e3)}setParent(R,L){if(R&&R!==H.None)try{R[V]=!0}catch(ae){}}markAsDisposed(R){if(R&&R!==H.None)try{R[V]=!0}catch(L){}}markAsSingleton(R){}})}function g(V){return le==null||le.trackDisposable(V),V}function q(V){le==null||le.markAsDisposed(V)}function Q(V,R){le==null||le.setParent(V,R)}function o(V,R){if(le)for(const L of V)le.setParent(L,R)}function C(V){return le==null||le.markAsSingleton(V),V}class P extends Error{constructor(R){super(`Encountered errors while disposing of store. Errors: [${R.join(", ")}]`),this.errors=R}}function y(V){return typeof V.dispose=="function"&&V.dispose.length===0}function S(V){if(ie.$.is(V)){let R=[];for(const L of V)if(L)try{L.dispose()}catch(ae){R.push(ae)}if(R.length===1)throw R[0];if(R.length>1)throw new P(R);return Array.isArray(V)?[]:V}else if(V)return V.dispose(),V}function I(...V){const R=N(()=>S(V));return o(V,R),R}function N(V){const R=g({dispose:(0,l.I)(()=>{q(R),V()})});return R}class W{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(q(this),this._isDisposed=!0,this.clear())}clear(){try{S(this._toDispose.values())}finally{this._toDispose.clear()}}add(R){if(!R)return R;if(R===this)throw new Error("Cannot register a disposable on itself!");return Q(R,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(R),R}}W.DISABLE_DISPOSED_WARNING=!1;class H{constructor(){this._store=new W,g(this),Q(this._store,this)}dispose(){q(this),this._store.dispose()}_register(R){if(R===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(R)}}H.None=Object.freeze({dispose(){}});class j{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(R){var L;this._isDisposed||R===this._value||((L=this._value)===null||L===void 0||L.dispose(),R&&Q(R,this),this._value=R)}clear(){this.value=void 0}dispose(){var R;this._isDisposed=!0,q(this),(R=this._value)===null||R===void 0||R.dispose(),this._value=void 0}clearAndLeak(){const R=this._value;return this._value=void 0,R&&Q(R,null),R}}class A{constructor(R){this.object=R}dispose(){}}},34502:function(ln,qe,d){"use strict";d.d(qe,{S:function(){return ie}});class l{constructor(le){this.element=le,this.next=l.Undefined,this.prev=l.Undefined}}l.Undefined=new l(void 0);class ie{constructor(){this._first=l.Undefined,this._last=l.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===l.Undefined}clear(){let le=this._first;for(;le!==l.Undefined;){const F=le.next;le.prev=l.Undefined,le.next=l.Undefined,le=F}this._first=l.Undefined,this._last=l.Undefined,this._size=0}unshift(le){return this._insert(le,!1)}push(le){return this._insert(le,!0)}_insert(le,F){const g=new l(le);if(this._first===l.Undefined)this._first=g,this._last=g;else if(F){const Q=this._last;this._last=g,g.prev=Q,Q.next=g}else{const Q=this._first;this._first=g,g.next=Q,Q.prev=g}this._size+=1;let q=!1;return()=>{q||(q=!0,this._remove(g))}}shift(){if(this._first!==l.Undefined){const le=this._first.element;return this._remove(this._first),le}}pop(){if(this._last!==l.Undefined){const le=this._last.element;return this._remove(this._last),le}}_remove(le){if(le.prev!==l.Undefined&&le.next!==l.Undefined){const F=le.prev;F.next=le.next,le.next.prev=F}else le.prev===l.Undefined&&le.next===l.Undefined?(this._first=l.Undefined,this._last=l.Undefined):le.next===l.Undefined?(this._last=this._last.prev,this._last.next=l.Undefined):le.prev===l.Undefined&&(this._first=this._first.next,this._first.prev=l.Undefined);this._size-=1}*[Symbol.iterator](){let le=this._first;for(;le!==l.Undefined;)yield le.element,le=le.next}}},23345:function(ln,qe,d){"use strict";d.d(qe,{$L:function(){return ae},ED:function(){return A},IJ:function(){return R},OS:function(){return $e},WE:function(){return ce},dz:function(){return V},gn:function(){return pe},li:function(){return N},r:function(){return se},tY:function(){return L},xS:function(){return Le}});var l=d(97671),ie;const U="en";let le=!1,F=!1,g=!1,q=!1,Q=!1,o=!1,C=!1,P,y=null,S=null,I;const N=typeof self=="object"?self:typeof d.g=="object"?d.g:{};let W;typeof N.vscode!="undefined"&&typeof N.vscode.process!="undefined"?W=N.vscode.process:typeof l!="undefined"&&(W=l);const H=typeof((ie=W==null?void 0:W.versions)===null||ie===void 0?void 0:ie.electron)=="string"&&W.type==="renderer";if(typeof navigator=="object"&&!H)I=navigator.userAgent,le=I.indexOf("Windows")>=0,F=I.indexOf("Macintosh")>=0,C=(I.indexOf("Macintosh")>=0||I.indexOf("iPad")>=0||I.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,g=I.indexOf("Linux")>=0,o=!0,P=navigator.language,y=P;else if(typeof W=="object"){le=W.platform==="win32",F=W.platform==="darwin",g=W.platform==="linux",q=g&&!!W.env.SNAP&&!!W.env.SNAP_REVISION,P=U,y=U;const K=W.env.VSCODE_NLS_CONFIG;if(K)try{const w=JSON.parse(K),te=w.availableLanguages["*"];P=w.locale,y=te||U,S=w._translationsConfigFile}catch(w){}Q=!0}else console.error("Unable to resolve platform.");let j=0;F?j=1:le?j=3:g&&(j=2);const A=le,V=F,R=g,L=Q,ae=o,pe=C,ce=I,Le=function(){if(N.setImmediate)return N.setImmediate.bind(N);if(typeof N.postMessage=="function"&&!N.importScripts){let te=[];N.addEventListener("message",z=>{if(z.data&&z.data.vscodeSetImmediateId)for(let x=0,T=te.length;x<T;x++){const G=te[x];if(G.id===z.data.vscodeSetImmediateId){te.splice(x,1),G.callback();return}}});let ne=0;return z=>{const x=++ne;te.push({id:x,callback:z}),N.postMessage({vscodeSetImmediateId:x},"*")}}if(typeof(W==null?void 0:W.nextTick)=="function")return W.nextTick.bind(W);const w=Promise.resolve();return te=>w.then(te)}(),$e=F||C?2:le?1:3;let Te=!0,Pe=!1;function se(){if(!Pe){Pe=!0;const K=new Uint8Array(2);K[0]=1,K[1]=2,Te=new Uint16Array(K.buffer)[0]===513}return Te}},95830:function(ln,qe,d){"use strict";d.d(qe,{G:function(){return U}});var l=d(23345);const ie=l.li.performance&&typeof l.li.performance.now=="function";class U{constructor(F){this._highResolution=ie&&F,this._startTime=this._now(),this._stopTime=-1}static create(F=!0){return new U(F)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?l.li.performance.now():Date.now()}}},82983:function(ln,qe,d){"use strict";d.d(qe,{$i:function(){return We},C8:function(){return rt},GF:function(){return P},HO:function(){return ne},IO:function(){return y},K7:function(){return Ve},Kw:function(){return tt},LC:function(){return N},Mh:function(){return Le},P1:function(){return $e},PJ:function(){return Pt},Qe:function(){return st},R1:function(){return C},RP:function(){return G},S6:function(){return Xe},TT:function(){return A},Ut:function(){return x},V8:function(){return W},WU:function(){return U},YK:function(){return Pe},YU:function(){return le},ZG:function(){return Te},ZH:function(){return K},ab:function(){return _e},c1:function(){return Ae},df:function(){return ae},ec:function(){return F},fi:function(){return Qe},fy:function(){return g},j3:function(){return q},j_:function(){return R},m5:function(){return l},mK:function(){return L},mr:function(){return S},oH:function(){return re},oL:function(){return Q},ok:function(){return ce},ow:function(){return H},qq:function(){return pe},qu:function(){return j},rL:function(){return se},uS:function(){return Tt},un:function(){return o},uq:function(){return I},vH:function(){return te},xe:function(){return Ke},zY:function(){return V}});function l(O){return!O||typeof O!="string"?!0:O.trim().length===0}const ie=/{(\d+)}/g;function U(O,...me){return me.length===0?O:O.replace(ie,function(Ee,ge){const we=parseInt(ge,10);return isNaN(we)||we<0||we>=me.length?Ee:me[we]})}function le(O){return O.replace(/[<>&]/g,function(me){switch(me){case"<":return"<";case">":return">";case"&":return"&";default:return me}})}function F(O){return O.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(O,me=" "){const Ee=q(O,me);return Q(Ee,me)}function q(O,me){if(!O||!me)return O;const Ee=me.length;if(Ee===0||O.length===0)return O;let ge=0;for(;O.indexOf(me,ge)===ge;)ge=ge+Ee;return O.substring(ge)}function Q(O,me){if(!O||!me)return O;const Ee=me.length,ge=O.length;if(Ee===0||ge===0)return O;let we=ge,ke=-1;for(;ke=O.lastIndexOf(me,we-1),!(ke===-1||ke+Ee!==we);){if(ke===0)return"";we=ke}return O.substring(0,we)}function o(O){return O.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C(O){return O.replace(/\*/g,"")}function P(O,me,Ee={}){if(!O)throw new Error("Cannot create regex from empty string");me||(O=F(O)),Ee.wholeWord&&(/\B/.test(O.charAt(0))||(O="\\b"+O),/\B/.test(O.charAt(O.length-1))||(O=O+"\\b"));let ge="";return Ee.global&&(ge+="g"),Ee.matchCase||(ge+="i"),Ee.multiline&&(ge+="m"),Ee.unicode&&(ge+="u"),new RegExp(O,ge)}function y(O){return O.source==="^"||O.source==="^$"||O.source==="$"||O.source==="^\\s*$"?!1:!!(O.exec("")&&O.lastIndex===0)}function S(O){return(O.global?"g":"")+(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")}function I(O){return O.split(/\r\n|\r|\n/)}function N(O){for(let me=0,Ee=O.length;me<Ee;me++){const ge=O.charCodeAt(me);if(ge!==32&&ge!==9)return me}return-1}function W(O,me=0,Ee=O.length){for(let ge=me;ge<Ee;ge++){const we=O.charCodeAt(ge);if(we!==32&&we!==9)return O.substring(me,ge)}return O.substring(me,Ee)}function H(O,me=O.length-1){for(let Ee=me;Ee>=0;Ee--){const ge=O.charCodeAt(Ee);if(ge!==32&&ge!==9)return Ee}return-1}function j(O,me){return O<me?-1:O>me?1:0}function A(O,me,Ee=0,ge=O.length,we=0,ke=me.length){for(;Ee<ge&&we<ke;Ee++,we++){let fe=O.charCodeAt(Ee),dt=me.charCodeAt(we);if(fe<dt)return-1;if(fe>dt)return 1}const Ye=ge-Ee,oe=ke-we;return Ye<oe?-1:Ye>oe?1:0}function V(O,me){return R(O,me,0,O.length,0,me.length)}function R(O,me,Ee=0,ge=O.length,we=0,ke=me.length){for(;Ee<ge&&we<ke;Ee++,we++){let fe=O.charCodeAt(Ee),dt=me.charCodeAt(we);if(fe===dt)continue;if(fe>=128||dt>=128)return A(O.toLowerCase(),me.toLowerCase(),Ee,ge,we,ke);L(fe)&&(fe-=32),L(dt)&&(dt-=32);const ot=fe-dt;if(ot!==0)return ot}const Ye=ge-Ee,oe=ke-we;return Ye<oe?-1:Ye>oe?1:0}function L(O){return O>=97&&O<=122}function ae(O){return O>=65&&O<=90}function pe(O,me){return O.length===me.length&&R(O,me)===0}function ce(O,me){const Ee=me.length;return me.length>O.length?!1:R(O,me,0,Ee)===0}function Le(O,me){let Ee,ge=Math.min(O.length,me.length);for(Ee=0;Ee<ge;Ee++)if(O.charCodeAt(Ee)!==me.charCodeAt(Ee))return Ee;return ge}function $e(O,me){let Ee,ge=Math.min(O.length,me.length);const we=O.length-1,ke=me.length-1;for(Ee=0;Ee<ge;Ee++)if(O.charCodeAt(we-Ee)!==me.charCodeAt(ke-Ee))return Ee;return ge}function Te(O){return 55296<=O&&O<=56319}function Pe(O){return 56320<=O&&O<=57343}function se(O,me){return(O-55296<<10)+(me-56320)+65536}function K(O,me,Ee){const ge=O.charCodeAt(Ee);if(Te(ge)&&Ee+1<me){const we=O.charCodeAt(Ee+1);if(Pe(we))return se(ge,we)}return ge}function w(O,me){const Ee=O.charCodeAt(me-1);if(Pe(Ee)&&me>1){const ge=O.charCodeAt(me-2);if(Te(ge))return se(ge,Ee)}return Ee}function te(O,me){const Ee=Ne.getInstance(),ge=me,we=O.length,ke=K(O,we,me);me+=ke>=65536?2:1;let Ye=Ee.getGraphemeBreakType(ke);for(;me<we;){const oe=K(O,we,me),fe=Ee.getGraphemeBreakType(oe);if(Qe(Ye,fe))break;me+=oe>=65536?2:1,Ye=fe}return me-ge}function ne(O,me){const Ee=Ne.getInstance(),ge=me,we=w(O,me);me-=we>=65536?2:1;let ke=Ee.getGraphemeBreakType(we);for(;me>0;){const Ye=w(O,me),oe=Ee.getGraphemeBreakType(Ye);if(Qe(oe,ke))break;me-=Ye>=65536?2:1,ke=oe}return ge-me}const z=/(?:[\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 x(O){return z.test(O)}const T=/(?:[\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 G(O){return T.test(O)}const ve=/^[\t\n\r\x20-\x7E]*$/;function We(O){return ve.test(O)}const st=/[\u2028\u2029]/;function _e(O){return st.test(O)}function Ke(O){for(let me=0,Ee=O.length;me<Ee;me++)if(Ve(O.charCodeAt(me)))return!0;return!1}function Ve(O){return O=+O,O>=11904&&O<=55215||O>=63744&&O<=64255||O>=65281&&O<=65374}function rt(O){return O>=127462&&O<=127487||O===8986||O===8987||O===9200||O===9203||O>=9728&&O<=10175||O===11088||O===11093||O>=127744&&O<=128591||O>=128640&&O<=128764||O>=128992&&O<=129003||O>=129280&&O<=129535||O>=129648&&O<=129750}const Ae="\uFEFF";function Tt(O){return!!(O&&O.length>0&&O.charCodeAt(0)===65279)}function tt(O,me=!1){return O?(me&&(O=O.replace(/\\./g,"")),O.toLowerCase()!==O):!1}function Pt(O){return O=O%(2*26),O<26?String.fromCharCode(97+O):String.fromCharCode(65+O-26)}function Xe(O){return Ne.getInstance().getGraphemeBreakType(O)}function Qe(O,me){return O===0?me!==5&&me!==7:O===2&&me===3?!1:O===4||O===2||O===3||me===4||me===2||me===3?!0:!(O===8&&(me===8||me===9||me===11||me===12)||(O===11||O===9)&&(me===9||me===10)||(O===12||O===10)&&me===10||me===5||me===13||me===7||O===1||O===13&&me===14||O===6&&me===6)}class Ne{constructor(){this._data=Oe()}static getInstance(){return Ne._INSTANCE||(Ne._INSTANCE=new Ne),Ne._INSTANCE}getGraphemeBreakType(me){if(me<32)return me===10?3:me===13?2:4;if(me<127)return 0;const Ee=this._data,ge=Ee.length/3;let we=1;for(;we<=ge;)if(me<Ee[3*we])we=2*we;else if(me>Ee[3*we+1])we=2*we+1;else return Ee[3*we+2];return 0}}Ne._INSTANCE=null;function Oe(){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 re(O,me){if(O===0)return 0;const Ee=Fe(O,me);if(Ee!==void 0)return Ee;const ge=w(me,O);return O-=Re(ge),O}function Fe(O,me){let Ee=w(me,O);for(O-=Re(Ee);Z(Ee)||Ee===65039||Ee===8419;){if(O===0)return;Ee=w(me,O),O-=Re(Ee)}if(rt(Ee)){if(O>=0){const ge=w(me,O);ge===8205&&(O-=Re(ge))}return O}}function Re(O){return O>=65536?2:1}function Z(O){return 127995<=O&&O<=127999}},72999:function(ln,qe,d){"use strict";d.d(qe,{$E:function(){return N},$K:function(){return q},D8:function(){return y},HD:function(){return ie},IU:function(){return W},Jp:function(){return Q},Kn:function(){return U},cW:function(){return C},f6:function(){return H},hj:function(){return le},jn:function(){return F},kJ:function(){return l},mf:function(){return P},o8:function(){return g},p_:function(){return o},vE:function(){return j}});function l(A){return Array.isArray(A)}function ie(A){return typeof A=="string"}function U(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)&&!(A instanceof RegExp)&&!(A instanceof Date)}function le(A){return typeof A=="number"&&!isNaN(A)}function F(A){return A===!0||A===!1}function g(A){return typeof A=="undefined"}function q(A){return!Q(A)}function Q(A){return g(A)||A===null}function o(A,V){if(!A)throw new Error(V?`Unexpected type, expected '${V}'`:"Unexpected type")}function C(A){if(Q(A))throw new Error("Assertion Failed: argument is undefined or null");return A}function P(A){return typeof A=="function"}function y(A,V){const R=Math.min(A.length,V.length);for(let L=0;L<R;L++)S(A[L],V[L])}function S(A,V){if(ie(V)){if(typeof A!==V)throw new Error(`argument does not match constraint: typeof ${V}`)}else if(P(V)){try{if(A instanceof V)return}catch(R){}if(!Q(A)&&A.constructor===V||V.length===1&&V.call(void 0,A)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function I(A){let V=[],R=Object.getPrototypeOf(A);for(;Object.prototype!==R;)V=V.concat(Object.getOwnPropertyNames(R)),R=Object.getPrototypeOf(R);return V}function N(A){const V=[];for(const R of I(A))typeof A[R]=="function"&&V.push(R);return V}function W(A,V){const R=ae=>function(){const pe=Array.prototype.slice.call(arguments,0);return V(ae,pe)};let L={};for(const ae of A)L[ae]=R(ae);return L}function H(A){return A===null?void 0:A}function j(A,V="Unreachable"){throw new Error(V)}},13268:function(ln,qe,d){"use strict";d.d(qe,{N:function(){return ie}});function l(U,le){let F;return le.length===0?F=U:F=U.replace(/\{(\d+)\}/g,function(g,q){const Q=q[0];return typeof le[Q]!="undefined"?le[Q]:g}),F}function ie(U,le,...F){return l(le,F)}},96236:function(ln,qe,d){"use strict";d.d(qe,{BH:function(){return W},NZ:function(){return H},U8:function(){return j},co:function(){return N},eH:function(){return I},vr:function(){return S}});var l=d(75918),ie=d(52615),U=d(4348),le=d(88226),F=d(69323),g=d(34502),q=d(35884),Q=d(90689),o=d(16925),C=d(49055),P=function(A,V,R,L){var ae=arguments.length,pe=ae<3?V:L===null?L=Object.getOwnPropertyDescriptor(V,R):L,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(A,V,R,L);else for(var Le=A.length-1;Le>=0;Le--)(ce=A[Le])&&(pe=(ae<3?ce(pe):ae>3?ce(V,R,pe):ce(V,R))||pe);return ae>3&&pe&&Object.defineProperty(V,R,pe),pe},y=function(A,V){return function(R,L){V(R,L,A)}};function S(A){return A.command!==void 0}class I{constructor(V){this.id=I._idPool++,this._debugName=V}}I._idPool=0,I.CommandPalette=new I("CommandPalette"),I.EditorContext=new I("EditorContext"),I.SimpleEditorContext=new I("SimpleEditorContext"),I.EditorContextCopy=new I("EditorContextCopy"),I.EditorContextPeek=new I("EditorContextPeek"),I.MenubarEditMenu=new I("MenubarEditMenu"),I.MenubarCopy=new I("MenubarCopy"),I.MenubarGoMenu=new I("MenubarGoMenu"),I.MenubarSelectionMenu=new I("MenubarSelectionMenu"),I.InlineCompletionsActions=new I("InlineCompletionsActions");const N=(0,o.yh)("menuService"),W=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new U.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:A=>A===I.CommandPalette}}addCommand(A){return this.addCommands(le.$.single(A))}addCommands(A){for(const V of A)this._commands.set(V.id,V);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,F.OF)(()=>{let V=!1;for(const R of A)V=this._commands.delete(R.id)||V;V&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(A){return this._commands.get(A)}getCommands(){const A=new Map;return this._commands.forEach((V,R)=>A.set(R,V)),A}appendMenuItem(A,V){return this.appendMenuItems(le.$.single({id:A,item:V}))}appendMenuItems(A){const V=new Set,R=new g.S;for(const{id:L,item:ae}of A){let pe=this._menuItems.get(L);pe||(pe=new g.S,this._menuItems.set(L,pe)),R.push(pe.push(ae)),V.add(L)}return this._onDidChangeMenu.fire(V),(0,F.OF)(()=>{if(R.size>0){for(let L of R)L();this._onDidChangeMenu.fire(V),R.clear()}})}getMenuItems(A){let V;return this._menuItems.has(A)?V=[...this._menuItems.get(A)]:V=[],A===I.CommandPalette&&this._appendImplicitItems(V),V}_appendImplicitItems(A){const V=new Set;for(const R of A)S(R)&&(V.add(R.command.id),R.alt&&V.add(R.alt.id));this._commands.forEach((R,L)=>{V.has(L)||A.push({command:R})})}};class H extends l.wY{constructor(V,R,L,ae){super(`submenuitem.${V.submenu.id}`,typeof V.title=="string"?V.title:V.title.value,[],"submenu"),this.item=V,this._menuService=R,this._contextKeyService=L,this._options=ae}get actions(){const V=[],R=this._menuService.createMenu(this.item.submenu,this._contextKeyService),L=R.getActions(this._options);R.dispose();for(const[,ae]of L)ae.length>0&&(V.push(...ae),V.push(new l.Z0));return V.length&&V.pop(),V}}let j=class cc{constructor(V,R,L,ae,pe){var ce,Le;if(this._commandService=pe,this.id=V.id,this.label=L!=null&&L.renderShortTitle&&V.shortTitle?typeof V.shortTitle=="string"?V.shortTitle:V.shortTitle.value:typeof V.title=="string"?V.title:V.title.value,this.tooltip=(Le=typeof V.tooltip=="string"?V.tooltip:(ce=V.tooltip)===null||ce===void 0?void 0:ce.value)!==null&&Le!==void 0?Le:"",this.enabled=!V.precondition||ae.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const $e=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=ae.contextMatchesRules($e.condition),this.checked&&$e.tooltip&&(this.tooltip=typeof $e.tooltip=="string"?$e.tooltip:$e.tooltip.value),$e.title&&(this.label=typeof $e.title=="string"?$e.title:$e.title.value)}this.item=V,this.alt=R?new cc(R,void 0,L,ae,pe):void 0,this._options=L,C.kS.isThemeIcon(V.icon)&&(this.class=ie.dT.asClassName(V.icon))}dispose(){}run(...V){var R,L;let ae=[];return!((R=this._options)===null||R===void 0)&&R.arg&&(ae=[...ae,this._options.arg]),!((L=this._options)===null||L===void 0)&&L.shouldForwardArgs&&(ae=[...ae,...V]),this._commandService.executeCommand(this.id,...ae)}};j=P([y(3,Q.i6),y(4,q.H)],j)},35884:function(ln,qe,d){"use strict";d.d(qe,{H:function(){return q},P:function(){return Q}});var l=d(4348),ie=d(88226),U=d(69323),le=d(34502),F=d(72999),g=d(16925);const q=(0,g.yh)("commandService"),Q=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new l.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,C){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:o,handler:C})}if(o.description){const N=[];for(let H of o.description.args)N.push(H.constraint);const W=o.handler;o.handler=function(H,...j){return(0,F.D8)(j,N),W(H,...j)}}const{id:P}=o;let y=this._commands.get(P);y||(y=new le.S,this._commands.set(P,y));let S=y.unshift(o),I=(0,U.OF)(()=>{S();const N=this._commands.get(P);N!=null&&N.isEmpty()&&this._commands.delete(P)});return this._onDidRegisterCommand.fire(P),I}registerCommandAlias(o,C){return Q.registerCommand(o,(P,...y)=>P.get(q).executeCommand(C,...y))}getCommand(o){const C=this._commands.get(o);if(!(!C||C.isEmpty()))return ie.$.first(C)}getCommands(){const o=new Map;for(const C of this._commands.keys()){const P=this.getCommand(C);P&&o.set(C,P)}return o}};Q.registerCommand("noop",()=>{})},90689:function(ln,qe,d){"use strict";d.d(qe,{Ao:function(){return q},Eq:function(){return se},Fb:function(){return Q},K8:function(){return te},i6:function(){return Pe},uy:function(){return Te}});var l=d(23345),ie=d(82983),U=d(16925);let le=l.WE||"";const F=new Map;F.set("false",!1),F.set("true",!0),F.set("isMac",l.dz),F.set("isLinux",l.IJ),F.set("isWindows",l.ED),F.set("isWeb",l.$L),F.set("isMacNative",l.dz&&!l.$L),F.set("isEdge",le.indexOf("Edg/")>=0),F.set("isFirefox",le.indexOf("Firefox")>=0),F.set("isChrome",le.indexOf("Chrome")>=0),F.set("isSafari",le.indexOf("Safari")>=0);const g=Object.prototype.hasOwnProperty;class q{static has(x){return y.create(x)}static equals(x,T){return S.create(x,T)}static regex(x,T){return ae.create(x,T)}static not(x){return H.create(x)}static and(...x){return Le.create(x,null)}static or(...x){return $e.create(x,null,!0)}static deserialize(x,T=!1){if(x)return this._deserializeOrExpression(x,T)}static _deserializeOrExpression(x,T){let G=x.split("||");return $e.create(G.map(ve=>this._deserializeAndExpression(ve,T)),null,!0)}static _deserializeAndExpression(x,T){let G=x.split("&&");return Le.create(G.map(ve=>this._deserializeOne(ve,T)),null)}static _deserializeOne(x,T){if(x=x.trim(),x.indexOf("!=")>=0){let G=x.split("!=");return W.create(G[0].trim(),this._deserializeValue(G[1],T))}if(x.indexOf("==")>=0){let G=x.split("==");return S.create(G[0].trim(),this._deserializeValue(G[1],T))}if(x.indexOf("=~")>=0){let G=x.split("=~");return ae.create(G[0].trim(),this._deserializeRegexValue(G[1],T))}if(x.indexOf(" in ")>=0){let G=x.split(" in ");return I.create(G[0].trim(),G[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(x)){const G=x.split(">=");return V.create(G[0].trim(),G[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(x)){const G=x.split(">");return A.create(G[0].trim(),G[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(x)){const G=x.split("<=");return L.create(G[0].trim(),G[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(x)){const G=x.split("<");return R.create(G[0].trim(),G[1].trim())}return/^\!\s*/.test(x)?H.create(x.substr(1).trim()):y.create(x)}static _deserializeValue(x,T){if(x=x.trim(),x==="true")return!0;if(x==="false")return!1;let G=/^'([^']*)'$/.exec(x);return G?G[1].trim():x}static _deserializeRegexValue(x,T){if((0,ie.m5)(x)){if(T)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let G=x.indexOf("/"),ve=x.lastIndexOf("/");if(G===ve||G<0){if(T)throw new Error(`bad regexp-value '${x}', missing /-enclosure`);return console.warn(`bad regexp-value '${x}', missing /-enclosure`),null}let We=x.slice(G+1,ve),st=x[ve+1]==="i"?"i":"";try{return new RegExp(We,st)}catch(_e){if(T)throw new Error(`bad regexp-value '${x}', parse error: ${_e}`);return console.warn(`bad regexp-value '${x}', parse error: ${_e}`),null}}}function Q(z,x){const T=z?z.substituteConstants():void 0,G=x?x.substituteConstants():void 0;return!T&&!G?!0:!T||!G?!1:T.equals(G)}function o(z,x){return z.cmp(x)}class C{constructor(){this.type=0}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!1}serialize(){return"false"}keys(){return[]}negate(){return P.INSTANCE}}C.INSTANCE=new C;class P{constructor(){this.type=1}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!0}serialize(){return"true"}keys(){return[]}negate(){return C.INSTANCE}}P.INSTANCE=new P;class y{constructor(x,T){this.key=x,this.negated=T,this.type=2}static create(x,T=null){const G=F.get(x);return typeof G=="boolean"?G?P.INSTANCE:C.INSTANCE:new y(x,T)}cmp(x){return x.type!==this.type?this.type-x.type:K(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=F.get(this.key);return typeof x=="boolean"?x?P.INSTANCE:C.INSTANCE:this}evaluate(x){return!!x.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this)),this.negated}}class S{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=4}static create(x,T,G=null){if(typeof T=="boolean")return T?y.create(x,G):H.create(x,G);const ve=F.get(x);return typeof ve=="boolean"?T===(ve?"true":"false")?P.INSTANCE:C.INSTANCE:new S(x,T,G)}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=F.get(this.key);if(typeof x=="boolean"){const T=x?"true":"false";return this.value===T?P.INSTANCE:C.INSTANCE}return this}evaluate(x){return x.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 I{constructor(x,T){this.key=x,this.valueKey=T,this.type=10,this.negated=null}static create(x,T){return new I(x,T)}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.valueKey,x.key,x.valueKey)}equals(x){return x.type===this.type?this.key===x.key&&this.valueKey===x.valueKey:!1}substituteConstants(){return this}evaluate(x){const T=x.getValue(this.valueKey),G=x.getValue(this.key);return Array.isArray(T)?T.indexOf(G)>=0:typeof G=="string"&&typeof T=="object"&&T!==null?g.call(T,G):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=N.create(this)),this.negated}}class N{constructor(x){this._actual=x,this.type=11}static create(x){return new N(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class W{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=5}static create(x,T,G=null){if(typeof T=="boolean")return T?H.create(x,G):y.create(x,G);const ve=F.get(x);return typeof ve=="boolean"?T===(ve?"true":"false")?C.INSTANCE:P.INSTANCE:new W(x,T,G)}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=F.get(this.key);if(typeof x=="boolean"){const T=x?"true":"false";return this.value===T?C.INSTANCE:P.INSTANCE}return this}evaluate(x){return x.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class H{constructor(x,T){this.key=x,this.negated=T,this.type=3}static create(x,T=null){const G=F.get(x);return typeof G=="boolean"?G?C.INSTANCE:P.INSTANCE:new H(x,T)}cmp(x){return x.type!==this.type?this.type-x.type:K(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=F.get(this.key);return typeof x=="boolean"?x?C.INSTANCE:P.INSTANCE:this}evaluate(x){return!x.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this)),this.negated}}function j(z,x){if(typeof z=="string"){const T=parseFloat(z);isNaN(T)||(z=T)}return typeof z=="string"||typeof z=="number"?x(z):C.INSTANCE}class A{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=12}static create(x,T,G=null){return j(T,ve=>new A(x,ve,G))}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.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 V{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=13}static create(x,T,G=null){return j(T,ve=>new V(x,ve,G))}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class R{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=14}static create(x,T,G=null){return j(T,ve=>new R(x,ve,G))}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class L{constructor(x,T,G){this.key=x,this.value=T,this.negated=G,this.type=15}static create(x,T,G=null){return j(T,ve=>new L(x,ve,G))}cmp(x){return x.type!==this.type?this.type-x.type:w(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.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 ae{constructor(x,T){this.key=x,this.regexp=T,this.type=7,this.negated=null}static create(x,T){return new ae(x,T)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.key<x.key)return-1;if(this.key>x.key)return 1;const T=this.regexp?this.regexp.source:"",G=x.regexp?x.regexp.source:"";return T<G?-1:T>G?1:0}equals(x){if(x.type===this.type){const T=this.regexp?this.regexp.source:"",G=x.regexp?x.regexp.source:"";return this.key===x.key&&T===G}return!1}substituteConstants(){return this}evaluate(x){let T=x.getValue(this.key);return this.regexp?this.regexp.test(T):!1}serialize(){const x=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${x}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=pe.create(this)),this.negated}}class pe{constructor(x){this._actual=x,this.type=8}static create(x){return new pe(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function ce(z){let x=null;for(let T=0,G=z.length;T<G;T++){const ve=z[T].substituteConstants();if(z[T]!==ve&&x===null){x=[];for(let We=0;We<T;We++)x[We]=z[We]}x!==null&&(x[T]=ve)}return x===null?z:x}class Le{constructor(x,T){this.expr=x,this.negated=T,this.type=6}static create(x,T){return Le._normalizeArr(x,T)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let T=0,G=this.expr.length;T<G;T++){const ve=o(this.expr[T],x.expr[T]);if(ve!==0)return ve}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let T=0,G=this.expr.length;T<G;T++)if(!this.expr[T].equals(x.expr[T]))return!1;return!0}return!1}substituteConstants(){const x=ce(this.expr);return x===this.expr?this:Le.create(x,this.negated)}evaluate(x){for(let T=0,G=this.expr.length;T<G;T++)if(!this.expr[T].evaluate(x))return!1;return!0}static _normalizeArr(x,T){const G=[];let ve=!1;for(const We of x)if(We){if(We.type===1){ve=!0;continue}if(We.type===0)return C.INSTANCE;if(We.type===6){G.push(...We.expr);continue}G.push(We)}if(G.length===0&&ve)return P.INSTANCE;if(G.length!==0){if(G.length===1)return G[0];G.sort(o);for(let We=1;We<G.length;We++)G[We-1].equals(G[We])&&(G.splice(We,1),We--);if(G.length===1)return G[0];for(;G.length>1;){const We=G[G.length-1];if(We.type!==9)break;G.pop();const st=G.pop(),_e=G.length===0,Ke=$e.create(We.expr.map(Ve=>Le.create([Ve,st],null)),null,_e);Ke&&(G.push(Ke),G.sort(o))}return G.length===1?G[0]:new Le(G,T)}}serialize(){return this.expr.map(x=>x.serialize()).join(" && ")}keys(){const x=[];for(let T of this.expr)x.push(...T.keys());return x}negate(){if(!this.negated){const x=[];for(let T of this.expr)x.push(T.negate());this.negated=$e.create(x,this,!0)}return this.negated}}class $e{constructor(x,T){this.expr=x,this.negated=T,this.type=9}static create(x,T,G){return $e._normalizeArr(x,T,G)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let T=0,G=this.expr.length;T<G;T++){const ve=o(this.expr[T],x.expr[T]);if(ve!==0)return ve}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let T=0,G=this.expr.length;T<G;T++)if(!this.expr[T].equals(x.expr[T]))return!1;return!0}return!1}substituteConstants(){const x=ce(this.expr);return x===this.expr?this:$e.create(x,this.negated,!1)}evaluate(x){for(let T=0,G=this.expr.length;T<G;T++)if(this.expr[T].evaluate(x))return!0;return!1}static _normalizeArr(x,T,G){let ve=[],We=!1;if(x){for(let st=0,_e=x.length;st<_e;st++){const Ke=x[st];if(Ke){if(Ke.type===0){We=!0;continue}if(Ke.type===1)return P.INSTANCE;if(Ke.type===9){ve=ve.concat(Ke.expr);continue}ve.push(Ke)}}if(ve.length===0&&We)return C.INSTANCE;ve.sort(o)}if(ve.length!==0){if(ve.length===1)return ve[0];for(let st=1;st<ve.length;st++)ve[st-1].equals(ve[st])&&(ve.splice(st,1),st--);if(ve.length===1)return ve[0];if(G){for(let st=0;st<ve.length;st++)for(let _e=st+1;_e<ve.length;_e++)te(ve[st],ve[_e])&&(ve.splice(_e,1),_e--);if(ve.length===1)return ve[0]}return new $e(ve,T)}}serialize(){return this.expr.map(x=>x.serialize()).join(" || ")}keys(){const x=[];for(let T of this.expr)x.push(...T.keys());return x}negate(){if(!this.negated){let x=[];for(let T of this.expr)x.push(T.negate());for(;x.length>1;){const T=x.shift(),G=x.shift(),ve=[];for(const st of ne(T))for(const _e of ne(G))ve.push(Le.create([st,_e],null));const We=x.length===0;x.unshift($e.create(ve,null,We))}this.negated=x[0]}return this.negated}}class Te extends y{constructor(x,T,G){super(x,null),this._defaultValue=T,typeof G=="object"?Te._info.push(Object.assign(Object.assign({},G),{key:x})):G!==!0&&Te._info.push({key:x,description:G,type:T!=null?typeof T:void 0})}static all(){return Te._info.values()}bindTo(x){return x.createKey(this.key,this._defaultValue)}getValue(x){return x.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(x){return S.create(this.key,x)}}Te._info=[];const Pe=(0,U.yh)("contextKeyService"),se="setContext";function K(z,x){return z<x?-1:z>x?1:0}function w(z,x,T,G){return z<T?-1:z>T?1:x<G?-1:x>G?1:0}function te(z,x){if(x.type===6&&z.type!==9&&z.type!==6){for(const ve of x.expr)if(z.equals(ve))return!0}const T=z.negate(),G=ne(T).concat(ne(x));G.sort(o);for(let ve=0;ve<G.length;ve++){const st=G[ve].negate();for(let _e=ve+1;_e<G.length;_e++){const Ke=G[_e];if(st.equals(Ke))return!0}}return!1}function ne(z){return z.type===9?z.expr:[z]}},16925:function(ln,qe,d){"use strict";d.d(qe,{I8:function(){return l},TG:function(){return ie},jt:function(){return F},yh:function(){return le}});var l;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function q(Q){return Q[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=q})(l||(l={}));const ie=le("instantiationService");function U(g,q,Q,o){q[l.DI_TARGET]===q?q[l.DI_DEPENDENCIES].push({id:g,index:Q,optional:o}):(q[l.DI_DEPENDENCIES]=[{id:g,index:Q,optional:o}],q[l.DI_TARGET]=q)}function le(g){if(l.serviceIds.has(g))return l.serviceIds.get(g);const q=function(Q,o,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(q,Q,C,!1)};return q.toString=()=>g,l.serviceIds.set(g,q),q}function F(g){return function(q,Q,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");U(g,q,o,!0)}}},44650:function(ln,qe,d){"use strict";d.d(qe,{B:function(){return le}});var l=d(76068),ie=d(72999);class U{constructor(){this.data=new Map}add(g,q){l.ok(ie.HD(g)),l.ok(ie.Kn(q)),l.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,q)}as(g){return this.data.get(g)||null}}const le=new U},66213:function(ln,qe,d){"use strict";d.d(qe,{e:function(){return l}});var l;(function(ie){ie.DARK="dark",ie.LIGHT="light",ie.HIGH_CONTRAST="hc"})(l||(l={}))},49055:function(ln,qe,d){"use strict";d.d(qe,{EN:function(){return o},IP:function(){return y},Ic:function(){return N},XE:function(){return q},bB:function(){return W},kS:function(){return C},m6:function(){return P}});var l=d(52615),ie=d(4348),U=d(69323),le=d(16925),F=d(44650),g=d(66213);const q=(0,le.yh)("themeService");var Q;(function(H){function j(A){return A&&typeof A=="object"&&typeof A.id=="string"}H.isThemeColor=j})(Q||(Q={}));function o(H){return{id:H}}var C;(function(H){function j(pe){return pe&&typeof pe=="object"&&typeof pe.id=="string"&&(typeof pe.color=="undefined"||Q.isThemeColor(pe.color))}H.isThemeIcon=j;const A=new RegExp(`^\\$\\((${l.dT.iconNameExpression}(?:${l.dT.iconModifierExpression})?)\\)$`);function V(pe){const ce=A.exec(pe);if(!ce)return;let[,Le]=ce;return{id:Le}}H.fromString=V;function R(pe,ce){let Le=pe.id;const $e=Le.lastIndexOf("~");return $e!==-1&&(Le=Le.substring(0,$e)),ce&&(Le=`${Le}~${ce}`),{id:Le}}H.modify=R;function L(pe,ce){var Le,$e;return pe.id===ce.id&&((Le=pe.color)===null||Le===void 0?void 0:Le.id)===(($e=ce.color)===null||$e===void 0?void 0:$e.id)}H.isEqual=L;function ae(pe,ce){return{id:pe.id,color:ce?o(ce):void 0}}H.asThemeIcon=ae,H.asClassNameArray=l.dT.asClassNameArray,H.asClassName=l.dT.asClassName,H.asCSSSelector=l.dT.asCSSSelector})(C||(C={}));function P(H){switch(H){case g.e.DARK:return"vs-dark";case g.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const y={ThemingContribution:"base.contributions.theming"};class S{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ie.Q5}onColorThemeChange(j){return this.themingParticipants.push(j),this.onThemingParticipantAddedEmitter.fire(j),(0,U.OF)(()=>{const A=this.themingParticipants.indexOf(j);this.themingParticipants.splice(A,1)})}getThemingParticipants(){return this.themingParticipants}}let I=new S;F.B.add(y.ThemingContribution,I);function N(H){return I.onColorThemeChange(H)}class W extends U.JT{constructor(j){super(),this.themeService=j,this.theme=j.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(A=>this.onThemeChange(A)))}onThemeChange(j){this.theme=j,this.updateStyles()}updateStyles(){}}},16632:function(ln,qe,d){"use strict";var l=d(60499),ie=d(85899),U=d(18642),le=d(72190),F=d(42244),g=d(92310),q=d.n(g),Q=d(18929),o=d(59301),C=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],P=(0,o.forwardRef)(function(y,S){var I=y.prefixCls,N=I===void 0?"rc-checkbox":I,W=y.className,H=y.style,j=y.checked,A=y.disabled,V=y.defaultChecked,R=V===void 0?!1:V,L=y.type,ae=L===void 0?"checkbox":L,pe=y.title,ce=y.onChange,Le=(0,F.Z)(y,C),$e=(0,o.useRef)(null),Te=(0,o.useRef)(null),Pe=(0,Q.Z)(R,{value:j}),se=(0,le.Z)(Pe,2),K=se[0],w=se[1];(0,o.useImperativeHandle)(S,function(){return{focus:function(x){var T;(T=$e.current)===null||T===void 0||T.focus(x)},blur:function(){var x;(x=$e.current)===null||x===void 0||x.blur()},input:$e.current,nativeElement:Te.current}});var te=q()(N,W,(0,U.Z)((0,U.Z)({},"".concat(N,"-checked"),K),"".concat(N,"-disabled"),A)),ne=function(x){A||("checked"in y||w(x.target.checked),ce==null||ce({target:(0,ie.Z)((0,ie.Z)({},y),{},{type:ae,checked:x.target.checked}),stopPropagation:function(){x.stopPropagation()},preventDefault:function(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return o.createElement("span",{className:te,title:pe,style:H,ref:Te},o.createElement("input",(0,l.Z)({},Le,{className:"".concat(N,"-input"),ref:$e,onChange:ne,disabled:A,checked:!!K,type:ae})),o.createElement("span",{className:"".concat(N,"-inner")}))});qe.Z=P},96478:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return pe}});var l=d(60499),ie=d(18642),U=d(72190),le=d(42244),F=d(68196),g=d(92310),q=d.n(g),Q=d(8654),o=d(59301),C=d(10228),P=d(16089),y=C.Z.ESC,S=C.Z.TAB;function I(ce){var Le=ce.visible,$e=ce.triggerRef,Te=ce.onVisibleChange,Pe=ce.autoFocus,se=ce.overlayRef,K=o.useRef(!1),w=function(){if(Le){var x,T;(x=$e.current)===null||x===void 0||(T=x.focus)===null||T===void 0||T.call(x),Te==null||Te(!1)}},te=function(){var x;return(x=se.current)!==null&&x!==void 0&&x.focus?(se.current.focus(),K.current=!0,!0):!1},ne=function(x){switch(x.keyCode){case y:w();break;case S:{var T=!1;K.current||(T=te()),T?x.preventDefault():w();break}}};o.useEffect(function(){return Le?(window.addEventListener("keydown",ne),Pe&&(0,P.Z)(te,3),function(){window.removeEventListener("keydown",ne),K.current=!1}):function(){K.current=!1}},[Le])}var N=(0,o.forwardRef)(function(ce,Le){var $e=ce.overlay,Te=ce.arrow,Pe=ce.prefixCls,se=(0,o.useMemo)(function(){var w;return typeof $e=="function"?w=$e():w=$e,w},[$e]),K=(0,Q.sQ)(Le,(0,Q.C4)(se));return o.createElement(o.Fragment,null,Te&&o.createElement("div",{className:"".concat(Pe,"-arrow")}),o.cloneElement(se,{ref:(0,Q.Yr)(se)?K:void 0}))}),W=N,H={adjustX:1,adjustY:1},j=[0,0],A={topLeft:{points:["bl","tl"],overflow:H,offset:[0,-4],targetOffset:j},top:{points:["bc","tc"],overflow:H,offset:[0,-4],targetOffset:j},topRight:{points:["br","tr"],overflow:H,offset:[0,-4],targetOffset:j},bottomLeft:{points:["tl","bl"],overflow:H,offset:[0,4],targetOffset:j},bottom:{points:["tc","bc"],overflow:H,offset:[0,4],targetOffset:j},bottomRight:{points:["tr","br"],overflow:H,offset:[0,4],targetOffset:j}},V=A,R=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(ce,Le){var $e,Te=ce.arrow,Pe=Te===void 0?!1:Te,se=ce.prefixCls,K=se===void 0?"rc-dropdown":se,w=ce.transitionName,te=ce.animation,ne=ce.align,z=ce.placement,x=z===void 0?"bottomLeft":z,T=ce.placements,G=T===void 0?V:T,ve=ce.getPopupContainer,We=ce.showAction,st=ce.hideAction,_e=ce.overlayClassName,Ke=ce.overlayStyle,Ve=ce.visible,rt=ce.trigger,Ae=rt===void 0?["hover"]:rt,Tt=ce.autoFocus,tt=ce.overlay,Pt=ce.children,Xe=ce.onVisibleChange,Qe=(0,le.Z)(ce,R),Ne=o.useState(),Oe=(0,U.Z)(Ne,2),re=Oe[0],Fe=Oe[1],Re="visible"in ce?Ve:re,Z=o.useRef(null),O=o.useRef(null),me=o.useRef(null);o.useImperativeHandle(Le,function(){return Z.current});var Ee=function(ft){Fe(ft),Xe==null||Xe(ft)};I({visible:Re,triggerRef:me,onVisibleChange:Ee,autoFocus:Tt,overlayRef:O});var ge=function(ft){var ht=ce.onOverlayClick;Fe(!1),ht&&ht(ft)},we=function(){return o.createElement(W,{ref:O,overlay:tt,prefixCls:K,arrow:Pe})},ke=function(){return typeof tt=="function"?we:we()},Ye=function(){var ft=ce.minOverlayWidthMatchTrigger,ht=ce.alignPoint;return"minOverlayWidthMatchTrigger"in ce?ft:!ht},oe=function(){var ft=ce.openClassName;return ft!==void 0?ft:"".concat(K,"-open")},fe=o.cloneElement(Pt,{className:q()(($e=Pt.props)===null||$e===void 0?void 0:$e.className,Re&&oe()),ref:(0,Q.Yr)(Pt)?(0,Q.sQ)(me,(0,Q.C4)(Pt)):void 0}),dt=st;return!dt&&Ae.indexOf("contextMenu")!==-1&&(dt=["click"]),o.createElement(F.Z,(0,l.Z)({builtinPlacements:G},Qe,{prefixCls:K,ref:Z,popupClassName:q()(_e,(0,ie.Z)({},"".concat(K,"-show-arrow"),Pe)),popupStyle:Ke,action:Ae,showAction:We,hideAction:dt,popupPlacement:x,popupAlign:ne,popupTransitionName:w,popupAnimation:te,popupVisible:Re,stretch:Ye()?"minWidth":"",popup:ke(),onPopupVisibleChange:Ee,onPopupClick:ge,getPopupContainer:ve}),fe)}var ae=o.forwardRef(L),pe=ae},66003:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return q}});var l=d(42244),ie=d(85899),U=d(43749),le=d(59301),F=["show"];function g(Q,o){if(!o.max)return!0;var C=o.strategy(Q);return C<=o.max}function q(Q,o){return le.useMemo(function(){var C={};o&&(C.show=(0,U.Z)(o)==="object"&&o.formatter?o.formatter:!!o),C=(0,ie.Z)((0,ie.Z)({},C),Q);var P=C,y=P.show,S=(0,l.Z)(P,F);return(0,ie.Z)((0,ie.Z)({},S),{},{show:!!y,showFormatter:typeof y=="function"?y:void 0,strategy:S.strategy||function(I){return I.length}})},[Q,o])}},36901:function(ln,qe,d){"use strict";d.r(qe),d.d(qe,{BaseInput:function(){return C},default:function(){return V}});var l=d(85899),ie=d(60499),U=d(18642),le=d(43749),F=d(92310),g=d.n(F),q=d(59301),Q=d(30292),o=q.forwardRef(function(R,L){var ae,pe,ce,Le=R.inputElement,$e=R.children,Te=R.prefixCls,Pe=R.prefix,se=R.suffix,K=R.addonBefore,w=R.addonAfter,te=R.className,ne=R.style,z=R.disabled,x=R.readOnly,T=R.focused,G=R.triggerFocus,ve=R.allowClear,We=R.value,st=R.handleReset,_e=R.hidden,Ke=R.classes,Ve=R.classNames,rt=R.dataAttrs,Ae=R.styles,Tt=R.components,tt=R.onClear,Pt=$e!=null?$e:Le,Xe=(Tt==null?void 0:Tt.affixWrapper)||"span",Qe=(Tt==null?void 0:Tt.groupWrapper)||"span",Ne=(Tt==null?void 0:Tt.wrapper)||"span",Oe=(Tt==null?void 0:Tt.groupAddon)||"span",re=(0,q.useRef)(null),Fe=function(Ct){var gt;(gt=re.current)!==null&>!==void 0&>.contains(Ct.target)&&(G==null||G())},Re=(0,Q.X3)(R),Z=(0,q.cloneElement)(Pt,{value:We,className:g()((ae=Pt.props)===null||ae===void 0?void 0:ae.className,!Re&&(Ve==null?void 0:Ve.variant))||null}),O=(0,q.useRef)(null);if(q.useImperativeHandle(L,function(){return{nativeElement:O.current||re.current}}),Re){var me=null;if(ve){var Ee=!z&&!x&&We,ge="".concat(Te,"-clear-icon"),we=(0,le.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";me=q.createElement("button",{type:"button",tabIndex:-1,onClick:function(Ct){st==null||st(Ct),tt==null||tt()},onMouseDown:function(Ct){return Ct.preventDefault()},className:g()(ge,(0,U.Z)((0,U.Z)({},"".concat(ge,"-hidden"),!Ee),"".concat(ge,"-has-suffix"),!!se))},we)}var ke="".concat(Te,"-affix-wrapper"),Ye=g()(ke,(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(Te,"-disabled"),z),"".concat(ke,"-disabled"),z),"".concat(ke,"-focused"),T),"".concat(ke,"-readonly"),x),"".concat(ke,"-input-with-clear-btn"),se&&ve&&We),Ke==null?void 0:Ke.affixWrapper,Ve==null?void 0:Ve.affixWrapper,Ve==null?void 0:Ve.variant),oe=(se||ve)&&q.createElement("span",{className:g()("".concat(Te,"-suffix"),Ve==null?void 0:Ve.suffix),style:Ae==null?void 0:Ae.suffix},me,se);Z=q.createElement(Xe,(0,ie.Z)({className:Ye,style:Ae==null?void 0:Ae.affixWrapper,onClick:Fe},rt==null?void 0:rt.affixWrapper,{ref:re}),Pe&&q.createElement("span",{className:g()("".concat(Te,"-prefix"),Ve==null?void 0:Ve.prefix),style:Ae==null?void 0:Ae.prefix},Pe),Z,oe)}if((0,Q.He)(R)){var fe="".concat(Te,"-group"),dt="".concat(fe,"-addon"),ot="".concat(fe,"-wrapper"),ft=g()("".concat(Te,"-wrapper"),fe,Ke==null?void 0:Ke.wrapper,Ve==null?void 0:Ve.wrapper),ht=g()(ot,(0,U.Z)({},"".concat(ot,"-disabled"),z),Ke==null?void 0:Ke.group,Ve==null?void 0:Ve.groupWrapper);Z=q.createElement(Qe,{className:ht,ref:O},q.createElement(Ne,{className:ft},K&&q.createElement(Oe,{className:dt},K),Z,w&&q.createElement(Oe,{className:dt},w)))}return q.cloneElement(Z,{className:g()((pe=Z.props)===null||pe===void 0?void 0:pe.className,te)||null,style:(0,l.Z)((0,l.Z)({},(ce=Z.props)===null||ce===void 0?void 0:ce.style),ne),hidden:_e})}),C=o,P=d(77654),y=d(72190),S=d(42244),I=d(18929),N=d(2738),W=d(66003),H=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],j=(0,q.forwardRef)(function(R,L){var ae=R.autoComplete,pe=R.onChange,ce=R.onFocus,Le=R.onBlur,$e=R.onPressEnter,Te=R.onKeyDown,Pe=R.onKeyUp,se=R.prefixCls,K=se===void 0?"rc-input":se,w=R.disabled,te=R.htmlSize,ne=R.className,z=R.maxLength,x=R.suffix,T=R.showCount,G=R.count,ve=R.type,We=ve===void 0?"text":ve,st=R.classes,_e=R.classNames,Ke=R.styles,Ve=R.onCompositionStart,rt=R.onCompositionEnd,Ae=(0,S.Z)(R,H),Tt=(0,q.useState)(!1),tt=(0,y.Z)(Tt,2),Pt=tt[0],Xe=tt[1],Qe=(0,q.useRef)(!1),Ne=(0,q.useRef)(!1),Oe=(0,q.useRef)(null),re=(0,q.useRef)(null),Fe=function(Ot){Oe.current&&(0,Q.nH)(Oe.current,Ot)},Re=(0,I.Z)(R.defaultValue,{value:R.value}),Z=(0,y.Z)(Re,2),O=Z[0],me=Z[1],Ee=O==null?"":String(O),ge=(0,q.useState)(null),we=(0,y.Z)(ge,2),ke=we[0],Ye=we[1],oe=(0,W.Z)(G,T),fe=oe.max||z,dt=oe.strategy(Ee),ot=!!fe&&dt>fe;(0,q.useImperativeHandle)(L,function(){var ye;return{focus:Fe,blur:function(){var He;(He=Oe.current)===null||He===void 0||He.blur()},setSelectionRange:function(He,it,ct){var he;(he=Oe.current)===null||he===void 0||he.setSelectionRange(He,it,ct)},select:function(){var He;(He=Oe.current)===null||He===void 0||He.select()},input:Oe.current,nativeElement:((ye=re.current)===null||ye===void 0?void 0:ye.nativeElement)||Oe.current}}),(0,q.useEffect)(function(){Ne.current&&(Ne.current=!1),Xe(function(ye){return ye&&w?!1:ye})},[w]);var ft=function(Ot,He,it){var ct=He;if(!Qe.current&&oe.exceedFormatter&&oe.max&&oe.strategy(He)>oe.max){if(ct=oe.exceedFormatter(He,{max:oe.max}),He!==ct){var he,be;Ye([((he=Oe.current)===null||he===void 0?void 0:he.selectionStart)||0,((be=Oe.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(it.source==="compositionEnd")return;me(ct),Oe.current&&(0,Q.rJ)(Oe.current,Ot,pe,ct)};(0,q.useEffect)(function(){if(ke){var ye;(ye=Oe.current)===null||ye===void 0||ye.setSelectionRange.apply(ye,(0,P.Z)(ke))}},[ke]);var ht=function(Ot){ft(Ot,Ot.target.value,{source:"change"})},Ge=function(Ot){Qe.current=!1,ft(Ot,Ot.currentTarget.value,{source:"compositionEnd"}),rt==null||rt(Ot)},Ct=function(Ot){$e&&Ot.key==="Enter"&&!Ne.current&&(Ne.current=!0,$e(Ot)),Te==null||Te(Ot)},gt=function(Ot){Ot.key==="Enter"&&(Ne.current=!1),Pe==null||Pe(Ot)},Ce=function(Ot){Xe(!0),ce==null||ce(Ot)},Je=function(Ot){Ne.current&&(Ne.current=!1),Xe(!1),Le==null||Le(Ot)},_=function(Ot){me(""),Fe(),Oe.current&&(0,Q.rJ)(Oe.current,Ot,pe)},D=ot&&"".concat(K,"-out-of-range"),Ze=function(){var Ot=(0,N.Z)(R,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return q.createElement("input",(0,ie.Z)({autoComplete:ae},Ot,{onChange:ht,onFocus:Ce,onBlur:Je,onKeyDown:Ct,onKeyUp:gt,className:g()(K,(0,U.Z)({},"".concat(K,"-disabled"),w),_e==null?void 0:_e.input),style:Ke==null?void 0:Ke.input,ref:Oe,size:te,type:We,onCompositionStart:function(it){Qe.current=!0,Ve==null||Ve(it)},onCompositionEnd:Ge}))},ee=function(){var Ot=Number(fe)>0;if(x||oe.show){var He=oe.showFormatter?oe.showFormatter({value:Ee,count:dt,maxLength:fe}):"".concat(dt).concat(Ot?" / ".concat(fe):"");return q.createElement(q.Fragment,null,oe.show&&q.createElement("span",{className:g()("".concat(K,"-show-count-suffix"),(0,U.Z)({},"".concat(K,"-show-count-has-suffix"),!!x),_e==null?void 0:_e.count),style:(0,l.Z)({},Ke==null?void 0:Ke.count)},He),x)}return null};return q.createElement(C,(0,ie.Z)({},Ae,{prefixCls:K,className:g()(ne,D),handleReset:_,value:Ee,focused:Pt,triggerFocus:Fe,suffix:ee(),disabled:w,classes:st,classNames:_e,styles:Ke}),Ze())}),A=j,V=A},30292:function(ln,qe,d){"use strict";d.d(qe,{He:function(){return l},X3:function(){return ie},nH:function(){return F},rJ:function(){return le}});function l(g){return!!(g.addonBefore||g.addonAfter)}function ie(g){return!!(g.prefix||g.suffix||g.allowClear)}function U(g,q,Q){var o=q.cloneNode(!0),C=Object.create(g,{target:{value:o},currentTarget:{value:o}});return o.value=Q,typeof q.selectionStart=="number"&&typeof q.selectionEnd=="number"&&(o.selectionStart=q.selectionStart,o.selectionEnd=q.selectionEnd),o.setSelectionRange=function(){q.setSelectionRange.apply(q,arguments)},C}function le(g,q,Q,o){if(Q){var C=q;if(q.type==="click"){C=U(q,g,""),Q(C);return}if(g.type!=="file"&&o!==void 0){C=U(q,g,o),Q(C);return}Q(C)}}function F(g,q){if(g){g.focus(q);var Q=q||{},o=Q.cursor;if(o){var C=g.value.length;switch(o){case"start":g.setSelectionRange(0,0);break;case"end":g.setSelectionRange(C,C);break;default:g.setSelectionRange(0,C)}}}}},28321:function(ln,qe,d){"use strict";d.d(qe,{iz:function(){return yt},ck:function(){return ct},BW:function(){return vt},sN:function(){return ct},Wd:function(){return Dn},ZP:function(){return Sn},Xl:function(){return $e}});var l=d(60499),ie=d(18642),U=d(85899),le=d(77654),F=d(72190),g=d(42244),q=d(92310),Q=d.n(q),o=d(83836),C=d(18929),P=d(13697),y=d(48736),S=d(59301),I=d(4676),N=S.createContext(null);function W(bt,Rt){return bt===void 0?null:"".concat(bt,"-").concat(Rt)}function H(bt){var Rt=S.useContext(N);return W(Rt,bt)}var j=d(80547),A=["children","locked"],V=S.createContext(null);function R(bt,Rt){var Wt=(0,U.Z)({},bt);return Object.keys(Rt).forEach(function(Bt){var jt=Rt[Bt];jt!==void 0&&(Wt[Bt]=jt)}),Wt}function L(bt){var Rt=bt.children,Wt=bt.locked,Bt=(0,g.Z)(bt,A),jt=S.useContext(V),Qt=(0,j.Z)(function(){return R(jt,Bt)},[jt,Bt],function(an,on){return!Wt&&(an[0]!==on[0]||!(0,P.Z)(an[1],on[1],!0))});return S.createElement(V.Provider,{value:Qt},Rt)}var ae=[],pe=S.createContext(null);function ce(){return S.useContext(pe)}var Le=S.createContext(ae);function $e(bt){var Rt=S.useContext(Le);return S.useMemo(function(){return bt!==void 0?[].concat((0,le.Z)(Rt),[bt]):Rt},[Rt,bt])}var Te=S.createContext(null),Pe=S.createContext({}),se=Pe,K=d(29194);function w(bt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,K.Z)(bt)){var Wt=bt.nodeName.toLowerCase(),Bt=["input","select","textarea","button"].includes(Wt)||bt.isContentEditable||Wt==="a"&&!!bt.getAttribute("href"),jt=bt.getAttribute("tabindex"),Qt=Number(jt),an=null;return jt&&!Number.isNaN(Qt)?an=Qt:Bt&&an===null&&(an=0),Bt&&bt.disabled&&(an=null),an!==null&&(an>=0||Rt&&an<0)}return!1}function te(bt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=(0,le.Z)(bt.querySelectorAll("*")).filter(function(Bt){return w(Bt,Rt)});return w(bt,Rt)&&Wt.unshift(bt),Wt}var ne=null;function z(){ne=document.activeElement}function x(){ne=null}function T(){if(ne)try{ne.focus()}catch(bt){}}function G(bt,Rt){if(Rt.keyCode===9){var Wt=te(bt),Bt=Wt[Rt.shiftKey?0:Wt.length-1],jt=Bt===document.activeElement||bt===document.activeElement;if(jt){var Qt=Wt[Rt.shiftKey?Wt.length-1:0];Qt.focus(),Rt.preventDefault()}}}var ve=d(10228),We=d(16089),st=ve.Z.LEFT,_e=ve.Z.RIGHT,Ke=ve.Z.UP,Ve=ve.Z.DOWN,rt=ve.Z.ENTER,Ae=ve.Z.ESC,Tt=ve.Z.HOME,tt=ve.Z.END,Pt=[Ke,Ve,st,_e];function Xe(bt,Rt,Wt,Bt){var jt,Qt="prev",an="next",on="children",Rn="parent";if(bt==="inline"&&Bt===rt)return{inlineTrigger:!0};var $n=(0,ie.Z)((0,ie.Z)({},Ke,Qt),Ve,an),dr=(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},st,Wt?an:Qt),_e,Wt?Qt:an),Ve,on),rt,on),jn=(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},Ke,Qt),Ve,an),rt,on),Ae,Rn),st,Wt?on:Rn),_e,Wt?Rn:on),zn={inline:$n,horizontal:dr,vertical:jn,inlineSub:$n,horizontalSub:jn,verticalSub:jn},er=(jt=zn["".concat(bt).concat(Rt?"":"Sub")])===null||jt===void 0?void 0:jt[Bt];switch(er){case Qt:return{offset:-1,sibling:!0};case an:return{offset:1,sibling:!0};case Rn:return{offset:-1,sibling:!1};case on:return{offset:1,sibling:!1};default:return null}}function Qe(bt){for(var Rt=bt;Rt;){if(Rt.getAttribute("data-menu-list"))return Rt;Rt=Rt.parentElement}return null}function Ne(bt,Rt){for(var Wt=bt||document.activeElement;Wt;){if(Rt.has(Wt))return Wt;Wt=Wt.parentElement}return null}function Oe(bt,Rt){var Wt=te(bt,!0);return Wt.filter(function(Bt){return Rt.has(Bt)})}function re(bt,Rt,Wt){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!bt)return null;var jt=Oe(bt,Rt),Qt=jt.length,an=jt.findIndex(function(on){return Wt===on});return Bt<0?an===-1?an=Qt-1:an-=1:Bt>0&&(an+=1),an=(an+Qt)%Qt,jt[an]}var Fe=function(Rt,Wt){var Bt=new Set,jt=new Map,Qt=new Map;return Rt.forEach(function(an){var on=document.querySelector("[data-menu-id='".concat(W(Wt,an),"']"));on&&(Bt.add(on),Qt.set(on,an),jt.set(an,on))}),{elements:Bt,key2element:jt,element2key:Qt}};function Re(bt,Rt,Wt,Bt,jt,Qt,an,on,Rn,$n){var dr=S.useRef(),jn=S.useRef();jn.current=Rt;var zn=function(){We.Z.cancel(dr.current)};return S.useEffect(function(){return function(){zn()}},[]),function(er){var Xn=er.which;if([].concat(Pt,[rt,Ae,Tt,tt]).includes(Xn)){var sr=Qt(),Wn=Fe(sr,Bt),Qn=Wn,or=Qn.elements,cr=Qn.key2element,rr=Qn.element2key,nr=cr.get(Rt),ir=Ne(nr,or),Vn=rr.get(ir),$r=Xe(bt,an(Vn,!0).length===1,Wt,Xn);if(!$r&&Xn!==Tt&&Xn!==tt)return;(Pt.includes(Xn)||[Tt,tt].includes(Xn))&&er.preventDefault();var Kt=function(Pn){if(Pn){var sn=Pn,un=Pn.querySelector("a");un!=null&&un.getAttribute("href")&&(sn=un);var Bn=rr.get(Pn);on(Bn),zn(),dr.current=(0,We.Z)(function(){jn.current===Bn&&sn.focus()})}};if([Tt,tt].includes(Xn)||$r.sibling||!ir){var ar;!ir||bt==="inline"?ar=jt.current:ar=Qe(ir);var hr,Yr=Oe(ar,or);Xn===Tt?hr=Yr[0]:Xn===tt?hr=Yr[Yr.length-1]:hr=re(ar,or,ir,$r.offset),Kt(hr)}else if($r.inlineTrigger)Rn(Vn);else if($r.offset>0)Rn(Vn,!0),zn(),dr.current=(0,We.Z)(function(){Wn=Fe(sr,Bt);var Zn=ir.getAttribute("aria-controls"),Pn=document.getElementById(Zn),sn=re(Pn,Wn.elements);Kt(sn)},5);else if($r.offset<0){var zr=an(Vn,!0),li=zr[zr.length-2],Qr=cr.get(li);Rn(li,!1),Kt(Qr)}}$n==null||$n(er)}}function Z(bt){Promise.resolve().then(bt)}var O="__RC_UTIL_PATH_SPLIT__",me=function(Rt){return Rt.join(O)},Ee=function(Rt){return Rt.split(O)},ge="rc-menu-more";function we(){var bt=S.useState({}),Rt=(0,F.Z)(bt,2),Wt=Rt[1],Bt=(0,S.useRef)(new Map),jt=(0,S.useRef)(new Map),Qt=S.useState([]),an=(0,F.Z)(Qt,2),on=an[0],Rn=an[1],$n=(0,S.useRef)(0),dr=(0,S.useRef)(!1),jn=function(){dr.current||Wt({})},zn=(0,S.useCallback)(function(cr,rr){var nr=me(rr);jt.current.set(nr,cr),Bt.current.set(cr,nr),$n.current+=1;var ir=$n.current;Z(function(){ir===$n.current&&jn()})},[]),er=(0,S.useCallback)(function(cr,rr){var nr=me(rr);jt.current.delete(nr),Bt.current.delete(cr)},[]),Xn=(0,S.useCallback)(function(cr){Rn(cr)},[]),sr=(0,S.useCallback)(function(cr,rr){var nr=Bt.current.get(cr)||"",ir=Ee(nr);return rr&&on.includes(ir[0])&&ir.unshift(ge),ir},[on]),Wn=(0,S.useCallback)(function(cr,rr){return cr.filter(function(nr){return nr!==void 0}).some(function(nr){var ir=sr(nr,!0);return ir.includes(rr)})},[sr]),Qn=function(){var rr=(0,le.Z)(Bt.current.keys());return on.length&&rr.push(ge),rr},or=(0,S.useCallback)(function(cr){var rr="".concat(Bt.current.get(cr)).concat(O),nr=new Set;return(0,le.Z)(jt.current.keys()).forEach(function(ir){ir.startsWith(rr)&&nr.add(jt.current.get(ir))}),nr},[]);return S.useEffect(function(){return function(){dr.current=!0}},[]),{registerPath:zn,unregisterPath:er,refreshOverflowKeys:Xn,isSubPathKey:Wn,getKeyPath:sr,getKeys:Qn,getSubPathKeys:or}}function ke(bt){var Rt=S.useRef(bt);Rt.current=bt;var Wt=S.useCallback(function(){for(var Bt,jt=arguments.length,Qt=new Array(jt),an=0;an<jt;an++)Qt[an]=arguments[an];return(Bt=Rt.current)===null||Bt===void 0?void 0:Bt.call.apply(Bt,[Rt].concat(Qt))},[]);return bt?Wt:void 0}var Ye=Math.random().toFixed(5).toString().slice(2),oe=0;function fe(bt){var Rt=(0,C.Z)(bt,{value:bt}),Wt=(0,F.Z)(Rt,2),Bt=Wt[0],jt=Wt[1];return S.useEffect(function(){oe+=1;var Qt="".concat(Ye,"-").concat(oe);jt("rc-menu-uuid-".concat(Qt))},[]),Bt}var dt=d(38705),ot=d(17212),ft=d(39153),ht=d(55401),Ge=d(2738),Ct=d(8654);function gt(bt,Rt,Wt,Bt){var jt=S.useContext(V),Qt=jt.activeKey,an=jt.onActive,on=jt.onInactive,Rn={active:Qt===bt};return Rt||(Rn.onMouseEnter=function($n){Wt==null||Wt({key:bt,domEvent:$n}),an(bt)},Rn.onMouseLeave=function($n){Bt==null||Bt({key:bt,domEvent:$n}),on(bt)}),Rn}function Ce(bt){var Rt=S.useContext(V),Wt=Rt.mode,Bt=Rt.rtl,jt=Rt.inlineIndent;if(Wt!=="inline")return null;var Qt=bt;return Bt?{paddingRight:Qt*jt}:{paddingLeft:Qt*jt}}function Je(bt){var Rt=bt.icon,Wt=bt.props,Bt=bt.children,jt;return Rt===null||Rt===!1?null:(typeof Rt=="function"?jt=S.createElement(Rt,(0,U.Z)({},Wt)):typeof Rt!="boolean"&&(jt=Rt),jt||Bt||null)}var _=["item"];function D(bt){var Rt=bt.item,Wt=(0,g.Z)(bt,_);return Object.defineProperty(Wt,"item",{get:function(){return(0,y.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Rt}}),Wt}var Ze=["title","attribute","elementRef"],ee=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ye=["active"],Ot=function(bt){(0,ft.Z)(Wt,bt);var Rt=(0,ht.Z)(Wt);function Wt(){return(0,dt.Z)(this,Wt),Rt.apply(this,arguments)}return(0,ot.Z)(Wt,[{key:"render",value:function(){var jt=this.props,Qt=jt.title,an=jt.attribute,on=jt.elementRef,Rn=(0,g.Z)(jt,Ze),$n=(0,Ge.Z)(Rn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,y.ZP)(!an,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),S.createElement(o.Z.Item,(0,l.Z)({},an,{title:typeof Qt=="string"?Qt:void 0},$n,{ref:on}))}}]),Wt}(S.Component),He=S.forwardRef(function(bt,Rt){var Wt=bt.style,Bt=bt.className,jt=bt.eventKey,Qt=bt.warnKey,an=bt.disabled,on=bt.itemIcon,Rn=bt.children,$n=bt.role,dr=bt.onMouseEnter,jn=bt.onMouseLeave,zn=bt.onClick,er=bt.onKeyDown,Xn=bt.onFocus,sr=(0,g.Z)(bt,ee),Wn=H(jt),Qn=S.useContext(V),or=Qn.prefixCls,cr=Qn.onItemClick,rr=Qn.disabled,nr=Qn.overflowDisabled,ir=Qn.itemIcon,Vn=Qn.selectedKeys,$r=Qn.onActive,Kt=S.useContext(se),ar=Kt._internalRenderMenuItem,hr="".concat(or,"-item"),Yr=S.useRef(),zr=S.useRef(),li=rr||an,Qr=(0,Ct.x1)(Rt,zr),Zn=$e(jt),Pn=function(Gr){return{key:jt,keyPath:(0,le.Z)(Zn).reverse(),item:Yr.current,domEvent:Gr}},sn=on||ir,un=gt(jt,li,dr,jn),Bn=un.active,Yn=(0,g.Z)(un,ye),lr=Vn.includes(jt),Ir=Ce(Zn.length),On=function(Gr){if(!li){var Ri=Pn(Gr);zn==null||zn(D(Ri)),cr(Ri)}},mr=function(Gr){if(er==null||er(Gr),Gr.which===ve.Z.ENTER){var Ri=Pn(Gr);zn==null||zn(D(Ri)),cr(Ri)}},Dr=function(Gr){$r(jt),Xn==null||Xn(Gr)},Jr={};bt.role==="option"&&(Jr["aria-selected"]=lr);var mi=S.createElement(Ot,(0,l.Z)({ref:Yr,elementRef:Qr,role:$n===null?"none":$n||"menuitem",tabIndex:an?null:-1,"data-menu-id":nr&&Wn?null:Wn},(0,Ge.Z)(sr,["extra"]),Yn,Jr,{component:"li","aria-disabled":an,style:(0,U.Z)((0,U.Z)({},Ir),Wt),className:Q()(hr,(0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(hr,"-active"),Bn),"".concat(hr,"-selected"),lr),"".concat(hr,"-disabled"),li),Bt),onClick:On,onKeyDown:mr,onFocus:Dr}),Rn,S.createElement(Je,{props:(0,U.Z)((0,U.Z)({},bt),{},{isSelected:lr}),icon:sn}));return ar&&(mi=ar(mi,bt,{selected:lr})),mi});function it(bt,Rt){var Wt=bt.eventKey,Bt=ce(),jt=$e(Wt);return S.useEffect(function(){if(Bt)return Bt.registerPath(Wt,jt),function(){Bt.unregisterPath(Wt,jt)}},[jt]),Bt?null:S.createElement(He,(0,l.Z)({},bt,{ref:Rt}))}var ct=S.forwardRef(it),he=["className","children"],be=function(Rt,Wt){var Bt=Rt.className,jt=Rt.children,Qt=(0,g.Z)(Rt,he),an=S.useContext(V),on=an.prefixCls,Rn=an.mode,$n=an.rtl;return S.createElement("ul",(0,l.Z)({className:Q()(on,$n&&"".concat(on,"-rtl"),"".concat(on,"-sub"),"".concat(on,"-").concat(Rn==="inline"?"inline":"vertical"),Bt),role:"menu"},Qt,{"data-menu-list":!0,ref:Wt}),jt)},je=S.forwardRef(be);je.displayName="SubMenuList";var Ue=je,$=d(11592);function ut(bt,Rt){return(0,$.Z)(bt).map(function(Wt,Bt){if(S.isValidElement(Wt)){var jt,Qt,an=Wt.key,on=(jt=(Qt=Wt.props)===null||Qt===void 0?void 0:Qt.eventKey)!==null&&jt!==void 0?jt:an,Rn=on==null;Rn&&(on="tmp_key-".concat([].concat((0,le.Z)(Rt),[Bt]).join("-")));var $n={key:on,eventKey:on};return S.cloneElement(Wt,$n)}return Wt})}var xe=d(68196),At={adjustX:1,adjustY:1},zt={topLeft:{points:["bl","tl"],overflow:At},topRight:{points:["br","tr"],overflow:At},bottomLeft:{points:["tl","bl"],overflow:At},bottomRight:{points:["tr","br"],overflow:At},leftTop:{points:["tr","tl"],overflow:At},leftBottom:{points:["br","bl"],overflow:At},rightTop:{points:["tl","tr"],overflow:At},rightBottom:{points:["bl","br"],overflow:At}},qt={topLeft:{points:["bl","tl"],overflow:At},topRight:{points:["br","tr"],overflow:At},bottomLeft:{points:["tl","bl"],overflow:At},bottomRight:{points:["tr","br"],overflow:At},rightTop:{points:["tr","tl"],overflow:At},rightBottom:{points:["br","bl"],overflow:At},leftTop:{points:["tl","tr"],overflow:At},leftBottom:{points:["bl","br"],overflow:At}},cn=null;function gn(bt,Rt,Wt){if(Rt)return Rt;if(Wt)return Wt[bt]||Wt.other}var En={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Fn(bt){var Rt=bt.prefixCls,Wt=bt.visible,Bt=bt.children,jt=bt.popup,Qt=bt.popupStyle,an=bt.popupClassName,on=bt.popupOffset,Rn=bt.disabled,$n=bt.mode,dr=bt.onVisibleChange,jn=S.useContext(V),zn=jn.getPopupContainer,er=jn.rtl,Xn=jn.subMenuOpenDelay,sr=jn.subMenuCloseDelay,Wn=jn.builtinPlacements,Qn=jn.triggerSubMenuAction,or=jn.forceSubMenuRender,cr=jn.rootClassName,rr=jn.motion,nr=jn.defaultMotions,ir=S.useState(!1),Vn=(0,F.Z)(ir,2),$r=Vn[0],Kt=Vn[1],ar=er?(0,U.Z)((0,U.Z)({},qt),Wn):(0,U.Z)((0,U.Z)({},zt),Wn),hr=En[$n],Yr=gn($n,rr,nr),zr=S.useRef(Yr);$n!=="inline"&&(zr.current=Yr);var li=(0,U.Z)((0,U.Z)({},zr.current),{},{leavedClassName:"".concat(Rt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qr=S.useRef();return S.useEffect(function(){return Qr.current=(0,We.Z)(function(){Kt(Wt)}),function(){We.Z.cancel(Qr.current)}},[Wt]),S.createElement(xe.Z,{prefixCls:Rt,popupClassName:Q()("".concat(Rt,"-popup"),(0,ie.Z)({},"".concat(Rt,"-rtl"),er),an,cr),stretch:$n==="horizontal"?"minWidth":null,getPopupContainer:zn,builtinPlacements:ar,popupPlacement:hr,popupVisible:$r,popup:jt,popupStyle:Qt,popupAlign:on&&{offset:on},action:Rn?[]:[Qn],mouseEnterDelay:Xn,mouseLeaveDelay:sr,onPopupVisibleChange:dr,forceRender:or,popupMotion:li,fresh:!0},Bt)}var Hn=d(77900);function An(bt){var Rt=bt.id,Wt=bt.open,Bt=bt.keyPath,jt=bt.children,Qt="inline",an=S.useContext(V),on=an.prefixCls,Rn=an.forceSubMenuRender,$n=an.motion,dr=an.defaultMotions,jn=an.mode,zn=S.useRef(!1);zn.current=jn===Qt;var er=S.useState(!zn.current),Xn=(0,F.Z)(er,2),sr=Xn[0],Wn=Xn[1],Qn=zn.current?Wt:!1;S.useEffect(function(){zn.current&&Wn(!1)},[jn]);var or=(0,U.Z)({},gn(Qt,$n,dr));Bt.length>1&&(or.motionAppear=!1);var cr=or.onVisibleChanged;return or.onVisibleChanged=function(rr){return!zn.current&&!rr&&Wn(!0),cr==null?void 0:cr(rr)},sr?null:S.createElement(L,{mode:Qt,locked:!zn.current},S.createElement(Hn.default,(0,l.Z)({visible:Qn},or,{forceRender:Rn,removeOnLeave:!1,leavedClassName:"".concat(on,"-hidden")}),function(rr){var nr=rr.className,ir=rr.style;return S.createElement(Ue,{id:Rt,className:nr,style:ir},jt)}))}var qn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vn=["active"],Gt=S.forwardRef(function(bt,Rt){var Wt=bt.style,Bt=bt.className,jt=bt.title,Qt=bt.eventKey,an=bt.warnKey,on=bt.disabled,Rn=bt.internalPopupClose,$n=bt.children,dr=bt.itemIcon,jn=bt.expandIcon,zn=bt.popupClassName,er=bt.popupOffset,Xn=bt.popupStyle,sr=bt.onClick,Wn=bt.onMouseEnter,Qn=bt.onMouseLeave,or=bt.onTitleClick,cr=bt.onTitleMouseEnter,rr=bt.onTitleMouseLeave,nr=(0,g.Z)(bt,qn),ir=H(Qt),Vn=S.useContext(V),$r=Vn.prefixCls,Kt=Vn.mode,ar=Vn.openKeys,hr=Vn.disabled,Yr=Vn.overflowDisabled,zr=Vn.activeKey,li=Vn.selectedKeys,Qr=Vn.itemIcon,Zn=Vn.expandIcon,Pn=Vn.onItemClick,sn=Vn.onOpenChange,un=Vn.onActive,Bn=S.useContext(se),Yn=Bn._internalRenderSubMenuItem,lr=S.useContext(Te),Ir=lr.isSubPathKey,On=$e(),mr="".concat($r,"-submenu"),Dr=hr||on,Jr=S.useRef(),mi=S.useRef(),Li=dr!=null?dr:Qr,Gr=jn!=null?jn:Zn,Ri=ar.includes(Qt),qr=!Yr&&Ri,bi=Ir(li,Qt),ri=gt(Qt,Dr,cr,rr),di=ri.active,ii=(0,g.Z)(ri,vn),Oi=S.useState(!1),Lr=(0,F.Z)(Oi,2),Pi=Lr[0],Mi=Lr[1],ki=function(ns){Dr||Mi(ns)},yr=function(ns){ki(!0),Wn==null||Wn({key:Qt,domEvent:ns})},Gn=function(ns){ki(!1),Qn==null||Qn({key:Qt,domEvent:ns})},pi=S.useMemo(function(){return di||(Kt!=="inline"?Pi||Ir([zr],Qt):!1)},[Kt,di,zr,Pi,Qt,Ir]),Ln=Ce(On.length),Fi=function(ns){Dr||(or==null||or({key:Qt,domEvent:ns}),Kt==="inline"&&sn(Qt,!Ri))},Os=ke(function(zi){sr==null||sr(D(zi)),Pn(zi)}),vs=function(ns){Kt!=="inline"&&sn(Qt,ns)},ss=function(){un(Qt)},ls=ir&&"".concat(ir,"-popup"),Pr=S.useMemo(function(){return S.createElement(Je,{icon:Kt!=="horizontal"?Gr:void 0,props:(0,U.Z)((0,U.Z)({},bt),{},{isOpen:qr,isSubMenu:!0})},S.createElement("i",{className:"".concat(mr,"-arrow")}))},[Kt,Gr,bt,qr,mr]),Gi=S.createElement("div",(0,l.Z)({role:"menuitem",style:Ln,className:"".concat(mr,"-title"),tabIndex:Dr?null:-1,ref:Jr,title:typeof jt=="string"?jt:null,"data-menu-id":Yr&&ir?null:ir,"aria-expanded":qr,"aria-haspopup":!0,"aria-controls":ls,"aria-disabled":Dr,onClick:Fi,onFocus:ss},ii),jt,Pr),ds=S.useRef(Kt);if(Kt!=="inline"&&On.length>1?ds.current="vertical":ds.current=Kt,!Yr){var _s=ds.current;Gi=S.createElement(Fn,{mode:_s,prefixCls:mr,visible:!Rn&&qr&&Kt!=="inline",popupClassName:zn,popupOffset:er,popupStyle:Xn,popup:S.createElement(L,{mode:_s==="horizontal"?"vertical":_s},S.createElement(Ue,{id:ls,ref:mi},$n)),disabled:Dr,onVisibleChange:vs},Gi)}var ci=S.createElement(o.Z.Item,(0,l.Z)({ref:Rt,role:"none"},nr,{component:"li",style:Wt,className:Q()(mr,"".concat(mr,"-").concat(Kt),Bt,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(mr,"-open"),qr),"".concat(mr,"-active"),pi),"".concat(mr,"-selected"),bi),"".concat(mr,"-disabled"),Dr)),onMouseEnter:yr,onMouseLeave:Gn}),Gi,!Yr&&S.createElement(An,{id:ls,open:qr,keyPath:On},$n));return Yn&&(ci=Yn(ci,bt,{selected:bi,active:pi,open:qr,disabled:Dr})),S.createElement(L,{onItemClick:Os,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:Li,expandIcon:Gr},ci)}),Xt=S.forwardRef(function(bt,Rt){var Wt=bt.eventKey,Bt=bt.children,jt=$e(Wt),Qt=ut(Bt,jt),an=ce();S.useEffect(function(){if(an)return an.registerPath(Wt,jt),function(){an.unregisterPath(Wt,jt)}},[jt]);var on;return an?on=Qt:on=S.createElement(Gt,(0,l.Z)({ref:Rt},bt),Qt),S.createElement(Le.Provider,{value:jt},on)}),Dn=Xt,Cn=d(43749);function yt(bt){var Rt=bt.className,Wt=bt.style,Bt=S.useContext(V),jt=Bt.prefixCls,Qt=ce();return Qt?null:S.createElement("li",{role:"separator",className:Q()("".concat(jt,"-item-divider"),Rt),style:Wt})}var Et=["className","title","eventKey","children"],Be=S.forwardRef(function(bt,Rt){var Wt=bt.className,Bt=bt.title,jt=bt.eventKey,Qt=bt.children,an=(0,g.Z)(bt,Et),on=S.useContext(V),Rn=on.prefixCls,$n="".concat(Rn,"-item-group");return S.createElement("li",(0,l.Z)({ref:Rt,role:"presentation"},an,{onClick:function(jn){return jn.stopPropagation()},className:Q()($n,Wt)}),S.createElement("div",{role:"presentation",className:"".concat($n,"-title"),title:typeof Bt=="string"?Bt:void 0},Bt),S.createElement("ul",{role:"group",className:"".concat($n,"-list")},Qt))}),lt=S.forwardRef(function(bt,Rt){var Wt=bt.eventKey,Bt=bt.children,jt=$e(Wt),Qt=ut(Bt,jt),an=ce();return an?Qt:S.createElement(Be,(0,l.Z)({ref:Rt},(0,Ge.Z)(bt,["warnKey"])),Qt)}),vt=lt,xt=["label","children","key","type","extra"];function Dt(bt,Rt,Wt){var Bt=Rt.item,jt=Rt.group,Qt=Rt.submenu,an=Rt.divider;return(bt||[]).map(function(on,Rn){if(on&&(0,Cn.Z)(on)==="object"){var $n=on,dr=$n.label,jn=$n.children,zn=$n.key,er=$n.type,Xn=$n.extra,sr=(0,g.Z)($n,xt),Wn=zn!=null?zn:"tmp-".concat(Rn);return jn||er==="group"?er==="group"?S.createElement(jt,(0,l.Z)({key:Wn},sr,{title:dr}),Dt(jn,Rt,Wt)):S.createElement(Qt,(0,l.Z)({key:Wn},sr,{title:dr}),Dt(jn,Rt,Wt)):er==="divider"?S.createElement(an,(0,l.Z)({key:Wn},sr)):S.createElement(Bt,(0,l.Z)({key:Wn},sr,{extra:Xn}),dr,(!!Xn||Xn===0)&&S.createElement("span",{className:"".concat(Wt,"-item-extra")},Xn))}return null}).filter(function(on){return on})}function Jt(bt,Rt,Wt,Bt,jt){var Qt=bt,an=(0,U.Z)({divider:yt,item:ct,group:vt,submenu:Dn},Bt);return Rt&&(Qt=Dt(Rt,an,jt)),ut(Qt,Wt)}var pn=["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"],_n=[],Vt=S.forwardRef(function(bt,Rt){var Wt,Bt=bt,jt=Bt.prefixCls,Qt=jt===void 0?"rc-menu":jt,an=Bt.rootClassName,on=Bt.style,Rn=Bt.className,$n=Bt.tabIndex,dr=$n===void 0?0:$n,jn=Bt.items,zn=Bt.children,er=Bt.direction,Xn=Bt.id,sr=Bt.mode,Wn=sr===void 0?"vertical":sr,Qn=Bt.inlineCollapsed,or=Bt.disabled,cr=Bt.disabledOverflow,rr=Bt.subMenuOpenDelay,nr=rr===void 0?.1:rr,ir=Bt.subMenuCloseDelay,Vn=ir===void 0?.1:ir,$r=Bt.forceSubMenuRender,Kt=Bt.defaultOpenKeys,ar=Bt.openKeys,hr=Bt.activeKey,Yr=Bt.defaultActiveFirst,zr=Bt.selectable,li=zr===void 0?!0:zr,Qr=Bt.multiple,Zn=Qr===void 0?!1:Qr,Pn=Bt.defaultSelectedKeys,sn=Bt.selectedKeys,un=Bt.onSelect,Bn=Bt.onDeselect,Yn=Bt.inlineIndent,lr=Yn===void 0?24:Yn,Ir=Bt.motion,On=Bt.defaultMotions,mr=Bt.triggerSubMenuAction,Dr=mr===void 0?"hover":mr,Jr=Bt.builtinPlacements,mi=Bt.itemIcon,Li=Bt.expandIcon,Gr=Bt.overflowedIndicator,Ri=Gr===void 0?"...":Gr,qr=Bt.overflowedIndicatorPopupClassName,bi=Bt.getPopupContainer,ri=Bt.onClick,di=Bt.onOpenChange,ii=Bt.onKeyDown,Oi=Bt.openAnimation,Lr=Bt.openTransitionName,Pi=Bt._internalRenderMenuItem,Mi=Bt._internalRenderSubMenuItem,ki=Bt._internalComponents,yr=(0,g.Z)(Bt,pn),Gn=S.useMemo(function(){return[Jt(zn,jn,_n,ki,Qt),Jt(zn,jn,_n,{},Qt)]},[zn,jn,ki]),pi=(0,F.Z)(Gn,2),Ln=pi[0],Fi=pi[1],Os=S.useState(!1),vs=(0,F.Z)(Os,2),ss=vs[0],ls=vs[1],Pr=S.useRef(),Gi=fe(Xn),ds=er==="rtl",_s=(0,C.Z)(Kt,{value:ar,postState:function(Ii){return Ii||_n}}),ci=(0,F.Z)(_s,2),zi=ci[0],ns=ci[1],xr=function(Ii){var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ts(){ns(Ii),di==null||di(Ii)}Zi?(0,I.flushSync)(Ts):Ts()},Ur=S.useState(zi),_r=(0,F.Z)(Ur,2),Or=_r[0],ui=_r[1],_i=S.useRef(!1),as=S.useMemo(function(){return(Wn==="inline"||Wn==="vertical")&&Qn?["vertical",Qn]:[Wn,!1]},[Wn,Qn]),ur=(0,F.Z)(as,2),Rr=ur[0],ei=ur[1],Kr=Rr==="inline",ti=S.useState(Rr),xs=(0,F.Z)(ti,2),us=xs[0],Es=xs[1],ms=S.useState(ei),ba=(0,F.Z)(ms,2),so=ba[0],Ka=ba[1];S.useEffect(function(){Es(Rr),Ka(ei),_i.current&&(Kr?ns(Or):xr(_n))},[Rr,ei]);var Ss=S.useState(0),Fs=(0,F.Z)(Ss,2),ks=Fs[0],ja=Fs[1],aa=ks>=Ln.length-1||us!=="horizontal"||cr;S.useEffect(function(){Kr&&ui(zi)},[zi]),S.useEffect(function(){return _i.current=!0,function(){_i.current=!1}},[]);var js=we(),Ca=js.registerPath,Pa=js.unregisterPath,Za=js.refreshOverflowKeys,zs=js.isSubPathKey,wa=js.getKeyPath,Ls=js.getKeys,Ma=js.getSubPathKeys,ka=S.useMemo(function(){return{registerPath:Ca,unregisterPath:Pa}},[Ca,Pa]),Ha=S.useMemo(function(){return{isSubPathKey:zs}},[zs]);S.useEffect(function(){Za(aa?_n:Ln.slice(ks+1).map(function(wi){return wi.key}))},[ks,aa]);var Wa=(0,C.Z)(hr||Yr&&((Wt=Ln[0])===null||Wt===void 0?void 0:Wt.key),{value:hr}),oa=(0,F.Z)(Wa,2),Zs=oa[0],fi=oa[1],Hr=ke(function(wi){fi(wi)}),ps=ke(function(){fi(void 0)});(0,S.useImperativeHandle)(Rt,function(){return{list:Pr.current,focus:function(Ii){var Zi,Ts=Ls(),Ns=Fe(Ts,Gi),_a=Ns.elements,Ta=Ns.key2element,ha=Ns.element2key,Ga=Oe(Pr.current,_a),Aa=Zs!=null?Zs:Ga[0]?ha.get(Ga[0]):(Zi=Ln.find(function(Na){return!Na.props.disabled}))===null||Zi===void 0?void 0:Zi.key,Ia=Ta.get(Aa);if(Aa&&Ia){var Ya;Ia==null||(Ya=Ia.focus)===null||Ya===void 0||Ya.call(Ia,Ii)}}}});var Cs=(0,C.Z)(Pn||[],{value:sn,postState:function(Ii){return Array.isArray(Ii)?Ii:Ii==null?_n:[Ii]}}),Ci=(0,F.Z)(Cs,2),os=Ci[0],Ps=Ci[1],Ms=function(Ii){if(li){var Zi=Ii.key,Ts=os.includes(Zi),Ns;Zn?Ts?Ns=os.filter(function(Ta){return Ta!==Zi}):Ns=[].concat((0,le.Z)(os),[Zi]):Ns=[Zi],Ps(Ns);var _a=(0,U.Z)((0,U.Z)({},Ii),{},{selectedKeys:Ns});Ts?Bn==null||Bn(_a):un==null||un(_a)}!Zn&&zi.length&&us!=="inline"&&xr(_n)},Js=ke(function(wi){ri==null||ri(D(wi)),Ms(wi)}),ws=ke(function(wi,Ii){var Zi=zi.filter(function(Ns){return Ns!==wi});if(Ii)Zi.push(wi);else if(us!=="inline"){var Ts=Ma(wi);Zi=Zi.filter(function(Ns){return!Ts.has(Ns)})}(0,P.Z)(zi,Zi,!0)||xr(Zi,!0)}),ta=function(Ii,Zi){var Ts=Zi!=null?Zi:!zi.includes(Ii);ws(Ii,Ts)},Hs=Re(us,Zs,ds,Gi,Pr,Ls,wa,fi,ta,ii);S.useEffect(function(){ls(!0)},[]);var la=S.useMemo(function(){return{_internalRenderMenuItem:Pi,_internalRenderSubMenuItem:Mi}},[Pi,Mi]),ua=us!=="horizontal"||cr?Ln:Ln.map(function(wi,Ii){return S.createElement(L,{key:wi.key,overflowDisabled:Ii>ks},wi)}),Va=S.createElement(o.Z,(0,l.Z)({id:Xn,ref:Pr,prefixCls:"".concat(Qt,"-overflow"),component:"ul",itemComponent:ct,className:Q()(Qt,"".concat(Qt,"-root"),"".concat(Qt,"-").concat(us),Rn,(0,ie.Z)((0,ie.Z)({},"".concat(Qt,"-inline-collapsed"),so),"".concat(Qt,"-rtl"),ds),an),dir:er,style:on,role:"menu",tabIndex:dr,data:ua,renderRawItem:function(Ii){return Ii},renderRawRest:function(Ii){var Zi=Ii.length,Ts=Zi?Ln.slice(-Zi):null;return S.createElement(Dn,{eventKey:ge,title:Ri,disabled:aa,internalPopupClose:Zi===0,popupClassName:qr},Ts)},maxCount:us!=="horizontal"||cr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ii){ja(Ii)},onKeyDown:Hs},yr));return S.createElement(se.Provider,{value:la},S.createElement(N.Provider,{value:Gi},S.createElement(L,{prefixCls:Qt,rootClassName:an,mode:us,openKeys:zi,rtl:ds,disabled:or,motion:ss?Ir:null,defaultMotions:ss?On:null,activeKey:Zs,onActive:Hr,onInactive:ps,selectedKeys:os,inlineIndent:lr,subMenuOpenDelay:nr,subMenuCloseDelay:Vn,forceSubMenuRender:$r,builtinPlacements:Jr,triggerSubMenuAction:Dr,getPopupContainer:bi,itemIcon:mi,expandIcon:Li,onItemClick:Js,onOpenChange:ws},S.createElement(Te.Provider,{value:Ha},Va),S.createElement("div",{style:{display:"none"},"aria-hidden":!0},S.createElement(pe.Provider,{value:ka},Fi)))))}),yn=Vt,Nn=yn;Nn.Item=ct,Nn.SubMenu=Dn,Nn.ItemGroup=vt,Nn.Divider=yt;var Sn=Nn},83836:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return z}});var l=d(60499),ie=d(85899),U=d(72190),le=d(42244),F=d(59301),g=d(92310),q=d.n(g),Q=d(29301),o=d(34280),C=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P=void 0;function y(x,T){var G=x.prefixCls,ve=x.invalidate,We=x.item,st=x.renderItem,_e=x.responsive,Ke=x.responsiveDisabled,Ve=x.registerSize,rt=x.itemKey,Ae=x.className,Tt=x.style,tt=x.children,Pt=x.display,Xe=x.order,Qe=x.component,Ne=Qe===void 0?"div":Qe,Oe=(0,le.Z)(x,C),re=_e&&!Pt;function Fe(Ee){Ve(rt,Ee)}F.useEffect(function(){return function(){Fe(null)}},[]);var Re=st&&We!==P?st(We,{index:Xe}):tt,Z;ve||(Z={opacity:re?0:1,height:re?0:P,overflowY:re?"hidden":P,order:_e?Xe:P,pointerEvents:re?"none":P,position:re?"absolute":P});var O={};re&&(O["aria-hidden"]=!0);var me=F.createElement(Ne,(0,l.Z)({className:q()(!ve&&G,Ae),style:(0,ie.Z)((0,ie.Z)({},Z),Tt)},O,Oe,{ref:T}),Re);return _e&&(me=F.createElement(Q.Z,{onResize:function(ge){var we=ge.offsetWidth;Fe(we)},disabled:Ke},me)),me}var S=F.forwardRef(y);S.displayName="Item";var I=S,N=d(6089),W=d(4676),H=d(16089);function j(x){if(typeof MessageChannel=="undefined")(0,H.Z)(x);else{var T=new MessageChannel;T.port1.onmessage=function(){return x()},T.port2.postMessage(void 0)}}function A(){var x=F.useRef(null),T=function(ve){x.current||(x.current=[],j(function(){(0,W.unstable_batchedUpdates)(function(){x.current.forEach(function(We){We()}),x.current=null})})),x.current.push(ve)};return T}function V(x,T){var G=F.useState(T),ve=(0,U.Z)(G,2),We=ve[0],st=ve[1],_e=(0,N.Z)(function(Ke){x(function(){st(Ke)})});return[We,_e]}var R=F.createContext(null),L=["component"],ae=["className"],pe=["className"],ce=function(T,G){var ve=F.useContext(R);if(!ve){var We=T.component,st=We===void 0?"div":We,_e=(0,le.Z)(T,L);return F.createElement(st,(0,l.Z)({},_e,{ref:G}))}var Ke=ve.className,Ve=(0,le.Z)(ve,ae),rt=T.className,Ae=(0,le.Z)(T,pe);return F.createElement(R.Provider,{value:null},F.createElement(I,(0,l.Z)({ref:G,className:q()(Ke,rt)},Ve,Ae)))},Le=F.forwardRef(ce);Le.displayName="RawItem";var $e=Le,Te=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Pe="responsive",se="invalidate";function K(x){return"+ ".concat(x.length," ...")}function w(x,T){var G=x.prefixCls,ve=G===void 0?"rc-overflow":G,We=x.data,st=We===void 0?[]:We,_e=x.renderItem,Ke=x.renderRawItem,Ve=x.itemKey,rt=x.itemWidth,Ae=rt===void 0?10:rt,Tt=x.ssr,tt=x.style,Pt=x.className,Xe=x.maxCount,Qe=x.renderRest,Ne=x.renderRawRest,Oe=x.prefix,re=x.suffix,Fe=x.component,Re=Fe===void 0?"div":Fe,Z=x.itemComponent,O=x.onVisibleChange,me=(0,le.Z)(x,Te),Ee=Tt==="full",ge=A(),we=V(ge,null),ke=(0,U.Z)(we,2),Ye=ke[0],oe=ke[1],fe=Ye||0,dt=V(ge,new Map),ot=(0,U.Z)(dt,2),ft=ot[0],ht=ot[1],Ge=V(ge,0),Ct=(0,U.Z)(Ge,2),gt=Ct[0],Ce=Ct[1],Je=V(ge,0),_=(0,U.Z)(Je,2),D=_[0],Ze=_[1],ee=V(ge,0),ye=(0,U.Z)(ee,2),Ot=ye[0],He=ye[1],it=V(ge,0),ct=(0,U.Z)(it,2),he=ct[0],be=ct[1],je=(0,F.useState)(null),Ue=(0,U.Z)(je,2),$=Ue[0],ut=Ue[1],xe=(0,F.useState)(null),At=(0,U.Z)(xe,2),zt=At[0],qt=At[1],cn=F.useMemo(function(){return zt===null&&Ee?Number.MAX_SAFE_INTEGER:zt||0},[zt,Ye]),gn=(0,F.useState)(!1),En=(0,U.Z)(gn,2),Fn=En[0],Hn=En[1],An="".concat(ve,"-item"),qn=Math.max(gt,D),vn=Xe===Pe,Gt=st.length&&vn,Xt=Xe===se,Dn=Gt||typeof Xe=="number"&&st.length>Xe,Cn=(0,F.useMemo)(function(){var jt=st;return Gt?Ye===null&&Ee?jt=st:jt=st.slice(0,Math.min(st.length,fe/Ae)):typeof Xe=="number"&&(jt=st.slice(0,Xe)),jt},[st,Ae,Ye,Xe,Gt]),yt=(0,F.useMemo)(function(){return Gt?st.slice(cn+1):st.slice(Cn.length)},[st,Cn,Gt,cn]),Et=(0,F.useCallback)(function(jt,Qt){var an;return typeof Ve=="function"?Ve(jt):(an=Ve&&(jt==null?void 0:jt[Ve]))!==null&&an!==void 0?an:Qt},[Ve]),Be=(0,F.useCallback)(_e||function(jt){return jt},[_e]);function lt(jt,Qt,an){zt===jt&&(Qt===void 0||Qt===$)||(qt(jt),an||(Hn(jt<st.length-1),O==null||O(jt)),Qt!==void 0&&ut(Qt))}function vt(jt,Qt){oe(Qt.clientWidth)}function xt(jt,Qt){ht(function(an){var on=new Map(an);return Qt===null?on.delete(jt):on.set(jt,Qt),on})}function Dt(jt,Qt){Ze(Qt),Ce(D)}function Jt(jt,Qt){He(Qt)}function pn(jt,Qt){be(Qt)}function _n(jt){return ft.get(Et(Cn[jt],jt))}(0,o.Z)(function(){if(fe&&typeof qn=="number"&&Cn){var jt=Ot+he,Qt=Cn.length,an=Qt-1;if(!Qt){lt(0,null);return}for(var on=0;on<Qt;on+=1){var Rn=_n(on);if(Ee&&(Rn=Rn||0),Rn===void 0){lt(on-1,void 0,!0);break}if(jt+=Rn,an===0&&jt<=fe||on===an-1&&jt+_n(an)<=fe){lt(an,null);break}else if(jt+qn>fe){lt(on-1,jt-Rn-he+D);break}}re&&_n(0)+he>fe&&ut(null)}},[fe,ft,D,Ot,he,Et,Cn]);var Vt=Fn&&!!yt.length,yn={};$!==null&&Gt&&(yn={position:"absolute",left:$,top:0});var Nn={prefixCls:An,responsive:Gt,component:Z,invalidate:Xt},Sn=Ke?function(jt,Qt){var an=Et(jt,Qt);return F.createElement(R.Provider,{key:an,value:(0,ie.Z)((0,ie.Z)({},Nn),{},{order:Qt,item:jt,itemKey:an,registerSize:xt,display:Qt<=cn})},Ke(jt,Qt))}:function(jt,Qt){var an=Et(jt,Qt);return F.createElement(I,(0,l.Z)({},Nn,{order:Qt,key:an,item:jt,renderItem:Be,itemKey:an,registerSize:xt,display:Qt<=cn}))},bt={order:Vt?cn:Number.MAX_SAFE_INTEGER,className:"".concat(An,"-rest"),registerSize:Dt,display:Vt},Rt=Qe||K,Wt=Ne?F.createElement(R.Provider,{value:(0,ie.Z)((0,ie.Z)({},Nn),bt)},Ne(yt)):F.createElement(I,(0,l.Z)({},Nn,bt),typeof Rt=="function"?Rt(yt):Rt),Bt=F.createElement(Re,(0,l.Z)({className:q()(!Xt&&ve,Pt),style:tt,ref:T},me),Oe&&F.createElement(I,(0,l.Z)({},Nn,{responsive:vn,responsiveDisabled:!Gt,order:-1,className:"".concat(An,"-prefix"),registerSize:Jt,display:!0}),Oe),Cn.map(Sn),Dn?Wt:null,re&&F.createElement(I,(0,l.Z)({},Nn,{responsive:vn,responsiveDisabled:!Gt,order:cn,className:"".concat(An,"-suffix"),registerSize:pn,display:!0,style:yn}),re));return vn?F.createElement(Q.Z,{onResize:vt,disabled:!Gt},Bt):Bt}var te=F.forwardRef(w);te.displayName="Overflow",te.Item=$e,te.RESPONSIVE=Pe,te.INVALIDATE=se;var ne=te,z=ne},29301:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return se}});var l=d(60499),ie=d(59301),U=d(11592),le=d(48736),F=d(85899),g=d(43749),q=d(76846),Q=d(8654),o=ie.createContext(null);function C(K){var w=K.children,te=K.onBatchResize,ne=ie.useRef(0),z=ie.useRef([]),x=ie.useContext(o),T=ie.useCallback(function(G,ve,We){ne.current+=1;var st=ne.current;z.current.push({size:G,element:ve,data:We}),Promise.resolve().then(function(){st===ne.current&&(te==null||te(z.current),z.current=[])}),x==null||x(G,ve,We)},[te,x]);return ie.createElement(o.Provider,{value:T},w)}var P=d(76374),y=new Map;function S(K){K.forEach(function(w){var te,ne=w.target;(te=y.get(ne))===null||te===void 0||te.forEach(function(z){return z(ne)})})}var I=new P.Z(S),N=null,W=null;function H(K,w){y.has(K)||(y.set(K,new Set),I.observe(K)),y.get(K).add(w)}function j(K,w){y.has(K)&&(y.get(K).delete(w),y.get(K).size||(I.unobserve(K),y.delete(K)))}var A=d(38705),V=d(17212),R=d(39153),L=d(55401),ae=function(K){(0,R.Z)(te,K);var w=(0,L.Z)(te);function te(){return(0,A.Z)(this,te),w.apply(this,arguments)}return(0,V.Z)(te,[{key:"render",value:function(){return this.props.children}}]),te}(ie.Component);function pe(K,w){var te=K.children,ne=K.disabled,z=ie.useRef(null),x=ie.useRef(null),T=ie.useContext(o),G=typeof te=="function",ve=G?te(z):te,We=ie.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),st=!G&&ie.isValidElement(ve)&&(0,Q.Yr)(ve),_e=st?(0,Q.C4)(ve):null,Ke=(0,Q.x1)(_e,z),Ve=function(){var tt;return(0,q.ZP)(z.current)||(z.current&&(0,g.Z)(z.current)==="object"?(0,q.ZP)((tt=z.current)===null||tt===void 0?void 0:tt.nativeElement):null)||(0,q.ZP)(x.current)};ie.useImperativeHandle(w,function(){return Ve()});var rt=ie.useRef(K);rt.current=K;var Ae=ie.useCallback(function(Tt){var tt=rt.current,Pt=tt.onResize,Xe=tt.data,Qe=Tt.getBoundingClientRect(),Ne=Qe.width,Oe=Qe.height,re=Tt.offsetWidth,Fe=Tt.offsetHeight,Re=Math.floor(Ne),Z=Math.floor(Oe);if(We.current.width!==Re||We.current.height!==Z||We.current.offsetWidth!==re||We.current.offsetHeight!==Fe){var O={width:Re,height:Z,offsetWidth:re,offsetHeight:Fe};We.current=O;var me=re===Math.round(Ne)?Ne:re,Ee=Fe===Math.round(Oe)?Oe:Fe,ge=(0,F.Z)((0,F.Z)({},O),{},{offsetWidth:me,offsetHeight:Ee});T==null||T(ge,Tt,Xe),Pt&&Promise.resolve().then(function(){Pt(ge,Tt)})}},[]);return ie.useEffect(function(){var Tt=Ve();return Tt&&!ne&&H(Tt,Ae),function(){return j(Tt,Ae)}},[z.current,ne]),ie.createElement(ae,{ref:x},st?ie.cloneElement(ve,{ref:Ke}):ve)}var ce=ie.forwardRef(pe),Le=ce,$e="rc-observer-key";function Te(K,w){var te=K.children,ne=typeof te=="function"?[te]:(0,U.Z)(te);return ne.map(function(z,x){var T=(z==null?void 0:z.key)||"".concat($e,"-").concat(x);return ie.createElement(Le,(0,l.Z)({},K,{key:T,ref:x===0?w:void 0}),z)})}var Pe=ie.forwardRef(Te);Pe.Collection=C;var se=Pe},6551:function(ln,qe,d){"use strict";d.d(qe,{ZP:function(){return q}});var l=d(72190),ie=d(59301),U=d(47273),le=0,F=(0,U.Z)();function g(){var Q;return F?(Q=le,le+=1):Q="TEST_OR_SSR",Q}function q(Q){var o=ie.useState(),C=(0,l.Z)(o,2),P=C[0],y=C[1];return ie.useEffect(function(){y("rc_select_".concat(g()))},[]),Q||P}},37463:function(ln,qe,d){"use strict";d.d(qe,{Ac:function(){return Ge},Xo:function(){return gt},Wx:function(){return Je},ZP:function(){return Cn},lk:function(){return V}});var l=d(60499),ie=d(77654),U=d(18642),le=d(85899),F=d(72190),g=d(42244),q=d(43749),Q=d(18929),o=d(48736),C=d(59301),P=d(92310),y=d.n(P),S=d(34280),I=d(49658),N=d(8654),W=function(Et){var Be=Et.className,lt=Et.customizeIcon,vt=Et.customizeIconProps,xt=Et.children,Dt=Et.onMouseDown,Jt=Et.onClick,pn=typeof lt=="function"?lt(vt):lt;return C.createElement("span",{className:Be,onMouseDown:function(Vt){Vt.preventDefault(),Dt==null||Dt(Vt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Jt,"aria-hidden":!0},pn!==void 0?pn:C.createElement("span",{className:y()(Be.split(/\s+/).map(function(_n){return"".concat(_n,"-icon")}))},xt))},H=W,j=function(Et,Be,lt,vt,xt){var Dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Jt=arguments.length>6?arguments[6]:void 0,pn=arguments.length>7?arguments[7]:void 0,_n=C.useMemo(function(){if((0,q.Z)(vt)==="object")return vt.clearIcon;if(xt)return xt},[vt,xt]),Vt=C.useMemo(function(){return!!(!Dt&&vt&&(lt.length||Jt)&&!(pn==="combobox"&&Jt===""))},[vt,Dt,lt.length,Jt,pn]);return{allowClear:Vt,clearIcon:C.createElement(H,{className:"".concat(Et,"-clear"),onMouseDown:Be,customizeIcon:_n},"\xD7")}},A=C.createContext(null);function V(){return C.useContext(A)}function R(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=C.useState(!1),Be=(0,F.Z)(Et,2),lt=Be[0],vt=Be[1],xt=C.useRef(null),Dt=function(){window.clearTimeout(xt.current)};C.useEffect(function(){return Dt},[]);var Jt=function(_n,Vt){Dt(),xt.current=window.setTimeout(function(){vt(_n),Vt&&Vt()},yt)};return[lt,Jt,Dt]}function L(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=C.useRef(null),Be=C.useRef(null);C.useEffect(function(){return function(){window.clearTimeout(Be.current)}},[]);function lt(vt){(vt||Et.current===null)&&(Et.current=vt),window.clearTimeout(Be.current),Be.current=window.setTimeout(function(){Et.current=null},yt)}return[function(){return Et.current},lt]}function ae(yt,Et,Be,lt){var vt=C.useRef(null);vt.current={open:Et,triggerOpen:Be,customizedTrigger:lt},C.useEffect(function(){function xt(Dt){var Jt;if(!((Jt=vt.current)!==null&&Jt!==void 0&&Jt.customizedTrigger)){var pn=Dt.target;pn.shadowRoot&&Dt.composed&&(pn=Dt.composedPath()[0]||pn),vt.current.open&&yt().filter(function(_n){return _n}).every(function(_n){return!_n.contains(pn)&&_n!==pn})&&vt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",xt),function(){return window.removeEventListener("mousedown",xt)}},[])}var pe=d(10228);function ce(yt){return yt&&![pe.Z.ESC,pe.Z.SHIFT,pe.Z.BACKSPACE,pe.Z.TAB,pe.Z.WIN_KEY,pe.Z.ALT,pe.Z.META,pe.Z.WIN_KEY_RIGHT,pe.Z.CTRL,pe.Z.SEMICOLON,pe.Z.EQUALS,pe.Z.CAPS_LOCK,pe.Z.CONTEXT_MENU,pe.Z.F1,pe.Z.F2,pe.Z.F3,pe.Z.F4,pe.Z.F5,pe.Z.F6,pe.Z.F7,pe.Z.F8,pe.Z.F9,pe.Z.F10,pe.Z.F11,pe.Z.F12].includes(yt)}var Le=d(26112),$e=d(83836);function Te(yt,Et,Be){var lt=(0,le.Z)((0,le.Z)({},yt),Be?Et:{});return Object.keys(Et).forEach(function(vt){var xt=Et[vt];typeof xt=="function"&&(lt[vt]=function(){for(var Dt,Jt=arguments.length,pn=new Array(Jt),_n=0;_n<Jt;_n++)pn[_n]=arguments[_n];return xt.apply(void 0,pn),(Dt=yt[vt])===null||Dt===void 0?void 0:Dt.call.apply(Dt,[yt].concat(pn))})}),lt}var Pe=Te,se=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],K=function(Et,Be){var lt=Et.prefixCls,vt=Et.id,xt=Et.inputElement,Dt=Et.autoFocus,Jt=Et.autoComplete,pn=Et.editable,_n=Et.activeDescendantId,Vt=Et.value,yn=Et.open,Nn=Et.attrs,Sn=(0,g.Z)(Et,se),bt=xt||C.createElement("input",null),Rt=bt,Wt=Rt.ref,Bt=Rt.props;return(0,o.Kp)(!("maxLength"in bt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),bt=C.cloneElement(bt,(0,le.Z)((0,le.Z)((0,le.Z)({type:"search"},Pe(Sn,Bt,!0)),{},{id:vt,ref:(0,N.sQ)(Be,Wt),autoComplete:Jt||"off",autoFocus:Dt,className:y()("".concat(lt,"-selection-search-input"),Bt==null?void 0:Bt.className),role:"combobox","aria-expanded":yn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(vt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vt,"_list"),"aria-activedescendant":yn?_n:void 0},Nn),{},{value:pn?Vt:"",readOnly:!pn,unselectable:pn?null:"on",style:(0,le.Z)((0,le.Z)({},Bt.style),{},{opacity:pn?null:0})})),bt},w=C.forwardRef(K),te=w;function ne(yt){return Array.isArray(yt)?yt:yt!==void 0?[yt]:[]}var z=typeof window!="undefined"&&window.document&&window.document.documentElement,x=z;function T(yt){return yt!=null}function G(yt){return!yt&&yt!==0}function ve(yt){return["string","number"].includes((0,q.Z)(yt))}function We(yt){var Et=void 0;return yt&&(ve(yt.title)?Et=yt.title.toString():ve(yt.label)&&(Et=yt.label.toString())),Et}function st(yt,Et){x?C.useLayoutEffect(yt,Et):C.useEffect(yt,Et)}function _e(yt){var Et;return(Et=yt.key)!==null&&Et!==void 0?Et:yt.value}var Ke=function(Et){Et.preventDefault(),Et.stopPropagation()},Ve=function(Et){var Be=Et.id,lt=Et.prefixCls,vt=Et.values,xt=Et.open,Dt=Et.searchValue,Jt=Et.autoClearSearchValue,pn=Et.inputRef,_n=Et.placeholder,Vt=Et.disabled,yn=Et.mode,Nn=Et.showSearch,Sn=Et.autoFocus,bt=Et.autoComplete,Rt=Et.activeDescendantId,Wt=Et.tabIndex,Bt=Et.removeIcon,jt=Et.maxTagCount,Qt=Et.maxTagTextLength,an=Et.maxTagPlaceholder,on=an===void 0?function(Bn){return"+ ".concat(Bn.length," ...")}:an,Rn=Et.tagRender,$n=Et.onToggleOpen,dr=Et.onRemove,jn=Et.onInputChange,zn=Et.onInputPaste,er=Et.onInputKeyDown,Xn=Et.onInputMouseDown,sr=Et.onInputCompositionStart,Wn=Et.onInputCompositionEnd,Qn=Et.onInputBlur,or=C.useRef(null),cr=(0,C.useState)(0),rr=(0,F.Z)(cr,2),nr=rr[0],ir=rr[1],Vn=(0,C.useState)(!1),$r=(0,F.Z)(Vn,2),Kt=$r[0],ar=$r[1],hr="".concat(lt,"-selection"),Yr=xt||yn==="multiple"&&Jt===!1||yn==="tags"?Dt:"",zr=yn==="tags"||yn==="multiple"&&Jt===!1||Nn&&(xt||Kt);st(function(){ir(or.current.scrollWidth)},[Yr]);var li=function(Yn,lr,Ir,On,mr){return C.createElement("span",{title:We(Yn),className:y()("".concat(hr,"-item"),(0,U.Z)({},"".concat(hr,"-item-disabled"),Ir))},C.createElement("span",{className:"".concat(hr,"-item-content")},lr),On&&C.createElement(H,{className:"".concat(hr,"-item-remove"),onMouseDown:Ke,onClick:mr,customizeIcon:Bt},"\xD7"))},Qr=function(Yn,lr,Ir,On,mr,Dr){var Jr=function(Li){Ke(Li),$n(!xt)};return C.createElement("span",{onMouseDown:Jr},Rn({label:lr,value:Yn,disabled:Ir,closable:On,onClose:mr,isMaxTag:!!Dr}))},Zn=function(Yn){var lr=Yn.disabled,Ir=Yn.label,On=Yn.value,mr=!Vt&&!lr,Dr=Ir;if(typeof Qt=="number"&&(typeof Ir=="string"||typeof Ir=="number")){var Jr=String(Dr);Jr.length>Qt&&(Dr="".concat(Jr.slice(0,Qt),"..."))}var mi=function(Gr){Gr&&Gr.stopPropagation(),dr(Yn)};return typeof Rn=="function"?Qr(On,Dr,lr,mr,mi):li(Yn,Dr,lr,mr,mi)},Pn=function(Yn){if(!vt.length)return null;var lr=typeof on=="function"?on(Yn):on;return typeof Rn=="function"?Qr(void 0,lr,!1,!1,void 0,!0):li({title:lr},lr,!1)},sn=C.createElement("div",{className:"".concat(hr,"-search"),style:{width:nr},onFocus:function(){ar(!0)},onBlur:function(){ar(!1)}},C.createElement(te,{ref:pn,open:xt,prefixCls:lt,id:Be,inputElement:null,disabled:Vt,autoFocus:Sn,autoComplete:bt,editable:zr,activeDescendantId:Rt,value:Yr,onKeyDown:er,onMouseDown:Xn,onChange:jn,onPaste:zn,onCompositionStart:sr,onCompositionEnd:Wn,onBlur:Qn,tabIndex:Wt,attrs:(0,Le.Z)(Et,!0)}),C.createElement("span",{ref:or,className:"".concat(hr,"-search-mirror"),"aria-hidden":!0},Yr,"\xA0")),un=C.createElement($e.Z,{prefixCls:"".concat(hr,"-overflow"),data:vt,renderItem:Zn,renderRest:Pn,suffix:sn,itemKey:_e,maxCount:jt});return C.createElement("span",{className:"".concat(hr,"-wrap")},un,!vt.length&&!Yr&&C.createElement("span",{className:"".concat(hr,"-placeholder")},_n))},rt=Ve,Ae=function(Et){var Be=Et.inputElement,lt=Et.prefixCls,vt=Et.id,xt=Et.inputRef,Dt=Et.disabled,Jt=Et.autoFocus,pn=Et.autoComplete,_n=Et.activeDescendantId,Vt=Et.mode,yn=Et.open,Nn=Et.values,Sn=Et.placeholder,bt=Et.tabIndex,Rt=Et.showSearch,Wt=Et.searchValue,Bt=Et.activeValue,jt=Et.maxLength,Qt=Et.onInputKeyDown,an=Et.onInputMouseDown,on=Et.onInputChange,Rn=Et.onInputPaste,$n=Et.onInputCompositionStart,dr=Et.onInputCompositionEnd,jn=Et.onInputBlur,zn=Et.title,er=C.useState(!1),Xn=(0,F.Z)(er,2),sr=Xn[0],Wn=Xn[1],Qn=Vt==="combobox",or=Qn||Rt,cr=Nn[0],rr=Wt||"";Qn&&Bt&&!sr&&(rr=Bt),C.useEffect(function(){Qn&&Wn(!1)},[Qn,Bt]);var nr=Vt!=="combobox"&&!yn&&!Rt?!1:!!rr,ir=zn===void 0?We(cr):zn,Vn=C.useMemo(function(){return cr?null:C.createElement("span",{className:"".concat(lt,"-selection-placeholder"),style:nr?{visibility:"hidden"}:void 0},Sn)},[cr,nr,Sn,lt]);return C.createElement("span",{className:"".concat(lt,"-selection-wrap")},C.createElement("span",{className:"".concat(lt,"-selection-search")},C.createElement(te,{ref:xt,prefixCls:lt,id:vt,open:yn,inputElement:Be,disabled:Dt,autoFocus:Jt,autoComplete:pn,editable:or,activeDescendantId:_n,value:rr,onKeyDown:Qt,onMouseDown:an,onChange:function(Kt){Wn(!0),on(Kt)},onPaste:Rn,onCompositionStart:$n,onCompositionEnd:dr,onBlur:jn,tabIndex:bt,attrs:(0,Le.Z)(Et,!0),maxLength:Qn?jt:void 0})),!Qn&&cr?C.createElement("span",{className:"".concat(lt,"-selection-item"),title:ir,style:nr?{visibility:"hidden"}:void 0},cr.label):null,Vn)},Tt=Ae,tt=function(Et,Be){var lt=(0,C.useRef)(null),vt=(0,C.useRef)(!1),xt=Et.prefixCls,Dt=Et.open,Jt=Et.mode,pn=Et.showSearch,_n=Et.tokenWithEnter,Vt=Et.disabled,yn=Et.prefix,Nn=Et.autoClearSearchValue,Sn=Et.onSearch,bt=Et.onSearchSubmit,Rt=Et.onToggleOpen,Wt=Et.onInputKeyDown,Bt=Et.onInputBlur,jt=Et.domRef;C.useImperativeHandle(Be,function(){return{focus:function(ir){lt.current.focus(ir)},blur:function(){lt.current.blur()}}});var Qt=L(0),an=(0,F.Z)(Qt,2),on=an[0],Rn=an[1],$n=function(ir){var Vn=ir.which,$r=lt.current instanceof HTMLTextAreaElement;!$r&&Dt&&(Vn===pe.Z.UP||Vn===pe.Z.DOWN)&&ir.preventDefault(),Wt&&Wt(ir),Vn===pe.Z.ENTER&&Jt==="tags"&&!vt.current&&!Dt&&(bt==null||bt(ir.target.value)),!($r&&!Dt&&~[pe.Z.UP,pe.Z.DOWN,pe.Z.LEFT,pe.Z.RIGHT].indexOf(Vn))&&ce(Vn)&&Rt(!0)},dr=function(){Rn(!0)},jn=(0,C.useRef)(null),zn=function(ir){Sn(ir,!0,vt.current)!==!1&&Rt(!0)},er=function(){vt.current=!0},Xn=function(ir){vt.current=!1,Jt!=="combobox"&&zn(ir.target.value)},sr=function(ir){var Vn=ir.target.value;if(_n&&jn.current&&/[\r\n]/.test(jn.current)){var $r=jn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vn=Vn.replace($r,jn.current)}jn.current=null,zn(Vn)},Wn=function(ir){var Vn=ir.clipboardData,$r=Vn==null?void 0:Vn.getData("text");jn.current=$r||""},Qn=function(ir){var Vn=ir.target;if(Vn!==lt.current){var $r=document.body.style.msTouchAction!==void 0;$r?setTimeout(function(){lt.current.focus()}):lt.current.focus()}},or=function(ir){var Vn=on();ir.target!==lt.current&&!Vn&&!(Jt==="combobox"&&Vt)&&ir.preventDefault(),(Jt!=="combobox"&&(!pn||!Vn)||!Dt)&&(Dt&&Nn!==!1&&Sn("",!0,!1),Rt())},cr={inputRef:lt,onInputKeyDown:$n,onInputMouseDown:dr,onInputChange:sr,onInputPaste:Wn,onInputCompositionStart:er,onInputCompositionEnd:Xn,onInputBlur:Bt},rr=Jt==="multiple"||Jt==="tags"?C.createElement(rt,(0,l.Z)({},Et,cr)):C.createElement(Tt,(0,l.Z)({},Et,cr));return C.createElement("div",{ref:jt,className:"".concat(xt,"-selector"),onClick:Qn,onMouseDown:or},yn&&C.createElement("div",{className:"".concat(xt,"-prefix")},yn),rr)},Pt=C.forwardRef(tt),Xe=Pt,Qe=d(68196),Ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oe=function(Et){var Be=Et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Be,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Be,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1},htmlRegion:"scroll"}}},re=function(Et,Be){var lt=Et.prefixCls,vt=Et.disabled,xt=Et.visible,Dt=Et.children,Jt=Et.popupElement,pn=Et.animation,_n=Et.transitionName,Vt=Et.dropdownStyle,yn=Et.dropdownClassName,Nn=Et.direction,Sn=Nn===void 0?"ltr":Nn,bt=Et.placement,Rt=Et.builtinPlacements,Wt=Et.dropdownMatchSelectWidth,Bt=Et.dropdownRender,jt=Et.dropdownAlign,Qt=Et.getPopupContainer,an=Et.empty,on=Et.getTriggerDOMNode,Rn=Et.onPopupVisibleChange,$n=Et.onPopupMouseEnter,dr=(0,g.Z)(Et,Ne),jn="".concat(lt,"-dropdown"),zn=Jt;Bt&&(zn=Bt(Jt));var er=C.useMemo(function(){return Rt||Oe(Wt)},[Rt,Wt]),Xn=pn?"".concat(jn,"-").concat(pn):_n,sr=typeof Wt=="number",Wn=C.useMemo(function(){return sr?null:Wt===!1?"minWidth":"width"},[Wt,sr]),Qn=Vt;sr&&(Qn=(0,le.Z)((0,le.Z)({},Qn),{},{width:Wt}));var or=C.useRef(null);return C.useImperativeHandle(Be,function(){return{getPopupElement:function(){var rr;return(rr=or.current)===null||rr===void 0?void 0:rr.popupElement}}}),C.createElement(Qe.Z,(0,l.Z)({},dr,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:bt||(Sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:er,prefixCls:jn,popupTransitionName:Xn,popup:C.createElement("div",{onMouseEnter:$n},zn),ref:or,stretch:Wn,popupAlign:jt,popupVisible:xt,getPopupContainer:Qt,popupClassName:y()(yn,(0,U.Z)({},"".concat(jn,"-empty"),an)),popupStyle:Qn,getTriggerDOMNode:on,onPopupVisibleChange:Rn}),Dt)},Fe=C.forwardRef(re),Re=Fe,Z=d(48745);function O(yt,Et){var Be=yt.key,lt;return"value"in yt&&(lt=yt.value),Be!=null?Be:lt!==void 0?lt:"rc-index-key-".concat(Et)}function me(yt){return typeof yt!="undefined"&&!Number.isNaN(yt)}function Ee(yt,Et){var Be=yt||{},lt=Be.label,vt=Be.value,xt=Be.options,Dt=Be.groupLabel,Jt=lt||(Et?"children":"label");return{label:Jt,value:vt||"value",options:xt||"options",groupLabel:Dt||Jt}}function ge(yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=Et.fieldNames,lt=Et.childrenAsData,vt=[],xt=Ee(Be,!1),Dt=xt.label,Jt=xt.value,pn=xt.options,_n=xt.groupLabel;function Vt(yn,Nn){Array.isArray(yn)&&yn.forEach(function(Sn){if(Nn||!(pn in Sn)){var bt=Sn[Jt];vt.push({key:O(Sn,vt.length),groupOption:Nn,data:Sn,label:Sn[Dt],value:bt})}else{var Rt=Sn[_n];Rt===void 0&<&&(Rt=Sn.label),vt.push({key:O(Sn,vt.length),group:!0,data:Sn,label:Rt}),Vt(Sn[pn],!0)}})}return Vt(yt,!1),vt}function we(yt){var Et=(0,le.Z)({},yt);return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Et}}),Et}var ke=function(Et,Be,lt){if(!Be||!Be.length)return null;var vt=!1,xt=function Jt(pn,_n){var Vt=(0,Z.Z)(_n),yn=Vt[0],Nn=Vt.slice(1);if(!yn)return[pn];var Sn=pn.split(yn);return vt=vt||Sn.length>1,Sn.reduce(function(bt,Rt){return[].concat((0,ie.Z)(bt),(0,ie.Z)(Jt(Rt,Nn)))},[]).filter(Boolean)},Dt=xt(Et,Be);return vt?typeof lt!="undefined"?Dt.slice(0,lt):Dt:null},Ye=C.createContext(null),oe=Ye;function fe(yt){var Et=yt.visible,Be=yt.values;if(!Et)return null;var lt=50;return C.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Be.slice(0,lt).map(function(vt){var xt=vt.label,Dt=vt.value;return["number","string"].includes((0,q.Z)(xt))?xt:Dt}).join(", ")),Be.length>lt?", ...":null)}var dt=["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"],ot=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ft=function(Et){return Et==="tags"||Et==="multiple"},ht=C.forwardRef(function(yt,Et){var Be,lt=yt.id,vt=yt.prefixCls,xt=yt.className,Dt=yt.showSearch,Jt=yt.tagRender,pn=yt.direction,_n=yt.omitDomProps,Vt=yt.displayValues,yn=yt.onDisplayValuesChange,Nn=yt.emptyOptions,Sn=yt.notFoundContent,bt=Sn===void 0?"Not Found":Sn,Rt=yt.onClear,Wt=yt.mode,Bt=yt.disabled,jt=yt.loading,Qt=yt.getInputElement,an=yt.getRawInputElement,on=yt.open,Rn=yt.defaultOpen,$n=yt.onDropdownVisibleChange,dr=yt.activeValue,jn=yt.onActiveValueChange,zn=yt.activeDescendantId,er=yt.searchValue,Xn=yt.autoClearSearchValue,sr=yt.onSearch,Wn=yt.onSearchSplit,Qn=yt.tokenSeparators,or=yt.allowClear,cr=yt.prefix,rr=yt.suffixIcon,nr=yt.clearIcon,ir=yt.OptionList,Vn=yt.animation,$r=yt.transitionName,Kt=yt.dropdownStyle,ar=yt.dropdownClassName,hr=yt.dropdownMatchSelectWidth,Yr=yt.dropdownRender,zr=yt.dropdownAlign,li=yt.placement,Qr=yt.builtinPlacements,Zn=yt.getPopupContainer,Pn=yt.showAction,sn=Pn===void 0?[]:Pn,un=yt.onFocus,Bn=yt.onBlur,Yn=yt.onKeyUp,lr=yt.onKeyDown,Ir=yt.onMouseDown,On=(0,g.Z)(yt,dt),mr=ft(Wt),Dr=(Dt!==void 0?Dt:mr)||Wt==="combobox",Jr=(0,le.Z)({},On);ot.forEach(function(fi){delete Jr[fi]}),_n==null||_n.forEach(function(fi){delete Jr[fi]});var mi=C.useState(!1),Li=(0,F.Z)(mi,2),Gr=Li[0],Ri=Li[1];C.useEffect(function(){Ri((0,I.Z)())},[]);var qr=C.useRef(null),bi=C.useRef(null),ri=C.useRef(null),di=C.useRef(null),ii=C.useRef(null),Oi=C.useRef(!1),Lr=R(),Pi=(0,F.Z)(Lr,3),Mi=Pi[0],ki=Pi[1],yr=Pi[2];C.useImperativeHandle(Et,function(){var fi,Hr;return{focus:(fi=di.current)===null||fi===void 0?void 0:fi.focus,blur:(Hr=di.current)===null||Hr===void 0?void 0:Hr.blur,scrollTo:function(Cs){var Ci;return(Ci=ii.current)===null||Ci===void 0?void 0:Ci.scrollTo(Cs)},nativeElement:qr.current||bi.current}});var Gn=C.useMemo(function(){var fi;if(Wt!=="combobox")return er;var Hr=(fi=Vt[0])===null||fi===void 0?void 0:fi.value;return typeof Hr=="string"||typeof Hr=="number"?String(Hr):""},[er,Wt,Vt]),pi=Wt==="combobox"&&typeof Qt=="function"&&Qt()||null,Ln=typeof an=="function"&&an(),Fi=(0,N.x1)(bi,Ln==null||(Be=Ln.props)===null||Be===void 0?void 0:Be.ref),Os=C.useState(!1),vs=(0,F.Z)(Os,2),ss=vs[0],ls=vs[1];(0,S.Z)(function(){ls(!0)},[]);var Pr=(0,Q.Z)(!1,{defaultValue:Rn,value:on}),Gi=(0,F.Z)(Pr,2),ds=Gi[0],_s=Gi[1],ci=ss?ds:!1,zi=!bt&&Nn;(Bt||zi&&ci&&Wt==="combobox")&&(ci=!1);var ns=zi?!1:ci,xr=C.useCallback(function(fi){var Hr=fi!==void 0?fi:!ci;Bt||(_s(Hr),ci!==Hr&&($n==null||$n(Hr)))},[Bt,ci,_s,$n]),Ur=C.useMemo(function(){return(Qn||[]).some(function(fi){return[`
|
|
|
`,`\r
|
|
|
`].includes(fi)})},[Qn]),_r=C.useContext(oe)||{},Or=_r.maxCount,ui=_r.rawValues,_i=function(Hr,ps,Cs){if(!(mr&&me(Or)&&(ui==null?void 0:ui.size)>=Or)){var Ci=!0,os=Hr;jn==null||jn(null);var Ps=ke(Hr,Qn,me(Or)?Or-ui.size:void 0),Ms=Cs?null:Ps;return Wt!=="combobox"&&Ms&&(os="",Wn==null||Wn(Ms),xr(!1),Ci=!1),sr&&Gn!==os&&sr(os,{source:ps?"typing":"effect"}),Ci}},as=function(Hr){!Hr||!Hr.trim()||sr(Hr,{source:"submit"})};C.useEffect(function(){!ci&&!mr&&Wt!=="combobox"&&_i("",!1,!1)},[ci]),C.useEffect(function(){ds&&Bt&&_s(!1),Bt&&!Oi.current&&ki(!1)},[Bt]);var ur=L(),Rr=(0,F.Z)(ur,2),ei=Rr[0],Kr=Rr[1],ti=C.useRef(!1),xs=function(Hr){var ps=ei(),Cs=Hr.key,Ci=Cs==="Enter";if(Ci&&(Wt!=="combobox"&&Hr.preventDefault(),ci||xr(!0)),Kr(!!Gn),Cs==="Backspace"&&!ps&&mr&&!Gn&&Vt.length){for(var os=(0,ie.Z)(Vt),Ps=null,Ms=os.length-1;Ms>=0;Ms-=1){var Js=os[Ms];if(!Js.disabled){os.splice(Ms,1),Ps=Js;break}}Ps&&yn(os,{type:"remove",values:[Ps]})}for(var ws=arguments.length,ta=new Array(ws>1?ws-1:0),Hs=1;Hs<ws;Hs++)ta[Hs-1]=arguments[Hs];if(ci&&(!Ci||!ti.current)){var la;Ci&&(ti.current=!0),(la=ii.current)===null||la===void 0||la.onKeyDown.apply(la,[Hr].concat(ta))}lr==null||lr.apply(void 0,[Hr].concat(ta))},us=function(Hr){for(var ps=arguments.length,Cs=new Array(ps>1?ps-1:0),Ci=1;Ci<ps;Ci++)Cs[Ci-1]=arguments[Ci];if(ci){var os;(os=ii.current)===null||os===void 0||os.onKeyUp.apply(os,[Hr].concat(Cs))}Hr.key==="Enter"&&(ti.current=!1),Yn==null||Yn.apply(void 0,[Hr].concat(Cs))},Es=function(Hr){var ps=Vt.filter(function(Cs){return Cs!==Hr});yn(ps,{type:"remove",values:[Hr]})},ms=function(){ti.current=!1},ba=C.useRef(!1),so=function(){ki(!0),Bt||(un&&!ba.current&&un.apply(void 0,arguments),sn.includes("focus")&&xr(!0)),ba.current=!0},Ka=function(){Oi.current=!0,ki(!1,function(){ba.current=!1,Oi.current=!1,xr(!1)}),!Bt&&(Gn&&(Wt==="tags"?sr(Gn,{source:"submit"}):Wt==="multiple"&&sr("",{source:"blur"})),Bn&&Bn.apply(void 0,arguments))},Ss=[];C.useEffect(function(){return function(){Ss.forEach(function(fi){return clearTimeout(fi)}),Ss.splice(0,Ss.length)}},[]);var Fs=function(Hr){var ps,Cs=Hr.target,Ci=(ps=ri.current)===null||ps===void 0?void 0:ps.getPopupElement();if(Ci&&Ci.contains(Cs)){var os=setTimeout(function(){var ws=Ss.indexOf(os);if(ws!==-1&&Ss.splice(ws,1),yr(),!Gr&&!Ci.contains(document.activeElement)){var ta;(ta=di.current)===null||ta===void 0||ta.focus()}});Ss.push(os)}for(var Ps=arguments.length,Ms=new Array(Ps>1?Ps-1:0),Js=1;Js<Ps;Js++)Ms[Js-1]=arguments[Js];Ir==null||Ir.apply(void 0,[Hr].concat(Ms))},ks=C.useState({}),ja=(0,F.Z)(ks,2),aa=ja[1];function js(){aa({})}var Ca;Ln&&(Ca=function(Hr){xr(Hr)}),ae(function(){var fi;return[qr.current,(fi=ri.current)===null||fi===void 0?void 0:fi.getPopupElement()]},ns,xr,!!Ln);var Pa=C.useMemo(function(){return(0,le.Z)((0,le.Z)({},yt),{},{notFoundContent:bt,open:ci,triggerOpen:ns,id:lt,showSearch:Dr,multiple:mr,toggleOpen:xr})},[yt,bt,ns,ci,lt,Dr,mr,xr]),Za=!!rr||jt,zs;Za&&(zs=C.createElement(H,{className:y()("".concat(vt,"-arrow"),(0,U.Z)({},"".concat(vt,"-arrow-loading"),jt)),customizeIcon:rr,customizeIconProps:{loading:jt,searchValue:Gn,open:ci,focused:Mi,showSearch:Dr}}));var wa=function(){var Hr;Rt==null||Rt(),(Hr=di.current)===null||Hr===void 0||Hr.focus(),yn([],{type:"clear",values:Vt}),_i("",!1,!1)},Ls=j(vt,wa,Vt,or,nr,Bt,Gn,Wt),Ma=Ls.allowClear,ka=Ls.clearIcon,Ha=C.createElement(ir,{ref:ii}),Wa=y()(vt,xt,(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)({},"".concat(vt,"-focused"),Mi),"".concat(vt,"-multiple"),mr),"".concat(vt,"-single"),!mr),"".concat(vt,"-allow-clear"),or),"".concat(vt,"-show-arrow"),Za),"".concat(vt,"-disabled"),Bt),"".concat(vt,"-loading"),jt),"".concat(vt,"-open"),ci),"".concat(vt,"-customize-input"),pi),"".concat(vt,"-show-search"),Dr)),oa=C.createElement(Re,{ref:ri,disabled:Bt,prefixCls:vt,visible:ns,popupElement:Ha,animation:Vn,transitionName:$r,dropdownStyle:Kt,dropdownClassName:ar,direction:pn,dropdownMatchSelectWidth:hr,dropdownRender:Yr,dropdownAlign:zr,placement:li,builtinPlacements:Qr,getPopupContainer:Zn,empty:Nn,getTriggerDOMNode:function(Hr){return bi.current||Hr},onPopupVisibleChange:Ca,onPopupMouseEnter:js},Ln?C.cloneElement(Ln,{ref:Fi}):C.createElement(Xe,(0,l.Z)({},yt,{domRef:bi,prefixCls:vt,inputElement:pi,ref:di,id:lt,prefix:cr,showSearch:Dr,autoClearSearchValue:Xn,mode:Wt,activeDescendantId:zn,tagRender:Jt,values:Vt,open:ci,onToggleOpen:xr,activeValue:dr,searchValue:Gn,onSearch:_i,onSearchSubmit:as,onRemove:Es,tokenWithEnter:Ur,onInputBlur:ms}))),Zs;return Ln?Zs=oa:Zs=C.createElement("div",(0,l.Z)({className:Wa},Jr,{ref:qr,onMouseDown:Fs,onKeyDown:xs,onKeyUp:us,onFocus:so,onBlur:Ka}),C.createElement(fe,{visible:Mi&&!ci,values:Vt}),oa,zs,Ma&&ka),C.createElement(A.Provider,{value:Pa},Zs)}),Ge=ht,Ct=function(){return null};Ct.isSelectOptGroup=!0;var gt=Ct,Ce=function(){return null};Ce.isSelectOption=!0;var Je=Ce,_=d(80547),D=d(2738),Ze=d(48911);function ee(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ye=["disabled","title","children","style","className"];function Ot(yt){return typeof yt=="string"||typeof yt=="number"}var He=function(Et,Be){var lt=V(),vt=lt.prefixCls,xt=lt.id,Dt=lt.open,Jt=lt.multiple,pn=lt.mode,_n=lt.searchValue,Vt=lt.toggleOpen,yn=lt.notFoundContent,Nn=lt.onPopupScroll,Sn=C.useContext(oe),bt=Sn.maxCount,Rt=Sn.flattenOptions,Wt=Sn.onActiveValue,Bt=Sn.defaultActiveFirstOption,jt=Sn.onSelect,Qt=Sn.menuItemSelectedIcon,an=Sn.rawValues,on=Sn.fieldNames,Rn=Sn.virtual,$n=Sn.direction,dr=Sn.listHeight,jn=Sn.listItemHeight,zn=Sn.optionRender,er="".concat(vt,"-item"),Xn=(0,_.Z)(function(){return Rt},[Dt,Rt],function(Pn,sn){return sn[0]&&Pn[1]!==sn[1]}),sr=C.useRef(null),Wn=C.useMemo(function(){return Jt&&me(bt)&&(an==null?void 0:an.size)>=bt},[Jt,bt,an==null?void 0:an.size]),Qn=function(sn){sn.preventDefault()},or=function(sn){var un;(un=sr.current)===null||un===void 0||un.scrollTo(typeof sn=="number"?{index:sn}:sn)},cr=C.useCallback(function(Pn){return pn==="combobox"?!1:an.has(Pn)},[pn,(0,ie.Z)(an).toString(),an.size]),rr=function(sn){for(var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Bn=Xn.length,Yn=0;Yn<Bn;Yn+=1){var lr=(sn+Yn*un+Bn)%Bn,Ir=Xn[lr]||{},On=Ir.group,mr=Ir.data;if(!On&&!(mr!=null&&mr.disabled)&&(cr(mr.value)||!Wn))return lr}return-1},nr=C.useState(function(){return rr(0)}),ir=(0,F.Z)(nr,2),Vn=ir[0],$r=ir[1],Kt=function(sn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$r(sn);var Bn={source:un?"keyboard":"mouse"},Yn=Xn[sn];if(!Yn){Wt(null,-1,Bn);return}Wt(Yn.value,sn,Bn)};(0,C.useEffect)(function(){Kt(Bt!==!1?rr(0):-1)},[Xn.length,_n]);var ar=C.useCallback(function(Pn){return pn==="combobox"?String(Pn).toLowerCase()===_n.toLowerCase():an.has(Pn)},[pn,_n,(0,ie.Z)(an).toString(),an.size]);(0,C.useEffect)(function(){var Pn=setTimeout(function(){if(!Jt&&Dt&&an.size===1){var un=Array.from(an)[0],Bn=Xn.findIndex(function(Yn){var lr=Yn.data;return _n?String(lr.value).startsWith(_n):lr.value===un});Bn!==-1&&(Kt(Bn),or(Bn))}});if(Dt){var sn;(sn=sr.current)===null||sn===void 0||sn.scrollTo(void 0)}return function(){return clearTimeout(Pn)}},[Dt,_n]);var hr=function(sn){sn!==void 0&&jt(sn,{selected:!an.has(sn)}),Jt||Vt(!1)};if(C.useImperativeHandle(Be,function(){return{onKeyDown:function(sn){var un=sn.which,Bn=sn.ctrlKey;switch(un){case pe.Z.N:case pe.Z.P:case pe.Z.UP:case pe.Z.DOWN:{var Yn=0;if(un===pe.Z.UP?Yn=-1:un===pe.Z.DOWN?Yn=1:ee()&&Bn&&(un===pe.Z.N?Yn=1:un===pe.Z.P&&(Yn=-1)),Yn!==0){var lr=rr(Vn+Yn,Yn);or(lr),Kt(lr,!0)}break}case pe.Z.TAB:case pe.Z.ENTER:{var Ir,On=Xn[Vn];On&&!(On!=null&&(Ir=On.data)!==null&&Ir!==void 0&&Ir.disabled)&&!Wn?hr(On.value):hr(void 0),Dt&&sn.preventDefault();break}case pe.Z.ESC:Vt(!1),Dt&&sn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(sn){or(sn)}}}),Xn.length===0)return C.createElement("div",{role:"listbox",id:"".concat(xt,"_list"),className:"".concat(er,"-empty"),onMouseDown:Qn},yn);var Yr=Object.keys(on).map(function(Pn){return on[Pn]}),zr=function(sn){return sn.label};function li(Pn,sn){var un=Pn.group;return{role:un?"presentation":"option",id:"".concat(xt,"_list_").concat(sn)}}var Qr=function(sn){var un=Xn[sn];if(!un)return null;var Bn=un.data||{},Yn=Bn.value,lr=un.group,Ir=(0,Le.Z)(Bn,!0),On=zr(un);return un?C.createElement("div",(0,l.Z)({"aria-label":typeof On=="string"&&!lr?On:null},Ir,{key:sn},li(un,sn),{"aria-selected":ar(Yn)}),Yn):null},Zn={role:"listbox",id:"".concat(xt,"_list")};return C.createElement(C.Fragment,null,Rn&&C.createElement("div",(0,l.Z)({},Zn,{style:{height:0,width:0,overflow:"hidden"}}),Qr(Vn-1),Qr(Vn),Qr(Vn+1)),C.createElement(Ze.Z,{itemKey:"key",ref:sr,data:Xn,height:dr,itemHeight:jn,fullHeight:!1,onMouseDown:Qn,onScroll:Nn,virtual:Rn,direction:$n,innerProps:Rn?null:Zn},function(Pn,sn){var un=Pn.group,Bn=Pn.groupOption,Yn=Pn.data,lr=Pn.label,Ir=Pn.value,On=Yn.key;if(un){var mr,Dr=(mr=Yn.title)!==null&&mr!==void 0?mr:Ot(lr)?lr.toString():void 0;return C.createElement("div",{className:y()(er,"".concat(er,"-group"),Yn.className),title:Dr},lr!==void 0?lr:On)}var Jr=Yn.disabled,mi=Yn.title,Li=Yn.children,Gr=Yn.style,Ri=Yn.className,qr=(0,g.Z)(Yn,ye),bi=(0,D.Z)(qr,Yr),ri=cr(Ir),di=Jr||!ri&&Wn,ii="".concat(er,"-option"),Oi=y()(er,ii,Ri,(0,U.Z)((0,U.Z)((0,U.Z)((0,U.Z)({},"".concat(ii,"-grouped"),Bn),"".concat(ii,"-active"),Vn===sn&&!di),"".concat(ii,"-disabled"),di),"".concat(ii,"-selected"),ri)),Lr=zr(Pn),Pi=!Qt||typeof Qt=="function"||ri,Mi=typeof Lr=="number"?Lr:Lr||Ir,ki=Ot(Mi)?Mi.toString():void 0;return mi!==void 0&&(ki=mi),C.createElement("div",(0,l.Z)({},(0,Le.Z)(bi),Rn?{}:li(Pn,sn),{"aria-selected":ar(Ir),className:Oi,title:ki,onMouseMove:function(){Vn===sn||di||Kt(sn)},onClick:function(){di||hr(Ir)},style:Gr}),C.createElement("div",{className:"".concat(ii,"-content")},typeof zn=="function"?zn(Pn,{index:sn}):Mi),C.isValidElement(Qt)||ri,Pi&&C.createElement(H,{className:"".concat(er,"-option-state"),customizeIcon:Qt,customizeIconProps:{value:Ir,disabled:di,isSelected:ri}},ri?"\u2713":null))}))},it=C.forwardRef(He),ct=it,he=function(yt,Et){var Be=C.useRef({values:new Map,options:new Map}),lt=C.useMemo(function(){var xt=Be.current,Dt=xt.values,Jt=xt.options,pn=yt.map(function(yn){if(yn.label===void 0){var Nn;return(0,le.Z)((0,le.Z)({},yn),{},{label:(Nn=Dt.get(yn.value))===null||Nn===void 0?void 0:Nn.label})}return yn}),_n=new Map,Vt=new Map;return pn.forEach(function(yn){_n.set(yn.value,yn),Vt.set(yn.value,Et.get(yn.value)||Jt.get(yn.value))}),Be.current.values=_n,Be.current.options=Vt,pn},[yt,Et]),vt=C.useCallback(function(xt){return Et.get(xt)||Be.current.options.get(xt)},[Et]);return[lt,vt]};function be(yt,Et){return ne(yt).join("").toUpperCase().includes(Et)}var je=function(yt,Et,Be,lt,vt){return C.useMemo(function(){if(!Be||lt===!1)return yt;var xt=Et.options,Dt=Et.label,Jt=Et.value,pn=[],_n=typeof lt=="function",Vt=Be.toUpperCase(),yn=_n?lt:function(Sn,bt){return vt?be(bt[vt],Vt):bt[xt]?be(bt[Dt!=="children"?Dt:"label"],Vt):be(bt[Jt],Vt)},Nn=_n?function(Sn){return we(Sn)}:function(Sn){return Sn};return yt.forEach(function(Sn){if(Sn[xt]){var bt=yn(Be,Nn(Sn));if(bt)pn.push(Sn);else{var Rt=Sn[xt].filter(function(Wt){return yn(Be,Nn(Wt))});Rt.length&&pn.push((0,le.Z)((0,le.Z)({},Sn),{},(0,U.Z)({},xt,Rt)))}return}yn(Be,Nn(Sn))&&pn.push(Sn)}),pn},[yt,lt,vt,Be,Et])},Ue=d(6551),$=d(11592),ut=["children","value"],xe=["children"];function At(yt){var Et=yt,Be=Et.key,lt=Et.props,vt=lt.children,xt=lt.value,Dt=(0,g.Z)(lt,ut);return(0,le.Z)({key:Be,value:xt!==void 0?xt:Be,children:vt},Dt)}function zt(yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$.Z)(yt).map(function(Be,lt){if(!C.isValidElement(Be)||!Be.type)return null;var vt=Be,xt=vt.type.isSelectOptGroup,Dt=vt.key,Jt=vt.props,pn=Jt.children,_n=(0,g.Z)(Jt,xe);return Et||!xt?At(Be):(0,le.Z)((0,le.Z)({key:"__RC_SELECT_GRP__".concat(Dt===null?lt:Dt,"__"),label:Dt},_n),{},{options:zt(pn)})}).filter(function(Be){return Be})}var qt=function(Et,Be,lt,vt,xt){return C.useMemo(function(){var Dt=Et,Jt=!Et;Jt&&(Dt=zt(Be));var pn=new Map,_n=new Map,Vt=function(Sn,bt,Rt){Rt&&typeof Rt=="string"&&Sn.set(bt[Rt],bt)},yn=function Nn(Sn){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rt=0;Rt<Sn.length;Rt+=1){var Wt=Sn[Rt];!Wt[lt.options]||bt?(pn.set(Wt[lt.value],Wt),Vt(_n,Wt,lt.label),Vt(_n,Wt,vt),Vt(_n,Wt,xt)):Nn(Wt[lt.options],!0)}};return yn(Dt),{options:Dt,valueOptions:pn,labelOptions:_n}},[Et,Be,lt,vt,xt])},cn=qt;function gn(yt){var Et=C.useRef();Et.current=yt;var Be=C.useCallback(function(){return Et.current.apply(Et,arguments)},[]);return Be}function En(yt){var Et=yt.mode,Be=yt.options,lt=yt.children,vt=yt.backfill,xt=yt.allowClear,Dt=yt.placeholder,Jt=yt.getInputElement,pn=yt.showSearch,_n=yt.onSearch,Vt=yt.defaultOpen,yn=yt.autoFocus,Nn=yt.labelInValue,Sn=yt.value,bt=yt.inputValue,Rt=yt.optionLabelProp,Wt=isMultiple(Et),Bt=pn!==void 0?pn:Wt||Et==="combobox",jt=Be||convertChildrenToData(lt);if(warning(Et!=="tags"||jt.every(function(Rn){return!Rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Et==="tags"||Et==="combobox"){var Qt=jt.some(function(Rn){return Rn.options?Rn.options.some(function($n){return typeof("value"in $n?$n.value:$n.key)=="number"}):typeof("value"in Rn?Rn.value:Rn.key)=="number"});warning(!Qt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Et!=="combobox"||!Rt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Et==="combobox"||!vt,"`backfill` only works with `combobox` mode."),warning(Et==="combobox"||!Jt,"`getInputElement` only work with `combobox` mode."),noteOnce(Et!=="combobox"||!Jt||!xt||!Dt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_n&&!Bt&&Et!=="combobox"&&Et!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Vt||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Sn!=null){var an=toArray(Sn);warning(!Nn||an.every(function(Rn){return _typeof(Rn)==="object"&&("key"in Rn||"value"in Rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Wt||Array.isArray(Sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(lt){var on=null;toNodeArray(lt).some(function(Rn){if(!React.isValidElement(Rn)||!Rn.type)return!1;var $n=Rn,dr=$n.type;if(dr.isSelectOption)return!1;if(dr.isSelectOptGroup){var jn=toNodeArray(Rn.props.children).every(function(zn){return!React.isValidElement(zn)||!Rn.type||zn.type.isSelectOption?!0:(on=zn.type,!1)});return!jn}return on=dr,!0}),on&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(on.displayName||on.name||on,"`.")),warning(bt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Fn(yt,Et){if(yt){var Be=function lt(vt){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=0;Dt<vt.length;Dt++){var Jt=vt[Dt];if(Jt[Et==null?void 0:Et.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!xt&&Array.isArray(Jt[Et==null?void 0:Et.options])&<(Jt[Et==null?void 0:Et.options],!0))break}};Be(yt)}}var Hn=null,An=["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"],qn=["inputValue"];function vn(yt){return!yt||(0,q.Z)(yt)!=="object"}var Gt=C.forwardRef(function(yt,Et){var Be=yt.id,lt=yt.mode,vt=yt.prefixCls,xt=vt===void 0?"rc-select":vt,Dt=yt.backfill,Jt=yt.fieldNames,pn=yt.inputValue,_n=yt.searchValue,Vt=yt.onSearch,yn=yt.autoClearSearchValue,Nn=yn===void 0?!0:yn,Sn=yt.onSelect,bt=yt.onDeselect,Rt=yt.dropdownMatchSelectWidth,Wt=Rt===void 0?!0:Rt,Bt=yt.filterOption,jt=yt.filterSort,Qt=yt.optionFilterProp,an=yt.optionLabelProp,on=yt.options,Rn=yt.optionRender,$n=yt.children,dr=yt.defaultActiveFirstOption,jn=yt.menuItemSelectedIcon,zn=yt.virtual,er=yt.direction,Xn=yt.listHeight,sr=Xn===void 0?200:Xn,Wn=yt.listItemHeight,Qn=Wn===void 0?20:Wn,or=yt.labelRender,cr=yt.value,rr=yt.defaultValue,nr=yt.labelInValue,ir=yt.onChange,Vn=yt.maxCount,$r=(0,g.Z)(yt,An),Kt=(0,Ue.ZP)(Be),ar=ft(lt),hr=!!(!on&&$n),Yr=C.useMemo(function(){return Bt===void 0&<==="combobox"?!1:Bt},[Bt,lt]),zr=C.useMemo(function(){return Ee(Jt,hr)},[JSON.stringify(Jt),hr]),li=(0,Q.Z)("",{value:_n!==void 0?_n:pn,postState:function(Ur){return Ur||""}}),Qr=(0,F.Z)(li,2),Zn=Qr[0],Pn=Qr[1],sn=cn(on,$n,zr,Qt,an),un=sn.valueOptions,Bn=sn.labelOptions,Yn=sn.options,lr=C.useCallback(function(xr){var Ur=ne(xr);return Ur.map(function(_r){var Or,ui,_i,as,ur;if(vn(_r))Or=_r;else{var Rr;_i=_r.key,ui=_r.label,Or=(Rr=_r.value)!==null&&Rr!==void 0?Rr:_i}var ei=un.get(Or);if(ei){var Kr;if(ui===void 0&&(ui=ei==null?void 0:ei[an||zr.label]),_i===void 0&&(_i=(Kr=ei==null?void 0:ei.key)!==null&&Kr!==void 0?Kr:Or),as=ei==null?void 0:ei.disabled,ur=ei==null?void 0:ei.title,0)var ti}return{label:ui,value:Or,key:_i,disabled:as,title:ur}})},[zr,an,un]),Ir=(0,Q.Z)(rr,{value:cr}),On=(0,F.Z)(Ir,2),mr=On[0],Dr=On[1],Jr=C.useMemo(function(){var xr,Ur=ar&&mr===null?[]:mr,_r=lr(Ur);return lt==="combobox"&&G((xr=_r[0])===null||xr===void 0?void 0:xr.value)?[]:_r},[mr,lr,lt,ar]),mi=he(Jr,un),Li=(0,F.Z)(mi,2),Gr=Li[0],Ri=Li[1],qr=C.useMemo(function(){if(!lt&&Gr.length===1){var xr=Gr[0];if(xr.value===null&&(xr.label===null||xr.label===void 0))return[]}return Gr.map(function(Ur){var _r;return(0,le.Z)((0,le.Z)({},Ur),{},{label:(_r=typeof or=="function"?or(Ur):Ur.label)!==null&&_r!==void 0?_r:Ur.value})})},[lt,Gr,or]),bi=C.useMemo(function(){return new Set(Gr.map(function(xr){return xr.value}))},[Gr]);C.useEffect(function(){if(lt==="combobox"){var xr,Ur=(xr=Gr[0])===null||xr===void 0?void 0:xr.value;Pn(T(Ur)?String(Ur):"")}},[Gr]);var ri=gn(function(xr,Ur){var _r=Ur!=null?Ur:xr;return(0,U.Z)((0,U.Z)({},zr.value,xr),zr.label,_r)}),di=C.useMemo(function(){if(lt!=="tags")return Yn;var xr=(0,ie.Z)(Yn),Ur=function(Or){return un.has(Or)};return(0,ie.Z)(Gr).sort(function(_r,Or){return _r.value<Or.value?-1:1}).forEach(function(_r){var Or=_r.value;Ur(Or)||xr.push(ri(Or,_r.label))}),xr},[ri,Yn,un,Gr,lt]),ii=je(di,zr,Zn,Yr,Qt),Oi=C.useMemo(function(){return lt!=="tags"||!Zn||ii.some(function(xr){return xr[Qt||"value"]===Zn})||ii.some(function(xr){return xr[zr.value]===Zn})?ii:[ri(Zn)].concat((0,ie.Z)(ii))},[ri,Qt,lt,ii,Zn,zr]),Lr=function xr(Ur){var _r=(0,ie.Z)(Ur).sort(function(Or,ui){return jt(Or,ui,{searchValue:Zn})});return _r.map(function(Or){return Array.isArray(Or.options)?(0,le.Z)((0,le.Z)({},Or),{},{options:Or.options.length>0?xr(Or.options):Or.options}):Or})},Pi=C.useMemo(function(){return jt?Lr(Oi):Oi},[Oi,jt,Zn]),Mi=C.useMemo(function(){return ge(Pi,{fieldNames:zr,childrenAsData:hr})},[Pi,zr,hr]),ki=function(Ur){var _r=lr(Ur);if(Dr(_r),ir&&(_r.length!==Gr.length||_r.some(function(_i,as){var ur;return((ur=Gr[as])===null||ur===void 0?void 0:ur.value)!==(_i==null?void 0:_i.value)}))){var Or=nr?_r:_r.map(function(_i){return _i.value}),ui=_r.map(function(_i){return we(Ri(_i.value))});ir(ar?Or:Or[0],ar?ui:ui[0])}},yr=C.useState(null),Gn=(0,F.Z)(yr,2),pi=Gn[0],Ln=Gn[1],Fi=C.useState(0),Os=(0,F.Z)(Fi,2),vs=Os[0],ss=Os[1],ls=dr!==void 0?dr:lt!=="combobox",Pr=C.useCallback(function(xr,Ur){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Or=_r.source,ui=Or===void 0?"keyboard":Or;ss(Ur),Dt&<==="combobox"&&xr!==null&&ui==="keyboard"&&Ln(String(xr))},[Dt,lt]),Gi=function(Ur,_r,Or){var ui=function(){var Es,ms=Ri(Ur);return[nr?{label:ms==null?void 0:ms[zr.label],value:Ur,key:(Es=ms==null?void 0:ms.key)!==null&&Es!==void 0?Es:Ur}:Ur,we(ms)]};if(_r&&Sn){var _i=ui(),as=(0,F.Z)(_i,2),ur=as[0],Rr=as[1];Sn(ur,Rr)}else if(!_r&&bt&&Or!=="clear"){var ei=ui(),Kr=(0,F.Z)(ei,2),ti=Kr[0],xs=Kr[1];bt(ti,xs)}},ds=gn(function(xr,Ur){var _r,Or=ar?Ur.selected:!0;Or?_r=ar?[].concat((0,ie.Z)(Gr),[xr]):[xr]:_r=Gr.filter(function(ui){return ui.value!==xr}),ki(_r),Gi(xr,Or),lt==="combobox"?Ln(""):(!ft||Nn)&&(Pn(""),Ln(""))}),_s=function(Ur,_r){ki(Ur);var Or=_r.type,ui=_r.values;(Or==="remove"||Or==="clear")&&ui.forEach(function(_i){Gi(_i.value,!1,Or)})},ci=function(Ur,_r){if(Pn(Ur),Ln(null),_r.source==="submit"){var Or=(Ur||"").trim();if(Or){var ui=Array.from(new Set([].concat((0,ie.Z)(bi),[Or])));ki(ui),Gi(Or,!0),Pn("")}return}_r.source!=="blur"&&(lt==="combobox"&&ki(Ur),Vt==null||Vt(Ur))},zi=function(Ur){var _r=Ur;lt!=="tags"&&(_r=Ur.map(function(ui){var _i=Bn.get(ui);return _i==null?void 0:_i.value}).filter(function(ui){return ui!==void 0}));var Or=Array.from(new Set([].concat((0,ie.Z)(bi),(0,ie.Z)(_r))));ki(Or),Or.forEach(function(ui){Gi(ui,!0)})},ns=C.useMemo(function(){var xr=zn!==!1&&Wt!==!1;return(0,le.Z)((0,le.Z)({},sn),{},{flattenOptions:Mi,onActiveValue:Pr,defaultActiveFirstOption:ls,onSelect:ds,menuItemSelectedIcon:jn,rawValues:bi,fieldNames:zr,virtual:xr,direction:er,listHeight:sr,listItemHeight:Qn,childrenAsData:hr,maxCount:Vn,optionRender:Rn})},[Vn,sn,Mi,Pr,ls,ds,jn,bi,zr,zn,Wt,er,sr,Qn,hr,Rn]);return C.createElement(oe.Provider,{value:ns},C.createElement(Ge,(0,l.Z)({},$r,{id:Kt,prefixCls:xt,ref:Et,omitDomProps:qn,mode:lt,displayValues:qr,onDisplayValuesChange:_s,direction:er,searchValue:Zn,onSearch:ci,autoClearSearchValue:Nn,onSearchSplit:zi,dropdownMatchSelectWidth:Wt,OptionList:ct,emptyOptions:!Mi.length,activeValue:pi,activeDescendantId:"".concat(Kt,"_list_").concat(vs)})))}),Xt=Gt;Xt.Option=Je,Xt.OptGroup=gt;var Dn=Xt,Cn=Dn},22711:function(ln,qe,d){"use strict";d.r(qe),d.d(qe,{ResizableTextArea:function(){return Pe},default:function(){return te}});var l=d(60499),ie=d(18642),U=d(85899),le=d(77654),F=d(72190),g=d(42244),q=d(92310),Q=d.n(q),o=d(36901),C=d(66003),P=d(30292),y=d(18929),S=d(59301),I=d(43749),N=d(29301),W=d(34280),H=d(16089),j=`
|
|
|
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;
|
|
|
`,A=["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"],V={},R;function L(ne){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=ne.getAttribute("id")||ne.getAttribute("data-reactid")||ne.getAttribute("name");if(z&&V[x])return V[x];var T=window.getComputedStyle(ne),G=T.getPropertyValue("box-sizing")||T.getPropertyValue("-moz-box-sizing")||T.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(T.getPropertyValue("padding-bottom"))+parseFloat(T.getPropertyValue("padding-top")),We=parseFloat(T.getPropertyValue("border-bottom-width"))+parseFloat(T.getPropertyValue("border-top-width")),st=A.map(function(Ke){return"".concat(Ke,":").concat(T.getPropertyValue(Ke))}).join(";"),_e={sizingStyle:st,paddingSize:ve,borderSize:We,boxSizing:G};return z&&x&&(V[x]=_e),_e}function ae(ne){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;R||(R=document.createElement("textarea"),R.setAttribute("tab-index","-1"),R.setAttribute("aria-hidden","true"),R.setAttribute("name","hiddenTextarea"),document.body.appendChild(R)),ne.getAttribute("wrap")?R.setAttribute("wrap",ne.getAttribute("wrap")):R.removeAttribute("wrap");var G=L(ne,z),ve=G.paddingSize,We=G.borderSize,st=G.boxSizing,_e=G.sizingStyle;R.setAttribute("style","".concat(_e,";").concat(j)),R.value=ne.value||ne.placeholder||"";var Ke=void 0,Ve=void 0,rt,Ae=R.scrollHeight;if(st==="border-box"?Ae+=We:st==="content-box"&&(Ae-=ve),x!==null||T!==null){R.value=" ";var Tt=R.scrollHeight-ve;x!==null&&(Ke=Tt*x,st==="border-box"&&(Ke=Ke+ve+We),Ae=Math.max(Ke,Ae)),T!==null&&(Ve=Tt*T,st==="border-box"&&(Ve=Ve+ve+We),rt=Ae>Ve?"":"hidden",Ae=Math.min(Ve,Ae))}var tt={height:Ae,overflowY:rt,resize:"none"};return Ke&&(tt.minHeight=Ke),Ve&&(tt.maxHeight=Ve),tt}var pe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ce=0,Le=1,$e=2,Te=S.forwardRef(function(ne,z){var x=ne,T=x.prefixCls,G=x.defaultValue,ve=x.value,We=x.autoSize,st=x.onResize,_e=x.className,Ke=x.style,Ve=x.disabled,rt=x.onChange,Ae=x.onInternalAutoSize,Tt=(0,g.Z)(x,pe),tt=(0,y.Z)(G,{value:ve,postState:function(Je){return Je!=null?Je:""}}),Pt=(0,F.Z)(tt,2),Xe=Pt[0],Qe=Pt[1],Ne=function(Je){Qe(Je.target.value),rt==null||rt(Je)},Oe=S.useRef();S.useImperativeHandle(z,function(){return{textArea:Oe.current}});var re=S.useMemo(function(){return We&&(0,I.Z)(We)==="object"?[We.minRows,We.maxRows]:[]},[We]),Fe=(0,F.Z)(re,2),Re=Fe[0],Z=Fe[1],O=!!We,me=function(){try{if(document.activeElement===Oe.current){var Je=Oe.current,_=Je.selectionStart,D=Je.selectionEnd,Ze=Je.scrollTop;Oe.current.setSelectionRange(_,D),Oe.current.scrollTop=Ze}}catch(ee){}},Ee=S.useState($e),ge=(0,F.Z)(Ee,2),we=ge[0],ke=ge[1],Ye=S.useState(),oe=(0,F.Z)(Ye,2),fe=oe[0],dt=oe[1],ot=function(){ke(ce)};(0,W.Z)(function(){O&&ot()},[ve,Re,Z,O]),(0,W.Z)(function(){if(we===ce)ke(Le);else if(we===Le){var Ce=ae(Oe.current,!1,Re,Z);ke($e),dt(Ce)}else me()},[we]);var ft=S.useRef(),ht=function(){H.Z.cancel(ft.current)},Ge=function(Je){we===$e&&(st==null||st(Je),We&&(ht(),ft.current=(0,H.Z)(function(){ot()})))};S.useEffect(function(){return ht},[]);var Ct=O?fe:null,gt=(0,U.Z)((0,U.Z)({},Ke),Ct);return(we===ce||we===Le)&&(gt.overflowY="hidden",gt.overflowX="hidden"),S.createElement(N.Z,{onResize:Ge,disabled:!(We||st)},S.createElement("textarea",(0,l.Z)({},Tt,{ref:Oe,style:gt,className:Q()(T,_e,(0,ie.Z)({},"".concat(T,"-disabled"),Ve)),disabled:Ve,value:Xe,onChange:Ne})))}),Pe=Te,se=["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"],K=S.forwardRef(function(ne,z){var x,T=ne.defaultValue,G=ne.value,ve=ne.onFocus,We=ne.onBlur,st=ne.onChange,_e=ne.allowClear,Ke=ne.maxLength,Ve=ne.onCompositionStart,rt=ne.onCompositionEnd,Ae=ne.suffix,Tt=ne.prefixCls,tt=Tt===void 0?"rc-textarea":Tt,Pt=ne.showCount,Xe=ne.count,Qe=ne.className,Ne=ne.style,Oe=ne.disabled,re=ne.hidden,Fe=ne.classNames,Re=ne.styles,Z=ne.onResize,O=ne.onClear,me=ne.onPressEnter,Ee=ne.readOnly,ge=ne.autoSize,we=ne.onKeyDown,ke=(0,g.Z)(ne,se),Ye=(0,y.Z)(T,{value:G,defaultValue:T}),oe=(0,F.Z)(Ye,2),fe=oe[0],dt=oe[1],ot=fe==null?"":String(fe),ft=S.useState(!1),ht=(0,F.Z)(ft,2),Ge=ht[0],Ct=ht[1],gt=S.useRef(!1),Ce=S.useState(null),Je=(0,F.Z)(Ce,2),_=Je[0],D=Je[1],Ze=(0,S.useRef)(null),ee=(0,S.useRef)(null),ye=function(){var Xt;return(Xt=ee.current)===null||Xt===void 0?void 0:Xt.textArea},Ot=function(){ye().focus()};(0,S.useImperativeHandle)(z,function(){var Gt;return{resizableTextArea:ee.current,focus:Ot,blur:function(){ye().blur()},nativeElement:((Gt=Ze.current)===null||Gt===void 0?void 0:Gt.nativeElement)||ye()}}),(0,S.useEffect)(function(){Ct(function(Gt){return!Oe&&Gt})},[Oe]);var He=S.useState(null),it=(0,F.Z)(He,2),ct=it[0],he=it[1];S.useEffect(function(){if(ct){var Gt;(Gt=ye()).setSelectionRange.apply(Gt,(0,le.Z)(ct))}},[ct]);var be=(0,C.Z)(Xe,Pt),je=(x=be.max)!==null&&x!==void 0?x:Ke,Ue=Number(je)>0,$=be.strategy(ot),ut=!!je&&$>je,xe=function(Xt,Dn){var Cn=Dn;!gt.current&&be.exceedFormatter&&be.max&&be.strategy(Dn)>be.max&&(Cn=be.exceedFormatter(Dn,{max:be.max}),Dn!==Cn&&he([ye().selectionStart||0,ye().selectionEnd||0])),dt(Cn),(0,P.rJ)(Xt.currentTarget,Xt,st,Cn)},At=function(Xt){gt.current=!0,Ve==null||Ve(Xt)},zt=function(Xt){gt.current=!1,xe(Xt,Xt.currentTarget.value),rt==null||rt(Xt)},qt=function(Xt){xe(Xt,Xt.target.value)},cn=function(Xt){Xt.key==="Enter"&&me&&me(Xt),we==null||we(Xt)},gn=function(Xt){Ct(!0),ve==null||ve(Xt)},En=function(Xt){Ct(!1),We==null||We(Xt)},Fn=function(Xt){dt(""),Ot(),(0,P.rJ)(ye(),Xt,st)},Hn=Ae,An;be.show&&(be.showFormatter?An=be.showFormatter({value:ot,count:$,maxLength:je}):An="".concat($).concat(Ue?" / ".concat(je):""),Hn=S.createElement(S.Fragment,null,Hn,S.createElement("span",{className:Q()("".concat(tt,"-data-count"),Fe==null?void 0:Fe.count),style:Re==null?void 0:Re.count},An)));var qn=function(Xt){var Dn;Z==null||Z(Xt),(Dn=ye())!==null&&Dn!==void 0&&Dn.style.height&&D(!0)},vn=!ge&&!Pt&&!_e;return S.createElement(o.BaseInput,{ref:Ze,value:ot,allowClear:_e,handleReset:Fn,suffix:Hn,prefixCls:tt,classNames:(0,U.Z)((0,U.Z)({},Fe),{},{affixWrapper:Q()(Fe==null?void 0:Fe.affixWrapper,(0,ie.Z)((0,ie.Z)({},"".concat(tt,"-show-count"),Pt),"".concat(tt,"-textarea-allow-clear"),_e))}),disabled:Oe,focused:Ge,className:Q()(Qe,ut&&"".concat(tt,"-out-of-range")),style:(0,U.Z)((0,U.Z)({},Ne),_&&!vn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof An=="string"?An:void 0}},hidden:re,readOnly:Ee,onClear:O},S.createElement(Pe,(0,l.Z)({},ke,{autoSize:ge,maxLength:Ke,onKeyDown:cn,onChange:qt,onFocus:gn,onBlur:En,onCompositionStart:At,onCompositionEnd:zt,className:Q()(Fe==null?void 0:Fe.textarea),style:(0,U.Z)((0,U.Z)({},Re==null?void 0:Re.textarea),{},{resize:Ne==null?void 0:Ne.resize}),disabled:Oe,prefixCls:tt,onResize:qn,ref:ee,readOnly:Ee})))}),w=K,te=w},29125:function(ln,qe,d){"use strict";d.d(qe,{G:function(){return le},Z:function(){return j}});var l=d(92310),ie=d.n(l),U=d(59301);function le(A){var V=A.children,R=A.prefixCls,L=A.id,ae=A.overlayInnerStyle,pe=A.bodyClassName,ce=A.className,Le=A.style;return U.createElement("div",{className:ie()("".concat(R,"-content"),ce),style:Le},U.createElement("div",{className:ie()("".concat(R,"-inner"),pe),id:L,role:"tooltip",style:ae},typeof V=="function"?V():V))}var F=d(60499),g=d(85899),q=d(42244),Q=d(68196),o={shiftX:64,adjustY:1},C={adjustX:1,shiftY:!0},P=[0,0],y={left:{points:["cr","cl"],overflow:C,offset:[-4,0],targetOffset:P},right:{points:["cl","cr"],overflow:C,offset:[4,0],targetOffset:P},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:P},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:P},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:P},leftTop:{points:["tr","tl"],overflow:C,offset:[-4,0],targetOffset:P},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:P},rightTop:{points:["tl","tr"],overflow:C,offset:[4,0],targetOffset:P},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:P},rightBottom:{points:["bl","br"],overflow:C,offset:[4,0],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:P},leftBottom:{points:["br","bl"],overflow:C,offset:[-4,0],targetOffset:P}},S=null,I=d(80402),N=["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(V,R){var L=V.overlayClassName,ae=V.trigger,pe=ae===void 0?["hover"]:ae,ce=V.mouseEnterDelay,Le=ce===void 0?0:ce,$e=V.mouseLeaveDelay,Te=$e===void 0?.1:$e,Pe=V.overlayStyle,se=V.prefixCls,K=se===void 0?"rc-tooltip":se,w=V.children,te=V.onVisibleChange,ne=V.afterVisibleChange,z=V.transitionName,x=V.animation,T=V.motion,G=V.placement,ve=G===void 0?"right":G,We=V.align,st=We===void 0?{}:We,_e=V.destroyTooltipOnHide,Ke=_e===void 0?!1:_e,Ve=V.defaultVisible,rt=V.getTooltipContainer,Ae=V.overlayInnerStyle,Tt=V.arrowContent,tt=V.overlay,Pt=V.id,Xe=V.showArrow,Qe=Xe===void 0?!0:Xe,Ne=V.classNames,Oe=V.styles,re=(0,q.Z)(V,N),Fe=(0,I.Z)(Pt),Re=(0,U.useRef)(null);(0,U.useImperativeHandle)(R,function(){return Re.current});var Z=(0,g.Z)({},re);"visible"in V&&(Z.popupVisible=V.visible);var O=function(){return U.createElement(le,{key:"content",prefixCls:K,id:Fe,bodyClassName:Ne==null?void 0:Ne.body,overlayInnerStyle:(0,g.Z)((0,g.Z)({},Ae),Oe==null?void 0:Oe.body)},tt)},me=function(){var ge=U.Children.only(w),we=(ge==null?void 0:ge.props)||{},ke=(0,g.Z)((0,g.Z)({},we),{},{"aria-describedby":tt?Fe:null});return U.cloneElement(w,ke)};return U.createElement(Q.Z,(0,F.Z)({popupClassName:ie()(L,Ne==null?void 0:Ne.root),prefixCls:K,popup:O,action:pe,builtinPlacements:y,popupPlacement:ve,ref:Re,popupAlign:st,getPopupContainer:rt,onPopupVisibleChange:te,afterPopupVisibleChange:ne,popupTransitionName:z,popupAnimation:x,popupMotion:T,defaultPopupVisible:Ve,autoDestroy:Ke,mouseLeaveDelay:Te,popupStyle:(0,g.Z)((0,g.Z)({},Pe),Oe==null?void 0:Oe.root),mouseEnterDelay:Le,arrow:Qe},Z),me())},H=(0,U.forwardRef)(W),j=H},639:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return V}});var l=d(60499),ie=d(18642),U=d(85899),le=d(72190),F=d(42244),g=d(59301),q=d(92310),Q=d.n(q),o=d(26112),C=d(30699),P=function(L){for(var ae=L.prefixCls,pe=L.level,ce=L.isStart,Le=L.isEnd,$e="".concat(ae,"-indent-unit"),Te=[],Pe=0;Pe<pe;Pe+=1)Te.push(g.createElement("span",{key:Pe,className:Q()($e,(0,ie.Z)((0,ie.Z)({},"".concat($e,"-start"),ce[Pe]),"".concat($e,"-end"),Le[Pe]))}));return g.createElement("span",{"aria-hidden":"true",className:"".concat(ae,"-indent")},Te)},y=g.memo(P),S=d(65065),I=d(34061),N=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",H="close",j="---",A=function(L){var ae,pe,ce,Le=L.eventKey,$e=L.className,Te=L.style,Pe=L.dragOver,se=L.dragOverGapTop,K=L.dragOverGapBottom,w=L.isLeaf,te=L.isStart,ne=L.isEnd,z=L.expanded,x=L.selected,T=L.checked,G=L.halfChecked,ve=L.loading,We=L.domRef,st=L.active,_e=L.data,Ke=L.onMouseMove,Ve=L.selectable,rt=(0,F.Z)(L,N),Ae=g.useContext(C.k),Tt=g.useContext(C.y),tt=g.useRef(null),Pt=g.useState(!1),Xe=(0,le.Z)(Pt,2),Qe=Xe[0],Ne=Xe[1],Oe=!!(Ae.disabled||L.disabled||(ae=Tt.nodeDisabled)!==null&&ae!==void 0&&ae.call(Tt,_e)),re=g.useMemo(function(){return!Ae.checkable||L.checkable===!1?!1:Ae.checkable},[Ae.checkable,L.checkable]),Fe=function($){Oe||Ae.onNodeSelect($,(0,I.F)(L))},Re=function($){Oe||!re||L.disableCheckbox||Ae.onNodeCheck($,(0,I.F)(L),!T)},Z=g.useMemo(function(){return typeof Ve=="boolean"?Ve:Ae.selectable},[Ve,Ae.selectable]),O=function($){Ae.onNodeClick($,(0,I.F)(L)),Z?Fe($):Re($)},me=function($){Ae.onNodeDoubleClick($,(0,I.F)(L))},Ee=function($){Ae.onNodeMouseEnter($,(0,I.F)(L))},ge=function($){Ae.onNodeMouseLeave($,(0,I.F)(L))},we=function($){Ae.onNodeContextMenu($,(0,I.F)(L))},ke=g.useMemo(function(){return!!(Ae.draggable&&(!Ae.draggable.nodeDraggable||Ae.draggable.nodeDraggable(_e)))},[Ae.draggable,_e]),Ye=function($){$.stopPropagation(),Ne(!0),Ae.onNodeDragStart($,L);try{$.dataTransfer.setData("text/plain","")}catch(ut){}},oe=function($){$.preventDefault(),$.stopPropagation(),Ae.onNodeDragEnter($,L)},fe=function($){$.preventDefault(),$.stopPropagation(),Ae.onNodeDragOver($,L)},dt=function($){$.stopPropagation(),Ae.onNodeDragLeave($,L)},ot=function($){$.stopPropagation(),Ne(!1),Ae.onNodeDragEnd($,L)},ft=function($){$.preventDefault(),$.stopPropagation(),Ne(!1),Ae.onNodeDrop($,L)},ht=function($){ve||Ae.onNodeExpand($,(0,I.F)(L))},Ge=g.useMemo(function(){var Ue=(0,S.Z)(Ae.keyEntities,Le)||{},$=Ue.children;return!!($||[]).length},[Ae.keyEntities,Le]),Ct=g.useMemo(function(){return w===!1?!1:w||!Ae.loadData&&!Ge||Ae.loadData&&L.loaded&&!Ge},[w,Ae.loadData,Ge,L.loaded]);g.useEffect(function(){ve||typeof Ae.loadData=="function"&&z&&!Ct&&!L.loaded&&Ae.onNodeLoad((0,I.F)(L))},[ve,Ae.loadData,Ae.onNodeLoad,z,Ct,L]);var gt=g.useMemo(function(){var Ue;return(Ue=Ae.draggable)!==null&&Ue!==void 0&&Ue.icon?g.createElement("span",{className:"".concat(Ae.prefixCls,"-draggable-icon")},Ae.draggable.icon):null},[Ae.draggable]),Ce=function($){var ut=L.switcherIcon||Ae.switcherIcon;return typeof ut=="function"?ut((0,U.Z)((0,U.Z)({},L),{},{isLeaf:$})):ut},Je=function(){if(Ct){var $=Ce(!0);return $!==!1?g.createElement("span",{className:Q()("".concat(Ae.prefixCls,"-switcher"),"".concat(Ae.prefixCls,"-switcher-noop"))},$):null}var ut=Ce(!1);return ut!==!1?g.createElement("span",{onClick:ht,className:Q()("".concat(Ae.prefixCls,"-switcher"),"".concat(Ae.prefixCls,"-switcher_").concat(z?W:H))},ut):null},_=g.useMemo(function(){if(!re)return null;var Ue=typeof re!="boolean"?re:null;return g.createElement("span",{className:Q()("".concat(Ae.prefixCls,"-checkbox"),(0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(Ae.prefixCls,"-checkbox-checked"),T),"".concat(Ae.prefixCls,"-checkbox-indeterminate"),!T&&G),"".concat(Ae.prefixCls,"-checkbox-disabled"),Oe||L.disableCheckbox)),onClick:Re,role:"checkbox","aria-checked":G?"mixed":T,"aria-disabled":Oe||L.disableCheckbox,"aria-label":"Select ".concat(typeof L.title=="string"?L.title:"tree node")},Ue)},[re,T,G,Oe,L.disableCheckbox,L.title]),D=g.useMemo(function(){return Ct?null:z?W:H},[Ct,z]),Ze=g.useMemo(function(){return g.createElement("span",{className:Q()("".concat(Ae.prefixCls,"-iconEle"),"".concat(Ae.prefixCls,"-icon__").concat(D||"docu"),(0,ie.Z)({},"".concat(Ae.prefixCls,"-icon_loading"),ve))})},[Ae.prefixCls,D,ve]),ee=g.useMemo(function(){var Ue=!!Ae.draggable,$=!L.disabled&&Ue&&Ae.dragOverNodeKey===Le;return $?Ae.dropIndicatorRender({dropPosition:Ae.dropPosition,dropLevelOffset:Ae.dropLevelOffset,indent:Ae.indent,prefixCls:Ae.prefixCls,direction:Ae.direction}):null},[Ae.dropPosition,Ae.dropLevelOffset,Ae.indent,Ae.prefixCls,Ae.direction,Ae.draggable,Ae.dragOverNodeKey,Ae.dropIndicatorRender]),ye=g.useMemo(function(){var Ue=L.title,$=Ue===void 0?j:Ue,ut="".concat(Ae.prefixCls,"-node-content-wrapper"),xe;if(Ae.showIcon){var At=L.icon||Ae.icon;xe=At?g.createElement("span",{className:Q()("".concat(Ae.prefixCls,"-iconEle"),"".concat(Ae.prefixCls,"-icon__customize"))},typeof At=="function"?At(L):At):Ze}else Ae.loadData&&ve&&(xe=Ze);var zt;return typeof $=="function"?zt=$(_e):Ae.titleRender?zt=Ae.titleRender(_e):zt=$,g.createElement("span",{ref:tt,title:typeof $=="string"?$:"",className:Q()(ut,"".concat(ut,"-").concat(D||"normal"),(0,ie.Z)({},"".concat(Ae.prefixCls,"-node-selected"),!Oe&&(x||Qe))),onMouseEnter:Ee,onMouseLeave:ge,onContextMenu:we,onClick:O,onDoubleClick:me},xe,g.createElement("span",{className:"".concat(Ae.prefixCls,"-title")},zt),ee)},[Ae.prefixCls,Ae.showIcon,L,Ae.icon,Ze,Ae.titleRender,_e,D,Ee,ge,we,O,me]),Ot=(0,o.Z)(rt,{aria:!0,data:!0}),He=(0,S.Z)(Ae.keyEntities,Le)||{},it=He.level,ct=ne[ne.length-1],he=!Oe&&ke,be=Ae.draggingNodeKey===Le,je=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return g.createElement("div",(0,l.Z)({ref:We,role:"treeitem","aria-expanded":w?void 0:z,className:Q()($e,"".concat(Ae.prefixCls,"-treenode"),(ce={},(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(ce,"".concat(Ae.prefixCls,"-treenode-disabled"),Oe),"".concat(Ae.prefixCls,"-treenode-switcher-").concat(z?"open":"close"),!w),"".concat(Ae.prefixCls,"-treenode-checkbox-checked"),T),"".concat(Ae.prefixCls,"-treenode-checkbox-indeterminate"),G),"".concat(Ae.prefixCls,"-treenode-selected"),x),"".concat(Ae.prefixCls,"-treenode-loading"),ve),"".concat(Ae.prefixCls,"-treenode-active"),st),"".concat(Ae.prefixCls,"-treenode-leaf-last"),ct),"".concat(Ae.prefixCls,"-treenode-draggable"),ke),"dragging",be),(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(ce,"drop-target",Ae.dropTargetKey===Le),"drop-container",Ae.dropContainerKey===Le),"drag-over",!Oe&&Pe),"drag-over-gap-top",!Oe&&se),"drag-over-gap-bottom",!Oe&&K),"filter-node",(pe=Ae.filterTreeNode)===null||pe===void 0?void 0:pe.call(Ae,(0,I.F)(L))),"".concat(Ae.prefixCls,"-treenode-leaf"),Ct))),style:Te,draggable:he,onDragStart:he?Ye:void 0,onDragEnter:ke?oe:void 0,onDragOver:ke?fe:void 0,onDragLeave:ke?dt:void 0,onDrop:ke?ft:void 0,onDragEnd:ke?ot:void 0,onMouseMove:Ke},je,Ot),g.createElement(y,{prefixCls:Ae.prefixCls,level:it,isStart:te,isEnd:ne}),gt,Je(),_,ye)};A.isTreeNode=1;var V=A},30699:function(ln,qe,d){"use strict";d.d(qe,{k:function(){return ie},y:function(){return U}});var l=d(59301),ie=l.createContext(null),U=l.createContext({})},87632:function(ln,qe,d){"use strict";d.d(qe,{OF:function(){return Le.Z},y6:function(){return H.y},ZP:function(){return Oe}});var l=d(60499),ie=d(43749),U=d(85899),le=d(77654),F=d(38705),g=d(17212),q=d(15793),Q=d(39153),o=d(55401),C=d(18642),P=d(92310),y=d.n(P),S=d(10228),I=d(26112),N=d(48736),W=d(59301),H=d(30699),j=function(Fe){var Re=Fe.dropPosition,Z=Fe.dropLevelOffset,O=Fe.indent,me={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Re){case-1:me.top=0,me.left=-Z*O;break;case 1:me.bottom=0,me.left=-Z*O;break;case 0:me.bottom=0,me.left=O;break}return W.createElement("div",{style:me})},A=j;function V(re){if(re==null)throw new TypeError("Cannot destructure "+re)}var R=d(72190),L=d(42244),ae=d(34280),pe=d(48911),ce=d(77900),Le=d(639);function $e(re,Fe){var Re=W.useState(!1),Z=(0,R.Z)(Re,2),O=Z[0],me=Z[1];(0,ae.Z)(function(){if(O)return re(),function(){Fe()}},[O]),(0,ae.Z)(function(){return me(!0),function(){me(!1)}},[])}var Te=$e,Pe=d(34061),se=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],K=W.forwardRef(function(re,Fe){var Re=re.className,Z=re.style,O=re.motion,me=re.motionNodes,Ee=re.motionType,ge=re.onMotionStart,we=re.onMotionEnd,ke=re.active,Ye=re.treeNodeRequiredProps,oe=(0,L.Z)(re,se),fe=W.useState(!0),dt=(0,R.Z)(fe,2),ot=dt[0],ft=dt[1],ht=W.useContext(H.k),Ge=ht.prefixCls,Ct=me&&Ee!=="hide";(0,ae.Z)(function(){me&&Ct!==ot&&ft(Ct)},[me]);var gt=function(){me&&ge()},Ce=W.useRef(!1),Je=function(){me&&!Ce.current&&(Ce.current=!0,we())};Te(gt,Je);var _=function(Ze){Ct===Ze&&Je()};return me?W.createElement(ce.default,(0,l.Z)({ref:Fe,visible:ot},O,{motionAppear:Ee==="show",onVisibleChanged:_}),function(D,Ze){var ee=D.className,ye=D.style;return W.createElement("div",{ref:Ze,className:y()("".concat(Ge,"-treenode-motion"),ee),style:ye},me.map(function(Ot){var He=Object.assign({},(V(Ot.data),Ot.data)),it=Ot.title,ct=Ot.key,he=Ot.isStart,be=Ot.isEnd;delete He.children;var je=(0,Pe.H8)(ct,Ye);return W.createElement(Le.Z,(0,l.Z)({},He,je,{title:it,active:ke,data:Ot.data,key:ct,isStart:he,isEnd:be}))}))}):W.createElement(Le.Z,(0,l.Z)({domRef:Fe,className:Re,style:Z},oe,{active:ke}))}),w=K;function te(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Re=re.length,Z=Fe.length;if(Math.abs(Re-Z)!==1)return{add:!1,key:null};function O(me,Ee){var ge=new Map;me.forEach(function(ke){ge.set(ke,!0)});var we=Ee.filter(function(ke){return!ge.has(ke)});return we.length===1?we[0]:null}return Re<Z?{add:!0,key:O(re,Fe)}:{add:!1,key:O(Fe,re)}}function ne(re,Fe,Re){var Z=re.findIndex(function(ge){return ge.key===Re}),O=re[Z+1],me=Fe.findIndex(function(ge){return ge.key===Re});if(O){var Ee=Fe.findIndex(function(ge){return ge.key===O.key});return Fe.slice(me+1,Ee)}return Fe.slice(me+1)}var z=["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"],x={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},T=function(){},G="RC_TREE_MOTION_".concat(Math.random()),ve={key:G},We={key:G,level:0,index:0,pos:"0",node:ve,nodes:[ve]},st={parent:null,children:[],pos:We.pos,data:ve,title:null,key:G,isStart:[],isEnd:[]};function _e(re,Fe,Re,Z){return Fe===!1||!Re?re:re.slice(0,Math.ceil(Re/Z)+1)}function Ke(re){var Fe=re.key,Re=re.pos;return(0,Pe.km)(Fe,Re)}function Ve(re){for(var Fe=String(re.data.key),Re=re;Re.parent;)Re=Re.parent,Fe="".concat(Re.data.key," > ").concat(Fe);return Fe}var rt=W.forwardRef(function(re,Fe){var Re=re.prefixCls,Z=re.data,O=re.selectable,me=re.checkable,Ee=re.expandedKeys,ge=re.selectedKeys,we=re.checkedKeys,ke=re.loadedKeys,Ye=re.loadingKeys,oe=re.halfCheckedKeys,fe=re.keyEntities,dt=re.disabled,ot=re.dragging,ft=re.dragOverNodeKey,ht=re.dropPosition,Ge=re.motion,Ct=re.height,gt=re.itemHeight,Ce=re.virtual,Je=re.scrollWidth,_=re.focusable,D=re.activeItem,Ze=re.focused,ee=re.tabIndex,ye=re.onKeyDown,Ot=re.onFocus,He=re.onBlur,it=re.onActiveChange,ct=re.onListChangeStart,he=re.onListChangeEnd,be=(0,L.Z)(re,z),je=W.useRef(null),Ue=W.useRef(null);W.useImperativeHandle(Fe,function(){return{scrollTo:function(Jt){je.current.scrollTo(Jt)},getIndentWidth:function(){return Ue.current.offsetWidth}}});var $=W.useState(Ee),ut=(0,R.Z)($,2),xe=ut[0],At=ut[1],zt=W.useState(Z),qt=(0,R.Z)(zt,2),cn=qt[0],gn=qt[1],En=W.useState(Z),Fn=(0,R.Z)(En,2),Hn=Fn[0],An=Fn[1],qn=W.useState([]),vn=(0,R.Z)(qn,2),Gt=vn[0],Xt=vn[1],Dn=W.useState(null),Cn=(0,R.Z)(Dn,2),yt=Cn[0],Et=Cn[1],Be=W.useRef(Z);Be.current=Z;function lt(){var Dt=Be.current;gn(Dt),An(Dt),Xt([]),Et(null),he()}(0,ae.Z)(function(){At(Ee);var Dt=te(xe,Ee);if(Dt.key!==null)if(Dt.add){var Jt=cn.findIndex(function(Sn){var bt=Sn.key;return bt===Dt.key}),pn=_e(ne(cn,Z,Dt.key),Ce,Ct,gt),_n=cn.slice();_n.splice(Jt+1,0,st),An(_n),Xt(pn),Et("show")}else{var Vt=Z.findIndex(function(Sn){var bt=Sn.key;return bt===Dt.key}),yn=_e(ne(Z,cn,Dt.key),Ce,Ct,gt),Nn=Z.slice();Nn.splice(Vt+1,0,st),An(Nn),Xt(yn),Et("hide")}else cn!==Z&&(gn(Z),An(Z))},[Ee,Z]),W.useEffect(function(){ot||lt()},[ot]);var vt=Ge?Hn:Z,xt={expandedKeys:Ee,selectedKeys:ge,loadedKeys:ke,loadingKeys:Ye,checkedKeys:we,halfCheckedKeys:oe,dragOverNodeKey:ft,dropPosition:ht,keyEntities:fe};return W.createElement(W.Fragment,null,Ze&&D&&W.createElement("span",{style:x,"aria-live":"assertive"},Ve(D)),W.createElement("div",null,W.createElement("input",{style:x,disabled:_===!1||dt,tabIndex:_!==!1?ee:null,onKeyDown:ye,onFocus:Ot,onBlur:He,value:"",onChange:T,"aria-label":"for screen reader"})),W.createElement("div",{className:"".concat(Re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},W.createElement("div",{className:"".concat(Re,"-indent")},W.createElement("div",{ref:Ue,className:"".concat(Re,"-indent-unit")}))),W.createElement(pe.Z,(0,l.Z)({},be,{data:vt,itemKey:Ke,height:Ct,fullHeight:!1,virtual:Ce,itemHeight:gt,scrollWidth:Je,prefixCls:"".concat(Re,"-list"),ref:je,role:"tree",onVisibleChange:function(Jt){Jt.every(function(pn){return Ke(pn)!==G})&<()}}),function(Dt){var Jt=Dt.pos,pn=Object.assign({},(V(Dt.data),Dt.data)),_n=Dt.title,Vt=Dt.key,yn=Dt.isStart,Nn=Dt.isEnd,Sn=(0,Pe.km)(Vt,Jt);delete pn.key,delete pn.children;var bt=(0,Pe.H8)(Sn,xt);return W.createElement(w,(0,l.Z)({},pn,bt,{title:_n,active:!!D&&Vt===D.key,pos:Jt,data:Dt.data,isStart:yn,isEnd:Nn,motion:Ge,motionNodes:Vt===G?Gt:null,motionType:yt,onMotionStart:ct,onMotionEnd:lt,treeNodeRequiredProps:xt,onMouseMove:function(){it(null)}}))}))}),Ae=rt,Tt=d(82661),tt=d(34643),Pt=d(65065),Xe=10,Qe=function(re){(0,Q.Z)(Re,re);var Fe=(0,o.Z)(Re);function Re(){var Z;(0,F.Z)(this,Re);for(var O=arguments.length,me=new Array(O),Ee=0;Ee<O;Ee++)me[Ee]=arguments[Ee];return Z=Fe.call.apply(Fe,[this].concat(me)),(0,C.Z)((0,q.Z)(Z),"destroyed",!1),(0,C.Z)((0,q.Z)(Z),"delayedDragEnterLogic",void 0),(0,C.Z)((0,q.Z)(Z),"loadingRetryTimes",{}),(0,C.Z)((0,q.Z)(Z),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Pe.w$)()}),(0,C.Z)((0,q.Z)(Z),"dragStartMousePosition",null),(0,C.Z)((0,q.Z)(Z),"dragNodeProps",null),(0,C.Z)((0,q.Z)(Z),"currentMouseOverDroppableNodeKey",null),(0,C.Z)((0,q.Z)(Z),"listRef",W.createRef()),(0,C.Z)((0,q.Z)(Z),"onNodeDragStart",function(ge,we){var ke=Z.state,Ye=ke.expandedKeys,oe=ke.keyEntities,fe=Z.props.onDragStart,dt=we.eventKey;Z.dragNodeProps=we,Z.dragStartMousePosition={x:ge.clientX,y:ge.clientY};var ot=(0,Tt._5)(Ye,dt);Z.setState({draggingNodeKey:dt,dragChildrenKeys:(0,Tt.wA)(dt,oe),indent:Z.listRef.current.getIndentWidth()}),Z.setExpandedKeys(ot),window.addEventListener("dragend",Z.onWindowDragEnd),fe==null||fe({event:ge,node:(0,Pe.F)(we)})}),(0,C.Z)((0,q.Z)(Z),"onNodeDragEnter",function(ge,we){var ke=Z.state,Ye=ke.expandedKeys,oe=ke.keyEntities,fe=ke.dragChildrenKeys,dt=ke.flattenNodes,ot=ke.indent,ft=Z.props,ht=ft.onDragEnter,Ge=ft.onExpand,Ct=ft.allowDrop,gt=ft.direction,Ce=we.pos,Je=we.eventKey;if(Z.currentMouseOverDroppableNodeKey!==Je&&(Z.currentMouseOverDroppableNodeKey=Je),!Z.dragNodeProps){Z.resetDragState();return}var _=(0,Tt.OM)(ge,Z.dragNodeProps,we,ot,Z.dragStartMousePosition,Ct,dt,oe,Ye,gt),D=_.dropPosition,Ze=_.dropLevelOffset,ee=_.dropTargetKey,ye=_.dropContainerKey,Ot=_.dropTargetPos,He=_.dropAllowed,it=_.dragOverNodeKey;if(fe.includes(ee)||!He){Z.resetDragState();return}if(Z.delayedDragEnterLogic||(Z.delayedDragEnterLogic={}),Object.keys(Z.delayedDragEnterLogic).forEach(function(ct){clearTimeout(Z.delayedDragEnterLogic[ct])}),Z.dragNodeProps.eventKey!==we.eventKey&&(ge.persist(),Z.delayedDragEnterLogic[Ce]=window.setTimeout(function(){if(Z.state.draggingNodeKey!==null){var ct=(0,le.Z)(Ye),he=(0,Pt.Z)(oe,we.eventKey);he&&(he.children||[]).length&&(ct=(0,Tt.L0)(Ye,we.eventKey)),Z.props.hasOwnProperty("expandedKeys")||Z.setExpandedKeys(ct),Ge==null||Ge(ct,{node:(0,Pe.F)(we),expanded:!0,nativeEvent:ge.nativeEvent})}},800)),Z.dragNodeProps.eventKey===ee&&Ze===0){Z.resetDragState();return}Z.setState({dragOverNodeKey:it,dropPosition:D,dropLevelOffset:Ze,dropTargetKey:ee,dropContainerKey:ye,dropTargetPos:Ot,dropAllowed:He}),ht==null||ht({event:ge,node:(0,Pe.F)(we),expandedKeys:Ye})}),(0,C.Z)((0,q.Z)(Z),"onNodeDragOver",function(ge,we){var ke=Z.state,Ye=ke.dragChildrenKeys,oe=ke.flattenNodes,fe=ke.keyEntities,dt=ke.expandedKeys,ot=ke.indent,ft=Z.props,ht=ft.onDragOver,Ge=ft.allowDrop,Ct=ft.direction;if(Z.dragNodeProps){var gt=(0,Tt.OM)(ge,Z.dragNodeProps,we,ot,Z.dragStartMousePosition,Ge,oe,fe,dt,Ct),Ce=gt.dropPosition,Je=gt.dropLevelOffset,_=gt.dropTargetKey,D=gt.dropContainerKey,Ze=gt.dropTargetPos,ee=gt.dropAllowed,ye=gt.dragOverNodeKey;Ye.includes(_)||!ee||(Z.dragNodeProps.eventKey===_&&Je===0?Z.state.dropPosition===null&&Z.state.dropLevelOffset===null&&Z.state.dropTargetKey===null&&Z.state.dropContainerKey===null&&Z.state.dropTargetPos===null&&Z.state.dropAllowed===!1&&Z.state.dragOverNodeKey===null||Z.resetDragState():Ce===Z.state.dropPosition&&Je===Z.state.dropLevelOffset&&_===Z.state.dropTargetKey&&D===Z.state.dropContainerKey&&Ze===Z.state.dropTargetPos&&ee===Z.state.dropAllowed&&ye===Z.state.dragOverNodeKey||Z.setState({dropPosition:Ce,dropLevelOffset:Je,dropTargetKey:_,dropContainerKey:D,dropTargetPos:Ze,dropAllowed:ee,dragOverNodeKey:ye}),ht==null||ht({event:ge,node:(0,Pe.F)(we)}))}}),(0,C.Z)((0,q.Z)(Z),"onNodeDragLeave",function(ge,we){Z.currentMouseOverDroppableNodeKey===we.eventKey&&!ge.currentTarget.contains(ge.relatedTarget)&&(Z.resetDragState(),Z.currentMouseOverDroppableNodeKey=null);var ke=Z.props.onDragLeave;ke==null||ke({event:ge,node:(0,Pe.F)(we)})}),(0,C.Z)((0,q.Z)(Z),"onWindowDragEnd",function(ge){Z.onNodeDragEnd(ge,null,!0),window.removeEventListener("dragend",Z.onWindowDragEnd)}),(0,C.Z)((0,q.Z)(Z),"onNodeDragEnd",function(ge,we){var ke=Z.props.onDragEnd;Z.setState({dragOverNodeKey:null}),Z.cleanDragState(),ke==null||ke({event:ge,node:(0,Pe.F)(we)}),Z.dragNodeProps=null,window.removeEventListener("dragend",Z.onWindowDragEnd)}),(0,C.Z)((0,q.Z)(Z),"onNodeDrop",function(ge,we){var ke,Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=Z.state,fe=oe.dragChildrenKeys,dt=oe.dropPosition,ot=oe.dropTargetKey,ft=oe.dropTargetPos,ht=oe.dropAllowed;if(ht){var Ge=Z.props.onDrop;if(Z.setState({dragOverNodeKey:null}),Z.cleanDragState(),ot!==null){var Ct=(0,U.Z)((0,U.Z)({},(0,Pe.H8)(ot,Z.getTreeNodeRequiredProps())),{},{active:((ke=Z.getActiveItem())===null||ke===void 0?void 0:ke.key)===ot,data:(0,Pt.Z)(Z.state.keyEntities,ot).node}),gt=fe.includes(ot);(0,N.ZP)(!gt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ce=(0,Tt.yx)(ft),Je={event:ge,node:(0,Pe.F)(Ct),dragNode:Z.dragNodeProps?(0,Pe.F)(Z.dragNodeProps):null,dragNodesKeys:[Z.dragNodeProps.eventKey].concat(fe),dropToGap:dt!==0,dropPosition:dt+Number(Ce[Ce.length-1])};Ye||Ge==null||Ge(Je),Z.dragNodeProps=null}}}),(0,C.Z)((0,q.Z)(Z),"cleanDragState",function(){var ge=Z.state.draggingNodeKey;ge!==null&&Z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Z.dragStartMousePosition=null,Z.currentMouseOverDroppableNodeKey=null}),(0,C.Z)((0,q.Z)(Z),"triggerExpandActionExpand",function(ge,we){var ke=Z.state,Ye=ke.expandedKeys,oe=ke.flattenNodes,fe=we.expanded,dt=we.key,ot=we.isLeaf;if(!(ot||ge.shiftKey||ge.metaKey||ge.ctrlKey)){var ft=oe.filter(function(Ge){return Ge.key===dt})[0],ht=(0,Pe.F)((0,U.Z)((0,U.Z)({},(0,Pe.H8)(dt,Z.getTreeNodeRequiredProps())),{},{data:ft.data}));Z.setExpandedKeys(fe?(0,Tt._5)(Ye,dt):(0,Tt.L0)(Ye,dt)),Z.onNodeExpand(ge,ht)}}),(0,C.Z)((0,q.Z)(Z),"onNodeClick",function(ge,we){var ke=Z.props,Ye=ke.onClick,oe=ke.expandAction;oe==="click"&&Z.triggerExpandActionExpand(ge,we),Ye==null||Ye(ge,we)}),(0,C.Z)((0,q.Z)(Z),"onNodeDoubleClick",function(ge,we){var ke=Z.props,Ye=ke.onDoubleClick,oe=ke.expandAction;oe==="doubleClick"&&Z.triggerExpandActionExpand(ge,we),Ye==null||Ye(ge,we)}),(0,C.Z)((0,q.Z)(Z),"onNodeSelect",function(ge,we){var ke=Z.state.selectedKeys,Ye=Z.state,oe=Ye.keyEntities,fe=Ye.fieldNames,dt=Z.props,ot=dt.onSelect,ft=dt.multiple,ht=we.selected,Ge=we[fe.key],Ct=!ht;Ct?ft?ke=(0,Tt.L0)(ke,Ge):ke=[Ge]:ke=(0,Tt._5)(ke,Ge);var gt=ke.map(function(Ce){var Je=(0,Pt.Z)(oe,Ce);return Je?Je.node:null}).filter(Boolean);Z.setUncontrolledState({selectedKeys:ke}),ot==null||ot(ke,{event:"select",selected:Ct,node:we,selectedNodes:gt,nativeEvent:ge.nativeEvent})}),(0,C.Z)((0,q.Z)(Z),"onNodeCheck",function(ge,we,ke){var Ye=Z.state,oe=Ye.keyEntities,fe=Ye.checkedKeys,dt=Ye.halfCheckedKeys,ot=Z.props,ft=ot.checkStrictly,ht=ot.onCheck,Ge=we.key,Ct,gt={event:"check",node:we,checked:ke,nativeEvent:ge.nativeEvent};if(ft){var Ce=ke?(0,Tt.L0)(fe,Ge):(0,Tt._5)(fe,Ge),Je=(0,Tt._5)(dt,Ge);Ct={checked:Ce,halfChecked:Je},gt.checkedNodes=Ce.map(function(Ot){return(0,Pt.Z)(oe,Ot)}).filter(Boolean).map(function(Ot){return Ot.node}),Z.setUncontrolledState({checkedKeys:Ce})}else{var _=(0,tt.S)([].concat((0,le.Z)(fe),[Ge]),!0,oe),D=_.checkedKeys,Ze=_.halfCheckedKeys;if(!ke){var ee=new Set(D);ee.delete(Ge);var ye=(0,tt.S)(Array.from(ee),{checked:!1,halfCheckedKeys:Ze},oe);D=ye.checkedKeys,Ze=ye.halfCheckedKeys}Ct=D,gt.checkedNodes=[],gt.checkedNodesPositions=[],gt.halfCheckedKeys=Ze,D.forEach(function(Ot){var He=(0,Pt.Z)(oe,Ot);if(He){var it=He.node,ct=He.pos;gt.checkedNodes.push(it),gt.checkedNodesPositions.push({node:it,pos:ct})}}),Z.setUncontrolledState({checkedKeys:D},!1,{halfCheckedKeys:Ze})}ht==null||ht(Ct,gt)}),(0,C.Z)((0,q.Z)(Z),"onNodeLoad",function(ge){var we,ke=ge.key,Ye=Z.state.keyEntities,oe=(0,Pt.Z)(Ye,ke);if(!(oe!=null&&(we=oe.children)!==null&&we!==void 0&&we.length)){var fe=new Promise(function(dt,ot){Z.setState(function(ft){var ht=ft.loadedKeys,Ge=ht===void 0?[]:ht,Ct=ft.loadingKeys,gt=Ct===void 0?[]:Ct,Ce=Z.props,Je=Ce.loadData,_=Ce.onLoad;if(!Je||Ge.includes(ke)||gt.includes(ke))return null;var D=Je(ge);return D.then(function(){var Ze=Z.state.loadedKeys,ee=(0,Tt.L0)(Ze,ke);_==null||_(ee,{event:"load",node:ge}),Z.setUncontrolledState({loadedKeys:ee}),Z.setState(function(ye){return{loadingKeys:(0,Tt._5)(ye.loadingKeys,ke)}}),dt()}).catch(function(Ze){if(Z.setState(function(ye){return{loadingKeys:(0,Tt._5)(ye.loadingKeys,ke)}}),Z.loadingRetryTimes[ke]=(Z.loadingRetryTimes[ke]||0)+1,Z.loadingRetryTimes[ke]>=Xe){var ee=Z.state.loadedKeys;(0,N.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Z.setUncontrolledState({loadedKeys:(0,Tt.L0)(ee,ke)}),dt()}ot(Ze)}),{loadingKeys:(0,Tt.L0)(gt,ke)}})});return fe.catch(function(){}),fe}}),(0,C.Z)((0,q.Z)(Z),"onNodeMouseEnter",function(ge,we){var ke=Z.props.onMouseEnter;ke==null||ke({event:ge,node:we})}),(0,C.Z)((0,q.Z)(Z),"onNodeMouseLeave",function(ge,we){var ke=Z.props.onMouseLeave;ke==null||ke({event:ge,node:we})}),(0,C.Z)((0,q.Z)(Z),"onNodeContextMenu",function(ge,we){var ke=Z.props.onRightClick;ke&&(ge.preventDefault(),ke({event:ge,node:we}))}),(0,C.Z)((0,q.Z)(Z),"onFocus",function(){var ge=Z.props.onFocus;Z.setState({focused:!0});for(var we=arguments.length,ke=new Array(we),Ye=0;Ye<we;Ye++)ke[Ye]=arguments[Ye];ge==null||ge.apply(void 0,ke)}),(0,C.Z)((0,q.Z)(Z),"onBlur",function(){var ge=Z.props.onBlur;Z.setState({focused:!1}),Z.onActiveChange(null);for(var we=arguments.length,ke=new Array(we),Ye=0;Ye<we;Ye++)ke[Ye]=arguments[Ye];ge==null||ge.apply(void 0,ke)}),(0,C.Z)((0,q.Z)(Z),"getTreeNodeRequiredProps",function(){var ge=Z.state,we=ge.expandedKeys,ke=ge.selectedKeys,Ye=ge.loadedKeys,oe=ge.loadingKeys,fe=ge.checkedKeys,dt=ge.halfCheckedKeys,ot=ge.dragOverNodeKey,ft=ge.dropPosition,ht=ge.keyEntities;return{expandedKeys:we||[],selectedKeys:ke||[],loadedKeys:Ye||[],loadingKeys:oe||[],checkedKeys:fe||[],halfCheckedKeys:dt||[],dragOverNodeKey:ot,dropPosition:ft,keyEntities:ht}}),(0,C.Z)((0,q.Z)(Z),"setExpandedKeys",function(ge){var we=Z.state,ke=we.treeData,Ye=we.fieldNames,oe=(0,Pe.oH)(ke,ge,Ye);Z.setUncontrolledState({expandedKeys:ge,flattenNodes:oe},!0)}),(0,C.Z)((0,q.Z)(Z),"onNodeExpand",function(ge,we){var ke=Z.state.expandedKeys,Ye=Z.state,oe=Ye.listChanging,fe=Ye.fieldNames,dt=Z.props,ot=dt.onExpand,ft=dt.loadData,ht=we.expanded,Ge=we[fe.key];if(!oe){var Ct=ke.includes(Ge),gt=!ht;if((0,N.ZP)(ht&&Ct||!ht&&!Ct,"Expand state not sync with index check"),ke=gt?(0,Tt.L0)(ke,Ge):(0,Tt._5)(ke,Ge),Z.setExpandedKeys(ke),ot==null||ot(ke,{node:we,expanded:gt,nativeEvent:ge.nativeEvent}),gt&&ft){var Ce=Z.onNodeLoad(we);Ce&&Ce.then(function(){var Je=(0,Pe.oH)(Z.state.treeData,ke,fe);Z.setUncontrolledState({flattenNodes:Je})}).catch(function(){var Je=Z.state.expandedKeys,_=(0,Tt._5)(Je,Ge);Z.setExpandedKeys(_)})}}}),(0,C.Z)((0,q.Z)(Z),"onListChangeStart",function(){Z.setUncontrolledState({listChanging:!0})}),(0,C.Z)((0,q.Z)(Z),"onListChangeEnd",function(){setTimeout(function(){Z.setUncontrolledState({listChanging:!1})})}),(0,C.Z)((0,q.Z)(Z),"onActiveChange",function(ge){var we=Z.state.activeKey,ke=Z.props,Ye=ke.onActiveChange,oe=ke.itemScrollOffset,fe=oe===void 0?0:oe;we!==ge&&(Z.setState({activeKey:ge}),ge!==null&&Z.scrollTo({key:ge,offset:fe}),Ye==null||Ye(ge))}),(0,C.Z)((0,q.Z)(Z),"getActiveItem",function(){var ge=Z.state,we=ge.activeKey,ke=ge.flattenNodes;return we===null?null:ke.find(function(Ye){var oe=Ye.key;return oe===we})||null}),(0,C.Z)((0,q.Z)(Z),"offsetActiveKey",function(ge){var we=Z.state,ke=we.flattenNodes,Ye=we.activeKey,oe=ke.findIndex(function(ot){var ft=ot.key;return ft===Ye});oe===-1&&ge<0&&(oe=ke.length),oe=(oe+ge+ke.length)%ke.length;var fe=ke[oe];if(fe){var dt=fe.key;Z.onActiveChange(dt)}else Z.onActiveChange(null)}),(0,C.Z)((0,q.Z)(Z),"onKeyDown",function(ge){var we=Z.state,ke=we.activeKey,Ye=we.expandedKeys,oe=we.checkedKeys,fe=we.fieldNames,dt=Z.props,ot=dt.onKeyDown,ft=dt.checkable,ht=dt.selectable;switch(ge.which){case S.Z.UP:{Z.offsetActiveKey(-1),ge.preventDefault();break}case S.Z.DOWN:{Z.offsetActiveKey(1),ge.preventDefault();break}}var Ge=Z.getActiveItem();if(Ge&&Ge.data){var Ct=Z.getTreeNodeRequiredProps(),gt=Ge.data.isLeaf===!1||!!(Ge.data[fe.children]||[]).length,Ce=(0,Pe.F)((0,U.Z)((0,U.Z)({},(0,Pe.H8)(ke,Ct)),{},{data:Ge.data,active:!0}));switch(ge.which){case S.Z.LEFT:{gt&&Ye.includes(ke)?Z.onNodeExpand({},Ce):Ge.parent&&Z.onActiveChange(Ge.parent.key),ge.preventDefault();break}case S.Z.RIGHT:{gt&&!Ye.includes(ke)?Z.onNodeExpand({},Ce):Ge.children&&Ge.children.length&&Z.onActiveChange(Ge.children[0].key),ge.preventDefault();break}case S.Z.ENTER:case S.Z.SPACE:{ft&&!Ce.disabled&&Ce.checkable!==!1&&!Ce.disableCheckbox?Z.onNodeCheck({},Ce,!oe.includes(ke)):!ft&&ht&&!Ce.disabled&&Ce.selectable!==!1&&Z.onNodeSelect({},Ce);break}}}ot==null||ot(ge)}),(0,C.Z)((0,q.Z)(Z),"setUncontrolledState",function(ge){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Z.destroyed){var Ye=!1,oe=!0,fe={};Object.keys(ge).forEach(function(dt){if(Z.props.hasOwnProperty(dt)){oe=!1;return}Ye=!0,fe[dt]=ge[dt]}),Ye&&(!we||oe)&&Z.setState((0,U.Z)((0,U.Z)({},fe),ke))}}),(0,C.Z)((0,q.Z)(Z),"scrollTo",function(ge){Z.listRef.current.scrollTo(ge)}),Z}return(0,g.Z)(Re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var O=this.props,me=O.activeKey,Ee=O.itemScrollOffset,ge=Ee===void 0?0:Ee;me!==void 0&&me!==this.state.activeKey&&(this.setState({activeKey:me}),me!==null&&this.scrollTo({key:me,offset:ge}))}},{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 O=this.state,me=O.focused,Ee=O.flattenNodes,ge=O.keyEntities,we=O.draggingNodeKey,ke=O.activeKey,Ye=O.dropLevelOffset,oe=O.dropContainerKey,fe=O.dropTargetKey,dt=O.dropPosition,ot=O.dragOverNodeKey,ft=O.indent,ht=this.props,Ge=ht.prefixCls,Ct=ht.className,gt=ht.style,Ce=ht.showLine,Je=ht.focusable,_=ht.tabIndex,D=_===void 0?0:_,Ze=ht.selectable,ee=ht.showIcon,ye=ht.icon,Ot=ht.switcherIcon,He=ht.draggable,it=ht.checkable,ct=ht.checkStrictly,he=ht.disabled,be=ht.motion,je=ht.loadData,Ue=ht.filterTreeNode,$=ht.height,ut=ht.itemHeight,xe=ht.scrollWidth,At=ht.virtual,zt=ht.titleRender,qt=ht.dropIndicatorRender,cn=ht.onContextMenu,gn=ht.onScroll,En=ht.direction,Fn=ht.rootClassName,Hn=ht.rootStyle,An=(0,I.Z)(this.props,{aria:!0,data:!0}),qn;He&&((0,ie.Z)(He)==="object"?qn=He:typeof He=="function"?qn={nodeDraggable:He}:qn={});var vn={prefixCls:Ge,selectable:Ze,showIcon:ee,icon:ye,switcherIcon:Ot,draggable:qn,draggingNodeKey:we,checkable:it,checkStrictly:ct,disabled:he,keyEntities:ge,dropLevelOffset:Ye,dropContainerKey:oe,dropTargetKey:fe,dropPosition:dt,dragOverNodeKey:ot,indent:ft,direction:En,dropIndicatorRender:qt,loadData:je,filterTreeNode:Ue,titleRender:zt,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(H.k.Provider,{value:vn},W.createElement("div",{className:y()(Ge,Ct,Fn,(0,C.Z)((0,C.Z)((0,C.Z)({},"".concat(Ge,"-show-line"),Ce),"".concat(Ge,"-focused"),me),"".concat(Ge,"-active-focused"),ke!==null)),style:Hn},W.createElement(Ae,(0,l.Z)({ref:this.listRef,prefixCls:Ge,style:gt,data:Ee,disabled:he,selectable:Ze,checkable:!!it,motion:be,dragging:we!==null,height:$,itemHeight:ut,virtual:At,focusable:Je,focused:me,tabIndex:D,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:cn,onScroll:gn,scrollWidth:xe},this.getTreeNodeRequiredProps(),An))))}}],[{key:"getDerivedStateFromProps",value:function(O,me){var Ee=me.prevProps,ge={prevProps:O};function we(D){return!Ee&&O.hasOwnProperty(D)||Ee&&Ee[D]!==O[D]}var ke,Ye=me.fieldNames;if(we("fieldNames")&&(Ye=(0,Pe.w$)(O.fieldNames),ge.fieldNames=Ye),we("treeData")?ke=O.treeData:we("children")&&((0,N.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ke=(0,Pe.zn)(O.children)),ke){ge.treeData=ke;var oe=(0,Pe.I8)(ke,{fieldNames:Ye});ge.keyEntities=(0,U.Z)((0,C.Z)({},G,We),oe.keyEntities)}var fe=ge.keyEntities||me.keyEntities;if(we("expandedKeys")||Ee&&we("autoExpandParent"))ge.expandedKeys=O.autoExpandParent||!Ee&&O.defaultExpandParent?(0,Tt.r7)(O.expandedKeys,fe):O.expandedKeys;else if(!Ee&&O.defaultExpandAll){var dt=(0,U.Z)({},fe);delete dt[G];var ot=[];Object.keys(dt).forEach(function(D){var Ze=dt[D];Ze.children&&Ze.children.length&&ot.push(Ze.key)}),ge.expandedKeys=ot}else!Ee&&O.defaultExpandedKeys&&(ge.expandedKeys=O.autoExpandParent||O.defaultExpandParent?(0,Tt.r7)(O.defaultExpandedKeys,fe):O.defaultExpandedKeys);if(ge.expandedKeys||delete ge.expandedKeys,ke||ge.expandedKeys){var ft=(0,Pe.oH)(ke||me.treeData,ge.expandedKeys||me.expandedKeys,Ye);ge.flattenNodes=ft}if(O.selectable&&(we("selectedKeys")?ge.selectedKeys=(0,Tt.BT)(O.selectedKeys,O):!Ee&&O.defaultSelectedKeys&&(ge.selectedKeys=(0,Tt.BT)(O.defaultSelectedKeys,O))),O.checkable){var ht;if(we("checkedKeys")?ht=(0,Tt.E6)(O.checkedKeys)||{}:!Ee&&O.defaultCheckedKeys?ht=(0,Tt.E6)(O.defaultCheckedKeys)||{}:ke&&(ht=(0,Tt.E6)(O.checkedKeys)||{checkedKeys:me.checkedKeys,halfCheckedKeys:me.halfCheckedKeys}),ht){var Ge=ht,Ct=Ge.checkedKeys,gt=Ct===void 0?[]:Ct,Ce=Ge.halfCheckedKeys,Je=Ce===void 0?[]:Ce;if(!O.checkStrictly){var _=(0,tt.S)(gt,!0,fe);gt=_.checkedKeys,Je=_.halfCheckedKeys}ge.checkedKeys=gt,ge.halfCheckedKeys=Je}}return we("loadedKeys")&&(ge.loadedKeys=O.loadedKeys),ge}}]),Re}(W.Component);(0,C.Z)(Qe,"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:A,allowDrop:function(){return!0},expandAction:!1}),(0,C.Z)(Qe,"TreeNode",Le.Z);var Ne=Qe,Oe=Ne},82661:function(ln,qe,d){"use strict";d.d(qe,{BT:function(){return W},E6:function(){return A},L0:function(){return C},OM:function(){return N},_5:function(){return o},r7:function(){return V},wA:function(){return y},yx:function(){return P}});var l=d(77654),ie=d(43749),U=d(48736),le=d(59301),F=d(639),g=d(65065),q=d(34061),Q=null;function o(R,L){if(!R)return[];var ae=R.slice(),pe=ae.indexOf(L);return pe>=0&&ae.splice(pe,1),ae}function C(R,L){var ae=(R||[]).slice();return ae.indexOf(L)===-1&&ae.push(L),ae}function P(R){return R.split("-")}function y(R,L){var ae=[],pe=(0,g.Z)(L,R);function ce(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function($e){var Te=$e.key,Pe=$e.children;ae.push(Te),ce(Pe)})}return ce(pe.children),ae}function S(R){if(R.parent){var L=P(R.pos);return Number(L[L.length-1])===R.parent.children.length-1}return!1}function I(R){var L=P(R.pos);return Number(L[L.length-1])===0}function N(R,L,ae,pe,ce,Le,$e,Te,Pe,se){var K,w=R.clientX,te=R.clientY,ne=R.target.getBoundingClientRect(),z=ne.top,x=ne.height,T=(se==="rtl"?-1:1)*(((ce==null?void 0:ce.x)||0)-w),G=(T-12)/pe,ve=Pe.filter(function(Oe){var re;return(re=Te[Oe])===null||re===void 0||(re=re.children)===null||re===void 0?void 0:re.length}),We=(0,g.Z)(Te,ae.eventKey);if(te<z+x/2){var st=$e.findIndex(function(Oe){return Oe.key===We.key}),_e=st<=0?0:st-1,Ke=$e[_e].key;We=(0,g.Z)(Te,Ke)}var Ve=We.key,rt=We,Ae=We.key,Tt=0,tt=0;if(!ve.includes(Ve))for(var Pt=0;Pt<G&&S(We);Pt+=1)We=We.parent,tt+=1;var Xe=L.data,Qe=We.node,Ne=!0;return I(We)&&We.level===0&&te<z+x/2&&Le({dragNode:Xe,dropNode:Qe,dropPosition:-1})&&We.key===ae.eventKey?Tt=-1:(rt.children||[]).length&&ve.includes(Ae)?Le({dragNode:Xe,dropNode:Qe,dropPosition:0})?Tt=0:Ne=!1:tt===0?G>-1.5?Le({dragNode:Xe,dropNode:Qe,dropPosition:1})?Tt=1:Ne=!1:Le({dragNode:Xe,dropNode:Qe,dropPosition:0})?Tt=0:Le({dragNode:Xe,dropNode:Qe,dropPosition:1})?Tt=1:Ne=!1:Le({dragNode:Xe,dropNode:Qe,dropPosition:1})?Tt=1:Ne=!1,{dropPosition:Tt,dropLevelOffset:tt,dropTargetKey:We.key,dropTargetPos:We.pos,dragOverNodeKey:Ae,dropContainerKey:Tt===0?null:((K=We.parent)===null||K===void 0?void 0:K.key)||null,dropAllowed:Ne}}function W(R,L){if(R){var ae=L.multiple;return ae?R.slice():R.length?[R[0]]:R}}var H=function(L){return L};function j(R,L){if(!R)return[];var ae=L||{},pe=ae.processProps,ce=pe===void 0?H:pe,Le=Array.isArray(R)?R:[R];return Le.map(function($e){var Te=$e.children,Pe=_objectWithoutProperties($e,Q),se=j(Te,L);return React.createElement(TreeNode,_extends({key:Pe.key},ce(Pe)),se)})}function A(R){if(!R)return null;var L;if(Array.isArray(R))L={checkedKeys:R,halfCheckedKeys:void 0};else if((0,ie.Z)(R)==="object")L={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return(0,U.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function V(R,L){var ae=new Set;function pe(ce){if(!ae.has(ce)){var Le=(0,g.Z)(L,ce);if(Le){ae.add(ce);var $e=Le.parent,Te=Le.node;Te.disabled||$e&&pe($e.key)}}}return(R||[]).forEach(function(ce){pe(ce)}),(0,l.Z)(ae)}},34643:function(ln,qe,d){"use strict";d.d(qe,{S:function(){return q}});var l=d(48736),ie=d(65065);function U(Q,o){var C=new Set;return Q.forEach(function(P){o.has(P)||C.add(P)}),C}function le(Q){var o=Q||{},C=o.disabled,P=o.disableCheckbox,y=o.checkable;return!!(C||P)||y===!1}function F(Q,o,C,P){for(var y=new Set(Q),S=new Set,I=0;I<=C;I+=1){var N=o.get(I)||new Set;N.forEach(function(A){var V=A.key,R=A.node,L=A.children,ae=L===void 0?[]:L;y.has(V)&&!P(R)&&ae.filter(function(pe){return!P(pe.node)}).forEach(function(pe){y.add(pe.key)})})}for(var W=new Set,H=C;H>=0;H-=1){var j=o.get(H)||new Set;j.forEach(function(A){var V=A.parent,R=A.node;if(!(P(R)||!A.parent||W.has(A.parent.key))){if(P(A.parent.node)){W.add(V.key);return}var L=!0,ae=!1;(V.children||[]).filter(function(pe){return!P(pe.node)}).forEach(function(pe){var ce=pe.key,Le=y.has(ce);L&&!Le&&(L=!1),!ae&&(Le||S.has(ce))&&(ae=!0)}),L&&y.add(V.key),ae&&S.add(V.key),W.add(V.key)}})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(U(S,y))}}function g(Q,o,C,P,y){for(var S=new Set(Q),I=new Set(o),N=0;N<=P;N+=1){var W=C.get(N)||new Set;W.forEach(function(V){var R=V.key,L=V.node,ae=V.children,pe=ae===void 0?[]:ae;!S.has(R)&&!I.has(R)&&!y(L)&&pe.filter(function(ce){return!y(ce.node)}).forEach(function(ce){S.delete(ce.key)})})}I=new Set;for(var H=new Set,j=P;j>=0;j-=1){var A=C.get(j)||new Set;A.forEach(function(V){var R=V.parent,L=V.node;if(!(y(L)||!V.parent||H.has(V.parent.key))){if(y(V.parent.node)){H.add(R.key);return}var ae=!0,pe=!1;(R.children||[]).filter(function(ce){return!y(ce.node)}).forEach(function(ce){var Le=ce.key,$e=S.has(Le);ae&&!$e&&(ae=!1),!pe&&($e||I.has(Le))&&(pe=!0)}),ae||S.delete(R.key),pe&&I.add(R.key),H.add(R.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(U(I,S))}}function q(Q,o,C,P){var y=[],S;P?S=P:S=le;var I=new Set(Q.filter(function(j){var A=!!(0,ie.Z)(C,j);return A||y.push(j),A})),N=new Map,W=0;Object.keys(C).forEach(function(j){var A=C[j],V=A.level,R=N.get(V);R||(R=new Set,N.set(V,R)),R.add(A),W=Math.max(W,V)}),(0,l.ZP)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var H;return o===!0?H=F(I,N,W,S):H=g(I,o.halfCheckedKeys,N,W,S),H}},65065:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return l}});function l(ie,U){return ie[U]}},34061:function(ln,qe,d){"use strict";d.d(qe,{F:function(){return V},H8:function(){return A},I8:function(){return j},km:function(){return y},oH:function(){return W},w$:function(){return S},zn:function(){return N}});var l=d(43749),ie=d(77654),U=d(85899),le=d(42244),F=d(11592),g=d(2738),q=d(48736),Q=d(65065),o=["children"];function C(R,L){return"".concat(R,"-").concat(L)}function P(R){return R&&R.type&&R.type.isTreeNode}function y(R,L){return R!=null?R:L}function S(R){var L=R||{},ae=L.title,pe=L._title,ce=L.key,Le=L.children,$e=ae||"title";return{title:$e,_title:pe||[$e],key:ce||"key",children:Le||"children"}}function I(R,L){var ae=new Map;function pe(ce){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ce||[]).forEach(function($e){var Te=$e[L.key],Pe=$e[L.children];warning(Te!=null,"Tree node must have a certain key: [".concat(Le).concat(Te,"]"));var se=String(Te);warning(!ae.has(se)||Te===null||Te===void 0,"Same 'key' exist in the Tree: ".concat(se)),ae.set(se,!0),pe(Pe,"".concat(Le).concat(se," > "))})}pe(R)}function N(R){function L(ae){var pe=(0,F.Z)(ae);return pe.map(function(ce){if(!P(ce))return(0,q.ZP)(!ce,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=ce.key,$e=ce.props,Te=$e.children,Pe=(0,le.Z)($e,o),se=(0,U.Z)({key:Le},Pe),K=L(Te);return K.length&&(se.children=K),se}).filter(function(ce){return ce})}return L(R)}function W(R,L,ae){var pe=S(ae),ce=pe._title,Le=pe.key,$e=pe.children,Te=new Set(L===!0?[]:L),Pe=[];function se(K){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return K.map(function(te,ne){for(var z=C(w?w.pos:"0",ne),x=y(te[Le],z),T,G=0;G<ce.length;G+=1){var ve=ce[G];if(te[ve]!==void 0){T=te[ve];break}}var We=Object.assign((0,g.Z)(te,[].concat((0,ie.Z)(ce),[Le,$e])),{title:T,key:x,parent:w,pos:z,children:null,data:te,isStart:[].concat((0,ie.Z)(w?w.isStart:[]),[ne===0]),isEnd:[].concat((0,ie.Z)(w?w.isEnd:[]),[ne===K.length-1])});return Pe.push(We),L===!0||Te.has(x)?We.children=se(te[$e]||[],We):We.children=[],We})}return se(R),Pe}function H(R,L,ae){var pe={};(0,l.Z)(ae)==="object"?pe=ae:pe={externalGetKey:ae},pe=pe||{};var ce=pe,Le=ce.childrenPropName,$e=ce.externalGetKey,Te=ce.fieldNames,Pe=S(Te),se=Pe.key,K=Pe.children,w=Le||K,te;$e?typeof $e=="string"?te=function(x){return x[$e]}:typeof $e=="function"&&(te=function(x){return $e(x)}):te=function(x,T){return y(x[se],T)};function ne(z,x,T,G){var ve=z?z[w]:R,We=z?C(T.pos,x):"0",st=z?[].concat((0,ie.Z)(G),[z]):[];if(z){var _e=te(z,We),Ke={node:z,index:x,pos:We,key:_e,parentPos:T.node?T.pos:null,level:T.level+1,nodes:st};L(Ke)}ve&&ve.forEach(function(Ve,rt){ne(Ve,rt,{node:z,pos:We,level:T?T.level+1:-1},st)})}ne(null)}function j(R){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=L.initWrapper,pe=L.processEntity,ce=L.onProcessFinished,Le=L.externalGetKey,$e=L.childrenPropName,Te=L.fieldNames,Pe=arguments.length>2?arguments[2]:void 0,se=Le||Pe,K={},w={},te={posEntities:K,keyEntities:w};return ae&&(te=ae(te)||te),H(R,function(ne){var z=ne.node,x=ne.index,T=ne.pos,G=ne.key,ve=ne.parentPos,We=ne.level,st=ne.nodes,_e={node:z,nodes:st,index:x,key:G,pos:T,level:We},Ke=y(G,T);K[T]=_e,w[Ke]=_e,_e.parent=K[ve],_e.parent&&(_e.parent.children=_e.parent.children||[],_e.parent.children.push(_e)),pe&&pe(_e,te)},{externalGetKey:se,childrenPropName:$e,fieldNames:Te}),ce&&ce(te),te}function A(R,L){var ae=L.expandedKeys,pe=L.selectedKeys,ce=L.loadedKeys,Le=L.loadingKeys,$e=L.checkedKeys,Te=L.halfCheckedKeys,Pe=L.dragOverNodeKey,se=L.dropPosition,K=L.keyEntities,w=(0,Q.Z)(K,R),te={eventKey:R,expanded:ae.indexOf(R)!==-1,selected:pe.indexOf(R)!==-1,loaded:ce.indexOf(R)!==-1,loading:Le.indexOf(R)!==-1,checked:$e.indexOf(R)!==-1,halfChecked:Te.indexOf(R)!==-1,pos:String(w?w.pos:""),dragOver:Pe===R&&se===0,dragOverGapTop:Pe===R&&se===-1,dragOverGapBottom:Pe===R&&se===1};return te}function V(R){var L=R.data,ae=R.expanded,pe=R.selected,ce=R.checked,Le=R.loaded,$e=R.loading,Te=R.halfChecked,Pe=R.dragOver,se=R.dragOverGapTop,K=R.dragOverGapBottom,w=R.pos,te=R.active,ne=R.eventKey,z=(0,U.Z)((0,U.Z)({},L),{},{expanded:ae,selected:pe,checked:ce,loaded:Le,loading:$e,halfChecked:Te,dragOver:Pe,dragOverGapTop:se,dragOverGapBottom:K,pos:w,active:te,key:ne});return"props"in z||Object.defineProperty(z,"props",{get:function(){return(0,q.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),z}},8224:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return ie}});var l=d(4676);function ie(U,le,F,g){var q=l.unstable_batchedUpdates?function(o){l.unstable_batchedUpdates(F,o)}:F;return U!=null&&U.addEventListener&&U.addEventListener(le,q,g),{remove:function(){U!=null&&U.removeEventListener&&U.removeEventListener(le,q,g)}}}},24514:function(ln,qe,d){"use strict";d.d(qe,{G:function(){return le}});var l=d(47273),ie=function(g){if((0,l.Z)()&&window.document.documentElement){var q=Array.isArray(g)?g:[g],Q=window.document.documentElement;return q.some(function(o){return o in Q.style})}return!1},U=function(g,q){if(!ie(g))return!1;var Q=document.createElement("div"),o=Q.style[g];return Q.style[g]=q,Q.style[g]!==o};function le(F,g){return!Array.isArray(F)&&g!==void 0?U(F,g):ie(F)}},49658:function(ln,qe){"use strict";qe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var d=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(d)||/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(d==null?void 0:d.substr(0,4))}},48911:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Xe}});var l=d(60499),ie=d(43749),U=d(85899),le=d(18642),F=d(72190),g=d(42244),q=d(92310),Q=d.n(q),o=d(29301),C=d(70425),P=d(34280),y=d(59301),S=d(4676),I=y.forwardRef(function(Qe,Ne){var Oe=Qe.height,re=Qe.offsetY,Fe=Qe.offsetX,Re=Qe.children,Z=Qe.prefixCls,O=Qe.onInnerResize,me=Qe.innerProps,Ee=Qe.rtl,ge=Qe.extra,we={},ke={display:"flex",flexDirection:"column"};return re!==void 0&&(we={height:Oe,position:"relative",overflow:"hidden"},ke=(0,U.Z)((0,U.Z)({},ke),{},(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({transform:"translateY(".concat(re,"px)")},Ee?"marginRight":"marginLeft",-Fe),"position","absolute"),"left",0),"right",0),"top",0))),y.createElement("div",{style:we},y.createElement(o.Z,{onResize:function(oe){var fe=oe.offsetHeight;fe&&O&&O()}},y.createElement("div",(0,l.Z)({style:ke,className:Q()((0,le.Z)({},"".concat(Z,"-holder-inner"),Z)),ref:Ne},me),Re,ge)))});I.displayName="Filler";var N=I;function W(Qe){var Ne=Qe.children,Oe=Qe.setRef,re=y.useCallback(function(Fe){Oe(Fe)},[]);return y.cloneElement(Ne,{ref:re})}function H(Qe,Ne,Oe,re,Fe,Re,Z,O){var me=O.getKey;return Qe.slice(Ne,Oe+1).map(function(Ee,ge){var we=Ne+ge,ke=Z(Ee,we,{style:{width:re},offsetX:Fe}),Ye=me(Ee);return y.createElement(W,{key:Ye,setRef:function(fe){return Re(Ee,fe)}},ke)})}function j(Qe,Ne,Oe,re){var Fe=Oe-Qe,Re=Ne-Oe,Z=Math.min(Fe,Re)*2;if(re<=Z){var O=Math.floor(re/2);return re%2?Oe+O+1:Oe-O}return Fe>Re?Oe-(re-Re):Oe+(re-Fe)}function A(Qe,Ne,Oe){var re=Qe.length,Fe=Ne.length,Re,Z;if(re===0&&Fe===0)return null;re<Fe?(Re=Qe,Z=Ne):(Re=Ne,Z=Qe);var O={__EMPTY_ITEM__:!0};function me(oe){return oe!==void 0?Oe(oe):O}for(var Ee=null,ge=Math.abs(re-Fe)!==1,we=0;we<Z.length;we+=1){var ke=me(Re[we]),Ye=me(Z[we]);if(ke!==Ye){Ee=we,ge=ge||ke!==me(Z[we+1]);break}}return Ee===null?null:{index:Ee,multiple:ge}}function V(Qe,Ne,Oe){var re=y.useState(Qe),Fe=(0,F.Z)(re,2),Re=Fe[0],Z=Fe[1],O=y.useState(null),me=(0,F.Z)(O,2),Ee=me[0],ge=me[1];return y.useEffect(function(){var we=A(Re||[],Qe||[],Ne);(we==null?void 0:we.index)!==void 0&&(Oe==null||Oe(we.index),ge(Qe[we.index])),Z(Qe)},[Qe]),[Ee]}var R=d(16089),L=(typeof navigator=="undefined"?"undefined":(0,ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ae=L,pe=function(Qe,Ne,Oe,re){var Fe=(0,y.useRef)(!1),Re=(0,y.useRef)(null);function Z(){clearTimeout(Re.current),Fe.current=!0,Re.current=setTimeout(function(){Fe.current=!1},50)}var O=(0,y.useRef)({top:Qe,bottom:Ne,left:Oe,right:re});return O.current.top=Qe,O.current.bottom=Ne,O.current.left=Oe,O.current.right=re,function(me,Ee){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=me?Ee<0&&O.current.left||Ee>0&&O.current.right:Ee<0&&O.current.top||Ee>0&&O.current.bottom;return ge&&we?(clearTimeout(Re.current),Fe.current=!1):(!we||Fe.current)&&Z(),!Fe.current&&we}};function ce(Qe,Ne,Oe,re,Fe,Re,Z){var O=(0,y.useRef)(0),me=(0,y.useRef)(null),Ee=(0,y.useRef)(null),ge=(0,y.useRef)(!1),we=pe(Ne,Oe,re,Fe);function ke(ft,ht){if(R.Z.cancel(me.current),!we(!1,ht)){var Ge=ft;if(!Ge._virtualHandled)Ge._virtualHandled=!0;else return;O.current+=ht,Ee.current=ht,ae||Ge.preventDefault(),me.current=(0,R.Z)(function(){var Ct=ge.current?10:1;Z(O.current*Ct,!1),O.current=0})}}function Ye(ft,ht){Z(ht,!0),ae||ft.preventDefault()}var oe=(0,y.useRef)(null),fe=(0,y.useRef)(null);function dt(ft){if(Qe){R.Z.cancel(fe.current),fe.current=(0,R.Z)(function(){oe.current=null},2);var ht=ft.deltaX,Ge=ft.deltaY,Ct=ft.shiftKey,gt=ht,Ce=Ge;(oe.current==="sx"||!oe.current&&Ct&&Ge&&!ht)&&(gt=Ge,Ce=0,oe.current="sx");var Je=Math.abs(gt),_=Math.abs(Ce);oe.current===null&&(oe.current=Re&&Je>_?"x":"y"),oe.current==="y"?ke(ft,Ce):Ye(ft,gt)}}function ot(ft){Qe&&(ge.current=ft.detail===Ee.current)}return[dt,ot]}function Le(Qe,Ne,Oe,re){var Fe=y.useMemo(function(){return[new Map,[]]},[Qe,Oe.id,re]),Re=(0,F.Z)(Fe,2),Z=Re[0],O=Re[1],me=function(ge){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge,ke=Z.get(ge),Ye=Z.get(we);if(ke===void 0||Ye===void 0)for(var oe=Qe.length,fe=O.length;fe<oe;fe+=1){var dt,ot=Qe[fe],ft=Ne(ot);Z.set(ft,fe);var ht=(dt=Oe.get(ft))!==null&&dt!==void 0?dt:re;if(O[fe]=(O[fe-1]||0)+ht,ft===ge&&(ke=fe),ft===we&&(Ye=fe),ke!==void 0&&Ye!==void 0)break}return{top:O[ke-1]||0,bottom:O[Ye]}};return me}var $e=d(38705),Te=d(17212),Pe=function(){function Qe(){(0,$e.Z)(this,Qe),(0,le.Z)(this,"maps",void 0),(0,le.Z)(this,"id",0),(0,le.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Te.Z)(Qe,[{key:"set",value:function(Oe,re){this.diffRecords.set(Oe,this.maps[Oe]),this.maps[Oe]=re,this.id+=1}},{key:"get",value:function(Oe){return this.maps[Oe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Qe}(),se=Pe;function K(Qe){var Ne=parseFloat(Qe);return isNaN(Ne)?0:Ne}function w(Qe,Ne,Oe){var re=y.useState(0),Fe=(0,F.Z)(re,2),Re=Fe[0],Z=Fe[1],O=(0,y.useRef)(new Map),me=(0,y.useRef)(new se),Ee=(0,y.useRef)(0);function ge(){Ee.current+=1}function we(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ge();var oe=function(){var ot=!1;O.current.forEach(function(ft,ht){if(ft&&ft.offsetParent){var Ge=ft.offsetHeight,Ct=getComputedStyle(ft),gt=Ct.marginTop,Ce=Ct.marginBottom,Je=K(gt),_=K(Ce),D=Ge+Je+_;me.current.get(ht)!==D&&(me.current.set(ht,D),ot=!0)}}),ot&&Z(function(ft){return ft+1})};if(Ye)oe();else{Ee.current+=1;var fe=Ee.current;Promise.resolve().then(function(){fe===Ee.current&&oe()})}}function ke(Ye,oe){var fe=Qe(Ye),dt=O.current.get(fe);oe?(O.current.set(fe,oe),we()):O.current.delete(fe),!dt!=!oe&&(oe?Ne==null||Ne(Ye):Oe==null||Oe(Ye))}return(0,y.useEffect)(function(){return ge},[]),[ke,we,me.current,Re]}var te=14/15;function ne(Qe,Ne,Oe){var re=(0,y.useRef)(!1),Fe=(0,y.useRef)(0),Re=(0,y.useRef)(0),Z=(0,y.useRef)(null),O=(0,y.useRef)(null),me,Ee=function(Ye){if(re.current){var oe=Math.ceil(Ye.touches[0].pageX),fe=Math.ceil(Ye.touches[0].pageY),dt=Fe.current-oe,ot=Re.current-fe,ft=Math.abs(dt)>Math.abs(ot);ft?Fe.current=oe:Re.current=fe;var ht=Oe(ft,ft?dt:ot,!1,Ye);ht&&Ye.preventDefault(),clearInterval(O.current),ht&&(O.current=setInterval(function(){ft?dt*=te:ot*=te;var Ge=Math.floor(ft?dt:ot);(!Oe(ft,Ge,!0)||Math.abs(Ge)<=.1)&&clearInterval(O.current)},16))}},ge=function(){re.current=!1,me()},we=function(Ye){me(),Ye.touches.length===1&&!re.current&&(re.current=!0,Fe.current=Math.ceil(Ye.touches[0].pageX),Re.current=Math.ceil(Ye.touches[0].pageY),Z.current=Ye.target,Z.current.addEventListener("touchmove",Ee,{passive:!1}),Z.current.addEventListener("touchend",ge,{passive:!0}))};me=function(){Z.current&&(Z.current.removeEventListener("touchmove",Ee),Z.current.removeEventListener("touchend",ge))},(0,P.Z)(function(){return Qe&&Ne.current.addEventListener("touchstart",we,{passive:!0}),function(){var ke;(ke=Ne.current)===null||ke===void 0||ke.removeEventListener("touchstart",we),me(),clearInterval(O.current)}},[Qe])}function z(Qe){return Math.floor(Math.pow(Qe,.5))}function x(Qe,Ne){var Oe="touches"in Qe?Qe.touches[0]:Qe;return Oe[Ne?"pageX":"pageY"]-window[Ne?"scrollX":"scrollY"]}function T(Qe,Ne,Oe){y.useEffect(function(){var re=Ne.current;if(Qe&&re){var Fe=!1,Re,Z,O=function(){R.Z.cancel(Re)},me=function ke(){O(),Re=(0,R.Z)(function(){Oe(Z),ke()})},Ee=function(){Fe=!1,O()},ge=function(Ye){if(!(Ye.target.draggable||Ye.button!==0)){var oe=Ye;oe._virtualHandled||(oe._virtualHandled=!0,Fe=!0)}},we=function(Ye){if(Fe){var oe=x(Ye,!1),fe=re.getBoundingClientRect(),dt=fe.top,ot=fe.bottom;if(oe<=dt){var ft=dt-oe;Z=-z(ft),me()}else if(oe>=ot){var ht=oe-ot;Z=z(ht),me()}else O()}};return re.addEventListener("mousedown",ge),re.ownerDocument.addEventListener("mouseup",Ee),re.ownerDocument.addEventListener("mousemove",we),re.ownerDocument.addEventListener("dragend",Ee),function(){re.removeEventListener("mousedown",ge),re.ownerDocument.removeEventListener("mouseup",Ee),re.ownerDocument.removeEventListener("mousemove",we),re.ownerDocument.removeEventListener("dragend",Ee),O()}}},[Qe])}var G=10;function ve(Qe,Ne,Oe,re,Fe,Re,Z,O){var me=y.useRef(),Ee=y.useState(null),ge=(0,F.Z)(Ee,2),we=ge[0],ke=ge[1];return(0,P.Z)(function(){if(we&&we.times<G){if(!Qe.current){ke(function(be){return(0,U.Z)({},be)});return}Re();var Ye=we.targetAlign,oe=we.originAlign,fe=we.index,dt=we.offset,ot=Qe.current.clientHeight,ft=!1,ht=Ye,Ge=null;if(ot){for(var Ct=Ye||oe,gt=0,Ce=0,Je=0,_=Math.min(Ne.length-1,fe),D=0;D<=_;D+=1){var Ze=Fe(Ne[D]);Ce=gt;var ee=Oe.get(Ze);Je=Ce+(ee===void 0?re:ee),gt=Je}for(var ye=Ct==="top"?dt:ot-dt,Ot=_;Ot>=0;Ot-=1){var He=Fe(Ne[Ot]),it=Oe.get(He);if(it===void 0){ft=!0;break}if(ye-=it,ye<=0)break}switch(Ct){case"top":Ge=Ce-dt;break;case"bottom":Ge=Je-ot+dt;break;default:{var ct=Qe.current.scrollTop,he=ct+ot;Ce<ct?ht="top":Je>he&&(ht="bottom")}}Ge!==null&&Z(Ge),Ge!==we.lastTop&&(ft=!0)}ft&&ke((0,U.Z)((0,U.Z)({},we),{},{times:we.times+1,targetAlign:ht,lastTop:Ge}))}},[we,Qe.current]),function(Ye){if(Ye==null){O();return}if(R.Z.cancel(me.current),typeof Ye=="number")Z(Ye);else if(Ye&&(0,ie.Z)(Ye)==="object"){var oe,fe=Ye.align;"index"in Ye?oe=Ye.index:oe=Ne.findIndex(function(ft){return Fe(ft)===Ye.key});var dt=Ye.offset,ot=dt===void 0?0:dt;ke({times:0,index:oe,offset:ot,originAlign:fe})}}}var We=y.forwardRef(function(Qe,Ne){var Oe=Qe.prefixCls,re=Qe.rtl,Fe=Qe.scrollOffset,Re=Qe.scrollRange,Z=Qe.onStartMove,O=Qe.onStopMove,me=Qe.onScroll,Ee=Qe.horizontal,ge=Qe.spinSize,we=Qe.containerSize,ke=Qe.style,Ye=Qe.thumbStyle,oe=Qe.showScrollBar,fe=y.useState(!1),dt=(0,F.Z)(fe,2),ot=dt[0],ft=dt[1],ht=y.useState(null),Ge=(0,F.Z)(ht,2),Ct=Ge[0],gt=Ge[1],Ce=y.useState(null),Je=(0,F.Z)(Ce,2),_=Je[0],D=Je[1],Ze=!re,ee=y.useRef(),ye=y.useRef(),Ot=y.useState(oe),He=(0,F.Z)(Ot,2),it=He[0],ct=He[1],he=y.useRef(),be=function(){oe===!0||oe===!1||(clearTimeout(he.current),ct(!0),he.current=setTimeout(function(){ct(!1)},3e3))},je=Re-we||0,Ue=we-ge||0,$=y.useMemo(function(){if(Fe===0||je===0)return 0;var Fn=Fe/je;return Fn*Ue},[Fe,je,Ue]),ut=function(Hn){Hn.stopPropagation(),Hn.preventDefault()},xe=y.useRef({top:$,dragging:ot,pageY:Ct,startTop:_});xe.current={top:$,dragging:ot,pageY:Ct,startTop:_};var At=function(Hn){ft(!0),gt(x(Hn,Ee)),D(xe.current.top),Z(),Hn.stopPropagation(),Hn.preventDefault()};y.useEffect(function(){var Fn=function(vn){vn.preventDefault()},Hn=ee.current,An=ye.current;return Hn.addEventListener("touchstart",Fn,{passive:!1}),An.addEventListener("touchstart",At,{passive:!1}),function(){Hn.removeEventListener("touchstart",Fn),An.removeEventListener("touchstart",At)}},[]);var zt=y.useRef();zt.current=je;var qt=y.useRef();qt.current=Ue,y.useEffect(function(){if(ot){var Fn,Hn=function(vn){var Gt=xe.current,Xt=Gt.dragging,Dn=Gt.pageY,Cn=Gt.startTop;R.Z.cancel(Fn);var yt=ee.current.getBoundingClientRect(),Et=we/(Ee?yt.width:yt.height);if(Xt){var Be=(x(vn,Ee)-Dn)*Et,lt=Cn;!Ze&&Ee?lt-=Be:lt+=Be;var vt=zt.current,xt=qt.current,Dt=xt?lt/xt:0,Jt=Math.ceil(Dt*vt);Jt=Math.max(Jt,0),Jt=Math.min(Jt,vt),Fn=(0,R.Z)(function(){me(Jt,Ee)})}},An=function(){ft(!1),O()};return window.addEventListener("mousemove",Hn,{passive:!0}),window.addEventListener("touchmove",Hn,{passive:!0}),window.addEventListener("mouseup",An,{passive:!0}),window.addEventListener("touchend",An,{passive:!0}),function(){window.removeEventListener("mousemove",Hn),window.removeEventListener("touchmove",Hn),window.removeEventListener("mouseup",An),window.removeEventListener("touchend",An),R.Z.cancel(Fn)}}},[ot]),y.useEffect(function(){return be(),function(){clearTimeout(he.current)}},[Fe]),y.useImperativeHandle(Ne,function(){return{delayHidden:be}});var cn="".concat(Oe,"-scrollbar"),gn={position:"absolute",visibility:it?null:"hidden"},En={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ee?(Object.assign(gn,{height:8,left:0,right:0,bottom:0}),Object.assign(En,(0,le.Z)({height:"100%",width:ge},Ze?"left":"right",$))):(Object.assign(gn,(0,le.Z)({width:8,top:0,bottom:0},Ze?"right":"left",0)),Object.assign(En,{width:"100%",height:ge,top:$})),y.createElement("div",{ref:ee,className:Q()(cn,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(cn,"-horizontal"),Ee),"".concat(cn,"-vertical"),!Ee),"".concat(cn,"-visible"),it)),style:(0,U.Z)((0,U.Z)({},gn),ke),onMouseDown:ut,onMouseMove:be},y.createElement("div",{ref:ye,className:Q()("".concat(cn,"-thumb"),(0,le.Z)({},"".concat(cn,"-thumb-moving"),ot)),style:(0,U.Z)((0,U.Z)({},En),Ye),onMouseDown:At}))}),st=We,_e=20;function Ke(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Oe=Qe/Ne*Qe;return isNaN(Oe)&&(Oe=0),Oe=Math.max(Oe,_e),Math.floor(Oe)}var Ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],rt=[],Ae={overflowY:"auto",overflowAnchor:"none"};function Tt(Qe,Ne){var Oe=Qe.prefixCls,re=Oe===void 0?"rc-virtual-list":Oe,Fe=Qe.className,Re=Qe.height,Z=Qe.itemHeight,O=Qe.fullHeight,me=O===void 0?!0:O,Ee=Qe.style,ge=Qe.data,we=Qe.children,ke=Qe.itemKey,Ye=Qe.virtual,oe=Qe.direction,fe=Qe.scrollWidth,dt=Qe.component,ot=dt===void 0?"div":dt,ft=Qe.onScroll,ht=Qe.onVirtualScroll,Ge=Qe.onVisibleChange,Ct=Qe.innerProps,gt=Qe.extraRender,Ce=Qe.styles,Je=Qe.showScrollBar,_=Je===void 0?"optional":Je,D=(0,g.Z)(Qe,Ve),Ze=y.useCallback(function(sn){return typeof ke=="function"?ke(sn):sn==null?void 0:sn[ke]},[ke]),ee=w(Ze,null,null),ye=(0,F.Z)(ee,4),Ot=ye[0],He=ye[1],it=ye[2],ct=ye[3],he=!!(Ye!==!1&&Re&&Z),be=y.useMemo(function(){return Object.values(it.maps).reduce(function(sn,un){return sn+un},0)},[it.id,it.maps]),je=he&&ge&&(Math.max(Z*ge.length,be)>Re||!!fe),Ue=oe==="rtl",$=Q()(re,(0,le.Z)({},"".concat(re,"-rtl"),Ue),Fe),ut=ge||rt,xe=(0,y.useRef)(),At=(0,y.useRef)(),zt=(0,y.useRef)(),qt=(0,y.useState)(0),cn=(0,F.Z)(qt,2),gn=cn[0],En=cn[1],Fn=(0,y.useState)(0),Hn=(0,F.Z)(Fn,2),An=Hn[0],qn=Hn[1],vn=(0,y.useState)(!1),Gt=(0,F.Z)(vn,2),Xt=Gt[0],Dn=Gt[1],Cn=function(){Dn(!0)},yt=function(){Dn(!1)},Et={getKey:Ze};function Be(sn){En(function(un){var Bn;typeof sn=="function"?Bn=sn(un):Bn=sn;var Yn=dr(Bn);return xe.current.scrollTop=Yn,Yn})}var lt=(0,y.useRef)({start:0,end:ut.length}),vt=(0,y.useRef)(),xt=V(ut,Ze),Dt=(0,F.Z)(xt,1),Jt=Dt[0];vt.current=Jt;var pn=y.useMemo(function(){if(!he)return{scrollHeight:void 0,start:0,end:ut.length-1,offset:void 0};if(!je){var sn;return{scrollHeight:((sn=At.current)===null||sn===void 0?void 0:sn.offsetHeight)||0,start:0,end:ut.length-1,offset:void 0}}for(var un=0,Bn,Yn,lr,Ir=ut.length,On=0;On<Ir;On+=1){var mr=ut[On],Dr=Ze(mr),Jr=it.get(Dr),mi=un+(Jr===void 0?Z:Jr);mi>=gn&&Bn===void 0&&(Bn=On,Yn=un),mi>gn+Re&&lr===void 0&&(lr=On),un=mi}return Bn===void 0&&(Bn=0,Yn=0,lr=Math.ceil(Re/Z)),lr===void 0&&(lr=ut.length-1),lr=Math.min(lr+1,ut.length-1),{scrollHeight:un,start:Bn,end:lr,offset:Yn}},[je,he,gn,ut,ct,Re]),_n=pn.scrollHeight,Vt=pn.start,yn=pn.end,Nn=pn.offset;lt.current.start=Vt,lt.current.end=yn,y.useLayoutEffect(function(){var sn=it.getRecord();if(sn.size===1){var un=Array.from(sn.keys())[0],Bn=sn.get(un),Yn=ut[Vt];if(Yn&&Bn===void 0){var lr=Ze(Yn);if(lr===un){var Ir=it.get(un),On=Ir-Z;Be(function(mr){return mr+On})}}}it.resetRecord()},[_n]);var Sn=y.useState({width:0,height:Re}),bt=(0,F.Z)(Sn,2),Rt=bt[0],Wt=bt[1],Bt=function(un){Wt({width:un.offsetWidth,height:un.offsetHeight})},jt=(0,y.useRef)(),Qt=(0,y.useRef)(),an=y.useMemo(function(){return Ke(Rt.width,fe)},[Rt.width,fe]),on=y.useMemo(function(){return Ke(Rt.height,_n)},[Rt.height,_n]),Rn=_n-Re,$n=(0,y.useRef)(Rn);$n.current=Rn;function dr(sn){var un=sn;return Number.isNaN($n.current)||(un=Math.min(un,$n.current)),un=Math.max(un,0),un}var jn=gn<=0,zn=gn>=Rn,er=An<=0,Xn=An>=fe,sr=pe(jn,zn,er,Xn),Wn=function(){return{x:Ue?-An:An,y:gn}},Qn=(0,y.useRef)(Wn()),or=(0,C.zX)(function(sn){if(ht){var un=(0,U.Z)((0,U.Z)({},Wn()),sn);(Qn.current.x!==un.x||Qn.current.y!==un.y)&&(ht(un),Qn.current=un)}});function cr(sn,un){var Bn=sn;un?((0,S.flushSync)(function(){qn(Bn)}),or()):Be(Bn)}function rr(sn){var un=sn.currentTarget.scrollTop;un!==gn&&Be(un),ft==null||ft(sn),or()}var nr=function(un){var Bn=un,Yn=fe?fe-Rt.width:0;return Bn=Math.max(Bn,0),Bn=Math.min(Bn,Yn),Bn},ir=(0,C.zX)(function(sn,un){un?((0,S.flushSync)(function(){qn(function(Bn){var Yn=Bn+(Ue?-sn:sn);return nr(Yn)})}),or()):Be(function(Bn){var Yn=Bn+sn;return Yn})}),Vn=ce(he,jn,zn,er,Xn,!!fe,ir),$r=(0,F.Z)(Vn,2),Kt=$r[0],ar=$r[1];ne(he,xe,function(sn,un,Bn,Yn){var lr=Yn;return sr(sn,un,Bn)?!1:!lr||!lr._virtualHandled?(lr&&(lr._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:sn?un:0,deltaY:sn?0:un}),!0):!1}),T(je,xe,function(sn){Be(function(un){return un+sn})}),(0,P.Z)(function(){function sn(Bn){var Yn=jn&&Bn.detail<0,lr=zn&&Bn.detail>0;he&&!Yn&&!lr&&Bn.preventDefault()}var un=xe.current;return un.addEventListener("wheel",Kt,{passive:!1}),un.addEventListener("DOMMouseScroll",ar,{passive:!0}),un.addEventListener("MozMousePixelScroll",sn,{passive:!1}),function(){un.removeEventListener("wheel",Kt),un.removeEventListener("DOMMouseScroll",ar),un.removeEventListener("MozMousePixelScroll",sn)}},[he,jn,zn]),(0,P.Z)(function(){if(fe){var sn=nr(An);qn(sn),or({x:sn})}},[Rt.width,fe]);var hr=function(){var un,Bn;(un=jt.current)===null||un===void 0||un.delayHidden(),(Bn=Qt.current)===null||Bn===void 0||Bn.delayHidden()},Yr=ve(xe,ut,it,Z,Ze,function(){return He(!0)},Be,hr);y.useImperativeHandle(Ne,function(){return{nativeElement:zt.current,getScrollInfo:Wn,scrollTo:function(un){function Bn(Yn){return Yn&&(0,ie.Z)(Yn)==="object"&&("left"in Yn||"top"in Yn)}Bn(un)?(un.left!==void 0&&qn(nr(un.left)),Yr(un.top)):Yr(un)}}}),(0,P.Z)(function(){if(Ge){var sn=ut.slice(Vt,yn+1);Ge(sn,ut)}},[Vt,yn,ut]);var zr=Le(ut,Ze,it,Z),li=gt==null?void 0:gt({start:Vt,end:yn,virtual:je,offsetX:An,offsetY:Nn,rtl:Ue,getSize:zr}),Qr=H(ut,Vt,yn,fe,An,Ot,we,Et),Zn=null;Re&&(Zn=(0,U.Z)((0,le.Z)({},me?"height":"maxHeight",Re),Ae),he&&(Zn.overflowY="hidden",fe&&(Zn.overflowX="hidden"),Xt&&(Zn.pointerEvents="none")));var Pn={};return Ue&&(Pn.dir="rtl"),y.createElement("div",(0,l.Z)({ref:zt,style:(0,U.Z)((0,U.Z)({},Ee),{},{position:"relative"}),className:$},Pn,D),y.createElement(o.Z,{onResize:Bt},y.createElement(ot,{className:"".concat(re,"-holder"),style:Zn,ref:xe,onScroll:rr,onMouseEnter:hr},y.createElement(N,{prefixCls:re,height:_n,offsetX:An,offsetY:Nn,scrollWidth:fe,onInnerResize:He,ref:At,innerProps:Ct,rtl:Ue,extra:li},Qr))),je&&_n>Re&&y.createElement(st,{ref:jt,prefixCls:re,scrollOffset:gn,scrollRange:_n,rtl:Ue,onScroll:cr,onStartMove:Cn,onStopMove:yt,spinSize:on,containerSize:Rt.height,style:Ce==null?void 0:Ce.verticalScrollBar,thumbStyle:Ce==null?void 0:Ce.verticalScrollBarThumb,showScrollBar:_}),je&&fe>Rt.width&&y.createElement(st,{ref:Qt,prefixCls:re,scrollOffset:An,scrollRange:fe,rtl:Ue,onScroll:cr,onStartMove:Cn,onStopMove:yt,spinSize:an,containerSize:Rt.width,horizontal:!0,style:Ce==null?void 0:Ce.horizontalScrollBar,thumbStyle:Ce==null?void 0:Ce.horizontalScrollBarThumb,showScrollBar:_}))}var tt=y.forwardRef(Tt);tt.displayName="List";var Pt=tt,Xe=Pt},83145:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.CopyToClipboard=void 0;var l=U(d(59301)),ie=U(d(25769));function U(A){return A&&A.__esModule?A:{default:A}}function le(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?le=function(R){return typeof R}:le=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},le(A)}function F(A,V){var R=Object.keys(A);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(A);V&&(L=L.filter(function(ae){return Object.getOwnPropertyDescriptor(A,ae).enumerable})),R.push.apply(R,L)}return R}function g(A){for(var V=1;V<arguments.length;V++){var R=arguments[V]!=null?arguments[V]:{};V%2?F(R,!0).forEach(function(L){H(A,L,R[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(R)):F(R).forEach(function(L){Object.defineProperty(A,L,Object.getOwnPropertyDescriptor(R,L))})}return A}function q(A,V){if(A==null)return{};var R=Q(A,V),L,ae;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(A);for(ae=0;ae<pe.length;ae++)L=pe[ae],!(V.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(A,L)&&(R[L]=A[L])}return R}function Q(A,V){if(A==null)return{};var R={},L=Object.keys(A),ae,pe;for(pe=0;pe<L.length;pe++)ae=L[pe],!(V.indexOf(ae)>=0)&&(R[ae]=A[ae]);return R}function o(A,V){if(!(A instanceof V))throw new TypeError("Cannot call a class as a function")}function C(A,V){for(var R=0;R<V.length;R++){var L=V[R];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(A,L.key,L)}}function P(A,V,R){return V&&C(A.prototype,V),R&&C(A,R),A}function y(A,V){return V&&(le(V)==="object"||typeof V=="function")?V:I(A)}function S(A){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},S(A)}function I(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function N(A,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(V&&V.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),V&&W(A,V)}function W(A,V){return W=Object.setPrototypeOf||function(L,ae){return L.__proto__=ae,L},W(A,V)}function H(A,V,R){return V in A?Object.defineProperty(A,V,{value:R,enumerable:!0,configurable:!0,writable:!0}):A[V]=R,A}var j=function(A){N(V,A);function V(){var R,L;o(this,V);for(var ae=arguments.length,pe=new Array(ae),ce=0;ce<ae;ce++)pe[ce]=arguments[ce];return L=y(this,(R=S(V)).call.apply(R,[this].concat(pe))),H(I(L),"onClick",function(Le){var $e=L.props,Te=$e.text,Pe=$e.onCopy,se=$e.children,K=$e.options,w=l.default.Children.only(se),te=(0,ie.default)(Te,K);Pe&&Pe(Te,te),w&&w.props&&typeof w.props.onClick=="function"&&w.props.onClick(Le)}),L}return P(V,[{key:"render",value:function(){var L=this.props,ae=L.text,pe=L.onCopy,ce=L.options,Le=L.children,$e=q(L,["text","onCopy","options","children"]),Te=l.default.Children.only(Le);return l.default.cloneElement(Te,g({},$e,{onClick:this.onClick}))}}]),V}(l.default.PureComponent);qe.CopyToClipboard=j,H(j,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(ln,qe,d){"use strict";var l=d(83145),ie=l.CopyToClipboard;ie.CopyToClipboard=ie,ln.exports=ie},76374:function(ln,qe,d){"use strict";var l=function(){if(typeof Map!="undefined")return Map;function se(K,w){var te=-1;return K.some(function(ne,z){return ne[0]===w?(te=z,!0):!1}),te}return function(){function K(){this.__entries__=[]}return Object.defineProperty(K.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),K.prototype.get=function(w){var te=se(this.__entries__,w),ne=this.__entries__[te];return ne&&ne[1]},K.prototype.set=function(w,te){var ne=se(this.__entries__,w);~ne?this.__entries__[ne][1]=te:this.__entries__.push([w,te])},K.prototype.delete=function(w){var te=this.__entries__,ne=se(te,w);~ne&&te.splice(ne,1)},K.prototype.has=function(w){return!!~se(this.__entries__,w)},K.prototype.clear=function(){this.__entries__.splice(0)},K.prototype.forEach=function(w,te){te===void 0&&(te=null);for(var ne=0,z=this.__entries__;ne<z.length;ne++){var x=z[ne];w.call(te,x[1],x[0])}},K}()}(),ie=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,U=function(){return typeof d.g!="undefined"&&d.g.Math===Math?d.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),le=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(U):function(se){return setTimeout(function(){return se(Date.now())},1e3/60)}}(),F=2;function g(se,K){var w=!1,te=!1,ne=0;function z(){w&&(w=!1,se()),te&&T()}function x(){le(z)}function T(){var G=Date.now();if(w){if(G-ne<F)return;te=!0}else w=!0,te=!1,setTimeout(x,K);ne=G}return T}var q=20,Q=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",C=function(){function se(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),q)}return se.prototype.addObserver=function(K){~this.observers_.indexOf(K)||this.observers_.push(K),this.connected_||this.connect_()},se.prototype.removeObserver=function(K){var w=this.observers_,te=w.indexOf(K);~te&&w.splice(te,1),!w.length&&this.connected_&&this.disconnect_()},se.prototype.refresh=function(){var K=this.updateObservers_();K&&this.refresh()},se.prototype.updateObservers_=function(){var K=this.observers_.filter(function(w){return w.gatherActive(),w.hasActive()});return K.forEach(function(w){return w.broadcastActive()}),K.length>0},se.prototype.connect_=function(){!ie||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},se.prototype.disconnect_=function(){!ie||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},se.prototype.onTransitionEnd_=function(K){var w=K.propertyName,te=w===void 0?"":w,ne=Q.some(function(z){return!!~te.indexOf(z)});ne&&this.refresh()},se.getInstance=function(){return this.instance_||(this.instance_=new se),this.instance_},se.instance_=null,se}(),P=function(se,K){for(var w=0,te=Object.keys(K);w<te.length;w++){var ne=te[w];Object.defineProperty(se,ne,{value:K[ne],enumerable:!1,writable:!1,configurable:!0})}return se},y=function(se){var K=se&&se.ownerDocument&&se.ownerDocument.defaultView;return K||U},S=ae(0,0,0,0);function I(se){return parseFloat(se)||0}function N(se){for(var K=[],w=1;w<arguments.length;w++)K[w-1]=arguments[w];return K.reduce(function(te,ne){var z=se["border-"+ne+"-width"];return te+I(z)},0)}function W(se){for(var K=["top","right","bottom","left"],w={},te=0,ne=K;te<ne.length;te++){var z=ne[te],x=se["padding-"+z];w[z]=I(x)}return w}function H(se){var K=se.getBBox();return ae(0,0,K.width,K.height)}function j(se){var K=se.clientWidth,w=se.clientHeight;if(!K&&!w)return S;var te=y(se).getComputedStyle(se),ne=W(te),z=ne.left+ne.right,x=ne.top+ne.bottom,T=I(te.width),G=I(te.height);if(te.boxSizing==="border-box"&&(Math.round(T+z)!==K&&(T-=N(te,"left","right")+z),Math.round(G+x)!==w&&(G-=N(te,"top","bottom")+x)),!V(se)){var ve=Math.round(T+z)-K,We=Math.round(G+x)-w;Math.abs(ve)!==1&&(T-=ve),Math.abs(We)!==1&&(G-=We)}return ae(ne.left,ne.top,T,G)}var A=function(){return typeof SVGGraphicsElement!="undefined"?function(se){return se instanceof y(se).SVGGraphicsElement}:function(se){return se instanceof y(se).SVGElement&&typeof se.getBBox=="function"}}();function V(se){return se===y(se).document.documentElement}function R(se){return ie?A(se)?H(se):j(se):S}function L(se){var K=se.x,w=se.y,te=se.width,ne=se.height,z=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,x=Object.create(z.prototype);return P(x,{x:K,y:w,width:te,height:ne,top:w,right:K+te,bottom:ne+w,left:K}),x}function ae(se,K,w,te){return{x:se,y:K,width:w,height:te}}var pe=function(){function se(K){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ae(0,0,0,0),this.target=K}return se.prototype.isActive=function(){var K=R(this.target);return this.contentRect_=K,K.width!==this.broadcastWidth||K.height!==this.broadcastHeight},se.prototype.broadcastRect=function(){var K=this.contentRect_;return this.broadcastWidth=K.width,this.broadcastHeight=K.height,K},se}(),ce=function(){function se(K,w){var te=L(w);P(this,{target:K,contentRect:te})}return se}(),Le=function(){function se(K,w,te){if(this.activeObservations_=[],this.observations_=new l,typeof K!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=K,this.controller_=w,this.callbackCtx_=te}return se.prototype.observe=function(K){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(K instanceof y(K).Element))throw new TypeError('parameter 1 is not of type "Element".');var w=this.observations_;w.has(K)||(w.set(K,new pe(K)),this.controller_.addObserver(this),this.controller_.refresh())}},se.prototype.unobserve=function(K){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(K instanceof y(K).Element))throw new TypeError('parameter 1 is not of type "Element".');var w=this.observations_;w.has(K)&&(w.delete(K),w.size||this.controller_.removeObserver(this))}},se.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},se.prototype.gatherActive=function(){var K=this;this.clearActive(),this.observations_.forEach(function(w){w.isActive()&&K.activeObservations_.push(w)})},se.prototype.broadcastActive=function(){if(this.hasActive()){var K=this.callbackCtx_,w=this.activeObservations_.map(function(te){return new ce(te.target,te.broadcastRect())});this.callback_.call(K,w,K),this.clearActive()}},se.prototype.clearActive=function(){this.activeObservations_.splice(0)},se.prototype.hasActive=function(){return this.activeObservations_.length>0},se}(),$e=typeof WeakMap!="undefined"?new WeakMap:new l,Te=function(){function se(K){if(!(this instanceof se))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var w=C.getInstance(),te=new Le(K,w,this);$e.set(this,te)}return se}();["observe","unobserve","disconnect"].forEach(function(se){Te.prototype[se]=function(){var K;return(K=$e.get(this))[se].apply(K,arguments)}});var Pe=function(){return typeof U.ResizeObserver!="undefined"?U.ResizeObserver:Te}();qe.Z=Pe},62752:function(ln,qe){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.SizeSensorId=qe.SensorTabIndex=qe.SensorClassName=void 0;var d=qe.SizeSensorId="size-sensor-id",l=qe.SensorClassName="size-sensor-object",ie=qe.SensorTabIndex="-1"},25224:function(ln,qe){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=void 0;var d=qe.default=function(ie){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,le=null;return function(){for(var F=this,g=arguments.length,q=new Array(g),Q=0;Q<g;Q++)q[Q]=arguments[Q];clearTimeout(le),le=setTimeout(function(){ie.apply(F,q)},U)}}},82196:function(ln,qe){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=void 0;var d=1,l=qe.default=function(){return"".concat(d++)}},10413:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.ver=qe.clear=qe.bind=void 0;var l=d(2963),ie=qe.bind=function(g,q){var Q=(0,l.getSensor)(g);return Q.bind(q),function(){Q.unbind(q)}},U=qe.clear=function(g){var q=(0,l.getSensor)(g);(0,l.removeSensor)(q)},le=qe.ver="1.0.3"},2963:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.removeSensor=qe.getSensor=qe.Sensors=void 0;var l=le(d(82196)),ie=d(42065),U=d(62752);function le(o){return o&&o.__esModule?o:{default:o}}var F=qe.Sensors={};function g(o){o&&F[o]&&delete F[o]}var q=qe.getSensor=function(C){var P=C.getAttribute(U.SizeSensorId);if(P&&F[P])return F[P];var y=(0,l.default)();C.setAttribute(U.SizeSensorId,y);var S=(0,ie.createSensor)(C,function(){return g(y)});return F[y]=S,S},Q=qe.removeSensor=function(C){var P=C.element.getAttribute(U.SizeSensorId);C.destroy(),g(P)}},42065:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.createSensor=void 0;var l=d(38132),ie=d(38950),U=qe.createSensor=typeof ResizeObserver!="undefined"?ie.createSensor:l.createSensor},38132:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.createSensor=void 0;var l=U(d(25224)),ie=d(62752);function U(F){return F&&F.__esModule?F:{default:F}}var le=qe.createSensor=function(g,q){var Q=void 0,o=[],C=function(){getComputedStyle(g).position==="static"&&(g.style.position="relative");var W=document.createElement("object");return W.onload=function(){W.contentDocument.defaultView.addEventListener("resize",P),P()},W.style.display="block",W.style.position="absolute",W.style.top="0",W.style.left="0",W.style.height="100%",W.style.width="100%",W.style.overflow="hidden",W.style.pointerEvents="none",W.style.zIndex="-1",W.style.opacity="0",W.setAttribute("class",ie.SensorClassName),W.setAttribute("tabindex",ie.SensorTabIndex),W.type="text/html",g.appendChild(W),W.data="about:blank",W},P=(0,l.default)(function(){o.forEach(function(N){N(g)})}),y=function(W){Q||(Q=C()),o.indexOf(W)===-1&&o.push(W)},S=function(){Q&&Q.parentNode&&(Q.contentDocument&&Q.contentDocument.defaultView.removeEventListener("resize",P),Q.parentNode.removeChild(Q),g.removeAttribute(ie.SizeSensorId),Q=void 0,o=[],q&&q())},I=function(W){var H=o.indexOf(W);H!==-1&&o.splice(H,1),o.length===0&&Q&&S()};return{element:g,bind:y,destroy:S,unbind:I}}},38950:function(ln,qe,d){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.createSensor=void 0;var l=d(62752),ie=U(d(25224));function U(F){return F&&F.__esModule?F:{default:F}}var le=qe.createSensor=function(g,q){var Q=void 0,o=[],C=(0,ie.default)(function(){o.forEach(function(N){N(g)})}),P=function(){var W=new ResizeObserver(C);return W.observe(g),C(),W},y=function(W){Q||(Q=P()),o.indexOf(W)===-1&&o.push(W)},S=function(){Q&&Q.disconnect(),o=[],Q=void 0,g.removeAttribute(l.SizeSensorId),q&&q()},I=function(W){var H=o.indexOf(W);H!==-1&&o.splice(H,1),o.length===0&&Q&&S()};return{element:g,bind:y,destroy:S,unbind:I}}},98040:function(ln){ln.exports=function(){var qe=document.getSelection();if(!qe.rangeCount)return function(){};for(var d=document.activeElement,l=[],ie=0;ie<qe.rangeCount;ie++)l.push(qe.getRangeAt(ie));switch(d.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":d.blur();break;default:d=null;break}return qe.removeAllRanges(),function(){qe.type==="Caret"&&qe.removeAllRanges(),qe.rangeCount||l.forEach(function(U){qe.addRange(U)}),d&&d.focus()}}},4977:function(ln){"use strict";ln.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16471:function(ln,qe,d){"use strict";d.d(qe,{ZP:function(){return bo}});const l=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},ie=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=U},U=Number.MAX_SAFE_INTEGER||9007199254740991;let le=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),F=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),g=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var q={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Q={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{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 C{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 o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function P(a,e,t){return(e=W(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function y(){return y=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},y.apply(null,arguments)}function S(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function I(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?S(Object(t),!0).forEach(function(n){P(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function N(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function W(a){var e=N(a,"string");return typeof e=="symbol"?e:e+""}class H{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=j,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 j=function(){},A={trace:j,debug:j,log:j,warn:j,info:j,error:j};function V(){return y({},A)}function R(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):j}function L(a,e,t){return e[a]?e[a].bind(e):R(a,t)}const ae=V();function pe(a,e,t){const n=V();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=L(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.15`)}catch(i){return V()}r.forEach(i=>{ae[i]=L(i,a)})}else y(ae,n);return n}const ce=ae;function Le(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function $e(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function Te(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function Pe(a,e=!1){if(typeof TextDecoder!="undefined"){const m=new TextDecoder("utf-8").decode(a);if(e){const v=m.indexOf("\0");return v!==-1?m.substring(0,v):m}return m.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",c=0;for(;c<t;){if(n=a[c++],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=a[c++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[c++],i=a[c++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}function se(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}function K(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function w(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var te={exports:{}},ne;function z(){return ne||(ne=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(p,m,v){if(v=v||{},p=p.trim(),m=m.trim(),!m){if(!v.alwaysNormalize)return p;var E=c.parseURL(p);if(!E)throw new Error("Error trying to parse base URL.");return E.path=c.normalizePath(E.path),c.buildURLFromParts(E)}var k=c.parseURL(m);if(!k)throw new Error("Error trying to parse relative URL.");if(k.scheme)return v.alwaysNormalize?(k.path=c.normalizePath(k.path),c.buildURLFromParts(k)):m;var X=c.parseURL(p);if(!X)throw new Error("Error trying to parse base URL.");if(!X.netLoc&&X.path&&X.path[0]!=="/"){var J=r.exec(X.path);X.netLoc=J[1],X.path=J[2]}X.netLoc&&!X.path&&(X.path="/");var De={scheme:X.scheme,netLoc:k.netLoc,path:null,params:k.params,query:k.query,fragment:k.fragment};if(!k.netLoc&&(De.netLoc=X.netLoc,k.path[0]!=="/"))if(!k.path)De.path=X.path,k.params||(De.params=X.params,k.query||(De.query=X.query));else{var Ie=X.path,at=Ie.substring(0,Ie.lastIndexOf("/")+1)+k.path;De.path=c.normalizePath(at)}return De.path===null&&(De.path=v.alwaysNormalize?c.normalizePath(k.path):k.path),c.buildURLFromParts(De)},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(i,"");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}};a.exports=c})()}(te)),te.exports}var x=z();class T{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var G={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ve{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,Ve(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={[G.AUDIO]:null,[G.VIDEO]:null,[G.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 T),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=x.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[G.AUDIO]=null,e[G.VIDEO]=null,e[G.AUDIOVIDEO]=null}}function We(a){return a.sn!=="initSegment"}class st extends ve{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(l(e)&&l(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=l(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(!l(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return We(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,i,s=!1){const{elementaryStreams:c}=this,p=c[e];if(!p){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,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,i)}}class _e extends ve{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.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,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function Ke(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||Ke(t,e)}}function Ve(a,e){const t=Ke(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const rt=Math.pow(2,32)-1,Ae=[].push,Tt={video:1,audio:2,id3:3,text:4};function tt(a){return String.fromCharCode.apply(null,a)}function Pt(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Xe(a,e){const t=Ne(a,e);return t<0?4294967296+t:t}function Qe(a,e){let t=Xe(a,e);return t*=Math.pow(2,32),t+=Xe(a,e+4),t}function Ne(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Oe(a){const e=a.byteLength;for(let t=0;t<e;){const n=Xe(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function re(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Xe(a,r),s=tt(a.subarray(r+4,r+8)),c=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,c));else{const p=re(a.subarray(r+8,c),e.slice(1));p.length&&Ae.apply(t,p)}r=c}return t}function Fe(a){const e=[],t=a[0];let n=8;const r=Xe(a,n);n+=4;let i=0,s=0;t===0?(i=Xe(a,n),s=Xe(a,n+4),n+=8):(i=Qe(a,n),s=Qe(a,n+8),n+=16),n+=2;let c=a.length+s;const p=Pt(a,n);n+=2;for(let m=0;m<p;m++){let v=n;const E=Xe(a,v);v+=4;const k=E&2147483647;if((E&2147483648)>>>31===1)return ce.warn("SIDX has hierarchical references (not supported)"),null;const J=Xe(a,v);v+=4,e.push({referenceSize:k,subsegmentDuration:J,info:{duration:J/r,start:c,end:c+k-1}}),c+=k,v+=4,n=v}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:p,references:e}}function Re(a){const e=[],t=re(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=re(i,["tkhd"])[0];if(s){let c=s[0];const p=Xe(s,c===0?12:20),m=re(i,["mdia","mdhd"])[0];if(m){c=m[0];const v=Xe(m,c===0?12:20),E=re(i,["mdia","hdlr"])[0];if(E){const k=tt(E.subarray(8,12)),X={soun:G.AUDIO,vide:G.VIDEO}[k],J=re(i,["mdia","minf","stbl","stsd"])[0],De=Z(J);X?(e[p]={timescale:v,type:X,stsd:De},e[X]=I({timescale:v,id:p},De)):e[p]={timescale:v,type:k,stsd:De}}}}}return re(a,["moov","mvex","trex"]).forEach(r=>{const i=Xe(r,4),s=e[i];s&&(s.default={duration:Xe(r,12),flags:Xe(r,20)})}),e}function Z(a){const e=a.subarray(8),t=e.subarray(86),n=tt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const m=re(e,[n])[0].subarray(n==="enca"?28:78);re(m,["sinf"]).forEach(E=>{const k=re(E,["schm"])[0];if(k){const X=tt(k.subarray(4,8));if(X==="cbcs"||X==="cenc"){const J=re(E,["frma"])[0];J&&(r=tt(J))}}})}const c=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const p=re(t,["avcC"])[0];p&&p.length>3&&(r+="."+ge(p[1])+ge(p[2])+ge(p[3]),i=O(c==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const p=re(e,[n])[0],m=re(p.subarray(28),["esds"])[0];if(m&&m.length>7){let v=4;if(m[v++]!==3)break;v=Ee(m,v),v+=2;const E=m[v++];if(E&128&&(v+=2),E&64&&(v+=m[v++]),m[v++]!==4)break;v=Ee(m,v);const k=m[v++];if(k===64)r+="."+ge(k);else break;if(v+=12,m[v++]!==5)break;v=Ee(m,v);const X=m[v++];let J=(X&248)>>3;J===31&&(J+=1+((X&7)<<3)+((m[v]&224)>>5)),r+="."+J}break}case"hvc1":case"hev1":{const p=re(t,["hvcC"])[0];if(p&&p.length>12){const m=p[1],v=["","A","B","C"][m>>6],E=m&31,k=Xe(p,2),X=(m&32)>>5?"H":"L",J=p[12],De=p.subarray(6,12);r+="."+v+E,r+="."+me(k).toString(16).toUpperCase(),r+="."+X+J;let Ie="";for(let at=De.length;at--;){const pt=De[at];(pt||Ie)&&(Ie="."+pt.toString(16).toUpperCase()+Ie)}r+=Ie}i=O(c=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=O(r,t)||r;break}case"vp09":{const p=re(t,["vpcC"])[0];if(p&&p.length>6){const m=p[4],v=p[5],E=p[6]>>4&15;r+="."+we(m)+"."+we(v)+"."+we(E)}break}case"av01":{const p=re(t,["av1C"])[0];if(p&&p.length>2){const m=p[1]>>>5,v=p[1]&31,E=p[2]>>>7?"H":"M",k=(p[2]&64)>>6,X=(p[2]&32)>>5,J=m===2&&k?X?12:10:k?10:8,De=(p[2]&16)>>4,Ie=(p[2]&8)>>3,at=(p[2]&4)>>2,pt=p[2]&3;r+="."+m+"."+we(v)+E+"."+we(J)+"."+De+"."+Ie+at+pt+"."+we(1)+"."+we(1)+"."+we(1)+"."+0,i=O("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function O(a,e){const t=re(e,["dvvC"]),n=t.length?t[0]:re(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+we(r)+"."+we(i)}}function me(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function Ee(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function ge(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function we(a){return(a<10?"0":"")+a}function ke(a,e){if(!a||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&oe(a,(n,r)=>{const i=n.subarray(8,24);i.some(s=>s!==0)||(ce.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${se(i)} -> ${se(t)}`),n.set(t,8))})}function Ye(a){const e=[];return oe(a,t=>e.push(t.subarray(8,24))),e}function oe(a,e){re(a,["moov","trak"]).forEach(n=>{const r=re(n,["mdia","minf","stbl","stsd"])[0];if(!r)return;const i=r.subarray(8);let s=re(i,["enca"]);const c=s.length>0;c||(s=re(i,["encv"])),s.forEach(p=>{const m=c?p.subarray(28):p.subarray(78);re(m,["sinf"]).forEach(E=>{const k=fe(E);k&&e(k,c)})})})}function fe(a){const e=re(a,["schm"])[0];if(e){const t=tt(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=re(a,["schi","tenc"])[0];if(n)return n}}}function dt(a,e,t){const n={},r=re(a,["moof","traf"]);for(let i=0;i<r.length;i++){const s=r[i],c=re(s,["tfhd"])[0],p=Xe(c,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],E=re(s,["tfdt"])[0];if(E){const _t=E[0];let $t=Xe(E,4);_t===1&&($t===rt?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):($t*=rt+1,$t+=Xe(E,8))),l($t)&&(!l(v.start)||$t<v.start)&&(v.start=$t)}const k=m.default,X=Xe(c,0)|(k==null?void 0:k.flags);let J=(k==null?void 0:k.duration)||0;X&8&&(X&2?J=Xe(c,12):J=Xe(c,8));const De=re(s,["trun"]);let Ie=v.start||0,at=0,pt=J;for(let _t=0;_t<De.length;_t++){const $t=De[_t],Ht=Xe($t,4),In=v.sampleCount;v.sampleCount+=Ht;const Yt=$t[3]&1,mn=$t[3]&4,hn=$t[2]&1,en=$t[2]&2,Kn=$t[2]&4,br=$t[2]&8;let kr=8,Wr=Ht;for(Yt&&(kr+=4),mn&&Ht&&(!($t[kr+1]&1)&&v.keyFrameIndex===void 0&&(v.keyFrameIndex=In),kr+=4,hn?(pt=Xe($t,kr),kr+=4):pt=J,en&&(kr+=4),br&&(kr+=4),Ie+=pt,at+=pt,Wr--);Wr--;)hn?(pt=Xe($t,kr),kr+=4):pt=J,en&&(kr+=4),Kn&&($t[kr+1]&1||v.keyFrameIndex===void 0&&(v.keyFrameIndex=v.sampleCount-(Wr+1),v.keyFrameStart=Ie),kr+=4),br&&(kr+=4),Ie+=pt,at+=pt;!at&&J&&(at+=J*Ht)}v.duration+=at}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,s=0;const c=re(a,["sidx"]);for(let p=0;p<c.length;p++){const m=Fe(c[p]);if(m!=null&&m.references){i=Math.min(i,m.earliestPresentationTime/m.timescale);const v=m.references.reduce((E,k)=>E+k.info.duration||0,0);s=Math.max(s,v+m.earliestPresentationTime/m.timescale)}}s&&l(s)&&Object.keys(n).forEach(p=>{n[p].duration||(n[p].duration=s*n[p].timescale-n[p].start)})}return n}function ot(a){const e={valid:null,remainder:null},t=re(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function ft(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function ht(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return re(n,["moof"]).map(p=>{const m=p.byteOffset-8;re(p,["traf"]).map(E=>{const k=re(E,["tfdt"]).map(X=>{const J=X[0];let De=Xe(X,4);return J===1&&(De*=Math.pow(2,32),De+=Xe(X,8)),De/r})[0];return k!==void 0&&(a=k),re(E,["tfhd"]).map(X=>{const J=Xe(X,4),De=Xe(X,0)&16777215,Ie=(De&1)!==0,at=(De&2)!==0,pt=(De&8)!==0;let _t=0;const $t=(De&16)!==0;let Ht=0;const In=(De&32)!==0;let Yt=8;J===i&&(Ie&&(Yt+=8),at&&(Yt+=4),pt&&(_t=Xe(X,Yt),Yt+=4),$t&&(Ht=Xe(X,Yt),Yt+=4),In&&(Yt+=4),e.type==="video"&&(s=Ge(e.codec)),re(E,["trun"]).map(mn=>{const hn=mn[0],en=Xe(mn,0)&16777215,Kn=(en&1)!==0;let br=0;const kr=(en&4)!==0,Wr=(en&256)!==0;let Nr=0;const fr=(en&512)!==0;let Br=0;const Tr=(en&1024)!==0,Zr=(en&2048)!==0;let oi=0;const gr=Xe(mn,4);let vr=8;Kn&&(br=Xe(mn,vr),vr+=4),kr&&(vr+=4);let Si=br+m;for(let is=0;is<gr;is++){if(Wr?(Nr=Xe(mn,vr),vr+=4):Nr=_t,fr?(Br=Xe(mn,vr),vr+=4):Br=Ht,Tr&&(vr+=4),Zr&&(hn===0?oi=Xe(mn,vr):oi=Ne(mn,vr),vr+=4),e.type===G.VIDEO){let Ai=0;for(;Ai<Br;){const ji=Xe(n,Si);if(Si+=4,Ct(s,n[Si])){const ia=n.subarray(Si,Si+ji);gt(ia,s?2:1,a+oi/r,t)}Si+=ji,Ai+=ji+4}}a+=Nr/r}}))})})}),t}function Ge(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Ct(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function gt(a,e,t,n){const r=Ce(a);let i=0;i+=e;let s=0,c=0,p=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;p=r[i++],s+=p}while(p===255);c=0;do{if(i>=r.length)break;p=r[i++],c+=p}while(p===255);const m=r.length-i;let v=i;if(c<m)i+=c;else if(c>m){ce.error(`Malformed SEI payload. ${c} is too small, only ${m} bytes left to parse.`);break}if(s===4){if(r[v++]===181){const k=Pt(r,v);if(v+=2,k===49){const X=Xe(r,v);if(v+=4,X===1195456820){const J=r[v++];if(J===3){const De=r[v++],Ie=31&De,at=64&De,pt=at?2+Ie*3:0,_t=new Uint8Array(pt);if(at){_t[0]=De;for(let $t=1;$t<pt;$t++)_t[$t]=r[v++]}n.push({type:J,payloadType:s,pts:t,bytes:_t})}}}}}else if(s===5&&c>16){const E=[];for(let J=0;J<16;J++){const De=r[v++].toString(16);E.push(De.length==1?"0"+De:De),(J===3||J===5||J===7||J===9)&&E.push("-")}const k=c-16,X=new Uint8Array(k);for(let J=0;J<k;J++)X[J]=r[v++];n.push({payloadType:s,pts:t,uuid:E.join(""),userData:Pe(X),userDataBytes:X})}}}function Ce(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function Je(a){const e=a[0];let t="",n="",r=0,i=0,s=0,c=0,p=0,m=0;if(e===0){for(;tt(a.subarray(m,m+1))!=="\0";)t+=tt(a.subarray(m,m+1)),m+=1;for(t+=tt(a.subarray(m,m+1)),m+=1;tt(a.subarray(m,m+1))!=="\0";)n+=tt(a.subarray(m,m+1)),m+=1;n+=tt(a.subarray(m,m+1)),m+=1,r=Xe(a,12),i=Xe(a,16),c=Xe(a,20),p=Xe(a,24),m=28}else if(e===1){m+=4,r=Xe(a,m),m+=4;const E=Xe(a,m);m+=4;const k=Xe(a,m);for(m+=4,s=lc(2,32)*E+k,ie(s)||(s=Number.MAX_SAFE_INTEGER,ce.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=Xe(a,m),m+=4,p=Xe(a,m),m+=4;tt(a.subarray(m,m+1))!=="\0";)t+=tt(a.subarray(m,m+1)),m+=1;for(t+=tt(a.subarray(m,m+1)),m+=1;tt(a.subarray(m,m+1))!=="\0";)n+=tt(a.subarray(m,m+1)),m+=1;n+=tt(a.subarray(m,m+1)),m+=1}const v=a.subarray(m,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:c,id:p,payload:v}}function _(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function D(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),_([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t)}function Ze(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=ee(r);e.push(i),n+=i.size}}return e}function ee(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,c=se(new Uint8Array(s,t+12,16));let p=null,m=null,v=0;if(i===0)v=28;else{const k=a.getUint32(28);if(!k||n<32+k*16)return{offset:t,size:e};p=[];for(let X=0;X<k;X++)p.push(new Uint8Array(s,t+32+X*16,16));v=32+k*16}if(!v)return{offset:t,size:e};const E=a.getUint32(v);return e-32<E?{offset:t,size:e}:(m=new Uint8Array(s,t+v+4,E),{version:i,systemId:c,kids:p,data:m,offset:t,size:e})}const ye=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Ot={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,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 He(a,e){const t=Ot[e];return!!t&&!!t[a.slice(0,4)]}function it(a,e,t=!0){return!a.split(",").some(n=>!ct(n,e,t))}function ct(a,e,t=!0){var n;const r=Le(t);return(n=r==null?void 0:r.isTypeSupported(he(a,e)))!=null?n:!1}function he(a,e){return`${e}/mp4;codecs=${a}`}function be(a){if(a){const e=a.substring(0,4);return Ot.video[e]}return 2}function je(a){const e=ye();return a.split(",").reduce((t,n)=>{const i=e&&Ge(n)?9:Ot.video[n];return i?(i*2+t)/(t?3:2):(Ot.audio[n]+t)/(t?2:1)},0)}const Ue={};function $(a,e=!0){if(Ue[a])return Ue[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(ct(t[r],"audio",e))return Ue[a]=t[r],t[r];if(t[r]==="mp3"&&(n=Le(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const ut=/flac|opus|mp4a\.40\.34/i;function xe(a,e=!0){return a.replace(ut,t=>$(t.toLowerCase(),e))}function At(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)He(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function zt(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(qt(a,"audio")||qt(a,"video")))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function qt(a,e){return He(a,e)&&ct(a,e)}function cn(a){const e=a.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 gn(a){if(a.startsWith("av01.")){const e=a.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 a}function En(a){const e=Le(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Fn(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Hn={supported:!0,powerEfficient:!0,smooth:!0},An={supported:!1,smooth:!1,powerEfficient:!1},qn={supported:!0,configurations:[],decodingInfoResults:[Hn]};function vn(a,e){return{supported:!1,configurations:e,decodingInfoResults:[An],error:a}}function Gt(a,e,t,n,r,i){const s=a.videoCodec,c=a.audioCodec?a.audioGroups:null,p=i==null?void 0:i.audioCodec,m=i==null?void 0:i.channels,v=m?parseInt(m):p?1/0:2;let E=null;if(c!=null&&c.length)try{c.length===1&&c[0]?E=e.groups[c[0]].channels:E=c.reduce((k,X)=>{if(X){const J=e.groups[X];if(!J)throw new Error(`Audio track group ${X} not found`);Object.keys(J.channels).forEach(De=>{k[De]=(k[De]||0)+J.channels[De]})}return k},{2:0})}catch(k){return!0}return s!==void 0&&(s.split(",").some(k=>Ge(k))||a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!E&&l(v)&&Object.keys(E).some(k=>parseInt(k)>v)}function Xt(a,e,t,n={}){const r=a.videoCodec;if(!r&&!a.audioCodec||!t)return Promise.resolve(qn);const i=[],s=Dn(a),c=s.length,p=Cn(a,e,c>0),m=p.length;for(let v=c||1*m||1;v--;){const E={type:"media-source"};if(c&&(E.video=s[v%c]),m){E.audio=p[v%m];const k=E.audio.bitrate;E.video&&k&&(E.video.bitrate-=k)}i.push(E)}if(r){const v=navigator.userAgent;if(r.split(",").some(E=>Ge(E))&&ye())return Promise.resolve(vn(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${v})`),i))}return Promise.all(i.map(v=>{const E=Be(v);return n[E]||(n[E]=t.decodingInfo(v))})).then(v=>({supported:!v.some(E=>!E.supported),configurations:i,decodingInfoResults:v})).catch(v=>({supported:!1,configurations:i,decodingInfoResults:[],error:v}))}function Dn(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=Et(a),r=a.width||640,i=a.height||480,s=a.frameRate||30,c=a.videoRange.toLowerCase();return t?t.map(p=>{const m={contentType:he(gn(p),"video"),width:r,height:i,bitrate:n,framerate:s};return c!=="sdr"&&(m.transferFunction=c),m}):[]}function Cn(a,e,t){var n;const r=(n=a.audioCodec)==null?void 0:n.split(","),i=Et(a);return r&&a.audioGroups?a.audioGroups.reduce((s,c)=>{var p;const m=c?(p=e.groups[c])==null?void 0:p.tracks:null;return m?m.reduce((v,E)=>{if(E.groupId===c){const k=parseFloat(E.channels||"");r.forEach(X=>{const J={contentType:he(X,"audio"),bitrate:t?yt(X,i):i};k&&(J.channels=""+k),v.push(J)})}return v},s):s},[]):[]}function yt(a,e){if(e<=1)return 1;let t=128e3;return a==="ec-3"?t=768e3:a==="ac-3"&&(t=64e4),Math.min(e/2,t)}function Et(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function Be(a){let e="";const{audio:t,video:n}=a;if(n){const r=Fn(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=Fn(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const lt=["NONE","TYPE-0","TYPE-1",null];function vt(a){return lt.indexOf(a)>-1}const xt=["SDR","PQ","HLG"];function Dt(a){return!!a&&xt.indexOf(a)>-1}var Jt={No:"",Yes:"YES",v2:"v2"};function pn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Jt.v2:Jt.Yes:Jt.No}class _n{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 Vt{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 yn(this._audioGroups,e)}hasSubtitleGroup(e){return yn(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 yn(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Nn(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function Sn(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||xt.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Nn(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const bt=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},Rt=(a,e)=>JSON.stringify(a,bt(e));function Wt(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,p=r==null?void 0:r.videoCodec,m=s&&parseInt(s)===2;let v=!1,E=!1,k=1/0,X=1/0,J=1/0,De=1/0,Ie=0,at=[];const{preferHDR:pt,allowedVideoRanges:_t}=Sn(e,r);for(let mn=i.length;mn--;){const hn=a[i[mn]];v||(v=hn.channels[2]>0),k=Math.min(k,hn.minHeight),X=Math.min(X,hn.minFramerate),J=Math.min(J,hn.minBitrate),_t.filter(Kn=>hn.videoRanges[Kn]>0).length>0&&(E=!0)}k=l(k)?k:0,X=l(X)?X:0;const $t=Math.max(1080,k),Ht=Math.max(30,X);J=l(J)?J:t,t=Math.max(J,t),E||(e=void 0);const In=i.length>1;return{codecSet:i.reduce((mn,hn)=>{const en=a[hn];if(hn===mn)return mn;if(at=E?_t.filter(Kn=>en.videoRanges[Kn]>0):[],In){if(en.minBitrate>t)return Bt(hn,`min bitrate of ${en.minBitrate} > current estimate of ${t}`),mn;if(!en.hasDefaultAudio)return Bt(hn,"no renditions with default or auto-select sound found"),mn;if(c&&hn.indexOf(c.substring(0,4))%5!==0)return Bt(hn,`audio codec preference "${c}" not found`),mn;if(s&&!m){if(!en.channels[s])return Bt(hn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(en.channels)})`),mn}else if((!c||m)&&v&&en.channels[2]===0)return Bt(hn,"no renditions with stereo sound found"),mn;if(en.minHeight>$t)return Bt(hn,`min resolution of ${en.minHeight} > maximum of ${$t}`),mn;if(en.minFramerate>Ht)return Bt(hn,`min framerate of ${en.minFramerate} > maximum of ${Ht}`),mn;if(!at.some(Kn=>en.videoRanges[Kn]>0))return Bt(hn,`no variants with VIDEO-RANGE of ${Rt(at)} found`),mn;if(p&&hn.indexOf(p.substring(0,4))%5!==0)return Bt(hn,`video codec preference "${p}" not found`),mn;if(en.maxScore<Ie)return Bt(hn,`max score of ${en.maxScore} < selected max of ${Ie}`),mn}return mn&&(je(hn)>=je(mn)||en.fragmentError>a[mn].fragmentError)?mn:(De=en.minIndex,Ie=en.maxScore,hn)},void 0),videoRanges:at,preferHDR:pt,minFramerate:X,minBitrate:J,minIndex:De}}function Bt(a,e){ce.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function jt(a){return a.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 Qt(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const c=i.audioGroups;let p=r[i.codecSet];p||(r[i.codecSet]=p={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!c,fragmentError:0}),p.minBitrate=Math.min(p.minBitrate,i.bitrate);const m=Math.min(i.height,i.width);return p.minHeight=Math.min(p.minHeight,m),p.minFramerate=Math.min(p.minFramerate,i.frameRate),p.minIndex=Math.min(p.minIndex,s),p.maxScore=Math.max(p.maxScore,i.score),p.fragmentError+=i.fragmentError,p.videoRanges[i.videoRange]=(p.videoRanges[i.videoRange]||0)+1,c&&c.forEach(v=>{if(!v)return;const E=e.groups[v];E&&(p.hasDefaultAudio=p.hasDefaultAudio||e.hasDefaultAudio?E.hasDefault:E.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(E.channels).forEach(k=>{p.channels[k]=(p.channels[k]||0)+E.channels[k]}))}),r},{})}function an(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function on(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Rn(a,r,t))return n}return-1}function Rn(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:c}=a,p=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||$n(i,e.lang))&&(i===void 0||e.assocLang===s)&&(c===void 0||e.default===c)&&(p===void 0||e.forced===p)&&(!("characteristics"in a)||dr(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function $n(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function dr(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function jn(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function zn(a,e,t,n,r){const i=e[n],c=e.reduce((k,X,J)=>{const De=X.uri;return(k[De]||(k[De]=[])).push(J),k},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const p=i.videoRange,m=i.frameRate,v=i.codecSet.substring(0,4),E=er(e,n,k=>{if(k.videoRange!==p||k.frameRate!==m||k.codecSet.substring(0,4)!==v)return!1;const X=k.audioGroups,J=t.filter(De=>!X||X.indexOf(De.groupId)!==-1);return on(a,J,r)>-1});return E>-1?E:er(e,n,k=>{const X=k.audioGroups,J=t.filter(De=>!X||X.indexOf(De.groupId)!==-1);return on(a,J,r)>-1})}function er(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function Xn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class sr extends H{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:i,hls:s}=this,{autoLevelEnabled:c,media:p}=s;if(!r||!p)return;const m=performance.now(),v=i?i.stats:r.stats,E=i?i.duration:r.duration,k=m-v.loading.start,X=s.minAutoLevel,J=r.level,De=this._nextAutoLevel;if(v.aborted||v.loaded&&v.loaded===v.total||J<=X){this.clearTimer(),this._nextAutoLevel=-1;return}if(!c)return;const Ie=De>-1&&De!==J,at=!!t||Ie;if(!at&&(p.paused||!p.playbackRate||!p.readyState))return;const pt=s.mainForwardBufferInfo;if(!at&&pt===null)return;const _t=this.bwEstimator.getEstimateTTFB(),$t=Math.abs(p.playbackRate);if(k<=Math.max(_t,1e3*(E/($t*2))))return;const Ht=pt?pt.len/$t:0,In=v.loading.first?v.loading.first-v.loading.start:-1,Yt=v.loaded&&In>-1,mn=this.getBwEstimate(),hn=s.levels,en=hn[J],Kn=Math.max(v.loaded,Math.round(E*(r.bitrate||en.averageBitrate)/8));let br=Yt?k-In:k;br<1&&Yt&&(br=Math.min(k,v.loaded*8/mn));const kr=Yt?v.loaded*1e3/br:0,Wr=_t/1e3,Nr=kr?(Kn-v.loaded)/kr:Kn*8/mn+Wr;if(Nr<=Ht)return;const fr=kr?kr*8:mn,Br=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,Tr=this.hls.config.abrBandWidthUpFactor;let Zr=Number.POSITIVE_INFINITY,oi;for(oi=J-1;oi>X;oi--){const is=hn[oi].maxBitrate,Ai=!hn[oi].details||Br;if(Zr=this.getTimeToLoadFrag(Wr,fr,E*is,Ai),Zr<Math.min(Ht,E+Wr))break}if(Zr>=Nr||Zr>E*10)return;Yt?this.bwEstimator.sample(k-Math.min(_t,In),v.loaded):this.bwEstimator.sampleTTFB(k);const gr=hn[oi].maxBitrate;this.getBwEstimate()*Tr>gr&&this.resetEstimator(gr);const vr=this.findBestLevel(gr,X,oi,0,Ht,1,1);vr>-1&&(oi=vr),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${J} is loading too slowly;
|
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${Ht.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Nr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${Zr.toFixed(3)} s
|
|
|
TTFB estimate: ${In|0} ms
|
|
|
Current BW estimate: ${l(mn)?mn|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${oi} @ ${gr|0} bps`),s.nextLoadLevel=s.nextAutoLevel=oi,this.clearTimer();const Si=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===oi&&oi>0){const is=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${oi>0?"and switching down":""}
|
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${is.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,oi>X){let Ai=this.findBestLevel(this.hls.levels[X].bitrate,X,oi,0,is,1,1);Ai===-1&&(Ai=X),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ai,this.resetEstimator(this.hls.levels[Ai].bitrate)}}};Ie||Nr>Zr*2?Si():this.timer=self.setInterval(Si,Zr*1e3),s.trigger(g.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,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 C(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 F.BUFFER_ADD_CODEC_ERROR:case F.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case F.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),c=i?i.stats:n.stats,p=s-c.loading.start,m=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&m>-1){const E=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(p-Math.min(E,m),c.loaded)}else this.bwEstimator.sampleTTFB(p)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;l(i)&&(this.lastLevelLoadSec=i/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===Q.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],c=(s.loaded?s.loaded.bytes:0)+r.loaded,p=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:c,duration:p},s.realBitrate=Math.round(8*c/p)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(g.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Q.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,c=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 ${c}`),c}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,c=t?t.duration:e?e.duration:0,p=this.getBwEstimate(),m=this.getStarvationDelay();let v=i.abrBandWidthFactor,E=i.abrBandWidthUpFactor;if(m){const Ie=this.findBestLevel(p,s,r,m,0,v,E);if(Ie>=0)return this.rebufferNotice=-1,Ie}let k=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!m){const Ie=this.bitrateTestDelay;Ie&&(k=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-Ie,this.info(`bitrate test took ${Math.round(1e3*Ie)}ms, set first fragment max fetchDuration to ${Math.round(1e3*k)} ms`),v=E=1)}const X=this.findBestLevel(p,s,r,m,k,v,E);if(this.rebufferNotice!==X&&(this.rebufferNotice=X,this.info(`${m?"rebuffering expected":"buffer is empty"}, optimal quality level ${X}`)),X>-1)return X;const J=n.levels[s],De=n.loadLevelObj;return De&&(J==null?void 0:J.bitrate)<De.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,i,s,c){var p;const m=r+i,v=this.lastLoadedFragLevel,E=v===-1?this.hls.firstLevel:v,{fragCurrent:k,partCurrent:X}=this,{levels:J,allAudioTracks:De,loadLevel:Ie,config:at}=this.hls;if(J.length===1)return 0;const pt=J[E],_t=!!((p=this.hls.latestLevelDetails)!=null&&p.live),$t=Ie===-1||v===-1;let Ht,In="SDR",Yt=(pt==null?void 0:pt.frameRate)||0;const{audioPreference:mn,videoPreference:hn}=at,en=this.audioTracksByGroup||(this.audioTracksByGroup=jt(De));let Kn=-1;if($t){if(this.firstSelection!==-1)return this.firstSelection;const fr=this.codecTiers||(this.codecTiers=Qt(J,en,t,n)),Br=Wt(fr,In,e,mn,hn),{codecSet:Tr,videoRanges:Zr,minFramerate:oi,minBitrate:gr,minIndex:vr,preferHDR:Si}=Br;Kn=vr,Ht=Tr,In=Si?Zr[Zr.length-1]:Zr[0],Yt=oi,e=Math.max(e,gr),this.log(`picked start tier ${Rt(Br)}`)}else Ht=pt==null?void 0:pt.codecSet,In=pt==null?void 0:pt.videoRange;const br=X?X.duration:k?k.duration:0,kr=this.bwEstimator.getEstimateTTFB()/1e3,Wr=[];for(let fr=n;fr>=t;fr--){var Nr;const Br=J[fr],Tr=fr>E;if(!Br)continue;if(at.useMediaCapabilities&&!Br.supportedResult&&!Br.supportedPromise){const Ai=navigator.mediaCapabilities;typeof(Ai==null?void 0:Ai.decodingInfo)=="function"&&Gt(Br,en,In,Yt,e,mn)?(Br.supportedPromise=Xt(Br,en,Ai,this.supportedCache),Br.supportedPromise.then(ji=>{if(!this.hls)return;Br.supportedResult=ji;const ia=this.hls.levels,ea=ia.indexOf(Br);ji.error?this.warn(`MediaCapabilities decodingInfo error: "${ji.error}" for level ${ea} ${Rt(ji)}`):ji.supported?ji.decodingInfoResults.some(Oa=>Oa.smooth===!1||Oa.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${ea} not smooth or powerEfficient: ${Rt(ji)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${ea} ${Rt(ji)}`),ea>-1&&ia.length>1&&(this.log(`Removing unsupported level ${ea}`),this.hls.removeLevel(ea),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(ji=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${ji}`)})):Br.supportedResult=qn}if((Ht&&Br.codecSet!==Ht||In&&Br.videoRange!==In||Tr&&Yt>Br.frameRate||!Tr&&Yt>0&&Yt<Br.frameRate||(Nr=Br.supportedResult)!=null&&(Nr=Nr.decodingInfoResults)!=null&&Nr.some(Ai=>Ai.smooth===!1))&&(!$t||fr!==Kn)){Wr.push(fr);continue}const Zr=Br.details,oi=(X?Zr==null?void 0:Zr.partTarget:Zr==null?void 0:Zr.averagetargetduration)||br;let gr;Tr?gr=c*e:gr=s*e;const vr=br&&r>=br*2&&i===0?Br.averageBitrate:Br.maxBitrate,Si=this.getTimeToLoadFrag(kr,gr,vr*oi,Zr===void 0);if(gr>=vr&&(fr===v||Br.loadError===0&&Br.fragmentError===0)&&(Si<=kr||!l(Si)||_t&&!this.bitrateTestDelay||Si<m)){const Ai=this.forcedAutoLevel;return fr!==Ie&&(Ai===-1||Ai!==Ie)&&(Wr.length&&this.trace(`Skipped level(s) ${Wr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${J[Wr[0]].codecs}" ${J[Wr[0]].videoRange}; not compatible with "${Ht}" ${In}`),this.info(`switch candidate:${E}->${fr} adjustedbw(${Math.round(gr)})-bitrate=${Math.round(gr-vr)} ttfb:${kr.toFixed(1)} avgDuration:${oi.toFixed(1)} maxFetchDuration:${m.toFixed(1)} fetchDuration:${Si.toFixed(1)} firstSelection:${$t} codecSet:${Br.codecSet} videoRange:${Br.videoRange} hls.loadLevel:${Ie}`)),$t&&(this.firstSelection=fr),fr}}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 Wn={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function Qn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!l(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;for(let i=0;i<a.length;++i){const s=a[i];if(nr(e,t,s))return s}return null}function or(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const c=a.endDTS-t;c>0&&c<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&rr(t,n,i)===0||cr(i,a,Math.min(r,n))))return i;const s=Wn.search(e,rr.bind(null,t,n));return s&&(s!==a||!i)?s:i}function cr(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function rr(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function nr(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function ir(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){let n=a.fragments;const{fragmentHint:r}=a;r&&(n=n.concat(r));let i;return Wn.search(n,s=>s.cc<e?1:s.cc>e?-1:(i=s,s.end<=t?1:s.start>t?-1:0)),i||null}return null}function Vn(a){switch(a.details){case F.FRAG_LOAD_TIMEOUT:case F.KEY_LOAD_TIMEOUT:case F.LEVEL_LOAD_TIMEOUT:case F.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function $r(a){return a.details.startsWith("key")}function Kt(a){return $r(a)&&!!a.frag&&!a.frag.decryptdata}function ar(a,e){const t=Vn(e);return a.default[`${t?"timeout":"error"}Retry`]}function hr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Yr(a){return I(I({},a),{errorRetry:null,timeoutRetry:null})}function zr(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(li(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function li(a){return Qr(a)||!!a&&(a<400||a>499)}function Qr(a){return a===0&&navigator.onLine===!1}var Zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Pn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class sn extends H{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)===Q.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 c;return(c=s.details)==null?void 0:c.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,i=t.context;switch(t.details){case F.FRAG_LOAD_ERROR:case F.FRAG_LOAD_TIMEOUT:case F.KEY_LOAD_ERROR:case F.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case F.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=un();return}case F.FRAG_GAP:case F.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Zn.SendAlternateToPenaltyBox;return}case F.LEVEL_EMPTY_ERROR:case F.LEVEL_PARSING_ERROR:{var s;const p=t.parent===Q.MAIN?t.level:r.loadLevel;t.details===F.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 F.LEVEL_LOAD_ERROR:case F.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case F.AUDIO_TRACK_LOAD_ERROR:case F.AUDIO_TRACK_LOAD_TIMEOUT:case F.SUBTITLE_LOAD_ERROR:case F.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const p=r.loadLevelObj;if(p&&(i.type===q.AUDIO_TRACK&&p.hasAudioGroup(i.groupId)||i.type===q.SUBTITLE_TRACK&&p.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Zn.SendAlternateToPenaltyBox,t.errorAction.flags=Pn.MoveAllAlternatesMatchingHost;return}}return;case F.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Zn.SendAlternateToPenaltyBox,flags:Pn.MoveAllAlternatesMatchingHDCP};return;case F.KEY_SYSTEM_SESSION_UPDATE_FAILED:case F.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case F.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Zn.SendAlternateToPenaltyBox,flags:Pn.MoveAllAlternatesMatchingKey};return;case F.BUFFER_ADD_CODEC_ERROR:case F.REMUX_ALLOC_ERROR:case F.BUFFER_APPEND_ERROR:if(!t.errorAction){var c;t.errorAction=this.getLevelSwitchAction(t,(c=t.level)!=null?c:r.loadLevel)}return;case F.INTERNAL_EXCEPTION:case F.BUFFER_APPENDING_ERROR:case F.BUFFER_FULL_ERROR:case F.LEVEL_SWITCH_ERROR:case F.BUFFER_STALLED_ERROR:case F.BUFFER_SEEK_OVER_HOLE:case F.BUFFER_NUDGE_ON_STALL:t.errorAction=un();return}t.type===le.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=un())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=ar(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(zr(r,i,Vn(e),e.response))return{action:Zn.RetryRequest,flags:Pn.None,retryConfig:r,retryCount:i};const c=this.getLevelSwitchAction(e,t);return r&&(c.retryConfig=r,c.retryCount=i),c}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,c=ar($r(e)?s:i,e),p=t.levels.reduce((v,E)=>v+E.fragmentError,0);if(r&&(e.details!==F.FRAG_GAP&&r.fragmentError++,!Kt(e)&&zr(c,p,Vn(e),e.response)))return{action:Zn.RetryRequest,flags:Pn.None,retryConfig:c,retryCount:p};const m=this.getLevelSwitchAction(e,n);return c&&(m.retryConfig=c,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 i,s;const m=e.details;r.loadError++,m===F.BUFFER_APPEND_ERROR&&r.fragmentError++;let v=-1;const{levels:E,loadLevel:k,minAutoLevel:X,maxAutoLevel:J}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const De=(i=e.frag)==null?void 0:i.type,at=(De===Q.AUDIO&&m===F.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(m===F.BUFFER_ADD_CODEC_ERROR||m===F.BUFFER_APPEND_ERROR))&&E.some(({audioCodec:In})=>r.audioCodec!==In),_t=e.sourceBufferName==="video"&&(m===F.BUFFER_ADD_CODEC_ERROR||m===F.BUFFER_APPEND_ERROR)&&E.some(({codecSet:In,audioCodec:Yt})=>r.codecSet!==In&&r.audioCodec===Yt),{type:$t,groupId:Ht}=(s=e.context)!=null?s:{};for(let In=E.length;In--;){const Yt=(In+k)%E.length;if(Yt!==k&&Yt>=X&&Yt<=J&&E[Yt].loadError===0){var c,p;const mn=E[Yt];if(m===F.FRAG_GAP&&De===Q.MAIN&&e.frag){const hn=E[Yt].details;if(hn){const en=or(e.frag,hn.fragments,e.frag.start);if(en!=null&&en.gap)continue}}else{if($t===q.AUDIO_TRACK&&mn.hasAudioGroup(Ht)||$t===q.SUBTITLE_TRACK&&mn.hasSubtitleGroup(Ht))continue;if(De===Q.AUDIO&&(c=r.audioGroups)!=null&&c.some(hn=>mn.hasAudioGroup(hn))||De===Q.SUBTITLE&&(p=r.subtitleGroups)!=null&&p.some(hn=>mn.hasSubtitleGroup(hn))||at&&r.audioCodec===mn.audioCodec||_t&&r.codecSet===mn.codecSet||!at&&r.codecSet!==mn.codecSet)continue}v=Yt;break}}if(v>-1&&n.loadLevel!==v)return e.levelRetry=!0,this.playlistError=0,{action:Zn.SendAlternateToPenaltyBox,flags:Pn.None,nextAutoLevel:v}}return{action:Zn.SendAlternateToPenaltyBox,flags:Pn.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Zn.DoNothing:break;case Zn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==F.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Zn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r}=n,i=n.nextAutoLevel;switch(r){case Pn.None:this.switchLevel(e,i);break;case Pn.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=lt[lt.indexOf(v)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case Pn.MoveAllAlternatesMatchingKey:{const p=e.decryptdata;if(p){const m=this.hls.levels,v=m.length;for(let k=v;k--;)if(this.variantHasKey(m[k],p)){var s,c;this.log(`Banned key found in level ${k} (${m[k].bitrate}bps) or audio group "${(s=m[k].audioGroups)==null?void 0:s.join(",")}" (${(c=e.frag)==null?void 0:c.type} fragment) ${se(p.keyId||[])}`),m[k].fragmentError++,m[k].loadError++,this.log(`Removing level ${k} with key error (${e.error})`),this.hls.removeLevel(k)}const E=e.frag;if(this.hls.levels.length<v)n.resolved=!0;else if(E&&E.type!==Q.MAIN){const k=E.decryptdata;k&&!p.matches(k)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,i)}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===F.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=Fn(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${i} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(i))}}}function un(a){const e={action:Zn.DoNothing,flags:Pn.None};return a&&(e.resolved=!0),e}var Bn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Yn{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 i=n[r];if(!i)break;if(i.start<=e&&e<=i.end&&i.loaded)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const c=r[i[s]];if((c==null?void 0:c.body.type)===t&&(!n||c.buffered)){const p=c.body;if(p.start<=e&&e<=p.end)return p}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(c=>{const p=this.fragments[c];if(!p||s>=p.body.sn)return;if(!p.buffered&&(!p.loaded||i)){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 E=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return E&&this.removeFragment(p.body),E})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Ir(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(c=>{const p=n.elementaryStreams[c];if(!p)return;const m=t[c],v=s||p.partial===!0;i.range[c]=this.getBufferedTimes(n,e.part,v,m)}),i.loaded=null,Object.keys(i.range).length?(this.bufferedEnd(i,n),lr(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.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]=On(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Ir(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 i={time:[],partial:n},s=e.start,c=e.end,p=e.minEndPTS||c,m=e.maxStartPTS||s;for(let v=0;v<r.length;v++){const E=r.start(v)-this.bufferPadding,k=r.end(v)+this.bufferPadding;if(m>=E&&p<=k){i.time.push({startPTS:Math.max(s,r.start(v)),endPTS:Math.min(c,r.end(v))});break}else if(s<k&&c>E){const X=Math.max(s,r.start(v)),J=Math.min(c,r.end(v));J>X&&(i.partial=!0,i.time.push({startPTS:X,endPTS:J}))}else if(c<=E)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:c,fragments:p}=this;return Object.keys(p).forEach(m=>{const v=p[m];v&&lr(v)&&(r=v.body.start-c,i=v.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=v.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||lr(t))}getState(e){const t=Ir(e),n=this.fragments[t];return n?n.buffered?lr(n)?Bn.PARTIAL:Bn.OK:Bn.APPENDING:Bn.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)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,i=Ir(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const c=n.type;if(r){let m=this.activePartLists[c];m||(this.activePartLists[c]=m=[]),m.push(r)}this.timeRanges=i;const p=i[s];this.detectEvictedFragments(s,p,c,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Ir(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 i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const c=this.fragments[s];if(!c)return;const p=c.body;p.type!==n||r&&!p.gap||p.start<t&&p.end>e&&(c.buffered||i)&&this.removeFragment(p)})}removeFragment(e){const t=Ir(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=On(n,i=>i.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 lr(a){var e,t,n;return a.buffered&&!!(a.body.gap||(e=a.range.video)!=null&&e.partial||(t=a.range.audio)!=null&&t.partial||(n=a.range.audiovideo)!=null&&n.partial)}function Ir(a){return`${a.type}_${a.level}_${a.sn}`}function On(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var mr={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 mr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case mr.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 Jr(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class mi{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],c=n[3],p=this.invSubMix,m=p[0],v=p[1],E=p[2],k=p[3],X=new Uint32Array(256);let J=0,De=0,Ie=0;for(Ie=0;Ie<256;Ie++)Ie<128?X[Ie]=Ie<<1:X[Ie]=Ie<<1^283;for(Ie=0;Ie<256;Ie++){let at=De^De<<1^De<<2^De<<3^De<<4;at=at>>>8^at&255^99,e[J]=at,t[at]=J;const pt=X[J],_t=X[pt],$t=X[_t];let Ht=X[at]*257^at*16843008;r[J]=Ht<<24|Ht>>>8,i[J]=Ht<<16|Ht>>>16,s[J]=Ht<<8|Ht>>>24,c[J]=Ht,Ht=$t*16843009^_t*65537^pt*257^J*16843008,m[at]=Ht<<24|Ht>>>8,v[at]=Ht<<16|Ht>>>16,E[at]=Ht<<8|Ht>>>24,k[at]=Ht,J?(J=pt^X[X[X[$t^pt]]],De^=X[X[De]]):J=De=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let c,p;const m=this.keySchedule=new Uint32Array(s),v=this.invKeySchedule=new Uint32Array(s),E=this.sBox,k=this.rcon,X=this.invSubMix,J=X[0],De=X[1],Ie=X[2],at=X[3];let pt,_t;for(c=0;c<s;c++){if(c<i){pt=m[c]=t[c];continue}_t=pt,c%i===0?(_t=_t<<8|_t>>>24,_t=E[_t>>>24]<<24|E[_t>>>16&255]<<16|E[_t>>>8&255]<<8|E[_t&255],_t^=k[c/i|0]<<24):i>6&&c%i===4&&(_t=E[_t>>>24]<<24|E[_t>>>16&255]<<16|E[_t>>>8&255]<<8|E[_t&255]),m[c]=pt=(m[c-i]^_t)>>>0}for(p=0;p<s;p++)c=s-p,p&3?_t=m[c]:_t=m[c-4],p<4||c<=4?v[p]=_t:v[p]=J[E[_t>>>24]]^De[E[_t>>>16&255]]^Ie[E[_t>>>8&255]]^at[E[_t&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,i=this.invKeySchedule,s=this.invSBox,c=this.invSubMix,p=c[0],m=c[1],v=c[2],E=c[3],k=this.uint8ArrayToUint32Array_(n);let X=k[0],J=k[1],De=k[2],Ie=k[3];const at=new Int32Array(e),pt=new Int32Array(at.length);let _t,$t,Ht,In,Yt,mn,hn,en,Kn,br,kr,Wr,Nr,fr;const Br=this.networkToHostOrderSwap;for(;t<at.length;){for(Kn=Br(at[t]),br=Br(at[t+1]),kr=Br(at[t+2]),Wr=Br(at[t+3]),Yt=Kn^i[0],mn=Wr^i[1],hn=kr^i[2],en=br^i[3],Nr=4,fr=1;fr<r;fr++)_t=p[Yt>>>24]^m[mn>>16&255]^v[hn>>8&255]^E[en&255]^i[Nr],$t=p[mn>>>24]^m[hn>>16&255]^v[en>>8&255]^E[Yt&255]^i[Nr+1],Ht=p[hn>>>24]^m[en>>16&255]^v[Yt>>8&255]^E[mn&255]^i[Nr+2],In=p[en>>>24]^m[Yt>>16&255]^v[mn>>8&255]^E[hn&255]^i[Nr+3],Yt=_t,mn=$t,hn=Ht,en=In,Nr=Nr+4;_t=s[Yt>>>24]<<24^s[mn>>16&255]<<16^s[hn>>8&255]<<8^s[en&255]^i[Nr],$t=s[mn>>>24]<<24^s[hn>>16&255]<<16^s[en>>8&255]<<8^s[Yt&255]^i[Nr+1],Ht=s[hn>>>24]<<24^s[en>>16&255]<<16^s[Yt>>8&255]<<8^s[mn&255]^i[Nr+2],In=s[en>>>24]<<24^s[Yt>>16&255]<<16^s[mn>>8&255]<<8^s[hn&255]^i[Nr+3],pt[t]=Br(_t^X),pt[t+1]=Br(In^J),pt[t+2]=Br(Ht^De),pt[t+3]=Br($t^Ie),X=Kn,J=br,De=kr,Ie=Wr,t=t+4}return pt.buffer}}class Li{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=Gr(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Gr(a){switch(a){case mr.cbc:return"AES-CBC";case mr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const Ri=16;class qr{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?Jr(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((i,s)=>{const c=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(c,t,n,r);const p=this.flush();p?i(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:i,currentResult:s,remainderData:c}=this;if(r!==mr.cbc||t.byteLength!==16)return ce.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),c&&(e=ft(c,e),this.remainderData=null);const p=this.getValidChunk(e);if(!p.length)return null;i&&(n=i);let m=this.softwareDecrypter;m||(m=this.softwareDecrypter=new mi),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 Li(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Dr(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(ce.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){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"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Ri;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(ce.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const bi=Math.pow(2,17);class ri{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 Lr({type:le.NETWORK_ERROR,details:F.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,p)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(J=>J[0]==="GAP")){p(ii(e));return}else e.gap=!1;const m=this.loader=i?new i(r):new s(r),v=di(e);e.loader=m;const E=Yr(r.fragLoadPolicy.default),k={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:bi};e.stats=m.stats;const X={onSuccess:(J,De,Ie,at)=>{this.resetLoader(e,m);let pt=J.data;Ie.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(pt.slice(0,16)),pt=pt.slice(16)),c({frag:e,part:null,payload:pt,networkDetails:at})},onError:(J,De,Ie,at)=>{this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:I({url:n,data:void 0},J),error:new Error(`HTTP Error ${J.code} ${J.text}`),networkDetails:Ie,stats:at}))},onAbort:(J,De,Ie)=>{this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ie,stats:J}))},onTimeout:(J,De,Ie)=>{this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${k.timeout}ms`),networkDetails:Ie,stats:J}))}};t&&(X.onProgress=(J,De,Ie,at)=>t({frag:e,part:null,payload:Ie,networkDetails:at})),m.load(v,k,X)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((c,p)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){p(ii(e,t));return}const m=this.loader=i?new i(r):new s(r),v=di(e,t);e.loader=m;const E=Yr(r.fragLoadPolicy.default),k={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:bi};t.stats=m.stats,m.load(v,k,{onSuccess:(X,J,De,Ie)=>{this.resetLoader(e,m),this.updateStatsFromPart(e,t);const at={frag:e,part:t,payload:X.data,networkDetails:Ie};n(at),c(at)},onError:(X,J,De,Ie)=>{this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:I({url:v.url,data:void 0},X),error:new Error(`HTTP Error ${X.code} ${X.text}`),networkDetails:De,stats:Ie}))},onAbort:(X,J,De)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:De,stats:X}))},onTimeout:(X,J,De)=>{this.resetLoader(e,m),p(new Lr({type:le.NETWORK_ERROR,details:F.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${k.timeout}ms`),networkDetails:De,stats:X}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const p=Math.round(e.duration/t.duration),m=Math.min(Math.round(n.loaded/i),p),E=(p-m)*Math.round(n.loaded/m);n.total=n.loaded+E}else n.total=Math.max(n.loaded,n.total);const s=n.loading,c=r.loading;s.start?s.first+=c.first-c.start:(s.start=c.start,s.first=c.first),s.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function di(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(l(r)&&l(i)){var s;let c=r,p=i;if(a.sn==="initSegment"&&Oi((s=a.decryptdata)==null?void 0:s.method)){const m=i-r;m%16&&(p=i+(16-m%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=p}return n}function ii(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:le.MEDIA_ERROR,details:F.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new Lr(n)}function Oi(a){return a==="AES-128"||a==="AES-256"}class Lr extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Pi extends H{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 Mi{constructor(e,t,n,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ki(),this.buffering={audio:ki(),video:ki(),audiovideo:ki()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function ki(){return{start:0,executeStart:0,executeEnd:0,end:0}}const yr={length:0,start:()=>0,end:()=>0};class Gn{static isBuffered(e,t){if(e){const n=Gn.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=Gn.getBuffered(e);return Gn.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=Gn.bufferedRanges(e);if(r.length)return Gn.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,E)=>v.start-E.start||E.end-v.end);let r=-1,i=[];if(n)for(let v=0;v<e.length;v++){t>=e[v].start&&t<=e[v].end&&(r=v);const E=i.length;if(E){const k=i[E-1].end;e[v].start-k<n?e[v].end>k&&(i[E-1].end=e[v].end):i.push(e[v])}else i.push(e[v])}else i=e;let s=0,c,p=t,m=t;for(let v=0;v<i.length;v++){const E=i[v].start,k=i[v].end;if(r===-1&&t>=E&&t<=k&&(r=v),t+n>=E&&t<k)p=E,m=k,s=m-t;else if(t+n<E){c=E;break}}return{len:s,start:p||0,end:m||0,nextStart:c,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||yr}catch(t){return ce.log("failed to get media.buffered",t),yr}}}const pi=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ln(a){return pi.test(a)}function Fi(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(pi,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Os(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function vs(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const ss=/^(\d+)x(\d+)$/,ls=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Pr{constructor(e,t){typeof e=="string"&&(e=Pr.parseAttrList(e,t)),y(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,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=ss.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={},i='"';for(ls.lastIndex=0;(n=ls.exec(e))!==null;){const s=n[1].trim();let c=n[2];const p=c.indexOf(i)===0&&c.lastIndexOf(i)===c.length-1;let m=!1;if(p)c=c.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":m=!0}if(t&&(p||m))c=Fi(t,c);else if(!m&&!p)switch(s){case"CLOSED-CAPTIONS":if(c==="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":ce.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=c}return r}}const Gi="com.apple.hls.interstitial";function ds(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function _s(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class ci{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 i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){ce.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=y(new Pr({}),i,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 i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);l(i.getTime())&&(this._endDate=i)}}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?(ce.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(l(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===Gi}get isValid(){return!!this.id&&!this._badValueForSameId&&l(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 zi=10;class ns{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?l(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||zi}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 xr(a,e){return a.length===e.length?!a.some((t,n)=>t!==e[n]):!1}function Ur(a,e){return!a&&!e?!0:!a||!e?!1:xr(a,e)}function _r(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Or(a){switch(a){case"AES-128":case"AES-256":return mr.cbc;case"AES-256-CTR":return mr.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function ui(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function _i(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function as(a){const e=_i(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function ur(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Rr(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=ui(s)):t=as(s)}}return t}const ei=typeof self!="undefined"?self:void 0;var Kr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ti={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function xs(a){switch(a){case ti.FAIRPLAY:return Kr.FAIRPLAY;case ti.PLAYREADY:return Kr.PLAYREADY;case ti.WIDEVINE:return Kr.WIDEVINE;case ti.CLEARKEY:return Kr.CLEARKEY}}function us(a){switch(a){case Kr.FAIRPLAY:return ti.FAIRPLAY;case Kr.PLAYREADY:return ti.PLAYREADY;case Kr.WIDEVINE:return ti.WIDEVINE;case Kr.CLEARKEY:return ti.CLEARKEY}}function Es(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[Kr.FAIRPLAY,Kr.WIDEVINE,Kr.PLAYREADY,Kr.CLEARKEY].filter(r=>!!e[r]):[];return!n[Kr.WIDEVINE]&&t&&n.push(Kr.WIDEVINE),n}const ms=function(a){return ei!=null&&(a=ei.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function ba(a,e,t,n){let r;switch(a){case Kr.FAIRPLAY:r=["cenc","sinf"];break;case Kr.WIDEVINE:case Kr.PLAYREADY:r=["cenc"];break;case Kr.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return so(r,e,t,n)}function so(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Ka(a){var e;return!!a&&(a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function Ss(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.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 c=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(c){const p=ui(c).subarray(0,16);return ur(p),p}}return null}let Fs={};class ks{static clearKeyUriToKeyIdMap(){Fs={}}static setKeyIdForUri(e,t){Fs[e]=t}static addKeyIdForUri(e){const t=Object.keys(Fs).length%Number.MAX_SAFE_INTEGER,n=new Uint8Array(16);return new DataView(n.buffer,12,4).setUint32(0,t),Fs[e]=n,n}constructor(e,t,n,r=[1],i=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=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!_r(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(K(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&xr(e.keyFormatVersions,this.keyFormatVersions)&&Ur(e.iv,this.iv)&&Ur(e.keyId,this.keyId)}isSupported(){if(this.method){if(_r(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case ti.FAIRPLAY:case ti.WIDEVINE:case ti.PLAYREADY:case ti.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(_r(this.method)){let i=this.iv;return i||(typeof e!="number"&&(ce.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),i=js(e)),new ks(this.method,this.uri,"identity",this.keyFormatVersions,i)}if(this.keyId){const i=Fs[this.uri];if(i&&!xr(this.keyId,i)&&ks.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=Rr(this.uri);if(n)switch(this.keyFormat){case ti.WIDEVINE:if(this.pssh=n,!this.keyId){const i=Ze(n.buffer);if(i.length){var r;const s=i[0];this.keyId=(r=s.kids)!=null&&r.length?s.kids[0]:null}}this.keyId||(this.keyId=aa(t));break;case ti.PLAYREADY:{const i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=D(i,null,n),this.keyId=Ss(n);break}default:{let i=n.subarray(0,16);if(i.length!==16){const s=new Uint8Array(16);s.set(i,16-i.length),i=s}this.keyId=i;break}}if(!this.keyId||this.keyId.byteLength!==16){let i;i=ja(t),i||(i=aa(t),i||(i=Fs[this.uri])),i&&(this.keyId=i,ks.setKeyIdForUri(this.uri,i))}return this}}function ja(a){const e=a==null?void 0:a[ti.WIDEVINE];return e?e.keyId:null}function aa(a){const e=a==null?void 0:a[ti.PLAYREADY];if(e){const t=Rr(e.uri);if(t)return Ss(t)}return null}function js(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Ca=/#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,Pa=/#EXT-X-MEDIA:(.*)/g,Za=/^#EXT(?:INF|-X-TARGETDURATION):/m,zs=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),wa=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 Ls{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 x.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Za.test(e)}static parseMasterPlaylist(e,t){const n=Ln(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];if(Ca.lastIndex=0,!e.startsWith("#EXTM3U"))return r.playlistParsingError=new Error("no EXTM3U delimiter"),r;let s;for(;(s=Ca.exec(e))!=null;)if(s[1]){var c;const m=new Pr(s[1],r),v=Fi(r,s[2]),E={attrs:m,bitrate:m.decimalInteger("BANDWIDTH")||m.decimalInteger("AVERAGE-BANDWIDTH"),name:m.NAME,url:Ls.resolve(v,t)},k=m.decimalResolution("RESOLUTION");k&&(E.width=k.width,E.height=k.height),oa(m.CODECS,E);const X=m["SUPPLEMENTAL-CODECS"];X&&(E.supplemental={},oa(X,E.supplemental)),(c=E.unknownCodecs)!=null&&c.length||i.push(E),r.levels.push(E)}else if(s[3]){const m=s[3],v=s[4];switch(m){case"SESSION-DATA":{const E=new Pr(v,r),k=E["DATA-ID"];k&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[k]=E);break}case"SESSION-KEY":{const E=Ha(v,t,r);E.encrypted&&E.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(E)):ce.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${v}"`);break}case"DEFINE":{{const E=new Pr(v,r);Os(r,E,t)}break}case"CONTENT-STEERING":{const E=new Pr(v,r);r.contentSteering={uri:Ls.resolve(E["SERVER-URI"],t),pathwayId:E["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Wa(v);break}}}const p=i.length>0&&i.length<r.levels.length;return r.levels=p?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,c={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(Pa.lastIndex=0;(r=Pa.exec(e))!==null;){const m=new Pr(r[1],n),v=m.TYPE;if(v){const E=c[v],k=i[v]||[];i[v]=k;const X=m.LANGUAGE,J=m["ASSOC-LANGUAGE"],De=m.CHANNELS,Ie=m.CHARACTERISTICS,at=m["INSTREAM-ID"],pt={attrs:m,bitrate:0,id:p++,groupId:m["GROUP-ID"]||"",name:m.NAME||X||"",type:v,default:m.bool("DEFAULT"),autoselect:m.bool("AUTOSELECT"),forced:m.bool("FORCED"),lang:X,url:m.URI?Ls.resolve(m.URI,t):""};if(J&&(pt.assocLang=J),De&&(pt.channels=De),Ie&&(pt.characteristics=Ie),at&&(pt.instreamId=at),E!=null&&E.length){const _t=Ls.findGroup(E,pt.groupId)||E[0];Zs(pt,_t,"audioCodec"),Zs(pt,_t,"textCodec")}k.push(pt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var c;const p={url:t},m=new ns(t),v=m.fragments,E=[];let k=null,X=0,J=0,De=0,Ie=0,at=0,pt=null,_t=new st(r,p),$t,Ht,In,Yt=-1,mn=!1,hn=null,en;if(zs.lastIndex=0,m.m3u8=e,m.hasVariableRefs=Ln(e),((c=zs.exec(e))==null?void 0:c[0])!=="#EXTM3U")return m.playlistParsingError=new Error("Missing format identifier #EXTM3U"),m;for(;($t=zs.exec(e))!==null;){mn&&(mn=!1,_t=new st(r,p),_t.playlistOffset=De,_t.setStart(De),_t.sn=X,_t.cc=Ie,at&&(_t.bitrate=at),_t.level=n,k&&(_t.initSegment=k,k.rawProgramDateTime&&(_t.rawProgramDateTime=k.rawProgramDateTime,k.rawProgramDateTime=null),hn&&(_t.setByteRange(hn),hn=null)));const Wr=$t[1];if(Wr){_t.duration=parseFloat(Wr);const Nr=(" "+$t[2]).slice(1);_t.title=Nr||null,_t.tagList.push(Nr?["INF",Wr,Nr]:["INF",Wr])}else if($t[3]){if(l(_t.duration)){_t.playlistOffset=De,_t.setStart(De),In&&Cs(_t,In,m),_t.sn=X,_t.level=n,_t.cc=Ie,v.push(_t);const Nr=(" "+$t[3]).slice(1);_t.relurl=Fi(m,Nr),Hr(_t,pt,E),pt=_t,De+=_t.duration,X++,J=0,mn=!0}}else{if($t=$t[0].match(wa),!$t){ce.warn("No matches on slow regex match for level playlist!");continue}for(Ht=1;Ht<$t.length&&$t[Ht]===void 0;Ht++);const Nr=(" "+$t[Ht]).slice(1),fr=(" "+$t[Ht+1]).slice(1),Br=$t[Ht+2]?(" "+$t[Ht+2]).slice(1):null;switch(Nr){case"BYTERANGE":pt?_t.setByteRange(fr,pt):_t.setByteRange(fr);break;case"PROGRAM-DATE-TIME":_t.rawProgramDateTime=fr,_t.tagList.push(["PROGRAM-DATE-TIME",fr]),Yt===-1&&(Yt=v.length);break;case"PLAYLIST-TYPE":m.type&&Ci(m,Nr,$t),m.type=fr.toUpperCase();break;case"MEDIA-SEQUENCE":m.startSN!==0?Ci(m,Nr,$t):v.length>0&&os(m,Nr,$t),X=m.startSN=parseInt(fr);break;case"SKIP":{m.skippedSegments&&Ci(m,Nr,$t);const Tr=new Pr(fr,m),Zr=Tr.decimalInteger("SKIPPED-SEGMENTS");if(l(Zr)){m.skippedSegments+=Zr;for(let gr=Zr;gr--;)v.push(null);X+=Zr}const oi=Tr.enumeratedString("RECENTLY-REMOVED-DATERANGES");oi&&(m.recentlyRemovedDateranges=(m.recentlyRemovedDateranges||[]).concat(oi.split(" ")));break}case"TARGETDURATION":m.targetduration!==0&&Ci(m,Nr,$t),m.targetduration=Math.max(parseInt(fr),1);break;case"VERSION":m.version!==null&&Ci(m,Nr,$t),m.version=parseInt(fr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":m.live||Ci(m,Nr,$t),m.live=!1;break;case"#":(fr||Br)&&_t.tagList.push(Br?[fr,Br]:[fr]);break;case"DISCONTINUITY":Ie++,_t.tagList.push(["DIS"]);break;case"GAP":_t.gap=!0,_t.tagList.push([Nr]);break;case"BITRATE":_t.tagList.push([Nr,fr]),at=parseInt(fr)*1e3,l(at)?_t.bitrate=at:at=0;break;case"DATERANGE":{const Tr=new Pr(fr,m),Zr=new ci(Tr,m.dateRanges[Tr.ID],m.dateRangeTagCount);m.dateRangeTagCount++,Zr.isValid||m.skippedSegments?m.dateRanges[Zr.id]=Zr:ce.warn(`Ignoring invalid DATERANGE tag: "${fr}"`),_t.tagList.push(["EXT-X-DATERANGE",fr]);break}case"DEFINE":{{const Tr=new Pr(fr,m);"IMPORT"in Tr?vs(m,Tr,s):Os(m,Tr,t)}break}case"DISCONTINUITY-SEQUENCE":m.startCC!==0?Ci(m,Nr,$t):v.length>0&&os(m,Nr,$t),m.startCC=Ie=parseInt(fr);break;case"KEY":{const Tr=Ha(fr,t,m);if(Tr.isSupported()){if(Tr.method==="NONE"){In=void 0;break}In||(In={});const Zr=In[Tr.keyFormat];Zr!=null&&Zr.matches(Tr)||(Zr&&(In=y({},In)),In[Tr.keyFormat]=Tr)}else ce.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${fr}"`);break}case"START":m.startTimeOffset=Wa(fr);break;case"MAP":{const Tr=new Pr(fr,m);if(_t.duration){const Zr=new st(r,p);ps(Zr,Tr,n,In),k=Zr,_t.initSegment=k,k.rawProgramDateTime&&!_t.rawProgramDateTime&&(_t.rawProgramDateTime=k.rawProgramDateTime)}else{const Zr=_t.byteRangeEndOffset;if(Zr){const oi=_t.byteRangeStartOffset;hn=`${Zr-oi}@${oi}`}else hn=null;ps(_t,Tr,n,In),k=_t,mn=!0}k.cc=Ie;break}case"SERVER-CONTROL":{en&&Ci(m,Nr,$t),en=new Pr(fr),m.canBlockReload=en.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=en.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&en.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=en.optionalFloat("PART-HOLD-BACK",0),m.holdBack=en.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{m.partTarget&&Ci(m,Nr,$t);const Tr=new Pr(fr);m.partTarget=Tr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Tr=m.partList;Tr||(Tr=m.partList=[]);const Zr=J>0?Tr[Tr.length-1]:void 0,oi=J++,gr=new Pr(fr,m),vr=new _e(gr,_t,p,oi,Zr);Tr.push(vr),_t.duration+=vr.duration;break}case"PRELOAD-HINT":{const Tr=new Pr(fr,m);m.preloadHint=Tr;break}case"RENDITION-REPORT":{const Tr=new Pr(fr,m);m.renditionReports=m.renditionReports||[],m.renditionReports.push(Tr);break}default:ce.warn(`line parsed but not handled: ${$t}`);break}}}pt&&!pt.relurl?(v.pop(),De-=pt.duration,m.partList&&(m.fragmentHint=pt)):m.partList&&(Hr(_t,pt,E),_t.cc=Ie,m.fragmentHint=_t,In&&Cs(_t,In,m)),m.targetduration||(m.playlistParsingError=new Error("Missing Target Duration"));const Kn=v.length,br=v[0],kr=v[Kn-1];if(De+=m.skippedSegments*m.targetduration,De>0&&Kn&&kr){m.averagetargetduration=De/Kn;const Wr=kr.sn;m.endSN=Wr!=="initSegment"?Wr:0,m.live||(kr.endList=!0),Yt>0&&(fi(v,Yt),br&&E.unshift(br))}return m.fragmentHint&&(De+=m.fragmentHint.duration),m.totalduration=De,E.length&&m.dateRangeTagCount&&br&&Ma(E,m),m.endCC=Ie,m}}function Ma(a,e){let t=a.length;if(!t)if(e.hasProgramDateTime){const c=e.fragments[e.fragments.length-1];a.push(c),t++}else return;const n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let c=i.length;c--;){const p=e.dateRanges[i[c]],m=p.startDate.getTime();p.tagAnchor=n.ref;for(let v=t;v--;){var s;if(((s=a[v])==null?void 0:s.sn)<e.startSN)break;const E=ka(e,m,a,v,r);if(E!==-1){p.tagAnchor=e.fragments[E].ref;break}}}}function ka(a,e,t,n,r){const i=t[n];if(i){const c=i.programDateTime;if(e>=c||n===0){var s;const p=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=c+p*1e3){const m=t[n].sn-a.startSN;if(m<0)return-1;const v=a.fragments;if(v.length>t.length){const k=(t[n+1]||v[v.length-1]).sn-a.startSN;for(let X=k;X>m;X--){const J=v[X].programDateTime;if(e>=J&&e<J+v[X].duration*1e3)return X}}return m}}}return-1}function Ha(a,e,t){var n,r;const i=new Pr(a,t),s=(n=i.METHOD)!=null?n:"",c=i.URI,p=i.hexadecimalInteger("IV"),m=i.KEYFORMATVERSIONS,v=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!p&&ce.error(`Invalid IV: ${i.IV}`);const E=c?Ls.resolve(c,e):"",k=(m||"1").split("/").map(Number).filter(Number.isFinite);return new ks(s,E,v,k,p,i.KEYID)}function Wa(a){const t=new Pr(a).decimalFloatingPoint("TIME-OFFSET");return l(t)?t:null}function oa(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>He(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Zs(a,e,t){const n=e[t];n&&(a[t]=n)}function fi(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Hr(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ps(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function Cs(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function Ci(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function os(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Ps(a,e){const t=e.startPTS;if(l(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function Ms(a,e,t,n,r,i,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let p=t,m=n;const v=e.startPTS,E=e.endPTS;if(l(v)){const at=Math.abs(v-t);a&&at>a.totalduration?s.warn(`media timestamps and playlist times differ by ${at}s for level ${e.level} ${a.url}`):l(e.deltaPTS)?e.deltaPTS=Math.max(at,e.deltaPTS):e.deltaPTS=at,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,E),n=Math.max(n,E),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const k=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=i;const X=e.sn;if(!a||X<a.startSN||X>a.endSN)return 0;let J;const De=X-a.startSN,Ie=a.fragments;for(Ie[De]=e,J=De;J>0;J--)Ps(Ie[J],Ie[J-1]);for(J=De;J<Ie.length-1;J++)Ps(Ie[J],Ie[J+1]);return a.fragmentHint&&Ps(Ie[Ie.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,k}function Js(a,e,t){if(a===e)return;let n=null;const r=a.fragments;for(let v=r.length-1;v>=0;v--){const E=r[v].initSegment;if(E){n=E;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let i;Hs(a,e,(v,E,k,X)=>{if((!e.startCC||e.skippedSegments)&&E.cc!==v.cc){const J=v.cc-E.cc;for(let De=k;De<X.length;De++)X[De].cc+=J;e.endCC=X[X.length-1].cc}l(v.startPTS)&&l(v.endPTS)&&(E.setStart(E.startPTS=v.startPTS),E.startDTS=v.startDTS,E.maxStartPTS=v.maxStartPTS,E.endPTS=v.endPTS,E.endDTS=v.endDTS,E.minEndPTS=v.minEndPTS,E.setDuration(v.endPTS-v.startPTS),E.duration&&(i=E),e.PTSKnown=e.alignedSliding=!0),v.hasStreams&&(E.elementaryStreams=v.elementaryStreams),E.loader=v.loader,v.hasStats&&(E.stats=v.stats),v.initSegment&&(E.initSegment=v.initSegment,n=v.initSegment)});const s=e.fragments,c=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&c.forEach(v=>{var E;v&&(!v.initSegment||v.initSegment.relurl===((E=n)==null?void 0:E.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=ws(a.dateRanges,e,t));const v=a.fragments.filter(E=>E.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let E=1;E<c.length;E++)c[E].programDateTime===null&&Hr(c[E],c[E-1],v);Ma(v,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var p;const v=Ii(a,e.startSN-1);e.startCC=(p=v==null?void 0:v.cc)!=null?p:s[0].cc}ta(a.partList,e.partList,(v,E)=>{E.elementaryStreams=v.elementaryStreams,E.stats=v.stats}),i?Ms(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,t):ua(a,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.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=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function ws(a,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,i=y({},a);r&&r.forEach(p=>{delete i[p]});const c=Object.keys(i).length;return c?(Object.keys(n).forEach(p=>{const m=i[p],v=new ci(n[p].attr,m);v.isValid?(i[p]=v,m||(v.tagOrder+=c)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Rt(n[p].attr)}"`)}),i):n}function ta(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],c=e[r+n];s&&c&&s.index===c.index&&s.fragment.sn===c.fragment.sn?t(s,c):n--}}}function Hs(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,p=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let m=r;m<=i;m++){const v=p[s+m];let E=c[m];if(n&&!E&&v&&(E=e.fragments[m]=v),v&&E){t(v,E,m,c);const k=v.relurl,X=E.relurl;if(k&&_a(k,X)){e.playlistParsingError=la(`media sequence mismatch ${E.sn}:`,a,e,v,E);return}else if(v.cc!==E.cc){e.playlistParsingError=la(`discontinuity sequence mismatch (${v.cc}!=${E.cc})`,a,e,v,E);return}}}}function la(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function ua(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;Va(e,s)}function Va(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function wi(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function Ii(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function Zi(a,e,t){return a?Ts(a.partList,e,t):null}function Ts(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Ns(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function _a(a,e){return a!==e&&e?Ta(a)!==Ta(e):!1}function Ta(a){return a.replace(/\?[^?]*$/,"")}function ha(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Ga(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Aa(a,e){const t=a.start+e;a.startPTS=t,a.setStart(t),a.endPTS=t+a.duration}function Ia(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Aa(t[n],a);e.fragmentHint&&Aa(e.fragmentHint,a),e.alignedSliding=!0}function Ya(a,e){a&&(Na(e,a),e.alignedSliding||ao(e,a),!e.alignedSliding&&!e.skippedSegments&&ua(a,e,!1))}function Na(a,e){if(!Ga(e,a))return;const t=Math.min(e.endCC,a.endCC),n=ha(e.fragments,t),r=ha(a.fragments,t);if(!n||!r)return;ce.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Ia(i,a)}function ao(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=ha(n,s),i=ha(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ha(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,p=i.programDateTime;if(!c||!p)return;const m=(p-c)/1e3-(i.start-r.start);Ia(m,a)}function Bs(a,e,t){Ws(a,e,t),a.addEventListener(e,t)}function Ws(a,e,t){a.removeEventListener(e,t)}const Bo={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},Mn={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 Pi{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Mn.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:c,media:p,mediaBuffer:m,state:v}=this,E=p?p.currentTime:0,k=Gn.bufferInfo(m||p,E,s.maxBufferHole),X=!k.len;if(this.log(`Media seeking to ${l(E)?E.toFixed(3):E}, state: ${v}, ${X?"out of":"in"} buffer`),this.state===Mn.ENDED)this.resetLoadingState();else if(c){const J=s.maxFragLookUpTolerance,De=c.start-J,Ie=c.start+c.duration+J;if(X||Ie<k.start||De>k.end){const at=E>Ie;(E<De||at)&&(at&&c.loader&&(this.log(`Cancelling fragment load for seek (sn: ${c.sn})`),c.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(p){this.fragmentTracker.removeFragmentsInRange(E,1/0,this.playlistType,!0);const J=this.lastCurrentTime;if(E>J&&(this.lastCurrentTime=E),!this.loadingParts){const De=Math.max(k.end,E),Ie=this.shouldLoadParts(this.getLevelDetails(),De);Ie&&(this.log(`LL-Part loading ON after seeking to ${E.toFixed(2)} with buffer @${De.toFixed(2)}`),this.loadingParts=Ie)}}this.hls.hasEnoughToStart||(this.log(`Setting ${X?"startPosition":"nextLoadPosition"} to ${E} for seek without enough to start`),this.nextLoadPosition=E,X&&(this.startPosition=E)),X&&this.state===Mn.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new ri(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new qr(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===Mn.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=Mn.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 i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=Gn.bufferedInfo(i,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 Gn.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;Bs(n,"seeking",this.onMediaSeeking),Bs(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Mn.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),Ws(r,"seeking",this.onMediaSeeking),Ws(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=Mn.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=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,c=i.frag;if(this.fragContextChanged(c)){(s===Mn.FRAG_LOADING||!this.fragCurrent&&s===Mn.PARSING)&&(this.fragmentTracker.removeFragment(c),this.state=Mn.IDLE);return}"payload"in i&&(this.log(`Loaded ${c.type} sn: ${c.sn} of ${this.playlistLabel()} ${c.level}`),this.hls.trigger(g.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Mn.STOPPED||this.state===Mn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Bn.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,s?s.len:this.config.maxBufferLength),p=this.backtrackFragment;((p?e.sn-p.sn:0)===1||this.reduceMaxBufferLength(c,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===Bn.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:i,payload:s}=n,c=i.decryptdata;if(s&&s.byteLength>0&&c!=null&&c.key&&c.iv&&_r(c.method)){const p=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),c.key.buffer,c.iv.buffer,Or(c.method)).catch(m=>{throw r.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.FRAG_DECRYPT_ERROR,fatal:!1,error:m,reason:m.message,frag:i}),m}).then(m=>{const v=self.performance.now();return r.trigger(g.FRAG_DECRYPTED,{frag:i,payload:m,stats:{tstart:p,tdecrypt:v}}),n.payload=m,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===Mn.STOPPED||this.state===Mn.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!==Mn.STOPPED&&(this.state=Mn.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 i=e.tracks;if(i&&!t.encrypted&&((n=i.audio)!=null&&n.encrypted||(r=i.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,c=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(c.message),!s||s.mediaKeys?!1:(this.hls.trigger(g.ERROR,{type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_NO_KEYS,fatal:!1,error:c,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(Gn.getBuffered(n)):"(detached)"})`),We(e)){var r;if(e.type!==Q.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(c=>!!s[c])){this.state=Mn.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=Mn.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(p=>!p),c=new Mi(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let c=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Mn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(k=>{if(!this.fragContextChanged(k.frag))return this.hls.trigger(g.KEY_LOADED,k),this.state===Mn.KEY_LOADING&&(this.state=Mn.IDLE),k}),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||(c=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),c&&this.log("[eme] blocking frag load until media-keys acquired"));const p=this.fragPrevious;if(We(e)&&(!p||e.sn!==p.sn)){const k=this.shouldLoadParts(t.details,e.end);k!==this.loadingParts&&(this.log(`LL-Part loading ${k?"ON":"OFF"} loading sn ${p==null?void 0:p.sn}->${e.sn}`),this.loadingParts=k)}if(n=Math.max(e.start,n||0),this.loadingParts&&We(e)){const k=s.partList;if(k&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const X=this.getNextPart(k,e,n);if(X>-1){const J=k[X];e=this.fragCurrent=J.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${J.index} (${X}/${k.length-1}) of ${this.fragInfo(e,!1,J)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=J.start+J.duration,this.state=Mn.FRAG_LOADING;let De;return c?De=c.then(Ie=>!Ie||this.fragContextChanged(Ie.frag)?null:this.doFragPartsLoad(e,J,t,r)).catch(Ie=>this.handleFragLoadError(Ie)):De=this.doFragPartsLoad(e,J,t,r).catch(Ie=>this.handleFragLoadError(Ie)),this.hls.trigger(g.FRAG_LOADING,{frag:e,part:J,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):De}else if(!e.url||this.loadedEndOfParts(k,n))return Promise.resolve(null)}}if(We(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(k=>k.loaded).map(k=>`[${k.start}-${k.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))}`),l(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Mn.FRAG_LOADING;const v=this.config.progressive&&e.type!==Q.SUBTITLE;let E;return v&&c?E=c.then(k=>!k||this.fragContextChanged(k.frag)?null:this.fragmentLoader.load(e,r)).catch(k=>this.handleFragLoadError(k)):E=Promise.all([this.fragmentLoader.load(e,v?r:void 0),c]).then(([k])=>(!v&&r&&r(k),k)).catch(k=>this.handleFragLoadError(k)),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")):E}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var c;const p=[],m=(c=n.details)==null?void 0:c.partList,v=E=>{this.fragmentLoader.loadPart(e,E,r).then(k=>{p[E.index]=k;const X=k.part;this.hls.trigger(g.FRAG_LOADED,k);const J=Zi(n.details,e.sn,E.index+1)||Ts(m,e.sn,E.index+1);if(J)v(J);else return i({frag:e,part:X,partsLoaded:p})}).catch(s)};v(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===F.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===le.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:le.OTHER_ERROR,details:F.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Mn.PARSING){!this.fragCurrent&&this.state!==Mn.STOPPED&&this.state!==Mn.ERROR&&(this.state=Mn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const c=this.getLevelDetails(),m=c&&n.sn>c.endSN||this.shouldLoadParts(c,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,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const i=e.partList[0];if(i.fragment.type===Q.SUBTITLE)return!1;const s=i.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())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const c=t[r],p=c.details,m=s>-1?Zi(p,i,s):null,v=m?m.fragment:Ii(p,i,n);return v?(n&&n!==v&&(v.stats=n.stats),{frag:v,part:m,level:c}):null}bufferFragmentData(e,t,n,r,i){if(this.state!==Mn.PARSING)return;const{data1:s,data2:c}=e;let p=s;if(c&&(p=ft(s,c)),!p.length)return;const m=this.initPTS[t.cc],v=m?-m.baseTime/m.timescale:void 0,E={type:e.type,frag:t,part:n,chunkMeta:r,offset:v,parent:t.type,data:p};if(this.hls.trigger(g.BUFFER_APPENDING,E),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Gn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Gn.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),c=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-c>s&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!l(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 i=Gn.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const c=Math.max(Math.min(i.nextStart,s.end)-t,r);return Gn.bufferInfo(e,t,c)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=Q.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:i}=this,s=n[0].start,c=i.lowLatencyMode&&!!t.partList;let p=null;if(t.live){const E=i.initialLiveManifestSize;if(r<E)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${E})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var m;c&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),p=this.getInitialLiveFragment(t);const k=this.hls.startPosition,X=this.hls.liveSyncPosition,J=p?(k!==-1&&k>=s?k:X)||p.start:e;this.log(`Setting startPosition to ${J} to match start frag at live edge. mainStart: ${k} liveSyncPosition: ${X} frag.start: ${(m=p)==null?void 0:m.start}`),this.startPosition=this.nextLoadPosition=J}}else e<=s&&(p=n[0]);if(!p){const E=this.loadingParts?t.partEnd:t.fragmentEnd;p=this.getFragmentAtPosition(e,E,t)}let v=this.filterReplacedPrimary(p,t);if(!v&&p){const E=p.sn-t.startSN;v=this.filterReplacedPrimary(n[E+1]||null,t)}return this.mapToInitFragWhenRequired(v)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Bn.OK||n===Bn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const c=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(c!==null&&n.len+c.len>=i){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(jr(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(jr(this.config)&&e.type!==Q.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 i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const c=i[s].interstitial;if(c.appendInPlace&&e.start>=c.startTime&&e.end<=c.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,i=!1,s=!0;for(let c=0,p=e.length;c<p;c++){const m=e[c];if(s=s&&!m.independent,r>-1&&n<m.start)break;const v=m.loaded;v?r=-1:(i||(m.independent||s)&&m.fragment===t)&&(m.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${m.start}`),r=c),i=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=Qn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=ir(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:c}=n;const{fragmentHint:p}=n,{maxFragLookUpTolerance:m}=r,v=n.partList,E=!!(this.loadingParts&&v!=null&&v.length&&p);E&&!this.bitrateTest&&v[v.length-1].fragment.sn===p.sn&&(s=s.concat(p),c=p.sn);let k;if(e<t){var X;const De=e<this.lastCurrentTime||e>t-m||(X=this.media)!=null&&X.paused||!this.startFragRequested?0:m;k=or(i,s,e,De)}else k=s[s.length-1];if(k){const J=k.sn-n.startSN,De=this.fragmentTracker.getState(k);if((De===Bn.OK||De===Bn.PARTIAL&&k.gap)&&(i=k),i&&k.sn===i.sn&&(!E||v[0].fragment.sn>k.sn||!n.live)&&k.level===i.level){const at=s[J+1];k.sn<c&&this.fragmentTracker.getState(at)!==Bn.OK?k=at:k=null}}return k}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,c=e.alignedSliding&&l(i);if(s||!c&&!i){Ya(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 i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&l(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 ${i?"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&&We(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!==Mn.FRAG_LOADING_WAITING_RETRY)&&(this.state=Mn.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const at=this.getCurrentContext(t.chunkMeta);at&&(t.frag=at.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===F.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const c=t.errorAction;if(!c){this.state=Mn.ERROR;return}const{action:p,flags:m,retryCount:v=0,retryConfig:E}=c,k=!!E,X=k&&p===Zn.RetryRequest,J=k&&!c.resolved&&m===Pn.MoveAllAlternatesMatchingHost,De=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!X&&J&&We(r)&&!r.endList&&De&&!Kt(t))this.resetFragmentErrors(e),this.treatAsGap(r),c.resolved=!0;else if((X||J)&&v<E.maxNumRetry){var Ie;const at=Qr((Ie=t.response)==null?void 0:Ie.code),pt=hr(E,v);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+pt,this.state=Mn.FRAG_LOADING_WAITING_RETRY,c.resolved=!0,at){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}/${E.maxNumRetry} in ${pt}ms`)}else if(E)if(this.resetFragmentErrors(e),v<E.maxNumRetry)!s&&p!==Zn.RemoveAlternatePermanently&&(c.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${v})`);return}else p===Zn.SendAlternateToPenaltyBox?this.state=Mn.WAITING_LEVEL:this.state=Mn.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!Qr(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Mn.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===Mn.PARSING||this.state===Mn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;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===Q.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Mn.STOPPED&&(this.state=Mn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Gn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Mn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Mn.STOPPED&&(this.state=Mn.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 i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((p,m)=>{const v=e.elementaryStreams[m];if(v){const E=v.endPTS-v.startPTS;if(E<=0)return this.warn(`Could not parse fragment ${e.sn} ${m} duration reliably (${E})`),p||!1;const k=r?0:Ms(i,e,v.startPTS,v.endPTS,v.startDTS,v.endDTS,this);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:i,level:n,drift:k,type:m,frag:e,start:v.startPTS,end:v.endPTS}),!0}return p},!1)){var c;const p=((c=this.transmuxer)==null?void 0:c.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:le.MEDIA_ERROR,details:F.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=Mn.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===Q.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i: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 jr(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class Ba{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=Xa(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Xa(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var Da={exports:{}},Qa;function Sl(){return Qa||(Qa=1,function(a){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 i(p,m,v,E,k){if(typeof v!="function")throw new TypeError("The listener must be a function");var X=new r(v,E||p,k),J=t?t+m:m;return p._events[J]?p._events[J].fn?p._events[J]=[p._events[J],X]:p._events[J].push(X):(p._events[J]=X,p._eventsCount++),p}function s(p,m){--p._eventsCount===0?p._events=new n:delete p._events[m]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var m=[],v,E;if(this._eventsCount===0)return m;for(E in v=this._events)e.call(v,E)&&m.push(t?E.slice(1):E);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(v)):m},c.prototype.listeners=function(m){var v=t?t+m:m,E=this._events[v];if(!E)return[];if(E.fn)return[E.fn];for(var k=0,X=E.length,J=new Array(X);k<X;k++)J[k]=E[k].fn;return J},c.prototype.listenerCount=function(m){var v=t?t+m:m,E=this._events[v];return E?E.fn?1:E.length:0},c.prototype.emit=function(m,v,E,k,X,J){var De=t?t+m:m;if(!this._events[De])return!1;var Ie=this._events[De],at=arguments.length,pt,_t;if(Ie.fn){switch(Ie.once&&this.removeListener(m,Ie.fn,void 0,!0),at){case 1:return Ie.fn.call(Ie.context),!0;case 2:return Ie.fn.call(Ie.context,v),!0;case 3:return Ie.fn.call(Ie.context,v,E),!0;case 4:return Ie.fn.call(Ie.context,v,E,k),!0;case 5:return Ie.fn.call(Ie.context,v,E,k,X),!0;case 6:return Ie.fn.call(Ie.context,v,E,k,X,J),!0}for(_t=1,pt=new Array(at-1);_t<at;_t++)pt[_t-1]=arguments[_t];Ie.fn.apply(Ie.context,pt)}else{var $t=Ie.length,Ht;for(_t=0;_t<$t;_t++)switch(Ie[_t].once&&this.removeListener(m,Ie[_t].fn,void 0,!0),at){case 1:Ie[_t].fn.call(Ie[_t].context);break;case 2:Ie[_t].fn.call(Ie[_t].context,v);break;case 3:Ie[_t].fn.call(Ie[_t].context,v,E);break;case 4:Ie[_t].fn.call(Ie[_t].context,v,E,k);break;default:if(!pt)for(Ht=1,pt=new Array(at-1);Ht<at;Ht++)pt[Ht-1]=arguments[Ht];Ie[_t].fn.apply(Ie[_t].context,pt)}}return!0},c.prototype.on=function(m,v,E){return i(this,m,v,E,!1)},c.prototype.once=function(m,v,E){return i(this,m,v,E,!0)},c.prototype.removeListener=function(m,v,E,k){var X=t?t+m:m;if(!this._events[X])return this;if(!v)return s(this,X),this;var J=this._events[X];if(J.fn)J.fn===v&&(!k||J.once)&&(!E||J.context===E)&&s(this,X);else{for(var De=0,Ie=[],at=J.length;De<at;De++)(J[De].fn!==v||k&&!J[De].once||E&&J[De].context!==E)&&Ie.push(J[De]);Ie.length?this._events[X]=Ie.length===1?Ie[0]:Ie:s(this,X)}return this},c.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},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,a.exports=c}(Da)),Da.exports}var rl=Sl(),_o=w(rl);const lo="1.6.15",Ja={};function $o(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Cl(){const a=Ja[lo];if(a)return a.clientCount++,a;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 Ja[lo]=r,r}function Fo(a){const e=Ja[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Ja[a]=r,r}function wl(a){const e=Ja[a||lo];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete Ja[a||lo],r&&self.URL.revokeObjectURL(r),n.terminate()}}function xo(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function po(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function qa(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function uo(a,e){const t=e;let n=0;for(;po(a,e);){n+=10;const r=qa(a,e+6);n+=r,xo(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function zo(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const X=new Error(`invalid ADTS sampling index:${s}`);a.emit(g.ERROR,g.ERROR,{type:le.MEDIA_ERROR,details:F.FRAG_PARSING_ERROR,fatal:!0,error:X,reason:X.message});return}const c=(i>>6&3)+1,p=e[t+3]>>6&3|(i&1)<<2,m="mp4a.40."+c,v=r[s];let E=s;(c===5||c===29)&&(E-=3);const k=[c<<3|(E&14)>>1,(E&1)<<7|p<<3];return ce.log(`manifest codec:${n}, parsed codec:${m}, channels:${p}, rate:${v} (ADTS object type:${c} sampling index:${s})`),{config:k,samplerate:v,channelCount:p,codec:m,parsedCodec:m,manifestCodec:n}}function Uo(a,e){return a[e]===255&&(a[e+1]&246)===240}function Ko(a,e){return a[e+1]&1?7:9}function Eo(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function jo(a,e){return e+5<a.length}function So(a,e){return e+1<a.length&&Uo(a,e)}function co(a,e){return jo(a,e)&&Uo(a,e)&&Eo(a,e)<=a.length-e}function Zo(a,e){if(So(a,e)){const t=Ko(a,e);if(e+t>=a.length)return!1;const n=Eo(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||So(a,r)}return!1}function Co(a,e,t,n,r){if(!a.samplerate){const i=zo(e,t,n,r);if(!i)return;y(a,i)}}function il(a){return 1024*9e4/a}function sl(a,e){const t=Ko(a,e);if(e+t<=a.length){const n=Eo(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function al(a,e,t,n,r){const i=il(a.samplerate),s=n+r*i,c=sl(e,t);let p;if(c){const{frameLength:E,headerLength:k}=c,X=k+E,J=Math.max(0,t+X-e.length);J?(p=new Uint8Array(X-k),p.set(e.subarray(t+k,e.length),0)):p=e.subarray(t+k,t+X);const De={unit:p,pts:s};return J||a.samples.push(De),{sample:De,length:X,missing:J}}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(a,e){return po(a,e)&&qa(a,e+6)+10<=a.length-e}function Tl(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function go(a,e=0,t=1/0){return ol(a,e,t,Uint8Array)}function ol(a,e,t,n){const r=ll(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=Ho(a)?a.byteOffset:0,c=(s+a.byteLength)/i,p=(s+e)/i,m=Math.floor(Math.max(0,Math.min(p,c))),v=Math.floor(Math.min(m+Math.max(t,0),c));return new n(r,m,v-m)}function ll(a){return a instanceof ArrayBuffer?a:a.buffer}function Ho(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function ul(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=Pe(go(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const c=Pe(go(a.data,3+n,s));let p;return r==="-->"?p=Pe(go(a.data,4+n+s)):p=Tl(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=c,e.data=p,e}function mt(a){if(a.size<2)return;const e=Pe(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function Wo(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=Pe(a.data.subarray(t),!0);t+=n.length+1;const r=Pe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Pe(a.data.subarray(1));return{key:a.type,info:"",data:e}}function To(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=Pe(a.data.subarray(t),!0);t+=n.length+1;const r=Pe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Pe(a.data);return{key:a.type,info:"",data:e}}function Ao(a){return a.type==="PRIV"?mt(a):a.type[0]==="W"?To(a):a.type==="APIC"?ul(a):Wo(a)}function Vo(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=qa(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const eo=10,ma=10;function Io(a){let e=0;const t=[];for(;po(a,e);){const n=qa(a,e+6);a[e+5]>>6&1&&(e+=eo),e+=eo;const r=e+n;for(;e+ma<r;){const i=Vo(a.subarray(e)),s=Ao(i);s&&t.push(s),e+=i.size+eo}xo(a,e)&&(e+=eo)}return t}function Go(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function de(a){if(a.data.byteLength===8){const e=new Uint8Array(a.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 ue(a){const e=Io(a);for(let t=0;t<e.length;t++){const n=e[t];if(Go(n))return de(n)}}let ze=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function nt(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class St{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=ft(this.cachedData,e),this.cachedData=null);let n=uo(e,0),r=n?n.length:0,i;const s=this._audioTrack,c=this._id3Track,p=n?ue(n):void 0,m=e.length;for((this.basePTS===null||this.frameIndex===0&&l(p))&&(this.basePTS=It(p,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:ze.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,i=r):r=m}else wo(e,r)?(n=uo(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:ze.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===m&&i!==m){const v=e.slice(i);this.cachedData?this.cachedData=ft(this.cachedData,v):this.cachedData=v}}return{audioTrack:s,videoTrack:nt(),id3Track:c,textTrack:nt()}}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:nt(),id3Track:this._id3Track,textTrack:nt()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const It=(a,e,t)=>{if(l(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let Nt=null;const Lt=[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],Zt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Ft=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bn=[0,1,1,4];function rn(a,e,t,n,r){if(t+24>e.length)return;const i=tn(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*s,p={unit:e.subarray(t,t+i.frameLength),pts:c,dts:c};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(p),{sample:p,length:i.frameLength,missing:0}}}function tn(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,c=a[e+3]>>6,p=t===3?3-n:n===3?3:4,m=Lt[p*14+r-1]*1e3,E=Zt[(t===3?0:t===2?1:2)*3+i],k=c===3?1:2,X=Ft[t][n],J=bn[n],De=X*8*J,Ie=Math.floor(X*m/E+s)*J;if(Nt===null){const _t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Nt=_t?parseInt(_t[1]):0}return!!Nt&&Nt<=87&&n===2&&m>=224e3&&c===0&&(a[e+3]=a[e+3]|128),{sampleRate:E,channelCount:k,frameLength:Ie,samplesPerFrame:De}}}function B(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function u(a,e){return e+1<a.length&&B(a,e)}function f(a,e){return B(a,e)&&4<=a.length-e}function h(a,e){if(e+1<a.length&&B(a,e)){const n=tn(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||u(a,i)}return!1}class b extends St{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 i=e.length;r<i;r++)if(Zo(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=al(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const M=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const c=Math.min(n,8),p=8-c;i[0]=4278190080>>>24+p<<p,r[0]=(s[0]&i[0])>>p,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class Y extends St{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=Se(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&&ue(t)!==void 0&&M(e,n)<16}}function Se(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const c=[48e3,44100,32e3][i],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+i]*2;if(t+v>e.length)return-1;const E=e[t+6]>>5;let k=0;E===2?k+=2:(E&1&&E!==1&&(k+=2),E&4&&(k+=2));const X=(e[t+6]<<8|e[t+7])>>12-k&1,De=[2,1,2,3,3,4,4,5][E]+X,Ie=e[t+5]>>3,at=e[t+5]&7,pt=new Uint8Array([i<<6|Ie<<1|at>>2,(at&3)<<6|E<<3|X<<2|p>>4,p<<4&224]),_t=1536/c*9e4,$t=n+r*_t,Ht=e.subarray(t,t+v);return a.config=pt,a.channelCount=De,a.samplerate=c,a.samples.push({unit:Ht,pts:$t}),v}class Me extends St{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&&ue(t)!==void 0&&M(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(h(e,n))return ce.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 rn(e,t,n,this.basePTS,this.frameIndex)}}const et=/\/emsg[-/]ID3/i;class wt{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=nt("video",1),s=this.audioTrack=nt("audio",1),c=this.txtTrack=nt("text",1);if(this.id3Track=nt("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const p=Re(e);if(p.video){const{id:m,timescale:v,codec:E,supplemental:k}=p.video;i.id=m,i.timescale=c.timescale=v,i.codec=E,i.supplemental=k}if(p.audio){const{id:m,timescale:v,codec:E}=p.audio;s.id=m,s.timescale=v,s.codec=E}c.id=Tt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Oe(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ft(this.remainderData,e));const c=ot(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=ht(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=ht(e,t),{videoTrack:t,audioTrack:nt(),id3Track:r,textTrack:nt()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=re(e.samples,["emsg"]);r&&r.forEach(i=>{const s=Je(i);if(et.test(s.schemeIdUri)){const c=Mt(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:c,pts:c,type:ze.emsg,duration:p})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const c=Mt(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:c,pts:c,type:ze.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 Mt(a,e){return l(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class Ut{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new qr(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,mr.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(c=>{const p=new Uint8Array(c);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 i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Ce(i.data),c=this.getAvcEncryptedData(s);this.decryptBuffer(c.buffer).then(p=>{i.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 i=e[t].units;for(;!(n>=i.length);n++){const s=i[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 i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,c=[];let p=0,m,v,E,k=-1,X=0;for(i===-1&&(k=0,X=this.getNALuType(t,0),i=0,p=1);p<r;){if(m=t[p++],!i){i=m?0:1;continue}if(i===1){i=m?0:2;continue}if(!m)i=3;else if(m===1){if(v=p-i-1,k>=0){const J={data:t.subarray(k,v),type:X};c.push(J)}else{const J=this.getLastNalUnit(e.samples);J&&(s&&p<=4-s&&J.state&&(J.data=J.data.subarray(0,J.data.byteLength-s)),v>0&&(J.data=ft(J.data,t.subarray(0,v)),J.state=0))}p<r?(E=this.getNALuType(t,p),k=p,X=E,i=0):i=-1}else i=0}if(k>=0&&i>=0){const J={data:t.subarray(k,r),type:X,state:i};c.push(J)}if(c.length===0){const J=this.getLastNalUnit(e.samples);J&&(J.data=ft(J.data,t))}return e.naluState=i,c}}class dn{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&ce.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 fn extends nn{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,c,p=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(m=>{var v,E;switch(m.type){case 1:{let De=!1;c=!0;const Ie=m.data;if(p&&Ie.length>4){const at=this.readSliceType(Ie);(at===2||at===4||at===7||at===9)&&(De=!0)}if(De){var k;(k=s)!=null&&k.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=De;break}case 5:c=!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:{c=!0,gt(m.data,1,n.pts,t.samples);break}case 7:{var X,J;c=!0,p=!0;const De=m.data,Ie=this.readSPS(De);if(!e.sps||e.width!==Ie.width||e.height!==Ie.height||((X=e.pixelRatio)==null?void 0:X[0])!==Ie.pixelRatio[0]||((J=e.pixelRatio)==null?void 0:J[1])!==Ie.pixelRatio[1]){e.width=Ie.width,e.height=Ie.height,e.pixelRatio=Ie.pixelRatio,e.sps=[De];const at=De.subarray(1,4);let pt="avc1.";for(let _t=0;_t<3;_t++){let $t=at[_t].toString(16);$t.length<2&&($t="0"+$t),pt+=$t}e.codec=pt}break}case 8:c=!0,e.pps=[m.data];break;case 9:c=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:c=!0;break;default:c=!1;break}s&&c&&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 dn(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new dn(e);let n=0,r=0,i=0,s=0,c,p,m;const v=t.readUByte.bind(t),E=t.readBits.bind(t),k=t.readUEG.bind(t),X=t.readBoolean.bind(t),J=t.skipBits.bind(t),De=t.skipEG.bind(t),Ie=t.skipUEG.bind(t),at=this.skipScalingList.bind(this);v();const pt=v();if(E(5),J(3),v(),Ie(),pt===100||pt===110||pt===122||pt===244||pt===44||pt===83||pt===86||pt===118||pt===128){const mn=k();if(mn===3&&J(1),Ie(),Ie(),J(1),X())for(p=mn!==3?8:12,m=0;m<p;m++)X()&&(m<6?at(16,t):at(64,t))}Ie();const _t=k();if(_t===0)k();else if(_t===1)for(J(1),De(),De(),c=k(),m=0;m<c;m++)De();Ie(),J(1);const $t=k(),Ht=k(),In=E(1);In===0&&J(1),J(1),X()&&(n=k(),r=k(),i=k(),s=k());let Yt=[1,1];if(X()&&X())switch(v()){case 1:Yt=[1,1];break;case 2:Yt=[12,11];break;case 3:Yt=[10,11];break;case 4:Yt=[16,11];break;case 5:Yt=[40,33];break;case 6:Yt=[24,11];break;case 7:Yt=[20,11];break;case 8:Yt=[32,11];break;case 9:Yt=[80,33];break;case 10:Yt=[18,11];break;case 11:Yt=[15,11];break;case 12:Yt=[64,33];break;case 13:Yt=[160,99];break;case 14:Yt=[4,3];break;case 15:Yt=[3,2];break;case 16:Yt=[2,1];break;case 255:{Yt=[v()<<8|v(),v()<<8|v()];break}}return{width:Math.ceil(($t+1)*16-n*2-r*2),height:(2-In)*(Ht+1)*16-(In?2:4)*(i+s),pixelRatio:Yt}}}class Tn extends nn{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,c,p=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(m=>{var v,E;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,c=!0;break;case 16:case 17:case 18:case 21:if(c=!0,p){var k;(k=s)!=null&&k.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:c=!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:c=!0,gt(m.data,2,n.pts,t.samples);break;case 32:c=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=y(e.params,this.readVPS(m.data)),this.initVPS=m.data),e.vps=[m.data];break;case 33:if(c=!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 X=this.readSPS(m.data);e.width=X.width,e.height=X.height,e.pixelRatio=X.pixelRatio,e.codec=X.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const J in X.params)e.params[J]=X.params[J]}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(c=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const X=this.readPPS(m.data);for(const J in X)e.params[J]=X[J]}this.pushParameterSet(e.pps,m.data,e.vps)}break;case 35:c=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:c=!1;break}s&&c&&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 dn(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 dn(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),c=t.readUByte(),p=t.readUByte(),m=t.readUByte(),v=t.readUByte(),E=t.readUByte(),k=t.readUByte(),X=t.readUByte(),J=t.readUByte(),De=t.readUByte(),Ie=t.readUByte(),at=t.readUByte(),pt=[],_t=[];for(let es=0;es<n;es++)pt.push(t.readBoolean()),_t.push(t.readBoolean());if(n>0)for(let es=n;es<8;es++)t.readBits(2);for(let es=0;es<n;es++)pt[es]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),_t[es]&&t.readUByte();t.readUEG();const $t=t.readUEG();$t==3&&t.skipBits(1);const Ht=t.readUEG(),In=t.readUEG(),Yt=t.readBoolean();let mn=0,hn=0,en=0,Kn=0;Yt&&(mn+=t.readUEG(),hn+=t.readUEG(),en+=t.readUEG(),Kn+=t.readUEG());const br=t.readUEG(),kr=t.readUEG(),Wr=t.readUEG(),Nr=t.readBoolean();for(let es=Nr?0:n;es<=n;es++)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 sa=0;sa<4;sa++)for(let La=0;La<(sa===3?2:6);La++)if(!t.readBoolean())t.readUEG();else{const Ua=Math.min(64,1<<4+(sa<<1));sa>1&&t.readEG();for(let nl=0;nl<Ua;nl++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Tr=t.readUEG();let Zr=0;for(let es=0;es<Tr;es++){let sa=!1;if(es!==0&&(sa=t.readBoolean()),sa){es===Tr&&t.readUEG(),t.readBoolean(),t.readUEG();let La=0;for(let ko=0;ko<=Zr;ko++){const Ua=t.readBoolean();let nl=!1;Ua||(nl=t.readBoolean()),(Ua||nl)&&La++}Zr=La}else{const La=t.readUEG(),ko=t.readUEG();Zr=La+ko;for(let Ua=0;Ua<La;Ua++)t.readUEG(),t.readBoolean();for(let Ua=0;Ua<ko;Ua++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const es=t.readUEG();for(let sa=0;sa<es;sa++){for(let La=0;La<Wr+4;La++)t.readBits(1);t.readBits(1)}}let gr=0,vr=1,Si=1,is=!0,Ai=1,ji=0;t.readBoolean(),t.readBoolean();let ia=!1;if(t.readBoolean()){if(t.readBoolean()){const No=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];No>0&&No<16?(vr=rc[No-1],Si=Xl[No-1]):No===255&&(vr=t.readBits(16),Si=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(),ia=t.readBoolean(),ia&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Ai=t.readBits(32),ji=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Xl=t.readBoolean(),ic=t.readBoolean();let xl=!1;(Xl||ic)&&(xl=t.readBoolean(),xl&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),xl&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let sc=0;sc<=n;sc++){is=t.readBoolean();const Vd=is||t.readBoolean();let ac=!1;Vd?t.readEG():ac=t.readBoolean();const oc=ac?1:t.readUEG()+1;if(Xl)for(let El=0;El<oc;El++)t.readUEG(),t.readUEG(),xl&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ic)for(let El=0;El<oc;El++)t.readUEG(),t.readUEG(),xl&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),gr=t.readUEG())}let Oa=Ht,io=In;if(Yt){let es=1,sa=1;$t===1?es=sa=2:$t==2&&(es=2),Oa=Ht-es*hn-es*mn,io=In-sa*Kn-sa*en}const Mo=r?["A","B","C"][r]:"",Wd=c<<24|p<<16|m<<8|v;let bu=0;for(let es=0;es<32;es++)bu=(bu|(Wd>>es&1)<<31-es)>>>0;let _u=bu.toString(16);return s===1&&_u==="2"&&(_u="6"),{codecString:`hvc1.${Mo}${s}.${_u}.${i?"H":"L"}${at}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[c,p,m,v],general_constraint_indicator_flags:[E,k,X,J,De,Ie],general_level_idc:at,bit_depth:br+8,bit_depth_luma_minus8:br,bit_depth_chroma_minus8:kr,min_spatial_segmentation_idc:gr,chroma_format_idc:$t,frame_rate:{fixed:is,fps:ji/Ai}},width:Oa,height:io,pixelRatio:[vr,Si]}}readPPS(e){const t=new dn(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(),i=t.readBoolean();let s=1;return i&&r?s=0:i?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 xn=188;class wn{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=wn.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(xn*5,t-xn)+1,r=0;for(;r<n;){let i=!1,s=-1,c=0;for(let p=r;p<t;p+=xn)if(e[p]===71&&(t-p===xn||e[p+xn]===71)){if(c++,s===-1&&(s=p,s!==0&&(n=Math.min(s+xn*99,e.length-xn)+1)),i||(i=kn(e,p)===0),i&&c>1&&(s===0&&c>2||p+xn>n))return s}else{if(c)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Tt[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=wn.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=wn.createTrack("audio",r),this._id3Track=wn.createTrack("id3"),this._txtTrack=wn.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 i;const s=this._videoTrack,c=this._audioTrack,p=this._id3Track,m=this._txtTrack;let v=s.pid,E=s.pesData,k=c.pid,X=p.pid,J=c.pesData,De=p.pesData,Ie=null,at=this.pmtParsed,pt=this._pmtId,_t=e.length;if(this.remainderData&&(e=ft(this.remainderData,e),_t=e.length,this.remainderData=null),_t<xn&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:s,id3Track:p,textTrack:m};const $t=Math.max(0,wn.syncOffset(e));_t-=(_t-$t)%xn,_t<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,_t,e.buffer.byteLength-_t));let Ht=0;for(let Yt=$t;Yt<_t;Yt+=xn)if(e[Yt]===71){const mn=!!(e[Yt+1]&64),hn=kn(e,Yt),en=(e[Yt+3]&48)>>4;let Kn;if(en>1){if(Kn=Yt+5+e[Yt+4],Kn===Yt+xn)continue}else Kn=Yt+4;switch(hn){case v:mn&&(E&&(i=Ar(E,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,m,i,!1)),E={data:[],size:0}),E&&(E.data.push(e.subarray(Kn,Yt+xn)),E.size+=Yt+xn-Kn);break;case k:if(mn){if(J&&(i=Ar(J,this.logger)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,i);break;case"mp3":this.parseMPEGPES(c,i);break;case"ac3":this.parseAC3PES(c,i);break}J={data:[],size:0}}J&&(J.data.push(e.subarray(Kn,Yt+xn)),J.size+=Yt+xn-Kn);break;case X:mn&&(De&&(i=Ar(De,this.logger))&&this.parseID3PES(p,i),De={data:[],size:0}),De&&(De.data.push(e.subarray(Kn,Yt+xn)),De.size+=Yt+xn-Kn);break;case 0:mn&&(Kn+=e[Kn]+1),pt=this._pmtId=Jn(e,Kn);break;case pt:{mn&&(Kn+=e[Kn]+1);const br=tr(e,Kn,this.typeSupported,n,this.observer,this.logger);v=br.videoPid,v>0&&(s.pid=v,s.segmentCodec=br.segmentVideoCodec),k=br.audioPid,k>0&&(c.pid=k,c.segmentCodec=br.segmentAudioCodec),X=br.id3Pid,X>0&&(p.pid=X),Ie!==null&&!at&&(this.logger.warn(`MPEG-TS PMT found at ${Yt} after unknown PID '${Ie}'. Backtracking to sync byte @${$t} to parse all TS packets.`),Ie=null,Yt=$t-188),at=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ie=hn;break}}else Ht++;Ht>0&&Un(this.observer,new Error(`Found ${Ht} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=E,c.pesData=J,p.pesData=De;const In={audioTrack:c,videoTrack:s,id3Track:p,textTrack:m};return r&&this.extractRemainingSamples(In),In}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,c=t.pesData,p=r.pesData;let m;if(s&&(m=Ar(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,i,m,!0),n.pesData=null)):n.pesData=s,c&&(m=Ar(c,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 c!=null&&c.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;p&&(m=Ar(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),i=this.sampleAes=new Ut(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new fn:e==="hevc"&&(this.videoParser=new Tn))}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.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 i=t.data;if(r){this.aacOverFlow=null;const E=r.missing,k=r.sample.unit.byteLength;if(E===-1)i=ft(r.sample.unit,i);else{const X=k-E;r.sample.unit.set(i.subarray(0,E),X),e.samples.push(r.sample),n=r.missing}}let s,c;for(s=n,c=i.length;s<c-1&&!So(i,s);s++);if(s!==n){let E;const k=s<c-1;if(k?E=`AAC PES did not start with ADTS header,offset:${s}`:E="No ADTS header found in AAC PES",Un(this.observer,new Error(E),k,this.logger),!k)return}Co(e,this.observer,i,s,this.audioCodec);let p;if(t.pts!==void 0)p=t.pts;else if(r){const E=il(e.samplerate);p=r.sample.pts+E}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let m=0,v;for(;s<c;)if(v=al(e,i,s,p,m),s+=v.length,v.missing){this.aacOverFlow=v;break}else for(m++;s<c-1&&!So(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const c=t.pts;if(c===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(u(n,s)){const p=rn(e,n,s,c,i);if(p)s+=p.length,i++;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 i=n.length;let s=0,c=0,p;for(;c<i&&(p=Se(e,n,c,r,s++))>0;)c+=p}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=y({},t,{type:this._videoTrack?ze.emsg:ze.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function kn(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Jn(a,e){return(a[e+10]&31)<<8|a[e+11]}function tr(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},c=(a[e+1]&15)<<8|a[e+2],p=e+3+c-4,m=(a[e+10]&15)<<8|a[e+11];for(e+=12+m;e<p;){const v=kn(a,e),E=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Er("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=v);break;case 21:s.id3Pid===-1&&(s.id3Pid=v);break;case 219:if(!n){Er("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=v);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="mp3");break;case 193:if(!n){Er("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&E>0){let k=e+5,X=E;for(;X>2;){switch(a[k]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=v,s.segmentAudioCodec="ac3");break}const De=a[k+1]+2;k+=De,X-=De}}break;case 194:case 135:return Un(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=v,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=E+5}return s}function Un(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(g.ERROR,g.ERROR,{type:le.MEDIA_ERROR,details:F.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Er(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Ar(a,e){let t=0,n,r,i,s,c;const p=a.data;if(!a||a.size===0)return null;for(;p[0].length<19&&p.length>1;)p[0]=ft(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>a.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?(c=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-c>60*9e4&&(e.warn(`${Math.round((s-c)/9e4)}s delta between PTS and DTS, align them`),s=c)):c=s),i=n[8];let E=i+9;if(a.size<=E)return null;a.size-=E;const k=new Uint8Array(a.size);for(let X=0,J=p.length;X<J;X++){n=p[X];let De=n.byteLength;if(E)if(E>De){E-=De;continue}else n=n.subarray(E),De-=E,E=0;k.set(n,t),t+=De}return r&&(r-=i+3),{data:k,pts:s,dts:c,len:r}}return null}class gi{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 ni=Math.pow(2,32)-1;class kt{static init(){kt.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 kt.types)kt.types.hasOwnProperty(e)&&(kt.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]);kt.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);kt.STTS=kt.STSC=kt.STCO=i,kt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),kt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),kt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),kt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),p=new Uint8Array([0,0,0,1]);kt.FTYP=kt.box(kt.types.ftyp,s,p,s,c),kt.DINF=kt.box(kt.types.dinf,kt.box(kt.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=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<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return kt.box(kt.types.hdlr,kt.HDLR_TYPES[e])}static mdat(e){return kt.box(kt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(ni+1)),r=Math.floor(t%(ni+1));return kt.box(kt.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 kt.box(kt.types.mdia,kt.mdhd(e.timescale||0,e.duration||0),kt.hdlr(e.type),kt.minf(e))}static mfhd(e){return kt.box(kt.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"?kt.box(kt.types.minf,kt.box(kt.types.smhd,kt.SMHD),kt.DINF,kt.stbl(e)):kt.box(kt.types.minf,kt.box(kt.types.vmhd,kt.VMHD),kt.DINF,kt.stbl(e))}static moof(e,t,n){return kt.box(kt.types.moof,kt.mfhd(e),kt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=kt.trak(e[t]);return kt.box.apply(null,[kt.types.moov,kt.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(kt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=kt.trex(e[t]);return kt.box.apply(null,[kt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(ni+1)),r=Math.floor(t%(ni+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return kt.box(kt.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return kt.box(kt.types.sdtp,n)}static stbl(e){return kt.box(kt.types.stbl,kt.stsd(e),kt.box(kt.types.stts,kt.STTS),kt.box(kt.types.stsc,kt.STSC),kt.box(kt.types.stsz,kt.STSZ),kt.box(kt.types.stco,kt.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const c=kt.box(kt.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=e.pixelRatio[1];return kt.box(kt.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]),c,kt.box(kt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),kt.box(kt.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,E>>24,E>>16&255,E>>8&255,E&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 kt.box(kt.types.mp4a,kt.audioStsd(e),kt.box(kt.types.esds,kt.esds(e)))}static mp3(e){return kt.box(kt.types[".mp3"],kt.audioStsd(e))}static ac3(e){return kt.box(kt.types["ac-3"],kt.audioStsd(e),kt.box(kt.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return kt.box(kt.types.stsd,kt.STSD,kt.mp4a(e));if(t==="ac3"&&e.config)return kt.box(kt.types.stsd,kt.STSD,kt.ac3(e));if(t==="mp3"&&e.codec==="mp3")return kt.box(kt.types.stsd,kt.STSD,kt.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return kt.box(kt.types.stsd,kt.STSD,kt.avc1(e));if(t==="hevc"&&e.vps)return kt.box(kt.types.stsd,kt.STSD,kt.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,i=e.height||0,s=Math.floor(n/(ni+1)),c=Math.floor(n%(ni+1));return kt.box(kt.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,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=kt.sdtp(e),r=e.id,i=Math.floor(t/(ni+1)),s=Math.floor(t%(ni+1));return kt.box(kt.types.traf,kt.box(kt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),kt.box(kt.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),kt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,kt.box(kt.types.trak,kt.tkhd(e),kt.mdia(e))}static trex(e){const t=e.id;return kt.box(kt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let c,p,m,v,E,k;for(t+=8+i,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),c=0;c<r;c++)p=n[c],m=p.duration,v=p.size,E=p.flags,k=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,E.isLeading<<2|E.dependsOn,E.isDependedOn<<6|E.hasRedundancy<<4|E.paddingValue<<1|E.isNonSync,E.degradPrio&61440,E.degradPrio&15,k>>>24&255,k>>>16&255,k>>>8&255,k&255],12+16*c);return kt.box(kt.types.trun,s)}static initSegment(e){kt.types||kt.init();const t=kt.moov(e);return ft(kt.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=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=i.length;for(let J=0;J<n.length;J+=1){s+=3;for(let De=0;De<n[J].length;De+=1)s+=2+n[J][De].length}const c=new Uint8Array(s);c.set(i,0),s=i.length;const p=n.length-1;for(let J=0;J<n.length;J+=1){c.set(new Uint8Array([32+J|(J===p?128:0),0,n[J].length]),s),s+=3;for(let De=0;De<n[J].length;De+=1)c.set(new Uint8Array([n[J][De].length>>8,n[J][De].length&255]),s),s+=2,c.set(n[J][De],s),s+=n[J][De].length}const m=kt.box(kt.types.hvcC,c),v=e.width,E=e.height,k=e.pixelRatio[0],X=e.pixelRatio[1];return kt.box(kt.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,E>>8&255,E&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,kt.box(kt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),kt.box(kt.types.pasp,new Uint8Array([k>>24,k>>16&255,k>>8&255,k&255,X>>24,X>>16&255,X>>8&255,X&255])))}}kt.types=void 0,kt.HDLR_TYPES=void 0,kt.STTS=void 0,kt.STSC=void 0,kt.STCO=void 0,kt.STSZ=void 0,kt.VMHD=void 0,kt.SMHD=void 0,kt.STSD=void 0,kt.FTYP=void 0,kt.DINF=void 0;const vi=9e4;function ts(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Xr(a,e,t=1,n=!1){return ts(a,e,1/t,n)}function Fr(a,e=!1){return ts(a,1e3,1/vi,e)}function Yi(a,e=1){return ts(a,vi,1/e)}function Xi(a){const{baseTime:e,timescale:t,trackId:n}=a;return`${e/t} (${e}/${t}) trackId: ${n}`}const Cr=10*1e3,Vr=1024,pr=1152,Sr=1536;let ai=null,hi=null;function Ui(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class Ni extends H{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,ai===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ai=s?parseInt(s[1]):0}if(hi===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);hi=i?parseInt(i[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&&Xi(t)} > ${e&&Xi(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((i,s)=>{let c=s.pts,p=c-i;return p<-4294967296&&(t=!0,c=Hi(c,n),p=c-i),p>0?i:c},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,c,p){let m,v,E,k,X,J,De=i,Ie=i;const at=e.pid>-1,pt=t.pid>-1,_t=t.samples.length,$t=e.samples.length>0,Ht=c&&_t>0||_t>1;if((!at||$t)&&(!pt||Ht)||this.ISGenerated||c){if(this.ISGenerated){var Yt,mn,hn,en;const Wr=this.videoTrackConfig;(Wr&&(t.width!==Wr.width||t.height!==Wr.height||((Yt=t.pixelRatio)==null?void 0:Yt[0])!==((mn=Wr.pixelRatio)==null?void 0:mn[0])||((hn=t.pixelRatio)==null?void 0:hn[1])!==((en=Wr.pixelRatio)==null?void 0:en[1]))||!Wr&&Ht||this.nextAudioTs===null&&$t)&&this.resetInitSegment()}this.ISGenerated||(E=this.generateIS(e,t,i,s));const Kn=this.isVideoContiguous;let br=-1,kr;if(Ht&&(br=As(t.samples),!Kn&&this.config.forceKeyFrameOnDiscontinuity))if(J=!0,br>0){this.warn(`Dropped ${br} out of ${_t} video samples due to a missing keyframe`);const Wr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(br),t.dropped+=br,Ie+=(t.samples[0].pts-Wr)/t.inputTimeScale,kr=Ie}else br===-1&&(this.warn(`No keyframe found out of ${_t} video samples`),J=!1);if(this.ISGenerated){if($t&&Ht){const Wr=this.getVideoStartPts(t.samples),fr=(Hi(e.samples[0].pts,Wr)-Wr)/t.inputTimeScale;De+=Math.max(0,fr),Ie+=Math.max(0,-fr)}if($t){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),E=this.generateIS(e,t,i,s)),v=this.remuxAudio(e,De,this.isAudioContiguous,s,pt||Ht||p===Q.AUDIO?Ie:void 0),Ht){const Wr=v?v.endPTS-v.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),E=this.generateIS(e,t,i,s)),m=this.remuxVideo(t,Ie,Kn,Wr)}}else Ht&&(m=this.remuxVideo(t,Ie,Kn,0));m&&(m.firstKeyFrame=br,m.independent=br!==-1,m.firstKeyFramePTS=kr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(X=wr(n,i,this._initPTS,this._initDTS)),r.samples.length&&(k=Mr(r,i,this._initPTS))),{audio:v,video:m,initSegment:E,independent:J,text:k,id3:X}}computeInitPts(e,t,n,r){const i=Math.round(n*t);let s=Hi(e,i);if(s<i+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-s)/t} ${r}`);s<i+t;)s+=8589934592;return s-i}generateIS(e,t,n,r){const i=e.samples,s=t.samples,c=this.typeSupported,p={},m=this._initPTS;let v=!m||r,E="audio/mp4",k,X,J,De=-1;if(v&&(k=X=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(E="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}p.audio={id:"audio",container:E,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):kt.initSegment([e]),metadata:{channelCount:e.channelCount}},v&&(De=e.id,J=e.inputTimeScale,!m||J!==m.timescale?k=X=this.computeInitPts(i[0].pts,J,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:kt.initSegment([t]),metadata:{width:t.width,height:t.height}},v)if(De=t.id,J=t.inputTimeScale,!m||J!==m.timescale){const Ie=this.getVideoStartPts(s),at=Hi(s[0].dts,Ie),pt=this.computeInitPts(at,J,n,"video"),_t=this.computeInitPts(Ie,J,n,"video");X=Math.min(X,pt),k=Math.min(k,_t)}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} ${k/J} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${k/J} (${k}/${J}) trackId: ${De}`),this._initPTS={baseTime:k,timescale:J,trackId:De},this._initDTS={baseTime:X,timescale:J,trackId:De}):k=J=void 0,{tracks:p,initPTS:k,timescale:J,trackId:De}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,c=[],p=s.length,m=this._initPTS,v=m.baseTime*i/m.timescale;let E=this.nextVideoTs,k=8,X=this.videoSampleDuration,J,De,Ie=Number.POSITIVE_INFINITY,at=Number.NEGATIVE_INFINITY,pt=!1;if(!n||E===null){const gr=v+t*i,vr=s[0].pts-Hi(s[0].dts,s[0].pts);ai&&E!==null&&Math.abs(gr-vr-(E+v))<15e3?n=!0:E=gr-vr-v}const _t=E+v;for(let gr=0;gr<p;gr++){const vr=s[gr];vr.pts=Hi(vr.pts,_t),vr.dts=Hi(vr.dts,_t),vr.dts<s[gr>0?gr-1:gr].dts&&(pt=!0)}pt&&s.sort(function(gr,vr){const Si=gr.dts-vr.dts,is=gr.pts-vr.pts;return Si||is}),J=s[0].dts,De=s[s.length-1].dts;const $t=De-J,Ht=$t?Math.round($t/(p-1)):X||e.inputTimeScale/30;if(n){const gr=J-_t,vr=gr>Ht,Si=gr<-1;if((vr||Si)&&(vr?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Fr(gr,!0)} ms (${gr}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Fr(-gr,!0)} ms (${gr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Si||_t>=s[0].pts||ai)){J=_t;const is=s[0].pts-gr;if(vr)s[0].dts=J,s[0].pts=is;else{let Ai=!0;for(let ji=0;ji<s.length&&!(s[ji].dts>is&&Ai);ji++){const ia=s[ji].pts;if(s[ji].dts-=gr,s[ji].pts-=gr,ji<s.length-1){const ea=s[ji+1].pts,Oa=s[ji].pts,io=ea<=Oa,Mo=ea<=ia;Ai=io==Mo}}}this.log(`Video: Initial PTS/DTS adjusted: ${Fr(is,!0)}/${Fr(J,!0)}, delta: ${Fr(gr,!0)} ms`)}}J=Math.max(0,J);let In=0,Yt=0,mn=J;for(let gr=0;gr<p;gr++){const vr=s[gr],Si=vr.units,is=Si.length;let Ai=0;for(let ji=0;ji<is;ji++)Ai+=Si[ji].data.length;Yt+=Ai,In+=is,vr.length=Ai,vr.dts<mn?(vr.dts=mn,mn+=Ht/4|0||1):mn=vr.dts,Ie=Math.min(vr.pts,Ie),at=Math.max(vr.pts,at)}De=s[p-1].dts;const hn=Yt+4*In+8;let en;try{en=new Uint8Array(hn)}catch(gr){this.observer.emit(g.ERROR,g.ERROR,{type:le.MUX_ERROR,details:F.REMUX_ALLOC_ERROR,fatal:!1,error:gr,bytes:hn,reason:`fail allocating video mdat ${hn}`});return}const Kn=new DataView(en.buffer);Kn.setUint32(0,hn),en.set(kt.types.mdat,4);let br=!1,kr=Number.POSITIVE_INFINITY,Wr=Number.POSITIVE_INFINITY,Nr=Number.NEGATIVE_INFINITY,fr=Number.NEGATIVE_INFINITY;for(let gr=0;gr<p;gr++){const vr=s[gr],Si=vr.units;let is=0;for(let ia=0,ea=Si.length;ia<ea;ia++){const Oa=Si[ia],io=Oa.data,Mo=Oa.data.byteLength;Kn.setUint32(k,Mo),k+=4,en.set(io,k),k+=Mo,is+=4+Mo}let Ai;if(gr<p-1)X=s[gr+1].dts-vr.dts,Ai=s[gr+1].pts-vr.pts;else{const ia=this.config,ea=gr>0?vr.dts-s[gr-1].dts:Ht;if(Ai=gr>0?vr.pts-s[gr-1].pts:Ht,ia.stretchShortVideoTrack&&this.nextAudioTs!==null){const Oa=Math.floor(ia.maxBufferHole*i),io=(r?Ie+r*i:this.nextAudioTs+v)-vr.pts;io>Oa?(X=io-ea,X<0?X=ea:br=!0,this.log(`It is approximately ${io/90} ms to the next segment; using duration ${X/90} ms for the last video frame.`)):X=ea}else X=ea}const ji=Math.round(vr.pts-vr.dts);kr=Math.min(kr,X),Nr=Math.max(Nr,X),Wr=Math.min(Wr,Ai),fr=Math.max(fr,Ai),c.push(Ui(vr.key,X,is,ji))}if(c.length){if(ai){if(ai<70){const gr=c[0].flags;gr.dependsOn=2,gr.isNonSync=0}}else if(hi&&fr-Wr<Nr-kr&&Ht/Nr<.025&&c[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let gr=J;for(let vr=0,Si=c.length;vr<Si;vr++){const is=gr+c[vr].duration,Ai=gr+c[vr].cts;if(vr<Si-1){const ji=is+c[vr+1].cts;c[vr].duration=ji-Ai}else c[vr].duration=vr?c[vr-1].duration:Ht;c[vr].cts=0,gr=is}}}X=br||!X?Ht:X;const Br=De+X;this.nextVideoTs=E=Br-v,this.videoSampleDuration=X,this.isVideoContiguous=!0;const oi={data1:kt.moof(e.sequenceNumber++,J,y(e,{samples:c})),data2:en,startPTS:(Ie-v)/i,endPTS:(at+X-v)/i,startDTS:(J-v)/i,endDTS:E/i,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,oi}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return pr;case"ac3":return Sr;default:return Vr}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,c=e.samplerate?e.samplerate:s,p=s/c,m=this.getSamplesPerFrame(e),v=m*p,E=this._initPTS,k=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,X=[],J=i!==void 0;let De=e.samples,Ie=k?0:8,at=this.nextAudioTs||-1;const pt=E.baseTime*s/E.timescale,_t=pt+t*s;if(this.isAudioContiguous=n=n||De.length&&at>0&&(r&&Math.abs(_t-(at+pt))<9e3||Math.abs(Hi(De[0].pts,_t)-(at+pt))<20*v),De.forEach(function(fr){fr.pts=Hi(fr.pts,_t)}),!n||at<0){const fr=De.length;if(De=De.filter(Br=>Br.pts>=0),fr!==De.length&&this.warn(`Removed ${De.length-fr} of ${fr} samples (initPTS ${pt} / ${s})`),!De.length)return;i===0?at=0:r&&!J?at=Math.max(0,_t-pt):at=De[0].pts-pt}if(e.segmentCodec==="aac"){const fr=this.config.maxAudioFramesDrift;for(let Br=0,Tr=at+pt;Br<De.length;Br++){const Zr=De[Br],oi=Zr.pts,gr=oi-Tr,vr=Math.abs(1e3*gr/s);if(gr<=-fr*v&&J)Br===0&&(this.warn(`Audio frame @ ${(oi/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*gr/s)} ms.`),this.nextAudioTs=at=oi-pt,Tr=oi);else if(gr>=fr*v&&vr<Cr&&J){let Si=Math.round(gr/v);for(Tr=oi-Si*v;Tr<0&&Si&&v;)Si--,Tr+=v;Br===0&&(this.nextAudioTs=at=Tr-pt),this.warn(`Injecting ${Si} audio frames @ ${((Tr-pt)/s).toFixed(3)}s due to ${Math.round(1e3*gr/s)} ms gap.`);for(let is=0;is<Si;is++){let Ai=gi.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Ai||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Ai=Zr.unit.subarray()),De.splice(Br,0,{unit:Ai,pts:Tr}),Tr+=v,Br++}}Zr.pts=Tr,Tr+=v}}let $t=null,Ht=null,In,Yt=0,mn=De.length;for(;mn--;)Yt+=De[mn].unit.byteLength;for(let fr=0,Br=De.length;fr<Br;fr++){const Tr=De[fr],Zr=Tr.unit;let oi=Tr.pts;if(Ht!==null){const vr=X[fr-1];vr.duration=Math.round((oi-Ht)/p)}else if(n&&e.segmentCodec==="aac"&&(oi=at+pt),$t=oi,Yt>0){Yt+=Ie;try{In=new Uint8Array(Yt)}catch(vr){this.observer.emit(g.ERROR,g.ERROR,{type:le.MUX_ERROR,details:F.REMUX_ALLOC_ERROR,fatal:!1,error:vr,bytes:Yt,reason:`fail allocating audio mdat ${Yt}`});return}k||(new DataView(In.buffer).setUint32(0,Yt),In.set(kt.types.mdat,4))}else return;In.set(Zr,Ie);const gr=Zr.byteLength;Ie+=gr,X.push(Ui(!0,m,gr,0)),Ht=oi}const hn=X.length;if(!hn)return;const en=X[X.length-1];at=Ht-pt,this.nextAudioTs=at+p*en.duration;const Kn=k?new Uint8Array(0):kt.moof(e.sequenceNumber++,$t/p,y({},e,{samples:X}));e.samples=[];const br=($t-pt)/s,kr=this.nextAudioTs/s,Nr={data1:Kn,data2:In,startPTS:br,endPTS:kr,startDTS:br,endDTS:kr,type:"audio",hasAudio:!0,hasVideo:!1,nb:hn};return this.isAudioContiguous=!0,Nr}}function Hi(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function As(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function wr(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let c=0;c<r;c++){const p=a.samples[c];p.pts=Hi(p.pts-t.baseTime*i/t.timescale,e*i)/i,p.dts=Hi(p.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function Mr(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const c=a.samples[s];c.pts=Hi(c.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,c)=>s.pts-c.pts);const i=a.samples;return a.samples=[],{samples:i}}class xi extends H{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:i,video:s}=this.initData=Re(e);if(t)ke(e,t);else{const p=i||s;p!=null&&p.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${p.codec}")!`)}i&&(n=$s(i,G.AUDIO,this)),s&&(r=$s(s,G.VIDEO,this));const c={};i&&s?c.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:i?c.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:s?c.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=c}remux(e,t,n,r,i,s){var c,p;let{initPTS:m,lastEndTime:v}=this;const E={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};l(v)||(v=this.lastEndTime=i||0);const k=t.samples;if(!k.length)return E;const X={initPTS:void 0,timescale:void 0,trackId:void 0};let J=this.initData;if((c=J)!=null&&c.length||(this.generateInitSegment(k),J=this.initData),!((p=J)!=null&&p.length))return this.warn("Failed to generate initSegment."),E;this.emitInitSegment&&(X.tracks=this.initTracks,this.emitInitSegment=!1);const De=dt(k,J,this),Ie=J.audio?De[J.audio.id]:null,at=J.video?De[J.video.id]:null,pt=Ki(at,1/0),_t=Ki(Ie,1/0),$t=Ki(at,0,!0),Ht=Ki(Ie,0,!0);let In=i,Yt=0;const mn=Ie&&(!at||!m&&_t<pt||m&&m.trackId===J.audio.id),hn=mn?Ie:at;if(hn){const Tr=hn.timescale,Zr=hn.start-i*Tr,oi=mn?J.audio.id:J.video.id;In=hn.start/Tr,Yt=mn?Ht-_t:$t-pt,(s||!m)&&(Ei(m,In,i,Yt)||Tr!==m.timescale)&&(m&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${i} ${Zr/Tr} != initPTS: ${m.baseTime/m.timescale} (${m.baseTime}/${m.timescale}) trackId: ${m.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${In-i} (${Zr}/${Tr}) trackId: ${oi}`),m=null,X.initPTS=Zr,X.timescale=Tr,X.trackId=oi)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);m?(X.initPTS=m.baseTime,X.timescale=m.timescale,X.trackId=m.trackId):((!X.timescale||X.trackId===void 0||X.initPTS===void 0)&&(this.warn("Could not set initPTS"),X.initPTS=In,X.timescale=1,X.trackId=-1),this.initPTS=m={baseTime:X.initPTS,timescale:X.timescale,trackId:X.trackId});const en=In-m.baseTime/m.timescale,Kn=en+Yt;Yt>0?this.lastEndTime=Kn:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const br=!!J.audio,kr=!!J.video;let Wr="";br&&(Wr+="audio"),kr&&(Wr+="video");const Nr=(J.audio?J.audio.encrypted:!1)||(J.video?J.video.encrypted:!1),fr={data1:k,startPTS:en,startDTS:en,endPTS:Kn,endDTS:Kn,type:Wr,hasAudio:br,hasVideo:kr,nb:1,dropped:0,encrypted:Nr};E.audio=br&&!kr?fr:void 0,E.video=kr?fr:void 0;const Br=at==null?void 0:at.sampleCount;if(Br){const Tr=at.keyFrameIndex,Zr=Tr!==-1;fr.nb=Br,fr.dropped=Tr===0||this.isVideoContiguous?0:Zr?Tr:Br,fr.independent=Zr,fr.firstKeyFrame=Tr,Zr&&at.keyFrameStart&&(fr.firstKeyFramePTS=(at.keyFrameStart-m.baseTime)/m.timescale),this.isVideoContiguous||(E.independent=Zr),this.isVideoContiguous||(this.isVideoContiguous=Zr),fr.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Tr}/${Br} dropped: ${fr.dropped} start: ${fr.firstKeyFramePTS||"NA"}`)}return E.initSegment=X,E.id3=wr(n,i,m,m),r.samples.length&&(E.text=Mr(r,i,m)),E}}function Ki(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function Ei(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function $s(a,e,t){const n=a.codec;return n&&n.length>4?n:e===G.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?xe(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 qi;try{qi=self.performance.now.bind(self.performance)}catch(a){qi=Date.now}const na=[{demux:wt,remux:xi},{demux:wn,remux:Ni},{demux:b,remux:Ni},{demux:Me,remux:Ni}];na.splice(2,0,{demux:Y,remux:Ni});class rs{constructor(e,t,n,r,i,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=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=qi();let s=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:p}=this;r&&(this.currentTransmuxState=r);const{contiguous:m,discontinuity:v,trackSwitch:E,accurateTimeOffset:k,timeOffset:X,initSegmentChange:J}=r||c,{audioCodec:De,videoCodec:Ie,defaultInitPts:at,duration:pt,initSegmentData:_t}=p,$t=Bi(s,t);if($t&&_r($t.method)){const mn=this.getDecrypter(),hn=Or($t.method);if(mn.isSync()){let en=mn.softwareDecrypt(s,$t.key.buffer,$t.iv.buffer,hn);if(n.part>-1){const br=mn.flush();en=br&&br.buffer}if(!en)return i.executeEnd=qi(),Qi(n);s=new Uint8Array(en)}else return this.asyncResult=!0,this.decryptionPromise=mn.webCryptoDecrypt(s,$t.key.buffer,$t.iv.buffer,hn).then(en=>{const Kn=this.push(en,null,n);return this.decryptionPromise=null,Kn}),this.decryptionPromise}const Ht=this.needsProbing(v,E);if(Ht){const mn=this.configureTransmuxer(s);if(mn)return this.logger.warn(`[transmuxer] ${mn.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:le.MEDIA_ERROR,details:F.FRAG_PARSING_ERROR,fatal:!1,error:mn,reason:mn.message}),i.executeEnd=qi(),Qi(n)}(v||E||J||Ht)&&this.resetInitSegment(_t,De,Ie,pt,t),(v||J||Ht)&&this.resetInitialTimestamp(at),m||this.resetContiguity();const In=this.transmux(s,$t,X,k,n);this.asyncResult=Wi(In);const Yt=this.currentTransmuxState;return Yt.contiguous=!0,Yt.discontinuity=!1,Yt.trackSwitch=!1,i.executeEnd=qi(),In}flush(e){const t=e.transmuxing;t.executeStart=qi();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:c}=r;if(n){const E=n.flush();E&&s.push(this.push(E.buffer,null,e))}const{demuxer:p,remuxer:m}=this;if(!p||!m){t.executeEnd=qi();const E=[Qi(e)];return this.asyncResult?Promise.resolve(E):E}const v=p.flush(c);return Wi(v)?(this.asyncResult=!0,v.then(E=>(this.flushRemux(s,E,e),s))):(this.flushRemux(s,v,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:c}=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===Q.MAIN?"level":"track"} ${n.level}`);const v=this.remuxer.remux(r,i,s,c,m,p,!0,this.id);e.push({remuxResult:v,chunkMeta:n}),n.transmuxing.executeEnd=qi()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:c}=this;!s||!c||(s.resetInitSegment(e,t,n,r),c.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:c,textTrack:p}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,c,p,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){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:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let E=0,k=na.length;E<k;E++){var s;if((s=na[E].demux)!=null&&s.probe(e,this.logger)){i=na[E];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const c=this.demuxer,p=this.remuxer,m=i.remux,v=i.demux;(!p||!(p instanceof m))&&(this.remuxer=new m(n,t,r,this.logger)),(!c||!(c 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 qr(this.config)),e}}function Bi(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Qi=a=>({remuxResult:{},chunkMeta:a});function Wi(a){return"then"in a&&a.then instanceof Function}class Is{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class ys{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let Di=0;class fs{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Di++,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 E;const k=(E=this.workerContext)==null?void 0:E.objectURL;k&&self.URL.revokeObjectURL(k);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:le.OTHER_ERROR,details:F.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:m})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.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 _o,this.observer.on(g.FRAG_DECRYPTED,s),this.observer.on(g.ERROR,s);const c=En(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const p=this.hls.logger;if(i.workerPath||$o()){try{i.workerPath?(p.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Fo(i.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:c,id:t,config:Rt(i)})}catch(v){p.warn(`Error setting up "${t}" Web Worker, fallback to inline`,v),this.terminateWorker(),this.error=null,this.transmuxer=new rs(this.observer,c,i,"",t,e.logger)}return}}this.transmuxer=new rs(this.observer,c,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Di++;const t=this.hls.config,n=En(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:Rt(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,i,s,c,p,m,v){var E,k;m.transmuxing.start=self.performance.now();const{instanceNo:X,transmuxer:J}=this,De=s?s.start:i.start,Ie=i.decryptdata,at=this.frag,pt=!(at&&i.cc===at.cc),_t=!(at&&m.level===at.level),$t=at?m.sn-at.sn:-1,Ht=this.part?m.part-this.part.index:-1,In=$t===0&&m.id>1&&m.id===(at==null?void 0:at.stats.chunkCount),Yt=!_t&&($t===1||$t===0&&(Ht===1||In&&Ht<=0)),mn=self.performance.now();(_t||$t||i.stats.parsing.start===0)&&(i.stats.parsing.start=mn),s&&(Ht||!Yt)&&(s.stats.parsing.start=mn);const hn=!(at&&((E=i.initSegment)==null?void 0:E.url)===((k=at.initSegment)==null?void 0:k.url)),en=new ys(pt,Yt,p,_t,De,hn);if(!Yt||pt||hn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${m.sn}${m.part>-1?" part: "+m.part:""} ${this.id===Q.MAIN?"level":"track"}: ${m.level} id: ${m.id}
|
|
|
discontinuity: ${pt}
|
|
|
trackSwitch: ${_t}
|
|
|
contiguous: ${Yt}
|
|
|
accurateTimeOffset: ${p}
|
|
|
timeOffset: ${De}
|
|
|
initSegmentChange: ${hn}`);const Kn=new Is(n,r,t,c,v);this.configureTransmuxer(Kn)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:X,cmd:"demux",data:e,decryptdata:Ie,chunkMeta:m,state:en},e instanceof ArrayBuffer?[e]:[]);else if(J){const Kn=J.push(e,Ie,m,en);Wi(Kn)?Kn.then(br=>{this.handleTransmuxComplete(br)}).catch(br=>{this.transmuxerError(br,m,"transmuxer-interface push error")}):this.handleTransmuxComplete(Kn)}}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);Wi(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.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 Vi=100;class Us extends oo{constructor(e,t,n){super(e,t,n,"audio-stream-controller",Q.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:i,trackId:s}){if(n===Q.MAIN){const c=t.cc,p=this.fragCurrent;if(this.initPTS[c]={baseTime:r,timescale:i,trackId:s},this.log(`InitPTS for cc: ${c} found from main: ${r/i} (${r}/${i}) trackId: ${s}`),this.mainAnchor=t,this.state===Mn.WAITING_INIT_PTS){const m=this.waitingData;(!m&&!this.loadingParts||m&&m.frag.cc!==c)&&this.syncWithAnchor(t,m==null?void 0:m.frag)}else!this.hls.hasEnoughToStart&&p&&p.cc!==c?(p.abortRequests(),this.syncWithAnchor(t,p)):this.state===Mn.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 i=(r||e).cc,s=this.getLevelDetails(),c=this.getLoadPosition(),p=ir(s,i,c);p&&(this.log(`Syncing with main frag at ${p.start} cc ${p.cc}`),this.startFragRequested=!1,this.nextLoadPosition=p.start,this.resetLoadingState(),this.state===Mn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Mn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Vi),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=Mn.IDLE):this.state=Mn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Mn.IDLE:this.doTickIdle();break;case Mn.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=Mn.WAITING_INIT_PTS}break}case Mn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Mn.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=Mn.FRAG_LOADING;const c=r.flush().buffer,p={frag:t,part:n,payload:c,networkDetails:null};this._handleFragmentLoadProgress(p),i&&super._handleFragmentLoadComplete(p)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=Mn.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:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const c=n[i],p=c.details;if(!p||this.waitForLive(c)||this.waitForCdnTuneIn(p)){this.state=Mn.WAITING_TRACK,this.startFragRequested=!1;return}const m=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&m&&(this.bufferFlushed=!1,this.afterBufferFlushed(m,G.AUDIO,Q.AUDIO));const v=this.getFwdBufferInfo(m,Q.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,p)){t.trigger(g.BUFFER_EOS,{type:"audio"}),this.state=Mn.ENDED;return}const E=v.len,k=t.maxBufferLength,X=p.fragments,J=X[0].start,De=this.getLoadPosition(),Ie=this.flushing?De:v.end;if(this.switchingTrack&&r){const _t=De;p.PTSKnown&&_t<J&&(v.end>J||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=J+.05)}if(E>=k&&!this.switchingTrack&&Ie<X[X.length-1].start)return;let at=this.getNextFragment(Ie,p);if(at&&this.isLoopLoading(at,Ie)&&(at=this.getNextFragmentLoopLoading(at,p,v,Q.MAIN,k)),!at){this.bufferFlushed=!0;return}let pt=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&pt&&We(at)&&!at.endList&&(!p.live||!this.loadingParts&&Ie<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(pt)===Bn.OK&&(this.mainFragLoading=pt=null),pt&&We(pt))){if(at.start>pt.end){const $t=this.fragmentTracker.getFragAtPos(Ie,Q.MAIN);$t&&$t.end>pt.end&&(pt=$t,this.mainFragLoading={frag:$t,targetBufferTime:null})}if(at.start>pt.end)return}this.loadFragment(at,c,Ie)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Vt(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!==Mn.STOPPED&&(this.setInterval(Vi),this.state=Mn.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:i,id:s,groupId:c,track:p}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${p.name}" of "${c}"`);return}const m=this.mainDetails;if(!m||i.endCC>m.endCC||m.expired){this.cachedTrackLoadedData=t,this.state!==Mn.STOPPED&&(this.state=Mn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${p.name}" of "${c}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const v=r[s];let E=0;if(i.live||(n=v.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(v.details){var k;E=this.alignPlaylists(i,v.details,(k=this.levelLastLoaded)==null?void 0:k.details)}i.alignedSliding||(Na(i,m),i.alignedSliding||ao(i,m),E=i.fragmentStart)}v.details=i,this.levelLastLoaded=v,this.startFragRequested||this.setStartPosition(m,E),this.hls.trigger(g.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===Mn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Mn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:c,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[c];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 E=s.defaultAudioCodec||m.audioCodec||"mp4a.40.2";let k=this.transmuxer;k||(k=this.transmuxer=new fs(this.hls,Q.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const X=this.initPTS[n.cc],J=(t=n.initSegment)==null?void 0:t.data;if(X!==void 0){const Ie=r?r.index:-1,at=Ie!==-1,pt=new Mi(n.level,n.sn,n.stats.chunkCount,i.byteLength,Ie,at);k.push(i,J,E,"",n,r,v.totalduration,!1,pt,X)}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 ${c}`);const{cache:De}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Ba,complete:!1};De.push(new Uint8Array(i)),this.state!==Mn.STOPPED&&(this.state=Mn.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===Q.MAIN&&We(t.frag)&&(this.mainFragLoading=t,this.state===Mn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==Q.AUDIO){!this.audioOnly&&n.type===Q.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(We(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,I({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=Mn.ERROR;return}switch(t.details){case F.FRAG_GAP:case F.FRAG_PARSING_ERROR:case F.FRAG_DECRYPT_ERROR:case F.FRAG_LOAD_ERROR:case F.FRAG_LOAD_TIMEOUT:case F.KEY_LOAD_ERROR:case F.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Q.AUDIO,t);break;case F.AUDIO_TRACK_LOAD_ERROR:case F.AUDIO_TRACK_LOAD_TIMEOUT:case F.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Mn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===q.AUDIO_TRACK&&(this.state=Mn.IDLE);break;case F.BUFFER_ADD_CODEC_ERROR:case F.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case F.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case F.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==G.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==G.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Mn.ENDED&&(this.state=Mn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,Q.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,c=this.getCurrentContext(s);if(!c){this.resetWhenMissingContext(s);return}const{frag:p,part:m,level:v}=c,{details:E}=v,{audio:k,text:X,id3:J,initSegment:De}=i;if(this.fragContextChanged(p)||!E){this.fragmentTracker.removeFragment(p);return}if(this.state=Mn.PARSING,this.switchingTrack&&k&&this.completeAudioSwitch(this.switchingTrack),De!=null&&De.tracks){const Ie=p.initSegment||p;if(this.unhandledEncryptionError(De,p))return;this._bufferInitSegment(v,De.tracks,Ie,s),r.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:Ie,id:n,tracks:De.tracks})}if(k){const{startPTS:Ie,endPTS:at,startDTS:pt,endDTS:_t}=k;m&&(m.elementaryStreams[G.AUDIO]={startPTS:Ie,endPTS:at,startDTS:pt,endDTS:_t}),p.setElementaryStreamInfo(G.AUDIO,Ie,at,pt,_t),this.bufferFragmentData(k,p,m,s)}if(J!=null&&(t=J.samples)!=null&&t.length){const Ie=y({id:n,frag:p,details:E},J);r.trigger(g.FRAG_PARSING_METADATA,Ie)}if(X){const Ie=y({id:n,frag:p,details:E},X);r.trigger(g.FRAG_PARSING_USERDATA,Ie)}}_bufferInitSegment(e,t,n,r){if(this.state!==Mn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=Q.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(g.BUFFER_CODECS,t);const c=i.initSegment;if(c!=null&&c.byteLength){const p={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(g.BUFFER_APPENDING,p)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===Bn.NOT_LOADED||r===Bn.PARTIAL){var i;if(!We(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Mn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&ao(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:i,audioCodec:s,channels:c}=this.bufferedTrack;Rn({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:c},e,jn)||(Xn(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,I({},e))}}class hs extends H{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 i=-1;for(let s=0;s<r.length;s++){const c=r[s];let p;try{p=new self.URL(c.URI,t.url).href}catch(m){this.warn(`Could not construct new URL for Rendition Report: ${m}`),p=c.URI||""}if(p===e){i=s;break}else p===e.substring(0,p.length)&&(i=s)}if(i!==-1){const s=r[i],c=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&&pn(n);return new _n(c,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:i}=t,s=self.performance.now(),c=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-c;const p=this.hls.config.timelineOffset;if(p!==r.appliedTimelineOffset){const v=Math.max(p||0,0);r.appliedTimelineOffset=v,r.fragments.forEach(E=>{E.setStart(E.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){Js(n,r,this);const pt=r.playlistParsingError;if(pt){this.warn(pt);const _t=this.hls;if(!_t.config.ignorePlaylistParsingErrors){var m;const{networkDetails:$t}=t;_t.trigger(g.ERROR,{type:le.NETWORK_ERROR,details:F.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:pt,reason:pt.message,level:t.level||void 0,parent:(m=r.fragments[0])==null?void 0:m.type,networkDetails:$t,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const E=this.hls.mainForwardBufferInfo,k=E?E.end-E.len:0,X=(r.edge-k)*1e3,J=wi(r,X);if(r.requestScheduled+J<s?r.requestScheduled=s:r.requestScheduled+=J,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let De,Ie,at;if(r.canBlockReload&&r.endSN&&r.advanced){const pt=this.hls.config.lowLatencyMode,_t=r.lastPartSn,$t=r.endSN,Ht=r.lastPartIndex,In=Ht!==-1,Yt=_t===$t;In?Yt?(Ie=$t+1,at=pt?0:Ht):(Ie=_t,at=pt?Ht+1:r.maxPartIndex):Ie=$t+1;const mn=r.age,hn=mn+r.ageHeader;let en=Math.min(hn-r.partTarget,r.targetduration*1.5);if(en>0){if(hn>r.targetduration*3)this.log(`Playlist last advanced ${mn.toFixed(2)}s ago. Omitting segment and part directives.`),Ie=void 0,at=void 0;else if(n!=null&&n.tuneInGoal&&hn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${en} with playlist age: ${r.age}`),en=0;else{const Kn=Math.floor(en/r.targetduration);if(Ie+=Kn,at!==void 0){const br=Math.round(en%r.targetduration/r.partTarget);at+=br}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${mn.toFixed(2)}s goal: ${en} skip sn ${Kn} to part ${at}`)}r.tuneInGoal=en}if(De=this.getDeliveryDirectives(r,t.deliveryDirectives,Ie,at),pt||!Yt){r.requestScheduled=s,this.loadingPlaylist(v,De);return}}else(r.canBlockReload||r.canSkipUntil)&&(De=this.getDeliveryDirectives(r,t.deliveryDirectives,Ie,at));De&&Ie!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(J-c*2,J/2)),this.scheduleLoading(v,De,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const c=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(c)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),c)}getDeliveryDirectives(e,t,n,r){let i=pn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Jt.No),new _n(n,r,i)}checkRetry(e){const t=e.details,n=Vn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:c}=r||{},p=!!r&&!!c&&(i===Zn.RetryRequest||!r.resolved&&i===Zn.SendAlternateToPenaltyBox);if(p){var m;if(s>=c.maxNumRetry)return!1;if(n&&(m=e.context)!=null&&m.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const v=hr(c,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),v),this.warn(`Retrying playlist loading ${s+1}/${c.maxNumRetry} after "${t}" in ${v}ms`)}e.levelRetry=!0,r.resolved=!0}return p}}function Vs(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!pa(a[t].attrs,e[t].attrs))return!1;return!0}function pa(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function fo(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class cs extends hs{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:i}=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 c=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(c=>(r==null?void 0:r.indexOf(c))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(k=>!n||n.indexOf(k.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(k=>k.default)&&(this.selectDefaultTrack=!1),c.forEach((k,X)=>{k.id=X});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const p=this.hls.config.audioPreference;if(!i&&p){const k=on(p,c,jn);if(k>-1)i=c[k];else{const X=on(p,this.tracks);i=this.tracks[X]}}let m=this.findTrackId(i);m===-1&&i&&(m=this.findTrackId(null));const v={audioTracks:c};this.log(`Updating audio tracks, ${c.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(g.AUDIO_TRACKS_UPDATED,v);const E=this.trackId;if(m!==-1&&E===-1)this.setAudioTrack(m);else if(c.length&&E===-1){var s;const k=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${c.length}`);this.warn(k.message),this.hls.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:k})}}}onError(e,t){t.fatal||!t.context||t.context.type===q.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&&Rn(e,r,jn))return r;const i=on(e,this.tracksInGroup,jn);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const c=zn(e,t.levels,n,s,jn);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const s=on(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],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(g.AUDIO_TRACK_SWITCHING,I({},r)),i))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||Rn(e,r,jn)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p}=e;for(let m=0;m<t.length;m++){const v=t[m];if(Rn({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:c,channels:p},v,jn))return m}for(let m=0;m<t.length;m++){const v=t[m];if(pa(e.attrs,v.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return m}for(let m=0;m<t.length;m++){const v=t[m];if(pa(e.attrs,v.attrs,["LANGUAGE"]))return m}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Xn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,c=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:""}${c&&s.live?" age "+c.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(g.AUDIO_TRACK_LOADING,{url:i,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(i){var n;if(r.onError(i),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 Gs=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ca="HlsJsTrackRemovedError";class da extends Error{constructor(e){super(e),this.name=ca}}class qs extends H{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:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(g.MEDIA_ATTACHED,{media:r,mediaSource:i}),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=$e(Le(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 i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?y(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=y({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[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=Le(this.appendSource);if(r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const c=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,Ys(n),ga(n,c),n.load()}catch(p){n.src=c}else n.src=c}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,i=r?Object.keys(r):null,s=i?i.length:0,c=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&i&&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: ${Rt(n,(p,m)=>p==="initSegment"?void 0:m)};
|
|
|
transfer tracks: ${Rt(r,(p,m)=>p==="initSegment"?void 0:m)}}`),!Te(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,i.forEach(p=>{const m=p,v=r[m];if(v){const E=v.buffer;if(E){const k=this.fragmentTracker,X=v.id;if(k.hasFragments(X)||k.hasParts(X)){const Ie=Gn.getBuffered(E);k.detectEvictedFragments(m,Ie,X,null,!0)}const J=Ra(m),De=[m,E];this.sourceBuffers[J]=De,E.updating&&this.operationQueue&&this.operationQueue.prependBlocker(m),this.trackSourceBuffer(m,v)}}}),c(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),c()}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:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([c])=>{c&&this.removeBuffer(c)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const c=i.readyState==="open";try{const p=i.sourceBuffers;for(let m=p.length;m--;)c&&p[m].abort(),i.removeSourceBuffer(p[m]);c&&i.endOfStream()}catch(p){this.warn(`onMediaDetaching: ${p.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.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&&Ys(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(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ra(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,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),c=!s&&this.sourceBufferCount&&this.media&&i.some(p=>!r[p]);if(s||c){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${i}" SourceBuffers`);return}i.forEach(p=>{var m,v;const E=t[p],{id:k,codec:X,levelCodec:J,container:De,metadata:Ie,supplemental:at}=E;let pt=r[p];const _t=(m=this.transferData)==null||(m=m.tracks)==null?void 0:m[p],$t=_t!=null&&_t.buffer?_t:pt,Ht=($t==null?void 0:$t.pendingCodec)||($t==null?void 0:$t.codec),In=$t==null?void 0:$t.levelCodec;pt||(pt=r[p]={buffer:void 0,listeners:[],codec:X,supplemental:at,container:De,levelCodec:J,metadata:Ie,id:k});const Yt=zt(Ht,In),mn=Yt==null?void 0:Yt.replace(Gs,"$1");let hn=zt(X,J);const en=(v=hn)==null?void 0:v.replace(Gs,"$1");hn&&Yt&&mn!==en&&(p.slice(0,5)==="audio"&&(hn=xe(hn,this.appendSource)),this.log(`switching codec ${Ht} to ${hn}`),hn!==(pt.pendingCodec||pt.codec)&&(pt.pendingCodec=hn),pt.container=De,this.appendChangeType(p,De,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}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const c=s.buffer;c!=null&&c.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),c.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(i,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,Q.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var c;const p=this.tracks.video;(this.lastVideoAppendEnd>r||p!=null&&p.buffer&&Gn.isBuffered(p.buffer,r)||((c=this.fragmentTracker.getAppendedFrag(r,Q.MAIN))==null?void 0:c.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:c=>{this.warn("Error executing block-audio operation",c)}};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:i,parent:s,frag:c,part:p,chunkMeta:m,offset:v}=t,E=m.buffering[i],{sn:k,cc:X}=c,J=self.performance.now();E.start=J;const De=c.stats.buffering,Ie=p?p.stats.buffering:null;De.start===0&&(De.start=J),Ie&&Ie.start===0&&(Ie.start=J);const at=n.audio;let pt=!1;i==="audio"&&(at==null?void 0:at.container)==="audio/mpeg"&&(pt=!this.lastMpegAudioChunk||m.id===1||this.lastMpegAudioChunk.sn!==m.sn,this.lastMpegAudioChunk=m);const _t=n.video,$t=_t==null?void 0:_t.buffer;if($t&&k!=="initSegment"){const Yt=p||c,mn=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(_t.ending||_t.ended)){const en=Yt.start+Yt.duration*.05,Kn=$t.buffered,br=this.currentOp("video");!Kn.length&&!br?this.blockAudio(Yt):!br&&!Gn.isBuffered($t,en)&&this.lastVideoAppendEnd<en&&this.blockAudio(Yt)}else if(i==="video"){const hn=Yt.end;if(mn){const en=mn.frag.start;(hn>en||hn<this.lastVideoAppendEnd||Gn.isBuffered($t,en))&&this.unblockAudio()}this.lastVideoAppendEnd=hn}}const Ht=(p||c).start,In={label:`append-${i}`,execute:()=>{var Yt;E.executeStart=self.performance.now();const mn=(Yt=this.tracks[i])==null?void 0:Yt.buffer;mn&&(pt?this.updateTimestampOffset(mn,Ht,.1,i,k,X):v!==void 0&&l(v)&&this.updateTimestampOffset(mn,v,1e-6,i,k,X)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Yt=self.performance.now();E.executeEnd=E.end=Yt,De.first===0&&(De.first=Yt),Ie&&Ie.first===0&&(Ie.first=Yt);const mn={};this.sourceBuffers.forEach(([hn,en])=>{hn&&(mn[hn]=Gn.getBuffered(en))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(g.BUFFER_APPENDED,{type:i,frag:c,part:p,chunkMeta:m,parent:c.type,timeRanges:mn})},onError:Yt=>{var mn;const hn={type:le.MEDIA_ERROR,parent:c.type,details:F.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:c,part:p,chunkMeta:m,error:Yt,err:Yt,fatal:!1},en=(mn=this.media)==null?void 0:mn.error;if(Yt.code===DOMException.QUOTA_EXCEEDED_ERR||Yt.name=="QuotaExceededError"||"quota"in Yt)hn.details=F.BUFFER_FULL_ERROR;else if(Yt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!en)hn.errorAction=un(!0);else if(Yt.name===ca&&this.sourceBufferCount===0)hn.errorAction=un(!0);else{const Kn=++this.appendErrors[i];this.warn(`Failed ${Kn}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${en||"no media error"})`),(Kn>=this.hls.config.appendErrorMaxRetry||en)&&(hn.fatal=!0)}this.hls.trigger(g.ERROR,hn)}};this.log(`queuing "${i}" append sn: ${k}${p?" p: "+p.index:""} of ${c.type===Q.MAIN?"level":"track"} ${c.level} cc: ${X}`),this.append(In,i,this.isPending(this.tracks[i]))}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:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[G.AUDIOVIDEO]?i.push("audiovideo"):(s[G.AUDIO]&&i.push("audio"),s[G.VIDEO]&&i.push("video"));const c=()=>{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})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(c,i).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 c=this.tracks[s];(!t.type||t.type===s)&&(c.ending=!0,c.ended||(c.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 c;return s&&!((c=this.tracks[s])!=null&&c.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===F.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;l(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,i=n.currentTime,s=t.levelTargetDuration,c=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(l(c)&&c>=0){const m=Math.max(c,s),v=Math.floor(i/s)*s-m;this.flushBackBuffer(i,s,v)}const p=r.frontBufferFlushThreshold;if(l(p)&&p>0){const m=Math.max(r.maxBufferLength,p),v=Math.max(m,s),E=Math.floor(i/s)*s+v;this.flushFrontBuffer(i,s,E)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const c=Gn.getBuffered(i);if(c.length>0&&n>c.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,i])=>{if(i){const s=Gn.getBuffered(i),c=s.length;if(c<2)return;const p=s.start(c-1),m=s.end(c-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 i=(e=this.overrides)==null?void 0:e.duration;if(i)return l(i)?{duration:i}:null;const s=this.media.duration,c=l(n.duration)?n.duration:0;return r>c&&r>s||!l(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(l(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}) ${Rt(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).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:le.MEDIA_ERROR,details:F.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 i in e){const s=i,c=e[s];if(this.isPending(c)){const p=this.getTrackCodec(c,s),m=`${c.container};codecs=${p}`;c.codec=p,this.log(`creating sourceBuffer(${m})${this.currentOp(s)?" Queued":""} ${Rt(c)}`);try{const v=n.addSourceBuffer(m),E=Ra(s),k=[s,v];t[E]=k,c.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:le.MEDIA_ERROR,details:F.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:s,mimeType:m,parent:c.id});return}this.trackSourceBuffer(s,c)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&it(n,"video")&&(r=At(r,n));const i=zt(r,e.levelCodec);return i?t.slice(0,5)==="audio"?xe(i,this.appendSource):i:""}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",(i,s)=>{const c=s.removedRanges;c!=null&&c.length&&this.hls.trigger(g.BUFFER_FLUSHED,{type:i})})}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:le.MEDIA_ERROR,details:F.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,s){const c=t-e.timestampOffset;Math.abs(c)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],c=s==null?void 0:s.buffer;if(!r||!i||!c){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const p=l(r.duration)?r.duration:1/0,m=l(i.duration)?i.duration:1/0,v=Math.max(0,t),E=Math.min(n,p,m);E>v&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${v},${E}] from the ${e} SourceBuffer`),c.remove(v,E)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new da(`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 i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.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 Ys(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function ga(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Ra(a){return a==="audio"?1:0}class va{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&&l(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,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,va.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=(c,p)=>p?c.width!==p.width||c.height!==p.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let c=0;c<e.length;c+=1){const p=e[c];if((p.width>=s||p.height>=s)&&r(p,e[c+1])){i=c;break}}return i}}const Xs={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},cl={HLS:"h"};class fa{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof fa?n:new fa(n))),this.value=e,this.params=t}}const dl="Dict";function si(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function $i(a,e,t,n){return new Error(`failed to ${a} "${si(e)}" as ${t}`,{cause:n})}function Ji(a,e,t){return $i("serialize",a,e,t)}class bs{constructor(e){this.description=e}}const Qs="Bare Item",ya="Boolean";function xa(a){if(typeof a!="boolean")throw Ji(a,ya);return a?"?1":"?0"}function Ks(a){return btoa(String.fromCharCode(...a))}const Ql="Byte Sequence";function Il(a){if(ArrayBuffer.isView(a)===!1)throw Ji(a,Ql);return`:${Ks(a)}:`}const Yo="Integer";function vo(a){return a<-999999999999999||999999999999999<a}function Dl(a){if(vo(a))throw Ji(a,Yo);return a.toString()}function Rl(a){return`@${Dl(a.getTime()/1e3)}`}function Ol(a,e){if(a<0)return-Ol(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}const Ll="Decimal";function Jl(a){const e=Ol(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Ji(a,Ll);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pl="String",Xo=/[\x00-\x1f\x7f]+/;function Ml(a){if(Xo.test(a))throw Ji(a,Pl);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function ql(a){return a.description||a.toString().slice(7,-1)}const kl="Token";function fl(a){const e=ql(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Ji(e,kl);return e}function hl(a){switch(typeof a){case"number":if(!l(a))throw Ji(a,Qs);return Number.isInteger(a)?Dl(a):Jl(a);case"string":return Ml(a);case"symbol":return fl(a);case"boolean":return xa(a);case"object":if(a instanceof Date)return Rl(a);if(a instanceof Uint8Array)return Il(a);if(a instanceof bs)return fl(a);default:throw Ji(a,Qs)}}const eu="Key";function ml(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Ji(a,eu);return a}function Qo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${ml(e)}`:`;${ml(e)}=${hl(t)}`).join("")}function Ro(a){return a instanceof fa?`${hl(a.value)}${Qo(a.params)}`:hl(a)}function pl(a){return`(${a.value.map(Ro).join(" ")})${Qo(a.params)}`}function gl(a,e={whitespace:!0}){if(typeof a!="object"||a==null)throw Ji(a,dl);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof fa||(i=new fa(i));let s=ml(r);return i.value===!0?s+=Qo(i.params):(s+="=",Array.isArray(i.value)?s+=pl(i):s+=Ro(i)),s}).join(`,${n}`)}function vl(a,e){return gl(a,e)}const Ea="CMCD-Object",gs="CMCD-Request",to="CMCD-Session",no="CMCD-Status",Nl={br:Ea,ab:Ea,d:Ea,ot:Ea,tb:Ea,tpb:Ea,lb:Ea,tab:Ea,lab:Ea,url:Ea,pb:gs,bl:gs,tbl:gs,dl:gs,ltc:gs,mtp:gs,nor:gs,nrr:gs,rc:gs,sn:gs,sta:gs,su:gs,ttfb:gs,ttfbb:gs,ttlb:gs,cmsdd:gs,cmsds:gs,smrt:gs,df:gs,cs:gs,ts:gs,cid:to,pr:to,sf:to,sid:to,st:to,v:to,msd:to,bs:no,bsd:no,cdn:no,rtp:no,bg:no,pt:no,ec:no,e:no},yl={REQUEST:gs};function Bl(a){return Object.keys(a).reduce((e,t)=>{var n;return(n=a[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function bl(a,e){const t={};if(!a)return t;const n=Object.keys(a),r=e?Bl(e):{};return n.reduce((i,s)=>{var c;const p=Nl[s]||r[s]||yl.REQUEST,m=(c=i[p])!==null&&c!==void 0?c:i[p]={};return m[s]=a[s],i},t)}function $l(a){return["ot","sf","st","e","sta"].includes(a)}function tu(a){return typeof a=="number"?l(a):a!=null&&a!==""&&a!==!1}const yi="event";function Ti(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")+t.search+t.hash}const Ds=a=>Math.round(a),ra=(a,e)=>Array.isArray(a)?a.map(t=>ra(t,e)):a instanceof fa&&typeof a.value=="string"?new fa(ra(a.value,e),a.params):(e.baseUrl&&(a=Ti(a,e.baseUrl)),e.version===1?encodeURIComponent(a):a),Rs=a=>Ds(a/100)*100,ho={br:Ds,d:Ds,bl:Rs,dl:Rs,mtp:Rs,nor:(a,e)=>{let t=a;return e.version>=2&&(a instanceof fa&&typeof a.value=="string"?t=new fa([a]):typeof a=="string"&&(t=[a])),ra(t,e)},rtp:Rs,tb:Ds},ro="request",yo="response",Lo=["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 Fl(a){return fc.test(a)}function hc(a){return Lo.includes(a)||dc.includes(a)||Fl(a)}const xu=["d","dl","nor","ot","rtp","su"];function mc(a){return Lo.includes(a)||xu.includes(a)||Fl(a)}const pc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function gc(a){return Lo.includes(a)||xu.includes(a)||pc.includes(a)||Fl(a)}const vc=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function yc(a){return vc.includes(a)||Fl(a)}const bc={[yo]:gc,[yi]:hc,[ro]:mc};function Eu(a,e={}){const t={};if(a==null||typeof a!="object")return t;const n=e.version||a.v||1,r=e.reportingMode||ro,i=n===1?yc:bc[r];let s=Object.keys(a).filter(i);const c=e.filter;typeof c=="function"&&(s=s.filter(c));const p=r===yo||r===yi;p&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const m=y({},ho,e.formatters),v={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(E=>{let k=a[E];const X=m[E];if(typeof X=="function"&&(k=X(k,v)),E==="v"){if(n===1)return;k=n}E=="pr"&&k===1||(p&&E==="ts"&&!l(k)&&(k=Date.now()),tu(k)&&($l(E)&&typeof k=="string"&&(k=new bs(k)),t[E]=k))}),t}function _c(a,e={}){const t={};if(!a)return t;const n=Eu(a,e),r=bl(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((i,[s,c])=>{const p=vl(c,{whitespace:!1});return p&&(i[s]=p),i},t)}function xc(a,e,t){return y(a,_c(e,t))}const Ec="CMCD";function Sc(a,e={}){return a?vl(Eu(a,e),{whitespace:!1}):""}function Cc(a,e={}){if(!a)return"";const t=Sc(a,e);return encodeURIComponent(t)}function wc(a,e={}){if(!a)return"";const t=Cc(a,e);return`${Ec}=${t}`}const Su=/CMCD=[^&#]+/;function Tc(a,e,t){const n=wc(e,t);if(!n)return a;if(Su.test(a))return a.replace(Su,n);const r=a.includes("?")?"&":"?";return`${a}${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:Xs.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,c=this.hls.levels[i.level],p=this.getObjectType(i),m={d:(s||i).duration*1e3,ot:p};(p===Xs.VIDEO||p===Xs.AUDIO||p==Xs.MUXED)&&(m.br=c.bitrate/1e3,m.tb=this.getTopBandwidth(p)/1e3,m.bl=this.getBufferLength(p));const v=s?this.getNextPart(s):this.getNextFrag(i);v!=null&&v.url&&v.url!==i.url&&(m.nor=v.url),this.apply(r,m)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||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={}){y(t,this.createData());const n=t.ot===Xs.INIT||t.ot===Xs.VIDEO||t.ot===Xs.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,c)=>(r.includes(c)&&(s[c]=t[c]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),xc(e.headers,t,i)):e.url=Tc(e.url,t,i)}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,i=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(i){const{sn:s}=r;for(let c=i.length-1;c>=0;c--){const p=i[c];if(p.index===n&&p.fragment.sn===s)return i[c+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Xs.TIMED_TEXT;if(e.sn==="initSegment")return Xs.INIT;if(t==="audio")return Xs.AUDIO;if(t==="main")return this.hls.audioTracks.length?Xs.VIDEO:Xs.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Xs.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(i=>{i.bitrate>t&&(t=i.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===Xs.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Gn.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,c){t(i),this.loader.load(i,s,c)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,c){t(i),this.loader.load(i,s,c)}}}}const Ic=3e5;class Dc extends H{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)===Zn.SendAlternateToPenaltyBox&&n.flags===Pn.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:c,pathwayId:p,type:m}=t.context;c&&r?s=this.getPathwayForGroupId(c,m,s):p&&(s=p)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),t.details===F.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: ${Rt(i)} penalized: ${Rt(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Ic&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const c=this.hls.nextLoadLevel,p=this.hls.levels[c];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,Ns(t),this.hls.trigger(g.LEVELS_UPDATED,{levels:t});const m=this.hls.levels[c];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=c);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===q.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===q.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":c,"URI-REPLACEMENT":p}=i;if(t.some(v=>v.pathwayId===s))return;const m=this.getLevelsForPathway(c).map(v=>{const E=new Pr(v.attrs);E["PATHWAY-ID"]=s;const k=E.AUDIO&&`${E.AUDIO}_clone_${s}`,X=E.SUBTITLES&&`${E.SUBTITLES}_clone_${s}`;k&&(n[E.AUDIO]=k,E.AUDIO=k),X&&(r[E.SUBTITLES]=X,E.SUBTITLES=X);const J=wu(v.uri,E["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",p),De=new Vt({attrs:E,audioCodec:v.audioCodec,bitrate:v.bitrate,height:v.height,name:v.name,url:J,videoCodec:v.videoCodec,width:v.width});if(v.audioGroups)for(let Ie=1;Ie<v.audioGroups.length;Ie++)De.addGroupId("audio",`${v.audioGroups[Ie]}_clone_${s}`);if(v.subtitleGroups)for(let Ie=1;Ie<v.subtitleGroups.length;Ie++)De.addGroupId("text",`${v.subtitleGroups[Ie]}_clone_${s}`);return De});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 i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,c=s.errorRetry||s.timeoutRetry||{},p={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},m={onSuccess:(v,E,k,X)=>{this.log(`Loaded steering manifest: "${r}"`);const J=v.data;if((J==null?void 0:J.VERSION)!==1){this.log(`Steering VERSION ${J.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=J.TTL;const{"RELOAD-URI":De,"PATHWAY-CLONES":Ie,"PATHWAY-PRIORITY":at}=J;if(De)try{this.uri=new self.URL(De,r).href}catch(_t){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${De}`);return}this.scheduleRefresh(this.uri||k.url),Ie&&this.clonePathways(Ie);const pt={steeringManifest:J,url:r.toString()};this.hls.trigger(g.STEERING_MANIFEST_LOADED,pt),at&&this.updatePathwayPriority(at)},onError:(v,E,k,X)=>{if(this.log(`Error loading steering manifest: ${v.code} ${v.text} (${E.url})`),this.stopLoad(),v.code===410){this.enabled=!1,this.log(`Steering manifest ${E.url} no longer available`);return}let J=this.timeToLoad*1e3;if(v.code===429){const De=this.loader;if(typeof(De==null?void 0:De.getResponseHeader)=="function"){const Ie=De.getResponseHeader("Retry-After");Ie&&(J=parseFloat(Ie)*1e3)}this.log(`Steering manifest ${E.url} rate limited`);return}this.scheduleRefresh(this.uri||E.url,J)},onTimeout:(v,E,k)=>{this.log(`Timeout loading steering manifest (${E.url})`),this.scheduleRefresh(this.uri||E.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,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(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const c=y({},s);return c.details=void 0,c.attrs=new Pr(c.attrs),c.url=c.attrs.URI=wu(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[r],c.attrs["PATHWAY-ID"]=n,c});a.push(...i)})}function wu(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let c;e&&(c=s==null?void 0:s[e],c&&(a=c));const p=new self.URL(a);return r&&!c&&(p.host=r),i&&Object.keys(i).sort().forEach(m=>{m&&p.searchParams.set(m,i[m])}),p.href}class Jo extends H{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,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Es(this.config));const c=s.map(us).filter(p=>!!p);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(s=>{const c=xs(s);if(n!=="sinf"||c!==Kr.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}let p;try{const X=tt(new Uint8Array(r)),J=ui(JSON.parse(X).sinf),De=fe(J);if(!De)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");p=new Uint8Array(De.subarray(8,24))}catch(X){this.warn(`${i} Failed to parse sinf: ${X}`);return}const m=se(p),{keyIdToKeySessionPromise:v,mediaKeySessions:E}=this;let k=v[m];for(let X=0;X<E.length;X++){const J=E[X],De=J.decryptdata;if(!De.keyId)continue;const Ie=se(De.keyId);if(xr(p,De.keyId)||De.uri.replace(/-/g,"").indexOf(m)!==-1){if(k=v[Ie],!k)continue;if(De.pssh)break;delete v[Ie],De.pssh=new Uint8Array(r),De.keyId=p,k=v[m]=k.then(()=>this.generateRequestWithPreferredKeySession(J,n,r,"encrypted-event-key-match")),k.catch(at=>this.handleError(at));break}}k||this.handleError(new Error(`Key ID ${m} not encountered in playlist. Key-system sessions ${E.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===Kr.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,c,p)=>!!s&&p.indexOf(s)===c,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,c)=>{const p=m=>{const v=m.shift();this.getMediaKeysPromise(v,r,i).then(E=>s({keySystem:v,mediaKeys:E})).catch(E=>{m.length?p(m):E instanceof Sa?c(E):c(new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_NO_ACCESS,error:E,fatal:!0},E.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 ms===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 i=ba(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],c=(r=s)==null?void 0:r.keySystemAccess;if(!c){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Rt(i)}`),c=this.requestMediaKeySystemAccess(e,i);const p=s=this.keySystemAccessPromises[e]={keySystemAccess:c};return c.catch(m=>{this.log(`Failed to obtain access to key-system "${e}": ${m}`)}),c.then(m=>{this.log(`Access for key-system "${m.keySystem}" obtained`);const v=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const E=p.mediaKeys=m.createMediaKeys().then(k=>(this.log(`Media-keys created for "${e}"`),p.hasMediaKeys=!0,v.then(X=>X?this.setMediaKeysServerCertificate(k,e,X):k)));return E.catch(k=>{this.error(`Failed to create media-keys for "${e}"}: ${k}`)}),E})}return c.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${se(e.keyId||[])} keyUri: ${e.uri}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=zl(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,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 ${se(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})=>us(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 i=us(r);i?t(i):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=Es(this.config),n=e.map(xs).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 c=Tu(r||"internal-error",t);return this.handleError(c,e.frag),Promise.reject(c)}const i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const c=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 ${i}`),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 c.catch(p=>this.handleError(p,e.frag)),this.keyIdToKeySessionPromise[n]=c,c}return s.catch(c=>{if(c instanceof Sa){const p=I({},c.data);this.getKeyStatus(t)==="internal-error"&&(p.decryptdata=t);const m=new Sa(p,c.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 Sa){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${se(n.keyId||[])})`:""}`),this.hls.trigger(g.ERROR,e.data)}else this.error(e.message),this.hls.trigger(g.ERROR,{type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=zl(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=xs(e.keyFormat),i=r?[r]:Es(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Es(this.config)),e.length===0)throw new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Rt({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((i,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(i).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(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i;const s=(i=this.config.drmSystems)==null||(i=i[e.keySystem])==null?void 0:i.generateRequest;if(s)try{const J=s.call(this.hls,t,n,e);if(!J)throw new Error("Invalid response from configured generateRequest filter");t=J.initDataType,n=J.initData?J.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(J){if(this.warn(J.message),this.hls&&this.hls.config.debug)throw J}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=zl(e.decryptdata),p=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${c} URI: ${p} (init data type: ${t} length: ${n.byteLength})`);const m=new _o,v=e._onmessage=J=>{const De=e.mediaKeysSession;if(!De){m.emit("error",new Error("invalid state"));return}const{messageType:Ie,message:at}=J;this.log(`"${Ie}" message event for session "${De.sessionId}" message size: ${at.byteLength}`),Ie==="license-request"||Ie==="license-renewal"?this.renewLicense(e,at).catch(pt=>{m.eventNames().length?m.emit("error",pt):this.handleError(pt)}):Ie==="license-release"?e.keySystem===Kr.FAIRPLAY&&this.updateKeySession(e,_i("acknowledged")).then(()=>this.removeSession(e)).catch(pt=>this.handleError(pt)):this.warn(`unhandled media key message type "${Ie}"`)},E=(J,De)=>{De.keyStatus=J;let Ie;J.startsWith("usable")?m.emit("resolved"):J==="internal-error"||J==="output-restricted"||J==="output-downscaled"?Ie=Tu(J,De.decryptdata):J==="expired"?Ie=new Error(`key expired (keyId: ${c})`):J==="released"?Ie=new Error("key released"):J==="status-pending"||this.warn(`unhandled key status change "${J}" (keyId: ${c})`),Ie&&(m.eventNames().length?m.emit("error",Ie):this.handleError(Ie))},k=e._onkeystatuseschange=J=>{if(!e.mediaKeysSession){m.emit("error",new Error("invalid state"));return}const Ie=this.getKeyStatuses(e);if(!Object.keys(Ie).some($t=>Ie[$t]!=="status-pending"))return;if(Ie[c]==="expired"){this.log(`Expired key ${Rt(Ie)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let pt=Ie[c];if(pt)E(pt,e);else{var _t;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(_t=e.keyStatusTimeouts)[c]||(_t[c]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const Ht=this.getKeyStatus(e.decryptdata);if(Ht&&Ht!=="status-pending")return this.log(`No status for keyId ${c} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${Ht} from other session.`),E(Ht,e);this.log(`key status for ${c} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),pt="internal-error",E(pt,e)},1e3)),this.log(`No status for keyId ${c} (${Rt(Ie)}).`)}};Bs(e.mediaKeysSession,"message",v),Bs(e.mediaKeysSession,"keystatuseschange",k);const X=new Promise((J,De)=>{m.on("error",De),m.on("resolved",J)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${c} URI: ${p}`)}).catch(J=>{throw new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_NO_SESSION,error:J,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${J}`)}).then(()=>X).catch(J=>(m.removeAllListeners(),this.removeSession(e).then(()=>{throw J}))).then(()=>(m.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((n,r)=>{if(typeof r=="string"&&typeof n=="object"){const c=r;r=n,n=c}const i="buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);if(e.keySystem===Kr.PLAYREADY&&i.length===16){const c=se(i);t[c]=n,ur(i)}const s=se(i);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),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,c)=>{const p={responseType:"arraybuffer",url:i},m=t.certLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(k,X,J,De)=>{s(k.data)},onError:(k,X,J,De)=>{c(new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:J,response:I({url:p.url,data:void 0},k)},`"${e}" certificate request failed (${i}). Status: ${k.code} (${k.text})`))},onTimeout:(k,X,J)=>{c(new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:J,response:{url:p.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(k,X,J)=>{c(new Error("aborted"))}};r.load(p,v,E)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Sa({type:le.KEY_SYSTEM_ERROR,details:F.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 Sa({type:le.KEY_SYSTEM_ERROR,details:F.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"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let v;for(let E=0,k=i.length;E<k;E++){var s,c;v=i[E];const X=(s=v.querySelector("name"))==null?void 0:s.textContent,J=(c=v.querySelector("value"))==null?void 0:c.textContent;X&&J&&e.setRequestHeader(X,J)}}const p=r.querySelector("Challenge"),m=p==null?void 0:p.textContent;if(!m)throw new Error("Cannot find <Challenge> in key message");return _i(atob(m))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.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,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let p=c.response;this.log(`License received ${p instanceof ArrayBuffer?p.byteLength:p}`);const m=this.config.licenseResponseCallback;if(m)try{p=m.call(this.hls,c,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||c.status>=400&&c.status<500)i(new Sa({type:le.KEY_SYSTEM_ERROR,details:F.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:c,response:{url:s,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${s}). Status: ${c.status} (${c.statusText})`));else{const v=m-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${v} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=c,this.setupLicenseXHR(c,s,e,t).then(({xhr:p,licenseChallenge:m})=>{e.keySystem==Kr.PLAYREADY&&(m=this.unpackPlayReadyKeyMessage(p,m)),p.send(m)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Bs(n,"encrypted",this.onMediaEncrypted),Bs(n,"waitingforkey",this.onWaitingForKey);const r=this.mediaResolved;r?r():this.mediaKeys=n.mediaKeys}onMediaDetached(){const e=this.media;e&&(Ws(e,"encrypted",this.onMediaEncrypted),Ws(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,ks.clearKeyUriToKeyIdMap();const i=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:le.OTHER_ERROR,details:F.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:le.OTHER_ERROR,details:F.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${s}`)})}).then(()=>{i&&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,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n,decryptdata:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${se((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 i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(m=>self.clearTimeout(s[m]));const{drmSystemOptions:c}=this.config;return(Ka(c)?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:le.OTHER_ERROR,details:F.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:le.OTHER_ERROR,details:F.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(a){if(!a)throw new Error("Could not read keyId of undefined decryptdata");if(a.keyId===null)throw new Error("keyId is null");return se(a.keyId)}function Rc(a,e){if(a.keyId&&e.mediaKeysSession.keyStatuses.has(a.keyId))return e.mediaKeysSession.keyStatuses.get(a.keyId);if(a.matches(e.decryptdata))return e.keyStatus}class Sa 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(a,e){const t=a==="output-restricted",n=t?F.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:F.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Sa({type:le.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${a}"`)}class Oc{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 i=r-this.lastTime,s=n-this.lastDroppedFrames,c=t-this.lastDecodedFrames,p=1e3*s/i,m=this.hls;if(m.trigger(g.FPS_DROP,{currentDropped:s,currentDecoded:c,totalDroppedFrames:n}),p>0&&s>m.config.fpsDroppedMonitoringThreshold*c){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(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function Iu(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){ce.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){ce.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function qo(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function nu(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Pc(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function Lc(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function Pc(a,e,t){const n=[],r=Lc(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const c=a[i];if(c.startTime>=e&&c.endTime<=t)n.push(c);else if(c.startTime>t)return n}return n}function Ul(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class Mc extends hs{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=Ul(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(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;Ul(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:i}=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 c=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(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,E)=>{v.id=E});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const v=on(c,s);if(v>-1)i=s[v];else{const E=on(c,this.tracks);i=this.tracks[E]}}let p=this.findTrackId(i);p===-1&&i&&(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 i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||Rn(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(pa(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(pa(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(fo(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===q.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&&Rn(e,n))return n;const r=on(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=on(e,t);if(i>-1)return t[i]}}}}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,i=this.getUrlWithDirectives(e.url,t),s=e.details,c=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:""}${c&&s.live?" age "+c.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(g.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Ul(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>fo(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!l(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 i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:c="",name:p,type:m,url:v}=r;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:s,groupId:c,name:p,type:m,url:v});const E=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(E)}}function kc(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function _l(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const el=.025;let Kl=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function Nc(a,e,t){return`${a.identifier}-${t+1}-${_l(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=l(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"?Kl.Range:Kl.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 $c(this)}}function ru(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<el)?e.start:e.start+e.duration}function Du(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function iu(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function $c(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function tl(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Fc{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 i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};i.once(g.LEVEL_LOADED,s),i.once(g.AUDIO_TRACK_LOADED,s),i.once(g.SUBTITLE_TRACK_LOADED,s),i.on(g.MEDIA_ATTACHING,(c,{media:p})=>{this.removeMediaListeners(),this.mediaAttached=p,this.interstitial.playoutLimit&&(p.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(g.BUFFER_APPENDED,()=>{const v=this.bufferedEnd;this.reachedPlayout(v)&&(this._bufferedEosTime=v,i.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,i=Gn.bufferInfo(e,r,0);return this.getAssetTime(i.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=Gn.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 H{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&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.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 i=0;i<r;i++){const s=n[i];if(!s.error){const c=s.timelineStart;if(t===c||t>c&&(t<c+(s.duration||0)||i===r-1))return i}}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,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),c=Object.keys(r),p=i?i.filter(m=>!c.includes(m.identifier)):[];s.length&&s.sort((m,v)=>{const E=m.cue.pre,k=m.cue.post,X=v.cue.pre,J=v.cue.post;if(E&&!X)return-1;if(X&&!E||k&&!J)return 1;if(J&&!k)return-1;if(!E&&!X&&!k&&!J){const De=m.startTime,Ie=v.startTime;if(De!==Ie)return De-Ie}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 i=this.items,s=this.parseSchedule(r,e);(n||t.length||(i==null?void 0:i.length)!==s.length||s.some((p,m)=>Math.abs(p.playout.start-i[m].playout.start)>.005||Math.abs(p.playout.end-i[m].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const c=i[s],p=e[c];if(p.isInterstitial){let m=this.eventMap[c];m?m.setDateRange(p):(m=new Bc(p,t),this.eventMap[c]=m,n===!1&&(m.appendInPlace=n)),r.push(m)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=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,E)=>{const k=v.cue.pre,X=v.cue.post,J=e[E-1]||null,De=v.appendInPlace,Ie=X?i:v.startOffset,at=v.duration,pt=v.timelineOccupancy===Kl.Range?at:0,_t=v.resumptionOffset,$t=(J==null?void 0:J.startTime)===Ie,Ht=Ie+v.cumulativeDuration;let In=De?Ht+at:Ie+_t;if(k||!X&&Ie<=0){const mn=m;m+=pt,v.timelineStart=Ht;const hn=s;s+=at,n.push({event:v,start:Ht,end:In,playout:{start:hn,end:s},integrated:{start:mn,end:m}})}else if(Ie<=i){if(!$t){const en=Ie-p;if(en>Ru){const Kn=p,br=m;m+=en;const kr=s;s+=en;const Wr={previousEvent:e[E-1]||null,nextEvent:v,start:Kn,end:Kn+en,playout:{start:kr,end:s},integrated:{start:br,end:m}};n.push(Wr)}else en>0&&J&&(J.cumulativeDuration+=en,n[n.length-1].end=Ie)}X&&(In=Ht),v.timelineStart=Ht;const mn=m;m+=pt;const hn=s;s+=at,n.push({event:v,start:Ht,end:In,playout:{start:hn,end:s},integrated:{start:mn,end:m}})}else return;const Yt=v.resumeTime;X||Yt>i?p=i:p=Yt}),p<i){var c;const v=p,E=m,k=i-p;m+=k;const X=s;s+=k,n.push({previousEvent:((c=n[n.length-1])==null?void 0:c.event)||null,nextEvent:null,start:p,end:v+k,playout:{start:X,end:s},integrated:{start:E,end:m}})}this.setDurations(i,s,m)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);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 i=0,s=-1;e.forEach((c,p)=>{const m=c.cue.pre,v=c.cue.post,E=m?0:v?r:c.startTime;this.updateAssetDurations(c),s===E?c.cumulativeDuration=i:(i=0,s=E),!v&&c.snapOptions.in&&(c.resumeAnchor=or(null,n.fragments,c.startOffset+c.resumptionOffset,0,0)||void 0),c.appendInPlace&&!c.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(c,t)||(c.appendInPlace=!1)),!c.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 ${c}`));const X=l(c.resumeOffset)?c.resumeOffset:c.duration;i+=X})}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 c=t[s].details,p=c.edge;if(n>=p)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${p}`),!1;const m=or(null,c.fragments,n);if(!m)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${c.fragStart}-${c.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,i=!1;for(let s=0;s<e.assetList.length;s++){const c=e.assetList[s],p=t+n;c.startOffset=n,c.timelineStart=p,r||(r=c.duration===null),i||(i=!!c.error);const m=c.error?0:c.duration||0;n+=m}r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Fa(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Uc{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(k){const X=this.assignAssetListError(e,F.ASSET_LIST_LOAD_ERROR,k,n);this.hls.trigger(g.ERROR,X);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,c=new s(i),p={responseType:"json",url:r.href},m=i.interstitialAssetListLoadPolicy.default,v={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(k,X,J,De)=>{const Ie=k.data,at=Ie==null?void 0:Ie.ASSETS;if(!Array.isArray(at)){const pt=this.assignAssetListError(e,F.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),J.url,X,De);this.hls.trigger(g.ERROR,pt);return}e.assetListResponse=Ie,this.hls.trigger(g.ASSET_LIST_LOADED,{event:e,assetListResponse:Ie,networkDetails:De})},onError:(k,X,J,De)=>{const Ie=this.assignAssetListError(e,F.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${k.code} ${k.text} (${X.url})`),X.url,De,J);this.hls.trigger(g.ERROR,Ie)},onTimeout:(k,X,J)=>{const De=this.assignAssetListError(e,F.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${X.url})`),X.url,k,J);this.hls.trigger(g.ERROR,De)}};return c.load(p,v,E),this.hls.trigger(g.ASSET_LIST_LOADING,{event:e}),c}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:le.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Ou(a){var e;a==null||(e=a.play())==null||e.catch(()=>{})}function jl(a,e){return`[${a}] Advancing timeline position to ${e}`}class Kc extends H{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 c=this.playingItem;if(!c){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(!0),this.checkBuffer(),s&&n<c.start||n>=c.end){var p;const X=this.findItemIndex(c);let J=this.schedule.findItemIndexAtTime(n);if(J===-1&&(J=X+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${X} to ${J})`)),!this.isInterstitial(c)&&(p=this.media)!=null&&p.paused&&(this.shouldPlay=!1),!s&&J>X){const De=this.schedule.findJumpRestrictedIndex(X+1,J);if(De>X){this.setSchedulePosition(De);return}}this.setSchedulePosition(J);return}const m=this.playingAsset;if(!m){if(this.playingLastItem&&this.isInterstitial(c)){const X=c.event.assetList[0];X&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,X))}return}const v=m.timelineStart,E=m.duration||0;if(s&&n<v||n>=v+E){var k;(k=c.event)!=null&&k.appendInPlace&&(this.clearAssetPlayers(c.event,c),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 c=this.findItemIndex(r);this.setSchedulePosition(c+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule;if(!i)return;const s=this.playingItem,c=i.events||[],p=i.items||[],m=i.durations,v=n.map(De=>De.identifier),E=!!(c.length||v.length);(E||r)&&this.log(`INTERSTITIALS_UPDATED (${c.length}): ${c}
|
|
|
Schedule: ${p.map(De=>Fa(De))} pos: ${this.timelinePos}`),v.length&&this.log(`Removed events ${v}`);let k=null,X=null;s&&(k=this.updateItem(s,this.timelinePos),this.itemsMatch(s,k)?this.playingItem=k:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const J=this.bufferingItem;if(J&&(X=this.updateItem(J,this.bufferedPos),this.itemsMatch(J,X)?this.bufferingItem=X:J.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(J.event,null))),n.forEach(De=>{De.assetList.forEach(Ie=>{this.clearAssetPlayer(Ie.identifier,null)})}),this.playerQueue.forEach(De=>{if(De.interstitial.appendInPlace){const Ie=De.assetItem.timelineStart,at=De.timelineOffset-Ie;if(at)try{De.timelineOffset=Ie}catch(pt){Math.abs(at)>el&&this.warn(`${pt} ("${De.assetId}" ${De.timelineOffset}->${Ie})`)}}}),E||r){if(this.hls.trigger(g.INTERSTITIALS_UPDATED,{events:c.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(k,s),J&&X!==k&&this.trimInPlace(X,J),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Uc(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){Ws(e,"play",this.onPlay),Ws(e,"pause",this.onPause),Ws(e,"seeking",this.onSeeking),Ws(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Bs(n,"seeking",this.onSeeking),Bs(n,"timeupdate",this.onTimeupdate),Bs(n,"play",this.onPlay),Bs(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 i=this.findItemIndex(n);this.setSchedulePosition(i)}}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 i=this.getBufferingPlayer();i&&(this.log(`Removing schedule state for detachedData and ${i}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.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=>E&&e.getAssetPlayer(E.identifier),r=(E,k,X,J,De)=>{if(E){let Ie=E[k].start;const at=E.event;if(at){if(k==="playout"||at.timelineOccupancy!==Kl.Point){const pt=n(X);(pt==null?void 0:pt.interstitial)===at&&(Ie+=pt.assetItem.startOffset+pt[De])}}else{const pt=J==="bufferedPos"?s():e[J];Ie+=pt-E.start}return Ie}return 0},i=(E,k)=>{var X;if(E!==0&&k!=="primary"&&(X=e.schedule)!=null&&X.length){var J;const De=e.schedule.findItemIndexAtTime(E),Ie=(J=e.schedule.items)==null?void 0:J[De];if(Ie){const at=Ie[k].start-Ie.start;return E+at}}return E},s=()=>{const E=e.bufferedPos;return E===Number.MAX_VALUE?c("primary"):Math.max(E,0)},c=E=>{var k,X;return(k=e.primaryDetails)!=null&&k.live?e.primaryDetails.edge:((X=e.schedule)==null?void 0:X.durations[E])||0},p=(E,k)=>{var X,J;const De=e.effectivePlayingItem;if(De!=null&&(X=De.event)!=null&&X.restrictions.skip||!e.schedule)return;e.log(`seek to ${E} "${k}"`);const Ie=e.effectivePlayingItem,at=e.schedule.findItemIndexAtTime(E,k),pt=(J=e.schedule.items)==null?void 0:J[at],_t=e.getBufferingPlayer(),$t=_t==null?void 0:_t.interstitial,Ht=$t==null?void 0:$t.appendInPlace,In=Ie&&e.itemsMatch(Ie,pt);if(Ie&&(Ht||In)){const Yt=n(e.playingAsset),mn=(Yt==null?void 0:Yt.media)||e.primaryMedia;if(mn){const hn=k==="primary"?mn.currentTime:r(Ie,k,e.playingAsset,"timelinePos","currentTime"),en=E-hn,Kn=(Ht?hn:mn.currentTime)+en;if(Kn>=0&&(!Yt||Ht||Kn<=Yt.duration)){mn.currentTime=Kn;return}}}if(pt){let Yt=E;if(k!=="primary"){const hn=pt[k].start,en=E-hn;Yt=pt.start+en}const mn=!e.isInterstitial(pt);if((!e.isInterstitial(Ie)||Ie.event.appendInPlace)&&(mn||pt.event.appendInPlace)){const hn=e.media||(Ht?_t==null?void 0:_t.media:null);hn&&(hn.currentTime=Yt)}else if(Ie){const hn=e.findItemIndex(Ie);if(at>hn){const Kn=e.schedule.findJumpRestrictedIndex(hn+1,at);if(Kn>hn){e.setSchedulePosition(Kn);return}}let en=0;if(mn)e.timelinePos=Yt,e.checkBuffer();else{const Kn=pt.event.assetList,br=E-(pt[k]||pt).start;for(let kr=Kn.length;kr--;){const Wr=Kn[kr];if(Wr.duration&&br>=Wr.startOffset&&br<Wr.startOffset+Wr.duration){en=kr;break}}}e.setSchedulePosition(at,en)}}},m=()=>{const E=e.effectivePlayingItem;if(e.isInterstitial(E))return E;const k=t();return e.isInterstitial(k)?k:null},v={get bufferedEnd(){const E=t(),k=e.bufferingItem;if(k&&k===E){var X;return r(k,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-k.playout.start||((X=e.bufferingAsset)==null?void 0:X.startOffset)||0}return 0},get currentTime(){const E=m(),k=e.effectivePlayingItem;return k&&k===E?r(k,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-k.playout.start:0},set currentTime(E){const k=m(),X=e.effectivePlayingItem;X&&X===k&&p(E+X.playout.start,"playout")},get duration(){const E=m();return E?E.playout.end-E.playout.start:0},get assetPlayers(){var E;const k=(E=m())==null?void 0:E.event.assetList;return k?k.map(X=>e.getAssetPlayer(X.identifier)):[]},get playingIndex(){var E;const k=(E=m())==null?void 0:E.event;return k&&e.effectivePlayingAsset?k.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return m()}};return this.manager={get events(){var E;return((E=e.schedule)==null||(E=E.events)==null?void 0:E.slice(0))||[]},get schedule(){var E;return((E=e.schedule)==null||(E=E.items)==null?void 0:E.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 E=t();return e.findItemIndex(E)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const E=e.effectivePlayingItem;return e.findItemIndex(E)},primary:{get bufferedEnd(){return s()},get currentTime(){const E=e.timelinePos;return E>0?E:0},set currentTime(E){p(E,"primary")},get duration(){return c("primary")},get seekableStart(){var E;return((E=e.primaryDetails)==null?void 0:E.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(E){p(E,"integrated")},get duration(){return c("integrated")},get seekableStart(){var E;return i(((E=e.primaryDetails)==null?void 0:E.fragmentStart)||0,"integrated")}},skip:()=>{const E=e.effectivePlayingItem,k=E==null?void 0:E.event;if(k&&!k.restrictions.skip){const X=e.findItemIndex(E);if(k.appendInPlace){const J=E.playout.start+E.event.duration;p(J+.001,"playout")}else e.advanceAfterAssetEnded(k,X,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 i=(t=r)==null?void 0:t.currentTime;if(!(i===void 0||!l(i)))return i}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 i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${Rt(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,c=e!==s,p=c&&e.interstitial.appendInPlace,m=(n=this.detachedData)==null?void 0:n.mediaSource;let v;if(s.media)p&&(i=s.transferMedia(),this.detachedData=i),v="Primary";else if(m){const J=this.getBufferingPlayer();J?(i=J.transferMedia(),v=`${J}`):v="detached MediaSource"}else v="detached media";if(!i){if(m)i=this.detachedData,this.log(`using detachedData: MediaSource ${Rt(i)}`);else if(!this.detachedData||s.media===t){const J=this.playerQueue;J.length>1&&J.forEach(De=>{if(c&&De.interstitial.appendInPlace!==p){const Ie=De.interstitial;this.clearInterstitial(De.interstitial,null),Ie.appendInPlace=!1,Ie.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Ie}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const E=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",k=E&&i?i:t;this.log(`${E?"transfering MediaSource":"attaching media"} to ${c?e:"Primary"} from ${v} (media.currentTime: ${t.currentTime})`);const X=this.schedule;if(k===i&&X){const J=c&&e.assetId===X.assetIdAtEnd;k.overrides={duration:X.duration,endOfStream:!c||J,cueRemoval:!c}}e.attachMedia(k)}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 i=this.hls.startPosition;if(this.log(jl("checkStart",i)),this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,c=e.findItemIndexAtTime(s);this.setSchedulePosition(c)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=iu(n,r);if(!n.isAssetPastPlayoutLimit(i))this.bufferedToEvent(e,i);else if(this.schedule){var s;const c=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];c&&this.bufferedToItem(c)}}advanceAfterAssetEnded(e,t,n){const r=iu(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const i=this.schedule.items;if(i){const s=t+1,c=i.length;if(s>=c){this.setSchedulePosition(-1);return}const p=e.resumeTime;this.timelinePos<p&&(this.log(jl("advanceAfterAssetEnded",p)),this.timelinePos=p,e.appendInPlace&&this.advanceInPlace(p),this.checkBuffer(this.bufferedPos<p)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const i=e.assetList[r];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),c=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,s,c-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i&&Fa(i)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,c=this.playingLastItem;if(this.isInterstitial(s)){const v=s.event,E=this.playingAsset,k=E==null?void 0:E.identifier,X=k?this.getAssetPlayer(k):null;if(X&&k&&(!this.eventItemsMatch(s,i)||t!==void 0&&k!==v.assetList[t].identifier)){var p;const J=v.findAssetIndex(E);if(this.log(`INTERSTITIAL_ASSET_ENDED ${J+1}/${v.assetList.length} ${tl(E)}`),this.endedAsset=E,this.playingAsset=null,this.hls.trigger(g.INTERSTITIAL_ASSET_ENDED,{asset:E,assetListIndex:J,event:v,schedule:r.slice(0),scheduleIndex:e,player:X}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(v,this.findItemIndex(this.playingItem),J);return}this.retreiveMediaSource(k,i),X.media&&!((p=this.detachedData)!=null&&p.mediaSource)&&X.detachMedia()}if(!this.eventItemsMatch(s,i)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${v} ${Fa(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 J=(m=this.schedule)==null?void 0:m.items;if(i&&J){const De=this.findItemIndex(i);this.advanceSchedule(De,J,t,s,c)}return}}this.advanceSchedule(e,r,t,s,c)}advanceSchedule(e,t,n,r,i){const s=this.schedule;if(!s)return;const c=t[e]||null,p=this.primaryMedia,m=this.playerQueue;if(m.length&&m.forEach(v=>{const E=v.interstitial,k=s.findEventIndex(E.identifier);(k<e||k>e+1)&&this.clearInterstitial(E,c)}),this.isInterstitial(c)){this.timelinePos=Math.min(Math.max(this.timelinePos,c.start),c.end);const v=c.event;if(n===void 0){n=s.findAssetIndex(v,this.timelinePos);const J=iu(v,n-1);if(v.isAssetPastPlayoutLimit(J)||v.appendInPlace&&this.timelinePos===c.end){this.advanceAfterAssetEnded(v,e,n);return}n=J}const E=this.waitingItem;this.assetsBuffered(c,p)||this.setBufferingItem(c);let k=this.preloadAssets(v,n);if(this.eventItemsMatch(c,E||r)||(this.waitingItem=c,this.log(`INTERSTITIAL_STARTED ${Fa(c)} ${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=c;const X=v.assetList[n];if(!X){this.advanceAfterAssetEnded(v,e,n||0);return}if(k||(k=this.getAssetPlayer(X.identifier)),k===null||k.destroyed){const J=v.assetList.length;this.warn(`asset ${n+1}/${J} player destroyed ${v}`),k=this.createAssetPlayer(v,X,n),k.loadSource()}if(!this.eventItemsMatch(c,this.bufferingItem)&&v.appendInPlace&&this.isAssetBuffered(X))return;this.startAssetPlayer(k,n,t,e,p),this.shouldPlay&&Ou(k.media)}else c?(this.resumePrimary(c,e,r),this.shouldPlay&&Ou(this.hls.media)):i&&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,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Fa(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let c=this.timelinePos;(c<e.start||c>=e.end)&&(c=this.getPrimaryResumption(e,t),this.log(jl("resumePrimary",c)),this.timelinePos=c),this.attachPrimary(c,e)}if(!n)return;const s=(i=this.schedule)==null?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Fa(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:Gn.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 i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(jl("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=I(I({},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=I(I({},this.altSelection),{},{audio:n});return}const i=I(I({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=I(I({},this.altSelection),{},{subtitles:n});return}const i=I(I({},r),{},{subtitles:n});this.mediaSelection=i}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 i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(c)&&this.eventItemsMatch(c,this.bufferingItem)&&this.bufferedToItem(c,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 i=this.findItemIndex(e,t);return r[i]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((i,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(i.identifier,null)});const n=e.end+.25,r=Gn.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${Fa(e)} (was ${Fa(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=Gn.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,i=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,c=this.findItemIndex(s);let p=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var m;const v=this.findItemIndex(i),E=Math.min(v+1,t.length-1),k=t[E];if((p===-1&&i&&e>=i.end||(m=k.event)!=null&&m.appendInPlace&&e+.01>=k.start)&&(p=E),this.isInterstitial(i)){const X=i.event;if(E-c>1&&X.appendInPlace===!1||X.assetList.length===0&&X.assetListLoader)return}if(this.bufferedPos=e,p>v&&p>c)this.bufferedToItem(k);else{const X=this.primaryDetails;this.primaryLive&&X&&e>X.edge-X.targetduration&&k.start<X.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(k)&&this.preloadAssets(k.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(p===c?this.bufferedToItem(s):p===c+1&&this.bufferedToItem(t[p]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),c=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const p=c?c.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Fa(e)}`+(t?` (${p.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const m=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((v,E)=>{const k=this.getAssetPlayer(v.identifier);k&&(E===m&&k.loadSource(),k.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(m=>m.pauseBuffering());this.hls.trigger(g.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.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,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const c=this.primaryMedia;c&&this.bufferAssetPlayer(s,c)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const p=e.timelineStart;if(e.appendInPlace){var c;const k=this.playingItem;!this.isInterstitial(k)&&(k==null||(c=k.nextEvent)==null?void 0:c.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 k=v-p;k>0&&(m=Math.round(k*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 E=this.assetListLoader.loadAssetList(e,m);E&&(e.assetListLoader=E)}else if(!s&&r){for(let m=t;m<r;m++){const v=e.assetList[m],E=this.getAssetPlayerQueueIndex(v.identifier);(E===-1||this.playerQueue[E].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,i,s){const c={parentIdentifier:e.identifier,identifier:Nc(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,c,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let s=i.videoPreference;const c=r.loadLevelObj||r.levels[r.currentLevel];(s||c)&&(s=y({},s),c.videoCodec&&(s.videoCodec=c.videoCodec),c.videoRange&&(s.allowedVideoRanges=[c.videoRange]));const p=r.audioTracks[r.audioTrack],m=r.subtitleTracks[r.subtitleTrack];let v=0;if(this.primaryLive||e.appendInPlace){const $t=this.timelinePos-t.timelineStart;if($t>1){const Ht=t.duration;Ht&&$t<Ht&&(v=$t)}}const E=t.identifier,k=I(I({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:E,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:v,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:p||i.audioPreference,subtitlePreference:m||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(k.timelineOffset=t.timelineStart));const X=k.cmcd;X!=null&&X.sessionId&&X.contentId&&(k.cmcd=y({},X,{contentId:_l(t.uri)})),this.getAssetPlayer(E)&&this.warn(`Duplicate date range identifier ${e} and asset ${E}`);const J=new Fc(this.HlsPlayerClass,k,e,t);this.playerQueue.push(J),e.assetList[n]=t;let De=!0;const Ie=$t=>{if($t.live){var Ht;const mn=new Error(`Interstitials MUST be VOD assets ${e}`),hn={fatal:!0,type:le.OTHER_ERROR,details:F.INTERSTITIAL_ASSET_ITEM_ERROR,error:mn},en=((Ht=this.schedule)==null?void 0:Ht.findEventIndex(e.identifier))||-1;this.handleAssetItemError(hn,e,en,n,mn.message);return}const In=$t.edge-$t.fragmentStart,Yt=t.duration;(De||Yt===null||In>Yt)&&(De=!1,this.log(`Interstitial asset "${E}" duration change ${Yt} > ${In}`),t.duration=In,this.updateSchedule())};J.on(g.LEVEL_UPDATED,($t,{details:Ht})=>Ie(Ht)),J.on(g.LEVEL_PTS_UPDATED,($t,{details:Ht})=>Ie(Ht)),J.on(g.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const at=($t,Ht)=>{const In=this.getAssetPlayer(E);if(In&&Ht.tracks){In.off(g.BUFFER_CODECS,at),In.tracks=Ht.tracks;const Yt=this.primaryMedia;this.bufferingAsset===In.assetItem&&Yt&&!In.media&&this.bufferAssetPlayer(In,Yt)}};J.on(g.BUFFER_CODECS,at);const pt=()=>{var $t;const Ht=this.getAssetPlayer(E);if(this.log(`buffered to end of asset ${Ht}`),!Ht||!this.schedule)return;const In=this.schedule.findEventIndex(e.identifier),Yt=($t=this.schedule.items)==null?void 0:$t[In];this.isInterstitial(Yt)&&this.advanceAssetBuffering(Yt,t)};J.on(g.BUFFERED_TO_END,pt);const _t=$t=>()=>{if(!this.getAssetPlayer(E)||!this.schedule)return;this.shouldPlay=!0;const In=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,In,$t)};return J.once(g.MEDIA_ENDED,_t(n)),J.once(g.PLAYOUT_LIMIT_REACHED,_t(1/0)),J.on(g.ERROR,($t,Ht)=>{if(!this.schedule)return;const In=this.getAssetPlayer(E);if(Ht.details===F.BUFFER_STALLED_ERROR){if(In!=null&&In.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(Ht,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${Ht.error} ${e}`)}),J.on(g.DESTROYING,()=>{if(!this.getAssetPlayer(E)||!this.schedule)return;const Ht=new Error(`Asset player destroyed unexpectedly ${E}`),In={fatal:!0,type:le.OTHER_ERROR,details:F.INTERSTITIAL_ASSET_ITEM_ERROR,error:Ht};this.handleAssetItemError(In,e,this.schedule.findEventIndex(e.identifier),n,Ht.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${tl(t)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:J}),J}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&&Fa(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,i){const{interstitial:s,assetItem:c,assetId:p}=e,m=s.assetList.length,v=this.playingAsset;this.endedAsset=null,this.playingAsset=c,(!v||v.identifier!==p)&&(v&&(this.clearAssetPlayer(v.identifier,n[r]),delete v.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${m} ${tl(c)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_STARTED,{asset:c,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;if(!this.schedule)return;const{interstitial:i,assetItem:s}=e,c=this.schedule.findEventIndex(i.identifier),p=(n=this.schedule.items)==null?void 0:n[c];if(!p)return;e.loadSource(),this.setBufferingItem(p),this.bufferingAsset=s;const m=this.getBufferingPlayer();if(m===e)return;const v=i.appendInPlace;if(v&&(m==null?void 0:m.interstitial.appendInPlace)===!1)return;const E=(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(E&&!Te(E,e.tracks)){const k=new Error(`Asset ${tl(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(E)}')`),X={fatal:!0,type:le.OTHER_ERROR,details:F.INTERSTITIAL_ASSET_ITEM_ERROR,error:k},J=i.findAssetIndex(s);this.handleAssetItemError(X,i,c,J,k.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),s=e.assetList[i];if(s){const c=this.getAssetPlayer(s.identifier);if(c){const p=c.currentTime||r-s.timelineStart,m=c.duration-p;if(this.warn(`Stalled at ${p} of ${p+m} in ${c} ${e} (media.currentTime: ${r})`),p&&(m/n.playbackRate<.5||c.bufferedInPlaceToEnd(n))&&c.hls){const v=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,v,i)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,i){if(e.details===F.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 c=(s==null?void 0:s.identifier)||"",p=this.getAssetPlayerQueueIndex(c),m=this.playerQueue[p]||null,v=this.schedule.items,E=y({},e,{fatal:!1,errorAction:un(!0),asset:s,assetListIndex:r,event:t,schedule:v,scheduleIndex:n,player:m});if(this.hls.trigger(g.INTERSTITIAL_ASSET_ERROR,E),!e.fatal)return;const k=this.playingAsset,X=this.bufferingAsset,J=new Error(i);if(s&&(this.clearAssetPlayer(c,null),s.error=J),!t.assetList.some(De=>!De.error))t.error=J;else for(let De=r;De<t.assetList.length;De++)this.resetAssetPlayer(t.assetList[De].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):k&&k.identifier===c?this.advanceAfterAssetEnded(t,n,r):X&&X.identifier===c&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,X)}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: ${Fa(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 i=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(i)}onAssetListLoaded(e,t){var n,r;const i=t.event,s=i.identifier,c=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const p=i.timelineStart,m=i.duration;let v=0;c.forEach((De,Ie)=>{const at=parseFloat(De.DURATION);this.createAsset(i,Ie,v,p+v,at,De.URI),v+=at}),i.duration=v,this.log(`Loaded asset-list with duration: ${v} (was: ${m}) ${i}`);const E=this.waitingItem,k=(E==null?void 0:E.event.identifier)===s;this.updateSchedule();const X=(r=this.bufferingItem)==null?void 0:r.event;if(k){var J;const De=this.schedule.findEventIndex(s),Ie=(J=this.schedule.items)==null?void 0:J[De];if(Ie){if(!this.playingItem&&this.timelinePos>Ie.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==De){i.error=new Error(`Interstitial ${c.length?"no longer within playback range":"asset-list is empty"} ${this.timelinePos} ${i}`),this.log(i.error.message),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(Ie)}this.setSchedulePosition(De)}else if((X==null?void 0:X.identifier)===s){const De=i.assetList[0];if(De){const Ie=this.getAssetPlayer(De.identifier);if(X.appendInPlace){const at=this.primaryMedia;Ie&&at&&this.bufferAssetPlayer(Ie,at)}else Ie&&Ie.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case F.ASSET_LIST_PARSING_ERROR:case F.ASSET_LIST_LOAD_ERROR:case F.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case F.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 Lu=500;class jc extends oo{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",Q.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=Mn.IDLE,this.setInterval(Lu),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)||(We(n)&&(this.fragPrevious=n),this.state=Mn.IDLE),!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const c=n.start;for(let m=0;m<i.length;m++)if(c>=i[m].start&&c<=i[m].end){s=i[m];break}const p=n.start+n.duration;s?s.end=p:(s={start:c,end:p},i.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 i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let c=0;c<s.length;){if(s[c].end<=i){s.shift();continue}else if(s[c].start<i)s[c].start=i;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(n,i,Q.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===Q.SUBTITLE&&(t.details===F.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Mn.STOPPED&&(this.state=Mn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Vs(this.levels,t)){this.levels=t.map(n=>new Vt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Vt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Q.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!==Mn.STOPPED&&this.setInterval(Lu)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:c}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const p=i[c];if(c>=i.length||!p)return;this.log(`Subtitle track ${c} 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 E=this.mainDetails;if(!E){this.startFragRequested=!1;return}const k=E.fragments[0];if(!p.details)s.hasProgramDateTime&&E.hasProgramDateTime?(ao(s,E),m=s.fragmentStart):k&&(m=k.start,Va(s,m));else{var v;m=this.alignPlaylists(s,p.details,(v=this.levelLastLoaded)==null?void 0:v.details),m===0&&k&&(m=k.start,Va(s,m))}E&&!this.startFragRequested&&this.setStartPosition(E,m)}p.details=s,this.levelLastLoaded=p,c===r&&(this.hls.trigger(g.SUBTITLE_TRACK_UPDATED,{details:s,id:c,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Mn.IDLE&&(or(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,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&_r(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Or(r.method)).catch(c=>{throw i.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const p=performance.now();i.trigger(g.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:s,tdecrypt:p}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=Mn.IDLE})}}doTick(){if(!this.media){this.state=Mn.IDLE;return}if(this.state===Mn.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,i=this.getLoadPosition(),s=Gn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:p}=s,m=n.details,v=this.hls.maxBufferLength+m.levelTargetDuration;if(p>v)return;const E=m.fragments,k=E.length,X=m.edge;let J=null;const De=this.fragPrevious;if(c<X){const pt=r.maxFragLookUpTolerance,_t=c>X-pt?0:pt;J=or(De,E,Math.max(E[0].start,c),_t),!J&&De&&De.start<E[0].start&&(J=E[0])}else J=E[k-1];if(J=this.filterReplacedPrimary(J,n.details),!J)return;const Ie=J.sn-m.startSN,at=E[Ie-1];if(at&&at.cc===J.cc&&this.fragmentTracker.getState(at)===Bn.NOT_LOADED&&(J=at),this.fragmentTracker.getState(J)===Bn.NOT_LOADED){const pt=this.mapToInitFragWhenRequired(J);pt&&this.loadFragment(pt,n,c)}}}loadFragment(e,t,n){We(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Zc(this.tracksBuffered[this.currentTrackId]||[])}}class Zc{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}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=a=>String.fromCharCode(Hc[a]||a),za=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;ce.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 su{constructor(e){this.rows=[],this.currRow=za-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<za;t++)this.rows.push(new qc(e));this.logger=e}reset(){for(let e=0;e<za;e++)this.rows[e].clear();this.currRow=za-1}equals(e){let t=!0;for(let n=0;n<za;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<za;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<za;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 = "+Rt(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let c=0;c<za;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const c=s.rows[i].cueStartTime,p=this.logger.time;if(c!==null&&p!==null&&c<p)for(let m=0;m<this.nrRollUpRows;m++)this.rows[t-this.nrRollUpRows+m+1].copy(s.rows[i+m])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-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 = "+Rt(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<za;i++){const s=this.rows[i].getTextString();s&&(r=i+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 ku{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 su(n),this.nonDisplayedMemory=new su(n),this.lastOutputScreen=new su(n),this.currRollUpRow=this.displayedMemory.rows[za-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[za-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: "+Rt(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 Nu{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 ku(e,t,r),new ku(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,c=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+Po([t[n],t[n+1]])+"] -> ("+Po([r,i])+")");const p=this.cmdHistory;if(r>=16&&r<=31){if(ed(r,i,p)){Zl(null,null,p),this.logger.log(3,()=>"Repeated command ("+Po([r,i])+") is dropped");continue}Zl(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else Zl(null,null,p);if(!s&&(c=this.parseChars(r,i),c)){const v=this.currentChannel;v&&v>0?this.channels[v].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Po([r,i])+" 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 i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let 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,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))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 c=this.channels[s];return c?(c.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,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+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 i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Xc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}Zl(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 Zl(a,e,t){t.a=a,t.b=e}function ed(a,e,t){return t.a===a&&t.b===e}function td(){return{a:null,b:null}}var au=function(){if(ei!=null&&ei.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,p){if(typeof p!="string"||!Array.isArray(c))return!1;const m=p.toLowerCase();return~c.indexOf(m)?m:!1}function n(c){return t(a,c)}function r(c){return t(e,c)}function i(c,...p){let m=1;for(;m<arguments.length;m++){const v=arguments[m];for(const E in v)c[E]=v[E]}return c}function s(c,p,m){const v=this,E={enumerable:!0};v.hasBeenReset=!1;let k="",X=!1,J=c,De=p,Ie=m,at=null,pt="",_t=!0,$t="auto",Ht="start",In=50,Yt="middle",mn=50,hn="middle";Object.defineProperty(v,"id",i({},E,{get:function(){return k},set:function(en){k=""+en}})),Object.defineProperty(v,"pauseOnExit",i({},E,{get:function(){return X},set:function(en){X=!!en}})),Object.defineProperty(v,"startTime",i({},E,{get:function(){return J},set:function(en){if(typeof en!="number")throw new TypeError("Start time must be set to a number.");J=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"endTime",i({},E,{get:function(){return De},set:function(en){if(typeof en!="number")throw new TypeError("End time must be set to a number.");De=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"text",i({},E,{get:function(){return Ie},set:function(en){Ie=""+en,this.hasBeenReset=!0}})),Object.defineProperty(v,"region",i({},E,{get:function(){return at},set:function(en){at=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"vertical",i({},E,{get:function(){return pt},set:function(en){const Kn=n(en);if(Kn===!1)throw new SyntaxError("An invalid or illegal string was specified.");pt=Kn,this.hasBeenReset=!0}})),Object.defineProperty(v,"snapToLines",i({},E,{get:function(){return _t},set:function(en){_t=!!en,this.hasBeenReset=!0}})),Object.defineProperty(v,"line",i({},E,{get:function(){return $t},set:function(en){if(typeof en!="number"&&en!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");$t=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"lineAlign",i({},E,{get:function(){return Ht},set:function(en){const Kn=r(en);if(!Kn)throw new SyntaxError("An invalid or illegal string was specified.");Ht=Kn,this.hasBeenReset=!0}})),Object.defineProperty(v,"position",i({},E,{get:function(){return In},set:function(en){if(en<0||en>100)throw new Error("Position must be between 0 and 100.");In=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",i({},E,{get:function(){return Yt},set:function(en){const Kn=r(en);if(!Kn)throw new SyntaxError("An invalid or illegal string was specified.");Yt=Kn,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",i({},E,{get:function(){return mn},set:function(en){if(en<0||en>100)throw new Error("Size must be between 0 and 100.");mn=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",i({},E,{get:function(){return hn},set:function(en){const Kn=r(en);if(!Kn)throw new SyntaxError("An invalid or illegal string was specified.");hn=Kn,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(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class 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 $u(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const c=s[0],p=s[1];e(c,p)}}const ou=new au(0,0,""),Hl=ou.align==="middle"?"middle":"center";function id(a,e,t){const n=a;function r(){const c=Bu(a);if(c===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,p){const m=new rd;$u(c,function(k,X){let J;switch(k){case"region":for(let De=t.length-1;De>=0;De--)if(t[De].id===X){m.set(k,t[De].region);break}break;case"vertical":m.alt(k,X,["rl","lr"]);break;case"line":J=X.split(","),m.integer(k,J[0]),m.percent(k,J[0])&&m.set("snapToLines",!1),m.alt(k,J[0],["auto"]),J.length===2&&m.alt("lineAlign",J[1],["start",Hl,"end"]);break;case"position":J=X.split(","),m.percent(k,J[0]),J.length===2&&m.alt("positionAlign",J[1],["start",Hl,"end","line-left","line-right","auto"]);break;case"size":m.percent(k,X);break;case"align":m.alt(k,X,["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 E=m.get("position","auto");E==="auto"&&ou.position===50&&(E=p.align==="start"||p.align==="left"?0:p.align==="end"||p.align==="right"?100:50),p.position=E}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function Fu(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class sd{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 i=t.buffer,s=0;for(i=Fu(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
|
|
|
`;)++s;const c=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
|
|
|
`&&++s,t.buffer=i.slice(s),c}function r(i){$u(i,function(s,c){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const c=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new au(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{id(i,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=i.indexOf("-->")!==-1;if(!i||c&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
|
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const ad=/\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)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!l(t)||!l(n)||!l(r)||!l(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function uu(a,e,t){return _l(a.toString())+_l(e.toString())+_l(t)}const ld=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function ud(a,e,t,n,r,i,s){const c=new sd,p=Pe(new Uint8Array(a)).trim().replace(ad,`
|
|
|
`).split(`
|
|
|
`),m=[],v=e?Yi(e.baseTime,e.timescale):0;let E="00:00.000",k=0,X=0,J,De=!0;c.oncue=function(Ie){const at=t[n];let pt=t.ccOffset;const _t=(k-v)/9e4;if(at!=null&&at.new&&(X!==void 0?pt=t.ccOffset=at.start:ld(t,n,_t)),_t){if(!e){J=new Error("Missing initPTS for VTT MPEGTS");return}pt=_t-t.presentationOffset}const $t=Ie.endTime-Ie.startTime,Ht=Hi((Ie.startTime+pt-X)*9e4,r*9e4)/9e4;Ie.startTime=Math.max(Ht,0),Ie.endTime=Math.max(Ht+$t,0);const In=Ie.text.trim();Ie.text=decodeURIComponent(encodeURIComponent(In)),Ie.id||(Ie.id=uu(Ie.startTime,Ie.endTime,In)),Ie.endTime>0&&m.push(Ie)},c.onparsingerror=function(Ie){J=Ie},c.onflush=function(){if(J){s(J);return}i(m)},p.forEach(Ie=>{if(De)if(lu(Ie,"X-TIMESTAMP-MAP=")){De=!1,Ie.slice(16).split(",").forEach(at=>{lu(at,"LOCAL:")?E=at.slice(6):lu(at,"MPEGTS:")&&(k=parseInt(at.slice(7)))});try{X=od(E)/1e3}catch(at){J=at}return}else Ie===""&&(De=!1);c.parse(Ie+`
|
|
|
`)}),c.flush()}const cu="stpp.ttml.im1t",zu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Uu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,cd={left:"start",center:"center",right:"end",start:"start",end:"end"};function Ku(a,e,t,n){const r=re(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(c=>Pe(c)),s=Xr(e.baseTime,1,e.timescale);try{i.forEach(c=>t(dd(c,s)))}catch(c){n(c)}}function dd(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((E,k)=>(E[k]=r.getAttribute(`ttp:${k}`)||i[k],E),{}),c=r.getAttribute("xml:space")!=="preserve",p=ju(du(r,"styling","style")),m=ju(du(r,"layout","region")),v=du(r,"body","[begin]");return[].map.call(v,E=>{const k=Zu(E,c);if(!k||!E.hasAttribute("begin"))return null;const X=hu(E.getAttribute("begin"),s),J=hu(E.getAttribute("dur"),s);let De=hu(E.getAttribute("end"),s);if(X===null)throw Hu(E);if(De===null){if(J===null)throw Hu(E);De=X+J}const Ie=new au(X-e,De-e,k);Ie.id=uu(Ie.startTime,Ie.endTime,Ie.text);const at=m[E.getAttribute("region")],pt=p[E.getAttribute("style")],_t=fd(at,pt,p),{textAlign:$t}=_t;if($t){const Ht=cd[$t];Ht&&(Ie.lineAlign=Ht),Ie.align=$t}return y(Ie,_t),Ie}).filter(E=>E!==null)}function du(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function ju(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Zu(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
|
`:(i=n.childNodes)!=null&&i.length?Zu(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function fd(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((c,p)=>{const m=fu(e,n,p)||fu(a,n,p)||fu(r,n,p);return m&&(c[p]=m),c},{})}function fu(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Hu(a){return new Error(`Could not parse ttml timestamp ${a}`)}function hu(a,e){if(!a)return null;let t=Bu(a);return t===null&&(zu.test(a)?t=hd(a,e):Uu.test(a)&&(t=md(a,e))),t}function hd(a,e){const t=zu.exec(a),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(a,e){const t=Uu.exec(a),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 Nu(1,e,t),this.cea608Parser2=new Nu(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let c=i.length;c--;){const p=i[c],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||i.push([t,n]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,n,r)}else{const c=this.Cues.newCue(null,t,n,r);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i,trackId:s}){const{unparsedVttFrags:c}=this;n===Q.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i,trackId:s}),c.length&&(this.unparsedVttFrags=[],c.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 i=n.textTracks[r];if(Vu(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],c=this.getExistingTrack(i,s);if(c)n[e]=c,qo(n[e]),Au(n[e],r);else{const p=this.createTextTrack("captions",i,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(i=>{qo(r[i]),delete r[i]}),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(i=>i.textCodec===cu);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Vs(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,c=s?Ul(s.textTracks):null;if(this.tracks.forEach((p,m)=>{let v;if(c){let E=null;for(let k=0;k<c.length;k++)if(c[k]&&Vu(c[k],p)){E=c[k],c[k]=null;break}E&&(v=E)}if(v)qo(v);else{const E=Wu(p);v=this.createTextTrack(E,p.name,p.lang),v&&(v.mode="disabled")}v&&this.textTracks.push(v)}),c!=null&&c.length){const p=c.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(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));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 i=`textTrack${r[1]}`,s=this.captionsProperties[i];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===Q.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:c}=this,{cc:p,sn:m}=t.frag,v=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(m!==c+1||m===c&&v!==this.lastPartIndex+1||p!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=p,this.lastSn=m,this.lastPartIndex=v}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===Q.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const c=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),c&&c.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;Ku(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:i,unparsedVttFrags:s}=this,c=i.length-1;if(!i[n.cc]&&c===-1){s.push(e);return}const p=this.hls,m=(t=n.initSegment)!=null&&t.data?ft(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 E=v.message==="Missing initPTS for VTT MPEGTS";E?s.push(e):this._fallbackToIMSC1(n,r),p.logger.log(`Failed to parse VTT cue: ${v}`),!(E&&c>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||Ku(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(i=>Iu(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(g.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===Q.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===Q.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const c=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,c[0]),this.cea608Parser2.addData(r[i].pts,c[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:c}=this;Object.keys(c).forEach(p=>nu(c[p],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(p=>nu(c[p],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],c=127&e[r++],p=127&e[r++];if(c===0&&p===0)continue;if((4&s)!==0){const v=3&s;(v===0||v===1)&&(t[v].push(c),t[v].push(p))}}return t}}function Wu(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Vu(a,e){return!!a&&a.kind===Wu(e)&&fo(e,a)}function gd(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Gu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const vd=/\s/,yd={newCue(a,e,t,n){const r=[];let i,s,c,p,m;const v=self.VTTCue||self.TextTrackCue;for(let k=0;k<n.rows.length;k++)if(i=n.rows[k],c=!0,p=0,m="",!i.isEmpty()){var E;for(let De=0;De<i.chars.length;De++)vd.test(i.chars[De].uchar)&&c?p++:(m+=i.chars[De].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),p>=16?p--:p++;const X=Fu(m.trim()),J=uu(e,t,X);a!=null&&(E=a.cues)!=null&&E.getCueById(J)||(s=new v(e,t,X),s.id=J,s.line=k+1,s.align="left",s.position=10+Math.min(80,Math.floor(p*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((k,X)=>k.line==="auto"||X.line==="auto"?0:k.line>8&&X.line>8?X.line-k.line:k.line-X.line),r.forEach(k=>Iu(a,k))),r}};function bd(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const _d=/(\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 T}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=xd(e,this.controller.signal),s=e.responseType==="arraybuffer",c=s?"byteLength":"length",{maxTimeToFirstByteMs:p,maxLoadTimeMs:m}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=p&&l(p)?p:m,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Wi(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(E=>{var k;this.response=this.loader=E;const X=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-(X-r.loading.start)),!E.ok){const{status:De,statusText:Ie}=E;throw new wd(Ie||"fetch, bad network response",De,E)}r.loading.first=X,r.total=Sd(E.headers)||r.total;const J=(k=this.callbacks)==null?void 0:k.onProgress;return J&&l(t.highWaterMark)?this.loadProgressively(E,r,e,t.highWaterMark,J):s?E.arrayBuffer():e.responseType==="json"?E.json():E.text()}).then(E=>{var k,X;const J=this.response;if(!J)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const De=E[c];De&&(r.loaded=r.total=De);const Ie={url:J.url,data:E,code:J.status},at=(k=this.callbacks)==null?void 0:k.onProgress;at&&!l(t.highWaterMark)&&at(r,e,E,J),(X=this.callbacks)==null||X.onSuccess(Ie,r,e,J)}).catch(E=>{var k;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const X=E&&E.code||0,J=E?E.message:null;(k=this.callbacks)==null||k.onError({code:X,text:J},e,E?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,i){const s=new Ba,c=e.body.getReader(),p=()=>c.read().then(m=>{if(m.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const v=m.value,E=v.length;return t.loaded+=E,E<r||s.dataLength?(s.push(v),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,v.buffer,e),p()}).catch(()=>Promise.reject());return p()}}function xd(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(y({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Ed(a){const e=_d.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Sd(a){const e=a.get("Content-Range");if(e){const n=Ed(e);if(l(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Cd(a,e){return new self.Request(a.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 T,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var c;(c=this.callbacks)==null||c.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:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const c in r)e.setRequestHeader(c,r[c]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&l(i)?i: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,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const m=t.status,v=t.responseType==="text"?t.responseText:null;if(m>=200&&m<300){const J=v!=null?v:t.response;if(J!=null){var s,c;n.loading.end=Math.max(self.performance.now(),n.loading.first);const De=t.responseType==="arraybuffer"?J.byteLength:J.length;n.loaded=n.total=De,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Ie=(s=this.callbacks)==null?void 0:s.onProgress;Ie&&Ie(n,e,J,t);const at={url:t.responseURL,data:J,code:m};(c=this.callbacks)==null||c.onSuccess(at,n,e,t);return}}const E=i.loadPolicy.errorRetry,k=n.retry,X={url:e.url,data:void 0,code:m};if(zr(E,k,!1,X))this.retry(E);else{var p;ce.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(zr(e,t,!0))this.retry(e);else{var n;ce.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=hr(e,n.retry),n.retry++,ce.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=I(I({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:sr,bufferController:qs,capLevelController:va,errorController:sn,fpsController:Oc,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:ms,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:jc,subtitleTrackController:Mc,timelineController:pd,audioStreamController:Us,audioTrackController:cs,emeController:Jo,cmcdController:Ac,contentSteeringController:Dc,interstitialsController:Kc});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(a,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(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const c=`${s==="level"?"playlist":s}LoadPolicy`,p=e[c]===void 0,m=[];i.forEach(v=>{const E=`${s}Loading${v}`,k=e[E];if(k!==void 0&&p){m.push(E);const X=n[c].default;switch(e[c]={default:X},v){case"TimeOut":X.maxLoadTimeMs=k,X.maxTimeToFirstByteMs=k;break;case"MaxRetry":X.errorRetry.maxNumRetry=k,X.timeoutRetry.maxNumRetry=k;break;case"RetryDelay":X.errorRetry.retryDelayMs=k,X.timeoutRetry.retryDelayMs=k;break;case"MaxRetryTimeout":X.errorRetry.maxRetryDelayMs=k,X.timeoutRetry.maxRetryDelayMs=k;break}}}),m.length&&t.warn(`hls.js config: "${m.join('", "')}" setting(s) are deprecated, use "${c}": ${Rt(e[c])}`)}),I(I({},n),e)}function mu(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(mu):Object.keys(a).reduce((e,t)=>(e[t]=mu(a[t]),e),{}):a}function Od(a,e){const t=a.loader;t!==Yu&&t!==Xu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):bd()&&(a.loader=Yu,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Vl=2,Ld=.1,Pd=.05,Md=100;class kd extends Pi{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;Bs(n,"playing",this.onMediaPlaying),Bs(n,"waiting",this.onMediaWaiting),Bs(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Ws(n,"playing",this.onMediaPlaying),Ws(n,"waiting",this.onMediaWaiting),Ws(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 i=(n=this.hls)==null?void 0:n.config;if(!i)return;const s=this.media;if(!s)return;const{seeking:c}=s,p=this.seeking&&!c,m=!this.seeking&&c,v=s.paused&&!c||s.ended||s.playbackRate===0;if(this.seeking=c,e!==t){t&&(this.ended=0),this.moved=!0,c||(this.nudgeRetry=0,i.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(!Gn.getBuffered(s).length){this.nudgeRetry=0;return}const E=Gn.bufferInfo(s,e,0),k=E.nextStart||0,X=this.fragmentTracker;if(c&&X&&this.hls){const In=Qu(this.hls.inFlightFragments,e),Yt=E.len>Vl,mn=!k||In||k-e>Vl&&!X.getPartialFragment(e);if(Yt||mn)return;this.moved=!1}const J=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&X){if(!(E.len>0)&&!k)return;const Yt=Math.max(k,E.start||0)-e,hn=!!(J!=null&&J.live)?J.targetduration*2:Vl,en=Gl(e,X);if(Yt>0&&(Yt<=hn||en)){s.paused||this._trySkipBufferHole(en);return}}const De=i.detectStallWithCurrentTimeMs,Ie=self.performance.now(),at=this.waiting;let pt=this.stalled;if(pt===null)if(at>0&&Ie-at<De)pt=this.stalled=at;else{this.stalled=Ie;return}const _t=Ie-pt;if(!c&&(_t>=De||at)&&this.hls){var $t;if((($t=this.mediaSource)==null?void 0:$t.readyState)==="ended"&&!(J!=null&&J.live)&&Math.abs(e-((J==null?void 0:J.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(E),!this.media||!this.hls)return}const Ht=Gn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(Ht,_t,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 i=Gn.bufferedInfo(Gn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Gn.timeRangesToArray(r),c=Gn.bufferedInfo(s,t,0).bufferedIndex;if(c>-1&&c<s.length-1){const p=Gn.bufferedInfo(s,e,0).bufferedIndex,m=s[c].end,v=s[c+1].start;if((p===-1||p>c)&&v-m<1&&e-m<2){const E=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${m} -> ${v} buffered index: ${p}`);this.warn(E.message),this.media.currentTime+=1e-6;let k=Gl(e,this.fragmentTracker);k&&"fragment"in k?k=k.fragment:k||(k=void 0);const X=Gn.bufferInfo(this.media,e,0);this.hls.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:E,reason:E.message,frag:k,buffer:X.len,bufferInfo:X})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:s,media:c}=this,p=(r=this.hls)==null?void 0:r.config;if(!c||!s||!p)return;const m=(i=this.hls)==null?void 0:i.latestLevelDetails,v=Gl(n,s);if((v||m!=null&&m.live&&n<m.fragmentStart)&&(this._trySkipBufferHole(v)||!this.media))return;const E=e.buffered,k=this.adjacentTraversal(e,n);(E&&E.length>1&&e.len>p.maxBufferHole||e.nextStart&&(e.nextStart-n<p.maxBufferHole||k))&&(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 i=n.getFragAtPos(t,Q.MAIN),s=n.getFragAtPos(r,Q.MAIN);if(i&&s)return s.sn-i.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${Rt(e)})`);this.warn(s.message),t.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,c=Gn.bufferInfo(r,s,0),p=s<c.start?c.start:c.nextStart;if(p&&this.hls){const v=c.len<=i.maxBufferHole,E=c.len>0&&c.len<1&&r.readyState<3,k=p-s;if(k>0&&(v||E)){if(k>i.maxBufferHole){let J=!1;if(s===0){const De=n.getAppendedFrag(0,Q.MAIN);De&&p<De.end&&(J=!0)}if(!J&&e){var m;if(!((m=this.hls.loadLevelObj)!=null&&m.details)||Qu(this.hls.inFlightFragments,p))return 0;let Ie=!1,at=e.end;for(;at<p;){const pt=Gl(at,n);if(pt)at+=pt.duration;else{Ie=!0;break}}if(Ie)return 0}}const X=Math.max(p+Pd,s+Ld);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${X}`),this.moved=!0,r.currentTime=X,!(e!=null&&e.gap)){const J=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${X}`),De={type:le.MEDIA_ERROR,details:F.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:J,reason:J.message,buffer:c.len,bufferInfo:c};e&&("fragment"in e?De.part=e:De.frag=e),this.hls.trigger(g.ERROR,De)}return X}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const c=s+(r+1)*i.nudgeOffset,p=new Error(`Nudging 'currentTime' from ${s} to ${c}`);this.warn(p.message),n.currentTime=c,t.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.BUFFER_NUDGE_ON_STALL,error:p,fatal:!1,buffer:e.len,bufferInfo:e})}else{const c=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(c.message),t.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.BUFFER_STALLED_ERROR,error:c,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Qu(a,e){const t=Ju(a.main);if(t&&t.start<=e)return t;const n=Ju(a.audio);return n&&n.start<=e?n:null}function Ju(a){if(!a)return null;switch(a.state){case Mn.IDLE:case Mn.STOPPED:case Mn.ENDED:case Mn.ERROR:return null}return a.frag}function Gl(a,e){return e.getAppendedFrag(a,Q.MAIN)||e.getPartialFragment(a)}const Nd=.25;function pu(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function gu(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,Rt(r?I({type:r},n):n))}return i}const Yl=(()=>{const a=pu();try{a&&new a(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:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=pu();if(s)for(let c=0;c<i.length;c++){const p=i[c].type;if(p===ze.emsg&&!n||!r)continue;const m=Io(i[c].data),v=i[c].pts;let E=v+i[c].duration;E>Yl&&(E=Yl),E-v<=0&&(E=v+Nd);for(let X=0;X<m.length;X++){const J=m[X];if(!Go(J)){this.updateId3CueEnds(v,p);const De=gu(s,v,E,J,p);De&&this.id3Track.addCue(De)}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===Yl&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:p}}=s;if(i&&(c||p)){let m;r==="audio"?m=v=>v.type===ze.audioId3&&p:r==="video"?m=v=>v.type===ze.emsg&&c:m=v=>v.type===ze.audioId3&&p||v.type===ze.emsg&&c,nu(i,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:i,interstitialsController:s}=this.hls.config;if(!i)return;const c=pu();if(n&&r&&!s){const{fragmentStart:De,fragmentEnd:Ie}=e;let at=this.assetCue;at?(at.startTime=De,at.endTime=Ie):c&&(at=this.assetCue=gu(c,De,Ie,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),at&&(at.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(at),at.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:p}=this,{dateRanges:m}=e,v=Object.keys(m);let E=this.dateRangeCuesAppended;if(p&&t){var k;if((k=p.cues)!=null&&k.length){const De=Object.keys(E).filter(Ie=>!v.includes(Ie));for(let Ie=De.length;Ie--;){var X;const at=De[Ie],pt=(X=E[at])==null?void 0:X.cues;delete E[at],pt&&Object.keys(pt).forEach(_t=>{const $t=pt[_t];if($t){$t.removeEventListener("enter",this.onEventCueEnter);try{p.removeCue($t)}catch(Ht){}}})}}else E=this.dateRangeCuesAppended={}}const J=e.fragments[e.fragments.length-1];if(!(v.length===0||!l(J==null?void 0:J.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let De=0;De<v.length;De++){const Ie=v[De],at=m[Ie],pt=at.startTime,_t=E[Ie],$t=(_t==null?void 0:_t.cues)||{};let Ht=(_t==null?void 0:_t.durationKnown)||!1,In=Yl;const{duration:Yt,endDate:mn}=at;if(mn&&Yt!==null)In=pt+Yt,Ht=!0;else if(at.endOnNext&&!Ht){const en=v.reduce((Kn,br)=>{if(br!==at.id){const kr=m[br];if(kr.class===at.class&&kr.startDate>at.startDate&&(!Kn||at.startDate<Kn.startDate))return kr}return Kn},null);en&&(In=en.startTime,Ht=!0)}const hn=Object.keys(at.attr);for(let en=0;en<hn.length;en++){const Kn=hn[en];if(!ds(Kn))continue;const br=$t[Kn];if(br)Ht&&!(_t!=null&&_t.durationKnown)?br.endTime=In:Math.abs(br.startTime-pt)>.01&&(br.startTime=pt,br.endTime=In);else if(c){let kr=at.attr[Kn];_s(Kn)&&(kr=K(kr));const Nr=gu(c,pt,In,{key:Kn,data:kr},ze.dateRange);Nr&&(Nr.id=Ie,this.id3Track.addCue(Nr),$t[Kn]=Nr,s&&(Kn==="X-ASSET-LIST"||Kn==="X-ASSET-URL")&&Nr.addEventListener("enter",this.onEventCueEnter))}}E[Ie]={cues:$t,dateRange:at,durationKnown:Ht}}}}}class $d{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:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const c=this.targetLatency;if(c===null)return;const p=r-c,m=Math.min(this.maxLatency,c+n.targetduration);if(p<m&&p>.05&&this.forwardBufferLength>1){const E=Math.min(2,Math.max(1,s)),k=Math.round(2/(1+Math.exp(-.75*p-this.edgeStalled))*20)/20,X=Math.min(E,Math.max(1,k));this.changeMediaPlaybackRate(t,X)}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:i,liveSyncDurationCount:s,lowLatencyMode:c}=this.config,p=this.hls.userConfig;let m=c&&n||t;(this._targetLatencyUpdated||p.liveSyncDuration||p.liveSyncDurationCount||m===0)&&(m=i!==void 0?i: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,i=e-t-this.edgeStalled,s=r-n.totalduration,c=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),c)}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===F.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 Fd extends hs{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=[],i={},s={};let c=!1,p=!1,m=!1;t.levels.forEach(v=>{const E=v.attrs;let{audioCodec:k,videoCodec:X}=v;k&&(v.audioCodec=k=xe(k,n)||void 0),X&&(X=v.videoCodec=cn(X));const{width:J,height:De,unknownCodecs:Ie}=v,at=(Ie==null?void 0:Ie.length)||0;if(c||(c=!!(J&&De)),p||(p=!!X),m||(m=!!k),at||k&&!this.isAudioSupported(k)||X&&!this.isVideoSupported(X)){this.log(`Some or all CODECS not supported "${E.CODECS}"`);return}const{CODECS:pt,"FRAME-RATE":_t,"HDCP-LEVEL":$t,"PATHWAY-ID":Ht,RESOLUTION:In,"VIDEO-RANGE":Yt}=E,hn=`${`${Ht||"."}-`}${v.bitrate}-${In}-${_t}-${pt}-${Yt}-${$t}`;if(i[hn])if(i[hn].uri!==v.url&&!v.attrs["PATHWAY-ID"]){const en=s[hn]+=1;v.attrs["PATHWAY-ID"]=new Array(en+1).join(".");const Kn=this.createLevel(v);i[hn]=Kn,r.push(Kn)}else i[hn].addGroupId("audio",E.AUDIO),i[hn].addGroupId("text",E.SUBTITLES);else{const en=this.createLevel(v);i[hn]=en,s[hn]=1,r.push(en)}}),this.filterAndSortMediaOptions(r,t,c,p,m)}createLevel(e){const t=new Vt(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=vn(r,[])}return t}isAudioSupported(e){return it(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return it(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){var s;let c=[],p=[],m=e;const v=((s=t.stats)==null?void 0:s.parsing)||{};if((n||r)&&i&&(m=m.filter(({videoCodec:pt,videoRange:_t,width:$t,height:Ht})=>(!!pt||!!($t&&Ht))&&Dt(_t))),m.length===0){Promise.resolve().then(()=>{if(this.hls){let pt="no level with compatible codecs found in manifest",_t=pt;t.levels.length&&(_t=`one or more CODECS in variant not supported: ${Rt(t.levels.map(Ht=>Ht.attrs.CODECS).filter((Ht,In,Yt)=>Yt.indexOf(Ht)===In))}`,this.warn(_t),pt+=` (${_t})`);const $t=new Error(pt);this.hls.trigger(g.ERROR,{type:le.MEDIA_ERROR,details:F.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:$t,reason:_t})}}),v.end=performance.now();return}t.audioTracks&&(c=t.audioTracks.filter(pt=>!pt.audioCodec||this.isAudioSupported(pt.audioCodec)),qu(c)),t.subtitles&&(p=t.subtitles,qu(p));const E=m.slice(0);m.sort((pt,_t)=>{if(pt.attrs["HDCP-LEVEL"]!==_t.attrs["HDCP-LEVEL"])return(pt.attrs["HDCP-LEVEL"]||"")>(_t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&pt.height!==_t.height)return pt.height-_t.height;if(pt.frameRate!==_t.frameRate)return pt.frameRate-_t.frameRate;if(pt.videoRange!==_t.videoRange)return xt.indexOf(pt.videoRange)-xt.indexOf(_t.videoRange);if(pt.videoCodec!==_t.videoCodec){const $t=be(pt.videoCodec),Ht=be(_t.videoCodec);if($t!==Ht)return Ht-$t}if(pt.uri===_t.uri&&pt.codecSet!==_t.codecSet){const $t=je(pt.codecSet),Ht=je(_t.codecSet);if($t!==Ht)return Ht-$t}return pt.averageBitrate!==_t.averageBitrate?pt.averageBitrate-_t.averageBitrate:0});let k=E[0];if(this.steering&&(m=this.steering.filterParsedLevels(m),m.length!==E.length)){for(let pt=0;pt<E.length;pt++)if(E[pt].pathwayId===m[0].pathwayId){k=E[pt];break}}this._levels=m;for(let pt=0;pt<m.length;pt++)if(m[pt]===k){var X;this._firstLevel=pt;const _t=k.bitrate,$t=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${m.length} level(s) found, first bitrate: ${_t}`),((X=this.hls.userConfig)==null?void 0:X.abrEwmaDefaultEstimate)===void 0){const Ht=Math.min(_t,this.hls.config.abrEwmaDefaultEstimateMax);Ht>$t&&$t===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ht)}break}const J=i&&!r,De=this.hls.config,Ie=!!(De.audioStreamController&&De.audioTrackController),at={levels:m,audioTracks:c,subtitleTracks:p,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:Ie&&!J&&c.some(pt=>!!pt.url)};v.end=performance.now(),this.hls.trigger(g.MANIFEST_PARSED,at)}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=e<0;if(this.hls.trigger(g.ERROR,{type:le.OTHER_ERROR,details:F.LEVEL_SWITCH_ERROR,level:e,fatal:E,error:v,reason:v.message}),E)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],c=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===c)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${c?" with Pathway "+c:""} from level ${n}${i?" with Pathway "+i:""}`);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===q.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Q.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var c;this.warn(`Invalid level index ${r}`),(c=t.deliveryDirectives)!=null&&c.skip&&(i.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&&(i.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,i=e.attrs["PATHWAY-ID"],s=e.details,c=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:""}${i?" Pathway "+i:""}${c&&s.live?" age "+c.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((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(c=>c.level=-1)),!1));Ns(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(a){const e={};a.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(!Le())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 a=Le();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(he(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(he(e,"audio"))))}function Ud(){var a;const e=ec();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Kd=100;class jd extends oo{constructor(e,t,n){super(e,t,n,"stream-controller",Q.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,i=r?r.currentTime:null;if(i===null||!l(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,Q.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} 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(Kd),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,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=Mn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Mn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Mn.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=Mn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Mn.IDLE;break}break}case Mn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Mn.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 i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],c=this.getMainFwdBufferInfo();if(c===null)return;const p=this.getLevelDetails();if(p&&this._streamEnded(c,p)){const De={};this.altAudio===2&&(De.type="video"),this.hls.trigger(g.BUFFER_EOS,De),this.state=Mn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const m=s.details;if(!m||this.state===Mn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=Mn.WAITING_LEVEL,this.startFragRequested=!1;return}const v=c.len,E=this.getMaxBufferLength(s.maxBitrate);if(v>=E)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const k=this.backtrackFragment?this.backtrackFragment.start:c.end;let X=this.getNextFragment(k,m);if(this.couldBacktrack&&!this.fragPrevious&&X&&We(X)&&this.fragmentTracker.getState(X)!==Bn.OK){var J;const Ie=((J=this.backtrackFragment)!=null?J:X).sn-m.startSN,at=m.fragments[Ie-1];at&&X.cc===at.cc&&(X=at,this.fragmentTracker.removeFragment(at))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(X&&this.isLoopLoading(X,k)){if(!X.gap){const Ie=this.audioOnly&&!this.altAudio?G.AUDIO:G.VIDEO,at=(Ie===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;at&&this.afterBufferFlushed(at,Ie,Q.MAIN)}X=this.getNextFragmentLoopLoading(X,m,c,Q.MAIN,E)}X&&(X.initSegment&&!X.initSegment.data&&!this.bitrateTest&&(X=X.initSegment),this.loadFragment(X,s,k))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Bn.NOT_LOADED||r===Bn.PARTIAL?We(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,Q.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const c=this.getMainFwdBufferInfo();if(!c||c.len<i.targetduration*2)return}if(!t.paused&&e){const c=this.hls.nextLoadLevel,p=e[c],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 c=this.followingBufferedFrag(s);if(c){this.abortCurrentFrag();const p=c.maxStartPTS?c.maxStartPTS:c.start,m=c.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 Mn.KEY_LOADING:case Mn.FRAG_LOADING:case Mn.FRAG_LOADING_WAITING_RETRY:case Mn.PARSING:case Mn.PARSED:this.state=Mn.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;Bs(n,"playing",this.onMediaPlaying),Bs(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Ws(n,"playing",this.onMediaPlaying),Ws(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 i=0;i<t.levels.length;i++){const s=t.levels[i].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!Ud(),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!==Mn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Mn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,c=t.details,p=c.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${c.startSN},${c.endSN}]${c.lastPartSn?`[part-${c.lastPartSn}-${c.lastPartIndex}]`:""}, cc [${c.startCC}, ${c.endCC}] duration:${p}`);const m=t.levelInfo,v=this.fragCurrent;v&&(this.state===Mn.FRAG_LOADING||this.state===Mn.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let E=0;if(c.live||(n=m.details)!=null&&n.live){var k;if(this.checkLiveUpdate(c),c.deltaUpdateFailed)return;E=this.alignPlaylists(c,m.details,(k=this.levelLastLoaded)==null?void 0:k.details)}if(m.details=c,this.levelLastLoaded=m,i||this.setStartPosition(c,E),this.hls.trigger(g.LEVEL_UPDATED,{details:c,level:s}),this.state===Mn.WAITING_LEVEL){if(this.waitForCdnTuneIn(c))return;this.state=Mn.IDLE}i&&c.live&&this.synchronizeToLiveEdge(c),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,c=e.edge,p=i>=s-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!p)){const v=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!p&&n.readyState<4||i<c-v)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${c}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var m;const E=Gn.bufferInfo(n,r,0);if(!((m=E.buffered)!=null&&m.length)){n.currentTime=r;return}if(E.start<=i){n.currentTime=r;return}const{nextStart:X}=Gn.bufferedInfo(E.buffered,i,0);X&&(n.currentTime=X)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=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 c=s[n.level];if(!c){this.warn(`Level ${n.level} not found on progress`);return}const p=c.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=c.videoCodec,v=p.PTSKnown||!p.live,E=(t=n.initSegment)==null?void 0:t.data,k=this._getAudioCodec(c),X=this.transmuxer=this.transmuxer||new fs(this.hls,Q.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),J=r?r.index:-1,De=J!==-1,Ie=new Mi(n.level,n.sn,n.stats.chunkCount,i.byteLength,J,De),at=this.initPTS[n.cc];X.push(i,E,k,m,n,r,p.totalduration,v,Ie,at)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio!==0;if(Xn(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=Xn(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,i,s=!1;for(const c in n){const p=n[c];if(p.id==="main"){if(i=c,r=p,c==="video"){const m=n[c];m&&(this.videoBuffer=m.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===Q.MAIN;if(i){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===Mn.PARSED&&(this.state=Mn.IDLE);return}const c=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*c.total/(c.buffering.end-c.loading.first)),We(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Gn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=Mn.ERROR;return}switch(t.details){case F.FRAG_GAP:case F.FRAG_PARSING_ERROR:case F.FRAG_DECRYPT_ERROR:case F.FRAG_LOAD_ERROR:case F.FRAG_LOAD_TIMEOUT:case F.KEY_LOAD_ERROR:case F.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Q.MAIN,t);break;case F.LEVEL_LOAD_ERROR:case F.LEVEL_LOAD_TIMEOUT:case F.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Mn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===q.LEVEL&&(this.state=Mn.IDLE);break;case F.BUFFER_ADD_CODEC_ERROR:case F.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case F.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 F.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Mn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==G.AUDIO||!this.altAudio){const n=(t===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,Q.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 i=this.getLevelDetails(),s=Gn.getBuffered(e),c=s.length?s.start(0):0,p=c-n,m=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||p>0&&(p<m||this.loadingParts&&p<2*((i==null?void 0:i.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 ${c}`),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,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=Mn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(g.FRAG_LOADED,n),i.bitrateTest=!1}).catch(n=>{this.state===Mn.STOPPED||this.state===Mn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,s=this.getCurrentContext(i);if(!s){this.resetWhenMissingContext(i);return}const{frag:c,part:p,level:m}=s,{video:v,text:E,id3:k,initSegment:X}=r,{details:J}=m,De=this.altAudio?void 0:r.audio;if(this.fragContextChanged(c)){this.fragmentTracker.removeFragment(c);return}if(this.state=Mn.PARSING,X){const Ie=X.tracks;if(Ie){const $t=c.initSegment||c;if(this.unhandledEncryptionError(X,c))return;this._bufferInitSegment(m,Ie,$t,i),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:$t,id:t,tracks:Ie})}const at=X.initPTS,pt=X.timescale,_t=this.initPTS[c.cc];if(l(at)&&(!_t||_t.baseTime!==at||_t.timescale!==pt)){const $t=X.trackId;this.initPTS[c.cc]={baseTime:at,timescale:pt,trackId:$t},n.trigger(g.INIT_PTS_FOUND,{frag:c,id:t,initPTS:at,timescale:pt,trackId:$t})}}if(v&&J){De&&v.type==="audiovideo"&&this.logMuxedErr(c);const Ie=J.fragments[c.sn-1-J.startSN],at=c.sn===J.startSN,pt=!Ie||c.cc>Ie.cc;if(r.independent!==!1){const{startPTS:_t,endPTS:$t,startDTS:Ht,endDTS:In}=v;if(p)p.elementaryStreams[v.type]={startPTS:_t,endPTS:$t,startDTS:Ht,endDTS:In};else if(v.firstKeyFrame&&v.independent&&i.id===1&&!pt&&(this.couldBacktrack=!0),v.dropped&&v.independent){const Yt=this.getMainFwdBufferInfo(),mn=(Yt?Yt.end:this.getLoadPosition())+this.config.maxBufferHole,hn=v.firstKeyFramePTS?v.firstKeyFramePTS:_t;if(!at&&mn<hn-this.config.maxBufferHole&&!pt){this.backtrack(c);return}else pt&&(c.gap=!0);c.setElementaryStreamInfo(v.type,c.start,$t,c.start,In,!0)}else at&&_t-(J.appliedTimelineOffset||0)>Vl&&(c.gap=!0);c.setElementaryStreamInfo(v.type,_t,$t,Ht,In),this.backtrackFragment&&(this.backtrackFragment=c),this.bufferFragmentData(v,c,p,i,at||pt)}else if(at||pt)c.gap=!0;else{this.backtrack(c);return}}if(De){const{startPTS:Ie,endPTS:at,startDTS:pt,endDTS:_t}=De;p&&(p.elementaryStreams[G.AUDIO]={startPTS:Ie,endPTS:at,startDTS:pt,endDTS:_t}),c.setElementaryStreamInfo(G.AUDIO,Ie,at,pt,_t),this.bufferFragmentData(De,c,p,i)}if(J&&k!=null&&k.samples.length){const Ie={id:t,frag:c,details:J,samples:k.samples};n.trigger(g.FRAG_PARSING_METADATA,Ie)}if(J&&E){const Ie={id:t,frag:c,details:J,samples:E.samples};n.trigger(g.FRAG_PARSING_USERDATA,Ie)}}logMuxedErr(e){this.warn(`${We(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==Mn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:c}=t;if(i){const m=e.audioCodec;let v=zt(i.codec,m);v==="mp4a"&&(v="mp4a.40.5");const E=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){v&&(v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5");const k=i.metadata;k&&"channelCount"in k&&(k.channelCount||1)!==1&&E.indexOf("firefox")===-1&&(v="mp4a.40.5")}v&&v.indexOf("mp4a.40.5")!==-1&&E.indexOf("android")!==-1&&i.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}"`),i.levelCodec=v,i.id=Q.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${v||""}/${m||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=Q.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}c&&(this.log(`Init audiovideo buffer, container:${c.container}, codecs[level/parsed]=[${e.codecs}/${c.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 E=t[m].initSegment;E!=null&&E.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:m,data:E,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,Q.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=Mn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Gn.isBuffered(e,n)?t=this.getAppendedFrag(n):Gn.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(g.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(g.LEVEL_SWITCHED,{level:i}))}}}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 l(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(l(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?or(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(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 Zd extends H{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=F.KEY_LOAD_ERROR,n,r,i){return new Lr({type:le.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,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,i=t.length;r<i;r++){const s=t[r];if(e.cc<=s.cc&&(!We(e)||!We(s)||e.sn<s.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(s).then(c=>{if(!this.emeController)return;s.setKeyFormat(c);const p=xs(c);if(p)return this.emeController.getKeySystemAccess([p])})}if(this.config.requireKeySystemAccessOnStart){const r=Es(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 i=e.decryptdata;if(!i){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,F.KEY_LOAD_ERROR,m))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,F.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const c=vu(i);let p=this.keyIdToKeyInfo[c];if((n=p)!=null&&n.decryptdata.key)return i.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:E}=v;return i.key=E.decryptdata.key,{frag:e,keyInfo:E}})}switch(this.log(`${this.keyIdToKeyInfo[c]?"Rel":"L"}oading${i.keyId?" keyId: "+se(i.keyId):""} URI: ${i.uri} from ${e.type} ${e.level}`),p=this.keyIdToKeyInfo[c]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.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,F.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r;if(!e.decryptdata.keyId&&(r=t.initSegment)!=null&&r.data){const s=Ye(t.initSegment.data);if(s.length){let c=s[0];c.some(p=>p!==0)?(this.log(`Using keyId found in init segment ${se(c)}`),ks.setKeyIdForUri(e.decryptdata.uri,c)):(c=ks.addKeyIdForUri(e.decryptdata.uri),this.log(`Generating keyId to patch media ${se(c)}`)),e.decryptdata.keyId=c}}if(!e.decryptdata.keyId&&!We(t))return Promise.resolve(n);const i=this.emeController.loadKey(n);return(e.keyLoadPromise=i.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,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,c)=>{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},E={onSuccess:(k,X,J,De)=>{const{frag:Ie,keyInfo:at}=J,pt=vu(at.decryptdata);if(!Ie.decryptdata||at!==this.keyIdToKeyInfo[pt])return c(this.createKeyLoadError(Ie,F.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),De));at.decryptdata.key=Ie.decryptdata.key=new Uint8Array(k.data),Ie.keyLoader=null,at.loader=null,s({frag:Ie,keyInfo:at})},onError:(k,X,J,De)=>{this.resetLoader(X),c(this.createKeyLoadError(t,F.KEY_LOAD_ERROR,new Error(`HTTP Error ${k.code} loading key ${k.text}`),J,I({url:p.url,data:void 0},k)))},onTimeout:(k,X,J)=>{this.resetLoader(X),c(this.createKeyLoadError(t,F.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),J))},onAbort:(k,X,J)=>{this.resetLoader(X),c(this.createKeyLoadError(t,F.INTERNAL_ABORTED,new Error("key loading aborted"),J))}};i.load(p,v,E)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null);const s=vu(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],i&&i.destroy()}}function vu(a){if(a.keyFormat!==ti.FAIRPLAY){const e=a.keyId;if(e)return se(e)}return a.uri}function nc(a){const{type:e}=a;switch(e){case q.AUDIO_TRACK:return Q.AUDIO;case q.SUBTITLE_TRACK:return Q.SUBTITLE;default:return Q.MAIN}}function yu(a,e){let t=a.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,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:q.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:c,levelInfo:p}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:q.LEVEL,url:s,deliveryDirectives:c,levelOrTrack:p})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:c}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:q.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:c})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:c}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:q.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:c})}onLevelsUpdated(e,t){const n=this.loaders[q.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[q.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 i;if(e.type===q.MANIFEST?i=n.manifestLoadPolicy.default:i=y({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),l((t=e.deliveryDirectives)==null?void 0:t.part)){let m;if(e.type===q.LEVEL&&e.level!==null?m=this.hls.levels[e.level].details:e.type===q.AUDIO_TRACK&&e.id!==null?m=this.hls.audioTracks[e.id].details:e.type===q.SUBTITLE_TRACK&&e.id!==null&&(m=this.hls.subtitleTracks[e.id].details),m){const v=m.partTarget,E=m.targetduration;if(v&&E){const k=Math.max(v*3,E*.8)*1e3;i=y({},i,{maxTimeToFirstByteMs:Math.min(k,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(k,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},c={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},p={onSuccess:(m,v,E,k)=>{const X=this.getInternalLoader(E);this.resetInternalLoader(E.type);const J=m.data;v.parsing.start=performance.now(),Ls.isMediaPlaylist(J)||E.type!==q.MANIFEST?this.handleTrackOrLevelPlaylist(m,v,E,k||null,X):this.handleMasterPlaylist(m,v,E,k)},onError:(m,v,E,k)=>{this.handleNetworkError(v,E,!1,m,k)},onTimeout:(m,v,E)=>{this.handleNetworkError(v,E,!0,void 0,m)}};r.load(e,c,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 i=this.hls,s=e.data,c=yu(e,n),p=Ls.parseMasterPlaylist(s,c);if(p.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,p.playlistParsingError,r,t);return}const{contentSteering:m,levels:v,sessionData:E,sessionKeys:k,startTimeOffset:X,variableList:J}=p;this.variableList=J,v.forEach(pt=>{const{unknownCodecs:_t}=pt;if(_t){const{preferManagedMediaSource:$t}=this.hls.config;let{audioCodec:Ht,videoCodec:In}=pt;for(let Yt=_t.length;Yt--;){const mn=_t[Yt];it(mn,"audio",$t)?(pt.audioCodec=Ht=Ht?`${Ht},${mn}`:mn,Ot.audio[Ht.substring(0,4)]=2,_t.splice(Yt,1)):it(mn,"video",$t)&&(pt.videoCodec=In=In?`${In},${mn}`:mn,Ot.video[In.substring(0,4)]=2,_t.splice(Yt,1))}}});const{AUDIO:De=[],SUBTITLES:Ie,"CLOSED-CAPTIONS":at}=Ls.parseMasterPlaylistMedia(s,c,p);De.length&&!De.some(_t=>!_t.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"),De.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Pr({}),bitrate:0,url:""})),i.trigger(g.MANIFEST_LOADED,{levels:v,audioTracks:De,subtitles:Ie,captions:at,contentSteering:m,url:c,stats:t,networkDetails:r,sessionData:E,sessionKeys:k,startTimeOffset:X,variableList:J})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:c,level:p,type:m}=n,v=yu(e,n),E=l(p)?p:l(c)?c:0,k=nc(n),X=Ls.parseLevelPlaylist(e.data,v,E,k,0,this.variableList);if(m===q.MANIFEST){const J={attrs:new Pr({}),bitrate:0,details:X,name:"",url:v};X.requestScheduled=t.loading.start+wi(X,0),s.trigger(g.MANIFEST_LOADED,{levels:[J],audioTracks:[],url:v,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=X,this.handlePlaylistLoaded(X,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(g.ERROR,{type:le.NETWORK_ERROR,details:F.MANIFEST_PARSING_ERROR,fatal:t.type===q.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===q.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===q.AUDIO_TRACK||e.type===q.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=F.UNKNOWN,m=!1;const v=this.getInternalLoader(e);switch(e.type){case q.MANIFEST:p=n?F.MANIFEST_LOAD_TIMEOUT:F.MANIFEST_LOAD_ERROR,m=!0;break;case q.LEVEL:p=n?F.LEVEL_LOAD_TIMEOUT:F.LEVEL_LOAD_ERROR,m=!1;break;case q.AUDIO_TRACK:p=n?F.AUDIO_TRACK_LOAD_TIMEOUT:F.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case q.SUBTITLE_TRACK:p=n?F.SUBTITLE_TRACK_LOAD_TIMEOUT:F.SUBTITLE_LOAD_ERROR,m=!1;break}v&&this.resetInternalLoader(e.type);const E={type:le.NETWORK_ERROR,details:p,fatal:m,url:e.url,loader:v,context:e,error:c,networkDetails:t,stats:i};if(r){const k=(t==null?void 0:t.url)||e.url;E.response=I({url:k,data:void 0},r)}this.hls.trigger(g.ERROR,E)}handlePlaylistLoaded(e,t,n,r,i,s){const c=this.hls,{type:p,level:m,levelOrTrack:v,id:E,groupId:k,deliveryDirectives:X}=r,J=yu(t,r),De=nc(r);let Ie=typeof r.level=="number"&&De===Q.MAIN?m:void 0;const at=e.playlistParsingError;if(at){if(this.hls.logger.warn(`${at} ${e.url}`),!c.config.ignorePlaylistParsingErrors){c.trigger(g.ERROR,{type:le.NETWORK_ERROR,details:F.LEVEL_PARSING_ERROR,fatal:!1,url:J,error:at,reason:at.message,response:t,context:r,level:Ie,parent:De,networkDetails:i,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const pt=e.playlistParsingError=new Error("No Segments found in Playlist");c.trigger(g.ERROR,{type:le.NETWORK_ERROR,details:F.LEVEL_EMPTY_ERROR,fatal:!1,url:J,error:pt,reason:pt.message,response:t,context:r,level:Ie,parent:De,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),p){case q.MANIFEST:case q.LEVEL:if(Ie){if(!v)Ie=0;else if(v!==c.levels[Ie]){const pt=c.levels.indexOf(v);pt>-1&&(Ie=pt)}}c.trigger(g.LEVEL_LOADED,{details:e,levelInfo:v||c.levels[0],level:Ie||0,id:E||0,stats:n,networkDetails:i,deliveryDirectives:X,withoutMultiVariant:p===q.MANIFEST});break;case q.AUDIO_TRACK:c.trigger(g.AUDIO_TRACK_LOADED,{details:e,track:v,id:E||0,groupId:k||"",stats:n,networkDetails:i,deliveryDirectives:X});break;case q.SUBTITLE_TRACK:c.trigger(g.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:E||0,groupId:k||"",stats:n,networkDetails:i,deliveryDirectives:X});break}}}class bo{static get version(){return lo}static isMSESupported(){return tc()}static isSupported(){return zd()}static getMediaSource(){return Le()}static get Events(){return g}static get MetadataSchema(){return ze}static get ErrorTypes(){return le}static get ErrorDetails(){return F}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 _o,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=pe(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Rd(bo.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Od(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:c,fpsController:p}=n,m=new c(this),v=this.abrController=new r(this),E=new Yn(this),k=n.interstitialsController,X=k?this.interstitialsController=new k(this,bo):null,J=this.bufferController=new i(this,E),De=this.capLevelController=new s(this),Ie=new p(this),at=new Hd(this),pt=n.contentSteeringController,_t=pt?new pt(this):null,$t=this.levelController=new Fd(this,_t),Ht=new Bd(this),In=new Zd(this.config,this.logger),Yt=this.streamController=new jd(this,E,In),mn=this.gapController=new kd(this,E);De.setStreamController(Yt),Ie.setStreamController(Yt);const hn=[at,$t,Yt];X&&hn.splice(1,0,X),_t&&hn.splice(1,0,_t),this.networkControllers=hn;const en=[v,J,mn,De,Ie,Ht,E];this.audioTrackController=this.createController(n.audioTrackController,hn);const Kn=n.audioStreamController;Kn&&hn.push(this.audioStreamController=new Kn(this,E,In)),this.subtitleTrackController=this.createController(n.subtitleTrackController,hn);const br=n.subtitleStreamController;br&&hn.push(this.subtititleStreamController=new br(this,E,In)),this.createController(n.timelineController,en),In.emeController=this.emeController=this.createController(n.emeController,en),this.cmcdController=this.createController(n.cmcdController,en),this.latencyController=this.createController($d,en),this.coreComponents=en,hn.push(m);const kr=m.onErrorOut;typeof kr=="function"&&this.on(g.ERROR,kr,m),this.on(g.MANIFEST_LOADED,at.onManifestLoaded,at)}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:le.OTHER_ERROR,details:F.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 i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(g.ERROR,{type:le.OTHER_ERROR,details:F.ATTACH_MEDIA_ERROR,fatal:!0,error:i});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=x.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={[Q.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[Q.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[Q.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=kc()),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){vt(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}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 Xt(e,n,navigator.mediaCapabilities)}}bo.defaultConfig=void 0},16722:function(ln,qe,d){"use strict";d.d(qe,{Z:function(){return Q}});const l=o=>typeof o=="object"&&o!=null&&o.nodeType===1,ie=(o,C)=>(!C||o!=="hidden")&&o!=="visible"&&o!=="clip",U=(o,C)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const P=getComputedStyle(o,null);return ie(P.overflowY,C)||ie(P.overflowX,C)||(y=>{const S=(I=>{if(!I.ownerDocument||!I.ownerDocument.defaultView)return null;try{return I.ownerDocument.defaultView.frameElement}catch(N){return null}})(y);return!!S&&(S.clientHeight<y.scrollHeight||S.clientWidth<y.scrollWidth)})(o)}return!1},le=(o,C,P,y,S,I,N,W)=>I<o&&N>C||I>o&&N<C?0:I<=o&&W<=P||N>=C&&W>=P?I-o-y:N>C&&W<P||I<o&&W>P?N-C+S:0,F=o=>{const C=o.parentElement;return C==null?o.getRootNode().host||null:C},g=(o,C)=>{var P,y,S,I;if(typeof document=="undefined")return[];const{scrollMode:N,block:W,inline:H,boundary:j,skipOverflowHiddenElements:A}=C,V=typeof j=="function"?j:st=>st!==j;if(!l(o))throw new TypeError("Invalid target");const R=document.scrollingElement||document.documentElement,L=[];let ae=o;for(;l(ae)&&V(ae);){if(ae=F(ae),ae===R){L.push(ae);break}ae!=null&&ae===document.body&&U(ae)&&!U(document.documentElement)||ae!=null&&U(ae,A)&&L.push(ae)}const pe=(y=(P=window.visualViewport)==null?void 0:P.width)!=null?y:innerWidth,ce=(I=(S=window.visualViewport)==null?void 0:S.height)!=null?I:innerHeight,{scrollX:Le,scrollY:$e}=window,{height:Te,width:Pe,top:se,right:K,bottom:w,left:te}=o.getBoundingClientRect(),{top:ne,right:z,bottom:x,left:T}=(st=>{const _e=window.getComputedStyle(st);return{top:parseFloat(_e.scrollMarginTop)||0,right:parseFloat(_e.scrollMarginRight)||0,bottom:parseFloat(_e.scrollMarginBottom)||0,left:parseFloat(_e.scrollMarginLeft)||0}})(o);let G=W==="start"||W==="nearest"?se-ne:W==="end"?w+x:se+Te/2-ne+x,ve=H==="center"?te+Pe/2-T+z:H==="end"?K+z:te-T;const We=[];for(let st=0;st<L.length;st++){const _e=L[st],{height:Ke,width:Ve,top:rt,right:Ae,bottom:Tt,left:tt}=_e.getBoundingClientRect();if(N==="if-needed"&&se>=0&&te>=0&&w<=ce&&K<=pe&&(_e===R&&!U(_e)||se>=rt&&w<=Tt&&te>=tt&&K<=Ae))return We;const Pt=getComputedStyle(_e),Xe=parseInt(Pt.borderLeftWidth,10),Qe=parseInt(Pt.borderTopWidth,10),Ne=parseInt(Pt.borderRightWidth,10),Oe=parseInt(Pt.borderBottomWidth,10);let re=0,Fe=0;const Re="offsetWidth"in _e?_e.offsetWidth-_e.clientWidth-Xe-Ne:0,Z="offsetHeight"in _e?_e.offsetHeight-_e.clientHeight-Qe-Oe:0,O="offsetWidth"in _e?_e.offsetWidth===0?0:Ve/_e.offsetWidth:0,me="offsetHeight"in _e?_e.offsetHeight===0?0:Ke/_e.offsetHeight:0;if(R===_e)re=W==="start"?G:W==="end"?G-ce:W==="nearest"?le($e,$e+ce,ce,Qe,Oe,$e+G,$e+G+Te,Te):G-ce/2,Fe=H==="start"?ve:H==="center"?ve-pe/2:H==="end"?ve-pe:le(Le,Le+pe,pe,Xe,Ne,Le+ve,Le+ve+Pe,Pe),re=Math.max(0,re+$e),Fe=Math.max(0,Fe+Le);else{re=W==="start"?G-rt-Qe:W==="end"?G-Tt+Oe+Z:W==="nearest"?le(rt,Tt,Ke,Qe,Oe+Z,G,G+Te,Te):G-(rt+Ke/2)+Z/2,Fe=H==="start"?ve-tt-Xe:H==="center"?ve-(tt+Ve/2)+Re/2:H==="end"?ve-Ae+Ne+Re:le(tt,Ae,Ve,Xe,Ne+Re,ve,ve+Pe,Pe);const{scrollLeft:Ee,scrollTop:ge}=_e;re=me===0?0:Math.max(0,Math.min(ge+re/me,_e.scrollHeight-Ke/me+Z)),Fe=O===0?0:Math.max(0,Math.min(Ee+Fe/O,_e.scrollWidth-Ve/O+Re)),G+=ge-re,ve+=Ee-Fe}We.push({el:_e,top:re,left:Fe})}return We},q=o=>o===!1?{block:"end",inline:"nearest"}:(C=>C===Object(C)&&Object.keys(C).length!==0)(o)?o:{block:"start",inline:"nearest"};function Q(o,C){if(!o.isConnected||!(S=>{let I=S;for(;I&&I.parentNode;){if(I.parentNode===document)return!0;I=I.parentNode instanceof ShadowRoot?I.parentNode.host:I.parentNode}return!1})(o))return;const P=(S=>{const I=window.getComputedStyle(S);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(o);if((S=>typeof S=="object"&&typeof S.behavior=="function")(C))return C.behavior(g(o,C));const y=typeof C=="boolean"||C==null?void 0:C.behavior;for(const{el:S,top:I,left:N}of g(o,q(C))){const W=I-P.top+P.bottom,H=N-P.left+P.right;S.scroll({top:W,left:H,behavior:y})}}}}]);
|
|
|
}()); |