|
|
!(function(){var lc=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[8143],{70557:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},89489:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},59477:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},40001:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},49198:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},84105:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},18785:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},73331:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},15277:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},52671:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},8657:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},56082:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},33853:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},15075:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},43531:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},61485:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},47472:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(60499),ne=d(59301),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},fe=j,K=d(7657),g=function(C,N){return ne.createElement(K.Z,(0,o.Z)({},C,{ref:N,icon:fe}))},re=ne.forwardRef(g),oe=re},68196:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return Xe}});var o=d(85899),ne=d(72190),j=d(42244),fe=d(43403),K=d(92310),g=d.n(K),re=d(29301),oe=d(76846),l=d(96452),C=d(6089),N=d(80402),S=d(34280),_=d(49658),T=d(59301),k=d(60499),W=d(77900),V=d(8654);function $(Ue){var ke=Ue.prefixCls,ie=Ue.align,$e=Ue.arrow,Pe=Ue.arrowPos,z=$e||{},D=z.className,ue=z.content,ge=Pe.x,pe=ge===void 0?0:ge,ye=Pe.y,Re=ye===void 0?0:ye,Ze=T.useRef();if(!ie||!ie.points)return null;var te={position:"absolute"};if(ie.autoArrow!==!1){var le=ie.points[0],tt=ie.points[1],nt=le[0],ct=le[1],ut=tt[0],Ge=tt[1];nt===ut||!["t","b"].includes(nt)?te.top=Re:nt==="t"?te.top=0:te.bottom=0,ct===Ge||!["l","r"].includes(ct)?te.left=pe:ct==="l"?te.left=0:te.right=0}return T.createElement("div",{ref:Ze,className:g()("".concat(ke,"-arrow"),D),style:te},ue)}function I(Ue){var ke=Ue.prefixCls,ie=Ue.open,$e=Ue.zIndex,Pe=Ue.mask,z=Ue.motion;return Pe?T.createElement(W.default,(0,k.Z)({},z,{motionAppear:!0,visible:ie,removeOnLeave:!0}),function(D){var ue=D.className;return T.createElement("div",{style:{zIndex:$e},className:g()("".concat(ke,"-mask"),ue)})}):null}var G=T.memo(function(Ue){var ke=Ue.children;return ke},function(Ue,ke){return ke.cache}),F=G,L=T.forwardRef(function(Ue,ke){var ie=Ue.popup,$e=Ue.className,Pe=Ue.prefixCls,z=Ue.style,D=Ue.target,ue=Ue.onVisibleChanged,ge=Ue.open,pe=Ue.keepDom,ye=Ue.fresh,Re=Ue.onClick,Ze=Ue.mask,te=Ue.arrow,le=Ue.arrowPos,tt=Ue.align,nt=Ue.motion,ct=Ue.maskMotion,ut=Ue.forceRender,Ge=Ue.getPopupContainer,yt=Ue.autoDestroy,ht=Ue.portal,Ce=Ue.zIndex,Ye=Ue.onMouseEnter,b=Ue.onMouseLeave,w=Ue.onPointerEnter,He=Ue.onPointerDownCapture,q=Ue.ready,be=Ue.offsetX,It=Ue.offsetY,Be=Ue.offsetR,rt=Ue.offsetB,ft=Ue.onAlign,ve=Ue.onPrepare,Se=Ue.stretch,We=Ue.targetWidth,ze=Ue.targetHeight,M=typeof ie=="function"?ie():ie,dt=ge||pe,Ee=(Ge==null?void 0:Ge.length)>0,Tt=T.useState(!Ge||!Ee),Kt=(0,ne.Z)(Tt,2),Jt=Kt[0],un=Kt[1];if((0,S.Z)(function(){!Jt&&Ee&&D&&un(!0)},[Jt,Ee,D]),!Jt)return null;var gn="auto",En={left:"-1000vw",top:"-1000vh",right:gn,bottom:gn};if(q||!ge){var Bn,Wn=tt.points,Tn=tt.dynamicInset||((Bn=tt._experimental)===null||Bn===void 0?void 0:Bn.dynamicInset),Jn=Tn&&Wn[0][1]==="r",vn=Tn&&Wn[0][0]==="b";Jn?(En.right=Be,En.left=gn):(En.left=be,En.right=gn),vn?(En.bottom=rt,En.top=gn):(En.top=It,En.bottom=gn)}var Gt={};return Se&&(Se.includes("height")&&ze?Gt.height=ze:Se.includes("minHeight")&&ze&&(Gt.minHeight=ze),Se.includes("width")&&We?Gt.width=We:Se.includes("minWidth")&&We&&(Gt.minWidth=We)),ge||(Gt.pointerEvents="none"),T.createElement(ht,{open:ut||dt,getContainer:Ge&&function(){return Ge(D)},autoDestroy:yt},T.createElement(I,{prefixCls:Pe,open:ge,zIndex:Ce,mask:Ze,motion:ct}),T.createElement(re.Z,{onResize:ft,disabled:!ge},function(Qt){return T.createElement(W.default,(0,k.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ut,leavedClassName:"".concat(Pe,"-hidden")},nt,{onAppearPrepare:ve,onEnterPrepare:ve,visible:ge,onVisibleChanged:function(An){var bt;nt==null||(bt=nt.onVisibleChanged)===null||bt===void 0||bt.call(nt,An),ue(An)}}),function(Dn,An){var bt=Dn.className,_t=Dn.style,Me=g()(Pe,bt,$e);return T.createElement("div",{ref:(0,V.sQ)(Qt,ke,An),className:Me,style:(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({"--arrow-x":"".concat(le.x||0,"px"),"--arrow-y":"".concat(le.y||0,"px")},En),Gt),_t),{},{boxSizing:"border-box",zIndex:Ce},z),onMouseEnter:Ye,onMouseLeave:b,onPointerEnter:w,onClick:Re,onPointerDownCapture:He},te&&T.createElement($,{prefixCls:Pe,arrow:te,arrowPos:le,align:tt}),T.createElement(F,{cache:!ge&&!ye},M))})}))}),ae=L,me=T.forwardRef(function(Ue,ke){var ie=Ue.children,$e=Ue.getTriggerDOMNode,Pe=(0,V.Yr)(ie),z=T.useCallback(function(ue){(0,V.mH)(ke,$e?$e(ue):ue)},[$e]),D=(0,V.x1)(z,(0,V.C4)(ie));return Pe?T.cloneElement(ie,{ref:D}):ie}),de=me,Ie=T.createContext(null),Fe=Ie;function _e(Ue){return Ue?Array.isArray(Ue)?Ue:[Ue]:[]}function Te(Ue,ke,ie,$e){return T.useMemo(function(){var Pe=_e(ie!=null?ie:ke),z=_e($e!=null?$e:ke),D=new Set(Pe),ue=new Set(z);return Ue&&(D.has("hover")&&(D.delete("hover"),D.add("click")),ue.has("hover")&&(ue.delete("hover"),ue.add("click"))),[D,ue]},[Ue,ke,ie,$e])}var ee=d(29194);function B(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=arguments.length>2?arguments[2]:void 0;return ie?Ue[0]===ke[0]:Ue[0]===ke[0]&&Ue[1]===ke[1]}function A(Ue,ke,ie,$e){for(var Pe=ie.points,z=Object.keys(Ue),D=0;D<z.length;D+=1){var ue,ge=z[D];if(B((ue=Ue[ge])===null||ue===void 0?void 0:ue.points,Pe,$e))return"".concat(ke,"-placement-").concat(ge)}return""}function X(Ue,ke,ie,$e){return ke||(ie?{motionName:"".concat(Ue,"-").concat(ie)}:$e?{motionName:$e}:null)}function J(Ue){return Ue.ownerDocument.defaultView}function Q(Ue){for(var ke=[],ie=Ue==null?void 0:Ue.parentElement,$e=["hidden","scroll","clip","auto"];ie;){var Pe=J(ie).getComputedStyle(ie),z=Pe.overflowX,D=Pe.overflowY,ue=Pe.overflow;[z,D,ue].some(function(ge){return $e.includes(ge)})&&ke.push(ie),ie=ie.parentElement}return ke}function E(Ue){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ue)?ke:Ue}function R(Ue){return E(parseFloat(Ue),0)}function se(Ue,ke){var ie=(0,o.Z)({},Ue);return(ke||[]).forEach(function($e){if(!($e instanceof HTMLBodyElement||$e instanceof HTMLHtmlElement)){var Pe=J($e).getComputedStyle($e),z=Pe.overflow,D=Pe.overflowClipMargin,ue=Pe.borderTopWidth,ge=Pe.borderBottomWidth,pe=Pe.borderLeftWidth,ye=Pe.borderRightWidth,Re=$e.getBoundingClientRect(),Ze=$e.offsetHeight,te=$e.clientHeight,le=$e.offsetWidth,tt=$e.clientWidth,nt=R(ue),ct=R(ge),ut=R(pe),Ge=R(ye),yt=E(Math.round(Re.width/le*1e3)/1e3),ht=E(Math.round(Re.height/Ze*1e3)/1e3),Ce=(le-tt-ut-Ge)*yt,Ye=(Ze-te-nt-ct)*ht,b=nt*ht,w=ct*ht,He=ut*yt,q=Ge*yt,be=0,It=0;if(z==="clip"){var Be=R(D);be=Be*yt,It=Be*ht}var rt=Re.x+He-be,ft=Re.y+b-It,ve=rt+Re.width+2*be-He-q-Ce,Se=ft+Re.height+2*It-b-w-Ye;ie.left=Math.max(ie.left,rt),ie.top=Math.max(ie.top,ft),ie.right=Math.min(ie.right,ve),ie.bottom=Math.min(ie.bottom,Se)}}),ie}function we(Ue){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie="".concat(ke),$e=ie.match(/^(.*)\%$/);return $e?Ue*(parseFloat($e[1])/100):parseFloat(ie)}function Ve(Ue,ke){var ie=ke||[],$e=(0,ne.Z)(ie,2),Pe=$e[0],z=$e[1];return[we(Ue.width,Pe),we(Ue.height,z)]}function lt(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ue[0],Ue[1]]}function xe(Ue,ke){var ie=ke[0],$e=ke[1],Pe,z;return ie==="t"?z=Ue.y:ie==="b"?z=Ue.y+Ue.height:z=Ue.y+Ue.height/2,$e==="l"?Pe=Ue.x:$e==="r"?Pe=Ue.x+Ue.width:Pe=Ue.x+Ue.width/2,{x:Pe,y:z}}function je(Ue,ke){var ie={t:"b",b:"t",l:"r",r:"l"};return Ue.map(function($e,Pe){return Pe===ke?ie[$e]||"c":$e}).join("")}function Qe(Ue,ke,ie,$e,Pe,z,D){var ue=T.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Pe[$e]||{}}),ge=(0,ne.Z)(ue,2),pe=ge[0],ye=ge[1],Re=T.useRef(0),Ze=T.useMemo(function(){return ke?Q(ke):[]},[ke]),te=T.useRef({}),le=function(){te.current={}};Ue||le();var tt=(0,C.Z)(function(){if(ke&&ie&&Ue){let ci=function(na,xr){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dt,Sr=dt.x+na,Fr=dt.y+xr,ui=Sr+vn,Si=Fr+Jn,sa=Math.max(Sr,zr.left),ur=Math.max(Fr,zr.top),Ir=Math.min(ui,zr.right),ei=Math.min(Si,zr.bottom);return Math.max(0,(Ir-sa)*(ei-ur))},Ki=function(){li=dt.y+qn,qr=li+Jn,Hn=dt.x+Vn,On=Hn+vn};var ut,Ge,yt,ht,Ce=ke,Ye=Ce.ownerDocument,b=J(Ce),w=b.getComputedStyle(Ce),He=w.position,q=Ce.style.left,be=Ce.style.top,It=Ce.style.right,Be=Ce.style.bottom,rt=Ce.style.overflow,ft=(0,o.Z)((0,o.Z)({},Pe[$e]),z),ve=Ye.createElement("div");(ut=Ce.parentElement)===null||ut===void 0||ut.appendChild(ve),ve.style.left="".concat(Ce.offsetLeft,"px"),ve.style.top="".concat(Ce.offsetTop,"px"),ve.style.position=He,ve.style.height="".concat(Ce.offsetHeight,"px"),ve.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 Se;if(Array.isArray(ie))Se={x:ie[0],y:ie[1],width:0,height:0};else{var We,ze,M=ie.getBoundingClientRect();M.x=(We=M.x)!==null&&We!==void 0?We:M.left,M.y=(ze=M.y)!==null&&ze!==void 0?ze:M.top,Se={x:M.x,y:M.y,width:M.width,height:M.height}}var dt=Ce.getBoundingClientRect(),Ee=b.getComputedStyle(Ce),Tt=Ee.height,Kt=Ee.width;dt.x=(Ge=dt.x)!==null&&Ge!==void 0?Ge:dt.left,dt.y=(yt=dt.y)!==null&&yt!==void 0?yt:dt.top;var Jt=Ye.documentElement,un=Jt.clientWidth,gn=Jt.clientHeight,En=Jt.scrollWidth,Bn=Jt.scrollHeight,Wn=Jt.scrollTop,Tn=Jt.scrollLeft,Jn=dt.height,vn=dt.width,Gt=Se.height,Qt=Se.width,Dn={left:0,top:0,right:un,bottom:gn},An={left:-Tn,top:-Wn,right:En-Tn,bottom:Bn-Wn},bt=ft.htmlRegion,_t="visible",Me="visibleFirst";bt!=="scroll"&&bt!==Me&&(bt=_t);var ot=bt===Me,vt=se(An,Ze),Et=se(Dn,Ze),Dt=bt===_t?Et:vt,Xt=ot?Et:Dt;Ce.style.left="auto",Ce.style.top="auto",Ce.style.right="0",Ce.style.bottom="0";var pn=Ce.getBoundingClientRect();Ce.style.left=q,Ce.style.top=be,Ce.style.right=It,Ce.style.bottom=Be,Ce.style.overflow=rt,(ht=Ce.parentElement)===null||ht===void 0||ht.removeChild(ve);var Sn=E(Math.round(vn/parseFloat(Kt)*1e3)/1e3),Zt=E(Math.round(Jn/parseFloat(Tt)*1e3)/1e3);if(Sn===0||Zt===0||(0,oe.Sh)(ie)&&!(0,ee.Z)(ie))return;var yn=ft.offset,Nn=ft.targetOffset,_n=Ve(dt,yn),St=(0,ne.Z)(_n,2),Ft=St[0],Vt=St[1],Ut=Ve(Se,Nn),jt=(0,ne.Z)(Ut,2),qt=jt[0],sn=jt[1];Se.x-=qt,Se.y-=sn;var on=ft.points||[],In=(0,ne.Z)(on,2),Mn=In[0],dr=In[1],jn=lt(dr),Kn=lt(Mn),er=xe(Se,jn),Qn=xe(dt,Kn),ar=(0,o.Z)({},ft),Vn=er.x-Qn.x+Ft,qn=er.y-Qn.y+Vt,or=ci(Vn,qn),cr=ci(Vn,qn,Et),rr=xe(Se,["t","l"]),nr=xe(dt,["t","l"]),ir=xe(Se,["b","r"]),Zn=xe(dt,["b","r"]),Mr=ft.overflow||{},$t=Mr.adjustX,sr=Mr.adjustY,hr=Mr.shiftX,Yr=Mr.shiftY,Kr=function(xr){return typeof xr=="boolean"?xr:xr>=0},li,qr,Hn,On;Ki();var an=Kr(sr),ln=Kn[0]===jn[0];if(an&&Kn[0]==="t"&&(qr>Xt.bottom||te.current.bt)){var Un=qn;ln?Un-=Jn-Gt:Un=rr.y-Zn.y-Vt;var Yn=ci(Vn,Un),lr=ci(Vn,Un,Et);Yn>or||Yn===or&&(!ot||lr>=cr)?(te.current.bt=!0,qn=Un,Vt=-Vt,ar.points=[je(Kn,0),je(jn,0)]):te.current.bt=!1}if(an&&Kn[0]==="b"&&(li<Xt.top||te.current.tb)){var Rr=qn;ln?Rr+=Jn-Gt:Rr=ir.y-nr.y-Vt;var Fn=ci(Vn,Rr),pr=ci(Vn,Rr,Et);Fn>or||Fn===or&&(!ot||pr>=cr)?(te.current.tb=!0,qn=Rr,Vt=-Vt,ar.points=[je(Kn,0),je(jn,0)]):te.current.tb=!1}var Dr=Kr($t),Xr=Kn[1]===jn[1];if(Dr&&Kn[1]==="l"&&(On>Xt.right||te.current.rl)){var pi=Vn;Xr?pi-=vn-Qt:pi=rr.x-Zn.x-Ft;var Li=ci(pi,qn),Gr=ci(pi,qn,Et);Li>or||Li===or&&(!ot||Gr>=cr)?(te.current.rl=!0,Vn=pi,Ft=-Ft,ar.points=[je(Kn,1),je(jn,1)]):te.current.rl=!1}if(Dr&&Kn[1]==="r"&&(Hn<Xt.left||te.current.lr)){var Ii=Vn;Xr?Ii+=vn-Qt:Ii=ir.x-nr.x-Ft;var Jr=ci(Ii,qn),bi=ci(Ii,qn,Et);Jr>or||Jr===or&&(!ot||bi>=cr)?(te.current.lr=!0,Vn=Ii,Ft=-Ft,ar.points=[je(Kn,1),je(jn,1)]):te.current.lr=!1}Ki();var ri=hr===!0?0:hr;typeof ri=="number"&&(Hn<Et.left&&(Vn-=Hn-Et.left-Ft,Se.x+Qt<Et.left+ri&&(Vn+=Se.x-Et.left+Qt-ri)),On>Et.right&&(Vn-=On-Et.right-Ft,Se.x>Et.right-ri&&(Vn+=Se.x-Et.right+ri)));var di=Yr===!0?0:Yr;typeof di=="number"&&(li<Et.top&&(qn-=li-Et.top-Vt,Se.y+Gt<Et.top+di&&(qn+=Se.y-Et.top+Gt-di)),qr>Et.bottom&&(qn-=qr-Et.bottom-Vt,Se.y>Et.bottom-di&&(qn+=Se.y-Et.bottom+di)));var ii=dt.x+Vn,Fi=ii+vn,Lr=dt.y+qn,Oi=Lr+Jn,Pi=Se.x,ki=Pi+Qt,yr=Se.y,Gn=yr+Gt,mi=Math.max(ii,Pi),Ln=Math.min(Fi,ki),Bi=(mi+Ln)/2,Fa=Bi-ii,va=Math.max(Lr,yr),aa=Math.min(Oi,Gn),la=(va+aa)/2,Or=la-Lr;D==null||D(ke,ar);var Gi=pn.right-dt.x-(Vn+dt.width),da=pn.bottom-dt.y-(qn+dt.height);Sn===1&&(Vn=Math.floor(Vn),Gi=Math.floor(Gi)),Zt===1&&(qn=Math.floor(qn),da=Math.floor(da));var Sa={ready:!0,offsetX:Vn/Sn,offsetY:qn/Zt,offsetR:Gi/Sn,offsetB:da/Zt,arrowX:Fa/Sn,arrowY:Or/Zt,scaleX:Sn,scaleY:Zt,align:ar};ye(Sa)}}),nt=function(){Re.current+=1;var Ge=Re.current;Promise.resolve().then(function(){Re.current===Ge&&tt()})},ct=function(){ye(function(Ge){return(0,o.Z)((0,o.Z)({},Ge),{},{ready:!1})})};return(0,S.Z)(ct,[$e]),(0,S.Z)(function(){Ue||ct()},[Ue]),[pe.ready,pe.offsetX,pe.offsetY,pe.offsetR,pe.offsetB,pe.arrowX,pe.arrowY,pe.scaleX,pe.scaleY,pe.align,nt]}var it=d(77654);function De(Ue,ke,ie,$e,Pe){(0,S.Z)(function(){if(Ue&&ke&&ie){let Re=function(){$e(),Pe()};var z=ke,D=ie,ue=Q(z),ge=Q(D),pe=J(D),ye=new Set([pe].concat((0,it.Z)(ue),(0,it.Z)(ge)));return ye.forEach(function(Ze){Ze.addEventListener("scroll",Re,{passive:!0})}),pe.addEventListener("resize",Re,{passive:!0}),$e(),function(){ye.forEach(function(Ze){Ze.removeEventListener("scroll",Re),pe.removeEventListener("resize",Re)})}}},[Ue,ke,ie])}var wt=d(48736);function et(Ue,ke,ie,$e,Pe,z,D,ue){var ge=T.useRef(Ue);ge.current=Ue;var pe=T.useRef(!1);T.useEffect(function(){if(ke&&$e&&(!Pe||z)){var Re=function(){pe.current=!1},Ze=function(yt){var ht;ge.current&&!D(((ht=yt.composedPath)===null||ht===void 0||(ht=ht.call(yt))===null||ht===void 0?void 0:ht[0])||yt.target)&&!pe.current&&ue(!1)},te=J($e);te.addEventListener("pointerdown",Re,!0),te.addEventListener("mousedown",Ze,!0),te.addEventListener("contextmenu",Ze,!0);var le=(0,l.A)(ie);if(le&&(le.addEventListener("mousedown",Ze,!0),le.addEventListener("contextmenu",Ze,!0)),0)var tt,nt,ct,ut;return function(){te.removeEventListener("pointerdown",Re,!0),te.removeEventListener("mousedown",Ze,!0),te.removeEventListener("contextmenu",Ze,!0),le&&(le.removeEventListener("mousedown",Ze,!0),le.removeEventListener("contextmenu",Ze,!0))}}},[ke,ie,$e,Pe,z]);function ye(){pe.current=!0}return ye}var Ot=["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 qe(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fe.Z,ke=T.forwardRef(function(ie,$e){var Pe=ie.prefixCls,z=Pe===void 0?"rc-trigger-popup":Pe,D=ie.children,ue=ie.action,ge=ue===void 0?"hover":ue,pe=ie.showAction,ye=ie.hideAction,Re=ie.popupVisible,Ze=ie.defaultPopupVisible,te=ie.onPopupVisibleChange,le=ie.afterPopupVisibleChange,tt=ie.mouseEnterDelay,nt=ie.mouseLeaveDelay,ct=nt===void 0?.1:nt,ut=ie.focusDelay,Ge=ie.blurDelay,yt=ie.mask,ht=ie.maskClosable,Ce=ht===void 0?!0:ht,Ye=ie.getPopupContainer,b=ie.forceRender,w=ie.autoDestroy,He=ie.destroyPopupOnHide,q=ie.popup,be=ie.popupClassName,It=ie.popupStyle,Be=ie.popupPlacement,rt=ie.builtinPlacements,ft=rt===void 0?{}:rt,ve=ie.popupAlign,Se=ie.zIndex,We=ie.stretch,ze=ie.getPopupClassNameFromAlign,M=ie.fresh,dt=ie.alignPoint,Ee=ie.onPopupClick,Tt=ie.onPopupAlign,Kt=ie.arrow,Jt=ie.popupMotion,un=ie.maskMotion,gn=ie.popupTransitionName,En=ie.popupAnimation,Bn=ie.maskTransitionName,Wn=ie.maskAnimation,Tn=ie.className,Jn=ie.getTriggerDOMNode,vn=(0,j.Z)(ie,Ot),Gt=w||He||!1,Qt=T.useState(!1),Dn=(0,ne.Z)(Qt,2),An=Dn[0],bt=Dn[1];(0,S.Z)(function(){bt((0,_.Z)())},[]);var _t=T.useRef({}),Me=T.useContext(Fe),ot=T.useMemo(function(){return{registerSubPopup:function(Ir,ei){_t.current[Ir]=ei,Me==null||Me.registerSubPopup(Ir,ei)}}},[Me]),vt=(0,N.Z)(),Et=T.useState(null),Dt=(0,ne.Z)(Et,2),Xt=Dt[0],pn=Dt[1],Sn=T.useRef(null),Zt=(0,C.Z)(function(ur){Sn.current=ur,(0,oe.Sh)(ur)&&Xt!==ur&&pn(ur),Me==null||Me.registerSubPopup(vt,ur)}),yn=T.useState(null),Nn=(0,ne.Z)(yn,2),_n=Nn[0],St=Nn[1],Ft=T.useRef(null),Vt=(0,C.Z)(function(ur){(0,oe.Sh)(ur)&&_n!==ur&&(St(ur),Ft.current=ur)}),Ut=T.Children.only(D),jt=(Ut==null?void 0:Ut.props)||{},qt={},sn=(0,C.Z)(function(ur){var Ir,ei,$r=_n;return($r==null?void 0:$r.contains(ur))||((Ir=(0,l.A)($r))===null||Ir===void 0?void 0:Ir.host)===ur||ur===$r||(Xt==null?void 0:Xt.contains(ur))||((ei=(0,l.A)(Xt))===null||ei===void 0?void 0:ei.host)===ur||ur===Xt||Object.values(_t.current).some(function(ti){return(ti==null?void 0:ti.contains(ur))||ur===ti})}),on=X(z,Jt,En,gn),In=X(z,un,Wn,Bn),Mn=T.useState(Ze||!1),dr=(0,ne.Z)(Mn,2),jn=dr[0],Kn=dr[1],er=Re!=null?Re:jn,Qn=(0,C.Z)(function(ur){Re===void 0&&Kn(ur)});(0,S.Z)(function(){Kn(Re||!1)},[Re]);var ar=T.useRef(er);ar.current=er;var Vn=T.useRef([]);Vn.current=[];var qn=(0,C.Z)(function(ur){var Ir;Qn(ur),((Ir=Vn.current[Vn.current.length-1])!==null&&Ir!==void 0?Ir:er)!==ur&&(Vn.current.push(ur),te==null||te(ur))}),or=T.useRef(),cr=function(){clearTimeout(or.current)},rr=function(Ir){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;cr(),ei===0?qn(Ir):or.current=setTimeout(function(){qn(Ir)},ei*1e3)};T.useEffect(function(){return cr},[]);var nr=T.useState(!1),ir=(0,ne.Z)(nr,2),Zn=ir[0],Mr=ir[1];(0,S.Z)(function(ur){(!ur||er)&&Mr(!0)},[er]);var $t=T.useState(null),sr=(0,ne.Z)($t,2),hr=sr[0],Yr=sr[1],Kr=T.useState(null),li=(0,ne.Z)(Kr,2),qr=li[0],Hn=li[1],On=function(Ir){Hn([Ir.clientX,Ir.clientY])},an=Qe(er,Xt,dt&&qr!==null?qr:_n,Be,ft,ve,Tt),ln=(0,ne.Z)(an,11),Un=ln[0],Yn=ln[1],lr=ln[2],Rr=ln[3],Fn=ln[4],pr=ln[5],Dr=ln[6],Xr=ln[7],pi=ln[8],Li=ln[9],Gr=ln[10],Ii=Te(An,ge,pe,ye),Jr=(0,ne.Z)(Ii,2),bi=Jr[0],ri=Jr[1],di=bi.has("click"),ii=ri.has("click")||ri.has("contextMenu"),Fi=(0,C.Z)(function(){Zn||Gr()}),Lr=function(){ar.current&&dt&&ii&&rr(!1)};De(er,_n,Xt,Fi,Lr),(0,S.Z)(function(){Fi()},[qr,Be]),(0,S.Z)(function(){er&&!(ft!=null&&ft[Be])&&Fi()},[JSON.stringify(ve)]);var Oi=T.useMemo(function(){var ur=A(ft,z,Li,dt);return g()(ur,ze==null?void 0:ze(Li))},[Li,ze,ft,z,dt]);T.useImperativeHandle($e,function(){return{nativeElement:Ft.current,popupElement:Sn.current,forceAlign:Fi}});var Pi=T.useState(0),ki=(0,ne.Z)(Pi,2),yr=ki[0],Gn=ki[1],mi=T.useState(0),Ln=(0,ne.Z)(mi,2),Bi=Ln[0],Fa=Ln[1],va=function(){if(We&&_n){var Ir=_n.getBoundingClientRect();Gn(Ir.width),Fa(Ir.height)}},aa=function(){va(),Fi()},la=function(Ir){Mr(!1),Gr(),le==null||le(Ir)},Or=function(){return new Promise(function(Ir){va(),Yr(function(){return Ir})})};(0,S.Z)(function(){hr&&(Gr(),hr(),Yr(null))},[hr]);function Gi(ur,Ir,ei,$r){qt[ur]=function(ti){var xa;$r==null||$r(ti),rr(Ir,ei);for(var ua=arguments.length,Ea=new Array(ua>1?ua-1:0),pa=1;pa<ua;pa++)Ea[pa-1]=arguments[pa];(xa=jt[ur])===null||xa===void 0||xa.call.apply(xa,[jt,ti].concat(Ea))}}(di||ii)&&(qt.onClick=function(ur){var Ir;ar.current&&ii?rr(!1):!ar.current&&di&&(On(ur),rr(!0));for(var ei=arguments.length,$r=new Array(ei>1?ei-1:0),ti=1;ti<ei;ti++)$r[ti-1]=arguments[ti];(Ir=jt.onClick)===null||Ir===void 0||Ir.call.apply(Ir,[jt,ur].concat($r))});var da=et(er,ii,_n,Xt,yt,Ce,sn,rr),Sa=bi.has("hover"),ci=ri.has("hover"),Ki,na;Sa&&(Gi("onMouseEnter",!0,tt,function(ur){On(ur)}),Gi("onPointerEnter",!0,tt,function(ur){On(ur)}),Ki=function(Ir){(er||Zn)&&Xt!==null&&Xt!==void 0&&Xt.contains(Ir.target)&&rr(!0,tt)},dt&&(qt.onMouseMove=function(ur){var Ir;(Ir=jt.onMouseMove)===null||Ir===void 0||Ir.call(jt,ur)})),ci&&(Gi("onMouseLeave",!1,ct),Gi("onPointerLeave",!1,ct),na=function(){rr(!1,ct)}),bi.has("focus")&&Gi("onFocus",!0,ut),ri.has("focus")&&Gi("onBlur",!1,Ge),bi.has("contextMenu")&&(qt.onContextMenu=function(ur){var Ir;ar.current&&ri.has("contextMenu")?rr(!1):(On(ur),rr(!0)),ur.preventDefault();for(var ei=arguments.length,$r=new Array(ei>1?ei-1:0),ti=1;ti<ei;ti++)$r[ti-1]=arguments[ti];(Ir=jt.onContextMenu)===null||Ir===void 0||Ir.call.apply(Ir,[jt,ur].concat($r))}),Tn&&(qt.className=g()(jt.className,Tn));var xr=T.useRef(!1);xr.current||(xr.current=b||er||Zn);var zr=(0,o.Z)((0,o.Z)({},jt),qt),Sr={},Fr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Fr.forEach(function(ur){vn[ur]&&(Sr[ur]=function(){for(var Ir,ei=arguments.length,$r=new Array(ei),ti=0;ti<ei;ti++)$r[ti]=arguments[ti];(Ir=zr[ur])===null||Ir===void 0||Ir.call.apply(Ir,[zr].concat($r)),vn[ur].apply(vn,$r)})});var ui=T.cloneElement(Ut,(0,o.Z)((0,o.Z)({},zr),Sr)),Si={x:pr,y:Dr},sa=Kt?(0,o.Z)({},Kt!==!0?Kt:{}):null;return T.createElement(T.Fragment,null,T.createElement(re.Z,{disabled:!er,ref:Vt,onResize:aa},T.createElement(de,{getTriggerDOMNode:Jn},ui)),xr.current&&T.createElement(Fe.Provider,{value:ot},T.createElement(ae,{portal:Ue,ref:Zt,prefixCls:z,popup:q,className:g()(be,Oi),style:It,target:_n,onMouseEnter:Ki,onMouseLeave:na,onPointerEnter:Ki,zIndex:Se,open:er,keepDom:Zn,fresh:M,onClick:Ee,onPointerDownCapture:da,mask:yt,motion:on,maskMotion:In,onVisibleChanged:la,onPrepare:Or,forceRender:b,autoDestroy:Gt,getPopupContainer:Ye,align:Li,arrow:sa,arrowPos:Si,ready:Un,offsetX:Yn,offsetY:lr,offsetR:Rr,offsetB:Fn,onAlign:Fi,stretch:We,targetWidth:yr/Xr,targetHeight:Bi/pi})))});return ke}var Xe=qe(fe.Z)},46214:function(){"use strict"},35139:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return _}});var o=d(59301),ne=d(6767),j=d(37568),fe={codeBox:"codeBox___WpkVl"},K=d(92310),g=d.n(K),re=Object.defineProperty,oe=(T,k,W)=>k in T?re(T,k,{enumerable:!0,configurable:!0,writable:!0,value:W}):T[k]=W,l=(T,k,W)=>oe(T,typeof k!="symbol"?k+"":k,W),C=(T,k,W)=>new Promise((V,$)=>{var I=L=>{try{F(W.next(L))}catch(ae){$(ae)}},G=L=>{try{F(W.throw(L))}catch(ae){$(ae)}},F=L=>L.done?V(L.value):Promise.resolve(L.value).then(I,G);F((W=W.apply(T,k)).next())});class N extends o.Component{constructor(k){super(k),l(this,"canvas"),l(this,"randomNum",(W,V)=>Math.floor(Math.random()*(V-W)+W)),l(this,"drawPic",()=>{this.randomCode()}),l(this,"reloadPic",()=>{this.drawPic()}),l(this,"changeCode",W=>{console.log(W.target.value,222),this.setState({value:W.target.value,showError:!1})}),l(this,"onVerify",()=>{let W;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(W=!0,ne.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(W=!0,ne.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(W=!1),this.setState({showError:W}),W}),this.canvas=o.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(k,W){const V=this.randomNum(k,W),$=this.randomNum(k,W),I=this.randomNum(k,W);return`rgb(${V}, ${$}, ${I})`}drawText(k,W,V){k.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const $=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);k.font=$+"px SimHei";const I=10,G=(this.state.contentWidth-40)/(this.state.code.length-1);let F=I;V>0&&(F=I+V*G);let L=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);$>40&&(L=40);const ae=this.randomNum(-10,10);k.translate(F,L),k.rotate(ae*Math.PI/180),k.fillText(W,0,0),k.rotate(-ae*Math.PI/180),k.translate(-F,-L)}drawLine(k){for(let W=0;W<1;W++)k.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),k.beginPath(),k.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),k.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),k.stroke()}drawDot(k){for(let W=0;W<100;W++)k.fillStyle=this.randomColor(0,255),k.beginPath(),k.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),k.fill()}randomCode(){let k="";const W="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let V=0;V<this.state.codeLength;V++){const $=Math.floor(Math.random()*57);k+=W[$]}this.setState({code:k},()=>{const $=this.canvas.current.getContext("2d");$.textBaseline="bottom",$.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),$.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let I=0;I<this.state.code.length;I++)this.drawText($,this.state.code[I],I);this.drawLine($),this.drawDot($)})}render(){const{className:k,width:W=300}=this.props;return o.createElement("div",{className:g()(fe.codeBox,k),style:{width:W}},o.createElement("aside",null,o.createElement(j.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),o.createElement("div",null,o.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),o.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const S=(T,k)=>{let W;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,k),React.createElement(N,{ref:V=>W=V})),onOk:()=>C(void 0,null,function*(){if(W.onVerify())return Promise.reject();T()})})};var _=N},90736:function(mn,gt,d){"use strict";var o=d(59301),ne=d(4977),j=d(7939),fe=Object.defineProperty,K=Object.defineProperties,g=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,C=(T,k,W)=>k in T?fe(T,k,{enumerable:!0,configurable:!0,writable:!0,value:W}):T[k]=W,N=(T,k)=>{for(var W in k||(k={}))oe.call(k,W)&&C(T,W,k[W]);if(re)for(var W of re(k))l.call(k,W)&&C(T,W,k[W]);return T},S=(T,k)=>K(T,g(k));const _=({img:T,buttonProps:k={},styles:W={},customText:V,ButtonText:$,ButtonClick:I,Buttonclass:G,ButtonTwo:F,imgStyles:L,loading:ae=!1,className:me=""})=>o.createElement("section",{className:`tc animated fadeIn ${me}`,style:N({color:"#999",margin:"100px auto",visibility:ae?"hidden":"visible"},W)},o.createElement("img",{src:T||ne,style:S(N({},L),{pointerEvents:"none",userSelect:"none"})}),o.createElement("p",{className:"mt20 font14"},V||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),$&&o.createElement(j.ZP,N({className:G,onClick:I},k),$),F&&F);gt.Z=_},86974:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return G}});var o=d(59301),ne={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},j=d(7939),fe=d(70557),K=d(34728),g=d(25399),re=d(76406),oe=d(84849),l=d(90736),C=d(14185),N=d(52078),S=d(59301),_=Object.defineProperty,T=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,V=(F,L,ae)=>L in F?_(F,L,{enumerable:!0,configurable:!0,writable:!0,value:ae}):F[L]=ae,$=(F,L)=>{for(var ae in L||(L={}))k.call(L,ae)&&V(F,ae,L[ae]);if(T)for(var ae of T(L))W.call(L,ae)&&V(F,ae,L[ae]);return F},I=(F,L,ae)=>new Promise((me,de)=>{var Ie=Te=>{try{_e(ae.next(Te))}catch(ee){de(ee)}},Fe=Te=>{try{_e(ae.throw(Te))}catch(ee){de(ee)}},_e=Te=>Te.done?me(Te.value):Promise.resolve(Te.value).then(Ie,Fe);_e((ae=ae.apply(F,L)).next())}),G=({editOffice:F="view",data:L,issaver:ae,onSaver:me,theme:de,type:Ie,filename:Fe,monacoEditor:_e,className:Te,style:ee,close:B,onClose:A,hasMask:X,disabledDownload:J,onImgDimensions:Q,showNodata:E,recordInfo:R})=>{const[se,we]=(0,o.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ve,lt]=(0,o.useState)(""),[xe,je]=(0,o.useState)(),Qe=window.ENV==="build"?"/react/build":"",it=location.host.startsWith("localhost")?C.Z.PROXY_SERVER:C.Z.API_SERVER,wt=10*(1024*1024),et=(0,o.useRef)();L!=null&&L.startsWith("/api")&&Ie!=="txt"&&(L=C.Z.API_SERVER+L);const Ot=$e=>$e.substring($e.lastIndexOf("/")+1).split(".").pop();Fe&&_e&&(_e.filename=Fe),(0,o.useEffect)(()=>{var $e,Pe;const z=(Pe=($e=document.cookie)==null?void 0:$e.replace(/\s/g,""))==null?void 0:Pe.split(";");z==null||z.map(D=>{let ue=D.split("=");ue[0]==="_educoder_session"&<(ue[1])})},[]),(0,o.useEffect)(()=>{Ie==="office"&&(L.indexOf("bigfilescdn.")>-1||L.indexOf("bigfiles1")>-1?je({url:L,fileType:Ot(L),model:L.indexOf("model=edit")?"edit":"view"}):L.indexOf("coze")>-1?je({url:L,fileType:"doc",model:"view"}):Xe())},[Ie,L]);function qe($e){return I(this,null,function*(){$e.data.type==="pdfdata"&&(me($e.data.data),window.removeEventListener("message",qe,!1)),console.log("mess---:",$e.data)})}const Xe=()=>I(void 0,null,function*(){console.log("data:",L);let $e=L;L.startsWith("http")||($e=location.origin+$e);let Pe=new URL($e).pathname.split("/").pop();const z=yield(0,oe.gJ)({attachment_id:Pe});z.url=it+z.url,je(z)}),Ue=()=>{if(L.startsWith("http")||L.startsWith("blob:")){ke();return}(0,re.Sv)(Fe||"educoder",L,Fe)},ke=()=>{R&&(0,N.fc)({id:R==null?void 0:R.id,watch_type:1,course_id:R==null?void 0:R.course_id}),(0,re.Nd)(Fe||"educoder",decodeURIComponent(L))};(0,o.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=$e=>{var Pe;((Pe=$e==null?void 0:$e.data)==null?void 0:Pe.type)==="closePop"&&A()};return S.createElement("div",{style:$({},ee||{}),className:`${X&&ne.bgBlack} ${Ie?ne.wrp:"hide"}`},!!Ie&&B&&S.createElement("div",{id:"closePop",className:ne.close,ref:et},!!Q&&S.createElement(g.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>et.current},S.createElement("span",{onClick:()=>{A(),Q()}},S.createElement("i",{className:"icon-yulanpizhu"}))),!J&&window.parent===window&&S.createElement(g.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>et.current},S.createElement("span",{onClick:ke},S.createElement("i",{className:"icon-quxiaozhiding"}))),ae&&S.createElement(g.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>et.current},S.createElement("span",{className:"",onClick:()=>{const $e=document.getElementById("pdfiframe");window.addEventListener("message",qe,!1),setTimeout(()=>{$e.contentWindow.postMessage("getData","*")},300)}},S.createElement("i",{className:"icon-baocun"}))),S.createElement(g.Z,{title:"\u5173\u95ED",getPopupContainer:()=>et.current},S.createElement("span",{className:"",onClick:()=>{A()}},S.createElement("i",{className:"icon-guanbi1"})))),S.createElement("div",{className:`${ne[Te]} ${Te} ${ne.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&S.createElement(S.Fragment,null,S.createElement(K.ZP,$({},_e)))),Ie==="audio"&&S.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}),Ie==="video"&&S.createElement(S.Fragment,null,(L==null?void 0:L.indexOf("http"))>-1?S.createElement("video",{controls:!0,src:`${L}`,autoPlay:!0}):S.createElement("video",{controls:!0,src:`data:video/mp4;base64,${L}`,autoPlay:!0})),Ie==="office"&&xe&&S.createElement("iframe",{src:`${Qe}/office.html?key=${xe.key}&url=${btoa(xe.url)}&callbackUrl=${it+(xe.callbackUrl||"")}&fileType=${xe.fileType}&title=${xe.title||""}&model=${F}&officeServer=${C.Z.ONLYOFFICE}&disabledDownload=${!!J}`}),Ie==="html"&&S.createElement("iframe",{src:L+"&disposition=inline"}),Ie==="pdf"&&S.createElement("iframe",{id:"pdfiframe",src:`${Qe}/js/pdf/index.html?filename=${Fe||"educoder.pdf"}&url=${encodeURIComponent(L)}&disabledDownload=${!!J}&model=${F}`}),Ie==="image"&&S.createElement("img",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:image/png;base64,"}${L}`}),(Ie==="other"||Ie==="download")&&S.createElement(S.Fragment,null,E?S.createElement(l.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:S.createElement(j.ZP,{icon:S.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ue,disabled:J},"\u4E0B\u8F7D")}):S.createElement(j.ZP,{type:"primary",size:"middle",onClick:Ue,disabled:J},S.createElement(fe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ie==="flowChart"&&S.createElement("div",{className:"embed"},S.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(mn,gt,d){"use strict";d.d(gt,{z:function(){return _e},Z:function(){return Te}});var o=d(59301),ne=d(46214),j=d(20047),fe=d(64018),K=d(16471),g=d(14185),re=d(76406),oe=d(15342),l=d(44104),C=d(7939),N=d(1012),S=d(86974),_=d(59301),k=({html:ee})=>{const B=(0,o.useRef)(null),A=(0,o.useRef)(null),X=`.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,o.useEffect)(()=>{const J=B.current.attachShadow({mode:"open"});A.current=document.createElement("div"),A.current.className="markdown-body",A.current.innerHTML=ee,J.appendChild(A.current);const Q=document.createElement("style");return Q.textContent=X,J.appendChild(Q),()=>{J.innerHTML=""}},[]),(0,o.useEffect)(()=>{A.current&&(A.current.innerHTML=ee)},[ee]),_.createElement("div",{ref:B})};function W(ee){const B=["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"],A=new RegExp(`\\b(${B.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),X=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return ee.replace(A,"").replace(X,"").trim()}var V={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},$=Object.defineProperty,I=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,L=(ee,B,A)=>B in ee?$(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:A}):ee[B]=A,ae=(ee,B)=>{for(var A in B||(B={}))G.call(B,A)&&L(ee,A,B[A]);if(I)for(var A of I(B))F.call(B,A)&&L(ee,A,B[A]);return ee};const me="@\u2581\u2581@",de="@\u2581@",Ie=/<pre[^>]*>/g;function Fe(ee){let B=document.createElement("div");return B.innerHTML=ee,B.childNodes.length===0?"":B.childNodes[0].nodeValue}const _e=(ee,B)=>{ee=ee||"";const A=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,X=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,J=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Q=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return B?ee.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(A,(E,R,se,we,Ve,lt,xe)=>{const je=R||we||lt,Qe=se||Ve||xe||"?";return g.Z.API_SERVER+"/api/attachments/"+je+Qe+"&t="+(0,re.Jn)(je,Date.now())+(E.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ee=ee.replace(Q,(E,R,se,we,Ve,lt,xe)=>{const je=R||we||lt,Qe=se||Ve||xe||"?";return g.Z.API_SERVER+"/attachments/download/"+je+Qe+"&t="+(0,re.Jn)(je,Date.now())+(E.indexOf(")")>-1?")":"&")}).replace(A,(E,R,se,we,Ve,lt,xe)=>{const je=R||we||lt,Qe=se||Ve||xe||"?";return g.Z.API_SERVER+"/api/attachments/"+je+Qe+"&t="+(0,re.Jn)(je,Date.now())+(E.indexOf(")")>-1?")":"&")}).replace(X,(E,R,se,we,Ve)=>{const lt=R||we,xe=se||Ve||"";return'"'+g.Z.API_SERVER+"/api/attachments/"+lt+xe+lt+xe+"&t="+(0,re.Jn)(lt,Date.now())}).replace(J,(E,R,se,we,Ve)=>{const lt=R||we,xe=se||Ve||"";return"("+g.Z.API_SERVER+"/files/uploads/"+lt+xe+lt+xe+"&t="+(0,re.Jn)(lt,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,`
|
|
|
`),ee)};var Te=({value:ee="",edit:B=!1,className:A,showTextOnly:X,showLines:J,style:Q={},stylesPrev:E={},highlightKeywords:R,showProgramFill:se,isProgramFill:we,disabledFill:Ve=!1,programFillValue:lt,openEditor:xe=()=>{},onFillChange:je=De=>{},onFillBlur:Qe=()=>{},onFillFocus:it=()=>{}})=>{let De=W(String(ee||""));const wt=(0,o.useRef)(),et=(0,o.useRef)(),[Ot,qe]=(0,o.useState)(""),[Xe,Ue]=(0,o.useState)("office"),[ke,ie]=(0,o.useState)([]),$e=(0,o.useRef)("a"+(0,N.Z)()),Pe={},z=Ge=>/<style[\s\S]*?>/i.test(Ge||""),D=(Ge,yt,ht)=>{const Ce=document.createElement(Ge===de?"input":"textarea");Ce.style.width="100%",Ce.style.height=Ge===de?"40px":"151px",Ce.rows=5,Ce.spellcheck=!1,Ce.name="edu-program-fill",Ce.placeholder="\u8BF7\u8F93\u5165",Ce.dataset.id=yt;const Ye=Object.keys(Pe).length;return Pe[Ye]=Ce,`<span class="edu-program-fill-wrap ${Ge===de?"":"show"}" style="width:${Ge===de?"600px":"100%"}" title=${ht||""}><span>${Ce.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ue(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 ge=Ge=>!X&&z(De)?Ge:Ge.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(yt,ht){let Ce=ht.replace(/(\n|\r)/g,"").split("}"),Ye=[];return Ce.map(b=>{b!=""&&Ye.push(`.${$e.current} ${b}`)}),`<style>${Ye.join("}")}</style>`}),pe=(0,o.useMemo)(()=>{(0,j.Iy)();try{const Ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ye=/\"\/api\/attachments\/|\"\/attachments\/download\//g,b=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,w=/\(\/attachments\/download\//g;De=De.replace(w,"("+g.Z.API_SERVER+"/attachments/download/").replace(Ce,"("+g.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+g.Z.API_SERVER+"/api/attachments/").replace(b,'"'+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,`
|
|
|
`),wt.current.style.display="none"}catch(Ce){}if(se){let Ce=-1;return De=De.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ye,b,w){var He;return++Ce,D(Ye,Ce,(He=lt==null?void 0:lt[Ce])==null?void 0:He.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ge(De||"")}</pre>`}let Ge=ge(De);Ge=(0,j.ZP)(Ge);const yt=(0,j.ez)();De.match(/\[TOC\]/)&&(Ge=Ge.replace("<p>[TOC]</p>",(0,j.Qv)()),(0,j.Iy)()),Ge=Ge.replace(/(__special_katext_id_\d+__)/g,(Ce,Ye)=>{const{type:b,expression:w}=yt[Ye];return(0,oe.renderToString)(Fe(w)||"",{displayMode:b==="block",throwOnError:!1,output:"html"})}),Ge=Ge.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,j.AL)();const ht=document.createElement("div");if(ht.innerHTML=Ge,X)return ht.innerText;if(R){const Ce=R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return te(ht,Ce),ht.innerHTML}return setTimeout(()=>nt(),500),ht.innerHTML},[De,R]);(0,o.useEffect)(()=>{le.current&&le.current.querySelectorAll(["input","textarea"]).forEach(yt=>{yt.oninput=ye,yt.onblur=Re,yt.onfocus=Ze})},[ke]),(0,o.useEffect)(()=>{var Ge,yt,ht,Ce,Ye;if(lt!=null&<.length)try{const b=le.current.querySelectorAll(".edu-program-fill-score"),w=le.current.querySelectorAll('[name="edu-program-fill"]');for(const[He,q]of w.entries())q.value=((Ge=lt==null?void 0:lt[He])==null?void 0:Ge.value)||"",((yt=lt==null?void 0:lt[He])==null?void 0:yt.type)==="warning"?q.className="program-fill-warning":((ht=lt==null?void 0:lt[He])==null?void 0:ht.type)==="success"?q.className="program-fill-success":q.className="";for(const[He,q]of b.entries())q.innerHTML=(Ce=lt==null?void 0:lt[He])!=null&&Ce.score?`${(Ye=lt==null?void 0:lt[He])==null?void 0:Ye.score}\u5206`:"";ie(lt)}catch(b){console.log(b,"error")}},[lt]);const ye=Ge=>{ke[Ge.target.dataset.id]=ke[Ge.target.dataset.id]||{},ke[Ge.target.dataset.id].value=Ge.target.value,ie([...ke]),je(ke,Ge.target.dataset.id)},Re=Ge=>{ke[Ge.target.dataset.id]=ke[Ge.target.dataset.id]||{},ke[Ge.target.dataset.id].value=Ge.target.value,ie([...ke]),Qe(ke,Ge.target.dataset.id)},Ze=Ge=>{ke[Ge.target.dataset.id]=ke[Ge.target.dataset.id]||{},ke[Ge.target.dataset.id].value=Ge.target.value,ie([...ke]),it(ke,Ge.target.dataset.id)};function te(Ge,yt){return Ge.childNodes.forEach(ht=>{var Ce;if(ht.childNodes.length>0)te(ht,yt);else if(ht.nodeName!=="IMG")if(ht.innerHTML)ht.innerHTML=(Ce=ht.innerHTML)==null?void 0:Ce.replace(new RegExp(yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ye=document.createElement("span");Ye.innerHTML=ht.textContent.replace(new RegExp(yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ht.replaceWith(Ye)}})}const le=(0,o.useRef)();j.jb.WebkitLineClamp=J,J&&(Q=ae(ae({},Q),j.jb));function tt(Ge){let yt=Ge.target;if(yt.tagName.toUpperCase()==="A"){let ht=yt.getAttribute("href");if(ht.indexOf("office")>-1)Ge.preventDefault(),qe(ht),Ue("office");else if(ht.indexOf("application/pdf")>-1)Ge.preventDefault(),qe(ht),Ue("pdf");else if(ht.indexOf("text/html")>-1)Ge.preventDefault(),qe(ht),Ue("html");else if(ht.startsWith("#")){Ge.preventDefault();let Ce=document.getElementById(ht.replace("#",""));Ce&&Ce.scrollIntoView(!0)}}}const nt=()=>{var Ge;const yt=(Ge=le.current)==null?void 0:Ge.querySelectorAll("video");yt==null||yt.forEach(ht=>{if(ht.oncontextmenu=()=>!1,ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(K.ZP.isSupported()){var Ce=new K.ZP;Ce.loadSource(ht.src),Ce.attachMedia(ht)}}})};(0,o.useEffect)(()=>{if(le.current&&pe&&pe.match(Ie)&&window.PR.prettyPrint(),le.current)return le.current.addEventListener("click",tt),()=>{var Ge;(Ge=le.current)==null||Ge.removeEventListener("click",tt),(0,j.AL)(),(0,j.Iy)()}},[pe,le.current,tt]);const ct=Ge=>{Ge.target.nodeName==="IMG"&&Ge.target.className.indexOf("draw-flowchart")>-1?(wt.current.style.zIndex=1,wt.current.style.display="flex",wt.current.style.width=Ge.target.clientWidth+"px",wt.current.style.height=Ge.target.clientHeight+"px",wt.current.style.top=Ge.target.offsetTop+"px",wt.current.style.left=Ge.target.offsetLeft+"px",Ge.target.id&&(et.current=Ge.target.id)):wt.current.style.display="none"},ut=()=>{wt.current.style.display="none"};return(0,o.useEffect)(()=>{var Ge;const yt=ht=>{ht.preventDefault(),ht.clipboardData.setData("text",window.getSelection().toString())};return(Ge=le.current)==null||Ge.addEventListener("copy",yt),()=>{var ht;(ht=le.current)==null||ht.removeEventListener("copy",yt)}},[le.current]),o.createElement("div",{style:{position:"relative"},onMouseLeave:ut},X&&o.createElement("div",{ref:le,className:`${V.mdBody} `},pe),!X&&!z(pe)&&o.createElement("div",{ref:le,style:ae({},Q),onMouseOver:ct,className:`${A||""} ${Ve?"disabled-fill":""} markdown-body ${V.mdBody} ${$e.current}`,dangerouslySetInnerHTML:{__html:pe}}),!X&&z(pe)&&o.createElement(k,{html:pe}),o.createElement("div",{ref:wt,className:`${V.button} ${B?"":V.previewFlowChart}`},o.createElement(l.Z,null,o.createElement(C.ZP,{onClick:()=>{B?xe(et.current):(qe(et.current),Ue("flowChart"))}},B?"\u7F16\u8F91":"\u9884\u89C8"))),o.createElement(S.Z,{close:!0,data:Ot,type:Ot!=null&&Ot.length?Xe:"",style:ae({},E),onClose:()=>qe("")}))}},34728:function(mn,gt,d){"use strict";d.d(gt,{SV:function(){return wt},ZP:function(){return De}});var o=d(59301),ne=d(76374);const j={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},fe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},K={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(`
|
|
|
`)}]},re={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 oe=d(53184),l=d.n(oe),C=(et,Ot,qe)=>new Promise((Xe,Ue)=>{var ke=Pe=>{try{$e(qe.next(Pe))}catch(z){Ue(z)}},ie=Pe=>{try{$e(qe.throw(Pe))}catch(z){Ue(z)}},$e=Pe=>Pe.done?Xe(Pe.value):Promise.resolve(Pe.value).then(ke,ie);$e((qe=qe.apply(et,Ot)).next())});const N={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"]}},S=(et,Ot,qe,Xe)=>{const Ue=Ot.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:qe.lineNumber,endColumn:qe.column});return Array.from(new Set(Ue.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:et.languages.CompletionItemKind.Text,insertText:ie,range:Xe}))},_=(et,Ot,qe,Xe)=>{et.languages.registerCompletionItemProvider(Ot,{provideCompletionItems(Ue,ke){const ie=Ue.getWordUntilPosition(ke),$e={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},Pe=Ue.getLineContent(ke.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...S(et,Ue,ke,$e),...qe.map(D=>({label:D,kind:et.languages.CompletionItemKind.Keyword,documentation:D,insertText:D,insertTextRules:et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...Xe.map(D=>({label:D.label,kind:et.languages.CompletionItemKind.Snippet,documentation:D.content,insertText:Pe.startsWith("#")?D.content.replace(/#/,""):D.content,insertTextRules:et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}})};var T=et=>{N.languages.forEach(Ot=>{et.languages.registerDocumentFormattingEditProvider(Ot,{provideDocumentFormattingEdits(qe){return C(this,null,function*(){const Xe=l()(qe.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:qe.getFullModelRange(),text:Xe}]})}})}),_(et,"java",fe.keywords,fe.quickKey),_(et,"cpp",K.keywords,K.quickKey),_(et,"c",j.keywords,[]),_(et,"python",g.keywords,g.quickKey),_(et,"scala",re.keywords,re.quickKey)};const k="\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,V=(et,Ot,qe)=>Ot in et?W(et,Ot,{enumerable:!0,configurable:!0,writable:!0,value:qe}):et[Ot]=qe,$=(et,Ot,qe)=>V(et,typeof Ot!="symbol"?Ot+"":Ot,qe);const I=class uc{constructor(Ot,qe,Xe){this.placeholder=Ot,this.editor=qe,this.monaco=Xe,qe.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)}};$(I,"ID","editor.widget.placeholderHint");var F=I,L=d(96236),ae=d(6767),me=d(25399),de=d(78267),Ie=d(33156),Fe=d(56102),_e=Object.defineProperty,Te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,J=(et,Ot,qe)=>Ot in et?_e(et,Ot,{enumerable:!0,configurable:!0,writable:!0,value:qe}):et[Ot]=qe,Q=(et,Ot)=>{for(var qe in Ot||(Ot={}))A.call(Ot,qe)&&J(et,qe,Ot[qe]);if(B)for(var qe of B(Ot))X.call(Ot,qe)&&J(et,qe,Ot[qe]);return et},E=(et,Ot)=>Te(et,ee(Ot)),R=(et,Ot)=>{var qe={};for(var Xe in et)A.call(et,Xe)&&Ot.indexOf(Xe)<0&&(qe[Xe]=et[Xe]);if(et!=null&&B)for(var Xe of B(et))Ot.indexOf(Xe)<0&&X.call(et,Xe)&&(qe[Xe]=et[Xe]);return qe},se=(et,Ot,qe)=>new Promise((Xe,Ue)=>{var ke=Pe=>{try{$e(qe.next(Pe))}catch(z){Ue(z)}},ie=Pe=>{try{$e(qe.throw(Pe))}catch(z){Ue(z)}},$e=Pe=>Pe.done?Xe(Pe.value):Promise.resolve(Pe.value).then(ke,ie);$e((qe=qe.apply(et,Ot)).next())});function we(et){return/^\d+$/.test(et)?`${et}px`:et}function Ve(){}let lt=!1;const xe={"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 je(et=[]){let Ot=et;if(Array.isArray(et)){for(let qe=0;qe<et.length;qe++){let Xe=xe[et[qe]];if(Xe)return Xe}return Ot[0]}return xe[Ot]||Ot}let Qe=null;const it=()=>se(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(et){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",et)}});var De=et=>{var Ot=et,{width:qe="100%",height:Xe="100%",value:Ue,language:ke="javascript",style:ie={},options:$e={},overrideServices:Pe={},theme:z="vs-dark",onEditBlur:D,isCopy:ue=!1,onSave:ge,autoHeight:pe=!1,forbidCopy:ye=!1,forbidCopyTips:Re,onChange:Ze=Ve,editorDidMount:te=Ve,onFocus:le=Ve,onBreakPoint:tt=Ve,breakPointValue:nt=[],filename:ct="educoder.txt",errorLine:ut,errorContent:Ge="",highlightLine:yt,openBreakPoint:ht=!1,placeholder:Ce="",showMiniMap:Ye=!0}=Ot,b=R(Ot,["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 w=(0,o.useRef)(),He=(0,o.useRef)({}),q=(0,o.useRef)(),be=(0,o.useRef)(),It=(0,o.useRef)([]),Be=(0,o.useRef)(!1),rt=(0,o.useRef)(),ft=(0,o.useRef)(),ve=(0,o.useRef)(!1),[Se,We]=(0,o.useState)(!1);function ze(){let Gt;return w.current&&(Gt=new ne.Z(Qt=>{for(let Dn of Qt)(Dn.target.offsetHeight>0||Dn.target.offsetWidth>0)&&He.current.instance.layout()}),Gt.observe(w.current)),Gt}function M(){ae.ZP.warning({content:decodeURIComponent(Re||k),key:"monaco-editor-tip"})}const dt=()=>{let Gt=He.current.instance;if(Ue!=null&&Gt&&Se){const Qt=Gt.getModel();Qt&&Ue!==Qt.getValue()&&(lt=!0,Qt.setValue(Ue),Gt.layout(),lt=!1)}};(0,o.useEffect)(()=>{const Gt=Ie.Z.subscribe("formatDocument",Qt=>{var Dn;let An=He.current.instance;(Dn=An==null?void 0:An.getAction)==null||Dn.call(An,"editor.action.formatDocument").run()});return window.updateMonacoValue=Qt=>{Ze(Qt)},Gt},[]),(0,o.useEffect)(()=>{var Gt;let Qt=He.current.instance;be.current&&clearTimeout(be.current),be.current=setTimeout(()=>{dt()},500),Ue&&(Ue!=null&&Ue.length)&&((Gt=Qt==null?void 0:Qt.updateOptions)==null||Gt.call(Qt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ue.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ue,Se,He.current]),(0,o.useEffect)(()=>{if(ut&&He.current&&He.current.instance){let Qt=He.current.instance;Qt.changeViewZones(function(Dn){var An=document.createElement("div");An.style.padding="10px 20px",An.style.width="calc(100% - 20px)",An.className="my-error-line-wrp",An.innerHTML=Ge,Dn.addZone({afterLineNumber:ut||11,heightInLines:3,domNode:An})});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}};Qt.addOverlayWidget(Gt),Qt.revealPositionInCenter({lineNumber:20,column:1})}},[ut,He.current,Se]);const Ee=(Gt="",Qt)=>{if(!Gt||Gt.trim()==="")return!0;const An=He.current.instance.getModel().getLineTokens(Qt);let bt=!1;for(let _t=0;_t<2;_t++)An.getStandardTokenType(_t)===1&&(bt=!0);return bt};(0,o.useEffect)(()=>{var Gt;const Qt=(Gt=He.current)==null?void 0:Gt.instance;if(Qt&&Se&&ye){const Dn=Qt.onDidBlurEditorWidget(()=>{ve.current=!1}),An=Qt.onDidFocusEditorText(()=>{ve.current=!0});return()=>{Dn.dispose(),An.dispose()}}},[He.current,Se,ye]),(0,o.useEffect)(()=>{var Gt;if((Gt=He.current)!=null&&Gt.instance&&Se&&ht){let Qt=He.current.instance,Dn=Qt.getModel();if(!Dn)return;(()=>{var Zt;let yn=[],Nn=[];const _n=Dn.getAllDecorations();for(let Ft of _n)Ft.options.className==="highlighted-line"&&(yn.push((Zt=Ft==null?void 0:Ft.range)==null?void 0:Zt.startLineNumber),Nn.push(Ft==null?void 0:Ft.id));if(yt===yn[0])return;Dn.deltaDecorations(Nn,[]);const St=Dn.getLineCount();yt&&yt<=St&&(Qt.deltaDecorations([],[{range:new Qe.Range(yt,1,yt,Dn.getLineMaxColumn(yt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Qt.revealLineInCenter(yt))})();const bt=(Zt=!1)=>{var yn;let Nn=[],_n=[];const St=Dn.getAllDecorations();for(let Ft of St)Ft.options.linesDecorationsClassName==="breakpoints-select"&&(Nn.push((yn=Ft==null?void 0:Ft.range)==null?void 0:yn.startLineNumber),_n.push(Ft==null?void 0:Ft.id));if(Zt)return{lines:Nn,ids:_n};tt(Nn)},_t=Zt=>se(void 0,null,function*(){let yn={range:new Qe.Range(Zt,1,Zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Dn.deltaDecorations([],[yn]),bt()}),Me=Zt=>se(void 0,null,function*(){let yn=[];const Nn=Qt.getLineDecorations(Zt);for(let _n of Nn)_n.options.linesDecorationsClassName==="breakpoints-select"&&yn.push(_n.id);yield Dn.deltaDecorations(yn,[]),bt()}),ot=Zt=>{let yn=Qt.getLineDecorations(Zt);for(let Nn of yn)if(Nn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,de.isEqual)(nt,bt(!0).lines)){Dn.deltaDecorations(bt(!0).ids,[]);const Zt=nt.map(yn=>({range:new Qe.Range(yn,1,yn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Dn.deltaDecorations([],Zt)}const vt=Qt.onDidChangeModelContent(Zt=>{let yn=Qt.getPosition();if(yn){let Nn=yn.lineNumber;clearTimeout(ft.current),ft.current=setTimeout(()=>{Ee(Dn.getLineContent(Nn),Nn)?Me(Nn):ot(Nn)?(Me(Nn),_t(Nn)):bt()},100)}}),Et=Qt.onMouseDown(Zt=>{var yn,Nn,_n;if(Zt.target.detail&&((_n=(Nn=(yn=Zt.target)==null?void 0:yn.element)==null?void 0:Nn.className)!=null&&_n.includes("line-numbers"))){let St=Zt.target.position.lineNumber;if(Ee(Dn.getLineContent(St),St))return;ot(St)?Me(St):_t(St)}}),Dt=Zt=>{let yn={range:new Qe.Range(Zt,1,Zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};It.current=Qt.deltaDecorations(It.current,[yn])},Xt=()=>{It.current=Qt.deltaDecorations(It.current,[])},pn=Qt.onMouseMove(Zt=>{var yn,Nn,_n;if(Xt(),Zt.target.detail&&((_n=(Nn=(yn=Zt.target)==null?void 0:yn.element)==null?void 0:Nn.className)!=null&&_n.includes("line-numbers"))){let St=Zt.target.position.lineNumber;if(Ee(Dn.getLineContent(St),St))return;Dt(St)}}),Sn=Qt.onMouseLeave(()=>{Xt()});return()=>{vt.dispose(),Et.dispose(),pn.dispose(),Sn.dispose()}}},[He.current,Se,nt,yt,ht,ke]),(0,o.useEffect)(()=>{var Gt;(Gt=He.current)!=null&&Gt.instance&&ht&&He.current.instance.setPosition({lineNumber:0,column:0})},[yt]);function Tt(){let Gt=He.current.instance;if(Gt){const Qt=Gt.getSelection(),Dn=He.current.pastePos||{},An=new Qe.Range(Dn.startLineNumber||Qt.endLineNumber,Dn.startColumn||Qt.endColumn,Dn.endLineNumber||Qt.endLineNumber,Dn.endColumn||Qt.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:An,text:""}])},300)}}function Kt(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),ge())}const Jt=()=>{if(pe&&He.current.instance){const Gt=He.current.instance.getContentHeight();Jn(Gt<Xe?Xe:Gt)}else Jn(Xe)};function un(Gt){var Qt=document.createEvent("MouseEvents");Qt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Qt)}const gn=Gt=>{if(!ve.current)return;const{keyCode:Qt,ctrlKey:Dn,metaKey:An,target:bt,type:_t}=Gt;return(_t==="paste"||(Qt===67||Qt===86)&&(An||Dn))&&bt.nodeName==="TEXTAREA"&&(M(),Gt.preventDefault()),!1};function En(Gt,Qt){var Dn=window.URL||window.webkitURL||window,An=new Blob([Qt]),bt=document.createElementNS("http://www.w3.org/1999/xhtml","a");bt.href=Dn.createObjectURL(An),bt.download=Gt,un(bt)}(0,o.useEffect)(()=>{Jt()},[Jt]),(0,o.useEffect)(()=>{w.current&&!Se&&Promise.all([d.e(8909),d.e(5977)]).then(d.bind(d,71448)).then(Gt=>{try{Qe=Gt,He.current.instance=Qe.editor.create(w.current,{value:Ue,language:je(ke),theme:z,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ye||!1}},Pe);const Qt=He.current.instance;let bt=[...L.BH._menuItems].find(vt=>vt[0]._debugName=="EditorContext")[1],_t=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Me=(vt,Et)=>{var Dt,Xt;let pn=vt._first;do Et.includes((Xt=(Dt=pn.element)==null?void 0:Dt.command)==null?void 0:Xt.id)&&vt._remove(pn);while(pn=pn.next)};if(te(Qt,Qe),setTimeout(()=>{Jt(),He.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{En(ct||"educoder.txt",Qt.getValue())}})},500),He.current.subscription=Qt.onDidChangeModelContent(vt=>{Be.current?clearTimeout(rt.current):(Jt(),Ze(Qt.getValue(),vt)),rt.current=setTimeout(()=>{Be.current=!1},500)}),window.Monaco||T(Qe,je(ke)),ye&&(Me(bt,_t),w.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gn),window.removeEventListener("paste",gn),window.addEventListener("keydown",gn),window.addEventListener("paste",gn)),window.Monaco=Qe,D&&Qt.onDidBlurEditorWidget(()=>{D(Qt.getValue())}),le&&Qt.onDidFocusEditorText(()=>{ye&&it(),le(Qt.getValue())}),ye){it();try{Qt.onDidPaste(vt=>{const Et=Qt.getSelection(),Dt=He.current.pastePos||{},Xt=new Qe.Range(Dt.startLineNumber||Et.endLineNumber,Dt.startColumn||Et.endColumn,Dt.endLineNumber||Et.endLineNumber,Dt.endColumn||Et.endColumn);Qt.executeEdits("",[{range:vt.range,text:""}])})}catch(vt){}}let ot=ze();return Ce&&typeof Ce=="string"&&new F(Ce,Qt,Qe),We(!0),()=>{const vt=He.current.instance;vt.dispose();const Et=vt.getModel();Et&&Et.dispose(),He.current.subscription&&He.current.subscription.dispose(),ot.unobserve(w.current)}}catch(Qt){}})},[]),(0,o.useEffect)(()=>{if(He.current.instance&&Se)return document.addEventListener("keydown",Kt,!1),()=>{document.removeEventListener("keydown",Kt)}},[ge,Se]),(0,o.useEffect)(()=>{let Gt=He.current.instance;if(Gt&&Se){let Qt=je(ke);Qe.editor.setModelLanguage(Gt.getModel(),Qt)}},[ke,Se]),(0,o.useEffect)(()=>{He.current.instance&&Se&&Qe.editor.setTheme(z)},[z,Se]),(0,o.useEffect)(()=>{let Gt=He.current.instance;q.current=$e,Gt&&Se&&(Gt.updateOptions(Q({},$e)),setTimeout(()=>{Gt.getModel().updateOptions(Q({},$e))},200))},[JSON.stringify($e),Se]),(0,o.useEffect)(()=>{let Gt=He.current.instance;Gt&&Se&&Gt.layout()},[qe,Xe,Se]);const[Bn,Wn]=(0,o.useState)(we(qe)),[Tn,Jn]=(0,o.useState)(we(Xe)),vn=E(Q({},ie),{width:Bn,height:Tn,position:"relative"});return o.createElement("div",{className:"my-monaco-editor",ref:w,style:vn,onFocus:()=>{ye&&it()}},ue&&o.createElement(Fe.CopyToClipboard,{text:Ue,onCopy:()=>ae.ZP.success("\u590D\u5236\u6210\u529F")},o.createElement(me.Z,{title:"\u590D\u5236\u4EE3\u7801"},o.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},o.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function wt({width:et="100%",height:Ot="100%",original:qe,modified:Xe,language:Ue,options:ke={}}){const ie=(0,o.useRef)(),[$e,Pe]=(0,o.useState)(null);function z(pe){let ye;return ie.current&&(ye=new ne.Z(Re=>{for(let Ze of Re)(Ze.target.offsetHeight>0||Ze.target.offsetWidth>0)&&pe.layout()}),ye.observe(ie.current)),ye}(0,o.useEffect)(()=>(ie.current&&Promise.all([d.e(8909),d.e(9404)]).then(d.bind(d,2550)).then(pe=>{Qe=pe;const ye=Qe.editor.createDiffEditor(ie.current,E(Q({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},ke),{wordWrap:!0}));Pe(ye);let Re=z(ye);return()=>{ye.dispose();const Ze=ye.getModel();Ze&&Ze.dispose(),Re.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,o.useEffect)(()=>{$e&&$e.setModel({original:Qe.editor.createModel(qe,Ue),modified:Qe.editor.createModel(Xe,Ue)})},[qe,Xe,Ue,$e]);const D=we(et),ue=we(Ot),ge={width:D,height:ue};return o.createElement("div",{className:"my-diff-editor",ref:ie,style:ge})}},54077:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return N}});var o={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"},ne=d(29787),j=d(25399),fe=d(89787),K=d(92310),g=d.n(K),re=d(76406),oe=d(90736),l=d(59301),N=({className:S,dataSource:_=[],col:T=4,right:k,bottom:W=23,precision:V=0,wrapWidth:$=1200,trackEventItems:I,loading:G,onRemove:F=()=>{},isCurrent:L=!0,showProgress:ae=!1,showAlias:me=!1,category:de="notDisplay",hiddenClick:Ie=()=>{}})=>{const Fe=Math.floor(($-(T-1)*k)/T),_e=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return l.createElement(ne.Z,{spinning:G},l.createElement("div",{className:g()(o.list,S)},!!(_!=null&&_.length)&&(_==null?void 0:_.map((Te,ee)=>{var B,A,X,J,Q,E,R;const{name:se,id:we,identifier:Ve,featured:lt,school_name:xe,image_url:je,excellent:Qe,is_plan:it}=Te;return l.createElement("div",{key:we,className:L&&ae?o.wrapisCurrent:o.wrap,style:{width:Fe,marginRight:(1+ee)%T===0?0:k+V,marginBottom:W}},l.createElement("a",{className:o.li,onClick:De=>{De.preventDefault(),De.stopPropagation(),I&&(0,re.L9)([I]),(0,re.xg)(`/paths/${Ve}`)}},l.createElement("div",{className:o.img},l.createElement("img",{className:o.cover,src:`${je}`}),(B=Te==null?void 0:Te.subject_tags)==null?void 0:B.map((De,wt)=>{var et,Ot;if(wt===0){const Xe=(et=_e.find(Ue=>Ue.name==De))==null?void 0:et.swclass;return l.createElement("span",{className:`sprite ${Xe} ${o.sign}`,style:{left:"-4px"}})}const qe=(Ot=_e.find(Xe=>Xe.name==De))==null?void 0:Ot.ptclass;return l.createElement("span",{className:`sprite ${qe} ${o.sign}`,style:{left:`${48+52*(wt-1)+2*wt}px`}})}),l.createElement("div",{className:o.tagsDom},l.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Te==null?void 0:Te.excellent)&&l.createElement("div",{className:o.bq},"\u5F00\u653E\u8BFE\u7A0B"),((A=Te==null?void 0:Te.custom_tags)==null?void 0:A.length)>0&&(Te==null?void 0:Te.custom_tags.map((De,wt)=>{var et;return l.createElement(j.Z,{title:De==null?void 0:De.tag_name,key:wt},l.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((et=Te==null?void 0:Te.custom_tags)==null?void 0:et.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},l.createElement("span",{className:"multi-llipsis1e"},De==null?void 0:De.tag_name)))})))),de=="hide"&&(Te==null?void 0:Te.studying)&&L&&l.createElement("div",{className:`${o.movebq} user-path-items`,onClick:De=>{De.stopPropagation(),F(Te)}},l.createElement("i",{className:"iconfont icon-yichu1 font12"}),l.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(de)&&L&&l.createElement("div",{className:`${o.hiddenbq} user-path-items`,onClick:De=>{De.stopPropagation(),Ie(Te)}},l.createElement("i",{className:`iconfont ${de=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),l.createElement("span",null,de=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),l.createElement("div",{className:o.name},l.createElement(j.Z,{title:me&&(Te!=null&&Te.excellent_alias_name)?l.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${se}`,l.createElement("br",null),l.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Te==null?void 0:Te.excellent_alias_name}`)):se},l.createElement("span",{className:o.e},me&&(Te==null?void 0:Te.excellent_alias_name)||se))),L&&ae&&((X=Te==null?void 0:Te.progress)==null?void 0:X.all_score)!=0&&l.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},l.createElement(fe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((J=Te==null?void 0:Te.progress)==null?void 0:J.my_score)/((Q=Te==null?void 0:Te.progress)==null?void 0:Q.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(E=Te==null?void 0:Te.progress)==null?void 0:E.my_score,"/",(R=Te==null?void 0:Te.progress)==null?void 0:R.all_score),(!L||!ae)&&l.createElement(j.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${xe}`},l.createElement("div",{className:o.unit},l.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),xe)),(!L||!ae)&&l.createElement("div",{className:o.tags},l.createElement("div",null,l.createElement(j.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),l.createElement("span",null,Te.stages_count))),l.createElement(j.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},l.createElement("span",null,l.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),l.createElement("span",null,Te.members_count)))))))})),!_.length&&l.createElement(oe.Z,null)))}},70467:function(mn,gt,d){"use strict";d.d(gt,{jL:function(){return fe},w9:function(){return se},QD:function(){return nt},cQ:function(){return ee.Z},op:function(){return ye},O5:function(){return ze},_b:function(){return Ce},t7:function(){return V},Gi:function(){return Qe},YG:function(){return xe},qp:function(){return C},vr:function(){return Ge},qE:function(){return te},Je:function(){return G},wb:function(){return Te},cq:function(){return qe},tp:function(){return _}});var o=d(59301),ne={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},fe=({dataSource:M=[],img:dt,imgWidth:Ee=346,title:Tt,sunTitle:Kt,bannerExtraContent:Jt})=>o.createElement("div",{className:ne.banner},o.createElement("div",{className:ne.content},o.createElement("aside",null,o.createElement("p",null,o.createElement("b",null,Tt),o.createElement("span",null,Kt)),M.length>0&&o.createElement("div",{className:ne.btns},M.map((un,gn)=>o.createElement("div",{key:gn,onClick:un.click},un.name,un.sign?o.createElement("span",{className:"sprite sprite-33"}):null))),Jt),dt&&o.createElement("img",{style:{marginTop:33,marginRight:38},src:dt,width:Ee}))),K={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),re=d.n(g),oe=d(78267),C=({dataSource:M=[],value:dt,onChange:Ee,onTitleChange:Tt,className:Kt,title:Jt,titleWidth:un=41,style:gn={},fontColor:En="#6A7283",showCount:Bn})=>{const[Wn,Tn]=(0,o.useState)(1),[Jn,vn]=(0,o.useState)(!1),Gt=(0,o.useRef)(null),Qt=(0,o.useRef)(null);return(0,o.useEffect)(()=>{var Dn;M.length!==0&&(((Dn=Gt==null?void 0:Gt.current)==null?void 0:Dn.clientHeight)>97?Tn(1):Tn(0)),M.length===0&&Tn(0),vn(!1)},[M]),o.createElement("div",{className:re()(K.row,Kt,"fadeIn","animated"),style:gn},o.createElement("div",{onClick:(0,oe.throttle)(()=>Tt==null?void 0:Tt(),2e3),style:{width:un,marginTop:Jn?12:4},className:`${K.title} ${Tt?"current":""}`},Jt),o.createElement("div",{className:Jn?`${K.tagsWrap} ${K.tagsBorderWrap}`:K.tagsWrap},o.createElement("div",{className:K.bar,ref:Qt,style:Wn>0?{height:Wn===1?97:"auto",overflow:Wn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},o.createElement("div",{className:K.tag,ref:Gt},M==null?void 0:M.map(Dn=>o.createElement("span",{onClick:()=>Ee(Dn.id),key:Dn.id,style:{color:En},className:dt===Dn.id?K.active:""},o.createElement("span",{title:Dn.name,className:K.name},Dn.name),!!Bn&&o.createElement("span",{className:K.num},Dn.count))))),!!Wn&&o.createElement(o.Fragment,null,Wn===1?o.createElement("div",{onClick:()=>{var Dn;Tn(2),((Dn=Gt==null?void 0:Gt.current)==null?void 0:Dn.clientHeight)>245?vn(!0):vn(!1)},className:K.action},"\u5C55\u5F00",o.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):o.createElement("div",{onClick:()=>{Qt.current.scrollTop=0,Tn(1),vn(!1)},className:K.action},"\u6536\u8D77",o.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},N={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"},_=({dataSource:M=[],value:dt,onChange:Ee,className:Tt,style:Kt={}})=>o.createElement("div",{style:Kt,className:re()(N.tabs,Tt)},M.map(Jt=>o.createElement("span",{onClick:()=>Ee(Jt.id),className:dt===Jt.id?N.active:"",key:Jt.id},Jt.name))),T={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},k=d(37568),V=({dataSource:M=[],value:dt="",onChange:Ee,onInputChange:Tt=()=>{},className:Kt,style:Jt={},placeholder:un,allowClear:gn=!1})=>{var En;const[Bn,Wn]=(0,o.useState)(""),[Tn,Jn]=(0,o.useState)("");(0,o.useEffect)(()=>{var Qt;let Dn=dt;(Qt=JSON.stringify(dt))!=null&&Qt.includes("{")&&(Wn(dt.id),Dn=dt.value||"");try{Jn(decodeURIComponent(Dn||""))}catch(An){Jn(decodeURIComponent(Dn||""))}},[dt]);const vn=()=>{Ee(encodeURIComponent(Tn),Bn||null)},Gt=Qt=>{Qt!==Bn&&(Wn(Qt),Ee(encodeURIComponent(Tn),Qt))};return o.createElement("div",{className:re()(T.input,Kt),style:Jt},!!M.length&&o.createElement("div",{className:T.dropdown},o.createElement("div",{className:T.text},(En=M.find(Qt=>Qt.id===Bn))==null?void 0:En.name,o.createElement("i",{className:"iconfont icon-zhankai4"}),o.createElement("b",{className:T.b1}),o.createElement("b",{className:T.b2})),o.createElement("div",{className:T.menu},M.map((Qt,Dn)=>o.createElement("div",{key:Dn,onClick:()=>Gt(Qt.id)},Qt.name)))),o.createElement(k.default,{onPressEnter:vn,value:Tn,onChange:Qt=>{Jn(Qt.target.value),Tt(encodeURIComponent(Qt.target.value),Bn||null)},placeholder:un,variant:"borderless",allowClear:gn,onClear:()=>Ee("",Bn||null)}),o.createElement("i",{onClick:vn,className:"iconfont icon-sousuo9 font14 current"}))},$={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"},G=({value:M,onChange:dt,className:Ee,total:Tt,pageSize:Kt,style:Jt={}})=>{const un=M<2,gn=M>=Math.ceil(Tt/Kt);return Tt<=Kt?o.createElement(o.Fragment,null):o.createElement("div",{className:re()($.quickPager,Ee),style:Jt},o.createElement("div",{onClick:()=>{un||dt(M-1,"prev")},className:un?$.disabled:""},"\u4E0A\u4E00\u9875"),o.createElement("div",{onClick:()=>{gn||dt(M+1,"next")},className:gn?$.disabled:""},"\u4E0B\u4E00\u9875"))},F={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),me=d(63139),de=d(14185),Ie=d(76406),Fe=d(90736),Te=({className:M,dataSource:dt=[],col:Ee=4,right:Tt,bottom:Kt=23,precision:Jt=0,wrapWidth:un=1200,trackEventItems:gn,loading:En})=>{const Bn=Math.floor((un-(Ee-1)*Tt)/Ee);return o.createElement(L.Z,{spinning:En},o.createElement("div",{className:re()(F.list,M)},!!dt.length&&dt.map((Wn,Tn)=>{const{name:Jn,id:vn,identifier:Gt,power:Qt,cover_image_id:Dn,pic:An}=Wn;return o.createElement("div",{className:F.wrap,key:vn,style:{width:Bn,marginRight:(1+Tn)%Ee===0?0:Tt+Jt,marginBottom:Kt}},o.createElement("a",{target:"_blank",href:`/shixuns/${Gt}/challenges`,className:F.li,onClick:bt=>{bt.preventDefault(),gn&&(0,Ie.L9)([gn]),Qt&&(0,Ie.xg)(`/shixuns/${Gt}/challenges`)}},o.createElement("div",{className:F.img},o.createElement("img",{className:F.cover,src:`${An}`}),Wn.is_jupyter&&o.createElement("span",{className:`sprite sprite-43 ${F.sign}`}),Wn.is_jupyter_lab&&o.createElement("span",{className:`sprite sprite-42 ${F.sign}`}),Wn.is_unity_3d&&o.createElement("span",{className:`sprite sprite-44 ${F.sign}`})),o.createElement("div",{className:F.name},o.createElement(ae.Z,{title:Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},o.createElement("span",{className:F.e},Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),o.createElement("div",{className:F.tags},o.createElement(ae.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),o.createElement("span",null,Wn.challenges_count))),!!Wn.myshixuns_count&&o.createElement(ae.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),o.createElement("span",null,Wn.myshixuns_count))),o.createElement(ae.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},o.createElement("span",null,o.createElement("span",null,Wn.level))),o.createElement("div",{className:F.rate},o.createElement(me.Z,{allowHalf:!0,disabled:!0,defaultValue:Wn.score_info}),o.createElement("span",null,"\xA0",Wn.score_info?`${Wn.score_info}\u5206`:"5\u5206")))),!Qt&&o.createElement("div",{className:F.lockWrap},o.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),o.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!dt.length&&o.createElement(Fe.Z,null)))},ee=d(54077),B={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"},A=d(62957),X=d(96599),J="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUY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>{try{gn(Ee.next(En))}catch(Bn){Kt(Bn)}},un=En=>{try{gn(Ee.throw(En))}catch(Bn){Kt(Bn)}},gn=En=>En.done?Tt(En.value):Promise.resolve(En.value).then(Jt,un);gn((Ee=Ee.apply(M,dt)).next())}),se=({className:M,dataSource:dt=[],col:Ee=4,right:Tt,bottom:Kt=23,precision:Jt=0,wrapWidth:un=1200,trackEventItems:gn,loading:En,category:Bn,hiddenClick:Wn,handleVery:Tn=()=>!0,isCurrent:Jn})=>{const[vn,Gt]=A.default.useModal(),Qt=Math.floor((un-(Ee-1)*Tt)/Ee),Dn=An=>E(void 0,null,function*(){vn.confirm({title:"\u7F6E\u9876",width:500,content:Q.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Q.createElement("span",{className:"c-blue"},"\u201C",An.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Q.createElement(L.Z,{spinning:En},Gt,Q.createElement("div",{className:re()(B.list,M)},!!dt.length&&dt.map((An,bt)=>{const{subject_identifier:_t,id:Me,identifier:ot,power:vt}=An,Et=An.is_public!=0&&An.is_public;return Q.createElement("div",{className:B.wrap,key:Me,style:{width:Qt,marginRight:(1+bt)%Ee===0?0:Tt+Jt,marginBottom:Kt}},An.homepage_show&&Q.createElement("div",{className:B.btnsTop},Q.createElement(X.default,{color:"red"},"\u7F6E\u9876")),Q.createElement("a",{className:B.li,onClick:Dt=>{Dt.preventDefault(),Tn(An==null?void 0:An.first_category_url)&&(gn&&(0,Ie.L9)([gn]),(0,Ie.xg)(An.first_category_url))}},Q.createElement("div",{className:B.top},Q.createElement(ae.Z,{title:An.name},Q.createElement("div",{className:B.name},An.name)),Q.createElement("img",{className:B.img,src:de.Z.IMG_SERVER+"/images/"+An.avatar_url}),Q.createElement("div",{className:B.text,title:An.creator},An.creator),_t&&Q.createElement("div",{className:B.btns},Q.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Q.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Et&&Q.createElement("div",{className:B.sign},"\u516C\u5F00"),Jn&&Q.createElement("div",{className:B.hidden,onClick:Dt=>{Dt.stopPropagation(),Wn(An)}},Q.createElement("i",{className:`iconfont ${Bn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Bn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Q.createElement("div",{className:B.bottom},An.visits>0&&Q.createElement(ae.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Q.createElement("span",null,Q.createElement("i",{className:"iconfont icon-liulanyan"}),Q.createElement("span",null,An.visits))),An.course_members_count>0&&Q.createElement(ae.Z,{title:"\u6210\u5458",placement:"bottom"},Q.createElement("span",null,Q.createElement("i",{className:"iconfont icon-chengyuan"}),An.course_members_count)),An.tasks_count>0&&Q.createElement(ae.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Q.createElement("span",null,Q.createElement("i",{className:"iconfont icon-zuoye"}),An.tasks_count)),An.is_end?Q.createElement("div",{style:{color:"#6B758B"}}):Q.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!An.is_accessible&&Q.createElement("div",{className:B.lockWrap},Q.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Q.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!dt.length&&Q.createElement(Fe.Z,null)))},we={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"},Ve=d(44283),xe=({dataSource:M=[],value:dt,onChange:Ee,className:Tt,style:Kt={},tabBarExtraContent:Jt})=>o.createElement("div",{className:re()(we.tabs,Tt),style:Kt},o.createElement("div",{className:we.tabsWrap},M.map((un,gn)=>!(un!=null&&un.hide)&&o.createElement("aside",{className:we.tab,onClick:()=>{Ee(un.id),un.link&&Ve.history.push(un.link)},key:gn},o.createElement("div",{className:dt===un.id?we.active:""},un.name),(un==null?void 0:un.resetCount)==null&&(un==null?void 0:un.total)!==void 0&&o.createElement("span",null,"\uFF08",un==null?void 0:un.total,"\uFF09"),(un==null?void 0:un.resetCount)!==void 0&&(un==null?void 0:un.total)!==void 0&&o.createElement(ae.Z,{title:(un==null?void 0:un.tip)!=null?un==null?void 0:un.tip:""},o.createElement("span",{style:{color:"#9096A3"}},"\uFF08",o.createElement("span",{style:{color:"#000"}},un==null?void 0:un.resetCount),"/",o.createElement("span",null,un==null?void 0:un.total),"\uFF09"))))),o.createElement("div",{className:we.tabBar},Jt)),Qe=({className:M,style:dt={},children:Ee})=>o.createElement("div",{className:re()(M),style:dt},Ee),it={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"},De=d(75727),wt=d(93041);const et=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var qe=({sortValue:M,dropValue:dt,className:Ee,onSort:Tt,onDrop:Kt,dataSource:Jt=et})=>{var un;return o.createElement("div",{className:re()(it.orderWrap,Ee)},o.createElement(De.Z,{dropdownRender:()=>o.createElement(wt.default,null,Jt.map((gn,En)=>o.createElement(wt.default.Item,{key:En,onClick:()=>Kt(gn.id)},gn.name)))},o.createElement("span",{className:it.orderTextWrap},(un=Jt.find(gn=>dt===gn.id))==null?void 0:un.name)),o.createElement("span",{className:it.orderIconWrap},o.createElement("span",{className:it.orderAsc},o.createElement("i",{className:M==="asc"?`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer}`,onClick:()=>Tt(M==="asc"?"desc":"asc")})),o.createElement("span",{className:it.orderDesc},o.createElement("i",{className:M==="desc"?`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer}`,onClick:()=>Tt(M==="asc"?"desc":"asc")}))))},Xe={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"},Ue=d(7939),ke=Object.defineProperty,ie=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,z=(M,dt,Ee)=>dt in M?ke(M,dt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):M[dt]=Ee,D=(M,dt)=>{for(var Ee in dt||(dt={}))$e.call(dt,Ee)&&z(M,Ee,dt[Ee]);if(ie)for(var Ee of ie(dt))Pe.call(dt,Ee)&&z(M,Ee,dt[Ee]);return M},ue=(M,dt)=>{var Ee={};for(var Tt in M)$e.call(M,Tt)&&dt.indexOf(Tt)<0&&(Ee[Tt]=M[Tt]);if(M!=null&&ie)for(var Tt of ie(M))dt.indexOf(Tt)<0&&Pe.call(M,Tt)&&(Ee[Tt]=M[Tt]);return Ee},ge=(M,dt,Ee)=>new Promise((Tt,Kt)=>{var Jt=En=>{try{gn(Ee.next(En))}catch(Bn){Kt(Bn)}},un=En=>{try{gn(Ee.throw(En))}catch(Bn){Kt(Bn)}},gn=En=>En.done?Tt(En.value):Promise.resolve(En.value).then(Jt,un);gn((Ee=Ee.apply(M,dt)).next())}),ye=M=>{var dt=M,{className:Ee,style:Tt,children:Kt,loading:Jt=!1,openLoading:un,onClick:gn=()=>{},size:En="middle",shape:Bn="round"}=dt,Wn=ue(dt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Tn,Jn]=(0,o.useState)(!1);return o.createElement(Ue.ZP,D({onClick:(0,oe.throttle)(vn=>ge(void 0,null,function*(){un&&Jn(!0);try{yield gn(vn)}catch(Gt){console.log("error",Gt)}un&&Jn(!1)}),2e3,{leading:!0,trailing:!1}),className:re()(Xe.btn,Xe[`${En}-${Bn}`],Ee),style:Tt,size:En,shape:Bn,loading:Tn||Jt},Wn),Kt)},Re={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"},te=({className:M,style:dt,children:Ee=null,onClick:Tt,title:Kt})=>o.createElement("div",{className:re()(Re.head,M),style:dt},o.createElement("span",{className:"primary-hover",onClick:Tt},o.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),o.createElement("b",{title:Kt},Kt),o.createElement("div",{className:Re.node},Ee)),le={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"},nt=({confirmShow:M=!0,confirmTitle:dt,confirmClick:Ee,cancelShow:Tt=!0,cancelTitle:Kt,cancelClick:Jt,className:un,style:gn,confirmLoading:En=!1})=>o.createElement("div",{className:re()(le.btns,un),style:gn},M&&o.createElement(Ue.ZP,{loading:En,onClick:Ee,type:"primary",className:le.confirm},dt),Tt&&o.createElement(Ue.ZP,{onClick:Jt,className:le.cancel},Kt)),ct={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:M,style:dt={},LeftContent:Ee,children:Tt,RightContent:Kt})=>o.createElement("div",{className:re()(ct.fixedBottom,M),style:dt},o.createElement("div",{className:ct.wrap},o.createElement("div",{className:ct.left},Ee),o.createElement("div",{className:ct.center},Tt),o.createElement("div",{className:ct.right},Kt))),yt={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:M,style:dt={},dataSource:Ee=[]})=>o.createElement("div",{className:re()(yt.crumbs,M),style:dt},Ee.map((Tt,Kt)=>Kt<Ee.length-1?o.createElement(o.Fragment,{key:Kt},Tt.path||Tt.onClick?o.createElement("span",{className:yt.hover,onClick:Tt!=null&&Tt.onClick?Tt.onClick:()=>Ve.history.push(Tt.path)},Tt.name):o.createElement("span",null,Tt.name),o.createElement("span",null,"\xA0",">","\xA0")):o.createElement("span",{key:Kt,style:{color:"#5F6368"}},Tt.name))),Ye=d(11938),b=Object.defineProperty,w=Object.defineProperties,He=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Be=(M,dt,Ee)=>dt in M?b(M,dt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):M[dt]=Ee,rt=(M,dt)=>{for(var Ee in dt||(dt={}))be.call(dt,Ee)&&Be(M,Ee,dt[Ee]);if(q)for(var Ee of q(dt))It.call(dt,Ee)&&Be(M,Ee,dt[Ee]);return M},ft=(M,dt)=>w(M,He(dt)),ve=(M,dt)=>{var Ee={};for(var Tt in M)be.call(M,Tt)&&dt.indexOf(Tt)<0&&(Ee[Tt]=M[Tt]);if(M!=null&&q)for(var Tt of q(M))dt.indexOf(Tt)<0&&It.call(M,Tt)&&(Ee[Tt]=M[Tt]);return Ee};const{Countdown:Se}=Ye.default;var ze=M=>{var dt=M,{onChange:Ee}=dt,Tt=ve(dt,["onChange"]);const[Kt,Jt]=(0,o.useState)(null);(0,o.useEffect)(()=>{typeof Kt=="number"&&Kt>=0&&Ee(Kt)},[Kt]);const un=gn=>{const En=Math.floor(gn/1e3);Jt(En)};return o.createElement(Se,ft(rt({},Tt),{onChange:un}))}},78141:function(mn,gt,d){"use strict";d.r(gt),d.d(gt,{default:function(){return z}});var o=d(59301),ne=d(44283),j=d(24404),fe=d(77019),K={flex_box_center:"flex_box_center___awq3O",flex_space_between:"flex_space_between___LgAD2",flex_box_vertical_center:"flex_box_vertical_center___tDqAS",flex_box_center_end:"flex_box_center_end___T9t43",flex_box_column:"flex_box_column___UTrmK",menuWrap:"menuWrap___jwziv",nav:"nav___FPm96",li:"li___Fh4Pt",icon:"icon___XwtGk",name:"name___KN1Th",down:"down___CRj5d",active:"active___JfaaR"},g=d(25399),re=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,C=(D,ue)=>{var ge={};for(var pe in D)oe.call(D,pe)&&ue.indexOf(pe)<0&&(ge[pe]=D[pe]);if(D!=null&&re)for(var pe of re(D))ue.indexOf(pe)<0&&l.call(D,pe)&&(ge[pe]=D[pe]);return ge};const N=D=>{var ue=D,{user:ge,globalSetting:pe,dispatch:ye,graduations:Re}=ue,Ze=C(ue,["user","globalSetting","dispatch","graduations"]);const te=(0,ne.useLocation)(),[le,tt]=(0,o.useState)(),[nt,ct]=(0,o.useState)(["_settings"]),ut=(0,ne.useParams)(),{id:Ge}=ut,{menus:yt=[]}=Re;(0,o.useEffect)(()=>{var b;if(yt.length){const w=((b=te.pathname.split("/"))==null?void 0:b[3])||"index";tt(w=="students"?"teachers":w)}},[te.pathname,yt]);const ht=[{icon_type:"index",name:"\u6BD5\u4E1A\u6982\u89C8",icon:"iconfont icon-bishegailan"},{icon_type:"topics",name:"\u8BFE\u9898\u7BA1\u7406",icon:"iconfont icon-ketiguanli"},{icon_type:"student_selection",name:"\u5B66\u751F\u9009\u9898",icon:"icon-xueshengxuanti1"},{icon_type:"tasks",name:"\u4EFB\u52A1\u4E66",icon:"icon-renwushu"},{icon_type:"opening_report",name:"\u5F00\u9898\u62A5\u544A",icon:"iconfont icon-kaitibaogao"},{icon_type:"midterm_report",name:"\u4E2D\u671F\u68C0\u67E5",icon:"iconfont icon-kechengjiaoan"},{icon_type:"thesis",name:"\u6BD5\u4E1A\u8BBA\u6587",icon:"iconfont icon-biyelunwen"},{icon_type:"final_defense",name:"\u6BD5\u4E1A\u7B54\u8FA9",icon:"iconfont icon-biyedabian"},{icon_type:"final_thesis",name:"\u8BBA\u6587\u5B9A\u7A3F",icon:"iconfont icon-lunwendinggao"},{icon_type:"archives",name:"\u5F52\u6863",icon:"iconfont icon-guidang1"},{icon_type:"grading_summary",name:"\u6BD5\u4E1A\u6210\u7EE9",icon:"iconfont icon-bishechengji"},{icon_type:"_settings",name:"\u6BD5\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-biyeshezhi",subclass:["settings","teachers","students"]}],Ce=b=>{var w;return(w=ht.find(q=>q.icon_type===b))==null?void 0:w.icon},Ye=b=>{const{clazz:w,name:He,children:q=[],disable:be}=b,It=Ce(w);return o.createElement(o.Fragment,{key:w},be?o.createElement(g.Z,{title:"\u8BE5\u9636\u6BB5\u672A\u542F\u7528"},o.createElement("div",{className:K.li,onClick:()=>{q.length&&(nt.includes(w)?ct(nt.filter(Be=>Be!==w)):ct([...nt,w]))}},o.createElement("div",{className:K.icon},It&&o.createElement("i",{className:It})),o.createElement("span",{className:K.name},He),!!q.length&&o.createElement("span",{className:K.down},nt.includes(w)?o.createElement("i",{className:"iconfont icon-xialajiantou1"}):o.createElement("i",{className:"iconfont icon-xialajiantoubeifen"})))):o.createElement("div",{onClick:()=>{q.length?nt.includes(w)?ct(nt.filter(Be=>Be!==w)):ct([...nt,w]):(tt(w),ye({type:"graduations/getGraduationsDetails",payload:{id:ut==null?void 0:ut.id}}),ne.history.push(`/graduations/${Ge}/${w}`))},className:le===w?`${K.li} ${K.active}`:K.li},o.createElement("div",{className:K.icon},It&&o.createElement("i",{className:It})),o.createElement("span",{className:K.name},He),!!q.length&&o.createElement("span",{className:K.down},nt.includes(w)?o.createElement("i",{className:"iconfont icon-xialajiantou1"}):o.createElement("i",{className:"iconfont icon-xialajiantoubeifen"}))),nt.includes(w)&&q.map(Be=>Ye(Be)))};return o.createElement("div",{className:K.menuWrap},o.createElement("div",{className:K.nav},yt.map(b=>Ye(b))))};var S=(0,ne.connect)(({user:D,graduations:ue,globalSetting:ge})=>({user:D,globalSetting:ge,graduations:ue}))(N),_={flex_box_center:"flex_box_center___Zlh8i",flex_space_between:"flex_space_between___lFY3s",flex_box_vertical_center:"flex_box_vertical_center___dQs2p",flex_box_center_end:"flex_box_center_end___mh3GO",flex_box_column:"flex_box_column___fbLGv",bg:"bg___WhklA",center:"center___yiVRe",name:"name___LmNUZ",line:"line___mHXFG",member:"member___ya2z7",btn:"btn___WFeIH",bg2:"bg2___6yejb",modal:"modal___BTChh",red:"red___WFR6s",row:"row___lGy2T",label:"label___Ixyoi",content:"content___oTCar",input:"input___Q19k0",code:"code___ywBNo",copy:"copy___eV4lI"},T=d.p+"static/bg.224d6d3a.jpg",k="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAA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+e1AC5pm/wBKX+H8v51CvX/PtQXCNx+c0U1f6U8daBOT2ClpB0NL3/D+lBItL7UwdDTx1H+e1ADqKavT/PrTh96gBaWmr/SnUAFMLelOPQ1F3/D+lACliabk0lFBL2CiiigyYUUUUCCiiigApaSigcVdi5pM0UVUVc0krBRRRWqijNthRRRS7iCnK2KbRUN2egE9FIv9KXvWoATgZpNwpp+7+Apvf8P6UFxjceGPrRmmL1pf8/pQabDtwpNxpg6Gl7/h/SgxbY7caPamDoaeOo/z2oEKKKRen+fWgdR/ntQA4e1FInSlH3qAFpfamr/Sl70ALS0lKOtAC0ZxSDoaD1oAQPml3Col6f59acPvUAf/2Q==",W=d(28284),V=d(62957),$=d(6767),I=d(37568),G=d(35139),F=d(15267),L=d(49317),ae=d(56102),me=d(81068),de=d(87995),Ie=d(45567),Fe=Object.defineProperty,_e=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,X=(D,ue,ge)=>ue in D?Fe(D,ue,{enumerable:!0,configurable:!0,writable:!0,value:ge}):D[ue]=ge,J=(D,ue)=>{for(var ge in ue||(ue={}))B.call(ue,ge)&&X(D,ge,ue[ge]);if(ee)for(var ge of ee(ue))A.call(ue,ge)&&X(D,ge,ue[ge]);return D},Q=(D,ue)=>_e(D,Te(ue)),E=(D,ue,ge)=>new Promise((pe,ye)=>{var Re=le=>{try{te(ge.next(le))}catch(tt){ye(tt)}},Ze=le=>{try{te(ge.throw(le))}catch(tt){ye(tt)}},te=le=>le.done?pe(le.value):Promise.resolve(le.value).then(Re,Ze);te((ge=ge.apply(D,ue)).next())});const R=({graduations:D,user:ue,dispatch:ge})=>{const pe=(0,ne.useParams)(),[ye]=(0,ne.useSearchParams)(),[Re,Ze]=(0,o.useState)(!1),[te,le]=(0,o.useState)(!1),[tt,nt]=(0,o.useState)(!1),[ct,ut]=(0,o.useState)(!1),[Ge]=W.default.useForm(),yt=(0,o.useRef)(null),{details:ht}=D,{user_identity:Ce,code_effect_range:Ye,teachers_count:b,students_count:w}=ht,He=()=>{ge({type:"graduations/getGraduationsDetails",payload:{id:pe==null?void 0:pe.id}})},q=()=>E(void 0,null,function*(){(yield(0,L.ZP)("/api/graduations/detail.json",{method:"get",params:{code:ye.get("code")}})).status===0&&le(!0)});(0,o.useEffect)(()=>{if(ye.get("code")){q();return}He()},[]);const be=()=>{V.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,width:443,cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u6BD5\u4E1A\u8BBE\u8BA1",content:o.createElement("div",null,o.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u5220\u9664\u540E\uFF0C\u6BD5\u4E1A\u8BBE\u8BA1\u5185\u7684\u6240\u6709\u6570\u636E\u5C06\u88AB\u540C\u65F6\u5220\u9664"),o.createElement("div",{className:"mb5"},"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),o.createElement(G.Z,{ref:Be=>yt.current=Be})),onOk:()=>E(void 0,null,function*(){if(yt.current.onVerify())return Promise.reject();(yield(0,L.ZP)(`/api/graduations/${pe==null?void 0:pe.id}.json`,{method:"delete"})).status===0&&($.ZP.success("\u5220\u9664\u6210\u529F"),ne.history.push("/graduations"))})})},It=`${window.location.origin}/graduations/${pe.id}?code=${ht==null?void 0:ht.invite_code}`;return o.createElement("div",{className:`${_.bg} ${(0,F.tu)()?"":_.bg2}`,style:{background:`url('${(0,F.tu)()?T:k}') no-repeat center center`}},o.createElement("div",{className:_.center},o.createElement(g.Z,{title:ht==null?void 0:ht.name},o.createElement("div",{className:_.name},ht==null?void 0:ht.name)),o.createElement(me.Z,{className:"ml20",status:ht.status}),o.createElement("div",{style:{marginLeft:"auto"}},"\u9080\u8BF7\u7801",Ye===3?o.createElement("b",{className:"ml10"},"\u5DF2\u505C\u7528"):o.createElement("b",{className:"ml10",style:{color:"#FED218"}},ht==null?void 0:ht.invite_code)),[0,1,2].includes(Ye)&&o.createElement(o.Fragment,null,o.createElement("div",{className:_.line}),o.createElement("div",{className:"current",onClick:()=>Ze(!0)},o.createElement("i",{style:{color:"#d8d8d8"},className:"iconfont icon-fenxiangketang font14 mr5"}),"\xA0\u5206\u4EAB\u6BD5\u8BBE")),(0,F.tu)()&&o.createElement(o.Fragment,null,o.createElement("div",{className:_.line}),o.createElement("div",{className:"current",onClick:be},o.createElement("i",{style:{color:"#d8d8d8"},className:"iconfont icon-shanchu8 font14 mr5"}),"\u5220\u9664\u6BD5\u8BBE"))),(0,F.tu)()&&o.createElement("div",{className:_.member},o.createElement(ne.Link,{className:_.btn,to:`/graduations/${pe==null?void 0:pe.id}/teachers`},o.createElement("i",{className:"iconfont icon-chengyuanguanli1 mr5"}),"\u6210\u5458\u7BA1\u7406"),o.createElement("span",{className:_.line}),o.createElement(ne.Link,{className:_.btn,to:`/graduations/${pe==null?void 0:pe.id}/students`},"\u5B66\u751F",o.createElement("span",{className:"ml10"},w)),o.createElement("span",{className:_.line}),o.createElement(ne.Link,{className:_.btn,to:`/graduations/${pe==null?void 0:pe.id}/teachers`},"\u6559\u5E08",o.createElement("span",{className:"ml10"},b)),o.createElement("span",{onClick:()=>{ut("\u6DFB\u52A0\u8001\u5E08")},style:{marginLeft:"auto"},className:_.btn},o.createElement("i",{className:"iconfont icon-tianjialaoshi font14 mr5"}),"\u6DFB\u52A0\u8001\u5E08"),o.createElement("span",{className:_.line}),o.createElement("span",{onClick:()=>{ut("\u6DFB\u52A0\u5B66\u751F")},className:_.btn},o.createElement("i",{className:"iconfont icon-tianjiaxuesheng font14 mr5"}),"\u6DFB\u52A0\u5B66\u751F")),o.createElement(V.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:Re,title:"\u5206\u4EAB\u6BD5\u8BBE",width:666,onCancel:()=>{Ze(!1)},footer:null},o.createElement("div",{className:_.modal},Ye===1&&o.createElement("div",{className:_.red},"\u9080\u8BF7\u7801\u5DF2\u5BF9\u7BA1\u7406\u5458\u7981\u7528\uFF0C\u7528\u6237\u5C06\u65E0\u6CD5\u901A\u8FC7\u9080\u8BF7\u7801\u4EE5\u7BA1\u7406\u5458\u8EAB\u4EFD\u52A0\u5165\u6BD5\u8BBE"),Ye===2&&o.createElement("div",{className:_.red},"\u9080\u8BF7\u7801\u548C\u9080\u8BF7\u94FE\u63A5\u5DF2\u5BF9\u5B66\u751F\u7981\u7528\uFF0C\u7528\u6237\u5C06\u65E0\u6CD5\u901A\u8FC7\u9080\u8BF7\u7801\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u6BD5\u8BBE"),o.createElement("div",{className:_.row},o.createElement("div",{className:_.label},"\u5206\u4EAB\u65B9\u5F0F\u4E00"),o.createElement("div",{className:_.content},o.createElement("div",{className:"c-black"},"\u5206\u4EAB\u9080\u8BF7\u7801"),o.createElement("div",{className:_.input},o.createElement("aside",{className:_.code},ht==null?void 0:ht.invite_code),o.createElement(ae.CopyToClipboard,{text:ht==null?void 0:ht.invite_code,onCopy:()=>$.ZP.success("\u590D\u5236\u6210\u529F")},o.createElement("div",{className:_.copy},o.createElement("i",{className:"iconfont icon-fuzhi8 font14 mr5"}),"\u590D\u5236\u9080\u8BF7\u7801"))),o.createElement("div",{className:"font12",style:{color:"#9096A3"}},"\u901A\u8FC7\u9080\u8BF7\u7801\u52A0\u5165\u6BD5\u4E1A\u8BBE\u8BA1\u65F6\uFF0C\u53EF\u4EE5\u9009\u62E9\u52A0\u5165\u6BD5\u8BBE\u7684\u8EAB\u4EFD\uFF08\u9009\u62E9\u7BA1\u7406\u5458\uFF08\u6559\u5E08\uFF09\uFF0C\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\uFF09"))),o.createElement("div",{className:`${_.row} mt30 mb15`},o.createElement("div",{className:_.label},"\u5206\u4EAB\u65B9\u5F0F\u4E8C"),o.createElement("div",{className:_.content},o.createElement("div",null,"\u5206\u4EAB\u94FE\u63A5"),o.createElement("div",{className:_.input},o.createElement("aside",{className:_.code,style:{width:440}},It),o.createElement(ae.CopyToClipboard,{text:It,onCopy:()=>$.ZP.success("\u590D\u5236\u6210\u529F")},o.createElement("div",{className:_.copy},o.createElement("i",{className:"iconfont icon-fuzhi8 font14 mr5"}),"\u590D\u5236\u94FE\u63A5"))),o.createElement("div",{className:"font12",style:{color:"#9096A3"}},"\u901A\u8FC7\u5206\u4EAB\u94FE\u63A5\u8BBF\u95EE\u6BD5\u8BBE\u65F6\uFF0C\u5DF2\u767B\u5F55\u7528\u6237\u53EF\u4EE5\u76F4\u63A5\u4EE5\u5B66\u751F\u8EAB\u4EFD\u52A0\u5165\u6BD5\u8BBE\uFF0C\u672A\u6CE8\u518C/\u767B\u5F55\u7528\u6237\u5728\u6CE8\u518C/\u767B\u5F55\u540E\u53EF\u4EE5\u76F4\u63A5\u52A0\u5165\u6BD5\u8BBE\u3002"))),o.createElement("div",{style:{height:"15px"}}))),o.createElement(V.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:te,title:"\u52A0\u5165\u6BD5\u8BBE",width:527,confirmLoading:tt,onCancel:()=>{ne.history.replace("/graduations")},onOk:()=>Ge.submit()},o.createElement(W.default,{colon:!1,form:Ge,className:_.formWrap,onFinish:Be=>E(void 0,null,function*(){nt(!0);const rt=yield(0,L.ZP)("/api/graduations/join.json",{method:"post",body:Q(J({},Be),{user_type:2,code:ye.get("code")})});rt.status===0&&(rt!=null&&rt.identifier?($.ZP.success("\u52A0\u5165\u6210\u529F"),ne.history.replace(`/graduations/${pe.id}/index`),le(!1),He()):($.ZP.success(rt==null?void 0:rt.message),ne.history.replace("/graduations"))),nt(!1)})},o.createElement(W.default.Item,{style:{marginBottom:0},name:"major",label:"\u4E13\u4E1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u540D\u79F0"},{max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u540D\u79F0"}]},o.createElement(I.default,{showCount:!0,maxLength:60})))),o.createElement(de.Z,{open:ct,onCancel:()=>ut(!1),title:ct,OnOk:Be=>E(void 0,null,function*(){if((yield(ct=="\u6DFB\u52A0\u8001\u5E08"?Ie.HF:Ie.NX)({id:pe.id,user_ids:Be})).status==0){if($.ZP.success("\u6DFB\u52A0\u6210\u529F"),ut(!1),ge({type:"graduations/getGraduationsDetails",payload:{id:pe==null?void 0:pe.id}}),ct=="\u6DFB\u52A0\u8001\u5E08"&&location.pathname.includes("teachers")){ge({type:"graduations/setUpdateIndex"});return}if(ct=="\u6DFB\u52A0\u5B66\u751F"&&location.pathname.includes("students")){ge({type:"graduations/setUpdateIndex"});return}const ft=`/graduations/${pe==null?void 0:pe.id}/${ct=="\u6DFB\u52A0\u8001\u5E08"?"teachers":"students"}`;ne.history.push(ft)}})}))};var se=(0,ne.connect)(({graduations:D,user:ue})=>({graduations:D,user:ue}))(R),we={flex_box_center:"flex_box_center___hxWWU",flex_space_between:"flex_space_between___Vtfm0",flex_box_vertical_center:"flex_box_vertical_center___raPpL",flex_box_center_end:"flex_box_center_end___vhgOG",flex_box_column:"flex_box_column___awXbX",icon:"icon___qjZkt",content:"content___w0ayt",dot:"dot___vZgx3"},Ve=d(35883),lt=Object.defineProperty,xe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,it=(D,ue,ge)=>ue in D?lt(D,ue,{enumerable:!0,configurable:!0,writable:!0,value:ge}):D[ue]=ge,De=(D,ue)=>{for(var ge in ue||(ue={}))je.call(ue,ge)&&it(D,ge,ue[ge]);if(xe)for(var ge of xe(ue))Qe.call(ue,ge)&&it(D,ge,ue[ge]);return D};const wt=D=>React.createElement("svg",De({className:"icon_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},D),React.createElement("path",{d:"M338.074 165.888A337.1 337.1 0 1 1 205.26 812.902V193.024a336.026 336.026 0 0 1 132.813-27.136zm-214.528 77.005v520.192A336.384 336.384 0 0 1 .973 502.989c0-104.704 47.718-198.247 122.573-260.096z",fill:"#FF9D18"}),React.createElement("path",{d:"M246.118.768a41.35 41.35 0 0 1 14.746 2.714l533.3 206.54h187.494c22.528 0 40.857 18.33 40.857 40.858v483.686c0 22.58-18.278 40.858-40.857 40.858H794.112L260.864 982.016a40.858 40.858 0 0 1-55.603-38.093V41.626c0-22.58 18.278-40.91 40.857-40.91zm560.538 324.147h-57.242a12.288 12.288 0 0 0-12.288 12.288V639.59c0 6.759 5.53 12.288 12.288 12.288h57.242a12.288 12.288 0 0 0 12.237-12.288V337.203a12.288 12.288 0 0 0-12.288-12.288z",fill:"#739EFF"}));var et="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMzOC4wNzQgMTY1Ljg4OEEzMzcuMSAzMzcuMSAwIDEgMSAyMDUuMjYgODEyLjkwMlYxOTMuMDI0YTMzNi4wMjYgMzM2LjAyNiAwIDAgMSAxMzIuODEzLTI3LjEzNnptLTIxNC41MjggNzcuMDA1djUyMC4xOTJBMzM2LjM4NCAzMzYuMzg0IDAgMCAxIC45NzMgNTAyLjk4OWMwLTEwNC43MDQgNDcuNzE4LTE5OC4yNDcgMTIyLjU3My0yNjAuMDk2eiIgZmlsbD0iI0ZGOUQxOCIvPjxwYXRoIGQ9Ik0yNDYuMTE4Ljc2OGE0MS4zNSA0MS4zNSAwIDAgMSAxNC43NDYgMi43MTRsNTMzLjMgMjA2LjU0aDE4Ny40OTRjMjIuNTI4IDAgNDAuODU3IDE4LjMzIDQwLjg1NyA0MC44NTh2NDgzLjY4NmMwIDIyLjU4LTE4LjI3OCA0MC44NTgtNDAuODU3IDQwLjg1OEg3OTQuMTEyTDI2MC44NjQgOTgyLjAxNmE0MC44NTggNDAuODU4IDAgMCAxLTU1LjYwMy0zOC4wOTNWNDEuNjI2YzAtMjIuNTggMTguMjc4LTQwLjkxIDQwLjg1Ny00MC45MXptNTYwLjUzOCAzMjQuMTQ3aC01Ny4yNDJhMTIuMjg4IDEyLjI4OCAwIDAgMC0xMi4yODggMTIuMjg4VjYzOS41OWMwIDYuNzU5IDUuNTMgMTIuMjg4IDEyLjI4OCAxMi4yODhoNTcuMjQyYTEyLjI4OCAxMi4yODggMCAwIDAgMTIuMjM3LTEyLjI4OFYzMzcuMjAzYTEyLjI4OCAxMi4yODggMCAwIDAtMTIuMjg4LTEyLjI4OHoiIGZpbGw9IiM3MzlFRkYiLz48L3N2Zz4=",Ot=d(90736),qe=d(76406),Xe=d(14185),Ue=(D,ue,ge)=>new Promise((pe,ye)=>{var Re=le=>{try{te(ge.next(le))}catch(tt){ye(tt)}},Ze=le=>{try{te(ge.throw(le))}catch(tt){ye(tt)}},te=le=>le.done?pe(le.value):Promise.resolve(le.value).then(Re,Ze);te((ge=ge.apply(D,ue)).next())});const ke=({graduations:D,dispatch:ue})=>{var ge,pe;const ye=(0,ne.useParams)(),Re=(0,ne.useLocation)(),[Ze,te]=(0,o.useState)(!1),{menus:le}=D,tt=le.find(yt=>yt.stage_url===Re.pathname)||{},ct=["opening_report","midterm_report","thesis","final_defense","final_thesis","archives"].includes(tt==null?void 0:tt.clazz),ut=()=>Ue(void 0,null,function*(){if(te(!0),tt!=null&&tt.notice_view)return;(yield(0,L.ZP)(`/api/graduations/${ye==null?void 0:ye.id}/graduation_stages/${tt==null?void 0:tt.id}/notice_view.json`,{method:"post"})).status===0&&ue({type:"graduations/getGraduationsDetails",payload:{id:ye==null?void 0:ye.id}})}),Ge=!((ge=tt==null?void 0:tt.attachments)!=null&&ge.length)&&!(tt!=null&&tt.description);return o.createElement(o.Fragment,null,ct&&o.createElement(g.Z,{title:"\u9636\u6BB5\u516C\u544A/\u63CF\u8FF0",placement:"bottom"},o.createElement("div",{className:we.icon,onClick:ut},o.createElement("div",{className:we.content},o.createElement("img",{height:20,src:et}),!(tt!=null&&tt.notice_view)&&o.createElement("div",{className:we.dot})))),o.createElement(V.default,{centered:!0,destroyOnClose:!0,onCancel:()=>te(!1),onOk:()=>te(!1),open:Ze,title:"\u9636\u6BB5\u516C\u544A/\u63CF\u8FF0",width:990,cancelButtonProps:{style:{display:"none"}},okText:"\u6211\u77E5\u9053\u4E86"},Ge?o.createElement(Ot.Z,null):o.createElement("div",{style:{maxHeight:500}},o.createElement(Ve.Z,{className:"mb25",value:(tt==null?void 0:tt.description)||""}),(pe=tt==null?void 0:tt.attachments)==null?void 0:pe.map(yt=>o.createElement(fe.Z,{key:yt.id,className:"mt4",align:"middle"},o.createElement("div",{style:{color:"#3061D0"},className:"current c-light-primary",onClick:()=>{var ht;(0,qe.Nd)("",`${Xe.Z.API_SERVER}${(ht=yt==null?void 0:yt.url)==null?void 0:ht.replace("disposition=inline","")}`)}},o.createElement("i",{className:"iconfont icon-wenjian7 font14 mr5"}),(0,qe.tP)(yt.title,62)))))))};var ie=(0,ne.connect)(({graduations:D})=>({graduations:D}))(ke);const{Content:$e}=j.default;var z=({})=>o.createElement("div",{className:"bg-white"},o.createElement(se,null),o.createElement(fe.Z,{className:"edu-container",wrap:!1},o.createElement(S,null),o.createElement($e,{style:{flex:1,width:0,position:"relative"}},o.createElement(ie,null),o.createElement(ne.Outlet,null))))},87995:function(mn,gt,d){"use strict";var o=d(59301),ne=d(44283),j=d(28284),fe=d(25399),K=d(6767),g=d(62957),re=d(82326),oe=d(37568),l=d(1560),C=d(70858),N=d(66649),S=d.n(N),_=d(90736),T=d(45567),k=d(70467),W=Object.defineProperty,V=Object.defineProperties,$=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,L=(Fe,_e,Te)=>_e in Fe?W(Fe,_e,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Fe[_e]=Te,ae=(Fe,_e)=>{for(var Te in _e||(_e={}))G.call(_e,Te)&&L(Fe,Te,_e[Te]);if(I)for(var Te of I(_e))F.call(_e,Te)&&L(Fe,Te,_e[Te]);return Fe},me=(Fe,_e)=>V(Fe,$(_e)),de=(Fe,_e,Te)=>new Promise((ee,B)=>{var A=Q=>{try{J(Te.next(Q))}catch(E){B(E)}},X=Q=>{try{J(Te.throw(Q))}catch(E){B(E)}},J=Q=>Q.done?ee(Q.value):Promise.resolve(Q.value).then(A,X);J((Te=Te.apply(Fe,_e)).next())});const Ie=({graduations:{StageSetting:Fe},onCancel:_e,OnOk:Te,open:ee=!1,title:B,dispatch:A})=>{const X=(0,ne.useParams)(),[J,Q]=(0,o.useState)([]),[E]=j.default.useForm(),[R,se]=(0,o.useState)({school:"",search:"",search_type:"name"}),[we,Ve]=(0,o.useState)(!0),[lt,xe]=(0,o.useState)(!1),[je,Qe]=(0,o.useState)(!1),[it,De]=(0,o.useState)([]),[wt,et]=(0,o.useState)(0),[Ot,qe]=(0,o.useState)(0),[Xe,Ue]=(0,o.useState)(1),[ke,ie]=(0,o.useState)([]),[$e,Pe]=(0,o.useState)(!1),z=(0,o.useRef)(null);(0,o.useEffect)(()=>{switch(B){case"\u6DFB\u52A0\u5B66\u751F":qe(0);break;case"\u6DFB\u52A0\u8001\u5E08":qe(1);break;default:qe(null)}},[ee]),(0,o.useEffect)(()=>{de(void 0,null,function*(){var ye;const Re=yield(0,T.xF)({keyword:"",per_page:9999,display_aliases:!0});Q((ye=Re==null?void 0:Re.schools)==null?void 0:ye.map(Ze=>({label:Ze.name,value:Ze.id})))})},[]);const D=[{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"name",render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{style:{color:"#000"}},ye||"--"))},{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"school",ellipsis:!0,render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{style:{color:"#000"}},ye||"--"))},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"department",width:130,ellipsis:!0,render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{style:{color:"#000"}},ye||"--"))},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:(ye,Re)=>o.createElement(fe.Z,{placement:"topLeft",title:Re.staff_id||Re.student_id},o.createElement("span",{className:"c-grey-666"},Re.staff_id||Re.student_id||"--"))},{title:"\u624B\u673A",width:110,dataIndex:"phone",ellipsis:!0,render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{className:"c-grey-666"},ye||"--"))},{title:"\u90AE\u7BB1",dataIndex:"mail",width:120,ellipsis:!0,render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{className:"c-grey-666"},ye||"--"))},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"authentication",width:80,render:ye=>ye?o.createElement("span",{style:{color:"#000"}},"\u662F"):"\u5426"},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:ye=>o.createElement(fe.Z,{placement:"topLeft",title:ye},o.createElement("span",{className:"c-grey-666"},S()(ye).format("YYYY-MM-DD HH:mm")))},{title:"\u72B6\u6001",dataIndex:"checked",width:80,render:ye=>ye?o.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0"):o.createElement("span",{className:"c-grey-333"},"\u672A\u6DFB\u52A0")}],ue=ye=>de(void 0,null,function*(){var Re,Ze;if(z.current&&((Ze=(Re=z.current)==null?void 0:Re.querySelector(".ant-table-body"))==null||Ze.scrollTo(0,0)),Pe(!0),ie([]),!(ye.search||ye.school)){K.ZP.warning("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9");return}xe(!0),se(ye),Ue(1);let te;const le=me(ae({id:X.id},ye),{display_aliases:!0});Ot==0&&(te=yield(0,T.l5)(le)),Ot==1&&(te=yield(0,T.bS)(le)),te.status==0&&(De(te.data),et(te.count)),xe(!1)}),ge=(ye=!1)=>de(void 0,null,function*(){var Re,Ze,te,le;const tt=(Re=z.current)==null?void 0:Re.querySelector(".ant-table-body").scrollHeight,nt=(Ze=z.current)==null?void 0:Ze.querySelector(".ant-table-body").scrollTop,ct=(te=z.current)==null?void 0:te.querySelector(".ant-table-body").clientHeight;if(tt==nt+ct&&we&&!lt){xe(!0),Ue(Xe+1);let ut;const Ge=ae({page:Xe+1,id:X.id},R);Ot==0&&(ut=yield(0,T.l5)(Ge)),Ot==1&&(ut=yield(0,T.bS)(Ge)),ut.status==0&&(((le=ut==null?void 0:ut.data)==null?void 0:le.length)+it.length==ut.count&&Ve(!1),De([...it,...ut.data]),et(ut.count)),xe(!1)}}),pe={selectedRowKeys:ke,onChange:(ye,Re)=>{ie(ye)},getCheckboxProps:ye=>({disabled:ye.checked,name:ye.checked})};return o.createElement(g.default,{destroyOnClose:!0,width:1200,style:{height:"613px"},open:ee,confirmLoading:je,title:B,bodyStyle:{padding:"0px 25px"},onOk:()=>de(void 0,null,function*(){ke.length>0?(Qe(!0),yield Te(ke),Qe(!1),E.resetFields(),De([]),Pe(!1),ie([])):K.ZP.warning("\u8BF7\u9009\u62E9\u6DFB\u52A0\u4EBA\u5458")}),onCancel:()=>{_e(),E.resetFields(),Pe(!1),De([]),ie([])}},o.createElement(j.default,{layout:"inline",className:"mt10",colon:!1,form:E,initialValues:{school:"",search:"",search_type:"name"},onValuesChange:(ye,Re)=>se(Re),size:"large",onFinish:ue},o.createElement(j.default.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},o.createElement(re.default,{style:{width:160}},o.createElement(re.default.Option,{value:"name"},"\u59D3\u540D"),o.createElement(re.default.Option,{value:"phone"},"\u624B\u673A\u53F7"),o.createElement(re.default.Option,{value:"mail"},"\u90AE\u7BB1"))),o.createElement(j.default.Item,{name:"search",label:"\u641C\u7D22\u5185\u5BB9"},o.createElement(oe.default,{allowClear:!0,style:{width:320},placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",defaultValue:""})),o.createElement(j.default.Item,{name:"school",label:"\u5355\u4F4D"},o.createElement(l.Z,{options:J,style:{width:380},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",onSelect:(ye,Re)=>{console.log(ye,Re),E.setFieldsValue({school:Re.label})},filterOption:(ye,Re)=>Re.label.toUpperCase().indexOf(ye.toUpperCase())!==-1})),o.createElement(j.default.Item,{noStyle:!0},o.createElement(k.op,{onClick:()=>E.submit(),size:"large",shape:"default"},"\u641C\u7D22"))),o.createElement("div",{onScrollCapture:()=>ge()},$e?o.createElement(C.default,{className:"mt20",loading:lt,showHeader:it.length>0,scroll:wt>10?{y:450}:{},rowKey:"user_id",rowSelection:pe,locale:{emptyText:o.createElement(_.Z,{customText:"\u672A\u627E\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E\uFF0C\u8BF7\u91CD\u65B0\u8C03\u6574\u60A8\u7684\u7B5B\u9009\u6761\u4EF6\u3002"})},pagination:!1,dataSource:it,ref:z,columns:D}):o.createElement(_.Z,{customText:"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"})))};gt.Z=(0,ne.connect)(({graduations:Fe})=>({graduations:Fe}))(Ie)},81068:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return g}});var o=d(59301),ne={flex_box_center:"flex_box_center___Sswcw",flex_space_between:"flex_space_between___nBexI",flex_box_vertical_center:"flex_box_vertical_center___sPXvb",flex_box_center_end:"flex_box_center_end___c6nca",flex_box_column:"flex_box_column___Bq_gi",tag:"tag___NEywM"},j=d(92310),fe=d.n(j),g=({className:re,status:oe})=>o.createElement(o.Fragment,null,oe===0&&o.createElement("div",{className:fe()(ne.tag,re)},"\u672A\u5F00\u59CB"),oe===1&&o.createElement("div",{className:fe()(ne.tag,re),style:{background:"#19CB70"}},"\u8FDB\u884C\u4E2D"),oe===2&&o.createElement("div",{className:fe()(ne.tag,re),style:{background:"#EE5D5D"}},"\u5DF2\u7ED3\u675F"))},20047:function(mn,gt,d){"use strict";d.d(gt,{AL:function(){return F},Iy:function(){return N},Qv:function(){return T},ez:function(){return G},jb:function(){return S}});var o=d(32834),ne=d.n(o),j=d(11690),fe=d.n(j);let K=1;function g(Ie,Fe){const _e=Ie.match(/^(\s+)(?:```)/);if(_e===null)return Fe;const Te=_e[1];return Fe.split(`
|
|
|
`).map(ee=>{const B=ee.match(/^\s+/);if(B===null)return ee;const[A]=B;return A.length>=Te.length?ee.slice(Te.length):ee}).join(`
|
|
|
`)}let re=[],oe=["<ul>"];const l=new(ne()).Renderer,C=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){re.length=0,oe=["<ul>"]}const S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(Ie,Fe,_e,Te){if(Fe>=Ie.length||Ie[Fe].level<=_e)return Fe;var ee=Ie[Fe];Te.push("<li><a href='#"+K+ee.anchor+"'>"+ee.text+"</a>"),Fe++;var B=[];return Fe=_(Ie,Fe,ee.level,B),B.length>0&&(Te.push("<ul>"),B.forEach(function(A){Te.push(A)}),Te.push("</ul>")),Te.push("</li>"),Fe=_(Ie,Fe,_e,Te),Fe}function T(){return _(re,0,0,oe),oe.push("</ul>"),oe.join("")}const k={heading(Ie){const Fe=C.exec(Ie);if(K+=1,Fe)return{type:"heading",raw:Fe[0],depth:Fe[1].length,text:Fe[2]}},fences(Ie){const Fe=this.rules.block.fences.exec(Ie);if(Fe){const _e=Fe[0];let Te=g(_e,Fe[3]||"");const ee=Fe[2]?Fe[2].trim():Fe[2];if(["latex","katex","math"].indexOf(ee)>=0){const B=$(),A=Te;Te=B,I[B]={type:"block",expression:A}}return{type:"code",raw:_e,lang:ee,text:Te}}}},W=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let V=0;const $=()=>`__special_katext_id_${V++}__`;let I={};function G(){return I}function F(){V=0,I={}}function L(Ie){return Ie=Ie.replace(W,(Fe,_e)=>{const Te=$();return I[Te]={type:"inline",expression:_e},Te}),Ie}const ae=l.listitem;l.listitem=function(Ie){return ae(L(Ie))};const me=l.paragraph;l.paragraph=function(Ie){return me(L(Ie))};const de=l.tablecell;l.tablecell=function(Ie,Fe){return de(L(Ie),Fe)},l.code=function(Ie,Fe,_e){const Te=(Fe||"").match(/\S*/)[0];return Te?["latex","katex","math"].indexOf(Te)>=0?`<p class='editormd-tex'>${Ie}</p>`:`<pre class="prettyprint linenums"><code class="language-${Fe}">${_e?Ie:(0,j.escape)(Ie,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(_e?Ie:(0,j.escape)(Ie,!0))+"</code></pre>"},l.heading=function(Ie,Fe,_e){let Te=this.options.headerPrefix+_e.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return re.push({anchor:Te,level:Fe,text:Ie}),"<h"+Fe+' id="'+K+Te+'">'+Ie+"</h"+Fe+">"},ne().setOptions({silent:!0,gfm:!0,pedantic:!1}),ne().use({tokenizer:k,renderer:l}),gt.ZP=ne()},29509:function(mn,gt,d){"use strict";d.d(gt,{o2:function(){return K},yT:function(){return g}});var o=d(77654),ne=d(34998);const j=ne.i.map(re=>`${re}-inverse`),fe=["success","processing","error","default","warning"];function K(re){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,o.Z)(j),(0,o.Z)(ne.i)).includes(re):ne.i.includes(re)}function g(re){return fe.includes(re)}},9981:function(mn,gt){"use strict";const d=function(){const o=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ne=1;ne<arguments.length;ne++){const j=ne<0||arguments.length<=ne?void 0:arguments[ne];j&&Object.keys(j).forEach(fe=>{const K=j[fe];K!==void 0&&(o[fe]=K)})}return o};gt.Z=d},99402:function(mn,gt,d){"use strict";d.d(gt,{T:function(){return ne},n:function(){return o}});function o(j){return["small","middle","large"].includes(j)}function ne(j){return j?typeof j=="number"&&!Number.isNaN(j):!1}},86013:function(mn,gt,d){"use strict";var o=d(59301),ne=d(19248);const j=fe=>{let K;return typeof fe=="object"&&(fe!=null&&fe.clearIcon)?K=fe:fe&&(K={clearIcon:o.createElement(ne.Z,null)}),K};gt.Z=j},97224:function(mn,gt,d){"use strict";d.d(gt,{F:function(){return o}});function o(j){return j!=null&&j===j.window}const ne=j=>{var fe,K;if(typeof window=="undefined")return 0;let g=0;return o(j)?g=j.pageYOffset:j instanceof Document?g=j.documentElement.scrollTop:(j instanceof HTMLElement||j)&&(g=j.scrollTop),j&&!o(j)&&typeof g!="number"&&(g=(K=((fe=j.ownerDocument)!==null&&fe!==void 0?fe:j).documentElement)===null||K===void 0?void 0:K.scrollTop),g};gt.Z=ne},52838:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return g}});var o=d(37645);function ne(re,oe,l,C){if(C===!1)return{adjustX:!1,adjustY:!1};const N=C&&typeof C=="object"?C:{},S={};switch(re){case"top":case"bottom":S.shiftX=oe.arrowOffsetHorizontal*2+l,S.shiftY=!0,S.adjustY=!0;break;case"left":case"right":S.shiftY=oe.arrowOffsetVertical*2+l,S.shiftX=!0,S.adjustX=!0;break}const _=Object.assign(Object.assign({},S),N);return _.shiftX||(_.adjustX=!0),_.shiftY||(_.adjustY=!0),_}const j={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},fe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},K=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(re){const{arrowWidth:oe,autoAdjustOverflow:l,arrowPointAtCenter:C,offset:N,borderRadius:S,visibleFirst:_}=re,T=oe/2,k={};return Object.keys(j).forEach(W=>{const V=C&&fe[W]||j[W],$=Object.assign(Object.assign({},V),{offset:[0,0],dynamicInset:!0});switch(k[W]=$,K.has(W)&&($.autoArrow=!1),W){case"top":case"topLeft":case"topRight":$.offset[1]=-T-N;break;case"bottom":case"bottomLeft":case"bottomRight":$.offset[1]=T+N;break;case"left":case"leftTop":case"leftBottom":$.offset[0]=-T-N;break;case"right":case"rightTop":case"rightBottom":$.offset[0]=T+N;break}const I=(0,o.wZ)({contentRadius:S,limitVerticalRadius:!0});if(C)switch(W){case"topLeft":case"bottomLeft":$.offset[0]=-I.arrowOffsetHorizontal-T;break;case"topRight":case"bottomRight":$.offset[0]=I.arrowOffsetHorizontal+T;break;case"leftTop":case"rightTop":$.offset[1]=-I.arrowOffsetHorizontal*2+T;break;case"leftBottom":case"rightBottom":$.offset[1]=I.arrowOffsetHorizontal*2-T;break}$.overflow=ne(W,I,oe,l),_&&($.htmlRegion="visibleFirst")}),k}},83010:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return fe}});var o=d(16089);function ne(K,g,re,oe){const l=re-g;return K/=oe/2,K<1?l/2*K*K*K+g:l/2*((K-=2)*K*K+2)+g}var j=d(97224);function fe(K){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:re=()=>window,callback:oe,duration:l=450}=g,C=re(),N=(0,j.Z)(C),S=Date.now(),_=()=>{const k=Date.now()-S,W=ne(k>l?l:k,N,K,l);(0,j.F)(C)?C.scrollTo(window.pageXOffset,W):C instanceof Document||C.constructor.name==="HTMLDocument"?C.documentElement.scrollTop=W:C.scrollTop=W,k<l?(0,o.Z)(_):typeof oe=="function"&&oe()};(0,o.Z)(_)}},82855:function(mn,gt,d){"use strict";d.d(gt,{F:function(){return K},Z:function(){return fe}});var o=d(92310),ne=d.n(o);const j=null;function fe(g,re,oe){return ne()({[`${g}-status-success`]:re==="success",[`${g}-status-warning`]:re==="warning",[`${g}-status-error`]:re==="error",[`${g}-status-validating`]:re==="validating",[`${g}-has-feedback`]:oe})}const K=(g,re)=>re||g},1560:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return $}});var o=d(2738),ne=d(45915),j=d(82326),fe=d(59301),K=d(92310),g=d.n(K),re=d(11592),oe=d(75030),l=d(48755);const{Option:C}=j.default;function N(I){return(I==null?void 0:I.type)&&(I.type.isSelectOption||I.type.isSelectOptGroup)}const S=(I,G)=>{var F;const{prefixCls:L,className:ae,popupClassName:me,dropdownClassName:de,children:Ie,dataSource:Fe}=I,_e=(0,re.Z)(Ie);let Te;_e.length===1&&fe.isValidElement(_e[0])&&!N(_e[0])&&([Te]=_e);const ee=Te?()=>Te:void 0;let B;_e.length&&N(_e[0])?B=Ie:B=Fe?Fe.map(Q=>{if(fe.isValidElement(Q))return Q;switch(typeof Q){case"string":return fe.createElement(C,{key:Q,value:Q},Q);case"object":{const{value:E}=Q;return fe.createElement(C,{key:E,value:E},Q.text)}default:return}}):[];const{getPrefixCls:A}=fe.useContext(l.E_),X=A("select",L),[J]=(0,oe.Cn)("SelectLike",(F=I.dropdownStyle)===null||F===void 0?void 0:F.zIndex);return fe.createElement(j.default,Object.assign({ref:G,suffixIcon:null},(0,o.Z)(I,["dataSource","dropdownClassName"]),{prefixCls:X,popupClassName:me||de,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:J}),className:g()(`${X}-auto-complete`,ae),mode:j.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:ee}),B)};var T=fe.forwardRef(S);const{Option:k}=j.default,W=(0,ne.Z)(T,"dropdownAlign",I=>(0,o.Z)(I,["visible"])),V=T;V.Option=k,V._InternalPanelDoNotUseOrYouWillBeFired=W;var $=V},62673:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return Ie}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(16632),K=d(8654),g=d(12919),re=d(63872),oe=d(48755),l=d(2171),C=d(83397),N=d(56553),_=o.createContext(null),T=d(36170),k=d(74632),W=function(Fe,_e){var Te={};for(var ee in Fe)Object.prototype.hasOwnProperty.call(Fe,ee)&&_e.indexOf(ee)<0&&(Te[ee]=Fe[ee]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,ee=Object.getOwnPropertySymbols(Fe);B<ee.length;B++)_e.indexOf(ee[B])<0&&Object.prototype.propertyIsEnumerable.call(Fe,ee[B])&&(Te[ee[B]]=Fe[ee[B]]);return Te};const V=(Fe,_e)=>{var Te;const{prefixCls:ee,className:B,rootClassName:A,children:X,indeterminate:J=!1,style:Q,onMouseEnter:E,onMouseLeave:R,skipGroup:se=!1,disabled:we}=Fe,Ve=W(Fe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:lt,direction:xe,checkbox:je}=o.useContext(oe.E_),Qe=o.useContext(_),{isFormItemInput:it}=o.useContext(N.aM),De=o.useContext(l.Z),wt=(Te=(Qe==null?void 0:Qe.disabled)||we)!==null&&Te!==void 0?Te:De,et=o.useRef(Ve.value),Ot=o.useRef(null),qe=(0,K.sQ)(_e,Ot);o.useEffect(()=>{Qe==null||Qe.registerValue(Ve.value)},[]),o.useEffect(()=>{if(!se)return Ve.value!==et.current&&(Qe==null||Qe.cancelValue(et.current),Qe==null||Qe.registerValue(Ve.value),et.current=Ve.value),()=>Qe==null?void 0:Qe.cancelValue(Ve.value)},[Ve.value]),o.useEffect(()=>{var pe;!((pe=Ot.current)===null||pe===void 0)&&pe.input&&(Ot.current.input.indeterminate=J)},[J]);const Xe=lt("checkbox",ee),Ue=(0,C.Z)(Xe),[ke,ie,$e]=(0,T.ZP)(Xe,Ue),Pe=Object.assign({},Ve);Qe&&!se&&(Pe.onChange=function(){Ve.onChange&&Ve.onChange.apply(Ve,arguments),Qe.toggleOption&&Qe.toggleOption({label:X,value:Ve.value})},Pe.name=Qe.name,Pe.checked=Qe.value.includes(Ve.value));const z=j()(`${Xe}-wrapper`,{[`${Xe}-rtl`]:xe==="rtl",[`${Xe}-wrapper-checked`]:Pe.checked,[`${Xe}-wrapper-disabled`]:wt,[`${Xe}-wrapper-in-form-item`]:it},je==null?void 0:je.className,B,A,$e,Ue,ie),D=j()({[`${Xe}-indeterminate`]:J},re.A,ie),[ue,ge]=(0,k.Z)(Pe.onClick);return ke(o.createElement(g.Z,{component:"Checkbox",disabled:wt},o.createElement("label",{className:z,style:Object.assign(Object.assign({},je==null?void 0:je.style),Q),onMouseEnter:E,onMouseLeave:R,onClick:ue},o.createElement(fe.Z,Object.assign({},Pe,{onClick:ge,prefixCls:Xe,className:D,disabled:wt,ref:qe})),X!==void 0&&o.createElement("span",{className:`${Xe}-label`},X))))};var I=o.forwardRef(V),G=d(77654),F=d(2738),L=function(Fe,_e){var Te={};for(var ee in Fe)Object.prototype.hasOwnProperty.call(Fe,ee)&&_e.indexOf(ee)<0&&(Te[ee]=Fe[ee]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,ee=Object.getOwnPropertySymbols(Fe);B<ee.length;B++)_e.indexOf(ee[B])<0&&Object.prototype.propertyIsEnumerable.call(Fe,ee[B])&&(Te[ee[B]]=Fe[ee[B]]);return Te},me=o.forwardRef((Fe,_e)=>{const{defaultValue:Te,children:ee,options:B=[],prefixCls:A,className:X,rootClassName:J,style:Q,onChange:E}=Fe,R=L(Fe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:se,direction:we}=o.useContext(oe.E_),[Ve,lt]=o.useState(R.value||Te||[]),[xe,je]=o.useState([]);o.useEffect(()=>{"value"in R&<(R.value||[])},[R.value]);const Qe=o.useMemo(()=>B.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[B]),it=D=>{je(ue=>ue.filter(ge=>ge!==D))},De=D=>{je(ue=>[].concat((0,G.Z)(ue),[D]))},wt=D=>{const ue=Ve.indexOf(D.value),ge=(0,G.Z)(Ve);ue===-1?ge.push(D.value):ge.splice(ue,1),"value"in R||lt(ge),E==null||E(ge.filter(pe=>xe.includes(pe)).sort((pe,ye)=>{const Re=Qe.findIndex(te=>te.value===pe),Ze=Qe.findIndex(te=>te.value===ye);return Re-Ze}))},et=se("checkbox",A),Ot=`${et}-group`,qe=(0,C.Z)(et),[Xe,Ue,ke]=(0,T.ZP)(et,qe),ie=(0,F.Z)(R,["value","disabled"]),$e=B.length?Qe.map(D=>o.createElement(I,{prefixCls:et,key:D.value.toString(),disabled:"disabled"in D?D.disabled:R.disabled,value:D.value,checked:Ve.includes(D.value),onChange:D.onChange,className:`${Ot}-item`,style:D.style,title:D.title,id:D.id,required:D.required},D.label)):ee,Pe={toggleOption:wt,value:Ve,disabled:R.disabled,name:R.name,registerValue:De,cancelValue:it},z=j()(Ot,{[`${Ot}-rtl`]:we==="rtl"},X,J,ke,qe,Ue);return Xe(o.createElement("div",Object.assign({className:z,style:Q},ie,{ref:_e}),o.createElement(_.Provider,{value:Pe},$e)))});const de=I;de.Group=me,de.__ANT_CHECKBOX=!0;var Ie=de},36170:function(mn,gt,d){"use strict";d.d(gt,{C2:function(){return g}});var o=d(36237),ne=d(63356),j=d(51636),fe=d(16931);const K=re=>{const{checkboxCls:oe}=re,l=`${oe}-wrapper`;return[{[`${oe}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(re)),{display:"inline-flex",flexWrap:"wrap",columnGap:re.marginXS,[`> ${re.antCls}-row`]:{flex:1}}),[l]:Object.assign(Object.assign({},(0,ne.Wf)(re)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${l}`]:{marginInlineStart:0},[`&${l}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[oe]:Object.assign(Object.assign({},(0,ne.Wf)(re)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:re.borderRadiusSM,alignSelf:"center",[`${oe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${oe}-inner`]:Object.assign({},(0,ne.oN)(re))},[`${oe}-inner`]:{boxSizing:"border-box",display:"block",width:re.checkboxSize,height:re.checkboxSize,direction:"ltr",backgroundColor:re.colorBgContainer,border:`${(0,o.unit)(re.lineWidth)} ${re.lineType} ${re.colorBorder}`,borderRadius:re.borderRadiusSM,borderCollapse:"separate",transition:`all ${re.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:re.calc(re.checkboxSize).div(14).mul(5).equal(),height:re.calc(re.checkboxSize).div(14).mul(8).equal(),border:`${(0,o.unit)(re.lineWidthBold)} solid ${re.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${re.motionDurationFast} ${re.motionEaseInBack}, opacity ${re.motionDurationFast}`}},"& + span":{paddingInlineStart:re.paddingXS,paddingInlineEnd:re.paddingXS}})},{[`
|
|
|
${l}:not(${l}-disabled),
|
|
|
${oe}:not(${oe}-disabled)
|
|
|
`]:{[`&:hover ${oe}-inner`]:{borderColor:re.colorPrimary}},[`${l}:not(${l}-disabled)`]:{[`&:hover ${oe}-checked:not(${oe}-disabled) ${oe}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${oe}-checked:not(${oe}-disabled):after`]:{borderColor:re.colorPrimaryHover}}},{[`${oe}-checked`]:{[`${oe}-inner`]:{backgroundColor:re.colorPrimary,borderColor:re.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${re.motionDurationMid} ${re.motionEaseOutBack} ${re.motionDurationFast}`}}},[`
|
|
|
${l}-checked:not(${l}-disabled),
|
|
|
${oe}-checked:not(${oe}-disabled)
|
|
|
`]:{[`&:hover ${oe}-inner`]:{backgroundColor:re.colorPrimaryHover,borderColor:"transparent"}}},{[oe]:{"&-indeterminate":{[`${oe}-inner`]:{backgroundColor:`${re.colorBgContainer} !important`,borderColor:`${re.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:re.calc(re.fontSizeLG).div(2).equal(),height:re.calc(re.fontSizeLG).div(2).equal(),backgroundColor:re.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${oe}-inner`]:{backgroundColor:`${re.colorBgContainer} !important`,borderColor:`${re.colorPrimary} !important`}}}},{[`${l}-disabled`]:{cursor:"not-allowed"},[`${oe}-disabled`]:{[`&, ${oe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${oe}-inner`]:{background:re.colorBgContainerDisabled,borderColor:re.colorBorder,"&:after":{borderColor:re.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:re.colorTextDisabled},[`&${oe}-indeterminate ${oe}-inner::after`]:{background:re.colorTextDisabled}}}]};function g(re,oe){const l=(0,j.mergeToken)(oe,{checkboxCls:`.${re}`,checkboxSize:oe.controlInteractiveSize});return[K(l)]}gt.ZP=(0,fe.I$)("Checkbox",(re,oe)=>{let{prefixCls:l}=oe;return[g(l,re)]})},74632:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return j}});var o=d(59301),ne=d(16089);function j(fe){const K=o.useRef(null),g=()=>{ne.Z.cancel(K.current),K.current=null};return[()=>{g(),K.current=(0,ne.Z)(()=>{K.current=null})},l=>{K.current&&(l.stopPropagation(),g()),fe==null||fe(l)}]}},38406:function(mn,gt,d){"use strict";var o=d(59301),ne=d(48755),j=d(584);const fe=K=>{const{componentName:g}=K,{getPrefixCls:re}=(0,o.useContext)(ne.E_),oe=re("empty");switch(g){case"Table":case"List":return o.createElement(j.Z,{image:j.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(j.Z,{image:j.Z.PRESENTED_IMAGE_SIMPLE,className:`${oe}-small`});case"Table.filter":return null;default:return o.createElement(j.Z,null)}};gt.Z=fe},19563:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return lt}});var o=d(59301),ne=d(33853),j=d(38819),fe=d(92310),K=d.n(fe),g=d(96478),re=d(6089),oe=d(18929),l=d(2738),C=d(75030),S=xe=>typeof xe!="object"&&typeof xe!="function"||xe===null,_=d(52838),T=d(45915),k=d(22703),W=d(32383),V=d(55743),$=d(48755),I=d(83397),G=d(93041),F=d(78857),L=d(57700),ae=d(36237),me=d(63356),de=d(46e3),Ie=d(93873),Fe=d(34925),_e=d(37645),Te=d(36305),ee=d(16931),B=d(51636),X=xe=>{const{componentCls:je,menuCls:Qe,colorError:it,colorTextLightSolid:De}=xe,wt=`${Qe}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${Qe} ${wt}`]:{[`&${wt}-danger:not(${wt}-disabled)`]:{color:it,"&:hover":{color:De,backgroundColor:it}}}}}};const J=xe=>{const{componentCls:je,menuCls:Qe,zIndexPopup:it,dropdownArrowDistance:De,sizePopupArrow:wt,antCls:et,iconCls:Ot,motionDurationMid:qe,paddingBlock:Xe,fontSize:Ue,dropdownEdgeChildPadding:ke,colorTextDisabled:ie,fontSizeIcon:$e,controlPaddingHorizontal:Pe,colorBgElevated:z}=xe;return[{[je]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:it,display:"block","&::before":{position:"absolute",insetBlock:xe.calc(wt).div(2).sub(De).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${et}-btn`]:{[`& > ${Ot}-down, & > ${et}-btn-icon > ${Ot}-down`]:{fontSize:$e}},[`${je}-wrap`]:{position:"relative",[`${et}-btn > ${Ot}-down`]:{fontSize:$e},[`${Ot}-down::before`]:{transition:`transform ${qe}`}},[`${je}-wrap-open`]:{[`${Ot}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${et}-slide-down-enter${et}-slide-down-enter-active${je}-placement-bottomLeft,
|
|
|
&${et}-slide-down-appear${et}-slide-down-appear-active${je}-placement-bottomLeft,
|
|
|
&${et}-slide-down-enter${et}-slide-down-enter-active${je}-placement-bottom,
|
|
|
&${et}-slide-down-appear${et}-slide-down-appear-active${je}-placement-bottom,
|
|
|
&${et}-slide-down-enter${et}-slide-down-enter-active${je}-placement-bottomRight,
|
|
|
&${et}-slide-down-appear${et}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:de.fJ},[`&${et}-slide-up-enter${et}-slide-up-enter-active${je}-placement-topLeft,
|
|
|
&${et}-slide-up-appear${et}-slide-up-appear-active${je}-placement-topLeft,
|
|
|
&${et}-slide-up-enter${et}-slide-up-enter-active${je}-placement-top,
|
|
|
&${et}-slide-up-appear${et}-slide-up-appear-active${je}-placement-top,
|
|
|
&${et}-slide-up-enter${et}-slide-up-enter-active${je}-placement-topRight,
|
|
|
&${et}-slide-up-appear${et}-slide-up-appear-active${je}-placement-topRight`]:{animationName:de.Qt},[`&${et}-slide-down-leave${et}-slide-down-leave-active${je}-placement-bottomLeft,
|
|
|
&${et}-slide-down-leave${et}-slide-down-leave-active${je}-placement-bottom,
|
|
|
&${et}-slide-down-leave${et}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:de.Uw},[`&${et}-slide-up-leave${et}-slide-up-leave-active${je}-placement-topLeft,
|
|
|
&${et}-slide-up-leave${et}-slide-up-leave-active${je}-placement-top,
|
|
|
&${et}-slide-up-leave${et}-slide-up-leave-active${je}-placement-topRight`]:{animationName:de.ly}}},(0,_e.ZP)(xe,z,{arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${Qe}`]:{position:"relative",margin:0},[`${Qe}-submenu-popup`]:{position:"absolute",zIndex:it,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${je}, ${je}-menu-submenu`]:Object.assign(Object.assign({},(0,me.Wf)(xe)),{[Qe]:Object.assign(Object.assign({padding:ke,listStyleType:"none",backgroundColor:z,backgroundClip:"padding-box",borderRadius:xe.borderRadiusLG,outline:"none",boxShadow:xe.boxShadowSecondary},(0,me.Qy)(xe)),{"&:empty":{padding:0,boxShadow:"none"},[`${Qe}-item-group-title`]:{padding:`${(0,ae.unit)(Xe)} ${(0,ae.unit)(Pe)}`,color:xe.colorTextDescription,transition:`all ${qe}`},[`${Qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Qe}-item-icon`]:{minWidth:Ue,marginInlineEnd:xe.marginXS,fontSize:xe.fontSizeSM},[`${Qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${qe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Qe}-item-extra`]:{paddingInlineStart:xe.padding,marginInlineStart:"auto",fontSize:xe.fontSizeSM,color:xe.colorTextDescription}},[`${Qe}-item, ${Qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ae.unit)(Xe)} ${(0,ae.unit)(Pe)}`,color:xe.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${qe}`,borderRadius:xe.borderRadiusSM,"&:hover, &-active":{backgroundColor:xe.controlItemBgHover}},(0,me.Qy)(xe)),{"&-selected":{color:xe.colorPrimary,backgroundColor:xe.controlItemBgActive,"&:hover, &-active":{backgroundColor:xe.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:z,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ae.unit)(xe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:xe.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:xe.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:xe.colorTextDescription,fontSize:$e,fontStyle:"normal"}}}),[`${Qe}-item-group-list`]:{margin:`0 ${(0,ae.unit)(xe.marginXS)}`,padding:0,listStyle:"none"},[`${Qe}-submenu-title`]:{paddingInlineEnd:xe.calc(Pe).add(xe.fontSizeSM).equal()},[`${Qe}-submenu-vertical`]:{position:"relative"},[`${Qe}-submenu${Qe}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:z,cursor:"not-allowed"}},[`${Qe}-submenu-selected ${je}-menu-submenu-title`]:{color:xe.colorPrimary}})})},[(0,de.oN)(xe,"slide-up"),(0,de.oN)(xe,"slide-down"),(0,Ie.Fm)(xe,"move-up"),(0,Ie.Fm)(xe,"move-down"),(0,Fe._y)(xe,"zoom-big")]]},Q=xe=>Object.assign(Object.assign({zIndexPopup:xe.zIndexPopupBase+50,paddingBlock:(xe.controlHeight-xe.fontSize*xe.lineHeight)/2},(0,_e.wZ)({contentRadius:xe.borderRadiusLG,limitVerticalRadius:!0})),(0,Te.w)(xe));var E=(0,ee.I$)("Dropdown",xe=>{const{marginXXS:je,sizePopupArrow:Qe,paddingXXS:it,componentCls:De}=xe,wt=(0,B.mergeToken)(xe,{menuCls:`${De}-menu`,dropdownArrowDistance:xe.calc(Qe).div(2).add(je).equal(),dropdownEdgeChildPadding:it});return[J(wt),X(wt)]},Q,{resetStyle:!1});const R=null,se=xe=>{var je;const{menu:Qe,arrow:it,prefixCls:De,children:wt,trigger:et,disabled:Ot,dropdownRender:qe,getPopupContainer:Xe,overlayClassName:Ue,rootClassName:ke,overlayStyle:ie,open:$e,onOpenChange:Pe,visible:z,onVisibleChange:D,mouseEnterDelay:ue=.15,mouseLeaveDelay:ge=.1,autoAdjustOverflow:pe=!0,placement:ye="",overlay:Re,transitionName:Ze}=xe,{getPopupContainer:te,getPrefixCls:le,direction:tt,dropdown:nt}=o.useContext($.E_),ct=(0,W.ln)("Dropdown"),ut=o.useMemo(()=>{const Tt=le();return Ze!==void 0?Ze:ye.includes("top")?`${Tt}-slide-down`:`${Tt}-slide-up`},[le,ye,Ze]),Ge=o.useMemo(()=>ye?ye.includes("Center")?ye.slice(0,ye.indexOf("Center")):ye:tt==="rtl"?"bottomRight":"bottomLeft",[ye,tt]),yt=le("dropdown",De),ht=(0,I.Z)(yt),[Ce,Ye,b]=E(yt,ht),[,w]=(0,L.ZP)(),He=o.Children.only(S(wt)?o.createElement("span",null,wt):wt),q=(0,k.Tm)(He,{className:K()(`${yt}-trigger`,{[`${yt}-rtl`]:tt==="rtl"},He.props.className),disabled:(je=He.props.disabled)!==null&&je!==void 0?je:Ot}),be=Ot?[]:et,It=!!(be!=null&&be.includes("contextMenu")),[Be,rt]=(0,oe.Z)(!1,{value:$e!=null?$e:z}),ft=(0,re.Z)(Tt=>{Pe==null||Pe(Tt,{source:"trigger"}),D==null||D(Tt),rt(Tt)}),ve=K()(Ue,ke,Ye,b,ht,nt==null?void 0:nt.className,{[`${yt}-rtl`]:tt==="rtl"}),Se=(0,_.Z)({arrowPointAtCenter:typeof it=="object"&&it.pointAtCenter,autoAdjustOverflow:pe,offset:w.marginXXS,arrowWidth:it?w.sizePopupArrow:0,borderRadius:w.borderRadius}),We=o.useCallback(()=>{Qe!=null&&Qe.selectable&&(Qe!=null&&Qe.multiple)||(Pe==null||Pe(!1,{source:"menu"}),rt(!1))},[Qe==null?void 0:Qe.selectable,Qe==null?void 0:Qe.multiple]),ze=()=>{let Tt;return Qe!=null&&Qe.items?Tt=o.createElement(G.default,Object.assign({},Qe)):typeof Re=="function"?Tt=Re():Tt=Re,qe&&(Tt=qe(Tt)),Tt=o.Children.only(typeof Tt=="string"?o.createElement("span",null,Tt):Tt),o.createElement(F.J,{prefixCls:`${yt}-menu`,rootClassName:K()(b,ht),expandIcon:o.createElement("span",{className:`${yt}-menu-submenu-arrow`},tt==="rtl"?o.createElement(ne.Z,{className:`${yt}-menu-submenu-arrow-icon`}):o.createElement(j.Z,{className:`${yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:Kt=>{let{mode:Jt}=Kt}},Tt)},[M,dt]=(0,C.Cn)("Dropdown",ie==null?void 0:ie.zIndex);let Ee=o.createElement(g.Z,Object.assign({alignPoint:It},(0,l.Z)(xe,["rootClassName"]),{mouseEnterDelay:ue,mouseLeaveDelay:ge,visible:Be,builtinPlacements:Se,arrow:!!it,overlayClassName:ve,prefixCls:yt,getPopupContainer:Xe||te,transitionName:ut,trigger:be,overlay:ze,placement:Ge,onVisibleChange:ft,overlayStyle:Object.assign(Object.assign(Object.assign({},nt==null?void 0:nt.style),ie),{zIndex:M})}),q);return M&&(Ee=o.createElement(V.Z.Provider,{value:dt},Ee)),Ce(Ee)},we=(0,T.Z)(se,"align",void 0,"dropdown",xe=>xe),Ve=xe=>o.createElement(we,Object.assign({},xe),o.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ve;var lt=se},75727:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return T}});var o=d(19563),ne=d(59301),j=d(18785),fe=d(92310),K=d.n(fe),g=d(7939),re=d(48755),oe=d(44104),l=d(70045),C=function(k,W){var V={};for(var $ in k)Object.prototype.hasOwnProperty.call(k,$)&&W.indexOf($)<0&&(V[$]=k[$]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,$=Object.getOwnPropertySymbols(k);I<$.length;I++)W.indexOf($[I])<0&&Object.prototype.propertyIsEnumerable.call(k,$[I])&&(V[$[I]]=k[$[I]]);return V};const N=k=>{const{getPopupContainer:W,getPrefixCls:V,direction:$}=ne.useContext(re.E_),{prefixCls:I,type:G="default",danger:F,disabled:L,loading:ae,onClick:me,htmlType:de,children:Ie,className:Fe,menu:_e,arrow:Te,autoFocus:ee,overlay:B,trigger:A,align:X,open:J,onOpenChange:Q,placement:E,getPopupContainer:R,href:se,icon:we=ne.createElement(j.Z,null),title:Ve,buttonsRender:lt=ue=>ue,mouseEnterDelay:xe,mouseLeaveDelay:je,overlayClassName:Qe,overlayStyle:it,destroyPopupOnHide:De,dropdownRender:wt}=k,et=C(k,["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"]),Ot=V("dropdown",I),qe=`${Ot}-button`,Xe={menu:_e,arrow:Te,autoFocus:ee,align:X,disabled:L,trigger:L?[]:A,onOpenChange:Q,getPopupContainer:R||W,mouseEnterDelay:xe,mouseLeaveDelay:je,overlayClassName:Qe,overlayStyle:it,destroyPopupOnHide:De,dropdownRender:wt},{compactSize:Ue,compactItemClassnames:ke}=(0,l.ri)(Ot,$),ie=K()(qe,ke,Fe);"overlay"in k&&(Xe.overlay=B),"open"in k&&(Xe.open=J),"placement"in k?Xe.placement=E:Xe.placement=$==="rtl"?"bottomLeft":"bottomRight";const $e=ne.createElement(g.ZP,{type:G,danger:F,disabled:L,loading:ae,onClick:me,htmlType:de,href:se,title:Ve},Ie),Pe=ne.createElement(g.ZP,{type:G,danger:F,icon:we}),[z,D]=lt([$e,Pe]);return ne.createElement(oe.Z.Compact,Object.assign({className:ie,size:Ue,block:!0},et),z,ne.createElement(o.Z,Object.assign({},Xe),D))};N.__ANT_BUTTON=!0;var S=N;const _=o.Z;_.Button=S;var T=_},584:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return G}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(9017),K=d(17835),g=d(57700),oe=()=>{const[,F]=(0,g.ZP)(),[L]=(0,fe.Z)("Empty"),me=new K.FastColor(F.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(L==null?void 0:L.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},C=()=>{const[,F]=(0,g.ZP)(),[L]=(0,fe.Z)("Empty"),{colorFill:ae,colorFillTertiary:me,colorFillQuaternary:de,colorBgContainer:Ie}=F,{borderColor:Fe,shadowColor:_e,contentColor:Te}=(0,o.useMemo)(()=>({borderColor:new K.FastColor(ae).onBackground(Ie).toHexString(),shadowColor:new K.FastColor(me).onBackground(Ie).toHexString(),contentColor:new K.FastColor(de).onBackground(Ie).toHexString()}),[ae,me,de,Ie]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(L==null?void 0:L.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:_e,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:Fe},o.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"}),o.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:Te}))))},N=d(16931),S=d(51636);const _=F=>{const{componentCls:L,margin:ae,marginXS:me,marginXL:de,fontSize:Ie,lineHeight:Fe}=F;return{[L]:{marginInline:me,fontSize:Ie,lineHeight:Fe,textAlign:"center",[`${L}-image`]:{height:F.emptyImgHeight,marginBottom:me,opacity:F.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:F.colorTextDescription},[`${L}-footer`]:{marginTop:ae},"&-normal":{marginBlock:de,color:F.colorTextDescription,[`${L}-description`]:{color:F.colorTextDescription},[`${L}-image`]:{height:F.emptyImgHeightMD}},"&-small":{marginBlock:me,color:F.colorTextDescription,[`${L}-image`]:{height:F.emptyImgHeightSM}}}}};var T=(0,N.I$)("Empty",F=>{const{componentCls:L,controlHeightLG:ae,calc:me}=F,de=(0,S.mergeToken)(F,{emptyImgCls:`${L}-img`,emptyImgHeight:me(ae).mul(2.5).equal(),emptyImgHeightMD:ae,emptyImgHeightSM:me(ae).mul(.875).equal()});return[_(de)]}),k=d(48755),W=function(F,L){var ae={};for(var me in F)Object.prototype.hasOwnProperty.call(F,me)&&L.indexOf(me)<0&&(ae[me]=F[me]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,me=Object.getOwnPropertySymbols(F);de<me.length;de++)L.indexOf(me[de])<0&&Object.prototype.propertyIsEnumerable.call(F,me[de])&&(ae[me[de]]=F[me[de]]);return ae};const V=o.createElement(oe,null),$=o.createElement(C,null),I=F=>{const{className:L,rootClassName:ae,prefixCls:me,image:de=V,description:Ie,children:Fe,imageStyle:_e,style:Te,classNames:ee,styles:B}=F,A=W(F,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:X,direction:J,className:Q,style:E,classNames:R,styles:se}=(0,k.dj)("empty"),we=X("empty",me),[Ve,lt,xe]=T(we),[je]=(0,fe.Z)("Empty"),Qe=typeof Ie!="undefined"?Ie:je==null?void 0:je.description,it=typeof Qe=="string"?Qe:"empty";let De=null;return typeof de=="string"?De=o.createElement("img",{alt:it,src:de}):De=de,Ve(o.createElement("div",Object.assign({className:j()(lt,xe,we,Q,{[`${we}-normal`]:de===$,[`${we}-rtl`]:J==="rtl"},L,ae,R.root,ee==null?void 0:ee.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},se.root),E),B==null?void 0:B.root),Te)},A),o.createElement("div",{className:j()(`${we}-image`,R.image,ee==null?void 0:ee.image),style:Object.assign(Object.assign(Object.assign({},_e),se.image),B==null?void 0:B.image)},De),Qe&&o.createElement("div",{className:j()(`${we}-description`,R.description,ee==null?void 0:ee.description),style:Object.assign(Object.assign({},se.description),B==null?void 0:B.description)},Qe),Fe&&o.createElement("div",{className:j()(`${we}-footer`,R.footer,ee==null?void 0:ee.footer),style:Object.assign(Object.assign({},se.footer),B==null?void 0:B.footer)},Fe)))};I.PRESENTED_IMAGE_DEFAULT=V,I.PRESENTED_IMAGE_SIMPLE=$;var G=I},24971:function(mn,gt,d){"use strict";var o=d(59301),ne=d(56553),j=d(48755);const fe=function(K,g){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var oe,l;const{variant:C,[K]:N}=o.useContext(j.E_),S=o.useContext(ne.pg),_=N==null?void 0:N.variant;let T;typeof g!="undefined"?T=g:re===!1?T="borderless":T=(l=(oe=S!=null?S:_)!==null&&oe!==void 0?oe:C)!==null&&l!==void 0?l:"outlined";const k=j.tr.includes(T);return[T,k]};gt.Z=fe},28284:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return _t}});var o=d(56553),ne=d(77654),j=d(59301),fe=d(92310),K=d.n(fe),g=d(77900),re=d(86641),oe=d(83397);function l(Me){const[ot,vt]=j.useState(Me);return j.useEffect(()=>{const Et=setTimeout(()=>{vt(Me)},Me.length?0:10);return()=>{clearTimeout(Et)}},[Me]),ot}var C=d(36237),N=d(63356),S=d(34925),_=d(34961),T=d(51636),k=d(16931),V=Me=>{const{componentCls:ot}=Me,vt=`${ot}-show-help`,Et=`${ot}-show-help-item`;return{[vt]:{transition:`opacity ${Me.motionDurationFast} ${Me.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Et]:{overflow:"hidden",transition:`height ${Me.motionDurationFast} ${Me.motionEaseInOut},
|
|
|
opacity ${Me.motionDurationFast} ${Me.motionEaseInOut},
|
|
|
transform ${Me.motionDurationFast} ${Me.motionEaseInOut} !important`,[`&${Et}-appear, &${Et}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Et}-leave-active`]:{transform:"translateY(-5px)"}}}}};const $=Me=>({legend:{display:"block",width:"100%",marginBottom:Me.marginLG,padding:0,color:Me.colorTextDescription,fontSize:Me.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,C.unit)(Me.lineWidth)} ${Me.lineType} ${Me.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)(Me.controlOutlineWidth)} ${Me.controlOutline}`},output:{display:"block",paddingTop:15,color:Me.colorText,fontSize:Me.fontSize,lineHeight:Me.lineHeight}}),I=(Me,ot)=>{const{formItemCls:vt}=Me;return{[vt]:{[`${vt}-label > label`]:{height:ot},[`${vt}-control-input`]:{minHeight:ot}}}},G=Me=>{const{componentCls:ot}=Me;return{[Me.componentCls]:Object.assign(Object.assign(Object.assign({},(0,N.Wf)(Me)),$(Me)),{[`${ot}-text`]:{display:"inline-block",paddingInlineEnd:Me.paddingSM},"&-small":Object.assign({},I(Me,Me.controlHeightSM)),"&-large":Object.assign({},I(Me,Me.controlHeightLG))})}},F=Me=>{const{formItemCls:ot,iconCls:vt,rootPrefixCls:Et,antCls:Dt,labelRequiredMarkColor:Xt,labelColor:pn,labelFontSize:Sn,labelHeight:Zt,labelColonMarginInlineStart:yn,labelColonMarginInlineEnd:Nn,itemMarginBottom:_n}=Me;return{[ot]:Object.assign(Object.assign({},(0,N.Wf)(Me)),{marginBottom:_n,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Dt}-row`]:{display:"none"},"&-has-warning":{[`${ot}-split`]:{color:Me.colorError}},"&-has-error":{[`${ot}-split`]:{color:Me.colorWarning}},[`${ot}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Me.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Zt,color:pn,fontSize:Sn,[`> ${vt}`]:{fontSize:Me.fontSize,verticalAlign:"top"},[`&${ot}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Me.marginXXS,color:Xt,fontSize:Me.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${ot}-required-mark-hidden, &${ot}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${ot}-optional`]:{display:"inline-block",marginInlineStart:Me.marginXXS,color:Me.colorTextDescription,[`&${ot}-required-mark-hidden`]:{display:"none"}},[`${ot}-tooltip`]:{color:Me.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Me.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:yn,marginInlineEnd:Nn},[`&${ot}-no-colon::after`]:{content:'"\\a0"'}}},[`${ot}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Et}-col-'"]):not([class*="' ${Et}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Me.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ot]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Me.colorTextDescription,fontSize:Me.fontSize,lineHeight:Me.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Me.controlHeightSM,transition:`color ${Me.motionDurationMid} ${Me.motionEaseOut}`},"&-explain":{"&-error":{color:Me.colorError},"&-warning":{color:Me.colorWarning}}},[`&-with-help ${ot}-explain`]:{height:"auto",opacity:1},[`${ot}-feedback-icon`]:{fontSize:Me.fontSize,textAlign:"center",visibility:"visible",animationName:S.kr,animationDuration:Me.motionDurationMid,animationTimingFunction:Me.motionEaseOutBack,pointerEvents:"none","&-success":{color:Me.colorSuccess},"&-error":{color:Me.colorError},"&-warning":{color:Me.colorWarning},"&-validating":{color:Me.colorPrimary}}})}},L=(Me,ot)=>{const{formItemCls:vt}=Me;return{[`${ot}-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=Me=>{const{componentCls:ot,formItemCls:vt,inlineItemMarginBottom:Et}=Me;return{[`${ot}-inline`]:{display:"flex",flexWrap:"wrap",[vt]:{flex:"none",marginInlineEnd:Me.margin,marginBottom:Et,"&-row":{flexWrap:"nowrap"},[`> ${vt}-label,
|
|
|
> ${vt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${vt}-label`]:{flex:"none"},[`${ot}-text`]:{display:"inline-block"},[`${vt}-has-feedback`]:{display:"inline-block"}}}}},me=Me=>({padding:Me.verticalLabelPadding,margin:Me.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),de=Me=>{const{componentCls:ot,formItemCls:vt,rootPrefixCls:Et}=Me;return{[`${vt} ${vt}-label`]:me(Me),[`${ot}:not(${ot}-inline)`]:{[vt]:{flexWrap:"wrap",[`${vt}-label, ${vt}-control`]:{[`&:not([class*=" ${Et}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=Me=>{const{componentCls:ot,formItemCls:vt,antCls:Et}=Me;return{[`${ot}-vertical`]:{[`${vt}:not(${vt}-horizontal)`]:{[`${vt}-row`]:{flexDirection:"column"},[`${vt}-label > label`]:{height:"auto"},[`${vt}-control`]:{width:"100%"},[`${vt}-label,
|
|
|
${Et}-col-24${vt}-label,
|
|
|
${Et}-col-xl-24${vt}-label`]:me(Me)}},[`@media (max-width: ${(0,C.unit)(Me.screenXSMax)})`]:[de(Me),{[ot]:{[`${vt}:not(${vt}-horizontal)`]:{[`${Et}-col-xs-24${vt}-label`]:me(Me)}}}],[`@media (max-width: ${(0,C.unit)(Me.screenSMMax)})`]:{[ot]:{[`${vt}:not(${vt}-horizontal)`]:{[`${Et}-col-sm-24${vt}-label`]:me(Me)}}},[`@media (max-width: ${(0,C.unit)(Me.screenMDMax)})`]:{[ot]:{[`${vt}:not(${vt}-horizontal)`]:{[`${Et}-col-md-24${vt}-label`]:me(Me)}}},[`@media (max-width: ${(0,C.unit)(Me.screenLGMax)})`]:{[ot]:{[`${vt}:not(${vt}-horizontal)`]:{[`${Et}-col-lg-24${vt}-label`]:me(Me)}}}}},Fe=Me=>{const{formItemCls:ot,antCls:vt}=Me;return{[`${ot}-vertical`]:{[`${ot}-row`]:{flexDirection:"column"},[`${ot}-label > label`]:{height:"auto"},[`${ot}-control`]:{width:"100%"}},[`${ot}-vertical ${ot}-label,
|
|
|
${vt}-col-24${ot}-label,
|
|
|
${vt}-col-xl-24${ot}-label`]:me(Me),[`@media (max-width: ${(0,C.unit)(Me.screenXSMax)})`]:[de(Me),{[ot]:{[`${vt}-col-xs-24${ot}-label`]:me(Me)}}],[`@media (max-width: ${(0,C.unit)(Me.screenSMMax)})`]:{[ot]:{[`${vt}-col-sm-24${ot}-label`]:me(Me)}},[`@media (max-width: ${(0,C.unit)(Me.screenMDMax)})`]:{[ot]:{[`${vt}-col-md-24${ot}-label`]:me(Me)}},[`@media (max-width: ${(0,C.unit)(Me.screenLGMax)})`]:{[ot]:{[`${vt}-col-lg-24${ot}-label`]:me(Me)}}}},_e=Me=>({labelRequiredMarkColor:Me.colorError,labelColor:Me.colorTextHeading,labelFontSize:Me.fontSize,labelHeight:Me.controlHeight,labelColonMarginInlineStart:Me.marginXXS/2,labelColonMarginInlineEnd:Me.marginXS,itemMarginBottom:Me.marginLG,verticalLabelPadding:`0 0 ${Me.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Te=(Me,ot)=>(0,T.mergeToken)(Me,{formItemCls:`${Me.componentCls}-item`,rootPrefixCls:ot});var ee=(0,k.I$)("Form",(Me,ot)=>{let{rootPrefixCls:vt}=ot;const Et=Te(Me,vt);return[G(Et),F(Et),V(Et),L(Et,Et.componentCls),L(Et,Et.formItemCls),ae(Et),Ie(Et),Fe(Et),(0,_.Z)(Et),S.kr]},_e,{order:-1e3});const B=[];function A(Me,ot,vt){let Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Me=="string"?Me:`${ot}-${Et}`,error:Me,errorStatus:vt}}var J=Me=>{let{help:ot,helpStatus:vt,errors:Et=B,warnings:Dt=B,className:Xt,fieldId:pn,onVisibleChanged:Sn}=Me;const{prefixCls:Zt}=j.useContext(o.Rk),yn=`${Zt}-item-explain`,Nn=(0,oe.Z)(Zt),[_n,St,Ft]=ee(Zt,Nn),Vt=j.useMemo(()=>(0,re.Z)(Zt),[Zt]),Ut=l(Et),jt=l(Dt),qt=j.useMemo(()=>ot!=null?[A(ot,"help",vt)]:[].concat((0,ne.Z)(Ut.map((In,Mn)=>A(In,"error","error",Mn))),(0,ne.Z)(jt.map((In,Mn)=>A(In,"warning","warning",Mn)))),[ot,vt,Ut,jt]),sn=j.useMemo(()=>{const In={};return qt.forEach(Mn=>{let{key:dr}=Mn;In[dr]=(In[dr]||0)+1}),qt.map((Mn,dr)=>Object.assign(Object.assign({},Mn),{key:In[Mn.key]>1?`${Mn.key}-fallback-${dr}`:Mn.key}))},[qt]),on={};return pn&&(on.id=`${pn}_help`),_n(j.createElement(g.default,{motionDeadline:Vt.motionDeadline,motionName:`${Zt}-show-help`,visible:!!sn.length,onVisibleChanged:Sn},In=>{const{className:Mn,style:dr}=In;return j.createElement("div",Object.assign({},on,{className:K()(yn,Mn,Ft,Nn,Xt,St),style:dr}),j.createElement(g.CSSMotionList,Object.assign({keys:sn},(0,re.Z)(Zt),{motionName:`${Zt}-show-help-item`,component:!1}),jn=>{const{key:Kn,error:er,errorStatus:Qn,className:ar,style:Vn}=jn;return j.createElement("div",{key:Kn,className:K()(ar,{[`${yn}-${Qn}`]:Qn}),style:Vn},er)}))}))},Q=d(69180),E=d(48755),R=d(2171),se=d(31756),we=d(23069),Ve=d(76846),lt=d(16722);const xe=["parentNode"],je="form_item";function Qe(Me){return Me===void 0||Me===!1?[]:Array.isArray(Me)?Me:[Me]}function it(Me,ot){if(!Me.length)return;const vt=Me.join("_");return ot?`${ot}_${vt}`:xe.includes(vt)?`${je}_${vt}`:vt}function De(Me,ot,vt,Et,Dt,Xt){let pn=Et;return Xt!==void 0?pn=Xt:vt.validating?pn="validating":Me.length?pn="error":ot.length?pn="warning":(vt.touched||Dt&&vt.validated)&&(pn="success"),pn}var wt=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt};function et(Me){return Qe(Me).join("_")}function Ot(Me,ot){const vt=ot.getFieldInstance(Me),Et=(0,Ve.bn)(vt);if(Et)return Et;const Dt=it(Qe(Me),ot.__INTERNAL__.name);if(Dt)return document.getElementById(Dt)}function qe(Me){const[ot]=(0,Q.useForm)(),vt=j.useRef({}),Et=j.useMemo(()=>Me!=null?Me:Object.assign(Object.assign({},ot),{__INTERNAL__:{itemRef:Dt=>Xt=>{const pn=et(Dt);Xt?vt.current[pn]=Xt:delete vt.current[pn]}},scrollToField:function(Dt){let Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:pn}=Xt,Sn=wt(Xt,["focus"]),Zt=Ot(Dt,Et);Zt&&((0,lt.Z)(Zt,Object.assign({scrollMode:"if-needed",block:"nearest"},Sn)),pn&&Et.focusField(Dt))},focusField:Dt=>{var Xt,pn;const Sn=Et.getFieldInstance(Dt);typeof(Sn==null?void 0:Sn.focus)=="function"?Sn.focus():(pn=(Xt=Ot(Dt,Et))===null||Xt===void 0?void 0:Xt.focus)===null||pn===void 0||pn.call(Xt)},getFieldInstance:Dt=>{const Xt=et(Dt);return vt.current[Xt]}}),[Me,ot]);return[Et]}var Xe=d(98350),Ue=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt};const ke=(Me,ot)=>{const vt=j.useContext(R.Z),{getPrefixCls:Et,direction:Dt,requiredMark:Xt,colon:pn,scrollToFirstError:Sn,className:Zt,style:yn}=(0,E.dj)("form"),{prefixCls:Nn,className:_n,rootClassName:St,size:Ft,disabled:Vt=vt,form:Ut,colon:jt,labelAlign:qt,labelWrap:sn,labelCol:on,wrapperCol:In,hideRequiredMark:Mn,layout:dr="horizontal",scrollToFirstError:jn,requiredMark:Kn,onFinishFailed:er,name:Qn,style:ar,feedbackIcons:Vn,variant:qn}=Me,or=Ue(Me,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),cr=(0,se.Z)(Ft),rr=j.useContext(Xe.Z),nr=j.useMemo(()=>Kn!==void 0?Kn:Mn?!1:Xt!==void 0?Xt:!0,[Mn,Kn,Xt]),ir=jt!=null?jt:pn,Zn=Et("form",Nn),Mr=(0,oe.Z)(Zn),[$t,sr,hr]=ee(Zn,Mr),Yr=K()(Zn,`${Zn}-${dr}`,{[`${Zn}-hide-required-mark`]:nr===!1,[`${Zn}-rtl`]:Dt==="rtl",[`${Zn}-${cr}`]:cr},hr,Mr,sr,Zt,_n,St),[Kr]=qe(Ut),{__INTERNAL__:li}=Kr;li.name=Qn;const qr=j.useMemo(()=>({name:Qn,labelAlign:qt,labelCol:on,labelWrap:sn,wrapperCol:In,vertical:dr==="vertical",colon:ir,requiredMark:nr,itemRef:li.itemRef,form:Kr,feedbackIcons:Vn}),[Qn,qt,on,In,dr,ir,nr,Kr,Vn]),Hn=j.useRef(null);j.useImperativeHandle(ot,()=>{var ln;return Object.assign(Object.assign({},Kr),{nativeElement:(ln=Hn.current)===null||ln===void 0?void 0:ln.nativeElement})});const On=(ln,Un)=>{if(ln){let Yn={block:"nearest"};typeof ln=="object"&&(Yn=Object.assign(Object.assign({},Yn),ln)),Kr.scrollToField(Un,Yn)}},an=ln=>{if(er==null||er(ln),ln.errorFields.length){const Un=ln.errorFields[0].name;if(jn!==void 0){On(jn,Un);return}Sn!==void 0&&On(Sn,Un)}};return $t(j.createElement(o.pg.Provider,{value:qn},j.createElement(R.n,{disabled:Vt},j.createElement(we.Z.Provider,{value:cr},j.createElement(o.RV,{validateMessages:rr},j.createElement(o.q3.Provider,{value:qr},j.createElement(Q.default,Object.assign({id:Qn},or,{name:Qn,onFinishFailed:an,form:Kr,ref:Hn,style:Object.assign(Object.assign({},yn),ar),className:Yr}))))))))};var $e=j.forwardRef(ke),Pe=d(41799),z=d(8654),D=d(22703),ue=d(32383),ge=d(11592);function pe(Me){if(typeof Me=="function")return Me;const ot=(0,ge.Z)(Me);return ot.length<=1?ot[0]:ot}const ye=()=>{const{status:Me,errors:ot=[],warnings:vt=[]}=j.useContext(o.aM);return{status:Me,errors:ot,warnings:vt}};ye.Context=o.aM;var Re=ye,Ze=d(16089);function te(Me){const[ot,vt]=j.useState(Me),Et=j.useRef(null),Dt=j.useRef([]),Xt=j.useRef(!1);j.useEffect(()=>(Xt.current=!1,()=>{Xt.current=!0,Ze.Z.cancel(Et.current),Et.current=null}),[]);function pn(Sn){Xt.current||(Et.current===null&&(Dt.current=[],Et.current=(0,Ze.Z)(()=>{Et.current=null,vt(Zt=>{let yn=Zt;return Dt.current.forEach(Nn=>{yn=Nn(yn)}),yn})})),Dt.current.push(Sn))}return[ot,pn]}function le(){const{itemRef:Me}=j.useContext(o.q3),ot=j.useRef({});function vt(Et,Dt){const Xt=Dt&&typeof Dt=="object"&&(0,z.C4)(Dt),pn=Et.join("_");return(ot.current.name!==pn||ot.current.originRef!==Xt)&&(ot.current.name=pn,ot.current.originRef=Xt,ot.current.ref=(0,z.sQ)(Me(Et),Xt)),ot.current.ref}return vt}var tt=d(29194),nt=d(34280),ct=d(2738),ut=d(65970),Ge=d(70425),yt=d(5472);const ht=Me=>{const{formItemCls:ot}=Me;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ot}-control`]:{display:"flex"}}}};var Ce=(0,k.bk)(["Form","item-item"],(Me,ot)=>{let{rootPrefixCls:vt}=ot;const Et=Te(Me,vt);return[ht(Et)]}),Ye=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt};const b=24;var He=Me=>{const{prefixCls:ot,status:vt,labelCol:Et,wrapperCol:Dt,children:Xt,errors:pn,warnings:Sn,_internalItemRender:Zt,extra:yn,help:Nn,fieldId:_n,marginBottom:St,onErrorVisibleChanged:Ft,label:Vt}=Me,Ut=`${ot}-item`,jt=j.useContext(o.q3),qt=j.useMemo(()=>{let or=Object.assign({},Dt||jt.wrapperCol||{});return Vt===null&&!Et&&!Dt&&jt.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(rr=>{const nr=rr?[rr]:[],ir=(0,Ge.U2)(jt.labelCol,nr),Zn=typeof ir=="object"?ir:{},Mr=(0,Ge.U2)(or,nr),$t=typeof Mr=="object"?Mr:{};"span"in Zn&&!("offset"in $t)&&Zn.span<b&&(or=(0,Ge.t8)(or,[].concat(nr,["offset"]),Zn.span))}),or},[Dt,jt]),sn=K()(`${Ut}-control`,qt.className),on=j.useMemo(()=>{const{labelCol:or,wrapperCol:cr}=jt;return Ye(jt,["labelCol","wrapperCol"])},[jt]),In=j.useRef(null),[Mn,dr]=j.useState(0);(0,nt.Z)(()=>{yn&&In.current?dr(In.current.clientHeight):dr(0)},[yn]);const jn=j.createElement("div",{className:`${Ut}-control-input`},j.createElement("div",{className:`${Ut}-control-input-content`},Xt)),Kn=j.useMemo(()=>({prefixCls:ot,status:vt}),[ot,vt]),er=St!==null||pn.length||Sn.length?j.createElement(o.Rk.Provider,{value:Kn},j.createElement(J,{fieldId:_n,errors:pn,warnings:Sn,help:Nn,helpStatus:vt,className:`${Ut}-explain-connected`,onVisibleChanged:Ft})):null,Qn={};_n&&(Qn.id=`${_n}_extra`);const ar=yn?j.createElement("div",Object.assign({},Qn,{className:`${Ut}-extra`,ref:In}),yn):null,Vn=er||ar?j.createElement("div",{className:`${Ut}-additional`,style:St?{minHeight:St+Mn}:{}},er,ar):null,qn=Zt&&Zt.mark==="pro_table_render"&&Zt.render?Zt.render(Me,{input:jn,errorList:er,extra:ar}):j.createElement(j.Fragment,null,jn,Vn);return j.createElement(o.q3.Provider,{value:on},j.createElement(yt.Z,Object.assign({},qt,{className:sn}),qn),j.createElement(Ce,{prefixCls:ot}))},q=d(61485),be=d(9017),It=d(85981),Be=d(25399),rt=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt};function ft(Me){return Me?typeof Me=="object"&&!j.isValidElement(Me)?Me:{title:Me}:null}var Se=Me=>{let{prefixCls:ot,label:vt,htmlFor:Et,labelCol:Dt,labelAlign:Xt,colon:pn,required:Sn,requiredMark:Zt,tooltip:yn,vertical:Nn}=Me;var _n;const[St]=(0,be.Z)("Form"),{labelAlign:Ft,labelCol:Vt,labelWrap:Ut,colon:jt}=j.useContext(o.q3);if(!vt)return null;const qt=Dt||Vt||{},sn=Xt||Ft,on=`${ot}-item-label`,In=K()(on,sn==="left"&&`${on}-left`,qt.className,{[`${on}-wrap`]:!!Ut});let Mn=vt;const dr=pn===!0||jt!==!1&&pn!==!1;dr&&!Nn&&typeof vt=="string"&&vt.trim()&&(Mn=vt.replace(/[:|:]\s*$/,""));const Kn=ft(yn);if(Kn){const{icon:or=j.createElement(q.Z,null)}=Kn,cr=rt(Kn,["icon"]),rr=j.createElement(Be.Z,Object.assign({},cr),j.cloneElement(or,{className:`${ot}-item-tooltip`,title:"",onClick:nr=>{nr.preventDefault()},tabIndex:null}));Mn=j.createElement(j.Fragment,null,Mn,rr)}const er=Zt==="optional",Qn=typeof Zt=="function",ar=Zt===!1;Qn?Mn=Zt(Mn,{required:!!Sn}):er&&!Sn&&(Mn=j.createElement(j.Fragment,null,Mn,j.createElement("span",{className:`${ot}-item-optional`,title:""},(St==null?void 0:St.optional)||((_n=It.Z.Form)===null||_n===void 0?void 0:_n.optional))));let Vn;ar?Vn="hidden":(er||Qn)&&(Vn="optional");const qn=K()({[`${ot}-item-required`]:Sn,[`${ot}-item-required-mark-${Vn}`]:Vn,[`${ot}-item-no-colon`]:!dr});return j.createElement(yt.Z,Object.assign({},qt,{className:In}),j.createElement("label",{htmlFor:Et,className:qn,title:typeof vt=="string"?vt:""},Mn))},We=d(29679),ze=d(19248),M=d(96512),dt=d(58617);const Ee={success:We.Z,warning:M.Z,error:ze.Z,validating:dt.Z};function Tt(Me){let{children:ot,errors:vt,warnings:Et,hasFeedback:Dt,validateStatus:Xt,prefixCls:pn,meta:Sn,noStyle:Zt}=Me;const yn=`${pn}-item`,{feedbackIcons:Nn}=j.useContext(o.q3),_n=De(vt,Et,Sn,null,!!Dt,Xt),{isFormItemInput:St,status:Ft,hasFeedback:Vt,feedbackIcon:Ut}=j.useContext(o.aM),jt=j.useMemo(()=>{var qt;let sn;if(Dt){const In=Dt!==!0&&Dt.icons||Nn,Mn=_n&&((qt=In==null?void 0:In({status:_n,errors:vt,warnings:Et}))===null||qt===void 0?void 0:qt[_n]),dr=_n&&Ee[_n];sn=Mn!==!1&&dr?j.createElement("span",{className:K()(`${yn}-feedback-icon`,`${yn}-feedback-icon-${_n}`)},Mn||j.createElement(dr,null)):null}const on={status:_n||"",errors:vt,warnings:Et,hasFeedback:!!Dt,feedbackIcon:sn,isFormItemInput:!0};return Zt&&(on.status=(_n!=null?_n:Ft)||"",on.isFormItemInput=St,on.hasFeedback=!!(Dt!=null?Dt:Vt),on.feedbackIcon=Dt!==void 0?on.feedbackIcon:Ut),on},[_n,Dt,Zt,St,Ft]);return j.createElement(o.aM.Provider,{value:jt},ot)}var Kt=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt};function Jt(Me){const{prefixCls:ot,className:vt,rootClassName:Et,style:Dt,help:Xt,errors:pn,warnings:Sn,validateStatus:Zt,meta:yn,hasFeedback:Nn,hidden:_n,children:St,fieldId:Ft,required:Vt,isRequired:Ut,onSubItemMetaChange:jt,layout:qt}=Me,sn=Kt(Me,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),on=`${ot}-item`,{requiredMark:In,vertical:Mn}=j.useContext(o.q3),dr=Mn||qt==="vertical",jn=j.useRef(null),Kn=l(pn),er=l(Sn),Qn=Xt!=null,ar=!!(Qn||pn.length||Sn.length),Vn=!!jn.current&&(0,tt.Z)(jn.current),[qn,or]=j.useState(null);(0,nt.Z)(()=>{if(ar&&jn.current){const Zn=getComputedStyle(jn.current);or(parseInt(Zn.marginBottom,10))}},[ar,Vn]);const cr=Zn=>{Zn||or(null)},nr=function(){let Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Mr=Zn?Kn:yn.errors,$t=Zn?er:yn.warnings;return De(Mr,$t,yn,"",!!Nn,Zt)}(),ir=K()(on,vt,Et,{[`${on}-with-help`]:Qn||Kn.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`]:_n,[`${on}-${qt}`]:qt});return j.createElement("div",{className:ir,style:Dt,ref:jn},j.createElement(ut.Z,Object.assign({className:`${on}-row`},(0,ct.Z)(sn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),j.createElement(Se,Object.assign({htmlFor:Ft},Me,{requiredMark:In,required:Vt!=null?Vt:Ut,prefixCls:ot,vertical:dr})),j.createElement(He,Object.assign({},Me,yn,{errors:Kn,warnings:er,prefixCls:ot,status:nr,help:Xt,marginBottom:qn,onErrorVisibleChanged:cr}),j.createElement(o.qI.Provider,{value:jt},j.createElement(Tt,{prefixCls:ot,meta:yn,errors:yn.errors,warnings:yn.warnings,hasFeedback:Nn,validateStatus:nr},St)))),!!qn&&j.createElement("div",{className:`${on}-margin-offset`,style:{marginBottom:-qn}}))}const un="__SPLIT__",gn=null;function En(Me,ot){const vt=Object.keys(Me),Et=Object.keys(ot);return vt.length===Et.length&&vt.every(Dt=>{const Xt=Me[Dt],pn=ot[Dt];return Xt===pn||typeof Xt=="function"||typeof pn=="function"})}const Bn=j.memo(Me=>{let{children:ot}=Me;return ot},(Me,ot)=>En(Me.control,ot.control)&&Me.update===ot.update&&Me.childProps.length===ot.childProps.length&&Me.childProps.every((vt,Et)=>vt===ot.childProps[Et]));function Wn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Tn(Me){const{name:ot,noStyle:vt,className:Et,dependencies:Dt,prefixCls:Xt,shouldUpdate:pn,rules:Sn,children:Zt,required:yn,label:Nn,messageVariables:_n,trigger:St="onChange",validateTrigger:Ft,hidden:Vt,help:Ut,layout:jt}=Me,{getPrefixCls:qt}=j.useContext(E.E_),{name:sn}=j.useContext(o.q3),on=pe(Zt),In=typeof on=="function",Mn=j.useContext(o.qI),{validateTrigger:dr}=j.useContext(Q.FieldContext),jn=Ft!==void 0?Ft:dr,Kn=ot!=null,er=qt("form",Xt),Qn=(0,oe.Z)(er),[ar,Vn,qn]=ee(er,Qn),or=(0,ue.ln)("Form.Item"),cr=j.useContext(Q.ListContext),rr=j.useRef(null),[nr,ir]=te({}),[Zn,Mr]=(0,Pe.Z)(()=>Wn()),$t=Hn=>{const On=cr==null?void 0:cr.getKey(Hn.name);if(Mr(Hn.destroy?Wn():Hn,!0),vt&&Ut!==!1&&Mn){let an=Hn.name;if(Hn.destroy)an=rr.current||an;else if(On!==void 0){const[ln,Un]=On;an=[ln].concat((0,ne.Z)(Un)),rr.current=an}Mn(Hn,an)}},sr=(Hn,On)=>{ir(an=>{const ln=Object.assign({},an),Yn=[].concat((0,ne.Z)(Hn.name.slice(0,-1)),(0,ne.Z)(On)).join(un);return Hn.destroy?delete ln[Yn]:ln[Yn]=Hn,ln})},[hr,Yr]=j.useMemo(()=>{const Hn=(0,ne.Z)(Zn.errors),On=(0,ne.Z)(Zn.warnings);return Object.values(nr).forEach(an=>{Hn.push.apply(Hn,(0,ne.Z)(an.errors||[])),On.push.apply(On,(0,ne.Z)(an.warnings||[]))}),[Hn,On]},[nr,Zn.errors,Zn.warnings]),Kr=le();function li(Hn,On,an){return vt&&!Vt?j.createElement(Tt,{prefixCls:er,hasFeedback:Me.hasFeedback,validateStatus:Me.validateStatus,meta:Zn,errors:hr,warnings:Yr,noStyle:!0},Hn):j.createElement(Jt,Object.assign({key:"row"},Me,{className:K()(Et,qn,Qn,Vn),prefixCls:er,fieldId:On,isRequired:an,errors:hr,warnings:Yr,meta:Zn,onSubItemMetaChange:sr,layout:jt}),Hn)}if(!Kn&&!In&&!Dt)return ar(li(on));let qr={};return typeof Nn=="string"?qr.label=Nn:ot&&(qr.label=String(ot)),_n&&(qr=Object.assign(Object.assign({},qr),_n)),ar(j.createElement(Q.Field,Object.assign({},Me,{messageVariables:qr,trigger:St,validateTrigger:jn,onMetaChange:$t}),(Hn,On,an)=>{const ln=Qe(ot).length&&On?On.name:[],Un=it(ln,sn),Yn=yn!==void 0?yn:!!(Sn!=null&&Sn.some(Fn=>{if(Fn&&typeof Fn=="object"&&Fn.required&&!Fn.warningOnly)return!0;if(typeof Fn=="function"){const pr=Fn(an);return(pr==null?void 0:pr.required)&&!(pr!=null&&pr.warningOnly)}return!1})),lr=Object.assign({},Hn);let Rr=null;if(Array.isArray(on)&&Kn)Rr=on;else if(!(In&&(!(pn||Dt)||Kn))){if(!(Dt&&!In&&!Kn))if(j.isValidElement(on)){const Fn=Object.assign(Object.assign({},on.props),lr);if(Fn.id||(Fn.id=Un),Ut||hr.length>0||Yr.length>0||Me.extra){const Xr=[];(Ut||hr.length>0)&&Xr.push(`${Un}_help`),Me.extra&&Xr.push(`${Un}_extra`),Fn["aria-describedby"]=Xr.join(" ")}hr.length>0&&(Fn["aria-invalid"]="true"),Yn&&(Fn["aria-required"]="true"),(0,z.Yr)(on)&&(Fn.ref=Kr(ln,on)),new Set([].concat((0,ne.Z)(Qe(St)),(0,ne.Z)(Qe(jn)))).forEach(Xr=>{Fn[Xr]=function(){for(var pi,Li,Gr,Ii,Jr,bi=arguments.length,ri=new Array(bi),di=0;di<bi;di++)ri[di]=arguments[di];(Gr=lr[Xr])===null||Gr===void 0||(pi=Gr).call.apply(pi,[lr].concat(ri)),(Jr=(Ii=on.props)[Xr])===null||Jr===void 0||(Li=Jr).call.apply(Li,[Ii].concat(ri))}});const Dr=[Fn["aria-required"],Fn["aria-invalid"],Fn["aria-describedby"]];Rr=j.createElement(Bn,{control:lr,update:on,childProps:Dr},(0,D.Tm)(on,Fn))}else In&&(pn||Dt)&&!Kn?Rr=on(an):Rr=on}return li(Rr,Un,Yn)}))}const Jn=Tn;Jn.useStatus=Re;var vn=Jn,Gt=function(Me,ot){var vt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&ot.indexOf(Et)<0&&(vt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Et=Object.getOwnPropertySymbols(Me);Dt<Et.length;Dt++)ot.indexOf(Et[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[Dt])&&(vt[Et[Dt]]=Me[Et[Dt]]);return vt},Dn=Me=>{var{prefixCls:ot,children:vt}=Me,Et=Gt(Me,["prefixCls","children"]);const{getPrefixCls:Dt}=j.useContext(E.E_),Xt=Dt("form",ot),pn=j.useMemo(()=>({prefixCls:Xt,status:"error"}),[Xt]);return j.createElement(Q.List,Object.assign({},Et),(Sn,Zt,yn)=>j.createElement(o.Rk.Provider,{value:pn},vt(Sn.map(Nn=>Object.assign(Object.assign({},Nn),{fieldKey:Nn.key})),Zt,{errors:yn.errors,warnings:yn.warnings})))};function An(){const{form:Me}=j.useContext(o.q3);return Me}const bt=$e;bt.Item=vn,bt.List=Dn,bt.ErrorList=J,bt.useForm=qe,bt.useFormInstance=An,bt.useWatch=Q.useWatch,bt.Provider=o.RV,bt.create=()=>{};var _t=bt},49397:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return F}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(36901),K=d(8654),g=d(62487),re=d(86013),oe=d(82855),l=d(48755),C=d(2171),N=d(83397),S=d(31756),_=d(56553),T=d(24971),k=d(70045),W=d(23826),V=d(53075);function $(L){return!!(L.prefix||L.suffix||L.allowClear||L.showCount)}var I=function(L,ae){var me={};for(var de in L)Object.prototype.hasOwnProperty.call(L,de)&&ae.indexOf(de)<0&&(me[de]=L[de]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,de=Object.getOwnPropertySymbols(L);Ie<de.length;Ie++)ae.indexOf(de[Ie])<0&&Object.prototype.propertyIsEnumerable.call(L,de[Ie])&&(me[de[Ie]]=L[de[Ie]]);return me},F=(0,o.forwardRef)((L,ae)=>{const{prefixCls:me,bordered:de=!0,status:Ie,size:Fe,disabled:_e,onBlur:Te,onFocus:ee,suffix:B,allowClear:A,addonAfter:X,addonBefore:J,className:Q,style:E,styles:R,rootClassName:se,onChange:we,classNames:Ve,variant:lt}=L,xe=I(L,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:je,direction:Qe,allowClear:it,autoComplete:De,className:wt,style:et,classNames:Ot,styles:qe}=(0,l.dj)("input"),Xe=je("input",me),Ue=(0,o.useRef)(null),ke=(0,N.Z)(Xe),[ie,$e,Pe]=(0,V.TI)(Xe,se),[z]=(0,V.ZP)(Xe,ke),{compactSize:D,compactItemClassnames:ue}=(0,k.ri)(Xe,Qe),ge=(0,S.Z)(w=>{var He;return(He=Fe!=null?Fe:D)!==null&&He!==void 0?He:w}),pe=o.useContext(C.Z),ye=_e!=null?_e:pe,{status:Re,hasFeedback:Ze,feedbackIcon:te}=(0,o.useContext)(_.aM),le=(0,oe.F)(Re,Ie),tt=$(L)||!!Ze,nt=(0,o.useRef)(tt),ct=(0,W.Z)(Ue,!0),ut=w=>{ct(),Te==null||Te(w)},Ge=w=>{ct(),ee==null||ee(w)},yt=w=>{ct(),we==null||we(w)},ht=(Ze||B)&&o.createElement(o.Fragment,null,B,Ze&&te),Ce=(0,re.Z)(A!=null?A:it),[Ye,b]=(0,T.Z)("input",lt,de);return ie(z(o.createElement(fe.default,Object.assign({ref:(0,K.sQ)(ae,Ue),prefixCls:Xe,autoComplete:De},xe,{disabled:ye,onBlur:ut,onFocus:Ge,style:Object.assign(Object.assign({},et),E),styles:Object.assign(Object.assign({},qe),R),suffix:ht,allowClear:Ce,className:j()(Q,se,Pe,ke,ue,wt),onChange:yt,addonBefore:J&&o.createElement(g.Z,{form:!0,space:!0},J),addonAfter:X&&o.createElement(g.Z,{form:!0,space:!0},X),classNames:Object.assign(Object.assign(Object.assign({},Ve),Ot),{input:j()({[`${Xe}-sm`]:ge==="small",[`${Xe}-lg`]:ge==="large",[`${Xe}-rtl`]:Qe==="rtl"},Ve==null?void 0:Ve.input,Ot.input,$e),variant:j()({[`${Xe}-${Ye}`]:b},(0,oe.Z)(Xe,le)),affixWrapper:j()({[`${Xe}-affix-wrapper-sm`]:ge==="small",[`${Xe}-affix-wrapper-lg`]:ge==="large",[`${Xe}-affix-wrapper-rtl`]:Qe==="rtl"},$e),wrapper:j()({[`${Xe}-group-rtl`]:Qe==="rtl"},$e),groupWrapper:j()({[`${Xe}-group-wrapper-sm`]:ge==="small",[`${Xe}-group-wrapper-lg`]:ge==="large",[`${Xe}-group-wrapper-rtl`]:Qe==="rtl",[`${Xe}-group-wrapper-${Ye}`]:b},(0,oe.Z)(`${Xe}-group-wrapper`,le,Ze),$e)})}))))})},79809:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ae}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(22711),K=d(86013),g=d(82855),re=d(48755),oe=d(2171),l=d(83397),C=d(31756),N=d(56553),S=d(24971),_=d(70045),T=d(30292),k=d(53075),W=d(16931),V=d(51636),$=d(64910);const I=me=>{const{componentCls:de,paddingLG:Ie}=me,Fe=`${de}-textarea`;return{[`textarea${de}`]:{maxWidth:"100%",height:"auto",minHeight:me.controlHeight,lineHeight:me.lineHeight,verticalAlign:"bottom",transition:`all ${me.motionDurationSlow}`,resize:"vertical",[`&${de}-mouse-active`]:{transition:`all ${me.motionDurationSlow}, height 0s, width 0s`}},[`${de}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Fe]:{position:"relative","&-show-count":{[`> ${de}`]:{height:"100%"},[`${de}-data-count`]:{position:"absolute",bottom:me.calc(me.fontSize).mul(me.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:me.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${de},
|
|
|
&-affix-wrapper${Fe}-has-feedback ${de}
|
|
|
`]:{paddingInlineEnd:Ie},[`&-affix-wrapper${de}-affix-wrapper`]:{padding:0,[`> textarea${de}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:me.calc(me.controlHeight).sub(me.calc(me.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${de}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${de}-clear-icon`]:{position:"absolute",insetInlineEnd:me.paddingInline,insetBlockStart:me.paddingXS},[`${Fe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:me.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${de}-affix-wrapper-sm`]:{[`${de}-suffix`]:{[`${de}-clear-icon`]:{insetInlineEnd:me.paddingInlineSM}}}}}};var G=(0,W.I$)(["Input","TextArea"],me=>{const de=(0,V.mergeToken)(me,(0,$.e)(me));return[I(de)]},$.T,{resetFont:!1}),F=function(me,de){var Ie={};for(var Fe in me)Object.prototype.hasOwnProperty.call(me,Fe)&&de.indexOf(Fe)<0&&(Ie[Fe]=me[Fe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Fe=Object.getOwnPropertySymbols(me);_e<Fe.length;_e++)de.indexOf(Fe[_e])<0&&Object.prototype.propertyIsEnumerable.call(me,Fe[_e])&&(Ie[Fe[_e]]=me[Fe[_e]]);return Ie},ae=(0,o.forwardRef)((me,de)=>{var Ie;const{prefixCls:Fe,bordered:_e=!0,size:Te,disabled:ee,status:B,allowClear:A,classNames:X,rootClassName:J,className:Q,style:E,styles:R,variant:se,showCount:we,onMouseDown:Ve,onResize:lt}=me,xe=F(me,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:je,direction:Qe,allowClear:it,autoComplete:De,className:wt,style:et,classNames:Ot,styles:qe}=(0,re.dj)("textArea"),Xe=o.useContext(oe.Z),Ue=ee!=null?ee:Xe,{status:ke,hasFeedback:ie,feedbackIcon:$e}=o.useContext(N.aM),Pe=(0,g.F)(ke,B),z=o.useRef(null);o.useImperativeHandle(de,()=>{var b;return{resizableTextArea:(b=z.current)===null||b===void 0?void 0:b.resizableTextArea,focus:w=>{var He,q;(0,T.nH)((q=(He=z.current)===null||He===void 0?void 0:He.resizableTextArea)===null||q===void 0?void 0:q.textArea,w)},blur:()=>{var w;return(w=z.current)===null||w===void 0?void 0:w.blur()}}});const D=je("input",Fe),ue=(0,l.Z)(D),[ge,pe,ye]=(0,k.TI)(D,J),[Re]=G(D,ue),{compactSize:Ze,compactItemClassnames:te}=(0,_.ri)(D,Qe),le=(0,C.Z)(b=>{var w;return(w=Te!=null?Te:Ze)!==null&&w!==void 0?w:b}),[tt,nt]=(0,S.Z)("textArea",se,_e),ct=(0,K.Z)(A!=null?A:it),[ut,Ge]=o.useState(!1),[yt,ht]=o.useState(!1),Ce=b=>{Ge(!0),Ve==null||Ve(b);const w=()=>{Ge(!1),document.removeEventListener("mouseup",w)};document.addEventListener("mouseup",w)},Ye=b=>{var w,He;if(lt==null||lt(b),ut&&typeof getComputedStyle=="function"){const q=(He=(w=z.current)===null||w===void 0?void 0:w.nativeElement)===null||He===void 0?void 0:He.querySelector("textarea");q&&getComputedStyle(q).resize==="both"&&ht(!0)}};return ge(Re(o.createElement(fe.default,Object.assign({autoComplete:De},xe,{style:Object.assign(Object.assign({},et),E),styles:Object.assign(Object.assign({},qe),R),disabled:Ue,allowClear:ct,className:j()(ye,ue,Q,J,te,wt,yt&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},X),Ot),{textarea:j()({[`${D}-sm`]:le==="small",[`${D}-lg`]:le==="large"},pe,X==null?void 0:X.textarea,Ot.textarea,ut&&`${D}-mouse-active`),variant:j()({[`${D}-${tt}`]:nt},(0,g.Z)(D,Pe)),affixWrapper:j()(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:Qe==="rtl",[`${D}-affix-wrapper-sm`]:le==="small",[`${D}-affix-wrapper-lg`]:le==="large",[`${D}-textarea-show-count`]:we||((Ie=me.count)===null||Ie===void 0?void 0:Ie.show)},pe)}),prefixCls:D,suffix:ie&&o.createElement("span",{className:`${D}-textarea-suffix`},$e),showCount:we,ref:z,onResize:Ye,onMouseDown:Ce}))))})},23826:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ne}});var o=d(59301);function ne(j,fe){const K=(0,o.useRef)([]),g=()=>{K.current.push(setTimeout(()=>{var re,oe,l,C;!((re=j.current)===null||re===void 0)&&re.input&&((oe=j.current)===null||oe===void 0?void 0:oe.input.getAttribute("type"))==="password"&&(!((l=j.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((C=j.current)===null||C===void 0||C.input.removeAttribute("value"))}))};return(0,o.useEffect)(()=>(fe&&g(),()=>K.current.forEach(re=>{re&&clearTimeout(re)})),[]),g}},37568:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return Ot}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(48755),K=d(56553),g=d(53075),oe=qe=>{const{getPrefixCls:Xe,direction:Ue}=(0,o.useContext)(fe.E_),{prefixCls:ke,className:ie}=qe,$e=Xe("input-group",ke),Pe=Xe("input"),[z,D,ue]=(0,g.ZP)(Pe),ge=j()($e,ue,{[`${$e}-lg`]:qe.size==="large",[`${$e}-sm`]:qe.size==="small",[`${$e}-compact`]:qe.compact,[`${$e}-rtl`]:Ue==="rtl"},D,ie),pe=(0,o.useContext)(K.aM),ye=(0,o.useMemo)(()=>Object.assign(Object.assign({},pe),{isFormItemInput:!1}),[pe]);return z(o.createElement("span",{className:ge,style:qe.style,onMouseEnter:qe.onMouseEnter,onMouseLeave:qe.onMouseLeave,onFocus:qe.onFocus,onBlur:qe.onBlur},o.createElement(K.aM.Provider,{value:ye},qe.children)))},l=d(49397),C=d(77654),N=d(6089),S=d(26112),_=d(82855),T=d(31756),k=d(16931),W=d(51636),V=d(64910);const $=qe=>{const{componentCls:Xe,paddingXS:Ue}=qe;return{[Xe]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Ue,"&-rtl":{direction:"rtl"},[`${Xe}-input`]:{textAlign:"center",paddingInline:qe.paddingXXS},[`&${Xe}-sm ${Xe}-input`]:{paddingInline:qe.calc(qe.paddingXXS).div(2).equal()},[`&${Xe}-lg ${Xe}-input`]:{paddingInline:qe.paddingXS}}}};var I=(0,k.I$)(["Input","OTP"],qe=>{const Xe=(0,W.mergeToken)(qe,(0,V.e)(qe));return[$(Xe)]},V.T),G=d(16089),F=function(qe,Xe){var Ue={};for(var ke in qe)Object.prototype.hasOwnProperty.call(qe,ke)&&Xe.indexOf(ke)<0&&(Ue[ke]=qe[ke]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ke=Object.getOwnPropertySymbols(qe);ie<ke.length;ie++)Xe.indexOf(ke[ie])<0&&Object.prototype.propertyIsEnumerable.call(qe,ke[ie])&&(Ue[ke[ie]]=qe[ke[ie]]);return Ue},ae=o.forwardRef((qe,Xe)=>{const{value:Ue,onChange:ke,onActiveChange:ie,index:$e,mask:Pe}=qe,z=F(qe,["value","onChange","onActiveChange","index","mask"]),D=Ue&&typeof Pe=="string"?Pe:Ue,ue=Ze=>{ke($e,Ze.target.value)},ge=o.useRef(null);o.useImperativeHandle(Xe,()=>ge.current);const pe=()=>{(0,G.Z)(()=>{var Ze;const te=(Ze=ge.current)===null||Ze===void 0?void 0:Ze.input;document.activeElement===te&&te&&te.select()})},ye=Ze=>{const{key:te,ctrlKey:le,metaKey:tt}=Ze;te==="ArrowLeft"?ie($e-1):te==="ArrowRight"?ie($e+1):te==="z"&&(le||tt)&&Ze.preventDefault(),pe()},Re=Ze=>{Ze.key==="Backspace"&&!Ue&&ie($e-1),pe()};return o.createElement(l.Z,Object.assign({type:Pe===!0?"password":"text"},z,{ref:ge,value:D,onInput:ue,onFocus:pe,onKeyDown:ye,onKeyUp:Re,onMouseDown:pe,onMouseUp:pe}))}),me=function(qe,Xe){var Ue={};for(var ke in qe)Object.prototype.hasOwnProperty.call(qe,ke)&&Xe.indexOf(ke)<0&&(Ue[ke]=qe[ke]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ke=Object.getOwnPropertySymbols(qe);ie<ke.length;ie++)Xe.indexOf(ke[ie])<0&&Object.prototype.propertyIsEnumerable.call(qe,ke[ie])&&(Ue[ke[ie]]=qe[ke[ie]]);return Ue};function de(qe){return(qe||"").split("")}const Ie=qe=>{const{index:Xe,prefixCls:Ue,separator:ke}=qe,ie=typeof ke=="function"?ke(Xe):ke;return ie?o.createElement("span",{className:`${Ue}-separator`},ie):null};var _e=o.forwardRef((qe,Xe)=>{const{prefixCls:Ue,length:ke=6,size:ie,defaultValue:$e,value:Pe,onChange:z,formatter:D,separator:ue,variant:ge,disabled:pe,status:ye,autoFocus:Re,mask:Ze,type:te,onInput:le,inputMode:tt}=qe,nt=me(qe,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:ct,direction:ut}=o.useContext(fe.E_),Ge=ct("otp",Ue),yt=(0,S.Z)(nt,{aria:!0,data:!0,attr:!0}),[ht,Ce,Ye]=I(Ge),b=(0,T.Z)(dt=>ie!=null?ie:dt),w=o.useContext(K.aM),He=(0,_.F)(w.status,ye),q=o.useMemo(()=>Object.assign(Object.assign({},w),{status:He,hasFeedback:!1,feedbackIcon:null}),[w,He]),be=o.useRef(null),It=o.useRef({});o.useImperativeHandle(Xe,()=>({focus:()=>{var dt;(dt=It.current[0])===null||dt===void 0||dt.focus()},blur:()=>{var dt;for(let Ee=0;Ee<ke;Ee+=1)(dt=It.current[Ee])===null||dt===void 0||dt.blur()},nativeElement:be.current}));const Be=dt=>D?D(dt):dt,[rt,ft]=o.useState(()=>de(Be($e||"")));o.useEffect(()=>{Pe!==void 0&&ft(de(Pe))},[Pe]);const ve=(0,N.Z)(dt=>{ft(dt),le&&le(dt),z&&dt.length===ke&&dt.every(Ee=>Ee)&&dt.some((Ee,Tt)=>rt[Tt]!==Ee)&&z(dt.join(""))}),Se=(0,N.Z)((dt,Ee)=>{let Tt=(0,C.Z)(rt);for(let Jt=0;Jt<dt;Jt+=1)Tt[Jt]||(Tt[Jt]="");Ee.length<=1?Tt[dt]=Ee:Tt=Tt.slice(0,dt).concat(de(Ee)),Tt=Tt.slice(0,ke);for(let Jt=Tt.length-1;Jt>=0&&!Tt[Jt];Jt-=1)Tt.pop();const Kt=Be(Tt.map(Jt=>Jt||" ").join(""));return Tt=de(Kt).map((Jt,un)=>Jt===" "&&!Tt[un]?Tt[un]:Jt),Tt}),We=(dt,Ee)=>{var Tt;const Kt=Se(dt,Ee),Jt=Math.min(dt+Ee.length,ke-1);Jt!==dt&&Kt[dt]!==void 0&&((Tt=It.current[Jt])===null||Tt===void 0||Tt.focus()),ve(Kt)},ze=dt=>{var Ee;(Ee=It.current[dt])===null||Ee===void 0||Ee.focus()},M={variant:ge,disabled:pe,status:He,mask:Ze,type:te,inputMode:tt};return ht(o.createElement("div",Object.assign({},yt,{ref:be,className:j()(Ge,{[`${Ge}-sm`]:b==="small",[`${Ge}-lg`]:b==="large",[`${Ge}-rtl`]:ut==="rtl"},Ye,Ce)}),o.createElement(K.aM.Provider,{value:q},Array.from({length:ke}).map((dt,Ee)=>{const Tt=`otp-${Ee}`,Kt=rt[Ee]||"";return o.createElement(o.Fragment,{key:Tt},o.createElement(ae,Object.assign({ref:Jt=>{It.current[Ee]=Jt},index:Ee,size:b,htmlSize:1,className:`${Ge}-input`,onChange:We,value:Kt,onActiveChange:ze,autoFocus:Ee===0&&Re},M)),Ee<ke-1&&o.createElement(Ie,{separator:ue,index:Ee,prefixCls:Ge}))}))))}),Te=d(73331),ee=d(15277),B=d(2738),A=d(8654),X=d(2171),J=d(23826),Q=function(qe,Xe){var Ue={};for(var ke in qe)Object.prototype.hasOwnProperty.call(qe,ke)&&Xe.indexOf(ke)<0&&(Ue[ke]=qe[ke]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ke=Object.getOwnPropertySymbols(qe);ie<ke.length;ie++)Xe.indexOf(ke[ie])<0&&Object.prototype.propertyIsEnumerable.call(qe,ke[ie])&&(Ue[ke[ie]]=qe[ke[ie]]);return Ue};const E=qe=>qe?o.createElement(ee.Z,null):o.createElement(Te.Z,null),R={click:"onClick",hover:"onMouseOver"};var we=o.forwardRef((qe,Xe)=>{const{disabled:Ue,action:ke="click",visibilityToggle:ie=!0,iconRender:$e=E}=qe,Pe=o.useContext(X.Z),z=Ue!=null?Ue:Pe,D=typeof ie=="object"&&ie.visible!==void 0,[ue,ge]=(0,o.useState)(()=>D?ie.visible:!1),pe=(0,o.useRef)(null);o.useEffect(()=>{D&&ge(ie.visible)},[D,ie]);const ye=(0,J.Z)(pe),Re=()=>{var b;if(z)return;ue&&ye();const w=!ue;ge(w),typeof ie=="object"&&((b=ie.onVisibleChange)===null||b===void 0||b.call(ie,w))},Ze=b=>{const w=R[ke]||"",He=$e(ue),q={[w]:Re,className:`${b}-icon`,key:"passwordIcon",onMouseDown:be=>{be.preventDefault()},onMouseUp:be=>{be.preventDefault()}};return o.cloneElement(o.isValidElement(He)?He:o.createElement("span",null,He),q)},{className:te,prefixCls:le,inputPrefixCls:tt,size:nt}=qe,ct=Q(qe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ut}=o.useContext(fe.E_),Ge=ut("input",tt),yt=ut("input-password",le),ht=ie&&Ze(yt),Ce=j()(yt,te,{[`${yt}-${nt}`]:!!nt}),Ye=Object.assign(Object.assign({},(0,B.Z)(ct,["suffix","iconRender","visibilityToggle"])),{type:ue?"text":"password",className:Ce,prefixCls:Ge,suffix:ht});return nt&&(Ye.size=nt),o.createElement(l.Z,Object.assign({ref:(0,A.sQ)(Xe,pe)},Ye))}),Ve=d(47472),lt=d(22703),xe=d(7939),je=d(70045),Qe=function(qe,Xe){var Ue={};for(var ke in qe)Object.prototype.hasOwnProperty.call(qe,ke)&&Xe.indexOf(ke)<0&&(Ue[ke]=qe[ke]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ke=Object.getOwnPropertySymbols(qe);ie<ke.length;ie++)Xe.indexOf(ke[ie])<0&&Object.prototype.propertyIsEnumerable.call(qe,ke[ie])&&(Ue[ke[ie]]=qe[ke[ie]]);return Ue},De=o.forwardRef((qe,Xe)=>{const{prefixCls:Ue,inputPrefixCls:ke,className:ie,size:$e,suffix:Pe,enterButton:z=!1,addonAfter:D,loading:ue,disabled:ge,onSearch:pe,onChange:ye,onCompositionStart:Re,onCompositionEnd:Ze}=qe,te=Qe(qe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:le,direction:tt}=o.useContext(fe.E_),nt=o.useRef(!1),ct=le("input-search",Ue),ut=le("input",ke),{compactSize:Ge}=(0,je.ri)(ct,tt),yt=(0,T.Z)(We=>{var ze;return(ze=$e!=null?$e:Ge)!==null&&ze!==void 0?ze:We}),ht=o.useRef(null),Ce=We=>{We!=null&&We.target&&We.type==="click"&&pe&&pe(We.target.value,We,{source:"clear"}),ye==null||ye(We)},Ye=We=>{var ze;document.activeElement===((ze=ht.current)===null||ze===void 0?void 0:ze.input)&&We.preventDefault()},b=We=>{var ze,M;pe&&pe((M=(ze=ht.current)===null||ze===void 0?void 0:ze.input)===null||M===void 0?void 0:M.value,We,{source:"input"})},w=We=>{nt.current||ue||b(We)},He=typeof z=="boolean"?o.createElement(Ve.Z,null):null,q=`${ct}-button`;let be;const It=z||{},Be=It.type&&It.type.__ANT_BUTTON===!0;Be||It.type==="button"?be=(0,lt.Tm)(It,Object.assign({onMouseDown:Ye,onClick:We=>{var ze,M;(M=(ze=It==null?void 0:It.props)===null||ze===void 0?void 0:ze.onClick)===null||M===void 0||M.call(ze,We),b(We)},key:"enterButton"},Be?{className:q,size:yt}:{})):be=o.createElement(xe.ZP,{className:q,type:z?"primary":void 0,size:yt,disabled:ge,key:"enterButton",onMouseDown:Ye,onClick:b,loading:ue,icon:He},z),D&&(be=[be,(0,lt.Tm)(D,{key:"addonAfter"})]);const rt=j()(ct,{[`${ct}-rtl`]:tt==="rtl",[`${ct}-${yt}`]:!!yt,[`${ct}-with-button`]:!!z},ie),ft=Object.assign(Object.assign({},te),{className:rt,prefixCls:ut,type:"search"}),ve=We=>{nt.current=!0,Re==null||Re(We)},Se=We=>{nt.current=!1,Ze==null||Ze(We)};return o.createElement(l.Z,Object.assign({ref:(0,A.sQ)(ht,Xe),onPressEnter:w},ft,{size:yt,onCompositionStart:ve,onCompositionEnd:Se,addonAfter:be,suffix:Pe,onChange:Ce,disabled:ge}))}),wt=d(79809);const et=l.Z;et.Group=oe,et.Search=De,et.TextArea=wt.Z,et.Password=we,et.OTP=_e;var Ot=et},53075:function(mn,gt,d){"use strict";d.d(gt,{TI:function(){return G},ik:function(){return S},nz:function(){return oe},s7:function(){return _},x0:function(){return N}});var o=d(36237),ne=d(63356),j=d(56119),fe=d(16931),K=d(51636),g=d(64910),re=d(39082);const oe=F=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:F,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l=F=>({borderColor:F.activeBorderColor,boxShadow:F.activeShadow,outline:0,backgroundColor:F.activeBg}),C=F=>{const{paddingBlockLG:L,lineHeightLG:ae,borderRadiusLG:me,paddingInlineLG:de}=F;return{padding:`${(0,o.unit)(L)} ${(0,o.unit)(de)}`,fontSize:F.inputFontSizeLG,lineHeight:ae,borderRadius:me}},N=F=>({padding:`${(0,o.unit)(F.paddingBlockSM)} ${(0,o.unit)(F.paddingInlineSM)}`,fontSize:F.inputFontSizeSM,borderRadius:F.borderRadiusSM}),S=F=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,o.unit)(F.paddingBlock)} ${(0,o.unit)(F.paddingInline)}`,color:F.colorText,fontSize:F.inputFontSize,lineHeight:F.lineHeight,borderRadius:F.borderRadius,transition:`all ${F.motionDurationMid}`},oe(F.colorTextPlaceholder)),{"&-lg":Object.assign({},C(F)),"&-sm":Object.assign({},N(F)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),_=F=>{const{componentCls:L,antCls:ae}=F;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:F.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${L}, &-lg > ${L}-group-addon`]:Object.assign({},C(F)),[`&-sm ${L}, &-sm > ${L}-group-addon`]:Object.assign({},N(F)),[`&-lg ${ae}-select-single ${ae}-select-selector`]:{height:F.controlHeightLG},[`&-sm ${ae}-select-single ${ae}-select-selector`]:{height:F.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,o.unit)(F.paddingInline)}`,color:F.colorText,fontWeight:"normal",fontSize:F.inputFontSize,textAlign:"center",borderRadius:F.borderRadius,transition:`all ${F.motionDurationSlow}`,lineHeight:1,[`${ae}-select`]:{margin:`${(0,o.unit)(F.calc(F.paddingBlock).add(1).mul(-1).equal())} ${(0,o.unit)(F.calc(F.paddingInline).mul(-1).equal())}`,[`&${ae}-select-single:not(${ae}-select-customize-input):not(${ae}-pagination-size-changer)`]:{[`${ae}-select-selector`]:{backgroundColor:"inherit",border:`${(0,o.unit)(F.lineWidth)} ${F.lineType} transparent`,boxShadow:"none"}}},[`${ae}-cascader-picker`]:{margin:`-9px ${(0,o.unit)(F.calc(F.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:F.borderRadius,borderEndStartRadius:F.borderRadius}},[`&:not(:first-child), ${L}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${L}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ne.dF)()),{[`${L}-group-addon, ${L}-group-wrap, > ${L}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:F.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:F.calc(F.lineWidth).mul(-1).equal(),borderInlineEndWidth:F.lineWidth},[L]:{float:"none"},[`& > ${ae}-select > ${ae}-select-selector,
|
|
|
& > ${ae}-select-auto-complete ${L},
|
|
|
& > ${ae}-cascader-picker ${L},
|
|
|
& > ${L}-group-wrapper ${L}`]:{borderInlineEndWidth:F.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:F.borderRadius,borderEndStartRadius:F.borderRadius},[`& > *:last-child,
|
|
|
& > ${ae}-select:last-child > ${ae}-select-selector,
|
|
|
& > ${ae}-cascader-picker:last-child ${L},
|
|
|
& > ${ae}-cascader-picker-focused:last-child ${L}`]:{borderInlineEndWidth:F.lineWidth,borderStartEndRadius:F.borderRadius,borderEndEndRadius:F.borderRadius},[`& > ${ae}-select-auto-complete ${L}`]:{verticalAlign:"top"},[`${L}-group-wrapper + ${L}-group-wrapper`]:{marginInlineStart:F.calc(F.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:F.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:F.borderRadius}}}})}},T=F=>{const{componentCls:L,controlHeightSM:ae,lineWidth:me,calc:de}=F,Fe=de(ae).sub(de(me).mul(2)).sub(16).div(2).equal();return{[L]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(F)),S(F)),(0,re.qG)(F)),(0,re.H8)(F)),(0,re.Mu)(F)),(0,re.vc)(F)),{'&[type="color"]':{height:F.controlHeight,[`&${L}-lg`]:{height:F.controlHeightLG},[`&${L}-sm`]:{height:ae,paddingTop:Fe,paddingBottom:Fe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},k=F=>{const{componentCls:L}=F;return{[`${L}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:F.colorTextQuaternary,fontSize:F.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${F.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:F.colorTextTertiary},"&:active":{color:F.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,o.unit)(F.inputAffixPadding)}`}}}},W=F=>{const{componentCls:L,inputAffixPadding:ae,colorTextDescription:me,motionDurationSlow:de,colorIcon:Ie,colorIconHover:Fe,iconCls:_e}=F,Te=`${L}-affix-wrapper`,ee=`${L}-affix-wrapper-disabled`;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},S(F)),{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:F.paddingXS}},"&-show-count-suffix":{color:me},"&-show-count-has-suffix":{marginInlineEnd:F.paddingXXS},"&-prefix":{marginInlineEnd:ae},"&-suffix":{marginInlineStart:ae}}}),k(F)),{[`${_e}${L}-password-icon`]:{color:Ie,cursor:"pointer",transition:`all ${de}`,"&:hover":{color:Fe}}}),[`${L}-underlined`]:{borderRadius:0},[ee]:{[`${_e}${L}-password-icon`]:{color:Ie,cursor:"not-allowed","&:hover":{color:Ie}}}}},V=F=>{const{componentCls:L,borderRadiusLG:ae,borderRadiusSM:me}=F;return{[`${L}-group`]:Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(F)),_(F)),{"&-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:F.inputFontSizeLG}},"&-sm":{[`${L}-group-addon`]:{borderRadius:me}}},(0,re.ir)(F)),(0,re.S5)(F)),{[`&: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}}})})}},$=F=>{const{componentCls:L,antCls:ae}=F,me=`${L}-search`;return{[me]:{[L]:{"&:hover, &:focus":{[`+ ${L}-group-addon ${me}-button:not(${ae}-btn-primary)`]:{borderInlineStartColor:F.colorPrimaryHover}}},[`${L}-affix-wrapper`]:{height:F.controlHeight,borderRadius:0},[`${L}-lg`]:{lineHeight:F.calc(F.lineHeightLG).sub(2e-4).equal()},[`> ${L}-group`]:{[`> ${L}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${me}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${me}-button:not(${ae}-btn-primary)`]:{color:F.colorTextDescription,"&:hover":{color:F.colorPrimaryHover},"&:active":{color:F.colorPrimaryActive},[`&${ae}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${me}-button`]:{height:F.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${L}-affix-wrapper, ${me}-button`]:{height:F.controlHeightLG}},"&-small":{[`${L}-affix-wrapper, ${me}-button`]:{height:F.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${L}-compact-item`]:{[`&:not(${L}-compact-last-item)`]:{[`${L}-group-addon`]:{[`${L}-search-button`]:{marginInlineEnd:F.calc(F.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}}}}},I=F=>{const{componentCls:L}=F;return{[`${L}-out-of-range`]:{[`&, & input, & textarea, ${L}-show-count-suffix, ${L}-data-count`]:{color:F.colorError}}}},G=(0,fe.I$)(["Input","Shared"],F=>{const L=(0,K.mergeToken)(F,(0,g.e)(F));return[T(L),W(L)]},g.T,{resetFont:!1});gt.ZP=(0,fe.I$)(["Input","Component"],F=>{const L=(0,K.mergeToken)(F,(0,g.e)(F));return[V(L),$(L),I(L),(0,j.c)(L)]},g.T,{resetFont:!1})},64910:function(mn,gt,d){"use strict";d.d(gt,{T:function(){return j},e:function(){return ne}});var o=d(51636);function ne(fe){return(0,o.mergeToken)(fe,{inputAffixPadding:fe.paddingXXS})}const j=fe=>{const{controlHeight:K,fontSize:g,lineHeight:re,lineWidth:oe,controlHeightSM:l,controlHeightLG:C,fontSizeLG:N,lineHeightLG:S,paddingSM:_,controlPaddingHorizontalSM:T,controlPaddingHorizontal:k,colorFillAlter:W,colorPrimaryHover:V,colorPrimary:$,controlOutlineWidth:I,controlOutline:G,colorErrorOutline:F,colorWarningOutline:L,colorBgContainer:ae,inputFontSize:me,inputFontSizeLG:de,inputFontSizeSM:Ie}=fe,Fe=me||g,_e=Ie||Fe,Te=de||N,ee=Math.round((K-Fe*re)/2*10)/10-oe,B=Math.round((l-_e*re)/2*10)/10-oe,A=Math.ceil((C-Te*S)/2*10)/10-oe;return{paddingBlock:Math.max(ee,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(A,0),paddingInline:_-oe,paddingInlineSM:T-oe,paddingInlineLG:k-oe,addonBg:W,activeBorderColor:$,hoverBorderColor:V,activeShadow:`0 0 0 ${I}px ${G}`,errorActiveShadow:`0 0 0 ${I}px ${F}`,warningActiveShadow:`0 0 0 ${I}px ${L}`,hoverBg:ae,activeBg:ae,inputFontSize:Fe,inputFontSizeLG:Te,inputFontSizeSM:_e}}},39082:function(mn,gt,d){"use strict";d.d(gt,{$U:function(){return K},H8:function(){return _},Mu:function(){return C},S5:function(){return k},Xy:function(){return fe},ir:function(){return l},qG:function(){return re},vc:function(){return $}});var o=d(36237),ne=d(51636);const j=I=>({borderColor:I.hoverBorderColor,backgroundColor:I.hoverBg}),fe=I=>({color:I.colorTextDisabled,backgroundColor:I.colorBgContainerDisabled,borderColor:I.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},j((0,ne.mergeToken)(I,{hoverBorderColor:I.colorBorder,hoverBg:I.colorBgContainerDisabled})))}),K=(I,G)=>({background:I.colorBgContainer,borderWidth:I.lineWidth,borderStyle:I.lineType,borderColor:G.borderColor,"&:hover":{borderColor:G.hoverBorderColor,backgroundColor:I.hoverBg},"&:focus, &:focus-within":{borderColor:G.activeBorderColor,boxShadow:G.activeShadow,outline:0,backgroundColor:I.activeBg}}),g=(I,G)=>({[`&${I.componentCls}-status-${G.status}:not(${I.componentCls}-disabled)`]:Object.assign(Object.assign({},K(I,G)),{[`${I.componentCls}-prefix, ${I.componentCls}-suffix`]:{color:G.affixColor}}),[`&${I.componentCls}-status-${G.status}${I.componentCls}-disabled`]:{borderColor:G.borderColor}}),re=(I,G)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},K(I,{borderColor:I.colorBorder,hoverBorderColor:I.hoverBorderColor,activeBorderColor:I.activeBorderColor,activeShadow:I.activeShadow})),{[`&${I.componentCls}-disabled, &[disabled]`]:Object.assign({},fe(I))}),g(I,{status:"error",borderColor:I.colorError,hoverBorderColor:I.colorErrorBorderHover,activeBorderColor:I.colorError,activeShadow:I.errorActiveShadow,affixColor:I.colorError})),g(I,{status:"warning",borderColor:I.colorWarning,hoverBorderColor:I.colorWarningBorderHover,activeBorderColor:I.colorWarning,activeShadow:I.warningActiveShadow,affixColor:I.colorWarning})),G)}),oe=(I,G)=>({[`&${I.componentCls}-group-wrapper-status-${G.status}`]:{[`${I.componentCls}-group-addon`]:{borderColor:G.addonBorderColor,color:G.addonColor}}}),l=I=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${I.componentCls}-group`]:{"&-addon":{background:I.addonBg,border:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},oe(I,{status:"error",addonBorderColor:I.colorError,addonColor:I.colorErrorText})),oe(I,{status:"warning",addonBorderColor:I.colorWarning,addonColor:I.colorWarningText})),{[`&${I.componentCls}-group-wrapper-disabled`]:{[`${I.componentCls}-group-addon`]:Object.assign({},fe(I))}})}),C=(I,G)=>{const{componentCls:F}=I;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${F}-disabled, &[disabled]`]:{color:I.colorTextDisabled,cursor:"not-allowed"},[`&${F}-status-error`]:{"&, & input, & textarea":{color:I.colorError}},[`&${F}-status-warning`]:{"&, & input, & textarea":{color:I.colorWarning}}},G)}},N=(I,G)=>{var F;return{background:G.bg,borderWidth:I.lineWidth,borderStyle:I.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(F=G==null?void 0:G.inputColor)!==null&&F!==void 0?F:"unset"},"&:hover":{background:G.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:G.activeBorderColor,backgroundColor:I.activeBg}}},S=(I,G)=>({[`&${I.componentCls}-status-${G.status}:not(${I.componentCls}-disabled)`]:Object.assign(Object.assign({},N(I,G)),{[`${I.componentCls}-prefix, ${I.componentCls}-suffix`]:{color:G.affixColor}})}),_=(I,G)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(I,{bg:I.colorFillTertiary,hoverBg:I.colorFillSecondary,activeBorderColor:I.activeBorderColor})),{[`&${I.componentCls}-disabled, &[disabled]`]:Object.assign({},fe(I))}),S(I,{status:"error",bg:I.colorErrorBg,hoverBg:I.colorErrorBgHover,activeBorderColor:I.colorError,inputColor:I.colorErrorText,affixColor:I.colorError})),S(I,{status:"warning",bg:I.colorWarningBg,hoverBg:I.colorWarningBgHover,activeBorderColor:I.colorWarning,inputColor:I.colorWarningText,affixColor:I.colorWarning})),G)}),T=(I,G)=>({[`&${I.componentCls}-group-wrapper-status-${G.status}`]:{[`${I.componentCls}-group-addon`]:{background:G.addonBg,color:G.addonColor}}}),k=I=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${I.componentCls}-group`]:{"&-addon":{background:I.colorFillTertiary},[`${I.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorSplit}`}}}},T(I,{status:"error",addonBg:I.colorErrorBg,addonColor:I.colorErrorText})),T(I,{status:"warning",addonBg:I.colorWarningBg,addonColor:I.colorWarningText})),{[`&${I.componentCls}-group-wrapper-disabled`]:{[`${I.componentCls}-group`]:{"&-addon":{background:I.colorFillTertiary,color:I.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`,borderTop:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`,borderBottom:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`,borderTop:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`,borderBottom:`${(0,o.unit)(I.lineWidth)} ${I.lineType} ${I.colorBorder}`}}}})}),W=(I,G)=>({background:I.colorBgContainer,borderWidth:`${(0,o.unit)(I.lineWidth)} 0`,borderStyle:`${I.lineType} none`,borderColor:`transparent transparent ${G.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${G.borderColor} transparent`,backgroundColor:I.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${G.borderColor} transparent`,outline:0,backgroundColor:I.activeBg}}),V=(I,G)=>({[`&${I.componentCls}-status-${G.status}:not(${I.componentCls}-disabled)`]:Object.assign(Object.assign({},W(I,G)),{[`${I.componentCls}-prefix, ${I.componentCls}-suffix`]:{color:G.affixColor}}),[`&${I.componentCls}-status-${G.status}${I.componentCls}-disabled`]:{borderColor:`transparent transparent ${G.borderColor} transparent`}}),$=(I,G)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(I,{borderColor:I.colorBorder,hoverBorderColor:I.hoverBorderColor,activeBorderColor:I.activeBorderColor,activeShadow:I.activeShadow})),{[`&${I.componentCls}-disabled, &[disabled]`]:{color:I.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${I.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),V(I,{status:"error",borderColor:I.colorError,hoverBorderColor:I.colorErrorBorderHover,activeBorderColor:I.colorError,activeShadow:I.errorActiveShadow,affixColor:I.colorError})),V(I,{status:"warning",borderColor:I.colorWarning,hoverBorderColor:I.colorWarningBorderHover,activeBorderColor:I.colorWarning,activeShadow:I.warningActiveShadow,affixColor:I.colorWarning})),G)})},24303:function(mn,gt,d){"use strict";d.d(gt,{D:function(){return me},Z:function(){return Fe}});var o=d(59301),ne=d(60499),j={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},fe=j,K=d(7657),g=function(Te,ee){return o.createElement(K.Z,(0,ne.Z)({},Te,{ref:ee,icon:fe}))},re=o.forwardRef(g),oe=re,l=d(33853),C=d(38819),N=d(92310),S=d.n(N),_=d(2738),T=d(48755),k=d(6989),W=d(36237),V=d(48923),$=d(16931);const I=_e=>{const{componentCls:Te,siderBg:ee,motionDurationMid:B,motionDurationSlow:A,antCls:X,triggerHeight:J,triggerColor:Q,triggerBg:E,headerHeight:R,zeroTriggerWidth:se,zeroTriggerHeight:we,borderRadiusLG:Ve,lightSiderBg:lt,lightTriggerColor:xe,lightTriggerBg:je,bodyBg:Qe}=_e;return{[Te]:{position:"relative",minWidth:0,background:ee,transition:`all ${B}, background 0s`,"&-has-trigger":{paddingBottom:J},"&-right":{order:1},[`${Te}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${X}-menu${X}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Te}-children`]:{overflow:"hidden"},[`${Te}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:J,color:Q,lineHeight:(0,W.unit)(J),textAlign:"center",background:E,cursor:"pointer",transition:`all ${B}`},[`${Te}-zero-width-trigger`]:{position:"absolute",top:R,insetInlineEnd:_e.calc(se).mul(-1).equal(),zIndex:1,width:se,height:we,color:Q,fontSize:_e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ee,borderRadius:`0 ${(0,W.unit)(Ve)} ${(0,W.unit)(Ve)} 0`,cursor:"pointer",transition:`background ${A} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${A}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:_e.calc(se).mul(-1).equal(),borderRadius:`${(0,W.unit)(Ve)} 0 0 ${(0,W.unit)(Ve)}`}},"&-light":{background:lt,[`${Te}-trigger`]:{color:xe,background:je},[`${Te}-zero-width-trigger`]:{color:xe,background:je,border:`1px solid ${Qe}`,borderInlineStart:0}}}}};var G=(0,$.I$)(["Layout","Sider"],_e=>[I(_e)],V.eh,{deprecatedTokens:V.jn}),F=function(_e,Te){var ee={};for(var B in _e)Object.prototype.hasOwnProperty.call(_e,B)&&Te.indexOf(B)<0&&(ee[B]=_e[B]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,B=Object.getOwnPropertySymbols(_e);A<B.length;A++)Te.indexOf(B[A])<0&&Object.prototype.propertyIsEnumerable.call(_e,B[A])&&(ee[B[A]]=_e[B[A]]);return ee};const L={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ae=_e=>!Number.isNaN(Number.parseFloat(_e))&&isFinite(_e),me=o.createContext({}),de=(()=>{let _e=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _e+=1,`${Te}${_e}`}})();var Fe=o.forwardRef((_e,Te)=>{const{prefixCls:ee,className:B,trigger:A,children:X,defaultCollapsed:J=!1,theme:Q="dark",style:E={},collapsible:R=!1,reverseArrow:se=!1,width:we=200,collapsedWidth:Ve=80,zeroWidthTriggerStyle:lt,breakpoint:xe,onCollapse:je,onBreakpoint:Qe}=_e,it=F(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:De}=(0,o.useContext)(k.V),[wt,et]=(0,o.useState)("collapsed"in _e?_e.collapsed:J),[Ot,qe]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in _e&&et(_e.collapsed)},[_e.collapsed]);const Xe=(yt,ht)=>{"collapsed"in _e||et(yt),je==null||je(yt,ht)},{getPrefixCls:Ue,direction:ke}=(0,o.useContext)(T.E_),ie=Ue("layout-sider",ee),[$e,Pe,z]=G(ie),D=(0,o.useRef)(null);D.current=yt=>{qe(yt.matches),Qe==null||Qe(yt.matches),wt!==yt.matches&&Xe(yt.matches,"responsive")},(0,o.useEffect)(()=>{function yt(Ce){return D.current(Ce)}let ht;if(typeof window!="undefined"){const{matchMedia:Ce}=window;if(Ce&&xe&&xe in L){ht=Ce(`screen and (max-width: ${L[xe]})`);try{ht.addEventListener("change",yt)}catch(Ye){ht.addListener(yt)}yt(ht)}}return()=>{try{ht==null||ht.removeEventListener("change",yt)}catch(Ce){ht==null||ht.removeListener(yt)}}},[xe]),(0,o.useEffect)(()=>{const yt=de("ant-sider-");return De.addSider(yt),()=>De.removeSider(yt)},[]);const ue=()=>{Xe(!wt,"clickTrigger")},ge=(0,_.Z)(it,["collapsed"]),pe=wt?Ve:we,ye=ae(pe)?`${pe}px`:String(pe),Re=parseFloat(String(Ve||0))===0?o.createElement("span",{onClick:ue,className:S()(`${ie}-zero-width-trigger`,`${ie}-zero-width-trigger-${se?"right":"left"}`),style:lt},A||o.createElement(oe,null)):null,Ze=ke==="rtl"==!se,tt={expanded:Ze?o.createElement(C.Z,null):o.createElement(l.Z,null),collapsed:Ze?o.createElement(l.Z,null):o.createElement(C.Z,null)}[wt?"collapsed":"expanded"],nt=A!==null?Re||o.createElement("div",{className:`${ie}-trigger`,onClick:ue,style:{width:ye}},A||tt):null,ct=Object.assign(Object.assign({},E),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),ut=S()(ie,`${ie}-${Q}`,{[`${ie}-collapsed`]:!!wt,[`${ie}-has-trigger`]:R&&A!==null&&!Re,[`${ie}-below`]:!!Ot,[`${ie}-zero-width`]:parseFloat(ye)===0},B,Pe,z),Ge=o.useMemo(()=>({siderCollapsed:wt}),[wt]);return $e(o.createElement(me.Provider,{value:Ge},o.createElement("aside",Object.assign({className:ut},ge,{style:ct,ref:Te}),o.createElement("div",{className:`${ie}-children`},X),R||Ot&&Re?nt:null)))})},6989:function(mn,gt,d){"use strict";d.d(gt,{V:function(){return ne}});var o=d(59301);const ne=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return L}});var o=d(77654),ne=d(59301),j=d(92310),fe=d.n(j),K=d(2738),g=d(48755),re=d(6989),oe=d(11592),l=d(24303);function C(ae,me,de){return typeof de=="boolean"?de:ae.length?!0:(0,oe.Z)(me).some(Fe=>Fe.type===l.Z)}var N=d(48923),S=function(ae,me){var de={};for(var Ie in ae)Object.prototype.hasOwnProperty.call(ae,Ie)&&me.indexOf(Ie)<0&&(de[Ie]=ae[Ie]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ie=Object.getOwnPropertySymbols(ae);Fe<Ie.length;Fe++)me.indexOf(Ie[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ie[Fe])&&(de[Ie[Fe]]=ae[Ie[Fe]]);return de};function _(ae){let{suffixCls:me,tagName:de,displayName:Ie}=ae;return Fe=>ne.forwardRef((Te,ee)=>ne.createElement(Fe,Object.assign({ref:ee,suffixCls:me,tagName:de},Te)))}const T=ne.forwardRef((ae,me)=>{const{prefixCls:de,suffixCls:Ie,className:Fe,tagName:_e}=ae,Te=S(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=ne.useContext(g.E_),B=ee("layout",de),[A,X,J]=(0,N.ZP)(B),Q=Ie?`${B}-${Ie}`:B;return A(ne.createElement(_e,Object.assign({className:fe()(de||Q,Fe,X,J),ref:me},Te)))}),k=ne.forwardRef((ae,me)=>{const{direction:de}=ne.useContext(g.E_),[Ie,Fe]=ne.useState([]),{prefixCls:_e,className:Te,rootClassName:ee,children:B,hasSider:A,tagName:X,style:J}=ae,Q=S(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),E=(0,K.Z)(Q,["suffixCls"]),{getPrefixCls:R,className:se,style:we}=(0,g.dj)("layout"),Ve=R("layout",_e),lt=C(Ie,B,A),[xe,je,Qe]=(0,N.ZP)(Ve),it=fe()(Ve,{[`${Ve}-has-sider`]:lt,[`${Ve}-rtl`]:de==="rtl"},se,Te,ee,je,Qe),De=ne.useMemo(()=>({siderHook:{addSider:wt=>{Fe(et=>[].concat((0,o.Z)(et),[wt]))},removeSider:wt=>{Fe(et=>et.filter(Ot=>Ot!==wt))}}}),[]);return xe(ne.createElement(re.V.Provider,{value:De},ne.createElement(X,Object.assign({ref:me,className:it,style:Object.assign(Object.assign({},we),J)},E),B)))}),W=_({tagName:"div",displayName:"Layout"})(k),V=_({suffixCls:"header",tagName:"header",displayName:"Header"})(T),$=_({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),I=_({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var G=W;const F=G;F.Header=V,F.Footer=$,F.Content=I,F.Sider=l.Z,F._InternalSiderContext=l.D;var L=F},48923:function(mn,gt,d){"use strict";d.d(gt,{eh:function(){return fe},jn:function(){return K}});var o=d(36237),ne=d(16931);const j=g=>{const{antCls:re,componentCls:oe,colorText:l,footerBg:C,headerHeight:N,headerPadding:S,headerColor:_,footerPadding:T,fontSize:k,bodyBg:W,headerBg:V}=g;return{[oe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:W,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${oe}-header`]:{height:N,padding:S,color:_,lineHeight:(0,o.unit)(N),background:V,[`${re}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:T,color:l,fontSize:k,background:C},[`${oe}-content`]:{flex:"auto",color:l,minHeight:0}}},fe=g=>{const{colorBgLayout:re,controlHeight:oe,controlHeightLG:l,colorText:C,controlHeightSM:N,marginXXS:S,colorTextLightSolid:_,colorBgContainer:T}=g,k=l*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${k}px`,headerColor:C,footerPadding:`${N}px ${k}px`,footerBg:re,siderBg:"#001529",triggerHeight:l+S*2,triggerBg:"#002140",triggerColor:_,zeroTriggerWidth:l,zeroTriggerHeight:l,lightSiderBg:T,lightTriggerBg:T,lightTriggerColor:C}},K=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];gt.ZP=(0,ne.I$)("Layout",g=>[j(g)],fe,{deprecatedTokens:K})},78857:function(mn,gt,d){"use strict";d.d(gt,{J:function(){return g}});var o=d(59301),ne=d(8654),j=d(62487),fe=function(re,oe){var l={};for(var C in re)Object.prototype.hasOwnProperty.call(re,C)&&oe.indexOf(C)<0&&(l[C]=re[C]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,C=Object.getOwnPropertySymbols(re);N<C.length;N++)oe.indexOf(C[N])<0&&Object.prototype.propertyIsEnumerable.call(re,C[N])&&(l[C[N]]=re[C[N]]);return l};const K=o.createContext(null),g=o.forwardRef((re,oe)=>{const{children:l}=re,C=fe(re,["children"]),N=o.useContext(K),S=o.useMemo(()=>Object.assign(Object.assign({},N),C),[N,C.prefixCls,C.mode,C.selectable,C.rootClassName]),_=(0,ne.t4)(l),T=(0,ne.x1)(oe,_?(0,ne.C4)(l):null);return o.createElement(K.Provider,{value:S},o.createElement(j.Z,{space:!0},_?o.cloneElement(l,{ref:T}):l))});gt.Z=K},93041:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return $e}});var o=d(59301),ne=d(28321),j=d(24303),fe=d(18785),K=d(92310),g=d.n(K),re=d(6089),oe=d(2738),l=d(86641),C=d(22703),N=d(48755),S=d(83397),T=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),k=function(Pe,z){var D={};for(var ue in Pe)Object.prototype.hasOwnProperty.call(Pe,ue)&&z.indexOf(ue)<0&&(D[ue]=Pe[ue]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ue=Object.getOwnPropertySymbols(Pe);ge<ue.length;ge++)z.indexOf(ue[ge])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ue[ge])&&(D[ue[ge]]=Pe[ue[ge]]);return D},V=Pe=>{const{prefixCls:z,className:D,dashed:ue}=Pe,ge=k(Pe,["prefixCls","className","dashed"]),{getPrefixCls:pe}=o.useContext(N.E_),ye=pe("menu",z),Re=g()({[`${ye}-item-divider-dashed`]:!!ue},D);return o.createElement(ne.iz,Object.assign({className:Re},ge))},$=d(11592),I=d(25399),F=Pe=>{var z;const{className:D,children:ue,icon:ge,title:pe,danger:ye,extra:Re}=Pe,{prefixCls:Ze,firstLevel:te,direction:le,disableMenuItemTitleTooltip:tt,inlineCollapsed:nt}=o.useContext(T),ct=Ye=>{const b=ue==null?void 0:ue[0],w=o.createElement("span",{className:g()(`${Ze}-title-content`,{[`${Ze}-title-content-with-extra`]:!!Re||Re===0})},ue);return(!ge||o.isValidElement(ue)&&ue.type==="span")&&ue&&Ye&&te&&typeof b=="string"?o.createElement("div",{className:`${Ze}-inline-collapsed-noicon`},b.charAt(0)):w},{siderCollapsed:ut}=o.useContext(j.D);let Ge=pe;typeof pe=="undefined"?Ge=te?ue:"":pe===!1&&(Ge="");const yt={title:Ge};!ut&&!nt&&(yt.title=null,yt.open=!1);const ht=(0,$.Z)(ue).length;let Ce=o.createElement(ne.ck,Object.assign({},(0,oe.Z)(Pe,["title","icon","danger"]),{className:g()({[`${Ze}-item-danger`]:ye,[`${Ze}-item-only-child`]:(ge?ht+1:ht)===1},D),title:typeof pe=="string"?pe:void 0}),(0,C.Tm)(ge,{className:g()(o.isValidElement(ge)?(z=ge.props)===null||z===void 0?void 0:z.className:"",`${Ze}-item-icon`)}),ct(nt));return tt||(Ce=o.createElement(I.Z,Object.assign({},yt,{placement:le==="rtl"?"left":"right",classNames:{root:`${Ze}-inline-collapsed-tooltip`}}),Ce)),Ce},L=d(78857),ae=d(36237),me=d(17835),de=d(63356),Ie=d(34961),Fe=d(46e3),_e=d(34925),Te=d(16931),ee=d(51636),A=Pe=>{const{componentCls:z,motionDurationSlow:D,horizontalLineHeight:ue,colorSplit:ge,lineWidth:pe,lineType:ye,itemPaddingInline:Re}=Pe;return{[`${z}-horizontal`]:{lineHeight:ue,border:0,borderBottom:`${(0,ae.unit)(pe)} ${ye} ${ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${z}-item, ${z}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Re},[`> ${z}-item:hover,
|
|
|
> ${z}-item-active,
|
|
|
> ${z}-submenu ${z}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${z}-item, ${z}-submenu-title`]:{transition:[`border-color ${D}`,`background ${D}`].join(",")},[`${z}-submenu-arrow`]:{display:"none"}}}},J=Pe=>{let{componentCls:z,menuArrowOffset:D,calc:ue}=Pe;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)(ue(D).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ae.unit)(D)})`}}}}};const Q=Pe=>Object.assign({},(0,de.oN)(Pe));var R=(Pe,z)=>{const{componentCls:D,itemColor:ue,itemSelectedColor:ge,subMenuItemSelectedColor:pe,groupTitleColor:ye,itemBg:Re,subMenuItemBg:Ze,itemSelectedBg:te,activeBarHeight:le,activeBarWidth:tt,activeBarBorderWidth:nt,motionDurationSlow:ct,motionEaseInOut:ut,motionEaseOut:Ge,itemPaddingInline:yt,motionDurationMid:ht,itemHoverColor:Ce,lineType:Ye,colorSplit:b,itemDisabledColor:w,dangerItemColor:He,dangerItemHoverColor:q,dangerItemSelectedColor:be,dangerItemActiveBg:It,dangerItemSelectedBg:Be,popupBg:rt,itemHoverBg:ft,itemActiveBg:ve,menuSubMenuBg:Se,horizontalItemSelectedColor:We,horizontalItemSelectedBg:ze,horizontalItemBorderRadius:M,horizontalItemHoverBg:dt}=Pe;return{[`${D}-${z}, ${D}-${z} > ${D}`]:{color:ue,background:Re,[`&${D}-root:focus-visible`]:Object.assign({},Q(Pe)),[`${D}-item`]:{"&-group-title, &-extra":{color:ye}},[`${D}-submenu-selected > ${D}-submenu-title`]:{color:pe},[`${D}-item, ${D}-submenu-title`]:{color:ue,[`&:not(${D}-item-disabled):focus-visible`]:Object.assign({},Q(Pe))},[`${D}-item-disabled, ${D}-submenu-disabled`]:{color:`${w} !important`},[`${D}-item:not(${D}-item-selected):not(${D}-submenu-selected)`]:{[`&:hover, > ${D}-submenu-title:hover`]:{color:Ce}},[`&:not(${D}-horizontal)`]:{[`${D}-item:not(${D}-item-selected)`]:{"&:hover":{backgroundColor:ft},"&:active":{backgroundColor:ve}},[`${D}-submenu-title`]:{"&:hover":{backgroundColor:ft},"&:active":{backgroundColor:ve}}},[`${D}-item-danger`]:{color:He,[`&${D}-item:hover`]:{[`&:not(${D}-item-selected):not(${D}-submenu-selected)`]:{color:q}},[`&${D}-item:active`]:{background:It}},[`${D}-item a`]:{"&, &:hover":{color:"inherit"}},[`${D}-item-selected`]:{color:ge,[`&${D}-item-danger`]:{color:be},"a, a:hover":{color:"inherit"}},[`& ${D}-item-selected`]:{backgroundColor:te,[`&${D}-item-danger`]:{backgroundColor:Be}},[`&${D}-submenu > ${D}`]:{backgroundColor:Se},[`&${D}-popup > ${D}`]:{backgroundColor:rt},[`&${D}-submenu-popup > ${D}`]:{backgroundColor:rt},[`&${D}-horizontal`]:Object.assign(Object.assign({},z==="dark"?{borderBottom:0}:{}),{[`> ${D}-item, > ${D}-submenu`]:{top:nt,marginTop:Pe.calc(nt).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:yt,bottom:0,borderBottom:`${(0,ae.unit)(le)} solid transparent`,transition:`border-color ${ct} ${ut}`,content:'""'},"&:hover, &-active, &-open":{background:dt,"&::after":{borderBottomWidth:le,borderBottomColor:We}},"&-selected":{color:We,backgroundColor:ze,"&:hover":{backgroundColor:ze},"&::after":{borderBottomWidth:le,borderBottomColor:We}}}}),[`&${D}-root`]:{[`&${D}-inline, &${D}-vertical`]:{borderInlineEnd:`${(0,ae.unit)(nt)} ${Ye} ${b}`}},[`&${D}-inline`]:{[`${D}-sub${D}-inline`]:{background:Ze},[`${D}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ae.unit)(tt)} solid ${ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ht} ${Ge}`,`opacity ${ht} ${Ge}`].join(","),content:'""'},[`&${D}-item-danger`]:{"&::after":{borderInlineEndColor:be}}},[`${D}-selected, ${D}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ht} ${ut}`,`opacity ${ht} ${ut}`].join(",")}}}}}};const se=Pe=>{const{componentCls:z,itemHeight:D,itemMarginInline:ue,padding:ge,menuArrowSize:pe,marginXS:ye,itemMarginBlock:Re,itemWidth:Ze,itemPaddingInline:te}=Pe,le=Pe.calc(pe).add(ge).add(ye).equal();return{[`${z}-item`]:{position:"relative",overflow:"hidden"},[`${z}-item, ${z}-submenu-title`]:{height:D,lineHeight:(0,ae.unit)(D),paddingInline:te,overflow:"hidden",textOverflow:"ellipsis",marginInline:ue,marginBlock:Re,width:Ze},[`> ${z}-item,
|
|
|
> ${z}-submenu > ${z}-submenu-title`]:{height:D,lineHeight:(0,ae.unit)(D)},[`${z}-item-group-list ${z}-submenu-title,
|
|
|
${z}-submenu-title`]:{paddingInlineEnd:le}}};var Ve=Pe=>{const{componentCls:z,iconCls:D,itemHeight:ue,colorTextLightSolid:ge,dropdownWidth:pe,controlHeightLG:ye,motionEaseOut:Re,paddingXL:Ze,itemMarginInline:te,fontSizeLG:le,motionDurationFast:tt,motionDurationSlow:nt,paddingXS:ct,boxShadowSecondary:ut,collapsedWidth:Ge,collapsedIconSize:yt}=Pe,ht={height:ue,lineHeight:(0,ae.unit)(ue),listStylePosition:"inside",listStyleType:"disc"};return[{[z]:{"&-inline, &-vertical":Object.assign({[`&${z}-root`]:{boxShadow:"none"}},se(Pe))},[`${z}-submenu-popup`]:{[`${z}-vertical`]:Object.assign(Object.assign({},se(Pe)),{boxShadow:ut})}},{[`${z}-submenu-popup ${z}-vertical${z}-sub`]:{minWidth:pe,maxHeight:`calc(100vh - ${(0,ae.unit)(Pe.calc(ye).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 ${nt}`,`background ${nt}`,`padding ${tt} ${Re}`].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`]:ht,[`& ${z}-item-group-title`]:{paddingInlineStart:Ze}},[`${z}-item`]:ht}},{[`${z}-inline-collapsed`]:{width:Ge,[`&${z}-root`]:{[`${z}-item, ${z}-submenu ${z}-submenu-title`]:{[`> ${z}-inline-collapsed-noicon`]:{fontSize:le,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)(Pe.calc(yt).div(2).equal())} - ${(0,ae.unit)(te)})`,textOverflow:"clip",[`
|
|
|
${z}-submenu-arrow,
|
|
|
${z}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${z}-item-icon, ${D}`]:{margin:0,fontSize:yt,lineHeight:(0,ae.unit)(ue),"+ span":{display:"inline-block",opacity:0}}},[`${z}-item-icon, ${D}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${z}-item-icon, ${D}`]:{display:"none"},"a, a:hover":{color:ge}},[`${z}-item-group-title`]:Object.assign(Object.assign({},de.vS),{paddingInline:ct})}}]};const lt=Pe=>{const{componentCls:z,motionDurationSlow:D,motionDurationMid:ue,motionEaseInOut:ge,motionEaseOut:pe,iconCls:ye,iconSize:Re,iconMarginInlineEnd:Ze}=Pe;return{[`${z}-item, ${z}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${D}`,`background ${D}`,`padding calc(${D} + 0.1s) ${ge}`].join(","),[`${z}-item-icon, ${ye}`]:{minWidth:Re,fontSize:Re,transition:[`font-size ${ue} ${pe}`,`margin ${D} ${ge}`,`color ${D}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${D} ${ge}`,`margin ${D}`,`color ${D}`].join(",")}},[`${z}-item-icon`]:Object.assign({},(0,de.Ro)()),[`&${z}-item-only-child`]:{[`> ${ye}, > ${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"}}}},xe=Pe=>{const{componentCls:z,motionDurationSlow:D,motionEaseInOut:ue,borderRadius:ge,menuArrowSize:pe,menuArrowOffset:ye}=Pe;return{[`${z}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Pe.margin,width:pe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${D} ${ue}, opacity ${D}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Pe.calc(pe).mul(.6).equal(),height:Pe.calc(pe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ge,transition:[`background ${D} ${ue}`,`transform ${D} ${ue}`,`top ${D} ${ue}`,`color ${D} ${ue}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ae.unit)(Pe.calc(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ae.unit)(ye)})`}}}}},je=Pe=>{const{antCls:z,componentCls:D,fontSize:ue,motionDurationSlow:ge,motionDurationMid:pe,motionEaseInOut:ye,paddingXS:Re,padding:Ze,colorSplit:te,lineWidth:le,zIndexPopup:tt,borderRadiusLG:nt,subMenuItemBorderRadius:ct,menuArrowSize:ut,menuArrowOffset:Ge,lineType:yt,groupTitleLineHeight:ht,groupTitleFontSize:Ce}=Pe;return[{"":{[D]:Object.assign(Object.assign({},(0,de.dF)()),{"&-hidden":{display:"none"}})},[`${D}-submenu-hidden`]:{display:"none"}},{[D]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Pe)),(0,de.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ue,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${D}-item`]:{flex:"none"}},[`${D}-item, ${D}-submenu, ${D}-submenu-title`]:{borderRadius:Pe.itemBorderRadius},[`${D}-item-group-title`]:{padding:`${(0,ae.unit)(Re)} ${(0,ae.unit)(Ze)}`,fontSize:Ce,lineHeight:ht,transition:`all ${ge}`},[`&-horizontal ${D}-submenu`]:{transition:[`border-color ${ge} ${ye}`,`background ${ge} ${ye}`].join(",")},[`${D}-submenu, ${D}-submenu-inline`]:{transition:[`border-color ${ge} ${ye}`,`background ${ge} ${ye}`,`padding ${pe} ${ye}`].join(",")},[`${D}-submenu ${D}-sub`]:{cursor:"initial",transition:[`background ${ge} ${ye}`,`padding ${ge} ${ye}`].join(",")},[`${D}-title-content`]:{transition:`color ${ge}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${z}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${D}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Pe.padding}},[`${D}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${D}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:te,borderStyle:yt,borderWidth:0,borderTopWidth:le,marginBlock:le,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lt(Pe)),{[`${D}-item-group`]:{[`${D}-item-group-list`]:{margin:0,padding:0,[`${D}-item, ${D}-submenu-title`]:{paddingInline:`${(0,ae.unit)(Pe.calc(ue).mul(2).equal())} ${(0,ae.unit)(Ze)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:tt,borderRadius:nt,boxShadow:"none",transformOrigin:"0 0",[`&${D}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${D}`]:Object.assign(Object.assign(Object.assign({borderRadius:nt},lt(Pe)),xe(Pe)),{[`${D}-item, ${D}-submenu > ${D}-submenu-title`]:{borderRadius:ct},[`${D}-submenu-title::after`]:{transition:`transform ${ge} ${ye}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Pe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Pe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Pe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Pe.paddingXS}}}),xe(Pe)),{[`&-inline-collapsed ${D}-submenu-arrow,
|
|
|
&-inline ${D}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ae.unit)(Ge)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ae.unit)(Pe.calc(Ge).mul(-1).equal())})`}},[`${D}-submenu-open${D}-submenu-inline > ${D}-submenu-title > ${D}-submenu-arrow`]:{transform:`translateY(${(0,ae.unit)(Pe.calc(ut).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ae.unit)(Pe.calc(Ge).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ae.unit)(Ge)})`}}})},{[`${z}-layout-header`]:{[D]:{lineHeight:"inherit"}}}]},Qe=Pe=>{var z,D,ue;const{colorPrimary:ge,colorError:pe,colorTextDisabled:ye,colorErrorBg:Re,colorText:Ze,colorTextDescription:te,colorBgContainer:le,colorFillAlter:tt,colorFillContent:nt,lineWidth:ct,lineWidthBold:ut,controlItemBgActive:Ge,colorBgTextHover:yt,controlHeightLG:ht,lineHeight:Ce,colorBgElevated:Ye,marginXXS:b,padding:w,fontSize:He,controlHeightSM:q,fontSizeLG:be,colorTextLightSolid:It,colorErrorHover:Be}=Pe,rt=(z=Pe.activeBarWidth)!==null&&z!==void 0?z:0,ft=(D=Pe.activeBarBorderWidth)!==null&&D!==void 0?D:ct,ve=(ue=Pe.itemMarginInline)!==null&&ue!==void 0?ue:Pe.marginXXS,Se=new me.FastColor(It).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pe.zIndexPopupBase+50,radiusItem:Pe.borderRadiusLG,itemBorderRadius:Pe.borderRadiusLG,radiusSubMenuItem:Pe.borderRadiusSM,subMenuItemBorderRadius:Pe.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:ge,horizontalItemHoverColor:ge,colorGroupTitle:te,groupTitleColor:te,colorItemTextSelected:ge,itemSelectedColor:ge,subMenuItemSelectedColor:ge,colorItemTextSelectedHorizontal:ge,horizontalItemSelectedColor:ge,colorItemBg:le,itemBg:le,colorItemBgHover:yt,itemHoverBg:yt,colorItemBgActive:nt,itemActiveBg:Ge,colorSubItemBg:tt,subMenuItemBg:tt,colorItemBgSelected:Ge,itemSelectedBg:Ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:rt,colorActiveBarHeight:ut,activeBarHeight:ut,colorActiveBarBorderSize:ct,activeBarBorderWidth:ft,colorItemTextDisabled:ye,itemDisabledColor:ye,colorDangerItemText:pe,dangerItemColor:pe,colorDangerItemTextHover:pe,dangerItemHoverColor:pe,colorDangerItemTextSelected:pe,dangerItemSelectedColor:pe,colorDangerItemBgActive:Re,dangerItemActiveBg:Re,colorDangerItemBgSelected:Re,dangerItemSelectedBg:Re,itemMarginInline:ve,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ht,groupTitleLineHeight:Ce,collapsedWidth:ht*2,popupBg:Ye,itemMarginBlock:b,itemPaddingInline:w,horizontalLineHeight:`${ht*1.15}px`,iconSize:He,iconMarginInlineEnd:q-He,collapsedIconSize:be,groupTitleFontSize:He,darkItemDisabledColor:new me.FastColor(It).setA(.25).toRgbString(),darkItemColor:Se,darkDangerItemColor:pe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:ge,darkDangerItemSelectedBg:pe,darkItemHoverBg:"transparent",darkGroupTitleColor:Se,darkItemHoverColor:It,darkDangerItemHoverColor:Be,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:pe,itemWidth:rt?`calc(100% + ${ft}px)`:`calc(100% - ${ve*2}px)`}};var it=function(Pe){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Te.I$)("Menu",ge=>{const{colorBgElevated:pe,controlHeightLG:ye,fontSize:Re,darkItemColor:Ze,darkDangerItemColor:te,darkItemBg:le,darkSubMenuItemBg:tt,darkItemSelectedColor:nt,darkItemSelectedBg:ct,darkDangerItemSelectedBg:ut,darkItemHoverBg:Ge,darkGroupTitleColor:yt,darkItemHoverColor:ht,darkItemDisabledColor:Ce,darkDangerItemHoverColor:Ye,darkDangerItemSelectedColor:b,darkDangerItemActiveBg:w,popupBg:He,darkPopupBg:q}=ge,be=ge.calc(Re).div(7).mul(5).equal(),It=(0,ee.mergeToken)(ge,{menuArrowSize:be,menuHorizontalHeight:ge.calc(ye).mul(1.15).equal(),menuArrowOffset:ge.calc(be).mul(.25).equal(),menuSubMenuBg:pe,calc:ge.calc,popupBg:He}),Be=(0,ee.mergeToken)(It,{itemColor:Ze,itemHoverColor:ht,groupTitleColor:yt,itemSelectedColor:nt,subMenuItemSelectedColor:nt,itemBg:le,popupBg:q,subMenuItemBg:tt,itemActiveBg:"transparent",itemSelectedBg:ct,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ge,itemDisabledColor:Ce,dangerItemColor:te,dangerItemHoverColor:Ye,dangerItemSelectedColor:b,dangerItemActiveBg:w,dangerItemSelectedBg:ut,menuSubMenuBg:tt,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:ct});return[je(It),A(It),Ve(It),R(It,"light"),R(Be,"dark"),J(It),(0,Ie.Z)(It),(0,Fe.oN)(It,"slide-up"),(0,Fe.oN)(It,"slide-down"),(0,_e._y)(It,"zoom-big")]},Qe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:D,unitless:{groupTitleLineHeight:!0}})(Pe,z)},De=d(75030),et=Pe=>{var z;const{popupClassName:D,icon:ue,title:ge,theme:pe}=Pe,ye=o.useContext(T),{prefixCls:Re,inlineCollapsed:Ze,theme:te}=ye,le=(0,ne.Xl)();let tt;if(!ue)tt=Ze&&!le.length&&ge&&typeof ge=="string"?o.createElement("div",{className:`${Re}-inline-collapsed-noicon`},ge.charAt(0)):o.createElement("span",{className:`${Re}-title-content`},ge);else{const ut=o.isValidElement(ge)&&ge.type==="span";tt=o.createElement(o.Fragment,null,(0,C.Tm)(ue,{className:g()(o.isValidElement(ue)?(z=ue.props)===null||z===void 0?void 0:z.className:"",`${Re}-item-icon`)}),ut?ge:o.createElement("span",{className:`${Re}-title-content`},ge))}const nt=o.useMemo(()=>Object.assign(Object.assign({},ye),{firstLevel:!1}),[ye]),[ct]=(0,De.Cn)("Menu");return o.createElement(T.Provider,{value:nt},o.createElement(ne.Wd,Object.assign({},(0,oe.Z)(Pe,["icon"]),{title:tt,popupClassName:g()(Re,D,`${Re}-${pe||te}`),popupStyle:Object.assign({zIndex:ct},Pe.popupStyle)})))},Ot=function(Pe,z){var D={};for(var ue in Pe)Object.prototype.hasOwnProperty.call(Pe,ue)&&z.indexOf(ue)<0&&(D[ue]=Pe[ue]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ue=Object.getOwnPropertySymbols(Pe);ge<ue.length;ge++)z.indexOf(ue[ge])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ue[ge])&&(D[ue[ge]]=Pe[ue[ge]]);return D};function qe(Pe){return Pe===null||Pe===!1}const Xe={item:F,submenu:et,divider:V};var ke=(0,o.forwardRef)((Pe,z)=>{var D;const ue=o.useContext(L.Z),ge=ue||{},{getPrefixCls:pe,getPopupContainer:ye,direction:Re,menu:Ze}=o.useContext(N.E_),te=pe(),{prefixCls:le,className:tt,style:nt,theme:ct="light",expandIcon:ut,_internalDisableMenuItemTitleTooltip:Ge,inlineCollapsed:yt,siderCollapsed:ht,rootClassName:Ce,mode:Ye,selectable:b,onClick:w,overflowedIndicatorPopupClassName:He}=Pe,q=Ot(Pe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),be=(0,oe.Z)(q,["collapsedWidth"]);(D=ge.validator)===null||D===void 0||D.call(ge,{mode:Ye});const It=(0,re.Z)(function(){var Jt;w==null||w.apply(void 0,arguments),(Jt=ge.onClick)===null||Jt===void 0||Jt.call(ge)}),Be=ge.mode||Ye,rt=b!=null?b:ge.selectable,ft=yt!=null?yt:ht,ve={horizontal:{motionName:`${te}-slide-up`},inline:(0,l.Z)(te),other:{motionName:`${te}-zoom-big`}},Se=pe("menu",le||ge.prefixCls),We=(0,S.Z)(Se),[ze,M,dt]=it(Se,We,!ue),Ee=g()(`${Se}-${ct}`,Ze==null?void 0:Ze.className,tt),Tt=o.useMemo(()=>{var Jt,un;if(typeof ut=="function"||qe(ut))return ut||null;if(typeof ge.expandIcon=="function"||qe(ge.expandIcon))return ge.expandIcon||null;if(typeof(Ze==null?void 0:Ze.expandIcon)=="function"||qe(Ze==null?void 0:Ze.expandIcon))return(Ze==null?void 0:Ze.expandIcon)||null;const gn=(Jt=ut!=null?ut:ge==null?void 0:ge.expandIcon)!==null&&Jt!==void 0?Jt:Ze==null?void 0:Ze.expandIcon;return(0,C.Tm)(gn,{className:g()(`${Se}-submenu-expand-icon`,o.isValidElement(gn)?(un=gn.props)===null||un===void 0?void 0:un.className:void 0)})},[ut,ge==null?void 0:ge.expandIcon,Ze==null?void 0:Ze.expandIcon,Se]),Kt=o.useMemo(()=>({prefixCls:Se,inlineCollapsed:ft||!1,direction:Re,firstLevel:!0,theme:ct,mode:Be,disableMenuItemTitleTooltip:Ge}),[Se,ft,Re,Ge,ct]);return ze(o.createElement(L.Z.Provider,{value:null},o.createElement(T.Provider,{value:Kt},o.createElement(ne.ZP,Object.assign({getPopupContainer:ye,overflowedIndicator:o.createElement(fe.Z,null),overflowedIndicatorPopupClassName:g()(Se,`${Se}-${ct}`,He),mode:Be,selectable:rt,onClick:It},be,{inlineCollapsed:ft,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),nt),className:Ee,prefixCls:Se,direction:Re,defaultMotions:ve,expandIcon:Tt,ref:z,rootClassName:g()(Ce,M,ge.rootClassName,dt,We),_internalComponents:Xe})))))});const ie=(0,o.forwardRef)((Pe,z)=>{const D=(0,o.useRef)(null),ue=o.useContext(j.D);return(0,o.useImperativeHandle)(z,()=>({menu:D.current,focus:ge=>{var pe;(pe=D.current)===null||pe===void 0||pe.focus(ge)}})),o.createElement(ke,Object.assign({ref:D},Pe,ue))});ie.Item=F,ie.SubMenu=et,ie.Divider=V,ie.ItemGroup=ne.BW;var $e=ie},31709:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return Ze}});var o=d(59301),ne=d(60499),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},fe=j,K=d(7657),g=function(le,tt){return o.createElement(K.Z,(0,ne.Z)({},le,{ref:tt,icon:fe}))},re=o.forwardRef(g),oe=re,l=d(49198),C=d(33853),N=d(38819),S=d(92310),_=d.n(S),T=d(18642),k=d(43749),W=d(85899),V=d(72190),$=d(18929),I=d(10228),G=d(26112),F=d(48736),L=d(17119),ae=[10,20,50,100],me=function(le){var tt=le.pageSizeOptions,nt=tt===void 0?ae:tt,ct=le.locale,ut=le.changeSize,Ge=le.pageSize,yt=le.goButton,ht=le.quickGo,Ce=le.rootPrefixCls,Ye=le.disabled,b=le.buildOptionText,w=le.showSizeChanger,He=le.sizeChangerRender,q=o.useState(""),be=(0,V.Z)(q,2),It=be[0],Be=be[1],rt=function(){return!It||Number.isNaN(It)?void 0:Number(It)},ft=typeof b=="function"?b:function(Kt){return"".concat(Kt," ").concat(ct.items_per_page)},ve=function(Jt){Be(Jt.target.value)},Se=function(Jt){yt||It===""||(Be(""),!(Jt.relatedTarget&&(Jt.relatedTarget.className.indexOf("".concat(Ce,"-item-link"))>=0||Jt.relatedTarget.className.indexOf("".concat(Ce,"-item"))>=0))&&(ht==null||ht(rt())))},We=function(Jt){It!==""&&(Jt.keyCode===I.Z.ENTER||Jt.type==="click")&&(Be(""),ht==null||ht(rt()))},ze=function(){return nt.some(function(Jt){return Jt.toString()===Ge.toString()})?nt:nt.concat([Ge]).sort(function(Jt,un){var gn=Number.isNaN(Number(Jt))?0:Number(Jt),En=Number.isNaN(Number(un))?0:Number(un);return gn-En})},M="".concat(Ce,"-options");if(!w&&!ht)return null;var dt=null,Ee=null,Tt=null;return w&&He&&(dt=He({disabled:Ye,size:Ge,onSizeChange:function(Jt){ut==null||ut(Number(Jt))},"aria-label":ct.page_size,className:"".concat(M,"-size-changer"),options:ze().map(function(Kt){return{label:ft(Kt),value:Kt}})})),ht&&(yt&&(Tt=typeof yt=="boolean"?o.createElement("button",{type:"button",onClick:We,onKeyUp:We,disabled:Ye,className:"".concat(M,"-quick-jumper-button")},ct.jump_to_confirm):o.createElement("span",{onClick:We,onKeyUp:We},yt)),Ee=o.createElement("div",{className:"".concat(M,"-quick-jumper")},ct.jump_to,o.createElement("input",{disabled:Ye,type:"text",value:It,onChange:ve,onKeyUp:We,onBlur:Se,"aria-label":ct.page}),ct.page,Tt)),o.createElement("li",{className:M},dt,Ee)},de=me,Ie=function(le){var tt=le.rootPrefixCls,nt=le.page,ct=le.active,ut=le.className,Ge=le.showTitle,yt=le.onClick,ht=le.onKeyPress,Ce=le.itemRender,Ye="".concat(tt,"-item"),b=_()(Ye,"".concat(Ye,"-").concat(nt),(0,T.Z)((0,T.Z)({},"".concat(Ye,"-active"),ct),"".concat(Ye,"-disabled"),!nt),ut),w=function(){yt(nt)},He=function(It){ht(It,yt,nt)},q=Ce(nt,"page",o.createElement("a",{rel:"nofollow"},nt));return q?o.createElement("li",{title:Ge?String(nt):null,className:b,onClick:w,onKeyDown:He,tabIndex:0},q):null},Fe=Ie,_e=function(le,tt,nt){return nt};function Te(){}function ee(te){var le=Number(te);return typeof le=="number"&&!Number.isNaN(le)&&isFinite(le)&&Math.floor(le)===le}function B(te,le,tt){var nt=typeof te=="undefined"?le:te;return Math.floor((tt-1)/nt)+1}var A=function(le){var tt=le.prefixCls,nt=tt===void 0?"rc-pagination":tt,ct=le.selectPrefixCls,ut=ct===void 0?"rc-select":ct,Ge=le.className,yt=le.current,ht=le.defaultCurrent,Ce=ht===void 0?1:ht,Ye=le.total,b=Ye===void 0?0:Ye,w=le.pageSize,He=le.defaultPageSize,q=He===void 0?10:He,be=le.onChange,It=be===void 0?Te:be,Be=le.hideOnSinglePage,rt=le.align,ft=le.showPrevNextJumpers,ve=ft===void 0?!0:ft,Se=le.showQuickJumper,We=le.showLessItems,ze=le.showTitle,M=ze===void 0?!0:ze,dt=le.onShowSizeChange,Ee=dt===void 0?Te:dt,Tt=le.locale,Kt=Tt===void 0?L.Z:Tt,Jt=le.style,un=le.totalBoundaryShowSizeChanger,gn=un===void 0?50:un,En=le.disabled,Bn=le.simple,Wn=le.showTotal,Tn=le.showSizeChanger,Jn=Tn===void 0?b>gn:Tn,vn=le.sizeChangerRender,Gt=le.pageSizeOptions,Qt=le.itemRender,Dn=Qt===void 0?_e:Qt,An=le.jumpPrevIcon,bt=le.jumpNextIcon,_t=le.prevIcon,Me=le.nextIcon,ot=o.useRef(null),vt=(0,$.Z)(10,{value:w,defaultValue:q}),Et=(0,V.Z)(vt,2),Dt=Et[0],Xt=Et[1],pn=(0,$.Z)(1,{value:yt,defaultValue:Ce,postState:function(Gn){return Math.max(1,Math.min(Gn,B(void 0,Dt,b)))}}),Sn=(0,V.Z)(pn,2),Zt=Sn[0],yn=Sn[1],Nn=o.useState(Zt),_n=(0,V.Z)(Nn,2),St=_n[0],Ft=_n[1];(0,o.useEffect)(function(){Ft(Zt)},[Zt]);var Vt=It!==Te,Ut="current"in le,jt=Math.max(1,Zt-(We?3:5)),qt=Math.min(B(void 0,Dt,b),Zt+(We?3:5));function sn(yr,Gn){var mi=yr||o.createElement("button",{type:"button","aria-label":Gn,className:"".concat(nt,"-item-link")});return typeof yr=="function"&&(mi=o.createElement(yr,(0,W.Z)({},le))),mi}function on(yr){var Gn=yr.target.value,mi=B(void 0,Dt,b),Ln;return Gn===""?Ln=Gn:Number.isNaN(Number(Gn))?Ln=St:Gn>=mi?Ln=mi:Ln=Number(Gn),Ln}function In(yr){return ee(yr)&&yr!==Zt&&ee(b)&&b>0}var Mn=b>Dt?Se:!1;function dr(yr){(yr.keyCode===I.Z.UP||yr.keyCode===I.Z.DOWN)&&yr.preventDefault()}function jn(yr){var Gn=on(yr);switch(Gn!==St&&Ft(Gn),yr.keyCode){case I.Z.ENTER:Qn(Gn);break;case I.Z.UP:Qn(Gn-1);break;case I.Z.DOWN:Qn(Gn+1);break;default:break}}function Kn(yr){Qn(on(yr))}function er(yr){var Gn=B(yr,Dt,b),mi=Zt>Gn&&Gn!==0?Gn:Zt;Xt(yr),Ft(mi),Ee==null||Ee(Zt,yr),yn(mi),It==null||It(mi,yr)}function Qn(yr){if(In(yr)&&!En){var Gn=B(void 0,Dt,b),mi=yr;return yr>Gn?mi=Gn:yr<1&&(mi=1),mi!==St&&Ft(mi),yn(mi),It==null||It(mi,Dt),mi}return Zt}var ar=Zt>1,Vn=Zt<B(void 0,Dt,b);function qn(){ar&&Qn(Zt-1)}function or(){Vn&&Qn(Zt+1)}function cr(){Qn(jt)}function rr(){Qn(qt)}function nr(yr,Gn){if(yr.key==="Enter"||yr.charCode===I.Z.ENTER||yr.keyCode===I.Z.ENTER){for(var mi=arguments.length,Ln=new Array(mi>2?mi-2:0),Bi=2;Bi<mi;Bi++)Ln[Bi-2]=arguments[Bi];Gn.apply(void 0,Ln)}}function ir(yr){nr(yr,qn)}function Zn(yr){nr(yr,or)}function Mr(yr){nr(yr,cr)}function $t(yr){nr(yr,rr)}function sr(yr){var Gn=Dn(yr,"prev",sn(_t,"prev page"));return o.isValidElement(Gn)?o.cloneElement(Gn,{disabled:!ar}):Gn}function hr(yr){var Gn=Dn(yr,"next",sn(Me,"next page"));return o.isValidElement(Gn)?o.cloneElement(Gn,{disabled:!Vn}):Gn}function Yr(yr){(yr.type==="click"||yr.keyCode===I.Z.ENTER)&&Qn(St)}var Kr=null,li=(0,G.Z)(le,{aria:!0,data:!0}),qr=Wn&&o.createElement("li",{className:"".concat(nt,"-total-text")},Wn(b,[b===0?0:(Zt-1)*Dt+1,Zt*Dt>b?b:Zt*Dt])),Hn=null,On=B(void 0,Dt,b);if(Be&&b<=Dt)return null;var an=[],ln={rootPrefixCls:nt,onClick:Qn,onKeyPress:nr,showTitle:M,itemRender:Dn,page:-1},Un=Zt-1>0?Zt-1:0,Yn=Zt+1<On?Zt+1:On,lr=Se&&Se.goButton,Rr=(0,k.Z)(Bn)==="object"?Bn.readOnly:!Bn,Fn=lr,pr=null;Bn&&(lr&&(typeof lr=="boolean"?Fn=o.createElement("button",{type:"button",onClick:Yr,onKeyUp:Yr},Kt.jump_to_confirm):Fn=o.createElement("span",{onClick:Yr,onKeyUp:Yr},lr),Fn=o.createElement("li",{title:M?"".concat(Kt.jump_to).concat(Zt,"/").concat(On):null,className:"".concat(nt,"-simple-pager")},Fn)),pr=o.createElement("li",{title:M?"".concat(Zt,"/").concat(On):null,className:"".concat(nt,"-simple-pager")},Rr?St:o.createElement("input",{type:"text","aria-label":Kt.jump_to,value:St,disabled:En,onKeyDown:dr,onKeyUp:jn,onChange:jn,onBlur:Kn,size:3}),o.createElement("span",{className:"".concat(nt,"-slash")},"/"),On));var Dr=We?1:2;if(On<=3+Dr*2){On||an.push(o.createElement(Fe,(0,ne.Z)({},ln,{key:"noPager",page:1,className:"".concat(nt,"-item-disabled")})));for(var Xr=1;Xr<=On;Xr+=1)an.push(o.createElement(Fe,(0,ne.Z)({},ln,{key:Xr,page:Xr,active:Zt===Xr})))}else{var pi=We?Kt.prev_3:Kt.prev_5,Li=We?Kt.next_3:Kt.next_5,Gr=Dn(jt,"jump-prev",sn(An,"prev page")),Ii=Dn(qt,"jump-next",sn(bt,"next page"));ve&&(Kr=Gr?o.createElement("li",{title:M?pi:null,key:"prev",onClick:cr,tabIndex:0,onKeyDown:Mr,className:_()("".concat(nt,"-jump-prev"),(0,T.Z)({},"".concat(nt,"-jump-prev-custom-icon"),!!An))},Gr):null,Hn=Ii?o.createElement("li",{title:M?Li:null,key:"next",onClick:rr,tabIndex:0,onKeyDown:$t,className:_()("".concat(nt,"-jump-next"),(0,T.Z)({},"".concat(nt,"-jump-next-custom-icon"),!!bt))},Ii):null);var Jr=Math.max(1,Zt-Dr),bi=Math.min(Zt+Dr,On);Zt-1<=Dr&&(bi=1+Dr*2),On-Zt<=Dr&&(Jr=On-Dr*2);for(var ri=Jr;ri<=bi;ri+=1)an.push(o.createElement(Fe,(0,ne.Z)({},ln,{key:ri,page:ri,active:Zt===ri})));if(Zt-1>=Dr*2&&Zt!==3&&(an[0]=o.cloneElement(an[0],{className:_()("".concat(nt,"-item-after-jump-prev"),an[0].props.className)}),an.unshift(Kr)),On-Zt>=Dr*2&&Zt!==On-2){var di=an[an.length-1];an[an.length-1]=o.cloneElement(di,{className:_()("".concat(nt,"-item-before-jump-next"),di.props.className)}),an.push(Hn)}Jr!==1&&an.unshift(o.createElement(Fe,(0,ne.Z)({},ln,{key:1,page:1}))),bi!==On&&an.push(o.createElement(Fe,(0,ne.Z)({},ln,{key:On,page:On})))}var ii=sr(Un);if(ii){var Fi=!ar||!On;ii=o.createElement("li",{title:M?Kt.prev_page:null,onClick:qn,tabIndex:Fi?null:0,onKeyDown:ir,className:_()("".concat(nt,"-prev"),(0,T.Z)({},"".concat(nt,"-disabled"),Fi)),"aria-disabled":Fi},ii)}var Lr=hr(Yn);if(Lr){var Oi,Pi;Bn?(Oi=!Vn,Pi=ar?0:null):(Oi=!Vn||!On,Pi=Oi?null:0),Lr=o.createElement("li",{title:M?Kt.next_page:null,onClick:or,tabIndex:Pi,onKeyDown:Zn,className:_()("".concat(nt,"-next"),(0,T.Z)({},"".concat(nt,"-disabled"),Oi)),"aria-disabled":Oi},Lr)}var ki=_()(nt,Ge,(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({},"".concat(nt,"-start"),rt==="start"),"".concat(nt,"-center"),rt==="center"),"".concat(nt,"-end"),rt==="end"),"".concat(nt,"-simple"),Bn),"".concat(nt,"-disabled"),En));return o.createElement("ul",(0,ne.Z)({className:ki,style:Jt,ref:ot},li),qr,ii,Bn?pr:an,Lr,o.createElement(de,{locale:Kt,rootPrefixCls:nt,disabled:En,selectPrefixCls:ut,changeSize:er,pageSize:Dt,pageSizeOptions:Gt,quickGo:Mn?Qn:null,goButton:Fn,showSizeChanger:Jn,sizeChangerRender:vn}))},X=A,J=d(61852),Q=d(48755),E=d(31756),R=d(13783),se=d(9017),we=d(82326),Ve=d(57700),lt=d(36237),xe=d(53075),je=d(64910),Qe=d(39082),it=d(63356),De=d(51636),wt=d(16931);const et=te=>{const{componentCls:le}=te;return{[`${le}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${le}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${le}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed"}}},[`&${le}-disabled`]:{cursor:"not-allowed",[`${le}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:te.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:te.colorBorder,backgroundColor:te.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:te.itemActiveBgDisabled},a:{color:te.itemActiveColorDisabled}}},[`${le}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${le}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${le}-simple-pager`]:{color:te.colorTextDisabled},[`${le}-jump-prev, ${le}-jump-next`]:{[`${le}-item-link-icon`]:{opacity:0},[`${le}-item-ellipsis`]:{opacity:1}}},[`&${le}-simple`]:{[`${le}-prev, ${le}-next`]:{[`&${le}-disabled ${le}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ot=te=>{const{componentCls:le}=te;return{[`&${le}-mini ${le}-total-text, &${le}-mini ${le}-simple-pager`]:{height:te.itemSizeSM,lineHeight:(0,lt.unit)(te.itemSizeSM)},[`&${le}-mini ${le}-item`]:{minWidth:te.itemSizeSM,height:te.itemSizeSM,margin:0,lineHeight:(0,lt.unit)(te.calc(te.itemSizeSM).sub(2).equal())},[`&${le}-mini ${le}-prev, &${le}-mini ${le}-next`]:{minWidth:te.itemSizeSM,height:te.itemSizeSM,margin:0,lineHeight:(0,lt.unit)(te.itemSizeSM)},[`&${le}-mini:not(${le}-disabled)`]:{[`${le}-prev, ${le}-next`]:{[`&:hover ${le}-item-link`]:{backgroundColor:te.colorBgTextHover},[`&:active ${le}-item-link`]:{backgroundColor:te.colorBgTextActive},[`&${le}-disabled:hover ${le}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${le}-mini ${le}-prev ${le}-item-link,
|
|
|
&${le}-mini ${le}-next ${le}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:te.itemSizeSM,lineHeight:(0,lt.unit)(te.itemSizeSM)}},[`&${le}-mini ${le}-jump-prev, &${le}-mini ${le}-jump-next`]:{height:te.itemSizeSM,marginInlineEnd:0,lineHeight:(0,lt.unit)(te.itemSizeSM)},[`&${le}-mini ${le}-options`]:{marginInlineStart:te.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:te.miniOptionsSizeChangerTop},"&-quick-jumper":{height:te.itemSizeSM,lineHeight:(0,lt.unit)(te.itemSizeSM),input:Object.assign(Object.assign({},(0,xe.x0)(te)),{width:te.paginationMiniQuickJumperInputWidth,height:te.controlHeightSM})}}}},qe=te=>{const{componentCls:le}=te;return{[`
|
|
|
&${le}-simple ${le}-prev,
|
|
|
&${le}-simple ${le}-next
|
|
|
`]:{height:te.itemSizeSM,lineHeight:(0,lt.unit)(te.itemSizeSM),verticalAlign:"top",[`${le}-item-link`]:{height:te.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:te.colorBgTextHover},"&:active":{backgroundColor:te.colorBgTextActive},"&::after":{height:te.itemSizeSM,lineHeight:(0,lt.unit)(te.itemSizeSM)}}},[`&${le}-simple ${le}-simple-pager`]:{display:"inline-block",height:te.itemSizeSM,marginInlineEnd:te.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,lt.unit)(te.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:te.itemInputBg,border:`${(0,lt.unit)(te.lineWidth)} ${te.lineType} ${te.colorBorder}`,borderRadius:te.borderRadius,outline:"none",transition:`border-color ${te.motionDurationMid}`,color:"inherit","&:hover":{borderColor:te.colorPrimary},"&:focus":{borderColor:te.colorPrimaryHover,boxShadow:`${(0,lt.unit)(te.inputOutlineOffset)} 0 ${(0,lt.unit)(te.controlOutlineWidth)} ${te.controlOutline}`},"&[disabled]":{color:te.colorTextDisabled,backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,cursor:"not-allowed"}}}}},Xe=te=>{const{componentCls:le}=te;return{[`${le}-jump-prev, ${le}-jump-next`]:{outline:0,[`${le}-item-container`]:{position:"relative",[`${le}-item-link-icon`]:{color:te.colorPrimary,fontSize:te.fontSizeSM,opacity:0,transition:`all ${te.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${le}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:te.colorTextDisabled,letterSpacing:te.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:te.paginationEllipsisTextIndent,opacity:1,transition:`all ${te.motionDurationMid}`}},"&:hover":{[`${le}-item-link-icon`]:{opacity:1},[`${le}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${le}-prev,
|
|
|
${le}-jump-prev,
|
|
|
${le}-jump-next
|
|
|
`]:{marginInlineEnd:te.marginXS},[`
|
|
|
${le}-prev,
|
|
|
${le}-next,
|
|
|
${le}-jump-prev,
|
|
|
${le}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:te.itemSize,height:te.itemSize,color:te.colorText,fontFamily:te.fontFamily,lineHeight:(0,lt.unit)(te.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}`},[`${le}-prev, ${le}-next`]:{outline:0,button:{color:te.colorText,cursor:"pointer",userSelect:"none"},[`${le}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:te.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,lt.unit)(te.lineWidth)} ${te.lineType} transparent`,borderRadius:te.borderRadius,outline:"none",transition:`all ${te.motionDurationMid}`},[`&:hover ${le}-item-link`]:{backgroundColor:te.colorBgTextHover},[`&:active ${le}-item-link`]:{backgroundColor:te.colorBgTextActive},[`&${le}-disabled:hover`]:{[`${le}-item-link`]:{backgroundColor:"transparent"}}},[`${le}-slash`]:{marginInlineEnd:te.paginationSlashMarginInlineEnd,marginInlineStart:te.paginationSlashMarginInlineStart},[`${le}-options`]:{display:"inline-block",marginInlineStart:te.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:te.controlHeight,marginInlineStart:te.marginXS,lineHeight:(0,lt.unit)(te.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,xe.ik)(te)),(0,Qe.$U)(te,{borderColor:te.colorBorder,hoverBorderColor:te.colorPrimaryHover,activeBorderColor:te.colorPrimary,activeShadow:te.activeShadow})),{"&[disabled]":Object.assign({},(0,Qe.Xy)(te)),width:te.calc(te.controlHeightLG).mul(1.25).equal(),height:te.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:te.marginXS,marginInlineEnd:te.marginXS})}}}},Ue=te=>{const{componentCls:le}=te;return{[`${le}-item`]:{display:"inline-block",minWidth:te.itemSize,height:te.itemSize,marginInlineEnd:te.marginXS,fontFamily:te.fontFamily,lineHeight:(0,lt.unit)(te.calc(te.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:te.itemBg,border:`${(0,lt.unit)(te.lineWidth)} ${te.lineType} transparent`,borderRadius:te.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,lt.unit)(te.paginationItemPaddingInline)}`,color:te.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${le}-item-active)`]:{"&:hover":{transition:`all ${te.motionDurationMid}`,backgroundColor:te.colorBgTextHover},"&:active":{backgroundColor:te.colorBgTextActive}},"&-active":{fontWeight:te.fontWeightStrong,backgroundColor:te.itemActiveBg,borderColor:te.colorPrimary,a:{color:te.colorPrimary},"&:hover":{borderColor:te.colorPrimaryHover},"&:hover a":{color:te.colorPrimaryHover}}}}},ke=te=>{const{componentCls:le}=te;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.Wf)(te)),{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:'""'},[`${le}-total-text`]:{display:"inline-block",height:te.itemSize,marginInlineEnd:te.marginXS,lineHeight:(0,lt.unit)(te.calc(te.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ue(te)),Xe(te)),qe(te)),Ot(te)),et(te)),{[`@media only screen and (max-width: ${te.screenLG}px)`]:{[`${le}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${te.screenSM}px)`]:{[`${le}-options`]:{display:"none"}}}),[`&${te.componentCls}-rtl`]:{direction:"rtl"}}},ie=te=>{const{componentCls:le}=te;return{[`${le}:not(${le}-disabled)`]:{[`${le}-item`]:Object.assign({},(0,it.Qy)(te)),[`${le}-jump-prev, ${le}-jump-next`]:{"&:focus-visible":Object.assign({[`${le}-item-link-icon`]:{opacity:1},[`${le}-item-ellipsis`]:{opacity:0}},(0,it.oN)(te))},[`${le}-prev, ${le}-next`]:{[`&:focus-visible ${le}-item-link`]:Object.assign({},(0,it.oN)(te))}}}},$e=te=>Object.assign({itemBg:te.colorBgContainer,itemSize:te.controlHeight,itemSizeSM:te.controlHeightSM,itemActiveBg:te.colorBgContainer,itemLinkBg:te.colorBgContainer,itemActiveColorDisabled:te.colorTextDisabled,itemActiveBgDisabled:te.controlItemBgActiveDisabled,itemInputBg:te.colorBgContainer,miniOptionsSizeChangerTop:0},(0,je.T)(te)),Pe=te=>(0,De.mergeToken)(te,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:te.calc(te.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:te.calc(te.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:te.calc(te.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:te.calc(te.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:te.marginSM,paginationSlashMarginInlineEnd:te.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,je.e)(te));var z=(0,wt.I$)("Pagination",te=>{const le=Pe(te);return[ke(le),ie(le)]},$e);const D=te=>{const{componentCls:le}=te;return{[`${le}${le}-bordered${le}-disabled:not(${le}-mini)`]:{"&, &:hover":{[`${le}-item-link`]:{borderColor:te.colorBorder}},"&:focus-visible":{[`${le}-item-link`]:{borderColor:te.colorBorder}},[`${le}-item, ${le}-item-link`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,[`&:hover:not(${le}-item-active)`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,a:{color:te.colorTextDisabled}},[`&${le}-item-active`]:{backgroundColor:te.itemActiveBgDisabled}},[`${le}-prev, ${le}-next`]:{"&:hover button":{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,color:te.colorTextDisabled},[`${le}-item-link`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder}}},[`${le}${le}-bordered:not(${le}-mini)`]:{[`${le}-prev, ${le}-next`]:{"&:hover button":{borderColor:te.colorPrimaryHover,backgroundColor:te.itemBg},[`${le}-item-link`]:{backgroundColor:te.itemLinkBg,borderColor:te.colorBorder},[`&:hover ${le}-item-link`]:{borderColor:te.colorPrimary,backgroundColor:te.itemBg,color:te.colorPrimary},[`&${le}-disabled`]:{[`${le}-item-link`]:{borderColor:te.colorBorder,color:te.colorTextDisabled}}},[`${le}-item`]:{backgroundColor:te.itemBg,border:`${(0,lt.unit)(te.lineWidth)} ${te.lineType} ${te.colorBorder}`,[`&:hover:not(${le}-item-active)`]:{borderColor:te.colorPrimary,backgroundColor:te.itemBg,a:{color:te.colorPrimary}},"&-active":{borderColor:te.colorPrimary}}}}};var ue=(0,wt.bk)(["Pagination","bordered"],te=>{const le=Pe(te);return[D(le)]},$e);function ge(te){return(0,o.useMemo)(()=>typeof te=="boolean"?[te,{}]:te&&typeof te=="object"?[!0,te]:[void 0,void 0],[te])}var pe=function(te,le){var tt={};for(var nt in te)Object.prototype.hasOwnProperty.call(te,nt)&&le.indexOf(nt)<0&&(tt[nt]=te[nt]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,nt=Object.getOwnPropertySymbols(te);ct<nt.length;ct++)le.indexOf(nt[ct])<0&&Object.prototype.propertyIsEnumerable.call(te,nt[ct])&&(tt[nt[ct]]=te[nt[ct]]);return tt},Re=te=>{const{align:le,prefixCls:tt,selectPrefixCls:nt,className:ct,rootClassName:ut,style:Ge,size:yt,locale:ht,responsive:Ce,showSizeChanger:Ye,selectComponentClass:b,pageSizeOptions:w}=te,He=pe(te,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:q}=(0,R.Z)(Ce),[,be]=(0,Ve.ZP)(),{getPrefixCls:It,direction:Be,showSizeChanger:rt,className:ft,style:ve}=(0,Q.dj)("pagination"),Se=It("pagination",tt),[We,ze,M]=z(Se),dt=(0,E.Z)(yt),Ee=dt==="small"||!!(q&&!dt&&Ce),[Tt]=(0,se.Z)("Pagination",J.Z),Kt=Object.assign(Object.assign({},Tt),ht),[Jt,un]=ge(Ye),[gn,En]=ge(rt),Bn=Jt!=null?Jt:gn,Wn=un!=null?un:En,Tn=b||we.default,Jn=o.useMemo(()=>w?w.map(bt=>Number(bt)):void 0,[w]),vn=bt=>{var _t;const{disabled:Me,size:ot,onSizeChange:vt,"aria-label":Et,className:Dt,options:Xt}=bt,{className:pn,onChange:Sn}=Wn||{},Zt=(_t=Xt.find(yn=>String(yn.value)===String(ot)))===null||_t===void 0?void 0:_t.value;return o.createElement(Tn,Object.assign({disabled:Me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:yn=>yn.parentNode,"aria-label":Et,options:Xt},Wn,{value:Zt,onChange:(yn,Nn)=>{vt==null||vt(yn),Sn==null||Sn(yn,Nn)},size:Ee?"small":"middle",className:_()(Dt,pn)}))},Gt=o.useMemo(()=>{const bt=o.createElement("span",{className:`${Se}-item-ellipsis`},"\u2022\u2022\u2022"),_t=o.createElement("button",{className:`${Se}-item-link`,type:"button",tabIndex:-1},Be==="rtl"?o.createElement(N.Z,null):o.createElement(C.Z,null)),Me=o.createElement("button",{className:`${Se}-item-link`,type:"button",tabIndex:-1},Be==="rtl"?o.createElement(C.Z,null):o.createElement(N.Z,null)),ot=o.createElement("a",{className:`${Se}-item-link`},o.createElement("div",{className:`${Se}-item-container`},Be==="rtl"?o.createElement(l.Z,{className:`${Se}-item-link-icon`}):o.createElement(oe,{className:`${Se}-item-link-icon`}),bt)),vt=o.createElement("a",{className:`${Se}-item-link`},o.createElement("div",{className:`${Se}-item-container`},Be==="rtl"?o.createElement(oe,{className:`${Se}-item-link-icon`}):o.createElement(l.Z,{className:`${Se}-item-link-icon`}),bt));return{prevIcon:_t,nextIcon:Me,jumpPrevIcon:ot,jumpNextIcon:vt}},[Be,Se]),Qt=It("select",nt),Dn=_()({[`${Se}-${le}`]:!!le,[`${Se}-mini`]:Ee,[`${Se}-rtl`]:Be==="rtl",[`${Se}-bordered`]:be.wireframe},ft,ct,ut,ze,M),An=Object.assign(Object.assign({},ve),Ge);return We(o.createElement(o.Fragment,null,be.wireframe&&o.createElement(ue,{prefixCls:Se}),o.createElement(X,Object.assign({},Gt,He,{style:An,prefixCls:Se,selectPrefixCls:Qt,className:Dn,locale:Kt,pageSizeOptions:Jn,showSizeChanger:Bn,sizeChangerRender:vn}))))},Ze=Re},89787:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ht}});var o=d(59301),ne=d(17835),j=d(29679),fe=d(40001),K=d(19248),g=d(99267),re=d(92310),oe=d.n(re),l=d(2738),C=d(48755),N=d(60499),S=d(85899),_=d(42244),T={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},k=function(){var Ye=(0,o.useRef)([]),b=(0,o.useRef)(null);return(0,o.useEffect)(function(){var w=Date.now(),He=!1;Ye.current.forEach(function(q){if(q){He=!0;var be=q.style;be.transitionDuration=".3s, .3s, .3s, .06s",b.current&&w-b.current<100&&(be.transitionDuration="0s, 0s")}}),He&&(b.current=Date.now())}),Ye.current},W=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],V=function(Ye){var b=(0,S.Z)((0,S.Z)({},T),Ye),w=b.className,He=b.percent,q=b.prefixCls,be=b.strokeColor,It=b.strokeLinecap,Be=b.strokeWidth,rt=b.style,ft=b.trailColor,ve=b.trailWidth,Se=b.transition,We=(0,_.Z)(b,W);delete We.gapPosition;var ze=Array.isArray(He)?He:[He],M=Array.isArray(be)?be:[be],dt=k(),Ee=Be/2,Tt=100-Be/2,Kt="M ".concat(It==="round"?Ee:0,",").concat(Ee,`
|
|
|
L `).concat(It==="round"?Tt:100,",").concat(Ee),Jt="0 0 100 ".concat(Be),un=0;return o.createElement("svg",(0,N.Z)({className:oe()("".concat(q,"-line"),w),viewBox:Jt,preserveAspectRatio:"none",style:rt},We),o.createElement("path",{className:"".concat(q,"-line-trail"),d:Kt,strokeLinecap:It,stroke:ft,strokeWidth:ve||Be,fillOpacity:"0"}),ze.map(function(gn,En){var Bn=1;switch(It){case"round":Bn=1-Be/100;break;case"square":Bn=1-Be/2/100;break;default:Bn=1;break}var Wn={strokeDasharray:"".concat(gn*Bn,"px, 100px"),strokeDashoffset:"-".concat(un,"px"),transition:Se||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Tn=M[En]||M[M.length-1];return un+=gn,o.createElement("path",{key:En,className:"".concat(q,"-line-path"),d:Kt,strokeLinecap:It,stroke:Tn,strokeWidth:Be,fillOpacity:"0",ref:function(vn){dt[En]=vn},style:Wn})}))},$=V,I=d(43749),G=d(72190),F=d(47273),L=0,ae=(0,F.Z)();function me(){var Ce;return ae?(Ce=L,L+=1):Ce="TEST_OR_SSR",Ce}var de=function(Ce){var Ye=o.useState(),b=(0,G.Z)(Ye,2),w=b[0],He=b[1];return o.useEffect(function(){He("rc_progress_".concat(me()))},[]),Ce||w},Ie=function(Ye){var b=Ye.bg,w=Ye.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:b}},w)};function Fe(Ce,Ye){return Object.keys(Ce).map(function(b){var w=parseFloat(b),He="".concat(Math.floor(w*Ye),"%");return"".concat(Ce[b]," ").concat(He)})}var _e=o.forwardRef(function(Ce,Ye){var b=Ce.prefixCls,w=Ce.color,He=Ce.gradientId,q=Ce.radius,be=Ce.style,It=Ce.ptg,Be=Ce.strokeLinecap,rt=Ce.strokeWidth,ft=Ce.size,ve=Ce.gapDegree,Se=w&&(0,I.Z)(w)==="object",We=Se?"#FFF":void 0,ze=ft/2,M=o.createElement("circle",{className:"".concat(b,"-circle-path"),r:q,cx:ze,cy:ze,stroke:We,strokeLinecap:Be,strokeWidth:rt,opacity:It===0?0:1,style:be,ref:Ye});if(!Se)return M;var dt="".concat(He,"-conic"),Ee=ve?"".concat(180+ve/2,"deg"):"0deg",Tt=Fe(w,(360-ve)/360),Kt=Fe(w,1),Jt="conic-gradient(from ".concat(Ee,", ").concat(Tt.join(", "),")"),un="linear-gradient(to ".concat(ve?"bottom":"top",", ").concat(Kt.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:dt},M),o.createElement("foreignObject",{x:0,y:0,width:ft,height:ft,mask:"url(#".concat(dt,")")},o.createElement(Ie,{bg:un},o.createElement(Ie,{bg:Jt}))))}),Te=_e,ee=100,B=function(Ye,b,w,He,q,be,It,Be,rt,ft){var ve=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Se=w/100*360*((360-be)/360),We=be===0?0:{bottom:0,top:180,left:90,right:-90}[It],ze=(100-He)/100*b;rt==="round"&&He!==100&&(ze+=ft/2,ze>=b&&(ze=b-.01));var M=ee/2;return{stroke:typeof Be=="string"?Be:void 0,strokeDasharray:"".concat(b,"px ").concat(Ye),strokeDashoffset:ze+ve,transform:"rotate(".concat(q+Se+We,"deg)"),transformOrigin:"".concat(M,"px ").concat(M,"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}},A=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function X(Ce){var Ye=Ce!=null?Ce:[];return Array.isArray(Ye)?Ye:[Ye]}var J=function(Ye){var b=(0,S.Z)((0,S.Z)({},T),Ye),w=b.id,He=b.prefixCls,q=b.steps,be=b.strokeWidth,It=b.trailWidth,Be=b.gapDegree,rt=Be===void 0?0:Be,ft=b.gapPosition,ve=b.trailColor,Se=b.strokeLinecap,We=b.style,ze=b.className,M=b.strokeColor,dt=b.percent,Ee=(0,_.Z)(b,A),Tt=ee/2,Kt=de(w),Jt="".concat(Kt,"-gradient"),un=Tt-be/2,gn=Math.PI*2*un,En=rt>0?90+rt/2:-90,Bn=gn*((360-rt)/360),Wn=(0,I.Z)(q)==="object"?q:{count:q,gap:2},Tn=Wn.count,Jn=Wn.gap,vn=X(dt),Gt=X(M),Qt=Gt.find(function(vt){return vt&&(0,I.Z)(vt)==="object"}),Dn=Qt&&(0,I.Z)(Qt)==="object",An=Dn?"butt":Se,bt=B(gn,Bn,0,100,En,rt,ft,ve,An,be),_t=k(),Me=function(){var Et=0;return vn.map(function(Dt,Xt){var pn=Gt[Xt]||Gt[Gt.length-1],Sn=B(gn,Bn,Et,Dt,En,rt,ft,pn,An,be);return Et+=Dt,o.createElement(Te,{key:Xt,color:pn,ptg:Dt,radius:un,prefixCls:He,gradientId:Jt,style:Sn,strokeLinecap:An,strokeWidth:be,gapDegree:rt,ref:function(yn){_t[Xt]=yn},size:ee})}).reverse()},ot=function(){var Et=Math.round(Tn*(vn[0]/100)),Dt=100/Tn,Xt=0;return new Array(Tn).fill(null).map(function(pn,Sn){var Zt=Sn<=Et-1?Gt[0]:ve,yn=Zt&&(0,I.Z)(Zt)==="object"?"url(#".concat(Jt,")"):void 0,Nn=B(gn,Bn,Xt,Dt,En,rt,ft,Zt,"butt",be,Jn);return Xt+=(Bn-Nn.strokeDashoffset+Jn)*100/Bn,o.createElement("circle",{key:Sn,className:"".concat(He,"-circle-path"),r:un,cx:Tt,cy:Tt,stroke:yn,strokeWidth:be,opacity:1,style:Nn,ref:function(St){_t[Sn]=St}})})};return o.createElement("svg",(0,N.Z)({className:oe()("".concat(He,"-circle"),ze),viewBox:"0 0 ".concat(ee," ").concat(ee),style:We,id:w,role:"presentation"},Ee),!Tn&&o.createElement("circle",{className:"".concat(He,"-circle-trail"),r:un,cx:Tt,cy:Tt,stroke:ve,strokeLinecap:An,strokeWidth:It||be,style:bt}),Tn?ot():Me())},Q=J,E={Line:$,Circle:Q},R=d(25399),se=d(68361);function we(Ce){return!Ce||Ce<0?0:Ce>100?100:Ce}function Ve(Ce){let{success:Ye,successPercent:b}=Ce,w=b;return Ye&&"progress"in Ye&&(w=Ye.progress),Ye&&"percent"in Ye&&(w=Ye.percent),w}const lt=Ce=>{let{percent:Ye,success:b,successPercent:w}=Ce;const He=we(Ve({success:b,successPercent:w}));return[He,we(we(Ye)-He)]},xe=Ce=>{let{success:Ye={},strokeColor:b}=Ce;const{strokeColor:w}=Ye;return[w||se.presetPrimaryColors.green,b||null]},je=(Ce,Ye,b)=>{var w,He,q,be;let It=-1,Be=-1;if(Ye==="step"){const rt=b.steps,ft=b.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?(It=Ce==="small"?2:14,Be=ft!=null?ft:8):typeof Ce=="number"?[It,Be]=[Ce,Ce]:[It=14,Be=8]=Array.isArray(Ce)?Ce:[Ce.width,Ce.height],It*=rt}else if(Ye==="line"){const rt=b==null?void 0:b.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?Be=rt||(Ce==="small"?6:8):typeof Ce=="number"?[It,Be]=[Ce,Ce]:[It=-1,Be=8]=Array.isArray(Ce)?Ce:[Ce.width,Ce.height]}else(Ye==="circle"||Ye==="dashboard")&&(typeof Ce=="string"||typeof Ce=="undefined"?[It,Be]=Ce==="small"?[60,60]:[120,120]:typeof Ce=="number"?[It,Be]=[Ce,Ce]:Array.isArray(Ce)&&(It=(He=(w=Ce[0])!==null&&w!==void 0?w:Ce[1])!==null&&He!==void 0?He:120,Be=(be=(q=Ce[0])!==null&&q!==void 0?q:Ce[1])!==null&&be!==void 0?be:120));return[It,Be]},Qe=3,it=Ce=>Qe/Ce*100;var wt=Ce=>{const{prefixCls:Ye,trailColor:b=null,strokeLinecap:w="round",gapPosition:He,gapDegree:q,width:be=120,type:It,children:Be,success:rt,size:ft=be,steps:ve}=Ce,[Se,We]=je(ft,"circle");let{strokeWidth:ze}=Ce;ze===void 0&&(ze=Math.max(it(Se),6));const M={width:Se,height:We,fontSize:Se*.15+6},dt=o.useMemo(()=>{if(q||q===0)return q;if(It==="dashboard")return 75},[q,It]),Ee=lt(Ce),Tt=He||It==="dashboard"&&"bottom"||void 0,Kt=Object.prototype.toString.call(Ce.strokeColor)==="[object Object]",Jt=xe({success:rt,strokeColor:Ce.strokeColor}),un=oe()(`${Ye}-inner`,{[`${Ye}-circle-gradient`]:Kt}),gn=o.createElement(Q,{steps:ve,percent:ve?Ee[1]:Ee,strokeWidth:ze,trailWidth:ze,strokeColor:ve?Jt[1]:Jt,strokeLinecap:w,trailColor:b,prefixCls:Ye,gapDegree:dt,gapPosition:Tt}),En=Se<=20,Bn=o.createElement("div",{className:un,style:M},gn,!En&&Be);return En?o.createElement(R.Z,{title:Be},Bn):Bn},et=d(36237),Ot=d(63356),qe=d(16931),Xe=d(51636);const Ue="--progress-line-stroke-color",ke="--progress-percent",ie=Ce=>{const Ye=Ce?"100%":"-100%";return new et.Keyframes(`antProgress${Ce?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ye}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ye}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},$e=Ce=>{const{componentCls:Ye,iconCls:b}=Ce;return{[Ye]:Object.assign(Object.assign({},(0,Ot.Wf)(Ce)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ce.fontSize},[`${Ye}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Ye}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ce.remainingColor,borderRadius:Ce.lineBorderRadius},[`${Ye}-inner:not(${Ye}-circle-gradient)`]:{[`${Ye}-circle-path`]:{stroke:Ce.defaultColor}},[`${Ye}-success-bg, ${Ye}-bg`]:{position:"relative",background:Ce.defaultColor,borderRadius:Ce.lineBorderRadius,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOutCirc}`},[`${Ye}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Ye}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ce.marginXXS}},[`${Ye}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ue})`]},height:"100%",width:`calc(1 / var(${ke}) * 100%)`,display:"block"},[`&${Ye}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Ye}-text-inner`]:{color:Ce.colorWhite,[`&${Ye}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Ye}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ce.colorSuccess},[`${Ye}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,color:Ce.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[b]:{fontSize:Ce.fontSize},[`&${Ye}-text-outer`]:{width:"max-content"},[`&${Ye}-text-outer${Ye}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ce.marginXS}},[`${Ye}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,et.unit)(Ce.paddingXXS)}`,[`&${Ye}-text-start`]:{justifyContent:"start"},[`&${Ye}-text-end`]:{justifyContent:"end"}},[`&${Ye}-status-active`]:{[`${Ye}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ce.colorBgContainer,borderRadius:Ce.lineBorderRadius,opacity:0,animationName:ie(),animationDuration:Ce.progressActiveMotionDuration,animationTimingFunction:Ce.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ye}-rtl${Ye}-status-active`]:{[`${Ye}-bg::before`]:{animationName:ie(!0)}},[`&${Ye}-status-exception`]:{[`${Ye}-bg`]:{backgroundColor:Ce.colorError},[`${Ye}-text`]:{color:Ce.colorError}},[`&${Ye}-status-exception ${Ye}-inner:not(${Ye}-circle-gradient)`]:{[`${Ye}-circle-path`]:{stroke:Ce.colorError}},[`&${Ye}-status-success`]:{[`${Ye}-bg`]:{backgroundColor:Ce.colorSuccess},[`${Ye}-text`]:{color:Ce.colorSuccess}},[`&${Ye}-status-success ${Ye}-inner:not(${Ye}-circle-gradient)`]:{[`${Ye}-circle-path`]:{stroke:Ce.colorSuccess}}})}},Pe=Ce=>{const{componentCls:Ye,iconCls:b}=Ce;return{[Ye]:{[`${Ye}-circle-trail`]:{stroke:Ce.remainingColor},[`&${Ye}-circle ${Ye}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ye}-circle ${Ye}-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%)",[b]:{fontSize:Ce.circleIconFontSize}},[`${Ye}-circle&-status-exception`]:{[`${Ye}-text`]:{color:Ce.colorError}},[`${Ye}-circle&-status-success`]:{[`${Ye}-text`]:{color:Ce.colorSuccess}}},[`${Ye}-inline-circle`]:{lineHeight:1,[`${Ye}-inner`]:{verticalAlign:"bottom"}}}},z=Ce=>{const{componentCls:Ye}=Ce;return{[Ye]:{[`${Ye}-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}}}}}},D=Ce=>{const{componentCls:Ye,iconCls:b}=Ce;return{[Ye]:{[`${Ye}-small&-line, ${Ye}-small&-line ${Ye}-text ${b}`]:{fontSize:Ce.fontSizeSM}}}},ue=Ce=>({circleTextColor:Ce.colorText,defaultColor:Ce.colorInfo,remainingColor:Ce.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ce.fontSize/Ce.fontSizeSM}em`});var ge=(0,qe.I$)("Progress",Ce=>{const Ye=Ce.calc(Ce.marginXXS).div(2).equal(),b=(0,Xe.mergeToken)(Ce,{progressStepMarginInlineEnd:Ye,progressStepMinWidth:Ye,progressActiveMotionDuration:"2.4s"});return[$e(b),Pe(b),z(b),D(b)]},ue),pe=function(Ce,Ye){var b={};for(var w in Ce)Object.prototype.hasOwnProperty.call(Ce,w)&&Ye.indexOf(w)<0&&(b[w]=Ce[w]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,w=Object.getOwnPropertySymbols(Ce);He<w.length;He++)Ye.indexOf(w[He])<0&&Object.prototype.propertyIsEnumerable.call(Ce,w[He])&&(b[w[He]]=Ce[w[He]]);return b};const ye=Ce=>{let Ye=[];return Object.keys(Ce).forEach(b=>{const w=parseFloat(b.replace(/%/g,""));Number.isNaN(w)||Ye.push({key:w,value:Ce[b]})}),Ye=Ye.sort((b,w)=>b.key-w.key),Ye.map(b=>{let{key:w,value:He}=b;return`${He} ${w}%`}).join(", ")},Re=(Ce,Ye)=>{const{from:b=se.presetPrimaryColors.blue,to:w=se.presetPrimaryColors.blue,direction:He=Ye==="rtl"?"to left":"to right"}=Ce,q=pe(Ce,["from","to","direction"]);if(Object.keys(q).length!==0){const It=ye(q),Be=`linear-gradient(${He}, ${It})`;return{background:Be,[Ue]:Be}}const be=`linear-gradient(${He}, ${b}, ${w})`;return{background:be,[Ue]:be}};var te=Ce=>{const{prefixCls:Ye,direction:b,percent:w,size:He,strokeWidth:q,strokeColor:be,strokeLinecap:It="round",children:Be,trailColor:rt=null,percentPosition:ft,success:ve}=Ce,{align:Se,type:We}=ft,ze=be&&typeof be!="string"?Re(be,b):{[Ue]:be,background:be},M=It==="square"||It==="butt"?0:void 0,dt=He!=null?He:[-1,q||(He==="small"?6:8)],[Ee,Tt]=je(dt,"line",{strokeWidth:q}),Kt={backgroundColor:rt||void 0,borderRadius:M},Jt=Object.assign(Object.assign({width:`${we(w)}%`,height:Tt,borderRadius:M},ze),{[ke]:we(w)/100}),un=Ve(Ce),gn={width:`${we(un)}%`,height:Tt,borderRadius:M,backgroundColor:ve==null?void 0:ve.strokeColor},En={width:Ee<0?"100%":Ee},Bn=o.createElement("div",{className:`${Ye}-inner`,style:Kt},o.createElement("div",{className:oe()(`${Ye}-bg`,`${Ye}-bg-${We}`),style:Jt},We==="inner"&&Be),un!==void 0&&o.createElement("div",{className:`${Ye}-success-bg`,style:gn})),Wn=We==="outer"&&Se==="start",Tn=We==="outer"&&Se==="end";return We==="outer"&&Se==="center"?o.createElement("div",{className:`${Ye}-layout-bottom`},Bn,Be):o.createElement("div",{className:`${Ye}-outer`,style:En},Wn&&Be,Bn,Tn&&Be)},tt=Ce=>{const{size:Ye,steps:b,rounding:w=Math.round,percent:He=0,strokeWidth:q=8,strokeColor:be,trailColor:It=null,prefixCls:Be,children:rt}=Ce,ft=w(b*(He/100)),ve=Ye==="small"?2:14,Se=Ye!=null?Ye:[ve,q],[We,ze]=je(Se,"step",{steps:b,strokeWidth:q}),M=We/b,dt=Array.from({length:b});for(let Ee=0;Ee<b;Ee++){const Tt=Array.isArray(be)?be[Ee]:be;dt[Ee]=o.createElement("div",{key:Ee,className:oe()(`${Be}-steps-item`,{[`${Be}-steps-item-active`]:Ee<=ft-1}),style:{backgroundColor:Ee<=ft-1?Tt:It,width:M,height:ze}})}return o.createElement("div",{className:`${Be}-steps-outer`},dt,rt)},nt=function(Ce,Ye){var b={};for(var w in Ce)Object.prototype.hasOwnProperty.call(Ce,w)&&Ye.indexOf(w)<0&&(b[w]=Ce[w]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,w=Object.getOwnPropertySymbols(Ce);He<w.length;He++)Ye.indexOf(w[He])<0&&Object.prototype.propertyIsEnumerable.call(Ce,w[He])&&(b[w[He]]=Ce[w[He]]);return b};const ct=null,ut=["normal","exception","active","success"];var yt=o.forwardRef((Ce,Ye)=>{const{prefixCls:b,className:w,rootClassName:He,steps:q,strokeColor:be,percent:It=0,size:Be="default",showInfo:rt=!0,type:ft="line",status:ve,format:Se,style:We,percentPosition:ze={}}=Ce,M=nt(Ce,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:dt="end",type:Ee="outer"}=ze,Tt=Array.isArray(be)?be[0]:be,Kt=typeof be=="string"||Array.isArray(be)?be:void 0,Jt=o.useMemo(()=>{if(Tt){const Me=typeof Tt=="string"?Tt:Object.values(Tt)[0];return new ne.FastColor(Me).isLight()}return!1},[be]),un=o.useMemo(()=>{var Me,ot;const vt=Ve(Ce);return parseInt(vt!==void 0?(Me=vt!=null?vt:0)===null||Me===void 0?void 0:Me.toString():(ot=It!=null?It:0)===null||ot===void 0?void 0:ot.toString(),10)},[It,Ce.success,Ce.successPercent]),gn=o.useMemo(()=>!ut.includes(ve)&&un>=100?"success":ve||"normal",[ve,un]),{getPrefixCls:En,direction:Bn,progress:Wn}=o.useContext(C.E_),Tn=En("progress",b),[Jn,vn,Gt]=ge(Tn),Qt=ft==="line",Dn=Qt&&!q,An=o.useMemo(()=>{if(!rt)return null;const Me=Ve(Ce);let ot;const vt=Se||(Dt=>`${Dt}%`),Et=Qt&&Jt&&Ee==="inner";return Ee==="inner"||Se||gn!=="exception"&&gn!=="success"?ot=vt(we(It),we(Me)):gn==="exception"?ot=Qt?o.createElement(K.Z,null):o.createElement(g.Z,null):gn==="success"&&(ot=Qt?o.createElement(j.Z,null):o.createElement(fe.Z,null)),o.createElement("span",{className:oe()(`${Tn}-text`,{[`${Tn}-text-bright`]:Et,[`${Tn}-text-${dt}`]:Dn,[`${Tn}-text-${Ee}`]:Dn}),title:typeof ot=="string"?ot:void 0},ot)},[rt,It,un,gn,ft,Tn,Se]);let bt;ft==="line"?bt=q?o.createElement(tt,Object.assign({},Ce,{strokeColor:Kt,prefixCls:Tn,steps:typeof q=="object"?q.count:q}),An):o.createElement(te,Object.assign({},Ce,{strokeColor:Tt,prefixCls:Tn,direction:Bn,percentPosition:{align:dt,type:Ee}}),An):(ft==="circle"||ft==="dashboard")&&(bt=o.createElement(wt,Object.assign({},Ce,{strokeColor:Tt,prefixCls:Tn,progressStatus:gn}),An));const _t=oe()(Tn,`${Tn}-status-${gn}`,{[`${Tn}-${ft==="dashboard"&&"circle"||ft}`]:ft!=="line",[`${Tn}-inline-circle`]:ft==="circle"&&je(Be,"circle")[0]<=20,[`${Tn}-line`]:Dn,[`${Tn}-line-align-${dt}`]:Dn,[`${Tn}-line-position-${Ee}`]:Dn,[`${Tn}-steps`]:q,[`${Tn}-show-info`]:rt,[`${Tn}-${Be}`]:typeof Be=="string",[`${Tn}-rtl`]:Bn==="rtl"},Wn==null?void 0:Wn.className,w,He,vn,Gt);return Jn(o.createElement("div",Object.assign({ref:Ye,style:Object.assign(Object.assign({},Wn==null?void 0:Wn.style),We),className:_t,role:"progressbar","aria-valuenow":un,"aria-valuemin":0,"aria-valuemax":100},(0,l.Z)(M,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),bt))}),ht=yt},47889:function(mn,gt,d){"use strict";d.d(gt,{ZP:function(){return lt}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(18929),K=d(26112),g=d(48755),re=d(83397),oe=d(31756);const l=o.createContext(null),C=l.Provider;var N=l;const S=o.createContext(null),_=S.Provider;var T=d(16632),k=d(8654),W=d(12919),V=d(63872),$=d(74632),I=d(2171),G=d(56553),F=d(36237),L=d(63356),ae=d(16931),me=d(51636);const de=xe=>{const{componentCls:je,antCls:Qe}=xe,it=`${je}-group`;return{[it]:Object.assign(Object.assign({},(0,L.Wf)(xe)),{display:"inline-block",fontSize:0,[`&${it}-rtl`]:{direction:"rtl"},[`&${it}-block`]:{display:"flex"},[`${Qe}-badge ${Qe}-badge-count`]:{zIndex:1},[`> ${Qe}-badge:not(:first-child) > ${Qe}-button-wrapper`]:{borderInlineStart:"none"}})}},Ie=xe=>{const{componentCls:je,wrapperMarginInlineEnd:Qe,colorPrimary:it,radioSize:De,motionDurationSlow:wt,motionDurationMid:et,motionEaseInOutCirc:Ot,colorBgContainer:qe,colorBorder:Xe,lineWidth:Ue,colorBgContainerDisabled:ke,colorTextDisabled:ie,paddingXS:$e,dotColorDisabled:Pe,lineType:z,radioColor:D,radioBgColor:ue,calc:ge}=xe,pe=`${je}-inner`,Re=ge(De).sub(ge(4).mul(2)),Ze=ge(1).mul(De).equal({unit:!0});return{[`${je}-wrapper`]:Object.assign(Object.assign({},(0,L.Wf)(xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Qe,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${je}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${je}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,F.unit)(Ue)} ${z} ${it}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[je]:Object.assign(Object.assign({},(0,L.Wf)(xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${je}-wrapper:hover &,
|
|
|
&:hover ${pe}`]:{borderColor:it},[`${je}-input:focus-visible + ${pe}`]:Object.assign({},(0,L.oN)(xe)),[`${je}:hover::after, ${je}-wrapper:hover &::after`]:{visibility:"visible"},[`${je}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ze,height:Ze,marginBlockStart:ge(1).mul(De).div(-2).equal({unit:!0}),marginInlineStart:ge(1).mul(De).div(-2).equal({unit:!0}),backgroundColor:D,borderBlockStart:0,borderInlineStart:0,borderRadius:Ze,transform:"scale(0)",opacity:0,transition:`all ${wt} ${Ot}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ze,height:Ze,backgroundColor:qe,borderColor:Xe,borderStyle:"solid",borderWidth:Ue,borderRadius:"50%",transition:`all ${et}`},[`${je}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${je}-checked`]:{[pe]:{borderColor:it,backgroundColor:ue,"&::after":{transform:`scale(${xe.calc(xe.dotSize).div(De).equal()})`,opacity:1,transition:`all ${wt} ${Ot}`}}},[`${je}-disabled`]:{cursor:"not-allowed",[pe]:{backgroundColor:ke,borderColor:Xe,cursor:"not-allowed","&::after":{backgroundColor:Pe}},[`${je}-input`]:{cursor:"not-allowed"},[`${je}-disabled + span`]:{color:ie,cursor:"not-allowed"},[`&${je}-checked`]:{[pe]:{"&::after":{transform:`scale(${ge(Re).div(De).equal()})`}}}},[`span${je} + *`]:{paddingInlineStart:$e,paddingInlineEnd:$e}})}},Fe=xe=>{const{buttonColor:je,controlHeight:Qe,componentCls:it,lineWidth:De,lineType:wt,colorBorder:et,motionDurationSlow:Ot,motionDurationMid:qe,buttonPaddingInline:Xe,fontSize:Ue,buttonBg:ke,fontSizeLG:ie,controlHeightLG:$e,controlHeightSM:Pe,paddingXS:z,borderRadius:D,borderRadiusSM:ue,borderRadiusLG:ge,buttonCheckedBg:pe,buttonSolidCheckedColor:ye,colorTextDisabled:Re,colorBgContainerDisabled:Ze,buttonCheckedBgDisabled:te,buttonCheckedColorDisabled:le,colorPrimary:tt,colorPrimaryHover:nt,colorPrimaryActive:ct,buttonSolidCheckedBg:ut,buttonSolidCheckedHoverBg:Ge,buttonSolidCheckedActiveBg:yt,calc:ht}=xe;return{[`${it}-button-wrapper`]:{position:"relative",display:"inline-block",height:Qe,margin:0,paddingInline:Xe,paddingBlock:0,color:je,fontSize:Ue,lineHeight:(0,F.unit)(ht(Qe).sub(ht(De).mul(2)).equal()),background:ke,border:`${(0,F.unit)(De)} ${wt} ${et}`,borderBlockStartWidth:ht(De).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:De,cursor:"pointer",transition:[`color ${qe}`,`background ${qe}`,`box-shadow ${qe}`].join(","),a:{color:je},[`> ${it}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:ht(De).mul(-1).equal(),insetInlineStart:ht(De).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:De,paddingInline:0,backgroundColor:et,transition:`background-color ${Ot}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,F.unit)(De)} ${wt} ${et}`,borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D},"&:first-child:last-child":{borderRadius:D},[`${it}-group-large &`]:{height:$e,fontSize:ie,lineHeight:(0,F.unit)(ht($e).sub(ht(De).mul(2)).equal()),"&:first-child":{borderStartStartRadius:ge,borderEndStartRadius:ge},"&:last-child":{borderStartEndRadius:ge,borderEndEndRadius:ge}},[`${it}-group-small &`]:{height:Pe,paddingInline:ht(z).sub(De).equal(),paddingBlock:0,lineHeight:(0,F.unit)(ht(Pe).sub(ht(De).mul(2)).equal()),"&:first-child":{borderStartStartRadius:ue,borderEndStartRadius:ue},"&:last-child":{borderStartEndRadius:ue,borderEndEndRadius:ue}},"&:hover":{position:"relative",color:tt},"&:has(:focus-visible)":Object.assign({},(0,L.oN)(xe)),[`${it}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${it}-button-wrapper-disabled)`]:{zIndex:1,color:tt,background:pe,borderColor:tt,"&::before":{backgroundColor:tt},"&:first-child":{borderColor:tt},"&:hover":{color:nt,borderColor:nt,"&::before":{backgroundColor:nt}},"&:active":{color:ct,borderColor:ct,"&::before":{backgroundColor:ct}}},[`${it}-group-solid &-checked:not(${it}-button-wrapper-disabled)`]:{color:ye,background:ut,borderColor:ut,"&:hover":{color:ye,background:Ge,borderColor:Ge},"&:active":{color:ye,background:yt,borderColor:yt}},"&-disabled":{color:Re,backgroundColor:Ze,borderColor:et,cursor:"not-allowed","&:first-child, &:hover":{color:Re,backgroundColor:Ze,borderColor:et}},[`&-disabled${it}-button-wrapper-checked`]:{color:le,backgroundColor:te,borderColor:et,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},_e=xe=>{const{wireframe:je,padding:Qe,marginXS:it,lineWidth:De,fontSizeLG:wt,colorText:et,colorBgContainer:Ot,colorTextDisabled:qe,controlItemBgActiveDisabled:Xe,colorTextLightSolid:Ue,colorPrimary:ke,colorPrimaryHover:ie,colorPrimaryActive:$e,colorWhite:Pe}=xe,z=4,D=wt,ue=je?D-z*2:D-(z+De)*2;return{radioSize:D,dotSize:ue,dotColorDisabled:qe,buttonSolidCheckedColor:Ue,buttonSolidCheckedBg:ke,buttonSolidCheckedHoverBg:ie,buttonSolidCheckedActiveBg:$e,buttonBg:Ot,buttonCheckedBg:Ot,buttonColor:et,buttonCheckedBgDisabled:Xe,buttonCheckedColorDisabled:qe,buttonPaddingInline:Qe-De,wrapperMarginInlineEnd:it,radioColor:je?ke:Pe,radioBgColor:je?Ot:ke}};var Te=(0,ae.I$)("Radio",xe=>{const{controlOutline:je,controlOutlineWidth:Qe}=xe,it=`0 0 0 ${(0,F.unit)(Qe)} ${je}`,De=it,wt=(0,me.mergeToken)(xe,{radioFocusShadow:it,radioButtonFocusShadow:De});return[de(wt),Ie(wt),Fe(wt)]},_e,{unitless:{radioSize:!0,dotSize:!0}}),ee=function(xe,je){var Qe={};for(var it in xe)Object.prototype.hasOwnProperty.call(xe,it)&&je.indexOf(it)<0&&(Qe[it]=xe[it]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,it=Object.getOwnPropertySymbols(xe);De<it.length;De++)je.indexOf(it[De])<0&&Object.prototype.propertyIsEnumerable.call(xe,it[De])&&(Qe[it[De]]=xe[it[De]]);return Qe};const B=(xe,je)=>{var Qe,it;const De=o.useContext(N),wt=o.useContext(S),{getPrefixCls:et,direction:Ot,radio:qe}=o.useContext(g.E_),Xe=o.useRef(null),Ue=(0,k.sQ)(je,Xe),{isFormItemInput:ke}=o.useContext(G.aM),ie=Ce=>{var Ye,b;(Ye=xe.onChange)===null||Ye===void 0||Ye.call(xe,Ce),(b=De==null?void 0:De.onChange)===null||b===void 0||b.call(De,Ce)},{prefixCls:$e,className:Pe,rootClassName:z,children:D,style:ue,title:ge}=xe,pe=ee(xe,["prefixCls","className","rootClassName","children","style","title"]),ye=et("radio",$e),Re=((De==null?void 0:De.optionType)||wt)==="button",Ze=Re?`${ye}-button`:ye,te=(0,re.Z)(ye),[le,tt,nt]=Te(ye,te),ct=Object.assign({},pe),ut=o.useContext(I.Z);De&&(ct.name=De.name,ct.onChange=ie,ct.checked=xe.value===De.value,ct.disabled=(Qe=ct.disabled)!==null&&Qe!==void 0?Qe:De.disabled),ct.disabled=(it=ct.disabled)!==null&&it!==void 0?it:ut;const Ge=j()(`${Ze}-wrapper`,{[`${Ze}-wrapper-checked`]:ct.checked,[`${Ze}-wrapper-disabled`]:ct.disabled,[`${Ze}-wrapper-rtl`]:Ot==="rtl",[`${Ze}-wrapper-in-form-item`]:ke,[`${Ze}-wrapper-block`]:!!(De!=null&&De.block)},qe==null?void 0:qe.className,Pe,z,tt,nt,te),[yt,ht]=(0,$.Z)(ct.onClick);return le(o.createElement(W.Z,{component:"Radio",disabled:ct.disabled},o.createElement("label",{className:Ge,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),ue),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave,title:ge,onClick:yt},o.createElement(T.Z,Object.assign({},ct,{className:j()(ct.className,{[V.A]:!Re}),type:"radio",prefixCls:Ze,ref:Ue,onClick:ht})),D!==void 0?o.createElement("span",{className:`${Ze}-label`},D):null)))};var X=o.forwardRef(B),J=d(80402);const Q=o.forwardRef((xe,je)=>{const{getPrefixCls:Qe,direction:it}=o.useContext(g.E_),De=(0,J.Z)(),{prefixCls:wt,className:et,rootClassName:Ot,options:qe,buttonStyle:Xe="outline",disabled:Ue,children:ke,size:ie,style:$e,id:Pe,optionType:z,name:D=De,defaultValue:ue,value:ge,block:pe=!1,onChange:ye,onMouseEnter:Re,onMouseLeave:Ze,onFocus:te,onBlur:le}=xe,[tt,nt]=(0,fe.Z)(ue,{value:ge}),ct=o.useCallback(be=>{const It=tt,Be=be.target.value;"value"in xe||nt(Be),Be!==It&&(ye==null||ye(be))},[tt,nt,ye]),ut=Qe("radio",wt),Ge=`${ut}-group`,yt=(0,re.Z)(ut),[ht,Ce,Ye]=Te(ut,yt);let b=ke;qe&&qe.length>0&&(b=qe.map(be=>typeof be=="string"||typeof be=="number"?o.createElement(X,{key:be.toString(),prefixCls:ut,disabled:Ue,value:be,checked:tt===be},be):o.createElement(X,{key:`radio-group-value-options-${be.value}`,prefixCls:ut,disabled:be.disabled||Ue,value:be.value,checked:tt===be.value,title:be.title,style:be.style,id:be.id,required:be.required},be.label)));const w=(0,oe.Z)(ie),He=j()(Ge,`${Ge}-${Xe}`,{[`${Ge}-${w}`]:w,[`${Ge}-rtl`]:it==="rtl",[`${Ge}-block`]:pe},et,Ot,Ce,Ye,yt),q=o.useMemo(()=>({onChange:ct,value:tt,disabled:Ue,name:D,optionType:z,block:pe}),[ct,tt,Ue,D,z,pe]);return ht(o.createElement("div",Object.assign({},(0,K.Z)(xe,{aria:!0,data:!0}),{className:He,style:$e,onMouseEnter:Re,onMouseLeave:Ze,onFocus:te,onBlur:le,id:Pe,ref:je}),o.createElement(C,{value:q},b)))});var E=o.memo(Q),R=function(xe,je){var Qe={};for(var it in xe)Object.prototype.hasOwnProperty.call(xe,it)&&je.indexOf(it)<0&&(Qe[it]=xe[it]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,it=Object.getOwnPropertySymbols(xe);De<it.length;De++)je.indexOf(it[De])<0&&Object.prototype.propertyIsEnumerable.call(xe,it[De])&&(Qe[it[De]]=xe[it[De]]);return Qe};const se=(xe,je)=>{const{getPrefixCls:Qe}=o.useContext(g.E_),{prefixCls:it}=xe,De=R(xe,["prefixCls"]),wt=Qe("radio",it);return o.createElement(_,{value:"button"},o.createElement(X,Object.assign({prefixCls:wt},De,{type:"radio",ref:je})))};var we=o.forwardRef(se);const Ve=X;Ve.Button=we,Ve.Group=E,Ve.__ANT_RADIO=!0;var lt=Ve},63139:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return lt}});var o=d(59301),ne=d(60499),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},fe=j,K=d(7657),g=function(je,Qe){return o.createElement(K.Z,(0,ne.Z)({},je,{ref:Qe,icon:fe}))},re=o.forwardRef(g),oe=re,l=d(92310),C=d.n(l),N=d(18642),S=d(72190),_=d(42244),T=d(18929),k=d(10228),W=d(26112);function V(xe,je){var Qe=xe.disabled,it=xe.prefixCls,De=xe.character,wt=xe.characterRender,et=xe.index,Ot=xe.count,qe=xe.value,Xe=xe.allowHalf,Ue=xe.focused,ke=xe.onHover,ie=xe.onClick,$e=function(Re){ke(Re,et)},Pe=function(Re){ie(Re,et)},z=function(Re){Re.keyCode===k.Z.ENTER&&ie(Re,et)},D=et+1,ue=new Set([it]);qe===0&&et===0&&Ue?ue.add("".concat(it,"-focused")):Xe&&qe+.5>=D&&qe<D?(ue.add("".concat(it,"-half")),ue.add("".concat(it,"-active")),Ue&&ue.add("".concat(it,"-focused"))):(D<=qe?ue.add("".concat(it,"-full")):ue.add("".concat(it,"-zero")),D===qe&&Ue&&ue.add("".concat(it,"-focused")));var ge=typeof De=="function"?De(xe):De,pe=o.createElement("li",{className:C()(Array.from(ue)),ref:je},o.createElement("div",{onClick:Qe?null:Pe,onKeyDown:Qe?null:z,onMouseMove:Qe?null:$e,role:"radio","aria-checked":qe>et?"true":"false","aria-posinset":et+1,"aria-setsize":Ot,tabIndex:Qe?-1:0},o.createElement("div",{className:"".concat(it,"-first")},ge),o.createElement("div",{className:"".concat(it,"-second")},ge)));return wt&&(pe=wt(pe,xe)),pe}var $=o.forwardRef(V);function I(){var xe=o.useRef({});function je(it){return xe.current[it]}function Qe(it){return function(De){xe.current[it]=De}}return[je,Qe]}function G(xe){var je=xe.pageXOffset,Qe="scrollLeft";if(typeof je!="number"){var it=xe.document;je=it.documentElement[Qe],typeof je!="number"&&(je=it.body[Qe])}return je}function F(xe){var je,Qe,it=xe.ownerDocument,De=it.body,wt=it&&it.documentElement,et=xe.getBoundingClientRect();return je=et.left,Qe=et.top,je-=wt.clientLeft||De.clientLeft||0,Qe-=wt.clientTop||De.clientTop||0,{left:je,top:Qe}}function L(xe){var je=F(xe),Qe=xe.ownerDocument,it=Qe.defaultView||Qe.parentWindow;return je.left+=G(it),je.left}var ae=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function me(xe,je){var Qe=xe.prefixCls,it=Qe===void 0?"rc-rate":Qe,De=xe.className,wt=xe.defaultValue,et=xe.value,Ot=xe.count,qe=Ot===void 0?5:Ot,Xe=xe.allowHalf,Ue=Xe===void 0?!1:Xe,ke=xe.allowClear,ie=ke===void 0?!0:ke,$e=xe.keyboard,Pe=$e===void 0?!0:$e,z=xe.character,D=z===void 0?"\u2605":z,ue=xe.characterRender,ge=xe.disabled,pe=xe.direction,ye=pe===void 0?"ltr":pe,Re=xe.tabIndex,Ze=Re===void 0?0:Re,te=xe.autoFocus,le=xe.onHoverChange,tt=xe.onChange,nt=xe.onFocus,ct=xe.onBlur,ut=xe.onKeyDown,Ge=xe.onMouseLeave,yt=(0,_.Z)(xe,ae),ht=I(),Ce=(0,S.Z)(ht,2),Ye=Ce[0],b=Ce[1],w=o.useRef(null),He=function(){if(!ge){var An;(An=w.current)===null||An===void 0||An.focus()}};o.useImperativeHandle(je,function(){return{focus:He,blur:function(){if(!ge){var An;(An=w.current)===null||An===void 0||An.blur()}}}});var q=(0,T.Z)(wt||0,{value:et}),be=(0,S.Z)(q,2),It=be[0],Be=be[1],rt=(0,T.Z)(null),ft=(0,S.Z)(rt,2),ve=ft[0],Se=ft[1],We=function(An,bt){var _t=ye==="rtl",Me=An+1;if(Ue){var ot=Ye(An),vt=L(ot),Et=ot.clientWidth;(_t&&bt-vt>Et/2||!_t&&bt-vt<Et/2)&&(Me-=.5)}return Me},ze=function(An){Be(An),tt==null||tt(An)},M=o.useState(!1),dt=(0,S.Z)(M,2),Ee=dt[0],Tt=dt[1],Kt=function(){Tt(!0),nt==null||nt()},Jt=function(){Tt(!1),ct==null||ct()},un=o.useState(null),gn=(0,S.Z)(un,2),En=gn[0],Bn=gn[1],Wn=function(An,bt){var _t=We(bt,An.pageX);_t!==ve&&(Bn(_t),Se(null)),le==null||le(_t)},Tn=function(An){ge||(Bn(null),Se(null),le==null||le(void 0)),An&&(Ge==null||Ge(An))},Jn=function(An,bt){var _t=We(bt,An.pageX),Me=!1;ie&&(Me=_t===It),Tn(),ze(Me?0:_t),Se(Me?_t:null)},vn=function(An){var bt=An.keyCode,_t=ye==="rtl",Me=Ue?.5:1;Pe&&(bt===k.Z.RIGHT&&It<qe&&!_t?(ze(It+Me),An.preventDefault()):bt===k.Z.LEFT&&It>0&&!_t||bt===k.Z.RIGHT&&It>0&&_t?(ze(It-Me),An.preventDefault()):bt===k.Z.LEFT&&It<qe&&_t&&(ze(It+Me),An.preventDefault())),ut==null||ut(An)};o.useEffect(function(){te&&!ge&&He()},[]);var Gt=new Array(qe).fill(0).map(function(Dn,An){return o.createElement($,{ref:b(An),index:An,count:qe,disabled:ge,prefixCls:"".concat(it,"-star"),allowHalf:Ue,value:En===null?It:En,onClick:Jn,onHover:Wn,key:Dn||An,character:D,characterRender:ue,focused:Ee})}),Qt=C()(it,De,(0,N.Z)((0,N.Z)({},"".concat(it,"-disabled"),ge),"".concat(it,"-rtl"),ye==="rtl"));return o.createElement("ul",(0,ne.Z)({className:Qt,onMouseLeave:Tn,tabIndex:ge?-1:Ze,onFocus:ge?null:Kt,onBlur:ge?null:Jt,onKeyDown:ge?null:vn,ref:w},(0,W.Z)(yt,{aria:!0,data:!0,attr:!0})),Gt)}var de=o.forwardRef(me),Ie=de,Fe=d(48755),_e=d(25399),Te=d(36237),ee=d(63356),B=d(16931),A=d(51636);const X=xe=>{const{componentCls:je}=xe;return{[`${je}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:xe.marginXS},"> div":{transition:`all ${xe.motionDurationMid}, outline 0s`,"&:hover":{transform:xe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Te.unit)(xe.lineWidth)} dashed ${xe.starColor}`,transform:xe.starHoverScale}},"&-first, &-second":{color:xe.starBg,transition:`all ${xe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${je}-star-first, &-half ${je}-star-second`]:{opacity:1},[`&-half ${je}-star-first, &-full ${je}-star-second`]:{color:"inherit"}}}},J=xe=>({[`&-rtl${xe.componentCls}`]:{direction:"rtl"}}),Q=xe=>{const{componentCls:je}=xe;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(xe)),{display:"inline-block",margin:0,padding:0,color:xe.starColor,fontSize:xe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${je} ${je}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),X(xe)),J(xe))}},E=xe=>({starColor:xe.yellow6,starSize:xe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:xe.colorFillContent});var R=(0,B.I$)("Rate",xe=>{const je=(0,A.mergeToken)(xe,{});return[Q(je)]},E),se=d(2171),we=function(xe,je){var Qe={};for(var it in xe)Object.prototype.hasOwnProperty.call(xe,it)&&je.indexOf(it)<0&&(Qe[it]=xe[it]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,it=Object.getOwnPropertySymbols(xe);De<it.length;De++)je.indexOf(it[De])<0&&Object.prototype.propertyIsEnumerable.call(xe,it[De])&&(Qe[it[De]]=xe[it[De]]);return Qe},lt=o.forwardRef((xe,je)=>{const{prefixCls:Qe,className:it,rootClassName:De,style:wt,tooltips:et,character:Ot=o.createElement(oe,null),disabled:qe}=xe,Xe=we(xe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),Ue=(Re,Ze)=>{let{index:te}=Ze;return et?o.createElement(_e.Z,{title:et[te]},Re):Re},{getPrefixCls:ke,direction:ie,rate:$e}=o.useContext(Fe.E_),Pe=ke("rate",Qe),[z,D,ue]=R(Pe),ge=Object.assign(Object.assign({},$e==null?void 0:$e.style),wt),pe=o.useContext(se.Z),ye=qe!=null?qe:pe;return z(o.createElement(Ie,Object.assign({ref:je,character:Ot,characterRender:Ue,disabled:ye},Xe,{className:C()(it,De,D,ue,$e==null?void 0:$e.className),style:ge,prefixCls:Pe,direction:ie})))})},82326:function(mn,gt,d){"use strict";var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(37463),K=d(2738),g=d(75030),re=d(86641),oe=d(45915),l=d(82855),C=d(48755),N=d(38406),S=d(2171),_=d(83397),T=d(31756),k=d(56553),W=d(24971),V=d(70045),$=d(57700),I=d(1722),G=d(90376),F=d(68525),L=d(90005),ae=function(_e,Te){var ee={};for(var B in _e)Object.prototype.hasOwnProperty.call(_e,B)&&Te.indexOf(B)<0&&(ee[B]=_e[B]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,B=Object.getOwnPropertySymbols(_e);A<B.length;A++)Te.indexOf(B[A])<0&&Object.prototype.propertyIsEnumerable.call(_e,B[A])&&(ee[B[A]]=_e[B[A]]);return ee};const me="SECRET_COMBOBOX_MODE_DO_NOT_USE",de=(_e,Te)=>{var ee;const{prefixCls:B,bordered:A,className:X,rootClassName:J,getPopupContainer:Q,popupClassName:E,dropdownClassName:R,listHeight:se=256,placement:we,listItemHeight:Ve,size:lt,disabled:xe,notFoundContent:je,status:Qe,builtinPlacements:it,dropdownMatchSelectWidth:De,popupMatchSelectWidth:wt,direction:et,style:Ot,allowClear:qe,variant:Xe,dropdownStyle:Ue,transitionName:ke,tagRender:ie,maxCount:$e,prefix:Pe}=_e,z=ae(_e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:ue,renderEmpty:ge,direction:pe,virtual:ye,popupMatchSelectWidth:Re,popupOverflow:Ze}=o.useContext(C.E_),te=(0,C.dj)("select"),[,le]=(0,$.ZP)(),tt=Ve!=null?Ve:le==null?void 0:le.controlHeight,nt=ue("select",B),ct=ue(),ut=et!=null?et:pe,{compactSize:Ge,compactItemClassnames:yt}=(0,V.ri)(nt,ut),[ht,Ce]=(0,W.Z)("select",Xe,A),Ye=(0,_.Z)(nt),[b,w,He]=(0,G.Z)(nt,Ye),q=o.useMemo(()=>{const{mode:vn}=_e;if(vn!=="combobox")return vn===me?"combobox":vn},[_e.mode]),be=q==="multiple"||q==="tags",It=(0,L.Z)(_e.suffixIcon,_e.showArrow),Be=(ee=wt!=null?wt:De)!==null&&ee!==void 0?ee:Re,{status:rt,hasFeedback:ft,isFormItemInput:ve,feedbackIcon:Se}=o.useContext(k.aM),We=(0,l.F)(rt,Qe);let ze;je!==void 0?ze=je:q==="combobox"?ze=null:ze=(ge==null?void 0:ge("Select"))||o.createElement(N.Z,{componentName:"Select"});const{suffixIcon:M,itemIcon:dt,removeIcon:Ee,clearIcon:Tt}=(0,F.Z)(Object.assign(Object.assign({},z),{multiple:be,hasFeedback:ft,feedbackIcon:Se,showSuffixIcon:It,prefixCls:nt,componentName:"Select"})),Kt=qe===!0?{clearIcon:Tt}:qe,Jt=(0,K.Z)(z,["suffixIcon","itemIcon"]),un=j()(E||R,{[`${nt}-dropdown-${ut}`]:ut==="rtl"},J,He,Ye,w),gn=(0,T.Z)(vn=>{var Gt;return(Gt=lt!=null?lt:Ge)!==null&&Gt!==void 0?Gt:vn}),En=o.useContext(S.Z),Bn=xe!=null?xe:En,Wn=j()({[`${nt}-lg`]:gn==="large",[`${nt}-sm`]:gn==="small",[`${nt}-rtl`]:ut==="rtl",[`${nt}-${ht}`]:Ce,[`${nt}-in-form-item`]:ve},(0,l.Z)(nt,We,ft),yt,te.className,X,J,He,Ye,w),Tn=o.useMemo(()=>we!==void 0?we:ut==="rtl"?"bottomRight":"bottomLeft",[we,ut]),[Jn]=(0,g.Cn)("SelectLike",Ue==null?void 0:Ue.zIndex);return b(o.createElement(fe.ZP,Object.assign({ref:Te,virtual:ye,showSearch:te.showSearch},Jt,{style:Object.assign(Object.assign({},te.style),Ot),dropdownMatchSelectWidth:Be,transitionName:(0,re.m)(ct,"slide-up",ke),builtinPlacements:(0,I.Z)(it,Ze),listHeight:se,listItemHeight:tt,mode:q,prefixCls:nt,placement:Tn,direction:ut,prefix:Pe,suffixIcon:M,menuItemSelectedIcon:dt,removeIcon:Ee,allowClear:Kt,notFoundContent:ze,className:Wn,getPopupContainer:Q||D,dropdownClassName:un,disabled:Bn,dropdownStyle:Object.assign(Object.assign({},Ue),{zIndex:Jn}),maxCount:be?$e:void 0,tagRender:be?ie:void 0})))},Ie=o.forwardRef(de),Fe=(0,oe.Z)(Ie,"dropdownAlign");Ie.SECRET_COMBOBOX_MODE_DO_NOT_USE=me,Ie.Option=fe.Wx,Ie.OptGroup=fe.Xo,Ie._InternalPanelDoNotUseOrYouWillBeFired=Fe,gt.default=Ie},1722:function(mn,gt){"use strict";const d=ne=>{const fe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ne==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},fe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},fe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},fe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},fe),{points:["br","tr"],offset:[0,-4]})}};function o(ne,j){return ne||d(j)}gt.Z=o},90376:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return B}});var o=d(63356),ne=d(56119),j=d(16931),fe=d(51636),K=d(46e3),g=d(93873);const re=A=>{const{optionHeight:X,optionFontSize:J,optionLineHeight:Q,optionPadding:E}=A;return{position:"relative",display:"block",minHeight:X,padding:E,color:A.colorText,fontWeight:"normal",fontSize:J,lineHeight:Q,boxSizing:"border-box"}};var l=A=>{const{antCls:X,componentCls:J}=A,Q=`${J}-item`,E=`&${X}-slide-up-enter${X}-slide-up-enter-active`,R=`&${X}-slide-up-appear${X}-slide-up-appear-active`,se=`&${X}-slide-up-leave${X}-slide-up-leave-active`,we=`${J}-dropdown-placement-`,Ve=`${Q}-option-selected`;return[{[`${J}-dropdown`]:Object.assign(Object.assign({},(0,o.Wf)(A)),{position:"absolute",top:-9999,zIndex:A.zIndexPopup,boxSizing:"border-box",padding:A.paddingXXS,overflow:"hidden",fontSize:A.fontSize,fontVariant:"initial",backgroundColor:A.colorBgElevated,borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,[`
|
|
|
${E}${we}bottomLeft,
|
|
|
${R}${we}bottomLeft
|
|
|
`]:{animationName:K.fJ},[`
|
|
|
${E}${we}topLeft,
|
|
|
${R}${we}topLeft,
|
|
|
${E}${we}topRight,
|
|
|
${R}${we}topRight
|
|
|
`]:{animationName:K.Qt},[`${se}${we}bottomLeft`]:{animationName:K.Uw},[`
|
|
|
${se}${we}topLeft,
|
|
|
${se}${we}topRight
|
|
|
`]:{animationName:K.ly},"&-hidden":{display:"none"},[Q]:Object.assign(Object.assign({},re(A)),{cursor:"pointer",transition:`background ${A.motionDurationSlow} ease`,borderRadius:A.borderRadiusSM,"&-group":{color:A.colorTextDescription,fontSize:A.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},o.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Q}-option-disabled)`]:{backgroundColor:A.optionActiveBg},[`&-selected:not(${Q}-option-disabled)`]:{color:A.optionSelectedColor,fontWeight:A.optionSelectedFontWeight,backgroundColor:A.optionSelectedBg,[`${Q}-option-state`]:{color:A.colorPrimary}},"&-disabled":{[`&${Q}-option-selected`]:{backgroundColor:A.colorBgContainerDisabled},color:A.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:A.calc(A.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},re(A)),{color:A.colorTextDisabled})}),[`${Ve}:has(+ ${Ve})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ve}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,K.oN)(A,"slide-up"),(0,K.oN)(A,"slide-down"),(0,g.Fm)(A,"move-up"),(0,g.Fm)(A,"move-down")]},C=d(26743),N=d(36237);function S(A,X){const{componentCls:J,inputPaddingHorizontalBase:Q,borderRadius:E}=A,R=A.calc(A.controlHeight).sub(A.calc(A.lineWidth).mul(2)).equal(),se=X?`${J}-${X}`:"";return{[`${J}-single${se}`]:{fontSize:A.fontSize,height:A.controlHeight,[`${J}-selector`]:Object.assign(Object.assign({},(0,o.Wf)(A,!0)),{display:"flex",borderRadius:E,flex:"1 1 auto",[`${J}-selection-wrap:after`]:{lineHeight:(0,N.unit)(R)},[`${J}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${J}-selection-item,
|
|
|
${J}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,N.unit)(R),transition:`all ${A.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${J}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${J}-selection-item:empty:after`,`${J}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${J}-show-arrow ${J}-selection-item,
|
|
|
&${J}-show-arrow ${J}-selection-search,
|
|
|
&${J}-show-arrow ${J}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:A.showArrowPaddingInlineEnd},[`&${J}-open ${J}-selection-item`]:{color:A.colorTextPlaceholder},[`&:not(${J}-customize-input)`]:{[`${J}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,N.unit)(Q)}`,[`${J}-selection-search-input`]:{height:R,fontSize:A.fontSize},"&:after":{lineHeight:(0,N.unit)(R)}}},[`&${J}-customize-input`]:{[`${J}-selector`]:{"&:after":{display:"none"},[`${J}-selection-search`]:{position:"static",width:"100%"},[`${J}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,N.unit)(Q)}`,"&:after":{display:"none"}}}}}}}function _(A){const{componentCls:X}=A,J=A.calc(A.controlPaddingHorizontalSM).sub(A.lineWidth).equal();return[S(A),S((0,fe.mergeToken)(A,{controlHeight:A.controlHeightSM,borderRadius:A.borderRadiusSM}),"sm"),{[`${X}-single${X}-sm`]:{[`&:not(${X}-customize-input)`]:{[`${X}-selector`]:{padding:`0 ${(0,N.unit)(J)}`},[`&${X}-show-arrow ${X}-selection-search`]:{insetInlineEnd:A.calc(J).add(A.calc(A.fontSize).mul(1.5)).equal()},[`
|
|
|
&${X}-show-arrow ${X}-selection-item,
|
|
|
&${X}-show-arrow ${X}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:A.calc(A.fontSize).mul(1.5).equal()}}}},S((0,fe.mergeToken)(A,{controlHeight:A.singleItemHeightLG,fontSize:A.fontSizeLG,borderRadius:A.borderRadiusLG}),"lg")]}const T=A=>{const{fontSize:X,lineHeight:J,lineWidth:Q,controlHeight:E,controlHeightSM:R,controlHeightLG:se,paddingXXS:we,controlPaddingHorizontal:Ve,zIndexPopupBase:lt,colorText:xe,fontWeightStrong:je,controlItemBgActive:Qe,controlItemBgHover:it,colorBgContainer:De,colorFillSecondary:wt,colorBgContainerDisabled:et,colorTextDisabled:Ot,colorPrimaryHover:qe,colorPrimary:Xe,controlOutline:Ue}=A,ke=we*2,ie=Q*2,$e=Math.min(E-ke,E-ie),Pe=Math.min(R-ke,R-ie),z=Math.min(se-ke,se-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(we/2),zIndexPopup:lt+50,optionSelectedColor:xe,optionSelectedFontWeight:je,optionSelectedBg:Qe,optionActiveBg:it,optionPadding:`${(E-X*J)/2}px ${Ve}px`,optionFontSize:X,optionLineHeight:J,optionHeight:E,selectorBg:De,clearBg:De,singleItemHeightLG:se,multipleItemBg:wt,multipleItemBorderColor:"transparent",multipleItemHeight:$e,multipleItemHeightSM:Pe,multipleItemHeightLG:z,multipleSelectorBgDisabled:et,multipleItemColorDisabled:Ot,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(A.fontSize*1.25),hoverBorderColor:qe,activeBorderColor:Xe,activeOutlineColor:Ue,selectAffixPadding:we}},k=(A,X)=>{const{componentCls:J,antCls:Q,controlOutlineWidth:E}=A;return{[`&:not(${J}-customize-input) ${J}-selector`]:{border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} ${X.borderColor}`,background:A.selectorBg},[`&:not(${J}-disabled):not(${J}-customize-input):not(${Q}-pagination-size-changer)`]:{[`&:hover ${J}-selector`]:{borderColor:X.hoverBorderHover},[`${J}-focused& ${J}-selector`]:{borderColor:X.activeBorderColor,boxShadow:`0 0 0 ${(0,N.unit)(E)} ${X.activeOutlineColor}`,outline:0},[`${J}-prefix`]:{color:X.color}}}},W=(A,X)=>({[`&${A.componentCls}-status-${X.status}`]:Object.assign({},k(A,X))}),V=A=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},k(A,{borderColor:A.colorBorder,hoverBorderHover:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeOutlineColor:A.activeOutlineColor,color:A.colorText})),W(A,{status:"error",borderColor:A.colorError,hoverBorderHover:A.colorErrorHover,activeBorderColor:A.colorError,activeOutlineColor:A.colorErrorOutline,color:A.colorError})),W(A,{status:"warning",borderColor:A.colorWarning,hoverBorderHover:A.colorWarningHover,activeBorderColor:A.colorWarning,activeOutlineColor:A.colorWarningOutline,color:A.colorWarning})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}})}),$=(A,X)=>{const{componentCls:J,antCls:Q}=A;return{[`&:not(${J}-customize-input) ${J}-selector`]:{background:X.bg,border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} transparent`,color:X.color},[`&:not(${J}-disabled):not(${J}-customize-input):not(${Q}-pagination-size-changer)`]:{[`&:hover ${J}-selector`]:{background:X.hoverBg},[`${J}-focused& ${J}-selector`]:{background:A.selectorBg,borderColor:X.activeBorderColor,outline:0}}}},I=(A,X)=>({[`&${A.componentCls}-status-${X.status}`]:Object.assign({},$(A,X))}),G=A=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},$(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.activeBorderColor,color:A.colorText})),I(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,color:A.colorError})),I(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,color:A.colorWarning})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{borderColor:A.colorBorder,background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.colorBgContainer,border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}})}),F=A=>({"&-borderless":{[`${A.componentCls}-selector`]:{background:"transparent",border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} transparent`},[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`},[`&${A.componentCls}-status-error`]:{[`${A.componentCls}-prefix, ${A.componentCls}-selection-item`]:{color:A.colorError}},[`&${A.componentCls}-status-warning`]:{[`${A.componentCls}-prefix, ${A.componentCls}-selection-item`]:{color:A.colorWarning}}}}),L=(A,X)=>{const{componentCls:J,antCls:Q}=A;return{[`&:not(${J}-customize-input) ${J}-selector`]:{borderWidth:`0 0 ${(0,N.unit)(A.lineWidth)} 0`,borderStyle:`none none ${A.lineType} none`,borderColor:X.borderColor,background:A.selectorBg,borderRadius:0},[`&:not(${J}-disabled):not(${J}-customize-input):not(${Q}-pagination-size-changer)`]:{[`&:hover ${J}-selector`]:{borderColor:X.hoverBorderHover},[`${J}-focused& ${J}-selector`]:{borderColor:X.activeBorderColor,outline:0},[`${J}-prefix`]:{color:X.color}}}},ae=(A,X)=>({[`&${A.componentCls}-status-${X.status}`]:Object.assign({},L(A,X))}),me=A=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},L(A,{borderColor:A.colorBorder,hoverBorderHover:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeOutlineColor:A.activeOutlineColor,color:A.colorText})),ae(A,{status:"error",borderColor:A.colorError,hoverBorderHover:A.colorErrorHover,activeBorderColor:A.colorError,activeOutlineColor:A.colorErrorOutline,color:A.colorError})),ae(A,{status:"warning",borderColor:A.colorWarning,hoverBorderHover:A.colorWarningHover,activeBorderColor:A.colorWarning,activeOutlineColor:A.colorWarningOutline,color:A.colorWarning})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${(0,N.unit)(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}})});var Ie=A=>({[A.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},V(A)),G(A)),F(A)),me(A))});const Fe=A=>{const{componentCls:X}=A;return{position:"relative",transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,input:{cursor:"pointer"},[`${X}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${X}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},_e=A=>{const{componentCls:X}=A;return{[`${X}-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"}}}},Te=A=>{const{antCls:X,componentCls:J,inputPaddingHorizontalBase:Q,iconCls:E}=A;return{[J]:Object.assign(Object.assign({},(0,o.Wf)(A)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${J}-customize-input) ${J}-selector`]:Object.assign(Object.assign({},Fe(A)),_e(A)),[`${J}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},o.vS),{[`> ${X}-typography`]:{display:"inline"}}),[`${J}-selection-placeholder`]:Object.assign(Object.assign({},o.vS),{flex:1,color:A.colorTextPlaceholder,pointerEvents:"none"}),[`${J}-arrow`]:Object.assign(Object.assign({},(0,o.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Q,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${A.motionDurationSlow} ease`,[E]:{verticalAlign:"top",transition:`transform ${A.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${J}-suffix)`]:{pointerEvents:"auto"}},[`${J}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${J}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${J}-prefix`]:{flex:"none",marginInlineEnd:A.selectAffixPadding},[`${J}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Q,zIndex:1,display:"inline-block",width:A.fontSizeIcon,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${A.motionDurationMid} ease, opacity ${A.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:A.colorTextTertiary}},[`&:hover ${J}-clear`]:{opacity:1,background:A.colorBgBase,borderRadius:"50%"}}),[`${J}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${J}-has-feedback`]:{[`${J}-clear`]:{insetInlineEnd:A.calc(Q).add(A.fontSize).add(A.paddingXS).equal()}}}}}},ee=A=>{const{componentCls:X}=A;return[{[X]:{[`&${X}-in-form-item`]:{width:"100%"}}},Te(A),_(A),(0,C.ZP)(A),l(A),{[`${X}-rtl`]:{direction:"rtl"}},(0,ne.c)(A,{borderElCls:`${X}-selector`,focusElCls:`${X}-focused`})]};var B=(0,j.I$)("Select",(A,X)=>{let{rootPrefixCls:J}=X;const Q=(0,fe.mergeToken)(A,{rootPrefixCls:J,inputPaddingHorizontalBase:A.calc(A.paddingSM).sub(1).equal(),multipleSelectItemHeight:A.multipleItemHeight,selectHeight:A.controlHeight});return[ee(Q),Ie(Q)]},T,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(mn,gt,d){"use strict";d.d(gt,{_z:function(){return g},gp:function(){return fe}});var o=d(36237),ne=d(63356),j=d(51636);const fe=C=>{const{multipleSelectItemHeight:N,paddingXXS:S,lineWidth:_,INTERNAL_FIXED_ITEM_MARGIN:T}=C,k=C.max(C.calc(S).sub(_).equal(),0),W=C.max(C.calc(k).sub(T).equal(),0);return{basePadding:k,containerPadding:W,itemHeight:(0,o.unit)(N),itemLineHeight:(0,o.unit)(C.calc(N).sub(C.calc(C.lineWidth).mul(2)).equal())}},K=C=>{const{multipleSelectItemHeight:N,selectHeight:S,lineWidth:_}=C;return C.calc(S).sub(N).div(2).sub(_).equal()},g=C=>{const{componentCls:N,iconCls:S,borderRadiusSM:_,motionDurationSlow:T,paddingXS:k,multipleItemColorDisabled:W,multipleItemBorderColorDisabled:V,colorIcon:$,colorIconHover:I,INTERNAL_FIXED_ITEM_MARGIN:G}=C;return{[`${N}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${N}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:G,borderRadius:_,cursor:"default",transition:`font-size ${T}, line-height ${T}, height ${T}`,marginInlineEnd:C.calc(G).mul(2).equal(),paddingInlineStart:k,paddingInlineEnd:C.calc(k).div(2).equal(),[`${N}-disabled&`]:{color:W,borderColor:V,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:C.calc(k).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ne.Ro)()),{display:"inline-flex",alignItems:"center",color:$,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${S}`]:{verticalAlign:"-0.2em"},"&:hover":{color:I}})}}}},re=(C,N)=>{const{componentCls:S,INTERNAL_FIXED_ITEM_MARGIN:_}=C,T=`${S}-selection-overflow`,k=C.multipleSelectItemHeight,W=K(C),V=N?`${S}-${N}`:"",$=fe(C);return{[`${S}-multiple${V}`]:Object.assign(Object.assign({},g(C)),{[`${S}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:$.basePadding,paddingBlock:$.containerPadding,borderRadius:C.borderRadius,[`${S}-disabled&`]:{background:C.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,o.unit)(_)} 0`,lineHeight:(0,o.unit)(k),visibility:"hidden",content:'"\\a0"'}},[`${S}-selection-item`]:{height:$.itemHeight,lineHeight:(0,o.unit)($.itemLineHeight)},[`${S}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,o.unit)(k),marginBlock:_}},[`${S}-prefix`]:{marginInlineStart:C.calc(C.inputPaddingHorizontalBase).sub($.basePadding).equal()},[`${T}-item + ${T}-item,
|
|
|
${S}-prefix + ${S}-selection-wrap
|
|
|
`]:{[`${S}-selection-search`]:{marginInlineStart:0},[`${S}-selection-placeholder`]:{insetInlineStart:0}},[`${T}-item-suffix`]:{minHeight:$.itemHeight,marginBlock:_},[`${S}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:C.calc(C.inputPaddingHorizontalBase).sub(W).equal(),"\n &-input,\n &-mirror\n ":{height:k,fontFamily:C.fontFamily,lineHeight:(0,o.unit)(k),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"}},[`${S}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:C.calc(C.inputPaddingHorizontalBase).sub($.basePadding).equal(),insetInlineEnd:C.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${C.motionDurationSlow}`}})}};function oe(C,N){const{componentCls:S}=C,_=N?`${S}-${N}`:"",T={[`${S}-multiple${_}`]:{fontSize:C.fontSize,[`${S}-selector`]:{[`${S}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${S}-show-arrow ${S}-selector,
|
|
|
&${S}-allow-clear ${S}-selector
|
|
|
`]:{paddingInlineEnd:C.calc(C.fontSizeIcon).add(C.controlPaddingHorizontal).equal()}}};return[re(C,N),T]}const l=C=>{const{componentCls:N}=C,S=(0,j.mergeToken)(C,{selectHeight:C.controlHeightSM,multipleSelectItemHeight:C.multipleItemHeightSM,borderRadius:C.borderRadiusSM,borderRadiusSM:C.borderRadiusXS}),_=(0,j.mergeToken)(C,{fontSize:C.fontSizeLG,selectHeight:C.controlHeightLG,multipleSelectItemHeight:C.multipleItemHeightLG,borderRadius:C.borderRadiusLG,borderRadiusSM:C.borderRadius});return[oe(C),oe(S,"sm"),{[`${N}-multiple${N}-sm`]:{[`${N}-selection-placeholder`]:{insetInline:C.calc(C.controlPaddingHorizontalSM).sub(C.lineWidth).equal()},[`${N}-selection-search`]:{marginInlineStart:2}}},oe(_,"lg")]};gt.ZP=l},68525:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});var o=d(59301),ne=d(40001),j=d(19248),fe=d(99267),K=d(84105),g=d(58617),re=d(47472);function oe(l){let{suffixIcon:C,clearIcon:N,menuItemSelectedIcon:S,removeIcon:_,loading:T,multiple:k,hasFeedback:W,prefixCls:V,showSuffixIcon:$,feedbackIcon:I,showArrow:G,componentName:F}=l;const L=N!=null?N:o.createElement(j.Z,null),ae=Fe=>C===null&&!W&&!G?null:o.createElement(o.Fragment,null,$!==!1&&Fe,W&&I);let me=null;if(C!==void 0)me=ae(C);else if(T)me=ae(o.createElement(g.Z,{spin:!0}));else{const Fe=`${V}-suffix`;me=_e=>{let{open:Te,showSearch:ee}=_e;return ae(Te&&ee?o.createElement(re.Z,{className:Fe}):o.createElement(K.Z,{className:Fe}))}}let de=null;S!==void 0?de=S:k?de=o.createElement(ne.Z,null):de=null;let Ie=null;return _!==void 0?Ie=_:Ie=o.createElement(fe.Z,null),{clearIcon:L,suffixIcon:me,itemIcon:de,removeIcon:Ie}}},90005:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return o}});function o(ne,j){return j!==void 0?j:ne!==null}},44104:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return W}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(11592),K=d(99402),g=d(48755),re=d(70045);const oe=o.createContext({latestIndex:0}),l=oe.Provider;var N=V=>{let{className:$,index:I,children:G,split:F,style:L}=V;const{latestIndex:ae}=o.useContext(oe);return G==null?null:o.createElement(o.Fragment,null,o.createElement("div",{className:$,style:L},G),I<ae&&F&&o.createElement("span",{className:`${$}-split`},F))},S=d(31547),_=function(V,$){var I={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&$.indexOf(G)<0&&(I[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,G=Object.getOwnPropertySymbols(V);F<G.length;F++)$.indexOf(G[F])<0&&Object.prototype.propertyIsEnumerable.call(V,G[F])&&(I[G[F]]=V[G[F]]);return I};const k=o.forwardRef((V,$)=>{var I;const{getPrefixCls:G,direction:F,size:L,className:ae,style:me,classNames:de,styles:Ie}=(0,g.dj)("space"),{size:Fe=L!=null?L:"small",align:_e,className:Te,rootClassName:ee,children:B,direction:A="horizontal",prefixCls:X,split:J,style:Q,wrap:E=!1,classNames:R,styles:se}=V,we=_(V,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ve,lt]=Array.isArray(Fe)?Fe:[Fe,Fe],xe=(0,K.n)(lt),je=(0,K.n)(Ve),Qe=(0,K.T)(lt),it=(0,K.T)(Ve),De=(0,fe.Z)(B,{keepEmpty:!0}),wt=_e===void 0&&A==="horizontal"?"center":_e,et=G("space",X),[Ot,qe,Xe]=(0,S.Z)(et),Ue=j()(et,ae,qe,`${et}-${A}`,{[`${et}-rtl`]:F==="rtl",[`${et}-align-${wt}`]:wt,[`${et}-gap-row-${lt}`]:xe,[`${et}-gap-col-${Ve}`]:je},Te,ee,Xe),ke=j()(`${et}-item`,(I=R==null?void 0:R.item)!==null&&I!==void 0?I:de.item);let ie=0;const $e=De.map((D,ue)=>{var ge;D!=null&&(ie=ue);const pe=(D==null?void 0:D.key)||`${ke}-${ue}`;return o.createElement(N,{className:ke,key:pe,index:ue,split:J,style:(ge=se==null?void 0:se.item)!==null&&ge!==void 0?ge:Ie.item},D)}),Pe=o.useMemo(()=>({latestIndex:ie}),[ie]);if(De.length===0)return null;const z={};return E&&(z.flexWrap="wrap"),!je&&it&&(z.columnGap=Ve),!xe&&Qe&&(z.rowGap=lt),Ot(o.createElement("div",Object.assign({ref:$,className:Ue,style:Object.assign(Object.assign(Object.assign({},z),me),Q)},we),o.createElement(l,{value:Pe},$e)))});k.Compact=re.ZP;var W=k},11938:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return _e}});var o=d(59301),ne=d(40192),j=d(22703),fe=d(92310),K=d.n(fe),g=d(26112),re=d(48755),oe=d(458),C=Te=>{const{value:ee,formatter:B,precision:A,decimalSeparator:X,groupSeparator:J="",prefixCls:Q}=Te;let E;if(typeof B=="function")E=B(ee);else{const R=String(ee),se=R.match(/^(-?)(\d*)(\.(\d+))?$/);if(!se||R==="-")E=R;else{const we=se[1];let Ve=se[2]||"0",lt=se[4]||"";Ve=Ve.replace(/\B(?=(\d{3})+(?!\d))/g,J),typeof A=="number"&&(lt=lt.padEnd(A,"0").slice(0,A>0?A:0)),lt&&(lt=`${X}${lt}`),E=[o.createElement("span",{key:"int",className:`${Q}-content-value-int`},we,Ve),lt&&o.createElement("span",{key:"decimal",className:`${Q}-content-value-decimal`},lt)]}}return o.createElement("span",{className:`${Q}-content-value`},E)},N=d(63356),S=d(16931),_=d(51636);const T=Te=>{const{componentCls:ee,marginXXS:B,padding:A,colorTextDescription:X,titleFontSize:J,colorTextHeading:Q,contentFontSize:E,fontFamily:R}=Te;return{[ee]:Object.assign(Object.assign({},(0,N.Wf)(Te)),{[`${ee}-title`]:{marginBottom:B,color:X,fontSize:J},[`${ee}-skeleton`]:{paddingTop:A},[`${ee}-content`]:{color:Q,fontSize:E,fontFamily:R,[`${ee}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ee}-content-prefix, ${ee}-content-suffix`]:{display:"inline-block"},[`${ee}-content-prefix`]:{marginInlineEnd:B},[`${ee}-content-suffix`]:{marginInlineStart:B}}})}},k=Te=>{const{fontSizeHeading3:ee,fontSize:B}=Te;return{titleFontSize:B,contentFontSize:ee}};var W=(0,S.I$)("Statistic",Te=>{const ee=(0,_.mergeToken)(Te,{});return[T(ee)]},k),V=function(Te,ee){var B={};for(var A in Te)Object.prototype.hasOwnProperty.call(Te,A)&&ee.indexOf(A)<0&&(B[A]=Te[A]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,A=Object.getOwnPropertySymbols(Te);X<A.length;X++)ee.indexOf(A[X])<0&&Object.prototype.propertyIsEnumerable.call(Te,A[X])&&(B[A[X]]=Te[A[X]]);return B},I=Te=>{const{prefixCls:ee,className:B,rootClassName:A,style:X,valueStyle:J,value:Q=0,title:E,valueRender:R,prefix:se,suffix:we,loading:Ve=!1,formatter:lt,precision:xe,decimalSeparator:je=".",groupSeparator:Qe=",",onMouseEnter:it,onMouseLeave:De}=Te,wt=V(Te,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:et,direction:Ot,className:qe,style:Xe}=(0,re.dj)("statistic"),Ue=et("statistic",ee),[ke,ie,$e]=W(Ue),Pe=o.createElement(C,{decimalSeparator:je,groupSeparator:Qe,prefixCls:Ue,formatter:lt,precision:xe,value:Q}),z=K()(Ue,{[`${Ue}-rtl`]:Ot==="rtl"},qe,B,A,ie,$e),D=(0,g.Z)(wt,{aria:!0,data:!0});return ke(o.createElement("div",Object.assign({},D,{className:z,style:Object.assign(Object.assign({},Xe),X),onMouseEnter:it,onMouseLeave:De}),E&&o.createElement("div",{className:`${Ue}-title`},E),o.createElement(oe.Z,{paragraph:!1,loading:Ve,className:`${Ue}-skeleton`},o.createElement("div",{style:J,className:`${Ue}-content`},se&&o.createElement("span",{className:`${Ue}-content-prefix`},se),R?R(Pe):Pe,we&&o.createElement("span",{className:`${Ue}-content-suffix`},we)))))};const G=[["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 F(Te,ee){let B=Te;const A=/\[[^\]]*]/g,X=(ee.match(A)||[]).map(R=>R.slice(1,-1)),J=ee.replace(A,"[]"),Q=G.reduce((R,se)=>{let[we,Ve]=se;if(R.includes(we)){const lt=Math.floor(B/Ve);return B-=lt*Ve,R.replace(new RegExp(`${we}+`,"g"),xe=>{const je=xe.length;return lt.toString().padStart(je,"0")})}return R},J);let E=0;return Q.replace(A,()=>{const R=X[E];return E+=1,R})}function L(Te,ee){const{format:B=""}=ee,A=new Date(Te).getTime(),X=Date.now(),J=Math.max(A-X,0);return F(J,B)}var ae=function(Te,ee){var B={};for(var A in Te)Object.prototype.hasOwnProperty.call(Te,A)&&ee.indexOf(A)<0&&(B[A]=Te[A]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,A=Object.getOwnPropertySymbols(Te);X<A.length;X++)ee.indexOf(A[X])<0&&Object.prototype.propertyIsEnumerable.call(Te,A[X])&&(B[A[X]]=Te[A[X]]);return B};const me=1e3/30;function de(Te){return new Date(Te).getTime()}const Ie=Te=>{const{value:ee,format:B="HH:mm:ss",onChange:A,onFinish:X}=Te,J=ae(Te,["value","format","onChange","onFinish"]),Q=(0,ne.Z)(),E=o.useRef(null),R=()=>{X==null||X(),E.current&&(clearInterval(E.current),E.current=null)},se=()=>{const lt=de(ee);lt>=Date.now()&&(E.current=setInterval(()=>{Q(),A==null||A(lt-Date.now()),lt<Date.now()&&R()},me))};o.useEffect(()=>(se(),()=>{E.current&&(clearInterval(E.current),E.current=null)}),[ee]);const we=(lt,xe)=>L(lt,Object.assign(Object.assign({},xe),{format:B})),Ve=lt=>(0,j.Tm)(lt,{title:void 0});return o.createElement(I,Object.assign({},J,{value:ee,valueRender:Ve,formatter:we}))};var Fe=o.memo(Ie);I.Countdown=Fe;var _e=I},93873:function(mn,gt,d){"use strict";d.d(gt,{Fm:function(){return S}});var o=d(36237),ne=d(48746);const j=new o.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fe=new o.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),K=new o.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 o.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),re=new o.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oe=new o.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.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 o.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N={"move-up":{inKeyframes:l,outKeyframes:C},"move-down":{inKeyframes:j,outKeyframes:fe},"move-left":{inKeyframes:K,outKeyframes:g},"move-right":{inKeyframes:re,outKeyframes:oe}},S=(_,T)=>{const{antCls:k}=_,W=`${k}-${T}`,{inKeyframes:V,outKeyframes:$}=N[T];return[(0,ne.R)(W,V,$,_.motionDurationMid),{[`
|
|
|
${W}-enter,
|
|
|
${W}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${W}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},46e3:function(mn,gt,d){"use strict";d.d(gt,{Qt:function(){return K},Uw:function(){return fe},fJ:function(){return j},ly:function(){return g},oN:function(){return S}});var o=d(36237),ne=d(48746);const j=new o.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fe=new o.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),K=new o.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new o.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),re=new o.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),oe=new o.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new o.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),C=new o.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),N={"slide-up":{inKeyframes:j,outKeyframes:fe},"slide-down":{inKeyframes:K,outKeyframes:g},"slide-left":{inKeyframes:re,outKeyframes:oe},"slide-right":{inKeyframes:l,outKeyframes:C}},S=(_,T)=>{const{antCls:k}=_,W=`${k}-${T}`,{inKeyframes:V,outKeyframes:$}=N[T];return[(0,ne.R)(W,V,$,_.motionDurationMid),{[`
|
|
|
${W}-enter,
|
|
|
${W}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${W}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},37645:function(mn,gt,d){"use strict";d.d(gt,{ZP:function(){return g},qN:function(){return j},wZ:function(){return fe}});var o=d(36237),ne=d(36305);const j=8;function fe(re){const{contentRadius:oe,limitVerticalRadius:l}=re,C=oe>12?oe+2:12;return{arrowOffsetHorizontal:C,arrowOffsetVertical:l?j:C}}function K(re,oe){return re?oe:{}}function g(re,oe,l){const{componentCls:C,boxShadowPopoverArrow:N,arrowOffsetVertical:S,arrowOffsetHorizontal:_}=re,{arrowDistance:T=0,arrowPlacement:k={left:!0,right:!0,top:!0,bottom:!0}}=l||{};return{[C]:Object.assign(Object.assign(Object.assign(Object.assign({[`${C}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,ne.W)(re,oe,N)),{"&:before":{background:oe}})]},K(!!k.top,{[[`&-placement-top > ${C}-arrow`,`&-placement-topLeft > ${C}-arrow`,`&-placement-topRight > ${C}-arrow`].join(",")]:{bottom:T,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":_,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:_}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.unit)(_)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:_}}}})),K(!!k.bottom,{[[`&-placement-bottom > ${C}-arrow`,`&-placement-bottomLeft > ${C}-arrow`,`&-placement-bottomRight > ${C}-arrow`].join(",")]:{top:T,transform:"translateY(-100%)"},[`&-placement-bottom > ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":_,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:_}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,o.unit)(_)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:_}}}})),K(!!k.left,{[[`&-placement-left > ${C}-arrow`,`&-placement-leftTop > ${C}-arrow`,`&-placement-leftBottom > ${C}-arrow`].join(",")]:{right:{_skip_check_:!0,value:T},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:S},[`&-placement-leftBottom > ${C}-arrow`]:{bottom:S}})),K(!!k.right,{[[`&-placement-right > ${C}-arrow`,`&-placement-rightTop > ${C}-arrow`,`&-placement-rightBottom > ${C}-arrow`].join(",")]:{left:{_skip_check_:!0,value:T},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:S},[`&-placement-rightBottom > ${C}-arrow`]:{bottom:S}}))}}},36305:function(mn,gt,d){"use strict";d.d(gt,{W:function(){return j},w:function(){return ne}});var o=d(36237);function ne(fe){const{sizePopupArrow:K,borderRadiusXS:g,borderRadiusOuter:re}=fe,oe=K/2,l=0,C=oe,N=re*1/Math.sqrt(2),S=oe-re*(1-1/Math.sqrt(2)),_=oe-g*(1/Math.sqrt(2)),T=re*(Math.sqrt(2)-1)+g*(1/Math.sqrt(2)),k=2*oe-_,W=T,V=2*oe-N,$=S,I=2*oe-l,G=C,F=oe*Math.sqrt(2)+re*(Math.sqrt(2)-2),L=re*(Math.sqrt(2)-1),ae=`polygon(${L}px 100%, 50% ${L}px, ${2*oe-L}px 100%, ${L}px 100%)`,me=`path('M ${l} ${C} A ${re} ${re} 0 0 0 ${N} ${S} L ${_} ${T} A ${g} ${g} 0 0 1 ${k} ${W} L ${V} ${$} A ${re} ${re} 0 0 0 ${I} ${G} Z')`;return{arrowShadowWidth:F,arrowPath:me,arrowPolygon:ae}}const j=(fe,K,g)=>{const{sizePopupArrow:re,arrowPolygon:oe,arrowPath:l,arrowShadowWidth:C,borderRadiusXS:N,calc:S}=fe;return{pointerEvents:"none",width:re,height:re,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:re,height:S(re).div(2).equal(),background:K,clipPath:{_multi_value_:!0,value:[oe,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:C,height:C,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,o.unit)(N)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}}},70858:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return Go}});var o=d(59301),ne={},j="rc-table-internal-hook",fe=d(72190),K=d(6089),g=d(34280),re=d(13697),oe=d(4676);function l(he){var ce=o.createContext(void 0),Ke=function(At){var Rt=At.value,Nt=At.children,Lt=o.useRef(Rt);Lt.current=Rt;var Ht=o.useState(function(){return{getValue:function(){return Lt.current},listeners:new Set}}),Bt=(0,fe.Z)(Ht,1),bn=Bt[0];return(0,g.Z)(function(){(0,oe.unstable_batchedUpdates)(function(){bn.listeners.forEach(function(rn){rn(Rt)})})},[Rt]),o.createElement(ce.Provider,{value:bn},Nt)};return{Context:ce,Provider:Ke,defaultValue:he}}function C(he,ce){var Ke=(0,K.Z)(typeof ce=="function"?ce:function(rn){if(ce===void 0)return rn;if(!Array.isArray(ce))return rn[ce];var tn={};return ce.forEach(function(U){tn[U]=rn[U]}),tn}),at=o.useContext(he==null?void 0:he.Context),At=at||{},Rt=At.listeners,Nt=At.getValue,Lt=o.useRef();Lt.current=Ke(at?Nt():he==null?void 0:he.defaultValue);var Ht=o.useState({}),Bt=(0,fe.Z)(Ht,2),bn=Bt[1];return(0,g.Z)(function(){if(!at)return;function rn(tn){var U=Ke(tn);(0,re.Z)(Lt.current,U,!0)||bn({})}return Rt.add(rn),function(){Rt.delete(rn)}},[at]),Lt.current}var N=d(60499),S=d(8654);function _(){var he=o.createContext(null);function ce(){return o.useContext(he)}function Ke(At,Rt){var Nt=(0,S.Yr)(At),Lt=function(Bt,bn){var rn=Nt?{ref:bn}:{},tn=o.useRef(0),U=o.useRef(Bt),u=ce();return u!==null?o.createElement(At,(0,N.Z)({},Bt,rn)):((!Rt||Rt(U.current,Bt))&&(tn.current+=1),U.current=Bt,o.createElement(he.Provider,{value:tn.current},o.createElement(At,(0,N.Z)({},Bt,rn))))};return Nt?o.forwardRef(Lt):Lt}function at(At,Rt){var Nt=(0,S.Yr)(At),Lt=function(Bt,bn){var rn=Nt?{ref:bn}:{};return ce(),o.createElement(At,(0,N.Z)({},Bt,rn))};return Nt?o.memo(o.forwardRef(Lt),Rt):o.memo(Lt,Rt)}return{makeImmutable:Ke,responseImmutable:at,useImmutableMark:ce}}var T=_(),k=T.makeImmutable,W=T.responseImmutable,V=T.useImmutableMark,$=_(),I=$.makeImmutable,G=$.responseImmutable,F=$.useImmutableMark,L=l(),ae=L;function me(he,ce){var Ke=React.useRef(0);Ke.current+=1;var at=React.useRef(he),At=[];Object.keys(he||{}).map(function(Nt){var Lt;(he==null?void 0:he[Nt])!==((Lt=at.current)===null||Lt===void 0?void 0:Lt[Nt])&&At.push(Nt)}),at.current=he;var Rt=React.useRef([]);return At.length&&(Rt.current=At),React.useDebugValue(Ke.current),React.useDebugValue(Rt.current.join(", ")),ce&&console.log("".concat(ce,":"),Ke.current,Rt.current),Ke.current}var de=null,Ie=null,Fe=d(43749),_e=d(85899),Te=d(18642),ee=d(92310),B=d.n(ee),A=d(80547),X=d(97938),J=d(48736),Q=o.createContext({renderWithProps:!1}),E=Q,R="RC_TABLE_KEY";function se(he){return he==null?[]:Array.isArray(he)?he:[he]}function we(he){var ce=[],Ke={};return he.forEach(function(at){for(var At=at||{},Rt=At.key,Nt=At.dataIndex,Lt=Rt||se(Nt).join("-")||R;Ke[Lt];)Lt="".concat(Lt,"_next");Ke[Lt]=!0,ce.push(Lt)}),ce}function Ve(he){return he!=null}function lt(he){return typeof he=="number"&&!Number.isNaN(he)}function xe(he){return he&&(0,Fe.Z)(he)==="object"&&!Array.isArray(he)&&!o.isValidElement(he)}function je(he,ce,Ke,at,At,Rt){var Nt=o.useContext(E),Lt=F(),Ht=(0,A.Z)(function(){if(Ve(at))return[at];var Bt=ce==null||ce===""?[]:Array.isArray(ce)?ce:[ce],bn=(0,X.Z)(he,Bt),rn=bn,tn=void 0;if(At){var U=At(bn,he,Ke);xe(U)?(rn=U.children,tn=U.props,Nt.renderWithProps=!0):rn=U}return[rn,tn]},[Lt,he,at,ce,At,Ke],function(Bt,bn){if(Rt){var rn=(0,fe.Z)(Bt,2),tn=rn[1],U=(0,fe.Z)(bn,2),u=U[1];return Rt(u,tn)}return Nt.renderWithProps?!0:!(0,re.Z)(Bt,bn,!0)});return Ht}function Qe(he,ce,Ke,at){var At=he+ce-1;return he<=at&&At>=Ke}function it(he,ce){return C(ae,function(Ke){var at=Qe(he,ce||1,Ke.hoverStartRow,Ke.hoverEndRow);return[at,Ke.onHover]})}var De=d(70425),wt=function(ce){var Ke=ce.ellipsis,at=ce.rowType,At=ce.children,Rt,Nt=Ke===!0?{showTitle:!0}:Ke;return Nt&&(Nt.showTitle||at==="header")&&(typeof At=="string"||typeof At=="number"?Rt=At.toString():o.isValidElement(At)&&typeof At.props.children=="string"&&(Rt=At.props.children)),Rt};function et(he){var ce,Ke,at,At,Rt,Nt,Lt,Ht,Bt=he.component,bn=he.children,rn=he.ellipsis,tn=he.scope,U=he.prefixCls,u=he.className,f=he.align,h=he.record,y=he.render,O=he.dataIndex,H=he.renderIndex,Ae=he.shouldCellUpdate,Ne=he.index,Je=he.rowType,Ct=he.colSpan,Pt=he.rowSpan,zt=he.fixLeft,nn=he.fixRight,cn=he.firstFixLeft,dn=he.lastFixLeft,wn=he.firstFixRight,xn=he.lastFixRight,Cn=he.appendNode,kn=he.additionalProps,Xn=kn===void 0?{}:kn,tr=he.isSticky,zn="".concat(U,"-cell"),Er=C(ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Tr=Er.supportSticky,gi=Er.allColumnsFixedLeft,ni=Er.rowHoverable,kt=je(h,O,H,bn,y,Ae),vi=(0,fe.Z)(kt,2),ta=vi[0],Qr=vi[1],Br={},Yi=typeof zt=="number"&&Tr,Qi=typeof nn=="number"&&Tr;Yi&&(Br.position="sticky",Br.left=zt),Qi&&(Br.position="sticky",Br.right=nn);var Ar=(ce=(Ke=(at=Qr==null?void 0:Qr.colSpan)!==null&&at!==void 0?at:Xn.colSpan)!==null&&Ke!==void 0?Ke:Ct)!==null&&ce!==void 0?ce:1,Zr=(At=(Rt=(Nt=Qr==null?void 0:Qr.rowSpan)!==null&&Nt!==void 0?Nt:Xn.rowSpan)!==null&&Rt!==void 0?Rt:Pt)!==null&&At!==void 0?At:1,mr=it(Ne,Zr),_r=(0,fe.Z)(mr,2),si=_r[0],hi=_r[1],zi=(0,De.zX)(function($i){var Ei;h&&hi(Ne,Ne+Zr-1),Xn==null||(Ei=Xn.onMouseEnter)===null||Ei===void 0||Ei.call(Xn,$i)}),Ni=(0,De.zX)(function($i){var Ei;h&&hi(-1,-1),Xn==null||(Ei=Xn.onMouseLeave)===null||Ei===void 0||Ei.call(Xn,$i)});if(Ar===0||Zr===0)return null;var Wi=(Lt=Xn.title)!==null&&Lt!==void 0?Lt:wt({rowType:Je,ellipsis:rn,children:ta}),Ta=B()(zn,u,(Ht={},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)(Ht,"".concat(zn,"-fix-left"),Yi&&Tr),"".concat(zn,"-fix-left-first"),cn&&Tr),"".concat(zn,"-fix-left-last"),dn&&Tr),"".concat(zn,"-fix-left-all"),dn&&gi&&Tr),"".concat(zn,"-fix-right"),Qi&&Tr),"".concat(zn,"-fix-right-first"),wn&&Tr),"".concat(zn,"-fix-right-last"),xn&&Tr),"".concat(zn,"-ellipsis"),rn),"".concat(zn,"-with-append"),Cn),"".concat(zn,"-fix-sticky"),(Yi||Qi)&&tr&&Tr),(0,Te.Z)(Ht,"".concat(zn,"-row-hover"),!Qr&&si)),Xn.className,Qr==null?void 0:Qr.className),Cr={};f&&(Cr.textAlign=f);var Pr=(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({},Qr==null?void 0:Qr.style),Br),Cr),Xn.style),xi=ta;return(0,Fe.Z)(xi)==="object"&&!Array.isArray(xi)&&!o.isValidElement(xi)&&(xi=null),rn&&(dn||wn)&&(xi=o.createElement("span",{className:"".concat(zn,"-content")},xi)),o.createElement(Bt,(0,N.Z)({},Qr,Xn,{className:Ta,style:Pr,title:Wi,scope:tn,onMouseEnter:ni?zi:void 0,onMouseLeave:ni?Ni:void 0,colSpan:Ar!==1?Ar:null,rowSpan:Zr!==1?Zr:null}),Cn,xi)}var Ot=o.memo(et);function qe(he,ce,Ke,at,At){var Rt=Ke[he]||{},Nt=Ke[ce]||{},Lt,Ht;Rt.fixed==="left"?Lt=at.left[At==="rtl"?ce:he]:Nt.fixed==="right"&&(Ht=at.right[At==="rtl"?he:ce]);var Bt=!1,bn=!1,rn=!1,tn=!1,U=Ke[ce+1],u=Ke[he-1],f=U&&!U.fixed||u&&!u.fixed||Ke.every(function(Ae){return Ae.fixed==="left"});if(At==="rtl"){if(Lt!==void 0){var h=u&&u.fixed==="left";tn=!h&&f}else if(Ht!==void 0){var y=U&&U.fixed==="right";rn=!y&&f}}else if(Lt!==void 0){var O=U&&U.fixed==="left";Bt=!O&&f}else if(Ht!==void 0){var H=u&&u.fixed==="right";bn=!H&&f}return{fixLeft:Lt,fixRight:Ht,lastFixLeft:Bt,firstFixRight:bn,lastFixRight:rn,firstFixLeft:tn,isSticky:at.isSticky}}var Xe=o.createContext({}),Ue=Xe;function ke(he){var ce=he.className,Ke=he.index,at=he.children,At=he.colSpan,Rt=At===void 0?1:At,Nt=he.rowSpan,Lt=he.align,Ht=C(ae,["prefixCls","direction"]),Bt=Ht.prefixCls,bn=Ht.direction,rn=o.useContext(Ue),tn=rn.scrollColumnIndex,U=rn.stickyOffsets,u=rn.flattenColumns,f=Ke+Rt-1,h=f+1===tn?Rt+1:Rt,y=qe(Ke,Ke+h-1,u,U,bn);return o.createElement(Ot,(0,N.Z)({className:ce,index:Ke,component:"td",prefixCls:Bt,record:null,dataIndex:null,align:Lt,colSpan:h,rowSpan:Nt,render:function(){return at}},y))}var ie=d(42244),$e=["children"];function Pe(he){var ce=he.children,Ke=(0,ie.Z)(he,$e);return o.createElement("tr",Ke,ce)}function z(he){var ce=he.children;return ce}z.Row=Pe,z.Cell=ke;var D=z;function ue(he){var ce=he.children,Ke=he.stickyOffsets,at=he.flattenColumns,At=C(ae,"prefixCls"),Rt=at.length-1,Nt=at[Rt],Lt=o.useMemo(function(){return{stickyOffsets:Ke,flattenColumns:at,scrollColumnIndex:Nt!=null&&Nt.scrollbar?Rt:null}},[Nt,at,Rt,Ke]);return o.createElement(Ue.Provider,{value:Lt},o.createElement("tfoot",{className:"".concat(At,"-summary")},ce))}var ge=G(ue),pe=D,ye=d(29301),Re=d(24514),Ze=d(75152),te=d(26112);function le(he,ce,Ke,at,At,Rt,Nt){he.push({record:ce,indent:Ke,index:Nt});var Lt=Rt(ce),Ht=At==null?void 0:At.has(Lt);if(ce&&Array.isArray(ce[at])&&Ht)for(var Bt=0;Bt<ce[at].length;Bt+=1)le(he,ce[at][Bt],Ke+1,at,At,Rt,Bt)}function tt(he,ce,Ke,at){var At=o.useMemo(function(){if(Ke!=null&&Ke.size){for(var Rt=[],Nt=0;Nt<(he==null?void 0:he.length);Nt+=1){var Lt=he[Nt];le(Rt,Lt,0,ce,Ke,at,Nt)}return Rt}return he==null?void 0:he.map(function(Ht,Bt){return{record:Ht,indent:0,index:Bt}})},[he,ce,Ke,at]);return At}function nt(he,ce,Ke,at){var At=C(ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Rt=At.flattenColumns,Nt=At.expandableType,Lt=At.expandedKeys,Ht=At.childrenColumnName,Bt=At.onTriggerExpand,bn=At.rowExpandable,rn=At.onRow,tn=At.expandRowByClick,U=At.rowClassName,u=Nt==="nest",f=Nt==="row"&&(!bn||bn(he)),h=f||u,y=Lt&&Lt.has(ce),O=Ht&&he&&he[Ht],H=(0,De.zX)(Bt),Ae=rn==null?void 0:rn(he,Ke),Ne=Ae==null?void 0:Ae.onClick,Je=function(nn){tn&&h&&Bt(he,nn);for(var cn=arguments.length,dn=new Array(cn>1?cn-1:0),wn=1;wn<cn;wn++)dn[wn-1]=arguments[wn];Ne==null||Ne.apply(void 0,[nn].concat(dn))},Ct;typeof U=="string"?Ct=U:typeof U=="function"&&(Ct=U(he,Ke,at));var Pt=we(Rt);return(0,_e.Z)((0,_e.Z)({},At),{},{columnsKey:Pt,nestExpandable:u,expanded:y,hasNestChildren:O,record:he,onTriggerExpand:H,rowSupportExpand:f,expandable:h,rowProps:(0,_e.Z)((0,_e.Z)({},Ae),{},{className:B()(Ct,Ae==null?void 0:Ae.className),onClick:Je})})}function ct(he){var ce=he.prefixCls,Ke=he.children,at=he.component,At=he.cellComponent,Rt=he.className,Nt=he.expanded,Lt=he.colSpan,Ht=he.isEmpty,Bt=C(ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),bn=Bt.scrollbarSize,rn=Bt.fixHeader,tn=Bt.fixColumn,U=Bt.componentWidth,u=Bt.horizonScroll,f=Ke;return(Ht?u&&U:tn)&&(f=o.createElement("div",{style:{width:U-(rn&&!Ht?bn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ce,"-expanded-row-fixed")},f)),o.createElement(at,{className:Rt,style:{display:Nt?null:"none"}},o.createElement(Ot,{component:At,prefixCls:ce,colSpan:Lt},f))}var ut=ct;function Ge(he){var ce=he.prefixCls,Ke=he.record,at=he.onExpand,At=he.expanded,Rt=he.expandable,Nt="".concat(ce,"-row-expand-icon");if(!Rt)return o.createElement("span",{className:B()(Nt,"".concat(ce,"-row-spaced"))});var Lt=function(Bt){at(Ke,Bt),Bt.stopPropagation()};return o.createElement("span",{className:B()(Nt,(0,Te.Z)((0,Te.Z)({},"".concat(ce,"-row-expanded"),At),"".concat(ce,"-row-collapsed"),!At)),onClick:Lt})}function yt(he,ce,Ke){var at=[];function At(Rt){(Rt||[]).forEach(function(Nt,Lt){at.push(ce(Nt,Lt)),At(Nt[Ke])})}return At(he),at}function ht(he,ce,Ke,at){return typeof he=="string"?he:typeof he=="function"?he(ce,Ke,at):""}function Ce(he,ce,Ke,at,At){var Rt=he.record,Nt=he.prefixCls,Lt=he.columnsKey,Ht=he.fixedInfoList,Bt=he.expandIconColumnIndex,bn=he.nestExpandable,rn=he.indentSize,tn=he.expandIcon,U=he.expanded,u=he.hasNestChildren,f=he.onTriggerExpand,h=Lt[Ke],y=Ht[Ke],O;Ke===(Bt||0)&&bn&&(O=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(rn*at,"px")},className:"".concat(Nt,"-row-indent indent-level-").concat(at)}),tn({prefixCls:Nt,expanded:U,expandable:u,record:Rt,onExpand:f})));var H;return ce.onCell&&(H=ce.onCell(Rt,At)),{key:h,fixedInfo:y,appendCellNode:O,additionalCellProps:H||{}}}function Ye(he){var ce=he.className,Ke=he.style,at=he.record,At=he.index,Rt=he.renderIndex,Nt=he.rowKey,Lt=he.indent,Ht=Lt===void 0?0:Lt,Bt=he.rowComponent,bn=he.cellComponent,rn=he.scopeCellComponent,tn=nt(at,Nt,At,Ht),U=tn.prefixCls,u=tn.flattenColumns,f=tn.expandedRowClassName,h=tn.expandedRowRender,y=tn.rowProps,O=tn.expanded,H=tn.rowSupportExpand,Ae=o.useRef(!1);Ae.current||(Ae.current=O);var Ne=ht(f,at,At,Ht),Je=o.createElement(Bt,(0,N.Z)({},y,{"data-row-key":Nt,className:B()(ce,"".concat(U,"-row"),"".concat(U,"-row-level-").concat(Ht),y==null?void 0:y.className,(0,Te.Z)({},Ne,Ht>=1)),style:(0,_e.Z)((0,_e.Z)({},Ke),y==null?void 0:y.style)}),u.map(function(zt,nn){var cn=zt.render,dn=zt.dataIndex,wn=zt.className,xn=Ce(tn,zt,nn,Ht,At),Cn=xn.key,kn=xn.fixedInfo,Xn=xn.appendCellNode,tr=xn.additionalCellProps;return o.createElement(Ot,(0,N.Z)({className:wn,ellipsis:zt.ellipsis,align:zt.align,scope:zt.rowScope,component:zt.rowScope?rn:bn,prefixCls:U,key:Cn,record:at,index:At,renderIndex:Rt,dataIndex:dn,render:cn,shouldCellUpdate:zt.shouldCellUpdate},kn,{appendNode:Xn,additionalProps:tr}))})),Ct;if(H&&(Ae.current||O)){var Pt=h(at,At,Ht+1,O);Ct=o.createElement(ut,{expanded:O,className:B()("".concat(U,"-expanded-row"),"".concat(U,"-expanded-row-level-").concat(Ht+1),Ne),prefixCls:U,component:Bt,cellComponent:bn,colSpan:u.length,isEmpty:!1},Pt)}return o.createElement(o.Fragment,null,Je,Ct)}var b=G(Ye);function w(he){var ce=he.columnKey,Ke=he.onColumnResize,at=o.useRef();return(0,g.Z)(function(){at.current&&Ke(ce,at.current.offsetWidth)},[]),o.createElement(ye.Z,{data:ce},o.createElement("td",{ref:at,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var He=d(29194);function q(he){var ce=he.prefixCls,Ke=he.columnsKey,at=he.onColumnResize,At=o.useRef(null);return o.createElement("tr",{"aria-hidden":"true",className:"".concat(ce,"-measure-row"),style:{height:0,fontSize:0},ref:At},o.createElement(ye.Z.Collection,{onBatchResize:function(Nt){(0,He.Z)(At.current)&&Nt.forEach(function(Lt){var Ht=Lt.data,Bt=Lt.size;at(Ht,Bt.offsetWidth)})}},Ke.map(function(Rt){return o.createElement(w,{key:Rt,columnKey:Rt,onColumnResize:at})})))}function be(he){var ce=he.data,Ke=he.measureColumnWidth,at=C(ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),At=at.prefixCls,Rt=at.getComponent,Nt=at.onColumnResize,Lt=at.flattenColumns,Ht=at.getRowKey,Bt=at.expandedKeys,bn=at.childrenColumnName,rn=at.emptyNode,tn=tt(ce,bn,Bt,Ht),U=o.useRef({renderWithProps:!1}),u=Rt(["body","wrapper"],"tbody"),f=Rt(["body","row"],"tr"),h=Rt(["body","cell"],"td"),y=Rt(["body","cell"],"th"),O;ce.length?O=tn.map(function(Ae,Ne){var Je=Ae.record,Ct=Ae.indent,Pt=Ae.index,zt=Ht(Je,Ne);return o.createElement(b,{key:zt,rowKey:zt,record:Je,index:Ne,renderIndex:Pt,rowComponent:f,cellComponent:h,scopeCellComponent:y,indent:Ct})}):O=o.createElement(ut,{expanded:!0,className:"".concat(At,"-placeholder"),prefixCls:At,component:f,cellComponent:h,colSpan:Lt.length,isEmpty:!0},rn);var H=we(Lt);return o.createElement(E.Provider,{value:U.current},o.createElement(u,{className:"".concat(At,"-tbody")},Ke&&o.createElement(q,{prefixCls:At,columnsKey:H,onColumnResize:Nt}),O))}var It=G(be),Be=["expandable"],rt="RC_TABLE_INTERNAL_COL_DEFINE";function ft(he){var ce=he.expandable,Ke=(0,ie.Z)(he,Be),at;return"expandable"in he?at=(0,_e.Z)((0,_e.Z)({},Ke),ce):at=Ke,at.showExpandColumn===!1&&(at.expandIconColumnIndex=-1),at}var ve=["columnType"];function Se(he){for(var ce=he.colWidths,Ke=he.columns,at=he.columCount,At=C(ae,["tableLayout"]),Rt=At.tableLayout,Nt=[],Lt=at||Ke.length,Ht=!1,Bt=Lt-1;Bt>=0;Bt-=1){var bn=ce[Bt],rn=Ke&&Ke[Bt],tn=void 0,U=void 0;if(rn&&(tn=rn[rt],Rt==="auto"&&(U=rn.minWidth)),bn||U||tn||Ht){var u=tn||{},f=u.columnType,h=(0,ie.Z)(u,ve);Nt.unshift(o.createElement("col",(0,N.Z)({key:Bt,style:{width:bn,minWidth:U}},h))),Ht=!0}}return o.createElement("colgroup",null,Nt)}var We=Se,ze=d(77654),M=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function dt(he,ce){return(0,o.useMemo)(function(){for(var Ke=[],at=0;at<ce;at+=1){var At=he[at];if(At!==void 0)Ke[at]=At;else return null}return Ke},[he.join("_"),ce])}var Ee=o.forwardRef(function(he,ce){var Ke=he.className,at=he.noData,At=he.columns,Rt=he.flattenColumns,Nt=he.colWidths,Lt=he.columCount,Ht=he.stickyOffsets,Bt=he.direction,bn=he.fixHeader,rn=he.stickyTopOffset,tn=he.stickyBottomOffset,U=he.stickyClassName,u=he.onScroll,f=he.maxContentScroll,h=he.children,y=(0,ie.Z)(he,M),O=C(ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),H=O.prefixCls,Ae=O.scrollbarSize,Ne=O.isSticky,Je=O.getComponent,Ct=Je(["header","table"],"table"),Pt=Ne&&!bn?0:Ae,zt=o.useRef(null),nn=o.useCallback(function(tr){(0,S.mH)(ce,tr),(0,S.mH)(zt,tr)},[]);o.useEffect(function(){var tr;function zn(Er){var Tr=Er,gi=Tr.currentTarget,ni=Tr.deltaX;ni&&(u({currentTarget:gi,scrollLeft:gi.scrollLeft+ni}),Er.preventDefault())}return(tr=zt.current)===null||tr===void 0||tr.addEventListener("wheel",zn,{passive:!1}),function(){var Er;(Er=zt.current)===null||Er===void 0||Er.removeEventListener("wheel",zn)}},[]);var cn=o.useMemo(function(){return Rt.every(function(tr){return tr.width})},[Rt]),dn=Rt[Rt.length-1],wn={fixed:dn?dn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(H,"-cell-scrollbar")}}},xn=(0,o.useMemo)(function(){return Pt?[].concat((0,ze.Z)(At),[wn]):At},[Pt,At]),Cn=(0,o.useMemo)(function(){return Pt?[].concat((0,ze.Z)(Rt),[wn]):Rt},[Pt,Rt]),kn=(0,o.useMemo)(function(){var tr=Ht.right,zn=Ht.left;return(0,_e.Z)((0,_e.Z)({},Ht),{},{left:Bt==="rtl"?[].concat((0,ze.Z)(zn.map(function(Er){return Er+Pt})),[0]):zn,right:Bt==="rtl"?tr:[].concat((0,ze.Z)(tr.map(function(Er){return Er+Pt})),[0]),isSticky:Ne})},[Pt,Ht,Ne]),Xn=dt(Nt,Lt);return o.createElement("div",{style:(0,_e.Z)({overflow:"hidden"},Ne?{top:rn,bottom:tn}:{}),ref:nn,className:B()(Ke,(0,Te.Z)({},U,!!U))},o.createElement(Ct,{style:{tableLayout:"fixed",visibility:at||Xn?null:"hidden"}},(!at||!f||cn)&&o.createElement(We,{colWidths:Xn?[].concat((0,ze.Z)(Xn),[Pt]):[],columCount:Lt+1,columns:Cn}),h((0,_e.Z)((0,_e.Z)({},y),{},{stickyOffsets:kn,columns:xn,flattenColumns:Cn}))))}),Tt=o.memo(Ee),Kt=function(ce){var Ke=ce.cells,at=ce.stickyOffsets,At=ce.flattenColumns,Rt=ce.rowComponent,Nt=ce.cellComponent,Lt=ce.onHeaderRow,Ht=ce.index,Bt=C(ae,["prefixCls","direction"]),bn=Bt.prefixCls,rn=Bt.direction,tn;Lt&&(tn=Lt(Ke.map(function(u){return u.column}),Ht));var U=we(Ke.map(function(u){return u.column}));return o.createElement(Rt,tn,Ke.map(function(u,f){var h=u.column,y=qe(u.colStart,u.colEnd,At,at,rn),O;return h&&h.onHeaderCell&&(O=u.column.onHeaderCell(h)),o.createElement(Ot,(0,N.Z)({},u,{scope:h.title?u.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:Nt,prefixCls:bn,key:U[f]},y,{additionalProps:O,rowType:"header"}))}))},Jt=Kt;function un(he){var ce=[];function Ke(Nt,Lt){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ce[Ht]=ce[Ht]||[];var Bt=Lt,bn=Nt.filter(Boolean).map(function(rn){var tn={key:rn.key,className:rn.className||"",children:rn.title,column:rn,colStart:Bt},U=1,u=rn.children;return u&&u.length>0&&(U=Ke(u,Bt,Ht+1).reduce(function(f,h){return f+h},0),tn.hasSubColumns=!0),"colSpan"in rn&&(U=rn.colSpan),"rowSpan"in rn&&(tn.rowSpan=rn.rowSpan),tn.colSpan=U,tn.colEnd=tn.colStart+U-1,ce[Ht].push(tn),Bt+=U,U});return bn}Ke(he,0);for(var at=ce.length,At=function(Lt){ce[Lt].forEach(function(Ht){!("rowSpan"in Ht)&&!Ht.hasSubColumns&&(Ht.rowSpan=at-Lt)})},Rt=0;Rt<at;Rt+=1)At(Rt);return ce}var gn=function(ce){var Ke=ce.stickyOffsets,at=ce.columns,At=ce.flattenColumns,Rt=ce.onHeaderRow,Nt=C(ae,["prefixCls","getComponent"]),Lt=Nt.prefixCls,Ht=Nt.getComponent,Bt=o.useMemo(function(){return un(at)},[at]),bn=Ht(["header","wrapper"],"thead"),rn=Ht(["header","row"],"tr"),tn=Ht(["header","cell"],"th");return o.createElement(bn,{className:"".concat(Lt,"-thead")},Bt.map(function(U,u){var f=o.createElement(Jt,{key:u,flattenColumns:At,cells:U,stickyOffsets:Ke,rowComponent:rn,cellComponent:tn,onHeaderRow:Rt,index:u});return f}))},En=G(gn),Bn=d(11592);function Wn(he){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ce=="number"?ce:ce.endsWith("%")?he*parseFloat(ce)/100:null}function Tn(he,ce,Ke){return o.useMemo(function(){if(ce&&ce>0){var at=0,At=0;he.forEach(function(tn){var U=Wn(ce,tn.width);U?at+=U:At+=1});var Rt=Math.max(ce,Ke),Nt=Math.max(Rt-at,At),Lt=At,Ht=Nt/At,Bt=0,bn=he.map(function(tn){var U=(0,_e.Z)({},tn),u=Wn(ce,U.width);if(u)U.width=u;else{var f=Math.floor(Ht);U.width=Lt===1?Nt:f,Nt-=f,Lt-=1}return Bt+=U.width,U});if(Bt<Rt){var rn=Rt/Bt;Nt=Rt,bn.forEach(function(tn,U){var u=Math.floor(tn.width*rn);tn.width=U===bn.length-1?Nt:u,Nt-=u})}return[bn,Math.max(Bt,Rt)]}return[he,ce]},[he,ce,Ke])}var Jn=["children"],vn=["fixed"];function Gt(he){return(0,Bn.Z)(he).filter(function(ce){return o.isValidElement(ce)}).map(function(ce){var Ke=ce.key,at=ce.props,At=at.children,Rt=(0,ie.Z)(at,Jn),Nt=(0,_e.Z)({key:Ke},Rt);return At&&(Nt.children=Gt(At)),Nt})}function Qt(he){return he.filter(function(ce){return ce&&(0,Fe.Z)(ce)==="object"&&!ce.hidden}).map(function(ce){var Ke=ce.children;return Ke&&Ke.length>0?(0,_e.Z)((0,_e.Z)({},ce),{},{children:Qt(Ke)}):ce})}function Dn(he){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return he.filter(function(Ke){return Ke&&(0,Fe.Z)(Ke)==="object"}).reduce(function(Ke,at,At){var Rt=at.fixed,Nt=Rt===!0?"left":Rt,Lt="".concat(ce,"-").concat(At),Ht=at.children;return Ht&&Ht.length>0?[].concat((0,ze.Z)(Ke),(0,ze.Z)(Dn(Ht,Lt).map(function(Bt){return(0,_e.Z)({fixed:Nt},Bt)}))):[].concat((0,ze.Z)(Ke),[(0,_e.Z)((0,_e.Z)({key:Lt},at),{},{fixed:Nt})])},[])}function An(he){return he.map(function(ce){var Ke=ce.fixed,at=(0,ie.Z)(ce,vn),At=Ke;return Ke==="left"?At="right":Ke==="right"&&(At="left"),(0,_e.Z)({fixed:At},at)})}function bt(he,ce){var Ke=he.prefixCls,at=he.columns,At=he.children,Rt=he.expandable,Nt=he.expandedKeys,Lt=he.columnTitle,Ht=he.getRowKey,Bt=he.onTriggerExpand,bn=he.expandIcon,rn=he.rowExpandable,tn=he.expandIconColumnIndex,U=he.direction,u=he.expandRowByClick,f=he.columnWidth,h=he.fixed,y=he.scrollWidth,O=he.clientWidth,H=o.useMemo(function(){var dn=at||Gt(At)||[];return Qt(dn.slice())},[at,At]),Ae=o.useMemo(function(){if(Rt){var dn=H.slice();if(!dn.includes(ne)){var wn=tn||0;wn>=0&&(wn||h==="left"||!h)&&dn.splice(wn,0,ne),h==="right"&&dn.splice(H.length,0,ne)}var xn=dn.indexOf(ne);dn=dn.filter(function(tr,zn){return tr!==ne||zn===xn});var Cn=H[xn],kn;h?kn=h:kn=Cn?Cn.fixed:null;var Xn=(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},rt,{className:"".concat(Ke,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Lt),"fixed",kn),"className","".concat(Ke,"-row-expand-icon-cell")),"width",f),"render",function(zn,Er,Tr){var gi=Ht(Er,Tr),ni=Nt.has(gi),kt=rn?rn(Er):!0,vi=bn({prefixCls:Ke,expanded:ni,expandable:kt,record:Er,onExpand:Bt});return u?o.createElement("span",{onClick:function(Qr){return Qr.stopPropagation()}},vi):vi});return dn.map(function(tr){return tr===ne?Xn:tr})}return H.filter(function(tr){return tr!==ne})},[Rt,H,Ht,Nt,bn,U]),Ne=o.useMemo(function(){var dn=Ae;return ce&&(dn=ce(dn)),dn.length||(dn=[{render:function(){return null}}]),dn},[ce,Ae,U]),Je=o.useMemo(function(){return U==="rtl"?An(Dn(Ne)):Dn(Ne)},[Ne,U,y]),Ct=o.useMemo(function(){for(var dn=-1,wn=Je.length-1;wn>=0;wn-=1){var xn=Je[wn].fixed;if(xn==="left"||xn===!0){dn=wn;break}}if(dn>=0)for(var Cn=0;Cn<=dn;Cn+=1){var kn=Je[Cn].fixed;if(kn!=="left"&&kn!==!0)return!0}var Xn=Je.findIndex(function(Er){var Tr=Er.fixed;return Tr==="right"});if(Xn>=0)for(var tr=Xn;tr<Je.length;tr+=1){var zn=Je[tr].fixed;if(zn!=="right")return!0}return!1},[Je]),Pt=Tn(Je,y,O),zt=(0,fe.Z)(Pt,2),nn=zt[0],cn=zt[1];return[Ne,nn,cn,Ct]}var _t=bt;function Me(he,ce,Ke){var at=ft(he),At=at.expandIcon,Rt=at.expandedRowKeys,Nt=at.defaultExpandedRowKeys,Lt=at.defaultExpandAllRows,Ht=at.expandedRowRender,Bt=at.onExpand,bn=at.onExpandedRowsChange,rn=at.childrenColumnName,tn=At||Ge,U=rn||"children",u=o.useMemo(function(){return Ht?"row":he.expandable&&he.internalHooks===j&&he.expandable.__PARENT_RENDER_ICON__||ce.some(function(Ne){return Ne&&(0,Fe.Z)(Ne)==="object"&&Ne[U]})?"nest":!1},[!!Ht,ce]),f=o.useState(function(){return Nt||(Lt?yt(ce,Ke,U):[])}),h=(0,fe.Z)(f,2),y=h[0],O=h[1],H=o.useMemo(function(){return new Set(Rt||y||[])},[Rt,y]),Ae=o.useCallback(function(Ne){var Je=Ke(Ne,ce.indexOf(Ne)),Ct,Pt=H.has(Je);Pt?(H.delete(Je),Ct=(0,ze.Z)(H)):Ct=[].concat((0,ze.Z)(H),[Je]),O(Ct),Bt&&Bt(!Pt,Ne),bn&&bn(Ct)},[Ke,H,ce,Bt,bn]);return[at,u,H,tn,U,Ae]}function ot(he,ce,Ke){var at=he.map(function(At,Rt){return qe(Rt,Rt,he,ce,Ke)});return(0,A.Z)(function(){return at},[at],function(At,Rt){return!(0,re.Z)(At,Rt)})}function vt(he){var ce=(0,o.useRef)(he),Ke=(0,o.useState)({}),at=(0,fe.Z)(Ke,2),At=at[1],Rt=(0,o.useRef)(null),Nt=(0,o.useRef)([]);function Lt(Ht){Nt.current.push(Ht);var Bt=Promise.resolve();Rt.current=Bt,Bt.then(function(){if(Rt.current===Bt){var bn=Nt.current,rn=ce.current;Nt.current=[],bn.forEach(function(tn){ce.current=tn(ce.current)}),Rt.current=null,rn!==ce.current&&At({})}})}return(0,o.useEffect)(function(){return function(){Rt.current=null}},[]),[ce.current,Lt]}function Et(he){var ce=(0,o.useRef)(he||null),Ke=(0,o.useRef)();function at(){window.clearTimeout(Ke.current)}function At(Nt){ce.current=Nt,at(),Ke.current=window.setTimeout(function(){ce.current=null,Ke.current=void 0},100)}function Rt(){return ce.current}return(0,o.useEffect)(function(){return at},[]),[At,Rt]}function Dt(){var he=o.useState(-1),ce=(0,fe.Z)(he,2),Ke=ce[0],at=ce[1],At=o.useState(-1),Rt=(0,fe.Z)(At,2),Nt=Rt[0],Lt=Rt[1],Ht=o.useCallback(function(Bt,bn){at(Bt),Lt(bn)},[]);return[Ke,Nt,Ht]}var Xt=d(47273),pn=(0,Xt.Z)()?window:null;function Sn(he,ce){var Ke=(0,Fe.Z)(he)==="object"?he:{},at=Ke.offsetHeader,At=at===void 0?0:at,Rt=Ke.offsetSummary,Nt=Rt===void 0?0:Rt,Lt=Ke.offsetScroll,Ht=Lt===void 0?0:Lt,Bt=Ke.getContainer,bn=Bt===void 0?function(){return pn}:Bt,rn=bn()||pn,tn=!!he;return o.useMemo(function(){return{isSticky:tn,stickyClassName:tn?"".concat(ce,"-sticky-holder"):"",offsetHeader:At,offsetSummary:Nt,offsetScroll:Ht,container:rn}},[tn,Ht,At,Nt,ce,rn])}function Zt(he,ce,Ke){var at=(0,o.useMemo)(function(){var At=ce.length,Rt=function(Bt,bn,rn){for(var tn=[],U=0,u=Bt;u!==bn;u+=rn)tn.push(U),ce[u].fixed&&(U+=he[u]||0);return tn},Nt=Rt(0,At,1),Lt=Rt(At-1,-1,-1).reverse();return Ke==="rtl"?{left:Lt,right:Nt}:{left:Nt,right:Lt}},[he,ce,Ke]);return at}var yn=Zt;function Nn(he){var ce=he.className,Ke=he.children;return o.createElement("div",{className:ce},Ke)}var _n=Nn,St=d(8224),Ft=d(16089),Vt=d(76846);function Ut(he){var ce=(0,Vt.bn)(he),Ke=ce.getBoundingClientRect(),at=document.documentElement;return{left:Ke.left+(window.pageXOffset||at.scrollLeft)-(at.clientLeft||document.body.clientLeft||0),top:Ke.top+(window.pageYOffset||at.scrollTop)-(at.clientTop||document.body.clientTop||0)}}var jt=function(ce,Ke){var at,At,Rt=ce.scrollBodyRef,Nt=ce.onScroll,Lt=ce.offsetScroll,Ht=ce.container,Bt=ce.direction,bn=C(ae,"prefixCls"),rn=((at=Rt.current)===null||at===void 0?void 0:at.scrollWidth)||0,tn=((At=Rt.current)===null||At===void 0?void 0:At.clientWidth)||0,U=rn&&tn*(tn/rn),u=o.useRef(),f=vt({scrollLeft:0,isHiddenScrollBar:!0}),h=(0,fe.Z)(f,2),y=h[0],O=h[1],H=o.useRef({delta:0,x:0}),Ae=o.useState(!1),Ne=(0,fe.Z)(Ae,2),Je=Ne[0],Ct=Ne[1],Pt=o.useRef(null);o.useEffect(function(){return function(){Ft.Z.cancel(Pt.current)}},[]);var zt=function(){Ct(!1)},nn=function(Cn){Cn.persist(),H.current.delta=Cn.pageX-y.scrollLeft,H.current.x=0,Ct(!0),Cn.preventDefault()},cn=function(Cn){var kn,Xn=Cn||((kn=window)===null||kn===void 0?void 0:kn.event),tr=Xn.buttons;if(!Je||tr===0){Je&&Ct(!1);return}var zn=H.current.x+Cn.pageX-H.current.x-H.current.delta,Er=Bt==="rtl";zn=Math.max(Er?U-tn:0,Math.min(Er?0:tn-U,zn));var Tr=!Er||Math.abs(zn)+Math.abs(U)<tn;Tr&&(Nt({scrollLeft:zn/tn*(rn+2)}),H.current.x=Cn.pageX)},dn=function(){Ft.Z.cancel(Pt.current),Pt.current=(0,Ft.Z)(function(){if(Rt.current){var Cn=Ut(Rt.current).top,kn=Cn+Rt.current.offsetHeight,Xn=Ht===window?document.documentElement.scrollTop+window.innerHeight:Ut(Ht).top+Ht.clientHeight;kn-(0,Ze.Z)()<=Xn||Cn>=Xn-Lt?O(function(tr){return(0,_e.Z)((0,_e.Z)({},tr),{},{isHiddenScrollBar:!0})}):O(function(tr){return(0,_e.Z)((0,_e.Z)({},tr),{},{isHiddenScrollBar:!1})})}})},wn=function(Cn){O(function(kn){return(0,_e.Z)((0,_e.Z)({},kn),{},{scrollLeft:Cn/rn*tn||0})})};return o.useImperativeHandle(Ke,function(){return{setScrollLeft:wn,checkScrollBarVisible:dn}}),o.useEffect(function(){var xn=(0,St.Z)(document.body,"mouseup",zt,!1),Cn=(0,St.Z)(document.body,"mousemove",cn,!1);return dn(),function(){xn.remove(),Cn.remove()}},[U,Je]),o.useEffect(function(){if(Rt.current){for(var xn=[],Cn=(0,Vt.bn)(Rt.current);Cn;)xn.push(Cn),Cn=Cn.parentElement;return xn.forEach(function(kn){return kn.addEventListener("scroll",dn,!1)}),window.addEventListener("resize",dn,!1),window.addEventListener("scroll",dn,!1),Ht.addEventListener("scroll",dn,!1),function(){xn.forEach(function(kn){return kn.removeEventListener("scroll",dn)}),window.removeEventListener("resize",dn),window.removeEventListener("scroll",dn),Ht.removeEventListener("scroll",dn)}}},[Ht]),o.useEffect(function(){y.isHiddenScrollBar||O(function(xn){var Cn=Rt.current;return Cn?(0,_e.Z)((0,_e.Z)({},xn),{},{scrollLeft:Cn.scrollLeft/Cn.scrollWidth*Cn.clientWidth}):xn})},[y.isHiddenScrollBar]),rn<=tn||!U||y.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,Ze.Z)(),width:tn,bottom:Lt},className:"".concat(bn,"-sticky-scroll")},o.createElement("div",{onMouseDown:nn,ref:u,className:B()("".concat(bn,"-sticky-scroll-bar"),(0,Te.Z)({},"".concat(bn,"-sticky-scroll-bar-active"),Je)),style:{width:"".concat(U,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))},qt=o.forwardRef(jt);function sn(he){return null}var on=sn;function In(he){return null}var Mn=In,dr="rc-table",jn=[],Kn={};function er(){return"No Data"}function Qn(he,ce){var Ke=(0,_e.Z)({rowKey:"key",prefixCls:dr,emptyText:er},he),at=Ke.prefixCls,At=Ke.className,Rt=Ke.rowClassName,Nt=Ke.style,Lt=Ke.data,Ht=Ke.rowKey,Bt=Ke.scroll,bn=Ke.tableLayout,rn=Ke.direction,tn=Ke.title,U=Ke.footer,u=Ke.summary,f=Ke.caption,h=Ke.id,y=Ke.showHeader,O=Ke.components,H=Ke.emptyText,Ae=Ke.onRow,Ne=Ke.onHeaderRow,Je=Ke.onScroll,Ct=Ke.internalHooks,Pt=Ke.transformColumns,zt=Ke.internalRefs,nn=Ke.tailor,cn=Ke.getContainerWidth,dn=Ke.sticky,wn=Ke.rowHoverable,xn=wn===void 0?!0:wn,Cn=Lt||jn,kn=!!Cn.length,Xn=Ct===j,tr=o.useCallback(function(yi,wi){return(0,X.Z)(O,yi)||wi},[O]),zn=o.useMemo(function(){return typeof Ht=="function"?Ht:function(yi){var wi=yi&&yi[Ht];return wi}},[Ht]),Er=tr(["body"]),Tr=Dt(),gi=(0,fe.Z)(Tr,3),ni=gi[0],kt=gi[1],vi=gi[2],ta=Me(Ke,Cn,zn),Qr=(0,fe.Z)(ta,6),Br=Qr[0],Yi=Qr[1],Qi=Qr[2],Ar=Qr[3],Zr=Qr[4],mr=Qr[5],_r=Bt==null?void 0:Bt.x,si=o.useState(0),hi=(0,fe.Z)(si,2),zi=hi[0],Ni=hi[1],Wi=_t((0,_e.Z)((0,_e.Z)((0,_e.Z)({},Ke),Br),{},{expandable:!!Br.expandedRowRender,columnTitle:Br.columnTitle,expandedKeys:Qi,getRowKey:zn,onTriggerExpand:mr,expandIcon:Ar,expandIconColumnIndex:Br.expandIconColumnIndex,direction:rn,scrollWidth:Xn&&nn&&typeof _r=="number"?_r:null,clientWidth:zi}),Xn?Pt:null),Ta=(0,fe.Z)(Wi,4),Cr=Ta[0],Pr=Ta[1],xi=Ta[2],$i=Ta[3],Ei=xi!=null?xi:_r,Ma=o.useMemo(function(){return{columns:Cr,flattenColumns:Pr}},[Cr,Pr]),Ji=o.useRef(),ns=o.useRef(),ra=o.useRef(),Ui=o.useRef();o.useImperativeHandle(ce,function(){return{nativeElement:Ji.current,scrollTo:function(wi){var Da;if(ra.current instanceof HTMLElement){var rs=wi.index,Ia=wi.top,Fo=wi.key;if(lt(Ia)){var ho;(ho=ra.current)===null||ho===void 0||ho.scrollTo({top:Ia})}else{var ro,yo=Fo!=null?Fo:zn(Cn[rs]);(ro=ra.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||ro===void 0||ro.scrollIntoView()}}else(Da=ra.current)!==null&&Da!==void 0&&Da.scrollTo&&ra.current.scrollTo(wi)}}});var qi=o.useRef(),Vi=o.useState(!1),Ra=(0,fe.Z)(Vi,2),ya=Ra[0],Di=Ra[1],fa=o.useState(!1),Zi=(0,fe.Z)(fa,2),za=Zi[0],ha=Zi[1],Za=o.useState(new Map),ms=(0,fe.Z)(Za,2),fo=ms[0],ca=ms[1],Do=we(Pr),Ga=Do.map(function(yi){return fo.get(yi)}),cs=o.useMemo(function(){return Ga},[Ga.join("_")]),ds=yn(cs,Pr,rn),Ja=Bt&&Ve(Bt.y),Ya=Bt&&Ve(Ei)||!!Br.fixed,gs=Ya&&Pr.some(function(yi){var wi=yi.fixed;return wi}),Is=o.useRef(),vs=Sn(dn,at),Ms=vs.isSticky,Qa=vs.offsetHeader,Tl=vs.offsetSummary,cl=vs.offsetScroll,fs=vs.stickyClassName,dl=vs.container,ai=o.useMemo(function(){return u==null?void 0:u(Cn)},[u,Cn]),Mi=(Ja||Ms)&&o.isValidElement(ai)&&ai.type===D&&ai.props.fixed,Xi,ba,qa;Ja&&(ba={overflowY:kn?"scroll":"auto",maxHeight:Bt.y}),Ya&&(Xi={overflowX:"auto"},Ja||(ba={overflowY:"hidden"}),qa={width:Ei===!0?"auto":Ei,minWidth:"100%"});var ys=o.useCallback(function(yi,wi){ca(function(Da){if(Da.get(yi)!==wi){var rs=new Map(Da);return rs.set(yi,wi),rs}return Da})},[]),xs=Et(null),$a=(0,fe.Z)(xs,2),ql=$a[0],Rl=$a[1];function Yo(yi,wi){wi&&(typeof wi=="function"?wi(yi):wi.scrollLeft!==yi&&(wi.scrollLeft=yi,wi.scrollLeft!==yi&&setTimeout(function(){wi.scrollLeft=yi},0)))}var vo=(0,K.Z)(function(yi){var wi=yi.currentTarget,Da=yi.scrollLeft,rs=rn==="rtl",Ia=typeof Da=="number"?Da:wi.scrollLeft,Fo=wi||Kn;if(!Rl()||Rl()===Fo){var ho;ql(Fo),Yo(Ia,ns.current),Yo(Ia,ra.current),Yo(Ia,qi.current),Yo(Ia,(ho=Is.current)===null||ho===void 0?void 0:ho.setScrollLeft)}var ro=wi||ns.current;if(ro){var yo=Xn&&nn&&typeof Ei=="number"?Ei:ro.scrollWidth,Lo=ro.clientWidth;if(yo===Lo){Di(!1),ha(!1);return}rs?(Di(-Ia<yo-Lo),ha(-Ia>0)):(Di(Ia>0),ha(Ia<yo-Lo))}}),Dl=(0,K.Z)(function(yi){vo(yi),Je==null||Je(yi)}),Il=function(){if(Ya&&ra.current){var wi;vo({currentTarget:(0,Vt.bn)(ra.current),scrollLeft:(wi=ra.current)===null||wi===void 0?void 0:wi.scrollLeft})}else Di(!1),ha(!1)},Fl=function(wi){var Da,rs=wi.width;(Da=Is.current)===null||Da===void 0||Da.checkScrollBarVisible();var Ia=Ji.current?Ji.current.offsetWidth:rs;Xn&&cn&&Ji.current&&(Ia=cn(Ji.current,Ia)||Ia),Ia!==zi&&(Il(),Ni(Ia))},Ll=o.useRef(!1);o.useEffect(function(){Ll.current&&Il()},[Ya,Lt,Cr.length]),o.useEffect(function(){Ll.current=!0},[]);var Xl=o.useState(0),Ol=(0,fe.Z)(Xl,2),Qo=Ol[0],Pl=Ol[1],Jl=o.useState(!0),kl=(0,fe.Z)(Jl,2),fl=kl[0],hl=kl[1];(0,g.Z)(function(){(!nn||!Xn)&&(ra.current instanceof Element?Pl((0,Ze.o)(ra.current).width):Pl((0,Ze.o)(Ui.current).width)),hl((0,Re.G)("position","sticky"))},[]),o.useEffect(function(){Xn&&zt&&(zt.body.current=ra.current)});var eu=o.useCallback(function(yi){return o.createElement(o.Fragment,null,o.createElement(En,yi),Mi==="top"&&o.createElement(ge,yi,ai))},[Mi,ai]),pl=o.useCallback(function(yi){return o.createElement(ge,yi,ai)},[ai]),qo=tr(["table"],"table"),Io=o.useMemo(function(){return bn||(gs?Ei==="max-content"?"auto":"fixed":Ja||Ms||Pr.some(function(yi){var wi=yi.ellipsis;return wi})?"fixed":"auto")},[Ja,gs,Pr,bn,Ms]),ml,gl={colWidths:cs,columCount:Pr.length,stickyOffsets:ds,onHeaderRow:Ne,fixHeader:Ja,scroll:Bt},vl=o.useMemo(function(){return kn?null:typeof H=="function"?H():H},[kn,H]),Es=o.createElement(It,{data:Cn,measureColumnWidth:Ja||Ya||Ms}),ga=o.createElement(We,{colWidths:Pr.map(function(yi){var wi=yi.width;return wi}),columns:Pr}),to=f!=null?o.createElement("caption",{className:"".concat(at,"-caption")},f):void 0,no=(0,te.Z)(Ke,{data:!0}),Nl=(0,te.Z)(Ke,{aria:!0});if(Ja||Ms){var yl;typeof Er=="function"?(yl=Er(Cn,{scrollbarSize:Qo,ref:ra,onScroll:vo}),gl.colWidths=Pr.map(function(yi,wi){var Da=yi.width,rs=wi===Pr.length-1?Da-Qo:Da;return typeof rs=="number"&&!Number.isNaN(rs)?rs:0})):yl=o.createElement("div",{style:(0,_e.Z)((0,_e.Z)({},Xi),ba),onScroll:Dl,ref:ra,className:B()("".concat(at,"-body"))},o.createElement(qo,(0,N.Z)({style:(0,_e.Z)((0,_e.Z)({},qa),{},{tableLayout:Io})},Nl),to,ga,Es,!Mi&&ai&&o.createElement(ge,{stickyOffsets:ds,flattenColumns:Pr},ai)));var Ul=(0,_e.Z)((0,_e.Z)((0,_e.Z)({noData:!Cn.length,maxContentScroll:Ya&&Ei==="max-content"},gl),Ma),{},{direction:rn,stickyClassName:fs,onScroll:vo});ml=o.createElement(o.Fragment,null,y!==!1&&o.createElement(Tt,(0,N.Z)({},Ul,{stickyTopOffset:Qa,className:"".concat(at,"-header"),ref:ns}),eu),yl,Mi&&Mi!=="top"&&o.createElement(Tt,(0,N.Z)({},Ul,{stickyBottomOffset:Tl,className:"".concat(at,"-summary"),ref:qi}),pl),Ms&&ra.current&&ra.current instanceof Element&&o.createElement(qt,{ref:Is,offsetScroll:cl,scrollBodyRef:ra,onScroll:vo,container:dl,direction:rn}))}else ml=o.createElement("div",{style:(0,_e.Z)((0,_e.Z)({},Xi),ba),className:B()("".concat(at,"-content")),onScroll:vo,ref:ra},o.createElement(qo,(0,N.Z)({style:(0,_e.Z)((0,_e.Z)({},qa),{},{tableLayout:Io})},Nl),to,ga,y!==!1&&o.createElement(En,(0,N.Z)({},gl,Ma)),Es,ai&&o.createElement(ge,{stickyOffsets:ds,flattenColumns:Pr},ai)));var bl=o.createElement("div",(0,N.Z)({className:B()(at,At,(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(at,"-rtl"),rn==="rtl"),"".concat(at,"-ping-left"),ya),"".concat(at,"-ping-right"),za),"".concat(at,"-layout-fixed"),bn==="fixed"),"".concat(at,"-fixed-header"),Ja),"".concat(at,"-fixed-column"),gs),"".concat(at,"-fixed-column-gapped"),gs&&$i),"".concat(at,"-scroll-horizontal"),Ya),"".concat(at,"-has-fix-left"),Pr[0]&&Pr[0].fixed),"".concat(at,"-has-fix-right"),Pr[Pr.length-1]&&Pr[Pr.length-1].fixed==="right")),style:Nt,id:h,ref:Ji},no),tn&&o.createElement(_n,{className:"".concat(at,"-title")},tn(Cn)),o.createElement("div",{ref:Ui,className:"".concat(at,"-container")},ml),U&&o.createElement(_n,{className:"".concat(at,"-footer")},U(Cn)));Ya&&(bl=o.createElement(ye.Z,{onResize:Fl},bl));var Ml=ot(Pr,ds,rn),tu=o.useMemo(function(){return{scrollX:Ei,prefixCls:at,getComponent:tr,scrollbarSize:Qo,direction:rn,fixedInfoList:Ml,isSticky:Ms,supportSticky:fl,componentWidth:zi,fixHeader:Ja,fixColumn:gs,horizonScroll:Ya,tableLayout:Io,rowClassName:Rt,expandedRowClassName:Br.expandedRowClassName,expandIcon:Ar,expandableType:Yi,expandRowByClick:Br.expandRowByClick,expandedRowRender:Br.expandedRowRender,onTriggerExpand:mr,expandIconColumnIndex:Br.expandIconColumnIndex,indentSize:Br.indentSize,allColumnsFixedLeft:Pr.every(function(yi){return yi.fixed==="left"}),emptyNode:vl,columns:Cr,flattenColumns:Pr,onColumnResize:ys,hoverStartRow:ni,hoverEndRow:kt,onHover:vi,rowExpandable:Br.rowExpandable,onRow:Ae,getRowKey:zn,expandedKeys:Qi,childrenColumnName:Zr,rowHoverable:xn}},[Ei,at,tr,Qo,rn,Ml,Ms,fl,zi,Ja,gs,Ya,Io,Rt,Br.expandedRowClassName,Ar,Yi,Br.expandRowByClick,Br.expandedRowRender,mr,Br.expandIconColumnIndex,Br.indentSize,vl,Cr,Pr,ys,ni,kt,vi,Br.rowExpandable,Ae,zn,Qi,Zr,xn]);return o.createElement(ae.Provider,{value:tu},bl)}var ar=o.forwardRef(Qn);function Vn(he){return I(ar,he)}var qn=Vn();qn.EXPAND_COLUMN=ne,qn.INTERNAL_HOOKS=j,qn.Column=on,qn.ColumnGroup=Mn,qn.Summary=pe;var or=qn,cr=d(48911),rr=l(null),nr=l(null);function ir(he,ce,Ke){var at=ce||1;return Ke[he+at]-(Ke[he]||0)}function Zn(he){var ce=he.rowInfo,Ke=he.column,at=he.colIndex,At=he.indent,Rt=he.index,Nt=he.component,Lt=he.renderIndex,Ht=he.record,Bt=he.style,bn=he.className,rn=he.inverse,tn=he.getHeight,U=Ke.render,u=Ke.dataIndex,f=Ke.className,h=Ke.width,y=C(nr,["columnsOffset"]),O=y.columnsOffset,H=Ce(ce,Ke,at,At,Rt),Ae=H.key,Ne=H.fixedInfo,Je=H.appendCellNode,Ct=H.additionalCellProps,Pt=Ct.style,zt=Ct.colSpan,nn=zt===void 0?1:zt,cn=Ct.rowSpan,dn=cn===void 0?1:cn,wn=at-1,xn=ir(wn,nn,O),Cn=nn>1?h-xn:0,kn=(0,_e.Z)((0,_e.Z)((0,_e.Z)({},Pt),Bt),{},{flex:"0 0 ".concat(xn,"px"),width:"".concat(xn,"px"),marginRight:Cn,pointerEvents:"auto"}),Xn=o.useMemo(function(){return rn?dn<=1:nn===0||dn===0||dn>1},[dn,nn,rn]);Xn?kn.visibility="hidden":rn&&(kn.height=tn==null?void 0:tn(dn));var tr=Xn?function(){return null}:U,zn={};return(dn===0||nn===0)&&(zn.rowSpan=1,zn.colSpan=1),o.createElement(Ot,(0,N.Z)({className:B()(f,bn),ellipsis:Ke.ellipsis,align:Ke.align,scope:Ke.rowScope,component:Nt,prefixCls:ce.prefixCls,key:Ae,record:Ht,index:Rt,renderIndex:Lt,dataIndex:u,render:tr,shouldCellUpdate:Ke.shouldCellUpdate},Ne,{appendNode:Je,additionalProps:(0,_e.Z)((0,_e.Z)({},Ct),{},{style:kn},zn)}))}var Mr=Zn,$t=["data","index","className","rowKey","style","extra","getHeight"],sr=o.forwardRef(function(he,ce){var Ke=he.data,at=he.index,At=he.className,Rt=he.rowKey,Nt=he.style,Lt=he.extra,Ht=he.getHeight,Bt=(0,ie.Z)(he,$t),bn=Ke.record,rn=Ke.indent,tn=Ke.index,U=C(ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),u=U.scrollX,f=U.flattenColumns,h=U.prefixCls,y=U.fixColumn,O=U.componentWidth,H=C(rr,["getComponent"]),Ae=H.getComponent,Ne=nt(bn,Rt,at,rn),Je=Ae(["body","row"],"div"),Ct=Ae(["body","cell"],"div"),Pt=Ne.rowSupportExpand,zt=Ne.expanded,nn=Ne.rowProps,cn=Ne.expandedRowRender,dn=Ne.expandedRowClassName,wn;if(Pt&&zt){var xn=cn(bn,at,rn+1,zt),Cn=ht(dn,bn,at,rn),kn={};y&&(kn={style:(0,Te.Z)({},"--virtual-width","".concat(O,"px"))});var Xn="".concat(h,"-expanded-row-cell");wn=o.createElement(Je,{className:B()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(rn+1),Cn)},o.createElement(Ot,{component:Ct,prefixCls:h,className:B()(Xn,(0,Te.Z)({},"".concat(Xn,"-fixed"),y)),additionalProps:kn},xn))}var tr=(0,_e.Z)((0,_e.Z)({},Nt),{},{width:u});Lt&&(tr.position="absolute",tr.pointerEvents="none");var zn=o.createElement(Je,(0,N.Z)({},nn,Bt,{"data-row-key":Rt,ref:Pt?null:ce,className:B()(At,"".concat(h,"-row"),nn==null?void 0:nn.className,(0,Te.Z)({},"".concat(h,"-row-extra"),Lt)),style:(0,_e.Z)((0,_e.Z)({},tr),nn==null?void 0:nn.style)}),f.map(function(Er,Tr){return o.createElement(Mr,{key:Tr,component:Ct,rowInfo:Ne,column:Er,colIndex:Tr,indent:rn,index:at,renderIndex:tn,record:bn,inverse:Lt,getHeight:Ht})}));return Pt?o.createElement("div",{ref:ce},zn,wn):zn}),hr=G(sr),Yr=hr,Kr=o.forwardRef(function(he,ce){var Ke=he.data,at=he.onScroll,At=C(ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Rt=At.flattenColumns,Nt=At.onColumnResize,Lt=At.getRowKey,Ht=At.expandedKeys,Bt=At.prefixCls,bn=At.childrenColumnName,rn=At.scrollX,tn=At.direction,U=C(rr),u=U.sticky,f=U.scrollY,h=U.listItemHeight,y=U.getComponent,O=U.onScroll,H=o.useRef(),Ae=tt(Ke,bn,Ht,Lt),Ne=o.useMemo(function(){var wn=0;return Rt.map(function(xn){var Cn=xn.width,kn=xn.key;return wn+=Cn,[kn,Cn,wn]})},[Rt]),Je=o.useMemo(function(){return Ne.map(function(wn){return wn[2]})},[Ne]);o.useEffect(function(){Ne.forEach(function(wn){var xn=(0,fe.Z)(wn,2),Cn=xn[0],kn=xn[1];Nt(Cn,kn)})},[Ne]),o.useImperativeHandle(ce,function(){var wn,xn={scrollTo:function(kn){var Xn;(Xn=H.current)===null||Xn===void 0||Xn.scrollTo(kn)},nativeElement:(wn=H.current)===null||wn===void 0?void 0:wn.nativeElement};return Object.defineProperty(xn,"scrollLeft",{get:function(){var kn;return((kn=H.current)===null||kn===void 0?void 0:kn.getScrollInfo().x)||0},set:function(kn){var Xn;(Xn=H.current)===null||Xn===void 0||Xn.scrollTo({left:kn})}}),xn});var Ct=function(xn,Cn){var kn,Xn=(kn=Ae[Cn])===null||kn===void 0?void 0:kn.record,tr=xn.onCell;if(tr){var zn,Er=tr(Xn,Cn);return(zn=Er==null?void 0:Er.rowSpan)!==null&&zn!==void 0?zn:1}return 1},Pt=function(xn){var Cn=xn.start,kn=xn.end,Xn=xn.getSize,tr=xn.offsetY;if(kn<0)return null;for(var zn=Rt.filter(function(Ar){return Ct(Ar,Cn)===0}),Er=Cn,Tr=function(Zr){if(zn=zn.filter(function(mr){return Ct(mr,Zr)===0}),!zn.length)return Er=Zr,1},gi=Cn;gi>=0&&!Tr(gi);gi-=1);for(var ni=Rt.filter(function(Ar){return Ct(Ar,kn)!==1}),kt=kn,vi=function(Zr){if(ni=ni.filter(function(mr){return Ct(mr,Zr)!==1}),!ni.length)return kt=Math.max(Zr-1,kn),1},ta=kn;ta<Ae.length&&!vi(ta);ta+=1);for(var Qr=[],Br=function(Zr){var mr=Ae[Zr];if(!mr)return 1;Rt.some(function(_r){return Ct(_r,Zr)>1})&&Qr.push(Zr)},Yi=Er;Yi<=kt;Yi+=1)Br(Yi);var Qi=Qr.map(function(Ar){var Zr=Ae[Ar],mr=Lt(Zr.record,Ar),_r=function(zi){var Ni=Ar+zi-1,Wi=Lt(Ae[Ni].record,Ni),Ta=Xn(mr,Wi);return Ta.bottom-Ta.top},si=Xn(mr);return o.createElement(Yr,{key:Ar,data:Zr,rowKey:mr,index:Ar,style:{top:-tr+si.top},extra:!0,getHeight:_r})});return Qi},zt=o.useMemo(function(){return{columnsOffset:Je}},[Je]),nn="".concat(Bt,"-tbody"),cn=y(["body","wrapper"]),dn={};return u&&(dn.position="sticky",dn.bottom=0,(0,Fe.Z)(u)==="object"&&u.offsetScroll&&(dn.bottom=u.offsetScroll)),o.createElement(nr.Provider,{value:zt},o.createElement(cr.Z,{fullHeight:!1,ref:H,prefixCls:"".concat(nn,"-virtual"),styles:{horizontalScrollBar:dn},className:nn,height:f,itemHeight:h||24,data:Ae,itemKey:function(xn){return Lt(xn.record)},component:cn,scrollWidth:rn,direction:tn,onVirtualScroll:function(xn){var Cn,kn=xn.x;at({currentTarget:(Cn=H.current)===null||Cn===void 0?void 0:Cn.nativeElement,scrollLeft:kn})},onScroll:O,extraRender:Pt},function(wn,xn,Cn){var kn=Lt(wn.record,xn);return o.createElement(Yr,{data:wn,rowKey:kn,index:xn,style:Cn.style})}))}),li=G(Kr),qr=li,Hn=function(ce,Ke){var at=Ke.ref,At=Ke.onScroll;return o.createElement(qr,{ref:at,data:ce,onScroll:At})};function On(he,ce){var Ke=he.data,at=he.columns,At=he.scroll,Rt=he.sticky,Nt=he.prefixCls,Lt=Nt===void 0?dr:Nt,Ht=he.className,Bt=he.listItemHeight,bn=he.components,rn=he.onScroll,tn=At||{},U=tn.x,u=tn.y;typeof U!="number"&&(U=1),typeof u!="number"&&(u=500);var f=(0,De.zX)(function(O,H){return(0,X.Z)(bn,O)||H}),h=(0,De.zX)(rn),y=o.useMemo(function(){return{sticky:Rt,scrollY:u,listItemHeight:Bt,getComponent:f,onScroll:h}},[Rt,u,Bt,f,h]);return o.createElement(rr.Provider,{value:y},o.createElement(or,(0,N.Z)({},he,{className:B()(Ht,"".concat(Lt,"-virtual")),scroll:(0,_e.Z)((0,_e.Z)({},At),{},{x:U}),components:(0,_e.Z)((0,_e.Z)({},bn),{},{body:Ke!=null&&Ke.length?Hn:void 0}),columns:at,internalHooks:j,tailor:!0,ref:ce})))}var an=o.forwardRef(On);function ln(he){return I(an,he)}var Un=ln(),Yn=null,Rr=he=>null,pr=he=>null,Dr=d(84105),Xr=d(82661),pi=d(34643),Li=d(34061),Gr=d(18929);function Ii(he){const[ce,Ke]=(0,o.useState)(null);return[(0,o.useCallback)((Rt,Nt,Lt)=>{const Ht=ce!=null?ce:Rt,Bt=Math.min(Ht||0,Rt),bn=Math.max(Ht||0,Rt),rn=Nt.slice(Bt,bn+1).map(u=>he(u)),tn=rn.some(u=>!Lt.has(u)),U=[];return rn.forEach(u=>{tn?(Lt.has(u)||U.push(u),Lt.add(u)):(Lt.delete(u),U.push(u))}),Ke(tn?bn:null),U},[ce]),Rt=>{Ke(Rt)}]}var Jr=d(32383),bi=d(62673),ri=d(75727),di=d(47889);const ii={},Fi="SELECT_ALL",Lr="SELECT_INVERT",Oi="SELECT_NONE",Pi=[],ki=(he,ce)=>{let Ke=[];return(ce||[]).forEach(at=>{Ke.push(at),at&&typeof at=="object"&&he in at&&(Ke=[].concat((0,ze.Z)(Ke),(0,ze.Z)(ki(he,at[he]))))}),Ke};var Gn=(he,ce)=>{const{preserveSelectedRowKeys:Ke,selectedRowKeys:at,defaultSelectedRowKeys:At,getCheckboxProps:Rt,onChange:Nt,onSelect:Lt,onSelectAll:Ht,onSelectInvert:Bt,onSelectNone:bn,onSelectMultiple:rn,columnWidth:tn,type:U,selections:u,fixed:f,renderCell:h,hideSelectAll:y,checkStrictly:O=!0}=ce||{},{prefixCls:H,data:Ae,pageData:Ne,getRecordByKey:Je,getRowKey:Ct,expandType:Pt,childrenColumnName:zt,locale:nn,getPopupContainer:cn}=he,dn=(0,Jr.ln)("Table"),[wn,xn]=Ii(Ar=>Ar),[Cn,kn]=(0,Gr.Z)(at||At||Pi,{value:at}),Xn=o.useRef(new Map),tr=(0,o.useCallback)(Ar=>{if(Ke){const Zr=new Map;Ar.forEach(mr=>{let _r=Je(mr);!_r&&Xn.current.has(mr)&&(_r=Xn.current.get(mr)),Zr.set(mr,_r)}),Xn.current=Zr}},[Je,Ke]);o.useEffect(()=>{tr(Cn)},[Cn]);const zn=(0,o.useMemo)(()=>ki(zt,Ne),[zt,Ne]),{keyEntities:Er}=(0,o.useMemo)(()=>{if(O)return{keyEntities:null};let Ar=Ae;if(Ke){const Zr=new Set(zn.map((_r,si)=>Ct(_r,si))),mr=Array.from(Xn.current).reduce((_r,si)=>{let[hi,zi]=si;return Zr.has(hi)?_r:_r.concat(zi)},[]);Ar=[].concat((0,ze.Z)(Ar),(0,ze.Z)(mr))}return(0,Li.I8)(Ar,{externalGetKey:Ct,childrenPropName:zt})},[Ae,Ct,O,zt,Ke,zn]),Tr=(0,o.useMemo)(()=>{const Ar=new Map;return zn.forEach((Zr,mr)=>{const _r=Ct(Zr,mr),si=(Rt?Rt(Zr):null)||{};Ar.set(_r,si)}),Ar},[zn,Ct,Rt]),gi=(0,o.useCallback)(Ar=>{const Zr=Ct(Ar);let mr;return Tr.has(Zr)?mr=Tr.get(Ct(Ar)):mr=Rt?Rt(Ar):void 0,!!(mr!=null&&mr.disabled)},[Tr,Ct]),[ni,kt]=(0,o.useMemo)(()=>{if(O)return[Cn||[],[]];const{checkedKeys:Ar,halfCheckedKeys:Zr}=(0,pi.S)(Cn,!0,Er,gi);return[Ar||[],Zr]},[Cn,O,Er,gi]),vi=(0,o.useMemo)(()=>{const Ar=U==="radio"?ni.slice(0,1):ni;return new Set(Ar)},[ni,U]),ta=(0,o.useMemo)(()=>U==="radio"?new Set:new Set(kt),[kt,U]);o.useEffect(()=>{ce||kn(Pi)},[!!ce]);const Qr=(0,o.useCallback)((Ar,Zr)=>{let mr,_r;tr(Ar),Ke?(mr=Ar,_r=Ar.map(si=>Xn.current.get(si))):(mr=[],_r=[],Ar.forEach(si=>{const hi=Je(si);hi!==void 0&&(mr.push(si),_r.push(hi))})),kn(mr),Nt==null||Nt(mr,_r,{type:Zr})},[kn,Je,Nt,Ke]),Br=(0,o.useCallback)((Ar,Zr,mr,_r)=>{if(Lt){const si=mr.map(hi=>Je(hi));Lt(Je(Ar),Zr,si,_r)}Qr(mr,"single")},[Lt,Je,Qr]),Yi=(0,o.useMemo)(()=>!u||y?null:(u===!0?[Fi,Lr,Oi]:u).map(Zr=>Zr===Fi?{key:"all",text:nn.selectionAll,onSelect(){Qr(Ae.map((mr,_r)=>Ct(mr,_r)).filter(mr=>{const _r=Tr.get(mr);return!(_r!=null&&_r.disabled)||vi.has(mr)}),"all")}}:Zr===Lr?{key:"invert",text:nn.selectInvert,onSelect(){const mr=new Set(vi);Ne.forEach((si,hi)=>{const zi=Ct(si,hi),Ni=Tr.get(zi);Ni!=null&&Ni.disabled||(mr.has(zi)?mr.delete(zi):mr.add(zi))});const _r=Array.from(mr);Bt&&(dn.deprecated(!1,"onSelectInvert","onChange"),Bt(_r)),Qr(_r,"invert")}}:Zr===Oi?{key:"none",text:nn.selectNone,onSelect(){bn==null||bn(),Qr(Array.from(vi).filter(mr=>{const _r=Tr.get(mr);return _r==null?void 0:_r.disabled}),"none")}}:Zr).map(Zr=>Object.assign(Object.assign({},Zr),{onSelect:function(){for(var mr,_r,si=arguments.length,hi=new Array(si),zi=0;zi<si;zi++)hi[zi]=arguments[zi];(_r=Zr.onSelect)===null||_r===void 0||(mr=_r).call.apply(mr,[Zr].concat(hi)),xn(null)}})),[u,vi,Ne,Ct,Bt,Qr]);return[(0,o.useCallback)(Ar=>{var Zr;if(!ce)return Ar.filter(Ui=>Ui!==ii);let mr=(0,ze.Z)(Ar);const _r=new Set(vi),si=zn.map(Ct).filter(Ui=>!Tr.get(Ui).disabled),hi=si.every(Ui=>_r.has(Ui)),zi=si.some(Ui=>_r.has(Ui)),Ni=()=>{const Ui=[];hi?si.forEach(Vi=>{_r.delete(Vi),Ui.push(Vi)}):si.forEach(Vi=>{_r.has(Vi)||(_r.add(Vi),Ui.push(Vi))});const qi=Array.from(_r);Ht==null||Ht(!hi,qi.map(Vi=>Je(Vi)),Ui.map(Vi=>Je(Vi))),Qr(qi,"all"),xn(null)};let Wi,Ta;if(U!=="radio"){let Ui;if(Yi){const Di={getPopupContainer:cn,items:Yi.map((fa,Zi)=>{const{key:za,text:ha,onSelect:Za}=fa;return{key:za!=null?za:Zi,onClick:()=>{Za==null||Za(si)},label:ha}})};Ui=o.createElement("div",{className:`${H}-selection-extra`},o.createElement(ri.Z,{menu:Di,getPopupContainer:cn},o.createElement("span",null,o.createElement(Dr.Z,null))))}const qi=zn.map((Di,fa)=>{const Zi=Ct(Di,fa),za=Tr.get(Zi)||{};return Object.assign({checked:_r.has(Zi)},za)}).filter(Di=>{let{disabled:fa}=Di;return fa}),Vi=!!qi.length&&qi.length===zn.length,Ra=Vi&&qi.every(Di=>{let{checked:fa}=Di;return fa}),ya=Vi&&qi.some(Di=>{let{checked:fa}=Di;return fa});Ta=o.createElement(bi.default,{checked:Vi?Ra:!!zn.length&&hi,indeterminate:Vi?!Ra&&ya:!hi&&zi,onChange:Ni,disabled:zn.length===0||Vi,"aria-label":Ui?"Custom selection":"Select all",skipGroup:!0}),Wi=!y&&o.createElement("div",{className:`${H}-selection`},Ta,Ui)}let Cr;U==="radio"?Cr=(Ui,qi,Vi)=>{const Ra=Ct(qi,Vi),ya=_r.has(Ra),Di=Tr.get(Ra);return{node:o.createElement(di.ZP,Object.assign({},Di,{checked:ya,onClick:fa=>{var Zi;fa.stopPropagation(),(Zi=Di==null?void 0:Di.onClick)===null||Zi===void 0||Zi.call(Di,fa)},onChange:fa=>{var Zi;_r.has(Ra)||Br(Ra,!0,[Ra],fa.nativeEvent),(Zi=Di==null?void 0:Di.onChange)===null||Zi===void 0||Zi.call(Di,fa)}})),checked:ya}}:Cr=(Ui,qi,Vi)=>{var Ra;const ya=Ct(qi,Vi),Di=_r.has(ya),fa=ta.has(ya),Zi=Tr.get(ya);let za;return Pt==="nest"?za=fa:za=(Ra=Zi==null?void 0:Zi.indeterminate)!==null&&Ra!==void 0?Ra:fa,{node:o.createElement(bi.default,Object.assign({},Zi,{indeterminate:za,checked:Di,skipGroup:!0,onClick:ha=>{var Za;ha.stopPropagation(),(Za=Zi==null?void 0:Zi.onClick)===null||Za===void 0||Za.call(Zi,ha)},onChange:ha=>{var Za;const{nativeEvent:ms}=ha,{shiftKey:fo}=ms,ca=si.findIndex(Ga=>Ga===ya),Do=ni.some(Ga=>si.includes(Ga));if(fo&&O&&Do){const Ga=wn(ca,si,_r),cs=Array.from(_r);rn==null||rn(!Di,cs.map(ds=>Je(ds)),Ga.map(ds=>Je(ds))),Qr(cs,"multiple")}else{const Ga=ni;if(O){const cs=Di?(0,Xr._5)(Ga,ya):(0,Xr.L0)(Ga,ya);Br(ya,!Di,cs,ms)}else{const cs=(0,pi.S)([].concat((0,ze.Z)(Ga),[ya]),!0,Er,gi),{checkedKeys:ds,halfCheckedKeys:Ja}=cs;let Ya=ds;if(Di){const gs=new Set(ds);gs.delete(ya),Ya=(0,pi.S)(Array.from(gs),{checked:!1,halfCheckedKeys:Ja},Er,gi).checkedKeys}Br(ya,!Di,Ya,ms)}}xn(Di?null:ca),(Za=Zi==null?void 0:Zi.onChange)===null||Za===void 0||Za.call(Zi,ha)}})),checked:Di}};const Pr=(Ui,qi,Vi)=>{const{node:Ra,checked:ya}=Cr(Ui,qi,Vi);return h?h(ya,qi,Vi,Ra):Ra};if(!mr.includes(ii))if(mr.findIndex(Ui=>{var qi;return((qi=Ui[rt])===null||qi===void 0?void 0:qi.columnType)==="EXPAND_COLUMN"})===0){const[Ui,...qi]=mr;mr=[Ui,ii].concat((0,ze.Z)(qi))}else mr=[ii].concat((0,ze.Z)(mr));const xi=mr.indexOf(ii);mr=mr.filter((Ui,qi)=>Ui!==ii||qi===xi);const $i=mr[xi-1],Ei=mr[xi+1];let Ma=f;Ma===void 0&&((Ei==null?void 0:Ei.fixed)!==void 0?Ma=Ei.fixed:($i==null?void 0:$i.fixed)!==void 0&&(Ma=$i.fixed)),Ma&&$i&&((Zr=$i[rt])===null||Zr===void 0?void 0:Zr.columnType)==="EXPAND_COLUMN"&&$i.fixed===void 0&&($i.fixed=Ma);const Ji=B()(`${H}-selection-col`,{[`${H}-selection-col-with-dropdown`]:u&&U==="checkbox"}),ns=()=>ce!=null&&ce.columnTitle?typeof ce.columnTitle=="function"?ce.columnTitle(Ta):ce.columnTitle:Wi,ra={fixed:Ma,width:tn,className:`${H}-selection-column`,title:ns(),render:Pr,onCell:ce.onCell,[rt]:{className:Ji}};return mr.map(Ui=>Ui===ii?ra:Ui)},[Ct,zn,ce,ni,vi,ta,tn,Yi,Pt,Tr,rn,Br,gi]),vi]},mi=d(2738);function Ln(he,ce){return he._antProxy=he._antProxy||{},Object.keys(ce).forEach(Ke=>{if(!(Ke in he._antProxy)){const at=he[Ke];he._antProxy[Ke]=at,he[Ke]=ce[Ke]}}),he}function Bi(he,ce){return(0,o.useImperativeHandle)(he,()=>{const Ke=ce(),{nativeElement:at}=Ke;return typeof Proxy!="undefined"?new Proxy(at,{get(At,Rt){return Ke[Rt]?Ke[Rt]:Reflect.get(At,Rt)}}):Ln(at,Ke)})}var Fa=d(83010),va=d(48755),aa=d(38406),la=d(83397),Or=d(31756),Gi=d(13783),da=d(85981),Sa=d(31709),ci=d(29787),Ki=d(57700);function na(he){return ce=>{const{prefixCls:Ke,onExpand:at,record:At,expanded:Rt,expandable:Nt}=ce,Lt=`${Ke}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:Ht=>{at(At,Ht),Ht.stopPropagation()},className:B()(Lt,{[`${Lt}-spaced`]:!Nt,[`${Lt}-expanded`]:Nt&&Rt,[`${Lt}-collapsed`]:Nt&&!Rt}),"aria-label":Rt?he.collapse:he.expand,"aria-expanded":Rt})}}var xr=na;function zr(he){return(Ke,at)=>{const At=Ke.querySelector(`.${he}-container`);let Rt=at;if(At){const Nt=getComputedStyle(At),Lt=parseInt(Nt.borderLeftWidth,10),Ht=parseInt(Nt.borderRightWidth,10);Rt=at-Lt-Ht}return Rt}}const Sr=(he,ce)=>"key"in he&&he.key!==void 0&&he.key!==null?he.key:he.dataIndex?Array.isArray(he.dataIndex)?he.dataIndex.join("."):he.dataIndex:ce;function Fr(he,ce){return ce?`${ce}-${he}`:`${he}`}const ui=(he,ce)=>typeof he=="function"?he(ce):he,Si=(he,ce)=>{const Ke=ui(he,ce);return Object.prototype.toString.call(Ke)==="[object Object]"?"":Ke};var sa={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=sa,Ir=d(7657),ei=function(ce,Ke){return o.createElement(Ir.Z,(0,N.Z)({},ce,{ref:Ke,icon:ur}))},$r=o.forwardRef(ei),ti=$r,xa=d(9981),ua=d(40192);function Ea(he){const ce=o.useRef(he),Ke=(0,ua.Z)();return[()=>ce.current,at=>{ce.current=at,Ke()}]}var pa=d(7939),bs=d(584),ao=d(93041),$s=d(78857),_a=d(18287),Ba=d(47472),ka=d(49397),ss=he=>{const{value:ce,filterSearch:Ke,tablePrefixCls:at,locale:At,onChange:Rt}=he;return Ke?o.createElement("div",{className:`${at}-filter-dropdown-search`},o.createElement(ka.Z,{prefix:o.createElement(Ba.Z,null),placeholder:At.filterSearchPlaceholder,onChange:Rt,value:ce,htmlSize:1,className:`${at}-filter-dropdown-search-input`})):null},ja=d(10228);const As=he=>{const{keyCode:ce}=he;ce===ja.Z.ENTER&&he.stopPropagation()};var Hs=o.forwardRef((he,ce)=>o.createElement("div",{className:he.className,onClick:Ke=>Ke.stopPropagation(),onKeyDown:As,ref:ce},he.children));function Ka(he){let ce=[];return(he||[]).forEach(Ke=>{let{value:at,children:At}=Ke;ce.push(at),At&&(ce=[].concat((0,ze.Z)(ce),(0,ze.Z)(Ka(At))))}),ce}function Cs(he){return he.some(ce=>{let{children:Ke}=ce;return Ke})}function La(he,ce){return typeof ce=="string"||typeof ce=="number"?ce==null?void 0:ce.toString().toLowerCase().includes(he.trim().toLowerCase()):!1}function Ps(he){let{filters:ce,prefixCls:Ke,filteredKeys:at,filterMultiple:At,searchValue:Rt,filterSearch:Nt}=he;return ce.map((Lt,Ht)=>{const Bt=String(Lt.value);if(Lt.children)return{key:Bt||Ht,label:Lt.text,popupClassName:`${Ke}-dropdown-submenu`,children:Ps({filters:Lt.children,prefixCls:Ke,filteredKeys:at,filterMultiple:At,searchValue:Rt,filterSearch:Nt})};const bn=At?bi.default:di.ZP,rn={key:Lt.value!==void 0?Bt:Ht,label:o.createElement(o.Fragment,null,o.createElement(bn,{checked:at.includes(Bt)}),o.createElement("span",null,Lt.text))};return Rt.trim()?typeof Nt=="function"?Nt(Rt,Lt)?rn:null:La(Rt,Lt.text)?rn:null:rn})}function ks(he){return he||[]}var Vs=he=>{var ce,Ke,at,At;const{tablePrefixCls:Rt,prefixCls:Nt,column:Lt,dropdownPrefixCls:Ht,columnKey:Bt,filterOnClose:bn,filterMultiple:rn,filterMode:tn="menu",filterSearch:U=!1,filterState:u,triggerFilter:f,locale:h,children:y,getPopupContainer:O,rootClassName:H}=he,{filterResetToDefaultFilteredValue:Ae,defaultFilteredValue:Ne,filterDropdownProps:Je={},filterDropdownOpen:Ct,filterDropdownVisible:Pt,onFilterDropdownVisibleChange:zt,onFilterDropdownOpenChange:nn}=Lt,[cn,dn]=o.useState(!1),wn=!!(u&&(!((ce=u.filteredKeys)===null||ce===void 0)&&ce.length||u.forceFiltered)),xn=Cr=>{var Pr;dn(Cr),(Pr=Je.onOpenChange)===null||Pr===void 0||Pr.call(Je,Cr),nn==null||nn(Cr),zt==null||zt(Cr)},Cn=(At=(at=(Ke=Je.open)!==null&&Ke!==void 0?Ke:Ct)!==null&&at!==void 0?at:Pt)!==null&&At!==void 0?At:cn,kn=u==null?void 0:u.filteredKeys,[Xn,tr]=Ea(ks(kn)),zn=Cr=>{let{selectedKeys:Pr}=Cr;tr(Pr)},Er=(Cr,Pr)=>{let{node:xi,checked:$i}=Pr;zn(rn?{selectedKeys:Cr}:{selectedKeys:$i&&xi.key?[xi.key]:[]})};o.useEffect(()=>{cn&&zn({selectedKeys:ks(kn)})},[kn]);const[Tr,gi]=o.useState([]),ni=Cr=>{gi(Cr)},[kt,vi]=o.useState(""),ta=Cr=>{const{value:Pr}=Cr.target;vi(Pr)};o.useEffect(()=>{cn||vi("")},[cn]);const Qr=Cr=>{const Pr=Cr!=null&&Cr.length?Cr:null;if(Pr===null&&(!u||!u.filteredKeys)||(0,re.Z)(Pr,u==null?void 0:u.filteredKeys,!0))return null;f({column:Lt,key:Bt,filteredKeys:Pr})},Br=()=>{xn(!1),Qr(Xn())},Yi=function(){let{confirm:Cr,closeDropdown:Pr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Cr&&Qr([]),Pr&&xn(!1),vi(""),tr(Ae?(Ne||[]).map(xi=>String(xi)):[])},Qi=function(){let{closeDropdown:Cr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Cr&&xn(!1),Qr(Xn())},Ar=(Cr,Pr)=>{Pr.source==="trigger"&&(Cr&&kn!==void 0&&tr(ks(kn)),xn(Cr),!Cr&&!Lt.filterDropdown&&bn&&Br())},Zr=B()({[`${Ht}-menu-without-submenu`]:!Cs(Lt.filters||[])}),mr=Cr=>{if(Cr.target.checked){const Pr=Ka(Lt==null?void 0:Lt.filters).map(xi=>String(xi));tr(Pr)}else tr([])},_r=Cr=>{let{filters:Pr}=Cr;return(Pr||[]).map((xi,$i)=>{const Ei=String(xi.value),Ma={title:xi.text,key:xi.value!==void 0?Ei:String($i)};return xi.children&&(Ma.children=_r({filters:xi.children})),Ma})},si=Cr=>{var Pr;return Object.assign(Object.assign({},Cr),{text:Cr.title,value:Cr.key,children:((Pr=Cr.children)===null||Pr===void 0?void 0:Pr.map(xi=>si(xi)))||[]})};let hi;const{direction:zi,renderEmpty:Ni}=o.useContext(va.E_);if(typeof Lt.filterDropdown=="function")hi=Lt.filterDropdown({prefixCls:`${Ht}-custom`,setSelectedKeys:Cr=>zn({selectedKeys:Cr}),selectedKeys:Xn(),confirm:Qi,clearFilters:Yi,filters:Lt.filters,visible:Cn,close:()=>{xn(!1)}});else if(Lt.filterDropdown)hi=Lt.filterDropdown;else{const Cr=Xn()||[],Pr=()=>{var $i,Ei;const Ma=($i=Ni==null?void 0:Ni("Table.filter"))!==null&&$i!==void 0?$i:o.createElement(bs.Z,{image:bs.Z.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Lt.filters||[]).length===0)return Ma;if(tn==="tree")return o.createElement(o.Fragment,null,o.createElement(ss,{filterSearch:U,value:kt,onChange:ta,tablePrefixCls:Rt,locale:h}),o.createElement("div",{className:`${Rt}-filter-dropdown-tree`},rn?o.createElement(bi.default,{checked:Cr.length===Ka(Lt.filters).length,indeterminate:Cr.length>0&&Cr.length<Ka(Lt.filters).length,className:`${Rt}-filter-dropdown-checkall`,onChange:mr},(Ei=h==null?void 0:h.filterCheckall)!==null&&Ei!==void 0?Ei:h==null?void 0:h.filterCheckAll):null,o.createElement(_a.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:rn,checkStrictly:!rn,className:`${Ht}-menu`,onCheck:Er,checkedKeys:Cr,selectedKeys:Cr,showIcon:!1,treeData:_r({filters:Lt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:kt.trim()?ra=>typeof U=="function"?U(kt,si(ra)):La(kt,ra.title):void 0})));const Ji=Ps({filters:Lt.filters||[],filterSearch:U,prefixCls:Nt,filteredKeys:Xn(),filterMultiple:rn,searchValue:kt}),ns=Ji.every(ra=>ra===null);return o.createElement(o.Fragment,null,o.createElement(ss,{filterSearch:U,value:kt,onChange:ta,tablePrefixCls:Rt,locale:h}),ns?Ma:o.createElement(ao.default,{selectable:!0,multiple:rn,prefixCls:`${Ht}-menu`,className:Zr,onSelect:zn,onDeselect:zn,selectedKeys:Cr,getPopupContainer:O,openKeys:Tr,onOpenChange:ni,items:Ji}))},xi=()=>Ae?(0,re.Z)((Ne||[]).map($i=>String($i)),Cr,!0):Cr.length===0;hi=o.createElement(o.Fragment,null,Pr(),o.createElement("div",{className:`${Nt}-dropdown-btns`},o.createElement(pa.ZP,{type:"link",size:"small",disabled:xi(),onClick:()=>Yi()},h.filterReset),o.createElement(pa.ZP,{type:"primary",size:"small",onClick:Br},h.filterConfirm)))}Lt.filterDropdown&&(hi=o.createElement($s.J,{selectable:void 0},hi)),hi=o.createElement(Hs,{className:`${Nt}-dropdown`},hi);const Wi=()=>{let Cr;return typeof Lt.filterIcon=="function"?Cr=Lt.filterIcon(wn):Lt.filterIcon?Cr=Lt.filterIcon:Cr=o.createElement(ti,null),o.createElement("span",{role:"button",tabIndex:-1,className:B()(`${Nt}-trigger`,{active:wn}),onClick:Pr=>{Pr.stopPropagation()}},Cr)},Ta=(0,xa.Z)({trigger:["click"],placement:zi==="rtl"?"bottomLeft":"bottomRight",children:Wi(),getPopupContainer:O},Object.assign(Object.assign({},Je),{rootClassName:B()(H,Je.rootClassName),open:Cn,onOpenChange:Ar,dropdownRender:()=>typeof(Je==null?void 0:Je.dropdownRender)=="function"?Je.dropdownRender(hi):hi}));return o.createElement("div",{className:`${Nt}-column`},o.createElement("span",{className:`${Rt}-column-title`},y),o.createElement(ri.Z,Object.assign({},Ta)))};const os=(he,ce,Ke)=>{let at=[];return(he||[]).forEach((At,Rt)=>{var Nt;const Lt=Fr(Rt,Ke);if(At.filters||"filterDropdown"in At||"onFilter"in At)if("filteredValue"in At){let Ht=At.filteredValue;"filterDropdown"in At||(Ht=(Nt=Ht==null?void 0:Ht.map(String))!==null&&Nt!==void 0?Nt:Ht),at.push({column:At,key:Sr(At,Lt),filteredKeys:Ht,forceFiltered:At.filtered})}else at.push({column:At,key:Sr(At,Lt),filteredKeys:ce&&At.defaultFilteredValue?At.defaultFilteredValue:void 0,forceFiltered:At.filtered});"children"in At&&(at=[].concat((0,ze.Z)(at),(0,ze.Z)(os(At.children,ce,Lt))))}),at};function Ha(he,ce,Ke,at,At,Rt,Nt,Lt,Ht){return Ke.map((Bt,bn)=>{const rn=Fr(bn,Lt),{filterOnClose:tn=!0,filterMultiple:U=!0,filterMode:u,filterSearch:f}=Bt;let h=Bt;if(h.filters||h.filterDropdown){const y=Sr(h,rn),O=at.find(H=>{let{key:Ae}=H;return y===Ae});h=Object.assign(Object.assign({},h),{title:H=>o.createElement(Vs,{tablePrefixCls:he,prefixCls:`${he}-filter`,dropdownPrefixCls:ce,column:h,columnKey:y,filterState:O,filterOnClose:tn,filterMultiple:U,filterMode:u,filterSearch:f,triggerFilter:Rt,locale:At,getPopupContainer:Nt,rootClassName:Ht},ui(Bt.title,H))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ha(he,ce,h.children,at,At,Rt,Nt,rn,Ht)})),h})}const fi=he=>{const ce={};return he.forEach(Ke=>{let{key:at,filteredKeys:At,column:Rt}=Ke;const Nt=at,{filters:Lt,filterDropdown:Ht}=Rt;if(Ht)ce[Nt]=At||null;else if(Array.isArray(At)){const Bt=Ka(Lt);ce[Nt]=Bt.filter(bn=>At.includes(String(bn)))}else ce[Nt]=null}),ce},Wr=(he,ce,Ke)=>ce.reduce((At,Rt)=>{const{column:{onFilter:Nt,filters:Lt},filteredKeys:Ht}=Rt;return Nt&&Ht&&Ht.length?At.map(Bt=>Object.assign({},Bt)).filter(Bt=>Ht.some(bn=>{const rn=Ka(Lt),tn=rn.findIndex(u=>String(u)===String(bn)),U=tn!==-1?rn[tn]:bn;return Bt[Ke]&&(Bt[Ke]=Wr(Bt[Ke],ce,Ke)),Nt(U,Bt)})):At},he),ma=he=>he.flatMap(ce=>"children"in ce?[ce].concat((0,ze.Z)(ma(ce.children||[]))):[ce]);var Ai=he=>{const{prefixCls:ce,dropdownPrefixCls:Ke,mergedColumns:at,onFilterChange:At,getPopupContainer:Rt,locale:Nt,rootClassName:Lt}=he,Ht=(0,Jr.ln)("Table"),Bt=o.useMemo(()=>ma(at||[]),[at]),[bn,rn]=o.useState(()=>os(Bt,!0)),tn=o.useMemo(()=>{const h=os(Bt,!1);if(h.length===0)return h;let y=!0,O=!0;if(h.forEach(H=>{let{filteredKeys:Ae}=H;Ae!==void 0?y=!1:O=!1}),y){const H=(Bt||[]).map((Ae,Ne)=>Sr(Ae,Fr(Ne)));return bn.filter(Ae=>{let{key:Ne}=Ae;return H.includes(Ne)}).map(Ae=>{const Ne=Bt[H.findIndex(Je=>Je===Ae.key)];return Object.assign(Object.assign({},Ae),{column:Object.assign(Object.assign({},Ae.column),Ne),forceFiltered:Ne.filtered})})}return h},[Bt,bn]),U=o.useMemo(()=>fi(tn),[tn]),u=h=>{const y=tn.filter(O=>{let{key:H}=O;return H!==h.key});y.push(h),rn(y),At(fi(y),y)};return[h=>Ha(ce,Ke,h,tn,Nt,u,Rt,void 0,Lt),tn,U]},Oa=(he,ce,Ke)=>{const at=o.useRef({});function At(Rt){var Nt;if(!at.current||at.current.data!==he||at.current.childrenColumnName!==ce||at.current.getRowKey!==Ke){let Ht=function(Bt){Bt.forEach((bn,rn)=>{const tn=Ke(bn,rn);Lt.set(tn,bn),bn&&typeof bn=="object"&&ce in bn&&Ht(bn[ce]||[])})};const Lt=new Map;Ht(he),at.current={data:he,childrenColumnName:ce,kvMap:Lt,getRowKey:Ke}}return(Nt=at.current.kvMap)===null||Nt===void 0?void 0:Nt.get(Rt)}return[At]},Pa=function(he,ce){var Ke={};for(var at in he)Object.prototype.hasOwnProperty.call(he,at)&&ce.indexOf(at)<0&&(Ke[at]=he[at]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,at=Object.getOwnPropertySymbols(he);At<at.length;At++)ce.indexOf(at[At])<0&&Object.prototype.propertyIsEnumerable.call(he,at[At])&&(Ke[at[At]]=he[at[At]]);return Ke};const Xa=10;function Ca(he,ce){const Ke={current:he.current,pageSize:he.pageSize};return Object.keys(ce&&typeof ce=="object"?ce:{}).forEach(At=>{const Rt=he[At];typeof Rt!="function"&&(Ke[At]=Rt)}),Ke}function ts(he,ce,Ke){const at=Ke&&typeof Ke=="object"?Ke:{},{total:At=0}=at,Rt=Pa(at,["total"]),[Nt,Lt]=(0,o.useState)(()=>({current:"defaultCurrent"in Rt?Rt.defaultCurrent:1,pageSize:"defaultPageSize"in Rt?Rt.defaultPageSize:Xa})),Ht=(0,xa.Z)(Nt,Rt,{total:At>0?At:he}),Bt=Math.ceil((At||he)/Ht.pageSize);Ht.current>Bt&&(Ht.current=Bt||1);const bn=(tn,U)=>{Lt({current:tn!=null?tn:1,pageSize:U||Ht.pageSize})},rn=(tn,U)=>{var u;Ke&&((u=Ke.onChange)===null||u===void 0||u.call(Ke,tn,U)),bn(tn,U),ce(tn,U||(Ht==null?void 0:Ht.pageSize))};return Ke===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ht),{onChange:rn}),bn]}var Wa=ts,ls=d(89489),us=d(59477),Zs=d(25399);const Ci="ascend",Ri="descend",Hi=he=>typeof he.sorter=="object"&&typeof he.sorter.multiple=="number"?he.sorter.multiple:!1,wa=he=>typeof he=="function"?he:he&&typeof he=="object"&&he.compare?he.compare:!1,Na=(he,ce)=>ce?he[he.indexOf(ce)+1]:he[0],Ss=(he,ce,Ke)=>{let at=[];const At=(Rt,Nt)=>{at.push({column:Rt,key:Sr(Rt,Nt),multiplePriority:Hi(Rt),sortOrder:Rt.sortOrder})};return(he||[]).forEach((Rt,Nt)=>{const Lt=Fr(Nt,Ke);Rt.children?("sortOrder"in Rt&&At(Rt,Lt),at=[].concat((0,ze.Z)(at),(0,ze.Z)(Ss(Rt.children,ce,Lt)))):Rt.sorter&&("sortOrder"in Rt?At(Rt,Lt):ce&&Rt.defaultSortOrder&&at.push({column:Rt,key:Sr(Rt,Lt),multiplePriority:Hi(Rt),sortOrder:Rt.defaultSortOrder}))}),at},ws=(he,ce,Ke,at,At,Rt,Nt,Lt)=>(ce||[]).map((Bt,bn)=>{const rn=Fr(bn,Lt);let tn=Bt;if(tn.sorter){const U=tn.sortDirections||At,u=tn.showSorterTooltip===void 0?Nt:tn.showSorterTooltip,f=Sr(tn,rn),h=Ke.find(zt=>{let{key:nn}=zt;return nn===f}),y=h?h.sortOrder:null,O=Na(U,y);let H;if(Bt.sortIcon)H=Bt.sortIcon({sortOrder:y});else{const zt=U.includes(Ci)&&o.createElement(us.Z,{className:B()(`${he}-column-sorter-up`,{active:y===Ci})}),nn=U.includes(Ri)&&o.createElement(ls.Z,{className:B()(`${he}-column-sorter-down`,{active:y===Ri})});H=o.createElement("span",{className:B()(`${he}-column-sorter`,{[`${he}-column-sorter-full`]:!!(zt&&nn)})},o.createElement("span",{className:`${he}-column-sorter-inner`,"aria-hidden":"true"},zt,nn))}const{cancelSort:Ae,triggerAsc:Ne,triggerDesc:Je}=Rt||{};let Ct=Ae;O===Ri?Ct=Je:O===Ci&&(Ct=Ne);const Pt=typeof u=="object"?Object.assign({title:Ct},u):{title:Ct};tn=Object.assign(Object.assign({},tn),{className:B()(tn.className,{[`${he}-column-sort`]:y}),title:zt=>{const nn=`${he}-column-sorters`,cn=o.createElement("span",{className:`${he}-column-title`},ui(Bt.title,zt)),dn=o.createElement("div",{className:nn},cn,H);return u?typeof u!="boolean"&&(u==null?void 0:u.target)==="sorter-icon"?o.createElement("div",{className:`${nn} ${he}-column-sorters-tooltip-target-sorter`},cn,o.createElement(Zs.Z,Object.assign({},Pt),H)):o.createElement(Zs.Z,Object.assign({},Pt),dn):dn},onHeaderCell:zt=>{var nn;const cn=((nn=Bt.onHeaderCell)===null||nn===void 0?void 0:nn.call(Bt,zt))||{},dn=cn.onClick,wn=cn.onKeyDown;cn.onClick=kn=>{at({column:Bt,key:f,sortOrder:O,multiplePriority:Hi(Bt)}),dn==null||dn(kn)},cn.onKeyDown=kn=>{kn.keyCode===ja.Z.ENTER&&(at({column:Bt,key:f,sortOrder:O,multiplePriority:Hi(Bt)}),wn==null||wn(kn))};const xn=Si(Bt.title,{}),Cn=xn==null?void 0:xn.toString();return y&&(cn["aria-sort"]=y==="ascend"?"ascending":"descending"),cn["aria-label"]=Cn||"",cn.className=B()(cn.className,`${he}-column-has-sorters`),cn.tabIndex=0,Bt.ellipsis&&(cn.title=(xn!=null?xn:"").toString()),cn}})}return"children"in tn&&(tn=Object.assign(Object.assign({},tn),{children:ws(he,tn.children,Ke,at,At,Rt,Nt,rn)})),tn}),hs=he=>{const{column:ce,sortOrder:Ke}=he;return{column:ce,order:Ke,field:ce.dataIndex,columnKey:ce.key}},Gs=he=>{const ce=he.filter(Ke=>{let{sortOrder:at}=Ke;return at}).map(hs);if(ce.length===0&&he.length){const Ke=he.length-1;return Object.assign(Object.assign({},hs(he[Ke])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ce.length<=1?ce[0]||{}:ce},Ts=(he,ce,Ke)=>{const at=ce.slice().sort((Nt,Lt)=>Lt.multiplePriority-Nt.multiplePriority),At=he.slice(),Rt=at.filter(Nt=>{let{column:{sorter:Lt},sortOrder:Ht}=Nt;return wa(Lt)&&Ht});return Rt.length?At.sort((Nt,Lt)=>{for(let Ht=0;Ht<Rt.length;Ht+=1){const Bt=Rt[Ht],{column:{sorter:bn},sortOrder:rn}=Bt,tn=wa(bn);if(tn&&rn){const U=tn(Nt,Lt,rn);if(U!==0)return rn===Ci?U:-U}}return 0}).map(Nt=>{const Lt=Nt[Ke];return Lt?Object.assign(Object.assign({},Nt),{[Ke]:Ts(Lt,ce,Ke)}):Nt}):At};var Ys=he=>{const{prefixCls:ce,mergedColumns:Ke,sortDirections:at,tableLocale:At,showSorterTooltip:Rt,onSorterChange:Nt}=he,[Lt,Ht]=o.useState(Ss(Ke,!0)),Bt=(f,h)=>{const y=[];return f.forEach((O,H)=>{const Ae=Fr(H,h);if(y.push(Sr(O,Ae)),Array.isArray(O.children)){const Ne=Bt(O.children,Ae);y.push.apply(y,(0,ze.Z)(Ne))}}),y},bn=o.useMemo(()=>{let f=!0;const h=Ss(Ke,!1);if(!h.length){const Ae=Bt(Ke);return Lt.filter(Ne=>{let{key:Je}=Ne;return Ae.includes(Je)})}const y=[];function O(Ae){f?y.push(Ae):y.push(Object.assign(Object.assign({},Ae),{sortOrder:null}))}let H=null;return h.forEach(Ae=>{H===null?(O(Ae),Ae.sortOrder&&(Ae.multiplePriority===!1?f=!1:H=!0)):(H&&Ae.multiplePriority!==!1||(f=!1),O(Ae))}),y},[Ke,Lt]),rn=o.useMemo(()=>{var f,h;const y=bn.map(O=>{let{column:H,sortOrder:Ae}=O;return{column:H,order:Ae}});return{sortColumns:y,sortColumn:(f=y[0])===null||f===void 0?void 0:f.column,sortOrder:(h=y[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,ze.Z)(bn.filter(y=>{let{key:O}=y;return O!==f.key})),[f]),Ht(h),Nt(Gs(h),h)};return[f=>ws(ce,f,bn,tn,at,At,Rt),bn,rn,()=>Gs(bn)]};const Ns=(he,ce)=>he.map(at=>{const At=Object.assign({},at);return At.title=ui(at.title,ce),"children"in At&&(At.children=Ns(At.children,ce)),At});var Ua=he=>[o.useCallback(Ke=>Ns(Ke,he),[he])],Uo=Vn((he,ce)=>{const{_renderTimes:Ke}=he,{_renderTimes:at}=ce;return Ke!==at}),oo=ln((he,ce)=>{const{_renderTimes:Ke}=he,{_renderTimes:at}=ce;return Ke!==at}),jr=d(36237),Us=d(17835),Qs=d(63356),Ds=d(16931),qs=d(51636),rl=he=>{const{componentCls:ce,lineWidth:Ke,lineType:at,tableBorderColor:At,tableHeaderBg:Rt,tablePaddingVertical:Nt,tablePaddingHorizontal:Lt,calc:Ht}=he,Bt=`${(0,jr.unit)(Ke)} ${at} ${At}`,bn=(rn,tn,U)=>({[`&${ce}-${rn}`]:{[`> ${ce}-container`]:{[`> ${ce}-content, > ${ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ce}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(Ht(tn).mul(-1).equal())}
|
|
|
${(0,jr.unit)(Ht(Ht(U).add(Ke)).mul(-1).equal())}`}}}}}});return{[`${ce}-wrapper`]:{[`${ce}${ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ce}-title`]:{border:Bt,borderBottom:0},[`> ${ce}-container`]:{borderInlineStart:Bt,borderTop:Bt,[`
|
|
|
> ${ce}-content,
|
|
|
> ${ce}-header,
|
|
|
> ${ce}-body,
|
|
|
> ${ce}-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:Bt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Bt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ce}-cell-fix-right-first::after`]:{borderInlineEnd:Bt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ce}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(Ht(Nt).mul(-1).equal())} ${(0,jr.unit)(Ht(Ht(Lt).add(Ke)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ke,bottom:0,borderInlineEnd:Bt,content:'""'}}}}}},[`&${ce}-scroll-horizontal`]:{[`> ${ce}-container > ${ce}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ce}-expanded-row,
|
|
|
> tr${ce}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},bn("middle",he.tablePaddingVerticalMiddle,he.tablePaddingHorizontalMiddle)),bn("small",he.tablePaddingVerticalSmall,he.tablePaddingHorizontalSmall)),{[`> ${ce}-footer`]:{border:Bt,borderTop:0}}),[`${ce}-cell`]:{[`${ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,jr.unit)(Ke)} 0 ${(0,jr.unit)(Ke)} ${Rt}`}},[`${ce}-bordered ${ce}-cell-scrollbar`]:{borderInlineEnd:Bt}}}},lo=he=>{const{componentCls:ce}=he;return{[`${ce}-wrapper`]:{[`${ce}-cell-ellipsis`]:Object.assign(Object.assign({},Qs.vS),{wordBreak:"keep-all",[`
|
|
|
&${ce}-cell-fix-left-last,
|
|
|
&${ce}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Mo=he=>{const{componentCls:ce}=he;return{[`${ce}-wrapper`]:{[`${ce}-tbody > tr${ce}-placeholder`]:{textAlign:"center",color:he.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:he.colorBgContainer}}}}},Bo=he=>{const{componentCls:ce,antCls:Ke,motionDurationSlow:at,lineWidth:At,paddingXS:Rt,lineType:Nt,tableBorderColor:Lt,tableExpandIconBg:Ht,tableExpandColumnWidth:Bt,borderRadius:bn,tablePaddingVertical:rn,tablePaddingHorizontal:tn,tableExpandedRowBg:U,paddingXXS:u,expandIconMarginTop:f,expandIconSize:h,expandIconHalfInner:y,expandIconScale:O,calc:H}=he,Ae=`${(0,jr.unit)(At)} ${Nt} ${Lt}`,Ne=H(u).sub(At).equal();return{[`${ce}-wrapper`]:{[`${ce}-expand-icon-col`]:{width:Bt},[`${ce}-row-expand-icon-cell`]:{textAlign:"center",[`${ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ce}-row-indent`]:{height:1,float:"left"},[`${ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,Qs.Nd)(he)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,jr.unit)(h),background:Ht,border:Ae,borderRadius:bn,transform:`scale(${O})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${at} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:Ne,insetInlineStart:Ne,height:At},"&::after":{top:Ne,bottom:Ne,insetInlineStart:y,width:At,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"}}),[`${ce}-row-indent + ${ce}-row-expand-icon`]:{marginTop:f,marginInlineEnd:Rt},[`tr${ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:U}},[`${Ke}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ce}-expanded-row-fixed`]:{position:"relative",margin:`${(0,jr.unit)(H(rn).mul(-1).equal())} ${(0,jr.unit)(H(tn).mul(-1).equal())}`,padding:`${(0,jr.unit)(rn)} ${(0,jr.unit)(tn)}`}}}},xo=he=>{const{componentCls:ce,antCls:Ke,iconCls:at,tableFilterDropdownWidth:At,tableFilterDropdownSearchWidth:Rt,paddingXXS:Nt,paddingXS:Lt,colorText:Ht,lineWidth:Bt,lineType:bn,tableBorderColor:rn,headerIconColor:tn,fontSizeSM:U,tablePaddingHorizontal:u,borderRadius:f,motionDurationSlow:h,colorTextDescription:y,colorPrimary:O,tableHeaderFilterActiveBg:H,colorTextDisabled:Ae,tableFilterDropdownBg:Ne,tableFilterDropdownHeight:Je,controlItemBgHover:Ct,controlItemBgActive:Pt,boxShadowSecondary:zt,filterDropdownMenuBg:nn,calc:cn}=he,dn=`${Ke}-dropdown`,wn=`${ce}-filter-dropdown`,xn=`${Ke}-tree`,Cn=`${(0,jr.unit)(Bt)} ${bn} ${rn}`;return[{[`${ce}-wrapper`]:{[`${ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:cn(Nt).mul(-1).equal(),marginInline:`${(0,jr.unit)(Nt)} ${(0,jr.unit)(cn(u).div(2).mul(-1).equal())}`,padding:`0 ${(0,jr.unit)(Nt)}`,color:tn,fontSize:U,borderRadius:f,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:y,background:H},"&.active":{color:O}}}},{[`${Ke}-dropdown`]:{[wn]:Object.assign(Object.assign({},(0,Qs.Wf)(he)),{minWidth:At,backgroundColor:Ne,borderRadius:f,boxShadow:zt,overflow:"hidden",[`${dn}-menu`]:{maxHeight:Je,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:nn,"&:empty::after":{display:"block",padding:`${(0,jr.unit)(Lt)} 0`,color:Ae,fontSize:U,textAlign:"center",content:'"Not Found"'}},[`${wn}-tree`]:{paddingBlock:`${(0,jr.unit)(Lt)} 0`,paddingInline:Lt,[xn]:{padding:0},[`${xn}-treenode ${xn}-node-content-wrapper:hover`]:{backgroundColor:Ct},[`${xn}-treenode-checkbox-checked ${xn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Pt}}},[`${wn}-search`]:{padding:Lt,borderBottom:Cn,"&-input":{input:{minWidth:Rt},[at]:{color:Ae}}},[`${wn}-checkall`]:{width:"100%",marginBottom:Nt,marginInlineStart:Nt},[`${wn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,jr.unit)(cn(Lt).sub(Bt).equal())} ${(0,jr.unit)(Lt)}`,overflow:"hidden",borderTop:Cn}})}},{[`${Ke}-dropdown ${wn}, ${wn}-submenu`]:{[`${Ke}-checkbox-wrapper + span`]:{paddingInlineStart:Lt,color:Ht},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Js=he=>{const{componentCls:ce,lineWidth:Ke,colorSplit:at,motionDurationSlow:At,zIndexTableFixed:Rt,tableBg:Nt,zIndexTableSticky:Lt,calc:Ht}=he,Bt=at;return{[`${ce}-wrapper`]:{[`
|
|
|
${ce}-cell-fix-left,
|
|
|
${ce}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Rt,background:Nt},[`
|
|
|
${ce}-cell-fix-left-first::after,
|
|
|
${ce}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Ht(Ke).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${At}`,content:'""',pointerEvents:"none"},[`${ce}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ce}-cell-fix-right-first::after,
|
|
|
${ce}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:Ht(Ke).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${At}`,content:'""',pointerEvents:"none"},[`${ce}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Ht(Lt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${At}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ce}-ping-left`]:{[`&:not(${ce}-has-fix-left) ${ce}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Bt}`},[`
|
|
|
${ce}-cell-fix-left-first::after,
|
|
|
${ce}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Bt}`},[`${ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ce}-ping-right`]:{[`&:not(${ce}-has-fix-right) ${ce}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Bt}`},[`
|
|
|
${ce}-cell-fix-right-first::after,
|
|
|
${ce}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Bt}`}},[`${ce}-fixed-column-gapped`]:{[`
|
|
|
${ce}-cell-fix-left-first::after,
|
|
|
${ce}-cell-fix-left-last::after,
|
|
|
${ce}-cell-fix-right-first::after,
|
|
|
${ce}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Ko=he=>{const{componentCls:ce,antCls:Ke,margin:at}=he;return{[`${ce}-wrapper`]:{[`${ce}-pagination${Ke}-pagination`]:{margin:`${(0,jr.unit)(at)} 0`},[`${ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:he.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},$o=he=>{const{componentCls:ce,tableRadius:Ke}=he;return{[`${ce}-wrapper`]:{[ce]:{[`${ce}-title, ${ce}-header`]:{borderRadius:`${(0,jr.unit)(Ke)} ${(0,jr.unit)(Ke)} 0 0`},[`${ce}-title + ${ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ce}-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:Ke,borderStartEndRadius:Ke,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ke},"> *:last-child":{borderStartEndRadius:Ke}}},"&-footer":{borderRadius:`0 0 ${(0,jr.unit)(Ke)} ${(0,jr.unit)(Ke)}`}}}}},jo=he=>{const{componentCls:ce}=he;return{[`${ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ce}-pagination-left`]:{justifyContent:"flex-end"},[`${ce}-pagination-right`]:{justifyContent:"flex-start"},[`${ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ce}-row-indent`]:{float:"right"}}}}},co=he=>{const{componentCls:ce,antCls:Ke,iconCls:at,fontSizeIcon:At,padding:Rt,paddingXS:Nt,headerIconColor:Lt,headerIconHoverColor:Ht,tableSelectionColumnWidth:Bt,tableSelectedRowBg:bn,tableSelectedRowHoverBg:rn,tableRowHoverBg:tn,tablePaddingHorizontal:U,calc:u}=he;return{[`${ce}-wrapper`]:{[`${ce}-selection-col`]:{width:Bt,[`&${ce}-selection-col-with-dropdown`]:{width:u(Bt).add(At).add(u(Rt).div(4)).equal()}},[`${ce}-bordered ${ce}-selection-col`]:{width:u(Bt).add(u(Nt).mul(2)).equal(),[`&${ce}-selection-col-with-dropdown`]:{width:u(Bt).add(At).add(u(Rt).div(4)).add(u(Nt).mul(2)).equal()}},[`
|
|
|
table tr th${ce}-selection-column,
|
|
|
table tr td${ce}-selection-column,
|
|
|
${ce}-selection-column
|
|
|
`]:{paddingInlineEnd:he.paddingXS,paddingInlineStart:he.paddingXS,textAlign:"center",[`${Ke}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ce}-selection-column${ce}-cell-fix-left`]:{zIndex:u(he.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${he.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,jr.unit)(u(U).div(4).equal()),[at]:{color:Lt,fontSize:At,verticalAlign:"baseline","&:hover":{color:Ht}}},[`${ce}-tbody`]:{[`${ce}-row`]:{[`&${ce}-row-selected`]:{[`> ${ce}-cell`]:{background:bn,"&-row-hover":{background:rn}}},[`> ${ce}-cell-row-hover`]:{background:tn}}}}}},Ao=he=>{const{componentCls:ce,tableExpandColumnWidth:Ke,calc:at}=he,At=(Rt,Nt,Lt,Ht)=>({[`${ce}${ce}-${Rt}`]:{fontSize:Ht,[`
|
|
|
${ce}-title,
|
|
|
${ce}-footer,
|
|
|
${ce}-cell,
|
|
|
${ce}-thead > tr > th,
|
|
|
${ce}-tbody > tr > th,
|
|
|
${ce}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,jr.unit)(Nt)} ${(0,jr.unit)(Lt)}`},[`${ce}-filter-trigger`]:{marginInlineEnd:(0,jr.unit)(at(Lt).div(2).mul(-1).equal())},[`${ce}-expanded-row-fixed`]:{margin:`${(0,jr.unit)(at(Nt).mul(-1).equal())} ${(0,jr.unit)(at(Lt).mul(-1).equal())}`},[`${ce}-tbody`]:{[`${ce}-wrapper:only-child ${ce}`]:{marginBlock:(0,jr.unit)(at(Nt).mul(-1).equal()),marginInline:`${(0,jr.unit)(at(Ke).sub(Lt).equal())} ${(0,jr.unit)(at(Lt).mul(-1).equal())}`}},[`${ce}-selection-extra`]:{paddingInlineStart:(0,jr.unit)(at(Lt).div(4).equal())}}});return{[`${ce}-wrapper`]:Object.assign(Object.assign({},At("middle",he.tablePaddingVerticalMiddle,he.tablePaddingHorizontalMiddle,he.tableFontSizeMiddle)),At("small",he.tablePaddingVerticalSmall,he.tablePaddingHorizontalSmall,he.tableFontSizeSmall))}},al=he=>{const{componentCls:ce,marginXXS:Ke,fontSizeIcon:at,headerIconColor:At,headerIconHoverColor:Rt}=he;return{[`${ce}-wrapper`]:{[`${ce}-thead th${ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${he.motionDurationSlow}, left 0s`,"&:hover":{background:he.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:he.colorPrimary},[`
|
|
|
&${ce}-cell-fix-left:hover,
|
|
|
&${ce}-cell-fix-right:hover
|
|
|
`]:{background:he.tableFixedHeaderSortActiveBg}},[`${ce}-thead th${ce}-column-sort`]:{background:he.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ce}-column-sort`]:{background:he.tableBodySortBg},[`${ce}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ce}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ce}-column-sorter`]:{marginInlineStart:Ke,color:At,fontSize:0,transition:`color ${he.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:at,"&.active":{color:he.colorPrimary}},[`${ce}-column-sorter-up + ${ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ce}-column-sorters:hover ${ce}-column-sorter`]:{color:Rt}}}},Co=he=>{const{componentCls:ce,opacityLoading:Ke,tableScrollThumbBg:at,tableScrollThumbBgHover:At,tableScrollThumbSize:Rt,tableScrollBg:Nt,zIndexTableSticky:Lt,stickyScrollBarBorderRadius:Ht,lineWidth:Bt,lineType:bn,tableBorderColor:rn}=he,tn=`${(0,jr.unit)(Bt)} ${bn} ${rn}`;return{[`${ce}-wrapper`]:{[`${ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:Lt,background:he.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,jr.unit)(Rt)} !important`,zIndex:Lt,display:"flex",alignItems:"center",background:Nt,borderTop:tn,opacity:Ke,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Rt,backgroundColor:at,borderRadius:Ht,transition:`all ${he.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:At}}}}}}},go=he=>{const{componentCls:ce,lineWidth:Ke,tableBorderColor:at,calc:At}=he,Rt=`${(0,jr.unit)(Ke)} ${he.lineType} ${at}`;return{[`${ce}-wrapper`]:{[`${ce}-summary`]:{position:"relative",zIndex:he.zIndexTableFixed,background:he.tableBg,"> tr":{"> th, > td":{borderBottom:Rt}}},[`div${ce}-summary`]:{boxShadow:`0 ${(0,jr.unit)(At(Ke).mul(-1).equal())} 0 ${at}`}}}},ll=he=>{const{componentCls:ce,motionDurationMid:Ke,lineWidth:at,lineType:At,tableBorderColor:Rt,calc:Nt}=he,Lt=`${(0,jr.unit)(at)} ${At} ${Rt}`,Ht=`${ce}-expanded-row-cell`;return{[`${ce}-wrapper`]:{[`${ce}-tbody-virtual`]:{[`${ce}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${ce}-row,
|
|
|
& > div:not(${ce}-row) > ${ce}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ce}-cell`]:{borderBottom:Lt,transition:`background ${Ke}`},[`${ce}-expanded-row`]:{[`${Ht}${Ht}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,jr.unit)(at)})`,borderInlineEnd:"none"}}},[`${ce}-bordered`]:{[`${ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Lt,position:"absolute"},[`${ce}-cell`]:{borderInlineEnd:Lt,[`&${ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Nt(at).mul(-1).equal(),borderInlineStart:Lt}}},[`&${ce}-virtual`]:{[`${ce}-placeholder ${ce}-cell`]:{borderInlineEnd:Lt,borderBottom:Lt}}}}}};const Wo=he=>{const{componentCls:ce,fontWeightStrong:Ke,tablePaddingVertical:at,tablePaddingHorizontal:At,tableExpandColumnWidth:Rt,lineWidth:Nt,lineType:Lt,tableBorderColor:Ht,tableFontSize:Bt,tableBg:bn,tableRadius:rn,tableHeaderTextColor:tn,motionDurationMid:U,tableHeaderBg:u,tableHeaderCellSplitColor:f,tableFooterTextColor:h,tableFooterBg:y,calc:O}=he,H=`${(0,jr.unit)(Nt)} ${Lt} ${Ht}`;return{[`${ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Qs.dF)()),{[ce]:Object.assign(Object.assign({},(0,Qs.Wf)(he)),{fontSize:Bt,background:bn,borderRadius:`${(0,jr.unit)(rn)} ${(0,jr.unit)(rn)} 0 0`,scrollbarColor:`${he.tableScrollThumbBg} ${he.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,jr.unit)(rn)} ${(0,jr.unit)(rn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ce}-cell,
|
|
|
${ce}-thead > tr > th,
|
|
|
${ce}-tbody > tr > th,
|
|
|
${ce}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,jr.unit)(at)} ${(0,jr.unit)(At)}`,overflowWrap:"break-word"},[`${ce}-title`]:{padding:`${(0,jr.unit)(at)} ${(0,jr.unit)(At)}`},[`${ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:tn,fontWeight:Ke,textAlign:"start",background:u,borderBottom:H,transition:`background ${U} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ce}-selection-column):not(${ce}-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 ${U}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${U}, border-color ${U}`,borderBottom:H,[`
|
|
|
> ${ce}-wrapper:only-child,
|
|
|
> ${ce}-expanded-row-fixed > ${ce}-wrapper:only-child
|
|
|
`]:{[ce]:{marginBlock:(0,jr.unit)(O(at).mul(-1).equal()),marginInline:`${(0,jr.unit)(O(Rt).sub(At).equal())}
|
|
|
${(0,jr.unit)(O(At).mul(-1).equal())}`,[`${ce}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:tn,fontWeight:Ke,textAlign:"start",background:u,borderBottom:H,transition:`background ${U} ease`}}},[`${ce}-footer`]:{padding:`${(0,jr.unit)(at)} ${(0,jr.unit)(At)}`,color:h,background:y}})}},ul=he=>{const{colorFillAlter:ce,colorBgContainer:Ke,colorTextHeading:at,colorFillSecondary:At,colorFillContent:Rt,controlItemBgActive:Nt,controlItemBgActiveHover:Lt,padding:Ht,paddingSM:Bt,paddingXS:bn,colorBorderSecondary:rn,borderRadiusLG:tn,controlHeight:U,colorTextPlaceholder:u,fontSize:f,fontSizeSM:h,lineHeight:y,lineWidth:O,colorIcon:H,colorIconHover:Ae,opacityLoading:Ne,controlInteractiveSize:Je}=he,Ct=new Us.FastColor(At).onBackground(Ke).toHexString(),Pt=new Us.FastColor(Rt).onBackground(Ke).toHexString(),zt=new Us.FastColor(ce).onBackground(Ke).toHexString(),nn=new Us.FastColor(H),cn=new Us.FastColor(Ae),dn=Je/2-O,wn=dn*2+O*3;return{headerBg:zt,headerColor:at,headerSortActiveBg:Ct,headerSortHoverBg:Pt,bodySortBg:zt,rowHoverBg:zt,rowSelectedBg:Nt,rowSelectedHoverBg:Lt,rowExpandedBg:ce,cellPaddingBlock:Ht,cellPaddingInline:Ht,cellPaddingBlockMD:Bt,cellPaddingInlineMD:bn,cellPaddingBlockSM:bn,cellPaddingInlineSM:bn,borderColor:rn,headerBorderRadius:tn,footerBg:zt,footerColor:at,cellFontSize:f,cellFontSizeMD:f,cellFontSizeSM:f,headerSplitColor:rn,fixedHeaderSortActiveBg:Ct,headerFilterHoverBg:Rt,filterDropdownMenuBg:Ke,filterDropdownBg:Ke,expandIconBg:Ke,selectionColumnWidth:U,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(f*y-O*3)/2-Math.ceil((h*1.4-O*3)/2),headerIconColor:nn.clone().setA(nn.a*Ne).toRgbString(),headerIconHoverColor:cn.clone().setA(cn.a*Ne).toRgbString(),expandIconHalfInner:dn,expandIconSize:wn,expandIconScale:Je/wn}},pt=2;var Vo=(0,Ds.I$)("Table",he=>{const{colorTextHeading:ce,colorSplit:Ke,colorBgContainer:at,controlInteractiveSize:At,headerBg:Rt,headerColor:Nt,headerSortActiveBg:Lt,headerSortHoverBg:Ht,bodySortBg:Bt,rowHoverBg:bn,rowSelectedBg:rn,rowSelectedHoverBg:tn,rowExpandedBg:U,cellPaddingBlock:u,cellPaddingInline:f,cellPaddingBlockMD:h,cellPaddingInlineMD:y,cellPaddingBlockSM:O,cellPaddingInlineSM:H,borderColor:Ae,footerBg:Ne,footerColor:Je,headerBorderRadius:Ct,cellFontSize:Pt,cellFontSizeMD:zt,cellFontSizeSM:nn,headerSplitColor:cn,fixedHeaderSortActiveBg:dn,headerFilterHoverBg:wn,filterDropdownBg:xn,expandIconBg:Cn,selectionColumnWidth:kn,stickyScrollBarBg:Xn,calc:tr}=he,zn=(0,qs.mergeToken)(he,{tableFontSize:Pt,tableBg:at,tableRadius:Ct,tablePaddingVertical:u,tablePaddingHorizontal:f,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:O,tablePaddingHorizontalSmall:H,tableBorderColor:Ae,tableHeaderTextColor:Nt,tableHeaderBg:Rt,tableFooterTextColor:Je,tableFooterBg:Ne,tableHeaderCellSplitColor:cn,tableHeaderSortBg:Lt,tableHeaderSortHoverBg:Ht,tableBodySortBg:Bt,tableFixedHeaderSortActiveBg:dn,tableHeaderFilterActiveBg:wn,tableFilterDropdownBg:xn,tableRowHoverBg:bn,tableSelectedRowBg:rn,tableSelectedRowHoverBg:tn,zIndexTableFixed:pt,zIndexTableSticky:tr(pt).add(1).equal({unit:!1}),tableFontSizeMiddle:zt,tableFontSizeSmall:nn,tableSelectionColumnWidth:kn,tableExpandIconBg:Cn,tableExpandColumnWidth:tr(At).add(tr(he.padding).mul(2)).equal(),tableExpandedRowBg:U,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Xn,tableScrollThumbBgHover:ce,tableScrollBg:Ke});return[Wo(zn),Ko(zn),go(zn),al(zn),xo(zn),rl(zn),$o(zn),Bo(zn),go(zn),Mo(zn),co(zn),Js(zn),Co(zn),lo(zn),Ao(zn),jo(zn),ll(zn)]},ul,{unitless:{expandIconScale:!0}});const wo=[],To=(he,ce)=>{var Ke,at;const{prefixCls:At,className:Rt,rootClassName:Nt,style:Lt,size:Ht,bordered:Bt,dropdownPrefixCls:bn,dataSource:rn,pagination:tn,rowSelection:U,rowKey:u="key",rowClassName:f,columns:h,children:y,childrenColumnName:O,onChange:H,getPopupContainer:Ae,loading:Ne,expandIcon:Je,expandable:Ct,expandedRowRender:Pt,expandIconColumnIndex:zt,indentSize:nn,scroll:cn,sortDirections:dn,locale:wn,showSorterTooltip:xn={target:"full-header"},virtual:Cn}=he,kn=(0,Jr.ln)("Table"),Xn=o.useMemo(()=>h||Gt(y),[h,y]),tr=o.useMemo(()=>Xn.some(ai=>ai.responsive),[Xn]),zn=(0,Gi.Z)(tr),Er=o.useMemo(()=>{const ai=new Set(Object.keys(zn).filter(Mi=>zn[Mi]));return Xn.filter(Mi=>!Mi.responsive||Mi.responsive.some(Xi=>ai.has(Xi)))},[Xn,zn]),Tr=(0,mi.Z)(he,["className","style","columns"]),{locale:gi=da.Z,direction:ni,table:kt,renderEmpty:vi,getPrefixCls:ta,getPopupContainer:Qr}=o.useContext(va.E_),Br=(0,Or.Z)(Ht),Yi=Object.assign(Object.assign({},gi.Table),wn),Qi=rn||wo,Ar=ta("table",At),Zr=ta("dropdown",bn),[,mr]=(0,Ki.ZP)(),_r=(0,la.Z)(Ar),[si,hi,zi]=Vo(Ar,_r),Ni=Object.assign(Object.assign({childrenColumnName:O,expandIconColumnIndex:zt},Ct),{expandIcon:(Ke=Ct==null?void 0:Ct.expandIcon)!==null&&Ke!==void 0?Ke:(at=kt==null?void 0:kt.expandable)===null||at===void 0?void 0:at.expandIcon}),{childrenColumnName:Wi="children"}=Ni,Ta=o.useMemo(()=>Qi.some(ai=>ai==null?void 0:ai[Wi])?"nest":Pt||Ct!=null&&Ct.expandedRowRender?"row":null,[Qi]),Cr={body:o.useRef(null)},Pr=zr(Ar),xi=o.useRef(null),$i=o.useRef(null);Bi(ce,()=>Object.assign(Object.assign({},$i.current),{nativeElement:xi.current}));const Ei=o.useMemo(()=>typeof u=="function"?u:ai=>ai==null?void 0:ai[u],[u]),[Ma]=Oa(Qi,Wi,Ei),Ji={},ns=function(ai,Mi){let Xi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ba,qa,ys,xs;const $a=Object.assign(Object.assign({},Ji),ai);Xi&&((ba=Ji.resetPagination)===null||ba===void 0||ba.call(Ji),!((qa=$a.pagination)===null||qa===void 0)&&qa.current&&($a.pagination.current=1),tn&&((ys=tn.onChange)===null||ys===void 0||ys.call(tn,1,(xs=$a.pagination)===null||xs===void 0?void 0:xs.pageSize))),cn&&cn.scrollToFirstRowOnChange!==!1&&Cr.body.current&&(0,Fa.Z)(0,{getContainer:()=>Cr.body.current}),H==null||H($a.pagination,$a.filters,$a.sorter,{currentDataSource:Wr(Ts(Qi,$a.sorterStates,Wi),$a.filterStates,Wi),action:Mi})},ra=(ai,Mi)=>{ns({sorter:ai,sorterStates:Mi},"sort",!1)},[Ui,qi,Vi,Ra]=Ys({prefixCls:Ar,mergedColumns:Er,onSorterChange:ra,sortDirections:dn||["ascend","descend"],tableLocale:Yi,showSorterTooltip:xn}),ya=o.useMemo(()=>Ts(Qi,qi,Wi),[Qi,qi]);Ji.sorter=Ra(),Ji.sorterStates=qi;const Di=(ai,Mi)=>{ns({filters:ai,filterStates:Mi},"filter",!0)},[fa,Zi,za]=Ai({prefixCls:Ar,locale:Yi,dropdownPrefixCls:Zr,mergedColumns:Er,onFilterChange:Di,getPopupContainer:Ae||Qr,rootClassName:B()(Nt,_r)}),ha=Wr(ya,Zi,Wi);Ji.filters=za,Ji.filterStates=Zi;const Za=o.useMemo(()=>{const ai={};return Object.keys(za).forEach(Mi=>{za[Mi]!==null&&(ai[Mi]=za[Mi])}),Object.assign(Object.assign({},Vi),{filters:ai})},[Vi,za]),[ms]=Ua(Za),fo=(ai,Mi)=>{ns({pagination:Object.assign(Object.assign({},Ji.pagination),{current:ai,pageSize:Mi})},"paginate")},[ca,Do]=Wa(ha.length,fo,tn);Ji.pagination=tn===!1?{}:Ca(ca,tn),Ji.resetPagination=Do;const Ga=o.useMemo(()=>{if(tn===!1||!ca.pageSize)return ha;const{current:ai=1,total:Mi,pageSize:Xi=Xa}=ca;return ha.length<Mi?ha.length>Xi?ha.slice((ai-1)*Xi,ai*Xi):ha:ha.slice((ai-1)*Xi,ai*Xi)},[!!tn,ha,ca==null?void 0:ca.current,ca==null?void 0:ca.pageSize,ca==null?void 0:ca.total]),[cs,ds]=Gn({prefixCls:Ar,data:ha,pageData:Ga,getRowKey:Ei,getRecordByKey:Ma,expandType:Ta,childrenColumnName:Wi,locale:Yi,getPopupContainer:Ae||Qr},U),Ja=(ai,Mi,Xi)=>{let ba;return typeof f=="function"?ba=B()(f(ai,Mi,Xi)):ba=B()(f),B()({[`${Ar}-row-selected`]:ds.has(Ei(ai,Mi))},ba)};Ni.__PARENT_RENDER_ICON__=Ni.expandIcon,Ni.expandIcon=Ni.expandIcon||Je||xr(Yi),Ta==="nest"&&Ni.expandIconColumnIndex===void 0?Ni.expandIconColumnIndex=U?1:0:Ni.expandIconColumnIndex>0&&U&&(Ni.expandIconColumnIndex-=1),typeof Ni.indentSize!="number"&&(Ni.indentSize=typeof nn=="number"?nn:15);const Ya=o.useCallback(ai=>ms(cs(fa(Ui(ai)))),[Ui,fa,cs]);let gs,Is;if(tn!==!1&&(ca!=null&&ca.total)){let ai;ca.size?ai=ca.size:ai=Br==="small"||Br==="middle"?"small":void 0;const Mi=qa=>o.createElement(Sa.Z,Object.assign({},ca,{className:B()(`${Ar}-pagination ${Ar}-pagination-${qa}`,ca.className),size:ai})),Xi=ni==="rtl"?"left":"right",{position:ba}=ca;if(ba!==null&&Array.isArray(ba)){const qa=ba.find($a=>$a.includes("top")),ys=ba.find($a=>$a.includes("bottom")),xs=ba.every($a=>`${$a}`=="none");!qa&&!ys&&!xs&&(Is=Mi(Xi)),qa&&(gs=Mi(qa.toLowerCase().replace("top",""))),ys&&(Is=Mi(ys.toLowerCase().replace("bottom","")))}else Is=Mi(Xi)}let vs;typeof Ne=="boolean"?vs={spinning:Ne}:typeof Ne=="object"&&(vs=Object.assign({spinning:!0},Ne));const Ms=B()(zi,_r,`${Ar}-wrapper`,kt==null?void 0:kt.className,{[`${Ar}-wrapper-rtl`]:ni==="rtl"},Rt,Nt,hi),Qa=Object.assign(Object.assign({},kt==null?void 0:kt.style),Lt),Tl=typeof(wn==null?void 0:wn.emptyText)!="undefined"?wn.emptyText:(vi==null?void 0:vi("Table"))||o.createElement(aa.Z,{componentName:"Table"}),cl=Cn?oo:Uo,fs={},dl=o.useMemo(()=>{const{fontSize:ai,lineHeight:Mi,lineWidth:Xi,padding:ba,paddingXS:qa,paddingSM:ys}=mr,xs=Math.floor(ai*Mi);switch(Br){case"middle":return ys*2+xs+Xi;case"small":return qa*2+xs+Xi;default:return ba*2+xs+Xi}},[mr,Br]);return Cn&&(fs.listItemHeight=dl),si(o.createElement("div",{ref:xi,className:Ms,style:Qa},o.createElement(ci.Z,Object.assign({spinning:!1},vs),gs,o.createElement(cl,Object.assign({},fs,Tr,{ref:$i,columns:Er,direction:ni,expandable:Ni,prefixCls:Ar,className:B()({[`${Ar}-middle`]:Br==="middle",[`${Ar}-small`]:Br==="small",[`${Ar}-bordered`]:Bt,[`${Ar}-empty`]:Qi.length===0},zi,_r,hi),data:Ga,rowKey:Ei,rowClassName:Ja,emptyText:Tl,internalHooks:j,internalRefs:Cr,transformColumns:Ya,getContainerWidth:Pr})),Is)))};var Zo=o.forwardRef(To);const eo=(he,ce)=>{const Ke=o.useRef(0);return Ke.current+=1,o.createElement(Zo,Object.assign({},he,{ref:ce,_renderTimes:Ke.current}))},ps=o.forwardRef(eo);ps.SELECTION_COLUMN=ii,ps.EXPAND_COLUMN=ne,ps.SELECTION_ALL=Fi,ps.SELECTION_INVERT=Lr,ps.SELECTION_NONE=Oi,ps.Column=Rr,ps.ColumnGroup=pr,ps.Summary=pe;var Ro=ps,Go=Ro},96599:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return B}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(2738),K=d(29509),g=d(78776),re=d(22703),oe=d(12919),l=d(48755),C=d(36237),N=d(17835),S=d(63356),_=d(51636),T=d(16931);const k=A=>{const{paddingXXS:X,lineWidth:J,tagPaddingHorizontal:Q,componentCls:E,calc:R}=A,se=R(Q).sub(J).equal(),we=R(X).sub(J).equal();return{[E]:Object.assign(Object.assign({},(0,S.Wf)(A)),{display:"inline-block",height:"auto",marginInlineEnd:A.marginXS,paddingInline:se,fontSize:A.tagFontSize,lineHeight:A.tagLineHeight,whiteSpace:"nowrap",background:A.defaultBg,border:`${(0,C.unit)(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderRadius:A.borderRadiusSM,opacity:1,transition:`all ${A.motionDurationMid}`,textAlign:"start",position:"relative",[`&${E}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:A.defaultColor},[`${E}-close-icon`]:{marginInlineStart:we,fontSize:A.tagIconSize,color:A.colorTextDescription,cursor:"pointer",transition:`all ${A.motionDurationMid}`,"&:hover":{color:A.colorTextHeading}},[`&${E}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${A.iconCls}-close, ${A.iconCls}-close:hover`]:{color:A.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${E}-checkable-checked):hover`]:{color:A.colorPrimary,backgroundColor:A.colorFillSecondary},"&:active, &-checked":{color:A.colorTextLightSolid},"&-checked":{backgroundColor:A.colorPrimary,"&:hover":{backgroundColor:A.colorPrimaryHover}},"&:active":{backgroundColor:A.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${A.iconCls} + span, > span + ${A.iconCls}`]:{marginInlineStart:se}}),[`${E}-borderless`]:{borderColor:"transparent",background:A.tagBorderlessBg}}},W=A=>{const{lineWidth:X,fontSizeIcon:J,calc:Q}=A,E=A.fontSizeSM;return(0,_.mergeToken)(A,{tagFontSize:E,tagLineHeight:(0,C.unit)(Q(A.lineHeightSM).mul(E).equal()),tagIconSize:Q(J).sub(Q(X).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:A.defaultBg})},V=A=>({defaultBg:new N.FastColor(A.colorFillQuaternary).onBackground(A.colorBgContainer).toHexString(),defaultColor:A.colorText});var $=(0,T.I$)("Tag",A=>{const X=W(A);return k(X)},V),I=function(A,X){var J={};for(var Q in A)Object.prototype.hasOwnProperty.call(A,Q)&&X.indexOf(Q)<0&&(J[Q]=A[Q]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,Q=Object.getOwnPropertySymbols(A);E<Q.length;E++)X.indexOf(Q[E])<0&&Object.prototype.propertyIsEnumerable.call(A,Q[E])&&(J[Q[E]]=A[Q[E]]);return J},F=o.forwardRef((A,X)=>{const{prefixCls:J,style:Q,className:E,checked:R,onChange:se,onClick:we}=A,Ve=I(A,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:lt,tag:xe}=o.useContext(l.E_),je=Ot=>{se==null||se(!R),we==null||we(Ot)},Qe=lt("tag",J),[it,De,wt]=$(Qe),et=j()(Qe,`${Qe}-checkable`,{[`${Qe}-checkable-checked`]:R},xe==null?void 0:xe.className,E,De,wt);return it(o.createElement("span",Object.assign({},Ve,{ref:X,style:Object.assign(Object.assign({},Q),xe==null?void 0:xe.style),className:et,onClick:je})))}),L=d(93427);const ae=A=>(0,L.Z)(A,(X,J)=>{let{textColor:Q,lightBorderColor:E,lightColor:R,darkColor:se}=J;return{[`${A.componentCls}${A.componentCls}-${X}`]:{color:Q,background:R,borderColor:E,"&-inverse":{color:A.colorTextLightSolid,background:se,borderColor:se},[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}});var me=(0,T.bk)(["Tag","preset"],A=>{const X=W(A);return ae(X)},V);function de(A){return typeof A!="string"?A:A.charAt(0).toUpperCase()+A.slice(1)}const Ie=(A,X,J)=>{const Q=de(J);return{[`${A.componentCls}${A.componentCls}-${X}`]:{color:A[`color${J}`],background:A[`color${Q}Bg`],borderColor:A[`color${Q}Border`],[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Fe=(0,T.bk)(["Tag","status"],A=>{const X=W(A);return[Ie(X,"success","Success"),Ie(X,"processing","Info"),Ie(X,"error","Error"),Ie(X,"warning","Warning")]},V),_e=function(A,X){var J={};for(var Q in A)Object.prototype.hasOwnProperty.call(A,Q)&&X.indexOf(Q)<0&&(J[Q]=A[Q]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,Q=Object.getOwnPropertySymbols(A);E<Q.length;E++)X.indexOf(Q[E])<0&&Object.prototype.propertyIsEnumerable.call(A,Q[E])&&(J[Q[E]]=A[Q[E]]);return J};const ee=o.forwardRef((A,X)=>{const{prefixCls:J,className:Q,rootClassName:E,style:R,children:se,icon:we,color:Ve,onClose:lt,bordered:xe=!0,visible:je}=A,Qe=_e(A,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:it,direction:De,tag:wt}=o.useContext(l.E_),[et,Ot]=o.useState(!0),qe=(0,fe.Z)(Qe,["closeIcon","closable"]);o.useEffect(()=>{je!==void 0&&Ot(je)},[je]);const Xe=(0,K.o2)(Ve),Ue=(0,K.yT)(Ve),ke=Xe||Ue,ie=Object.assign(Object.assign({backgroundColor:Ve&&!ke?Ve:void 0},wt==null?void 0:wt.style),R),$e=it("tag",J),[Pe,z,D]=$($e),ue=j()($e,wt==null?void 0:wt.className,{[`${$e}-${Ve}`]:ke,[`${$e}-has-color`]:Ve&&!ke,[`${$e}-hidden`]:!et,[`${$e}-rtl`]:De==="rtl",[`${$e}-borderless`]:!xe},Q,E,z,D),ge=le=>{le.stopPropagation(),lt==null||lt(le),!le.defaultPrevented&&Ot(!1)},[,pe]=(0,g.Z)((0,g.w)(A),(0,g.w)(wt),{closable:!1,closeIconRender:le=>{const tt=o.createElement("span",{className:`${$e}-close-icon`,onClick:ge},le);return(0,re.wm)(le,tt,nt=>({onClick:ct=>{var ut;(ut=nt==null?void 0:nt.onClick)===null||ut===void 0||ut.call(nt,ct),ge(ct)},className:j()(nt==null?void 0:nt.className,`${$e}-close-icon`)}))}}),ye=typeof Qe.onClick=="function"||se&&se.type==="a",Re=we||null,Ze=Re?o.createElement(o.Fragment,null,Re,se&&o.createElement("span",null,se)):se,te=o.createElement("span",Object.assign({},qe,{ref:X,className:ue,style:ie}),Ze,pe,Xe&&o.createElement(me,{key:"preset",prefixCls:$e}),Ue&&o.createElement(Fe,{key:"status",prefixCls:$e}));return Pe(ye?o.createElement(oe.Z,{component:"Tag"},te):te)});ee.CheckableTag=F;var B=ee},93427:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ne}});var o=d(34998);function ne(j,fe){return o.i.reduce((K,g)=>{const re=j[`${g}1`],oe=j[`${g}3`],l=j[`${g}6`],C=j[`${g}7`];return Object.assign(Object.assign({},K),fe(g,{lightColor:re,lightBorderColor:oe,darkColor:l,textColor:C}))},{})}},25399:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return X}});var o=d(59301),ne=d(92310),j=d.n(ne),fe=d(29125),K=d(18929),g=d(62487),re=d(75030),oe=d(86641),l=d(52838),C=d(22703),N=d(32383),S=d(55743),_=d(57700),T=d(48755),k=d(36237),W=d(63356),V=d(34925),$=d(37645),I=d(36305),G=d(93427),F=d(51636),L=d(16931);const ae=J=>{const{calc:Q,componentCls:E,tooltipMaxWidth:R,tooltipColor:se,tooltipBg:we,tooltipBorderRadius:Ve,zIndexPopup:lt,controlHeight:xe,boxShadowSecondary:je,paddingSM:Qe,paddingXS:it,arrowOffsetHorizontal:De,sizePopupArrow:wt}=J,et=Q(Ve).add(wt).add(De).equal(),Ot=Q(Ve).mul(2).add(wt).equal();return[{[E]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(J)),{position:"absolute",zIndex:lt,display:"block",width:"max-content",maxWidth:R,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":we,[`${E}-inner`]:{minWidth:Ot,minHeight:xe,padding:`${(0,k.unit)(J.calc(Qe).div(2).equal())} ${(0,k.unit)(it)}`,color:se,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:we,borderRadius:Ve,boxShadow:je,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:et},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${E}-inner`]:{borderRadius:J.min(Ve,$.qN)}},[`${E}-content`]:{position:"relative"}}),(0,G.Z)(J,(qe,Xe)=>{let{darkColor:Ue}=Xe;return{[`&${E}-${qe}`]:{[`${E}-inner`]:{backgroundColor:Ue},[`${E}-arrow`]:{"--antd-arrow-background-color":Ue}}}})),{"&-rtl":{direction:"rtl"}})},(0,$.ZP)(J,"var(--antd-arrow-background-color)"),{[`${E}-pure`]:{position:"relative",maxWidth:"none",margin:J.sizePopupArrow}}]},me=J=>Object.assign(Object.assign({zIndexPopup:J.zIndexPopupBase+70},(0,$.wZ)({contentRadius:J.borderRadius,limitVerticalRadius:!0})),(0,I.w)((0,F.mergeToken)(J,{borderRadiusOuter:Math.min(J.borderRadiusOuter,4)})));var de=function(J){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,L.I$)("Tooltip",R=>{const{borderRadius:se,colorTextLightSolid:we,colorBgSpotlight:Ve}=R,lt=(0,F.mergeToken)(R,{tooltipMaxWidth:250,tooltipColor:we,tooltipBorderRadius:se,tooltipBg:Ve});return[ae(lt),(0,V._y)(R,"zoom-big-fast")]},me,{resetStyle:!1,injectStyle:Q})(J)},Ie=d(29509);function Fe(J,Q){const E=(0,Ie.o2)(Q),R=j()({[`${J}-${Q}`]:Q&&E}),se={},we={};return Q&&!E&&(se.background=Q,we["--antd-arrow-background-color"]=Q),{className:R,overlayStyle:se,arrowStyle:we}}var Te=J=>{const{prefixCls:Q,className:E,placement:R="top",title:se,color:we,overlayInnerStyle:Ve}=J,{getPrefixCls:lt}=o.useContext(T.E_),xe=lt("tooltip",Q),[je,Qe,it]=de(xe),De=Fe(xe,we),wt=De.arrowStyle,et=Object.assign(Object.assign({},Ve),De.overlayStyle),Ot=j()(Qe,it,xe,`${xe}-pure`,`${xe}-placement-${R}`,E,De.className);return je(o.createElement("div",{className:Ot,style:wt},o.createElement("div",{className:`${xe}-arrow`}),o.createElement(fe.G,Object.assign({},J,{className:Qe,prefixCls:xe,overlayInnerStyle:et}),se)))},ee=function(J,Q){var E={};for(var R in J)Object.prototype.hasOwnProperty.call(J,R)&&Q.indexOf(R)<0&&(E[R]=J[R]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,R=Object.getOwnPropertySymbols(J);se<R.length;se++)Q.indexOf(R[se])<0&&Object.prototype.propertyIsEnumerable.call(J,R[se])&&(E[R[se]]=J[R[se]]);return E};const A=o.forwardRef((J,Q)=>{var E,R;const{prefixCls:se,openClassName:we,getTooltipContainer:Ve,color:lt,overlayInnerStyle:xe,children:je,afterOpenChange:Qe,afterVisibleChange:it,destroyTooltipOnHide:De,arrow:wt=!0,title:et,overlay:Ot,builtinPlacements:qe,arrowPointAtCenter:Xe=!1,autoAdjustOverflow:Ue=!0,motion:ke,getPopupContainer:ie,placement:$e="top",mouseEnterDelay:Pe=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:ue,overlayClassName:ge,styles:pe,classNames:ye}=J,Re=ee(J,["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"]),Ze=!!wt,[,te]=(0,_.ZP)(),{getPopupContainer:le,getPrefixCls:tt,direction:nt,className:ct,style:ut,classNames:Ge,styles:yt}=(0,T.dj)("tooltip"),ht=(0,N.ln)("Tooltip"),Ce=o.useRef(null),Ye=()=>{var Tn;(Tn=Ce.current)===null||Tn===void 0||Tn.forceAlign()};o.useImperativeHandle(Q,()=>{var Tn,Jn;return{forceAlign:Ye,forcePopupAlign:()=>{ht.deprecated(!1,"forcePopupAlign","forceAlign"),Ye()},nativeElement:(Tn=Ce.current)===null||Tn===void 0?void 0:Tn.nativeElement,popupElement:(Jn=Ce.current)===null||Jn===void 0?void 0:Jn.popupElement}});const[b,w]=(0,K.Z)(!1,{value:(E=J.open)!==null&&E!==void 0?E:J.visible,defaultValue:(R=J.defaultOpen)!==null&&R!==void 0?R:J.defaultVisible}),He=!et&&!Ot&&et!==0,q=Tn=>{var Jn,vn;w(He?!1:Tn),He||((Jn=J.onOpenChange)===null||Jn===void 0||Jn.call(J,Tn),(vn=J.onVisibleChange)===null||vn===void 0||vn.call(J,Tn))},be=o.useMemo(()=>{var Tn,Jn;let vn=Xe;return typeof wt=="object"&&(vn=(Jn=(Tn=wt.pointAtCenter)!==null&&Tn!==void 0?Tn:wt.arrowPointAtCenter)!==null&&Jn!==void 0?Jn:Xe),qe||(0,l.Z)({arrowPointAtCenter:vn,autoAdjustOverflow:Ue,arrowWidth:Ze?te.sizePopupArrow:0,borderRadius:te.borderRadius,offset:te.marginXXS,visibleFirst:!0})},[Xe,wt,qe,te]),It=o.useMemo(()=>et===0?et:Ot||et||"",[Ot,et]),Be=o.createElement(g.Z,{space:!0},typeof It=="function"?It():It),rt=tt("tooltip",se),ft=tt(),ve=J["data-popover-inject"];let Se=b;!("open"in J)&&!("visible"in J)&&He&&(Se=!1);const We=o.isValidElement(je)&&!(0,C.M2)(je)?je:o.createElement("span",null,je),ze=We.props,M=!ze.className||typeof ze.className=="string"?j()(ze.className,we||`${rt}-open`):ze.className,[dt,Ee,Tt]=de(rt,!ve),Kt=Fe(rt,lt),Jt=Kt.arrowStyle,un=j()(ge,{[`${rt}-rtl`]:nt==="rtl"},Kt.className,ue,Ee,Tt,ct,Ge.root,ye==null?void 0:ye.root),gn=j()(Ge.body,ye==null?void 0:ye.body),[En,Bn]=(0,re.Cn)("Tooltip",Re.zIndex),Wn=o.createElement(fe.Z,Object.assign({},Re,{zIndex:En,showArrow:Ze,placement:$e,mouseEnterDelay:Pe,mouseLeaveDelay:z,prefixCls:rt,classNames:{root:un,body:gn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jt),yt.root),ut),D),pe==null?void 0:pe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},yt.body),xe),pe==null?void 0:pe.body),Kt.overlayStyle)},getTooltipContainer:ie||Ve||le,ref:Ce,builtinPlacements:be,overlay:Be,visible:Se,onVisibleChange:q,afterVisibleChange:Qe!=null?Qe:it,arrowContent:o.createElement("span",{className:`${rt}-arrow-content`}),motion:{motionName:(0,oe.m)(ft,"zoom-big-fast",J.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!De}),Se?(0,C.Tm)(We,{className:M}):We);return dt(o.createElement(S.Z.Provider,{value:Bn},Wn))});A._InternalPanelDoNotUseOrYouWillBeFired=Te;var X=A},18287:function(mn,gt,d){"use strict";d.d(gt,{default:function(){return lt}});var o=d(87632),ne=d(77654),j=d(59301),fe=d(52671),K=d(8657),g=d(60499),re={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"},oe=re,l=d(7657),C=function(je,Qe){return j.createElement(l.Z,(0,g.Z)({},je,{ref:Qe,icon:oe}))},N=j.forwardRef(C),S=N,_=d(92310),T=d.n(_),k=d(82661),W=d(34061),V=d(48755),$=d(56082),I=d(86641),G=d(57700),F=d(12425);const L=4;function ae(xe){const{dropPosition:je,dropLevelOffset:Qe,prefixCls:it,indent:De,direction:wt="ltr"}=xe,et=wt==="ltr"?"left":"right",Ot=wt==="ltr"?"right":"left",qe={[et]:-Qe*De+L,[Ot]:0};switch(je){case-1:qe.top=-3;break;case 1:qe.bottom=-3;break;default:qe.bottom=-3,qe[et]=De+L;break}return j.createElement("div",{style:qe,className:`${it}-drop-indicator`})}var me=ae,de=d(85278),Fe=j.forwardRef((xe,je)=>{var Qe;const{getPrefixCls:it,direction:De,virtual:wt,tree:et}=j.useContext(V.E_),{prefixCls:Ot,className:qe,showIcon:Xe=!1,showLine:Ue,switcherIcon:ke,switcherLoadingIcon:ie,blockNode:$e=!1,children:Pe,checkable:z=!1,selectable:D=!0,draggable:ue,motion:ge,style:pe}=xe,ye=it("tree",Ot),Re=it(),Ze=ge!=null?ge:Object.assign(Object.assign({},(0,I.Z)(Re)),{motionAppear:!1}),te=Object.assign(Object.assign({},xe),{checkable:z,selectable:D,showIcon:Xe,motion:Ze,blockNode:$e,showLine:!!Ue,dropIndicatorRender:me}),[le,tt,nt]=(0,F.ZP)(ye),[,ct]=(0,G.ZP)(),ut=ct.paddingXS/2+(((Qe=ct.Tree)===null||Qe===void 0?void 0:Qe.titleHeight)||ct.controlHeightSM),Ge=j.useMemo(()=>{if(!ue)return!1;let ht={};switch(typeof ue){case"function":ht.nodeDraggable=ue;break;case"object":ht=Object.assign({},ue);break;default:break}return ht.icon!==!1&&(ht.icon=ht.icon||j.createElement($.Z,null)),ht},[ue]),yt=ht=>j.createElement(de.Z,{prefixCls:ye,switcherIcon:ke,switcherLoadingIcon:ie,treeNodeProps:ht,showLine:Ue});return le(j.createElement(o.ZP,Object.assign({itemHeight:ut,ref:je,virtual:wt},te,{style:Object.assign(Object.assign({},et==null?void 0:et.style),pe),prefixCls:ye,className:T()({[`${ye}-icon-hide`]:!Xe,[`${ye}-block-node`]:$e,[`${ye}-unselectable`]:!D,[`${ye}-rtl`]:De==="rtl"},et==null?void 0:et.className,qe,tt,nt),direction:De,checkable:z&&j.createElement("span",{className:`${ye}-checkbox-inner`}),selectable:D,switcherIcon:yt,draggable:Ge}),Pe))});const _e=0,Te=1,ee=2;function B(xe,je,Qe){const{key:it,children:De}=Qe;function wt(et){const Ot=et[it],qe=et[De];je(Ot,et)!==!1&&B(qe||[],je,Qe)}xe.forEach(wt)}function A(xe){let{treeData:je,expandedKeys:Qe,startKey:it,endKey:De,fieldNames:wt}=xe;const et=[];let Ot=_e;if(it&&it===De)return[it];if(!it||!De)return[];function qe(Xe){return Xe===it||Xe===De}return B(je,Xe=>{if(Ot===ee)return!1;if(qe(Xe)){if(et.push(Xe),Ot===_e)Ot=Te;else if(Ot===Te)return Ot=ee,!1}else Ot===Te&&et.push(Xe);return Qe.includes(Xe)},(0,W.w$)(wt)),et}function X(xe,je,Qe){const it=(0,ne.Z)(je),De=[];return B(xe,(wt,et)=>{const Ot=it.indexOf(wt);return Ot!==-1&&(De.push(et),it.splice(Ot,1)),!!it.length},(0,W.w$)(Qe)),De}var J=function(xe,je){var Qe={};for(var it in xe)Object.prototype.hasOwnProperty.call(xe,it)&&je.indexOf(it)<0&&(Qe[it]=xe[it]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,it=Object.getOwnPropertySymbols(xe);De<it.length;De++)je.indexOf(it[De])<0&&Object.prototype.propertyIsEnumerable.call(xe,it[De])&&(Qe[it[De]]=xe[it[De]]);return Qe};function Q(xe){const{isLeaf:je,expanded:Qe}=xe;return je?j.createElement(fe.Z,null):Qe?j.createElement(K.Z,null):j.createElement(S,null)}function E(xe){let{treeData:je,children:Qe}=xe;return je||(0,W.zn)(Qe)}const R=(xe,je)=>{var{defaultExpandAll:Qe,defaultExpandParent:it,defaultExpandedKeys:De}=xe,wt=J(xe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const et=j.useRef(null),Ot=j.useRef(null),qe=()=>{const{keyEntities:le}=(0,W.I8)(E(wt));let tt;return Qe?tt=Object.keys(le):it?tt=(0,k.r7)(wt.expandedKeys||De||[],le):tt=wt.expandedKeys||De||[],tt},[Xe,Ue]=j.useState(wt.selectedKeys||wt.defaultSelectedKeys||[]),[ke,ie]=j.useState(()=>qe());j.useEffect(()=>{"selectedKeys"in wt&&Ue(wt.selectedKeys)},[wt.selectedKeys]),j.useEffect(()=>{"expandedKeys"in wt&&ie(wt.expandedKeys)},[wt.expandedKeys]);const $e=(le,tt)=>{var nt;return"expandedKeys"in wt||ie(le),(nt=wt.onExpand)===null||nt===void 0?void 0:nt.call(wt,le,tt)},Pe=(le,tt)=>{var nt;const{multiple:ct,fieldNames:ut}=wt,{node:Ge,nativeEvent:yt}=tt,{key:ht=""}=Ge,Ce=E(wt),Ye=Object.assign(Object.assign({},tt),{selected:!0}),b=(yt==null?void 0:yt.ctrlKey)||(yt==null?void 0:yt.metaKey),w=yt==null?void 0:yt.shiftKey;let He;ct&&b?(He=le,et.current=ht,Ot.current=He,Ye.selectedNodes=X(Ce,He,ut)):ct&&w?(He=Array.from(new Set([].concat((0,ne.Z)(Ot.current||[]),(0,ne.Z)(A({treeData:Ce,expandedKeys:ke,startKey:ht,endKey:et.current,fieldNames:ut}))))),Ye.selectedNodes=X(Ce,He,ut)):(He=[ht],et.current=ht,Ot.current=He,Ye.selectedNodes=X(Ce,He,ut)),(nt=wt.onSelect)===null||nt===void 0||nt.call(wt,He,Ye),"selectedKeys"in wt||Ue(He)},{getPrefixCls:z,direction:D}=j.useContext(V.E_),{prefixCls:ue,className:ge,showIcon:pe=!0,expandAction:ye="click"}=wt,Re=J(wt,["prefixCls","className","showIcon","expandAction"]),Ze=z("tree",ue),te=T()(`${Ze}-directory`,{[`${Ze}-directory-rtl`]:D==="rtl"},ge);return j.createElement(Fe,Object.assign({icon:Q,ref:je,blockNode:!0},Re,{showIcon:pe,expandAction:ye,prefixCls:Ze,className:te,expandedKeys:ke,selectedKeys:Xe,onSelect:Pe,onExpand:$e}))};var we=j.forwardRef(R);const Ve=Fe;Ve.DirectoryTree=we,Ve.TreeNode=o.OF;var lt=Ve},12425:function(mn,gt,d){"use strict";d.d(gt,{ZP:function(){return k},Yk:function(){return S},TM:function(){return _}});var o=d(36237),ne=d(36170),j=d(63356),fe=d(34961),K=d(51636),g=d(16931);const re=W=>{let{treeCls:V,treeNodeCls:$,directoryNodeSelectedBg:I,directoryNodeSelectedColor:G,motionDurationMid:F,borderRadius:L,controlItemBgHover:ae}=W;return{[`${V}${V}-directory ${$}`]:{[`${V}-node-content-wrapper`]:{position:"static",[`> *:not(${V}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${F}`,content:'""',borderRadius:L},"&:hover:before":{background:ae}},[`${V}-switcher, ${V}-checkbox, ${V}-draggable-icon`]:{zIndex:1},"&-selected":{[`${V}-switcher, ${V}-draggable-icon`]:{color:G},[`${V}-node-content-wrapper`]:{color:G,background:"transparent","&:before, &:hover:before":{background:I}}}}}},oe=new o.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),l=(W,V)=>({[`.${W}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${V.motionDurationSlow}`}}}),C=(W,V)=>({[`.${W}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:V.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,o.unit)(V.lineWidthBold)} solid ${V.colorPrimary}`,borderRadius:"50%",content:'""'}}}),N=(W,V)=>{const{treeCls:$,treeNodeCls:I,treeNodePadding:G,titleHeight:F,indentSize:L,nodeSelectedBg:ae,nodeHoverBg:me,colorTextQuaternary:de,controlItemBgActiveDisabled:Ie}=V;return{[$]:Object.assign(Object.assign({},(0,j.Wf)(V)),{background:V.colorBgContainer,borderRadius:V.borderRadius,transition:`background-color ${V.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${$}-rtl ${$}-switcher_close ${$}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${$}-active-focused)`]:Object.assign({},(0,j.oN)(V)),[`${$}-list-holder-inner`]:{alignItems:"flex-start"},[`&${$}-block-node`]:{[`${$}-list-holder-inner`]:{alignItems:"stretch",[`${$}-node-content-wrapper`]:{flex:"auto"},[`${I}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${V.colorPrimary}`,opacity:0,animationName:oe,animationDuration:V.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:V.borderRadius}}},[I]:{display:"flex",alignItems:"flex-start",marginBottom:G,lineHeight:(0,o.unit)(F),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:G},[`&-disabled ${$}-node-content-wrapper`]:{color:V.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${$}-checkbox-disabled + ${$}-node-selected,&${I}-disabled${I}-selected ${$}-node-content-wrapper`]:{backgroundColor:Ie},[`${$}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${I}-disabled)`]:{[`${$}-node-content-wrapper`]:{"&:hover":{color:V.nodeHoverColor}}},[`&-active ${$}-node-content-wrapper`]:{background:V.controlItemBgHover},[`&:not(${I}-disabled).filter-node ${$}-title`]:{color:V.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${$}-draggable-icon`]:{flexShrink:0,width:F,textAlign:"center",visibility:"visible",color:de},[`&${I}-disabled ${$}-draggable-icon`]:{visibility:"hidden"}}},[`${$}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:L}},[`${$}-draggable-icon`]:{visibility:"hidden"},[`${$}-switcher, ${$}-checkbox`]:{marginInlineEnd:V.calc(V.calc(F).sub(V.controlInteractiveSize)).div(2).equal()},[`${$}-switcher`]:Object.assign(Object.assign({},l(W,V)),{position:"relative",flex:"none",alignSelf:"stretch",width:F,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${V.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:F,height:F,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:V.borderRadius,transition:`all ${V.motionDurationSlow}`},[`&:not(${$}-switcher-noop):hover:before`]:{backgroundColor:V.colorBgTextHover},[`&_close ${$}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:V.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:V.calc(F).div(2).equal(),bottom:V.calc(G).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${V.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:V.calc(V.calc(F).div(2).equal()).mul(.8).equal(),height:V.calc(F).div(2).equal(),borderBottom:`1px solid ${V.colorBorder}`,content:'""'}}}),[`${$}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:F,paddingBlock:0,paddingInline:V.paddingXS,background:"transparent",borderRadius:V.borderRadius,cursor:"pointer",transition:`all ${V.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},C(W,V)),{"&:hover":{backgroundColor:me},[`&${$}-node-selected`]:{color:V.nodeSelectedColor,backgroundColor:ae},[`${$}-iconEle`]:{display:"inline-block",width:F,height:F,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${$}-unselectable ${$}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${I}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${V.colorPrimary}`},"&-show-line":{[`${$}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:V.calc(F).div(2).equal(),bottom:V.calc(G).mul(-1).equal(),borderInlineEnd:`1px solid ${V.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${$}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${I}-leaf-last ${$}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,o.unit)(V.calc(F).div(2).equal())} !important`}})}},S=function(W,V){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=`.${W}`,G=`${I}-treenode`,F=V.calc(V.paddingXS).div(2).equal(),L=(0,K.mergeToken)(V,{treeCls:I,treeNodeCls:G,treeNodePadding:F});return[N(W,L),$&&re(L)].filter(Boolean)},_=W=>{const{controlHeightSM:V,controlItemBgHover:$,controlItemBgActive:I}=W,G=V;return{titleHeight:G,indentSize:G,nodeHoverBg:$,nodeHoverColor:W.colorText,nodeSelectedBg:I,nodeSelectedColor:W.colorText}},T=W=>{const{colorTextLightSolid:V,colorPrimary:$}=W;return Object.assign(Object.assign({},_(W)),{directoryNodeSelectedColor:V,directoryNodeSelectedBg:$})};var k=(0,g.I$)("Tree",(W,V)=>{let{prefixCls:$}=V;return[{[W.componentCls]:(0,ne.C2)(`${$}-checkbox`,W)},S($,W),(0,fe.Z)(W)]},T)},85278:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return V}});var o=d(59301),ne=d(60499),j={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},fe=j,K=d(7657),g=function(I,G){return o.createElement(K.Z,(0,ne.Z)({},I,{ref:G,icon:fe}))},re=o.forwardRef(g),oe=re,l=d(52671),C=d(58617),N=d(15075),S=d(43531),_=d(92310),T=d.n(_),k=d(22703),V=$=>{const{prefixCls:I,switcherIcon:G,treeNodeProps:F,showLine:L,switcherLoadingIcon:ae}=$,{isLeaf:me,expanded:de,loading:Ie}=F;if(Ie)return o.isValidElement(ae)?ae:o.createElement(C.Z,{className:`${I}-switcher-loading-icon`});let Fe;if(L&&typeof L=="object"&&(Fe=L.showLeafIcon),me){if(!L)return null;if(typeof Fe!="boolean"&&Fe){const ee=typeof Fe=="function"?Fe(F):Fe,B=`${I}-switcher-line-custom-icon`;return o.isValidElement(ee)?(0,k.Tm)(ee,{className:T()(ee.props.className||"",B)}):ee}return Fe?o.createElement(l.Z,{className:`${I}-switcher-line-icon`}):o.createElement("span",{className:`${I}-switcher-leaf-line`})}const _e=`${I}-switcher-icon`,Te=typeof G=="function"?G(F):G;return o.isValidElement(Te)?(0,k.Tm)(Te,{className:T()(Te.props.className||"",_e)}):Te!==void 0?Te:L?de?o.createElement(N.Z,{className:`${I}-switcher-line-icon`}):o.createElement(S.Z,{className:`${I}-switcher-line-icon`}):o.createElement(oe,{className:_e})}},64018:function(){var mn,gt,d,o=!1,ne,j;window.PR_SHOULD_USE_CONTINUATION=!0;var fe,K;(function(){var g=window,re=["break,continue,do,else,for,if,return,while"],oe=[re,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],l=[oe,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[l,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],S=[l,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],_="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",T=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],k="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=[re,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],V=[re,"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"],$=[re,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],I=[C,S,N,T,k,W,V,$],G=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,F="str",L="kwd",ae="com",me="typ",de="lit",Ie="pun",Fe="pln",_e="tag",Te="dec",ee="src",B="atn",A="atv",X="nocode",J="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Q(ke){for(var ie=0,$e=!1,Pe=!1,z=0,D=ke.length;z<D;++z){var ue=ke[z];if(ue.ignoreCase)Pe=!0;else if(/[a-z]/i.test(ue.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){$e=!0,Pe=!1;break}}var ge={b:8,t:9,n:10,v:11,f:12,r:13};function pe(le){var tt=le.charCodeAt(0);if(tt!==92)return tt;var nt=le.charAt(1);return tt=ge[nt],tt||("0"<=nt&&nt<="7"?parseInt(le.substring(1),8):nt==="u"||nt==="x"?parseInt(le.substring(2),16):le.charCodeAt(1))}function ye(le){if(le<32)return(le<16?"\\x0":"\\x")+le.toString(16);var tt=String.fromCharCode(le);return tt==="\\"||tt==="-"||tt==="]"||tt==="^"?"\\"+tt:tt}function Re(le){var tt=le.substring(1,le.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")),nt=[],ct=tt[0]==="^",ut=["["];ct&&ut.push("^");for(var Ge=ct?1:0,yt=tt.length;Ge<yt;++Ge){var ht=tt[Ge];if(/\\[bdsw]/i.test(ht))ut.push(ht);else{var Ce=pe(ht),Ye;Ge+2<yt&&tt[Ge+1]==="-"?(Ye=pe(tt[Ge+2]),Ge+=2):Ye=Ce,nt.push([Ce,Ye]),Ye<65||Ce>122||(Ye<65||Ce>90||nt.push([Math.max(65,Ce)|32,Math.min(Ye,90)|32]),Ye<97||Ce>122||nt.push([Math.max(97,Ce)&-33,Math.min(Ye,122)&-33]))}}nt.sort(function(q,be){return q[0]-be[0]||be[1]-q[1]});for(var b=[],w=[],Ge=0;Ge<nt.length;++Ge){var He=nt[Ge];He[0]<=w[1]+1?w[1]=Math.max(w[1],He[1]):b.push(w=He)}for(var Ge=0;Ge<b.length;++Ge){var He=b[Ge];ut.push(ye(He[0])),He[1]>He[0]&&(He[1]+1>He[0]&&ut.push("-"),ut.push(ye(He[1])))}return ut.push("]"),ut.join("")}function Ze(le){for(var tt=le.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")),nt=tt.length,ct=[],ut=0,Ge=0;ut<nt;++ut){var yt=tt[ut];if(yt==="(")++Ge;else if(yt.charAt(0)==="\\"){var ht=+yt.substring(1);ht&&(ht<=Ge?ct[ht]=-1:tt[ut]=ye(ht))}}for(var ut=1;ut<ct.length;++ut)ct[ut]===-1&&(ct[ut]=++ie);for(var ut=0,Ge=0;ut<nt;++ut){var yt=tt[ut];if(yt==="(")++Ge,ct[Ge]||(tt[ut]="(?:");else if(yt.charAt(0)==="\\"){var ht=+yt.substring(1);ht&&ht<=Ge&&(tt[ut]="\\"+ct[ht])}}for(var ut=0;ut<nt;++ut)tt[ut]==="^"&&tt[ut+1]!=="^"&&(tt[ut]="");if(le.ignoreCase&&$e)for(var ut=0;ut<nt;++ut){var yt=tt[ut],Ce=yt.charAt(0);yt.length>=2&&Ce==="["?tt[ut]=Re(yt):Ce!=="\\"&&(tt[ut]=yt.replace(/[a-zA-Z]/g,function(w){var He=w.charCodeAt(0);return"["+String.fromCharCode(He&-33,He|32)+"]"}))}return tt.join("")}for(var te=[],z=0,D=ke.length;z<D;++z){var ue=ke[z];if(ue.global||ue.multiline)throw new Error(""+ue);te.push("(?:"+Ze(ue)+")")}return new RegExp(te.join("|"),Pe?"gi":"g")}function E(ke,ie){var $e=/(?:^|\s)nocode(?:\s|$)/,Pe=[],z=0,D=[],ue=0;function ge(pe){var ye=pe.nodeType;if(ye==1){if($e.test(pe.className))return;for(var Re=pe.firstChild;Re;Re=Re.nextSibling)ge(Re);var Ze=pe.nodeName.toLowerCase();(Ze==="br"||Ze==="li")&&(Pe[ue]=`
|
|
|
`,D[ue<<1]=z++,D[ue++<<1|1]=pe)}else if(ye==3||ye==4){var te=pe.nodeValue;te.length&&(ie?te=te.replace(/\r\n?/g,`
|
|
|
`):te=te.replace(/[ \t\r\n]+/g," "),Pe[ue]=te,D[ue<<1]=z,z+=te.length,D[ue++<<1|1]=pe)}}return ge(ke),{sourceCode:Pe.join("").replace(/\n$/,""),spans:D}}function R(ke,ie,$e,Pe,z){if($e){var D={sourceNode:ke,pre:1,langExtension:null,numberLines:null,sourceCode:$e,spans:null,basePos:ie,decorations:null};Pe(D),z.push.apply(z,D.decorations)}}var se=/\S/;function we(ke){for(var ie=void 0,$e=ke.firstChild;$e;$e=$e.nextSibling){var Pe=$e.nodeType;ie=Pe===1?ie?ke:$e:Pe===3&&se.test($e.nodeValue)?ke:ie}return ie===ke?void 0:ie}function Ve(ke,ie){var $e={},Pe;(function(){for(var ue=ke.concat(ie),ge=[],pe={},ye=0,Re=ue.length;ye<Re;++ye){var Ze=ue[ye],te=Ze[3];if(te)for(var le=te.length;--le>=0;)$e[te.charAt(le)]=Ze;var tt=Ze[1],nt=""+tt;pe.hasOwnProperty(nt)||(ge.push(tt),pe[nt]=null)}ge.push(/[\0-\uffff]/),Pe=Q(ge)})();var z=ie.length,D=function(ue){for(var ge=ue.sourceCode,pe=ue.basePos,ye=ue.sourceNode,Re=[pe,Fe],Ze=0,te=ge.match(Pe)||[],le={},tt=0,nt=te.length;tt<nt;++tt){var ct=te[tt],ut=le[ct],Ge=void 0,yt;if(typeof ut=="string")yt=!1;else{var ht=$e[ct.charAt(0)];if(ht)Ge=ct.match(ht[1]),ut=ht[0];else{for(var Ce=0;Ce<z;++Ce)if(ht=ie[Ce],Ge=ct.match(ht[1]),Ge){ut=ht[0];break}Ge||(ut=Fe)}yt=ut.length>=5&&ut.substring(0,5)==="lang-",yt&&!(Ge&&typeof Ge[1]=="string")&&(yt=!1,ut=ee),yt||(le[ct]=ut)}var Ye=Ze;if(Ze+=ct.length,!yt)Re.push(pe+Ye,ut);else{var b=Ge[1],w=ct.indexOf(b),He=w+b.length;Ge[2]&&(He=ct.length-Ge[2].length,w=He-b.length);var q=ut.substring(5);R(ye,pe+Ye,ct.substring(0,w),D,Re),R(ye,pe+Ye+w,b,wt(q,b),Re),R(ye,pe+Ye+He,ct.substring(He),D,Re)}}ue.decorations=Re};return D}function lt(ke){var ie=[],$e=[];ke.tripleQuotedStrings?ie.push([F,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ke.multiLineStrings?ie.push([F,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ie.push([F,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ke.verbatimStrings&&$e.push([F,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Pe=ke.hashComments;Pe&&(ke.cStyleComments?(Pe>1?ie.push([ae,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ie.push([ae,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),$e.push([F,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ie.push([ae,/^#[^\r\n]*/,null,"#"])),ke.cStyleComments&&($e.push([ae,/^\/\/[^\r\n]*/,null]),$e.push([ae,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var z=ke.regexLiterals;if(z){var D=z>1?"":`
|
|
|
\r`,ue=D?".":"[\\S\\s]",ge="/(?=[^/*"+D+"])(?:[^/\\x5B\\x5C"+D+"]|\\x5C"+ue+"|\\x5B(?:[^\\x5C\\x5D"+D+"]|\\x5C"+ue+")*(?:\\x5D|$))+/";$e.push(["lang-regex",RegExp("^"+J+"("+ge+")")])}var pe=ke.types;pe&&$e.push([me,pe]);var ye=(""+ke.keywords).replace(/^ | $/g,"");ye.length&&$e.push([L,new RegExp("^(?:"+ye.replace(/[\s,]+/g,"|")+")\\b"),null]),ie.push([Fe,/^\s+/,null,` \r
|
|
|
\xA0`]);var Re="^.[^\\s\\w.$@'\"`/\\\\]*";return ke.regexLiterals&&(Re+="(?!s*/)"),$e.push([de,/^@[a-z_$][a-z_$@0-9]*/i,null],[me,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Fe,/^[a-z_$][a-z_$@0-9]*/i,null],[de,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Fe,/^\\[\s\S]?/,null],[Ie,new RegExp(Re),null]),Ve(ie,$e)}var xe=lt({keywords:I,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(ke,ie,$e){for(var Pe=/(?:^|\s)nocode(?:\s|$)/,z=/\r\n?|\n/,D=ke.ownerDocument,ue=D.createElement("li");ke.firstChild;)ue.appendChild(ke.firstChild);var ge=[ue];function pe(tt){var nt=tt.nodeType;if(nt==1&&!Pe.test(tt.className))if(tt.nodeName==="br")ye(tt),tt.parentNode&&tt.parentNode.removeChild(tt);else for(var ct=tt.firstChild;ct;ct=ct.nextSibling)pe(ct);else if((nt==3||nt==4)&&$e){var ut=tt.nodeValue,Ge=ut.match(z);if(Ge){var yt=ut.substring(0,Ge.index);tt.nodeValue=yt;var ht=ut.substring(Ge.index+Ge[0].length);if(ht){var Ce=tt.parentNode;Ce.insertBefore(D.createTextNode(ht),tt.nextSibling)}ye(tt),yt||tt.parentNode.removeChild(tt)}}}function ye(tt){for(;!tt.nextSibling;)if(tt=tt.parentNode,!tt)return;function nt(Ge,yt){var ht=yt?Ge.cloneNode(!1):Ge,Ce=Ge.parentNode;if(Ce){var Ye=nt(Ce,1),b=Ge.nextSibling;Ye.appendChild(ht);for(var w=b;w;w=b)b=w.nextSibling,Ye.appendChild(w)}return ht}for(var ct=nt(tt.nextSibling,0),ut;(ut=ct.parentNode)&&ut.nodeType===1;)ct=ut;ge.push(ct)}for(var Re=0;Re<ge.length;++Re)pe(ge[Re]);ie===(ie|0)&&ge[0].setAttribute("value",ie);var Ze=D.createElement("ol");Ze.className="linenums";for(var te=Math.max(0,ie-1|0)||0,Re=0,le=ge.length;Re<le;++Re)ue=ge[Re],ue.className="L"+(Re+te)%10,ue.firstChild||ue.appendChild(D.createTextNode("\xA0")),Ze.appendChild(ue);ke.appendChild(Ze)}function Qe(ke){var ie=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ie=ie&&+ie[1]<=8;var $e=/\n/g,Pe=ke.sourceCode,z=Pe.length,D=0,ue=ke.spans,ge=ue.length,pe=0,ye=ke.decorations,Re=ye.length,Ze=0;ye[Re]=z;var te,le;for(le=te=0;le<Re;)ye[le]!==ye[le+2]?(ye[te++]=ye[le++],ye[te++]=ye[le++]):le+=2;for(Re=te,le=te=0;le<Re;){for(var tt=ye[le],nt=ye[le+1],ct=le+2;ct+2<=Re&&ye[ct+1]===nt;)ct+=2;ye[te++]=tt,ye[te++]=nt,le=ct}Re=ye.length=te;var ut=ke.sourceNode,Ge="";ut&&(Ge=ut.style.display,ut.style.display="none");try{for(var yt=null;pe<ge;){var ht=ue[pe],Ce=ue[pe+2]||z,Ye=ye[Ze+2]||z,ct=Math.min(Ce,Ye),b=ue[pe+1],w;if(b.nodeType!==1&&(w=Pe.substring(D,ct))){ie&&(w=w.replace($e,"\r")),b.nodeValue=w;var He=b.ownerDocument,q=He.createElement("span");q.className=ye[Ze+1];var be=b.parentNode;be.replaceChild(q,b),q.appendChild(b),D<Ce&&(ue[pe+1]=b=He.createTextNode(Pe.substring(ct,Ce)),be.insertBefore(b,q.nextSibling))}D=ct,D>=Ce&&(pe+=2),D>=Ye&&(Ze+=2)}}finally{ut&&(ut.style.display=Ge)}}var it={};function De(ke,ie){for(var $e=ie.length;--$e>=0;){var Pe=ie[$e];it.hasOwnProperty(Pe)?g.console&&console.warn("cannot override language handler %s",Pe):it[Pe]=ke}}function wt(ke,ie){return ke&&it.hasOwnProperty(ke)||(ke=/^\s*</.test(ie)?"default-markup":"default-code"),it[ke]}De(xe,["default-code"]),De(Ve([],[[Fe,/^[^<?]+/],[Te,/^<!\w[^>]*(?:>|$)/],[ae,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[Ie,/^(?:<[%?]|[%?]>)/],["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"]),De(Ve([[Fe,/^[\s]+/,null,` \r
|
|
|
`],[A,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[_e,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[Ie,/^[=<>\/]+/],["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"]),De(Ve([],[[A,/^[\s\S]+/]]),["uq.val"]),De(lt({keywords:C,hashComments:!0,cStyleComments:!0,types:G}),["c","cc","cpp","cxx","cyc","m"]),De(lt({keywords:"null,true,false"}),["json"]),De(lt({keywords:S,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:G}),["cs"]),De(lt({keywords:N,cStyleComments:!0}),["java"]),De(lt({keywords:$,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),De(lt({keywords:W,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),De(lt({keywords:k,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),De(lt({keywords:V,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),De(lt({keywords:T,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),De(lt({keywords:_,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),De(Ve([],[[F,/^[\s\S]+/]]),["regex"]);function et(ke){var ie=ke.langExtension;try{var $e=E(ke.sourceNode,ke.pre),Pe=$e.sourceCode;ke.sourceCode=Pe,ke.spans=$e.spans,ke.basePos=0,wt(ie,Pe)(ke),Qe(ke)}catch(z){g.console&&console.log(z&&z.stack||z)}}function Ot(ke,ie,$e){var Pe=$e||!1,z=ie||null,D=document.createElement("div");D.innerHTML="<pre>"+ke+"</pre>",D=D.firstChild,Pe&&je(D,Pe,!0);var ue={langExtension:z,numberLines:Pe,sourceNode:D,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return et(ue),D.innerHTML}function qe(ke,ie){var $e=ie||document.body,Pe=$e.ownerDocument||document;function z(ht){return $e.getElementsByTagName(ht)}for(var D=[z("pre"),z("code"),z("xmp")],ue=[],ge=0;ge<D.length;++ge)for(var pe=0,ye=D[ge].length;pe<ye;++pe)ue.push(D[ge][pe]);D=null;var Re=Date;Re.now||(Re={now:function(){return+new Date}});var Ze=0,te=/\blang(?:uage)?-([\w.]+)(?!\S)/,le=/\bprettyprint\b/,tt=/\bprettyprinted\b/,nt=/pre|xmp/i,ct=/^code$/i,ut=/^(?:pre|code|xmp)$/i,Ge={};function yt(){for(var ht=g.PR_SHOULD_USE_CONTINUATION?Re.now()+250:1/0;Ze<ue.length&&Re.now()<ht;Ze++){for(var Ce=ue[Ze],Ye=Ge,b=Ce;b=b.previousSibling;){var w=b.nodeType,He=(w===7||w===8)&&b.nodeValue;if(He?!/^\??prettify\b/.test(He):w!==3||/\S/.test(b.nodeValue))break;if(He){Ye={},He.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ee,Tt,Kt){Ye[Tt]=Kt});break}}var q=Ce.className;if((Ye!==Ge||le.test(q))&&!tt.test(q)){for(var be=!1,It=Ce.parentNode;It;It=It.parentNode){var Be=It.tagName;if(ut.test(Be)&&It.className&&le.test(It.className)){be=!0;break}}if(!be){Ce.className+=" prettyprinted";var rt=Ye.lang;if(!rt){rt=q.match(te);var ft;!rt&&(ft=we(Ce))&&ct.test(ft.tagName)&&(rt=ft.className.match(te)),rt&&(rt=rt[1])}var ve;if(nt.test(Ce.tagName))ve=1;else{var Se=Ce.currentStyle,We=Pe.defaultView,ze=Se?Se.whiteSpace:We&&We.getComputedStyle?We.getComputedStyle(Ce,null).getPropertyValue("white-space"):0;ve=ze&&ze.substring(0,3)==="pre"}var M=Ye.linenums;(M=M==="true"||+M)||(M=q.match(/\blinenums\b(?::(\d+))?/),M=M?M[1]&&M[1].length?+M[1]:!0:!1),M&&je(Ce,M,ve);var dt={langExtension:rt,sourceNode:Ce,numberLines:M,pre:ve,sourceCode:null,basePos:null,spans:null,decorations:null};et(dt)}}}Ze<ue.length?g.setTimeout(yt,250):typeof ke=="function"&&ke()}yt()}var Xe=g.PR={createSimpleLexer:Ve,registerLangHandler:De,sourceDecorator:lt,PR_ATTRIB_NAME:B,PR_ATTRIB_VALUE:A,PR_COMMENT:ae,PR_DECLARATION:Te,PR_KEYWORD:L,PR_LITERAL:de,PR_NOCODE:X,PR_PLAIN:Fe,PR_PUNCTUATION:Ie,PR_SOURCE:ee,PR_STRING:F,PR_TAG:_e,PR_TYPE:me,prettyPrintOne:o?g.prettyPrintOne=Ot:fe=Ot,prettyPrint:K=o?g.prettyPrint=qe:K=qe},Ue=g.define;typeof Ue=="function"&&Ue.amd&&Ue("google-code-prettify",[],function(){return Xe})})()},25769:function(mn,gt,d){"use strict";var o=d(98040),ne={"text/plain":"Text","text/html":"Url",default:"Text"},j="Copy to clipboard: #{key}, Enter";function fe(g){var re=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,re)}function K(g,re){var oe,l,C,N,S,_,T=!1;re||(re={}),oe=re.debug||!1;try{C=o(),N=document.createRange(),S=document.getSelection(),_=document.createElement("span"),_.textContent=g,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(W){if(W.stopPropagation(),re.format)if(W.preventDefault(),typeof W.clipboardData=="undefined"){oe&&console.warn("unable to use e.clipboardData"),oe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var V=ne[re.format]||ne.default;window.clipboardData.setData(V,g)}else W.clipboardData.clearData(),W.clipboardData.setData(re.format,g);re.onCopy&&(W.preventDefault(),re.onCopy(W.clipboardData))}),document.body.appendChild(_),N.selectNodeContents(_),S.addRange(N);var k=document.execCommand("copy");if(!k)throw new Error("copy command was unsuccessful");T=!0}catch(W){oe&&console.error("unable to copy using execCommand: ",W),oe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(re.format||"text",g),re.onCopy&&re.onCopy(window.clipboardData),T=!0}catch(V){oe&&console.error("unable to copy using clipboardData: ",V),oe&&console.error("falling back to prompt"),l=fe("message"in re?re.message:j),window.prompt(l,g)}}finally{S&&(typeof S.removeRange=="function"?S.removeRange(N):S.removeAllRanges()),_&&document.body.removeChild(_),C()}return T}mn.exports=K},53184:function(mn,gt,d){"use strict";var o,ne;function j(fe,K,g){var re=function(oe,l){return fe.js_beautify(oe,l)};return re.js=fe.js_beautify,re.css=K.css_beautify,re.html=g.html_beautify,re.js_beautify=fe.js_beautify,re.css_beautify=K.css_beautify,re.html_beautify=g.html_beautify,re}o=[d(58553),d(87804),d(40998)],ne=function(fe,K,g){return j(fe,K,g)}.apply(gt,o),ne!==void 0&&(mn.exports=ne)},87804:function(mn,gt){var d,o;(function(){var ne;(function(){"use strict";var fe=[,,function(oe){function l(S){this.__parent=S,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var S=new l(this.__parent);return S.set_indent(this.__indent_count,this.__alignment_count),S},l.prototype.item=function(S){return S<0?this.__items[this.__items.length+S]:this.__items[S]},l.prototype.has_match=function(S){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(S))return!0;return!1},l.prototype.set_indent=function(S,_){this.is_empty()&&(this.__indent_count=S||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var S=this.__parent.current_line;return S.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),S.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),S.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,S.__items[0]===" "&&(S.__items.splice(0,1),S.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(S){this.__items.push(S);var _=S.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=S.length-_:this.__character_count+=S.length},l.prototype.pop=function(){var S=null;return this.is_empty()||(S=this.__items.pop(),this.__character_count-=S.length),S},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var S="";return this.is_empty()?this.__parent.indent_empty_lines&&(S=this.__parent.get_indent_string(this.__indent_count)):(S=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),S+=this.__items.join("")),S};function C(S,_){this.__cache=[""],this.__indent_size=S.indent_size,this.__indent_string=S.indent_char,S.indent_with_tabs||(this.__indent_string=new Array(S.indent_size+1).join(S.indent_char)),_=_||"",S.indent_level>0&&(_=new Array(S.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}C.prototype.get_indent_size=function(S,_){var T=this.__base_string_length;return _=_||0,S<0&&(T=0),T+=S*this.__indent_size,T+=_,T},C.prototype.get_indent_string=function(S,_){var T=this.__base_string;return _=_||0,S<0&&(S=0,T=""),_+=S*this.__indent_size,this.__ensure_cache(_),T+=this.__cache[_],T},C.prototype.__ensure_cache=function(S){for(;S>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var S=this.__cache.length,_=0,T="";this.__indent_size&&S>=this.__indent_size&&(_=Math.floor(S/this.__indent_size),S-=_*this.__indent_size,T=new Array(_+1).join(this.__indent_string)),S&&(T+=new Array(S+1).join(" ")),this.__cache.push(T)};function N(S,_){this.__indent_cache=new C(S,_),this.raw=!1,this._end_with_newline=S.end_with_newline,this.indent_size=S.indent_size,this.wrap_line_length=S.wrap_line_length,this.indent_empty_lines=S.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(S,_){return this.__indent_cache.get_indent_string(S,_)},N.prototype.get_indent_size=function(S,_){return this.__indent_cache.get_indent_size(S,_)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(S){return this.is_empty()||!S&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(S){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var T=this.__lines.join(`
|
|
|
`);return S!==`
|
|
|
`&&(T=T.replace(/[\n]/g,S)),T},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(S,_){return S=S||0,_=_||0,this.next_line.set_indent(S,_),this.__lines.length>1?(this.current_line.set_indent(S,_),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(S){for(var _=0;_<S.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(S.whitespace_before),this.current_line.push(S.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(S){this.__add_space_before_token(),this.current_line.push(S),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.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(" "))},N.prototype.remove_indent=function(S){for(var _=this.__lines.length;S<_;)this.__lines[S]._remove_indent(),S++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(S){for(S=S===void 0?!1:S,this.current_line.trim();S&&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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(S,_){for(var T=this.__lines.length-2;T>=0;){var k=this.__lines[T];if(k.is_empty())break;if(k.item(0).indexOf(S)!==0&&k.item(-1)!==_){this.__lines.splice(T+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}T--}},oe.exports.Output=N},,,,function(oe){function l(S,_){this.raw_options=C(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"])}l.prototype._get_array=function(S,_){var T=this.raw_options[S],k=_||[];return typeof T=="object"?T!==null&&typeof T.concat=="function"&&(k=T.concat()):typeof T=="string"&&(k=T.split(/[^a-zA-Z0-9_\/\-]+/)),k},l.prototype._get_boolean=function(S,_){var T=this.raw_options[S],k=T===void 0?!!_:!!T;return k},l.prototype._get_characters=function(S,_){var T=this.raw_options[S],k=_||"";return typeof T=="string"&&(k=T.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),k},l.prototype._get_number=function(S,_){var T=this.raw_options[S];_=parseInt(_,10),isNaN(_)&&(_=0);var k=parseInt(T,10);return isNaN(k)&&(k=_),k},l.prototype._get_selection=function(S,_,T){var k=this._get_selection_list(S,_,T);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+S+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[S]+"'");return k[0]},l.prototype._get_selection_list=function(S,_,T){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(T=T||[_[0]],!this._is_valid_selection(T,_))throw new Error("Invalid Default Value!");var k=this._get_array(S,T);if(!this._is_valid_selection(k,_))throw new Error("Invalid Option Value: The option '"+S+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[S]+"'");return k},l.prototype._is_valid_selection=function(S,_){return S.length&&_.length&&!S.some(function(T){return _.indexOf(T)===-1})};function C(S,_){var T={};S=N(S);var k;for(k in S)k!==_&&(T[k]=S[k]);if(_&&S[_])for(k in S[_])T[k]=S[_][k];return T}function N(S){var _={},T;for(T in S){var k=T.replace(/-/g,"_");_[k]=S[T]}return _}oe.exports.Options=l,oe.exports.normalizeOpts=N,oe.exports.mergeOpts=C},,function(oe){var l=RegExp.prototype.hasOwnProperty("sticky");function C(N){this.__input=N||"",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 N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},C.prototype.peek=function(N){var S=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(S=this.__input.charAt(N)),S},C.prototype.__match=function(N,S){N.lastIndex=S;var _=N.exec(this.__input);return _&&!(l&&N.sticky)&&_.index!==S&&(_=null),_},C.prototype.test=function(N,S){return S=S||0,S+=this.__position,S>=0&&S<this.__input_length?!!this.__match(N,S):!1},C.prototype.testChar=function(N,S){var _=this.peek(S);return N.lastIndex=0,_!==null&&N.test(_)},C.prototype.match=function(N){var S=this.__match(N,this.__position);return S?this.__position+=S[0].length:S=null,S},C.prototype.read=function(N,S,_){var T="",k;return N&&(k=this.match(N),k&&(T+=k[0])),S&&(k||!N)&&(T+=this.readUntil(S,_)),T},C.prototype.readUntil=function(N,S){var _="",T=this.__position;N.lastIndex=this.__position;var k=N.exec(this.__input);return k?(T=k.index,S&&(T+=k[0].length)):T=this.__input_length,_=this.__input.substring(this.__position,T),this.__position=T,_},C.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},C.prototype.get_regexp=function(N,S){var _=null,T="g";return S&&l&&(T="y"),typeof N=="string"&&N!==""?_=new RegExp(N,T):N&&(_=new RegExp(N.source,T)),_},C.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(N){var S=this.__position,_=this.readUntilAfter(N);return this.__position=S,_},C.prototype.lookBack=function(N){var S=this.__position-1;return S>=N.length&&this.__input.substring(S-N.length,S).toLowerCase()===N},oe.exports.InputScanner=C},,,,,function(oe){function l(C,N){C=typeof C=="string"?C:C.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var S=this.__directive_pattern.exec(C);S;)N[S[1]]=S[2],S=this.__directive_pattern.exec(C);return N},l.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=l},,function(oe,l,C){var N=C(16).Beautifier,S=C(17).Options;function _(T,k){var W=new N(T,k);return W.beautify()}oe.exports=_,oe.exports.defaultOptions=function(){return new S}},function(oe,l,C){var N=C(17).Options,S=C(2).Output,_=C(8).InputScanner,T=C(13).Directives,k=new T(/\/\*/,/\*\//),W=/\r\n|[\r\n]/,V=/\r\n|[\r\n]/g,$=/\s/,I=/(?:\s|\n)+/g,G=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,F=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function L(ae,me){this._source_text=ae||"",this._options=new N(me),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 me="";for(this._ch=this._input.next();this._ch;){if(me+=this._ch,this._ch==="\\")me+=this._input.next();else if(ae.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return me},L.prototype.eatWhitespace=function(ae){for(var me=$.test(this._input.peek()),de=0;$.test(this._input.peek());)this._ch=this._input.next(),ae&&this._ch===`
|
|
|
`&&(de===0||de<this._options.max_preserve_newlines)&&(de++,this._output.add_new_line(!0));return me},L.prototype.foundNestedPseudoClass=function(){for(var ae=0,me=1,de=this._input.peek(me);de;){if(de==="{")return!0;if(de==="(")ae+=1;else if(de===")"){if(ae===0)return!1;ae-=1}else if(de===";"||de==="}")return!1;me++,de=this._input.peek(me)}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,me=this._options.eol;me==="auto"&&(me=`
|
|
|
`,ae&&W.test(ae||"")&&(me=ae.match(W)[0])),ae=ae.replace(V,`
|
|
|
`);var de=ae.match(/^[\t ]*/)[0];this._output=new S(this._options,de),this._input=new _(ae),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var Ie=0,Fe=!1,_e=!1,Te=!1,ee=!1,B=!1,A=this._ch,X=!1,J,Q,E;J=this._input.read(I),Q=J!=="",E=A,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),A=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var R=this._input.read(G),se=k.get_directives(R);se&&se.ignore==="start"&&(R+=k.readIgnored(this._input)),this.print_string(R),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(F)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(Q),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),Ie===0&&we.indexOf(":")!==-1&&(_e=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(Q),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{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),Ie===0&&Ve.indexOf(":")!==-1?(_e=!0,this.indent()):Ve in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ve in this.CONDITIONAL_GROUP_RULE&&(Te=!0)):Ie===0&&!_e&&(ee=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(Q),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")_e&&(_e=!1,this.outdent()),ee=!1,Te?(Te=!1,Fe=this._indentLevel>=this._nestedLevel):Fe=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Fe&&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)):(E==="("?this._output.space_before_token=!1:E!==","&&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(),E==="{"&&this._output.trim(!0),_e&&(this.outdent(),_e=!1),this.print_string(this._ch),Fe=!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 lt=0;lt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;lt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[lt])){X=!0;break}(Fe||Te)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!ee&&Ie===0?(this.print_string(":"),_e||(_e=!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 xe=E==='"'||E==="'";this.preserveSingleSpace(xe||Q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")X=!1,Ie===0?(_e&&(this.outdent(),_e=!1),ee=!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(),Ie++,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(")")),Ie&&(Ie--,this.outdent()));else{var je=!1;this._input.lookBack("with")&&(je=!0),this.preserveSingleSpace(Q||je),this.print_string(this._ch),_e&&E==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),B=!0):(this.eatWhitespace(),Ie++,this.indent())}else if(this._ch===")")Ie&&(Ie--,this.outdent()),B&&this._input.peek()===";"&&this._options.selector_separator_newline&&(B=!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&&(!_e||B)&&Ie===0&&!ee?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!_e&&Ie===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&&$.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(Q),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),$.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Qe=E==='"'||E==="'";this.preserveSingleSpace(Qe||Q),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&X&&this._output.add_new_line()}var it=this._output.get_code(me);return it},oe.exports.Beautifier=L},function(oe,l,C){var N=C(6).Options;function S(_){N.call(this,_,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var T=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||T;var k=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var W=0;W<k.length;W++)k[W]!=="expand"?this.brace_style="collapse":this.brace_style=k[W]}S.prototype=new N,oe.exports.Options=S}],K={};function g(oe){var l=K[oe];if(l!==void 0)return l.exports;var C=K[oe]={exports:{}};return fe[oe](C,C.exports,g),C.exports}var re=g(15);ne=re})();var j=ne;d=[],o=function(){return{css_beautify:j}}.apply(gt,d),o!==void 0&&(mn.exports=o)})()},40998:function(mn,gt,d){var o,ne;(function(){var j;(function(){"use strict";var re=[,,function(N){function S(k){this.__parent=k,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}S.prototype.clone_empty=function(){var k=new S(this.__parent);return k.set_indent(this.__indent_count,this.__alignment_count),k},S.prototype.item=function(k){return k<0?this.__items[this.__items.length+k]:this.__items[k]},S.prototype.has_match=function(k){for(var W=this.__items.length-1;W>=0;W--)if(this.__items[W].match(k))return!0;return!1},S.prototype.set_indent=function(k,W){this.is_empty()&&(this.__indent_count=k||0,this.__alignment_count=W||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},S.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},S.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},S.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var k=this.__parent.current_line;return k.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),k.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),k.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,k.__items[0]===" "&&(k.__items.splice(0,1),k.__character_count-=1),!0}return!1},S.prototype.is_empty=function(){return this.__items.length===0},S.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},S.prototype.push=function(k){this.__items.push(k);var W=k.lastIndexOf(`
|
|
|
`);W!==-1?this.__character_count=k.length-W:this.__character_count+=k.length},S.prototype.pop=function(){var k=null;return this.is_empty()||(k=this.__items.pop(),this.__character_count-=k.length),k},S.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},S.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},S.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},S.prototype.toString=function(){var k="";return this.is_empty()?this.__parent.indent_empty_lines&&(k=this.__parent.get_indent_string(this.__indent_count)):(k=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),k+=this.__items.join("")),k};function _(k,W){this.__cache=[""],this.__indent_size=k.indent_size,this.__indent_string=k.indent_char,k.indent_with_tabs||(this.__indent_string=new Array(k.indent_size+1).join(k.indent_char)),W=W||"",k.indent_level>0&&(W=new Array(k.indent_level+1).join(this.__indent_string)),this.__base_string=W,this.__base_string_length=W.length}_.prototype.get_indent_size=function(k,W){var V=this.__base_string_length;return W=W||0,k<0&&(V=0),V+=k*this.__indent_size,V+=W,V},_.prototype.get_indent_string=function(k,W){var V=this.__base_string;return W=W||0,k<0&&(k=0,V=""),W+=k*this.__indent_size,this.__ensure_cache(W),V+=this.__cache[W],V},_.prototype.__ensure_cache=function(k){for(;k>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var k=this.__cache.length,W=0,V="";this.__indent_size&&k>=this.__indent_size&&(W=Math.floor(k/this.__indent_size),k-=W*this.__indent_size,V=new Array(W+1).join(this.__indent_string)),k&&(V+=new Array(k+1).join(" ")),this.__cache.push(V)};function T(k,W){this.__indent_cache=new _(k,W),this.raw=!1,this._end_with_newline=k.end_with_newline,this.indent_size=k.indent_size,this.wrap_line_length=k.wrap_line_length,this.indent_empty_lines=k.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new S(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(k,W){return this.__indent_cache.get_indent_string(k,W)},T.prototype.get_indent_size=function(k,W){return this.__indent_cache.get_indent_size(k,W)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(k){return this.is_empty()||!k&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(k){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 V=this.__lines.join(`
|
|
|
`);return k!==`
|
|
|
`&&(V=V.replace(/[\n]/g,k)),V},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(k,W){return k=k||0,W=W||0,this.next_line.set_indent(k,W),this.__lines.length>1?(this.current_line.set_indent(k,W),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(k){for(var W=0;W<k.newlines;W++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(k.whitespace_before),this.current_line.push(k.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(k){this.__add_space_before_token(),this.current_line.push(k),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},T.prototype.remove_indent=function(k){for(var W=this.__lines.length;k<W;)this.__lines[k]._remove_indent(),k++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(k){for(k=k===void 0?!1:k,this.current_line.trim();k&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(k,W){for(var V=this.__lines.length-2;V>=0;){var $=this.__lines[V];if($.is_empty())break;if($.item(0).indexOf(k)!==0&&$.item(-1)!==W){this.__lines.splice(V+1,0,new S(this)),this.previous_line=this.__lines[this.__lines.length-2];break}V--}},N.exports.Output=T},function(N){function S(_,T,k,W){this.type=_,this.text=T,this.comments_before=null,this.newlines=k||0,this.whitespace_before=W||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}N.exports.Token=S},,,function(N){function S(k,W){this.raw_options=_(k,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"])}S.prototype._get_array=function(k,W){var V=this.raw_options[k],$=W||[];return typeof V=="object"?V!==null&&typeof V.concat=="function"&&($=V.concat()):typeof V=="string"&&($=V.split(/[^a-zA-Z0-9_\/\-]+/)),$},S.prototype._get_boolean=function(k,W){var V=this.raw_options[k],$=V===void 0?!!W:!!V;return $},S.prototype._get_characters=function(k,W){var V=this.raw_options[k],$=W||"";return typeof V=="string"&&($=V.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),$},S.prototype._get_number=function(k,W){var V=this.raw_options[k];W=parseInt(W,10),isNaN(W)&&(W=0);var $=parseInt(V,10);return isNaN($)&&($=W),$},S.prototype._get_selection=function(k,W,V){var $=this._get_selection_list(k,W,V);if($.length!==1)throw new Error("Invalid Option Value: The option '"+k+`' can only be one of the following values:
|
|
|
`+W+`
|
|
|
You passed in: '`+this.raw_options[k]+"'");return $[0]},S.prototype._get_selection_list=function(k,W,V){if(!W||W.length===0)throw new Error("Selection list cannot be empty.");if(V=V||[W[0]],!this._is_valid_selection(V,W))throw new Error("Invalid Default Value!");var $=this._get_array(k,V);if(!this._is_valid_selection($,W))throw new Error("Invalid Option Value: The option '"+k+`' can contain only the following values:
|
|
|
`+W+`
|
|
|
You passed in: '`+this.raw_options[k]+"'");return $},S.prototype._is_valid_selection=function(k,W){return k.length&&W.length&&!k.some(function(V){return W.indexOf(V)===-1})};function _(k,W){var V={};k=T(k);var $;for($ in k)$!==W&&(V[$]=k[$]);if(W&&k[W])for($ in k[W])V[$]=k[W][$];return V}function T(k){var W={},V;for(V in k){var $=V.replace(/-/g,"_");W[$]=k[V]}return W}N.exports.Options=S,N.exports.normalizeOpts=T,N.exports.mergeOpts=_},,function(N){var S=RegExp.prototype.hasOwnProperty("sticky");function _(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position<this.__input_length},_.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},_.prototype.peek=function(T){var k=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(k=this.__input.charAt(T)),k},_.prototype.__match=function(T,k){T.lastIndex=k;var W=T.exec(this.__input);return W&&!(S&&T.sticky)&&W.index!==k&&(W=null),W},_.prototype.test=function(T,k){return k=k||0,k+=this.__position,k>=0&&k<this.__input_length?!!this.__match(T,k):!1},_.prototype.testChar=function(T,k){var W=this.peek(k);return T.lastIndex=0,W!==null&&T.test(W)},_.prototype.match=function(T){var k=this.__match(T,this.__position);return k?this.__position+=k[0].length:k=null,k},_.prototype.read=function(T,k,W){var V="",$;return T&&($=this.match(T),$&&(V+=$[0])),k&&($||!T)&&(V+=this.readUntil(k,W)),V},_.prototype.readUntil=function(T,k){var W="",V=this.__position;T.lastIndex=this.__position;var $=T.exec(this.__input);return $?(V=$.index,k&&(V+=$[0].length)):V=this.__input_length,W=this.__input.substring(this.__position,V),this.__position=V,W},_.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},_.prototype.get_regexp=function(T,k){var W=null,V="g";return k&&S&&(V="y"),typeof T=="string"&&T!==""?W=new RegExp(T,V):T&&(W=new RegExp(T.source,V)),W},_.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},_.prototype.peekUntilAfter=function(T){var k=this.__position,W=this.readUntilAfter(T);return this.__position=k,W},_.prototype.lookBack=function(T){var k=this.__position-1;return k>=T.length&&this.__input.substring(k-T.length,k).toLowerCase()===T},N.exports.InputScanner=_},function(N,S,_){var T=_(8).InputScanner,k=_(3).Token,W=_(10).TokenStream,V=_(11).WhitespacePattern,$={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},I=function(G,F){this._input=new T(G),this._options=F||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new V(this._input)};I.prototype.tokenize=function(){this._input.restart(),this.__tokens=new W,this._reset();for(var G,F=new k($.START,""),L=null,ae=[],me=new W;F.type!==$.EOF;){for(G=this._get_next_token(F,L);this._is_comment(G);)me.add(G),G=this._get_next_token(F,L);me.isEmpty()||(G.comments_before=me,me=new W),G.parent=L,this._is_opening(G)?(ae.push(L),L=G):L&&this._is_closing(G,L)&&(G.opened=L,L.closed=G,L=ae.pop(),G.parent=L),G.previous=F,F.next=G,this.__tokens.add(G),F=G}return this.__tokens},I.prototype._is_first_token=function(){return this.__tokens.isEmpty()},I.prototype._reset=function(){},I.prototype._get_next_token=function(G,F){this._readWhitespace();var L=this._input.read(/.+/g);return L?this._create_token($.RAW,L):this._create_token($.EOF,"")},I.prototype._is_comment=function(G){return!1},I.prototype._is_opening=function(G){return!1},I.prototype._is_closing=function(G,F){return!1},I.prototype._create_token=function(G,F){var L=new k(G,F,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return L},I.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},N.exports.Tokenizer=I,N.exports.TOKEN=$},function(N){function S(_){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=_}S.prototype.restart=function(){this.__position=0},S.prototype.isEmpty=function(){return this.__tokens_length===0},S.prototype.hasNext=function(){return this.__position<this.__tokens_length},S.prototype.next=function(){var _=null;return this.hasNext()&&(_=this.__tokens[this.__position],this.__position+=1),_},S.prototype.peek=function(_){var T=null;return _=_||0,_+=this.__position,_>=0&&_<this.__tokens_length&&(T=this.__tokens[_]),T},S.prototype.add=function(_){this.__parent_token&&(_.parent=this.__parent_token),this.__tokens.push(_),this.__tokens_length+=1},N.exports.TokenStream=S},function(N,S,_){var T=_(12).Pattern;function k(W,V){T.call(this,W,V),V?this._line_regexp=this._input.get_regexp(V._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}k.prototype=new T,k.prototype.__set_whitespace_patterns=function(W,V){W+="\\t ",V+="\\n\\r",this._match_pattern=this._input.get_regexp("["+W+V+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+V+"]")},k.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 V=this.__split(this._newline_regexp,W);this.newline_count=V.length-1,this.whitespace_before_token=V[this.newline_count]}return W},k.prototype.matching=function(W,V){var $=this._create();return $.__set_whitespace_patterns(W,V),$._update(),$},k.prototype._create=function(){return new k(this._input,this)},k.prototype.__split=function(W,V){W.lastIndex=0;for(var $=0,I=[],G=W.exec(V);G;)I.push(V.substring($,G.index)),$=G.index+G[0].length,G=W.exec(V);return $<V.length?I.push(V.substring($,V.length)):I.push(""),I},N.exports.WhitespacePattern=k},function(N){function S(_,T){this._input=_,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}S.prototype.read=function(){var _=this._input.read(this._starting_pattern);return(!this._starting_pattern||_)&&(_+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),_},S.prototype.read_match=function(){return this._input.match(this._match_pattern)},S.prototype.until_after=function(_){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(_),T._update(),T},S.prototype.until=function(_){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(_),T._update(),T},S.prototype.starting_with=function(_){var T=this._create();return T._starting_pattern=this._input.get_regexp(_,!0),T._update(),T},S.prototype.matching=function(_){var T=this._create();return T._match_pattern=this._input.get_regexp(_,!0),T._update(),T},S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){},N.exports.Pattern=S},function(N){function S(_,T){_=typeof _=="string"?_:_.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(_+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(_+/\sbeautify\signore:end\s/.source+T,"g")}S.prototype.get_directives=function(_){if(!_.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var k=this.__directive_pattern.exec(_);k;)T[k[1]]=k[2],k=this.__directive_pattern.exec(_);return T},S.prototype.readIgnored=function(_){return _.readUntilAfter(this.__directives_end_ignore_pattern)},N.exports.Directives=S},function(N,S,_){var T=_(12).Pattern,k={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function W(V,$){T.call(this,V,$),this.__template_pattern=null,this._disabled=Object.assign({},k),this._excluded=Object.assign({},k),$&&(this.__template_pattern=this._input.get_regexp($.__template_pattern),this._excluded=Object.assign(this._excluded,$._excluded),this._disabled=Object.assign(this._disabled,$._disabled));var I=new T(V);this.__patterns={handlebars_comment:I.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:I.starting_with(/{{{/).until_after(/}}}/),handlebars:I.starting_with(/{{/).until_after(/}}/),php:I.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:I.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:I.starting_with(/{%/).until_after(/%}/),django_value:I.starting_with(/{{/).until_after(/}}/),django_comment:I.starting_with(/{#/).until_after(/#}/),smarty:I.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:I.starting_with(/{\*/).until_after(/\*}/),smarty_literal:I.starting_with(/{literal}/).until_after(/{\/literal}/)}}W.prototype=new T,W.prototype._create=function(){return new W(this._input,this)},W.prototype._update=function(){this.__set_templated_pattern()},W.prototype.disable=function(V){var $=this._create();return $._disabled[V]=!0,$._update(),$},W.prototype.read_options=function(V){var $=this._create();for(var I in k)$._disabled[I]=V.templating.indexOf(I)===-1;return $._update(),$},W.prototype.exclude=function(V){var $=this._create();return $._excluded[V]=!0,$._update(),$},W.prototype.read=function(){var V="";this._match_pattern?V=this._input.read(this._starting_pattern):V=this._input.read(this._starting_pattern,this.__template_pattern);for(var $=this._read_template();$;)this._match_pattern?$+=this._input.read(this._match_pattern):$+=this._input.readUntil(this.__template_pattern),V+=$,$=this._read_template();return this._until_after&&(V+=this._input.readUntilAfter(this._until_pattern)),V},W.prototype.__set_templated_pattern=function(){var V=[];this._disabled.php||V.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||V.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(V.push(this.__patterns.django._starting_pattern.source),V.push(this.__patterns.django_value._starting_pattern.source),V.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||V.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&V.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+V.join("|")+")")},W.prototype._read_template=function(){var V="",$=this._input.peek();if($==="<"){var I=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&I==="?"&&(V=V||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&I==="%"&&(V=V||this.__patterns.erb.read())}else $==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(V=V||this.__patterns.handlebars_comment.read(),V=V||this.__patterns.handlebars_unescaped.read(),V=V||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(V=V||this.__patterns.django_value.read()),this._excluded.django||(V=V||this.__patterns.django_comment.read(),V=V||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(V=V||this.__patterns.smarty_comment.read(),V=V||this.__patterns.smarty_literal.read(),V=V||this.__patterns.smarty.read()));return V},N.exports.TemplatablePattern=W},,,,function(N,S,_){var T=_(19).Beautifier,k=_(20).Options;function W(V,$,I,G){var F=new T(V,$,I,G);return F.beautify()}N.exports=W,N.exports.defaultOptions=function(){return new k}},function(N,S,_){var T=_(20).Options,k=_(2).Output,W=_(21).Tokenizer,V=_(21).TOKEN,$=/\r\n|[\r\n]/,I=/\r\n|[\r\n]/g,G=function(ee,B){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ee.max_preserve_newlines,this.preserve_newlines=ee.preserve_newlines,this._output=new k(ee,B)};G.prototype.current_line_has_match=function(ee){return this._output.current_line.has_match(ee)},G.prototype.set_space_before_token=function(ee,B){this._output.space_before_token=ee,this._output.non_breaking_space=B},G.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},G.prototype.add_raw_token=function(ee){this._output.add_raw_token(ee)},G.prototype.print_preserved_newlines=function(ee){var B=0;ee.type!==V.TEXT&&ee.previous.type!==V.TEXT&&(B=ee.newlines?1:0),this.preserve_newlines&&(B=ee.newlines<this.max_preserve_newlines+1?ee.newlines:this.max_preserve_newlines+1);for(var A=0;A<B;A++)this.print_newline(A>0);return B!==0},G.prototype.traverse_whitespace=function(ee){return ee.whitespace_before||ee.newlines?(this.print_preserved_newlines(ee)||(this._output.space_before_token=!0),!0):!1},G.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},G.prototype.print_newline=function(ee){this._output.add_new_line(ee)},G.prototype.print_token=function(ee){ee.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ee.text))},G.prototype.indent=function(){this.indent_level++},G.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},G.prototype.get_full_indent=function(ee){return ee=this.indent_level+(ee||0),ee<1?"":this._output.get_indent_string(ee)};var F=function(ee){for(var B=null,A=ee.next;A.type!==V.EOF&&ee.closed!==A;){if(A.type===V.ATTRIBUTE&&A.text==="type"){A.next&&A.next.type===V.EQUALS&&A.next.next&&A.next.next.type===V.VALUE&&(B=A.next.next.text);break}A=A.next}return B},L=function(ee,B){var A=null,X=null;return B.closed?(ee==="script"?A="text/javascript":ee==="style"&&(A="text/css"),A=F(B)||A,A.search("text/css")>-1?X="css":A.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?X="javascript":A.search(/(text|application|dojo)\/(x-)?(html)/)>-1?X="html":A.search(/test\/null/)>-1&&(X="null"),X):null};function ae(ee,B){return B.indexOf(ee)!==-1}function me(ee,B,A){this.parent=ee||null,this.tag=B?B.tag_name:"",this.indent_level=A||0,this.parser_token=B||null}function de(ee){this._printer=ee,this._current_frame=null}de.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},de.prototype.record_tag=function(ee){var B=new me(this._current_frame,ee,this._printer.indent_level);this._current_frame=B},de.prototype._try_pop_frame=function(ee){var B=null;return ee&&(B=ee.parser_token,this._printer.indent_level=ee.indent_level,this._current_frame=ee.parent),B},de.prototype._get_frame=function(ee,B){for(var A=this._current_frame;A&&ee.indexOf(A.tag)===-1;){if(B&&B.indexOf(A.tag)!==-1){A=null;break}A=A.parent}return A},de.prototype.try_pop=function(ee,B){var A=this._get_frame([ee],B);return this._try_pop_frame(A)},de.prototype.indent_to_tag=function(ee){var B=this._get_frame(ee);B&&(this._printer.indent_level=B.indent_level)};function Ie(ee,B,A,X){this._source_text=ee||"",B=B||{},this._js_beautify=A,this._css_beautify=X,this._tag_stack=null;var J=new T(B,"html");this._options=J,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}Ie.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ee=this._source_text,B=this._options.eol;this._options.eol==="auto"&&(B=`
|
|
|
`,ee&&$.test(ee)&&(B=ee.match($)[0])),ee=ee.replace(I,`
|
|
|
`);var A=ee.match(/^[\t ]*/)[0],X={text:"",type:""},J=new Fe(this._options),Q=new G(this._options,A),E=new W(ee,this._options).tokenize();this._tag_stack=new de(Q);for(var R=null,se=E.next();se.type!==V.EOF;)se.type===V.TAG_OPEN||se.type===V.COMMENT?(R=this._handle_tag_open(Q,se,J,X,E),J=R):se.type===V.ATTRIBUTE||se.type===V.EQUALS||se.type===V.VALUE||se.type===V.TEXT&&!J.tag_complete?R=this._handle_inside_tag(Q,se,J,X):se.type===V.TAG_CLOSE?R=this._handle_tag_close(Q,se,J):se.type===V.TEXT?R=this._handle_text(Q,se,J):se.type===V.CONTROL_FLOW_OPEN?R=this._handle_control_flow_open(Q,se):se.type===V.CONTROL_FLOW_CLOSE?R=this._handle_control_flow_close(Q,se):Q.add_raw_token(se),X=R,se=E.next();var we=Q._output.get_code(B);return we},Ie.prototype._handle_control_flow_open=function(ee,B){var A={text:B.text,type:B.type};return ee.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),B.newlines?ee.print_preserved_newlines(B):ee.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),ee.print_token(B),ee.indent(),A},Ie.prototype._handle_control_flow_close=function(ee,B){var A={text:B.text,type:B.type};return ee.deindent(),B.newlines?ee.print_preserved_newlines(B):ee.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),ee.print_token(B),A},Ie.prototype._handle_tag_close=function(ee,B,A){var X={text:B.text,type:B.type};return ee.alignment_size=0,A.tag_complete=!0,ee.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),A.is_unformatted?ee.add_raw_token(B):(A.tag_start_char==="<"&&(ee.set_space_before_token(B.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&A.has_wrapped_attrs&&ee.print_newline(!1)),ee.print_token(B)),A.indent_content&&!(A.is_unformatted||A.is_content_unformatted)&&(ee.indent(),A.indent_content=!1),!A.is_inline_element&&!(A.is_unformatted||A.is_content_unformatted)&&ee.set_wrap_point(),X},Ie.prototype._handle_inside_tag=function(ee,B,A,X){var J=A.has_wrapped_attrs,Q={text:B.text,type:B.type};return ee.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),A.is_unformatted?ee.add_raw_token(B):A.tag_start_char==="{"&&B.type===V.TEXT?ee.print_preserved_newlines(B)?(B.newlines=0,ee.add_raw_token(B)):ee.print_token(B):(B.type===V.ATTRIBUTE?ee.set_space_before_token(!0):(B.type===V.EQUALS||B.type===V.VALUE&&B.previous.type===V.EQUALS)&&ee.set_space_before_token(!1),B.type===V.ATTRIBUTE&&A.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ee.traverse_whitespace(B),J=J||B.newlines!==0),this._is_wrap_attributes_force&&A.attr_count>=this._options.wrap_attributes_min_attrs&&(X.type!==V.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(ee.print_newline(!1),J=!0)),ee.print_token(B),J=J||ee.previous_token_wrapped(),A.has_wrapped_attrs=J),Q},Ie.prototype._handle_text=function(ee,B,A){var X={text:B.text,type:"TK_CONTENT"};return A.custom_beautifier_name?this._print_custom_beatifier_text(ee,B,A):A.is_unformatted||A.is_content_unformatted?ee.add_raw_token(B):(ee.traverse_whitespace(B),ee.print_token(B)),X},Ie.prototype._print_custom_beatifier_text=function(ee,B,A){var X=this;if(B.text!==""){var J=B.text,Q,E=1,R="",se="";A.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Q=this._js_beautify:A.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Q=this._css_beautify:A.custom_beautifier_name==="html"&&(Q=function(Qe,it){var De=new Ie(Qe,it,X._js_beautify,X._css_beautify);return De.beautify()}),this._options.indent_scripts==="keep"?E=0:this._options.indent_scripts==="separate"&&(E=-ee.indent_level);var we=ee.get_full_indent(E);if(J=J.replace(/\n[ \t]*$/,""),A.custom_beautifier_name!=="html"&&J[0]==="<"&&J.match(/^(<!--|<!\[CDATA\[)/)){var Ve=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(J);if(!Ve){ee.add_raw_token(B);return}R=we+Ve[1]+`
|
|
|
`,J=Ve[4],Ve[5]&&(se=we+Ve[5]),J=J.replace(/\n[ \t]*$/,""),(Ve[2]||Ve[3].indexOf(`
|
|
|
`)!==-1)&&(Ve=Ve[3].match(/[ \t]+$/),Ve&&(B.whitespace_before=Ve[0]))}if(J)if(Q){var lt=function(){this.eol=`
|
|
|
`};lt.prototype=this._options.raw_options;var xe=new lt;J=Q(we+J,xe)}else{var je=B.whitespace_before;je&&(J=J.replace(new RegExp(`
|
|
|
(`+je+")?","g"),`
|
|
|
`)),J=we+J.replace(/\n/g,`
|
|
|
`+we)}R&&(J?J=R+J+`
|
|
|
`+se:J=R+se),ee.print_newline(!1),J&&(B.text=J,B.whitespace_before="",B.newlines=0,ee.add_raw_token(B),ee.print_newline(!0))}},Ie.prototype._handle_tag_open=function(ee,B,A,X,J){var Q=this._get_tag_open_token(B);if((A.is_unformatted||A.is_content_unformatted)&&!A.is_empty_element&&B.type===V.TAG_OPEN&&!Q.is_start_tag?(ee.add_raw_token(B),Q.start_tag_token=this._tag_stack.try_pop(Q.tag_name)):(ee.traverse_whitespace(B),this._set_tag_position(ee,B,Q,A,X),Q.is_inline_element||ee.set_wrap_point(),ee.print_token(B)),Q.is_start_tag&&this._is_wrap_attributes_force){var E=0,R;do R=J.peek(E),R.type===V.ATTRIBUTE&&(Q.attr_count+=1),E+=1;while(R.type!==V.EOF&&R.type!==V.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Q.alignment_size=B.text.length+1),!Q.tag_complete&&!Q.is_unformatted&&(ee.alignment_size=Q.alignment_size),Q};var Fe=function(ee,B,A){if(this.parent=B||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="",!A)this.tag_complete=!0;else{var X;this.tag_start_char=A.text[0],this.text=A.text,this.tag_start_char==="<"?(X=A.text.match(/^<([^\s>]*)/),this.tag_check=X?X[1]:""):(X=A.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=X?X[1]:"",(A.text.startsWith("{{#>")||A.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&A.next!==null?this.tag_check=A.next.text.split(" ")[0]:this.tag_check=A.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),A.type===V.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||A.closed&&A.closed.text==="/>";var J=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(J=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!ee.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(J)))}};Ie.prototype._get_tag_open_token=function(ee){var B=new Fe(this._options,this._tag_stack.get_parser_token(),ee);return B.alignment_size=this._options.wrap_attributes_indent_size,B.is_end_tag=B.is_end_tag||ae(B.tag_check,this._options.void_elements),B.is_empty_element=B.tag_complete||B.is_start_tag&&B.is_end_tag,B.is_unformatted=!B.tag_complete&&ae(B.tag_check,this._options.unformatted),B.is_content_unformatted=!B.is_empty_element&&ae(B.tag_check,this._options.content_unformatted),B.is_inline_element=ae(B.tag_name,this._options.inline)||this._options.inline_custom_elements&&B.tag_name.includes("-")||B.tag_start_char==="{",B},Ie.prototype._set_tag_position=function(ee,B,A,X,J){if(A.is_empty_element||(A.is_end_tag?A.start_tag_token=this._tag_stack.try_pop(A.tag_name):(this._do_optional_end_element(A)&&(A.is_inline_element||ee.print_newline(!1)),this._tag_stack.record_tag(A),(A.tag_name==="script"||A.tag_name==="style")&&!(A.is_unformatted||A.is_content_unformatted)&&(A.custom_beautifier_name=L(A.tag_check,B)))),ae(A.tag_check,this._options.extra_liners)&&(ee.print_newline(!1),ee._output.just_added_blankline()||ee.print_newline(!0)),A.is_empty_element){if(A.tag_start_char==="{"&&A.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),A.indent_content=!0;var Q=ee.current_line_has_match(/{{#if/);Q||ee.print_newline(!1)}A.tag_name==="!--"&&J.type===V.TAG_CLOSE&&X.is_end_tag&&A.text.indexOf(`
|
|
|
`)===-1||(A.is_inline_element||A.is_unformatted||ee.print_newline(!1),this._calcluate_parent_multiline(ee,A))}else if(A.is_end_tag){var E=!1;E=A.start_tag_token&&A.start_tag_token.multiline_content,E=E||!A.is_inline_element&&!(X.is_inline_element||X.is_unformatted)&&!(J.type===V.TAG_CLOSE&&A.start_tag_token===X)&&J.type!=="TK_CONTENT",(A.is_content_unformatted||A.is_unformatted)&&(E=!1),E&&ee.print_newline(!1)}else A.indent_content=!A.custom_beautifier_name,A.tag_start_char==="<"&&(A.tag_name==="html"?A.indent_content=this._options.indent_inner_html:A.tag_name==="head"?A.indent_content=this._options.indent_head_inner_html:A.tag_name==="body"&&(A.indent_content=this._options.indent_body_inner_html)),!(A.is_inline_element||A.is_unformatted)&&(J.type!=="TK_CONTENT"||A.is_content_unformatted)&&ee.print_newline(!1),this._calcluate_parent_multiline(ee,A)},Ie.prototype._calcluate_parent_multiline=function(ee,B){B.parent&&ee._output.just_added_newline()&&!((B.is_inline_element||B.is_unformatted)&&B.parent.is_inline_element)&&(B.parent.multiline_content=!0)};var _e=["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"],Te=["a","audio","del","ins","map","noscript","video"];Ie.prototype._do_optional_end_element=function(ee){var B=null;if(!(ee.is_empty_element||!ee.is_start_tag||!ee.parent)){if(ee.tag_name==="body")B=B||this._tag_stack.try_pop("head");else if(ee.tag_name==="li")B=B||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(ee.tag_name==="dd"||ee.tag_name==="dt")B=B||this._tag_stack.try_pop("dt",["dl"]),B=B||this._tag_stack.try_pop("dd",["dl"]);else if(ee.parent.tag_name==="p"&&_e.indexOf(ee.tag_name)!==-1){var A=ee.parent.parent;(!A||Te.indexOf(A.tag_name)===-1)&&(B=B||this._tag_stack.try_pop("p"))}else ee.tag_name==="rp"||ee.tag_name==="rt"?(B=B||this._tag_stack.try_pop("rt",["ruby","rtc"]),B=B||this._tag_stack.try_pop("rp",["ruby","rtc"])):ee.tag_name==="optgroup"?B=B||this._tag_stack.try_pop("optgroup",["select"]):ee.tag_name==="option"?B=B||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ee.tag_name==="colgroup"?B=B||this._tag_stack.try_pop("caption",["table"]):ee.tag_name==="thead"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"])):ee.tag_name==="tbody"||ee.tag_name==="tfoot"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"]),B=B||this._tag_stack.try_pop("thead",["table"]),B=B||this._tag_stack.try_pop("tbody",["table"])):ee.tag_name==="tr"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"]),B=B||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(ee.tag_name==="th"||ee.tag_name==="td")&&(B=B||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),B=B||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ee.parent=this._tag_stack.get_parser_token(),B}},N.exports.Beautifier=Ie},function(N,S,_){var T=_(6).Options;function k(W){T.call(this,W,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}k.prototype=new T,N.exports.Options=k},function(N,S,_){var T=_(9).Tokenizer,k=_(9).TOKEN,W=_(13).Directives,V=_(14).TemplatablePattern,$=_(12).Pattern,I={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:k.START,RAW:k.RAW,EOF:k.EOF},G=new W(/<\!--/,/-->/),F=function(L,ae){T.call(this,L,ae),this._current_tag_name="";var me=new V(this._input).read_options(this._options),de=new $(this._input);if(this.__patterns={word:me.until(/[\n\r\t <]/),word_control_flow_close_excluded:me.until(/[\n\r\t <}]/),single_quote:me.until_after(/'/),double_quote:me.until_after(/"/),attribute:me.until(/[\n\r\t =>]|\/>/),element_name:me.until(/[\n\r\t >\/]/),angular_control_flow_start:de.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:de.starting_with(/{{!--/).until_after(/--}}/),handlebars:de.starting_with(/{{/).until_after(/}}/),handlebars_open:de.until(/[\n\r\t }]/),handlebars_raw_close:de.until(/}}/),comment:de.starting_with(/<!--/).until_after(/-->/),cdata:de.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:de.starting_with(/<!\[/).until_after(/]>/),processing:de.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 Ie=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=de.matching(Ie).until_after(Ie)}};F.prototype=new T,F.prototype._is_comment=function(L){return!1},F.prototype._is_opening=function(L){return L.type===I.TAG_OPEN||L.type===I.CONTROL_FLOW_OPEN},F.prototype._is_closing=function(L,ae){return L.type===I.TAG_CLOSE&&ae&&((L.text===">"||L.text==="/>")&&ae.text[0]==="<"||L.text==="}}"&&ae.text[0]==="{"&&ae.text[1]==="{")||L.type===I.CONTROL_FLOW_CLOSE&&L.text==="}"&&ae.text.endsWith("{")},F.prototype._reset=function(){this._current_tag_name=""},F.prototype._get_next_token=function(L,ae){var me=null;this._readWhitespace();var de=this._input.peek();return de===null?this._create_token(I.EOF,""):(me=me||this._read_open_handlebars(de,ae),me=me||this._read_attribute(de,L,ae),me=me||this._read_close(de,ae),me=me||this._read_script_and_style(de,L),me=me||this._read_control_flows(de,ae),me=me||this._read_raw_content(de,L,ae),me=me||this._read_content_word(de,ae),me=me||this._read_comment_or_cdata(de),me=me||this._read_processing(de),me=me||this._read_open(de,ae),me=me||this._create_token(I.UNKNOWN,this._input.next()),me)},F.prototype._read_comment_or_cdata=function(L){var ae=null,me=null,de=null;if(L==="<"){var Ie=this._input.peek(1);Ie==="!"&&(me=this.__patterns.comment.read(),me?(de=G.get_directives(me),de&&de.ignore==="start"&&(me+=G.readIgnored(this._input))):me=this.__patterns.cdata.read()),me&&(ae=this._create_token(I.COMMENT,me),ae.directives=de)}return ae},F.prototype._read_processing=function(L){var ae=null,me=null,de=null;if(L==="<"){var Ie=this._input.peek(1);(Ie==="!"||Ie==="?")&&(me=this.__patterns.conditional_comment.read(),me=me||this.__patterns.processing.read()),me&&(ae=this._create_token(I.COMMENT,me),ae.directives=de)}return ae},F.prototype._read_open=function(L,ae){var me=null,de=null;return(!ae||ae.type===I.CONTROL_FLOW_OPEN)&&L==="<"&&(me=this._input.next(),this._input.peek()==="/"&&(me+=this._input.next()),me+=this.__patterns.element_name.read(),de=this._create_token(I.TAG_OPEN,me)),de},F.prototype._read_open_handlebars=function(L,ae){var me=null,de=null;return(!ae||ae.type===I.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)==="!"?(me=this.__patterns.handlebars_comment.read(),me=me||this.__patterns.handlebars.read(),de=this._create_token(I.COMMENT,me)):(me=this.__patterns.handlebars_open.read(),de=this._create_token(I.TAG_OPEN,me))),de},F.prototype._read_control_flows=function(L,ae){var me="",de=null;if(!this._options.templating.includes("angular"))return de;if(L==="@"){if(me=this.__patterns.angular_control_flow_start.read(),me==="")return de;for(var Ie=me.endsWith("(")?1:0,Fe=0;!(me.endsWith("{")&&Ie===Fe);){var _e=this._input.next();if(_e===null)break;_e==="("?Ie++:_e===")"&&Fe++,me+=_e}de=this._create_token(I.CONTROL_FLOW_OPEN,me)}else L==="}"&&ae&&ae.type===I.CONTROL_FLOW_OPEN&&(me=this._input.next(),de=this._create_token(I.CONTROL_FLOW_CLOSE,me));return de},F.prototype._read_close=function(L,ae){var me=null,de=null;return ae&&ae.type===I.TAG_OPEN&&(ae.text[0]==="<"&&(L===">"||L==="/"&&this._input.peek(1)===">")?(me=this._input.next(),L==="/"&&(me+=this._input.next()),de=this._create_token(I.TAG_CLOSE,me)):ae.text[0]==="{"&&L==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),de=this._create_token(I.TAG_CLOSE,"}}"))),de},F.prototype._read_attribute=function(L,ae,me){var de=null,Ie="";if(me&&me.text[0]==="<")if(L==="=")de=this._create_token(I.EQUALS,this._input.next());else if(L==='"'||L==="'"){var Fe=this._input.next();L==='"'?Fe+=this.__patterns.double_quote.read():Fe+=this.__patterns.single_quote.read(),de=this._create_token(I.VALUE,Fe)}else Ie=this.__patterns.attribute.read(),Ie&&(ae.type===I.EQUALS?de=this._create_token(I.VALUE,Ie):de=this._create_token(I.ATTRIBUTE,Ie));return de},F.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)},F.prototype._read_raw_content=function(L,ae,me){var de="";if(me&&me.text[0]==="{")de=this.__patterns.handlebars_raw_close.read();else if(ae.type===I.TAG_CLOSE&&ae.opened.text[0]==="<"&&ae.text[0]!=="/"){var Ie=ae.opened.text.substr(1).toLowerCase();this._is_content_unformatted(Ie)&&(de=this._input.readUntil(new RegExp("</"+Ie+"[\\n\\r\\t ]*?>","ig")))}return de?this._create_token(I.TEXT,de):null},F.prototype._read_script_and_style=function(L,ae){if(ae.type===I.TAG_CLOSE&&ae.opened.text[0]==="<"&&ae.text[0]!=="/"){var me=ae.opened.text.substr(1).toLowerCase();if(me==="script"||me==="style"){var de=this._read_comment_or_cdata(L);if(de)return de.type=I.TEXT,de;var Ie=this._input.readUntil(new RegExp("</"+me+"[\\n\\r\\t ]*?>","ig"));if(Ie)return this._create_token(I.TEXT,Ie)}}return null},F.prototype._read_content_word=function(L,ae){var me="";return this._options.unformatted_content_delimiter&&L===this._options.unformatted_content_delimiter[0]&&(me=this.__patterns.unformatted_content_delimiter.read()),me||(me=ae&&ae.type===I.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),me?this._create_token(I.TEXT,me):null},N.exports.Tokenizer=F,N.exports.TOKEN=I}],oe={};function l(N){var S=oe[N];if(S!==void 0)return S.exports;var _=oe[N]={exports:{}};return re[N](_,_.exports,l),_.exports}var C=l(18);j=C})();var fe=j;if(1)o=[d,d(58553),d(87804)],ne=function(re){var oe=d(58553),l=d(87804);return{html_beautify:function(C,N){return fe(C,N,oe.js_beautify,l.css_beautify)}}}.apply(gt,o),ne!==void 0&&(mn.exports=ne);else var K,g})()},58553:function(mn,gt){var d,o;(function(){var ne;(function(){"use strict";var fe=[function(oe,l,C){var N=C(1).Beautifier,S=C(5).Options;function _(T,k){var W=new N(T,k);return W.beautify()}oe.exports=_,oe.exports.defaultOptions=function(){return new S}},function(oe,l,C){var N=C(2).Output,S=C(3).Token,_=C(4),T=C(5).Options,k=C(7).Tokenizer,W=C(7).line_starters,V=C(7).positionable_operators,$=C(7).TOKEN;function I(R,se){return se.indexOf(R)!==-1}function G(R){return R.replace(/^\s+/g,"")}function F(R){for(var se={},we=0;we<R.length;we++)se[R[we].replace(/-/g,"_")]=R[we];return se}function L(R,se){return R&&R.type===$.RESERVED&&R.text===se}function ae(R,se){return R&&R.type===$.RESERVED&&I(R.text,se)}var me=["case","return","do","if","throw","else","await","break","continue","async"],de=["before-newline","after-newline","preserve-newline"],Ie=F(de),Fe=[Ie.before_newline,Ie.preserve_newline],_e={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Te(R,se){se.multiline_frame||se.mode===_e.ForInitializer||se.mode===_e.Conditional||R.remove_indent(se.start_line_index)}function ee(R){R=R.replace(_.allLineBreaks,`
|
|
|
`);for(var se=[],we=R.indexOf(`
|
|
|
`);we!==-1;)se.push(R.substring(0,we)),R=R.substring(we+1),we=R.indexOf(`
|
|
|
`);return R.length&&se.push(R),se}function B(R){return R===_e.ArrayLiteral}function A(R){return I(R,[_e.Expression,_e.ForInitializer,_e.Conditional])}function X(R,se){for(var we=0;we<R.length;we++){var Ve=R[we].trim();if(Ve.charAt(0)!==se)return!1}return!0}function J(R,se){for(var we=0,Ve=R.length,lt;we<Ve;we++)if(lt=R[we],lt&<.indexOf(se)!==0)return!1;return!0}function Q(R,se){se=se||{},this._source_text=R||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new T(se)}Q.prototype.create_flags=function(R,se){var we=0;R&&(we=R.indentation_level,!this._output.just_added_newline()&&R.line_indent_level>we&&(we=R.line_indent_level));var Ve={mode:se,parent:R,last_token:R?R.last_token:new S($.START_BLOCK,""),last_word:R?R.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:we,alignment:0,line_indent_level:R?R.line_indent_level:we,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ve},Q.prototype._reset=function(R){var se=R.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new N(this._options,se),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(_e.BlockStatement);var we=new k(R,this._options);return this._tokens=we.tokenize(),R},Q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R,se=this._reset(this._source_text),we=this._options.eol;this._options.eol==="auto"&&(we=`
|
|
|
`,se&&_.lineBreak.test(se||"")&&(we=se.match(_.lineBreak)[0]));for(var Ve=this._tokens.next();Ve;)this.handle_token(Ve),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ve,Ve=this._tokens.next();return R=this._output.get_code(we),R},Q.prototype.handle_token=function(R,se){R.type===$.START_EXPR?this.handle_start_expr(R):R.type===$.END_EXPR?this.handle_end_expr(R):R.type===$.START_BLOCK?this.handle_start_block(R):R.type===$.END_BLOCK?this.handle_end_block(R):R.type===$.WORD?this.handle_word(R):R.type===$.RESERVED?this.handle_word(R):R.type===$.SEMICOLON?this.handle_semicolon(R):R.type===$.STRING?this.handle_string(R):R.type===$.EQUALS?this.handle_equals(R):R.type===$.OPERATOR?this.handle_operator(R):R.type===$.COMMA?this.handle_comma(R):R.type===$.BLOCK_COMMENT?this.handle_block_comment(R,se):R.type===$.COMMENT?this.handle_comment(R,se):R.type===$.DOT?this.handle_dot(R):R.type===$.EOF?this.handle_eof(R):R.type===$.UNKNOWN?this.handle_unknown(R,se):this.handle_unknown(R,se)},Q.prototype.handle_whitespace_and_comments=function(R,se){var we=R.newlines,Ve=this._options.keep_array_indentation&&B(this._flags.mode);if(R.comments_before)for(var lt=R.comments_before.next();lt;)this.handle_whitespace_and_comments(lt,se),this.handle_token(lt,se),lt=R.comments_before.next();if(Ve)for(var xe=0;xe<we;xe+=1)this.print_newline(xe>0,se);else if(this._options.max_preserve_newlines&&we>this._options.max_preserve_newlines&&(we=this._options.max_preserve_newlines),this._options.preserve_newlines&&we>1){this.print_newline(!1,se);for(var je=1;je<we;je+=1)this.print_newline(!0,se)}};var E=["async","break","continue","return","throw","yield"];Q.prototype.allow_wrap_or_preserved_newline=function(R,se){if(se=se===void 0?!1:se,!this._output.just_added_newline()){var we=this._options.preserve_newlines&&R.newlines||se,Ve=I(this._flags.last_token.text,V)||I(R.text,V);if(Ve){var lt=I(this._flags.last_token.text,V)&&I(this._options.operator_position,Fe)||I(R.text,V);we=we&<}if(we)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(ae(this._flags.last_token,E))return;this._output.set_wrap_point()}}},Q.prototype.print_newline=function(R,se){if(!se&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==$.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var we=this._tokens.peek();this._flags.mode===_e.Statement&&!(this._flags.if_block&&L(we,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(R)&&(this._flags.multiline_frame=!0)},Q.prototype.print_token_line_indentation=function(R){this._output.just_added_newline()&&(this._options.keep_array_indentation&&R.newlines&&(R.text==="["||B(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(R.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))},Q.prototype.print_token=function(R){if(this._output.raw){this._output.add_raw_token(R);return}if(this._options.comma_first&&R.previous&&R.previous.type===$.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var se=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(se),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(R),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(R),this._output.non_breaking_space=!0,this._output.add_token(R.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},Q.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.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))},Q.prototype.set_mode=function(R){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,R),this._flags=this.create_flags(this._previous_flags,R),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===_e.Statement&&Te(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Q.prototype.start_of_object_property=function(){return this._flags.parent.mode===_e.ObjectLiteral&&this._flags.mode===_e.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ae(this._flags.last_token,["get","set"]))},Q.prototype.start_of_statement=function(R){var se=!1;return se=se||ae(this._flags.last_token,["var","let","const"])&&R.type===$.WORD,se=se||L(this._flags.last_token,"do"),se=se||!(this._flags.parent.mode===_e.ObjectLiteral&&this._flags.mode===_e.Statement)&&ae(this._flags.last_token,E)&&!R.newlines,se=se||L(this._flags.last_token,"else")&&!(L(R,"if")&&!R.comments_before),se=se||this._flags.last_token.type===$.END_EXPR&&(this._previous_flags.mode===_e.ForInitializer||this._previous_flags.mode===_e.Conditional),se=se||this._flags.last_token.type===$.WORD&&this._flags.mode===_e.BlockStatement&&!this._flags.in_case&&!(R.text==="--"||R.text==="++")&&this._last_last_text!=="function"&&R.type!==$.WORD&&R.type!==$.RESERVED,se=se||this._flags.mode===_e.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ae(this._flags.last_token,["get","set"])),se?(this.set_mode(_e.Statement),this.indent(),this.handle_whitespace_and_comments(R,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R,ae(R,["do","for","if","while"])),!0):!1},Q.prototype.handle_start_expr=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R);var se=_e.Expression;if(R.text==="["){if(this._flags.last_token.type===$.WORD||this._flags.last_token.text===")"){ae(this._flags.last_token,W)&&(this._output.space_before_token=!0),this.print_token(R),this.set_mode(se),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}se=_e.ArrayLiteral,B(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()),I(this._flags.last_token.type,[$.START_EXPR,$.END_EXPR,$.WORD,$.OPERATOR,$.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===$.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,se=_e.ForInitializer):I(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,se=_e.Conditional):I(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&R.whitespace_before===""?this._output.space_before_token=!1:(I(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===$.EQUALS||this._flags.last_token.type===$.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R);else if(this._flags.last_token.type===$.WORD){this._output.space_before_token=!1;var we=this._tokens.peek(-3);if(this._options.space_after_named_function&&we){var Ve=this._tokens.peek(-4);ae(we,["async","function"])||we.text==="*"&&ae(Ve,["async","function"])?this._output.space_before_token=!0:this._flags.mode===_e.ObjectLiteral?(we.text==="{"||we.text===","||we.text==="*"&&(Ve.text==="{"||Ve.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(R);(this._flags.last_token.type===$.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(I(this._last_last_text,["function","yield"])||this._flags.mode===_e.ObjectLiteral&&I(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===$.START_BLOCK?this.print_newline():(this._flags.last_token.type===$.END_EXPR||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===$.COMMA)&&this.allow_wrap_or_preserved_newline(R,R.newlines),this.print_token(R),this.set_mode(se),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},Q.prototype.handle_end_expr=function(R){for(;this._flags.mode===_e.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(R,R.text==="]"&&B(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===$.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(R),this.restore_mode(),Te(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===_e.Conditional&&(this._previous_flags.mode=_e.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},Q.prototype.handle_start_block=function(R){this.handle_whitespace_and_comments(R);var se=this._tokens.peek(),we=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===$.END_EXPR?(this.set_mode(_e.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(_e.BlockStatement):we&&(I(we.text,[":",","])&&I(se.type,[$.STRING,$.WORD,$.RESERVED])||I(se.text,["get","set","..."])&&I(we.type,[$.WORD,$.RESERVED]))?I(this._last_last_text,["class","interface"])&&!I(we.text,[":",","])?this.set_mode(_e.BlockStatement):this.set_mode(_e.ObjectLiteral):this._flags.last_token.type===$.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(_e.BlockStatement):I(this._flags.last_token.type,[$.EQUALS,$.START_EXPR,$.COMMA,$.OPERATOR])||ae(this._flags.last_token,["return","throw","import","default"])?this.set_mode(_e.ObjectLiteral):this.set_mode(_e.BlockStatement),this._flags.last_token&&ae(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ve=!se.comments_before&&se.text==="}",lt=Ve&&this._flags.last_word==="function"&&this._flags.last_token.type===$.END_EXPR;if(this._options.brace_preserve_inline){var xe=0,je=null;this._flags.inline_frame=!0;do if(xe+=1,je=this._tokens.peek(xe-1),je.newlines){this._flags.inline_frame=!1;break}while(je.type!==$.EOF&&!(je.type===$.END_BLOCK&&je.opened===R))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==$.OPERATOR&&(lt||this._flags.last_token.type===$.EQUALS||ae(this._flags.last_token,me)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(B(this._previous_flags.mode)&&(this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.COMMA)&&((this._flags.last_token.type===$.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(R),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==$.OPERATOR&&this._flags.last_token.type!==$.START_EXPR&&(I(this._flags.last_token.type,[$.START_BLOCK,$.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(R),this.indent(),!Ve&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},Q.prototype.handle_end_block=function(R){for(this.handle_whitespace_and_comments(R);this._flags.mode===_e.Statement;)this.restore_mode();var se=this._flags.last_token.type===$.START_BLOCK;this._flags.inline_frame&&!se?this._output.space_before_token=!0:this._options.brace_style==="expand"?se||this.print_newline():se||(B(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(R)},Q.prototype.handle_word=function(R){if(R.type===$.RESERVED){if(I(R.text,["set","get"])&&this._flags.mode!==_e.ObjectLiteral)R.type=$.WORD;else if(R.text==="import"&&I(this._tokens.peek().text,["(","."]))R.type=$.WORD;else if(I(R.text,["as","from"])&&!this._flags.import_block)R.type=$.WORD;else if(this._flags.mode===_e.ObjectLiteral){var se=this._tokens.peek();se.text===":"&&(R.type=$.WORD)}}if(this.start_of_statement(R)?ae(this._flags.last_token,["var","let","const"])&&R.type===$.WORD&&(this._flags.declaration_statement=!0):R.newlines&&!A(this._flags.mode)&&(this._flags.last_token.type!==$.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==$.EQUALS&&(this._options.preserve_newlines||!ae(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(R),this.print_newline()):this.handle_whitespace_and_comments(R),this._flags.do_block&&!this._flags.do_while)if(L(R,"while")){this._output.space_before_token=!0,this.print_token(R),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(R,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===_e.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ae(R,["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(R),this._flags.in_case=!0;return}if((this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.EQUALS||this._flags.last_token.type===$.OPERATOR)&&!this.start_of_object_property()&&!(I(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===_e.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(R),L(R,"function")){(I(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(I(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===$.OPERATOR))&&!this._output.just_added_blankline()&&!R.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD?ae(this._flags.last_token,["get","set","new","export"])||ae(this._flags.last_token,E)?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===$.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(A(this._flags.mode)||B(this._flags.mode))||this.print_newline(),this.print_token(R),this._flags.last_word=R.text;return}var we="NONE";if(this._flags.last_token.type===$.END_BLOCK?this._previous_flags.inline_frame?we="SPACE":ae(R,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines?we="NEWLINE":(we="SPACE",this._output.space_before_token=!0):we="NEWLINE":this._flags.last_token.type===$.SEMICOLON&&this._flags.mode===_e.BlockStatement?we="NEWLINE":this._flags.last_token.type===$.SEMICOLON&&A(this._flags.mode)?we="SPACE":this._flags.last_token.type===$.STRING?we="NEWLINE":this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD||this._flags.last_token.text==="*"&&(I(this._last_last_text,["function","yield"])||this._flags.mode===_e.ObjectLiteral&&I(this._last_last_text,["{",","]))?we="SPACE":this._flags.last_token.type===$.START_BLOCK?this._flags.inline_frame?we="SPACE":we="NEWLINE":this._flags.last_token.type===$.END_EXPR&&(this._output.space_before_token=!0,we="NEWLINE"),ae(R,W)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?we="SPACE":we="NEWLINE"),ae(R,["else","catch","finally"]))if((!(this._flags.last_token.type===$.END_BLOCK&&this._previous_flags.mode===_e.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ve=this._output.current_line;Ve.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else we==="NEWLINE"?ae(this._flags.last_token,me)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ae(R,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==$.END_EXPR?(this._flags.last_token.type!==$.START_EXPR||!ae(R,["var","let","const"]))&&this._flags.last_token.text!==":"&&(L(R,"if")&&L(R.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ae(R,W)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&B(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():we==="SPACE"&&(this._output.space_before_token=!0);R.previous&&(R.previous.type===$.WORD||R.previous.type===$.RESERVED)&&(this._output.space_before_token=!0),this.print_token(R),this._flags.last_word=R.text,R.type===$.RESERVED&&(R.text==="do"?this._flags.do_block=!0:R.text==="if"?this._flags.if_block=!0:R.text==="import"?this._flags.import_block=!0:this._flags.import_block&&L(R,"from")&&(this._flags.import_block=!1))},Q.prototype.handle_semicolon=function(R){this.start_of_statement(R)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(R);for(var se=this._tokens.peek();this._flags.mode===_e.Statement&&!(this._flags.if_block&&L(se,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(R)},Q.prototype.handle_string=function(R){R.text.startsWith("`")&&R.newlines===0&&R.whitespace_before===""&&(R.previous.text===")"||this._flags.last_token.type===$.WORD)||(this.start_of_statement(R)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(R),this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.EQUALS||this._flags.last_token.type===$.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R):R.text.startsWith("`")&&this._flags.last_token.type===$.END_EXPR&&(R.previous.text==="]"||R.previous.text===")")&&R.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(R)},Q.prototype.handle_equals=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0},Q.prototype.handle_comma=function(R){this.handle_whitespace_and_comments(R,!0),this.print_token(R),this._output.space_before_token=!0,this._flags.declaration_statement?(A(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(R)):this._flags.mode===_e.ObjectLiteral||this._flags.mode===_e.Statement&&this._flags.parent.mode===_e.ObjectLiteral?(this._flags.mode===_e.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)},Q.prototype.handle_operator=function(R){var se=R.text==="*"&&(ae(this._flags.last_token,["function","yield"])||I(this._flags.last_token.type,[$.START_BLOCK,$.COMMA,$.END_BLOCK,$.SEMICOLON])),we=I(R.text,["-","+"])&&(I(this._flags.last_token.type,[$.START_BLOCK,$.START_EXPR,$.EQUALS,$.OPERATOR])||I(this._flags.last_token.text,W)||this._flags.last_token.text===",");if(!this.start_of_statement(R)){var Ve=!se;this.handle_whitespace_and_comments(R,Ve)}if(R.text==="*"&&this._flags.last_token.type===$.DOT){this.print_token(R);return}if(R.text==="::"){this.print_token(R);return}if(I(R.text,["-","+"])&&this.start_of_object_property()){this.print_token(R);return}if(this._flags.last_token.type===$.OPERATOR&&I(this._options.operator_position,Fe)&&this.allow_wrap_or_preserved_newline(R),R.text===":"&&this._flags.in_case){this.print_token(R),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==$.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 lt=!0,xe=!0,je=!1;if(R.text===":"?this._flags.ternary_depth===0?lt=!1:(this._flags.ternary_depth-=1,je=!0):R.text==="?"&&(this._flags.ternary_depth+=1),!we&&!se&&this._options.preserve_newlines&&I(R.text,V)){var Qe=R.text===":",it=Qe&&je,De=Qe&&!je;switch(this._options.operator_position){case Ie.before_newline:this._output.space_before_token=!De,this.print_token(R),(!Qe||it)&&this.allow_wrap_or_preserved_newline(R),this._output.space_before_token=!0;return;case Ie.after_newline:this._output.space_before_token=!0,!Qe||it?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(R):this._output.space_before_token=!1,this.print_token(R),this._output.space_before_token=!0;return;case Ie.preserve_newline:De||this.allow_wrap_or_preserved_newline(R),lt=!(this._output.just_added_newline()||De),this._output.space_before_token=lt,this.print_token(R),this._output.space_before_token=!0;return}}if(se){this.allow_wrap_or_preserved_newline(R),lt=!1;var wt=this._tokens.peek();xe=wt&&I(wt.type,[$.WORD,$.RESERVED])}else if(R.text==="...")this.allow_wrap_or_preserved_newline(R),lt=this._flags.last_token.type===$.START_BLOCK,xe=!1;else if(I(R.text,["--","++","!","~"])||we){if((this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR)&&this.allow_wrap_or_preserved_newline(R),lt=!1,xe=!1,R.newlines&&(R.text==="--"||R.text==="++"||R.text==="~")){var et=ae(this._flags.last_token,me)&&R.newlines;et&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(et,!0)}this._flags.last_token.text===";"&&A(this._flags.mode)&&(lt=!0),this._flags.last_token.type===$.RESERVED?lt=!0:this._flags.last_token.type===$.END_EXPR?lt=!(this._flags.last_token.text==="]"&&(R.text==="--"||R.text==="++")):this._flags.last_token.type===$.OPERATOR&&(lt=I(R.text,["--","-","++","+"])&&I(this._flags.last_token.text,["--","-","++","+"]),I(R.text,["+","-"])&&I(this._flags.last_token.text,["--","++"])&&(xe=!0)),(this._flags.mode===_e.BlockStatement&&!this._flags.inline_frame||this._flags.mode===_e.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||lt,this.print_token(R),this._output.space_before_token=xe},Q.prototype.handle_block_comment=function(R,se){if(this._output.raw){this._output.add_raw_token(R),R.directives&&R.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(R.directives){this.print_newline(!1,se),this.print_token(R),R.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!_.newline.test(R.text)&&!R.newlines){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0;return}else this.print_block_commment(R,se)},Q.prototype.print_block_commment=function(R,se){var we=ee(R.text),Ve,lt=!1,xe=!1,je=R.whitespace_before,Qe=je.length;if(this.print_newline(!1,se),this.print_token_line_indentation(R),this._output.add_token(we[0]),this.print_newline(!1,se),we.length>1){for(we=we.slice(1),lt=X(we,"*"),xe=J(we,je),lt&&(this._flags.alignment=1),Ve=0;Ve<we.length;Ve++)lt?(this.print_token_line_indentation(R),this._output.add_token(G(we[Ve]))):xe&&we[Ve]?(this.print_token_line_indentation(R),this._output.add_token(we[Ve].substring(Qe))):(this._output.current_line.set_indent(-1),this._output.add_token(we[Ve])),this.print_newline(!1,se);this._flags.alignment=0}},Q.prototype.handle_comment=function(R,se){R.newlines?this.print_newline(!1,se):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(R),this.print_newline(!1,se)},Q.prototype.handle_dot=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),ae(this._flags.last_token,me)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(R,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(R)},Q.prototype.handle_unknown=function(R,se){this.print_token(R),R.text[R.text.length-1]===`
|
|
|
`&&this.print_newline(!1,se)},Q.prototype.handle_eof=function(R){for(;this._flags.mode===_e.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R)},oe.exports.Beautifier=Q},function(oe){function l(S){this.__parent=S,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var S=new l(this.__parent);return S.set_indent(this.__indent_count,this.__alignment_count),S},l.prototype.item=function(S){return S<0?this.__items[this.__items.length+S]:this.__items[S]},l.prototype.has_match=function(S){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(S))return!0;return!1},l.prototype.set_indent=function(S,_){this.is_empty()&&(this.__indent_count=S||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var S=this.__parent.current_line;return S.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),S.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),S.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,S.__items[0]===" "&&(S.__items.splice(0,1),S.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(S){this.__items.push(S);var _=S.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=S.length-_:this.__character_count+=S.length},l.prototype.pop=function(){var S=null;return this.is_empty()||(S=this.__items.pop(),this.__character_count-=S.length),S},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var S="";return this.is_empty()?this.__parent.indent_empty_lines&&(S=this.__parent.get_indent_string(this.__indent_count)):(S=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),S+=this.__items.join("")),S};function C(S,_){this.__cache=[""],this.__indent_size=S.indent_size,this.__indent_string=S.indent_char,S.indent_with_tabs||(this.__indent_string=new Array(S.indent_size+1).join(S.indent_char)),_=_||"",S.indent_level>0&&(_=new Array(S.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}C.prototype.get_indent_size=function(S,_){var T=this.__base_string_length;return _=_||0,S<0&&(T=0),T+=S*this.__indent_size,T+=_,T},C.prototype.get_indent_string=function(S,_){var T=this.__base_string;return _=_||0,S<0&&(S=0,T=""),_+=S*this.__indent_size,this.__ensure_cache(_),T+=this.__cache[_],T},C.prototype.__ensure_cache=function(S){for(;S>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var S=this.__cache.length,_=0,T="";this.__indent_size&&S>=this.__indent_size&&(_=Math.floor(S/this.__indent_size),S-=_*this.__indent_size,T=new Array(_+1).join(this.__indent_string)),S&&(T+=new Array(S+1).join(" ")),this.__cache.push(T)};function N(S,_){this.__indent_cache=new C(S,_),this.raw=!1,this._end_with_newline=S.end_with_newline,this.indent_size=S.indent_size,this.wrap_line_length=S.wrap_line_length,this.indent_empty_lines=S.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(S,_){return this.__indent_cache.get_indent_string(S,_)},N.prototype.get_indent_size=function(S,_){return this.__indent_cache.get_indent_size(S,_)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(S){return this.is_empty()||!S&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(S){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var T=this.__lines.join(`
|
|
|
`);return S!==`
|
|
|
`&&(T=T.replace(/[\n]/g,S)),T},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(S,_){return S=S||0,_=_||0,this.next_line.set_indent(S,_),this.__lines.length>1?(this.current_line.set_indent(S,_),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(S){for(var _=0;_<S.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(S.whitespace_before),this.current_line.push(S.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(S){this.__add_space_before_token(),this.current_line.push(S),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.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(" "))},N.prototype.remove_indent=function(S){for(var _=this.__lines.length;S<_;)this.__lines[S]._remove_indent(),S++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(S){for(S=S===void 0?!1:S,this.current_line.trim();S&&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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(S,_){for(var T=this.__lines.length-2;T>=0;){var k=this.__lines[T];if(k.is_empty())break;if(k.item(0).indexOf(S)!==0&&k.item(-1)!==_){this.__lines.splice(T+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}T--}},oe.exports.Output=N},function(oe){function l(C,N,S,_){this.type=C,this.text=N,this.comments_before=null,this.newlines=S||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}oe.exports.Token=l},function(oe,l){var C="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",S="\\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",_="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",T="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",k="(?:"+T+"|["+C+S+"])",W="(?:"+T+"|["+N+S+_+"])*";l.identifier=new RegExp(k+W,"g"),l.identifierStart=new RegExp(k),l.identifierMatch=new RegExp("(?:"+T+"|["+N+S+_+"])+");var V=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;l.newline=/[\n\r\u2028\u2029]/,l.lineBreak=new RegExp(`\r
|
|
|
|`+l.newline.source),l.allLineBreaks=new RegExp(l.lineBreak.source,"g")},function(oe,l,C){var N=C(6).Options,S=["before-newline","after-newline","preserve-newline"];function _(T){N.call(this,T,"js");var k=this.raw_options.brace_style||null;k==="expand-strict"?this.raw_options.brace_style="expand":k==="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 V=0;V<W.length;V++)W[V]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=W[V];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",S),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}_.prototype=new N,oe.exports.Options=_},function(oe){function l(S,_){this.raw_options=C(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"])}l.prototype._get_array=function(S,_){var T=this.raw_options[S],k=_||[];return typeof T=="object"?T!==null&&typeof T.concat=="function"&&(k=T.concat()):typeof T=="string"&&(k=T.split(/[^a-zA-Z0-9_\/\-]+/)),k},l.prototype._get_boolean=function(S,_){var T=this.raw_options[S],k=T===void 0?!!_:!!T;return k},l.prototype._get_characters=function(S,_){var T=this.raw_options[S],k=_||"";return typeof T=="string"&&(k=T.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),k},l.prototype._get_number=function(S,_){var T=this.raw_options[S];_=parseInt(_,10),isNaN(_)&&(_=0);var k=parseInt(T,10);return isNaN(k)&&(k=_),k},l.prototype._get_selection=function(S,_,T){var k=this._get_selection_list(S,_,T);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+S+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[S]+"'");return k[0]},l.prototype._get_selection_list=function(S,_,T){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(T=T||[_[0]],!this._is_valid_selection(T,_))throw new Error("Invalid Default Value!");var k=this._get_array(S,T);if(!this._is_valid_selection(k,_))throw new Error("Invalid Option Value: The option '"+S+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[S]+"'");return k},l.prototype._is_valid_selection=function(S,_){return S.length&&_.length&&!S.some(function(T){return _.indexOf(T)===-1})};function C(S,_){var T={};S=N(S);var k;for(k in S)k!==_&&(T[k]=S[k]);if(_&&S[_])for(k in S[_])T[k]=S[_][k];return T}function N(S){var _={},T;for(T in S){var k=T.replace(/-/g,"_");_[k]=S[T]}return _}oe.exports.Options=l,oe.exports.normalizeOpts=N,oe.exports.mergeOpts=C},function(oe,l,C){var N=C(8).InputScanner,S=C(9).Tokenizer,_=C(9).TOKEN,T=C(13).Directives,k=C(4),W=C(12).Pattern,V=C(14).TemplatablePattern;function $(X,J){return J.indexOf(X)!==-1}var I={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:_.START,RAW:_.RAW,EOF:_.EOF},G=new T(/\/\*/,/\*\//),F=/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\.]/,me=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),de=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";de=de.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),de="\\?\\.(?!\\d) "+de,de=de.replace(/ /g,"|");var Ie=new RegExp(de),Fe="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),_e=Fe.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Te=new RegExp("^(?:"+_e.join("|")+")$"),ee,B=function(X,J){S.call(this,X,J),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var Q=new W(this._input),E=new V(this._input).read_options(this._options);this.__patterns={template:E,identifier:E.starting_with(k.identifier).matching(k.identifierMatch),number:Q.matching(F),punct:Q.matching(Ie),comment:Q.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:Q.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:Q.matching(/<!--/),html_comment_end:Q.matching(/-->/),include:Q.starting_with(/#include/).until_after(k.lineBreak),shebang:Q.starting_with(/#!/).until_after(k.lineBreak),xml:Q.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:E.until(/['\\\n\r\u2028\u2029]/),double_quote:E.until(/["\\\n\r\u2028\u2029]/),template_text:E.until(/[`\\$]/),template_expression:E.until(/[`}\\]/)}};B.prototype=new S,B.prototype._is_comment=function(X){return X.type===I.COMMENT||X.type===I.BLOCK_COMMENT||X.type===I.UNKNOWN},B.prototype._is_opening=function(X){return X.type===I.START_BLOCK||X.type===I.START_EXPR},B.prototype._is_closing=function(X,J){return(X.type===I.END_BLOCK||X.type===I.END_EXPR)&&J&&(X.text==="]"&&J.text==="["||X.text===")"&&J.text==="("||X.text==="}"&&J.text==="{")},B.prototype._reset=function(){ee=!1},B.prototype._get_next_token=function(X,J){var Q=null;this._readWhitespace();var E=this._input.peek();return E===null?this._create_token(I.EOF,""):(Q=Q||this._read_non_javascript(E),Q=Q||this._read_string(E),Q=Q||this._read_pair(E,this._input.peek(1)),Q=Q||this._read_word(X),Q=Q||this._read_singles(E),Q=Q||this._read_comment(E),Q=Q||this._read_regexp(E,X),Q=Q||this._read_xml(E,X),Q=Q||this._read_punctuation(),Q=Q||this._create_token(I.UNKNOWN,this._input.next()),Q)},B.prototype._read_word=function(X){var J;if(J=this.__patterns.identifier.read(),J!=="")return J=J.replace(k.allLineBreaks,`
|
|
|
`),!(X.type===I.DOT||X.type===I.RESERVED&&(X.text==="set"||X.text==="get"))&&Te.test(J)?(J==="in"||J==="of")&&(X.type===I.WORD||X.type===I.STRING)?this._create_token(I.OPERATOR,J):this._create_token(I.RESERVED,J):this._create_token(I.WORD,J);if(J=this.__patterns.number.read(),J!=="")return this._create_token(I.WORD,J)},B.prototype._read_singles=function(X){var J=null;return X==="("||X==="["?J=this._create_token(I.START_EXPR,X):X===")"||X==="]"?J=this._create_token(I.END_EXPR,X):X==="{"?J=this._create_token(I.START_BLOCK,X):X==="}"?J=this._create_token(I.END_BLOCK,X):X===";"?J=this._create_token(I.SEMICOLON,X):X==="."&&ae.test(this._input.peek(1))?J=this._create_token(I.DOT,X):X===","&&(J=this._create_token(I.COMMA,X)),J&&this._input.next(),J},B.prototype._read_pair=function(X,J){var Q=null;return X==="#"&&J==="{"&&(Q=this._create_token(I.START_BLOCK,X+J)),Q&&(this._input.next(),this._input.next()),Q},B.prototype._read_punctuation=function(){var X=this.__patterns.punct.read();if(X!=="")return X==="="?this._create_token(I.EQUALS,X):X==="?."?this._create_token(I.DOT,X):this._create_token(I.OPERATOR,X)},B.prototype._read_non_javascript=function(X){var J="";if(X==="#"){if(this._is_first_token()&&(J=this.__patterns.shebang.read(),J))return this._create_token(I.UNKNOWN,J.trim()+`
|
|
|
`);if(J=this.__patterns.include.read(),J)return this._create_token(I.UNKNOWN,J.trim()+`
|
|
|
`);X=this._input.next();var Q="#";if(this._input.hasNext()&&this._input.testChar(L)){do X=this._input.next(),Q+=X;while(this._input.hasNext()&&X!=="#"&&X!=="=");return X==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(Q+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(Q+="{}",this._input.next(),this._input.next())),this._create_token(I.WORD,Q)}this._input.back()}else if(X==="<"&&this._is_first_token()){if(J=this.__patterns.html_comment_start.read(),J){for(;this._input.hasNext()&&!this._input.testChar(k.newline);)J+=this._input.next();return ee=!0,this._create_token(I.COMMENT,J)}}else if(ee&&X==="-"&&(J=this.__patterns.html_comment_end.read(),J))return ee=!1,this._create_token(I.COMMENT,J);return null},B.prototype._read_comment=function(X){var J=null;if(X==="/"){var Q="";if(this._input.peek(1)==="*"){Q=this.__patterns.block_comment.read();var E=G.get_directives(Q);E&&E.ignore==="start"&&(Q+=G.readIgnored(this._input)),Q=Q.replace(k.allLineBreaks,`
|
|
|
`),J=this._create_token(I.BLOCK_COMMENT,Q),J.directives=E}else this._input.peek(1)==="/"&&(Q=this.__patterns.comment.read(),J=this._create_token(I.COMMENT,Q))}return J},B.prototype._read_string=function(X){if(X==="`"||X==="'"||X==='"'){var J=this._input.next();return this.has_char_escapes=!1,X==="`"?J+=this._read_string_recursive("`",!0,"${"):J+=this._read_string_recursive(X),this.has_char_escapes&&this._options.unescape_strings&&(J=A(J)),this._input.peek()===X&&(J+=this._input.next()),J=J.replace(k.allLineBreaks,`
|
|
|
`),this._create_token(I.STRING,J)}return null},B.prototype._allow_regexp_or_xml=function(X){return X.type===I.RESERVED&&$(X.text,["return","case","throw","else","do","typeof","yield"])||X.type===I.END_EXPR&&X.text===")"&&X.opened.previous.type===I.RESERVED&&$(X.opened.previous.text,["if","while","for"])||$(X.type,[I.COMMENT,I.START_EXPR,I.START_BLOCK,I.START,I.END_BLOCK,I.OPERATOR,I.EQUALS,I.EOF,I.SEMICOLON,I.COMMA])},B.prototype._read_regexp=function(X,J){if(X==="/"&&this._allow_regexp_or_xml(J)){for(var Q=this._input.next(),E=!1,R=!1;this._input.hasNext()&&(E||R||this._input.peek()!==X)&&!this._input.testChar(k.newline);)Q+=this._input.peek(),E?E=!1:(E=this._input.peek()==="\\",this._input.peek()==="["?R=!0:this._input.peek()==="]"&&(R=!1)),this._input.next();return this._input.peek()===X&&(Q+=this._input.next(),Q+=this._input.read(k.identifier)),this._create_token(I.STRING,Q)}return null},B.prototype._read_xml=function(X,J){if(this._options.e4x&&X==="<"&&this._allow_regexp_or_xml(J)){var Q="",E=this.__patterns.xml.read_match();if(E){for(var R=E[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),se=R.indexOf("{")===0,we=0;E;){var Ve=!!E[1],lt=E[2],xe=!!E[E.length-1]||lt.slice(0,8)==="![CDATA[";if(!xe&&(lt===R||se&<.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ve?--we:++we),Q+=E[0],we<=0)break;E=this.__patterns.xml.read_match()}return E||(Q+=this._input.match(/[\s\S]*/g)[0]),Q=Q.replace(k.allLineBreaks,`
|
|
|
`),this._create_token(I.STRING,Q)}}return null};function A(X){for(var J="",Q=0,E=new N(X),R=null;E.hasNext();)if(R=E.match(/([\s]|[^\\]|\\\\)+/g),R&&(J+=R[0]),E.peek()==="\\"){if(E.next(),E.peek()==="x")R=E.match(/x([0-9A-Fa-f]{2})/g);else if(E.peek()==="u")R=E.match(/u([0-9A-Fa-f]{4})/g),R||(R=E.match(/u\{([0-9A-Fa-f]+)\}/g));else{J+="\\",E.hasNext()&&(J+=E.next());continue}if(!R||(Q=parseInt(R[1],16),Q>126&&Q<=255&&R[0].indexOf("x")===0))return X;Q>=0&&Q<32||Q>1114111?J+="\\"+R[0]:Q===34||Q===39||Q===92?J+="\\"+String.fromCharCode(Q):J+=String.fromCharCode(Q)}return J}B.prototype._read_string_recursive=function(X,J,Q){var E,R;X==="'"?R=this.__patterns.single_quote:X==='"'?R=this.__patterns.double_quote:X==="`"?R=this.__patterns.template_text:X==="}"&&(R=this.__patterns.template_expression);for(var se=R.read(),we="";this._input.hasNext();){if(we=this._input.next(),we===X||!J&&k.newline.test(we)){this._input.back();break}else we==="\\"&&this._input.hasNext()?(E=this._input.peek(),E==="x"||E==="u"?this.has_char_escapes=!0:E==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),we+=this._input.next()):Q&&(Q==="${"&&we==="$"&&this._input.peek()==="{"&&(we+=this._input.next()),Q===we&&(X==="`"?we+=this._read_string_recursive("}",J,"`"):we+=this._read_string_recursive("`",J,"${"),this._input.hasNext()&&(we+=this._input.next())));we+=R.read(),se+=we}return se},oe.exports.Tokenizer=B,oe.exports.TOKEN=I,oe.exports.positionable_operators=me.slice(),oe.exports.line_starters=Fe.slice()},function(oe){var l=RegExp.prototype.hasOwnProperty("sticky");function C(N){this.__input=N||"",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 N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},C.prototype.peek=function(N){var S=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(S=this.__input.charAt(N)),S},C.prototype.__match=function(N,S){N.lastIndex=S;var _=N.exec(this.__input);return _&&!(l&&N.sticky)&&_.index!==S&&(_=null),_},C.prototype.test=function(N,S){return S=S||0,S+=this.__position,S>=0&&S<this.__input_length?!!this.__match(N,S):!1},C.prototype.testChar=function(N,S){var _=this.peek(S);return N.lastIndex=0,_!==null&&N.test(_)},C.prototype.match=function(N){var S=this.__match(N,this.__position);return S?this.__position+=S[0].length:S=null,S},C.prototype.read=function(N,S,_){var T="",k;return N&&(k=this.match(N),k&&(T+=k[0])),S&&(k||!N)&&(T+=this.readUntil(S,_)),T},C.prototype.readUntil=function(N,S){var _="",T=this.__position;N.lastIndex=this.__position;var k=N.exec(this.__input);return k?(T=k.index,S&&(T+=k[0].length)):T=this.__input_length,_=this.__input.substring(this.__position,T),this.__position=T,_},C.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},C.prototype.get_regexp=function(N,S){var _=null,T="g";return S&&l&&(T="y"),typeof N=="string"&&N!==""?_=new RegExp(N,T):N&&(_=new RegExp(N.source,T)),_},C.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(N){var S=this.__position,_=this.readUntilAfter(N);return this.__position=S,_},C.prototype.lookBack=function(N){var S=this.__position-1;return S>=N.length&&this.__input.substring(S-N.length,S).toLowerCase()===N},oe.exports.InputScanner=C},function(oe,l,C){var N=C(8).InputScanner,S=C(3).Token,_=C(10).TokenStream,T=C(11).WhitespacePattern,k={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},W=function(V,$){this._input=new N(V),this._options=$||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new T(this._input)};W.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var V,$=new S(k.START,""),I=null,G=[],F=new _;$.type!==k.EOF;){for(V=this._get_next_token($,I);this._is_comment(V);)F.add(V),V=this._get_next_token($,I);F.isEmpty()||(V.comments_before=F,F=new _),V.parent=I,this._is_opening(V)?(G.push(I),I=V):I&&this._is_closing(V,I)&&(V.opened=I,I.closed=V,I=G.pop(),V.parent=I),V.previous=$,$.next=V,this.__tokens.add(V),$=V}return this.__tokens},W.prototype._is_first_token=function(){return this.__tokens.isEmpty()},W.prototype._reset=function(){},W.prototype._get_next_token=function(V,$){this._readWhitespace();var I=this._input.read(/.+/g);return I?this._create_token(k.RAW,I):this._create_token(k.EOF,"")},W.prototype._is_comment=function(V){return!1},W.prototype._is_opening=function(V){return!1},W.prototype._is_closing=function(V,$){return!1},W.prototype._create_token=function(V,$){var I=new S(V,$,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return I},W.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},oe.exports.Tokenizer=W,oe.exports.TOKEN=k},function(oe){function l(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},l.prototype.peek=function(C){var N=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(N=this.__tokens[C]),N},l.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},oe.exports.TokenStream=l},function(oe,l,C){var N=C(12).Pattern;function S(_,T){N.call(this,_,T),T?this._line_regexp=this._input.get_regexp(T._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}S.prototype=new N,S.prototype.__set_whitespace_patterns=function(_,T){_+="\\t ",T+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+T+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+T+"]")},S.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var T=this.__split(this._newline_regexp,_);this.newline_count=T.length-1,this.whitespace_before_token=T[this.newline_count]}return _},S.prototype.matching=function(_,T){var k=this._create();return k.__set_whitespace_patterns(_,T),k._update(),k},S.prototype._create=function(){return new S(this._input,this)},S.prototype.__split=function(_,T){_.lastIndex=0;for(var k=0,W=[],V=_.exec(T);V;)W.push(T.substring(k,V.index)),k=V.index+V[0].length,V=_.exec(T);return k<T.length?W.push(T.substring(k,T.length)):W.push(""),W},oe.exports.WhitespacePattern=S},function(oe){function l(C,N){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,N&&(this._starting_pattern=this._input.get_regexp(N._starting_pattern,!0),this._match_pattern=this._input.get_regexp(N._match_pattern,!0),this._until_pattern=this._input.get_regexp(N._until_pattern),this._until_after=N._until_after)}l.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},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(C){var N=this._create();return N._until_after=!0,N._until_pattern=this._input.get_regexp(C),N._update(),N},l.prototype.until=function(C){var N=this._create();return N._until_after=!1,N._until_pattern=this._input.get_regexp(C),N._update(),N},l.prototype.starting_with=function(C){var N=this._create();return N._starting_pattern=this._input.get_regexp(C,!0),N._update(),N},l.prototype.matching=function(C){var N=this._create();return N._match_pattern=this._input.get_regexp(C,!0),N._update(),N},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},oe.exports.Pattern=l},function(oe){function l(C,N){C=typeof C=="string"?C:C.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var S=this.__directive_pattern.exec(C);S;)N[S[1]]=S[2],S=this.__directive_pattern.exec(C);return N},l.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=l},function(oe,l,C){var N=C(12).Pattern,S={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function _(T,k){N.call(this,T,k),this.__template_pattern=null,this._disabled=Object.assign({},S),this._excluded=Object.assign({},S),k&&(this.__template_pattern=this._input.get_regexp(k.__template_pattern),this._excluded=Object.assign(this._excluded,k._excluded),this._disabled=Object.assign(this._disabled,k._disabled));var W=new N(T);this.__patterns={handlebars_comment:W.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:W.starting_with(/{{{/).until_after(/}}}/),handlebars:W.starting_with(/{{/).until_after(/}}/),php:W.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:W.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:W.starting_with(/{%/).until_after(/%}/),django_value:W.starting_with(/{{/).until_after(/}}/),django_comment:W.starting_with(/{#/).until_after(/#}/),smarty:W.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:W.starting_with(/{\*/).until_after(/\*}/),smarty_literal:W.starting_with(/{literal}/).until_after(/{\/literal}/)}}_.prototype=new N,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(T){var k=this._create();return k._disabled[T]=!0,k._update(),k},_.prototype.read_options=function(T){var k=this._create();for(var W in S)k._disabled[W]=T.templating.indexOf(W)===-1;return k._update(),k},_.prototype.exclude=function(T){var k=this._create();return k._excluded[T]=!0,k._update(),k},_.prototype.read=function(){var T="";this._match_pattern?T=this._input.read(this._starting_pattern):T=this._input.read(this._starting_pattern,this.__template_pattern);for(var k=this._read_template();k;)this._match_pattern?k+=this._input.read(this._match_pattern):k+=this._input.readUntil(this.__template_pattern),T+=k,k=this._read_template();return this._until_after&&(T+=this._input.readUntilAfter(this._until_pattern)),T},_.prototype.__set_templated_pattern=function(){var T=[];this._disabled.php||T.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||T.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||T.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||T.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(T.push(this.__patterns.django._starting_pattern.source),T.push(this.__patterns.django_value._starting_pattern.source),T.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||T.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&T.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+T.join("|")+")")},_.prototype._read_template=function(){var T="",k=this._input.peek();if(k==="<"){var W=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&W==="?"&&(T=T||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&W==="%"&&(T=T||this.__patterns.erb.read())}else k==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(T=T||this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars_unescaped.read(),T=T||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(T=T||this.__patterns.django_value.read()),this._excluded.django||(T=T||this.__patterns.django_comment.read(),T=T||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(T=T||this.__patterns.smarty_comment.read(),T=T||this.__patterns.smarty_literal.read(),T=T||this.__patterns.smarty.read()));return T},oe.exports.TemplatablePattern=_}],K={};function g(oe){var l=K[oe];if(l!==void 0)return l.exports;var C=K[oe]={exports:{}};return fe[oe](C,C.exports,g),C.exports}var re=g(0);ne=re})();var j=ne;d=[],o=function(){return{js_beautify:j}}.apply(gt,d),o!==void 0&&(mn.exports=o)})()},15342:function(mn){(function(d,o){mn.exports=o()})(typeof self!="undefined"?self:this,function(){return function(gt){var d={};function o(ne){if(d[ne])return d[ne].exports;var j=d[ne]={i:ne,l:!1,exports:{}};return gt[ne].call(j.exports,j,j.exports,o),j.l=!0,j.exports}return o.m=gt,o.c=d,o.d=function(ne,j,fe){o.o(ne,j)||Object.defineProperty(ne,j,{enumerable:!0,get:fe})},o.r=function(ne){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ne,"__esModule",{value:!0})},o.t=function(ne,j){if(j&1&&(ne=o(ne)),j&8||j&4&&typeof ne=="object"&&ne&&ne.__esModule)return ne;var fe=Object.create(null);if(o.r(fe),Object.defineProperty(fe,"default",{enumerable:!0,value:ne}),j&2&&typeof ne!="string")for(var K in ne)o.d(fe,K,function(g){return ne[g]}.bind(null,K));return fe},o.n=function(ne){var j=ne&&ne.__esModule?function(){return ne.default}:function(){return ne};return o.d(j,"a",j),j},o.o=function(ne,j){return Object.prototype.hasOwnProperty.call(ne,j)},o.p="",o(o.s=1)}([function(gt,d,o){},function(gt,d,o){"use strict";o.r(d);var ne=o(0),j=function(){function U(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 U.range=function(f,h){return h?!f||!f.loc||!h.loc||f.loc.lexer!==h.loc.lexer?null:new U(f.loc.lexer,f.loc.start,h.loc.end):f&&f.loc},U}(),fe=function(){function U(f,h){this.text=void 0,this.loc=void 0,this.text=f,this.loc=h}var u=U.prototype;return u.range=function(h,y){return new U(y,j.range(this,h))},U}(),K=function U(u,f){this.position=void 0;var h="KaTeX parse error: "+u,y,O=f&&f.loc;if(O&&O.start<=O.end){var H=O.lexer.input;y=O.start;var Ae=O.end;y===H.length?h+=" at end of input: ":h+=" at position "+(y+1)+": ";var Ne=H.slice(y,Ae).replace(/[^]/g,"$&\u0332"),Je;y>15?Je="\u2026"+H.slice(y-15,y):Je=H.slice(0,y);var Ct;Ae+15<H.length?Ct=H.slice(Ae,Ae+15)+"\u2026":Ct=H.slice(Ae),h+=Je+Ne+Ct}var Pt=new Error(h);return Pt.name="ParseError",Pt.__proto__=U.prototype,Pt.position=y,Pt};K.prototype.__proto__=Error.prototype;var g=K,re=function(u,f){return u.indexOf(f)!==-1},oe=function(u,f){return u===void 0?f:u},l=/([A-Z])/g,C=function(u){return u.replace(l,"-$1").toLowerCase()},N={"&":"&",">":">","<":"<",'"':""","'":"'"},S=/[&><"']/g;function _(U){return String(U).replace(S,function(u){return N[u]})}var T=function U(u){return u.type==="ordgroup"||u.type==="color"?u.body.length===1?U(u.body[0]):u:u.type==="font"?U(u.body):u},k=function(u){var f=T(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},V=function(u){var f=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(u);return f!=null?f[1]:"_relative"},$={contains:re,deflt:oe,escape:_,hyphenate:C,getBaseElem:T,isCharacterBox:k,protocolFromUrl:V},I=function(){function U(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=$.deflt(f.displayMode,!1),this.output=$.deflt(f.output,"htmlAndMathml"),this.leqno=$.deflt(f.leqno,!1),this.fleqn=$.deflt(f.fleqn,!1),this.throwOnError=$.deflt(f.throwOnError,!0),this.errorColor=$.deflt(f.errorColor,"#cc0000"),this.macros=f.macros||{},this.minRuleThickness=Math.max(0,$.deflt(f.minRuleThickness,0)),this.colorIsTextColor=$.deflt(f.colorIsTextColor,!1),this.strict=$.deflt(f.strict,"warn"),this.trust=$.deflt(f.trust,!1),this.maxSize=Math.max(0,$.deflt(f.maxSize,1/0)),this.maxExpand=Math.max(0,$.deflt(f.maxExpand,1e3))}var u=U.prototype;return u.reportNonstrict=function(h,y,O){var H=this.strict;if(typeof H=="function"&&(H=H(h,y,O)),!(!H||H==="ignore")){if(H===!0||H==="error")throw new g("LaTeX-incompatible input and strict mode is set to 'error': "+(y+" ["+h+"]"),O);H==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(y+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+y+" ["+h+"]"))}},u.useStrictBehavior=function(h,y,O){var H=this.strict;if(typeof H=="function")try{H=H(h,y,O)}catch(Ae){H="error"}return!H||H==="ignore"?!1:H===!0||H==="error"?!0:H==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(y+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+y+" ["+h+"]")),!1)},u.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=$.protocolFromUrl(h.url));var y=typeof this.trust=="function"?this.trust(h):this.trust;return!!y},U}(),G=function(){function U(f,h,y){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=h,this.cramped=y}var u=U.prototype;return u.sup=function(){return Te[ee[this.id]]},u.sub=function(){return Te[B[this.id]]},u.fracNum=function(){return Te[A[this.id]]},u.fracDen=function(){return Te[X[this.id]]},u.cramp=function(){return Te[J[this.id]]},u.text=function(){return Te[Q[this.id]]},u.isTight=function(){return this.size>=2},U}(),F=0,L=1,ae=2,me=3,de=4,Ie=5,Fe=6,_e=7,Te=[new G(F,0,!1),new G(L,0,!0),new G(ae,1,!1),new G(me,1,!0),new G(de,2,!1),new G(Ie,2,!0),new G(Fe,3,!1),new G(_e,3,!0)],ee=[de,Ie,de,Ie,Fe,_e,Fe,_e],B=[Ie,Ie,Ie,Ie,_e,_e,_e,_e],A=[ae,me,de,Ie,Fe,_e,Fe,_e],X=[me,me,Ie,Ie,_e,_e,_e,_e],J=[L,L,me,me,Ie,Ie,_e,_e],Q=[F,L,ae,me,ae,me,ae,me],E={DISPLAY:Te[F],TEXT:Te[ae],SCRIPT:Te[de],SCRIPTSCRIPT:Te[Fe]},R=[{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 se(U){for(var u=0;u<R.length;u++)for(var f=R[u],h=0;h<f.blocks.length;h++){var y=f.blocks[h];if(U>=y[0]&&U<=y[1])return f.name}return null}var we=[];R.forEach(function(U){return U.blocks.forEach(function(u){return we.push.apply(we,u)})});function Ve(U){for(var u=0;u<we.length;u+=2)if(U>=we[u]&&U<=we[u+1])return!0;return!1}var lt=80,xe=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"},je=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"},Qe=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"},it=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"},De=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"},wt=function(u,f,h){var y=h-54-f-u;return"M702 "+(u+f)+"H400000"+(40+u)+`
|
|
|
H742v`+y+`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"},et=function(u,f,h){f=1e3*f;var y="";switch(u){case"sqrtMain":y=xe(f,lt);break;case"sqrtSize1":y=je(f,lt);break;case"sqrtSize2":y=Qe(f,lt);break;case"sqrtSize3":y=it(f,lt);break;case"sqrtSize4":y=De(f,lt);break;case"sqrtTall":y=wt(f,lt,h)}return y},Ot={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},qe=function(){function U(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=U.prototype;return u.hasClass=function(h){return $.contains(this.classes,h)},u.toNode=function(){for(var h=document.createDocumentFragment(),y=0;y<this.children.length;y++)h.appendChild(this.children[y].toNode());return h},u.toMarkup=function(){for(var h="",y=0;y<this.children.length;y++)h+=this.children[y].toMarkup();return h},u.toText=function(){var h=function(O){return O.toText()};return this.children.map(h).join("")},U}(),Xe=function(u){return u.filter(function(f){return f}).join(" ")},Ue=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 y=f.getColor();y&&(this.style.color=y)}},ke=function(u){var f=document.createElement(u);f.className=Xe(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(f.style[h]=this.style[h]);for(var y in this.attributes)this.attributes.hasOwnProperty(y)&&f.setAttribute(y,this.attributes[y]);for(var O=0;O<this.children.length;O++)f.appendChild(this.children[O].toNode());return f},ie=function(u){var f="<"+u;this.classes.length&&(f+=' class="'+$.escape(Xe(this.classes))+'"');var h="";for(var y in this.style)this.style.hasOwnProperty(y)&&(h+=$.hyphenate(y)+":"+this.style[y]+";");h&&(f+=' style="'+$.escape(h)+'"');for(var O in this.attributes)this.attributes.hasOwnProperty(O)&&(f+=" "+O+'="'+$.escape(this.attributes[O])+'"');f+=">";for(var H=0;H<this.children.length;H++)f+=this.children[H].toMarkup();return f+="</"+u+">",f},$e=function(){function U(f,h,y,O){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,Ue.call(this,f,y,O),this.children=h||[]}var u=U.prototype;return u.setAttribute=function(h,y){this.attributes[h]=y},u.hasClass=function(h){return $.contains(this.classes,h)},u.toNode=function(){return ke.call(this,"span")},u.toMarkup=function(){return ie.call(this,"span")},U}(),Pe=function(){function U(f,h,y,O){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,Ue.call(this,h,O),this.children=y||[],this.setAttribute("href",f)}var u=U.prototype;return u.setAttribute=function(h,y){this.attributes[h]=y},u.hasClass=function(h){return $.contains(this.classes,h)},u.toNode=function(){return ke.call(this,"a")},u.toMarkup=function(){return ie.call(this,"a")},U}(),z=function(){function U(f,h,y){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=y}var u=U.prototype;return u.hasClass=function(h){return $.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 y in this.style)this.style.hasOwnProperty(y)&&(h.style[y]=this.style[y]);return h},u.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",y="";for(var O in this.style)this.style.hasOwnProperty(O)&&(y+=$.hyphenate(O)+":"+this.style[O]+";");return y&&(h+=' style="'+$.escape(y)+'"'),h+="'/>",h},U}(),D={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ue=function(){function U(f,h,y,O,H,Ae,Ne,Je){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=f,this.height=h||0,this.depth=y||0,this.italic=O||0,this.skew=H||0,this.width=Ae||0,this.classes=Ne||[],this.style=Je||{},this.maxFontSize=0;var Ct=se(this.text.charCodeAt(0));Ct&&this.classes.push(Ct+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=D[this.text])}var u=U.prototype;return u.hasClass=function(h){return $.contains(this.classes,h)},u.toNode=function(){var h=document.createTextNode(this.text),y=null;this.italic>0&&(y=document.createElement("span"),y.style.marginRight=this.italic+"em"),this.classes.length>0&&(y=y||document.createElement("span"),y.className=Xe(this.classes));for(var O in this.style)this.style.hasOwnProperty(O)&&(y=y||document.createElement("span"),y.style[O]=this.style[O]);return y?(y.appendChild(h),y):h},u.toMarkup=function(){var h=!1,y="<span";this.classes.length&&(h=!0,y+=' class="',y+=$.escape(Xe(this.classes)),y+='"');var O="";this.italic>0&&(O+="margin-right:"+this.italic+"em;");for(var H in this.style)this.style.hasOwnProperty(H)&&(O+=$.hyphenate(H)+":"+this.style[H]+";");O&&(h=!0,y+=' style="'+$.escape(O)+'"');var Ae=$.escape(this.text);return h?(y+=">",y+=Ae,y+="</span>",y):Ae},U}(),ge=function(){function U(f,h){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=h||{}}var u=U.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",y=document.createElementNS(h,"svg");for(var O in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,O)&&y.setAttribute(O,this.attributes[O]);for(var H=0;H<this.children.length;H++)y.appendChild(this.children[H].toNode());return y},u.toMarkup=function(){var h="<svg";for(var y in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,y)&&(h+=" "+y+"='"+this.attributes[y]+"'");h+=">";for(var O=0;O<this.children.length;O++)h+=this.children[O].toMarkup();return h+="</svg>",h},U}(),pe=function(){function U(f,h){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=h}var u=U.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",y=document.createElementNS(h,"path");return this.alternate?y.setAttribute("d",this.alternate):y.setAttribute("d",Ot[this.pathName]),y},u.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Ot[this.pathName]+"'/>"},U}(),ye=function(){function U(f){this.attributes=void 0,this.attributes=f||{}}var u=U.prototype;return u.toNode=function(){var h="http://www.w3.org/2000/svg",y=document.createElementNS(h,"line");for(var O in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,O)&&y.setAttribute(O,this.attributes[O]);return y},u.toMarkup=function(){var h="<line";for(var y in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,y)&&(h+=" "+y+"='"+this.attributes[y]+"'");return h+="/>",h},U}();function Re(U){if(U instanceof ue)return U;throw new Error("Expected symbolNode but got "+String(U)+".")}function Ze(U){if(U instanceof $e)return U;throw new Error("Expected span<HtmlDomNode> but got "+String(U)+".")}var te={"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]}},le={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]},tt={\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 nt(U,u){te[U]=u}function ct(U,u,f){if(!te[u])throw new Error("Font metrics not found for font: "+u+".");var h=U.charCodeAt(0),y=te[u][h];if(!y&&U[0]in tt&&(h=tt[U[0]].charCodeAt(0),y=te[u][h]),!y&&f==="text"&&Ve(h)&&(y=te[u][77]),y)return{depth:y[0],height:y[1],italic:y[2],skew:y[3],width:y[4]}}var ut={};function Ge(U){var u;if(U>=5?u=0:U>=3?u=1:u=2,!ut[u]){var f=ut[u]={cssEmPerMu:le.quad[u]/18};for(var h in le)le.hasOwnProperty(h)&&(f[h]=le[h][u])}return ut[u]}var yt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ht={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ce={math:{},text:{}},Ye=Ce;function b(U,u,f,h,y,O){Ce[U][y]={font:u,group:f,replace:h},O&&h&&(Ce[U][h]=Ce[U][y])}var w="math",He="text",q="main",be="ams",It="accent-token",Be="bin",rt="close",ft="inner",ve="mathord",Se="op-token",We="open",ze="punct",M="rel",dt="spacing",Ee="textord";b(w,q,M,"\u2261","\\equiv",!0),b(w,q,M,"\u227A","\\prec",!0),b(w,q,M,"\u227B","\\succ",!0),b(w,q,M,"\u223C","\\sim",!0),b(w,q,M,"\u22A5","\\perp"),b(w,q,M,"\u2AAF","\\preceq",!0),b(w,q,M,"\u2AB0","\\succeq",!0),b(w,q,M,"\u2243","\\simeq",!0),b(w,q,M,"\u2223","\\mid",!0),b(w,q,M,"\u226A","\\ll",!0),b(w,q,M,"\u226B","\\gg",!0),b(w,q,M,"\u224D","\\asymp",!0),b(w,q,M,"\u2225","\\parallel"),b(w,q,M,"\u22C8","\\bowtie",!0),b(w,q,M,"\u2323","\\smile",!0),b(w,q,M,"\u2291","\\sqsubseteq",!0),b(w,q,M,"\u2292","\\sqsupseteq",!0),b(w,q,M,"\u2250","\\doteq",!0),b(w,q,M,"\u2322","\\frown",!0),b(w,q,M,"\u220B","\\ni",!0),b(w,q,M,"\u221D","\\propto",!0),b(w,q,M,"\u22A2","\\vdash",!0),b(w,q,M,"\u22A3","\\dashv",!0),b(w,q,M,"\u220B","\\owns"),b(w,q,ze,".","\\ldotp"),b(w,q,ze,"\u22C5","\\cdotp"),b(w,q,Ee,"#","\\#"),b(He,q,Ee,"#","\\#"),b(w,q,Ee,"&","\\&"),b(He,q,Ee,"&","\\&"),b(w,q,Ee,"\u2135","\\aleph",!0),b(w,q,Ee,"\u2200","\\forall",!0),b(w,q,Ee,"\u210F","\\hbar",!0),b(w,q,Ee,"\u2203","\\exists",!0),b(w,q,Ee,"\u2207","\\nabla",!0),b(w,q,Ee,"\u266D","\\flat",!0),b(w,q,Ee,"\u2113","\\ell",!0),b(w,q,Ee,"\u266E","\\natural",!0),b(w,q,Ee,"\u2663","\\clubsuit",!0),b(w,q,Ee,"\u2118","\\wp",!0),b(w,q,Ee,"\u266F","\\sharp",!0),b(w,q,Ee,"\u2662","\\diamondsuit",!0),b(w,q,Ee,"\u211C","\\Re",!0),b(w,q,Ee,"\u2661","\\heartsuit",!0),b(w,q,Ee,"\u2111","\\Im",!0),b(w,q,Ee,"\u2660","\\spadesuit",!0),b(He,q,Ee,"\xA7","\\S",!0),b(He,q,Ee,"\xB6","\\P",!0),b(w,q,Ee,"\u2020","\\dag"),b(He,q,Ee,"\u2020","\\dag"),b(He,q,Ee,"\u2020","\\textdagger"),b(w,q,Ee,"\u2021","\\ddag"),b(He,q,Ee,"\u2021","\\ddag"),b(He,q,Ee,"\u2021","\\textdaggerdbl"),b(w,q,rt,"\u23B1","\\rmoustache",!0),b(w,q,We,"\u23B0","\\lmoustache",!0),b(w,q,rt,"\u27EF","\\rgroup",!0),b(w,q,We,"\u27EE","\\lgroup",!0),b(w,q,Be,"\u2213","\\mp",!0),b(w,q,Be,"\u2296","\\ominus",!0),b(w,q,Be,"\u228E","\\uplus",!0),b(w,q,Be,"\u2293","\\sqcap",!0),b(w,q,Be,"\u2217","\\ast"),b(w,q,Be,"\u2294","\\sqcup",!0),b(w,q,Be,"\u25EF","\\bigcirc"),b(w,q,Be,"\u2219","\\bullet"),b(w,q,Be,"\u2021","\\ddagger"),b(w,q,Be,"\u2240","\\wr",!0),b(w,q,Be,"\u2A3F","\\amalg"),b(w,q,Be,"&","\\And"),b(w,q,M,"\u27F5","\\longleftarrow",!0),b(w,q,M,"\u21D0","\\Leftarrow",!0),b(w,q,M,"\u27F8","\\Longleftarrow",!0),b(w,q,M,"\u27F6","\\longrightarrow",!0),b(w,q,M,"\u21D2","\\Rightarrow",!0),b(w,q,M,"\u27F9","\\Longrightarrow",!0),b(w,q,M,"\u2194","\\leftrightarrow",!0),b(w,q,M,"\u27F7","\\longleftrightarrow",!0),b(w,q,M,"\u21D4","\\Leftrightarrow",!0),b(w,q,M,"\u27FA","\\Longleftrightarrow",!0),b(w,q,M,"\u21A6","\\mapsto",!0),b(w,q,M,"\u27FC","\\longmapsto",!0),b(w,q,M,"\u2197","\\nearrow",!0),b(w,q,M,"\u21A9","\\hookleftarrow",!0),b(w,q,M,"\u21AA","\\hookrightarrow",!0),b(w,q,M,"\u2198","\\searrow",!0),b(w,q,M,"\u21BC","\\leftharpoonup",!0),b(w,q,M,"\u21C0","\\rightharpoonup",!0),b(w,q,M,"\u2199","\\swarrow",!0),b(w,q,M,"\u21BD","\\leftharpoondown",!0),b(w,q,M,"\u21C1","\\rightharpoondown",!0),b(w,q,M,"\u2196","\\nwarrow",!0),b(w,q,M,"\u21CC","\\rightleftharpoons",!0),b(w,be,M,"\u226E","\\nless",!0),b(w,be,M,"\uE010","\\@nleqslant"),b(w,be,M,"\uE011","\\@nleqq"),b(w,be,M,"\u2A87","\\lneq",!0),b(w,be,M,"\u2268","\\lneqq",!0),b(w,be,M,"\uE00C","\\@lvertneqq"),b(w,be,M,"\u22E6","\\lnsim",!0),b(w,be,M,"\u2A89","\\lnapprox",!0),b(w,be,M,"\u2280","\\nprec",!0),b(w,be,M,"\u22E0","\\npreceq",!0),b(w,be,M,"\u22E8","\\precnsim",!0),b(w,be,M,"\u2AB9","\\precnapprox",!0),b(w,be,M,"\u2241","\\nsim",!0),b(w,be,M,"\uE006","\\@nshortmid"),b(w,be,M,"\u2224","\\nmid",!0),b(w,be,M,"\u22AC","\\nvdash",!0),b(w,be,M,"\u22AD","\\nvDash",!0),b(w,be,M,"\u22EA","\\ntriangleleft"),b(w,be,M,"\u22EC","\\ntrianglelefteq",!0),b(w,be,M,"\u228A","\\subsetneq",!0),b(w,be,M,"\uE01A","\\@varsubsetneq"),b(w,be,M,"\u2ACB","\\subsetneqq",!0),b(w,be,M,"\uE017","\\@varsubsetneqq"),b(w,be,M,"\u226F","\\ngtr",!0),b(w,be,M,"\uE00F","\\@ngeqslant"),b(w,be,M,"\uE00E","\\@ngeqq"),b(w,be,M,"\u2A88","\\gneq",!0),b(w,be,M,"\u2269","\\gneqq",!0),b(w,be,M,"\uE00D","\\@gvertneqq"),b(w,be,M,"\u22E7","\\gnsim",!0),b(w,be,M,"\u2A8A","\\gnapprox",!0),b(w,be,M,"\u2281","\\nsucc",!0),b(w,be,M,"\u22E1","\\nsucceq",!0),b(w,be,M,"\u22E9","\\succnsim",!0),b(w,be,M,"\u2ABA","\\succnapprox",!0),b(w,be,M,"\u2246","\\ncong",!0),b(w,be,M,"\uE007","\\@nshortparallel"),b(w,be,M,"\u2226","\\nparallel",!0),b(w,be,M,"\u22AF","\\nVDash",!0),b(w,be,M,"\u22EB","\\ntriangleright"),b(w,be,M,"\u22ED","\\ntrianglerighteq",!0),b(w,be,M,"\uE018","\\@nsupseteqq"),b(w,be,M,"\u228B","\\supsetneq",!0),b(w,be,M,"\uE01B","\\@varsupsetneq"),b(w,be,M,"\u2ACC","\\supsetneqq",!0),b(w,be,M,"\uE019","\\@varsupsetneqq"),b(w,be,M,"\u22AE","\\nVdash",!0),b(w,be,M,"\u2AB5","\\precneqq",!0),b(w,be,M,"\u2AB6","\\succneqq",!0),b(w,be,M,"\uE016","\\@nsubseteqq"),b(w,be,Be,"\u22B4","\\unlhd"),b(w,be,Be,"\u22B5","\\unrhd"),b(w,be,M,"\u219A","\\nleftarrow",!0),b(w,be,M,"\u219B","\\nrightarrow",!0),b(w,be,M,"\u21CD","\\nLeftarrow",!0),b(w,be,M,"\u21CF","\\nRightarrow",!0),b(w,be,M,"\u21AE","\\nleftrightarrow",!0),b(w,be,M,"\u21CE","\\nLeftrightarrow",!0),b(w,be,M,"\u25B3","\\vartriangle"),b(w,be,Ee,"\u210F","\\hslash"),b(w,be,Ee,"\u25BD","\\triangledown"),b(w,be,Ee,"\u25CA","\\lozenge"),b(w,be,Ee,"\u24C8","\\circledS"),b(w,be,Ee,"\xAE","\\circledR"),b(He,be,Ee,"\xAE","\\circledR"),b(w,be,Ee,"\u2221","\\measuredangle",!0),b(w,be,Ee,"\u2204","\\nexists"),b(w,be,Ee,"\u2127","\\mho"),b(w,be,Ee,"\u2132","\\Finv",!0),b(w,be,Ee,"\u2141","\\Game",!0),b(w,be,Ee,"\u2035","\\backprime"),b(w,be,Ee,"\u25B2","\\blacktriangle"),b(w,be,Ee,"\u25BC","\\blacktriangledown"),b(w,be,Ee,"\u25A0","\\blacksquare"),b(w,be,Ee,"\u29EB","\\blacklozenge"),b(w,be,Ee,"\u2605","\\bigstar"),b(w,be,Ee,"\u2222","\\sphericalangle",!0),b(w,be,Ee,"\u2201","\\complement",!0),b(w,be,Ee,"\xF0","\\eth",!0),b(w,be,Ee,"\u2571","\\diagup"),b(w,be,Ee,"\u2572","\\diagdown"),b(w,be,Ee,"\u25A1","\\square"),b(w,be,Ee,"\u25A1","\\Box"),b(w,be,Ee,"\u25CA","\\Diamond"),b(w,be,Ee,"\xA5","\\yen",!0),b(He,be,Ee,"\xA5","\\yen",!0),b(w,be,Ee,"\u2713","\\checkmark",!0),b(He,be,Ee,"\u2713","\\checkmark"),b(w,be,Ee,"\u2136","\\beth",!0),b(w,be,Ee,"\u2138","\\daleth",!0),b(w,be,Ee,"\u2137","\\gimel",!0),b(w,be,Ee,"\u03DD","\\digamma",!0),b(w,be,Ee,"\u03F0","\\varkappa"),b(w,be,We,"\u250C","\\ulcorner",!0),b(w,be,rt,"\u2510","\\urcorner",!0),b(w,be,We,"\u2514","\\llcorner",!0),b(w,be,rt,"\u2518","\\lrcorner",!0),b(w,be,M,"\u2266","\\leqq",!0),b(w,be,M,"\u2A7D","\\leqslant",!0),b(w,be,M,"\u2A95","\\eqslantless",!0),b(w,be,M,"\u2272","\\lesssim",!0),b(w,be,M,"\u2A85","\\lessapprox",!0),b(w,be,M,"\u224A","\\approxeq",!0),b(w,be,Be,"\u22D6","\\lessdot"),b(w,be,M,"\u22D8","\\lll",!0),b(w,be,M,"\u2276","\\lessgtr",!0),b(w,be,M,"\u22DA","\\lesseqgtr",!0),b(w,be,M,"\u2A8B","\\lesseqqgtr",!0),b(w,be,M,"\u2251","\\doteqdot"),b(w,be,M,"\u2253","\\risingdotseq",!0),b(w,be,M,"\u2252","\\fallingdotseq",!0),b(w,be,M,"\u223D","\\backsim",!0),b(w,be,M,"\u22CD","\\backsimeq",!0),b(w,be,M,"\u2AC5","\\subseteqq",!0),b(w,be,M,"\u22D0","\\Subset",!0),b(w,be,M,"\u228F","\\sqsubset",!0),b(w,be,M,"\u227C","\\preccurlyeq",!0),b(w,be,M,"\u22DE","\\curlyeqprec",!0),b(w,be,M,"\u227E","\\precsim",!0),b(w,be,M,"\u2AB7","\\precapprox",!0),b(w,be,M,"\u22B2","\\vartriangleleft"),b(w,be,M,"\u22B4","\\trianglelefteq"),b(w,be,M,"\u22A8","\\vDash",!0),b(w,be,M,"\u22AA","\\Vvdash",!0),b(w,be,M,"\u2323","\\smallsmile"),b(w,be,M,"\u2322","\\smallfrown"),b(w,be,M,"\u224F","\\bumpeq",!0),b(w,be,M,"\u224E","\\Bumpeq",!0),b(w,be,M,"\u2267","\\geqq",!0),b(w,be,M,"\u2A7E","\\geqslant",!0),b(w,be,M,"\u2A96","\\eqslantgtr",!0),b(w,be,M,"\u2273","\\gtrsim",!0),b(w,be,M,"\u2A86","\\gtrapprox",!0),b(w,be,Be,"\u22D7","\\gtrdot"),b(w,be,M,"\u22D9","\\ggg",!0),b(w,be,M,"\u2277","\\gtrless",!0),b(w,be,M,"\u22DB","\\gtreqless",!0),b(w,be,M,"\u2A8C","\\gtreqqless",!0),b(w,be,M,"\u2256","\\eqcirc",!0),b(w,be,M,"\u2257","\\circeq",!0),b(w,be,M,"\u225C","\\triangleq",!0),b(w,be,M,"\u223C","\\thicksim"),b(w,be,M,"\u2248","\\thickapprox"),b(w,be,M,"\u2AC6","\\supseteqq",!0),b(w,be,M,"\u22D1","\\Supset",!0),b(w,be,M,"\u2290","\\sqsupset",!0),b(w,be,M,"\u227D","\\succcurlyeq",!0),b(w,be,M,"\u22DF","\\curlyeqsucc",!0),b(w,be,M,"\u227F","\\succsim",!0),b(w,be,M,"\u2AB8","\\succapprox",!0),b(w,be,M,"\u22B3","\\vartriangleright"),b(w,be,M,"\u22B5","\\trianglerighteq"),b(w,be,M,"\u22A9","\\Vdash",!0),b(w,be,M,"\u2223","\\shortmid"),b(w,be,M,"\u2225","\\shortparallel"),b(w,be,M,"\u226C","\\between",!0),b(w,be,M,"\u22D4","\\pitchfork",!0),b(w,be,M,"\u221D","\\varpropto"),b(w,be,M,"\u25C0","\\blacktriangleleft"),b(w,be,M,"\u2234","\\therefore",!0),b(w,be,M,"\u220D","\\backepsilon"),b(w,be,M,"\u25B6","\\blacktriangleright"),b(w,be,M,"\u2235","\\because",!0),b(w,be,M,"\u22D8","\\llless"),b(w,be,M,"\u22D9","\\gggtr"),b(w,be,Be,"\u22B2","\\lhd"),b(w,be,Be,"\u22B3","\\rhd"),b(w,be,M,"\u2242","\\eqsim",!0),b(w,q,M,"\u22C8","\\Join"),b(w,be,M,"\u2251","\\Doteq",!0),b(w,be,Be,"\u2214","\\dotplus",!0),b(w,be,Be,"\u2216","\\smallsetminus"),b(w,be,Be,"\u22D2","\\Cap",!0),b(w,be,Be,"\u22D3","\\Cup",!0),b(w,be,Be,"\u2A5E","\\doublebarwedge",!0),b(w,be,Be,"\u229F","\\boxminus",!0),b(w,be,Be,"\u229E","\\boxplus",!0),b(w,be,Be,"\u22C7","\\divideontimes",!0),b(w,be,Be,"\u22C9","\\ltimes",!0),b(w,be,Be,"\u22CA","\\rtimes",!0),b(w,be,Be,"\u22CB","\\leftthreetimes",!0),b(w,be,Be,"\u22CC","\\rightthreetimes",!0),b(w,be,Be,"\u22CF","\\curlywedge",!0),b(w,be,Be,"\u22CE","\\curlyvee",!0),b(w,be,Be,"\u229D","\\circleddash",!0),b(w,be,Be,"\u229B","\\circledast",!0),b(w,be,Be,"\u22C5","\\centerdot"),b(w,be,Be,"\u22BA","\\intercal",!0),b(w,be,Be,"\u22D2","\\doublecap"),b(w,be,Be,"\u22D3","\\doublecup"),b(w,be,Be,"\u22A0","\\boxtimes",!0),b(w,be,M,"\u21E2","\\dashrightarrow",!0),b(w,be,M,"\u21E0","\\dashleftarrow",!0),b(w,be,M,"\u21C7","\\leftleftarrows",!0),b(w,be,M,"\u21C6","\\leftrightarrows",!0),b(w,be,M,"\u21DA","\\Lleftarrow",!0),b(w,be,M,"\u219E","\\twoheadleftarrow",!0),b(w,be,M,"\u21A2","\\leftarrowtail",!0),b(w,be,M,"\u21AB","\\looparrowleft",!0),b(w,be,M,"\u21CB","\\leftrightharpoons",!0),b(w,be,M,"\u21B6","\\curvearrowleft",!0),b(w,be,M,"\u21BA","\\circlearrowleft",!0),b(w,be,M,"\u21B0","\\Lsh",!0),b(w,be,M,"\u21C8","\\upuparrows",!0),b(w,be,M,"\u21BF","\\upharpoonleft",!0),b(w,be,M,"\u21C3","\\downharpoonleft",!0),b(w,be,M,"\u22B8","\\multimap",!0),b(w,be,M,"\u21AD","\\leftrightsquigarrow",!0),b(w,be,M,"\u21C9","\\rightrightarrows",!0),b(w,be,M,"\u21C4","\\rightleftarrows",!0),b(w,be,M,"\u21A0","\\twoheadrightarrow",!0),b(w,be,M,"\u21A3","\\rightarrowtail",!0),b(w,be,M,"\u21AC","\\looparrowright",!0),b(w,be,M,"\u21B7","\\curvearrowright",!0),b(w,be,M,"\u21BB","\\circlearrowright",!0),b(w,be,M,"\u21B1","\\Rsh",!0),b(w,be,M,"\u21CA","\\downdownarrows",!0),b(w,be,M,"\u21BE","\\upharpoonright",!0),b(w,be,M,"\u21C2","\\downharpoonright",!0),b(w,be,M,"\u21DD","\\rightsquigarrow",!0),b(w,be,M,"\u21DD","\\leadsto"),b(w,be,M,"\u21DB","\\Rrightarrow",!0),b(w,be,M,"\u21BE","\\restriction"),b(w,q,Ee,"\u2018","`"),b(w,q,Ee,"$","\\$"),b(He,q,Ee,"$","\\$"),b(He,q,Ee,"$","\\textdollar"),b(w,q,Ee,"%","\\%"),b(He,q,Ee,"%","\\%"),b(w,q,Ee,"_","\\_"),b(He,q,Ee,"_","\\_"),b(He,q,Ee,"_","\\textunderscore"),b(w,q,Ee,"\u2220","\\angle",!0),b(w,q,Ee,"\u221E","\\infty",!0),b(w,q,Ee,"\u2032","\\prime"),b(w,q,Ee,"\u25B3","\\triangle"),b(w,q,Ee,"\u0393","\\Gamma",!0),b(w,q,Ee,"\u0394","\\Delta",!0),b(w,q,Ee,"\u0398","\\Theta",!0),b(w,q,Ee,"\u039B","\\Lambda",!0),b(w,q,Ee,"\u039E","\\Xi",!0),b(w,q,Ee,"\u03A0","\\Pi",!0),b(w,q,Ee,"\u03A3","\\Sigma",!0),b(w,q,Ee,"\u03A5","\\Upsilon",!0),b(w,q,Ee,"\u03A6","\\Phi",!0),b(w,q,Ee,"\u03A8","\\Psi",!0),b(w,q,Ee,"\u03A9","\\Omega",!0),b(w,q,Ee,"A","\u0391"),b(w,q,Ee,"B","\u0392"),b(w,q,Ee,"E","\u0395"),b(w,q,Ee,"Z","\u0396"),b(w,q,Ee,"H","\u0397"),b(w,q,Ee,"I","\u0399"),b(w,q,Ee,"K","\u039A"),b(w,q,Ee,"M","\u039C"),b(w,q,Ee,"N","\u039D"),b(w,q,Ee,"O","\u039F"),b(w,q,Ee,"P","\u03A1"),b(w,q,Ee,"T","\u03A4"),b(w,q,Ee,"X","\u03A7"),b(w,q,Ee,"\xAC","\\neg",!0),b(w,q,Ee,"\xAC","\\lnot"),b(w,q,Ee,"\u22A4","\\top"),b(w,q,Ee,"\u22A5","\\bot"),b(w,q,Ee,"\u2205","\\emptyset"),b(w,be,Ee,"\u2205","\\varnothing"),b(w,q,ve,"\u03B1","\\alpha",!0),b(w,q,ve,"\u03B2","\\beta",!0),b(w,q,ve,"\u03B3","\\gamma",!0),b(w,q,ve,"\u03B4","\\delta",!0),b(w,q,ve,"\u03F5","\\epsilon",!0),b(w,q,ve,"\u03B6","\\zeta",!0),b(w,q,ve,"\u03B7","\\eta",!0),b(w,q,ve,"\u03B8","\\theta",!0),b(w,q,ve,"\u03B9","\\iota",!0),b(w,q,ve,"\u03BA","\\kappa",!0),b(w,q,ve,"\u03BB","\\lambda",!0),b(w,q,ve,"\u03BC","\\mu",!0),b(w,q,ve,"\u03BD","\\nu",!0),b(w,q,ve,"\u03BE","\\xi",!0),b(w,q,ve,"\u03BF","\\omicron",!0),b(w,q,ve,"\u03C0","\\pi",!0),b(w,q,ve,"\u03C1","\\rho",!0),b(w,q,ve,"\u03C3","\\sigma",!0),b(w,q,ve,"\u03C4","\\tau",!0),b(w,q,ve,"\u03C5","\\upsilon",!0),b(w,q,ve,"\u03D5","\\phi",!0),b(w,q,ve,"\u03C7","\\chi",!0),b(w,q,ve,"\u03C8","\\psi",!0),b(w,q,ve,"\u03C9","\\omega",!0),b(w,q,ve,"\u03B5","\\varepsilon",!0),b(w,q,ve,"\u03D1","\\vartheta",!0),b(w,q,ve,"\u03D6","\\varpi",!0),b(w,q,ve,"\u03F1","\\varrho",!0),b(w,q,ve,"\u03C2","\\varsigma",!0),b(w,q,ve,"\u03C6","\\varphi",!0),b(w,q,Be,"\u2217","*"),b(w,q,Be,"+","+"),b(w,q,Be,"\u2212","-"),b(w,q,Be,"\u22C5","\\cdot",!0),b(w,q,Be,"\u2218","\\circ"),b(w,q,Be,"\xF7","\\div",!0),b(w,q,Be,"\xB1","\\pm",!0),b(w,q,Be,"\xD7","\\times",!0),b(w,q,Be,"\u2229","\\cap",!0),b(w,q,Be,"\u222A","\\cup",!0),b(w,q,Be,"\u2216","\\setminus"),b(w,q,Be,"\u2227","\\land"),b(w,q,Be,"\u2228","\\lor"),b(w,q,Be,"\u2227","\\wedge",!0),b(w,q,Be,"\u2228","\\vee",!0),b(w,q,Ee,"\u221A","\\surd"),b(w,q,We,"(","("),b(w,q,We,"[","["),b(w,q,We,"\u27E8","\\langle",!0),b(w,q,We,"\u2223","\\lvert"),b(w,q,We,"\u2225","\\lVert"),b(w,q,rt,")",")"),b(w,q,rt,"]","]"),b(w,q,rt,"?","?"),b(w,q,rt,"!","!"),b(w,q,rt,"\u27E9","\\rangle",!0),b(w,q,rt,"\u2223","\\rvert"),b(w,q,rt,"\u2225","\\rVert"),b(w,q,M,"=","="),b(w,q,M,"<","<"),b(w,q,M,">",">"),b(w,q,M,":",":"),b(w,q,M,"\u2248","\\approx",!0),b(w,q,M,"\u2245","\\cong",!0),b(w,q,M,"\u2265","\\ge"),b(w,q,M,"\u2265","\\geq",!0),b(w,q,M,"\u2190","\\gets"),b(w,q,M,">","\\gt"),b(w,q,M,"\u2208","\\in",!0),b(w,q,M,"\uE020","\\@not"),b(w,q,M,"\u2282","\\subset",!0),b(w,q,M,"\u2283","\\supset",!0),b(w,q,M,"\u2286","\\subseteq",!0),b(w,q,M,"\u2287","\\supseteq",!0),b(w,be,M,"\u2288","\\nsubseteq",!0),b(w,be,M,"\u2289","\\nsupseteq",!0),b(w,q,M,"\u22A8","\\models"),b(w,q,M,"\u2190","\\leftarrow",!0),b(w,q,M,"\u2264","\\le"),b(w,q,M,"\u2264","\\leq",!0),b(w,q,M,"<","\\lt"),b(w,q,M,"\u2192","\\rightarrow",!0),b(w,q,M,"\u2192","\\to"),b(w,be,M,"\u2271","\\ngeq",!0),b(w,be,M,"\u2270","\\nleq",!0),b(w,q,dt,"\xA0","\\ "),b(w,q,dt,"\xA0","~"),b(w,q,dt,"\xA0","\\space"),b(w,q,dt,"\xA0","\\nobreakspace"),b(He,q,dt,"\xA0","\\ "),b(He,q,dt,"\xA0","~"),b(He,q,dt,"\xA0","\\space"),b(He,q,dt,"\xA0","\\nobreakspace"),b(w,q,dt,null,"\\nobreak"),b(w,q,dt,null,"\\allowbreak"),b(w,q,ze,",",","),b(w,q,ze,";",";"),b(w,be,Be,"\u22BC","\\barwedge",!0),b(w,be,Be,"\u22BB","\\veebar",!0),b(w,q,Be,"\u2299","\\odot",!0),b(w,q,Be,"\u2295","\\oplus",!0),b(w,q,Be,"\u2297","\\otimes",!0),b(w,q,Ee,"\u2202","\\partial",!0),b(w,q,Be,"\u2298","\\oslash",!0),b(w,be,Be,"\u229A","\\circledcirc",!0),b(w,be,Be,"\u22A1","\\boxdot",!0),b(w,q,Be,"\u25B3","\\bigtriangleup"),b(w,q,Be,"\u25BD","\\bigtriangledown"),b(w,q,Be,"\u2020","\\dagger"),b(w,q,Be,"\u22C4","\\diamond"),b(w,q,Be,"\u22C6","\\star"),b(w,q,Be,"\u25C3","\\triangleleft"),b(w,q,Be,"\u25B9","\\triangleright"),b(w,q,We,"{","\\{"),b(He,q,Ee,"{","\\{"),b(He,q,Ee,"{","\\textbraceleft"),b(w,q,rt,"}","\\}"),b(He,q,Ee,"}","\\}"),b(He,q,Ee,"}","\\textbraceright"),b(w,q,We,"{","\\lbrace"),b(w,q,rt,"}","\\rbrace"),b(w,q,We,"[","\\lbrack"),b(He,q,Ee,"[","\\lbrack"),b(w,q,rt,"]","\\rbrack"),b(He,q,Ee,"]","\\rbrack"),b(w,q,We,"(","\\lparen"),b(w,q,rt,")","\\rparen"),b(He,q,Ee,"<","\\textless"),b(He,q,Ee,">","\\textgreater"),b(w,q,We,"\u230A","\\lfloor",!0),b(w,q,rt,"\u230B","\\rfloor",!0),b(w,q,We,"\u2308","\\lceil",!0),b(w,q,rt,"\u2309","\\rceil",!0),b(w,q,Ee,"\\","\\backslash"),b(w,q,Ee,"\u2223","|"),b(w,q,Ee,"\u2223","\\vert"),b(He,q,Ee,"|","\\textbar"),b(w,q,Ee,"\u2225","\\|"),b(w,q,Ee,"\u2225","\\Vert"),b(He,q,Ee,"\u2225","\\textbardbl"),b(He,q,Ee,"~","\\textasciitilde"),b(He,q,Ee,"\\","\\textbackslash"),b(He,q,Ee,"^","\\textasciicircum"),b(w,q,M,"\u2191","\\uparrow",!0),b(w,q,M,"\u21D1","\\Uparrow",!0),b(w,q,M,"\u2193","\\downarrow",!0),b(w,q,M,"\u21D3","\\Downarrow",!0),b(w,q,M,"\u2195","\\updownarrow",!0),b(w,q,M,"\u21D5","\\Updownarrow",!0),b(w,q,Se,"\u2210","\\coprod"),b(w,q,Se,"\u22C1","\\bigvee"),b(w,q,Se,"\u22C0","\\bigwedge"),b(w,q,Se,"\u2A04","\\biguplus"),b(w,q,Se,"\u22C2","\\bigcap"),b(w,q,Se,"\u22C3","\\bigcup"),b(w,q,Se,"\u222B","\\int"),b(w,q,Se,"\u222B","\\intop"),b(w,q,Se,"\u222C","\\iint"),b(w,q,Se,"\u222D","\\iiint"),b(w,q,Se,"\u220F","\\prod"),b(w,q,Se,"\u2211","\\sum"),b(w,q,Se,"\u2A02","\\bigotimes"),b(w,q,Se,"\u2A01","\\bigoplus"),b(w,q,Se,"\u2A00","\\bigodot"),b(w,q,Se,"\u222E","\\oint"),b(w,q,Se,"\u222F","\\oiint"),b(w,q,Se,"\u2230","\\oiiint"),b(w,q,Se,"\u2A06","\\bigsqcup"),b(w,q,Se,"\u222B","\\smallint"),b(He,q,ft,"\u2026","\\textellipsis"),b(w,q,ft,"\u2026","\\mathellipsis"),b(He,q,ft,"\u2026","\\ldots",!0),b(w,q,ft,"\u2026","\\ldots",!0),b(w,q,ft,"\u22EF","\\@cdots",!0),b(w,q,ft,"\u22F1","\\ddots",!0),b(w,q,Ee,"\u22EE","\\varvdots"),b(w,q,It,"\u02CA","\\acute"),b(w,q,It,"\u02CB","\\grave"),b(w,q,It,"\xA8","\\ddot"),b(w,q,It,"~","\\tilde"),b(w,q,It,"\u02C9","\\bar"),b(w,q,It,"\u02D8","\\breve"),b(w,q,It,"\u02C7","\\check"),b(w,q,It,"^","\\hat"),b(w,q,It,"\u20D7","\\vec"),b(w,q,It,"\u02D9","\\dot"),b(w,q,It,"\u02DA","\\mathring"),b(w,q,ve,"\u0131","\\imath",!0),b(w,q,ve,"\u0237","\\jmath",!0),b(He,q,Ee,"\u0131","\\i",!0),b(He,q,Ee,"\u0237","\\j",!0),b(He,q,Ee,"\xDF","\\ss",!0),b(He,q,Ee,"\xE6","\\ae",!0),b(He,q,Ee,"\xE6","\\ae",!0),b(He,q,Ee,"\u0153","\\oe",!0),b(He,q,Ee,"\xF8","\\o",!0),b(He,q,Ee,"\xC6","\\AE",!0),b(He,q,Ee,"\u0152","\\OE",!0),b(He,q,Ee,"\xD8","\\O",!0),b(He,q,It,"\u02CA","\\'"),b(He,q,It,"\u02CB","\\`"),b(He,q,It,"\u02C6","\\^"),b(He,q,It,"\u02DC","\\~"),b(He,q,It,"\u02C9","\\="),b(He,q,It,"\u02D8","\\u"),b(He,q,It,"\u02D9","\\."),b(He,q,It,"\u02DA","\\r"),b(He,q,It,"\u02C7","\\v"),b(He,q,It,"\xA8",'\\"'),b(He,q,It,"\u02DD","\\H"),b(He,q,It,"\u25EF","\\textcircled");var Tt={"--":!0,"---":!0,"``":!0,"''":!0};b(He,q,Ee,"\u2013","--"),b(He,q,Ee,"\u2013","\\textendash"),b(He,q,Ee,"\u2014","---"),b(He,q,Ee,"\u2014","\\textemdash"),b(He,q,Ee,"\u2018","`"),b(He,q,Ee,"\u2018","\\textquoteleft"),b(He,q,Ee,"\u2019","'"),b(He,q,Ee,"\u2019","\\textquoteright"),b(He,q,Ee,"\u201C","``"),b(He,q,Ee,"\u201C","\\textquotedblleft"),b(He,q,Ee,"\u201D","''"),b(He,q,Ee,"\u201D","\\textquotedblright"),b(w,q,Ee,"\xB0","\\degree",!0),b(He,q,Ee,"\xB0","\\degree"),b(He,q,Ee,"\xB0","\\textdegree",!0),b(w,q,ve,"\xA3","\\pounds"),b(w,q,ve,"\xA3","\\mathsterling",!0),b(He,q,ve,"\xA3","\\pounds"),b(He,q,ve,"\xA3","\\textsterling",!0),b(w,be,Ee,"\u2720","\\maltese"),b(He,be,Ee,"\u2720","\\maltese"),b(He,q,dt,"\xA0","\\ "),b(He,q,dt,"\xA0"," "),b(He,q,dt,"\xA0","~");for(var Kt='0123456789/@."',Jt=0;Jt<Kt.length;Jt++){var un=Kt.charAt(Jt);b(w,q,Ee,un,un)}for(var gn='0123456789!@*()-=+[]<>|";:?/.,',En=0;En<gn.length;En++){var Bn=gn.charAt(En);b(He,q,Ee,Bn,Bn)}for(var Wn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Tn=0;Tn<Wn.length;Tn++){var Jn=Wn.charAt(Tn);b(w,q,ve,Jn,Jn),b(He,q,Ee,Jn,Jn)}b(w,be,Ee,"C","\u2102"),b(He,be,Ee,"C","\u2102"),b(w,be,Ee,"H","\u210D"),b(He,be,Ee,"H","\u210D"),b(w,be,Ee,"N","\u2115"),b(He,be,Ee,"N","\u2115"),b(w,be,Ee,"P","\u2119"),b(He,be,Ee,"P","\u2119"),b(w,be,Ee,"Q","\u211A"),b(He,be,Ee,"Q","\u211A"),b(w,be,Ee,"R","\u211D"),b(He,be,Ee,"R","\u211D"),b(w,be,Ee,"Z","\u2124"),b(He,be,Ee,"Z","\u2124"),b(w,q,ve,"h","\u210E"),b(He,q,ve,"h","\u210E");for(var vn="",Gt=0;Gt<Wn.length;Gt++){var Qt=Wn.charAt(Gt);vn=String.fromCharCode(55349,56320+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56372+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56424+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56580+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56736+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56788+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56840+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56944+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),Gt<26&&(vn=String.fromCharCode(55349,56632+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn),vn=String.fromCharCode(55349,56476+Gt),b(w,q,ve,Qt,vn),b(He,q,Ee,Qt,vn))}vn="\u{1D55C}",b(w,q,ve,"k",vn),b(He,q,Ee,"k",vn);for(var Dn=0;Dn<10;Dn++){var An=Dn.toString();vn=String.fromCharCode(55349,57294+Dn),b(w,q,ve,An,vn),b(He,q,Ee,An,vn),vn=String.fromCharCode(55349,57314+Dn),b(w,q,ve,An,vn),b(He,q,Ee,An,vn),vn=String.fromCharCode(55349,57324+Dn),b(w,q,ve,An,vn),b(He,q,Ee,An,vn),vn=String.fromCharCode(55349,57334+Dn),b(w,q,ve,An,vn),b(He,q,Ee,An,vn)}for(var bt="\xC7\xD0\xDE\xE7\xFE",_t=0;_t<bt.length;_t++){var Me=bt.charAt(_t);b(w,q,ve,Me,Me),b(He,q,Ee,Me,Me)}b(He,q,Ee,"\xF0","\xF0"),b(He,q,Ee,"\u2013","\u2013"),b(He,q,Ee,"\u2014","\u2014"),b(He,q,Ee,"\u2018","\u2018"),b(He,q,Ee,"\u2019","\u2019"),b(He,q,Ee,"\u201C","\u201C"),b(He,q,Ee,"\u201D","\u201D");var ot=[["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"]],Et=function(u,f){var h=u.charCodeAt(0),y=u.charCodeAt(1),O=(h-55296)*1024+(y-56320)+65536,H=f==="math"?0:1;if(119808<=O&&O<120484){var Ae=Math.floor((O-119808)/26);return[ot[Ae][2],ot[Ae][H]]}else if(120782<=O&&O<=120831){var Ne=Math.floor((O-120782)/10);return[vt[Ne][2],vt[Ne][H]]}else{if(O===120485||O===120486)return[ot[0][2],ot[0][H]];if(120486<O&&O<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]],Xt=[.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]},Sn=function(){function U(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||U.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=Xt[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}var u=U.prototype;return u.extend=function(h){var y={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 O in h)h.hasOwnProperty(O)&&(y[O]=h[O]);return new U(y)},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:Xt[h-1]})},u.havingBaseStyle=function(h){h=h||this.style.text();var y=pn(U.BASESIZE,h);return this.size===y&&this.textSize===U.BASESIZE&&this.style===h?this:this.extend({style:h,size:y})},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!==U.BASESIZE?["sizing","reset-size"+this.size,"size"+U.BASESIZE]:[]},u.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ge(this.size)),this._fontMetrics},u.getColor=function(){return this.phantom?"transparent":this.color},U}();Sn.BASESIZE=6;var Zt=Sn,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},_n=function(u){return typeof u!="string"&&(u=u.unit),u in yn||u in Nn||u==="ex"},St=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 y;if(f.style.isTight()?y=f.havingStyle(f.style.text()):y=f,u.unit==="ex")h=y.fontMetrics().xHeight;else if(u.unit==="em")h=y.fontMetrics().quad;else throw new g("Invalid unit: '"+u.unit+"'");y!==f&&(h*=y.sizeMultiplier/f.sizeMultiplier)}return Math.min(u.number*h,f.maxSize)},Ft=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Vt=function(u,f,h){return Ye[h][u]&&Ye[h][u].replace&&(u=Ye[h][u].replace),{value:u,metrics:ct(u,f,h)}},Ut=function(u,f,h,y,O){var H=Vt(u,f,h),Ae=H.metrics;u=H.value;var Ne;if(Ae){var Je=Ae.italic;(h==="text"||y&&y.font==="mathit")&&(Je=0),Ne=new ue(u,Ae.height,Ae.depth,Je,Ae.skew,Ae.width,O)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+u+"' in style '"+f+"' and mode '"+h+"'")),Ne=new ue(u,0,0,0,0,0,O);if(y){Ne.maxFontSize=y.sizeMultiplier,y.style.isTight()&&Ne.classes.push("mtight");var Ct=y.getColor();Ct&&(Ne.style.color=Ct)}return Ne},jt=function(u,f,h,y){return y===void 0&&(y=[]),h.font==="boldsymbol"&&Vt(u,"Main-Bold",f).metrics?Ut(u,"Main-Bold",f,h,y.concat(["mathbf"])):u==="\\"||Ye[f][u].font==="main"?Ut(u,"Main-Regular",f,h,y):Ut(u,"AMS-Regular",f,h,y.concat(["amsrm"]))},qt=function(u,f,h,y){return/[0-9]/.test(u.charAt(0))||$.contains(Ft,u)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},sn=function(u,f,h,y){return $.contains(Ft,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,y){return Vt(u,"Math-BoldItalic",f).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},In=function(u,f,h){var y=u.mode,O=u.text,H=["mord"],Ae=y==="math"||y==="text"&&f.font,Ne=Ae?f.font:f.fontFamily;if(O.charCodeAt(0)===55349){var Je=Et(O,y),Ct=Je[0],Pt=Je[1];return Ut(O,Ct,y,f,H.concat(Pt))}else if(Ne){var zt,nn;if(Ne==="boldsymbol"||Ne==="mathnormal"){var cn=Ne==="boldsymbol"?on(O,y,f,H):sn(O,y,f,H);zt=cn.fontName,nn=[cn.fontClass]}else $.contains(Ft,O)?(zt="Main-Italic",nn=["mathit"]):Ae?(zt=ir[Ne].fontName,nn=[Ne]):(zt=nr(Ne,f.fontWeight,f.fontShape),nn=[Ne,f.fontWeight,f.fontShape]);if(Vt(O,zt,y).metrics)return Ut(O,zt,y,f,H.concat(nn));if(Tt.hasOwnProperty(O)&&zt.substr(0,10)==="Typewriter"){for(var dn=[],wn=0;wn<O.length;wn++)dn.push(Ut(O[wn],zt,y,f,H.concat(nn)));return Vn(dn)}}if(h==="mathord"){var xn=qt(O,y,f,H);return Ut(O,xn.fontName,y,f,H.concat([xn.fontClass]))}else if(h==="textord"){var Cn=Ye[y][O]&&Ye[y][O].font;if(Cn==="ams"){var kn=nr("amsrm",f.fontWeight,f.fontShape);return Ut(O,kn,y,f,H.concat("amsrm",f.fontWeight,f.fontShape))}else if(Cn==="main"||!Cn){var Xn=nr("textrm",f.fontWeight,f.fontShape);return Ut(O,Xn,y,f,H.concat(f.fontWeight,f.fontShape))}else{var tr=nr(Cn,f.fontWeight,f.fontShape);return Ut(O,tr,y,f,H.concat(tr,f.fontWeight,f.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},Mn=function(u,f){if(Xe(u.classes)!==Xe(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 y in f.style)if(f.style.hasOwnProperty(y)&&u.style[y]!==f.style[y])return!1;return!0},dr=function(u){for(var f=0;f<u.length-1;f++){var h=u[f],y=u[f+1];h instanceof ue&&y instanceof ue&&Mn(h,y)&&(h.text+=y.text,h.height=Math.max(h.height,y.height),h.depth=Math.max(h.depth,y.depth),h.italic=y.italic,u.splice(f+1,1),f--)}return u},jn=function(u){for(var f=0,h=0,y=0,O=0;O<u.children.length;O++){var H=u.children[O];H.height>f&&(f=H.height),H.depth>h&&(h=H.depth),H.maxFontSize>y&&(y=H.maxFontSize)}u.height=f,u.depth=h,u.maxFontSize=y},Kn=function(u,f,h,y){var O=new $e(u,f,h,y);return jn(O),O},er=function(u,f,h,y){return new $e(u,f,h,y)},Qn=function(u,f,h){var y=Kn([u],[],f);return y.height=Math.max(h||f.fontMetrics().defaultRuleThickness,f.minRuleThickness),y.style.borderBottomWidth=y.height+"em",y.maxFontSize=1,y},ar=function(u,f,h,y){var O=new Pe(u,f,h,y);return jn(O),O},Vn=function(u){var f=new qe(u);return jn(f),f},qn=function(u,f){return u instanceof qe?Kn([],[u],f):u},or=function(u){if(u.positionType==="individualShift"){for(var f=u.children,h=[f[0]],y=-f[0].shift-f[0].elem.depth,O=y,H=1;H<f.length;H++){var Ae=-f[H].shift-O-f[H].elem.depth,Ne=Ae-(f[H-1].elem.height+f[H-1].elem.depth);O=O+Ae,h.push({type:"kern",size:Ne}),h.push(f[H])}return{children:h,depth:y}}var Je;if(u.positionType==="top"){for(var Ct=u.positionData,Pt=0;Pt<u.children.length;Pt++){var zt=u.children[Pt];Ct-=zt.type==="kern"?zt.size:zt.elem.height+zt.elem.depth}Je=Ct}else if(u.positionType==="bottom")Je=-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")Je=-nn.elem.depth-u.positionData;else if(u.positionType==="firstBaseline")Je=-nn.elem.depth;else throw new Error("Invalid positionType "+u.positionType+".")}return{children:u.children,depth:Je}},cr=function(u,f){for(var h=or(u),y=h.children,O=h.depth,H=0,Ae=0;Ae<y.length;Ae++){var Ne=y[Ae];if(Ne.type==="elem"){var Je=Ne.elem;H=Math.max(H,Je.maxFontSize,Je.height)}}H+=2;var Ct=Kn(["pstrut"],[]);Ct.style.height=H+"em";for(var Pt=[],zt=O,nn=O,cn=O,dn=0;dn<y.length;dn++){var wn=y[dn];if(wn.type==="kern")cn+=wn.size;else{var xn=wn.elem,Cn=wn.wrapperClasses||[],kn=wn.wrapperStyle||{},Xn=Kn(Cn,[Ct,xn],void 0,kn);Xn.style.top=-H-cn-xn.depth+"em",wn.marginLeft&&(Xn.style.marginLeft=wn.marginLeft),wn.marginRight&&(Xn.style.marginRight=wn.marginRight),Pt.push(Xn),cn+=xn.height+xn.depth}zt=Math.min(zt,cn),nn=Math.max(nn,cn)}var tr=Kn(["vlist"],Pt);tr.style.height=nn+"em";var zn;if(zt<0){var Er=Kn([],[]),Tr=Kn(["vlist"],[Er]);Tr.style.height=-zt+"em";var gi=Kn(["vlist-s"],[new ue("\u200B")]);zn=[Kn(["vlist-r"],[tr,gi]),Kn(["vlist-r"],[Tr])]}else zn=[Kn(["vlist-r"],[tr])];var ni=Kn(["vlist-t"],zn);return zn.length===2&&ni.classes.push("vlist-t2"),ni.height=nn,ni.depth=-zt,ni},rr=function(u,f){var h=Kn(["mspace"],[],f),y=St(u,f);return h.style.marginRight=y+"em",h},nr=function(u,f,h){var y="";switch(u){case"amsrm":y="AMS";break;case"textrm":y="Main";break;case"textsf":y="SansSerif";break;case"texttt":y="Typewriter";break;default:y=u}var O;return f==="textbf"&&h==="textit"?O="BoldItalic":f==="textbf"?O="Bold":f==="textit"?O="Italic":O="Regular",y+"-"+O},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"}},Zn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Mr=function(u,f){var h=Zn[u],y=h[0],O=h[1],H=h[2],Ae=new pe(y),Ne=new ge([Ae],{width:O+"em",height:H+"em",style:"width:"+O+"em",viewBox:"0 0 "+1e3*O+" "+1e3*H,preserveAspectRatio:"xMinYMin"}),Je=er(["overlay"],[Ne],f);return Je.height=H,Je.style.height=H+"em",Je.style.width=O+"em",Je},$t={fontMap:ir,makeSymbol:Ut,mathsym:jt,makeSpan:Kn,makeSvgSpan:er,makeLineSpan:Qn,makeAnchor:ar,makeFragment:Vn,wrapFragment:qn,makeVList:cr,makeOrd:In,makeGlue:rr,staticSvg:Mr,svgData:Zn,tryCombineChars:dr};function sr(U,u){var f=hr(U,u);if(!f)throw new Error("Expected node of type "+u+", but got "+(U?"node of type "+U.type:String(U)));return f}function hr(U,u){return U&&U.type===u?U:null}function Yr(U,u){var f=Kr(U,u);if(!f)throw new Error('Expected node of type "atom" and family "'+u+'", but got '+(U?U.type==="atom"?"atom of family "+U.family:"node of type "+U.type:String(U)));return f}function Kr(U,u){return U&&U.type==="atom"&&U.family===u?U:null}function li(U){var u=qr(U);if(!u)throw new Error("Expected node of symbol group type, but got "+(U?"node of type "+U.type:String(U)));return u}function qr(U){return U&&(U.type==="atom"||ht.hasOwnProperty(U.type))?U:null}var Hn={number:3,unit:"mu"},On={number:4,unit:"mu"},an={number:5,unit:"mu"},ln={mord:{mop:Hn,mbin:On,mrel:an,minner:Hn},mop:{mord:Hn,mop:Hn,mrel:an,minner:Hn},mbin:{mord:On,mop:On,mopen:On,minner:On},mrel:{mord:an,mop:an,mopen:an,minner:an},mopen:{},mclose:{mop:Hn,mbin:On,mrel:an,minner:Hn},mpunct:{mord:Hn,mop:Hn,mrel:an,mopen:Hn,mclose:Hn,mpunct:Hn,minner:Hn},minner:{mord:Hn,mop:Hn,mbin:On,mrel:an,mopen:Hn,mpunct:Hn,minner:Hn}},Un={mord:{mop:Hn},mop:{mord:Hn,mop:Hn},mbin:{},mrel:{},mopen:{},mclose:{mop:Hn},mpunct:{},minner:{mop:Hn}},Yn={},lr={},Rr={};function Fn(U){for(var u=U.type,f=U.names,h=U.props,y=U.handler,O=U.htmlBuilder,H=U.mathmlBuilder,Ae={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:y},Ne=0;Ne<f.length;++Ne)Yn[f[Ne]]=Ae;u&&(O&&(lr[u]=O),H&&(Rr[u]=H))}function pr(U){var u=U.type,f=U.htmlBuilder,h=U.mathmlBuilder;Fn({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]},Xr=$t.makeSpan,pi=["leftmost","mbin","mopen","mrel","mop","mpunct"],Li=["rightmost","mrel","mclose","mpunct"],Gr={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT},Ii={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Jr=function(u,f,h,y){y===void 0&&(y=[null,null]);for(var O=[],H=0;H<u.length;H++){var Ae=Lr(u[H],f);if(Ae instanceof qe){var Ne=Ae.children;O.push.apply(O,Ne)}else O.push(Ae)}if(!h)return O;var Je=f;if(u.length===1){var Ct=hr(u[0],"sizing")||hr(u[0],"styling");Ct&&(Ct.type==="sizing"?Je=f.havingSize(Ct.size):Ct.type==="styling"&&(Je=f.havingStyle(Gr[Ct.style])))}var Pt=Xr([y[0]||"leftmost"],[],f),zt=Xr([y[1]||"rightmost"],[],f);return bi(O,function(nn,cn){var dn=cn.classes[0],wn=nn.classes[0];dn==="mbin"&&$.contains(Li,wn)?cn.classes[0]="mord":wn==="mbin"&&$.contains(pi,dn)&&(nn.classes[0]="mord")},{node:Pt},zt),bi(O,function(nn,cn){var dn=ii(cn),wn=ii(nn),xn=dn&&wn?nn.hasClass("mtight")?Un[dn][wn]:ln[dn][wn]:null;if(xn)return $t.makeGlue(xn,Je)},{node:Pt},zt),O},bi=function U(u,f,h,y){y&&u.push(y);for(var O=0;O<u.length;O++){var H=u[O],Ae=ri(H);if(Ae){U(Ae.children,f,h);continue}if(H.classes[0]!=="mspace"){var Ne=f(H,h.node);Ne&&(h.insertAfter?h.insertAfter(Ne):(u.unshift(Ne),O++)),h.node=H,h.insertAfter=function(Je){return function(Ct){u.splice(Je+1,0,Ct),O++}}(O)}}y&&u.pop()},ri=function(u){return u instanceof qe||u instanceof Pe?u:null},di=function U(u,f){var h=ri(u);if(h){var y=h.children;if(y.length){if(f==="right")return U(y[y.length-1],"right");if(f==="left")return U(y[0],"left")}}return u},ii=function(u,f){return u?(f&&(u=di(u,f)),Ii[u.classes[0]]||null):null},Fi=function(u,f){var h=["nulldelimiter"].concat(u.baseSizingClasses());return Xr(f.concat(h))},Lr=function(u,f,h){if(!u)return Xr();if(lr[u.type]){var y=lr[u.type](u,f);if(h&&f.size!==h.size){y=Xr(f.sizingClasses(h),[y],f);var O=f.sizeMultiplier/h.sizeMultiplier;y.height*=O,y.depth*=O}return y}else throw new g("Got group of unknown type: '"+u.type+"'")};function Oi(U,u){var f=Xr(["base"],U,u),h=Xr(["strut"]);return h.style.height=f.height+f.depth+"em",h.style.verticalAlign=-f.depth+"em",f.children.unshift(h),f}function Pi(U,u){var f=null;U.length===1&&U[0].type==="tag"&&(f=U[0].tag,U=U[0].body);for(var h=Jr(U,u,!0),y=[],O=[],H=0;H<h.length;H++)if(O.push(h[H]),h[H].hasClass("mbin")||h[H].hasClass("mrel")||h[H].hasClass("allowbreak")){for(var Ae=!1;H<h.length-1&&h[H+1].hasClass("mspace")&&!h[H+1].hasClass("newline");)H++,O.push(h[H]),h[H].hasClass("nobreak")&&(Ae=!0);Ae||(y.push(Oi(O,u)),O=[])}else h[H].hasClass("newline")&&(O.pop(),O.length>0&&(y.push(Oi(O,u)),O=[]),y.push(h[H]));O.length>0&&y.push(Oi(O,u));var Ne;f&&(Ne=Oi(Jr(f,u,!0)),Ne.classes=["tag"],y.push(Ne));var Je=Xr(["katex-html"],y);if(Je.setAttribute("aria-hidden","true"),Ne){var Ct=Ne.children[0];Ct.style.height=Je.height+Je.depth+"em",Ct.style.verticalAlign=-Je.depth+"em"}return Je}function ki(U){return new qe(U)}var yr=function(){function U(f,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=f,this.attributes={},this.children=h||[]}var u=U.prototype;return u.setAttribute=function(h,y){this.attributes[h]=y},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 y in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,y)&&h.setAttribute(y,this.attributes[y]);for(var O=0;O<this.children.length;O++)h.appendChild(this.children[O].toNode());return h},u.toMarkup=function(){var h="<"+this.type;for(var y in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,y)&&(h+=" "+y+'="',h+=$.escape(this.attributes[y]),h+='"');h+=">";for(var O=0;O<this.children.length;O++)h+=this.children[O].toMarkup();return h+="</"+this.type+">",h},u.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},U}(),Gn=function(){function U(f){this.text=void 0,this.text=f}var u=U.prototype;return u.toNode=function(){return document.createTextNode(this.text)},u.toMarkup=function(){return $.escape(this.toText())},u.toText=function(){return this.text},U}(),mi=function(){function U(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=U.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:" "},U}(),Ln={MathNode:yr,TextNode:Gn,SpaceNode:mi,newDocumentFragment:ki},Bi=function(u,f,h){return Ye[f][u]&&Ye[f][u].replace&&u.charCodeAt(0)!==55349&&!(Tt.hasOwnProperty(u)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(u=Ye[f][u].replace),new Ln.TextNode(u)},Fa=function(u){return u.length===1?u[0]:new Ln.MathNode("mrow",u)},va=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 y=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 O=u.text;if($.contains(["\\imath","\\jmath"],O))return null;Ye[y][O]&&Ye[y][O].replace&&(O=Ye[y][O].replace);var H=$t.fontMap[h].fontName;return ct(O,H,y)?$t.fontMap[h].variant:null},aa=function(u,f,h){if(u.length===1){var y=Or(u[0],f);return h&&y instanceof yr&&y.type==="mo"&&(y.setAttribute("lspace","0em"),y.setAttribute("rspace","0em")),[y]}for(var O=[],H,Ae=0;Ae<u.length;Ae++){var Ne=Or(u[Ae],f);if(Ne instanceof yr&&H instanceof yr){if(Ne.type==="mtext"&&H.type==="mtext"&&Ne.getAttribute("mathvariant")===H.getAttribute("mathvariant")){var Je;(Je=H.children).push.apply(Je,Ne.children);continue}else if(Ne.type==="mn"&&H.type==="mn"){var Ct;(Ct=H.children).push.apply(Ct,Ne.children);continue}else if(Ne.type==="mi"&&Ne.children.length===1&&H.type==="mn"){var Pt=Ne.children[0];if(Pt instanceof Gn&&Pt.text==="."){var zt;(zt=H.children).push.apply(zt,Ne.children);continue}}else if(H.type==="mi"&&H.children.length===1){var nn=H.children[0];if(nn instanceof Gn&&nn.text==="\u0338"&&(Ne.type==="mo"||Ne.type==="mi"||Ne.type==="mn")){var cn=Ne.children[0];cn instanceof Gn&&cn.text.length>0&&(cn.text=cn.text.slice(0,1)+"\u0338"+cn.text.slice(1),O.pop())}}}O.push(Ne),H=Ne}return O},la=function(u,f,h){return Fa(aa(u,f,h))},Or=function(u,f){if(!u)return new Ln.MathNode("mrow");if(Rr[u.type]){var h=Rr[u.type](u,f);return h}else throw new g("Got group of unknown type: '"+u.type+"'")};function Gi(U,u,f,h){var y=aa(U,f),O;y.length===1&&y[0]instanceof yr&&$.contains(["mrow","mtable"],y[0].type)?O=y[0]:O=new Ln.MathNode("mrow",y);var H=new Ln.MathNode("annotation",[new Ln.TextNode(u)]);H.setAttribute("encoding","application/x-tex");var Ae=new Ln.MathNode("semantics",[O,H]),Ne=new Ln.MathNode("math",[Ae]);Ne.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Je=h?"katex":"katex-mathml";return $t.makeSpan([Je],[Ne])}var da=function(u){return new Zt({style:u.displayMode?E.DISPLAY:E.TEXT,maxSize:u.maxSize,minRuleThickness:u.minRuleThickness})},Sa=function(u,f){if(f.displayMode){var h=["katex-display"];f.leqno&&h.push("leqno"),f.fleqn&&h.push("fleqn"),u=$t.makeSpan(h,[u])}return u},ci=function(u,f,h){var y=da(h),O;if(h.output==="mathml")return Gi(u,f,y,!0);if(h.output==="html"){var H=Pi(u,y);O=$t.makeSpan(["katex"],[H])}else{var Ae=Gi(u,f,y,!1),Ne=Pi(u,y);O=$t.makeSpan(["katex"],[Ae,Ne])}return Sa(O,h)},Ki=function(u,f,h){var y=da(h),O=Pi(u,y),H=$t.makeSpan(["katex"],[O]);return Sa(H,h)},na=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"},zr=function(u){var f=new Ln.MathNode("mo",[new Ln.TextNode(xr[u.substr(1)])]);return f.setAttribute("stretchy","true"),f},Sr={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]},Fr=function(u){return u.type==="ordgroup"?u.body.length:1},ui=function(u,f){function h(){var Ne=4e5,Je=u.label.substr(1);if($.contains(["widehat","widecheck","widetilde","utilde"],Je)){var Ct=u,Pt=Fr(Ct.base),zt,nn,cn;if(Pt>5)Je==="widehat"||Je==="widecheck"?(zt=420,Ne=2364,cn=.42,nn=Je+"4"):(zt=312,Ne=2340,cn=.34,nn="tilde4");else{var dn=[1,1,2,2,3,3][Pt];Je==="widehat"||Je==="widecheck"?(Ne=[0,1062,2364,2364,2364][dn],zt=[0,239,300,360,420][dn],cn=[0,.24,.3,.3,.36,.42][dn],nn=Je+dn):(Ne=[0,600,1033,2339,2340][dn],zt=[0,260,286,306,312][dn],cn=[0,.26,.286,.3,.306,.34][dn],nn="tilde"+dn)}var wn=new pe(nn),xn=new ge([wn],{width:"100%",height:cn+"em",viewBox:"0 0 "+Ne+" "+zt,preserveAspectRatio:"none"});return{span:$t.makeSvgSpan([],[xn],f),minWidth:0,height:cn}}else{var Cn=[],kn=Sr[Je],Xn=kn[0],tr=kn[1],zn=kn[2],Er=zn/1e3,Tr=Xn.length,gi,ni;if(Tr===1){var kt=kn[3];gi=["hide-tail"],ni=[kt]}else if(Tr===2)gi=["halfarrow-left","halfarrow-right"],ni=["xMinYMin","xMaxYMin"];else if(Tr===3)gi=["brace-left","brace-center","brace-right"],ni=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Tr+" children.");for(var vi=0;vi<Tr;vi++){var ta=new pe(Xn[vi]),Qr=new ge([ta],{width:"400em",height:Er+"em",viewBox:"0 0 "+Ne+" "+zn,preserveAspectRatio:ni[vi]+" slice"}),Br=$t.makeSvgSpan([gi[vi]],[Qr],f);if(Tr===1)return{span:Br,minWidth:tr,height:Er};Br.style.height=Er+"em",Cn.push(Br)}return{span:$t.makeSpan(["stretchy"],Cn,f),minWidth:tr,height:Er}}}var y=h(),O=y.span,H=y.minWidth,Ae=y.height;return O.height=Ae,O.style.height=Ae+"em",H>0&&(O.style.minWidth=H+"em"),O},Si=function(u,f,h,y){var O,H=u.height+u.depth+2*h;if(/fbox|color/.test(f)){if(O=$t.makeSpan(["stretchy",f],[],y),f==="fbox"){var Ae=y.color&&y.getColor();Ae&&(O.style.borderColor=Ae)}}else{var Ne=[];/^[bx]cancel$/.test(f)&&Ne.push(new ye({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(f)&&Ne.push(new ye({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Je=new ge(Ne,{width:"100%",height:H+"em"});O=$t.makeSvgSpan([],[Je],y)}return O.height=H,O.style.height=H+"em",O},sa={encloseSpan:Si,mathMLnode:zr,svgSpan:ui},ur=function(u,f){var h,y,O=hr(u,"supsub"),H;O?(y=sr(O.base,"accent"),h=y.base,O.base=h,H=Ze(Lr(O,f)),O.base=y):(y=sr(u,"accent"),h=y.base);var Ae=Lr(h,f.havingCrampedStyle()),Ne=y.isShifty&&$.isCharacterBox(h),Je=0;if(Ne){var Ct=$.getBaseElem(h),Pt=Lr(Ct,f.havingCrampedStyle());Je=Re(Pt).skew}var zt=Math.min(Ae.height,f.fontMetrics().xHeight),nn;if(y.isStretchy)nn=sa.svgSpan(y,f),nn=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ae},{type:"elem",elem:nn,wrapperClasses:["svg-align"],wrapperStyle:Je>0?{width:"calc(100% - "+2*Je+"em)",marginLeft:2*Je+"em"}:void 0}]},f);else{var cn,dn;y.label==="\\vec"?(cn=$t.staticSvg("vec",f),dn=$t.svgData.vec[1]):(cn=$t.makeOrd({mode:y.mode,text:y.label},f,"textord"),cn=Re(cn),cn.italic=0,dn=cn.width),nn=$t.makeSpan(["accent-body"],[cn]);var wn=y.label==="\\textcircled";wn&&(nn.classes.push("accent-full"),zt=Ae.height);var xn=Je;wn||(xn-=dn/2),nn.style.left=xn+"em",y.label==="\\textcircled"&&(nn.style.top=".2em"),nn=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ae},{type:"kern",size:-zt},{type:"elem",elem:nn}]},f)}var Cn=$t.makeSpan(["mord","accent"],[nn],f);return H?(H.children[0]=Cn,H.height=Math.max(Cn.height,H.height),H.classes[0]="mord",H):Cn},Ir=function(u,f){var h=u.isStretchy?sa.mathMLnode(u.label):new Ln.MathNode("mo",[Bi(u.label,u.mode)]),y=new Ln.MathNode("mover",[Or(u.base,f),h]);return y.setAttribute("accent","true"),y},ei=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(U){return"\\"+U}).join("|"));Fn({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],y=!ei.test(u.funcName),O=!y||u.funcName==="\\widehat"||u.funcName==="\\widetilde"||u.funcName==="\\widecheck";return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:y,isShifty:O,base:h}},htmlBuilder:ur,mathmlBuilder:Ir}),Fn({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:Ir}),Fn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0];return{type:"accentUnder",mode:h.mode,label:y,base:O}},htmlBuilder:function(u,f){var h=Lr(u.base,f),y=sa.svgSpan(u,f),O=u.label==="\\utilde"?.12:0,H=$t.makeVList({positionType:"bottom",positionData:y.height+O,children:[{type:"elem",elem:y,wrapperClasses:["svg-align"]},{type:"kern",size:O},{type:"elem",elem:h}]},f);return $t.makeSpan(["mord","accentunder"],[H],f)},mathmlBuilder:function(u,f){var h=sa.mathMLnode(u.label),y=new Ln.MathNode("munder",[Or(u.base,f),h]);return y.setAttribute("accentunder","true"),y}});var $r=function(u){var f=new Ln.MathNode("mpadded",u?[u]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};Fn({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 y=u.parser,O=u.funcName;return{type:"xArrow",mode:y.mode,label:O,body:f[0],below:h[0]}},htmlBuilder:function(u,f){var h=f.style,y=f.havingStyle(h.sup()),O=$t.wrapFragment(Lr(u.body,y,f),f);O.classes.push("x-arrow-pad");var H;u.below&&(y=f.havingStyle(h.sub()),H=$t.wrapFragment(Lr(u.below,y,f),f),H.classes.push("x-arrow-pad"));var Ae=sa.svgSpan(u,f),Ne=-f.fontMetrics().axisHeight+.5*Ae.height,Je=-f.fontMetrics().axisHeight-.5*Ae.height-.111;(O.depth>.25||u.label==="\\xleftequilibrium")&&(Je-=O.depth);var Ct;if(H){var Pt=-f.fontMetrics().axisHeight+H.height+.5*Ae.height+.111;Ct=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:O,shift:Je},{type:"elem",elem:Ae,shift:Ne},{type:"elem",elem:H,shift:Pt}]},f)}else Ct=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:O,shift:Je},{type:"elem",elem:Ae,shift:Ne}]},f);return Ct.children[0].children[0].children[1].classes.push("svg-align"),$t.makeSpan(["mrel","x-arrow"],[Ct],f)},mathmlBuilder:function(u,f){var h=sa.mathMLnode(u.label),y;if(u.body){var O=$r(Or(u.body,f));if(u.below){var H=$r(Or(u.below,f));y=new Ln.MathNode("munderover",[h,H,O])}else y=new Ln.MathNode("mover",[h,O])}else if(u.below){var Ae=$r(Or(u.below,f));y=new Ln.MathNode("munder",[h,Ae])}else y=$r(),y=new Ln.MathNode("mover",[h,y]);return y}}),Fn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){for(var h=u.parser,y=sr(f[0],"ordgroup"),O=y.body,H="",Ae=0;Ae<O.length;Ae++){var Ne=sr(O[Ae],"textord");H+=Ne.text}var Je=parseInt(H);if(isNaN(Je))throw new g("\\@char has non-numeric argument "+H);return{type:"textord",mode:h.mode,text:String.fromCharCode(Je)}}});var ti=function(u,f){var h=Jr(u.body,f.withColor(u.color),!1);return $t.makeFragment(h)},xa=function(u,f){var h=aa(u.body,f.withColor(u.color)),y=new Ln.MathNode("mstyle",h);return y.setAttribute("mathcolor",u.color),y};Fn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(u,f){var h=u.parser,y=sr(f[0],"color-token").color,O=f[1];return{type:"color",mode:h.mode,color:y,body:Dr(O)}},htmlBuilder:ti,mathmlBuilder:xa}),Fn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(u,f){var h=u.parser,y=u.breakOnTokenText,O=sr(f[0],"color-token").color;h.gullet.macros.set("\\current@color",O);var H=h.parseExpression(!0,y);return{type:"color",mode:h.mode,color:O,body:H}},htmlBuilder:ti,mathmlBuilder:xa}),Fn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,f,h){var y=u.parser,O=u.funcName,H=h[0],Ae=O==="\\cr",Ne=!1;return Ae||(y.settings.displayMode&&y.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Ne=!1:Ne=!0),{type:"cr",mode:y.mode,newLine:Ne,newRow:Ae,size:H&&sr(H,"size").value}},htmlBuilder:function(u,f){if(u.newRow)throw new g("\\cr valid only within a tabular/array environment");var h=$t.makeSpan(["mspace"],[],f);return u.newLine&&(h.classes.push("newline"),u.size&&(h.style.marginTop=St(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",St(u.size,f)+"em")),h}});var ua=function(u,f,h){var y=Ye.math[u]&&Ye.math[u].replace,O=ct(y||u,f,h);if(!O)throw new Error("Unsupported symbol "+u+" and font size "+f+".");return O},Ea=function(u,f,h,y){var O=h.havingBaseStyle(f),H=$t.makeSpan(y.concat(O.sizingClasses(h)),[u],h),Ae=O.sizeMultiplier/h.sizeMultiplier;return H.height*=Ae,H.depth*=Ae,H.maxFontSize=O.sizeMultiplier,H},pa=function(u,f,h){var y=f.havingBaseStyle(h),O=(1-f.sizeMultiplier/y.sizeMultiplier)*f.fontMetrics().axisHeight;u.classes.push("delimcenter"),u.style.top=O+"em",u.height-=O,u.depth+=O},bs=function(u,f,h,y,O,H){var Ae=$t.makeSymbol(u,"Main-Regular",O,y),Ne=Ea(Ae,f,y,H);return h&&pa(Ne,y,f),Ne},ao=function(u,f,h,y){return $t.makeSymbol(u,"Size"+f+"-Regular",h,y)},$s=function(u,f,h,y,O,H){var Ae=ao(u,f,O,y),Ne=Ea($t.makeSpan(["delimsizing","size"+f],[Ae],y),E.TEXT,y,H);return h&&pa(Ne,y,E.TEXT),Ne},_a=function(u,f,h){var y;f==="Size1-Regular"?y="delim-size1":y="delim-size4";var O=$t.makeSpan(["delimsizinginner",y],[$t.makeSpan([],[$t.makeSymbol(u,f,h)])]);return{type:"elem",elem:O}},Ba={type:"kern",size:-.005},ka=function(u,f,h,y,O,H){var Ae,Ne,Je,Ct;Ae=Je=Ct=u,Ne=null;var Pt="Size1-Regular";u==="\\uparrow"?Je=Ct="\u23D0":u==="\\Uparrow"?Je=Ct="\u2016":u==="\\downarrow"?Ae=Je="\u23D0":u==="\\Downarrow"?Ae=Je="\u2016":u==="\\updownarrow"?(Ae="\\uparrow",Je="\u23D0",Ct="\\downarrow"):u==="\\Updownarrow"?(Ae="\\Uparrow",Je="\u2016",Ct="\\Downarrow"):u==="["||u==="\\lbrack"?(Ae="\u23A1",Je="\u23A2",Ct="\u23A3",Pt="Size4-Regular"):u==="]"||u==="\\rbrack"?(Ae="\u23A4",Je="\u23A5",Ct="\u23A6",Pt="Size4-Regular"):u==="\\lfloor"||u==="\u230A"?(Je=Ae="\u23A2",Ct="\u23A3",Pt="Size4-Regular"):u==="\\lceil"||u==="\u2308"?(Ae="\u23A1",Je=Ct="\u23A2",Pt="Size4-Regular"):u==="\\rfloor"||u==="\u230B"?(Je=Ae="\u23A5",Ct="\u23A6",Pt="Size4-Regular"):u==="\\rceil"||u==="\u2309"?(Ae="\u23A4",Je=Ct="\u23A5",Pt="Size4-Regular"):u==="("||u==="\\lparen"?(Ae="\u239B",Je="\u239C",Ct="\u239D",Pt="Size4-Regular"):u===")"||u==="\\rparen"?(Ae="\u239E",Je="\u239F",Ct="\u23A0",Pt="Size4-Regular"):u==="\\{"||u==="\\lbrace"?(Ae="\u23A7",Ne="\u23A8",Ct="\u23A9",Je="\u23AA",Pt="Size4-Regular"):u==="\\}"||u==="\\rbrace"?(Ae="\u23AB",Ne="\u23AC",Ct="\u23AD",Je="\u23AA",Pt="Size4-Regular"):u==="\\lgroup"||u==="\u27EE"?(Ae="\u23A7",Ct="\u23A9",Je="\u23AA",Pt="Size4-Regular"):u==="\\rgroup"||u==="\u27EF"?(Ae="\u23AB",Ct="\u23AD",Je="\u23AA",Pt="Size4-Regular"):u==="\\lmoustache"||u==="\u23B0"?(Ae="\u23A7",Ct="\u23AD",Je="\u23AA",Pt="Size4-Regular"):(u==="\\rmoustache"||u==="\u23B1")&&(Ae="\u23AB",Ct="\u23A9",Je="\u23AA",Pt="Size4-Regular");var zt=ua(Ae,Pt,O),nn=zt.height+zt.depth,cn=ua(Je,Pt,O),dn=cn.height+cn.depth,wn=ua(Ct,Pt,O),xn=wn.height+wn.depth,Cn=0,kn=1;if(Ne!==null){var Xn=ua(Ne,Pt,O);Cn=Xn.height+Xn.depth,kn=2}var tr=nn+xn+Cn,zn=Math.max(0,Math.ceil((f-tr)/(kn*dn))),Er=tr+zn*kn*dn,Tr=y.fontMetrics().axisHeight;h&&(Tr*=y.sizeMultiplier);var gi=Er/2-Tr,ni=(zn+1)*.005-dn,kt=[];if(kt.push(_a(Ct,Pt,O)),Ne===null)for(var vi=0;vi<zn;vi++)kt.push(Ba),kt.push(_a(Je,Pt,O));else{for(var ta=0;ta<zn;ta++)kt.push(Ba),kt.push(_a(Je,Pt,O));kt.push({type:"kern",size:ni}),kt.push(_a(Je,Pt,O)),kt.push(Ba),kt.push(_a(Ne,Pt,O));for(var Qr=0;Qr<zn;Qr++)kt.push(Ba),kt.push(_a(Je,Pt,O))}kt.push({type:"kern",size:ni}),kt.push(_a(Je,Pt,O)),kt.push(Ba),kt.push(_a(Ae,Pt,O));var Br=y.havingBaseStyle(E.TEXT),Yi=$t.makeVList({positionType:"bottom",positionData:gi,children:kt},Br);return Ea($t.makeSpan(["delimsizing","mult"],[Yi],Br),E.TEXT,y,H)},js=80,ss=.08,ja=function(u,f,h,y,O){var H=et(u,y,h),Ae=new pe(u,H),Ne=new ge([Ae],{width:"400em",height:f+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return $t.makeSvgSpan(["hide-tail"],[Ne],O)},As=function(u,f){var h=f.havingBaseSizing(),y=os("\\surd",u*h.sizeMultiplier,Ws,h),O=h.sizeMultiplier,H=Math.max(0,f.minRuleThickness-f.fontMetrics().sqrtRuleThickness),Ae,Ne=0,Je=0,Ct=0,Pt;return y.type==="small"?(Ct=1e3+1e3*H+js,u<1?O=1:u<1.4&&(O=.7),Ne=(1+H+ss)/O,Je=(1+H)/O,Ae=ja("sqrtMain",Ne,Ct,H,f),Ae.style.minWidth="0.853em",Pt=.833/O):y.type==="large"?(Ct=(1e3+js)*Cs[y.size],Je=(Cs[y.size]+H)/O,Ne=(Cs[y.size]+H+ss)/O,Ae=ja("sqrtSize"+y.size,Ne,Ct,H,f),Ae.style.minWidth="1.02em",Pt=1/O):(Ne=u+H+ss,Je=u+H,Ct=Math.floor(1e3*u+H)+js,Ae=ja("sqrtTall",Ne,Ct,H,f),Ae.style.minWidth="0.742em",Pt=1.056),Ae.height=Je,Ae.style.height=Ne+"em",{span:Ae,advanceWidth:Pt,ruleWidth:(f.fontMetrics().sqrtRuleThickness+H)*O}},Os=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Hs=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ka=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Cs=[0,1.2,1.8,2.4,3],La=function(u,f,h,y,O){if(u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle"),$.contains(Os,u)||$.contains(Ka,u))return $s(u,f,!1,h,y,O);if($.contains(Hs,u))return ka(u,Cs[f],!1,h,y,O);throw new g("Illegal delimiter: '"+u+"'")},Ps=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ks=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],Ws=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Vs=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.")},os=function(u,f,h,y){for(var O=Math.min(2,3-y.style.size),H=O;H<h.length&&h[H].type!=="stack";H++){var Ae=ua(u,Vs(h[H]),"math"),Ne=Ae.height+Ae.depth;if(h[H].type==="small"){var Je=y.havingBaseStyle(h[H].style);Ne*=Je.sizeMultiplier}if(Ne>f)return h[H]}return h[h.length-1]},Ha=function(u,f,h,y,O,H){u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle");var Ae;$.contains(Ka,u)?Ae=Ps:$.contains(Os,u)?Ae=Ws:Ae=ks;var Ne=os(u,f,Ae,y);return Ne.type==="small"?bs(u,Ne.style,h,y,O,H):Ne.type==="large"?$s(u,Ne.size,h,y,O,H):ka(u,f,h,y,O,H)},fi=function(u,f,h,y,O,H){var Ae=y.fontMetrics().axisHeight*y.sizeMultiplier,Ne=901,Je=5/y.fontMetrics().ptPerEm,Ct=Math.max(f-Ae,h+Ae),Pt=Math.max(Ct/500*Ne,2*Ct-Je);return Ha(u,Pt,!0,y,O,H)},Wr={sqrtImage:As,sizedDelim:La,customSizedDelim:Ha,leftRightDelim:fi},ma={"\\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}},Aa=["(","\\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 Ai(U,u){var f=qr(U);if(f&&$.contains(Aa,f.text))return f;throw new g("Invalid delimiter: '"+(f?f.text:JSON.stringify(U))+"' after '"+u.funcName+"'",U)}Fn({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=Ai(f[0],u);return{type:"delimsizing",mode:u.parser.mode,size:ma[u.funcName].size,mclass:ma[u.funcName].mclass,delim:h.text}},htmlBuilder:function(u,f){return u.delim==="."?$t.makeSpan([u.mclass]):Wr.sizedDelim(u.delim,u.size,f,u.mode,[u.mclass])},mathmlBuilder:function(u){var f=[];u.delim!=="."&&f.push(Bi(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 oa(U){if(!U.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Fn({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:Ai(f[0],u).text,color:h}}}),Fn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(u,f){var h=Ai(f[0],u),y=u.parser;++y.leftrightDepth;var O=y.parseExpression(!1);--y.leftrightDepth,y.expect("\\right",!1);var H=sr(y.parseFunction(),"leftright-right");return{type:"leftright",mode:y.mode,body:O,left:h.text,right:H.delim,rightColor:H.color}},htmlBuilder:function(u,f){oa(u);for(var h=Jr(u.body,f,!0,["mopen","mclose"]),y=0,O=0,H=!1,Ae=0;Ae<h.length;Ae++)h[Ae].isMiddle?H=!0:(y=Math.max(h[Ae].height,y),O=Math.max(h[Ae].depth,O));y*=f.sizeMultiplier,O*=f.sizeMultiplier;var Ne;if(u.left==="."?Ne=Fi(f,["mopen"]):Ne=Wr.leftRightDelim(u.left,y,O,f,u.mode,["mopen"]),h.unshift(Ne),H)for(var Je=1;Je<h.length;Je++){var Ct=h[Je],Pt=Ct.isMiddle;Pt&&(h[Je]=Wr.leftRightDelim(Pt.delim,y,O,Pt.options,u.mode,[]))}var zt;if(u.right===".")zt=Fi(f,["mclose"]);else{var nn=u.rightColor?f.withColor(u.rightColor):f;zt=Wr.leftRightDelim(u.right,y,O,nn,u.mode,["mclose"])}return h.push(zt),$t.makeSpan(["minner"],h,f)},mathmlBuilder:function(u,f){oa(u);var h=aa(u.body,f);if(u.left!=="."){var y=new Ln.MathNode("mo",[Bi(u.left,u.mode)]);y.setAttribute("fence","true"),h.unshift(y)}if(u.right!=="."){var O=new Ln.MathNode("mo",[Bi(u.right,u.mode)]);O.setAttribute("fence","true"),u.rightColor&&O.setAttribute("mathcolor",u.rightColor),h.push(O)}return Fa(h)}}),Fn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(u,f){var h=Ai(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=Fi(f,[]);else{h=Wr.sizedDelim(u.delim,1,f,u.mode,[]);var y={delim:u.delim,options:f};h.isMiddle=y}return h},mathmlBuilder:function(u,f){var h=u.delim==="\\vert"||u.delim==="|"?Bi("|","text"):Bi(u.delim,u.mode),y=new Ln.MathNode("mo",[h]);return y.setAttribute("fence","true"),y.setAttribute("lspace","0.05em"),y.setAttribute("rspace","0.05em"),y}});var Oa=function(u,f){var h=$t.wrapFragment(Lr(u.body,f),f),y=u.label.substr(1),O=f.sizeMultiplier,H,Ae=0,Ne=$.isCharacterBox(u.body);if(y==="sout")H=$t.makeSpan(["stretchy","sout"]),H.height=f.fontMetrics().defaultRuleThickness/O,Ae=-.5*f.fontMetrics().xHeight;else{/cancel/.test(y)?Ne||h.classes.push("cancel-pad"):h.classes.push("boxpad");var Je=0,Ct=0;/box/.test(y)?(Ct=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),Je=f.fontMetrics().fboxsep+(y==="colorbox"?0:Ct)):Je=Ne?.2:0,H=sa.encloseSpan(h,y,Je,f),/fbox|boxed|fcolorbox/.test(y)&&(H.style.borderStyle="solid",H.style.borderWidth=Ct+"em"),Ae=h.depth+Je,u.backgroundColor&&(H.style.backgroundColor=u.backgroundColor,u.borderColor&&(H.style.borderColor=u.borderColor))}var Pt;return u.backgroundColor?Pt=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:H,shift:Ae},{type:"elem",elem:h,shift:0}]},f):Pt=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:H,shift:Ae,wrapperClasses:/cancel/.test(y)?["svg-align"]:[]}]},f),/cancel/.test(y)&&(Pt.height=h.height,Pt.depth=h.depth),/cancel/.test(y)&&!Ne?$t.makeSpan(["mord","cancel-lap"],[Pt],f):$t.makeSpan(["mord"],[Pt],f)},Pa=function(u,f){var h=0,y=new Ln.MathNode(u.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Or(u.body,f)]);switch(u.label){case"\\cancel":y.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":y.setAttribute("notation","downdiagonalstrike");break;case"\\sout":y.setAttribute("notation","horizontalstrike");break;case"\\fbox":y.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,y.setAttribute("width","+"+2*h+"pt"),y.setAttribute("height","+"+2*h+"pt"),y.setAttribute("lspace",h+"pt"),y.setAttribute("voffset",h+"pt"),u.label==="\\fcolorbox"){var O=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);y.setAttribute("style","border: "+O+"em solid "+String(u.borderColor))}break;case"\\xcancel":y.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return u.backgroundColor&&y.setAttribute("mathbackground",u.backgroundColor),y};Fn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(u,f,h){var y=u.parser,O=u.funcName,H=sr(f[0],"color-token").color,Ae=f[1];return{type:"enclose",mode:y.mode,label:O,backgroundColor:H,body:Ae}},htmlBuilder:Oa,mathmlBuilder:Pa}),Fn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(u,f,h){var y=u.parser,O=u.funcName,H=sr(f[0],"color-token").color,Ae=sr(f[1],"color-token").color,Ne=f[2];return{type:"enclose",mode:y.mode,label:O,backgroundColor:Ae,borderColor:H,body:Ne}},htmlBuilder:Oa,mathmlBuilder:Pa}),Fn({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]}}}),Fn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(u,f,h){var y=u.parser,O=u.funcName,H=f[0];return{type:"enclose",mode:y.mode,label:O,body:H}},htmlBuilder:Oa,mathmlBuilder:Pa});var Xa={};function Ca(U){for(var u=U.type,f=U.names,h=U.props,y=U.handler,O=U.htmlBuilder,H=U.mathmlBuilder,Ae={type:u,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:y},Ne=0;Ne<f.length;++Ne)Xa[f[Ne]]=Ae;O&&(lr[u]=O),H&&(Rr[u]=H)}function ts(U){var u=[];U.consumeSpaces();for(var f=U.fetch().text;f==="\\hline"||f==="\\hdashline";)U.consume(),u.push(f==="\\hdashline"),U.consumeSpaces(),f=U.fetch().text;return u}function Wa(U,u,f){var h=u.hskipBeforeAndAfter,y=u.addJot,O=u.cols,H=u.arraystretch,Ae=u.colSeparationType;if(U.gullet.beginGroup(),U.gullet.macros.set("\\\\","\\cr"),!H){var Ne=U.gullet.expandMacroAsText("\\arraystretch");if(Ne==null)H=1;else if(H=parseFloat(Ne),!H||H<0)throw new g("Invalid \\arraystretch: "+Ne)}U.gullet.beginGroup();var Je=[],Ct=[Je],Pt=[],zt=[];for(zt.push(ts(U));;){var nn=U.parseExpression(!1,"\\cr");U.gullet.endGroup(),U.gullet.beginGroup(),nn={type:"ordgroup",mode:U.mode,body:nn},f&&(nn={type:"styling",mode:U.mode,style:f,body:[nn]}),Je.push(nn);var cn=U.fetch().text;if(cn==="&")U.consume();else if(cn==="\\end"){Je.length===1&&nn.type==="styling"&&nn.body[0].body.length===0&&Ct.pop(),zt.length<Ct.length+1&&zt.push([]);break}else if(cn==="\\cr"){var dn=sr(U.parseFunction(),"cr");Pt.push(dn.size),zt.push(ts(U)),Je=[],Ct.push(Je)}else throw new g("Expected & or \\\\ or \\cr or \\end",U.nextToken)}return U.gullet.endGroup(),U.gullet.endGroup(),{type:"array",mode:U.mode,addJot:y,arraystretch:H,body:Ct,cols:O,rowGaps:Pt,hskipBeforeAndAfter:h,hLinesBeforeRow:zt,colSeparationType:Ae}}function ls(U){return U.substr(0,1)==="d"?"display":"text"}var us=function(u,f){var h,y,O=u.body.length,H=u.hLinesBeforeRow,Ae=0,Ne=new Array(O),Je=[],Ct=Math.max(f.fontMetrics().arrayRuleWidth,f.minRuleThickness),Pt=1/f.fontMetrics().ptPerEm,zt=5*Pt;if(u.colSeparationType&&u.colSeparationType==="small"){var nn=f.havingStyle(E.SCRIPT).sizeMultiplier;zt=.2778*(nn/f.sizeMultiplier)}var cn=12*Pt,dn=3*Pt,wn=u.arraystretch*cn,xn=.7*wn,Cn=.3*wn,kn=0;function Xn($i){for(var Ei=0;Ei<$i.length;++Ei)Ei>0&&(kn+=.25),Je.push({pos:kn,isDashed:$i[Ei]})}for(Xn(H[0]),h=0;h<u.body.length;++h){var tr=u.body[h],zn=xn,Er=Cn;Ae<tr.length&&(Ae=tr.length);var Tr=new Array(tr.length);for(y=0;y<tr.length;++y){var gi=Lr(tr[y],f);Er<gi.depth&&(Er=gi.depth),zn<gi.height&&(zn=gi.height),Tr[y]=gi}var ni=u.rowGaps[h],kt=0;ni&&(kt=St(ni,f),kt>0&&(kt+=Cn,Er<kt&&(Er=kt),kt=0)),u.addJot&&(Er+=dn),Tr.height=zn,Tr.depth=Er,kn+=zn,Tr.pos=kn,kn+=Er+kt,Ne[h]=Tr,Xn(H[h+1])}var vi=kn/2+f.fontMetrics().axisHeight,ta=u.cols||[],Qr=[],Br,Yi;for(y=0,Yi=0;y<Ae||Yi<ta.length;++y,++Yi){for(var Qi=ta[Yi]||{},Ar=!0;Qi.type==="separator";){if(Ar||(Br=$t.makeSpan(["arraycolsep"],[]),Br.style.width=f.fontMetrics().doubleRuleSep+"em",Qr.push(Br)),Qi.separator==="|"||Qi.separator===":"){var Zr=Qi.separator==="|"?"solid":"dashed",mr=$t.makeSpan(["vertical-separator"],[],f);mr.style.height=kn+"em",mr.style.borderRightWidth=Ct+"em",mr.style.borderRightStyle=Zr,mr.style.margin="0 -"+Ct/2+"em",mr.style.verticalAlign=-(kn-vi)+"em",Qr.push(mr)}else throw new g("Invalid separator type: "+Qi.separator);Yi++,Qi=ta[Yi]||{},Ar=!1}if(!(y>=Ae)){var _r=void 0;(y>0||u.hskipBeforeAndAfter)&&(_r=$.deflt(Qi.pregap,zt),_r!==0&&(Br=$t.makeSpan(["arraycolsep"],[]),Br.style.width=_r+"em",Qr.push(Br)));var si=[];for(h=0;h<O;++h){var hi=Ne[h],zi=hi[y];if(zi){var Ni=hi.pos-vi;zi.depth=hi.depth,zi.height=hi.height,si.push({type:"elem",elem:zi,shift:Ni})}}si=$t.makeVList({positionType:"individualShift",children:si},f),si=$t.makeSpan(["col-align-"+(Qi.align||"c")],[si]),Qr.push(si),(y<Ae-1||u.hskipBeforeAndAfter)&&(_r=$.deflt(Qi.postgap,zt),_r!==0&&(Br=$t.makeSpan(["arraycolsep"],[]),Br.style.width=_r+"em",Qr.push(Br)))}}if(Ne=$t.makeSpan(["mtable"],Qr),Je.length>0){for(var Wi=$t.makeLineSpan("hline",f,Ct),Ta=$t.makeLineSpan("hdashline",f,Ct),Cr=[{type:"elem",elem:Ne,shift:0}];Je.length>0;){var Pr=Je.pop(),xi=Pr.pos-vi;Pr.isDashed?Cr.push({type:"elem",elem:Ta,shift:xi}):Cr.push({type:"elem",elem:Wi,shift:xi})}Ne=$t.makeVList({positionType:"individualShift",children:Cr},f)}return $t.makeSpan(["mord"],[Ne],f)},Zs={c:"center ",l:"left ",r:"right "},Ci=function(u,f){var h=new Ln.MathNode("mtable",u.body.map(function(kn){return new Ln.MathNode("mtr",kn.map(function(Xn){return new Ln.MathNode("mtd",[Or(Xn,f)])}))})),y=u.arraystretch===.5?.1:.16+u.arraystretch-1+(u.addJot?.09:0);h.setAttribute("rowspacing",y+"em");var O="",H="";if(u.cols){var Ae=u.cols,Ne="",Je=!1,Ct=0,Pt=Ae.length;Ae[0].type==="separator"&&(O+="top ",Ct=1),Ae[Ae.length-1].type==="separator"&&(O+="bottom ",Pt-=1);for(var zt=Ct;zt<Pt;zt++)Ae[zt].type==="align"?(H+=Zs[Ae[zt].align],Je&&(Ne+="none "),Je=!0):Ae[zt].type==="separator"&&Je&&(Ne+=Ae[zt].separator==="|"?"solid ":"dashed ",Je=!1);h.setAttribute("columnalign",H.trim()),/[sd]/.test(Ne)&&h.setAttribute("columnlines",Ne.trim())}if(u.colSeparationType==="align"){for(var nn=u.cols||[],cn="",dn=1;dn<nn.length;dn++)cn+=dn%2?"0em ":"1em ";h.setAttribute("columnspacing",cn.trim())}else u.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):u.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var wn="",xn=u.hLinesBeforeRow;O+=xn[0].length>0?"left ":"",O+=xn[xn.length-1].length>0?"right ":"";for(var Cn=1;Cn<xn.length-1;Cn++)wn+=xn[Cn].length===0?"none ":xn[Cn][0]?"dashed ":"solid ";return/[sd]/.test(wn)&&h.setAttribute("rowlines",wn.trim()),O!==""&&(h=new Ln.MathNode("menclose",[h]),h.setAttribute("notation",O.trim())),u.arraystretch&&u.arraystretch<1&&(h=new Ln.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Ri=function(u,f){var h=[],y=Wa(u.parser,{cols:h,addJot:!0},"display"),O,H=0,Ae={type:"ordgroup",mode:u.mode,body:[]},Ne=hr(f[0],"ordgroup");if(Ne){for(var Je="",Ct=0;Ct<Ne.body.length;Ct++){var Pt=sr(Ne.body[Ct],"textord");Je+=Pt.text}O=Number(Je),H=O*2}var zt=!H;y.body.forEach(function(wn){for(var xn=1;xn<wn.length;xn+=2){var Cn=sr(wn[xn],"styling"),kn=sr(Cn.body[0],"ordgroup");kn.body.unshift(Ae)}if(zt)H<wn.length&&(H=wn.length);else{var Xn=wn.length/2;if(O<Xn)throw new g("Too many math in a row: "+("expected "+O+", but got "+Xn),wn[0])}});for(var nn=0;nn<H;++nn){var cn="r",dn=0;nn%2===1?cn="l":nn>0&&zt&&(dn=1),h[nn]={type:"align",align:cn,pregap:dn,postgap:0}}return y.colSeparationType=zt?"align":"alignat",y};Ca({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(u,f){var h=qr(f[0]),y=h?[f[0]]:sr(f[0],"ordgroup").body,O=y.map(function(Ae){var Ne=li(Ae),Je=Ne.text;if("lcr".indexOf(Je)!==-1)return{type:"align",align:Je};if(Je==="|")return{type:"separator",separator:"|"};if(Je===":")return{type:"separator",separator:":"};throw new g("Unknown column alignment: "+Je,Ae)}),H={cols:O,hskipBeforeAndAfter:!0};return Wa(u.parser,H,ls(u.envName))},htmlBuilder:us,mathmlBuilder:Ci}),Ca({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},y=Wa(u.parser,h,ls(u.envName));return f?{type:"leftright",mode:u.mode,body:[y],left:f[0],right:f[1],rightColor:void 0}:y},htmlBuilder:us,mathmlBuilder:Ci}),Ca({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(u){var f={arraystretch:.5},h=Wa(u.parser,f,"script");return h.colSeparationType="small",h},htmlBuilder:us,mathmlBuilder:Ci}),Ca({type:"array",names:["subarray"],props:{numArgs:1},handler:function(u,f){var h=qr(f[0]),y=h?[f[0]]:sr(f[0],"ordgroup").body,O=y.map(function(Ae){var Ne=li(Ae),Je=Ne.text;if("lc".indexOf(Je)!==-1)return{type:"align",align:Je};throw new g("Unknown column alignment: "+Je,Ae)});if(O.length>1)throw new g("{subarray} can contain only one column");var H={cols:O,hskipBeforeAndAfter:!1,arraystretch:.5};if(H=Wa(u.parser,H,"script"),H.body[0].length>1)throw new g("{subarray} can contain only one column");return H},htmlBuilder:us,mathmlBuilder:Ci}),Ca({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=Wa(u.parser,f,ls(u.envName));return{type:"leftright",mode:u.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:us,mathmlBuilder:Ci}),Ca({type:"array",names:["aligned"],props:{numArgs:0},handler:Ri,htmlBuilder:us,mathmlBuilder:Ci}),Ca({type:"array",names:["gathered"],props:{numArgs:0},handler:function(u){var f={cols:[{type:"align",align:"c"}],addJot:!0};return Wa(u.parser,f,"display")},htmlBuilder:us,mathmlBuilder:Ci}),Ca({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ri,htmlBuilder:us,mathmlBuilder:Ci}),Fn({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 Hi=Xa,wa=Hi;Fn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0];if(O.type!=="ordgroup")throw new g("Invalid environment name",O);for(var H="",Ae=0;Ae<O.body.length;++Ae)H+=sr(O.body[Ae],"textord").text;if(y==="\\begin"){if(!wa.hasOwnProperty(H))throw new g("No such environment: "+H,O);var Ne=wa[H],Je=h.parseArguments("\\begin{"+H+"}",Ne),Ct=Je.args,Pt=Je.optArgs,zt={mode:h.mode,envName:H,parser:h},nn=Ne.handler(zt,Ct,Pt);h.expect("\\end",!1);var cn=h.nextToken,dn=sr(h.parseFunction(),"environment");if(dn.name!==H)throw new g("Mismatch: \\begin{"+H+"} matched by \\end{"+dn.name+"}",cn);return nn}return{type:"environment",mode:h.mode,name:H,nameGroup:O}}});var Na=$t.makeSpan;function Ss(U,u){var f=Jr(U.body,u,!0);return Na([U.mclass],f,u)}function ws(U,u){var f,h=aa(U.body,u);return U.mclass==="minner"?Ln.newDocumentFragment(h):(U.mclass==="mord"?U.isCharacterBox?(f=h[0],f.type="mi"):f=new Ln.MathNode("mi",h):(U.isCharacterBox?(f=h[0],f.type="mo"):f=new Ln.MathNode("mo",h),U.mclass==="mbin"?(f.attributes.lspace="0.22em",f.attributes.rspace="0.22em"):U.mclass==="mpunct"?(f.attributes.lspace="0em",f.attributes.rspace="0.17em"):(U.mclass==="mopen"||U.mclass==="mclose")&&(f.attributes.lspace="0em",f.attributes.rspace="0em")),f)}Fn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0];return{type:"mclass",mode:h.mode,mclass:"m"+y.substr(5),body:Dr(O),isCharacterBox:$.isCharacterBox(O)}},htmlBuilder:Ss,mathmlBuilder:ws});var hs=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"};Fn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(u,f){var h=u.parser;return{type:"mclass",mode:h.mode,mclass:hs(f[0]),body:[f[1]],isCharacterBox:$.isCharacterBox(f[1])}}}),Fn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[1],H=f[0],Ae;y!=="\\stackrel"?Ae=hs(O):Ae="mrel";var Ne={type:"op",mode:O.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:y!=="\\stackrel",body:Dr(O)},Je={type:"supsub",mode:H.mode,base:Ne,sup:y==="\\underset"?null:H,sub:y==="\\underset"?H:null};return{type:"mclass",mode:h.mode,mclass:Ae,body:[Je],isCharacterBox:$.isCharacterBox(Je)}},htmlBuilder:Ss,mathmlBuilder:ws});var Gs=function(u,f){var h=u.font,y=f.withFont(h);return Lr(u.body,y)},Ts=function(u,f){var h=u.font,y=f.withFont(h);return Or(u.body,y)},Rs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Fn({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,y=u.funcName,O=f[0],H=y;return H in Rs&&(H=Rs[H]),{type:"font",mode:h.mode,font:H.slice(1),body:O}},htmlBuilder:Gs,mathmlBuilder:Ts}),Fn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(u,f){var h=u.parser,y=f[0],O=$.isCharacterBox(y);return{type:"mclass",mode:h.mode,mclass:hs(y),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:y}],isCharacterBox:O}}}),Fn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.parser,y=u.funcName,O=u.breakOnTokenText,H=h.mode,Ae=h.parseExpression(!0,O),Ne="math"+y.slice(1);return{type:"font",mode:H,font:Ne,body:{type:"ordgroup",mode:h.mode,body:Ae}}},htmlBuilder:Gs,mathmlBuilder:Ts});var Ys=function(u,f){var h=f;return u==="display"?h=h.id>=E.SCRIPT.id?h.text():E.DISPLAY:u==="text"&&h.size===E.DISPLAY.size?h=E.TEXT:u==="script"?h=E.SCRIPT:u==="scriptscript"&&(h=E.SCRIPTSCRIPT),h},Ns=function(u,f){var h=Ys(u.size,f.style),y=h.fracNum(),O=h.fracDen(),H;H=f.havingStyle(y);var Ae=Lr(u.numer,H,f);if(u.continued){var Ne=8.5/f.fontMetrics().ptPerEm,Je=3.5/f.fontMetrics().ptPerEm;Ae.height=Ae.height<Ne?Ne:Ae.height,Ae.depth=Ae.depth<Je?Je:Ae.depth}H=f.havingStyle(O);var Ct=Lr(u.denom,H,f),Pt,zt,nn;u.hasBarLine?(u.barSize?(zt=St(u.barSize,f),Pt=$t.makeLineSpan("frac-line",f,zt)):Pt=$t.makeLineSpan("frac-line",f),zt=Pt.height,nn=Pt.height):(Pt=null,zt=0,nn=f.fontMetrics().defaultRuleThickness);var cn,dn,wn;h.size===E.DISPLAY.size||u.size==="display"?(cn=f.fontMetrics().num1,zt>0?dn=3*nn:dn=7*nn,wn=f.fontMetrics().denom1):(zt>0?(cn=f.fontMetrics().num2,dn=nn):(cn=f.fontMetrics().num3,dn=3*nn),wn=f.fontMetrics().denom2);var xn;if(Pt){var kn=f.fontMetrics().axisHeight;cn-Ae.depth-(kn+.5*zt)<dn&&(cn+=dn-(cn-Ae.depth-(kn+.5*zt))),kn-.5*zt-(Ct.height-wn)<dn&&(wn+=dn-(kn-.5*zt-(Ct.height-wn)));var Xn=-(kn-.5*zt);xn=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ct,shift:wn},{type:"elem",elem:Pt,shift:Xn},{type:"elem",elem:Ae,shift:-cn}]},f)}else{var Cn=cn-Ae.depth-(Ct.height-wn);Cn<dn&&(cn+=.5*(dn-Cn),wn+=.5*(dn-Cn)),xn=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ct,shift:wn},{type:"elem",elem:Ae,shift:-cn}]},f)}H=f.havingStyle(h),xn.height*=H.sizeMultiplier/f.sizeMultiplier,xn.depth*=H.sizeMultiplier/f.sizeMultiplier;var tr;h.size===E.DISPLAY.size?tr=f.fontMetrics().delim1:tr=f.fontMetrics().delim2;var zn,Er;return u.leftDelim==null?zn=Fi(f,["mopen"]):zn=Wr.customSizedDelim(u.leftDelim,tr,!0,f.havingStyle(h),u.mode,["mopen"]),u.continued?Er=$t.makeSpan([]):u.rightDelim==null?Er=Fi(f,["mclose"]):Er=Wr.customSizedDelim(u.rightDelim,tr,!0,f.havingStyle(h),u.mode,["mclose"]),$t.makeSpan(["mord"].concat(H.sizingClasses(f)),[zn,$t.makeSpan(["mfrac"],[xn]),Er],f)},so=function(u,f){var h=new Ln.MathNode("mfrac",[Or(u.numer,f),Or(u.denom,f)]);if(!u.hasBarLine)h.setAttribute("linethickness","0px");else if(u.barSize){var y=St(u.barSize,f);h.setAttribute("linethickness",y+"em")}var O=Ys(u.size,f.style);if(O.size!==f.style.size){h=new Ln.MathNode("mstyle",[h]);var H=O.size===E.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",H),h.setAttribute("scriptlevel","0")}if(u.leftDelim!=null||u.rightDelim!=null){var Ae=[];if(u.leftDelim!=null){var Ne=new Ln.MathNode("mo",[new Ln.TextNode(u.leftDelim.replace("\\",""))]);Ne.setAttribute("fence","true"),Ae.push(Ne)}if(Ae.push(h),u.rightDelim!=null){var Je=new Ln.MathNode("mo",[new Ln.TextNode(u.rightDelim.replace("\\",""))]);Je.setAttribute("fence","true"),Ae.push(Je)}return Fa(Ae)}return h};Fn({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,y=u.funcName,O=f[0],H=f[1],Ae,Ne=null,Je=null,Ct="auto";switch(y){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Ae=!0;break;case"\\\\atopfrac":Ae=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Ae=!1,Ne="(",Je=")";break;case"\\\\bracefrac":Ae=!1,Ne="\\{",Je="\\}";break;case"\\\\brackfrac":Ae=!1,Ne="[",Je="]";break;default:throw new Error("Unrecognized genfrac command")}switch(y){case"\\cfrac":case"\\dfrac":case"\\dbinom":Ct="display";break;case"\\tfrac":case"\\tbinom":Ct="text";break}return{type:"genfrac",mode:h.mode,continued:y==="\\cfrac",numer:O,denom:H,hasBarLine:Ae,leftDelim:Ne,rightDelim:Je,size:Ct,barSize:null}},htmlBuilder:Ns,mathmlBuilder:so}),Fn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(u){var f=u.parser,h=u.funcName,y=u.token,O;switch(h){case"\\over":O="\\frac";break;case"\\choose":O="\\binom";break;case"\\atop":O="\\\\atopfrac";break;case"\\brace":O="\\\\bracefrac";break;case"\\brack":O="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:O,token:y}}});var Ua=["display","text","script","scriptscript"],Va=function(u){var f=null;return u.length>0&&(f=u,f=f==="."?null:f),f};Fn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(u,f){var h=u.parser,y=f[4],O=f[5],H=hr(f[0],"atom");H&&(H=Yr(f[0],"open"));var Ae=H?Va(H.text):null,Ne=hr(f[1],"atom");Ne&&(Ne=Yr(f[1],"close"));var Je=Ne?Va(Ne.text):null,Ct=sr(f[2],"size"),Pt,zt=null;Ct.isBlank?Pt=!0:(zt=Ct.value,Pt=zt.number>0);var nn="auto",cn=hr(f[3],"ordgroup");if(cn){if(cn.body.length>0){var dn=sr(cn.body[0],"textord");nn=Ua[Number(dn.text)]}}else cn=sr(f[3],"textord"),nn=Ua[Number(cn.text)];return{type:"genfrac",mode:h.mode,numer:y,denom:O,continued:!1,hasBarLine:Pt,barSize:zt,leftDelim:Ae,rightDelim:Je,size:nn}},htmlBuilder:Ns,mathmlBuilder:so}),Fn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(u,f){var h=u.parser,y=u.funcName,O=u.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:sr(f[0],"size").value,token:O}}}),Fn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0],H=W(sr(f[1],"infix").size),Ae=f[2],Ne=H.number>0;return{type:"genfrac",mode:h.mode,numer:O,denom:Ae,continued:!1,hasBarLine:Ne,barSize:H,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ns,mathmlBuilder:so});var Uo=function(u,f){var h=f.style,y,O,H=hr(u,"supsub");H?(y=H.sup?Lr(H.sup,f.havingStyle(h.sup()),f):Lr(H.sub,f.havingStyle(h.sub()),f),O=sr(H.base,"horizBrace")):O=sr(u,"horizBrace");var Ae=Lr(O.base,f.havingBaseStyle(E.DISPLAY)),Ne=sa.svgSpan(O,f),Je;if(O.isOver?(Je=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ae},{type:"kern",size:.1},{type:"elem",elem:Ne}]},f),Je.children[0].children[0].children[1].classes.push("svg-align")):(Je=$t.makeVList({positionType:"bottom",positionData:Ae.depth+.1+Ne.height,children:[{type:"elem",elem:Ne},{type:"kern",size:.1},{type:"elem",elem:Ae}]},f),Je.children[0].children[0].children[0].classes.push("svg-align")),y){var Ct=$t.makeSpan(["mord",O.isOver?"mover":"munder"],[Je],f);O.isOver?Je=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ct},{type:"kern",size:.2},{type:"elem",elem:y}]},f):Je=$t.makeVList({positionType:"bottom",positionData:Ct.depth+.2+y.height+y.depth,children:[{type:"elem",elem:y},{type:"kern",size:.2},{type:"elem",elem:Ct}]},f)}return $t.makeSpan(["mord",O.isOver?"mover":"munder"],[Je],f)},Pn=function(u,f){var h=sa.mathMLnode(u.label);return new Ln.MathNode(u.isOver?"mover":"munder",[Or(u.base,f),h])};Fn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=u.funcName;return{type:"horizBrace",mode:h.mode,label:y,isOver:/^\\over/.test(y),base:f[0]}},htmlBuilder:Uo,mathmlBuilder:Pn}),Fn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(u,f){var h=u.parser,y=f[1],O=sr(f[0],"url").url;return h.settings.isTrusted({command:"\\href",url:O})?{type:"href",mode:h.mode,href:O,body:Dr(y)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(u,f){var h=Jr(u.body,f,!1);return $t.makeAnchor(u.href,[],h,f)},mathmlBuilder:function(u,f){var h=la(u.body,f);return h instanceof yr||(h=new yr("mrow",[h])),h.setAttribute("href",u.href),h}}),Fn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(u,f){var h=u.parser,y=sr(f[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:y}))return h.formatUnsupportedCmd("\\url");for(var O=[],H=0;H<y.length;H++){var Ae=y[H];Ae==="~"&&(Ae="\\textasciitilde"),O.push({type:"textord",mode:"text",text:Ae})}var Ne={type:"text",mode:h.mode,font:"\\texttt",body:O};return{type:"href",mode:h.mode,href:y,body:Dr(Ne)}}}),Fn({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=Jr(u.html,f,!1);return $t.makeFragment(h)},mathmlBuilder:function(u,f){return la(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(!_n(h))throw new g("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};Fn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(u,f,h){var y=u.parser,O={number:0,unit:"em"},H={number:.9,unit:"em"},Ae={number:0,unit:"em"},Ne="";if(h[0])for(var Je=sr(h[0],"raw").string,Ct=Je.split(","),Pt=0;Pt<Ct.length;Pt++){var zt=Ct[Pt].split("=");if(zt.length===2){var nn=zt[1].trim();switch(zt[0].trim()){case"alt":Ne=nn;break;case"width":O=oo(nn);break;case"height":H=oo(nn);break;case"totalheight":Ae=oo(nn);break;default:throw new g("Invalid key: '"+zt[0]+"' in \\includegraphics.")}}}var cn=sr(f[0],"url").url;return Ne===""&&(Ne=cn,Ne=Ne.replace(/^.*[\\/]/,""),Ne=Ne.substring(0,Ne.lastIndexOf("."))),y.settings.isTrusted({command:"\\includegraphics",url:cn})?{type:"includegraphics",mode:y.mode,alt:Ne,width:O,height:H,totalheight:Ae,src:cn}:y.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(u,f){var h=St(u.height,f),y=0;u.totalheight.number>0&&(y=St(u.totalheight,f)-h,y=Number(y.toFixed(2)));var O=0;u.width.number>0&&(O=St(u.width,f));var H={height:h+y+"em"};O>0&&(H.width=O+"em"),y>0&&(H.verticalAlign=-y+"em");var Ae=new z(u.src,u.alt,H);return Ae.height=h,Ae.depth=y,Ae},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mglyph",[]);h.setAttribute("alt",u.alt);var y=St(u.height,f),O=0;if(u.totalheight.number>0&&(O=St(u.totalheight,f)-y,O=O.toFixed(2),h.setAttribute("valign","-"+O+"em")),h.setAttribute("height",y+O+"em"),u.width.number>0){var H=St(u.width,f);h.setAttribute("width",H+"em")}return h.setAttribute("src",u.src),h}}),Fn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,f){var h=u.parser,y=u.funcName,O=sr(f[0],"size");if(h.settings.strict){var H=y[1]==="m",Ae=O.value.unit==="mu";H?(Ae||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+y+" supports only mu units, "+("not "+O.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+y+" works only in math mode")):Ae&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+y+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:O.value}},htmlBuilder:function(u,f){return $t.makeGlue(u.dimension,f)},mathmlBuilder:function(u,f){var h=St(u.dimension,f);return new Ln.SpaceNode(h)}}),Fn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0];return{type:"lap",mode:h.mode,alignment:y.slice(5),body:O}},htmlBuilder:function(u,f){var h;u.alignment==="clap"?(h=$t.makeSpan([],[Lr(u.body,f)]),h=$t.makeSpan(["inner"],[h],f)):h=$t.makeSpan(["inner"],[Lr(u.body,f)]);var y=$t.makeSpan(["fix"],[]),O=$t.makeSpan([u.alignment],[h,y],f),H=$t.makeSpan(["strut"]);return H.style.height=O.height+O.depth+"em",H.style.verticalAlign=-O.depth+"em",O.children.unshift(H),O=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:O}]},f),$t.makeSpan(["mord"],[O],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Or(u.body,f)]);if(u.alignment!=="rlap"){var y=u.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",y+"width")}return h.setAttribute("width","0px"),h}}),Fn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,f){var h=u.funcName,y=u.parser,O=y.mode;y.switchMode("math");var H=h==="\\("?"\\)":"$",Ae=y.parseExpression(!1,H);return y.expect(H),y.switchMode(O),{type:"styling",mode:y.mode,style:"text",body:Ae}}}),Fn({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 E.DISPLAY.size:return u.display;case E.TEXT.size:return u.text;case E.SCRIPT.size:return u.script;case E.SCRIPTSCRIPT.size:return u.scriptscript;default:return u.text}};Fn({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),y=Jr(h,f,!1);return $t.makeFragment(y)},mathmlBuilder:function(u,f){var h=jr(u,f);return la(h,f)}});var Us=function(u,f,h,y,O,H,Ae){u=$t.makeSpan([],[u]);var Ne,Je;if(f){var Ct=Lr(f,y.havingStyle(O.sup()),y);Je={elem:Ct,kern:Math.max(y.fontMetrics().bigOpSpacing1,y.fontMetrics().bigOpSpacing3-Ct.depth)}}if(h){var Pt=Lr(h,y.havingStyle(O.sub()),y);Ne={elem:Pt,kern:Math.max(y.fontMetrics().bigOpSpacing2,y.fontMetrics().bigOpSpacing4-Pt.height)}}var zt;if(Je&&Ne){var nn=y.fontMetrics().bigOpSpacing5+Ne.elem.height+Ne.elem.depth+Ne.kern+u.depth+Ae;zt=$t.makeVList({positionType:"bottom",positionData:nn,children:[{type:"kern",size:y.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ne.elem,marginLeft:-H+"em"},{type:"kern",size:Ne.kern},{type:"elem",elem:u},{type:"kern",size:Je.kern},{type:"elem",elem:Je.elem,marginLeft:H+"em"},{type:"kern",size:y.fontMetrics().bigOpSpacing5}]},y)}else if(Ne){var cn=u.height-Ae;zt=$t.makeVList({positionType:"top",positionData:cn,children:[{type:"kern",size:y.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ne.elem,marginLeft:-H+"em"},{type:"kern",size:Ne.kern},{type:"elem",elem:u}]},y)}else if(Je){var dn=u.depth+Ae;zt=$t.makeVList({positionType:"bottom",positionData:dn,children:[{type:"elem",elem:u},{type:"kern",size:Je.kern},{type:"elem",elem:Je.elem,marginLeft:H+"em"},{type:"kern",size:y.fontMetrics().bigOpSpacing5}]},y)}else return u;return $t.makeSpan(["mop","op-limits"],[zt],y)},Qs=["\\smallint"],Ds=function(u,f){var h,y,O=!1,H,Ae=hr(u,"supsub");Ae?(h=Ae.sup,y=Ae.sub,H=sr(Ae.base,"op"),O=!0):H=sr(u,"op");var Ne=f.style,Je=!1;Ne.size===E.DISPLAY.size&&H.symbol&&!$.contains(Qs,H.name)&&(Je=!0);var Ct;if(H.symbol){var Pt=Je?"Size2-Regular":"Size1-Regular",zt="";if((H.name==="\\oiint"||H.name==="\\oiiint")&&(zt=H.name.substr(1),H.name=zt==="oiint"?"\\iint":"\\iiint"),Ct=$t.makeSymbol(H.name,Pt,"math",f,["mop","op-symbol",Je?"large-op":"small-op"]),zt.length>0){var nn=Ct.italic,cn=$t.staticSvg(zt+"Size"+(Je?"2":"1"),f);Ct=$t.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ct,shift:0},{type:"elem",elem:cn,shift:Je?.08:0}]},f),H.name="\\"+zt,Ct.classes.unshift("mop"),Ct.italic=nn}}else if(H.body){var dn=Jr(H.body,f,!0);dn.length===1&&dn[0]instanceof ue?(Ct=dn[0],Ct.classes[0]="mop"):Ct=$t.makeSpan(["mop"],$t.tryCombineChars(dn),f)}else{for(var wn=[],xn=1;xn<H.name.length;xn++)wn.push($t.mathsym(H.name[xn],H.mode,f));Ct=$t.makeSpan(["mop"],wn,f)}var Cn=0,kn=0;return(Ct instanceof ue||H.name==="\\oiint"||H.name==="\\oiiint")&&!H.suppressBaseShift&&(Cn=(Ct.height-Ct.depth)/2-f.fontMetrics().axisHeight,kn=Ct.italic),O?Us(Ct,h,y,f,Ne,kn,Cn):(Cn&&(Ct.style.position="relative",Ct.style.top=Cn+"em"),Ct)},qs=function(u,f){var h;if(u.symbol)h=new yr("mo",[Bi(u.name,u.mode)]),$.contains(Qs,u.name)&&h.setAttribute("largeop","false");else if(u.body)h=new yr("mo",aa(u.body,f));else{h=new yr("mi",[new Gn(u.name.slice(1))]);var y=new yr("mo",[Bi("\u2061","text")]);u.parentIsSupSub?h=new yr("mo",[h,y]):h=ki([h,y])}return h},_l={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Fn({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,y=u.funcName,O=y;return O.length===1&&(O=_l[O]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:O}},htmlBuilder:Ds,mathmlBuilder:qs}),Fn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=f[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dr(y)}},htmlBuilder:Ds,mathmlBuilder:qs});var rl={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Fn({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:Ds,mathmlBuilder:qs}),Fn({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:Ds,mathmlBuilder:qs}),Fn({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,y=h;return y.length===1&&(y=rl[y]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:y}},htmlBuilder:Ds,mathmlBuilder:qs});var So=function(u,f){var h,y,O=!1,H,Ae=hr(u,"supsub");Ae?(h=Ae.sup,y=Ae.sub,H=sr(Ae.base,"operatorname"),O=!0):H=sr(u,"operatorname");var Ne;if(H.body.length>0){for(var Je=H.body.map(function(nn){var cn=nn.text;return typeof cn=="string"?{type:"textord",mode:nn.mode,text:cn}:nn}),Ct=Jr(Je,f.withFont("mathrm"),!0),Pt=0;Pt<Ct.length;Pt++){var zt=Ct[Pt];zt instanceof ue&&(zt.text=zt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Ne=$t.makeSpan(["mop"],Ct,f)}else Ne=$t.makeSpan(["mop"],[],f);return O?Us(Ne,h,y,f,f.style,0,0):Ne},lo=function(u,f){for(var h=aa(u.body,f.withFont("mathrm")),y=!0,O=0;O<h.length;O++){var H=h[O];if(!(H instanceof Ln.SpaceNode))if(H instanceof Ln.MathNode)switch(H.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Ae=H.children[0];H.children.length===1&&Ae instanceof Ln.TextNode?Ae.text=Ae.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):y=!1;break}default:y=!1}else y=!1}if(y){var Ne=h.map(function(Pt){return Pt.toText()}).join("");h=[new Ln.TextNode(Ne)]}var Je=new Ln.MathNode("mi",h);Je.setAttribute("mathvariant","normal");var Ct=new Ln.MathNode("mo",[Bi("\u2061","text")]);return u.parentIsSupSub?new Ln.MathNode("mo",[Je,Ct]):Ln.newDocumentFragment([Je,Ct])};Fn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=u.funcName,O=f[0];return{type:"operatorname",mode:h.mode,body:Dr(O),alwaysHandleSupSub:y==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:So,mathmlBuilder:lo}),pr({type:"ordgroup",htmlBuilder:function(u,f){return u.semisimple?$t.makeFragment(Jr(u.body,f,!1)):$t.makeSpan(["mord"],Jr(u.body,f,!0),f)},mathmlBuilder:function(u,f){return la(u.body,f,!0)}}),Fn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(u,f){var h=u.parser,y=f[0];return{type:"overline",mode:h.mode,body:y}},htmlBuilder:function(u,f){var h=Lr(u.body,f.havingCrampedStyle()),y=$t.makeLineSpan("overline-line",f),O=f.fontMetrics().defaultRuleThickness,H=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*O},{type:"elem",elem:y},{type:"kern",size:O}]},f);return $t.makeSpan(["mord","overline"],[H],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[new Ln.TextNode("\u203E")]);h.setAttribute("stretchy","true");var y=new Ln.MathNode("mover",[Or(u.body,f),h]);return y.setAttribute("accent","true"),y}}),Fn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,y=f[0];return{type:"phantom",mode:h.mode,body:Dr(y)}},htmlBuilder:function(u,f){var h=Jr(u.body,f.withPhantom(),!1);return $t.makeFragment(h)},mathmlBuilder:function(u,f){var h=aa(u.body,f);return new Ln.MathNode("mphantom",h)}}),Fn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,y=f[0];return{type:"hphantom",mode:h.mode,body:y}},htmlBuilder:function(u,f){var h=$t.makeSpan([],[Lr(u.body,f.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var y=0;y<h.children.length;y++)h.children[y].height=0,h.children[y].depth=0;return h=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f),$t.makeSpan(["mord"],[h],f)},mathmlBuilder:function(u,f){var h=aa(Dr(u.body),f),y=new Ln.MathNode("mphantom",h),O=new Ln.MathNode("mpadded",[y]);return O.setAttribute("height","0px"),O.setAttribute("depth","0px"),O}}),Fn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,f){var h=u.parser,y=f[0];return{type:"vphantom",mode:h.mode,body:y}},htmlBuilder:function(u,f){var h=$t.makeSpan(["inner"],[Lr(u.body,f.withPhantom())]),y=$t.makeSpan(["fix"],[]);return $t.makeSpan(["mord","rlap"],[h,y],f)},mathmlBuilder:function(u,f){var h=aa(Dr(u.body),f),y=new Ln.MathNode("mphantom",h),O=new Ln.MathNode("mpadded",[y]);return O.setAttribute("width","0px"),O}}),Fn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(u,f){var h=u.parser,y=sr(f[0],"size").value,O=f[1];return{type:"raisebox",mode:h.mode,dy:y,body:O}},htmlBuilder:function(u,f){var h=Lr(u.body,f),y=St(u.dy,f);return $t.makeVList({positionType:"shift",positionData:-y,children:[{type:"elem",elem:h}]},f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Or(u.body,f)]),y=u.dy.number+u.dy.unit;return h.setAttribute("voffset",y),h}}),Fn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(u,f,h){var y=u.parser,O=h[0],H=sr(f[0],"size"),Ae=sr(f[1],"size");return{type:"rule",mode:y.mode,shift:O&&sr(O,"size").value,width:H.value,height:Ae.value}},htmlBuilder:function(u,f){var h=$t.makeSpan(["mord","rule"],[],f),y=St(u.width,f),O=St(u.height,f),H=u.shift?St(u.shift,f):0;return h.style.borderRightWidth=y+"em",h.style.borderTopWidth=O+"em",h.style.bottom=H+"em",h.width=y,h.height=O+H,h.depth=-H,h.maxFontSize=O*1.125*f.sizeMultiplier,h},mathmlBuilder:function(u,f){var h=St(u.width,f),y=St(u.height,f),O=u.shift?St(u.shift,f):0,H=f.color&&f.getColor()||"black",Ae=new Ln.MathNode("mspace");Ae.setAttribute("mathbackground",H),Ae.setAttribute("width",h+"em"),Ae.setAttribute("height",y+"em");var Ne=new Ln.MathNode("mpadded",[Ae]);return O>=0?Ne.setAttribute("height","+"+O+"em"):(Ne.setAttribute("height",O+"em"),Ne.setAttribute("depth","+"+-O+"em")),Ne.setAttribute("voffset",O+"em"),Ne}});function Xs(U,u,f){for(var h=Jr(U,u,!1),y=u.sizeMultiplier/f.sizeMultiplier,O=0;O<h.length;O++){var H=h[O].classes.indexOf("sizing");H<0?Array.prototype.push.apply(h[O].classes,u.sizingClasses(f)):h[O].classes[H+1]==="reset-size"+u.size&&(h[O].classes[H+1]="reset-size"+f.size),h[O].height*=y,h[O].depth*=y}return $t.makeFragment(h)}var Mo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Al=function(u,f){var h=f.havingSize(u.size);return Xs(u.body,h,f)};Fn({type:"sizing",names:Mo,props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.breakOnTokenText,y=u.funcName,O=u.parser,H=O.parseExpression(!1,h);return{type:"sizing",mode:O.mode,size:Mo.indexOf(y)+1,body:H}},htmlBuilder:Al,mathmlBuilder:function(u,f){var h=f.havingSize(u.size),y=aa(u.body,h),O=new Ln.MathNode("mstyle",y);return O.setAttribute("mathsize",h.sizeMultiplier+"em"),O}}),Fn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(u,f,h){var y=u.parser,O=!1,H=!1,Ae=h[0]&&sr(h[0],"ordgroup");if(Ae)for(var Ne="",Je=0;Je<Ae.body.length;++Je){var Ct=Ae.body[Je];if(Ne=Ct.text,Ne==="t")O=!0;else if(Ne==="b")H=!0;else{O=!1,H=!1;break}}else O=!0,H=!0;var Pt=f[0];return{type:"smash",mode:y.mode,body:Pt,smashHeight:O,smashDepth:H}},htmlBuilder:function(u,f){var h=$t.makeSpan([],[Lr(u.body,f)]);if(!u.smashHeight&&!u.smashDepth)return h;if(u.smashHeight&&(h.height=0,h.children))for(var y=0;y<h.children.length;y++)h.children[y].height=0;if(u.smashDepth&&(h.depth=0,h.children))for(var O=0;O<h.children.length;O++)h.children[O].depth=0;var H=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},f);return $t.makeSpan(["mord"],[H],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mpadded",[Or(u.body,f)]);return u.smashHeight&&h.setAttribute("height","0px"),u.smashDepth&&h.setAttribute("depth","0px"),h}}),Fn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,f,h){var y=u.parser,O=h[0],H=f[0];return{type:"sqrt",mode:y.mode,body:H,index:O}},htmlBuilder:function(u,f){var h=Lr(u.body,f.havingCrampedStyle());h.height===0&&(h.height=f.fontMetrics().xHeight),h=$t.wrapFragment(h,f);var y=f.fontMetrics(),O=y.defaultRuleThickness,H=O;f.style.id<E.TEXT.id&&(H=f.fontMetrics().xHeight);var Ae=O+H/4,Ne=h.height+h.depth+Ae+O,Je=Wr.sqrtImage(Ne,f),Ct=Je.span,Pt=Je.ruleWidth,zt=Je.advanceWidth,nn=Ct.height-Pt;nn>h.height+h.depth+Ae&&(Ae=(Ae+nn-h.height-h.depth)/2);var cn=Ct.height-h.height-Ae-Pt;h.style.paddingLeft=zt+"em";var dn=$t.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+cn)},{type:"elem",elem:Ct},{type:"kern",size:Pt}]},f);if(u.index){var wn=f.havingStyle(E.SCRIPTSCRIPT),xn=Lr(u.index,wn,f),Cn=.6*(dn.height-dn.depth),kn=$t.makeVList({positionType:"shift",positionData:-Cn,children:[{type:"elem",elem:xn}]},f),Xn=$t.makeSpan(["root"],[kn]);return $t.makeSpan(["mord","sqrt"],[Xn,dn],f)}else return $t.makeSpan(["mord","sqrt"],[dn],f)},mathmlBuilder:function(u,f){var h=u.body,y=u.index;return y?new Ln.MathNode("mroot",[Or(h,f),Or(y,f)]):new Ln.MathNode("msqrt",[Or(h,f)])}});var Bo={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};Fn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(u,f){var h=u.breakOnTokenText,y=u.funcName,O=u.parser,H=O.parseExpression(!0,h),Ae=y.slice(1,y.length-5);return{type:"styling",mode:O.mode,style:Ae,body:H}},htmlBuilder:function(u,f){var h=Bo[u.style],y=f.havingStyle(h).withFont("");return Xs(u.body,y,f)},mathmlBuilder:function(u,f){var h=Bo[u.style],y=f.havingStyle(h),O=aa(u.body,y),H=new Ln.MathNode("mstyle",O),Ae={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Ne=Ae[u.style];return H.setAttribute("scriptlevel",Ne[0]),H.setAttribute("displaystyle",Ne[1]),H}});var Cl=function(u,f){var h=u.base;if(h)if(h.type==="op"){var y=h.limits&&(f.style.size===E.DISPLAY.size||h.alwaysHandleSupSub);return y?Ds:null}else if(h.type==="operatorname"){var O=h.alwaysHandleSupSub&&(f.style.size===E.DISPLAY.size||h.limits);return O?So:null}else{if(h.type==="accent")return $.isCharacterBox(h.base)?ur:null;if(h.type==="horizBrace"){var H=!u.sub;return H===h.isOver?Uo:null}else return null}else return null};pr({type:"supsub",htmlBuilder:function(u,f){var h=Cl(u,f);if(h)return h(u,f);var y=u.base,O=u.sup,H=u.sub,Ae=Lr(y,f),Ne,Je,Ct=f.fontMetrics(),Pt=0,zt=0,nn=y&&$.isCharacterBox(y);if(O){var cn=f.havingStyle(f.style.sup());Ne=Lr(O,cn,f),nn||(Pt=Ae.height-cn.fontMetrics().supDrop*cn.sizeMultiplier/f.sizeMultiplier)}if(H){var dn=f.havingStyle(f.style.sub());Je=Lr(H,dn,f),nn||(zt=Ae.depth+dn.fontMetrics().subDrop*dn.sizeMultiplier/f.sizeMultiplier)}var wn;f.style===E.DISPLAY?wn=Ct.sup1:f.style.cramped?wn=Ct.sup3:wn=Ct.sup2;var xn=f.sizeMultiplier,Cn=.5/Ct.ptPerEm/xn+"em",kn=null;if(Je){var Xn=u.base&&u.base.type==="op"&&u.base.name&&(u.base.name==="\\oiint"||u.base.name==="\\oiiint");(Ae instanceof ue||Xn)&&(kn=-Ae.italic+"em")}var tr;if(Ne&&Je){Pt=Math.max(Pt,wn,Ne.depth+.25*Ct.xHeight),zt=Math.max(zt,Ct.sub2);var zn=Ct.defaultRuleThickness,Er=4*zn;if(Pt-Ne.depth-(Je.height-zt)<Er){zt=Er-(Pt-Ne.depth)+Je.height;var Tr=.8*Ct.xHeight-(Pt-Ne.depth);Tr>0&&(Pt+=Tr,zt-=Tr)}var gi=[{type:"elem",elem:Je,shift:zt,marginRight:Cn,marginLeft:kn},{type:"elem",elem:Ne,shift:-Pt,marginRight:Cn}];tr=$t.makeVList({positionType:"individualShift",children:gi},f)}else if(Je){zt=Math.max(zt,Ct.sub1,Je.height-.8*Ct.xHeight);var ni=[{type:"elem",elem:Je,marginLeft:kn,marginRight:Cn}];tr=$t.makeVList({positionType:"shift",positionData:zt,children:ni},f)}else if(Ne)Pt=Math.max(Pt,wn,Ne.depth+.25*Ct.xHeight),tr=$t.makeVList({positionType:"shift",positionData:-Pt,children:[{type:"elem",elem:Ne,marginRight:Cn}]},f);else throw new Error("supsub must have either sup or sub.");var kt=ii(Ae,"right")||"mord";return $t.makeSpan([kt],[Ae,$t.makeSpan(["msupsub"],[tr])],f)},mathmlBuilder:function(u,f){var h=!1,y,O,H=hr(u.base,"horizBrace");H&&(O=!!u.sup,O===H.isOver&&(h=!0,y=H.isOver)),u.base&&(u.base.type==="op"||u.base.type==="operatorname")&&(u.base.parentIsSupSub=!0);var Ae=[Or(u.base,f)];u.sub&&Ae.push(Or(u.sub,f)),u.sup&&Ae.push(Or(u.sup,f));var Ne;if(h)Ne=y?"mover":"munder";else if(u.sub)if(u.sup){var Pt=u.base;Pt&&Pt.type==="op"&&Pt.limits&&f.style===E.DISPLAY||Pt&&Pt.type==="operatorname"&&Pt.alwaysHandleSupSub&&(f.style===E.DISPLAY||Pt.limits)?Ne="munderover":Ne="msubsup"}else{var Ct=u.base;Ct&&Ct.type==="op"&&Ct.limits&&(f.style===E.DISPLAY||Ct.alwaysHandleSupSub)||Ct&&Ct.type==="operatorname"&&Ct.alwaysHandleSupSub&&(Ct.limits||f.style===E.DISPLAY)?Ne="munder":Ne="msub"}else{var Je=u.base;Je&&Je.type==="op"&&Je.limits&&(f.style===E.DISPLAY||Je.alwaysHandleSupSub)||Je&&Je.type==="operatorname"&&Je.alwaysHandleSupSub&&(Je.limits||f.style===E.DISPLAY)?Ne="mover":Ne="msup"}var zt=new Ln.MathNode(Ne,Ae);return zt}}),pr({type:"atom",htmlBuilder:function(u,f){return $t.mathsym(u.text,u.mode,f,["m"+u.family])},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[Bi(u.text,u.mode)]);if(u.family==="bin"){var y=va(u,f);y==="bold-italic"&&h.setAttribute("mathvariant",y)}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"};pr({type:"mathord",htmlBuilder:function(u,f){return $t.makeOrd(u,f,"mathord")},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mi",[Bi(u.text,u.mode,f)]),y=va(u,f)||"italic";return y!==xo[h.type]&&h.setAttribute("mathvariant",y),h}}),pr({type:"textord",htmlBuilder:function(u,f){return $t.makeOrd(u,f,"textord")},mathmlBuilder:function(u,f){var h=Bi(u.text,u.mode,f),y=va(u,f)||"normal",O;return u.mode==="text"?O=new Ln.MathNode("mtext",[h]):/[0-9]/.test(u.text)?O=new Ln.MathNode("mn",[h]):u.text==="\\prime"?O=new Ln.MathNode("mo",[h]):O=new Ln.MathNode("mi",[h]),y!==xo[O.type]&&O.setAttribute("mathvariant",y),O}});var mo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Js={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};pr({type:"spacing",htmlBuilder:function(u,f){if(Js.hasOwnProperty(u.text)){var h=Js[u.text].className||"";if(u.mode==="text"){var y=$t.makeOrd(u,f,"textord");return y.classes.push(h),y}else return $t.makeSpan(["mspace",h],[$t.mathsym(u.text,u.mode,f)],f)}else{if(mo.hasOwnProperty(u.text))return $t.makeSpan(["mspace",mo[u.text]],[],f);throw new g('Unknown type of space "'+u.text+'"')}},mathmlBuilder:function(u,f){var h;if(Js.hasOwnProperty(u.text))h=new Ln.MathNode("mtext",[new Ln.TextNode("\xA0")]);else{if(mo.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};pr({type:"tag",mathmlBuilder:function(u,f){var h=new Ln.MathNode("mtable",[new Ln.MathNode("mtr",[uo(),new Ln.MathNode("mtd",[la(u.body,f)]),uo(),new Ln.MathNode("mtd",[la(u.tag,f)])])]);return h.setAttribute("width","100%"),h}});var Ko={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},zo={"\\textbf":"textbf","\\textmd":"textmd"},$o={"\\textit":"textit","\\textup":"textup"},Eo=function(u,f){var h=u.font;return h?Ko[h]?f.withTextFontFamily(Ko[h]):zo[h]?f.withTextFontWeight(zo[h]):f.withTextFontShape($o[h]):f};Fn({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,y=u.funcName,O=f[0];return{type:"text",mode:h.mode,body:Dr(O),font:y}},htmlBuilder:function(u,f){var h=Eo(u,f),y=Jr(u.body,h,!0);return $t.makeSpan(["mord","text"],$t.tryCombineChars(y),h)},mathmlBuilder:function(u,f){var h=Eo(u,f);return la(u.body,h)}}),Fn({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),y=$t.makeLineSpan("underline-line",f),O=f.fontMetrics().defaultRuleThickness,H=$t.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:O},{type:"elem",elem:y},{type:"kern",size:3*O},{type:"elem",elem:h}]},f);return $t.makeSpan(["mord","underline"],[H],f)},mathmlBuilder:function(u,f){var h=new Ln.MathNode("mo",[new Ln.TextNode("\u203E")]);h.setAttribute("stretchy","true");var y=new Ln.MathNode("munder",[Or(u.body,f),h]);return y.setAttribute("accentunder","true"),y}}),Fn({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),y=[],O=f.havingStyle(f.style.text()),H=0;H<h.length;H++){var Ae=h[H];Ae==="~"&&(Ae="\\textasciitilde"),y.push($t.makeSymbol(Ae,"Typewriter-Regular",u.mode,O,["mord","texttt"]))}return $t.makeSpan(["mord","text"].concat(O.sizingClasses(f)),$t.tryCombineChars(y),O)},mathmlBuilder:function(u,f){var h=new Ln.TextNode(jo(u)),y=new Ln.MathNode("mtext",[h]);return y.setAttribute("mathvariant","monospace"),y}});var jo=function(u){return u.body.replace(/ /g,u.star?"\u2423":"\xA0")},_o=Yn,co=_o,Ho=`[ \r
|
|
|
]`,Ao="\\\\[a-zA-Z@]+",il="\\\\[^\uD800-\uDFFF]",al=""+Ao+Ho+"*",sl=new RegExp("^("+Ao+")"+Ho+"*$"),Co="[\u0300-\u036F]",wl=new RegExp(Co+"+$"),go="("+Ho+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Co+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Co+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+al)+("|"+il+")"),ol=function(){function U(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=U.prototype;return u.setCatcode=function(h,y){this.catcodes[h]=y},u.lex=function(){var h=this.input,y=this.tokenRegex.lastIndex;if(y===h.length)return new fe("EOF",new j(this,y,y));var O=this.tokenRegex.exec(h);if(O===null||O.index!==y)throw new g("Unexpected character: '"+h[y]+"'",new fe(h[y],new j(this,y,y+1)));var H=O[2]||" ";if(this.catcodes[H]===14){var Ae=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Ae===-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=Ae+1,this.lex()}var Ne=H.match(sl);return Ne&&(H=Ne[1]),new fe(H,new j(this,y,this.tokenRegex.lastIndex))},U}(),ll=function(){function U(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=U.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 y in h)h.hasOwnProperty(y)&&(h[y]===void 0?delete this.current[y]:this.current[y]=h[y])},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,y,O){if(O===void 0&&(O=!1),O){for(var H=0;H<this.undefStack.length;H++)delete this.undefStack[H][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=y)}else{var Ae=this.undefStack[this.undefStack.length-1];Ae&&!Ae.hasOwnProperty(h)&&(Ae[h]=this.current[h])}this.current[h]=y},U}(),Wo={},ul=Wo;function pt(U,u){Wo[U]=u}pt("\\@firstoftwo",function(U){var u=U.consumeArgs(2);return{tokens:u[0],numArgs:0}}),pt("\\@secondoftwo",function(U){var u=U.consumeArgs(2);return{tokens:u[1],numArgs:0}}),pt("\\@ifnextchar",function(U){var u=U.consumeArgs(3),f=U.future();return u[0].length===1&&u[0][0].text===f.text?{tokens:u[1],numArgs:0}:{tokens:u[2],numArgs:0}}),pt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),pt("\\TextOrMath",function(U){var u=U.consumeArgs(2);return U.mode==="text"?{tokens:u[0],numArgs:0}:{tokens:u[1],numArgs:0}});var Vo={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};pt("\\char",function(U){var u=U.popToken(),f,h="";if(u.text==="'")f=8,u=U.popToken();else if(u.text==='"')f=16,u=U.popToken();else if(u.text==="`")if(u=U.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=Vo[u.text],h==null||h>=f)throw new g("Invalid base-"+f+" digit "+u.text);for(var y;(y=Vo[U.future().text])!=null&&y<f;)h*=f,h+=y,U.popToken()}return"\\@char{"+h+"}"});var wo=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 y=h[0].text,O=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(O++,parseInt(h[0].text)!==O)throw new g('Argument number "'+h[0].text+'" out of order');h=u.consumeArgs(1)[0]}return u.macros.set(y,{tokens:h,numArgs:O},f),""};pt("\\gdef",function(U){return wo(U,!0)}),pt("\\def",function(U){return wo(U,!1)}),pt("\\global",function(U){var u=U.consumeArgs(1)[0];if(u.length!==1)throw new g("Invalid command after \\global");var f=u[0].text;if(f==="\\def")return wo(U,!0);throw new g("Invalid command '"+f+"' after \\global")});var To=function(u,f,h){var y=u.consumeArgs(1)[0];if(y.length!==1)throw new g("\\newcommand's first argument must be a macro name");var O=y[0].text,H=u.isDefined(O);if(H&&!f)throw new g("\\newcommand{"+O+"} attempting to redefine "+(O+"; use \\renewcommand"));if(!H&&!h)throw new g("\\renewcommand{"+O+"} when command "+O+" does not yet exist; use \\newcommand");var Ae=0;if(y=u.consumeArgs(1)[0],y.length===1&&y[0].text==="["){for(var Ne="",Je=u.expandNextToken();Je.text!=="]"&&Je.text!=="EOF";)Ne+=Je.text,Je=u.expandNextToken();if(!Ne.match(/^\s*[0-9]+\s*$/))throw new g("Invalid number of arguments: "+Ne);Ae=parseInt(Ne),y=u.consumeArgs(1)[0]}return u.macros.set(O,{tokens:y,numArgs:Ae}),""};pt("\\newcommand",function(U){return To(U,!1,!0)}),pt("\\renewcommand",function(U){return To(U,!0,!1)}),pt("\\providecommand",function(U){return To(U,!0,!0)}),pt("\\bgroup","{"),pt("\\egroup","}"),pt("\\lq","`"),pt("\\rq","'"),pt("\\aa","\\r a"),pt("\\AA","\\r A"),pt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),pt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),pt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),pt("\u212C","\\mathscr{B}"),pt("\u2130","\\mathscr{E}"),pt("\u2131","\\mathscr{F}"),pt("\u210B","\\mathscr{H}"),pt("\u2110","\\mathscr{I}"),pt("\u2112","\\mathscr{L}"),pt("\u2133","\\mathscr{M}"),pt("\u211B","\\mathscr{R}"),pt("\u212D","\\mathfrak{C}"),pt("\u210C","\\mathfrak{H}"),pt("\u2128","\\mathfrak{Z}"),pt("\\Bbbk","\\Bbb{k}"),pt("\xB7","\\cdotp"),pt("\\llap","\\mathllap{\\textrm{#1}}"),pt("\\rlap","\\mathrlap{\\textrm{#1}}"),pt("\\clap","\\mathclap{\\textrm{#1}}"),pt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),pt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),pt("\\ne","\\neq"),pt("\u2260","\\neq"),pt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),pt("\u2209","\\notin"),pt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),pt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),pt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),pt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),pt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),pt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),pt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),pt("\u27C2","\\perp"),pt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),pt("\u220C","\\notni"),pt("\u231C","\\ulcorner"),pt("\u231D","\\urcorner"),pt("\u231E","\\llcorner"),pt("\u231F","\\lrcorner"),pt("\xA9","\\copyright"),pt("\xAE","\\textregistered"),pt("\uFE0F","\\textregistered"),pt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),pt("\u22EE","\\vdots"),pt("\\varGamma","\\mathit{\\Gamma}"),pt("\\varDelta","\\mathit{\\Delta}"),pt("\\varTheta","\\mathit{\\Theta}"),pt("\\varLambda","\\mathit{\\Lambda}"),pt("\\varXi","\\mathit{\\Xi}"),pt("\\varPi","\\mathit{\\Pi}"),pt("\\varSigma","\\mathit{\\Sigma}"),pt("\\varUpsilon","\\mathit{\\Upsilon}"),pt("\\varPhi","\\mathit{\\Phi}"),pt("\\varPsi","\\mathit{\\Psi}"),pt("\\varOmega","\\mathit{\\Omega}"),pt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),pt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),pt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),pt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),pt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),pt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Zo={",":"\\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"};pt("\\dots",function(U){var u="\\dotso",f=U.expandAfterFuture().text;return f in Zo?u=Zo[f]:(f.substr(0,4)==="\\not"||f in Ye.math&&$.contains(["bin","rel"],Ye.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};pt("\\dotso",function(U){var u=U.future().text;return u in eo?"\\ldots\\,":"\\ldots"}),pt("\\dotsc",function(U){var u=U.future().text;return u in eo&&u!==","?"\\ldots\\,":"\\ldots"}),pt("\\cdots",function(U){var u=U.future().text;return u in eo?"\\@cdots\\,":"\\@cdots"}),pt("\\dotsb","\\cdots"),pt("\\dotsm","\\cdots"),pt("\\dotsi","\\!\\cdots"),pt("\\dotsx","\\ldots\\,"),pt("\\DOTSI","\\relax"),pt("\\DOTSB","\\relax"),pt("\\DOTSX","\\relax"),pt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),pt("\\,","\\tmspace+{3mu}{.1667em}"),pt("\\thinspace","\\,"),pt("\\>","\\mskip{4mu}"),pt("\\:","\\tmspace+{4mu}{.2222em}"),pt("\\medspace","\\:"),pt("\\;","\\tmspace+{5mu}{.2777em}"),pt("\\thickspace","\\;"),pt("\\!","\\tmspace-{3mu}{.1667em}"),pt("\\negthinspace","\\!"),pt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),pt("\\negthickspace","\\tmspace-{5mu}{.277em}"),pt("\\enspace","\\kern.5em "),pt("\\enskip","\\hskip.5em\\relax"),pt("\\quad","\\hskip1em\\relax"),pt("\\qquad","\\hskip2em\\relax"),pt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),pt("\\tag@paren","\\tag@literal{({#1})}"),pt("\\tag@literal",function(U){if(U.macros.get("\\df@tag"))throw new g("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),pt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),pt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),pt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),pt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),pt("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),pt("\\\\","\\newline"),pt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ps=te["Main-Regular"][84][1]-.7*te["Main-Regular"][65][1]+"em";pt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ps+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),pt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ps+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),pt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),pt("\\@hspace","\\hskip #1\\relax"),pt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),pt("\\ordinarycolon",":"),pt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),pt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),pt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),pt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),pt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),pt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),pt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),pt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),pt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),pt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),pt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),pt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),pt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),pt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),pt("\u2237","\\dblcolon"),pt("\u2239","\\eqcolon"),pt("\u2254","\\coloneqq"),pt("\u2255","\\eqqcolon"),pt("\u2A74","\\Coloneqq"),pt("\\ratio","\\vcentcolon"),pt("\\coloncolon","\\dblcolon"),pt("\\colonequals","\\coloneqq"),pt("\\coloncolonequals","\\Coloneqq"),pt("\\equalscolon","\\eqqcolon"),pt("\\equalscoloncolon","\\Eqqcolon"),pt("\\colonminus","\\coloneq"),pt("\\coloncolonminus","\\Coloneq"),pt("\\minuscolon","\\eqcolon"),pt("\\minuscoloncolon","\\Eqcolon"),pt("\\coloncolonapprox","\\Colonapprox"),pt("\\coloncolonsim","\\Colonsim"),pt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),pt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),pt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),pt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),pt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),pt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),pt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),pt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),pt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),pt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),pt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),pt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),pt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),pt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),pt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),pt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),pt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),pt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),pt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),pt("\u27E6","\\llbracket"),pt("\u27E7","\\rrbracket"),pt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),pt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),pt("\u2983","\\lBrace"),pt("\u2984","\\rBrace"),pt("\\darr","\\downarrow"),pt("\\dArr","\\Downarrow"),pt("\\Darr","\\Downarrow"),pt("\\lang","\\langle"),pt("\\rang","\\rangle"),pt("\\uarr","\\uparrow"),pt("\\uArr","\\Uparrow"),pt("\\Uarr","\\Uparrow"),pt("\\N","\\mathbb{N}"),pt("\\R","\\mathbb{R}"),pt("\\Z","\\mathbb{Z}"),pt("\\alef","\\aleph"),pt("\\alefsym","\\aleph"),pt("\\Alpha","\\mathrm{A}"),pt("\\Beta","\\mathrm{B}"),pt("\\bull","\\bullet"),pt("\\Chi","\\mathrm{X}"),pt("\\clubs","\\clubsuit"),pt("\\cnums","\\mathbb{C}"),pt("\\Complex","\\mathbb{C}"),pt("\\Dagger","\\ddagger"),pt("\\diamonds","\\diamondsuit"),pt("\\empty","\\emptyset"),pt("\\Epsilon","\\mathrm{E}"),pt("\\Eta","\\mathrm{H}"),pt("\\exist","\\exists"),pt("\\harr","\\leftrightarrow"),pt("\\hArr","\\Leftrightarrow"),pt("\\Harr","\\Leftrightarrow"),pt("\\hearts","\\heartsuit"),pt("\\image","\\Im"),pt("\\infin","\\infty"),pt("\\Iota","\\mathrm{I}"),pt("\\isin","\\in"),pt("\\Kappa","\\mathrm{K}"),pt("\\larr","\\leftarrow"),pt("\\lArr","\\Leftarrow"),pt("\\Larr","\\Leftarrow"),pt("\\lrarr","\\leftrightarrow"),pt("\\lrArr","\\Leftrightarrow"),pt("\\Lrarr","\\Leftrightarrow"),pt("\\Mu","\\mathrm{M}"),pt("\\natnums","\\mathbb{N}"),pt("\\Nu","\\mathrm{N}"),pt("\\Omicron","\\mathrm{O}"),pt("\\plusmn","\\pm"),pt("\\rarr","\\rightarrow"),pt("\\rArr","\\Rightarrow"),pt("\\Rarr","\\Rightarrow"),pt("\\real","\\Re"),pt("\\reals","\\mathbb{R}"),pt("\\Reals","\\mathbb{R}"),pt("\\Rho","\\mathrm{P}"),pt("\\sdot","\\cdot"),pt("\\sect","\\S"),pt("\\spades","\\spadesuit"),pt("\\sub","\\subset"),pt("\\sube","\\subseteq"),pt("\\supe","\\supseteq"),pt("\\Tau","\\mathrm{T}"),pt("\\thetasym","\\vartheta"),pt("\\weierp","\\wp"),pt("\\Zeta","\\mathrm{Z}"),pt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),pt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),pt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),pt("\\blue","\\textcolor{##6495ed}{#1}"),pt("\\orange","\\textcolor{##ffa500}{#1}"),pt("\\pink","\\textcolor{##ff00af}{#1}"),pt("\\red","\\textcolor{##df0030}{#1}"),pt("\\green","\\textcolor{##28ae7b}{#1}"),pt("\\gray","\\textcolor{gray}{#1}"),pt("\\purple","\\textcolor{##9d38bd}{#1}"),pt("\\blueA","\\textcolor{##ccfaff}{#1}"),pt("\\blueB","\\textcolor{##80f6ff}{#1}"),pt("\\blueC","\\textcolor{##63d9ea}{#1}"),pt("\\blueD","\\textcolor{##11accd}{#1}"),pt("\\blueE","\\textcolor{##0c7f99}{#1}"),pt("\\tealA","\\textcolor{##94fff5}{#1}"),pt("\\tealB","\\textcolor{##26edd5}{#1}"),pt("\\tealC","\\textcolor{##01d1c1}{#1}"),pt("\\tealD","\\textcolor{##01a995}{#1}"),pt("\\tealE","\\textcolor{##208170}{#1}"),pt("\\greenA","\\textcolor{##b6ffb0}{#1}"),pt("\\greenB","\\textcolor{##8af281}{#1}"),pt("\\greenC","\\textcolor{##74cf70}{#1}"),pt("\\greenD","\\textcolor{##1fab54}{#1}"),pt("\\greenE","\\textcolor{##0d923f}{#1}"),pt("\\goldA","\\textcolor{##ffd0a9}{#1}"),pt("\\goldB","\\textcolor{##ffbb71}{#1}"),pt("\\goldC","\\textcolor{##ff9c39}{#1}"),pt("\\goldD","\\textcolor{##e07d10}{#1}"),pt("\\goldE","\\textcolor{##a75a05}{#1}"),pt("\\redA","\\textcolor{##fca9a9}{#1}"),pt("\\redB","\\textcolor{##ff8482}{#1}"),pt("\\redC","\\textcolor{##f9685d}{#1}"),pt("\\redD","\\textcolor{##e84d39}{#1}"),pt("\\redE","\\textcolor{##bc2612}{#1}"),pt("\\maroonA","\\textcolor{##ffbde0}{#1}"),pt("\\maroonB","\\textcolor{##ff92c6}{#1}"),pt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),pt("\\maroonD","\\textcolor{##ca337c}{#1}"),pt("\\maroonE","\\textcolor{##9e034e}{#1}"),pt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),pt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),pt("\\purpleC","\\textcolor{##aa87ff}{#1}"),pt("\\purpleD","\\textcolor{##7854ab}{#1}"),pt("\\purpleE","\\textcolor{##543b78}{#1}"),pt("\\mintA","\\textcolor{##f5f9e8}{#1}"),pt("\\mintB","\\textcolor{##edf2df}{#1}"),pt("\\mintC","\\textcolor{##e0e5cc}{#1}"),pt("\\grayA","\\textcolor{##f6f7f7}{#1}"),pt("\\grayB","\\textcolor{##f0f1f2}{#1}"),pt("\\grayC","\\textcolor{##e3e5e6}{#1}"),pt("\\grayD","\\textcolor{##d6d8da}{#1}"),pt("\\grayE","\\textcolor{##babec2}{#1}"),pt("\\grayF","\\textcolor{##888d93}{#1}"),pt("\\grayG","\\textcolor{##626569}{#1}"),pt("\\grayH","\\textcolor{##3b3e40}{#1}"),pt("\\grayI","\\textcolor{##21242c}{#1}"),pt("\\kaBlue","\\textcolor{##314453}{#1}"),pt("\\kaGreen","\\textcolor{##71B307}{#1}");var Ro={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Go=function(){function U(f,h,y){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=y,this.stack=[]}var u=U.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 y;(y=this.stack).push.apply(y,h)},u.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},u.consumeArgs=function(h){for(var y=[],O=0;O<h;++O){this.consumeSpaces();var H=this.popToken();if(H.text==="{"){for(var Ae=[],Ne=1;Ne!==0;){var Je=this.popToken();if(Ae.push(Je),Je.text==="{")++Ne;else if(Je.text==="}")--Ne;else if(Je.text==="EOF")throw new g("End of input in macro argument",H)}Ae.pop(),Ae.reverse(),y[O]=Ae}else{if(H.text==="EOF")throw new g("End of input expecting macro argument");y[O]=[H]}}return y},u.expandOnce=function(){var h=this.popToken(),y=h.text,O=this._getExpansion(y);if(O==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 H=O.tokens;if(O.numArgs){var Ae=this.consumeArgs(O.numArgs);H=H.slice();for(var Ne=H.length-1;Ne>=0;--Ne){var Je=H[Ne];if(Je.text==="#"){if(Ne===0)throw new g("Incomplete placeholder at end of macro body",Je);if(Je=H[--Ne],Je.text==="#")H.splice(Ne+1,1);else if(/^[1-9]$/.test(Je.text)){var Ct;(Ct=H).splice.apply(Ct,[Ne,2].concat(Ae[+Je.text-1]))}else throw new g("Not a valid argument number",Je)}}}return this.pushTokens(H),H},u.expandAfterFuture=function(){return this.expandOnce(),this.future()},u.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof fe)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},u.expandMacro=function(h){if(this.macros.get(h)){var y=[],O=this.stack.length;for(this.pushToken(new fe(h));this.stack.length>O;){var H=this.expandOnce();H instanceof fe&&y.push(this.stack.pop())}return y}},u.expandMacroAsText=function(h){var y=this.expandMacro(h);return y&&y.map(function(O){return O.text}).join("")},u._getExpansion=function(h){var y=this.macros.get(h);if(y==null)return y;var O=typeof y=="function"?y(this):y;if(typeof O=="string"){var H=0;if(O.indexOf("#")!==-1)for(var Ae=O.replace(/##/g,"");Ae.indexOf("#"+(H+1))!==-1;)++H;for(var Ne=new ol(O,this.settings),Je=[],Ct=Ne.lex();Ct.text!=="EOF";)Je.push(Ct),Ct=Ne.lex();Je.reverse();var Pt={tokens:Je,numArgs:H};return Pt}return O},u.isDefined=function(h){return this.macros.has(h)||co.hasOwnProperty(h)||Ye.math.hasOwnProperty(h)||Ye.text.hasOwnProperty(h)||Ro.hasOwnProperty(h)},U}(),he={"\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"}},ce={\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"},Ke=function(){function U(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=U.prototype;return u.expect=function(h,y){if(y===void 0&&(y=!0),this.fetch().text!==h)throw new g("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());y&&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,y){for(var O=[];;){this.mode==="math"&&this.consumeSpaces();var H=this.fetch();if(U.endOfExpression.indexOf(H.text)!==-1||y&&H.text===y||h&&co[H.text]&&co[H.text].infix)break;var Ae=this.parseAtom(y);if(!Ae)break;O.push(Ae)}return this.mode==="text"&&this.formLigatures(O),this.handleInfixNodes(O)},u.handleInfixNodes=function(h){for(var y=-1,O,H=0;H<h.length;H++){var Ae=hr(h[H],"infix");if(Ae){if(y!==-1)throw new g("only one infix operator per group",Ae.token);y=H,O=Ae.replaceWith}}if(y!==-1&&O){var Ne,Je,Ct=h.slice(0,y),Pt=h.slice(y+1);Ct.length===1&&Ct[0].type==="ordgroup"?Ne=Ct[0]:Ne={type:"ordgroup",mode:this.mode,body:Ct},Pt.length===1&&Pt[0].type==="ordgroup"?Je=Pt[0]:Je={type:"ordgroup",mode:this.mode,body:Pt};var zt;return O==="\\\\abovefrac"?zt=this.callFunction(O,[Ne,h[y],Je],[]):zt=this.callFunction(O,[Ne,Je],[]),[zt]}else return h},u.handleSupSubscript=function(h){var y=this.fetch(),O=y.text;this.consume();var H=this.parseGroup(h,!1,U.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!H)throw new g("Expected group after '"+O+"'",y);return H},u.formatUnsupportedCmd=function(h){for(var y=[],O=0;O<h.length;O++)y.push({type:"textord",mode:"text",text:h[O]});var H={type:"text",mode:this.mode,body:y},Ae={type:"color",mode:this.mode,color:this.settings.errorColor,body:[H]};return Ae},u.parseAtom=function(h){var y=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return y;for(var O,H;;){this.consumeSpaces();var Ae=this.fetch();if(Ae.text==="\\limits"||Ae.text==="\\nolimits"){var Ne=hr(y,"op");if(Ne){var Je=Ae.text==="\\limits";Ne.limits=Je,Ne.alwaysHandleSupSub=!0}else if(Ne=hr(y,"operatorname"),Ne&&Ne.alwaysHandleSupSub){var Ct=Ae.text==="\\limits";Ne.limits=Ct}else throw new g("Limit controls must follow a math operator",Ae);this.consume()}else if(Ae.text==="^"){if(O)throw new g("Double superscript",Ae);O=this.handleSupSubscript("superscript")}else if(Ae.text==="_"){if(H)throw new g("Double subscript",Ae);H=this.handleSupSubscript("subscript")}else if(Ae.text==="'"){if(O)throw new g("Double superscript",Ae);var Pt={type:"textord",mode:this.mode,text:"\\prime"},zt=[Pt];for(this.consume();this.fetch().text==="'";)zt.push(Pt),this.consume();this.fetch().text==="^"&&zt.push(this.handleSupSubscript("superscript")),O={type:"ordgroup",mode:this.mode,body:zt}}else break}return O||H?{type:"supsub",mode:this.mode,base:y,sup:O,sub:H}:y},u.parseFunction=function(h,y,O){var H=this.fetch(),Ae=H.text,Ne=co[Ae];if(!Ne)return null;if(this.consume(),O!=null&&Ne.greediness<=O)throw new g("Got function '"+Ae+"' with no arguments"+(y?" as "+y:""),H);if(this.mode==="text"&&!Ne.allowedInText)throw new g("Can't use function '"+Ae+"' in text mode",H);if(this.mode==="math"&&Ne.allowedInMath===!1)throw new g("Can't use function '"+Ae+"' in math mode",H);var Je=this.parseArguments(Ae,Ne),Ct=Je.args,Pt=Je.optArgs;return this.callFunction(Ae,Ct,Pt,H,h)},u.callFunction=function(h,y,O,H,Ae){var Ne={funcName:h,parser:this,token:H,breakOnTokenText:Ae},Je=co[h];if(Je&&Je.handler)return Je.handler(Ne,y,O);throw new g("No function handler for "+h)},u.parseArguments=function(h,y){var O=y.numArgs+y.numOptionalArgs;if(O===0)return{args:[],optArgs:[]};for(var H=y.greediness,Ae=[],Ne=[],Je=0;Je<O;Je++){var Ct=y.argTypes&&y.argTypes[Je],Pt=Je<y.numOptionalArgs,zt=Je>0&&!Pt||Je===0&&!Pt&&this.mode==="math",nn=this.parseGroupOfType("argument to '"+h+"'",Ct,Pt,H,zt);if(!nn){if(Pt){Ne.push(null);continue}throw new g("Expected group after '"+h+"'",this.fetch())}(Pt?Ne:Ae).push(nn)}return{args:Ae,optArgs:Ne}},u.parseGroupOfType=function(h,y,O,H,Ae){switch(y){case"color":return Ae&&this.consumeSpaces(),this.parseColorGroup(O);case"size":return Ae&&this.consumeSpaces(),this.parseSizeGroup(O);case"url":return this.parseUrlGroup(O,Ae);case"math":case"text":return this.parseGroup(h,O,H,void 0,y,Ae);case"hbox":{var Ne=this.parseGroup(h,O,H,void 0,"text",Ae);if(!Ne)return Ne;var Je={type:"styling",mode:Ne.mode,body:[Ne],style:"text"};return Je}case"raw":{if(Ae&&this.consumeSpaces(),O&&this.fetch().text==="{")return null;var Ct=this.parseStringGroup("raw",O,!0);if(Ct)return{type:"raw",mode:"text",string:Ct.text};throw new g("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,O,H,void 0,void 0,Ae);default:throw new g("Unknown group type as "+h,this.fetch())}},u.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},u.parseStringGroup=function(h,y,O){var H=y?"[":"{",Ae=y?"]":"}",Ne=this.fetch();if(Ne.text!==H){if(y)return null;if(O&&Ne.text!=="EOF"&&/[^{}[\]]/.test(Ne.text))return this.consume(),Ne}var Je=this.mode;this.mode="text",this.expect(H);for(var Ct="",Pt=this.fetch(),zt=0,nn=Pt,cn;(cn=this.fetch()).text!==Ae||O&&zt>0;){switch(cn.text){case"EOF":throw new g("Unexpected end of input in "+h,Pt.range(nn,Ct));case H:zt++;break;case Ae:zt--;break}nn=cn,Ct+=nn.text,this.consume()}return this.expect(Ae),this.mode=Je,Pt.range(nn,Ct)},u.parseRegexGroup=function(h,y){var O=this.mode;this.mode="text";for(var H=this.fetch(),Ae=H,Ne="",Je;(Je=this.fetch()).text!=="EOF"&&h.test(Ne+Je.text);)Ae=Je,Ne+=Ae.text,this.consume();if(Ne==="")throw new g("Invalid "+y+": '"+H.text+"'",H);return this.mode=O,H.range(Ae,Ne)},u.parseColorGroup=function(h){var y=this.parseStringGroup("color",h);if(!y)return null;var O=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(y.text);if(!O)throw new g("Invalid color: '"+y.text+"'",y);var H=O[0];return/^[0-9a-f]{6}$/i.test(H)&&(H="#"+H),{type:"color-token",mode:this.mode,color:H}},u.parseSizeGroup=function(h){var y,O=!1;if(!h&&this.fetch().text!=="{"?y=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):y=this.parseStringGroup("size",h),!y)return null;!h&&y.text.length===0&&(y.text="0pt",O=!0);var H=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(y.text);if(!H)throw new g("Invalid size: '"+y.text+"'",y);var Ae={number:+(H[1]+H[2]),unit:H[3]};if(!_n(Ae))throw new g("Invalid unit: '"+Ae.unit+"'",y);return{type:"size",mode:this.mode,value:Ae,isBlank:O}},u.parseUrlGroup=function(h,y){this.gullet.lexer.setCatcode("%",13);var O=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!O)return null;var H=O.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:H}},u.parseGroup=function(h,y,O,H,Ae,Ne){var Je=this.mode;Ae&&this.switchMode(Ae),Ne&&this.consumeSpaces();var Ct=this.fetch(),Pt=Ct.text,zt;if(y?Pt==="[":Pt==="{"||Pt==="\\begingroup"){this.consume();var nn=U.endOfGroup[Pt];this.gullet.beginGroup();var cn=this.parseExpression(!1,nn),dn=this.fetch();this.expect(nn),this.gullet.endGroup(),zt={type:"ordgroup",mode:this.mode,loc:j.range(Ct,dn),body:cn,semisimple:Pt==="\\begingroup"||void 0}}else if(y)zt=null;else if(zt=this.parseFunction(H,h,O)||this.parseSymbol(),zt==null&&Pt[0]==="\\"&&!Ro.hasOwnProperty(Pt)){if(this.settings.throwOnError)throw new g("Undefined control sequence: "+Pt,Ct);zt=this.formatUnsupportedCmd(Pt),this.consume()}return Ae&&this.switchMode(Je),zt},u.formLigatures=function(h){for(var y=h.length-1,O=0;O<y;++O){var H=h[O],Ae=H.text;Ae==="-"&&h[O+1].text==="-"&&(O+1<y&&h[O+2].text==="-"?(h.splice(O,3,{type:"textord",mode:"text",loc:j.range(H,h[O+2]),text:"---"}),y-=2):(h.splice(O,2,{type:"textord",mode:"text",loc:j.range(H,h[O+1]),text:"--"}),y-=1)),(Ae==="'"||Ae==="`")&&h[O+1].text===Ae&&(h.splice(O,2,{type:"textord",mode:"text",loc:j.range(H,h[O+1]),text:Ae+Ae}),y-=1)}},u.parseSymbol=function(){var h=this.fetch(),y=h.text;if(/^\\verb[^a-zA-Z]/.test(y)){this.consume();var O=y.slice(5),H=O.charAt(0)==="*";if(H&&(O=O.slice(1)),O.length<2||O.charAt(0)!==O.slice(-1))throw new g(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return O=O.slice(1,-1),{type:"verb",mode:"text",body:O,star:H}}ce.hasOwnProperty(y[0])&&!Ye[this.mode][y[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+y[0]+'" used in math mode',h),y=ce[y[0]]+y.substr(1));var Ae=wl.exec(y);Ae&&(y=y.substring(0,Ae.index),y==="i"?y="\u0131":y==="j"&&(y="\u0237"));var Ne;if(Ye[this.mode][y]){this.settings.strict&&this.mode==="math"&&bt.indexOf(y)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+y[0]+'" used in math mode',h);var Je=Ye[this.mode][y].group,Ct=j.range(h),Pt;if(yt.hasOwnProperty(Je)){var zt=Je;Pt={type:"atom",mode:this.mode,family:zt,loc:Ct,text:y}}else Pt={type:Je,mode:this.mode,loc:Ct,text:y};Ne=Pt}else if(y.charCodeAt(0)>=128)this.settings.strict&&(Ve(y.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+y[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+y[0]+'"'+(" ("+y.charCodeAt(0)+")"),h)),Ne={type:"textord",mode:"text",loc:j.range(h),text:y};else return null;if(this.consume(),Ae)for(var nn=0;nn<Ae[0].length;nn++){var cn=Ae[0][nn];if(!he[cn])throw new g("Unknown accent ' "+cn+"'",h);var dn=he[cn][this.mode];if(!dn)throw new g("Accent "+cn+" unsupported in "+this.mode+" mode",h);Ne={type:"accent",mode:this.mode,loc:j.range(h),label:dn,isStretchy:!1,isShifty:!0,base:Ne}}return Ne},U}();Ke.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ke.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ke.SUPSUB_GREEDINESS=1;var at=function(u,f){if(!(typeof u=="string"||u instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new Ke(u,f);delete h.gullet.macros.current["\\df@tag"];var y=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"),y=[{type:"tag",mode:"text",body:y,tag:h.parse()}]}return y},At=at,Rt=function(u,f,h){f.textContent="";var y=Bt(u,h).toNode();f.appendChild(y)};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."),Rt=function(){throw new g("KaTeX doesn't work in quirks mode.")});var Nt=function(u,f){var h=Bt(u,f).toMarkup();return h},Lt=function(u,f){var h=new I(f);return At(u,h)},Ht=function(u,f,h){if(h.throwOnError||!(u instanceof g))throw u;var y=$t.makeSpan(["katex-error"],[new ue(f)]);return y.setAttribute("title",u.toString()),y.setAttribute("style","color:"+h.errorColor),y},Bt=function(u,f){var h=new I(f);try{var y=At(u,h);return ci(y,u,h)}catch(O){return Ht(O,u,h)}},bn=function(u,f){var h=new I(f);try{var y=At(u,h);return Ki(y,u,h)}catch(O){return Ht(O,u,h)}},rn={version:"0.11.1",render:Rt,renderToString:Nt,ParseError:g,__parse:Lt,__renderToDomTree:Bt,__renderToHTMLTree:bn,__setFontMetrics:nt,__defineSymbol:b,__defineMacro:pt,__domTree:{Span:$e,Anchor:Pe,SymbolNode:ue,SvgNode:ge,PathNode:pe,LineNode:ye}},tn=d.default=rn}]).default})},32834:function(mn){(function(gt,d){mn.exports=d()})(this,function(){"use strict";function gt(Be,rt){for(var ft=0;ft<rt.length;ft++){var ve=rt[ft];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(Be,ve.key,ve)}}function d(Be,rt,ft){return rt&>(Be.prototype,rt),ft&>(Be,ft),Be}function o(Be,rt){if(Be){if(typeof Be=="string")return ne(Be,rt);var ft=Object.prototype.toString.call(Be).slice(8,-1);if(ft==="Object"&&Be.constructor&&(ft=Be.constructor.name),ft==="Map"||ft==="Set")return Array.from(Be);if(ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ft))return ne(Be,rt)}}function ne(Be,rt){(rt==null||rt>Be.length)&&(rt=Be.length);for(var ft=0,ve=new Array(rt);ft<rt;ft++)ve[ft]=Be[ft];return ve}function j(Be,rt){var ft=typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(ft)return(ft=ft.call(Be)).next.bind(ft);if(Array.isArray(Be)||(ft=o(Be))||rt&&Be&&typeof Be.length=="number"){ft&&(Be=ft);var ve=0;return function(){return ve>=Be.length?{done:!0}:{done:!1,value:Be[ve++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var fe={exports:{}};function K(){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(Be){fe.exports.defaults=Be}fe.exports={defaults:K(),getDefaults:K,changeDefaults:g};var re=/[&<>"']/,oe=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,N={"&":"&","<":"<",">":">",'"':""","'":"'"},S=function(rt){return N[rt]};function _(Be,rt){if(rt){if(re.test(Be))return Be.replace(oe,S)}else if(l.test(Be))return Be.replace(C,S);return Be}var T=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k(Be){return Be.replace(T,function(rt,ft){return ft=ft.toLowerCase(),ft==="colon"?":":ft.charAt(0)==="#"?ft.charAt(1)==="x"?String.fromCharCode(parseInt(ft.substring(2),16)):String.fromCharCode(+ft.substring(1)):""})}var W=/(^|[^\[])\^/g;function V(Be,rt){Be=Be.source||Be,rt=rt||"";var ft={replace:function(Se,We){return We=We.source||We,We=We.replace(W,"$1"),Be=Be.replace(Se,We),ft},getRegex:function(){return new RegExp(Be,rt)}};return ft}var $=/[^\w:]/g,I=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function G(Be,rt,ft){if(Be){var ve;try{ve=decodeURIComponent(k(ft)).replace($,"").toLowerCase()}catch(Se){return null}if(ve.indexOf("javascript:")===0||ve.indexOf("vbscript:")===0||ve.indexOf("data:")===0)return null}rt&&!I.test(ft)&&(ft=de(rt,ft));try{ft=encodeURI(ft).replace(/%25/g,"%")}catch(Se){return null}return ft}var F={},L=/^[^:]+:\/*[^/]*$/,ae=/^([^:]+:)[\s\S]*$/,me=/^([^:]+:\/*[^/]*)[\s\S]*$/;function de(Be,rt){F[" "+Be]||(L.test(Be)?F[" "+Be]=Be+"/":F[" "+Be]=Te(Be,"/",!0)),Be=F[" "+Be];var ft=Be.indexOf(":")===-1;return rt.substring(0,2)==="//"?ft?rt:Be.replace(ae,"$1")+rt:rt.charAt(0)==="/"?ft?rt:Be.replace(me,"$1")+rt:Be+rt}var Ie={exec:function(){}};function Fe(Be){for(var rt=1,ft,ve;rt<arguments.length;rt++){ft=arguments[rt];for(ve in ft)Object.prototype.hasOwnProperty.call(ft,ve)&&(Be[ve]=ft[ve])}return Be}function _e(Be,rt){var ft=Be.replace(/\|/g,function(We,ze,M){for(var dt=!1,Ee=ze;--Ee>=0&&M[Ee]==="\\";)dt=!dt;return dt?"|":" |"}),ve=ft.split(/ \|/),Se=0;if(ve.length>rt)ve.splice(rt);else for(;ve.length<rt;)ve.push("");for(;Se<ve.length;Se++)ve[Se]=ve[Se].trim().replace(/\\\|/g,"|");return ve}function Te(Be,rt,ft){var ve=Be.length;if(ve===0)return"";for(var Se=0;Se<ve;){var We=Be.charAt(ve-Se-1);if(We===rt&&!ft)Se++;else if(We!==rt&&ft)Se++;else break}return Be.substr(0,ve-Se)}function ee(Be,rt){if(Be.indexOf(rt[1])===-1)return-1;for(var ft=Be.length,ve=0,Se=0;Se<ft;Se++)if(Be[Se]==="\\")Se++;else if(Be[Se]===rt[0])ve++;else if(Be[Se]===rt[1]&&(ve--,ve<0))return Se;return-1}function B(Be){Be&&Be.sanitize&&!Be.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 A(Be,rt){if(rt<1)return"";for(var ft="";rt>1;)rt&1&&(ft+=Be),rt>>=1,Be+=Be;return ft+Be}var X={escape:_,unescape:k,edit:V,cleanUrl:G,resolveUrl:de,noopTest:Ie,merge:Fe,splitCells:_e,rtrim:Te,findClosingBracket:ee,checkSanitizeDeprecation:B,repeatString:A},J=fe.exports.defaults,Q=X.rtrim,E=X.splitCells,R=X.escape,se=X.findClosingBracket;function we(Be,rt,ft){var ve=rt.href,Se=rt.title?R(rt.title):null,We=Be[1].replace(/\\([\[\]])/g,"$1");return Be[0].charAt(0)!=="!"?{type:"link",raw:ft,href:ve,title:Se,text:We}:{type:"image",raw:ft,href:ve,title:Se,text:R(We)}}function Ve(Be,rt){var ft=Be.match(/^(\s+)(?:```)/);if(ft===null)return rt;var ve=ft[1];return rt.split(`
|
|
|
`).map(function(Se){var We=Se.match(/^\s+/);if(We===null)return Se;var ze=We[0];return ze.length>=ve.length?Se.slice(ve.length):Se}).join(`
|
|
|
`)}var lt=function(){function Be(ft){this.options=ft||J}var rt=Be.prototype;return rt.space=function(ve){var Se=this.rules.block.newline.exec(ve);if(Se)return Se[0].length>1?{type:"space",raw:Se[0]}:{raw:`
|
|
|
`}},rt.code=function(ve){var Se=this.rules.block.code.exec(ve);if(Se){var We=Se[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Se[0],codeBlockStyle:"indented",text:this.options.pedantic?We:Q(We,`
|
|
|
`)}}},rt.fences=function(ve){var Se=this.rules.block.fences.exec(ve);if(Se){var We=Se[0],ze=Ve(We,Se[3]||"");return{type:"code",raw:We,lang:Se[2]?Se[2].trim():Se[2],text:ze}}},rt.heading=function(ve){var Se=this.rules.block.heading.exec(ve);if(Se){var We=Se[2].trim();if(/#$/.test(We)){var ze=Q(We,"#");(this.options.pedantic||!ze||/ $/.test(ze))&&(We=ze.trim())}return{type:"heading",raw:Se[0],depth:Se[1].length,text:We}}},rt.nptable=function(ve){var Se=this.rules.block.nptable.exec(ve);if(Se){var We={type:"table",header:E(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Se[0]};if(We.header.length===We.align.length){var ze=We.align.length,M;for(M=0;M<ze;M++)/^ *-+: *$/.test(We.align[M])?We.align[M]="right":/^ *:-+: *$/.test(We.align[M])?We.align[M]="center":/^ *:-+ *$/.test(We.align[M])?We.align[M]="left":We.align[M]=null;for(ze=We.cells.length,M=0;M<ze;M++)We.cells[M]=E(We.cells[M],We.header.length);return We}}},rt.hr=function(ve){var Se=this.rules.block.hr.exec(ve);if(Se)return{type:"hr",raw:Se[0]}},rt.blockquote=function(ve){var Se=this.rules.block.blockquote.exec(ve);if(Se){var We=Se[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Se[0],text:We}}},rt.list=function(ve){var Se=this.rules.block.list.exec(ve);if(Se){var We=Se[0],ze=Se[2],M=ze.length>1,dt={type:"list",raw:We,ordered:M,start:M?+ze.slice(0,-1):"",loose:!1,items:[]},Ee=Se[0].match(this.rules.block.item),Tt=!1,Kt,Jt,un,gn,En,Bn,Wn,Tn,Jn,vn=Ee.length;un=this.rules.block.listItemStart.exec(Ee[0]);for(var Gt=0;Gt<vn;Gt++){if(Kt=Ee[Gt],We=Kt,this.options.pedantic||(Jn=Kt.match(new RegExp("\\n\\s*\\n {0,"+(un[0].length-1)+"}\\S")),Jn&&(En=Kt.length-Jn.index+Ee.slice(Gt+1).join(`
|
|
|
`).length,dt.raw=dt.raw.substring(0,dt.raw.length-En),Kt=Kt.substring(0,Jn.index),We=Kt,vn=Gt+1)),Gt!==vn-1){if(gn=this.rules.block.listItemStart.exec(Ee[Gt+1]),this.options.pedantic?gn[1].length>un[1].length:gn[1].length>=un[0].length||gn[1].length>3){Ee.splice(Gt,2,Ee[Gt]+(!this.options.pedantic&&gn[1].length<un[0].length&&!Ee[Gt].match(/\n$/)?"":`
|
|
|
`)+Ee[Gt+1]),Gt--,vn--;continue}else(!this.options.pedantic||this.options.smartLists?gn[2][gn[2].length-1]!==ze[ze.length-1]:M===(gn[2].length===1))&&(En=Ee.slice(Gt+1).join(`
|
|
|
`).length,dt.raw=dt.raw.substring(0,dt.raw.length-En),Gt=vn-1);un=gn}Jt=Kt.length,Kt=Kt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Kt.indexOf(`
|
|
|
`)&&(Jt-=Kt.length,Kt=this.options.pedantic?Kt.replace(/^ {1,4}/gm,""):Kt.replace(new RegExp("^ {1,"+Jt+"}","gm"),"")),Kt=Q(Kt,`
|
|
|
`),Gt!==vn-1&&(We=We+`
|
|
|
`),Bn=Tt||/\n\n(?!\s*$)/.test(We),Gt!==vn-1&&(Tt=We.slice(-2)===`
|
|
|
|
|
|
`,Bn||(Bn=Tt)),Bn&&(dt.loose=!0),this.options.gfm&&(Wn=/^\[[ xX]\] /.test(Kt),Tn=void 0,Wn&&(Tn=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,""))),dt.items.push({type:"list_item",raw:We,task:Wn,checked:Tn,loose:Bn,text:Kt})}return dt}},rt.html=function(ve){var Se=this.rules.block.html.exec(ve);if(Se)return{type:this.options.sanitize?"paragraph":"html",raw:Se[0],pre:!this.options.sanitizer&&(Se[1]==="pre"||Se[1]==="script"||Se[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):R(Se[0]):Se[0]}},rt.def=function(ve){var Se=this.rules.block.def.exec(ve);if(Se){Se[3]&&(Se[3]=Se[3].substring(1,Se[3].length-1));var We=Se[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:We,raw:Se[0],href:Se[2],title:Se[3]}}},rt.table=function(ve){var Se=this.rules.block.table.exec(ve);if(Se){var We={type:"table",header:E(Se[1].replace(/^ *| *\| *$/g,"")),align:Se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Se[3]?Se[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(We.header.length===We.align.length){We.raw=Se[0];var ze=We.align.length,M;for(M=0;M<ze;M++)/^ *-+: *$/.test(We.align[M])?We.align[M]="right":/^ *:-+: *$/.test(We.align[M])?We.align[M]="center":/^ *:-+ *$/.test(We.align[M])?We.align[M]="left":We.align[M]=null;for(ze=We.cells.length,M=0;M<ze;M++)We.cells[M]=E(We.cells[M].replace(/^ *\| *| *\| *$/g,""),We.header.length);return We}}},rt.lheading=function(ve){var Se=this.rules.block.lheading.exec(ve);if(Se)return{type:"heading",raw:Se[0],depth:Se[2].charAt(0)==="="?1:2,text:Se[1]}},rt.paragraph=function(ve){var Se=this.rules.block.paragraph.exec(ve);if(Se)return{type:"paragraph",raw:Se[0],text:Se[1].charAt(Se[1].length-1)===`
|
|
|
`?Se[1].slice(0,-1):Se[1]}},rt.text=function(ve){var Se=this.rules.block.text.exec(ve);if(Se)return{type:"text",raw:Se[0],text:Se[0]}},rt.escape=function(ve){var Se=this.rules.inline.escape.exec(ve);if(Se)return{type:"escape",raw:Se[0],text:R(Se[1])}},rt.tag=function(ve,Se,We){var ze=this.rules.inline.tag.exec(ve);if(ze)return!Se&&/^<a /i.test(ze[0])?Se=!0:Se&&/^<\/a>/i.test(ze[0])&&(Se=!1),!We&&/^<(pre|code|kbd|script)(\s|>)/i.test(ze[0])?We=!0:We&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ze[0])&&(We=!1),{type:this.options.sanitize?"text":"html",raw:ze[0],inLink:Se,inRawBlock:We,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):R(ze[0]):ze[0]}},rt.link=function(ve){var Se=this.rules.inline.link.exec(ve);if(Se){var We=Se[2].trim();if(!this.options.pedantic&&/^</.test(We)){if(!/>$/.test(We))return;var ze=Q(We.slice(0,-1),"\\");if((We.length-ze.length)%2===0)return}else{var M=se(Se[2],"()");if(M>-1){var dt=Se[0].indexOf("!")===0?5:4,Ee=dt+Se[1].length+M;Se[2]=Se[2].substring(0,M),Se[0]=Se[0].substring(0,Ee).trim(),Se[3]=""}}var Tt=Se[2],Kt="";if(this.options.pedantic){var Jt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Tt);Jt&&(Tt=Jt[1],Kt=Jt[3])}else Kt=Se[3]?Se[3].slice(1,-1):"";return Tt=Tt.trim(),/^</.test(Tt)&&(this.options.pedantic&&!/>$/.test(We)?Tt=Tt.slice(1):Tt=Tt.slice(1,-1)),we(Se,{href:Tt&&Tt.replace(this.rules.inline._escapes,"$1"),title:Kt&&Kt.replace(this.rules.inline._escapes,"$1")},Se[0])}},rt.reflink=function(ve,Se){var We;if((We=this.rules.inline.reflink.exec(ve))||(We=this.rules.inline.nolink.exec(ve))){var ze=(We[2]||We[1]).replace(/\s+/g," ");if(ze=Se[ze.toLowerCase()],!ze||!ze.href){var M=We[0].charAt(0);return{type:"text",raw:M,text:M}}return we(We,ze,We[0])}},rt.emStrong=function(ve,Se,We){We===void 0&&(We="");var ze=this.rules.inline.emStrong.lDelim.exec(ve);if(ze&&!(ze[3]&&We.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\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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-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DC08\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 M=ze[1]||ze[2]||"";if(!M||M&&(We===""||this.rules.inline.punctuation.exec(We))){var dt=ze[0].length-1,Ee,Tt,Kt=dt,Jt=0,un=ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(un.lastIndex=0,Se=Se.slice(-1*ve.length+dt);(ze=un.exec(Se))!=null;)if(Ee=ze[1]||ze[2]||ze[3]||ze[4]||ze[5]||ze[6],!!Ee){if(Tt=Ee.length,ze[3]||ze[4]){Kt+=Tt;continue}else if((ze[5]||ze[6])&&dt%3&&!((dt+Tt)%3)){Jt+=Tt;continue}if(Kt-=Tt,!(Kt>0))return Tt=Math.min(Tt,Tt+Kt+Jt),Math.min(dt,Tt)%2?{type:"em",raw:ve.slice(0,dt+ze.index+Tt+1),text:ve.slice(1,dt+ze.index+Tt)}:{type:"strong",raw:ve.slice(0,dt+ze.index+Tt+1),text:ve.slice(2,dt+ze.index+Tt-1)}}}}},rt.codespan=function(ve){var Se=this.rules.inline.code.exec(ve);if(Se){var We=Se[2].replace(/\n/g," "),ze=/[^ ]/.test(We),M=/^ /.test(We)&&/ $/.test(We);return ze&&M&&(We=We.substring(1,We.length-1)),We=R(We,!0),{type:"codespan",raw:Se[0],text:We}}},rt.br=function(ve){var Se=this.rules.inline.br.exec(ve);if(Se)return{type:"br",raw:Se[0]}},rt.del=function(ve){var Se=this.rules.inline.del.exec(ve);if(Se)return{type:"del",raw:Se[0],text:Se[2]}},rt.autolink=function(ve,Se){var We=this.rules.inline.autolink.exec(ve);if(We){var ze,M;return We[2]==="@"?(ze=R(this.options.mangle?Se(We[1]):We[1]),M="mailto:"+ze):(ze=R(We[1]),M=ze),{type:"link",raw:We[0],text:ze,href:M,tokens:[{type:"text",raw:ze,text:ze}]}}},rt.url=function(ve,Se){var We;if(We=this.rules.inline.url.exec(ve)){var ze,M;if(We[2]==="@")ze=R(this.options.mangle?Se(We[0]):We[0]),M="mailto:"+ze;else{var dt;do dt=We[0],We[0]=this.rules.inline._backpedal.exec(We[0])[0];while(dt!==We[0]);ze=R(We[0]),We[1]==="www."?M="http://"+ze:M=ze}return{type:"link",raw:We[0],text:ze,href:M,tokens:[{type:"text",raw:ze,text:ze}]}}},rt.inlineText=function(ve,Se,We){var ze=this.rules.inline.text.exec(ve);if(ze){var M;return Se?M=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):R(ze[0]):ze[0]:M=R(this.options.smartypants?We(ze[0]):ze[0]),{type:"text",raw:ze[0],text:M}}},Be}(),xe=X.noopTest,je=X.edit,Qe=X.merge,it={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:xe,table:xe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};it._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,it._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,it.def=je(it.def).replace("label",it._label).replace("title",it._title).getRegex(),it.bullet=/(?:[*+-]|\d{1,9}[.)])/,it.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,it.item=je(it.item,"gm").replace(/bull/g,it.bullet).getRegex(),it.listItemStart=je(/^( *)(bull) */).replace("bull",it.bullet).getRegex(),it.list=je(it.list).replace(/bull/g,it.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+it.def.source+")").getRegex(),it._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",it._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,it.html=je(it.html,"i").replace("comment",it._comment).replace("tag",it._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),it.paragraph=je(it._paragraph).replace("hr",it.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",it._tag).getRegex(),it.blockquote=je(it.blockquote).replace("paragraph",it.paragraph).getRegex(),it.normal=Qe({},it),it.gfm=Qe({},it.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*|$)"}),it.gfm.nptable=je(it.gfm.nptable).replace("hr",it.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",it._tag).getRegex(),it.gfm.table=je(it.gfm.table).replace("hr",it.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",it._tag).getRegex(),it.pedantic=Qe({},it.normal,{html:je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",it._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:xe,paragraph:je(it.normal._paragraph).replace("hr",it.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",it.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var De={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xe,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:xe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};De._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",De.punctuation=je(De.punctuation).replace(/punctuation/g,De._punctuation).getRegex(),De.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,De.escapedEmSt=/\\\*|\\_/g,De._comment=je(it._comment).replace("(?:-->|$)","-->").getRegex(),De.emStrong.lDelim=je(De.emStrong.lDelim).replace(/punct/g,De._punctuation).getRegex(),De.emStrong.rDelimAst=je(De.emStrong.rDelimAst,"g").replace(/punct/g,De._punctuation).getRegex(),De.emStrong.rDelimUnd=je(De.emStrong.rDelimUnd,"g").replace(/punct/g,De._punctuation).getRegex(),De._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,De._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,De._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])?)+(?![-_])/,De.autolink=je(De.autolink).replace("scheme",De._scheme).replace("email",De._email).getRegex(),De._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,De.tag=je(De.tag).replace("comment",De._comment).replace("attribute",De._attribute).getRegex(),De._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,De._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,De._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,De.link=je(De.link).replace("label",De._label).replace("href",De._href).replace("title",De._title).getRegex(),De.reflink=je(De.reflink).replace("label",De._label).getRegex(),De.reflinkSearch=je(De.reflinkSearch,"g").replace("reflink",De.reflink).replace("nolink",De.nolink).getRegex(),De.normal=Qe({},De),De.pedantic=Qe({},De.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:je(/^!?\[(label)\]\((.*?)\)/).replace("label",De._label).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",De._label).getRegex()}),De.gfm=Qe({},De.normal,{escape:je(De.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),De.gfm.url=je(De.gfm.url,"i").replace("email",De.gfm._extended_email).getRegex(),De.breaks=Qe({},De.gfm,{br:je(De.br).replace("{2,}","*").getRegex(),text:je(De.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var wt={block:it,inline:De},et=lt,Ot=fe.exports.defaults,qe=wt.block,Xe=wt.inline,Ue=X.repeatString;function ke(Be){return Be.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 ie(Be){var rt="",ft,ve,Se=Be.length;for(ft=0;ft<Se;ft++)ve=Be.charCodeAt(ft),Math.random()>.5&&(ve="x"+ve.toString(16)),rt+="&#"+ve+";";return rt}var $e=function(){function Be(ft){this.tokens=[],this.tokens.links=Object.create(null),this.options=ft||Ot,this.options.tokenizer=this.options.tokenizer||new et,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ve={block:qe.normal,inline:Xe.normal};this.options.pedantic?(ve.block=qe.pedantic,ve.inline=Xe.pedantic):this.options.gfm&&(ve.block=qe.gfm,this.options.breaks?ve.inline=Xe.breaks:ve.inline=Xe.gfm),this.tokenizer.rules=ve}Be.lex=function(ve,Se){var We=new Be(Se);return We.lex(ve)},Be.lexInline=function(ve,Se){var We=new Be(Se);return We.inlineTokens(ve)};var rt=Be.prototype;return rt.lex=function(ve){return ve=ve.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(ve,this.tokens,!0),this.inline(this.tokens),this.tokens},rt.blockTokens=function(ve,Se,We){Se===void 0&&(Se=[]),We===void 0&&(We=!0),this.options.pedantic&&(ve=ve.replace(/^ +$/gm,""));for(var ze,M,dt,Ee;ve;){if(ze=this.tokenizer.space(ve)){ve=ve.substring(ze.raw.length),ze.type&&Se.push(ze);continue}if(ze=this.tokenizer.code(ve)){ve=ve.substring(ze.raw.length),Ee=Se[Se.length-1],Ee&&Ee.type==="paragraph"?(Ee.raw+=`
|
|
|
`+ze.raw,Ee.text+=`
|
|
|
`+ze.text):Se.push(ze);continue}if(ze=this.tokenizer.fences(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.heading(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.nptable(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.hr(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.blockquote(ve)){ve=ve.substring(ze.raw.length),ze.tokens=this.blockTokens(ze.text,[],We),Se.push(ze);continue}if(ze=this.tokenizer.list(ve)){for(ve=ve.substring(ze.raw.length),dt=ze.items.length,M=0;M<dt;M++)ze.items[M].tokens=this.blockTokens(ze.items[M].text,[],!1);Se.push(ze);continue}if(ze=this.tokenizer.html(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(We&&(ze=this.tokenizer.def(ve))){ve=ve.substring(ze.raw.length),this.tokens.links[ze.tag]||(this.tokens.links[ze.tag]={href:ze.href,title:ze.title});continue}if(ze=this.tokenizer.table(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.lheading(ve)){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(We&&(ze=this.tokenizer.paragraph(ve))){ve=ve.substring(ze.raw.length),Se.push(ze);continue}if(ze=this.tokenizer.text(ve)){ve=ve.substring(ze.raw.length),Ee=Se[Se.length-1],Ee&&Ee.type==="text"?(Ee.raw+=`
|
|
|
`+ze.raw,Ee.text+=`
|
|
|
`+ze.text):Se.push(ze);continue}if(ve){var Tt="Infinite loop on byte: "+ve.charCodeAt(0);if(this.options.silent){console.error(Tt);break}else throw new Error(Tt)}}return Se},rt.inline=function(ve){var Se,We,ze,M,dt,Ee,Tt=ve.length;for(Se=0;Se<Tt;Se++)switch(Ee=ve[Se],Ee.type){case"paragraph":case"text":case"heading":{Ee.tokens=[],this.inlineTokens(Ee.text,Ee.tokens);break}case"table":{for(Ee.tokens={header:[],cells:[]},M=Ee.header.length,We=0;We<M;We++)Ee.tokens.header[We]=[],this.inlineTokens(Ee.header[We],Ee.tokens.header[We]);for(M=Ee.cells.length,We=0;We<M;We++)for(dt=Ee.cells[We],Ee.tokens.cells[We]=[],ze=0;ze<dt.length;ze++)Ee.tokens.cells[We][ze]=[],this.inlineTokens(dt[ze],Ee.tokens.cells[We][ze]);break}case"blockquote":{this.inline(Ee.tokens);break}case"list":{for(M=Ee.items.length,We=0;We<M;We++)this.inline(Ee.items[We].tokens);break}}return ve},rt.inlineTokens=function(ve,Se,We,ze){Se===void 0&&(Se=[]),We===void 0&&(We=!1),ze===void 0&&(ze=!1);var M,dt,Ee=ve,Tt,Kt,Jt;if(this.tokens.links){var un=Object.keys(this.tokens.links);if(un.length>0)for(;(Tt=this.tokenizer.rules.inline.reflinkSearch.exec(Ee))!=null;)un.includes(Tt[0].slice(Tt[0].lastIndexOf("[")+1,-1))&&(Ee=Ee.slice(0,Tt.index)+"["+Ue("a",Tt[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Tt=this.tokenizer.rules.inline.blockSkip.exec(Ee))!=null;)Ee=Ee.slice(0,Tt.index)+"["+Ue("a",Tt[0].length-2)+"]"+Ee.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Tt=this.tokenizer.rules.inline.escapedEmSt.exec(Ee))!=null;)Ee=Ee.slice(0,Tt.index)+"++"+Ee.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;ve;){if(Kt||(Jt=""),Kt=!1,M=this.tokenizer.escape(ve)){ve=ve.substring(M.raw.length),Se.push(M);continue}if(M=this.tokenizer.tag(ve,We,ze)){ve=ve.substring(M.raw.length),We=M.inLink,ze=M.inRawBlock;var gn=Se[Se.length-1];gn&&M.type==="text"&&gn.type==="text"?(gn.raw+=M.raw,gn.text+=M.text):Se.push(M);continue}if(M=this.tokenizer.link(ve)){ve=ve.substring(M.raw.length),M.type==="link"&&(M.tokens=this.inlineTokens(M.text,[],!0,ze)),Se.push(M);continue}if(M=this.tokenizer.reflink(ve,this.tokens.links)){ve=ve.substring(M.raw.length);var En=Se[Se.length-1];M.type==="link"?(M.tokens=this.inlineTokens(M.text,[],!0,ze),Se.push(M)):En&&M.type==="text"&&En.type==="text"?(En.raw+=M.raw,En.text+=M.text):Se.push(M);continue}if(M=this.tokenizer.emStrong(ve,Ee,Jt)){ve=ve.substring(M.raw.length),M.tokens=this.inlineTokens(M.text,[],We,ze),Se.push(M);continue}if(M=this.tokenizer.codespan(ve)){ve=ve.substring(M.raw.length),Se.push(M);continue}if(M=this.tokenizer.br(ve)){ve=ve.substring(M.raw.length),Se.push(M);continue}if(M=this.tokenizer.del(ve)){ve=ve.substring(M.raw.length),M.tokens=this.inlineTokens(M.text,[],We,ze),Se.push(M);continue}if(M=this.tokenizer.autolink(ve,ie)){ve=ve.substring(M.raw.length),Se.push(M);continue}if(!We&&(M=this.tokenizer.url(ve,ie))){ve=ve.substring(M.raw.length),Se.push(M);continue}if(M=this.tokenizer.inlineText(ve,ze,ke)){ve=ve.substring(M.raw.length),M.raw.slice(-1)!=="_"&&(Jt=M.raw.slice(-1)),Kt=!0,dt=Se[Se.length-1],dt&&dt.type==="text"?(dt.raw+=M.raw,dt.text+=M.text):Se.push(M);continue}if(ve){var Bn="Infinite loop on byte: "+ve.charCodeAt(0);if(this.options.silent){console.error(Bn);break}else throw new Error(Bn)}}return Se},d(Be,null,[{key:"rules",get:function(){return{block:qe,inline:Xe}}}]),Be}(),Pe=fe.exports.defaults,z=X.cleanUrl,D=X.escape,ue=function(){function Be(ft){this.options=ft||Pe}var rt=Be.prototype;return rt.code=function(ve,Se,We){var ze=(Se||"").match(/\S*/)[0];if(this.options.highlight){var M=this.options.highlight(ve,ze);M!=null&&M!==ve&&(We=!0,ve=M)}return ve=ve.replace(/\n$/,"")+`
|
|
|
`,ze?'<pre><code class="'+this.options.langPrefix+D(ze,!0)+'">'+(We?ve:D(ve,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(We?ve:D(ve,!0))+`</code></pre>
|
|
|
`},rt.blockquote=function(ve){return`<blockquote>
|
|
|
`+ve+`</blockquote>
|
|
|
`},rt.html=function(ve){return ve},rt.heading=function(ve,Se,We,ze){return this.options.headerIds?"<h"+Se+' id="'+this.options.headerPrefix+ze.slug(We)+'">'+ve+"</h"+Se+`>
|
|
|
`:"<h"+Se+">"+ve+"</h"+Se+`>
|
|
|
`},rt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},rt.list=function(ve,Se,We){var ze=Se?"ol":"ul",M=Se&&We!==1?' start="'+We+'"':"";return"<"+ze+M+`>
|
|
|
`+ve+"</"+ze+`>
|
|
|
`},rt.listitem=function(ve){return"<li>"+ve+`</li>
|
|
|
`},rt.checkbox=function(ve){return"<input "+(ve?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},rt.paragraph=function(ve){return"<p>"+ve+`</p>
|
|
|
`},rt.table=function(ve,Se){return Se&&(Se="<tbody>"+Se+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+ve+`</thead>
|
|
|
`+Se+`</table>
|
|
|
`},rt.tablerow=function(ve){return`<tr>
|
|
|
`+ve+`</tr>
|
|
|
`},rt.tablecell=function(ve,Se){var We=Se.header?"th":"td",ze=Se.align?"<"+We+' align="'+Se.align+'">':"<"+We+">";return ze+ve+"</"+We+`>
|
|
|
`},rt.strong=function(ve){return"<strong>"+ve+"</strong>"},rt.em=function(ve){return"<em>"+ve+"</em>"},rt.codespan=function(ve){return"<code>"+ve+"</code>"},rt.br=function(){return this.options.xhtml?"<br/>":"<br>"},rt.del=function(ve){return"<del>"+ve+"</del>"},rt.link=function(ve,Se,We){if(ve=z(this.options.sanitize,this.options.baseUrl,ve),ve===null)return We;var ze='<a href="'+D(ve)+'"';return Se&&(ze+=' title="'+Se+'"'),ze+=">"+We+"</a>",ze},rt.image=function(ve,Se,We){if(ve=z(this.options.sanitize,this.options.baseUrl,ve),ve===null)return We;var ze='<img src="'+ve+'" alt="'+We+'"';return Se&&(ze+=' title="'+Se+'"'),ze+=this.options.xhtml?"/>":">",ze},rt.text=function(ve){return ve},Be}(),ge=function(){function Be(){}var rt=Be.prototype;return rt.strong=function(ve){return ve},rt.em=function(ve){return ve},rt.codespan=function(ve){return ve},rt.del=function(ve){return ve},rt.html=function(ve){return ve},rt.text=function(ve){return ve},rt.link=function(ve,Se,We){return""+We},rt.image=function(ve,Se,We){return""+We},rt.br=function(){return""},Be}(),pe=function(){function Be(){this.seen={}}var rt=Be.prototype;return rt.serialize=function(ve){return ve.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},rt.getNextSafeSlug=function(ve,Se){var We=ve,ze=0;if(this.seen.hasOwnProperty(We)){ze=this.seen[ve];do ze++,We=ve+"-"+ze;while(this.seen.hasOwnProperty(We))}return Se||(this.seen[ve]=ze,this.seen[We]=0),We},rt.slug=function(ve,Se){Se===void 0&&(Se={});var We=this.serialize(ve);return this.getNextSafeSlug(We,Se.dryrun)},Be}(),ye=ue,Re=ge,Ze=pe,te=fe.exports.defaults,le=X.unescape,tt=function(){function Be(ft){this.options=ft||te,this.options.renderer=this.options.renderer||new ye,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Re,this.slugger=new Ze}Be.parse=function(ve,Se){var We=new Be(Se);return We.parse(ve)},Be.parseInline=function(ve,Se){var We=new Be(Se);return We.parseInline(ve)};var rt=Be.prototype;return rt.parse=function(ve,Se){Se===void 0&&(Se=!0);var We="",ze,M,dt,Ee,Tt,Kt,Jt,un,gn,En,Bn,Wn,Tn,Jn,vn,Gt,Qt,Dn,An=ve.length;for(ze=0;ze<An;ze++)switch(En=ve[ze],En.type){case"space":continue;case"hr":{We+=this.renderer.hr();continue}case"heading":{We+=this.renderer.heading(this.parseInline(En.tokens),En.depth,le(this.parseInline(En.tokens,this.textRenderer)),this.slugger);continue}case"code":{We+=this.renderer.code(En.text,En.lang,En.escaped);continue}case"table":{for(un="",Jt="",Ee=En.header.length,M=0;M<Ee;M++)Jt+=this.renderer.tablecell(this.parseInline(En.tokens.header[M]),{header:!0,align:En.align[M]});for(un+=this.renderer.tablerow(Jt),gn="",Ee=En.cells.length,M=0;M<Ee;M++){for(Kt=En.tokens.cells[M],Jt="",Tt=Kt.length,dt=0;dt<Tt;dt++)Jt+=this.renderer.tablecell(this.parseInline(Kt[dt]),{header:!1,align:En.align[dt]});gn+=this.renderer.tablerow(Jt)}We+=this.renderer.table(un,gn);continue}case"blockquote":{gn=this.parse(En.tokens),We+=this.renderer.blockquote(gn);continue}case"list":{for(Bn=En.ordered,Wn=En.start,Tn=En.loose,Ee=En.items.length,gn="",M=0;M<Ee;M++)vn=En.items[M],Gt=vn.checked,Qt=vn.task,Jn="",vn.task&&(Dn=this.renderer.checkbox(Gt),Tn?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}):Jn+=Dn),Jn+=this.parse(vn.tokens,Tn),gn+=this.renderer.listitem(Jn,Qt,Gt);We+=this.renderer.list(gn,Bn,Wn);continue}case"html":{We+=this.renderer.html(En.text);continue}case"paragraph":{We+=this.renderer.paragraph(this.parseInline(En.tokens));continue}case"text":{for(gn=En.tokens?this.parseInline(En.tokens):En.text;ze+1<An&&ve[ze+1].type==="text";)En=ve[++ze],gn+=`
|
|
|
`+(En.tokens?this.parseInline(En.tokens):En.text);We+=Se?this.renderer.paragraph(gn):gn;continue}default:{var bt='Token with "'+En.type+'" type was not found.';if(this.options.silent){console.error(bt);return}else throw new Error(bt)}}return We},rt.parseInline=function(ve,Se){Se=Se||this.renderer;var We="",ze,M,dt=ve.length;for(ze=0;ze<dt;ze++)switch(M=ve[ze],M.type){case"escape":{We+=Se.text(M.text);break}case"html":{We+=Se.html(M.text);break}case"link":{We+=Se.link(M.href,M.title,this.parseInline(M.tokens,Se));break}case"image":{We+=Se.image(M.href,M.title,M.text);break}case"strong":{We+=Se.strong(this.parseInline(M.tokens,Se));break}case"em":{We+=Se.em(this.parseInline(M.tokens,Se));break}case"codespan":{We+=Se.codespan(M.text);break}case"br":{We+=Se.br();break}case"del":{We+=Se.del(this.parseInline(M.tokens,Se));break}case"text":{We+=Se.text(M.text);break}default:{var Ee='Token with "'+M.type+'" type was not found.';if(this.options.silent){console.error(Ee);return}else throw new Error(Ee)}}return We},Be}(),nt=$e,ct=tt,ut=lt,Ge=ue,yt=ge,ht=pe,Ce=X.merge,Ye=X.checkSanitizeDeprecation,b=X.escape,w=fe.exports.getDefaults,He=fe.exports.changeDefaults,q=fe.exports.defaults;function be(Be,rt,ft){if(typeof Be=="undefined"||Be===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");if(typeof rt=="function"&&(ft=rt,rt=null),rt=Ce({},be.defaults,rt||{}),Ye(rt),ft){var ve=rt.highlight,Se;try{Se=nt.lex(Be,rt)}catch(dt){return ft(dt)}var We=function(Ee){var Tt;if(!Ee)try{rt.walkTokens&&be.walkTokens(Se,rt.walkTokens),Tt=ct.parse(Se,rt)}catch(Kt){Ee=Kt}return rt.highlight=ve,Ee?ft(Ee):ft(null,Tt)};if(!ve||ve.length<3||(delete rt.highlight,!Se.length))return We();var ze=0;be.walkTokens(Se,function(dt){dt.type==="code"&&(ze++,setTimeout(function(){ve(dt.text,dt.lang,function(Ee,Tt){if(Ee)return We(Ee);Tt!=null&&Tt!==dt.text&&(dt.text=Tt,dt.escaped=!0),ze--,ze===0&&We()})},0))}),ze===0&&We();return}try{var M=nt.lex(Be,rt);return rt.walkTokens&&be.walkTokens(M,rt.walkTokens),ct.parse(M,rt)}catch(dt){if(dt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,rt.silent)return"<p>An error occurred:</p><pre>"+b(dt.message+"",!0)+"</pre>";throw dt}}be.options=be.setOptions=function(Be){return Ce(be.defaults,Be),He(be.defaults),be},be.getDefaults=w,be.defaults=q,be.use=function(Be){var rt=Ce({},Be);if(Be.renderer&&function(){var ve=be.defaults.renderer||new Ge,Se=function(M){var dt=ve[M];ve[M]=function(){for(var Ee=arguments.length,Tt=new Array(Ee),Kt=0;Kt<Ee;Kt++)Tt[Kt]=arguments[Kt];var Jt=Be.renderer[M].apply(ve,Tt);return Jt===!1&&(Jt=dt.apply(ve,Tt)),Jt}};for(var We in Be.renderer)Se(We);rt.renderer=ve}(),Be.tokenizer&&function(){var ve=be.defaults.tokenizer||new ut,Se=function(M){var dt=ve[M];ve[M]=function(){for(var Ee=arguments.length,Tt=new Array(Ee),Kt=0;Kt<Ee;Kt++)Tt[Kt]=arguments[Kt];var Jt=Be.tokenizer[M].apply(ve,Tt);return Jt===!1&&(Jt=dt.apply(ve,Tt)),Jt}};for(var We in Be.tokenizer)Se(We);rt.tokenizer=ve}(),Be.walkTokens){var ft=be.defaults.walkTokens;rt.walkTokens=function(ve){Be.walkTokens(ve),ft&&ft(ve)}}be.setOptions(rt)},be.walkTokens=function(Be,rt){for(var ft=j(Be),ve;!(ve=ft()).done;){var Se=ve.value;switch(rt(Se),Se.type){case"table":{for(var We=j(Se.tokens.header),ze;!(ze=We()).done;){var M=ze.value;be.walkTokens(M,rt)}for(var dt=j(Se.tokens.cells),Ee;!(Ee=dt()).done;)for(var Tt=Ee.value,Kt=j(Tt),Jt;!(Jt=Kt()).done;){var un=Jt.value;be.walkTokens(un,rt)}break}case"list":{be.walkTokens(Se.items,rt);break}default:Se.tokens&&be.walkTokens(Se.tokens,rt)}}},be.parseInline=function(Be,rt){if(typeof Be=="undefined"||Be===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");rt=Ce({},be.defaults,rt||{}),Ye(rt);try{var ft=nt.lexInline(Be,rt);return rt.walkTokens&&be.walkTokens(ft,rt.walkTokens),ct.parseInline(ft,rt)}catch(ve){if(ve.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,rt.silent)return"<p>An error occurred:</p><pre>"+b(ve.message+"",!0)+"</pre>";throw ve}},be.Parser=ct,be.parser=ct.parse,be.Renderer=Ge,be.TextRenderer=yt,be.Lexer=nt,be.lexer=nt.lex,be.Tokenizer=ut,be.Slugger=ht,be.parse=be;var It=be;return It})},11690:function(mn){const gt=/[&<>"']/,d=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,ne=/[<>"']|&(?!#?\w+;)/g,j={"&":"&","<":"<",">":">",'"':""","'":"'"},fe=de=>j[de];function K(de,Ie){if(Ie){if(gt.test(de))return de.replace(d,fe)}else if(o.test(de))return de.replace(ne,fe);return de}const g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function re(de){return de.replace(g,(Ie,Fe)=>(Fe=Fe.toLowerCase(),Fe==="colon"?":":Fe.charAt(0)==="#"?Fe.charAt(1)==="x"?String.fromCharCode(parseInt(Fe.substring(2),16)):String.fromCharCode(+Fe.substring(1)):""))}const oe=/(^|[^\[])\^/g;function l(de,Ie){de=de.source||de,Ie=Ie||"";const Fe={replace:(_e,Te)=>(Te=Te.source||Te,Te=Te.replace(oe,"$1"),de=de.replace(_e,Te),Fe),getRegex:()=>new RegExp(de,Ie)};return Fe}const C=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(de,Ie,Fe){if(de){let _e;try{_e=decodeURIComponent(re(Fe)).replace(C,"").toLowerCase()}catch(Te){return null}if(_e.indexOf("javascript:")===0||_e.indexOf("vbscript:")===0||_e.indexOf("data:")===0)return null}Ie&&!N.test(Fe)&&(Fe=V(Ie,Fe));try{Fe=encodeURI(Fe).replace(/%25/g,"%")}catch(_e){return null}return Fe}const _={},T=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,W=/^([^:]+:\/*[^/]*)[\s\S]*$/;function V(de,Ie){_[" "+de]||(T.test(de)?_[" "+de]=de+"/":_[" "+de]=F(de,"/",!0)),de=_[" "+de];const Fe=de.indexOf(":")===-1;return Ie.substring(0,2)==="//"?Fe?Ie:de.replace(k,"$1")+Ie:Ie.charAt(0)==="/"?Fe?Ie:de.replace(W,"$1")+Ie:de+Ie}const $={exec:function(){}};function I(de){let Ie=1,Fe,_e;for(;Ie<arguments.length;Ie++){Fe=arguments[Ie];for(_e in Fe)Object.prototype.hasOwnProperty.call(Fe,_e)&&(de[_e]=Fe[_e])}return de}function G(de,Ie){const Fe=de.replace(/\|/g,(ee,B,A)=>{let X=!1,J=B;for(;--J>=0&&A[J]==="\\";)X=!X;return X?"|":" |"}),_e=Fe.split(/ \|/);let Te=0;if(_e.length>Ie)_e.splice(Ie);else for(;_e.length<Ie;)_e.push("");for(;Te<_e.length;Te++)_e[Te]=_e[Te].trim().replace(/\\\|/g,"|");return _e}function F(de,Ie,Fe){const _e=de.length;if(_e===0)return"";let Te=0;for(;Te<_e;){const ee=de.charAt(_e-Te-1);if(ee===Ie&&!Fe)Te++;else if(ee!==Ie&&Fe)Te++;else break}return de.substr(0,_e-Te)}function L(de,Ie){if(de.indexOf(Ie[1])===-1)return-1;const Fe=de.length;let _e=0,Te=0;for(;Te<Fe;Te++)if(de[Te]==="\\")Te++;else if(de[Te]===Ie[0])_e++;else if(de[Te]===Ie[1]&&(_e--,_e<0))return Te;return-1}function ae(de){de&&de.sanitize&&!de.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 me(de,Ie){if(Ie<1)return"";let Fe="";for(;Ie>1;)Ie&1&&(Fe+=de),Ie>>=1,de+=de;return Fe+de}mn.exports={escape:K,unescape:re,edit:l,cleanUrl:S,resolveUrl:V,noopTest:$,merge:I,splitCells:G,rtrim:F,findClosingBracket:L,checkSanitizeDeprecation:ae,repeatString:me}},75918:function(mn,gt,d){"use strict";d.d(gt,{Wi:function(){return g},Z0:function(){return re},aU:function(){return K},eZ:function(){return l},wY:function(){return oe}});var o=d(4348),ne=d(69323),j=d(13268),fe=function(C,N,S,_){function T(k){return k instanceof S?k:new S(function(W){W(k)})}return new(S||(S=Promise))(function(k,W){function V(G){try{I(_.next(G))}catch(F){W(F)}}function $(G){try{I(_.throw(G))}catch(F){W(F)}}function I(G){G.done?k(G.value):T(G.value).then(V,$)}I((_=_.apply(C,N||[])).next())})};class K extends ne.JT{constructor(N,S="",_="",T=!0,k){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=N,this._label=S,this._cssClass=_,this._enabled=T,this._actionCallback=k}get id(){return this._id}get label(){return this._label}set label(N){this._setLabel(N)}_setLabel(N){this._label!==N&&(this._label=N,this._onDidChange.fire({label:N}))}get tooltip(){return this._tooltip||""}set tooltip(N){this._setTooltip(N)}_setTooltip(N){this._tooltip!==N&&(this._tooltip=N,this._onDidChange.fire({tooltip:N}))}get class(){return this._cssClass}set class(N){this._setClass(N)}_setClass(N){this._cssClass!==N&&(this._cssClass=N,this._onDidChange.fire({class:N}))}get enabled(){return this._enabled}set enabled(N){this._setEnabled(N)}_setEnabled(N){this._enabled!==N&&(this._enabled=N,this._onDidChange.fire({enabled:N}))}get checked(){return this._checked}set checked(N){this._setChecked(N)}_setChecked(N){this._checked!==N&&(this._checked=N,this._onDidChange.fire({checked:N}))}run(N,S){return fe(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(N))})}}class g extends ne.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new o.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new o.Q5),this.onDidRun=this._onDidRun.event}run(N,S){return fe(this,void 0,void 0,function*(){if(!N.enabled)return;this._onBeforeRun.fire({action:N});let _;try{yield this.runAction(N,S)}catch(T){_=T}this._onDidRun.fire({action:N,error:_})})}runAction(N,S){return fe(this,void 0,void 0,function*(){yield N.run(S)})}}class re extends K{constructor(N){super(re.ID,N,N?"separator text":"separator"),this.checked=!1,this.enabled=!1}}re.ID="vs.actions.separator";class oe{constructor(N,S,_,T){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=N,this.label=S,this.class=T,this._actions=_}get actions(){return this._actions}dispose(){}run(){return fe(this,void 0,void 0,function*(){})}}class l extends K{constructor(){super(l.ID,j.N("submenu.empty","(empty)"),void 0,!1)}}l.ID="vs.actions.empty"},76068:function(mn,gt,d){"use strict";d.d(gt,{ok:function(){return o}});function o(ne,j){if(!ne)throw new Error(j?`Assertion failed (${j})`:"Assertion Failed")}},52615:function(mn,gt,d){"use strict";d.d(gt,{CM:function(){return K},JL:function(){return g},dT:function(){return oe},fK:function(){return fe},lA:function(){return re}});var o=d(4348);class ne{constructor(){this._icons=new Map,this._onDidRegister=new o.Q5}add(C){const N=this._icons.get(C.id);N?C.description?N.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 j=new ne,fe=j;function K(l,C){return new re(l,C)}function g(l){return l?l.replace(/\$\((.*?)\)/g,(C,N)=>` ${N} `).trim():""}class re{constructor(C,N,S){this.id=C,this.definition=N,this.description=S,j.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var oe;(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9\\-]+",l.iconModifierExpression="~[A-Za-z]+";const C=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function N(T){if(T instanceof re)return["codicon","codicon-"+T.id];const k=C.exec(T.id);if(!k)return N(re.error);let[,W,V]=k;const $=["codicon","codicon-"+W];return V&&$.push("codicon-modifier-"+V.substr(1)),$}l.asClassNameArray=N;function S(T){return N(T).join(" ")}l.asClassName=S;function _(T){return"."+N(T).join(".")}l.asCSSSelector=_})(oe||(oe={})),function(l){l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"})}(re||(re={}))},79881:function(mn,gt,d){"use strict";d.d(gt,{B8:function(){return N},Cp:function(){return fe},F0:function(){return oe},L6:function(){return C},VV:function(){return re},b1:function(){return l},dL:function(){return j},ri:function(){return K}});class o{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?new Error(_.message+`
|
|
|
|
|
|
`+_.stack):_},0)}}emit(_){this.listeners.forEach(T=>{T(_)})}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}const ne=new o;function j(S){re(S)||ne.onUnexpectedError(S)}function fe(S){re(S)||ne.onUnexpectedExternalError(S)}function K(S){if(S instanceof Error){let{name:_,message:T}=S;const k=S.stacktrace||S.stack;return{$isError:!0,name:_,message:T,stack:k}}return S}const g="Canceled";function re(S){return S instanceof Error&&S.name===g&&S.message===g}function oe(){const S=new Error(g);return S.name=S.message,S}function l(S){return S?new Error(`Illegal argument: ${S}`):new Error("Illegal argument")}function C(S){return S?new Error(`Illegal state: ${S}`):new Error("Illegal state")}class N extends Error{constructor(_){super("NotSupported"),_&&(this.message=_)}}},4348:function(mn,gt,d){"use strict";d.d(gt,{D0:function(){return N},E7:function(){return S},K3:function(){return C},Q5:function(){return l},ZD:function(){return _},ju:function(){return K}});var o=d(79881),ne=d(69323),j=d(34502),fe=d(95830),K;(function(T){T.None=()=>ne.JT.None;function k(A){return(X,J=null,Q)=>{let E=!1,R;return R=A(se=>{if(!E)return R?R.dispose():E=!0,X.call(J,se)},null,Q),E&&R.dispose(),R}}T.once=k;function W(A,X){return L((J,Q=null,E)=>A(R=>J.call(Q,X(R)),null,E))}T.map=W;function V(A,X){return L((J,Q=null,E)=>A(R=>{X(R),J.call(Q,R)},null,E))}T.forEach=V;function $(A,X){return L((J,Q=null,E)=>A(R=>X(R)&&J.call(Q,R),null,E))}T.filter=$;function I(A){return A}T.signal=I;function G(...A){return(X,J=null,Q)=>(0,ne.F8)(...A.map(E=>E(R=>X.call(J,R),null,Q)))}T.any=G;function F(A,X,J){let Q=J;return W(A,E=>(Q=X(Q,E),Q))}T.reduce=F;function L(A){let X;const J=new l({onFirstListenerAdd(){X=A(J.fire,J)},onLastListenerRemove(){X.dispose()}});return J.event}function ae(A,X,J=100,Q=!1,E){let R,se,we,Ve=0;const lt=new l({leakWarningThreshold:E,onFirstListenerAdd(){R=A(xe=>{Ve++,se=X(se,xe),Q&&!we&&(lt.fire(se),se=void 0),clearTimeout(we),we=setTimeout(()=>{const je=se;se=void 0,we=void 0,(!Q||Ve>1)&<.fire(je),Ve=0},J)})},onLastListenerRemove(){R.dispose()}});return lt.event}T.debounce=ae;function me(A,X=(J,Q)=>J===Q){let J=!0,Q;return $(A,E=>{const R=J||!X(E,Q);return J=!1,Q=E,R})}T.latch=me;function de(A,X){return[T.filter(A,X),T.filter(A,J=>!X(J))]}T.split=de;function Ie(A,X=!1,J=[]){let Q=J.slice(),E=A(we=>{Q?Q.push(we):se.fire(we)});const R=()=>{Q&&Q.forEach(we=>se.fire(we)),Q=null},se=new l({onFirstListenerAdd(){E||(E=A(we=>se.fire(we)))},onFirstListenerDidAdd(){Q&&(X?setTimeout(R):R())},onLastListenerRemove(){E&&E.dispose(),E=null}});return se.event}T.buffer=Ie;class Fe{constructor(X){this.event=X}map(X){return new Fe(W(this.event,X))}forEach(X){return new Fe(V(this.event,X))}filter(X){return new Fe($(this.event,X))}reduce(X,J){return new Fe(F(this.event,X,J))}latch(){return new Fe(me(this.event))}debounce(X,J=100,Q=!1,E){return new Fe(ae(this.event,X,J,Q,E))}on(X,J,Q){return this.event(X,J,Q)}once(X,J,Q){return k(this.event)(X,J,Q)}}function _e(A){return new Fe(A)}T.chain=_e;function Te(A,X,J=Q=>Q){const Q=(...we)=>se.fire(J(...we)),E=()=>A.on(X,Q),R=()=>A.removeListener(X,Q),se=new l({onFirstListenerAdd:E,onLastListenerRemove:R});return se.event}T.fromNodeEventEmitter=Te;function ee(A,X,J=Q=>Q){const Q=(...we)=>se.fire(J(...we)),E=()=>A.addEventListener(X,Q),R=()=>A.removeEventListener(X,Q),se=new l({onFirstListenerAdd:E,onLastListenerRemove:R});return se.event}T.fromDOMEventEmitter=ee;function B(A){return new Promise(X=>k(A)(X))}T.toPromise=B})(K||(K={}));class g{constructor(k){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${k}_${g._idPool++}`}start(k){this._stopWatch=new fe.G(!0),this._listenerCount=k}stop(){if(this._stopWatch){const k=this._stopWatch.elapsed();this._elapsedOverall+=k,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${k.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let re=-1;class oe{constructor(k,W=Math.random().toString(18).slice(2,5)){this.customThreshold=k,this.name=W,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(k){let W=re;if(typeof this.customThreshold=="number"&&(W=this.customThreshold),W<=0||k<W)return;this._stacks||(this._stacks=new Map);const V=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),$=this._stacks.get(V)||0;if(this._stacks.set(V,$+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=W*.5;let I,G=0;for(const[F,L]of this._stacks)(!I||G<L)&&(I=F,G=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${k} listeners already. MOST frequent listener (${G}):`),console.warn(I)}return()=>{const I=this._stacks.get(V)||0;this._stacks.set(V,I-1)}}}class l{constructor(k){var W;this._disposed=!1,this._options=k,this._leakageMon=re>0?new oe(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=(k,W,V)=>{var $;this._listeners||(this._listeners=new j.S);const I=this._listeners.isEmpty();I&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const G=this._listeners.push(W?[k,W]:k);I&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,k,W);const F=($=this._leakageMon)===null||$===void 0?void 0:$.check(this._listeners.size),L=(0,ne.OF)(()=>{F&&F(),this._disposed||(G(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return V instanceof ne.SL?V.add(L):Array.isArray(V)&&V.push(L),L}),this._event}fire(k){var W,V;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new j.S);for(let $ of this._listeners)this._deliveryQueue.push([$,k]);for((W=this._perfMon)===null||W===void 0||W.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[$,I]=this._deliveryQueue.shift();try{typeof $=="function"?$.call(void 0,I):$[0].call($[1],I)}catch(G){(0,o.dL)(G)}}(V=this._perfMon)===null||V===void 0||V.stop()}}dispose(){var k,W,V,$,I;this._disposed||(this._disposed=!0,(k=this._listeners)===null||k===void 0||k.clear(),(W=this._deliveryQueue)===null||W===void 0||W.clear(),($=(V=this._options)===null||V===void 0?void 0:V.onLastListenerRemove)===null||$===void 0||$.call(V),(I=this._leakageMon)===null||I===void 0||I.dispose())}}class C extends l{constructor(k){super(k),this._isPaused=0,this._eventQueue=new j.S,this._mergeFn=k==null?void 0:k.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const k=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(k))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(k){this._listeners&&(this._isPaused!==0?this._eventQueue.push(k):super.fire(k))}}class N extends C{constructor(k){var W;super(k),this._delay=(W=k.delay)!==null&&W!==void 0?W:100}fire(k){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(k)}}class S{constructor(){this.buffers=[]}wrapEvent(k){return(W,V,$)=>k(I=>{const G=this.buffers[this.buffers.length-1];G?G.push(()=>W.call(V,I)):W.call(V,I)},void 0,$)}bufferEvents(k){const W=[];this.buffers.push(W);const V=k();return this.buffers.pop(),W.forEach($=>$()),V}}class _{constructor(){this.listening=!1,this.inputEvent=K.None,this.inputEventListener=ne.JT.None,this.emitter=new l({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(k){this.inputEvent=k,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=k(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(mn,gt,d){"use strict";d.d(gt,{I:function(){return o}});function o(ne){const j=this;let fe=!1,K;return function(){return fe||(fe=!0,K=ne.apply(j,arguments)),K}}},88226:function(mn,gt,d){"use strict";d.d(gt,{$:function(){return o}});var o;(function(ne){function j(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}ne.is=j;const fe=Object.freeze([]);function K(){return fe}ne.empty=K;function*g(G){yield G}ne.single=g;function re(G){return G||fe}ne.from=re;function oe(G){return!G||G[Symbol.iterator]().next().done===!0}ne.isEmpty=oe;function l(G){return G[Symbol.iterator]().next().value}ne.first=l;function C(G,F){for(const L of G)if(F(L))return!0;return!1}ne.some=C;function N(G,F){for(const L of G)if(F(L))return L}ne.find=N;function*S(G,F){for(const L of G)F(L)&&(yield L)}ne.filter=S;function*_(G,F){let L=0;for(const ae of G)yield F(ae,L++)}ne.map=_;function*T(...G){for(const F of G)for(const L of F)yield L}ne.concat=T;function*k(G){for(const F of G)for(const L of F)yield L}ne.concatNested=k;function W(G,F,L){let ae=L;for(const me of G)ae=F(ae,me);return ae}ne.reduce=W;function*V(G,F,L=G.length){for(F<0&&(F+=G.length),L<0?L+=G.length:L>G.length&&(L=G.length);F<L;F++)yield G[F]}ne.slice=V;function $(G,F=Number.POSITIVE_INFINITY){const L=[];if(F===0)return[L,G];const ae=G[Symbol.iterator]();for(let me=0;me<F;me++){const de=ae.next();if(de.done)return[L,ne.empty()];L.push(de.value)}return[L,{[Symbol.iterator](){return ae}}]}ne.consume=$;function I(G,F,L=(ae,me)=>ae===me){const ae=G[Symbol.iterator](),me=F[Symbol.iterator]();for(;;){const de=ae.next(),Ie=me.next();if(de.done!==Ie.done)return!1;if(de.done)return!0;if(!L(de.value,Ie.value))return!1}}ne.equals=I})(o||(o={}))},69323:function(mn,gt,d){"use strict";d.d(gt,{B9:function(){return _},F8:function(){return T},JT:function(){return V},Jz:function(){return I},OF:function(){return k},SL:function(){return W},Wf:function(){return S},XK:function(){return $},dk:function(){return C}});var o=d(17845),ne=d(88226);const j=!1;let fe=null;function K(G){fe=G}if(j){const G="__is_disposable_tracked__";K(new class{trackDisposable(F){const L=new Error("Potentially leaked disposable").stack;setTimeout(()=>{F[G]||console.log(L)},3e3)}setParent(F,L){if(F&&F!==V.None)try{F[G]=!0}catch(ae){}}markAsDisposed(F){if(F&&F!==V.None)try{F[G]=!0}catch(L){}}markAsSingleton(F){}})}function g(G){return fe==null||fe.trackDisposable(G),G}function re(G){fe==null||fe.markAsDisposed(G)}function oe(G,F){fe==null||fe.setParent(G,F)}function l(G,F){if(fe)for(const L of G)fe.setParent(L,F)}function C(G){return fe==null||fe.markAsSingleton(G),G}class N extends Error{constructor(F){super(`Encountered errors while disposing of store. Errors: [${F.join(", ")}]`),this.errors=F}}function S(G){return typeof G.dispose=="function"&&G.dispose.length===0}function _(G){if(ne.$.is(G)){let F=[];for(const L of G)if(L)try{L.dispose()}catch(ae){F.push(ae)}if(F.length===1)throw F[0];if(F.length>1)throw new N(F);return Array.isArray(G)?[]:G}else if(G)return G.dispose(),G}function T(...G){const F=k(()=>_(G));return l(G,F),F}function k(G){const F=g({dispose:(0,o.I)(()=>{re(F),G()})});return F}class W{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(re(this),this._isDisposed=!0,this.clear())}clear(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}add(F){if(!F)return F;if(F===this)throw new Error("Cannot register a disposable on itself!");return oe(F,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(F),F}}W.DISABLE_DISPOSED_WARNING=!1;class V{constructor(){this._store=new W,g(this),oe(this._store,this)}dispose(){re(this),this._store.dispose()}_register(F){if(F===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(F)}}V.None=Object.freeze({dispose(){}});class ${constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(F){var L;this._isDisposed||F===this._value||((L=this._value)===null||L===void 0||L.dispose(),F&&oe(F,this),this._value=F)}clear(){this.value=void 0}dispose(){var F;this._isDisposed=!0,re(this),(F=this._value)===null||F===void 0||F.dispose(),this._value=void 0}clearAndLeak(){const F=this._value;return this._value=void 0,F&&oe(F,null),F}}class I{constructor(F){this.object=F}dispose(){}}},34502:function(mn,gt,d){"use strict";d.d(gt,{S:function(){return ne}});class o{constructor(fe){this.element=fe,this.next=o.Undefined,this.prev=o.Undefined}}o.Undefined=new o(void 0);class ne{constructor(){this._first=o.Undefined,this._last=o.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===o.Undefined}clear(){let fe=this._first;for(;fe!==o.Undefined;){const K=fe.next;fe.prev=o.Undefined,fe.next=o.Undefined,fe=K}this._first=o.Undefined,this._last=o.Undefined,this._size=0}unshift(fe){return this._insert(fe,!1)}push(fe){return this._insert(fe,!0)}_insert(fe,K){const g=new o(fe);if(this._first===o.Undefined)this._first=g,this._last=g;else if(K){const oe=this._last;this._last=g,g.prev=oe,oe.next=g}else{const oe=this._first;this._first=g,g.next=oe,oe.prev=g}this._size+=1;let re=!1;return()=>{re||(re=!0,this._remove(g))}}shift(){if(this._first!==o.Undefined){const fe=this._first.element;return this._remove(this._first),fe}}pop(){if(this._last!==o.Undefined){const fe=this._last.element;return this._remove(this._last),fe}}_remove(fe){if(fe.prev!==o.Undefined&&fe.next!==o.Undefined){const K=fe.prev;K.next=fe.next,fe.next.prev=K}else fe.prev===o.Undefined&&fe.next===o.Undefined?(this._first=o.Undefined,this._last=o.Undefined):fe.next===o.Undefined?(this._last=this._last.prev,this._last.next=o.Undefined):fe.prev===o.Undefined&&(this._first=this._first.next,this._first.prev=o.Undefined);this._size-=1}*[Symbol.iterator](){let fe=this._first;for(;fe!==o.Undefined;)yield fe.element,fe=fe.next}}},23345:function(mn,gt,d){"use strict";d.d(gt,{$L:function(){return ae},ED:function(){return I},IJ:function(){return F},OS:function(){return Fe},WE:function(){return de},dz:function(){return G},gn:function(){return me},li:function(){return k},r:function(){return ee},tY:function(){return L},xS:function(){return Ie}});var o=d(97671),ne;const j="en";let fe=!1,K=!1,g=!1,re=!1,oe=!1,l=!1,C=!1,N,S=null,_=null,T;const k=typeof self=="object"?self:typeof d.g=="object"?d.g:{};let W;typeof k.vscode!="undefined"&&typeof k.vscode.process!="undefined"?W=k.vscode.process:typeof o!="undefined"&&(W=o);const V=typeof((ne=W==null?void 0:W.versions)===null||ne===void 0?void 0:ne.electron)=="string"&&W.type==="renderer";if(typeof navigator=="object"&&!V)T=navigator.userAgent,fe=T.indexOf("Windows")>=0,K=T.indexOf("Macintosh")>=0,C=(T.indexOf("Macintosh")>=0||T.indexOf("iPad")>=0||T.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,g=T.indexOf("Linux")>=0,l=!0,N=navigator.language,S=N;else if(typeof W=="object"){fe=W.platform==="win32",K=W.platform==="darwin",g=W.platform==="linux",re=g&&!!W.env.SNAP&&!!W.env.SNAP_REVISION,N=j,S=j;const B=W.env.VSCODE_NLS_CONFIG;if(B)try{const A=JSON.parse(B),X=A.availableLanguages["*"];N=A.locale,S=X||j,_=A._translationsConfigFile}catch(A){}oe=!0}else console.error("Unable to resolve platform.");let $=0;K?$=1:fe?$=3:g&&($=2);const I=fe,G=K,F=g,L=oe,ae=l,me=C,de=T,Ie=function(){if(k.setImmediate)return k.setImmediate.bind(k);if(typeof k.postMessage=="function"&&!k.importScripts){let X=[];k.addEventListener("message",Q=>{if(Q.data&&Q.data.vscodeSetImmediateId)for(let E=0,R=X.length;E<R;E++){const se=X[E];if(se.id===Q.data.vscodeSetImmediateId){X.splice(E,1),se.callback();return}}});let J=0;return Q=>{const E=++J;X.push({id:E,callback:Q}),k.postMessage({vscodeSetImmediateId:E},"*")}}if(typeof(W==null?void 0:W.nextTick)=="function")return W.nextTick.bind(W);const A=Promise.resolve();return X=>A.then(X)}(),Fe=K||C?2:fe?1:3;let _e=!0,Te=!1;function ee(){if(!Te){Te=!0;const B=new Uint8Array(2);B[0]=1,B[1]=2,_e=new Uint16Array(B.buffer)[0]===513}return _e}},95830:function(mn,gt,d){"use strict";d.d(gt,{G:function(){return j}});var o=d(23345);const ne=o.li.performance&&typeof o.li.performance.now=="function";class j{constructor(K){this._highResolution=ne&&K,this._startTime=this._now(),this._stopTime=-1}static create(K=!0){return new j(K)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?o.li.performance.now():Date.now()}}},82983:function(mn,gt,d){"use strict";d.d(gt,{$i:function(){return Ve},C8:function(){return it},GF:function(){return N},HO:function(){return J},IO:function(){return S},K7:function(){return Qe},Kw:function(){return et},LC:function(){return k},Mh:function(){return Ie},P1:function(){return Fe},PJ:function(){return Ot},Qe:function(){return lt},R1:function(){return C},RP:function(){return se},S6:function(){return qe},TT:function(){return I},Ut:function(){return E},V8:function(){return W},WU:function(){return j},YK:function(){return Te},YU:function(){return fe},ZG:function(){return _e},ZH:function(){return B},ab:function(){return xe},c1:function(){return De},df:function(){return ae},ec:function(){return K},fi:function(){return Xe},fy:function(){return g},j3:function(){return re},j_:function(){return F},m5:function(){return o},mK:function(){return L},mr:function(){return _},oH:function(){return ie},oL:function(){return oe},ok:function(){return de},ow:function(){return V},qq:function(){return me},qu:function(){return $},rL:function(){return ee},uS:function(){return wt},un:function(){return l},uq:function(){return T},vH:function(){return X},xe:function(){return je},zY:function(){return G}});function o(D){return!D||typeof D!="string"?!0:D.trim().length===0}const ne=/{(\d+)}/g;function j(D,...ue){return ue.length===0?D:D.replace(ne,function(ge,pe){const ye=parseInt(pe,10);return isNaN(ye)||ye<0||ye>=ue.length?ge:ue[ye]})}function fe(D){return D.replace(/[<>&]/g,function(ue){switch(ue){case"<":return"<";case">":return">";case"&":return"&";default:return ue}})}function K(D){return D.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(D,ue=" "){const ge=re(D,ue);return oe(ge,ue)}function re(D,ue){if(!D||!ue)return D;const ge=ue.length;if(ge===0||D.length===0)return D;let pe=0;for(;D.indexOf(ue,pe)===pe;)pe=pe+ge;return D.substring(pe)}function oe(D,ue){if(!D||!ue)return D;const ge=ue.length,pe=D.length;if(ge===0||pe===0)return D;let ye=pe,Re=-1;for(;Re=D.lastIndexOf(ue,ye-1),!(Re===-1||Re+ge!==ye);){if(Re===0)return"";ye=Re}return D.substring(0,ye)}function l(D){return D.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C(D){return D.replace(/\*/g,"")}function N(D,ue,ge={}){if(!D)throw new Error("Cannot create regex from empty string");ue||(D=K(D)),ge.wholeWord&&(/\B/.test(D.charAt(0))||(D="\\b"+D),/\B/.test(D.charAt(D.length-1))||(D=D+"\\b"));let pe="";return ge.global&&(pe+="g"),ge.matchCase||(pe+="i"),ge.multiline&&(pe+="m"),ge.unicode&&(pe+="u"),new RegExp(D,pe)}function S(D){return D.source==="^"||D.source==="^$"||D.source==="$"||D.source==="^\\s*$"?!1:!!(D.exec("")&&D.lastIndex===0)}function _(D){return(D.global?"g":"")+(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")}function T(D){return D.split(/\r\n|\r|\n/)}function k(D){for(let ue=0,ge=D.length;ue<ge;ue++){const pe=D.charCodeAt(ue);if(pe!==32&&pe!==9)return ue}return-1}function W(D,ue=0,ge=D.length){for(let pe=ue;pe<ge;pe++){const ye=D.charCodeAt(pe);if(ye!==32&&ye!==9)return D.substring(ue,pe)}return D.substring(ue,ge)}function V(D,ue=D.length-1){for(let ge=ue;ge>=0;ge--){const pe=D.charCodeAt(ge);if(pe!==32&&pe!==9)return ge}return-1}function $(D,ue){return D<ue?-1:D>ue?1:0}function I(D,ue,ge=0,pe=D.length,ye=0,Re=ue.length){for(;ge<pe&&ye<Re;ge++,ye++){let le=D.charCodeAt(ge),tt=ue.charCodeAt(ye);if(le<tt)return-1;if(le>tt)return 1}const Ze=pe-ge,te=Re-ye;return Ze<te?-1:Ze>te?1:0}function G(D,ue){return F(D,ue,0,D.length,0,ue.length)}function F(D,ue,ge=0,pe=D.length,ye=0,Re=ue.length){for(;ge<pe&&ye<Re;ge++,ye++){let le=D.charCodeAt(ge),tt=ue.charCodeAt(ye);if(le===tt)continue;if(le>=128||tt>=128)return I(D.toLowerCase(),ue.toLowerCase(),ge,pe,ye,Re);L(le)&&(le-=32),L(tt)&&(tt-=32);const nt=le-tt;if(nt!==0)return nt}const Ze=pe-ge,te=Re-ye;return Ze<te?-1:Ze>te?1:0}function L(D){return D>=97&&D<=122}function ae(D){return D>=65&&D<=90}function me(D,ue){return D.length===ue.length&&F(D,ue)===0}function de(D,ue){const ge=ue.length;return ue.length>D.length?!1:F(D,ue,0,ge)===0}function Ie(D,ue){let ge,pe=Math.min(D.length,ue.length);for(ge=0;ge<pe;ge++)if(D.charCodeAt(ge)!==ue.charCodeAt(ge))return ge;return pe}function Fe(D,ue){let ge,pe=Math.min(D.length,ue.length);const ye=D.length-1,Re=ue.length-1;for(ge=0;ge<pe;ge++)if(D.charCodeAt(ye-ge)!==ue.charCodeAt(Re-ge))return ge;return pe}function _e(D){return 55296<=D&&D<=56319}function Te(D){return 56320<=D&&D<=57343}function ee(D,ue){return(D-55296<<10)+(ue-56320)+65536}function B(D,ue,ge){const pe=D.charCodeAt(ge);if(_e(pe)&&ge+1<ue){const ye=D.charCodeAt(ge+1);if(Te(ye))return ee(pe,ye)}return pe}function A(D,ue){const ge=D.charCodeAt(ue-1);if(Te(ge)&&ue>1){const pe=D.charCodeAt(ue-2);if(_e(pe))return ee(pe,ge)}return ge}function X(D,ue){const ge=Ue.getInstance(),pe=ue,ye=D.length,Re=B(D,ye,ue);ue+=Re>=65536?2:1;let Ze=ge.getGraphemeBreakType(Re);for(;ue<ye;){const te=B(D,ye,ue),le=ge.getGraphemeBreakType(te);if(Xe(Ze,le))break;ue+=te>=65536?2:1,Ze=le}return ue-pe}function J(D,ue){const ge=Ue.getInstance(),pe=ue,ye=A(D,ue);ue-=ye>=65536?2:1;let Re=ge.getGraphemeBreakType(ye);for(;ue>0;){const Ze=A(D,ue),te=ge.getGraphemeBreakType(Ze);if(Xe(te,Re))break;ue-=Ze>=65536?2:1,Re=te}return pe-ue}const Q=/(?:[\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 E(D){return Q.test(D)}const R=/(?:[\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 se(D){return R.test(D)}const we=/^[\t\n\r\x20-\x7E]*$/;function Ve(D){return we.test(D)}const lt=/[\u2028\u2029]/;function xe(D){return lt.test(D)}function je(D){for(let ue=0,ge=D.length;ue<ge;ue++)if(Qe(D.charCodeAt(ue)))return!0;return!1}function Qe(D){return D=+D,D>=11904&&D<=55215||D>=63744&&D<=64255||D>=65281&&D<=65374}function it(D){return D>=127462&&D<=127487||D===8986||D===8987||D===9200||D===9203||D>=9728&&D<=10175||D===11088||D===11093||D>=127744&&D<=128591||D>=128640&&D<=128764||D>=128992&&D<=129003||D>=129280&&D<=129535||D>=129648&&D<=129750}const De="\uFEFF";function wt(D){return!!(D&&D.length>0&&D.charCodeAt(0)===65279)}function et(D,ue=!1){return D?(ue&&(D=D.replace(/\\./g,"")),D.toLowerCase()!==D):!1}function Ot(D){return D=D%(2*26),D<26?String.fromCharCode(97+D):String.fromCharCode(65+D-26)}function qe(D){return Ue.getInstance().getGraphemeBreakType(D)}function Xe(D,ue){return D===0?ue!==5&&ue!==7:D===2&&ue===3?!1:D===4||D===2||D===3||ue===4||ue===2||ue===3?!0:!(D===8&&(ue===8||ue===9||ue===11||ue===12)||(D===11||D===9)&&(ue===9||ue===10)||(D===12||D===10)&&ue===10||ue===5||ue===13||ue===7||D===1||D===13&&ue===14||D===6&&ue===6)}class Ue{constructor(){this._data=ke()}static getInstance(){return Ue._INSTANCE||(Ue._INSTANCE=new Ue),Ue._INSTANCE}getGraphemeBreakType(ue){if(ue<32)return ue===10?3:ue===13?2:4;if(ue<127)return 0;const ge=this._data,pe=ge.length/3;let ye=1;for(;ye<=pe;)if(ue<ge[3*ye])ye=2*ye;else if(ue>ge[3*ye+1])ye=2*ye+1;else return ge[3*ye+2];return 0}}Ue._INSTANCE=null;function ke(){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 ie(D,ue){if(D===0)return 0;const ge=$e(D,ue);if(ge!==void 0)return ge;const pe=A(ue,D);return D-=Pe(pe),D}function $e(D,ue){let ge=A(ue,D);for(D-=Pe(ge);z(ge)||ge===65039||ge===8419;){if(D===0)return;ge=A(ue,D),D-=Pe(ge)}if(it(ge)){if(D>=0){const pe=A(ue,D);pe===8205&&(D-=Pe(pe))}return D}}function Pe(D){return D>=65536?2:1}function z(D){return 127995<=D&&D<=127999}},72999:function(mn,gt,d){"use strict";d.d(gt,{$E:function(){return k},$K:function(){return re},D8:function(){return S},HD:function(){return ne},IU:function(){return W},Jp:function(){return oe},Kn:function(){return j},cW:function(){return C},f6:function(){return V},hj:function(){return fe},jn:function(){return K},kJ:function(){return o},mf:function(){return N},o8:function(){return g},p_:function(){return l},vE:function(){return $}});function o(I){return Array.isArray(I)}function ne(I){return typeof I=="string"}function j(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)&&!(I instanceof RegExp)&&!(I instanceof Date)}function fe(I){return typeof I=="number"&&!isNaN(I)}function K(I){return I===!0||I===!1}function g(I){return typeof I=="undefined"}function re(I){return!oe(I)}function oe(I){return g(I)||I===null}function l(I,G){if(!I)throw new Error(G?`Unexpected type, expected '${G}'`:"Unexpected type")}function C(I){if(oe(I))throw new Error("Assertion Failed: argument is undefined or null");return I}function N(I){return typeof I=="function"}function S(I,G){const F=Math.min(I.length,G.length);for(let L=0;L<F;L++)_(I[L],G[L])}function _(I,G){if(ne(G)){if(typeof I!==G)throw new Error(`argument does not match constraint: typeof ${G}`)}else if(N(G)){try{if(I instanceof G)return}catch(F){}if(!oe(I)&&I.constructor===G||G.length===1&&G.call(void 0,I)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function T(I){let G=[],F=Object.getPrototypeOf(I);for(;Object.prototype!==F;)G=G.concat(Object.getOwnPropertyNames(F)),F=Object.getPrototypeOf(F);return G}function k(I){const G=[];for(const F of T(I))typeof I[F]=="function"&&G.push(F);return G}function W(I,G){const F=ae=>function(){const me=Array.prototype.slice.call(arguments,0);return G(ae,me)};let L={};for(const ae of I)L[ae]=F(ae);return L}function V(I){return I===null?void 0:I}function $(I,G="Unreachable"){throw new Error(G)}},13268:function(mn,gt,d){"use strict";d.d(gt,{N:function(){return ne}});function o(j,fe){let K;return fe.length===0?K=j:K=j.replace(/\{(\d+)\}/g,function(g,re){const oe=re[0];return typeof fe[oe]!="undefined"?fe[oe]:g}),K}function ne(j,fe,...K){return o(fe,K)}},96236:function(mn,gt,d){"use strict";d.d(gt,{BH:function(){return W},NZ:function(){return V},U8:function(){return $},co:function(){return k},eH:function(){return T},vr:function(){return _}});var o=d(75918),ne=d(52615),j=d(4348),fe=d(88226),K=d(69323),g=d(34502),re=d(35884),oe=d(90689),l=d(16925),C=d(49055),N=function(I,G,F,L){var ae=arguments.length,me=ae<3?G:L===null?L=Object.getOwnPropertyDescriptor(G,F):L,de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(I,G,F,L);else for(var Ie=I.length-1;Ie>=0;Ie--)(de=I[Ie])&&(me=(ae<3?de(me):ae>3?de(G,F,me):de(G,F))||me);return ae>3&&me&&Object.defineProperty(G,F,me),me},S=function(I,G){return function(F,L){G(F,L,I)}};function _(I){return I.command!==void 0}class T{constructor(G){this.id=T._idPool++,this._debugName=G}}T._idPool=0,T.CommandPalette=new T("CommandPalette"),T.EditorContext=new T("EditorContext"),T.SimpleEditorContext=new T("SimpleEditorContext"),T.EditorContextCopy=new T("EditorContextCopy"),T.EditorContextPeek=new T("EditorContextPeek"),T.MenubarEditMenu=new T("MenubarEditMenu"),T.MenubarCopy=new T("MenubarCopy"),T.MenubarGoMenu=new T("MenubarGoMenu"),T.MenubarSelectionMenu=new T("MenubarSelectionMenu"),T.InlineCompletionsActions=new T("InlineCompletionsActions");const k=(0,l.yh)("menuService"),W=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new j.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:I=>I===T.CommandPalette}}addCommand(I){return this.addCommands(fe.$.single(I))}addCommands(I){for(const G of I)this._commands.set(G.id,G);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,K.OF)(()=>{let G=!1;for(const F of I)G=this._commands.delete(F.id)||G;G&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(I){return this._commands.get(I)}getCommands(){const I=new Map;return this._commands.forEach((G,F)=>I.set(F,G)),I}appendMenuItem(I,G){return this.appendMenuItems(fe.$.single({id:I,item:G}))}appendMenuItems(I){const G=new Set,F=new g.S;for(const{id:L,item:ae}of I){let me=this._menuItems.get(L);me||(me=new g.S,this._menuItems.set(L,me)),F.push(me.push(ae)),G.add(L)}return this._onDidChangeMenu.fire(G),(0,K.OF)(()=>{if(F.size>0){for(let L of F)L();this._onDidChangeMenu.fire(G),F.clear()}})}getMenuItems(I){let G;return this._menuItems.has(I)?G=[...this._menuItems.get(I)]:G=[],I===T.CommandPalette&&this._appendImplicitItems(G),G}_appendImplicitItems(I){const G=new Set;for(const F of I)_(F)&&(G.add(F.command.id),F.alt&&G.add(F.alt.id));this._commands.forEach((F,L)=>{G.has(L)||I.push({command:F})})}};class V extends o.wY{constructor(G,F,L,ae){super(`submenuitem.${G.submenu.id}`,typeof G.title=="string"?G.title:G.title.value,[],"submenu"),this.item=G,this._menuService=F,this._contextKeyService=L,this._options=ae}get actions(){const G=[],F=this._menuService.createMenu(this.item.submenu,this._contextKeyService),L=F.getActions(this._options);F.dispose();for(const[,ae]of L)ae.length>0&&(G.push(...ae),G.push(new o.Z0));return G.length&&G.pop(),G}}let $=class cc{constructor(G,F,L,ae,me){var de,Ie;if(this._commandService=me,this.id=G.id,this.label=L!=null&&L.renderShortTitle&&G.shortTitle?typeof G.shortTitle=="string"?G.shortTitle:G.shortTitle.value:typeof G.title=="string"?G.title:G.title.value,this.tooltip=(Ie=typeof G.tooltip=="string"?G.tooltip:(de=G.tooltip)===null||de===void 0?void 0:de.value)!==null&&Ie!==void 0?Ie:"",this.enabled=!G.precondition||ae.contextMatchesRules(G.precondition),this.checked=void 0,G.toggled){const Fe=G.toggled.condition?G.toggled:{condition:G.toggled};this.checked=ae.contextMatchesRules(Fe.condition),this.checked&&Fe.tooltip&&(this.tooltip=typeof Fe.tooltip=="string"?Fe.tooltip:Fe.tooltip.value),Fe.title&&(this.label=typeof Fe.title=="string"?Fe.title:Fe.title.value)}this.item=G,this.alt=F?new cc(F,void 0,L,ae,me):void 0,this._options=L,C.kS.isThemeIcon(G.icon)&&(this.class=ne.dT.asClassName(G.icon))}dispose(){}run(...G){var F,L;let ae=[];return!((F=this._options)===null||F===void 0)&&F.arg&&(ae=[...ae,this._options.arg]),!((L=this._options)===null||L===void 0)&&L.shouldForwardArgs&&(ae=[...ae,...G]),this._commandService.executeCommand(this.id,...ae)}};$=N([S(3,oe.i6),S(4,re.H)],$)},35884:function(mn,gt,d){"use strict";d.d(gt,{H:function(){return re},P:function(){return oe}});var o=d(4348),ne=d(88226),j=d(69323),fe=d(34502),K=d(72999),g=d(16925);const re=(0,g.yh)("commandService"),oe=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new o.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,C){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:l,handler:C})}if(l.description){const k=[];for(let V of l.description.args)k.push(V.constraint);const W=l.handler;l.handler=function(V,...$){return(0,K.D8)($,k),W(V,...$)}}const{id:N}=l;let S=this._commands.get(N);S||(S=new fe.S,this._commands.set(N,S));let _=S.unshift(l),T=(0,j.OF)(()=>{_();const k=this._commands.get(N);k!=null&&k.isEmpty()&&this._commands.delete(N)});return this._onDidRegisterCommand.fire(N),T}registerCommandAlias(l,C){return oe.registerCommand(l,(N,...S)=>N.get(re).executeCommand(C,...S))}getCommand(l){const C=this._commands.get(l);if(!(!C||C.isEmpty()))return ne.$.first(C)}getCommands(){const l=new Map;for(const C of this._commands.keys()){const N=this.getCommand(C);N&&l.set(C,N)}return l}};oe.registerCommand("noop",()=>{})},90689:function(mn,gt,d){"use strict";d.d(gt,{Ao:function(){return re},Eq:function(){return ee},Fb:function(){return oe},K8:function(){return X},i6:function(){return Te},uy:function(){return _e}});var o=d(23345),ne=d(82983),j=d(16925);let fe=o.WE||"";const K=new Map;K.set("false",!1),K.set("true",!0),K.set("isMac",o.dz),K.set("isLinux",o.IJ),K.set("isWindows",o.ED),K.set("isWeb",o.$L),K.set("isMacNative",o.dz&&!o.$L),K.set("isEdge",fe.indexOf("Edg/")>=0),K.set("isFirefox",fe.indexOf("Firefox")>=0),K.set("isChrome",fe.indexOf("Chrome")>=0),K.set("isSafari",fe.indexOf("Safari")>=0);const g=Object.prototype.hasOwnProperty;class re{static has(E){return S.create(E)}static equals(E,R){return _.create(E,R)}static regex(E,R){return ae.create(E,R)}static not(E){return V.create(E)}static and(...E){return Ie.create(E,null)}static or(...E){return Fe.create(E,null,!0)}static deserialize(E,R=!1){if(E)return this._deserializeOrExpression(E,R)}static _deserializeOrExpression(E,R){let se=E.split("||");return Fe.create(se.map(we=>this._deserializeAndExpression(we,R)),null,!0)}static _deserializeAndExpression(E,R){let se=E.split("&&");return Ie.create(se.map(we=>this._deserializeOne(we,R)),null)}static _deserializeOne(E,R){if(E=E.trim(),E.indexOf("!=")>=0){let se=E.split("!=");return W.create(se[0].trim(),this._deserializeValue(se[1],R))}if(E.indexOf("==")>=0){let se=E.split("==");return _.create(se[0].trim(),this._deserializeValue(se[1],R))}if(E.indexOf("=~")>=0){let se=E.split("=~");return ae.create(se[0].trim(),this._deserializeRegexValue(se[1],R))}if(E.indexOf(" in ")>=0){let se=E.split(" in ");return T.create(se[0].trim(),se[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(E)){const se=E.split(">=");return G.create(se[0].trim(),se[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(E)){const se=E.split(">");return I.create(se[0].trim(),se[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(E)){const se=E.split("<=");return L.create(se[0].trim(),se[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(E)){const se=E.split("<");return F.create(se[0].trim(),se[1].trim())}return/^\!\s*/.test(E)?V.create(E.substr(1).trim()):S.create(E)}static _deserializeValue(E,R){if(E=E.trim(),E==="true")return!0;if(E==="false")return!1;let se=/^'([^']*)'$/.exec(E);return se?se[1].trim():E}static _deserializeRegexValue(E,R){if((0,ne.m5)(E)){if(R)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let se=E.indexOf("/"),we=E.lastIndexOf("/");if(se===we||se<0){if(R)throw new Error(`bad regexp-value '${E}', missing /-enclosure`);return console.warn(`bad regexp-value '${E}', missing /-enclosure`),null}let Ve=E.slice(se+1,we),lt=E[we+1]==="i"?"i":"";try{return new RegExp(Ve,lt)}catch(xe){if(R)throw new Error(`bad regexp-value '${E}', parse error: ${xe}`);return console.warn(`bad regexp-value '${E}', parse error: ${xe}`),null}}}function oe(Q,E){const R=Q?Q.substituteConstants():void 0,se=E?E.substituteConstants():void 0;return!R&&!se?!0:!R||!se?!1:R.equals(se)}function l(Q,E){return Q.cmp(E)}class C{constructor(){this.type=0}cmp(E){return this.type-E.type}equals(E){return E.type===this.type}substituteConstants(){return this}evaluate(E){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}C.INSTANCE=new C;class N{constructor(){this.type=1}cmp(E){return this.type-E.type}equals(E){return E.type===this.type}substituteConstants(){return this}evaluate(E){return!0}serialize(){return"true"}keys(){return[]}negate(){return C.INSTANCE}}N.INSTANCE=new N;class S{constructor(E,R){this.key=E,this.negated=R,this.type=2}static create(E,R=null){const se=K.get(E);return typeof se=="boolean"?se?N.INSTANCE:C.INSTANCE:new S(E,R)}cmp(E){return E.type!==this.type?this.type-E.type:B(this.key,E.key)}equals(E){return E.type===this.type?this.key===E.key:!1}substituteConstants(){const E=K.get(this.key);return typeof E=="boolean"?E?N.INSTANCE:C.INSTANCE:this}evaluate(E){return!!E.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this)),this.negated}}class _{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=4}static create(E,R,se=null){if(typeof R=="boolean")return R?S.create(E,se):V.create(E,se);const we=K.get(E);return typeof we=="boolean"?R===(we?"true":"false")?N.INSTANCE:C.INSTANCE:new _(E,R,se)}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){const E=K.get(this.key);if(typeof E=="boolean"){const R=E?"true":"false";return this.value===R?N.INSTANCE:C.INSTANCE}return this}evaluate(E){return E.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class T{constructor(E,R){this.key=E,this.valueKey=R,this.type=10,this.negated=null}static create(E,R){return new T(E,R)}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.valueKey,E.key,E.valueKey)}equals(E){return E.type===this.type?this.key===E.key&&this.valueKey===E.valueKey:!1}substituteConstants(){return this}evaluate(E){const R=E.getValue(this.valueKey),se=E.getValue(this.key);return Array.isArray(R)?R.indexOf(se)>=0:typeof se=="string"&&typeof R=="object"&&R!==null?g.call(R,se):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=k.create(this)),this.negated}}class k{constructor(E){this._actual=E,this.type=11}static create(E){return new k(E)}cmp(E){return E.type!==this.type?this.type-E.type:this._actual.cmp(E._actual)}equals(E){return E.type===this.type?this._actual.equals(E._actual):!1}substituteConstants(){return this}evaluate(E){return!this._actual.evaluate(E)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class W{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=5}static create(E,R,se=null){if(typeof R=="boolean")return R?V.create(E,se):S.create(E,se);const we=K.get(E);return typeof we=="boolean"?R===(we?"true":"false")?C.INSTANCE:N.INSTANCE:new W(E,R,se)}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){const E=K.get(this.key);if(typeof E=="boolean"){const R=E?"true":"false";return this.value===R?C.INSTANCE:N.INSTANCE}return this}evaluate(E){return E.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class V{constructor(E,R){this.key=E,this.negated=R,this.type=3}static create(E,R=null){const se=K.get(E);return typeof se=="boolean"?se?C.INSTANCE:N.INSTANCE:new V(E,R)}cmp(E){return E.type!==this.type?this.type-E.type:B(this.key,E.key)}equals(E){return E.type===this.type?this.key===E.key:!1}substituteConstants(){const E=K.get(this.key);return typeof E=="boolean"?E?C.INSTANCE:N.INSTANCE:this}evaluate(E){return!E.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this)),this.negated}}function $(Q,E){if(typeof Q=="string"){const R=parseFloat(Q);isNaN(R)||(Q=R)}return typeof Q=="string"||typeof Q=="number"?E(Q):C.INSTANCE}class I{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=12}static create(E,R,se=null){return $(R,we=>new I(E,we,se))}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){return this}evaluate(E){return typeof this.value=="string"?!1:parseFloat(E.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 G{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=13}static create(E,R,se=null){return $(R,we=>new G(E,we,se))}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){return this}evaluate(E){return typeof this.value=="string"?!1:parseFloat(E.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class F{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=14}static create(E,R,se=null){return $(R,we=>new F(E,we,se))}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){return this}evaluate(E){return typeof this.value=="string"?!1:parseFloat(E.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this.key,this.value,this)),this.negated}}class L{constructor(E,R,se){this.key=E,this.value=R,this.negated=se,this.type=15}static create(E,R,se=null){return $(R,we=>new L(E,we,se))}cmp(E){return E.type!==this.type?this.type-E.type:A(this.key,this.value,E.key,E.value)}equals(E){return E.type===this.type?this.key===E.key&&this.value===E.value:!1}substituteConstants(){return this}evaluate(E){return typeof this.value=="string"?!1:parseFloat(E.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this.value,this)),this.negated}}class ae{constructor(E,R){this.key=E,this.regexp=R,this.type=7,this.negated=null}static create(E,R){return new ae(E,R)}cmp(E){if(E.type!==this.type)return this.type-E.type;if(this.key<E.key)return-1;if(this.key>E.key)return 1;const R=this.regexp?this.regexp.source:"",se=E.regexp?E.regexp.source:"";return R<se?-1:R>se?1:0}equals(E){if(E.type===this.type){const R=this.regexp?this.regexp.source:"",se=E.regexp?E.regexp.source:"";return this.key===E.key&&R===se}return!1}substituteConstants(){return this}evaluate(E){let R=E.getValue(this.key);return this.regexp?this.regexp.test(R):!1}serialize(){const E=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${E}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=me.create(this)),this.negated}}class me{constructor(E){this._actual=E,this.type=8}static create(E){return new me(E)}cmp(E){return E.type!==this.type?this.type-E.type:this._actual.cmp(E._actual)}equals(E){return E.type===this.type?this._actual.equals(E._actual):!1}substituteConstants(){return this}evaluate(E){return!this._actual.evaluate(E)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function de(Q){let E=null;for(let R=0,se=Q.length;R<se;R++){const we=Q[R].substituteConstants();if(Q[R]!==we&&E===null){E=[];for(let Ve=0;Ve<R;Ve++)E[Ve]=Q[Ve]}E!==null&&(E[R]=we)}return E===null?Q:E}class Ie{constructor(E,R){this.expr=E,this.negated=R,this.type=6}static create(E,R){return Ie._normalizeArr(E,R)}cmp(E){if(E.type!==this.type)return this.type-E.type;if(this.expr.length<E.expr.length)return-1;if(this.expr.length>E.expr.length)return 1;for(let R=0,se=this.expr.length;R<se;R++){const we=l(this.expr[R],E.expr[R]);if(we!==0)return we}return 0}equals(E){if(E.type===this.type){if(this.expr.length!==E.expr.length)return!1;for(let R=0,se=this.expr.length;R<se;R++)if(!this.expr[R].equals(E.expr[R]))return!1;return!0}return!1}substituteConstants(){const E=de(this.expr);return E===this.expr?this:Ie.create(E,this.negated)}evaluate(E){for(let R=0,se=this.expr.length;R<se;R++)if(!this.expr[R].evaluate(E))return!1;return!0}static _normalizeArr(E,R){const se=[];let we=!1;for(const Ve of E)if(Ve){if(Ve.type===1){we=!0;continue}if(Ve.type===0)return C.INSTANCE;if(Ve.type===6){se.push(...Ve.expr);continue}se.push(Ve)}if(se.length===0&&we)return N.INSTANCE;if(se.length!==0){if(se.length===1)return se[0];se.sort(l);for(let Ve=1;Ve<se.length;Ve++)se[Ve-1].equals(se[Ve])&&(se.splice(Ve,1),Ve--);if(se.length===1)return se[0];for(;se.length>1;){const Ve=se[se.length-1];if(Ve.type!==9)break;se.pop();const lt=se.pop(),xe=se.length===0,je=Fe.create(Ve.expr.map(Qe=>Ie.create([Qe,lt],null)),null,xe);je&&(se.push(je),se.sort(l))}return se.length===1?se[0]:new Ie(se,R)}}serialize(){return this.expr.map(E=>E.serialize()).join(" && ")}keys(){const E=[];for(let R of this.expr)E.push(...R.keys());return E}negate(){if(!this.negated){const E=[];for(let R of this.expr)E.push(R.negate());this.negated=Fe.create(E,this,!0)}return this.negated}}class Fe{constructor(E,R){this.expr=E,this.negated=R,this.type=9}static create(E,R,se){return Fe._normalizeArr(E,R,se)}cmp(E){if(E.type!==this.type)return this.type-E.type;if(this.expr.length<E.expr.length)return-1;if(this.expr.length>E.expr.length)return 1;for(let R=0,se=this.expr.length;R<se;R++){const we=l(this.expr[R],E.expr[R]);if(we!==0)return we}return 0}equals(E){if(E.type===this.type){if(this.expr.length!==E.expr.length)return!1;for(let R=0,se=this.expr.length;R<se;R++)if(!this.expr[R].equals(E.expr[R]))return!1;return!0}return!1}substituteConstants(){const E=de(this.expr);return E===this.expr?this:Fe.create(E,this.negated,!1)}evaluate(E){for(let R=0,se=this.expr.length;R<se;R++)if(this.expr[R].evaluate(E))return!0;return!1}static _normalizeArr(E,R,se){let we=[],Ve=!1;if(E){for(let lt=0,xe=E.length;lt<xe;lt++){const je=E[lt];if(je){if(je.type===0){Ve=!0;continue}if(je.type===1)return N.INSTANCE;if(je.type===9){we=we.concat(je.expr);continue}we.push(je)}}if(we.length===0&&Ve)return C.INSTANCE;we.sort(l)}if(we.length!==0){if(we.length===1)return we[0];for(let lt=1;lt<we.length;lt++)we[lt-1].equals(we[lt])&&(we.splice(lt,1),lt--);if(we.length===1)return we[0];if(se){for(let lt=0;lt<we.length;lt++)for(let xe=lt+1;xe<we.length;xe++)X(we[lt],we[xe])&&(we.splice(xe,1),xe--);if(we.length===1)return we[0]}return new Fe(we,R)}}serialize(){return this.expr.map(E=>E.serialize()).join(" || ")}keys(){const E=[];for(let R of this.expr)E.push(...R.keys());return E}negate(){if(!this.negated){let E=[];for(let R of this.expr)E.push(R.negate());for(;E.length>1;){const R=E.shift(),se=E.shift(),we=[];for(const lt of J(R))for(const xe of J(se))we.push(Ie.create([lt,xe],null));const Ve=E.length===0;E.unshift(Fe.create(we,null,Ve))}this.negated=E[0]}return this.negated}}class _e extends S{constructor(E,R,se){super(E,null),this._defaultValue=R,typeof se=="object"?_e._info.push(Object.assign(Object.assign({},se),{key:E})):se!==!0&&_e._info.push({key:E,description:se,type:R!=null?typeof R:void 0})}static all(){return _e._info.values()}bindTo(E){return E.createKey(this.key,this._defaultValue)}getValue(E){return E.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(E){return _.create(this.key,E)}}_e._info=[];const Te=(0,j.yh)("contextKeyService"),ee="setContext";function B(Q,E){return Q<E?-1:Q>E?1:0}function A(Q,E,R,se){return Q<R?-1:Q>R?1:E<se?-1:E>se?1:0}function X(Q,E){if(E.type===6&&Q.type!==9&&Q.type!==6){for(const we of E.expr)if(Q.equals(we))return!0}const R=Q.negate(),se=J(R).concat(J(E));se.sort(l);for(let we=0;we<se.length;we++){const lt=se[we].negate();for(let xe=we+1;xe<se.length;xe++){const je=se[xe];if(lt.equals(je))return!0}}return!1}function J(Q){return Q.type===9?Q.expr:[Q]}},16925:function(mn,gt,d){"use strict";d.d(gt,{I8:function(){return o},TG:function(){return ne},jt:function(){return K},yh:function(){return fe}});var o;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function re(oe){return oe[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=re})(o||(o={}));const ne=fe("instantiationService");function j(g,re,oe,l){re[o.DI_TARGET]===re?re[o.DI_DEPENDENCIES].push({id:g,index:oe,optional:l}):(re[o.DI_DEPENDENCIES]=[{id:g,index:oe,optional:l}],re[o.DI_TARGET]=re)}function fe(g){if(o.serviceIds.has(g))return o.serviceIds.get(g);const re=function(oe,l,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");j(re,oe,C,!1)};return re.toString=()=>g,o.serviceIds.set(g,re),re}function K(g){return function(re,oe,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");j(g,re,l,!0)}}},44650:function(mn,gt,d){"use strict";d.d(gt,{B:function(){return fe}});var o=d(76068),ne=d(72999);class j{constructor(){this.data=new Map}add(g,re){o.ok(ne.HD(g)),o.ok(ne.Kn(re)),o.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,re)}as(g){return this.data.get(g)||null}}const fe=new j},66213:function(mn,gt,d){"use strict";d.d(gt,{e:function(){return o}});var o;(function(ne){ne.DARK="dark",ne.LIGHT="light",ne.HIGH_CONTRAST="hc"})(o||(o={}))},49055:function(mn,gt,d){"use strict";d.d(gt,{EN:function(){return l},IP:function(){return S},Ic:function(){return k},XE:function(){return re},bB:function(){return W},kS:function(){return C},m6:function(){return N}});var o=d(52615),ne=d(4348),j=d(69323),fe=d(16925),K=d(44650),g=d(66213);const re=(0,fe.yh)("themeService");var oe;(function(V){function $(I){return I&&typeof I=="object"&&typeof I.id=="string"}V.isThemeColor=$})(oe||(oe={}));function l(V){return{id:V}}var C;(function(V){function $(me){return me&&typeof me=="object"&&typeof me.id=="string"&&(typeof me.color=="undefined"||oe.isThemeColor(me.color))}V.isThemeIcon=$;const I=new RegExp(`^\\$\\((${o.dT.iconNameExpression}(?:${o.dT.iconModifierExpression})?)\\)$`);function G(me){const de=I.exec(me);if(!de)return;let[,Ie]=de;return{id:Ie}}V.fromString=G;function F(me,de){let Ie=me.id;const Fe=Ie.lastIndexOf("~");return Fe!==-1&&(Ie=Ie.substring(0,Fe)),de&&(Ie=`${Ie}~${de}`),{id:Ie}}V.modify=F;function L(me,de){var Ie,Fe;return me.id===de.id&&((Ie=me.color)===null||Ie===void 0?void 0:Ie.id)===((Fe=de.color)===null||Fe===void 0?void 0:Fe.id)}V.isEqual=L;function ae(me,de){return{id:me.id,color:de?l(de):void 0}}V.asThemeIcon=ae,V.asClassNameArray=o.dT.asClassNameArray,V.asClassName=o.dT.asClassName,V.asCSSSelector=o.dT.asCSSSelector})(C||(C={}));function N(V){switch(V){case g.e.DARK:return"vs-dark";case g.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const S={ThemingContribution:"base.contributions.theming"};class _{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ne.Q5}onColorThemeChange($){return this.themingParticipants.push($),this.onThemingParticipantAddedEmitter.fire($),(0,j.OF)(()=>{const I=this.themingParticipants.indexOf($);this.themingParticipants.splice(I,1)})}getThemingParticipants(){return this.themingParticipants}}let T=new _;K.B.add(S.ThemingContribution,T);function k(V){return T.onColorThemeChange(V)}class W extends j.JT{constructor($){super(),this.themeService=$,this.theme=$.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(I=>this.onThemeChange(I)))}onThemeChange($){this.theme=$,this.updateStyles()}updateStyles(){}}},16632:function(mn,gt,d){"use strict";var o=d(60499),ne=d(85899),j=d(18642),fe=d(72190),K=d(42244),g=d(92310),re=d.n(g),oe=d(18929),l=d(59301),C=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],N=(0,l.forwardRef)(function(S,_){var T=S.prefixCls,k=T===void 0?"rc-checkbox":T,W=S.className,V=S.style,$=S.checked,I=S.disabled,G=S.defaultChecked,F=G===void 0?!1:G,L=S.type,ae=L===void 0?"checkbox":L,me=S.title,de=S.onChange,Ie=(0,K.Z)(S,C),Fe=(0,l.useRef)(null),_e=(0,l.useRef)(null),Te=(0,oe.Z)(F,{value:$}),ee=(0,fe.Z)(Te,2),B=ee[0],A=ee[1];(0,l.useImperativeHandle)(_,function(){return{focus:function(E){var R;(R=Fe.current)===null||R===void 0||R.focus(E)},blur:function(){var E;(E=Fe.current)===null||E===void 0||E.blur()},input:Fe.current,nativeElement:_e.current}});var X=re()(k,W,(0,j.Z)((0,j.Z)({},"".concat(k,"-checked"),B),"".concat(k,"-disabled"),I)),J=function(E){I||("checked"in S||A(E.target.checked),de==null||de({target:(0,ne.Z)((0,ne.Z)({},S),{},{type:ae,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return l.createElement("span",{className:X,title:me,style:V,ref:_e},l.createElement("input",(0,o.Z)({},Ie,{className:"".concat(k,"-input"),ref:Fe,onChange:J,disabled:I,checked:!!B,type:ae})),l.createElement("span",{className:"".concat(k,"-inner")}))});gt.Z=N},96478:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return me}});var o=d(60499),ne=d(18642),j=d(72190),fe=d(42244),K=d(68196),g=d(92310),re=d.n(g),oe=d(8654),l=d(59301),C=d(10228),N=d(16089),S=C.Z.ESC,_=C.Z.TAB;function T(de){var Ie=de.visible,Fe=de.triggerRef,_e=de.onVisibleChange,Te=de.autoFocus,ee=de.overlayRef,B=l.useRef(!1),A=function(){if(Ie){var E,R;(E=Fe.current)===null||E===void 0||(R=E.focus)===null||R===void 0||R.call(E),_e==null||_e(!1)}},X=function(){var E;return(E=ee.current)!==null&&E!==void 0&&E.focus?(ee.current.focus(),B.current=!0,!0):!1},J=function(E){switch(E.keyCode){case S:A();break;case _:{var R=!1;B.current||(R=X()),R?E.preventDefault():A();break}}};l.useEffect(function(){return Ie?(window.addEventListener("keydown",J),Te&&(0,N.Z)(X,3),function(){window.removeEventListener("keydown",J),B.current=!1}):function(){B.current=!1}},[Ie])}var k=(0,l.forwardRef)(function(de,Ie){var Fe=de.overlay,_e=de.arrow,Te=de.prefixCls,ee=(0,l.useMemo)(function(){var A;return typeof Fe=="function"?A=Fe():A=Fe,A},[Fe]),B=(0,oe.sQ)(Ie,(0,oe.C4)(ee));return l.createElement(l.Fragment,null,_e&&l.createElement("div",{className:"".concat(Te,"-arrow")}),l.cloneElement(ee,{ref:(0,oe.Yr)(ee)?B:void 0}))}),W=k,V={adjustX:1,adjustY:1},$=[0,0],I={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-4],targetOffset:$},top:{points:["bc","tc"],overflow:V,offset:[0,-4],targetOffset:$},topRight:{points:["br","tr"],overflow:V,offset:[0,-4],targetOffset:$},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,4],targetOffset:$},bottom:{points:["tc","bc"],overflow:V,offset:[0,4],targetOffset:$},bottomRight:{points:["tr","br"],overflow:V,offset:[0,4],targetOffset:$}},G=I,F=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(de,Ie){var Fe,_e=de.arrow,Te=_e===void 0?!1:_e,ee=de.prefixCls,B=ee===void 0?"rc-dropdown":ee,A=de.transitionName,X=de.animation,J=de.align,Q=de.placement,E=Q===void 0?"bottomLeft":Q,R=de.placements,se=R===void 0?G:R,we=de.getPopupContainer,Ve=de.showAction,lt=de.hideAction,xe=de.overlayClassName,je=de.overlayStyle,Qe=de.visible,it=de.trigger,De=it===void 0?["hover"]:it,wt=de.autoFocus,et=de.overlay,Ot=de.children,qe=de.onVisibleChange,Xe=(0,fe.Z)(de,F),Ue=l.useState(),ke=(0,j.Z)(Ue,2),ie=ke[0],$e=ke[1],Pe="visible"in de?Qe:ie,z=l.useRef(null),D=l.useRef(null),ue=l.useRef(null);l.useImperativeHandle(Ie,function(){return z.current});var ge=function(ct){$e(ct),qe==null||qe(ct)};T({visible:Pe,triggerRef:ue,onVisibleChange:ge,autoFocus:wt,overlayRef:D});var pe=function(ct){var ut=de.onOverlayClick;$e(!1),ut&&ut(ct)},ye=function(){return l.createElement(W,{ref:D,overlay:et,prefixCls:B,arrow:Te})},Re=function(){return typeof et=="function"?ye:ye()},Ze=function(){var ct=de.minOverlayWidthMatchTrigger,ut=de.alignPoint;return"minOverlayWidthMatchTrigger"in de?ct:!ut},te=function(){var ct=de.openClassName;return ct!==void 0?ct:"".concat(B,"-open")},le=l.cloneElement(Ot,{className:re()((Fe=Ot.props)===null||Fe===void 0?void 0:Fe.className,Pe&&te()),ref:(0,oe.Yr)(Ot)?(0,oe.sQ)(ue,(0,oe.C4)(Ot)):void 0}),tt=lt;return!tt&&De.indexOf("contextMenu")!==-1&&(tt=["click"]),l.createElement(K.Z,(0,o.Z)({builtinPlacements:se},Xe,{prefixCls:B,ref:z,popupClassName:re()(xe,(0,ne.Z)({},"".concat(B,"-show-arrow"),Te)),popupStyle:je,action:De,showAction:Ve,hideAction:tt,popupPlacement:E,popupAlign:J,popupTransitionName:A,popupAnimation:X,popupVisible:Pe,stretch:Ze()?"minWidth":"",popup:Re(),onPopupVisibleChange:ge,onPopupClick:pe,getPopupContainer:we}),le)}var ae=l.forwardRef(L),me=ae},66003:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return re}});var o=d(42244),ne=d(85899),j=d(43749),fe=d(59301),K=["show"];function g(oe,l){if(!l.max)return!0;var C=l.strategy(oe);return C<=l.max}function re(oe,l){return fe.useMemo(function(){var C={};l&&(C.show=(0,j.Z)(l)==="object"&&l.formatter?l.formatter:!!l),C=(0,ne.Z)((0,ne.Z)({},C),oe);var N=C,S=N.show,_=(0,o.Z)(N,K);return(0,ne.Z)((0,ne.Z)({},_),{},{show:!!S,showFormatter:typeof S=="function"?S:void 0,strategy:_.strategy||function(T){return T.length}})},[oe,l])}},36901:function(mn,gt,d){"use strict";d.r(gt),d.d(gt,{BaseInput:function(){return C},default:function(){return G}});var o=d(85899),ne=d(60499),j=d(18642),fe=d(43749),K=d(92310),g=d.n(K),re=d(59301),oe=d(30292),l=re.forwardRef(function(F,L){var ae,me,de,Ie=F.inputElement,Fe=F.children,_e=F.prefixCls,Te=F.prefix,ee=F.suffix,B=F.addonBefore,A=F.addonAfter,X=F.className,J=F.style,Q=F.disabled,E=F.readOnly,R=F.focused,se=F.triggerFocus,we=F.allowClear,Ve=F.value,lt=F.handleReset,xe=F.hidden,je=F.classes,Qe=F.classNames,it=F.dataAttrs,De=F.styles,wt=F.components,et=F.onClear,Ot=Fe!=null?Fe:Ie,qe=(wt==null?void 0:wt.affixWrapper)||"span",Xe=(wt==null?void 0:wt.groupWrapper)||"span",Ue=(wt==null?void 0:wt.wrapper)||"span",ke=(wt==null?void 0:wt.groupAddon)||"span",ie=(0,re.useRef)(null),$e=function(yt){var ht;(ht=ie.current)!==null&&ht!==void 0&&ht.contains(yt.target)&&(se==null||se())},Pe=(0,oe.X3)(F),z=(0,re.cloneElement)(Ot,{value:Ve,className:g()((ae=Ot.props)===null||ae===void 0?void 0:ae.className,!Pe&&(Qe==null?void 0:Qe.variant))||null}),D=(0,re.useRef)(null);if(re.useImperativeHandle(L,function(){return{nativeElement:D.current||ie.current}}),Pe){var ue=null;if(we){var ge=!Q&&!E&&Ve,pe="".concat(_e,"-clear-icon"),ye=(0,fe.Z)(we)==="object"&&we!==null&&we!==void 0&&we.clearIcon?we.clearIcon:"\u2716";ue=re.createElement("button",{type:"button",tabIndex:-1,onClick:function(yt){lt==null||lt(yt),et==null||et()},onMouseDown:function(yt){return yt.preventDefault()},className:g()(pe,(0,j.Z)((0,j.Z)({},"".concat(pe,"-hidden"),!ge),"".concat(pe,"-has-suffix"),!!ee))},ye)}var Re="".concat(_e,"-affix-wrapper"),Ze=g()(Re,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(_e,"-disabled"),Q),"".concat(Re,"-disabled"),Q),"".concat(Re,"-focused"),R),"".concat(Re,"-readonly"),E),"".concat(Re,"-input-with-clear-btn"),ee&&we&&Ve),je==null?void 0:je.affixWrapper,Qe==null?void 0:Qe.affixWrapper,Qe==null?void 0:Qe.variant),te=(ee||we)&&re.createElement("span",{className:g()("".concat(_e,"-suffix"),Qe==null?void 0:Qe.suffix),style:De==null?void 0:De.suffix},ue,ee);z=re.createElement(qe,(0,ne.Z)({className:Ze,style:De==null?void 0:De.affixWrapper,onClick:$e},it==null?void 0:it.affixWrapper,{ref:ie}),Te&&re.createElement("span",{className:g()("".concat(_e,"-prefix"),Qe==null?void 0:Qe.prefix),style:De==null?void 0:De.prefix},Te),z,te)}if((0,oe.He)(F)){var le="".concat(_e,"-group"),tt="".concat(le,"-addon"),nt="".concat(le,"-wrapper"),ct=g()("".concat(_e,"-wrapper"),le,je==null?void 0:je.wrapper,Qe==null?void 0:Qe.wrapper),ut=g()(nt,(0,j.Z)({},"".concat(nt,"-disabled"),Q),je==null?void 0:je.group,Qe==null?void 0:Qe.groupWrapper);z=re.createElement(Xe,{className:ut,ref:D},re.createElement(Ue,{className:ct},B&&re.createElement(ke,{className:tt},B),z,A&&re.createElement(ke,{className:tt},A)))}return re.cloneElement(z,{className:g()((me=z.props)===null||me===void 0?void 0:me.className,X)||null,style:(0,o.Z)((0,o.Z)({},(de=z.props)===null||de===void 0?void 0:de.style),J),hidden:xe})}),C=l,N=d(77654),S=d(72190),_=d(42244),T=d(18929),k=d(2738),W=d(66003),V=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$=(0,re.forwardRef)(function(F,L){var ae=F.autoComplete,me=F.onChange,de=F.onFocus,Ie=F.onBlur,Fe=F.onPressEnter,_e=F.onKeyDown,Te=F.onKeyUp,ee=F.prefixCls,B=ee===void 0?"rc-input":ee,A=F.disabled,X=F.htmlSize,J=F.className,Q=F.maxLength,E=F.suffix,R=F.showCount,se=F.count,we=F.type,Ve=we===void 0?"text":we,lt=F.classes,xe=F.classNames,je=F.styles,Qe=F.onCompositionStart,it=F.onCompositionEnd,De=(0,_.Z)(F,V),wt=(0,re.useState)(!1),et=(0,S.Z)(wt,2),Ot=et[0],qe=et[1],Xe=(0,re.useRef)(!1),Ue=(0,re.useRef)(!1),ke=(0,re.useRef)(null),ie=(0,re.useRef)(null),$e=function(It){ke.current&&(0,oe.nH)(ke.current,It)},Pe=(0,T.Z)(F.defaultValue,{value:F.value}),z=(0,S.Z)(Pe,2),D=z[0],ue=z[1],ge=D==null?"":String(D),pe=(0,re.useState)(null),ye=(0,S.Z)(pe,2),Re=ye[0],Ze=ye[1],te=(0,W.Z)(se,R),le=te.max||Q,tt=te.strategy(ge),nt=!!le&&tt>le;(0,re.useImperativeHandle)(L,function(){var be;return{focus:$e,blur:function(){var Be;(Be=ke.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,rt,ft){var ve;(ve=ke.current)===null||ve===void 0||ve.setSelectionRange(Be,rt,ft)},select:function(){var Be;(Be=ke.current)===null||Be===void 0||Be.select()},input:ke.current,nativeElement:((be=ie.current)===null||be===void 0?void 0:be.nativeElement)||ke.current}}),(0,re.useEffect)(function(){Ue.current&&(Ue.current=!1),qe(function(be){return be&&A?!1:be})},[A]);var ct=function(It,Be,rt){var ft=Be;if(!Xe.current&&te.exceedFormatter&&te.max&&te.strategy(Be)>te.max){if(ft=te.exceedFormatter(Be,{max:te.max}),Be!==ft){var ve,Se;Ze([((ve=ke.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((Se=ke.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(rt.source==="compositionEnd")return;ue(ft),ke.current&&(0,oe.rJ)(ke.current,It,me,ft)};(0,re.useEffect)(function(){if(Re){var be;(be=ke.current)===null||be===void 0||be.setSelectionRange.apply(be,(0,N.Z)(Re))}},[Re]);var ut=function(It){ct(It,It.target.value,{source:"change"})},Ge=function(It){Xe.current=!1,ct(It,It.currentTarget.value,{source:"compositionEnd"}),it==null||it(It)},yt=function(It){Fe&&It.key==="Enter"&&!Ue.current&&(Ue.current=!0,Fe(It)),_e==null||_e(It)},ht=function(It){It.key==="Enter"&&(Ue.current=!1),Te==null||Te(It)},Ce=function(It){qe(!0),de==null||de(It)},Ye=function(It){Ue.current&&(Ue.current=!1),qe(!1),Ie==null||Ie(It)},b=function(It){ue(""),$e(),ke.current&&(0,oe.rJ)(ke.current,It,me)},w=nt&&"".concat(B,"-out-of-range"),He=function(){var It=(0,k.Z)(F,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return re.createElement("input",(0,ne.Z)({autoComplete:ae},It,{onChange:ut,onFocus:Ce,onBlur:Ye,onKeyDown:yt,onKeyUp:ht,className:g()(B,(0,j.Z)({},"".concat(B,"-disabled"),A),xe==null?void 0:xe.input),style:je==null?void 0:je.input,ref:ke,size:X,type:Ve,onCompositionStart:function(rt){Xe.current=!0,Qe==null||Qe(rt)},onCompositionEnd:Ge}))},q=function(){var It=Number(le)>0;if(E||te.show){var Be=te.showFormatter?te.showFormatter({value:ge,count:tt,maxLength:le}):"".concat(tt).concat(It?" / ".concat(le):"");return re.createElement(re.Fragment,null,te.show&&re.createElement("span",{className:g()("".concat(B,"-show-count-suffix"),(0,j.Z)({},"".concat(B,"-show-count-has-suffix"),!!E),xe==null?void 0:xe.count),style:(0,o.Z)({},je==null?void 0:je.count)},Be),E)}return null};return re.createElement(C,(0,ne.Z)({},De,{prefixCls:B,className:g()(J,w),handleReset:b,value:ge,focused:Ot,triggerFocus:$e,suffix:q(),disabled:A,classes:lt,classNames:xe,styles:je}),He())}),I=$,G=I},30292:function(mn,gt,d){"use strict";d.d(gt,{He:function(){return o},X3:function(){return ne},nH:function(){return K},rJ:function(){return fe}});function o(g){return!!(g.addonBefore||g.addonAfter)}function ne(g){return!!(g.prefix||g.suffix||g.allowClear)}function j(g,re,oe){var l=re.cloneNode(!0),C=Object.create(g,{target:{value:l},currentTarget:{value:l}});return l.value=oe,typeof re.selectionStart=="number"&&typeof re.selectionEnd=="number"&&(l.selectionStart=re.selectionStart,l.selectionEnd=re.selectionEnd),l.setSelectionRange=function(){re.setSelectionRange.apply(re,arguments)},C}function fe(g,re,oe,l){if(oe){var C=re;if(re.type==="click"){C=j(re,g,""),oe(C);return}if(g.type!=="file"&&l!==void 0){C=j(re,g,l),oe(C);return}oe(C)}}function K(g,re){if(g){g.focus(re);var oe=re||{},l=oe.cursor;if(l){var C=g.value.length;switch(l){case"start":g.setSelectionRange(0,0);break;case"end":g.setSelectionRange(C,C);break;default:g.setSelectionRange(0,C)}}}}},28321:function(mn,gt,d){"use strict";d.d(gt,{iz:function(){return bt},ck:function(){return ft},BW:function(){return vt},sN:function(){return ft},Wd:function(){return Dn},ZP:function(){return _n},Xl:function(){return Fe}});var o=d(60499),ne=d(18642),j=d(85899),fe=d(77654),K=d(72190),g=d(42244),re=d(92310),oe=d.n(re),l=d(83836),C=d(18929),N=d(13697),S=d(48736),_=d(59301),T=d(4676),k=_.createContext(null);function W(St,Ft){return St===void 0?null:"".concat(St,"-").concat(Ft)}function V(St){var Ft=_.useContext(k);return W(Ft,St)}var $=d(80547),I=["children","locked"],G=_.createContext(null);function F(St,Ft){var Vt=(0,j.Z)({},St);return Object.keys(Ft).forEach(function(Ut){var jt=Ft[Ut];jt!==void 0&&(Vt[Ut]=jt)}),Vt}function L(St){var Ft=St.children,Vt=St.locked,Ut=(0,g.Z)(St,I),jt=_.useContext(G),qt=(0,$.Z)(function(){return F(jt,Ut)},[jt,Ut],function(sn,on){return!Vt&&(sn[0]!==on[0]||!(0,N.Z)(sn[1],on[1],!0))});return _.createElement(G.Provider,{value:qt},Ft)}var ae=[],me=_.createContext(null);function de(){return _.useContext(me)}var Ie=_.createContext(ae);function Fe(St){var Ft=_.useContext(Ie);return _.useMemo(function(){return St!==void 0?[].concat((0,fe.Z)(Ft),[St]):Ft},[Ft,St])}var _e=_.createContext(null),Te=_.createContext({}),ee=Te,B=d(29194);function A(St){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,B.Z)(St)){var Vt=St.nodeName.toLowerCase(),Ut=["input","select","textarea","button"].includes(Vt)||St.isContentEditable||Vt==="a"&&!!St.getAttribute("href"),jt=St.getAttribute("tabindex"),qt=Number(jt),sn=null;return jt&&!Number.isNaN(qt)?sn=qt:Ut&&sn===null&&(sn=0),Ut&&St.disabled&&(sn=null),sn!==null&&(sn>=0||Ft&&sn<0)}return!1}function X(St){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Vt=(0,fe.Z)(St.querySelectorAll("*")).filter(function(Ut){return A(Ut,Ft)});return A(St,Ft)&&Vt.unshift(St),Vt}var J=null;function Q(){J=document.activeElement}function E(){J=null}function R(){if(J)try{J.focus()}catch(St){}}function se(St,Ft){if(Ft.keyCode===9){var Vt=X(St),Ut=Vt[Ft.shiftKey?0:Vt.length-1],jt=Ut===document.activeElement||St===document.activeElement;if(jt){var qt=Vt[Ft.shiftKey?Vt.length-1:0];qt.focus(),Ft.preventDefault()}}}var we=d(10228),Ve=d(16089),lt=we.Z.LEFT,xe=we.Z.RIGHT,je=we.Z.UP,Qe=we.Z.DOWN,it=we.Z.ENTER,De=we.Z.ESC,wt=we.Z.HOME,et=we.Z.END,Ot=[je,Qe,lt,xe];function qe(St,Ft,Vt,Ut){var jt,qt="prev",sn="next",on="children",In="parent";if(St==="inline"&&Ut===it)return{inlineTrigger:!0};var Mn=(0,ne.Z)((0,ne.Z)({},je,qt),Qe,sn),dr=(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},lt,Vt?sn:qt),xe,Vt?qt:sn),Qe,on),it,on),jn=(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},je,qt),Qe,sn),it,on),De,In),lt,Vt?on:In),xe,Vt?In:on),Kn={inline:Mn,horizontal:dr,vertical:jn,inlineSub:Mn,horizontalSub:jn,verticalSub:jn},er=(jt=Kn["".concat(St).concat(Ft?"":"Sub")])===null||jt===void 0?void 0:jt[Ut];switch(er){case qt:return{offset:-1,sibling:!0};case sn:return{offset:1,sibling:!0};case In:return{offset:-1,sibling:!1};case on:return{offset:1,sibling:!1};default:return null}}function Xe(St){for(var Ft=St;Ft;){if(Ft.getAttribute("data-menu-list"))return Ft;Ft=Ft.parentElement}return null}function Ue(St,Ft){for(var Vt=St||document.activeElement;Vt;){if(Ft.has(Vt))return Vt;Vt=Vt.parentElement}return null}function ke(St,Ft){var Vt=X(St,!0);return Vt.filter(function(Ut){return Ft.has(Ut)})}function ie(St,Ft,Vt){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!St)return null;var jt=ke(St,Ft),qt=jt.length,sn=jt.findIndex(function(on){return Vt===on});return Ut<0?sn===-1?sn=qt-1:sn-=1:Ut>0&&(sn+=1),sn=(sn+qt)%qt,jt[sn]}var $e=function(Ft,Vt){var Ut=new Set,jt=new Map,qt=new Map;return Ft.forEach(function(sn){var on=document.querySelector("[data-menu-id='".concat(W(Vt,sn),"']"));on&&(Ut.add(on),qt.set(on,sn),jt.set(sn,on))}),{elements:Ut,key2element:jt,element2key:qt}};function Pe(St,Ft,Vt,Ut,jt,qt,sn,on,In,Mn){var dr=_.useRef(),jn=_.useRef();jn.current=Ft;var Kn=function(){Ve.Z.cancel(dr.current)};return _.useEffect(function(){return function(){Kn()}},[]),function(er){var Qn=er.which;if([].concat(Ot,[it,De,wt,et]).includes(Qn)){var ar=qt(),Vn=$e(ar,Ut),qn=Vn,or=qn.elements,cr=qn.key2element,rr=qn.element2key,nr=cr.get(Ft),ir=Ue(nr,or),Zn=rr.get(ir),Mr=qe(St,sn(Zn,!0).length===1,Vt,Qn);if(!Mr&&Qn!==wt&&Qn!==et)return;(Ot.includes(Qn)||[wt,et].includes(Qn))&&er.preventDefault();var $t=function(On){if(On){var an=On,ln=On.querySelector("a");ln!=null&&ln.getAttribute("href")&&(an=ln);var Un=rr.get(On);on(Un),Kn(),dr.current=(0,Ve.Z)(function(){jn.current===Un&&an.focus()})}};if([wt,et].includes(Qn)||Mr.sibling||!ir){var sr;!ir||St==="inline"?sr=jt.current:sr=Xe(ir);var hr,Yr=ke(sr,or);Qn===wt?hr=Yr[0]:Qn===et?hr=Yr[Yr.length-1]:hr=ie(sr,or,ir,Mr.offset),$t(hr)}else if(Mr.inlineTrigger)In(Zn);else if(Mr.offset>0)In(Zn,!0),Kn(),dr.current=(0,Ve.Z)(function(){Vn=$e(ar,Ut);var Hn=ir.getAttribute("aria-controls"),On=document.getElementById(Hn),an=ie(On,Vn.elements);$t(an)},5);else if(Mr.offset<0){var Kr=sn(Zn,!0),li=Kr[Kr.length-2],qr=cr.get(li);In(li,!1),$t(qr)}}Mn==null||Mn(er)}}function z(St){Promise.resolve().then(St)}var D="__RC_UTIL_PATH_SPLIT__",ue=function(Ft){return Ft.join(D)},ge=function(Ft){return Ft.split(D)},pe="rc-menu-more";function ye(){var St=_.useState({}),Ft=(0,K.Z)(St,2),Vt=Ft[1],Ut=(0,_.useRef)(new Map),jt=(0,_.useRef)(new Map),qt=_.useState([]),sn=(0,K.Z)(qt,2),on=sn[0],In=sn[1],Mn=(0,_.useRef)(0),dr=(0,_.useRef)(!1),jn=function(){dr.current||Vt({})},Kn=(0,_.useCallback)(function(cr,rr){var nr=ue(rr);jt.current.set(nr,cr),Ut.current.set(cr,nr),Mn.current+=1;var ir=Mn.current;z(function(){ir===Mn.current&&jn()})},[]),er=(0,_.useCallback)(function(cr,rr){var nr=ue(rr);jt.current.delete(nr),Ut.current.delete(cr)},[]),Qn=(0,_.useCallback)(function(cr){In(cr)},[]),ar=(0,_.useCallback)(function(cr,rr){var nr=Ut.current.get(cr)||"",ir=ge(nr);return rr&&on.includes(ir[0])&&ir.unshift(pe),ir},[on]),Vn=(0,_.useCallback)(function(cr,rr){return cr.filter(function(nr){return nr!==void 0}).some(function(nr){var ir=ar(nr,!0);return ir.includes(rr)})},[ar]),qn=function(){var rr=(0,fe.Z)(Ut.current.keys());return on.length&&rr.push(pe),rr},or=(0,_.useCallback)(function(cr){var rr="".concat(Ut.current.get(cr)).concat(D),nr=new Set;return(0,fe.Z)(jt.current.keys()).forEach(function(ir){ir.startsWith(rr)&&nr.add(jt.current.get(ir))}),nr},[]);return _.useEffect(function(){return function(){dr.current=!0}},[]),{registerPath:Kn,unregisterPath:er,refreshOverflowKeys:Qn,isSubPathKey:Vn,getKeyPath:ar,getKeys:qn,getSubPathKeys:or}}function Re(St){var Ft=_.useRef(St);Ft.current=St;var Vt=_.useCallback(function(){for(var Ut,jt=arguments.length,qt=new Array(jt),sn=0;sn<jt;sn++)qt[sn]=arguments[sn];return(Ut=Ft.current)===null||Ut===void 0?void 0:Ut.call.apply(Ut,[Ft].concat(qt))},[]);return St?Vt:void 0}var Ze=Math.random().toFixed(5).toString().slice(2),te=0;function le(St){var Ft=(0,C.Z)(St,{value:St}),Vt=(0,K.Z)(Ft,2),Ut=Vt[0],jt=Vt[1];return _.useEffect(function(){te+=1;var qt="".concat(Ze,"-").concat(te);jt("rc-menu-uuid-".concat(qt))},[]),Ut}var tt=d(38705),nt=d(17212),ct=d(39153),ut=d(55401),Ge=d(2738),yt=d(8654);function ht(St,Ft,Vt,Ut){var jt=_.useContext(G),qt=jt.activeKey,sn=jt.onActive,on=jt.onInactive,In={active:qt===St};return Ft||(In.onMouseEnter=function(Mn){Vt==null||Vt({key:St,domEvent:Mn}),sn(St)},In.onMouseLeave=function(Mn){Ut==null||Ut({key:St,domEvent:Mn}),on(St)}),In}function Ce(St){var Ft=_.useContext(G),Vt=Ft.mode,Ut=Ft.rtl,jt=Ft.inlineIndent;if(Vt!=="inline")return null;var qt=St;return Ut?{paddingRight:qt*jt}:{paddingLeft:qt*jt}}function Ye(St){var Ft=St.icon,Vt=St.props,Ut=St.children,jt;return Ft===null||Ft===!1?null:(typeof Ft=="function"?jt=_.createElement(Ft,(0,j.Z)({},Vt)):typeof Ft!="boolean"&&(jt=Ft),jt||Ut||null)}var b=["item"];function w(St){var Ft=St.item,Vt=(0,g.Z)(St,b);return Object.defineProperty(Vt,"item",{get:function(){return(0,S.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ft}}),Vt}var He=["title","attribute","elementRef"],q=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],be=["active"],It=function(St){(0,ct.Z)(Vt,St);var Ft=(0,ut.Z)(Vt);function Vt(){return(0,tt.Z)(this,Vt),Ft.apply(this,arguments)}return(0,nt.Z)(Vt,[{key:"render",value:function(){var jt=this.props,qt=jt.title,sn=jt.attribute,on=jt.elementRef,In=(0,g.Z)(jt,He),Mn=(0,Ge.Z)(In,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!sn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(l.Z.Item,(0,o.Z)({},sn,{title:typeof qt=="string"?qt:void 0},Mn,{ref:on}))}}]),Vt}(_.Component),Be=_.forwardRef(function(St,Ft){var Vt=St.style,Ut=St.className,jt=St.eventKey,qt=St.warnKey,sn=St.disabled,on=St.itemIcon,In=St.children,Mn=St.role,dr=St.onMouseEnter,jn=St.onMouseLeave,Kn=St.onClick,er=St.onKeyDown,Qn=St.onFocus,ar=(0,g.Z)(St,q),Vn=V(jt),qn=_.useContext(G),or=qn.prefixCls,cr=qn.onItemClick,rr=qn.disabled,nr=qn.overflowDisabled,ir=qn.itemIcon,Zn=qn.selectedKeys,Mr=qn.onActive,$t=_.useContext(ee),sr=$t._internalRenderMenuItem,hr="".concat(or,"-item"),Yr=_.useRef(),Kr=_.useRef(),li=rr||sn,qr=(0,yt.x1)(Ft,Kr),Hn=Fe(jt),On=function(Gr){return{key:jt,keyPath:(0,fe.Z)(Hn).reverse(),item:Yr.current,domEvent:Gr}},an=on||ir,ln=ht(jt,li,dr,jn),Un=ln.active,Yn=(0,g.Z)(ln,be),lr=Zn.includes(jt),Rr=Ce(Hn.length),Fn=function(Gr){if(!li){var Ii=On(Gr);Kn==null||Kn(w(Ii)),cr(Ii)}},pr=function(Gr){if(er==null||er(Gr),Gr.which===we.Z.ENTER){var Ii=On(Gr);Kn==null||Kn(w(Ii)),cr(Ii)}},Dr=function(Gr){Mr(jt),Qn==null||Qn(Gr)},Xr={};St.role==="option"&&(Xr["aria-selected"]=lr);var pi=_.createElement(It,(0,o.Z)({ref:Yr,elementRef:qr,role:Mn===null?"none":Mn||"menuitem",tabIndex:sn?null:-1,"data-menu-id":nr&&Vn?null:Vn},(0,Ge.Z)(ar,["extra"]),Yn,Xr,{component:"li","aria-disabled":sn,style:(0,j.Z)((0,j.Z)({},Rr),Vt),className:oe()(hr,(0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(hr,"-active"),Un),"".concat(hr,"-selected"),lr),"".concat(hr,"-disabled"),li),Ut),onClick:Fn,onKeyDown:pr,onFocus:Dr}),In,_.createElement(Ye,{props:(0,j.Z)((0,j.Z)({},St),{},{isSelected:lr}),icon:an}));return sr&&(pi=sr(pi,St,{selected:lr})),pi});function rt(St,Ft){var Vt=St.eventKey,Ut=de(),jt=Fe(Vt);return _.useEffect(function(){if(Ut)return Ut.registerPath(Vt,jt),function(){Ut.unregisterPath(Vt,jt)}},[jt]),Ut?null:_.createElement(Be,(0,o.Z)({},St,{ref:Ft}))}var ft=_.forwardRef(rt),ve=["className","children"],Se=function(Ft,Vt){var Ut=Ft.className,jt=Ft.children,qt=(0,g.Z)(Ft,ve),sn=_.useContext(G),on=sn.prefixCls,In=sn.mode,Mn=sn.rtl;return _.createElement("ul",(0,o.Z)({className:oe()(on,Mn&&"".concat(on,"-rtl"),"".concat(on,"-sub"),"".concat(on,"-").concat(In==="inline"?"inline":"vertical"),Ut),role:"menu"},qt,{"data-menu-list":!0,ref:Vt}),jt)},We=_.forwardRef(Se);We.displayName="SubMenuList";var ze=We,M=d(11592);function dt(St,Ft){return(0,M.Z)(St).map(function(Vt,Ut){if(_.isValidElement(Vt)){var jt,qt,sn=Vt.key,on=(jt=(qt=Vt.props)===null||qt===void 0?void 0:qt.eventKey)!==null&&jt!==void 0?jt:sn,In=on==null;In&&(on="tmp_key-".concat([].concat((0,fe.Z)(Ft),[Ut]).join("-")));var Mn={key:on,eventKey:on};return _.cloneElement(Vt,Mn)}return Vt})}var Ee=d(68196),Tt={adjustX:1,adjustY:1},Kt={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},leftTop:{points:["tr","tl"],overflow:Tt},leftBottom:{points:["br","bl"],overflow:Tt},rightTop:{points:["tl","tr"],overflow:Tt},rightBottom:{points:["bl","br"],overflow:Tt}},Jt={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},rightTop:{points:["tr","tl"],overflow:Tt},rightBottom:{points:["br","bl"],overflow:Tt},leftTop:{points:["tl","tr"],overflow:Tt},leftBottom:{points:["bl","br"],overflow:Tt}},un=null;function gn(St,Ft,Vt){if(Ft)return Ft;if(Vt)return Vt[St]||Vt.other}var En={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Bn(St){var Ft=St.prefixCls,Vt=St.visible,Ut=St.children,jt=St.popup,qt=St.popupStyle,sn=St.popupClassName,on=St.popupOffset,In=St.disabled,Mn=St.mode,dr=St.onVisibleChange,jn=_.useContext(G),Kn=jn.getPopupContainer,er=jn.rtl,Qn=jn.subMenuOpenDelay,ar=jn.subMenuCloseDelay,Vn=jn.builtinPlacements,qn=jn.triggerSubMenuAction,or=jn.forceSubMenuRender,cr=jn.rootClassName,rr=jn.motion,nr=jn.defaultMotions,ir=_.useState(!1),Zn=(0,K.Z)(ir,2),Mr=Zn[0],$t=Zn[1],sr=er?(0,j.Z)((0,j.Z)({},Jt),Vn):(0,j.Z)((0,j.Z)({},Kt),Vn),hr=En[Mn],Yr=gn(Mn,rr,nr),Kr=_.useRef(Yr);Mn!=="inline"&&(Kr.current=Yr);var li=(0,j.Z)((0,j.Z)({},Kr.current),{},{leavedClassName:"".concat(Ft,"-hidden"),removeOnLeave:!1,motionAppear:!0}),qr=_.useRef();return _.useEffect(function(){return qr.current=(0,Ve.Z)(function(){$t(Vt)}),function(){Ve.Z.cancel(qr.current)}},[Vt]),_.createElement(Ee.Z,{prefixCls:Ft,popupClassName:oe()("".concat(Ft,"-popup"),(0,ne.Z)({},"".concat(Ft,"-rtl"),er),sn,cr),stretch:Mn==="horizontal"?"minWidth":null,getPopupContainer:Kn,builtinPlacements:sr,popupPlacement:hr,popupVisible:Mr,popup:jt,popupStyle:qt,popupAlign:on&&{offset:on},action:In?[]:[qn],mouseEnterDelay:Qn,mouseLeaveDelay:ar,onPopupVisibleChange:dr,forceRender:or,popupMotion:li,fresh:!0},Ut)}var Wn=d(77900);function Tn(St){var Ft=St.id,Vt=St.open,Ut=St.keyPath,jt=St.children,qt="inline",sn=_.useContext(G),on=sn.prefixCls,In=sn.forceSubMenuRender,Mn=sn.motion,dr=sn.defaultMotions,jn=sn.mode,Kn=_.useRef(!1);Kn.current=jn===qt;var er=_.useState(!Kn.current),Qn=(0,K.Z)(er,2),ar=Qn[0],Vn=Qn[1],qn=Kn.current?Vt:!1;_.useEffect(function(){Kn.current&&Vn(!1)},[jn]);var or=(0,j.Z)({},gn(qt,Mn,dr));Ut.length>1&&(or.motionAppear=!1);var cr=or.onVisibleChanged;return or.onVisibleChanged=function(rr){return!Kn.current&&!rr&&Vn(!0),cr==null?void 0:cr(rr)},ar?null:_.createElement(L,{mode:qt,locked:!Kn.current},_.createElement(Wn.default,(0,o.Z)({visible:qn},or,{forceRender:In,removeOnLeave:!1,leavedClassName:"".concat(on,"-hidden")}),function(rr){var nr=rr.className,ir=rr.style;return _.createElement(ze,{id:Ft,className:nr,style:ir},jt)}))}var Jn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vn=["active"],Gt=_.forwardRef(function(St,Ft){var Vt=St.style,Ut=St.className,jt=St.title,qt=St.eventKey,sn=St.warnKey,on=St.disabled,In=St.internalPopupClose,Mn=St.children,dr=St.itemIcon,jn=St.expandIcon,Kn=St.popupClassName,er=St.popupOffset,Qn=St.popupStyle,ar=St.onClick,Vn=St.onMouseEnter,qn=St.onMouseLeave,or=St.onTitleClick,cr=St.onTitleMouseEnter,rr=St.onTitleMouseLeave,nr=(0,g.Z)(St,Jn),ir=V(qt),Zn=_.useContext(G),Mr=Zn.prefixCls,$t=Zn.mode,sr=Zn.openKeys,hr=Zn.disabled,Yr=Zn.overflowDisabled,Kr=Zn.activeKey,li=Zn.selectedKeys,qr=Zn.itemIcon,Hn=Zn.expandIcon,On=Zn.onItemClick,an=Zn.onOpenChange,ln=Zn.onActive,Un=_.useContext(ee),Yn=Un._internalRenderSubMenuItem,lr=_.useContext(_e),Rr=lr.isSubPathKey,Fn=Fe(),pr="".concat(Mr,"-submenu"),Dr=hr||on,Xr=_.useRef(),pi=_.useRef(),Li=dr!=null?dr:qr,Gr=jn!=null?jn:Hn,Ii=sr.includes(qt),Jr=!Yr&&Ii,bi=Rr(li,qt),ri=ht(qt,Dr,cr,rr),di=ri.active,ii=(0,g.Z)(ri,vn),Fi=_.useState(!1),Lr=(0,K.Z)(Fi,2),Oi=Lr[0],Pi=Lr[1],ki=function(na){Dr||Pi(na)},yr=function(na){ki(!0),Vn==null||Vn({key:qt,domEvent:na})},Gn=function(na){ki(!1),qn==null||qn({key:qt,domEvent:na})},mi=_.useMemo(function(){return di||($t!=="inline"?Oi||Rr([Kr],qt):!1)},[$t,di,Kr,Oi,qt,Rr]),Ln=Ce(Fn.length),Bi=function(na){Dr||(or==null||or({key:qt,domEvent:na}),$t==="inline"&&an(qt,!Ii))},Fa=Re(function(Ki){ar==null||ar(w(Ki)),On(Ki)}),va=function(na){$t!=="inline"&&an(qt,na)},aa=function(){ln(qt)},la=ir&&"".concat(ir,"-popup"),Or=_.useMemo(function(){return _.createElement(Ye,{icon:$t!=="horizontal"?Gr:void 0,props:(0,j.Z)((0,j.Z)({},St),{},{isOpen:Jr,isSubMenu:!0})},_.createElement("i",{className:"".concat(pr,"-arrow")}))},[$t,Gr,St,Jr,pr]),Gi=_.createElement("div",(0,o.Z)({role:"menuitem",style:Ln,className:"".concat(pr,"-title"),tabIndex:Dr?null:-1,ref:Xr,title:typeof jt=="string"?jt:null,"data-menu-id":Yr&&ir?null:ir,"aria-expanded":Jr,"aria-haspopup":!0,"aria-controls":la,"aria-disabled":Dr,onClick:Bi,onFocus:aa},ii),jt,Or),da=_.useRef($t);if($t!=="inline"&&Fn.length>1?da.current="vertical":da.current=$t,!Yr){var Sa=da.current;Gi=_.createElement(Bn,{mode:Sa,prefixCls:pr,visible:!In&&Jr&&$t!=="inline",popupClassName:Kn,popupOffset:er,popupStyle:Qn,popup:_.createElement(L,{mode:Sa==="horizontal"?"vertical":Sa},_.createElement(ze,{id:la,ref:pi},Mn)),disabled:Dr,onVisibleChange:va},Gi)}var ci=_.createElement(l.Z.Item,(0,o.Z)({ref:Ft,role:"none"},nr,{component:"li",style:Vt,className:oe()(pr,"".concat(pr,"-").concat($t),Ut,(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(pr,"-open"),Jr),"".concat(pr,"-active"),mi),"".concat(pr,"-selected"),bi),"".concat(pr,"-disabled"),Dr)),onMouseEnter:yr,onMouseLeave:Gn}),Gi,!Yr&&_.createElement(Tn,{id:la,open:Jr,keyPath:Fn},Mn));return Yn&&(ci=Yn(ci,St,{selected:bi,active:mi,open:Jr,disabled:Dr})),_.createElement(L,{onItemClick:Fa,mode:$t==="horizontal"?"vertical":$t,itemIcon:Li,expandIcon:Gr},ci)}),Qt=_.forwardRef(function(St,Ft){var Vt=St.eventKey,Ut=St.children,jt=Fe(Vt),qt=dt(Ut,jt),sn=de();_.useEffect(function(){if(sn)return sn.registerPath(Vt,jt),function(){sn.unregisterPath(Vt,jt)}},[jt]);var on;return sn?on=qt:on=_.createElement(Gt,(0,o.Z)({ref:Ft},St),qt),_.createElement(Ie.Provider,{value:jt},on)}),Dn=Qt,An=d(43749);function bt(St){var Ft=St.className,Vt=St.style,Ut=_.useContext(G),jt=Ut.prefixCls,qt=de();return qt?null:_.createElement("li",{role:"separator",className:oe()("".concat(jt,"-item-divider"),Ft),style:Vt})}var _t=["className","title","eventKey","children"],Me=_.forwardRef(function(St,Ft){var Vt=St.className,Ut=St.title,jt=St.eventKey,qt=St.children,sn=(0,g.Z)(St,_t),on=_.useContext(G),In=on.prefixCls,Mn="".concat(In,"-item-group");return _.createElement("li",(0,o.Z)({ref:Ft,role:"presentation"},sn,{onClick:function(jn){return jn.stopPropagation()},className:oe()(Mn,Vt)}),_.createElement("div",{role:"presentation",className:"".concat(Mn,"-title"),title:typeof Ut=="string"?Ut:void 0},Ut),_.createElement("ul",{role:"group",className:"".concat(Mn,"-list")},qt))}),ot=_.forwardRef(function(St,Ft){var Vt=St.eventKey,Ut=St.children,jt=Fe(Vt),qt=dt(Ut,jt),sn=de();return sn?qt:_.createElement(Me,(0,o.Z)({ref:Ft},(0,Ge.Z)(St,["warnKey"])),qt)}),vt=ot,Et=["label","children","key","type","extra"];function Dt(St,Ft,Vt){var Ut=Ft.item,jt=Ft.group,qt=Ft.submenu,sn=Ft.divider;return(St||[]).map(function(on,In){if(on&&(0,An.Z)(on)==="object"){var Mn=on,dr=Mn.label,jn=Mn.children,Kn=Mn.key,er=Mn.type,Qn=Mn.extra,ar=(0,g.Z)(Mn,Et),Vn=Kn!=null?Kn:"tmp-".concat(In);return jn||er==="group"?er==="group"?_.createElement(jt,(0,o.Z)({key:Vn},ar,{title:dr}),Dt(jn,Ft,Vt)):_.createElement(qt,(0,o.Z)({key:Vn},ar,{title:dr}),Dt(jn,Ft,Vt)):er==="divider"?_.createElement(sn,(0,o.Z)({key:Vn},ar)):_.createElement(Ut,(0,o.Z)({key:Vn},ar,{extra:Qn}),dr,(!!Qn||Qn===0)&&_.createElement("span",{className:"".concat(Vt,"-item-extra")},Qn))}return null}).filter(function(on){return on})}function Xt(St,Ft,Vt,Ut,jt){var qt=St,sn=(0,j.Z)({divider:bt,item:ft,group:vt,submenu:Dn},Ut);return Ft&&(qt=Dt(Ft,sn,jt)),dt(qt,Vt)}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"],Sn=[],Zt=_.forwardRef(function(St,Ft){var Vt,Ut=St,jt=Ut.prefixCls,qt=jt===void 0?"rc-menu":jt,sn=Ut.rootClassName,on=Ut.style,In=Ut.className,Mn=Ut.tabIndex,dr=Mn===void 0?0:Mn,jn=Ut.items,Kn=Ut.children,er=Ut.direction,Qn=Ut.id,ar=Ut.mode,Vn=ar===void 0?"vertical":ar,qn=Ut.inlineCollapsed,or=Ut.disabled,cr=Ut.disabledOverflow,rr=Ut.subMenuOpenDelay,nr=rr===void 0?.1:rr,ir=Ut.subMenuCloseDelay,Zn=ir===void 0?.1:ir,Mr=Ut.forceSubMenuRender,$t=Ut.defaultOpenKeys,sr=Ut.openKeys,hr=Ut.activeKey,Yr=Ut.defaultActiveFirst,Kr=Ut.selectable,li=Kr===void 0?!0:Kr,qr=Ut.multiple,Hn=qr===void 0?!1:qr,On=Ut.defaultSelectedKeys,an=Ut.selectedKeys,ln=Ut.onSelect,Un=Ut.onDeselect,Yn=Ut.inlineIndent,lr=Yn===void 0?24:Yn,Rr=Ut.motion,Fn=Ut.defaultMotions,pr=Ut.triggerSubMenuAction,Dr=pr===void 0?"hover":pr,Xr=Ut.builtinPlacements,pi=Ut.itemIcon,Li=Ut.expandIcon,Gr=Ut.overflowedIndicator,Ii=Gr===void 0?"...":Gr,Jr=Ut.overflowedIndicatorPopupClassName,bi=Ut.getPopupContainer,ri=Ut.onClick,di=Ut.onOpenChange,ii=Ut.onKeyDown,Fi=Ut.openAnimation,Lr=Ut.openTransitionName,Oi=Ut._internalRenderMenuItem,Pi=Ut._internalRenderSubMenuItem,ki=Ut._internalComponents,yr=(0,g.Z)(Ut,pn),Gn=_.useMemo(function(){return[Xt(Kn,jn,Sn,ki,qt),Xt(Kn,jn,Sn,{},qt)]},[Kn,jn,ki]),mi=(0,K.Z)(Gn,2),Ln=mi[0],Bi=mi[1],Fa=_.useState(!1),va=(0,K.Z)(Fa,2),aa=va[0],la=va[1],Or=_.useRef(),Gi=le(Qn),da=er==="rtl",Sa=(0,C.Z)($t,{value:sr,postState:function(Ri){return Ri||Sn}}),ci=(0,K.Z)(Sa,2),Ki=ci[0],na=ci[1],xr=function(Ri){var Hi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wa(){na(Ri),di==null||di(Ri)}Hi?(0,T.flushSync)(wa):wa()},zr=_.useState(Ki),Sr=(0,K.Z)(zr,2),Fr=Sr[0],ui=Sr[1],Si=_.useRef(!1),sa=_.useMemo(function(){return(Vn==="inline"||Vn==="vertical")&&qn?["vertical",qn]:[Vn,!1]},[Vn,qn]),ur=(0,K.Z)(sa,2),Ir=ur[0],ei=ur[1],$r=Ir==="inline",ti=_.useState(Ir),xa=(0,K.Z)(ti,2),ua=xa[0],Ea=xa[1],pa=_.useState(ei),bs=(0,K.Z)(pa,2),ao=bs[0],$s=bs[1];_.useEffect(function(){Ea(Ir),$s(ei),Si.current&&($r?na(Fr):xr(Sn))},[Ir,ei]);var _a=_.useState(0),Ba=(0,K.Z)(_a,2),ka=Ba[0],js=Ba[1],ss=ka>=Ln.length-1||ua!=="horizontal"||cr;_.useEffect(function(){$r&&ui(Ki)},[Ki]),_.useEffect(function(){return Si.current=!0,function(){Si.current=!1}},[]);var ja=ye(),As=ja.registerPath,Os=ja.unregisterPath,Hs=ja.refreshOverflowKeys,Ka=ja.isSubPathKey,Cs=ja.getKeyPath,La=ja.getKeys,Ps=ja.getSubPathKeys,ks=_.useMemo(function(){return{registerPath:As,unregisterPath:Os}},[As,Os]),Ws=_.useMemo(function(){return{isSubPathKey:Ka}},[Ka]);_.useEffect(function(){Hs(ss?Sn:Ln.slice(ka+1).map(function(Ci){return Ci.key}))},[ka,ss]);var Vs=(0,C.Z)(hr||Yr&&((Vt=Ln[0])===null||Vt===void 0?void 0:Vt.key),{value:hr}),os=(0,K.Z)(Vs,2),Ha=os[0],fi=os[1],Wr=Re(function(Ci){fi(Ci)}),ma=Re(function(){fi(void 0)});(0,_.useImperativeHandle)(Ft,function(){return{list:Or.current,focus:function(Ri){var Hi,wa=La(),Na=$e(wa,Gi),Ss=Na.elements,ws=Na.key2element,hs=Na.element2key,Gs=ke(Or.current,Ss),Ts=Ha!=null?Ha:Gs[0]?hs.get(Gs[0]):(Hi=Ln.find(function(Ns){return!Ns.props.disabled}))===null||Hi===void 0?void 0:Hi.key,Rs=ws.get(Ts);if(Ts&&Rs){var Ys;Rs==null||(Ys=Rs.focus)===null||Ys===void 0||Ys.call(Rs,Ri)}}}});var Aa=(0,C.Z)(On||[],{value:an,postState:function(Ri){return Array.isArray(Ri)?Ri:Ri==null?Sn:[Ri]}}),Ai=(0,K.Z)(Aa,2),oa=Ai[0],Oa=Ai[1],Pa=function(Ri){if(li){var Hi=Ri.key,wa=oa.includes(Hi),Na;Hn?wa?Na=oa.filter(function(ws){return ws!==Hi}):Na=[].concat((0,fe.Z)(oa),[Hi]):Na=[Hi],Oa(Na);var Ss=(0,j.Z)((0,j.Z)({},Ri),{},{selectedKeys:Na});wa?Un==null||Un(Ss):ln==null||ln(Ss)}!Hn&&Ki.length&&ua!=="inline"&&xr(Sn)},Xa=Re(function(Ci){ri==null||ri(w(Ci)),Pa(Ci)}),Ca=Re(function(Ci,Ri){var Hi=Ki.filter(function(Na){return Na!==Ci});if(Ri)Hi.push(Ci);else if(ua!=="inline"){var wa=Ps(Ci);Hi=Hi.filter(function(Na){return!wa.has(Na)})}(0,N.Z)(Ki,Hi,!0)||xr(Hi,!0)}),ts=function(Ri,Hi){var wa=Hi!=null?Hi:!Ki.includes(Ri);Ca(Ri,wa)},Wa=Pe(ua,Ha,da,Gi,Or,La,Cs,fi,ts,ii);_.useEffect(function(){la(!0)},[]);var ls=_.useMemo(function(){return{_internalRenderMenuItem:Oi,_internalRenderSubMenuItem:Pi}},[Oi,Pi]),us=ua!=="horizontal"||cr?Ln:Ln.map(function(Ci,Ri){return _.createElement(L,{key:Ci.key,overflowDisabled:Ri>ka},Ci)}),Zs=_.createElement(l.Z,(0,o.Z)({id:Qn,ref:Or,prefixCls:"".concat(qt,"-overflow"),component:"ul",itemComponent:ft,className:oe()(qt,"".concat(qt,"-root"),"".concat(qt,"-").concat(ua),In,(0,ne.Z)((0,ne.Z)({},"".concat(qt,"-inline-collapsed"),ao),"".concat(qt,"-rtl"),da),sn),dir:er,style:on,role:"menu",tabIndex:dr,data:us,renderRawItem:function(Ri){return Ri},renderRawRest:function(Ri){var Hi=Ri.length,wa=Hi?Ln.slice(-Hi):null;return _.createElement(Dn,{eventKey:pe,title:Ii,disabled:ss,internalPopupClose:Hi===0,popupClassName:Jr},wa)},maxCount:ua!=="horizontal"||cr?l.Z.INVALIDATE:l.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ri){js(Ri)},onKeyDown:Wa},yr));return _.createElement(ee.Provider,{value:ls},_.createElement(k.Provider,{value:Gi},_.createElement(L,{prefixCls:qt,rootClassName:sn,mode:ua,openKeys:Ki,rtl:da,disabled:or,motion:aa?Rr:null,defaultMotions:aa?Fn:null,activeKey:Ha,onActive:Wr,onInactive:ma,selectedKeys:oa,inlineIndent:lr,subMenuOpenDelay:nr,subMenuCloseDelay:Zn,forceSubMenuRender:Mr,builtinPlacements:Xr,triggerSubMenuAction:Dr,getPopupContainer:bi,itemIcon:pi,expandIcon:Li,onItemClick:Xa,onOpenChange:Ca},_.createElement(_e.Provider,{value:Ws},Zs),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(me.Provider,{value:ks},Bi)))))}),yn=Zt,Nn=yn;Nn.Item=ft,Nn.SubMenu=Dn,Nn.ItemGroup=vt,Nn.Divider=bt;var _n=Nn},83836:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return Q}});var o=d(60499),ne=d(85899),j=d(72190),fe=d(42244),K=d(59301),g=d(92310),re=d.n(g),oe=d(29301),l=d(34280),C=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N=void 0;function S(E,R){var se=E.prefixCls,we=E.invalidate,Ve=E.item,lt=E.renderItem,xe=E.responsive,je=E.responsiveDisabled,Qe=E.registerSize,it=E.itemKey,De=E.className,wt=E.style,et=E.children,Ot=E.display,qe=E.order,Xe=E.component,Ue=Xe===void 0?"div":Xe,ke=(0,fe.Z)(E,C),ie=xe&&!Ot;function $e(ge){Qe(it,ge)}K.useEffect(function(){return function(){$e(null)}},[]);var Pe=lt&&Ve!==N?lt(Ve,{index:qe}):et,z;we||(z={opacity:ie?0:1,height:ie?0:N,overflowY:ie?"hidden":N,order:xe?qe:N,pointerEvents:ie?"none":N,position:ie?"absolute":N});var D={};ie&&(D["aria-hidden"]=!0);var ue=K.createElement(Ue,(0,o.Z)({className:re()(!we&&se,De),style:(0,ne.Z)((0,ne.Z)({},z),wt)},D,ke,{ref:R}),Pe);return xe&&(ue=K.createElement(oe.Z,{onResize:function(pe){var ye=pe.offsetWidth;$e(ye)},disabled:je},ue)),ue}var _=K.forwardRef(S);_.displayName="Item";var T=_,k=d(6089),W=d(4676),V=d(16089);function $(E){if(typeof MessageChannel=="undefined")(0,V.Z)(E);else{var R=new MessageChannel;R.port1.onmessage=function(){return E()},R.port2.postMessage(void 0)}}function I(){var E=K.useRef(null),R=function(we){E.current||(E.current=[],$(function(){(0,W.unstable_batchedUpdates)(function(){E.current.forEach(function(Ve){Ve()}),E.current=null})})),E.current.push(we)};return R}function G(E,R){var se=K.useState(R),we=(0,j.Z)(se,2),Ve=we[0],lt=we[1],xe=(0,k.Z)(function(je){E(function(){lt(je)})});return[Ve,xe]}var F=K.createContext(null),L=["component"],ae=["className"],me=["className"],de=function(R,se){var we=K.useContext(F);if(!we){var Ve=R.component,lt=Ve===void 0?"div":Ve,xe=(0,fe.Z)(R,L);return K.createElement(lt,(0,o.Z)({},xe,{ref:se}))}var je=we.className,Qe=(0,fe.Z)(we,ae),it=R.className,De=(0,fe.Z)(R,me);return K.createElement(F.Provider,{value:null},K.createElement(T,(0,o.Z)({ref:se,className:re()(je,it)},Qe,De)))},Ie=K.forwardRef(de);Ie.displayName="RawItem";var Fe=Ie,_e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Te="responsive",ee="invalidate";function B(E){return"+ ".concat(E.length," ...")}function A(E,R){var se=E.prefixCls,we=se===void 0?"rc-overflow":se,Ve=E.data,lt=Ve===void 0?[]:Ve,xe=E.renderItem,je=E.renderRawItem,Qe=E.itemKey,it=E.itemWidth,De=it===void 0?10:it,wt=E.ssr,et=E.style,Ot=E.className,qe=E.maxCount,Xe=E.renderRest,Ue=E.renderRawRest,ke=E.prefix,ie=E.suffix,$e=E.component,Pe=$e===void 0?"div":$e,z=E.itemComponent,D=E.onVisibleChange,ue=(0,fe.Z)(E,_e),ge=wt==="full",pe=I(),ye=G(pe,null),Re=(0,j.Z)(ye,2),Ze=Re[0],te=Re[1],le=Ze||0,tt=G(pe,new Map),nt=(0,j.Z)(tt,2),ct=nt[0],ut=nt[1],Ge=G(pe,0),yt=(0,j.Z)(Ge,2),ht=yt[0],Ce=yt[1],Ye=G(pe,0),b=(0,j.Z)(Ye,2),w=b[0],He=b[1],q=G(pe,0),be=(0,j.Z)(q,2),It=be[0],Be=be[1],rt=G(pe,0),ft=(0,j.Z)(rt,2),ve=ft[0],Se=ft[1],We=(0,K.useState)(null),ze=(0,j.Z)(We,2),M=ze[0],dt=ze[1],Ee=(0,K.useState)(null),Tt=(0,j.Z)(Ee,2),Kt=Tt[0],Jt=Tt[1],un=K.useMemo(function(){return Kt===null&&ge?Number.MAX_SAFE_INTEGER:Kt||0},[Kt,Ze]),gn=(0,K.useState)(!1),En=(0,j.Z)(gn,2),Bn=En[0],Wn=En[1],Tn="".concat(we,"-item"),Jn=Math.max(ht,w),vn=qe===Te,Gt=lt.length&&vn,Qt=qe===ee,Dn=Gt||typeof qe=="number"&<.length>qe,An=(0,K.useMemo)(function(){var jt=lt;return Gt?Ze===null&&ge?jt=lt:jt=lt.slice(0,Math.min(lt.length,le/De)):typeof qe=="number"&&(jt=lt.slice(0,qe)),jt},[lt,De,Ze,qe,Gt]),bt=(0,K.useMemo)(function(){return Gt?lt.slice(un+1):lt.slice(An.length)},[lt,An,Gt,un]),_t=(0,K.useCallback)(function(jt,qt){var sn;return typeof Qe=="function"?Qe(jt):(sn=Qe&&(jt==null?void 0:jt[Qe]))!==null&&sn!==void 0?sn:qt},[Qe]),Me=(0,K.useCallback)(xe||function(jt){return jt},[xe]);function ot(jt,qt,sn){Kt===jt&&(qt===void 0||qt===M)||(Jt(jt),sn||(Wn(jt<lt.length-1),D==null||D(jt)),qt!==void 0&&dt(qt))}function vt(jt,qt){te(qt.clientWidth)}function Et(jt,qt){ut(function(sn){var on=new Map(sn);return qt===null?on.delete(jt):on.set(jt,qt),on})}function Dt(jt,qt){He(qt),Ce(w)}function Xt(jt,qt){Be(qt)}function pn(jt,qt){Se(qt)}function Sn(jt){return ct.get(_t(An[jt],jt))}(0,l.Z)(function(){if(le&&typeof Jn=="number"&&An){var jt=It+ve,qt=An.length,sn=qt-1;if(!qt){ot(0,null);return}for(var on=0;on<qt;on+=1){var In=Sn(on);if(ge&&(In=In||0),In===void 0){ot(on-1,void 0,!0);break}if(jt+=In,sn===0&&jt<=le||on===sn-1&&jt+Sn(sn)<=le){ot(sn,null);break}else if(jt+Jn>le){ot(on-1,jt-In-ve+w);break}}ie&&Sn(0)+ve>le&&dt(null)}},[le,ct,w,It,ve,_t,An]);var Zt=Bn&&!!bt.length,yn={};M!==null&&Gt&&(yn={position:"absolute",left:M,top:0});var Nn={prefixCls:Tn,responsive:Gt,component:z,invalidate:Qt},_n=je?function(jt,qt){var sn=_t(jt,qt);return K.createElement(F.Provider,{key:sn,value:(0,ne.Z)((0,ne.Z)({},Nn),{},{order:qt,item:jt,itemKey:sn,registerSize:Et,display:qt<=un})},je(jt,qt))}:function(jt,qt){var sn=_t(jt,qt);return K.createElement(T,(0,o.Z)({},Nn,{order:qt,key:sn,item:jt,renderItem:Me,itemKey:sn,registerSize:Et,display:qt<=un}))},St={order:Zt?un:Number.MAX_SAFE_INTEGER,className:"".concat(Tn,"-rest"),registerSize:Dt,display:Zt},Ft=Xe||B,Vt=Ue?K.createElement(F.Provider,{value:(0,ne.Z)((0,ne.Z)({},Nn),St)},Ue(bt)):K.createElement(T,(0,o.Z)({},Nn,St),typeof Ft=="function"?Ft(bt):Ft),Ut=K.createElement(Pe,(0,o.Z)({className:re()(!Qt&&we,Ot),style:et,ref:R},ue),ke&&K.createElement(T,(0,o.Z)({},Nn,{responsive:vn,responsiveDisabled:!Gt,order:-1,className:"".concat(Tn,"-prefix"),registerSize:Xt,display:!0}),ke),An.map(_n),Dn?Vt:null,ie&&K.createElement(T,(0,o.Z)({},Nn,{responsive:vn,responsiveDisabled:!Gt,order:un,className:"".concat(Tn,"-suffix"),registerSize:pn,display:!0,style:yn}),ie));return vn?K.createElement(oe.Z,{onResize:vt,disabled:!Gt},Ut):Ut}var X=K.forwardRef(A);X.displayName="Overflow",X.Item=Fe,X.RESPONSIVE=Te,X.INVALIDATE=ee;var J=X,Q=J},29301:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ee}});var o=d(60499),ne=d(59301),j=d(11592),fe=d(48736),K=d(85899),g=d(43749),re=d(76846),oe=d(8654),l=ne.createContext(null);function C(B){var A=B.children,X=B.onBatchResize,J=ne.useRef(0),Q=ne.useRef([]),E=ne.useContext(l),R=ne.useCallback(function(se,we,Ve){J.current+=1;var lt=J.current;Q.current.push({size:se,element:we,data:Ve}),Promise.resolve().then(function(){lt===J.current&&(X==null||X(Q.current),Q.current=[])}),E==null||E(se,we,Ve)},[X,E]);return ne.createElement(l.Provider,{value:R},A)}var N=d(76374),S=new Map;function _(B){B.forEach(function(A){var X,J=A.target;(X=S.get(J))===null||X===void 0||X.forEach(function(Q){return Q(J)})})}var T=new N.Z(_),k=null,W=null;function V(B,A){S.has(B)||(S.set(B,new Set),T.observe(B)),S.get(B).add(A)}function $(B,A){S.has(B)&&(S.get(B).delete(A),S.get(B).size||(T.unobserve(B),S.delete(B)))}var I=d(38705),G=d(17212),F=d(39153),L=d(55401),ae=function(B){(0,F.Z)(X,B);var A=(0,L.Z)(X);function X(){return(0,I.Z)(this,X),A.apply(this,arguments)}return(0,G.Z)(X,[{key:"render",value:function(){return this.props.children}}]),X}(ne.Component);function me(B,A){var X=B.children,J=B.disabled,Q=ne.useRef(null),E=ne.useRef(null),R=ne.useContext(l),se=typeof X=="function",we=se?X(Q):X,Ve=ne.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),lt=!se&&ne.isValidElement(we)&&(0,oe.Yr)(we),xe=lt?(0,oe.C4)(we):null,je=(0,oe.x1)(xe,Q),Qe=function(){var et;return(0,re.ZP)(Q.current)||(Q.current&&(0,g.Z)(Q.current)==="object"?(0,re.ZP)((et=Q.current)===null||et===void 0?void 0:et.nativeElement):null)||(0,re.ZP)(E.current)};ne.useImperativeHandle(A,function(){return Qe()});var it=ne.useRef(B);it.current=B;var De=ne.useCallback(function(wt){var et=it.current,Ot=et.onResize,qe=et.data,Xe=wt.getBoundingClientRect(),Ue=Xe.width,ke=Xe.height,ie=wt.offsetWidth,$e=wt.offsetHeight,Pe=Math.floor(Ue),z=Math.floor(ke);if(Ve.current.width!==Pe||Ve.current.height!==z||Ve.current.offsetWidth!==ie||Ve.current.offsetHeight!==$e){var D={width:Pe,height:z,offsetWidth:ie,offsetHeight:$e};Ve.current=D;var ue=ie===Math.round(Ue)?Ue:ie,ge=$e===Math.round(ke)?ke:$e,pe=(0,K.Z)((0,K.Z)({},D),{},{offsetWidth:ue,offsetHeight:ge});R==null||R(pe,wt,qe),Ot&&Promise.resolve().then(function(){Ot(pe,wt)})}},[]);return ne.useEffect(function(){var wt=Qe();return wt&&!J&&V(wt,De),function(){return $(wt,De)}},[Q.current,J]),ne.createElement(ae,{ref:E},lt?ne.cloneElement(we,{ref:je}):we)}var de=ne.forwardRef(me),Ie=de,Fe="rc-observer-key";function _e(B,A){var X=B.children,J=typeof X=="function"?[X]:(0,j.Z)(X);return J.map(function(Q,E){var R=(Q==null?void 0:Q.key)||"".concat(Fe,"-").concat(E);return ne.createElement(Ie,(0,o.Z)({},B,{key:R,ref:E===0?A:void 0}),Q)})}var Te=ne.forwardRef(_e);Te.Collection=C;var ee=Te},6551:function(mn,gt,d){"use strict";d.d(gt,{ZP:function(){return re}});var o=d(72190),ne=d(59301),j=d(47273),fe=0,K=(0,j.Z)();function g(){var oe;return K?(oe=fe,fe+=1):oe="TEST_OR_SSR",oe}function re(oe){var l=ne.useState(),C=(0,o.Z)(l,2),N=C[0],S=C[1];return ne.useEffect(function(){S("rc_select_".concat(g()))},[]),oe||N}},37463:function(mn,gt,d){"use strict";d.d(gt,{Ac:function(){return Ge},Xo:function(){return ht},Wx:function(){return Ye},ZP:function(){return An},lk:function(){return G}});var o=d(60499),ne=d(77654),j=d(18642),fe=d(85899),K=d(72190),g=d(42244),re=d(43749),oe=d(18929),l=d(48736),C=d(59301),N=d(92310),S=d.n(N),_=d(34280),T=d(49658),k=d(8654),W=function(_t){var Me=_t.className,ot=_t.customizeIcon,vt=_t.customizeIconProps,Et=_t.children,Dt=_t.onMouseDown,Xt=_t.onClick,pn=typeof ot=="function"?ot(vt):ot;return C.createElement("span",{className:Me,onMouseDown:function(Zt){Zt.preventDefault(),Dt==null||Dt(Zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Xt,"aria-hidden":!0},pn!==void 0?pn:C.createElement("span",{className:S()(Me.split(/\s+/).map(function(Sn){return"".concat(Sn,"-icon")}))},Et))},V=W,$=function(_t,Me,ot,vt,Et){var Dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Xt=arguments.length>6?arguments[6]:void 0,pn=arguments.length>7?arguments[7]:void 0,Sn=C.useMemo(function(){if((0,re.Z)(vt)==="object")return vt.clearIcon;if(Et)return Et},[vt,Et]),Zt=C.useMemo(function(){return!!(!Dt&&vt&&(ot.length||Xt)&&!(pn==="combobox"&&Xt===""))},[vt,Dt,ot.length,Xt,pn]);return{allowClear:Zt,clearIcon:C.createElement(V,{className:"".concat(_t,"-clear"),onMouseDown:Me,customizeIcon:Sn},"\xD7")}},I=C.createContext(null);function G(){return C.useContext(I)}function F(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_t=C.useState(!1),Me=(0,K.Z)(_t,2),ot=Me[0],vt=Me[1],Et=C.useRef(null),Dt=function(){window.clearTimeout(Et.current)};C.useEffect(function(){return Dt},[]);var Xt=function(Sn,Zt){Dt(),Et.current=window.setTimeout(function(){vt(Sn),Zt&&Zt()},bt)};return[ot,Xt,Dt]}function L(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_t=C.useRef(null),Me=C.useRef(null);C.useEffect(function(){return function(){window.clearTimeout(Me.current)}},[]);function ot(vt){(vt||_t.current===null)&&(_t.current=vt),window.clearTimeout(Me.current),Me.current=window.setTimeout(function(){_t.current=null},bt)}return[function(){return _t.current},ot]}function ae(bt,_t,Me,ot){var vt=C.useRef(null);vt.current={open:_t,triggerOpen:Me,customizedTrigger:ot},C.useEffect(function(){function Et(Dt){var Xt;if(!((Xt=vt.current)!==null&&Xt!==void 0&&Xt.customizedTrigger)){var pn=Dt.target;pn.shadowRoot&&Dt.composed&&(pn=Dt.composedPath()[0]||pn),vt.current.open&&bt().filter(function(Sn){return Sn}).every(function(Sn){return!Sn.contains(pn)&&Sn!==pn})&&vt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Et),function(){return window.removeEventListener("mousedown",Et)}},[])}var me=d(10228);function de(bt){return bt&&![me.Z.ESC,me.Z.SHIFT,me.Z.BACKSPACE,me.Z.TAB,me.Z.WIN_KEY,me.Z.ALT,me.Z.META,me.Z.WIN_KEY_RIGHT,me.Z.CTRL,me.Z.SEMICOLON,me.Z.EQUALS,me.Z.CAPS_LOCK,me.Z.CONTEXT_MENU,me.Z.F1,me.Z.F2,me.Z.F3,me.Z.F4,me.Z.F5,me.Z.F6,me.Z.F7,me.Z.F8,me.Z.F9,me.Z.F10,me.Z.F11,me.Z.F12].includes(bt)}var Ie=d(26112),Fe=d(83836);function _e(bt,_t,Me){var ot=(0,fe.Z)((0,fe.Z)({},bt),Me?_t:{});return Object.keys(_t).forEach(function(vt){var Et=_t[vt];typeof Et=="function"&&(ot[vt]=function(){for(var Dt,Xt=arguments.length,pn=new Array(Xt),Sn=0;Sn<Xt;Sn++)pn[Sn]=arguments[Sn];return Et.apply(void 0,pn),(Dt=bt[vt])===null||Dt===void 0?void 0:Dt.call.apply(Dt,[bt].concat(pn))})}),ot}var Te=_e,ee=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],B=function(_t,Me){var ot=_t.prefixCls,vt=_t.id,Et=_t.inputElement,Dt=_t.autoFocus,Xt=_t.autoComplete,pn=_t.editable,Sn=_t.activeDescendantId,Zt=_t.value,yn=_t.open,Nn=_t.attrs,_n=(0,g.Z)(_t,ee),St=Et||C.createElement("input",null),Ft=St,Vt=Ft.ref,Ut=Ft.props;return(0,l.Kp)(!("maxLength"in St.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),St=C.cloneElement(St,(0,fe.Z)((0,fe.Z)((0,fe.Z)({type:"search"},Te(_n,Ut,!0)),{},{id:vt,ref:(0,k.sQ)(Me,Vt),autoComplete:Xt||"off",autoFocus:Dt,className:S()("".concat(ot,"-selection-search-input"),Ut==null?void 0:Ut.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?Sn:void 0},Nn),{},{value:pn?Zt:"",readOnly:!pn,unselectable:pn?null:"on",style:(0,fe.Z)((0,fe.Z)({},Ut.style),{},{opacity:pn?null:0})})),St},A=C.forwardRef(B),X=A;function J(bt){return Array.isArray(bt)?bt:bt!==void 0?[bt]:[]}var Q=typeof window!="undefined"&&window.document&&window.document.documentElement,E=Q;function R(bt){return bt!=null}function se(bt){return!bt&&bt!==0}function we(bt){return["string","number"].includes((0,re.Z)(bt))}function Ve(bt){var _t=void 0;return bt&&(we(bt.title)?_t=bt.title.toString():we(bt.label)&&(_t=bt.label.toString())),_t}function lt(bt,_t){E?C.useLayoutEffect(bt,_t):C.useEffect(bt,_t)}function xe(bt){var _t;return(_t=bt.key)!==null&&_t!==void 0?_t:bt.value}var je=function(_t){_t.preventDefault(),_t.stopPropagation()},Qe=function(_t){var Me=_t.id,ot=_t.prefixCls,vt=_t.values,Et=_t.open,Dt=_t.searchValue,Xt=_t.autoClearSearchValue,pn=_t.inputRef,Sn=_t.placeholder,Zt=_t.disabled,yn=_t.mode,Nn=_t.showSearch,_n=_t.autoFocus,St=_t.autoComplete,Ft=_t.activeDescendantId,Vt=_t.tabIndex,Ut=_t.removeIcon,jt=_t.maxTagCount,qt=_t.maxTagTextLength,sn=_t.maxTagPlaceholder,on=sn===void 0?function(Un){return"+ ".concat(Un.length," ...")}:sn,In=_t.tagRender,Mn=_t.onToggleOpen,dr=_t.onRemove,jn=_t.onInputChange,Kn=_t.onInputPaste,er=_t.onInputKeyDown,Qn=_t.onInputMouseDown,ar=_t.onInputCompositionStart,Vn=_t.onInputCompositionEnd,qn=_t.onInputBlur,or=C.useRef(null),cr=(0,C.useState)(0),rr=(0,K.Z)(cr,2),nr=rr[0],ir=rr[1],Zn=(0,C.useState)(!1),Mr=(0,K.Z)(Zn,2),$t=Mr[0],sr=Mr[1],hr="".concat(ot,"-selection"),Yr=Et||yn==="multiple"&&Xt===!1||yn==="tags"?Dt:"",Kr=yn==="tags"||yn==="multiple"&&Xt===!1||Nn&&(Et||$t);lt(function(){ir(or.current.scrollWidth)},[Yr]);var li=function(Yn,lr,Rr,Fn,pr){return C.createElement("span",{title:Ve(Yn),className:S()("".concat(hr,"-item"),(0,j.Z)({},"".concat(hr,"-item-disabled"),Rr))},C.createElement("span",{className:"".concat(hr,"-item-content")},lr),Fn&&C.createElement(V,{className:"".concat(hr,"-item-remove"),onMouseDown:je,onClick:pr,customizeIcon:Ut},"\xD7"))},qr=function(Yn,lr,Rr,Fn,pr,Dr){var Xr=function(Li){je(Li),Mn(!Et)};return C.createElement("span",{onMouseDown:Xr},In({label:lr,value:Yn,disabled:Rr,closable:Fn,onClose:pr,isMaxTag:!!Dr}))},Hn=function(Yn){var lr=Yn.disabled,Rr=Yn.label,Fn=Yn.value,pr=!Zt&&!lr,Dr=Rr;if(typeof qt=="number"&&(typeof Rr=="string"||typeof Rr=="number")){var Xr=String(Dr);Xr.length>qt&&(Dr="".concat(Xr.slice(0,qt),"..."))}var pi=function(Gr){Gr&&Gr.stopPropagation(),dr(Yn)};return typeof In=="function"?qr(Fn,Dr,lr,pr,pi):li(Yn,Dr,lr,pr,pi)},On=function(Yn){if(!vt.length)return null;var lr=typeof on=="function"?on(Yn):on;return typeof In=="function"?qr(void 0,lr,!1,!1,void 0,!0):li({title:lr},lr,!1)},an=C.createElement("div",{className:"".concat(hr,"-search"),style:{width:nr},onFocus:function(){sr(!0)},onBlur:function(){sr(!1)}},C.createElement(X,{ref:pn,open:Et,prefixCls:ot,id:Me,inputElement:null,disabled:Zt,autoFocus:_n,autoComplete:St,editable:Kr,activeDescendantId:Ft,value:Yr,onKeyDown:er,onMouseDown:Qn,onChange:jn,onPaste:Kn,onCompositionStart:ar,onCompositionEnd:Vn,onBlur:qn,tabIndex:Vt,attrs:(0,Ie.Z)(_t,!0)}),C.createElement("span",{ref:or,className:"".concat(hr,"-search-mirror"),"aria-hidden":!0},Yr,"\xA0")),ln=C.createElement(Fe.Z,{prefixCls:"".concat(hr,"-overflow"),data:vt,renderItem:Hn,renderRest:On,suffix:an,itemKey:xe,maxCount:jt});return C.createElement("span",{className:"".concat(hr,"-wrap")},ln,!vt.length&&!Yr&&C.createElement("span",{className:"".concat(hr,"-placeholder")},Sn))},it=Qe,De=function(_t){var Me=_t.inputElement,ot=_t.prefixCls,vt=_t.id,Et=_t.inputRef,Dt=_t.disabled,Xt=_t.autoFocus,pn=_t.autoComplete,Sn=_t.activeDescendantId,Zt=_t.mode,yn=_t.open,Nn=_t.values,_n=_t.placeholder,St=_t.tabIndex,Ft=_t.showSearch,Vt=_t.searchValue,Ut=_t.activeValue,jt=_t.maxLength,qt=_t.onInputKeyDown,sn=_t.onInputMouseDown,on=_t.onInputChange,In=_t.onInputPaste,Mn=_t.onInputCompositionStart,dr=_t.onInputCompositionEnd,jn=_t.onInputBlur,Kn=_t.title,er=C.useState(!1),Qn=(0,K.Z)(er,2),ar=Qn[0],Vn=Qn[1],qn=Zt==="combobox",or=qn||Ft,cr=Nn[0],rr=Vt||"";qn&&Ut&&!ar&&(rr=Ut),C.useEffect(function(){qn&&Vn(!1)},[qn,Ut]);var nr=Zt!=="combobox"&&!yn&&!Ft?!1:!!rr,ir=Kn===void 0?Ve(cr):Kn,Zn=C.useMemo(function(){return cr?null:C.createElement("span",{className:"".concat(ot,"-selection-placeholder"),style:nr?{visibility:"hidden"}:void 0},_n)},[cr,nr,_n,ot]);return C.createElement("span",{className:"".concat(ot,"-selection-wrap")},C.createElement("span",{className:"".concat(ot,"-selection-search")},C.createElement(X,{ref:Et,prefixCls:ot,id:vt,open:yn,inputElement:Me,disabled:Dt,autoFocus:Xt,autoComplete:pn,editable:or,activeDescendantId:Sn,value:rr,onKeyDown:qt,onMouseDown:sn,onChange:function($t){Vn(!0),on($t)},onPaste:In,onCompositionStart:Mn,onCompositionEnd:dr,onBlur:jn,tabIndex:St,attrs:(0,Ie.Z)(_t,!0),maxLength:qn?jt:void 0})),!qn&&cr?C.createElement("span",{className:"".concat(ot,"-selection-item"),title:ir,style:nr?{visibility:"hidden"}:void 0},cr.label):null,Zn)},wt=De,et=function(_t,Me){var ot=(0,C.useRef)(null),vt=(0,C.useRef)(!1),Et=_t.prefixCls,Dt=_t.open,Xt=_t.mode,pn=_t.showSearch,Sn=_t.tokenWithEnter,Zt=_t.disabled,yn=_t.prefix,Nn=_t.autoClearSearchValue,_n=_t.onSearch,St=_t.onSearchSubmit,Ft=_t.onToggleOpen,Vt=_t.onInputKeyDown,Ut=_t.onInputBlur,jt=_t.domRef;C.useImperativeHandle(Me,function(){return{focus:function(ir){ot.current.focus(ir)},blur:function(){ot.current.blur()}}});var qt=L(0),sn=(0,K.Z)(qt,2),on=sn[0],In=sn[1],Mn=function(ir){var Zn=ir.which,Mr=ot.current instanceof HTMLTextAreaElement;!Mr&&Dt&&(Zn===me.Z.UP||Zn===me.Z.DOWN)&&ir.preventDefault(),Vt&&Vt(ir),Zn===me.Z.ENTER&&Xt==="tags"&&!vt.current&&!Dt&&(St==null||St(ir.target.value)),!(Mr&&!Dt&&~[me.Z.UP,me.Z.DOWN,me.Z.LEFT,me.Z.RIGHT].indexOf(Zn))&&de(Zn)&&Ft(!0)},dr=function(){In(!0)},jn=(0,C.useRef)(null),Kn=function(ir){_n(ir,!0,vt.current)!==!1&&Ft(!0)},er=function(){vt.current=!0},Qn=function(ir){vt.current=!1,Xt!=="combobox"&&Kn(ir.target.value)},ar=function(ir){var Zn=ir.target.value;if(Sn&&jn.current&&/[\r\n]/.test(jn.current)){var Mr=jn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zn=Zn.replace(Mr,jn.current)}jn.current=null,Kn(Zn)},Vn=function(ir){var Zn=ir.clipboardData,Mr=Zn==null?void 0:Zn.getData("text");jn.current=Mr||""},qn=function(ir){var Zn=ir.target;if(Zn!==ot.current){var Mr=document.body.style.msTouchAction!==void 0;Mr?setTimeout(function(){ot.current.focus()}):ot.current.focus()}},or=function(ir){var Zn=on();ir.target!==ot.current&&!Zn&&!(Xt==="combobox"&&Zt)&&ir.preventDefault(),(Xt!=="combobox"&&(!pn||!Zn)||!Dt)&&(Dt&&Nn!==!1&&_n("",!0,!1),Ft())},cr={inputRef:ot,onInputKeyDown:Mn,onInputMouseDown:dr,onInputChange:ar,onInputPaste:Vn,onInputCompositionStart:er,onInputCompositionEnd:Qn,onInputBlur:Ut},rr=Xt==="multiple"||Xt==="tags"?C.createElement(it,(0,o.Z)({},_t,cr)):C.createElement(wt,(0,o.Z)({},_t,cr));return C.createElement("div",{ref:jt,className:"".concat(Et,"-selector"),onClick:qn,onMouseDown:or},yn&&C.createElement("div",{className:"".concat(Et,"-prefix")},yn),rr)},Ot=C.forwardRef(et),qe=Ot,Xe=d(68196),Ue=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ke=function(_t){var Me=_t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Me,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Me,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Me,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Me,adjustY:1},htmlRegion:"scroll"}}},ie=function(_t,Me){var ot=_t.prefixCls,vt=_t.disabled,Et=_t.visible,Dt=_t.children,Xt=_t.popupElement,pn=_t.animation,Sn=_t.transitionName,Zt=_t.dropdownStyle,yn=_t.dropdownClassName,Nn=_t.direction,_n=Nn===void 0?"ltr":Nn,St=_t.placement,Ft=_t.builtinPlacements,Vt=_t.dropdownMatchSelectWidth,Ut=_t.dropdownRender,jt=_t.dropdownAlign,qt=_t.getPopupContainer,sn=_t.empty,on=_t.getTriggerDOMNode,In=_t.onPopupVisibleChange,Mn=_t.onPopupMouseEnter,dr=(0,g.Z)(_t,Ue),jn="".concat(ot,"-dropdown"),Kn=Xt;Ut&&(Kn=Ut(Xt));var er=C.useMemo(function(){return Ft||ke(Vt)},[Ft,Vt]),Qn=pn?"".concat(jn,"-").concat(pn):Sn,ar=typeof Vt=="number",Vn=C.useMemo(function(){return ar?null:Vt===!1?"minWidth":"width"},[Vt,ar]),qn=Zt;ar&&(qn=(0,fe.Z)((0,fe.Z)({},qn),{},{width:Vt}));var or=C.useRef(null);return C.useImperativeHandle(Me,function(){return{getPopupElement:function(){var rr;return(rr=or.current)===null||rr===void 0?void 0:rr.popupElement}}}),C.createElement(Xe.Z,(0,o.Z)({},dr,{showAction:In?["click"]:[],hideAction:In?["click"]:[],popupPlacement:St||(_n==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:er,prefixCls:jn,popupTransitionName:Qn,popup:C.createElement("div",{onMouseEnter:Mn},Kn),ref:or,stretch:Vn,popupAlign:jt,popupVisible:Et,getPopupContainer:qt,popupClassName:S()(yn,(0,j.Z)({},"".concat(jn,"-empty"),sn)),popupStyle:qn,getTriggerDOMNode:on,onPopupVisibleChange:In}),Dt)},$e=C.forwardRef(ie),Pe=$e,z=d(48745);function D(bt,_t){var Me=bt.key,ot;return"value"in bt&&(ot=bt.value),Me!=null?Me:ot!==void 0?ot:"rc-index-key-".concat(_t)}function ue(bt){return typeof bt!="undefined"&&!Number.isNaN(bt)}function ge(bt,_t){var Me=bt||{},ot=Me.label,vt=Me.value,Et=Me.options,Dt=Me.groupLabel,Xt=ot||(_t?"children":"label");return{label:Xt,value:vt||"value",options:Et||"options",groupLabel:Dt||Xt}}function pe(bt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=_t.fieldNames,ot=_t.childrenAsData,vt=[],Et=ge(Me,!1),Dt=Et.label,Xt=Et.value,pn=Et.options,Sn=Et.groupLabel;function Zt(yn,Nn){Array.isArray(yn)&&yn.forEach(function(_n){if(Nn||!(pn in _n)){var St=_n[Xt];vt.push({key:D(_n,vt.length),groupOption:Nn,data:_n,label:_n[Dt],value:St})}else{var Ft=_n[Sn];Ft===void 0&&ot&&(Ft=_n.label),vt.push({key:D(_n,vt.length),group:!0,data:_n,label:Ft}),Zt(_n[pn],!0)}})}return Zt(bt,!1),vt}function ye(bt){var _t=(0,fe.Z)({},bt);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,l.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_t}}),_t}var Re=function(_t,Me,ot){if(!Me||!Me.length)return null;var vt=!1,Et=function Xt(pn,Sn){var Zt=(0,z.Z)(Sn),yn=Zt[0],Nn=Zt.slice(1);if(!yn)return[pn];var _n=pn.split(yn);return vt=vt||_n.length>1,_n.reduce(function(St,Ft){return[].concat((0,ne.Z)(St),(0,ne.Z)(Xt(Ft,Nn)))},[]).filter(Boolean)},Dt=Et(_t,Me);return vt?typeof ot!="undefined"?Dt.slice(0,ot):Dt:null},Ze=C.createContext(null),te=Ze;function le(bt){var _t=bt.visible,Me=bt.values;if(!_t)return null;var ot=50;return C.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Me.slice(0,ot).map(function(vt){var Et=vt.label,Dt=vt.value;return["number","string"].includes((0,re.Z)(Et))?Et:Dt}).join(", ")),Me.length>ot?", ...":null)}var tt=["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"],nt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ct=function(_t){return _t==="tags"||_t==="multiple"},ut=C.forwardRef(function(bt,_t){var Me,ot=bt.id,vt=bt.prefixCls,Et=bt.className,Dt=bt.showSearch,Xt=bt.tagRender,pn=bt.direction,Sn=bt.omitDomProps,Zt=bt.displayValues,yn=bt.onDisplayValuesChange,Nn=bt.emptyOptions,_n=bt.notFoundContent,St=_n===void 0?"Not Found":_n,Ft=bt.onClear,Vt=bt.mode,Ut=bt.disabled,jt=bt.loading,qt=bt.getInputElement,sn=bt.getRawInputElement,on=bt.open,In=bt.defaultOpen,Mn=bt.onDropdownVisibleChange,dr=bt.activeValue,jn=bt.onActiveValueChange,Kn=bt.activeDescendantId,er=bt.searchValue,Qn=bt.autoClearSearchValue,ar=bt.onSearch,Vn=bt.onSearchSplit,qn=bt.tokenSeparators,or=bt.allowClear,cr=bt.prefix,rr=bt.suffixIcon,nr=bt.clearIcon,ir=bt.OptionList,Zn=bt.animation,Mr=bt.transitionName,$t=bt.dropdownStyle,sr=bt.dropdownClassName,hr=bt.dropdownMatchSelectWidth,Yr=bt.dropdownRender,Kr=bt.dropdownAlign,li=bt.placement,qr=bt.builtinPlacements,Hn=bt.getPopupContainer,On=bt.showAction,an=On===void 0?[]:On,ln=bt.onFocus,Un=bt.onBlur,Yn=bt.onKeyUp,lr=bt.onKeyDown,Rr=bt.onMouseDown,Fn=(0,g.Z)(bt,tt),pr=ct(Vt),Dr=(Dt!==void 0?Dt:pr)||Vt==="combobox",Xr=(0,fe.Z)({},Fn);nt.forEach(function(fi){delete Xr[fi]}),Sn==null||Sn.forEach(function(fi){delete Xr[fi]});var pi=C.useState(!1),Li=(0,K.Z)(pi,2),Gr=Li[0],Ii=Li[1];C.useEffect(function(){Ii((0,T.Z)())},[]);var Jr=C.useRef(null),bi=C.useRef(null),ri=C.useRef(null),di=C.useRef(null),ii=C.useRef(null),Fi=C.useRef(!1),Lr=F(),Oi=(0,K.Z)(Lr,3),Pi=Oi[0],ki=Oi[1],yr=Oi[2];C.useImperativeHandle(_t,function(){var fi,Wr;return{focus:(fi=di.current)===null||fi===void 0?void 0:fi.focus,blur:(Wr=di.current)===null||Wr===void 0?void 0:Wr.blur,scrollTo:function(Aa){var Ai;return(Ai=ii.current)===null||Ai===void 0?void 0:Ai.scrollTo(Aa)},nativeElement:Jr.current||bi.current}});var Gn=C.useMemo(function(){var fi;if(Vt!=="combobox")return er;var Wr=(fi=Zt[0])===null||fi===void 0?void 0:fi.value;return typeof Wr=="string"||typeof Wr=="number"?String(Wr):""},[er,Vt,Zt]),mi=Vt==="combobox"&&typeof qt=="function"&&qt()||null,Ln=typeof sn=="function"&&sn(),Bi=(0,k.x1)(bi,Ln==null||(Me=Ln.props)===null||Me===void 0?void 0:Me.ref),Fa=C.useState(!1),va=(0,K.Z)(Fa,2),aa=va[0],la=va[1];(0,_.Z)(function(){la(!0)},[]);var Or=(0,oe.Z)(!1,{defaultValue:In,value:on}),Gi=(0,K.Z)(Or,2),da=Gi[0],Sa=Gi[1],ci=aa?da:!1,Ki=!St&&Nn;(Ut||Ki&&ci&&Vt==="combobox")&&(ci=!1);var na=Ki?!1:ci,xr=C.useCallback(function(fi){var Wr=fi!==void 0?fi:!ci;Ut||(Sa(Wr),ci!==Wr&&(Mn==null||Mn(Wr)))},[Ut,ci,Sa,Mn]),zr=C.useMemo(function(){return(qn||[]).some(function(fi){return[`
|
|
|
`,`\r
|
|
|
`].includes(fi)})},[qn]),Sr=C.useContext(te)||{},Fr=Sr.maxCount,ui=Sr.rawValues,Si=function(Wr,ma,Aa){if(!(pr&&ue(Fr)&&(ui==null?void 0:ui.size)>=Fr)){var Ai=!0,oa=Wr;jn==null||jn(null);var Oa=Re(Wr,qn,ue(Fr)?Fr-ui.size:void 0),Pa=Aa?null:Oa;return Vt!=="combobox"&&Pa&&(oa="",Vn==null||Vn(Pa),xr(!1),Ai=!1),ar&&Gn!==oa&&ar(oa,{source:ma?"typing":"effect"}),Ai}},sa=function(Wr){!Wr||!Wr.trim()||ar(Wr,{source:"submit"})};C.useEffect(function(){!ci&&!pr&&Vt!=="combobox"&&Si("",!1,!1)},[ci]),C.useEffect(function(){da&&Ut&&Sa(!1),Ut&&!Fi.current&&ki(!1)},[Ut]);var ur=L(),Ir=(0,K.Z)(ur,2),ei=Ir[0],$r=Ir[1],ti=C.useRef(!1),xa=function(Wr){var ma=ei(),Aa=Wr.key,Ai=Aa==="Enter";if(Ai&&(Vt!=="combobox"&&Wr.preventDefault(),ci||xr(!0)),$r(!!Gn),Aa==="Backspace"&&!ma&&pr&&!Gn&&Zt.length){for(var oa=(0,ne.Z)(Zt),Oa=null,Pa=oa.length-1;Pa>=0;Pa-=1){var Xa=oa[Pa];if(!Xa.disabled){oa.splice(Pa,1),Oa=Xa;break}}Oa&&yn(oa,{type:"remove",values:[Oa]})}for(var Ca=arguments.length,ts=new Array(Ca>1?Ca-1:0),Wa=1;Wa<Ca;Wa++)ts[Wa-1]=arguments[Wa];if(ci&&(!Ai||!ti.current)){var ls;Ai&&(ti.current=!0),(ls=ii.current)===null||ls===void 0||ls.onKeyDown.apply(ls,[Wr].concat(ts))}lr==null||lr.apply(void 0,[Wr].concat(ts))},ua=function(Wr){for(var ma=arguments.length,Aa=new Array(ma>1?ma-1:0),Ai=1;Ai<ma;Ai++)Aa[Ai-1]=arguments[Ai];if(ci){var oa;(oa=ii.current)===null||oa===void 0||oa.onKeyUp.apply(oa,[Wr].concat(Aa))}Wr.key==="Enter"&&(ti.current=!1),Yn==null||Yn.apply(void 0,[Wr].concat(Aa))},Ea=function(Wr){var ma=Zt.filter(function(Aa){return Aa!==Wr});yn(ma,{type:"remove",values:[Wr]})},pa=function(){ti.current=!1},bs=C.useRef(!1),ao=function(){ki(!0),Ut||(ln&&!bs.current&&ln.apply(void 0,arguments),an.includes("focus")&&xr(!0)),bs.current=!0},$s=function(){Fi.current=!0,ki(!1,function(){bs.current=!1,Fi.current=!1,xr(!1)}),!Ut&&(Gn&&(Vt==="tags"?ar(Gn,{source:"submit"}):Vt==="multiple"&&ar("",{source:"blur"})),Un&&Un.apply(void 0,arguments))},_a=[];C.useEffect(function(){return function(){_a.forEach(function(fi){return clearTimeout(fi)}),_a.splice(0,_a.length)}},[]);var Ba=function(Wr){var ma,Aa=Wr.target,Ai=(ma=ri.current)===null||ma===void 0?void 0:ma.getPopupElement();if(Ai&&Ai.contains(Aa)){var oa=setTimeout(function(){var Ca=_a.indexOf(oa);if(Ca!==-1&&_a.splice(Ca,1),yr(),!Gr&&!Ai.contains(document.activeElement)){var ts;(ts=di.current)===null||ts===void 0||ts.focus()}});_a.push(oa)}for(var Oa=arguments.length,Pa=new Array(Oa>1?Oa-1:0),Xa=1;Xa<Oa;Xa++)Pa[Xa-1]=arguments[Xa];Rr==null||Rr.apply(void 0,[Wr].concat(Pa))},ka=C.useState({}),js=(0,K.Z)(ka,2),ss=js[1];function ja(){ss({})}var As;Ln&&(As=function(Wr){xr(Wr)}),ae(function(){var fi;return[Jr.current,(fi=ri.current)===null||fi===void 0?void 0:fi.getPopupElement()]},na,xr,!!Ln);var Os=C.useMemo(function(){return(0,fe.Z)((0,fe.Z)({},bt),{},{notFoundContent:St,open:ci,triggerOpen:na,id:ot,showSearch:Dr,multiple:pr,toggleOpen:xr})},[bt,St,na,ci,ot,Dr,pr,xr]),Hs=!!rr||jt,Ka;Hs&&(Ka=C.createElement(V,{className:S()("".concat(vt,"-arrow"),(0,j.Z)({},"".concat(vt,"-arrow-loading"),jt)),customizeIcon:rr,customizeIconProps:{loading:jt,searchValue:Gn,open:ci,focused:Pi,showSearch:Dr}}));var Cs=function(){var Wr;Ft==null||Ft(),(Wr=di.current)===null||Wr===void 0||Wr.focus(),yn([],{type:"clear",values:Zt}),Si("",!1,!1)},La=$(vt,Cs,Zt,or,nr,Ut,Gn,Vt),Ps=La.allowClear,ks=La.clearIcon,Ws=C.createElement(ir,{ref:ii}),Vs=S()(vt,Et,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(vt,"-focused"),Pi),"".concat(vt,"-multiple"),pr),"".concat(vt,"-single"),!pr),"".concat(vt,"-allow-clear"),or),"".concat(vt,"-show-arrow"),Hs),"".concat(vt,"-disabled"),Ut),"".concat(vt,"-loading"),jt),"".concat(vt,"-open"),ci),"".concat(vt,"-customize-input"),mi),"".concat(vt,"-show-search"),Dr)),os=C.createElement(Pe,{ref:ri,disabled:Ut,prefixCls:vt,visible:na,popupElement:Ws,animation:Zn,transitionName:Mr,dropdownStyle:$t,dropdownClassName:sr,direction:pn,dropdownMatchSelectWidth:hr,dropdownRender:Yr,dropdownAlign:Kr,placement:li,builtinPlacements:qr,getPopupContainer:Hn,empty:Nn,getTriggerDOMNode:function(Wr){return bi.current||Wr},onPopupVisibleChange:As,onPopupMouseEnter:ja},Ln?C.cloneElement(Ln,{ref:Bi}):C.createElement(qe,(0,o.Z)({},bt,{domRef:bi,prefixCls:vt,inputElement:mi,ref:di,id:ot,prefix:cr,showSearch:Dr,autoClearSearchValue:Qn,mode:Vt,activeDescendantId:Kn,tagRender:Xt,values:Zt,open:ci,onToggleOpen:xr,activeValue:dr,searchValue:Gn,onSearch:Si,onSearchSubmit:sa,onRemove:Ea,tokenWithEnter:zr,onInputBlur:pa}))),Ha;return Ln?Ha=os:Ha=C.createElement("div",(0,o.Z)({className:Vs},Xr,{ref:Jr,onMouseDown:Ba,onKeyDown:xa,onKeyUp:ua,onFocus:ao,onBlur:$s}),C.createElement(le,{visible:Pi&&!ci,values:Zt}),os,Ka,Ps&&ks),C.createElement(I.Provider,{value:Os},Ha)}),Ge=ut,yt=function(){return null};yt.isSelectOptGroup=!0;var ht=yt,Ce=function(){return null};Ce.isSelectOption=!0;var Ye=Ce,b=d(80547),w=d(2738),He=d(48911);function q(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var be=["disabled","title","children","style","className"];function It(bt){return typeof bt=="string"||typeof bt=="number"}var Be=function(_t,Me){var ot=G(),vt=ot.prefixCls,Et=ot.id,Dt=ot.open,Xt=ot.multiple,pn=ot.mode,Sn=ot.searchValue,Zt=ot.toggleOpen,yn=ot.notFoundContent,Nn=ot.onPopupScroll,_n=C.useContext(te),St=_n.maxCount,Ft=_n.flattenOptions,Vt=_n.onActiveValue,Ut=_n.defaultActiveFirstOption,jt=_n.onSelect,qt=_n.menuItemSelectedIcon,sn=_n.rawValues,on=_n.fieldNames,In=_n.virtual,Mn=_n.direction,dr=_n.listHeight,jn=_n.listItemHeight,Kn=_n.optionRender,er="".concat(vt,"-item"),Qn=(0,b.Z)(function(){return Ft},[Dt,Ft],function(On,an){return an[0]&&On[1]!==an[1]}),ar=C.useRef(null),Vn=C.useMemo(function(){return Xt&&ue(St)&&(sn==null?void 0:sn.size)>=St},[Xt,St,sn==null?void 0:sn.size]),qn=function(an){an.preventDefault()},or=function(an){var ln;(ln=ar.current)===null||ln===void 0||ln.scrollTo(typeof an=="number"?{index:an}:an)},cr=C.useCallback(function(On){return pn==="combobox"?!1:sn.has(On)},[pn,(0,ne.Z)(sn).toString(),sn.size]),rr=function(an){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Un=Qn.length,Yn=0;Yn<Un;Yn+=1){var lr=(an+Yn*ln+Un)%Un,Rr=Qn[lr]||{},Fn=Rr.group,pr=Rr.data;if(!Fn&&!(pr!=null&&pr.disabled)&&(cr(pr.value)||!Vn))return lr}return-1},nr=C.useState(function(){return rr(0)}),ir=(0,K.Z)(nr,2),Zn=ir[0],Mr=ir[1],$t=function(an){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Mr(an);var Un={source:ln?"keyboard":"mouse"},Yn=Qn[an];if(!Yn){Vt(null,-1,Un);return}Vt(Yn.value,an,Un)};(0,C.useEffect)(function(){$t(Ut!==!1?rr(0):-1)},[Qn.length,Sn]);var sr=C.useCallback(function(On){return pn==="combobox"?String(On).toLowerCase()===Sn.toLowerCase():sn.has(On)},[pn,Sn,(0,ne.Z)(sn).toString(),sn.size]);(0,C.useEffect)(function(){var On=setTimeout(function(){if(!Xt&&Dt&&sn.size===1){var ln=Array.from(sn)[0],Un=Qn.findIndex(function(Yn){var lr=Yn.data;return Sn?String(lr.value).startsWith(Sn):lr.value===ln});Un!==-1&&($t(Un),or(Un))}});if(Dt){var an;(an=ar.current)===null||an===void 0||an.scrollTo(void 0)}return function(){return clearTimeout(On)}},[Dt,Sn]);var hr=function(an){an!==void 0&&jt(an,{selected:!sn.has(an)}),Xt||Zt(!1)};if(C.useImperativeHandle(Me,function(){return{onKeyDown:function(an){var ln=an.which,Un=an.ctrlKey;switch(ln){case me.Z.N:case me.Z.P:case me.Z.UP:case me.Z.DOWN:{var Yn=0;if(ln===me.Z.UP?Yn=-1:ln===me.Z.DOWN?Yn=1:q()&&Un&&(ln===me.Z.N?Yn=1:ln===me.Z.P&&(Yn=-1)),Yn!==0){var lr=rr(Zn+Yn,Yn);or(lr),$t(lr,!0)}break}case me.Z.TAB:case me.Z.ENTER:{var Rr,Fn=Qn[Zn];Fn&&!(Fn!=null&&(Rr=Fn.data)!==null&&Rr!==void 0&&Rr.disabled)&&!Vn?hr(Fn.value):hr(void 0),Dt&&an.preventDefault();break}case me.Z.ESC:Zt(!1),Dt&&an.stopPropagation()}},onKeyUp:function(){},scrollTo:function(an){or(an)}}}),Qn.length===0)return C.createElement("div",{role:"listbox",id:"".concat(Et,"_list"),className:"".concat(er,"-empty"),onMouseDown:qn},yn);var Yr=Object.keys(on).map(function(On){return on[On]}),Kr=function(an){return an.label};function li(On,an){var ln=On.group;return{role:ln?"presentation":"option",id:"".concat(Et,"_list_").concat(an)}}var qr=function(an){var ln=Qn[an];if(!ln)return null;var Un=ln.data||{},Yn=Un.value,lr=ln.group,Rr=(0,Ie.Z)(Un,!0),Fn=Kr(ln);return ln?C.createElement("div",(0,o.Z)({"aria-label":typeof Fn=="string"&&!lr?Fn:null},Rr,{key:an},li(ln,an),{"aria-selected":sr(Yn)}),Yn):null},Hn={role:"listbox",id:"".concat(Et,"_list")};return C.createElement(C.Fragment,null,In&&C.createElement("div",(0,o.Z)({},Hn,{style:{height:0,width:0,overflow:"hidden"}}),qr(Zn-1),qr(Zn),qr(Zn+1)),C.createElement(He.Z,{itemKey:"key",ref:ar,data:Qn,height:dr,itemHeight:jn,fullHeight:!1,onMouseDown:qn,onScroll:Nn,virtual:In,direction:Mn,innerProps:In?null:Hn},function(On,an){var ln=On.group,Un=On.groupOption,Yn=On.data,lr=On.label,Rr=On.value,Fn=Yn.key;if(ln){var pr,Dr=(pr=Yn.title)!==null&&pr!==void 0?pr:It(lr)?lr.toString():void 0;return C.createElement("div",{className:S()(er,"".concat(er,"-group"),Yn.className),title:Dr},lr!==void 0?lr:Fn)}var Xr=Yn.disabled,pi=Yn.title,Li=Yn.children,Gr=Yn.style,Ii=Yn.className,Jr=(0,g.Z)(Yn,be),bi=(0,w.Z)(Jr,Yr),ri=cr(Rr),di=Xr||!ri&&Vn,ii="".concat(er,"-option"),Fi=S()(er,ii,Ii,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(ii,"-grouped"),Un),"".concat(ii,"-active"),Zn===an&&!di),"".concat(ii,"-disabled"),di),"".concat(ii,"-selected"),ri)),Lr=Kr(On),Oi=!qt||typeof qt=="function"||ri,Pi=typeof Lr=="number"?Lr:Lr||Rr,ki=It(Pi)?Pi.toString():void 0;return pi!==void 0&&(ki=pi),C.createElement("div",(0,o.Z)({},(0,Ie.Z)(bi),In?{}:li(On,an),{"aria-selected":sr(Rr),className:Fi,title:ki,onMouseMove:function(){Zn===an||di||$t(an)},onClick:function(){di||hr(Rr)},style:Gr}),C.createElement("div",{className:"".concat(ii,"-content")},typeof Kn=="function"?Kn(On,{index:an}):Pi),C.isValidElement(qt)||ri,Oi&&C.createElement(V,{className:"".concat(er,"-option-state"),customizeIcon:qt,customizeIconProps:{value:Rr,disabled:di,isSelected:ri}},ri?"\u2713":null))}))},rt=C.forwardRef(Be),ft=rt,ve=function(bt,_t){var Me=C.useRef({values:new Map,options:new Map}),ot=C.useMemo(function(){var Et=Me.current,Dt=Et.values,Xt=Et.options,pn=bt.map(function(yn){if(yn.label===void 0){var Nn;return(0,fe.Z)((0,fe.Z)({},yn),{},{label:(Nn=Dt.get(yn.value))===null||Nn===void 0?void 0:Nn.label})}return yn}),Sn=new Map,Zt=new Map;return pn.forEach(function(yn){Sn.set(yn.value,yn),Zt.set(yn.value,_t.get(yn.value)||Xt.get(yn.value))}),Me.current.values=Sn,Me.current.options=Zt,pn},[bt,_t]),vt=C.useCallback(function(Et){return _t.get(Et)||Me.current.options.get(Et)},[_t]);return[ot,vt]};function Se(bt,_t){return J(bt).join("").toUpperCase().includes(_t)}var We=function(bt,_t,Me,ot,vt){return C.useMemo(function(){if(!Me||ot===!1)return bt;var Et=_t.options,Dt=_t.label,Xt=_t.value,pn=[],Sn=typeof ot=="function",Zt=Me.toUpperCase(),yn=Sn?ot:function(_n,St){return vt?Se(St[vt],Zt):St[Et]?Se(St[Dt!=="children"?Dt:"label"],Zt):Se(St[Xt],Zt)},Nn=Sn?function(_n){return ye(_n)}:function(_n){return _n};return bt.forEach(function(_n){if(_n[Et]){var St=yn(Me,Nn(_n));if(St)pn.push(_n);else{var Ft=_n[Et].filter(function(Vt){return yn(Me,Nn(Vt))});Ft.length&&pn.push((0,fe.Z)((0,fe.Z)({},_n),{},(0,j.Z)({},Et,Ft)))}return}yn(Me,Nn(_n))&&pn.push(_n)}),pn},[bt,ot,vt,Me,_t])},ze=d(6551),M=d(11592),dt=["children","value"],Ee=["children"];function Tt(bt){var _t=bt,Me=_t.key,ot=_t.props,vt=ot.children,Et=ot.value,Dt=(0,g.Z)(ot,dt);return(0,fe.Z)({key:Me,value:Et!==void 0?Et:Me,children:vt},Dt)}function Kt(bt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,M.Z)(bt).map(function(Me,ot){if(!C.isValidElement(Me)||!Me.type)return null;var vt=Me,Et=vt.type.isSelectOptGroup,Dt=vt.key,Xt=vt.props,pn=Xt.children,Sn=(0,g.Z)(Xt,Ee);return _t||!Et?Tt(Me):(0,fe.Z)((0,fe.Z)({key:"__RC_SELECT_GRP__".concat(Dt===null?ot:Dt,"__"),label:Dt},Sn),{},{options:Kt(pn)})}).filter(function(Me){return Me})}var Jt=function(_t,Me,ot,vt,Et){return C.useMemo(function(){var Dt=_t,Xt=!_t;Xt&&(Dt=Kt(Me));var pn=new Map,Sn=new Map,Zt=function(_n,St,Ft){Ft&&typeof Ft=="string"&&_n.set(St[Ft],St)},yn=function Nn(_n){for(var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=0;Ft<_n.length;Ft+=1){var Vt=_n[Ft];!Vt[ot.options]||St?(pn.set(Vt[ot.value],Vt),Zt(Sn,Vt,ot.label),Zt(Sn,Vt,vt),Zt(Sn,Vt,Et)):Nn(Vt[ot.options],!0)}};return yn(Dt),{options:Dt,valueOptions:pn,labelOptions:Sn}},[_t,Me,ot,vt,Et])},un=Jt;function gn(bt){var _t=C.useRef();_t.current=bt;var Me=C.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return Me}function En(bt){var _t=bt.mode,Me=bt.options,ot=bt.children,vt=bt.backfill,Et=bt.allowClear,Dt=bt.placeholder,Xt=bt.getInputElement,pn=bt.showSearch,Sn=bt.onSearch,Zt=bt.defaultOpen,yn=bt.autoFocus,Nn=bt.labelInValue,_n=bt.value,St=bt.inputValue,Ft=bt.optionLabelProp,Vt=isMultiple(_t),Ut=pn!==void 0?pn:Vt||_t==="combobox",jt=Me||convertChildrenToData(ot);if(warning(_t!=="tags"||jt.every(function(In){return!In.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_t==="tags"||_t==="combobox"){var qt=jt.some(function(In){return In.options?In.options.some(function(Mn){return typeof("value"in Mn?Mn.value:Mn.key)=="number"}):typeof("value"in In?In.value:In.key)=="number"});warning(!qt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_t!=="combobox"||!Ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_t==="combobox"||!vt,"`backfill` only works with `combobox` mode."),warning(_t==="combobox"||!Xt,"`getInputElement` only work with `combobox` mode."),noteOnce(_t!=="combobox"||!Xt||!Et||!Dt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Sn&&!Ut&&_t!=="combobox"&&_t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Zt||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_n!=null){var sn=toArray(_n);warning(!Nn||sn.every(function(In){return _typeof(In)==="object"&&("key"in In||"value"in In)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Vt||Array.isArray(_n),"`value` should be array when `mode` is `multiple` or `tags`")}if(ot){var on=null;toNodeArray(ot).some(function(In){if(!React.isValidElement(In)||!In.type)return!1;var Mn=In,dr=Mn.type;if(dr.isSelectOption)return!1;if(dr.isSelectOptGroup){var jn=toNodeArray(In.props.children).every(function(Kn){return!React.isValidElement(Kn)||!In.type||Kn.type.isSelectOption?!0:(on=Kn.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(St===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(bt,_t){if(bt){var Me=function ot(vt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=0;Dt<vt.length;Dt++){var Xt=vt[Dt];if(Xt[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Et&&Array.isArray(Xt[_t==null?void 0:_t.options])&&ot(Xt[_t==null?void 0:_t.options],!0))break}};Me(bt)}}var Wn=null,Tn=["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"],Jn=["inputValue"];function vn(bt){return!bt||(0,re.Z)(bt)!=="object"}var Gt=C.forwardRef(function(bt,_t){var Me=bt.id,ot=bt.mode,vt=bt.prefixCls,Et=vt===void 0?"rc-select":vt,Dt=bt.backfill,Xt=bt.fieldNames,pn=bt.inputValue,Sn=bt.searchValue,Zt=bt.onSearch,yn=bt.autoClearSearchValue,Nn=yn===void 0?!0:yn,_n=bt.onSelect,St=bt.onDeselect,Ft=bt.dropdownMatchSelectWidth,Vt=Ft===void 0?!0:Ft,Ut=bt.filterOption,jt=bt.filterSort,qt=bt.optionFilterProp,sn=bt.optionLabelProp,on=bt.options,In=bt.optionRender,Mn=bt.children,dr=bt.defaultActiveFirstOption,jn=bt.menuItemSelectedIcon,Kn=bt.virtual,er=bt.direction,Qn=bt.listHeight,ar=Qn===void 0?200:Qn,Vn=bt.listItemHeight,qn=Vn===void 0?20:Vn,or=bt.labelRender,cr=bt.value,rr=bt.defaultValue,nr=bt.labelInValue,ir=bt.onChange,Zn=bt.maxCount,Mr=(0,g.Z)(bt,Tn),$t=(0,ze.ZP)(Me),sr=ct(ot),hr=!!(!on&&Mn),Yr=C.useMemo(function(){return Ut===void 0&&ot==="combobox"?!1:Ut},[Ut,ot]),Kr=C.useMemo(function(){return ge(Xt,hr)},[JSON.stringify(Xt),hr]),li=(0,oe.Z)("",{value:Sn!==void 0?Sn:pn,postState:function(zr){return zr||""}}),qr=(0,K.Z)(li,2),Hn=qr[0],On=qr[1],an=un(on,Mn,Kr,qt,sn),ln=an.valueOptions,Un=an.labelOptions,Yn=an.options,lr=C.useCallback(function(xr){var zr=J(xr);return zr.map(function(Sr){var Fr,ui,Si,sa,ur;if(vn(Sr))Fr=Sr;else{var Ir;Si=Sr.key,ui=Sr.label,Fr=(Ir=Sr.value)!==null&&Ir!==void 0?Ir:Si}var ei=ln.get(Fr);if(ei){var $r;if(ui===void 0&&(ui=ei==null?void 0:ei[sn||Kr.label]),Si===void 0&&(Si=($r=ei==null?void 0:ei.key)!==null&&$r!==void 0?$r:Fr),sa=ei==null?void 0:ei.disabled,ur=ei==null?void 0:ei.title,0)var ti}return{label:ui,value:Fr,key:Si,disabled:sa,title:ur}})},[Kr,sn,ln]),Rr=(0,oe.Z)(rr,{value:cr}),Fn=(0,K.Z)(Rr,2),pr=Fn[0],Dr=Fn[1],Xr=C.useMemo(function(){var xr,zr=sr&&pr===null?[]:pr,Sr=lr(zr);return ot==="combobox"&&se((xr=Sr[0])===null||xr===void 0?void 0:xr.value)?[]:Sr},[pr,lr,ot,sr]),pi=ve(Xr,ln),Li=(0,K.Z)(pi,2),Gr=Li[0],Ii=Li[1],Jr=C.useMemo(function(){if(!ot&&Gr.length===1){var xr=Gr[0];if(xr.value===null&&(xr.label===null||xr.label===void 0))return[]}return Gr.map(function(zr){var Sr;return(0,fe.Z)((0,fe.Z)({},zr),{},{label:(Sr=typeof or=="function"?or(zr):zr.label)!==null&&Sr!==void 0?Sr:zr.value})})},[ot,Gr,or]),bi=C.useMemo(function(){return new Set(Gr.map(function(xr){return xr.value}))},[Gr]);C.useEffect(function(){if(ot==="combobox"){var xr,zr=(xr=Gr[0])===null||xr===void 0?void 0:xr.value;On(R(zr)?String(zr):"")}},[Gr]);var ri=gn(function(xr,zr){var Sr=zr!=null?zr:xr;return(0,j.Z)((0,j.Z)({},Kr.value,xr),Kr.label,Sr)}),di=C.useMemo(function(){if(ot!=="tags")return Yn;var xr=(0,ne.Z)(Yn),zr=function(Fr){return ln.has(Fr)};return(0,ne.Z)(Gr).sort(function(Sr,Fr){return Sr.value<Fr.value?-1:1}).forEach(function(Sr){var Fr=Sr.value;zr(Fr)||xr.push(ri(Fr,Sr.label))}),xr},[ri,Yn,ln,Gr,ot]),ii=We(di,Kr,Hn,Yr,qt),Fi=C.useMemo(function(){return ot!=="tags"||!Hn||ii.some(function(xr){return xr[qt||"value"]===Hn})||ii.some(function(xr){return xr[Kr.value]===Hn})?ii:[ri(Hn)].concat((0,ne.Z)(ii))},[ri,qt,ot,ii,Hn,Kr]),Lr=function xr(zr){var Sr=(0,ne.Z)(zr).sort(function(Fr,ui){return jt(Fr,ui,{searchValue:Hn})});return Sr.map(function(Fr){return Array.isArray(Fr.options)?(0,fe.Z)((0,fe.Z)({},Fr),{},{options:Fr.options.length>0?xr(Fr.options):Fr.options}):Fr})},Oi=C.useMemo(function(){return jt?Lr(Fi):Fi},[Fi,jt,Hn]),Pi=C.useMemo(function(){return pe(Oi,{fieldNames:Kr,childrenAsData:hr})},[Oi,Kr,hr]),ki=function(zr){var Sr=lr(zr);if(Dr(Sr),ir&&(Sr.length!==Gr.length||Sr.some(function(Si,sa){var ur;return((ur=Gr[sa])===null||ur===void 0?void 0:ur.value)!==(Si==null?void 0:Si.value)}))){var Fr=nr?Sr:Sr.map(function(Si){return Si.value}),ui=Sr.map(function(Si){return ye(Ii(Si.value))});ir(sr?Fr:Fr[0],sr?ui:ui[0])}},yr=C.useState(null),Gn=(0,K.Z)(yr,2),mi=Gn[0],Ln=Gn[1],Bi=C.useState(0),Fa=(0,K.Z)(Bi,2),va=Fa[0],aa=Fa[1],la=dr!==void 0?dr:ot!=="combobox",Or=C.useCallback(function(xr,zr){var Sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fr=Sr.source,ui=Fr===void 0?"keyboard":Fr;aa(zr),Dt&&ot==="combobox"&&xr!==null&&ui==="keyboard"&&Ln(String(xr))},[Dt,ot]),Gi=function(zr,Sr,Fr){var ui=function(){var Ea,pa=Ii(zr);return[nr?{label:pa==null?void 0:pa[Kr.label],value:zr,key:(Ea=pa==null?void 0:pa.key)!==null&&Ea!==void 0?Ea:zr}:zr,ye(pa)]};if(Sr&&_n){var Si=ui(),sa=(0,K.Z)(Si,2),ur=sa[0],Ir=sa[1];_n(ur,Ir)}else if(!Sr&&St&&Fr!=="clear"){var ei=ui(),$r=(0,K.Z)(ei,2),ti=$r[0],xa=$r[1];St(ti,xa)}},da=gn(function(xr,zr){var Sr,Fr=sr?zr.selected:!0;Fr?Sr=sr?[].concat((0,ne.Z)(Gr),[xr]):[xr]:Sr=Gr.filter(function(ui){return ui.value!==xr}),ki(Sr),Gi(xr,Fr),ot==="combobox"?Ln(""):(!ct||Nn)&&(On(""),Ln(""))}),Sa=function(zr,Sr){ki(zr);var Fr=Sr.type,ui=Sr.values;(Fr==="remove"||Fr==="clear")&&ui.forEach(function(Si){Gi(Si.value,!1,Fr)})},ci=function(zr,Sr){if(On(zr),Ln(null),Sr.source==="submit"){var Fr=(zr||"").trim();if(Fr){var ui=Array.from(new Set([].concat((0,ne.Z)(bi),[Fr])));ki(ui),Gi(Fr,!0),On("")}return}Sr.source!=="blur"&&(ot==="combobox"&&ki(zr),Zt==null||Zt(zr))},Ki=function(zr){var Sr=zr;ot!=="tags"&&(Sr=zr.map(function(ui){var Si=Un.get(ui);return Si==null?void 0:Si.value}).filter(function(ui){return ui!==void 0}));var Fr=Array.from(new Set([].concat((0,ne.Z)(bi),(0,ne.Z)(Sr))));ki(Fr),Fr.forEach(function(ui){Gi(ui,!0)})},na=C.useMemo(function(){var xr=Kn!==!1&&Vt!==!1;return(0,fe.Z)((0,fe.Z)({},an),{},{flattenOptions:Pi,onActiveValue:Or,defaultActiveFirstOption:la,onSelect:da,menuItemSelectedIcon:jn,rawValues:bi,fieldNames:Kr,virtual:xr,direction:er,listHeight:ar,listItemHeight:qn,childrenAsData:hr,maxCount:Zn,optionRender:In})},[Zn,an,Pi,Or,la,da,jn,bi,Kr,Kn,Vt,er,ar,qn,hr,In]);return C.createElement(te.Provider,{value:na},C.createElement(Ge,(0,o.Z)({},Mr,{id:$t,prefixCls:Et,ref:_t,omitDomProps:Jn,mode:ot,displayValues:Jr,onDisplayValuesChange:Sa,direction:er,searchValue:Hn,onSearch:ci,autoClearSearchValue:Nn,onSearchSplit:Ki,dropdownMatchSelectWidth:Vt,OptionList:ft,emptyOptions:!Pi.length,activeValue:mi,activeDescendantId:"".concat($t,"_list_").concat(va)})))}),Qt=Gt;Qt.Option=Ye,Qt.OptGroup=ht;var Dn=Qt,An=Dn},22711:function(mn,gt,d){"use strict";d.r(gt),d.d(gt,{ResizableTextArea:function(){return Te},default:function(){return X}});var o=d(60499),ne=d(18642),j=d(85899),fe=d(77654),K=d(72190),g=d(42244),re=d(92310),oe=d.n(re),l=d(36901),C=d(66003),N=d(30292),S=d(18929),_=d(59301),T=d(43749),k=d(29301),W=d(34280),V=d(16089),$=`
|
|
|
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;
|
|
|
`,I=["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"],G={},F;function L(J){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(Q&&G[E])return G[E];var R=window.getComputedStyle(J),se=R.getPropertyValue("box-sizing")||R.getPropertyValue("-moz-box-sizing")||R.getPropertyValue("-webkit-box-sizing"),we=parseFloat(R.getPropertyValue("padding-bottom"))+parseFloat(R.getPropertyValue("padding-top")),Ve=parseFloat(R.getPropertyValue("border-bottom-width"))+parseFloat(R.getPropertyValue("border-top-width")),lt=I.map(function(je){return"".concat(je,":").concat(R.getPropertyValue(je))}).join(";"),xe={sizingStyle:lt,paddingSize:we,borderSize:Ve,boxSizing:se};return Q&&E&&(G[E]=xe),xe}function ae(J){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),F.setAttribute("name","hiddenTextarea"),document.body.appendChild(F)),J.getAttribute("wrap")?F.setAttribute("wrap",J.getAttribute("wrap")):F.removeAttribute("wrap");var se=L(J,Q),we=se.paddingSize,Ve=se.borderSize,lt=se.boxSizing,xe=se.sizingStyle;F.setAttribute("style","".concat(xe,";").concat($)),F.value=J.value||J.placeholder||"";var je=void 0,Qe=void 0,it,De=F.scrollHeight;if(lt==="border-box"?De+=Ve:lt==="content-box"&&(De-=we),E!==null||R!==null){F.value=" ";var wt=F.scrollHeight-we;E!==null&&(je=wt*E,lt==="border-box"&&(je=je+we+Ve),De=Math.max(je,De)),R!==null&&(Qe=wt*R,lt==="border-box"&&(Qe=Qe+we+Ve),it=De>Qe?"":"hidden",De=Math.min(Qe,De))}var et={height:De,overflowY:it,resize:"none"};return je&&(et.minHeight=je),Qe&&(et.maxHeight=Qe),et}var me=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],de=0,Ie=1,Fe=2,_e=_.forwardRef(function(J,Q){var E=J,R=E.prefixCls,se=E.defaultValue,we=E.value,Ve=E.autoSize,lt=E.onResize,xe=E.className,je=E.style,Qe=E.disabled,it=E.onChange,De=E.onInternalAutoSize,wt=(0,g.Z)(E,me),et=(0,S.Z)(se,{value:we,postState:function(Ye){return Ye!=null?Ye:""}}),Ot=(0,K.Z)(et,2),qe=Ot[0],Xe=Ot[1],Ue=function(Ye){Xe(Ye.target.value),it==null||it(Ye)},ke=_.useRef();_.useImperativeHandle(Q,function(){return{textArea:ke.current}});var ie=_.useMemo(function(){return Ve&&(0,T.Z)(Ve)==="object"?[Ve.minRows,Ve.maxRows]:[]},[Ve]),$e=(0,K.Z)(ie,2),Pe=$e[0],z=$e[1],D=!!Ve,ue=function(){try{if(document.activeElement===ke.current){var Ye=ke.current,b=Ye.selectionStart,w=Ye.selectionEnd,He=Ye.scrollTop;ke.current.setSelectionRange(b,w),ke.current.scrollTop=He}}catch(q){}},ge=_.useState(Fe),pe=(0,K.Z)(ge,2),ye=pe[0],Re=pe[1],Ze=_.useState(),te=(0,K.Z)(Ze,2),le=te[0],tt=te[1],nt=function(){Re(de)};(0,W.Z)(function(){D&&nt()},[we,Pe,z,D]),(0,W.Z)(function(){if(ye===de)Re(Ie);else if(ye===Ie){var Ce=ae(ke.current,!1,Pe,z);Re(Fe),tt(Ce)}else ue()},[ye]);var ct=_.useRef(),ut=function(){V.Z.cancel(ct.current)},Ge=function(Ye){ye===Fe&&(lt==null||lt(Ye),Ve&&(ut(),ct.current=(0,V.Z)(function(){nt()})))};_.useEffect(function(){return ut},[]);var yt=D?le:null,ht=(0,j.Z)((0,j.Z)({},je),yt);return(ye===de||ye===Ie)&&(ht.overflowY="hidden",ht.overflowX="hidden"),_.createElement(k.Z,{onResize:Ge,disabled:!(Ve||lt)},_.createElement("textarea",(0,o.Z)({},wt,{ref:ke,style:ht,className:oe()(R,xe,(0,ne.Z)({},"".concat(R,"-disabled"),Qe)),disabled:Qe,value:qe,onChange:Ue})))}),Te=_e,ee=["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"],B=_.forwardRef(function(J,Q){var E,R=J.defaultValue,se=J.value,we=J.onFocus,Ve=J.onBlur,lt=J.onChange,xe=J.allowClear,je=J.maxLength,Qe=J.onCompositionStart,it=J.onCompositionEnd,De=J.suffix,wt=J.prefixCls,et=wt===void 0?"rc-textarea":wt,Ot=J.showCount,qe=J.count,Xe=J.className,Ue=J.style,ke=J.disabled,ie=J.hidden,$e=J.classNames,Pe=J.styles,z=J.onResize,D=J.onClear,ue=J.onPressEnter,ge=J.readOnly,pe=J.autoSize,ye=J.onKeyDown,Re=(0,g.Z)(J,ee),Ze=(0,S.Z)(R,{value:se,defaultValue:R}),te=(0,K.Z)(Ze,2),le=te[0],tt=te[1],nt=le==null?"":String(le),ct=_.useState(!1),ut=(0,K.Z)(ct,2),Ge=ut[0],yt=ut[1],ht=_.useRef(!1),Ce=_.useState(null),Ye=(0,K.Z)(Ce,2),b=Ye[0],w=Ye[1],He=(0,_.useRef)(null),q=(0,_.useRef)(null),be=function(){var Qt;return(Qt=q.current)===null||Qt===void 0?void 0:Qt.textArea},It=function(){be().focus()};(0,_.useImperativeHandle)(Q,function(){var Gt;return{resizableTextArea:q.current,focus:It,blur:function(){be().blur()},nativeElement:((Gt=He.current)===null||Gt===void 0?void 0:Gt.nativeElement)||be()}}),(0,_.useEffect)(function(){yt(function(Gt){return!ke&&Gt})},[ke]);var Be=_.useState(null),rt=(0,K.Z)(Be,2),ft=rt[0],ve=rt[1];_.useEffect(function(){if(ft){var Gt;(Gt=be()).setSelectionRange.apply(Gt,(0,fe.Z)(ft))}},[ft]);var Se=(0,C.Z)(qe,Ot),We=(E=Se.max)!==null&&E!==void 0?E:je,ze=Number(We)>0,M=Se.strategy(nt),dt=!!We&&M>We,Ee=function(Qt,Dn){var An=Dn;!ht.current&&Se.exceedFormatter&&Se.max&&Se.strategy(Dn)>Se.max&&(An=Se.exceedFormatter(Dn,{max:Se.max}),Dn!==An&&ve([be().selectionStart||0,be().selectionEnd||0])),tt(An),(0,N.rJ)(Qt.currentTarget,Qt,lt,An)},Tt=function(Qt){ht.current=!0,Qe==null||Qe(Qt)},Kt=function(Qt){ht.current=!1,Ee(Qt,Qt.currentTarget.value),it==null||it(Qt)},Jt=function(Qt){Ee(Qt,Qt.target.value)},un=function(Qt){Qt.key==="Enter"&&ue&&ue(Qt),ye==null||ye(Qt)},gn=function(Qt){yt(!0),we==null||we(Qt)},En=function(Qt){yt(!1),Ve==null||Ve(Qt)},Bn=function(Qt){tt(""),It(),(0,N.rJ)(be(),Qt,lt)},Wn=De,Tn;Se.show&&(Se.showFormatter?Tn=Se.showFormatter({value:nt,count:M,maxLength:We}):Tn="".concat(M).concat(ze?" / ".concat(We):""),Wn=_.createElement(_.Fragment,null,Wn,_.createElement("span",{className:oe()("".concat(et,"-data-count"),$e==null?void 0:$e.count),style:Pe==null?void 0:Pe.count},Tn)));var Jn=function(Qt){var Dn;z==null||z(Qt),(Dn=be())!==null&&Dn!==void 0&&Dn.style.height&&w(!0)},vn=!pe&&!Ot&&!xe;return _.createElement(l.BaseInput,{ref:He,value:nt,allowClear:xe,handleReset:Bn,suffix:Wn,prefixCls:et,classNames:(0,j.Z)((0,j.Z)({},$e),{},{affixWrapper:oe()($e==null?void 0:$e.affixWrapper,(0,ne.Z)((0,ne.Z)({},"".concat(et,"-show-count"),Ot),"".concat(et,"-textarea-allow-clear"),xe))}),disabled:ke,focused:Ge,className:oe()(Xe,dt&&"".concat(et,"-out-of-range")),style:(0,j.Z)((0,j.Z)({},Ue),b&&!vn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Tn=="string"?Tn:void 0}},hidden:ie,readOnly:ge,onClear:D},_.createElement(Te,(0,o.Z)({},Re,{autoSize:pe,maxLength:je,onKeyDown:un,onChange:Jt,onFocus:gn,onBlur:En,onCompositionStart:Tt,onCompositionEnd:Kt,className:oe()($e==null?void 0:$e.textarea),style:(0,j.Z)((0,j.Z)({},Pe==null?void 0:Pe.textarea),{},{resize:Ue==null?void 0:Ue.resize}),disabled:ke,prefixCls:et,onResize:Jn,ref:q,readOnly:ge})))}),A=B,X=A},29125:function(mn,gt,d){"use strict";d.d(gt,{G:function(){return fe},Z:function(){return $}});var o=d(92310),ne=d.n(o),j=d(59301);function fe(I){var G=I.children,F=I.prefixCls,L=I.id,ae=I.overlayInnerStyle,me=I.bodyClassName,de=I.className,Ie=I.style;return j.createElement("div",{className:ne()("".concat(F,"-content"),de),style:Ie},j.createElement("div",{className:ne()("".concat(F,"-inner"),me),id:L,role:"tooltip",style:ae},typeof G=="function"?G():G))}var K=d(60499),g=d(85899),re=d(42244),oe=d(68196),l={shiftX:64,adjustY:1},C={adjustX:1,shiftY:!0},N=[0,0],S={left:{points:["cr","cl"],overflow:C,offset:[-4,0],targetOffset:N},right:{points:["cl","cr"],overflow:C,offset:[4,0],targetOffset:N},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:N},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:N},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:N},leftTop:{points:["tr","tl"],overflow:C,offset:[-4,0],targetOffset:N},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:N},rightTop:{points:["tl","tr"],overflow:C,offset:[4,0],targetOffset:N},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:N},rightBottom:{points:["bl","br"],overflow:C,offset:[4,0],targetOffset:N},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:N},leftBottom:{points:["br","bl"],overflow:C,offset:[-4,0],targetOffset:N}},_=null,T=d(80402),k=["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(G,F){var L=G.overlayClassName,ae=G.trigger,me=ae===void 0?["hover"]:ae,de=G.mouseEnterDelay,Ie=de===void 0?0:de,Fe=G.mouseLeaveDelay,_e=Fe===void 0?.1:Fe,Te=G.overlayStyle,ee=G.prefixCls,B=ee===void 0?"rc-tooltip":ee,A=G.children,X=G.onVisibleChange,J=G.afterVisibleChange,Q=G.transitionName,E=G.animation,R=G.motion,se=G.placement,we=se===void 0?"right":se,Ve=G.align,lt=Ve===void 0?{}:Ve,xe=G.destroyTooltipOnHide,je=xe===void 0?!1:xe,Qe=G.defaultVisible,it=G.getTooltipContainer,De=G.overlayInnerStyle,wt=G.arrowContent,et=G.overlay,Ot=G.id,qe=G.showArrow,Xe=qe===void 0?!0:qe,Ue=G.classNames,ke=G.styles,ie=(0,re.Z)(G,k),$e=(0,T.Z)(Ot),Pe=(0,j.useRef)(null);(0,j.useImperativeHandle)(F,function(){return Pe.current});var z=(0,g.Z)({},ie);"visible"in G&&(z.popupVisible=G.visible);var D=function(){return j.createElement(fe,{key:"content",prefixCls:B,id:$e,bodyClassName:Ue==null?void 0:Ue.body,overlayInnerStyle:(0,g.Z)((0,g.Z)({},De),ke==null?void 0:ke.body)},et)},ue=function(){var pe=j.Children.only(A),ye=(pe==null?void 0:pe.props)||{},Re=(0,g.Z)((0,g.Z)({},ye),{},{"aria-describedby":et?$e:null});return j.cloneElement(A,Re)};return j.createElement(oe.Z,(0,K.Z)({popupClassName:ne()(L,Ue==null?void 0:Ue.root),prefixCls:B,popup:D,action:me,builtinPlacements:S,popupPlacement:we,ref:Pe,popupAlign:lt,getPopupContainer:it,onPopupVisibleChange:X,afterPopupVisibleChange:J,popupTransitionName:Q,popupAnimation:E,popupMotion:R,defaultPopupVisible:Qe,autoDestroy:je,mouseLeaveDelay:_e,popupStyle:(0,g.Z)((0,g.Z)({},Te),ke==null?void 0:ke.root),mouseEnterDelay:Ie,arrow:Xe},z),ue())},V=(0,j.forwardRef)(W),$=V},639:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return G}});var o=d(60499),ne=d(18642),j=d(85899),fe=d(72190),K=d(42244),g=d(59301),re=d(92310),oe=d.n(re),l=d(26112),C=d(30699),N=function(L){for(var ae=L.prefixCls,me=L.level,de=L.isStart,Ie=L.isEnd,Fe="".concat(ae,"-indent-unit"),_e=[],Te=0;Te<me;Te+=1)_e.push(g.createElement("span",{key:Te,className:oe()(Fe,(0,ne.Z)((0,ne.Z)({},"".concat(Fe,"-start"),de[Te]),"".concat(Fe,"-end"),Ie[Te]))}));return g.createElement("span",{"aria-hidden":"true",className:"".concat(ae,"-indent")},_e)},S=g.memo(N),_=d(65065),T=d(34061),k=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",V="close",$="---",I=function(L){var ae,me,de,Ie=L.eventKey,Fe=L.className,_e=L.style,Te=L.dragOver,ee=L.dragOverGapTop,B=L.dragOverGapBottom,A=L.isLeaf,X=L.isStart,J=L.isEnd,Q=L.expanded,E=L.selected,R=L.checked,se=L.halfChecked,we=L.loading,Ve=L.domRef,lt=L.active,xe=L.data,je=L.onMouseMove,Qe=L.selectable,it=(0,K.Z)(L,k),De=g.useContext(C.k),wt=g.useContext(C.y),et=g.useRef(null),Ot=g.useState(!1),qe=(0,fe.Z)(Ot,2),Xe=qe[0],Ue=qe[1],ke=!!(De.disabled||L.disabled||(ae=wt.nodeDisabled)!==null&&ae!==void 0&&ae.call(wt,xe)),ie=g.useMemo(function(){return!De.checkable||L.checkable===!1?!1:De.checkable},[De.checkable,L.checkable]),$e=function(M){ke||De.onNodeSelect(M,(0,T.F)(L))},Pe=function(M){ke||!ie||L.disableCheckbox||De.onNodeCheck(M,(0,T.F)(L),!R)},z=g.useMemo(function(){return typeof Qe=="boolean"?Qe:De.selectable},[Qe,De.selectable]),D=function(M){De.onNodeClick(M,(0,T.F)(L)),z?$e(M):Pe(M)},ue=function(M){De.onNodeDoubleClick(M,(0,T.F)(L))},ge=function(M){De.onNodeMouseEnter(M,(0,T.F)(L))},pe=function(M){De.onNodeMouseLeave(M,(0,T.F)(L))},ye=function(M){De.onNodeContextMenu(M,(0,T.F)(L))},Re=g.useMemo(function(){return!!(De.draggable&&(!De.draggable.nodeDraggable||De.draggable.nodeDraggable(xe)))},[De.draggable,xe]),Ze=function(M){M.stopPropagation(),Ue(!0),De.onNodeDragStart(M,L);try{M.dataTransfer.setData("text/plain","")}catch(dt){}},te=function(M){M.preventDefault(),M.stopPropagation(),De.onNodeDragEnter(M,L)},le=function(M){M.preventDefault(),M.stopPropagation(),De.onNodeDragOver(M,L)},tt=function(M){M.stopPropagation(),De.onNodeDragLeave(M,L)},nt=function(M){M.stopPropagation(),Ue(!1),De.onNodeDragEnd(M,L)},ct=function(M){M.preventDefault(),M.stopPropagation(),Ue(!1),De.onNodeDrop(M,L)},ut=function(M){we||De.onNodeExpand(M,(0,T.F)(L))},Ge=g.useMemo(function(){var ze=(0,_.Z)(De.keyEntities,Ie)||{},M=ze.children;return!!(M||[]).length},[De.keyEntities,Ie]),yt=g.useMemo(function(){return A===!1?!1:A||!De.loadData&&!Ge||De.loadData&&L.loaded&&!Ge},[A,De.loadData,Ge,L.loaded]);g.useEffect(function(){we||typeof De.loadData=="function"&&Q&&!yt&&!L.loaded&&De.onNodeLoad((0,T.F)(L))},[we,De.loadData,De.onNodeLoad,Q,yt,L]);var ht=g.useMemo(function(){var ze;return(ze=De.draggable)!==null&&ze!==void 0&&ze.icon?g.createElement("span",{className:"".concat(De.prefixCls,"-draggable-icon")},De.draggable.icon):null},[De.draggable]),Ce=function(M){var dt=L.switcherIcon||De.switcherIcon;return typeof dt=="function"?dt((0,j.Z)((0,j.Z)({},L),{},{isLeaf:M})):dt},Ye=function(){if(yt){var M=Ce(!0);return M!==!1?g.createElement("span",{className:oe()("".concat(De.prefixCls,"-switcher"),"".concat(De.prefixCls,"-switcher-noop"))},M):null}var dt=Ce(!1);return dt!==!1?g.createElement("span",{onClick:ut,className:oe()("".concat(De.prefixCls,"-switcher"),"".concat(De.prefixCls,"-switcher_").concat(Q?W:V))},dt):null},b=g.useMemo(function(){if(!ie)return null;var ze=typeof ie!="boolean"?ie:null;return g.createElement("span",{className:oe()("".concat(De.prefixCls,"-checkbox"),(0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(De.prefixCls,"-checkbox-checked"),R),"".concat(De.prefixCls,"-checkbox-indeterminate"),!R&&se),"".concat(De.prefixCls,"-checkbox-disabled"),ke||L.disableCheckbox)),onClick:Pe,role:"checkbox","aria-checked":se?"mixed":R,"aria-disabled":ke||L.disableCheckbox,"aria-label":"Select ".concat(typeof L.title=="string"?L.title:"tree node")},ze)},[ie,R,se,ke,L.disableCheckbox,L.title]),w=g.useMemo(function(){return yt?null:Q?W:V},[yt,Q]),He=g.useMemo(function(){return g.createElement("span",{className:oe()("".concat(De.prefixCls,"-iconEle"),"".concat(De.prefixCls,"-icon__").concat(w||"docu"),(0,ne.Z)({},"".concat(De.prefixCls,"-icon_loading"),we))})},[De.prefixCls,w,we]),q=g.useMemo(function(){var ze=!!De.draggable,M=!L.disabled&&ze&&De.dragOverNodeKey===Ie;return M?De.dropIndicatorRender({dropPosition:De.dropPosition,dropLevelOffset:De.dropLevelOffset,indent:De.indent,prefixCls:De.prefixCls,direction:De.direction}):null},[De.dropPosition,De.dropLevelOffset,De.indent,De.prefixCls,De.direction,De.draggable,De.dragOverNodeKey,De.dropIndicatorRender]),be=g.useMemo(function(){var ze=L.title,M=ze===void 0?$:ze,dt="".concat(De.prefixCls,"-node-content-wrapper"),Ee;if(De.showIcon){var Tt=L.icon||De.icon;Ee=Tt?g.createElement("span",{className:oe()("".concat(De.prefixCls,"-iconEle"),"".concat(De.prefixCls,"-icon__customize"))},typeof Tt=="function"?Tt(L):Tt):He}else De.loadData&&we&&(Ee=He);var Kt;return typeof M=="function"?Kt=M(xe):De.titleRender?Kt=De.titleRender(xe):Kt=M,g.createElement("span",{ref:et,title:typeof M=="string"?M:"",className:oe()(dt,"".concat(dt,"-").concat(w||"normal"),(0,ne.Z)({},"".concat(De.prefixCls,"-node-selected"),!ke&&(E||Xe))),onMouseEnter:ge,onMouseLeave:pe,onContextMenu:ye,onClick:D,onDoubleClick:ue},Ee,g.createElement("span",{className:"".concat(De.prefixCls,"-title")},Kt),q)},[De.prefixCls,De.showIcon,L,De.icon,He,De.titleRender,xe,w,ge,pe,ye,D,ue]),It=(0,l.Z)(it,{aria:!0,data:!0}),Be=(0,_.Z)(De.keyEntities,Ie)||{},rt=Be.level,ft=J[J.length-1],ve=!ke&&Re,Se=De.draggingNodeKey===Ie,We=Qe!==void 0?{"aria-selected":!!Qe}:void 0;return g.createElement("div",(0,o.Z)({ref:Ve,role:"treeitem","aria-expanded":A?void 0:Q,className:oe()(Fe,"".concat(De.prefixCls,"-treenode"),(de={},(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)(de,"".concat(De.prefixCls,"-treenode-disabled"),ke),"".concat(De.prefixCls,"-treenode-switcher-").concat(Q?"open":"close"),!A),"".concat(De.prefixCls,"-treenode-checkbox-checked"),R),"".concat(De.prefixCls,"-treenode-checkbox-indeterminate"),se),"".concat(De.prefixCls,"-treenode-selected"),E),"".concat(De.prefixCls,"-treenode-loading"),we),"".concat(De.prefixCls,"-treenode-active"),lt),"".concat(De.prefixCls,"-treenode-leaf-last"),ft),"".concat(De.prefixCls,"-treenode-draggable"),Re),"dragging",Se),(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)(de,"drop-target",De.dropTargetKey===Ie),"drop-container",De.dropContainerKey===Ie),"drag-over",!ke&&Te),"drag-over-gap-top",!ke&&ee),"drag-over-gap-bottom",!ke&&B),"filter-node",(me=De.filterTreeNode)===null||me===void 0?void 0:me.call(De,(0,T.F)(L))),"".concat(De.prefixCls,"-treenode-leaf"),yt))),style:_e,draggable:ve,onDragStart:ve?Ze:void 0,onDragEnter:Re?te:void 0,onDragOver:Re?le:void 0,onDragLeave:Re?tt:void 0,onDrop:Re?ct:void 0,onDragEnd:Re?nt:void 0,onMouseMove:je},We,It),g.createElement(S,{prefixCls:De.prefixCls,level:rt,isStart:X,isEnd:J}),ht,Ye(),b,be)};I.isTreeNode=1;var G=I},30699:function(mn,gt,d){"use strict";d.d(gt,{k:function(){return ne},y:function(){return j}});var o=d(59301),ne=o.createContext(null),j=o.createContext({})},87632:function(mn,gt,d){"use strict";d.d(gt,{OF:function(){return Ie.Z},y6:function(){return V.y},ZP:function(){return ke}});var o=d(60499),ne=d(43749),j=d(85899),fe=d(77654),K=d(38705),g=d(17212),re=d(15793),oe=d(39153),l=d(55401),C=d(18642),N=d(92310),S=d.n(N),_=d(10228),T=d(26112),k=d(48736),W=d(59301),V=d(30699),$=function($e){var Pe=$e.dropPosition,z=$e.dropLevelOffset,D=$e.indent,ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Pe){case-1:ue.top=0,ue.left=-z*D;break;case 1:ue.bottom=0,ue.left=-z*D;break;case 0:ue.bottom=0,ue.left=D;break}return W.createElement("div",{style:ue})},I=$;function G(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}var F=d(72190),L=d(42244),ae=d(34280),me=d(48911),de=d(77900),Ie=d(639);function Fe(ie,$e){var Pe=W.useState(!1),z=(0,F.Z)(Pe,2),D=z[0],ue=z[1];(0,ae.Z)(function(){if(D)return ie(),function(){$e()}},[D]),(0,ae.Z)(function(){return ue(!0),function(){ue(!1)}},[])}var _e=Fe,Te=d(34061),ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],B=W.forwardRef(function(ie,$e){var Pe=ie.className,z=ie.style,D=ie.motion,ue=ie.motionNodes,ge=ie.motionType,pe=ie.onMotionStart,ye=ie.onMotionEnd,Re=ie.active,Ze=ie.treeNodeRequiredProps,te=(0,L.Z)(ie,ee),le=W.useState(!0),tt=(0,F.Z)(le,2),nt=tt[0],ct=tt[1],ut=W.useContext(V.k),Ge=ut.prefixCls,yt=ue&&ge!=="hide";(0,ae.Z)(function(){ue&&yt!==nt&&ct(yt)},[ue]);var ht=function(){ue&&pe()},Ce=W.useRef(!1),Ye=function(){ue&&!Ce.current&&(Ce.current=!0,ye())};_e(ht,Ye);var b=function(He){yt===He&&Ye()};return ue?W.createElement(de.default,(0,o.Z)({ref:$e,visible:nt},D,{motionAppear:ge==="show",onVisibleChanged:b}),function(w,He){var q=w.className,be=w.style;return W.createElement("div",{ref:He,className:S()("".concat(Ge,"-treenode-motion"),q),style:be},ue.map(function(It){var Be=Object.assign({},(G(It.data),It.data)),rt=It.title,ft=It.key,ve=It.isStart,Se=It.isEnd;delete Be.children;var We=(0,Te.H8)(ft,Ze);return W.createElement(Ie.Z,(0,o.Z)({},Be,We,{title:rt,active:Re,data:It.data,key:ft,isStart:ve,isEnd:Se}))}))}):W.createElement(Ie.Z,(0,o.Z)({domRef:$e,className:Pe,style:z},te,{active:Re}))}),A=B;function X(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pe=ie.length,z=$e.length;if(Math.abs(Pe-z)!==1)return{add:!1,key:null};function D(ue,ge){var pe=new Map;ue.forEach(function(Re){pe.set(Re,!0)});var ye=ge.filter(function(Re){return!pe.has(Re)});return ye.length===1?ye[0]:null}return Pe<z?{add:!0,key:D(ie,$e)}:{add:!1,key:D($e,ie)}}function J(ie,$e,Pe){var z=ie.findIndex(function(pe){return pe.key===Pe}),D=ie[z+1],ue=$e.findIndex(function(pe){return pe.key===Pe});if(D){var ge=$e.findIndex(function(pe){return pe.key===D.key});return $e.slice(ue+1,ge)}return $e.slice(ue+1)}var Q=["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"],E={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},se="RC_TREE_MOTION_".concat(Math.random()),we={key:se},Ve={key:se,level:0,index:0,pos:"0",node:we,nodes:[we]},lt={parent:null,children:[],pos:Ve.pos,data:we,title:null,key:se,isStart:[],isEnd:[]};function xe(ie,$e,Pe,z){return $e===!1||!Pe?ie:ie.slice(0,Math.ceil(Pe/z)+1)}function je(ie){var $e=ie.key,Pe=ie.pos;return(0,Te.km)($e,Pe)}function Qe(ie){for(var $e=String(ie.data.key),Pe=ie;Pe.parent;)Pe=Pe.parent,$e="".concat(Pe.data.key," > ").concat($e);return $e}var it=W.forwardRef(function(ie,$e){var Pe=ie.prefixCls,z=ie.data,D=ie.selectable,ue=ie.checkable,ge=ie.expandedKeys,pe=ie.selectedKeys,ye=ie.checkedKeys,Re=ie.loadedKeys,Ze=ie.loadingKeys,te=ie.halfCheckedKeys,le=ie.keyEntities,tt=ie.disabled,nt=ie.dragging,ct=ie.dragOverNodeKey,ut=ie.dropPosition,Ge=ie.motion,yt=ie.height,ht=ie.itemHeight,Ce=ie.virtual,Ye=ie.scrollWidth,b=ie.focusable,w=ie.activeItem,He=ie.focused,q=ie.tabIndex,be=ie.onKeyDown,It=ie.onFocus,Be=ie.onBlur,rt=ie.onActiveChange,ft=ie.onListChangeStart,ve=ie.onListChangeEnd,Se=(0,L.Z)(ie,Q),We=W.useRef(null),ze=W.useRef(null);W.useImperativeHandle($e,function(){return{scrollTo:function(Xt){We.current.scrollTo(Xt)},getIndentWidth:function(){return ze.current.offsetWidth}}});var M=W.useState(ge),dt=(0,F.Z)(M,2),Ee=dt[0],Tt=dt[1],Kt=W.useState(z),Jt=(0,F.Z)(Kt,2),un=Jt[0],gn=Jt[1],En=W.useState(z),Bn=(0,F.Z)(En,2),Wn=Bn[0],Tn=Bn[1],Jn=W.useState([]),vn=(0,F.Z)(Jn,2),Gt=vn[0],Qt=vn[1],Dn=W.useState(null),An=(0,F.Z)(Dn,2),bt=An[0],_t=An[1],Me=W.useRef(z);Me.current=z;function ot(){var Dt=Me.current;gn(Dt),Tn(Dt),Qt([]),_t(null),ve()}(0,ae.Z)(function(){Tt(ge);var Dt=X(Ee,ge);if(Dt.key!==null)if(Dt.add){var Xt=un.findIndex(function(_n){var St=_n.key;return St===Dt.key}),pn=xe(J(un,z,Dt.key),Ce,yt,ht),Sn=un.slice();Sn.splice(Xt+1,0,lt),Tn(Sn),Qt(pn),_t("show")}else{var Zt=z.findIndex(function(_n){var St=_n.key;return St===Dt.key}),yn=xe(J(z,un,Dt.key),Ce,yt,ht),Nn=z.slice();Nn.splice(Zt+1,0,lt),Tn(Nn),Qt(yn),_t("hide")}else un!==z&&(gn(z),Tn(z))},[ge,z]),W.useEffect(function(){nt||ot()},[nt]);var vt=Ge?Wn:z,Et={expandedKeys:ge,selectedKeys:pe,loadedKeys:Re,loadingKeys:Ze,checkedKeys:ye,halfCheckedKeys:te,dragOverNodeKey:ct,dropPosition:ut,keyEntities:le};return W.createElement(W.Fragment,null,He&&w&&W.createElement("span",{style:E,"aria-live":"assertive"},Qe(w)),W.createElement("div",null,W.createElement("input",{style:E,disabled:b===!1||tt,tabIndex:b!==!1?q:null,onKeyDown:be,onFocus:It,onBlur:Be,value:"",onChange:R,"aria-label":"for screen reader"})),W.createElement("div",{className:"".concat(Pe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},W.createElement("div",{className:"".concat(Pe,"-indent")},W.createElement("div",{ref:ze,className:"".concat(Pe,"-indent-unit")}))),W.createElement(me.Z,(0,o.Z)({},Se,{data:vt,itemKey:je,height:yt,fullHeight:!1,virtual:Ce,itemHeight:ht,scrollWidth:Ye,prefixCls:"".concat(Pe,"-list"),ref:We,role:"tree",onVisibleChange:function(Xt){Xt.every(function(pn){return je(pn)!==se})&&ot()}}),function(Dt){var Xt=Dt.pos,pn=Object.assign({},(G(Dt.data),Dt.data)),Sn=Dt.title,Zt=Dt.key,yn=Dt.isStart,Nn=Dt.isEnd,_n=(0,Te.km)(Zt,Xt);delete pn.key,delete pn.children;var St=(0,Te.H8)(_n,Et);return W.createElement(A,(0,o.Z)({},pn,St,{title:Sn,active:!!w&&Zt===w.key,pos:Xt,data:Dt.data,isStart:yn,isEnd:Nn,motion:Ge,motionNodes:Zt===se?Gt:null,motionType:bt,onMotionStart:ft,onMotionEnd:ot,treeNodeRequiredProps:Et,onMouseMove:function(){rt(null)}}))}))}),De=it,wt=d(82661),et=d(34643),Ot=d(65065),qe=10,Xe=function(ie){(0,oe.Z)(Pe,ie);var $e=(0,l.Z)(Pe);function Pe(){var z;(0,K.Z)(this,Pe);for(var D=arguments.length,ue=new Array(D),ge=0;ge<D;ge++)ue[ge]=arguments[ge];return z=$e.call.apply($e,[this].concat(ue)),(0,C.Z)((0,re.Z)(z),"destroyed",!1),(0,C.Z)((0,re.Z)(z),"delayedDragEnterLogic",void 0),(0,C.Z)((0,re.Z)(z),"loadingRetryTimes",{}),(0,C.Z)((0,re.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,Te.w$)()}),(0,C.Z)((0,re.Z)(z),"dragStartMousePosition",null),(0,C.Z)((0,re.Z)(z),"dragNodeProps",null),(0,C.Z)((0,re.Z)(z),"currentMouseOverDroppableNodeKey",null),(0,C.Z)((0,re.Z)(z),"listRef",W.createRef()),(0,C.Z)((0,re.Z)(z),"onNodeDragStart",function(pe,ye){var Re=z.state,Ze=Re.expandedKeys,te=Re.keyEntities,le=z.props.onDragStart,tt=ye.eventKey;z.dragNodeProps=ye,z.dragStartMousePosition={x:pe.clientX,y:pe.clientY};var nt=(0,wt._5)(Ze,tt);z.setState({draggingNodeKey:tt,dragChildrenKeys:(0,wt.wA)(tt,te),indent:z.listRef.current.getIndentWidth()}),z.setExpandedKeys(nt),window.addEventListener("dragend",z.onWindowDragEnd),le==null||le({event:pe,node:(0,Te.F)(ye)})}),(0,C.Z)((0,re.Z)(z),"onNodeDragEnter",function(pe,ye){var Re=z.state,Ze=Re.expandedKeys,te=Re.keyEntities,le=Re.dragChildrenKeys,tt=Re.flattenNodes,nt=Re.indent,ct=z.props,ut=ct.onDragEnter,Ge=ct.onExpand,yt=ct.allowDrop,ht=ct.direction,Ce=ye.pos,Ye=ye.eventKey;if(z.currentMouseOverDroppableNodeKey!==Ye&&(z.currentMouseOverDroppableNodeKey=Ye),!z.dragNodeProps){z.resetDragState();return}var b=(0,wt.OM)(pe,z.dragNodeProps,ye,nt,z.dragStartMousePosition,yt,tt,te,Ze,ht),w=b.dropPosition,He=b.dropLevelOffset,q=b.dropTargetKey,be=b.dropContainerKey,It=b.dropTargetPos,Be=b.dropAllowed,rt=b.dragOverNodeKey;if(le.includes(q)||!Be){z.resetDragState();return}if(z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(ft){clearTimeout(z.delayedDragEnterLogic[ft])}),z.dragNodeProps.eventKey!==ye.eventKey&&(pe.persist(),z.delayedDragEnterLogic[Ce]=window.setTimeout(function(){if(z.state.draggingNodeKey!==null){var ft=(0,fe.Z)(Ze),ve=(0,Ot.Z)(te,ye.eventKey);ve&&(ve.children||[]).length&&(ft=(0,wt.L0)(Ze,ye.eventKey)),z.props.hasOwnProperty("expandedKeys")||z.setExpandedKeys(ft),Ge==null||Ge(ft,{node:(0,Te.F)(ye),expanded:!0,nativeEvent:pe.nativeEvent})}},800)),z.dragNodeProps.eventKey===q&&He===0){z.resetDragState();return}z.setState({dragOverNodeKey:rt,dropPosition:w,dropLevelOffset:He,dropTargetKey:q,dropContainerKey:be,dropTargetPos:It,dropAllowed:Be}),ut==null||ut({event:pe,node:(0,Te.F)(ye),expandedKeys:Ze})}),(0,C.Z)((0,re.Z)(z),"onNodeDragOver",function(pe,ye){var Re=z.state,Ze=Re.dragChildrenKeys,te=Re.flattenNodes,le=Re.keyEntities,tt=Re.expandedKeys,nt=Re.indent,ct=z.props,ut=ct.onDragOver,Ge=ct.allowDrop,yt=ct.direction;if(z.dragNodeProps){var ht=(0,wt.OM)(pe,z.dragNodeProps,ye,nt,z.dragStartMousePosition,Ge,te,le,tt,yt),Ce=ht.dropPosition,Ye=ht.dropLevelOffset,b=ht.dropTargetKey,w=ht.dropContainerKey,He=ht.dropTargetPos,q=ht.dropAllowed,be=ht.dragOverNodeKey;Ze.includes(b)||!q||(z.dragNodeProps.eventKey===b&&Ye===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&&Ye===z.state.dropLevelOffset&&b===z.state.dropTargetKey&&w===z.state.dropContainerKey&&He===z.state.dropTargetPos&&q===z.state.dropAllowed&&be===z.state.dragOverNodeKey||z.setState({dropPosition:Ce,dropLevelOffset:Ye,dropTargetKey:b,dropContainerKey:w,dropTargetPos:He,dropAllowed:q,dragOverNodeKey:be}),ut==null||ut({event:pe,node:(0,Te.F)(ye)}))}}),(0,C.Z)((0,re.Z)(z),"onNodeDragLeave",function(pe,ye){z.currentMouseOverDroppableNodeKey===ye.eventKey&&!pe.currentTarget.contains(pe.relatedTarget)&&(z.resetDragState(),z.currentMouseOverDroppableNodeKey=null);var Re=z.props.onDragLeave;Re==null||Re({event:pe,node:(0,Te.F)(ye)})}),(0,C.Z)((0,re.Z)(z),"onWindowDragEnd",function(pe){z.onNodeDragEnd(pe,null,!0),window.removeEventListener("dragend",z.onWindowDragEnd)}),(0,C.Z)((0,re.Z)(z),"onNodeDragEnd",function(pe,ye){var Re=z.props.onDragEnd;z.setState({dragOverNodeKey:null}),z.cleanDragState(),Re==null||Re({event:pe,node:(0,Te.F)(ye)}),z.dragNodeProps=null,window.removeEventListener("dragend",z.onWindowDragEnd)}),(0,C.Z)((0,re.Z)(z),"onNodeDrop",function(pe,ye){var Re,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,te=z.state,le=te.dragChildrenKeys,tt=te.dropPosition,nt=te.dropTargetKey,ct=te.dropTargetPos,ut=te.dropAllowed;if(ut){var Ge=z.props.onDrop;if(z.setState({dragOverNodeKey:null}),z.cleanDragState(),nt!==null){var yt=(0,j.Z)((0,j.Z)({},(0,Te.H8)(nt,z.getTreeNodeRequiredProps())),{},{active:((Re=z.getActiveItem())===null||Re===void 0?void 0:Re.key)===nt,data:(0,Ot.Z)(z.state.keyEntities,nt).node}),ht=le.includes(nt);(0,k.ZP)(!ht,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ce=(0,wt.yx)(ct),Ye={event:pe,node:(0,Te.F)(yt),dragNode:z.dragNodeProps?(0,Te.F)(z.dragNodeProps):null,dragNodesKeys:[z.dragNodeProps.eventKey].concat(le),dropToGap:tt!==0,dropPosition:tt+Number(Ce[Ce.length-1])};Ze||Ge==null||Ge(Ye),z.dragNodeProps=null}}}),(0,C.Z)((0,re.Z)(z),"cleanDragState",function(){var pe=z.state.draggingNodeKey;pe!==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,re.Z)(z),"triggerExpandActionExpand",function(pe,ye){var Re=z.state,Ze=Re.expandedKeys,te=Re.flattenNodes,le=ye.expanded,tt=ye.key,nt=ye.isLeaf;if(!(nt||pe.shiftKey||pe.metaKey||pe.ctrlKey)){var ct=te.filter(function(Ge){return Ge.key===tt})[0],ut=(0,Te.F)((0,j.Z)((0,j.Z)({},(0,Te.H8)(tt,z.getTreeNodeRequiredProps())),{},{data:ct.data}));z.setExpandedKeys(le?(0,wt._5)(Ze,tt):(0,wt.L0)(Ze,tt)),z.onNodeExpand(pe,ut)}}),(0,C.Z)((0,re.Z)(z),"onNodeClick",function(pe,ye){var Re=z.props,Ze=Re.onClick,te=Re.expandAction;te==="click"&&z.triggerExpandActionExpand(pe,ye),Ze==null||Ze(pe,ye)}),(0,C.Z)((0,re.Z)(z),"onNodeDoubleClick",function(pe,ye){var Re=z.props,Ze=Re.onDoubleClick,te=Re.expandAction;te==="doubleClick"&&z.triggerExpandActionExpand(pe,ye),Ze==null||Ze(pe,ye)}),(0,C.Z)((0,re.Z)(z),"onNodeSelect",function(pe,ye){var Re=z.state.selectedKeys,Ze=z.state,te=Ze.keyEntities,le=Ze.fieldNames,tt=z.props,nt=tt.onSelect,ct=tt.multiple,ut=ye.selected,Ge=ye[le.key],yt=!ut;yt?ct?Re=(0,wt.L0)(Re,Ge):Re=[Ge]:Re=(0,wt._5)(Re,Ge);var ht=Re.map(function(Ce){var Ye=(0,Ot.Z)(te,Ce);return Ye?Ye.node:null}).filter(Boolean);z.setUncontrolledState({selectedKeys:Re}),nt==null||nt(Re,{event:"select",selected:yt,node:ye,selectedNodes:ht,nativeEvent:pe.nativeEvent})}),(0,C.Z)((0,re.Z)(z),"onNodeCheck",function(pe,ye,Re){var Ze=z.state,te=Ze.keyEntities,le=Ze.checkedKeys,tt=Ze.halfCheckedKeys,nt=z.props,ct=nt.checkStrictly,ut=nt.onCheck,Ge=ye.key,yt,ht={event:"check",node:ye,checked:Re,nativeEvent:pe.nativeEvent};if(ct){var Ce=Re?(0,wt.L0)(le,Ge):(0,wt._5)(le,Ge),Ye=(0,wt._5)(tt,Ge);yt={checked:Ce,halfChecked:Ye},ht.checkedNodes=Ce.map(function(It){return(0,Ot.Z)(te,It)}).filter(Boolean).map(function(It){return It.node}),z.setUncontrolledState({checkedKeys:Ce})}else{var b=(0,et.S)([].concat((0,fe.Z)(le),[Ge]),!0,te),w=b.checkedKeys,He=b.halfCheckedKeys;if(!Re){var q=new Set(w);q.delete(Ge);var be=(0,et.S)(Array.from(q),{checked:!1,halfCheckedKeys:He},te);w=be.checkedKeys,He=be.halfCheckedKeys}yt=w,ht.checkedNodes=[],ht.checkedNodesPositions=[],ht.halfCheckedKeys=He,w.forEach(function(It){var Be=(0,Ot.Z)(te,It);if(Be){var rt=Be.node,ft=Be.pos;ht.checkedNodes.push(rt),ht.checkedNodesPositions.push({node:rt,pos:ft})}}),z.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:He})}ut==null||ut(yt,ht)}),(0,C.Z)((0,re.Z)(z),"onNodeLoad",function(pe){var ye,Re=pe.key,Ze=z.state.keyEntities,te=(0,Ot.Z)(Ze,Re);if(!(te!=null&&(ye=te.children)!==null&&ye!==void 0&&ye.length)){var le=new Promise(function(tt,nt){z.setState(function(ct){var ut=ct.loadedKeys,Ge=ut===void 0?[]:ut,yt=ct.loadingKeys,ht=yt===void 0?[]:yt,Ce=z.props,Ye=Ce.loadData,b=Ce.onLoad;if(!Ye||Ge.includes(Re)||ht.includes(Re))return null;var w=Ye(pe);return w.then(function(){var He=z.state.loadedKeys,q=(0,wt.L0)(He,Re);b==null||b(q,{event:"load",node:pe}),z.setUncontrolledState({loadedKeys:q}),z.setState(function(be){return{loadingKeys:(0,wt._5)(be.loadingKeys,Re)}}),tt()}).catch(function(He){if(z.setState(function(be){return{loadingKeys:(0,wt._5)(be.loadingKeys,Re)}}),z.loadingRetryTimes[Re]=(z.loadingRetryTimes[Re]||0)+1,z.loadingRetryTimes[Re]>=qe){var q=z.state.loadedKeys;(0,k.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),z.setUncontrolledState({loadedKeys:(0,wt.L0)(q,Re)}),tt()}nt(He)}),{loadingKeys:(0,wt.L0)(ht,Re)}})});return le.catch(function(){}),le}}),(0,C.Z)((0,re.Z)(z),"onNodeMouseEnter",function(pe,ye){var Re=z.props.onMouseEnter;Re==null||Re({event:pe,node:ye})}),(0,C.Z)((0,re.Z)(z),"onNodeMouseLeave",function(pe,ye){var Re=z.props.onMouseLeave;Re==null||Re({event:pe,node:ye})}),(0,C.Z)((0,re.Z)(z),"onNodeContextMenu",function(pe,ye){var Re=z.props.onRightClick;Re&&(pe.preventDefault(),Re({event:pe,node:ye}))}),(0,C.Z)((0,re.Z)(z),"onFocus",function(){var pe=z.props.onFocus;z.setState({focused:!0});for(var ye=arguments.length,Re=new Array(ye),Ze=0;Ze<ye;Ze++)Re[Ze]=arguments[Ze];pe==null||pe.apply(void 0,Re)}),(0,C.Z)((0,re.Z)(z),"onBlur",function(){var pe=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null);for(var ye=arguments.length,Re=new Array(ye),Ze=0;Ze<ye;Ze++)Re[Ze]=arguments[Ze];pe==null||pe.apply(void 0,Re)}),(0,C.Z)((0,re.Z)(z),"getTreeNodeRequiredProps",function(){var pe=z.state,ye=pe.expandedKeys,Re=pe.selectedKeys,Ze=pe.loadedKeys,te=pe.loadingKeys,le=pe.checkedKeys,tt=pe.halfCheckedKeys,nt=pe.dragOverNodeKey,ct=pe.dropPosition,ut=pe.keyEntities;return{expandedKeys:ye||[],selectedKeys:Re||[],loadedKeys:Ze||[],loadingKeys:te||[],checkedKeys:le||[],halfCheckedKeys:tt||[],dragOverNodeKey:nt,dropPosition:ct,keyEntities:ut}}),(0,C.Z)((0,re.Z)(z),"setExpandedKeys",function(pe){var ye=z.state,Re=ye.treeData,Ze=ye.fieldNames,te=(0,Te.oH)(Re,pe,Ze);z.setUncontrolledState({expandedKeys:pe,flattenNodes:te},!0)}),(0,C.Z)((0,re.Z)(z),"onNodeExpand",function(pe,ye){var Re=z.state.expandedKeys,Ze=z.state,te=Ze.listChanging,le=Ze.fieldNames,tt=z.props,nt=tt.onExpand,ct=tt.loadData,ut=ye.expanded,Ge=ye[le.key];if(!te){var yt=Re.includes(Ge),ht=!ut;if((0,k.ZP)(ut&&yt||!ut&&!yt,"Expand state not sync with index check"),Re=ht?(0,wt.L0)(Re,Ge):(0,wt._5)(Re,Ge),z.setExpandedKeys(Re),nt==null||nt(Re,{node:ye,expanded:ht,nativeEvent:pe.nativeEvent}),ht&&ct){var Ce=z.onNodeLoad(ye);Ce&&Ce.then(function(){var Ye=(0,Te.oH)(z.state.treeData,Re,le);z.setUncontrolledState({flattenNodes:Ye})}).catch(function(){var Ye=z.state.expandedKeys,b=(0,wt._5)(Ye,Ge);z.setExpandedKeys(b)})}}}),(0,C.Z)((0,re.Z)(z),"onListChangeStart",function(){z.setUncontrolledState({listChanging:!0})}),(0,C.Z)((0,re.Z)(z),"onListChangeEnd",function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})}),(0,C.Z)((0,re.Z)(z),"onActiveChange",function(pe){var ye=z.state.activeKey,Re=z.props,Ze=Re.onActiveChange,te=Re.itemScrollOffset,le=te===void 0?0:te;ye!==pe&&(z.setState({activeKey:pe}),pe!==null&&z.scrollTo({key:pe,offset:le}),Ze==null||Ze(pe))}),(0,C.Z)((0,re.Z)(z),"getActiveItem",function(){var pe=z.state,ye=pe.activeKey,Re=pe.flattenNodes;return ye===null?null:Re.find(function(Ze){var te=Ze.key;return te===ye})||null}),(0,C.Z)((0,re.Z)(z),"offsetActiveKey",function(pe){var ye=z.state,Re=ye.flattenNodes,Ze=ye.activeKey,te=Re.findIndex(function(nt){var ct=nt.key;return ct===Ze});te===-1&&pe<0&&(te=Re.length),te=(te+pe+Re.length)%Re.length;var le=Re[te];if(le){var tt=le.key;z.onActiveChange(tt)}else z.onActiveChange(null)}),(0,C.Z)((0,re.Z)(z),"onKeyDown",function(pe){var ye=z.state,Re=ye.activeKey,Ze=ye.expandedKeys,te=ye.checkedKeys,le=ye.fieldNames,tt=z.props,nt=tt.onKeyDown,ct=tt.checkable,ut=tt.selectable;switch(pe.which){case _.Z.UP:{z.offsetActiveKey(-1),pe.preventDefault();break}case _.Z.DOWN:{z.offsetActiveKey(1),pe.preventDefault();break}}var Ge=z.getActiveItem();if(Ge&&Ge.data){var yt=z.getTreeNodeRequiredProps(),ht=Ge.data.isLeaf===!1||!!(Ge.data[le.children]||[]).length,Ce=(0,Te.F)((0,j.Z)((0,j.Z)({},(0,Te.H8)(Re,yt)),{},{data:Ge.data,active:!0}));switch(pe.which){case _.Z.LEFT:{ht&&Ze.includes(Re)?z.onNodeExpand({},Ce):Ge.parent&&z.onActiveChange(Ge.parent.key),pe.preventDefault();break}case _.Z.RIGHT:{ht&&!Ze.includes(Re)?z.onNodeExpand({},Ce):Ge.children&&Ge.children.length&&z.onActiveChange(Ge.children[0].key),pe.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{ct&&!Ce.disabled&&Ce.checkable!==!1&&!Ce.disableCheckbox?z.onNodeCheck({},Ce,!te.includes(Re)):!ct&&ut&&!Ce.disabled&&Ce.selectable!==!1&&z.onNodeSelect({},Ce);break}}}nt==null||nt(pe)}),(0,C.Z)((0,re.Z)(z),"setUncontrolledState",function(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!z.destroyed){var Ze=!1,te=!0,le={};Object.keys(pe).forEach(function(tt){if(z.props.hasOwnProperty(tt)){te=!1;return}Ze=!0,le[tt]=pe[tt]}),Ze&&(!ye||te)&&z.setState((0,j.Z)((0,j.Z)({},le),Re))}}),(0,C.Z)((0,re.Z)(z),"scrollTo",function(pe){z.listRef.current.scrollTo(pe)}),z}return(0,g.Z)(Pe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var D=this.props,ue=D.activeKey,ge=D.itemScrollOffset,pe=ge===void 0?0:ge;ue!==void 0&&ue!==this.state.activeKey&&(this.setState({activeKey:ue}),ue!==null&&this.scrollTo({key:ue,offset:pe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var D=this.state,ue=D.focused,ge=D.flattenNodes,pe=D.keyEntities,ye=D.draggingNodeKey,Re=D.activeKey,Ze=D.dropLevelOffset,te=D.dropContainerKey,le=D.dropTargetKey,tt=D.dropPosition,nt=D.dragOverNodeKey,ct=D.indent,ut=this.props,Ge=ut.prefixCls,yt=ut.className,ht=ut.style,Ce=ut.showLine,Ye=ut.focusable,b=ut.tabIndex,w=b===void 0?0:b,He=ut.selectable,q=ut.showIcon,be=ut.icon,It=ut.switcherIcon,Be=ut.draggable,rt=ut.checkable,ft=ut.checkStrictly,ve=ut.disabled,Se=ut.motion,We=ut.loadData,ze=ut.filterTreeNode,M=ut.height,dt=ut.itemHeight,Ee=ut.scrollWidth,Tt=ut.virtual,Kt=ut.titleRender,Jt=ut.dropIndicatorRender,un=ut.onContextMenu,gn=ut.onScroll,En=ut.direction,Bn=ut.rootClassName,Wn=ut.rootStyle,Tn=(0,T.Z)(this.props,{aria:!0,data:!0}),Jn;Be&&((0,ne.Z)(Be)==="object"?Jn=Be:typeof Be=="function"?Jn={nodeDraggable:Be}:Jn={});var vn={prefixCls:Ge,selectable:He,showIcon:q,icon:be,switcherIcon:It,draggable:Jn,draggingNodeKey:ye,checkable:rt,checkStrictly:ft,disabled:ve,keyEntities:pe,dropLevelOffset:Ze,dropContainerKey:te,dropTargetKey:le,dropPosition:tt,dragOverNodeKey:nt,indent:ct,direction:En,dropIndicatorRender:Jt,loadData:We,filterTreeNode:ze,titleRender:Kt,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(V.k.Provider,{value:vn},W.createElement("div",{className:S()(Ge,yt,Bn,(0,C.Z)((0,C.Z)((0,C.Z)({},"".concat(Ge,"-show-line"),Ce),"".concat(Ge,"-focused"),ue),"".concat(Ge,"-active-focused"),Re!==null)),style:Wn},W.createElement(De,(0,o.Z)({ref:this.listRef,prefixCls:Ge,style:ht,data:ge,disabled:ve,selectable:He,checkable:!!rt,motion:Se,dragging:ye!==null,height:M,itemHeight:dt,virtual:Tt,focusable:Ye,focused:ue,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:un,onScroll:gn,scrollWidth:Ee},this.getTreeNodeRequiredProps(),Tn))))}}],[{key:"getDerivedStateFromProps",value:function(D,ue){var ge=ue.prevProps,pe={prevProps:D};function ye(w){return!ge&&D.hasOwnProperty(w)||ge&&ge[w]!==D[w]}var Re,Ze=ue.fieldNames;if(ye("fieldNames")&&(Ze=(0,Te.w$)(D.fieldNames),pe.fieldNames=Ze),ye("treeData")?Re=D.treeData:ye("children")&&((0,k.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Re=(0,Te.zn)(D.children)),Re){pe.treeData=Re;var te=(0,Te.I8)(Re,{fieldNames:Ze});pe.keyEntities=(0,j.Z)((0,C.Z)({},se,Ve),te.keyEntities)}var le=pe.keyEntities||ue.keyEntities;if(ye("expandedKeys")||ge&&ye("autoExpandParent"))pe.expandedKeys=D.autoExpandParent||!ge&&D.defaultExpandParent?(0,wt.r7)(D.expandedKeys,le):D.expandedKeys;else if(!ge&&D.defaultExpandAll){var tt=(0,j.Z)({},le);delete tt[se];var nt=[];Object.keys(tt).forEach(function(w){var He=tt[w];He.children&&He.children.length&&nt.push(He.key)}),pe.expandedKeys=nt}else!ge&&D.defaultExpandedKeys&&(pe.expandedKeys=D.autoExpandParent||D.defaultExpandParent?(0,wt.r7)(D.defaultExpandedKeys,le):D.defaultExpandedKeys);if(pe.expandedKeys||delete pe.expandedKeys,Re||pe.expandedKeys){var ct=(0,Te.oH)(Re||ue.treeData,pe.expandedKeys||ue.expandedKeys,Ze);pe.flattenNodes=ct}if(D.selectable&&(ye("selectedKeys")?pe.selectedKeys=(0,wt.BT)(D.selectedKeys,D):!ge&&D.defaultSelectedKeys&&(pe.selectedKeys=(0,wt.BT)(D.defaultSelectedKeys,D))),D.checkable){var ut;if(ye("checkedKeys")?ut=(0,wt.E6)(D.checkedKeys)||{}:!ge&&D.defaultCheckedKeys?ut=(0,wt.E6)(D.defaultCheckedKeys)||{}:Re&&(ut=(0,wt.E6)(D.checkedKeys)||{checkedKeys:ue.checkedKeys,halfCheckedKeys:ue.halfCheckedKeys}),ut){var Ge=ut,yt=Ge.checkedKeys,ht=yt===void 0?[]:yt,Ce=Ge.halfCheckedKeys,Ye=Ce===void 0?[]:Ce;if(!D.checkStrictly){var b=(0,et.S)(ht,!0,le);ht=b.checkedKeys,Ye=b.halfCheckedKeys}pe.checkedKeys=ht,pe.halfCheckedKeys=Ye}}return ye("loadedKeys")&&(pe.loadedKeys=D.loadedKeys),pe}}]),Pe}(W.Component);(0,C.Z)(Xe,"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:I,allowDrop:function(){return!0},expandAction:!1}),(0,C.Z)(Xe,"TreeNode",Ie.Z);var Ue=Xe,ke=Ue},82661:function(mn,gt,d){"use strict";d.d(gt,{BT:function(){return W},E6:function(){return I},L0:function(){return C},OM:function(){return k},_5:function(){return l},r7:function(){return G},wA:function(){return S},yx:function(){return N}});var o=d(77654),ne=d(43749),j=d(48736),fe=d(59301),K=d(639),g=d(65065),re=d(34061),oe=null;function l(F,L){if(!F)return[];var ae=F.slice(),me=ae.indexOf(L);return me>=0&&ae.splice(me,1),ae}function C(F,L){var ae=(F||[]).slice();return ae.indexOf(L)===-1&&ae.push(L),ae}function N(F){return F.split("-")}function S(F,L){var ae=[],me=(0,g.Z)(L,F);function de(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ie.forEach(function(Fe){var _e=Fe.key,Te=Fe.children;ae.push(_e),de(Te)})}return de(me.children),ae}function _(F){if(F.parent){var L=N(F.pos);return Number(L[L.length-1])===F.parent.children.length-1}return!1}function T(F){var L=N(F.pos);return Number(L[L.length-1])===0}function k(F,L,ae,me,de,Ie,Fe,_e,Te,ee){var B,A=F.clientX,X=F.clientY,J=F.target.getBoundingClientRect(),Q=J.top,E=J.height,R=(ee==="rtl"?-1:1)*(((de==null?void 0:de.x)||0)-A),se=(R-12)/me,we=Te.filter(function(ke){var ie;return(ie=_e[ke])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),Ve=(0,g.Z)(_e,ae.eventKey);if(X<Q+E/2){var lt=Fe.findIndex(function(ke){return ke.key===Ve.key}),xe=lt<=0?0:lt-1,je=Fe[xe].key;Ve=(0,g.Z)(_e,je)}var Qe=Ve.key,it=Ve,De=Ve.key,wt=0,et=0;if(!we.includes(Qe))for(var Ot=0;Ot<se&&_(Ve);Ot+=1)Ve=Ve.parent,et+=1;var qe=L.data,Xe=Ve.node,Ue=!0;return T(Ve)&&Ve.level===0&&X<Q+E/2&&Ie({dragNode:qe,dropNode:Xe,dropPosition:-1})&&Ve.key===ae.eventKey?wt=-1:(it.children||[]).length&&we.includes(De)?Ie({dragNode:qe,dropNode:Xe,dropPosition:0})?wt=0:Ue=!1:et===0?se>-1.5?Ie({dragNode:qe,dropNode:Xe,dropPosition:1})?wt=1:Ue=!1:Ie({dragNode:qe,dropNode:Xe,dropPosition:0})?wt=0:Ie({dragNode:qe,dropNode:Xe,dropPosition:1})?wt=1:Ue=!1:Ie({dragNode:qe,dropNode:Xe,dropPosition:1})?wt=1:Ue=!1,{dropPosition:wt,dropLevelOffset:et,dropTargetKey:Ve.key,dropTargetPos:Ve.pos,dragOverNodeKey:De,dropContainerKey:wt===0?null:((B=Ve.parent)===null||B===void 0?void 0:B.key)||null,dropAllowed:Ue}}function W(F,L){if(F){var ae=L.multiple;return ae?F.slice():F.length?[F[0]]:F}}var V=function(L){return L};function $(F,L){if(!F)return[];var ae=L||{},me=ae.processProps,de=me===void 0?V:me,Ie=Array.isArray(F)?F:[F];return Ie.map(function(Fe){var _e=Fe.children,Te=_objectWithoutProperties(Fe,oe),ee=$(_e,L);return React.createElement(TreeNode,_extends({key:Te.key},de(Te)),ee)})}function I(F){if(!F)return null;var L;if(Array.isArray(F))L={checkedKeys:F,halfCheckedKeys:void 0};else if((0,ne.Z)(F)==="object")L={checkedKeys:F.checked||void 0,halfCheckedKeys:F.halfChecked||void 0};else return(0,j.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function G(F,L){var ae=new Set;function me(de){if(!ae.has(de)){var Ie=(0,g.Z)(L,de);if(Ie){ae.add(de);var Fe=Ie.parent,_e=Ie.node;_e.disabled||Fe&&me(Fe.key)}}}return(F||[]).forEach(function(de){me(de)}),(0,o.Z)(ae)}},34643:function(mn,gt,d){"use strict";d.d(gt,{S:function(){return re}});var o=d(48736),ne=d(65065);function j(oe,l){var C=new Set;return oe.forEach(function(N){l.has(N)||C.add(N)}),C}function fe(oe){var l=oe||{},C=l.disabled,N=l.disableCheckbox,S=l.checkable;return!!(C||N)||S===!1}function K(oe,l,C,N){for(var S=new Set(oe),_=new Set,T=0;T<=C;T+=1){var k=l.get(T)||new Set;k.forEach(function(I){var G=I.key,F=I.node,L=I.children,ae=L===void 0?[]:L;S.has(G)&&!N(F)&&ae.filter(function(me){return!N(me.node)}).forEach(function(me){S.add(me.key)})})}for(var W=new Set,V=C;V>=0;V-=1){var $=l.get(V)||new Set;$.forEach(function(I){var G=I.parent,F=I.node;if(!(N(F)||!I.parent||W.has(I.parent.key))){if(N(I.parent.node)){W.add(G.key);return}var L=!0,ae=!1;(G.children||[]).filter(function(me){return!N(me.node)}).forEach(function(me){var de=me.key,Ie=S.has(de);L&&!Ie&&(L=!1),!ae&&(Ie||_.has(de))&&(ae=!0)}),L&&S.add(G.key),ae&&_.add(G.key),W.add(G.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(j(_,S))}}function g(oe,l,C,N,S){for(var _=new Set(oe),T=new Set(l),k=0;k<=N;k+=1){var W=C.get(k)||new Set;W.forEach(function(G){var F=G.key,L=G.node,ae=G.children,me=ae===void 0?[]:ae;!_.has(F)&&!T.has(F)&&!S(L)&&me.filter(function(de){return!S(de.node)}).forEach(function(de){_.delete(de.key)})})}T=new Set;for(var V=new Set,$=N;$>=0;$-=1){var I=C.get($)||new Set;I.forEach(function(G){var F=G.parent,L=G.node;if(!(S(L)||!G.parent||V.has(G.parent.key))){if(S(G.parent.node)){V.add(F.key);return}var ae=!0,me=!1;(F.children||[]).filter(function(de){return!S(de.node)}).forEach(function(de){var Ie=de.key,Fe=_.has(Ie);ae&&!Fe&&(ae=!1),!me&&(Fe||T.has(Ie))&&(me=!0)}),ae||_.delete(F.key),me&&T.add(F.key),V.add(F.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(j(T,_))}}function re(oe,l,C,N){var S=[],_;N?_=N:_=fe;var T=new Set(oe.filter(function($){var I=!!(0,ne.Z)(C,$);return I||S.push($),I})),k=new Map,W=0;Object.keys(C).forEach(function($){var I=C[$],G=I.level,F=k.get(G);F||(F=new Set,k.set(G,F)),F.add(I),W=Math.max(W,G)}),(0,o.ZP)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function($){return"'".concat($,"'")}).join(", ")));var V;return l===!0?V=K(T,k,W,_):V=g(T,l.halfCheckedKeys,k,W,_),V}},65065:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return o}});function o(ne,j){return ne[j]}},34061:function(mn,gt,d){"use strict";d.d(gt,{F:function(){return G},H8:function(){return I},I8:function(){return $},km:function(){return S},oH:function(){return W},w$:function(){return _},zn:function(){return k}});var o=d(43749),ne=d(77654),j=d(85899),fe=d(42244),K=d(11592),g=d(2738),re=d(48736),oe=d(65065),l=["children"];function C(F,L){return"".concat(F,"-").concat(L)}function N(F){return F&&F.type&&F.type.isTreeNode}function S(F,L){return F!=null?F:L}function _(F){var L=F||{},ae=L.title,me=L._title,de=L.key,Ie=L.children,Fe=ae||"title";return{title:Fe,_title:me||[Fe],key:de||"key",children:Ie||"children"}}function T(F,L){var ae=new Map;function me(de){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(de||[]).forEach(function(Fe){var _e=Fe[L.key],Te=Fe[L.children];warning(_e!=null,"Tree node must have a certain key: [".concat(Ie).concat(_e,"]"));var ee=String(_e);warning(!ae.has(ee)||_e===null||_e===void 0,"Same 'key' exist in the Tree: ".concat(ee)),ae.set(ee,!0),me(Te,"".concat(Ie).concat(ee," > "))})}me(F)}function k(F){function L(ae){var me=(0,K.Z)(ae);return me.map(function(de){if(!N(de))return(0,re.ZP)(!de,"Tree/TreeNode can only accept TreeNode as children."),null;var Ie=de.key,Fe=de.props,_e=Fe.children,Te=(0,fe.Z)(Fe,l),ee=(0,j.Z)({key:Ie},Te),B=L(_e);return B.length&&(ee.children=B),ee}).filter(function(de){return de})}return L(F)}function W(F,L,ae){var me=_(ae),de=me._title,Ie=me.key,Fe=me.children,_e=new Set(L===!0?[]:L),Te=[];function ee(B){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return B.map(function(X,J){for(var Q=C(A?A.pos:"0",J),E=S(X[Ie],Q),R,se=0;se<de.length;se+=1){var we=de[se];if(X[we]!==void 0){R=X[we];break}}var Ve=Object.assign((0,g.Z)(X,[].concat((0,ne.Z)(de),[Ie,Fe])),{title:R,key:E,parent:A,pos:Q,children:null,data:X,isStart:[].concat((0,ne.Z)(A?A.isStart:[]),[J===0]),isEnd:[].concat((0,ne.Z)(A?A.isEnd:[]),[J===B.length-1])});return Te.push(Ve),L===!0||_e.has(E)?Ve.children=ee(X[Fe]||[],Ve):Ve.children=[],Ve})}return ee(F),Te}function V(F,L,ae){var me={};(0,o.Z)(ae)==="object"?me=ae:me={externalGetKey:ae},me=me||{};var de=me,Ie=de.childrenPropName,Fe=de.externalGetKey,_e=de.fieldNames,Te=_(_e),ee=Te.key,B=Te.children,A=Ie||B,X;Fe?typeof Fe=="string"?X=function(E){return E[Fe]}:typeof Fe=="function"&&(X=function(E){return Fe(E)}):X=function(E,R){return S(E[ee],R)};function J(Q,E,R,se){var we=Q?Q[A]:F,Ve=Q?C(R.pos,E):"0",lt=Q?[].concat((0,ne.Z)(se),[Q]):[];if(Q){var xe=X(Q,Ve),je={node:Q,index:E,pos:Ve,key:xe,parentPos:R.node?R.pos:null,level:R.level+1,nodes:lt};L(je)}we&&we.forEach(function(Qe,it){J(Qe,it,{node:Q,pos:Ve,level:R?R.level+1:-1},lt)})}J(null)}function $(F){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=L.initWrapper,me=L.processEntity,de=L.onProcessFinished,Ie=L.externalGetKey,Fe=L.childrenPropName,_e=L.fieldNames,Te=arguments.length>2?arguments[2]:void 0,ee=Ie||Te,B={},A={},X={posEntities:B,keyEntities:A};return ae&&(X=ae(X)||X),V(F,function(J){var Q=J.node,E=J.index,R=J.pos,se=J.key,we=J.parentPos,Ve=J.level,lt=J.nodes,xe={node:Q,nodes:lt,index:E,key:se,pos:R,level:Ve},je=S(se,R);B[R]=xe,A[je]=xe,xe.parent=B[we],xe.parent&&(xe.parent.children=xe.parent.children||[],xe.parent.children.push(xe)),me&&me(xe,X)},{externalGetKey:ee,childrenPropName:Fe,fieldNames:_e}),de&&de(X),X}function I(F,L){var ae=L.expandedKeys,me=L.selectedKeys,de=L.loadedKeys,Ie=L.loadingKeys,Fe=L.checkedKeys,_e=L.halfCheckedKeys,Te=L.dragOverNodeKey,ee=L.dropPosition,B=L.keyEntities,A=(0,oe.Z)(B,F),X={eventKey:F,expanded:ae.indexOf(F)!==-1,selected:me.indexOf(F)!==-1,loaded:de.indexOf(F)!==-1,loading:Ie.indexOf(F)!==-1,checked:Fe.indexOf(F)!==-1,halfChecked:_e.indexOf(F)!==-1,pos:String(A?A.pos:""),dragOver:Te===F&&ee===0,dragOverGapTop:Te===F&&ee===-1,dragOverGapBottom:Te===F&&ee===1};return X}function G(F){var L=F.data,ae=F.expanded,me=F.selected,de=F.checked,Ie=F.loaded,Fe=F.loading,_e=F.halfChecked,Te=F.dragOver,ee=F.dragOverGapTop,B=F.dragOverGapBottom,A=F.pos,X=F.active,J=F.eventKey,Q=(0,j.Z)((0,j.Z)({},L),{},{expanded:ae,selected:me,checked:de,loaded:Ie,loading:Fe,halfChecked:_e,dragOver:Te,dragOverGapTop:ee,dragOverGapBottom:B,pos:A,active:X,key:J});return"props"in Q||Object.defineProperty(Q,"props",{get:function(){return(0,re.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),F}}),Q}},8224:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return ne}});var o=d(4676);function ne(j,fe,K,g){var re=o.unstable_batchedUpdates?function(l){o.unstable_batchedUpdates(K,l)}:K;return j!=null&&j.addEventListener&&j.addEventListener(fe,re,g),{remove:function(){j!=null&&j.removeEventListener&&j.removeEventListener(fe,re,g)}}}},24514:function(mn,gt,d){"use strict";d.d(gt,{G:function(){return fe}});var o=d(47273),ne=function(g){if((0,o.Z)()&&window.document.documentElement){var re=Array.isArray(g)?g:[g],oe=window.document.documentElement;return re.some(function(l){return l in oe.style})}return!1},j=function(g,re){if(!ne(g))return!1;var oe=document.createElement("div"),l=oe.style[g];return oe.style[g]=re,oe.style[g]!==l};function fe(K,g){return!Array.isArray(K)&&g!==void 0?j(K,g):ne(K)}},49658:function(mn,gt){"use strict";gt.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(mn,gt,d){"use strict";d.d(gt,{Z:function(){return qe}});var o=d(60499),ne=d(43749),j=d(85899),fe=d(18642),K=d(72190),g=d(42244),re=d(92310),oe=d.n(re),l=d(29301),C=d(70425),N=d(34280),S=d(59301),_=d(4676),T=S.forwardRef(function(Xe,Ue){var ke=Xe.height,ie=Xe.offsetY,$e=Xe.offsetX,Pe=Xe.children,z=Xe.prefixCls,D=Xe.onInnerResize,ue=Xe.innerProps,ge=Xe.rtl,pe=Xe.extra,ye={},Re={display:"flex",flexDirection:"column"};return ie!==void 0&&(ye={height:ke,position:"relative",overflow:"hidden"},Re=(0,j.Z)((0,j.Z)({},Re),{},(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({transform:"translateY(".concat(ie,"px)")},ge?"marginRight":"marginLeft",-$e),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:ye},S.createElement(l.Z,{onResize:function(te){var le=te.offsetHeight;le&&D&&D()}},S.createElement("div",(0,o.Z)({style:Re,className:oe()((0,fe.Z)({},"".concat(z,"-holder-inner"),z)),ref:Ue},ue),Pe,pe)))});T.displayName="Filler";var k=T;function W(Xe){var Ue=Xe.children,ke=Xe.setRef,ie=S.useCallback(function($e){ke($e)},[]);return S.cloneElement(Ue,{ref:ie})}function V(Xe,Ue,ke,ie,$e,Pe,z,D){var ue=D.getKey;return Xe.slice(Ue,ke+1).map(function(ge,pe){var ye=Ue+pe,Re=z(ge,ye,{style:{width:ie},offsetX:$e}),Ze=ue(ge);return S.createElement(W,{key:Ze,setRef:function(le){return Pe(ge,le)}},Re)})}function $(Xe,Ue,ke,ie){var $e=ke-Xe,Pe=Ue-ke,z=Math.min($e,Pe)*2;if(ie<=z){var D=Math.floor(ie/2);return ie%2?ke+D+1:ke-D}return $e>Pe?ke-(ie-Pe):ke+(ie-$e)}function I(Xe,Ue,ke){var ie=Xe.length,$e=Ue.length,Pe,z;if(ie===0&&$e===0)return null;ie<$e?(Pe=Xe,z=Ue):(Pe=Ue,z=Xe);var D={__EMPTY_ITEM__:!0};function ue(te){return te!==void 0?ke(te):D}for(var ge=null,pe=Math.abs(ie-$e)!==1,ye=0;ye<z.length;ye+=1){var Re=ue(Pe[ye]),Ze=ue(z[ye]);if(Re!==Ze){ge=ye,pe=pe||Re!==ue(z[ye+1]);break}}return ge===null?null:{index:ge,multiple:pe}}function G(Xe,Ue,ke){var ie=S.useState(Xe),$e=(0,K.Z)(ie,2),Pe=$e[0],z=$e[1],D=S.useState(null),ue=(0,K.Z)(D,2),ge=ue[0],pe=ue[1];return S.useEffect(function(){var ye=I(Pe||[],Xe||[],Ue);(ye==null?void 0:ye.index)!==void 0&&(ke==null||ke(ye.index),pe(Xe[ye.index])),z(Xe)},[Xe]),[ge]}var F=d(16089),L=(typeof navigator=="undefined"?"undefined":(0,ne.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ae=L,me=function(Xe,Ue,ke,ie){var $e=(0,S.useRef)(!1),Pe=(0,S.useRef)(null);function z(){clearTimeout(Pe.current),$e.current=!0,Pe.current=setTimeout(function(){$e.current=!1},50)}var D=(0,S.useRef)({top:Xe,bottom:Ue,left:ke,right:ie});return D.current.top=Xe,D.current.bottom=Ue,D.current.left=ke,D.current.right=ie,function(ue,ge){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ye=ue?ge<0&&D.current.left||ge>0&&D.current.right:ge<0&&D.current.top||ge>0&&D.current.bottom;return pe&&ye?(clearTimeout(Pe.current),$e.current=!1):(!ye||$e.current)&&z(),!$e.current&&ye}};function de(Xe,Ue,ke,ie,$e,Pe,z){var D=(0,S.useRef)(0),ue=(0,S.useRef)(null),ge=(0,S.useRef)(null),pe=(0,S.useRef)(!1),ye=me(Ue,ke,ie,$e);function Re(ct,ut){if(F.Z.cancel(ue.current),!ye(!1,ut)){var Ge=ct;if(!Ge._virtualHandled)Ge._virtualHandled=!0;else return;D.current+=ut,ge.current=ut,ae||Ge.preventDefault(),ue.current=(0,F.Z)(function(){var yt=pe.current?10:1;z(D.current*yt,!1),D.current=0})}}function Ze(ct,ut){z(ut,!0),ae||ct.preventDefault()}var te=(0,S.useRef)(null),le=(0,S.useRef)(null);function tt(ct){if(Xe){F.Z.cancel(le.current),le.current=(0,F.Z)(function(){te.current=null},2);var ut=ct.deltaX,Ge=ct.deltaY,yt=ct.shiftKey,ht=ut,Ce=Ge;(te.current==="sx"||!te.current&&yt&&Ge&&!ut)&&(ht=Ge,Ce=0,te.current="sx");var Ye=Math.abs(ht),b=Math.abs(Ce);te.current===null&&(te.current=Pe&&Ye>b?"x":"y"),te.current==="y"?Re(ct,Ce):Ze(ct,ht)}}function nt(ct){Xe&&(pe.current=ct.detail===ge.current)}return[tt,nt]}function Ie(Xe,Ue,ke,ie){var $e=S.useMemo(function(){return[new Map,[]]},[Xe,ke.id,ie]),Pe=(0,K.Z)($e,2),z=Pe[0],D=Pe[1],ue=function(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe,Re=z.get(pe),Ze=z.get(ye);if(Re===void 0||Ze===void 0)for(var te=Xe.length,le=D.length;le<te;le+=1){var tt,nt=Xe[le],ct=Ue(nt);z.set(ct,le);var ut=(tt=ke.get(ct))!==null&&tt!==void 0?tt:ie;if(D[le]=(D[le-1]||0)+ut,ct===pe&&(Re=le),ct===ye&&(Ze=le),Re!==void 0&&Ze!==void 0)break}return{top:D[Re-1]||0,bottom:D[Ze]}};return ue}var Fe=d(38705),_e=d(17212),Te=function(){function Xe(){(0,Fe.Z)(this,Xe),(0,fe.Z)(this,"maps",void 0),(0,fe.Z)(this,"id",0),(0,fe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,_e.Z)(Xe,[{key:"set",value:function(ke,ie){this.diffRecords.set(ke,this.maps[ke]),this.maps[ke]=ie,this.id+=1}},{key:"get",value:function(ke){return this.maps[ke]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Xe}(),ee=Te;function B(Xe){var Ue=parseFloat(Xe);return isNaN(Ue)?0:Ue}function A(Xe,Ue,ke){var ie=S.useState(0),$e=(0,K.Z)(ie,2),Pe=$e[0],z=$e[1],D=(0,S.useRef)(new Map),ue=(0,S.useRef)(new ee),ge=(0,S.useRef)(0);function pe(){ge.current+=1}function ye(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;pe();var te=function(){var nt=!1;D.current.forEach(function(ct,ut){if(ct&&ct.offsetParent){var Ge=ct.offsetHeight,yt=getComputedStyle(ct),ht=yt.marginTop,Ce=yt.marginBottom,Ye=B(ht),b=B(Ce),w=Ge+Ye+b;ue.current.get(ut)!==w&&(ue.current.set(ut,w),nt=!0)}}),nt&&z(function(ct){return ct+1})};if(Ze)te();else{ge.current+=1;var le=ge.current;Promise.resolve().then(function(){le===ge.current&&te()})}}function Re(Ze,te){var le=Xe(Ze),tt=D.current.get(le);te?(D.current.set(le,te),ye()):D.current.delete(le),!tt!=!te&&(te?Ue==null||Ue(Ze):ke==null||ke(Ze))}return(0,S.useEffect)(function(){return pe},[]),[Re,ye,ue.current,Pe]}var X=14/15;function J(Xe,Ue,ke){var ie=(0,S.useRef)(!1),$e=(0,S.useRef)(0),Pe=(0,S.useRef)(0),z=(0,S.useRef)(null),D=(0,S.useRef)(null),ue,ge=function(Ze){if(ie.current){var te=Math.ceil(Ze.touches[0].pageX),le=Math.ceil(Ze.touches[0].pageY),tt=$e.current-te,nt=Pe.current-le,ct=Math.abs(tt)>Math.abs(nt);ct?$e.current=te:Pe.current=le;var ut=ke(ct,ct?tt:nt,!1,Ze);ut&&Ze.preventDefault(),clearInterval(D.current),ut&&(D.current=setInterval(function(){ct?tt*=X:nt*=X;var Ge=Math.floor(ct?tt:nt);(!ke(ct,Ge,!0)||Math.abs(Ge)<=.1)&&clearInterval(D.current)},16))}},pe=function(){ie.current=!1,ue()},ye=function(Ze){ue(),Ze.touches.length===1&&!ie.current&&(ie.current=!0,$e.current=Math.ceil(Ze.touches[0].pageX),Pe.current=Math.ceil(Ze.touches[0].pageY),z.current=Ze.target,z.current.addEventListener("touchmove",ge,{passive:!1}),z.current.addEventListener("touchend",pe,{passive:!0}))};ue=function(){z.current&&(z.current.removeEventListener("touchmove",ge),z.current.removeEventListener("touchend",pe))},(0,N.Z)(function(){return Xe&&Ue.current.addEventListener("touchstart",ye,{passive:!0}),function(){var Re;(Re=Ue.current)===null||Re===void 0||Re.removeEventListener("touchstart",ye),ue(),clearInterval(D.current)}},[Xe])}function Q(Xe){return Math.floor(Math.pow(Xe,.5))}function E(Xe,Ue){var ke="touches"in Xe?Xe.touches[0]:Xe;return ke[Ue?"pageX":"pageY"]-window[Ue?"scrollX":"scrollY"]}function R(Xe,Ue,ke){S.useEffect(function(){var ie=Ue.current;if(Xe&&ie){var $e=!1,Pe,z,D=function(){F.Z.cancel(Pe)},ue=function Re(){D(),Pe=(0,F.Z)(function(){ke(z),Re()})},ge=function(){$e=!1,D()},pe=function(Ze){if(!(Ze.target.draggable||Ze.button!==0)){var te=Ze;te._virtualHandled||(te._virtualHandled=!0,$e=!0)}},ye=function(Ze){if($e){var te=E(Ze,!1),le=ie.getBoundingClientRect(),tt=le.top,nt=le.bottom;if(te<=tt){var ct=tt-te;z=-Q(ct),ue()}else if(te>=nt){var ut=te-nt;z=Q(ut),ue()}else D()}};return ie.addEventListener("mousedown",pe),ie.ownerDocument.addEventListener("mouseup",ge),ie.ownerDocument.addEventListener("mousemove",ye),ie.ownerDocument.addEventListener("dragend",ge),function(){ie.removeEventListener("mousedown",pe),ie.ownerDocument.removeEventListener("mouseup",ge),ie.ownerDocument.removeEventListener("mousemove",ye),ie.ownerDocument.removeEventListener("dragend",ge),D()}}},[Xe])}var se=10;function we(Xe,Ue,ke,ie,$e,Pe,z,D){var ue=S.useRef(),ge=S.useState(null),pe=(0,K.Z)(ge,2),ye=pe[0],Re=pe[1];return(0,N.Z)(function(){if(ye&&ye.times<se){if(!Xe.current){Re(function(Se){return(0,j.Z)({},Se)});return}Pe();var Ze=ye.targetAlign,te=ye.originAlign,le=ye.index,tt=ye.offset,nt=Xe.current.clientHeight,ct=!1,ut=Ze,Ge=null;if(nt){for(var yt=Ze||te,ht=0,Ce=0,Ye=0,b=Math.min(Ue.length-1,le),w=0;w<=b;w+=1){var He=$e(Ue[w]);Ce=ht;var q=ke.get(He);Ye=Ce+(q===void 0?ie:q),ht=Ye}for(var be=yt==="top"?tt:nt-tt,It=b;It>=0;It-=1){var Be=$e(Ue[It]),rt=ke.get(Be);if(rt===void 0){ct=!0;break}if(be-=rt,be<=0)break}switch(yt){case"top":Ge=Ce-tt;break;case"bottom":Ge=Ye-nt+tt;break;default:{var ft=Xe.current.scrollTop,ve=ft+nt;Ce<ft?ut="top":Ye>ve&&(ut="bottom")}}Ge!==null&&z(Ge),Ge!==ye.lastTop&&(ct=!0)}ct&&Re((0,j.Z)((0,j.Z)({},ye),{},{times:ye.times+1,targetAlign:ut,lastTop:Ge}))}},[ye,Xe.current]),function(Ze){if(Ze==null){D();return}if(F.Z.cancel(ue.current),typeof Ze=="number")z(Ze);else if(Ze&&(0,ne.Z)(Ze)==="object"){var te,le=Ze.align;"index"in Ze?te=Ze.index:te=Ue.findIndex(function(ct){return $e(ct)===Ze.key});var tt=Ze.offset,nt=tt===void 0?0:tt;Re({times:0,index:te,offset:nt,originAlign:le})}}}var Ve=S.forwardRef(function(Xe,Ue){var ke=Xe.prefixCls,ie=Xe.rtl,$e=Xe.scrollOffset,Pe=Xe.scrollRange,z=Xe.onStartMove,D=Xe.onStopMove,ue=Xe.onScroll,ge=Xe.horizontal,pe=Xe.spinSize,ye=Xe.containerSize,Re=Xe.style,Ze=Xe.thumbStyle,te=Xe.showScrollBar,le=S.useState(!1),tt=(0,K.Z)(le,2),nt=tt[0],ct=tt[1],ut=S.useState(null),Ge=(0,K.Z)(ut,2),yt=Ge[0],ht=Ge[1],Ce=S.useState(null),Ye=(0,K.Z)(Ce,2),b=Ye[0],w=Ye[1],He=!ie,q=S.useRef(),be=S.useRef(),It=S.useState(te),Be=(0,K.Z)(It,2),rt=Be[0],ft=Be[1],ve=S.useRef(),Se=function(){te===!0||te===!1||(clearTimeout(ve.current),ft(!0),ve.current=setTimeout(function(){ft(!1)},3e3))},We=Pe-ye||0,ze=ye-pe||0,M=S.useMemo(function(){if($e===0||We===0)return 0;var Bn=$e/We;return Bn*ze},[$e,We,ze]),dt=function(Wn){Wn.stopPropagation(),Wn.preventDefault()},Ee=S.useRef({top:M,dragging:nt,pageY:yt,startTop:b});Ee.current={top:M,dragging:nt,pageY:yt,startTop:b};var Tt=function(Wn){ct(!0),ht(E(Wn,ge)),w(Ee.current.top),z(),Wn.stopPropagation(),Wn.preventDefault()};S.useEffect(function(){var Bn=function(vn){vn.preventDefault()},Wn=q.current,Tn=be.current;return Wn.addEventListener("touchstart",Bn,{passive:!1}),Tn.addEventListener("touchstart",Tt,{passive:!1}),function(){Wn.removeEventListener("touchstart",Bn),Tn.removeEventListener("touchstart",Tt)}},[]);var Kt=S.useRef();Kt.current=We;var Jt=S.useRef();Jt.current=ze,S.useEffect(function(){if(nt){var Bn,Wn=function(vn){var Gt=Ee.current,Qt=Gt.dragging,Dn=Gt.pageY,An=Gt.startTop;F.Z.cancel(Bn);var bt=q.current.getBoundingClientRect(),_t=ye/(ge?bt.width:bt.height);if(Qt){var Me=(E(vn,ge)-Dn)*_t,ot=An;!He&&ge?ot-=Me:ot+=Me;var vt=Kt.current,Et=Jt.current,Dt=Et?ot/Et:0,Xt=Math.ceil(Dt*vt);Xt=Math.max(Xt,0),Xt=Math.min(Xt,vt),Bn=(0,F.Z)(function(){ue(Xt,ge)})}},Tn=function(){ct(!1),D()};return window.addEventListener("mousemove",Wn,{passive:!0}),window.addEventListener("touchmove",Wn,{passive:!0}),window.addEventListener("mouseup",Tn,{passive:!0}),window.addEventListener("touchend",Tn,{passive:!0}),function(){window.removeEventListener("mousemove",Wn),window.removeEventListener("touchmove",Wn),window.removeEventListener("mouseup",Tn),window.removeEventListener("touchend",Tn),F.Z.cancel(Bn)}}},[nt]),S.useEffect(function(){return Se(),function(){clearTimeout(ve.current)}},[$e]),S.useImperativeHandle(Ue,function(){return{delayHidden:Se}});var un="".concat(ke,"-scrollbar"),gn={position:"absolute",visibility:rt?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 ge?(Object.assign(gn,{height:8,left:0,right:0,bottom:0}),Object.assign(En,(0,fe.Z)({height:"100%",width:pe},He?"left":"right",M))):(Object.assign(gn,(0,fe.Z)({width:8,top:0,bottom:0},He?"right":"left",0)),Object.assign(En,{width:"100%",height:pe,top:M})),S.createElement("div",{ref:q,className:oe()(un,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(un,"-horizontal"),ge),"".concat(un,"-vertical"),!ge),"".concat(un,"-visible"),rt)),style:(0,j.Z)((0,j.Z)({},gn),Re),onMouseDown:dt,onMouseMove:Se},S.createElement("div",{ref:be,className:oe()("".concat(un,"-thumb"),(0,fe.Z)({},"".concat(un,"-thumb-moving"),nt)),style:(0,j.Z)((0,j.Z)({},En),Ze),onMouseDown:Tt}))}),lt=Ve,xe=20;function je(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=Xe/Ue*Xe;return isNaN(ke)&&(ke=0),ke=Math.max(ke,xe),Math.floor(ke)}var Qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],it=[],De={overflowY:"auto",overflowAnchor:"none"};function wt(Xe,Ue){var ke=Xe.prefixCls,ie=ke===void 0?"rc-virtual-list":ke,$e=Xe.className,Pe=Xe.height,z=Xe.itemHeight,D=Xe.fullHeight,ue=D===void 0?!0:D,ge=Xe.style,pe=Xe.data,ye=Xe.children,Re=Xe.itemKey,Ze=Xe.virtual,te=Xe.direction,le=Xe.scrollWidth,tt=Xe.component,nt=tt===void 0?"div":tt,ct=Xe.onScroll,ut=Xe.onVirtualScroll,Ge=Xe.onVisibleChange,yt=Xe.innerProps,ht=Xe.extraRender,Ce=Xe.styles,Ye=Xe.showScrollBar,b=Ye===void 0?"optional":Ye,w=(0,g.Z)(Xe,Qe),He=S.useCallback(function(an){return typeof Re=="function"?Re(an):an==null?void 0:an[Re]},[Re]),q=A(He,null,null),be=(0,K.Z)(q,4),It=be[0],Be=be[1],rt=be[2],ft=be[3],ve=!!(Ze!==!1&&Pe&&z),Se=S.useMemo(function(){return Object.values(rt.maps).reduce(function(an,ln){return an+ln},0)},[rt.id,rt.maps]),We=ve&&pe&&(Math.max(z*pe.length,Se)>Pe||!!le),ze=te==="rtl",M=oe()(ie,(0,fe.Z)({},"".concat(ie,"-rtl"),ze),$e),dt=pe||it,Ee=(0,S.useRef)(),Tt=(0,S.useRef)(),Kt=(0,S.useRef)(),Jt=(0,S.useState)(0),un=(0,K.Z)(Jt,2),gn=un[0],En=un[1],Bn=(0,S.useState)(0),Wn=(0,K.Z)(Bn,2),Tn=Wn[0],Jn=Wn[1],vn=(0,S.useState)(!1),Gt=(0,K.Z)(vn,2),Qt=Gt[0],Dn=Gt[1],An=function(){Dn(!0)},bt=function(){Dn(!1)},_t={getKey:He};function Me(an){En(function(ln){var Un;typeof an=="function"?Un=an(ln):Un=an;var Yn=dr(Un);return Ee.current.scrollTop=Yn,Yn})}var ot=(0,S.useRef)({start:0,end:dt.length}),vt=(0,S.useRef)(),Et=G(dt,He),Dt=(0,K.Z)(Et,1),Xt=Dt[0];vt.current=Xt;var pn=S.useMemo(function(){if(!ve)return{scrollHeight:void 0,start:0,end:dt.length-1,offset:void 0};if(!We){var an;return{scrollHeight:((an=Tt.current)===null||an===void 0?void 0:an.offsetHeight)||0,start:0,end:dt.length-1,offset:void 0}}for(var ln=0,Un,Yn,lr,Rr=dt.length,Fn=0;Fn<Rr;Fn+=1){var pr=dt[Fn],Dr=He(pr),Xr=rt.get(Dr),pi=ln+(Xr===void 0?z:Xr);pi>=gn&&Un===void 0&&(Un=Fn,Yn=ln),pi>gn+Pe&&lr===void 0&&(lr=Fn),ln=pi}return Un===void 0&&(Un=0,Yn=0,lr=Math.ceil(Pe/z)),lr===void 0&&(lr=dt.length-1),lr=Math.min(lr+1,dt.length-1),{scrollHeight:ln,start:Un,end:lr,offset:Yn}},[We,ve,gn,dt,ft,Pe]),Sn=pn.scrollHeight,Zt=pn.start,yn=pn.end,Nn=pn.offset;ot.current.start=Zt,ot.current.end=yn,S.useLayoutEffect(function(){var an=rt.getRecord();if(an.size===1){var ln=Array.from(an.keys())[0],Un=an.get(ln),Yn=dt[Zt];if(Yn&&Un===void 0){var lr=He(Yn);if(lr===ln){var Rr=rt.get(ln),Fn=Rr-z;Me(function(pr){return pr+Fn})}}}rt.resetRecord()},[Sn]);var _n=S.useState({width:0,height:Pe}),St=(0,K.Z)(_n,2),Ft=St[0],Vt=St[1],Ut=function(ln){Vt({width:ln.offsetWidth,height:ln.offsetHeight})},jt=(0,S.useRef)(),qt=(0,S.useRef)(),sn=S.useMemo(function(){return je(Ft.width,le)},[Ft.width,le]),on=S.useMemo(function(){return je(Ft.height,Sn)},[Ft.height,Sn]),In=Sn-Pe,Mn=(0,S.useRef)(In);Mn.current=In;function dr(an){var ln=an;return Number.isNaN(Mn.current)||(ln=Math.min(ln,Mn.current)),ln=Math.max(ln,0),ln}var jn=gn<=0,Kn=gn>=In,er=Tn<=0,Qn=Tn>=le,ar=me(jn,Kn,er,Qn),Vn=function(){return{x:ze?-Tn:Tn,y:gn}},qn=(0,S.useRef)(Vn()),or=(0,C.zX)(function(an){if(ut){var ln=(0,j.Z)((0,j.Z)({},Vn()),an);(qn.current.x!==ln.x||qn.current.y!==ln.y)&&(ut(ln),qn.current=ln)}});function cr(an,ln){var Un=an;ln?((0,_.flushSync)(function(){Jn(Un)}),or()):Me(Un)}function rr(an){var ln=an.currentTarget.scrollTop;ln!==gn&&Me(ln),ct==null||ct(an),or()}var nr=function(ln){var Un=ln,Yn=le?le-Ft.width:0;return Un=Math.max(Un,0),Un=Math.min(Un,Yn),Un},ir=(0,C.zX)(function(an,ln){ln?((0,_.flushSync)(function(){Jn(function(Un){var Yn=Un+(ze?-an:an);return nr(Yn)})}),or()):Me(function(Un){var Yn=Un+an;return Yn})}),Zn=de(ve,jn,Kn,er,Qn,!!le,ir),Mr=(0,K.Z)(Zn,2),$t=Mr[0],sr=Mr[1];J(ve,Ee,function(an,ln,Un,Yn){var lr=Yn;return ar(an,ln,Un)?!1:!lr||!lr._virtualHandled?(lr&&(lr._virtualHandled=!0),$t({preventDefault:function(){},deltaX:an?ln:0,deltaY:an?0:ln}),!0):!1}),R(We,Ee,function(an){Me(function(ln){return ln+an})}),(0,N.Z)(function(){function an(Un){var Yn=jn&&Un.detail<0,lr=Kn&&Un.detail>0;ve&&!Yn&&!lr&&Un.preventDefault()}var ln=Ee.current;return ln.addEventListener("wheel",$t,{passive:!1}),ln.addEventListener("DOMMouseScroll",sr,{passive:!0}),ln.addEventListener("MozMousePixelScroll",an,{passive:!1}),function(){ln.removeEventListener("wheel",$t),ln.removeEventListener("DOMMouseScroll",sr),ln.removeEventListener("MozMousePixelScroll",an)}},[ve,jn,Kn]),(0,N.Z)(function(){if(le){var an=nr(Tn);Jn(an),or({x:an})}},[Ft.width,le]);var hr=function(){var ln,Un;(ln=jt.current)===null||ln===void 0||ln.delayHidden(),(Un=qt.current)===null||Un===void 0||Un.delayHidden()},Yr=we(Ee,dt,rt,z,He,function(){return Be(!0)},Me,hr);S.useImperativeHandle(Ue,function(){return{nativeElement:Kt.current,getScrollInfo:Vn,scrollTo:function(ln){function Un(Yn){return Yn&&(0,ne.Z)(Yn)==="object"&&("left"in Yn||"top"in Yn)}Un(ln)?(ln.left!==void 0&&Jn(nr(ln.left)),Yr(ln.top)):Yr(ln)}}}),(0,N.Z)(function(){if(Ge){var an=dt.slice(Zt,yn+1);Ge(an,dt)}},[Zt,yn,dt]);var Kr=Ie(dt,He,rt,z),li=ht==null?void 0:ht({start:Zt,end:yn,virtual:We,offsetX:Tn,offsetY:Nn,rtl:ze,getSize:Kr}),qr=V(dt,Zt,yn,le,Tn,It,ye,_t),Hn=null;Pe&&(Hn=(0,j.Z)((0,fe.Z)({},ue?"height":"maxHeight",Pe),De),ve&&(Hn.overflowY="hidden",le&&(Hn.overflowX="hidden"),Qt&&(Hn.pointerEvents="none")));var On={};return ze&&(On.dir="rtl"),S.createElement("div",(0,o.Z)({ref:Kt,style:(0,j.Z)((0,j.Z)({},ge),{},{position:"relative"}),className:M},On,w),S.createElement(l.Z,{onResize:Ut},S.createElement(nt,{className:"".concat(ie,"-holder"),style:Hn,ref:Ee,onScroll:rr,onMouseEnter:hr},S.createElement(k,{prefixCls:ie,height:Sn,offsetX:Tn,offsetY:Nn,scrollWidth:le,onInnerResize:Be,ref:Tt,innerProps:yt,rtl:ze,extra:li},qr))),We&&Sn>Pe&&S.createElement(lt,{ref:jt,prefixCls:ie,scrollOffset:gn,scrollRange:Sn,rtl:ze,onScroll:cr,onStartMove:An,onStopMove:bt,spinSize:on,containerSize:Ft.height,style:Ce==null?void 0:Ce.verticalScrollBar,thumbStyle:Ce==null?void 0:Ce.verticalScrollBarThumb,showScrollBar:b}),We&&le>Ft.width&&S.createElement(lt,{ref:qt,prefixCls:ie,scrollOffset:Tn,scrollRange:le,rtl:ze,onScroll:cr,onStartMove:An,onStopMove:bt,spinSize:sn,containerSize:Ft.width,horizontal:!0,style:Ce==null?void 0:Ce.horizontalScrollBar,thumbStyle:Ce==null?void 0:Ce.horizontalScrollBarThumb,showScrollBar:b}))}var et=S.forwardRef(wt);et.displayName="List";var Ot=et,qe=Ot},83145:function(mn,gt,d){"use strict";Object.defineProperty(gt,"__esModule",{value:!0}),gt.CopyToClipboard=void 0;var o=j(d(59301)),ne=j(d(25769));function j(I){return I&&I.__esModule?I:{default:I}}function fe(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(F){return typeof F}:fe=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},fe(I)}function K(I,G){var F=Object.keys(I);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(I);G&&(L=L.filter(function(ae){return Object.getOwnPropertyDescriptor(I,ae).enumerable})),F.push.apply(F,L)}return F}function g(I){for(var G=1;G<arguments.length;G++){var F=arguments[G]!=null?arguments[G]:{};G%2?K(F,!0).forEach(function(L){V(I,L,F[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(F)):K(F).forEach(function(L){Object.defineProperty(I,L,Object.getOwnPropertyDescriptor(F,L))})}return I}function re(I,G){if(I==null)return{};var F=oe(I,G),L,ae;if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(I);for(ae=0;ae<me.length;ae++)L=me[ae],!(G.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(I,L)&&(F[L]=I[L])}return F}function oe(I,G){if(I==null)return{};var F={},L=Object.keys(I),ae,me;for(me=0;me<L.length;me++)ae=L[me],!(G.indexOf(ae)>=0)&&(F[ae]=I[ae]);return F}function l(I,G){if(!(I instanceof G))throw new TypeError("Cannot call a class as a function")}function C(I,G){for(var F=0;F<G.length;F++){var L=G[F];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}function N(I,G,F){return G&&C(I.prototype,G),F&&C(I,F),I}function S(I,G){return G&&(fe(G)==="object"||typeof G=="function")?G:T(I)}function _(I){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},_(I)}function T(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function k(I,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(G&&G.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),G&&W(I,G)}function W(I,G){return W=Object.setPrototypeOf||function(L,ae){return L.__proto__=ae,L},W(I,G)}function V(I,G,F){return G in I?Object.defineProperty(I,G,{value:F,enumerable:!0,configurable:!0,writable:!0}):I[G]=F,I}var $=function(I){k(G,I);function G(){var F,L;l(this,G);for(var ae=arguments.length,me=new Array(ae),de=0;de<ae;de++)me[de]=arguments[de];return L=S(this,(F=_(G)).call.apply(F,[this].concat(me))),V(T(L),"onClick",function(Ie){var Fe=L.props,_e=Fe.text,Te=Fe.onCopy,ee=Fe.children,B=Fe.options,A=o.default.Children.only(ee),X=(0,ne.default)(_e,B);Te&&Te(_e,X),A&&A.props&&typeof A.props.onClick=="function"&&A.props.onClick(Ie)}),L}return N(G,[{key:"render",value:function(){var L=this.props,ae=L.text,me=L.onCopy,de=L.options,Ie=L.children,Fe=re(L,["text","onCopy","options","children"]),_e=o.default.Children.only(Ie);return o.default.cloneElement(_e,g({},Fe,{onClick:this.onClick}))}}]),G}(o.default.PureComponent);gt.CopyToClipboard=$,V($,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(mn,gt,d){"use strict";var o=d(83145),ne=o.CopyToClipboard;ne.CopyToClipboard=ne,mn.exports=ne},76374:function(mn,gt,d){"use strict";var o=function(){if(typeof Map!="undefined")return Map;function ee(B,A){var X=-1;return B.some(function(J,Q){return J[0]===A?(X=Q,!0):!1}),X}return function(){function B(){this.__entries__=[]}return Object.defineProperty(B.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),B.prototype.get=function(A){var X=ee(this.__entries__,A),J=this.__entries__[X];return J&&J[1]},B.prototype.set=function(A,X){var J=ee(this.__entries__,A);~J?this.__entries__[J][1]=X:this.__entries__.push([A,X])},B.prototype.delete=function(A){var X=this.__entries__,J=ee(X,A);~J&&X.splice(J,1)},B.prototype.has=function(A){return!!~ee(this.__entries__,A)},B.prototype.clear=function(){this.__entries__.splice(0)},B.prototype.forEach=function(A,X){X===void 0&&(X=null);for(var J=0,Q=this.__entries__;J<Q.length;J++){var E=Q[J];A.call(X,E[1],E[0])}},B}()}(),ne=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,j=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")()}(),fe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(j):function(ee){return setTimeout(function(){return ee(Date.now())},1e3/60)}}(),K=2;function g(ee,B){var A=!1,X=!1,J=0;function Q(){A&&(A=!1,ee()),X&&R()}function E(){fe(Q)}function R(){var se=Date.now();if(A){if(se-J<K)return;X=!0}else A=!0,X=!1,setTimeout(E,B);J=se}return R}var re=20,oe=["top","right","bottom","left","width","height","size","weight"],l=typeof MutationObserver!="undefined",C=function(){function ee(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),re)}return ee.prototype.addObserver=function(B){~this.observers_.indexOf(B)||this.observers_.push(B),this.connected_||this.connect_()},ee.prototype.removeObserver=function(B){var A=this.observers_,X=A.indexOf(B);~X&&A.splice(X,1),!A.length&&this.connected_&&this.disconnect_()},ee.prototype.refresh=function(){var B=this.updateObservers_();B&&this.refresh()},ee.prototype.updateObservers_=function(){var B=this.observers_.filter(function(A){return A.gatherActive(),A.hasActive()});return B.forEach(function(A){return A.broadcastActive()}),B.length>0},ee.prototype.connect_=function(){!ne||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ee.prototype.disconnect_=function(){!ne||!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)},ee.prototype.onTransitionEnd_=function(B){var A=B.propertyName,X=A===void 0?"":A,J=oe.some(function(Q){return!!~X.indexOf(Q)});J&&this.refresh()},ee.getInstance=function(){return this.instance_||(this.instance_=new ee),this.instance_},ee.instance_=null,ee}(),N=function(ee,B){for(var A=0,X=Object.keys(B);A<X.length;A++){var J=X[A];Object.defineProperty(ee,J,{value:B[J],enumerable:!1,writable:!1,configurable:!0})}return ee},S=function(ee){var B=ee&&ee.ownerDocument&&ee.ownerDocument.defaultView;return B||j},_=ae(0,0,0,0);function T(ee){return parseFloat(ee)||0}function k(ee){for(var B=[],A=1;A<arguments.length;A++)B[A-1]=arguments[A];return B.reduce(function(X,J){var Q=ee["border-"+J+"-width"];return X+T(Q)},0)}function W(ee){for(var B=["top","right","bottom","left"],A={},X=0,J=B;X<J.length;X++){var Q=J[X],E=ee["padding-"+Q];A[Q]=T(E)}return A}function V(ee){var B=ee.getBBox();return ae(0,0,B.width,B.height)}function $(ee){var B=ee.clientWidth,A=ee.clientHeight;if(!B&&!A)return _;var X=S(ee).getComputedStyle(ee),J=W(X),Q=J.left+J.right,E=J.top+J.bottom,R=T(X.width),se=T(X.height);if(X.boxSizing==="border-box"&&(Math.round(R+Q)!==B&&(R-=k(X,"left","right")+Q),Math.round(se+E)!==A&&(se-=k(X,"top","bottom")+E)),!G(ee)){var we=Math.round(R+Q)-B,Ve=Math.round(se+E)-A;Math.abs(we)!==1&&(R-=we),Math.abs(Ve)!==1&&(se-=Ve)}return ae(J.left,J.top,R,se)}var I=function(){return typeof SVGGraphicsElement!="undefined"?function(ee){return ee instanceof S(ee).SVGGraphicsElement}:function(ee){return ee instanceof S(ee).SVGElement&&typeof ee.getBBox=="function"}}();function G(ee){return ee===S(ee).document.documentElement}function F(ee){return ne?I(ee)?V(ee):$(ee):_}function L(ee){var B=ee.x,A=ee.y,X=ee.width,J=ee.height,Q=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,E=Object.create(Q.prototype);return N(E,{x:B,y:A,width:X,height:J,top:A,right:B+X,bottom:J+A,left:B}),E}function ae(ee,B,A,X){return{x:ee,y:B,width:A,height:X}}var me=function(){function ee(B){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ae(0,0,0,0),this.target=B}return ee.prototype.isActive=function(){var B=F(this.target);return this.contentRect_=B,B.width!==this.broadcastWidth||B.height!==this.broadcastHeight},ee.prototype.broadcastRect=function(){var B=this.contentRect_;return this.broadcastWidth=B.width,this.broadcastHeight=B.height,B},ee}(),de=function(){function ee(B,A){var X=L(A);N(this,{target:B,contentRect:X})}return ee}(),Ie=function(){function ee(B,A,X){if(this.activeObservations_=[],this.observations_=new o,typeof B!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=B,this.controller_=A,this.callbackCtx_=X}return ee.prototype.observe=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(B instanceof S(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var A=this.observations_;A.has(B)||(A.set(B,new me(B)),this.controller_.addObserver(this),this.controller_.refresh())}},ee.prototype.unobserve=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(B instanceof S(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var A=this.observations_;A.has(B)&&(A.delete(B),A.size||this.controller_.removeObserver(this))}},ee.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ee.prototype.gatherActive=function(){var B=this;this.clearActive(),this.observations_.forEach(function(A){A.isActive()&&B.activeObservations_.push(A)})},ee.prototype.broadcastActive=function(){if(this.hasActive()){var B=this.callbackCtx_,A=this.activeObservations_.map(function(X){return new de(X.target,X.broadcastRect())});this.callback_.call(B,A,B),this.clearActive()}},ee.prototype.clearActive=function(){this.activeObservations_.splice(0)},ee.prototype.hasActive=function(){return this.activeObservations_.length>0},ee}(),Fe=typeof WeakMap!="undefined"?new WeakMap:new o,_e=function(){function ee(B){if(!(this instanceof ee))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var A=C.getInstance(),X=new Ie(B,A,this);Fe.set(this,X)}return ee}();["observe","unobserve","disconnect"].forEach(function(ee){_e.prototype[ee]=function(){var B;return(B=Fe.get(this))[ee].apply(B,arguments)}});var Te=function(){return typeof j.ResizeObserver!="undefined"?j.ResizeObserver:_e}();gt.Z=Te},98040:function(mn){mn.exports=function(){var gt=document.getSelection();if(!gt.rangeCount)return function(){};for(var d=document.activeElement,o=[],ne=0;ne<gt.rangeCount;ne++)o.push(gt.getRangeAt(ne));switch(d.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":d.blur();break;default:d=null;break}return gt.removeAllRanges(),function(){gt.type==="Caret"&>.removeAllRanges(),gt.rangeCount||o.forEach(function(j){gt.addRange(j)}),d&&d.focus()}}},4977:function(mn){"use strict";mn.exports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Ew6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16471:function(mn,gt,d){"use strict";d.d(gt,{ZP:function(){return bo}});const o=Number.isFinite||function(s){return typeof s=="number"&&isFinite(s)},ne=Number.isSafeInteger||function(s){return typeof s=="number"&&Math.abs(s)<=j},j=Number.MAX_SAFE_INTEGER||9007199254740991;let fe=function(s){return s.NETWORK_ERROR="networkError",s.MEDIA_ERROR="mediaError",s.KEY_SYSTEM_ERROR="keySystemError",s.MUX_ERROR="muxError",s.OTHER_ERROR="otherError",s}({}),K=function(s){return s.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",s.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",s.KEY_SYSTEM_NO_SESSION="keySystemNoSession",s.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",s.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",s.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",s.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",s.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",s.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",s.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",s.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",s.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",s.MANIFEST_LOAD_ERROR="manifestLoadError",s.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",s.MANIFEST_PARSING_ERROR="manifestParsingError",s.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",s.LEVEL_EMPTY_ERROR="levelEmptyError",s.LEVEL_LOAD_ERROR="levelLoadError",s.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",s.LEVEL_PARSING_ERROR="levelParsingError",s.LEVEL_SWITCH_ERROR="levelSwitchError",s.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",s.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",s.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",s.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",s.FRAG_LOAD_ERROR="fragLoadError",s.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",s.FRAG_DECRYPT_ERROR="fragDecryptError",s.FRAG_PARSING_ERROR="fragParsingError",s.FRAG_GAP="fragGap",s.REMUX_ALLOC_ERROR="remuxAllocError",s.KEY_LOAD_ERROR="keyLoadError",s.KEY_LOAD_TIMEOUT="keyLoadTimeOut",s.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",s.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",s.BUFFER_APPEND_ERROR="bufferAppendError",s.BUFFER_APPENDING_ERROR="bufferAppendingError",s.BUFFER_STALLED_ERROR="bufferStalledError",s.BUFFER_FULL_ERROR="bufferFullError",s.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",s.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",s.ASSET_LIST_LOAD_ERROR="assetListLoadError",s.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",s.ASSET_LIST_PARSING_ERROR="assetListParsingError",s.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",s.INTERNAL_EXCEPTION="internalException",s.INTERNAL_ABORTED="aborted",s.ATTACH_MEDIA_ERROR="attachMediaError",s.UNKNOWN="unknown",s}({}),g=function(s){return s.MEDIA_ATTACHING="hlsMediaAttaching",s.MEDIA_ATTACHED="hlsMediaAttached",s.MEDIA_DETACHING="hlsMediaDetaching",s.MEDIA_DETACHED="hlsMediaDetached",s.MEDIA_ENDED="hlsMediaEnded",s.STALL_RESOLVED="hlsStallResolved",s.BUFFER_RESET="hlsBufferReset",s.BUFFER_CODECS="hlsBufferCodecs",s.BUFFER_CREATED="hlsBufferCreated",s.BUFFER_APPENDING="hlsBufferAppending",s.BUFFER_APPENDED="hlsBufferAppended",s.BUFFER_EOS="hlsBufferEos",s.BUFFERED_TO_END="hlsBufferedToEnd",s.BUFFER_FLUSHING="hlsBufferFlushing",s.BUFFER_FLUSHED="hlsBufferFlushed",s.MANIFEST_LOADING="hlsManifestLoading",s.MANIFEST_LOADED="hlsManifestLoaded",s.MANIFEST_PARSED="hlsManifestParsed",s.LEVEL_SWITCHING="hlsLevelSwitching",s.LEVEL_SWITCHED="hlsLevelSwitched",s.LEVEL_LOADING="hlsLevelLoading",s.LEVEL_LOADED="hlsLevelLoaded",s.LEVEL_UPDATED="hlsLevelUpdated",s.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",s.LEVELS_UPDATED="hlsLevelsUpdated",s.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",s.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",s.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",s.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",s.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",s.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",s.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",s.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",s.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",s.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",s.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",s.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",s.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",s.CUES_PARSED="hlsCuesParsed",s.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",s.INIT_PTS_FOUND="hlsInitPtsFound",s.FRAG_LOADING="hlsFragLoading",s.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",s.FRAG_LOADED="hlsFragLoaded",s.FRAG_DECRYPTED="hlsFragDecrypted",s.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",s.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",s.FRAG_PARSING_METADATA="hlsFragParsingMetadata",s.FRAG_PARSED="hlsFragParsed",s.FRAG_BUFFERED="hlsFragBuffered",s.FRAG_CHANGED="hlsFragChanged",s.FPS_DROP="hlsFpsDrop",s.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",s.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",s.ERROR="hlsError",s.DESTROYING="hlsDestroying",s.KEY_LOADING="hlsKeyLoading",s.KEY_LOADED="hlsKeyLoaded",s.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",s.BACK_BUFFER_REACHED="hlsBackBufferReached",s.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",s.ASSET_LIST_LOADING="hlsAssetListLoading",s.ASSET_LIST_LOADED="hlsAssetListLoaded",s.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",s.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",s.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",s.INTERSTITIAL_STARTED="hlsInterstitialStarted",s.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",s.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",s.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",s.INTERSTITIAL_ENDED="hlsInterstitialEnded",s.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",s.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",s.EVENT_CUE_ENTER="hlsEventCueEnter",s}({});var re={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},oe={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class l{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class 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 l(e),this.fast_=new l(t),this.defaultTTFB_=r,this.ttfb_=new l(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new l(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new l(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new l(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 N(s,e,t){return(e=W(e))in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function S(){return S=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},S.apply(null,arguments)}function _(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function T(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_(Object(t),!0).forEach(function(n){N(s,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach(function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(t,n))})}return s}function k(s,e){if(typeof s!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var n=t.call(s,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function W(s){var e=k(s,"string");return typeof e=="symbol"?e:e+""}class V{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=$,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 $=function(){},I={trace:$,debug:$,log:$,warn:$,info:$,error:$};function G(){return S({},I)}function F(s,e){const t=self.console[s];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${s}] >`):$}function L(s,e,t){return e[s]?e[s].bind(e):F(s,t)}const ae=G();function me(s,e,t){const n=G();if(typeof console=="object"&&s===!0||typeof s=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=L(i,s,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.15`)}catch(i){return G()}r.forEach(i=>{ae[i]=L(i,s)})}else S(ae,n);return n}const de=ae;function Ie(s=!0){return typeof self=="undefined"?void 0:(s||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Fe(s){return typeof self!="undefined"&&s===self.ManagedMediaSource}function _e(s,e){const t=Object.keys(s),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(a=>n.indexOf(a)===-1)}function Te(s,e=!1){if(typeof TextDecoder!="undefined"){const p=new TextDecoder("utf-8").decode(s);if(e){const v=p.indexOf("\0");return v!==-1?p.substring(0,v):p}return p.replace(/\0/g,"")}const t=s.length;let n,r,i,a="",c=0;for(;c<t;){if(n=s[c++],n===0&&e)return a;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:a+=String.fromCharCode(n);break;case 12:case 13:r=s[c++],a+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=s[c++],i=s[c++],a+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return a}function ee(s){let e="";for(let t=0;t<s.length;t++){let n=s[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}function B(s){return Uint8Array.from(s.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function A(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var X={exports:{}},J;function Q(){return J||(J=1,function(s,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(m,p,v){if(v=v||{},m=m.trim(),p=p.trim(),!p){if(!v.alwaysNormalize)return m;var x=c.parseURL(m);if(!x)throw new Error("Error trying to parse base URL.");return x.path=c.normalizePath(x.path),c.buildURLFromParts(x)}var P=c.parseURL(p);if(!P)throw new Error("Error trying to parse relative URL.");if(P.scheme)return v.alwaysNormalize?(P.path=c.normalizePath(P.path),c.buildURLFromParts(P)):p;var Z=c.parseURL(m);if(!Z)throw new Error("Error trying to parse base URL.");if(!Z.netLoc&&Z.path&&Z.path[0]!=="/"){var Y=r.exec(Z.path);Z.netLoc=Y[1],Z.path=Y[2]}Z.netLoc&&!Z.path&&(Z.path="/");var Oe={scheme:Z.scheme,netLoc:P.netLoc,path:null,params:P.params,query:P.query,fragment:P.fragment};if(!P.netLoc&&(Oe.netLoc=Z.netLoc,P.path[0]!=="/"))if(!P.path)Oe.path=Z.path,P.params||(Oe.params=Z.params,P.query||(Oe.query=Z.query));else{var Le=Z.path,st=Le.substring(0,Le.lastIndexOf("/")+1)+P.path;Oe.path=c.normalizePath(st)}return Oe.path===null&&(Oe.path=v.alwaysNormalize?c.normalizePath(P.path):P.path),c.buildURLFromParts(Oe)},parseURL:function(m){var p=n.exec(m);return p?{scheme:p[1]||"",netLoc:p[2]||"",path:p[3]||"",params:p[4]||"",query:p[5]||"",fragment:p[6]||""}:null},normalizePath:function(m){for(m=m.split("").reverse().join("").replace(i,"");m.length!==(m=m.replace(a,"")).length;);return m.split("").reverse().join("")},buildURLFromParts:function(m){return m.scheme+m.netLoc+m.path+m.params+m.query+m.fragment}};s.exports=c})()}(X)),X.exports}var E=Q();class R{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 se={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class we{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,Qe(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={[se.AUDIO]:null,[se.VIDEO]:null,[se.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 R),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=E.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[se.AUDIO]=null,e[se.VIDEO]=null,e[se.AUDIOVIDEO]=null}}function Ve(s){return s.sn!=="initSegment"}class lt extends we{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(o(e)&&o(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=o(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(!o(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return Ve(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,a=!1){const{elementaryStreams:c}=this,m=c[e];if(!m){c[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a};return}m.startPTS=Math.min(m.startPTS,t),m.endPTS=Math.max(m.endPTS,n),m.startDTS=Math.min(m.startDTS,r),m.endDTS=Math.max(m.endDTS,i)}}class xe extends we{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 a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function je(s,e){const t=Object.getPrototypeOf(s);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||je(t,e)}}function Qe(s,e){const t=je(s,e);t&&(t.enumerable=!0,Object.defineProperty(s,e,t))}const it=Math.pow(2,32)-1,De=[].push,wt={video:1,audio:2,id3:3,text:4};function et(s){return String.fromCharCode.apply(null,s)}function Ot(s,e){const t=s[e]<<8|s[e+1];return t<0?65536+t:t}function qe(s,e){const t=Ue(s,e);return t<0?4294967296+t:t}function Xe(s,e){let t=qe(s,e);return t*=Math.pow(2,32),t+=qe(s,e+4),t}function Ue(s,e){return s[e]<<24|s[e+1]<<16|s[e+2]<<8|s[e+3]}function ke(s){const e=s.byteLength;for(let t=0;t<e;){const n=qe(s,t);if(n>8&&s[t+4]===109&&s[t+5]===111&&s[t+6]===111&&s[t+7]===102)return!0;t=n>1?t+n:e}return!1}function ie(s,e){const t=[];if(!e.length)return t;const n=s.byteLength;for(let r=0;r<n;){const i=qe(s,r),a=et(s.subarray(r+4,r+8)),c=i>1?r+i:n;if(a===e[0])if(e.length===1)t.push(s.subarray(r+8,c));else{const m=ie(s.subarray(r+8,c),e.slice(1));m.length&&De.apply(t,m)}r=c}return t}function $e(s){const e=[],t=s[0];let n=8;const r=qe(s,n);n+=4;let i=0,a=0;t===0?(i=qe(s,n),a=qe(s,n+4),n+=8):(i=Xe(s,n),a=Xe(s,n+8),n+=16),n+=2;let c=s.length+a;const m=Ot(s,n);n+=2;for(let p=0;p<m;p++){let v=n;const x=qe(s,v);v+=4;const P=x&2147483647;if((x&2147483648)>>>31===1)return de.warn("SIDX has hierarchical references (not supported)"),null;const Y=qe(s,v);v+=4,e.push({referenceSize:P,subsegmentDuration:Y,info:{duration:Y/r,start:c,end:c+P-1}}),c+=P,v+=4,n=v}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:m,references:e}}function Pe(s){const e=[],t=ie(s,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],a=ie(i,["tkhd"])[0];if(a){let c=a[0];const m=qe(a,c===0?12:20),p=ie(i,["mdia","mdhd"])[0];if(p){c=p[0];const v=qe(p,c===0?12:20),x=ie(i,["mdia","hdlr"])[0];if(x){const P=et(x.subarray(8,12)),Z={soun:se.AUDIO,vide:se.VIDEO}[P],Y=ie(i,["mdia","minf","stbl","stsd"])[0],Oe=z(Y);Z?(e[m]={timescale:v,type:Z,stsd:Oe},e[Z]=T({timescale:v,id:m},Oe)):e[m]={timescale:v,type:P,stsd:Oe}}}}}return ie(s,["moov","mvex","trex"]).forEach(r=>{const i=qe(r,4),a=e[i];a&&(a.default={duration:qe(r,12),flags:qe(r,20)})}),e}function z(s){const e=s.subarray(8),t=e.subarray(86),n=et(e.subarray(4,8));let r=n,i;const a=n==="enca"||n==="encv";if(a){const p=ie(e,[n])[0].subarray(n==="enca"?28:78);ie(p,["sinf"]).forEach(x=>{const P=ie(x,["schm"])[0];if(P){const Z=et(P.subarray(4,8));if(Z==="cbcs"||Z==="cenc"){const Y=ie(x,["frma"])[0];Y&&(r=et(Y))}}})}const c=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const m=ie(t,["avcC"])[0];m&&m.length>3&&(r+="."+pe(m[1])+pe(m[2])+pe(m[3]),i=D(c==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const m=ie(e,[n])[0],p=ie(m.subarray(28),["esds"])[0];if(p&&p.length>7){let v=4;if(p[v++]!==3)break;v=ge(p,v),v+=2;const x=p[v++];if(x&128&&(v+=2),x&64&&(v+=p[v++]),p[v++]!==4)break;v=ge(p,v);const P=p[v++];if(P===64)r+="."+pe(P);else break;if(v+=12,p[v++]!==5)break;v=ge(p,v);const Z=p[v++];let Y=(Z&248)>>3;Y===31&&(Y+=1+((Z&7)<<3)+((p[v]&224)>>5)),r+="."+Y}break}case"hvc1":case"hev1":{const m=ie(t,["hvcC"])[0];if(m&&m.length>12){const p=m[1],v=["","A","B","C"][p>>6],x=p&31,P=qe(m,2),Z=(p&32)>>5?"H":"L",Y=m[12],Oe=m.subarray(6,12);r+="."+v+x,r+="."+ue(P).toString(16).toUpperCase(),r+="."+Z+Y;let Le="";for(let st=Oe.length;st--;){const mt=Oe[st];(mt||Le)&&(Le="."+mt.toString(16).toUpperCase()+Le)}r+=Le}i=D(c=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=D(r,t)||r;break}case"vp09":{const m=ie(t,["vpcC"])[0];if(m&&m.length>6){const p=m[4],v=m[5],x=m[6]>>4&15;r+="."+ye(p)+"."+ye(v)+"."+ye(x)}break}case"av01":{const m=ie(t,["av1C"])[0];if(m&&m.length>2){const p=m[1]>>>5,v=m[1]&31,x=m[2]>>>7?"H":"M",P=(m[2]&64)>>6,Z=(m[2]&32)>>5,Y=p===2&&P?Z?12:10:P?10:8,Oe=(m[2]&16)>>4,Le=(m[2]&8)>>3,st=(m[2]&4)>>2,mt=m[2]&3;r+="."+p+"."+ye(v)+x+"."+ye(Y)+"."+Oe+"."+Le+st+mt+"."+ye(1)+"."+ye(1)+"."+ye(1)+"."+0,i=D("dav1",t)}break}}return{codec:r,encrypted:a,supplemental:i}}function D(s,e){const t=ie(e,["dvvC"]),n=t.length?t[0]:ie(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return s+"."+ye(r)+"."+ye(i)}}function ue(s){let e=0;for(let t=0;t<32;t++)e|=(s>>t&1)<<31-t;return e>>>0}function ge(s,e){const t=e+5;for(;s[e++]&128&&e<t;);return e}function pe(s){return("0"+s.toString(16).toUpperCase()).slice(-2)}function ye(s){return(s<10?"0":"")+s}function Re(s,e){if(!s||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&te(s,(n,r)=>{const i=n.subarray(8,24);i.some(a=>a!==0)||(de.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${ee(i)} -> ${ee(t)}`),n.set(t,8))})}function Ze(s){const e=[];return te(s,t=>e.push(t.subarray(8,24))),e}function te(s,e){ie(s,["moov","trak"]).forEach(n=>{const r=ie(n,["mdia","minf","stbl","stsd"])[0];if(!r)return;const i=r.subarray(8);let a=ie(i,["enca"]);const c=a.length>0;c||(a=ie(i,["encv"])),a.forEach(m=>{const p=c?m.subarray(28):m.subarray(78);ie(p,["sinf"]).forEach(x=>{const P=le(x);P&&e(P,c)})})})}function le(s){const e=ie(s,["schm"])[0];if(e){const t=et(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=ie(s,["schi","tenc"])[0];if(n)return n}}}function tt(s,e,t){const n={},r=ie(s,["moof","traf"]);for(let i=0;i<r.length;i++){const a=r[i],c=ie(a,["tfhd"])[0],m=qe(c,4),p=e[m];if(!p)continue;n[m]||(n[m]={start:NaN,duration:0,sampleCount:0,timescale:p.timescale,type:p.type});const v=n[m],x=ie(a,["tfdt"])[0];if(x){const xt=x[0];let Mt=qe(x,4);xt===1&&(Mt===it?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(Mt*=it+1,Mt+=qe(x,8))),o(Mt)&&(!o(v.start)||Mt<v.start)&&(v.start=Mt)}const P=p.default,Z=qe(c,0)|(P==null?void 0:P.flags);let Y=(P==null?void 0:P.duration)||0;Z&8&&(Z&2?Y=qe(c,12):Y=qe(c,8));const Oe=ie(a,["trun"]);let Le=v.start||0,st=0,mt=Y;for(let xt=0;xt<Oe.length;xt++){const Mt=Oe[xt],Wt=qe(Mt,4),Rn=v.sampleCount;v.sampleCount+=Wt;const Yt=Mt[3]&1,hn=Mt[3]&4,fn=Mt[2]&1,en=Mt[2]&2,$n=Mt[2]&4,br=Mt[2]&8;let kr=8,Vr=Wt;for(Yt&&(kr+=4),hn&&Wt&&(!(Mt[kr+1]&1)&&v.keyFrameIndex===void 0&&(v.keyFrameIndex=Rn),kr+=4,fn?(mt=qe(Mt,kr),kr+=4):mt=Y,en&&(kr+=4),br&&(kr+=4),Le+=mt,st+=mt,Vr--);Vr--;)fn?(mt=qe(Mt,kr),kr+=4):mt=Y,en&&(kr+=4),$n&&(Mt[kr+1]&1||v.keyFrameIndex===void 0&&(v.keyFrameIndex=v.sampleCount-(Vr+1),v.keyFrameStart=Le),kr+=4),br&&(kr+=4),Le+=mt,st+=mt;!st&&Y&&(st+=Y*Wt)}v.duration+=st}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,a=0;const c=ie(s,["sidx"]);for(let m=0;m<c.length;m++){const p=$e(c[m]);if(p!=null&&p.references){i=Math.min(i,p.earliestPresentationTime/p.timescale);const v=p.references.reduce((x,P)=>x+P.info.duration||0,0);a=Math.max(a,v+p.earliestPresentationTime/p.timescale)}}a&&o(a)&&Object.keys(n).forEach(m=>{n[m].duration||(n[m].duration=a*n[m].timescale-n[m].start)})}return n}function nt(s){const e={valid:null,remainder:null},t=ie(s,["moof"]);if(t.length<2)return e.remainder=s,e;const n=t[t.length-1];return e.valid=s.slice(0,n.byteOffset-8),e.remainder=s.slice(n.byteOffset-8),e}function ct(s,e){const t=new Uint8Array(s.length+e.length);return t.set(s),t.set(e,s.length),t}function ut(s,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let a=!1;return ie(n,["moof"]).map(m=>{const p=m.byteOffset-8;ie(m,["traf"]).map(x=>{const P=ie(x,["tfdt"]).map(Z=>{const Y=Z[0];let Oe=qe(Z,4);return Y===1&&(Oe*=Math.pow(2,32),Oe+=qe(Z,8)),Oe/r})[0];return P!==void 0&&(s=P),ie(x,["tfhd"]).map(Z=>{const Y=qe(Z,4),Oe=qe(Z,0)&16777215,Le=(Oe&1)!==0,st=(Oe&2)!==0,mt=(Oe&8)!==0;let xt=0;const Mt=(Oe&16)!==0;let Wt=0;const Rn=(Oe&32)!==0;let Yt=8;Y===i&&(Le&&(Yt+=8),st&&(Yt+=4),mt&&(xt=qe(Z,Yt),Yt+=4),Mt&&(Wt=qe(Z,Yt),Yt+=4),Rn&&(Yt+=4),e.type==="video"&&(a=Ge(e.codec)),ie(x,["trun"]).map(hn=>{const fn=hn[0],en=qe(hn,0)&16777215,$n=(en&1)!==0;let br=0;const kr=(en&4)!==0,Vr=(en&256)!==0;let Nr=0;const fr=(en&512)!==0;let Ur=0;const wr=(en&1024)!==0,Hr=(en&2048)!==0;let oi=0;const gr=qe(hn,4);let vr=8;$n&&(br=qe(hn,vr),vr+=4),kr&&(vr+=4);let _i=br+p;for(let ia=0;ia<gr;ia++){if(Vr?(Nr=qe(hn,vr),vr+=4):Nr=xt,fr?(Ur=qe(hn,vr),vr+=4):Ur=Wt,wr&&(vr+=4),Hr&&(fn===0?oi=qe(hn,vr):oi=Ue(hn,vr),vr+=4),e.type===se.VIDEO){let Ti=0;for(;Ti<Ur;){const ji=qe(n,_i);if(_i+=4,yt(a,n[_i])){const is=n.subarray(_i,_i+ji);ht(is,a?2:1,s+oi/r,t)}_i+=ji,Ti+=ji+4}}s+=Nr/r}}))})})}),t}function Ge(s){if(!s)return!1;const e=s.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function yt(s,e){if(s){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function ht(s,e,t,n){const r=Ce(s);let i=0;i+=e;let a=0,c=0,m=0;for(;i<r.length;){a=0;do{if(i>=r.length)break;m=r[i++],a+=m}while(m===255);c=0;do{if(i>=r.length)break;m=r[i++],c+=m}while(m===255);const p=r.length-i;let v=i;if(c<p)i+=c;else if(c>p){de.error(`Malformed SEI payload. ${c} is too small, only ${p} bytes left to parse.`);break}if(a===4){if(r[v++]===181){const P=Ot(r,v);if(v+=2,P===49){const Z=qe(r,v);if(v+=4,Z===1195456820){const Y=r[v++];if(Y===3){const Oe=r[v++],Le=31&Oe,st=64&Oe,mt=st?2+Le*3:0,xt=new Uint8Array(mt);if(st){xt[0]=Oe;for(let Mt=1;Mt<mt;Mt++)xt[Mt]=r[v++]}n.push({type:Y,payloadType:a,pts:t,bytes:xt})}}}}}else if(a===5&&c>16){const x=[];for(let Y=0;Y<16;Y++){const Oe=r[v++].toString(16);x.push(Oe.length==1?"0"+Oe:Oe),(Y===3||Y===5||Y===7||Y===9)&&x.push("-")}const P=c-16,Z=new Uint8Array(P);for(let Y=0;Y<P;Y++)Z[Y]=r[v++];n.push({payloadType:a,pts:t,uuid:x.join(""),userData:Te(Z),userDataBytes:Z})}}}function Ce(s){const e=s.byteLength,t=[];let n=1;for(;n<e-2;)s[n]===0&&s[n+1]===0&&s[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return s;const r=e-t.length,i=new Uint8Array(r);let a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=s[a];return i}function Ye(s){const e=s[0];let t="",n="",r=0,i=0,a=0,c=0,m=0,p=0;if(e===0){for(;et(s.subarray(p,p+1))!=="\0";)t+=et(s.subarray(p,p+1)),p+=1;for(t+=et(s.subarray(p,p+1)),p+=1;et(s.subarray(p,p+1))!=="\0";)n+=et(s.subarray(p,p+1)),p+=1;n+=et(s.subarray(p,p+1)),p+=1,r=qe(s,12),i=qe(s,16),c=qe(s,20),m=qe(s,24),p=28}else if(e===1){p+=4,r=qe(s,p),p+=4;const x=qe(s,p);p+=4;const P=qe(s,p);for(p+=4,a=lc(2,32)*x+P,ne(a)||(a=Number.MAX_SAFE_INTEGER,de.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=qe(s,p),p+=4,m=qe(s,p),p+=4;et(s.subarray(p,p+1))!=="\0";)t+=et(s.subarray(p,p+1)),p+=1;for(t+=et(s.subarray(p,p+1)),p+=1;et(s.subarray(p,p+1))!=="\0";)n+=et(s.subarray(p,p+1)),p+=1;n+=et(s.subarray(p,p+1)),p+=1}const v=s.subarray(p,s.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:a,presentationTimeDelta:i,eventDuration:c,id:m,payload:v}}function b(s,...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(s,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function w(s,e,t){if(s.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 a=new Uint8Array(4);return t.byteLength>0&&new DataView(a.buffer).setUint32(0,t.byteLength,!1),b([112,115,115,104],new Uint8Array([n,0,0,0]),s,i,r,a,t)}function He(s){const e=[];if(s instanceof ArrayBuffer){const t=s.byteLength;let n=0;for(;n+32<t;){const r=new DataView(s,n),i=q(r);e.push(i),n+=i.size}}return e}function q(s){const e=s.getUint32(0),t=s.byteOffset,n=s.byteLength;if(n<e)return{offset:t,size:n};if(s.getUint32(4)!==1886614376)return{offset:t,size:e};const i=s.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const a=s.buffer,c=ee(new Uint8Array(a,t+12,16));let m=null,p=null,v=0;if(i===0)v=28;else{const P=s.getUint32(28);if(!P||n<32+P*16)return{offset:t,size:e};m=[];for(let Z=0;Z<P;Z++)m.push(new Uint8Array(a,t+32+Z*16,16));v=32+P*16}if(!v)return{offset:t,size:e};const x=s.getUint32(v);return e-32<x?{offset:t,size:e}:(p=new Uint8Array(a,t+v+4,x),{version:i,systemId:c,kids:m,data:p,offset:t,size:e})}const be=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),It={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 Be(s,e){const t=It[e];return!!t&&!!t[s.slice(0,4)]}function rt(s,e,t=!0){return!s.split(",").some(n=>!ft(n,e,t))}function ft(s,e,t=!0){var n;const r=Ie(t);return(n=r==null?void 0:r.isTypeSupported(ve(s,e)))!=null?n:!1}function ve(s,e){return`${e}/mp4;codecs=${s}`}function Se(s){if(s){const e=s.substring(0,4);return It.video[e]}return 2}function We(s){const e=be();return s.split(",").reduce((t,n)=>{const i=e&&Ge(n)?9:It.video[n];return i?(i*2+t)/(t?3:2):(It.audio[n]+t)/(t?2:1)},0)}const ze={};function M(s,e=!0){if(ze[s])return ze[s];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[s];for(let r=0;r<t.length;r++){var n;if(ft(t[r],"audio",e))return ze[s]=t[r],t[r];if(t[r]==="mp3"&&(n=Ie(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return s}const dt=/flac|opus|mp4a\.40\.34/i;function Ee(s,e=!0){return s.replace(dt,t=>M(t.toLowerCase(),e))}function Tt(s,e){const t=[];if(s){const n=s.split(",");for(let r=0;r<n.length;r++)Be(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function Kt(s,e){if(s&&(s.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(s)!==-1)&&(Jt(s,"audio")||Jt(s,"video")))return s;if(e){const t=e.split(",");if(t.length>1){if(s){for(let n=t.length;n--;)if(t[n].substring(0,4)===s.substring(0,4))return t[n]}return t[0]}}return e||s}function Jt(s,e){return Be(s,e)&&ft(s,e)}function un(s){const e=s.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(s){if(s.startsWith("av01.")){const e=s.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 s}function En(s){const e=Ie(s)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Bn(s){return s.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Wn={supported:!0,powerEfficient:!0,smooth:!0},Tn={supported:!1,smooth:!1,powerEfficient:!1},Jn={supported:!0,configurations:[],decodingInfoResults:[Wn]};function vn(s,e){return{supported:!1,configurations:e,decodingInfoResults:[Tn],error:s}}function Gt(s,e,t,n,r,i){const a=s.videoCodec,c=s.audioCodec?s.audioGroups:null,m=i==null?void 0:i.audioCodec,p=i==null?void 0:i.channels,v=p?parseInt(p):m?1/0:2;let x=null;if(c!=null&&c.length)try{c.length===1&&c[0]?x=e.groups[c[0]].channels:x=c.reduce((P,Z)=>{if(Z){const Y=e.groups[Z];if(!Y)throw new Error(`Audio track group ${Z} not found`);Object.keys(Y.channels).forEach(Oe=>{P[Oe]=(P[Oe]||0)+Y.channels[Oe]})}return P},{2:0})}catch(P){return!0}return a!==void 0&&(a.split(",").some(P=>Ge(P))||s.width>1920&&s.height>1088||s.height>1920&&s.width>1088||s.frameRate>Math.max(n,30)||s.videoRange!=="SDR"&&s.videoRange!==t||s.bitrate>Math.max(r,8e6))||!!x&&o(v)&&Object.keys(x).some(P=>parseInt(P)>v)}function Qt(s,e,t,n={}){const r=s.videoCodec;if(!r&&!s.audioCodec||!t)return Promise.resolve(Jn);const i=[],a=Dn(s),c=a.length,m=An(s,e,c>0),p=m.length;for(let v=c||1*p||1;v--;){const x={type:"media-source"};if(c&&(x.video=a[v%c]),p){x.audio=m[v%p];const P=x.audio.bitrate;x.video&&P&&(x.video.bitrate-=P)}i.push(x)}if(r){const v=navigator.userAgent;if(r.split(",").some(x=>Ge(x))&&be())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 x=Me(v);return n[x]||(n[x]=t.decodingInfo(v))})).then(v=>({supported:!v.some(x=>!x.supported),configurations:i,decodingInfoResults:v})).catch(v=>({supported:!1,configurations:i,decodingInfoResults:[],error:v}))}function Dn(s){var e;const t=(e=s.videoCodec)==null?void 0:e.split(","),n=_t(s),r=s.width||640,i=s.height||480,a=s.frameRate||30,c=s.videoRange.toLowerCase();return t?t.map(m=>{const p={contentType:ve(gn(m),"video"),width:r,height:i,bitrate:n,framerate:a};return c!=="sdr"&&(p.transferFunction=c),p}):[]}function An(s,e,t){var n;const r=(n=s.audioCodec)==null?void 0:n.split(","),i=_t(s);return r&&s.audioGroups?s.audioGroups.reduce((a,c)=>{var m;const p=c?(m=e.groups[c])==null?void 0:m.tracks:null;return p?p.reduce((v,x)=>{if(x.groupId===c){const P=parseFloat(x.channels||"");r.forEach(Z=>{const Y={contentType:ve(Z,"audio"),bitrate:t?bt(Z,i):i};P&&(Y.channels=""+P),v.push(Y)})}return v},a):a},[]):[]}function bt(s,e){if(e<=1)return 1;let t=128e3;return s==="ec-3"?t=768e3:s==="ac-3"&&(t=64e4),Math.min(e/2,t)}function _t(s){return Math.ceil(Math.max(s.bitrate*.9,s.averageBitrate)/1e3)*1e3||1}function Me(s){let e="";const{audio:t,video:n}=s;if(n){const r=Bn(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=Bn(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const ot=["NONE","TYPE-0","TYPE-1",null];function vt(s){return ot.indexOf(s)>-1}const Et=["SDR","PQ","HLG"];function Dt(s){return!!s&&Et.indexOf(s)>-1}var Xt={No:"",Yes:"YES",v2:"v2"};function pn(s){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=s,r=n<e/2;return e&&r?t?Xt.v2:Xt.Yes:Xt.No}class Sn{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 Zt{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(s,e){return!e||!s?!1:s.indexOf(e)!==-1}function Nn(){if(typeof matchMedia=="function"){const s=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(s.media!==e.media)return s.matches===!0}return!1}function _n(s,e){let t=!1,n=[];if(s&&(t=s!=="SDR",n=[s]),e){n=e.allowedVideoRanges||Et.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 St=s=>{const e=new WeakSet;return(t,n)=>{if(s&&(n=s(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},Ft=(s,e)=>JSON.stringify(s,St(e));function Vt(s,e,t,n,r){const i=Object.keys(s),a=n==null?void 0:n.channels,c=n==null?void 0:n.audioCodec,m=r==null?void 0:r.videoCodec,p=a&&parseInt(a)===2;let v=!1,x=!1,P=1/0,Z=1/0,Y=1/0,Oe=1/0,Le=0,st=[];const{preferHDR:mt,allowedVideoRanges:xt}=_n(e,r);for(let hn=i.length;hn--;){const fn=s[i[hn]];v||(v=fn.channels[2]>0),P=Math.min(P,fn.minHeight),Z=Math.min(Z,fn.minFramerate),Y=Math.min(Y,fn.minBitrate),xt.filter($n=>fn.videoRanges[$n]>0).length>0&&(x=!0)}P=o(P)?P:0,Z=o(Z)?Z:0;const Mt=Math.max(1080,P),Wt=Math.max(30,Z);Y=o(Y)?Y:t,t=Math.max(Y,t),x||(e=void 0);const Rn=i.length>1;return{codecSet:i.reduce((hn,fn)=>{const en=s[fn];if(fn===hn)return hn;if(st=x?xt.filter($n=>en.videoRanges[$n]>0):[],Rn){if(en.minBitrate>t)return Ut(fn,`min bitrate of ${en.minBitrate} > current estimate of ${t}`),hn;if(!en.hasDefaultAudio)return Ut(fn,"no renditions with default or auto-select sound found"),hn;if(c&&fn.indexOf(c.substring(0,4))%5!==0)return Ut(fn,`audio codec preference "${c}" not found`),hn;if(a&&!p){if(!en.channels[a])return Ut(fn,`no renditions with ${a} channel sound found (channels options: ${Object.keys(en.channels)})`),hn}else if((!c||p)&&v&&en.channels[2]===0)return Ut(fn,"no renditions with stereo sound found"),hn;if(en.minHeight>Mt)return Ut(fn,`min resolution of ${en.minHeight} > maximum of ${Mt}`),hn;if(en.minFramerate>Wt)return Ut(fn,`min framerate of ${en.minFramerate} > maximum of ${Wt}`),hn;if(!st.some($n=>en.videoRanges[$n]>0))return Ut(fn,`no variants with VIDEO-RANGE of ${Ft(st)} found`),hn;if(m&&fn.indexOf(m.substring(0,4))%5!==0)return Ut(fn,`video codec preference "${m}" not found`),hn;if(en.maxScore<Le)return Ut(fn,`max score of ${en.maxScore} < selected max of ${Le}`),hn}return hn&&(We(fn)>=We(hn)||en.fragmentError>s[hn].fragmentError)?hn:(Oe=en.minIndex,Le=en.maxScore,fn)},void 0),videoRanges:st,preferHDR:mt,minFramerate:Z,minBitrate:Y,minIndex:Oe}}function Ut(s,e){de.log(`[abr] start candidates with "${s}" ignored because ${e}`)}function jt(s){return s.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(s,e,t,n){return s.slice(t,n+1).reduce((r,i,a)=>{if(!i.codecSet)return r;const c=i.audioGroups;let m=r[i.codecSet];m||(r[i.codecSet]=m={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:a,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!c,fragmentError:0}),m.minBitrate=Math.min(m.minBitrate,i.bitrate);const p=Math.min(i.height,i.width);return m.minHeight=Math.min(m.minHeight,p),m.minFramerate=Math.min(m.minFramerate,i.frameRate),m.minIndex=Math.min(m.minIndex,a),m.maxScore=Math.max(m.maxScore,i.score),m.fragmentError+=i.fragmentError,m.videoRanges[i.videoRange]=(m.videoRanges[i.videoRange]||0)+1,c&&c.forEach(v=>{if(!v)return;const x=e.groups[v];x&&(m.hasDefaultAudio=m.hasDefaultAudio||e.hasDefaultAudio?x.hasDefault:x.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(x.channels).forEach(P=>{m.channels[P]=(m.channels[P]||0)+x.channels[P]}))}),r},{})}function sn(s){if(!s)return s;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=s;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function on(s,e,t){if("attrs"in s){const n=e.indexOf(s);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(In(s,r,t))return n}return-1}function In(s,e,t){const{groupId:n,name:r,lang:i,assocLang:a,default:c}=s,m=s.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||Mn(i,e.lang))&&(i===void 0||e.assocLang===a)&&(c===void 0||e.default===c)&&(m===void 0||e.forced===m)&&(!("characteristics"in s)||dr(s.characteristics||"",e.characteristics))&&(t===void 0||t(s,e))}function Mn(s,e="--"){return s.length===e.length?s===e:s.startsWith(e)||e.startsWith(s)}function dr(s,e=""){const t=s.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function jn(s,e){const{audioCodec:t,channels:n}=s;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function Kn(s,e,t,n,r){const i=e[n],c=e.reduce((P,Z,Y)=>{const Oe=Z.uri;return(P[Oe]||(P[Oe]=[])).push(Y),P},{})[i.uri];c.length>1&&(n=Math.max.apply(Math,c));const m=i.videoRange,p=i.frameRate,v=i.codecSet.substring(0,4),x=er(e,n,P=>{if(P.videoRange!==m||P.frameRate!==p||P.codecSet.substring(0,4)!==v)return!1;const Z=P.audioGroups,Y=t.filter(Oe=>!Z||Z.indexOf(Oe.groupId)!==-1);return on(s,Y,r)>-1});return x>-1?x:er(e,n,P=>{const Z=P.audioGroups,Y=t.filter(Oe=>!Z||Z.indexOf(Oe.groupId)!==-1);return on(s,Y,r)>-1})}function er(s,e,t){for(let n=e;n>-1;n--)if(t(s[n]))return n;for(let n=e+1;n<s.length;n++)if(t(s[n]))return n;return-1}function Qn(s,e){var t;return!!s&&s!==((t=e.loadLevelObj)==null?void 0:t.uri)}class ar extends V{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:a}=this,{autoLevelEnabled:c,media:m}=a;if(!r||!m)return;const p=performance.now(),v=i?i.stats:r.stats,x=i?i.duration:r.duration,P=p-v.loading.start,Z=a.minAutoLevel,Y=r.level,Oe=this._nextAutoLevel;if(v.aborted||v.loaded&&v.loaded===v.total||Y<=Z){this.clearTimer(),this._nextAutoLevel=-1;return}if(!c)return;const Le=Oe>-1&&Oe!==Y,st=!!t||Le;if(!st&&(m.paused||!m.playbackRate||!m.readyState))return;const mt=a.mainForwardBufferInfo;if(!st&&mt===null)return;const xt=this.bwEstimator.getEstimateTTFB(),Mt=Math.abs(m.playbackRate);if(P<=Math.max(xt,1e3*(x/(Mt*2))))return;const Wt=mt?mt.len/Mt:0,Rn=v.loading.first?v.loading.first-v.loading.start:-1,Yt=v.loaded&&Rn>-1,hn=this.getBwEstimate(),fn=a.levels,en=fn[Y],$n=Math.max(v.loaded,Math.round(x*(r.bitrate||en.averageBitrate)/8));let br=Yt?P-Rn:P;br<1&&Yt&&(br=Math.min(P,v.loaded*8/hn));const kr=Yt?v.loaded*1e3/br:0,Vr=xt/1e3,Nr=kr?($n-v.loaded)/kr:$n*8/hn+Vr;if(Nr<=Wt)return;const fr=kr?kr*8:hn,Ur=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,wr=this.hls.config.abrBandWidthUpFactor;let Hr=Number.POSITIVE_INFINITY,oi;for(oi=Y-1;oi>Z;oi--){const ia=fn[oi].maxBitrate,Ti=!fn[oi].details||Ur;if(Hr=this.getTimeToLoadFrag(Vr,fr,x*ia,Ti),Hr<Math.min(Wt,x+Vr))break}if(Hr>=Nr||Hr>x*10)return;Yt?this.bwEstimator.sample(P-Math.min(xt,Rn),v.loaded):this.bwEstimator.sampleTTFB(P);const gr=fn[oi].maxBitrate;this.getBwEstimate()*wr>gr&&this.resetEstimator(gr);const vr=this.findBestLevel(gr,Z,oi,0,Wt,1,1);vr>-1&&(oi=vr),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${Y} is loading too slowly;
|
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${Wt.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Nr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${Hr.toFixed(3)} s
|
|
|
TTFB estimate: ${Rn|0} ms
|
|
|
Current BW estimate: ${o(hn)?hn|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${oi} @ ${gr|0} bps`),a.nextLoadLevel=a.nextAutoLevel=oi,this.clearTimer();const _i=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===oi&&oi>0){const ia=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${oi>0?"and switching down":""}
|
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${ia.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,oi>Z){let Ti=this.findBestLevel(this.hls.levels[Z].bitrate,Z,oi,0,ia,1,1);Ti===-1&&(Ti=Z),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ti,this.resetEstimator(this.hls.levels[Ti].bitrate)}}};Le||Nr>Hr*2?_i():this.timer=self.setInterval(_i,Hr*1e3),a.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 K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case K.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const a=performance.now(),c=i?i.stats:n.stats,m=a-c.loading.start,p=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&p>-1){const x=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(m-Math.min(x,p),c.loaded)}else this.bwEstimator.sampleTTFB(m)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,a=r?e+this.lastLevelLoadSec:0;return i+a}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;o(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===oe.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,a=this.hls.levels[t.level],c=(a.loaded?a.loaded.bytes:0)+r.loaded,m=(a.loaded?a.loaded.duration:0)+i;a.loaded={bytes:c,duration:m},a.realBitrate=Math.round(8*c/m)}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 a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==oe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const a=this.hls.firstLevel,c=Math.min(Math.max(a,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${a} clamped to ${c}`),c}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const a=this.hls.levels;if(a.length>Math.max(e,i)&&a[e].loadError<=a[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:a}=n,c=t?t.duration:e?e.duration:0,m=this.getBwEstimate(),p=this.getStarvationDelay();let v=i.abrBandWidthFactor,x=i.abrBandWidthUpFactor;if(p){const Le=this.findBestLevel(m,a,r,p,0,v,x);if(Le>=0)return this.rebufferNotice=-1,Le}let P=c?Math.min(c,i.maxStarvationDelay):i.maxStarvationDelay;if(!p){const Le=this.bitrateTestDelay;Le&&(P=(c?Math.min(c,i.maxLoadingDelay):i.maxLoadingDelay)-Le,this.info(`bitrate test took ${Math.round(1e3*Le)}ms, set first fragment max fetchDuration to ${Math.round(1e3*P)} ms`),v=x=1)}const Z=this.findBestLevel(m,a,r,p,P,v,x);if(this.rebufferNotice!==Z&&(this.rebufferNotice=Z,this.info(`${p?"rebuffering expected":"buffer is empty"}, optimal quality level ${Z}`)),Z>-1)return Z;const Y=n.levels[a],Oe=n.loadLevelObj;return Oe&&(Y==null?void 0:Y.bitrate)<Oe.bitrate?a:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,a,c){var m;const p=r+i,v=this.lastLoadedFragLevel,x=v===-1?this.hls.firstLevel:v,{fragCurrent:P,partCurrent:Z}=this,{levels:Y,allAudioTracks:Oe,loadLevel:Le,config:st}=this.hls;if(Y.length===1)return 0;const mt=Y[x],xt=!!((m=this.hls.latestLevelDetails)!=null&&m.live),Mt=Le===-1||v===-1;let Wt,Rn="SDR",Yt=(mt==null?void 0:mt.frameRate)||0;const{audioPreference:hn,videoPreference:fn}=st,en=this.audioTracksByGroup||(this.audioTracksByGroup=jt(Oe));let $n=-1;if(Mt){if(this.firstSelection!==-1)return this.firstSelection;const fr=this.codecTiers||(this.codecTiers=qt(Y,en,t,n)),Ur=Vt(fr,Rn,e,hn,fn),{codecSet:wr,videoRanges:Hr,minFramerate:oi,minBitrate:gr,minIndex:vr,preferHDR:_i}=Ur;$n=vr,Wt=wr,Rn=_i?Hr[Hr.length-1]:Hr[0],Yt=oi,e=Math.max(e,gr),this.log(`picked start tier ${Ft(Ur)}`)}else Wt=mt==null?void 0:mt.codecSet,Rn=mt==null?void 0:mt.videoRange;const br=Z?Z.duration:P?P.duration:0,kr=this.bwEstimator.getEstimateTTFB()/1e3,Vr=[];for(let fr=n;fr>=t;fr--){var Nr;const Ur=Y[fr],wr=fr>x;if(!Ur)continue;if(st.useMediaCapabilities&&!Ur.supportedResult&&!Ur.supportedPromise){const Ti=navigator.mediaCapabilities;typeof(Ti==null?void 0:Ti.decodingInfo)=="function"&&Gt(Ur,en,Rn,Yt,e,hn)?(Ur.supportedPromise=Qt(Ur,en,Ti,this.supportedCache),Ur.supportedPromise.then(ji=>{if(!this.hls)return;Ur.supportedResult=ji;const is=this.hls.levels,es=is.indexOf(Ur);ji.error?this.warn(`MediaCapabilities decodingInfo error: "${ji.error}" for level ${es} ${Ft(ji)}`):ji.supported?ji.decodingInfoResults.some(Fs=>Fs.smooth===!1||Fs.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${es} not smooth or powerEfficient: ${Ft(ji)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${es} ${Ft(ji)}`),es>-1&&is.length>1&&(this.log(`Removing unsupported level ${es}`),this.hls.removeLevel(es),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(ji=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${ji}`)})):Ur.supportedResult=Jn}if((Wt&&Ur.codecSet!==Wt||Rn&&Ur.videoRange!==Rn||wr&&Yt>Ur.frameRate||!wr&&Yt>0&&Yt<Ur.frameRate||(Nr=Ur.supportedResult)!=null&&(Nr=Nr.decodingInfoResults)!=null&&Nr.some(Ti=>Ti.smooth===!1))&&(!Mt||fr!==$n)){Vr.push(fr);continue}const Hr=Ur.details,oi=(Z?Hr==null?void 0:Hr.partTarget:Hr==null?void 0:Hr.averagetargetduration)||br;let gr;wr?gr=c*e:gr=a*e;const vr=br&&r>=br*2&&i===0?Ur.averageBitrate:Ur.maxBitrate,_i=this.getTimeToLoadFrag(kr,gr,vr*oi,Hr===void 0);if(gr>=vr&&(fr===v||Ur.loadError===0&&Ur.fragmentError===0)&&(_i<=kr||!o(_i)||xt&&!this.bitrateTestDelay||_i<p)){const Ti=this.forcedAutoLevel;return fr!==Le&&(Ti===-1||Ti!==Le)&&(Vr.length&&this.trace(`Skipped level(s) ${Vr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${Y[Vr[0]].codecs}" ${Y[Vr[0]].videoRange}; not compatible with "${Wt}" ${Rn}`),this.info(`switch candidate:${x}->${fr} adjustedbw(${Math.round(gr)})-bitrate=${Math.round(gr-vr)} ttfb:${kr.toFixed(1)} avgDuration:${oi.toFixed(1)} maxFetchDuration:${p.toFixed(1)} fetchDuration:${_i.toFixed(1)} firstSelection:${Mt} codecSet:${Ur.codecSet} videoRange:${Ur.videoRange} hls.loadLevel:${Le}`)),Mt&&(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 Vn={search:function(s,e){let t=0,n=s.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=s[r];const a=e(i);if(a>0)t=r+1;else if(a<0)n=r-1;else return i}return null}};function qn(s,e,t){if(e===null||!Array.isArray(s)||!s.length||!o(e))return null;const n=s[0].programDateTime;if(e<(n||0))return null;const r=s[s.length-1].endProgramDateTime;if(e>=(r||0))return null;for(let i=0;i<s.length;++i){const a=s[i];if(nr(e,t,a))return a}return null}function or(s,e,t=0,n=0,r=.005){let i=null;if(s){i=e[1+s.sn-e[0].sn]||null;const c=s.endDTS-t;c>0&&c<15e-7&&(t+=15e-7),i&&s.level!==i.level&&i.end<=s.end&&(i=e[2+s.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!s||s.level===i.level)&&rr(t,n,i)===0||cr(i,s,Math.min(r,n))))return i;const a=Vn.search(e,rr.bind(null,t,n));return a&&(a!==s||!i)?a:i}function cr(s,e,t){if(e&&e.start===0&&e.level<s.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return s.start<=n}return!1}function rr(s=0,e=0,t){if(t.start<=s&&t.start+t.duration>s)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=s?1:t.start-n>s&&t.start?-1:0}function nr(s,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>s}function ir(s,e,t){if(s&&s.startCC<=e&&s.endCC>=e){let n=s.fragments;const{fragmentHint:r}=s;r&&(n=n.concat(r));let i;return Vn.search(n,a=>a.cc<e?1:a.cc>e?-1:(i=a,a.end<=t?1:a.start>t?-1:0)),i||null}return null}function Zn(s){switch(s.details){case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_TIMEOUT:case K.LEVEL_LOAD_TIMEOUT:case K.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Mr(s){return s.details.startsWith("key")}function $t(s){return Mr(s)&&!!s.frag&&!s.frag.decryptdata}function sr(s,e){const t=Zn(e);return s.default[`${t?"timeout":"error"}Retry`]}function hr(s,e){const t=s.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*s.retryDelayMs,s.maxRetryDelayMs)}function Yr(s){return T(T({},s),{errorRetry:null,timeoutRetry:null})}function Kr(s,e,t,n){if(!s)return!1;const r=n==null?void 0:n.code,i=e<s.maxNumRetry&&(li(r)||!!t);return s.shouldRetry?s.shouldRetry(s,e,t,n,i):i}function li(s){return qr(s)||!!s&&(s<400||s>499)}function qr(s){return s===0&&navigator.onLine===!1}var Hn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},On={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class an extends V{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)===oe.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(a=>r.indexOf(a.groupId)>=0).some(a=>{var c;return(c=a.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 K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case K.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=ln();return}case K.FRAG_GAP:case K.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Hn.SendAlternateToPenaltyBox;return}case K.LEVEL_EMPTY_ERROR:case K.LEVEL_PARSING_ERROR:{var a;const m=t.parent===oe.MAIN?t.level:r.loadLevel;t.details===K.LEVEL_EMPTY_ERROR&&((a=t.context)!=null&&(a=a.levelDetails)!=null&&a.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,m):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,m))}return;case K.LEVEL_LOAD_ERROR:case K.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case K.AUDIO_TRACK_LOAD_ERROR:case K.AUDIO_TRACK_LOAD_TIMEOUT:case K.SUBTITLE_LOAD_ERROR:case K.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const m=r.loadLevelObj;if(m&&(i.type===re.AUDIO_TRACK&&m.hasAudioGroup(i.groupId)||i.type===re.SUBTITLE_TRACK&&m.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Hn.SendAlternateToPenaltyBox,t.errorAction.flags=On.MoveAllAlternatesMatchingHost;return}}return;case K.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Hn.SendAlternateToPenaltyBox,flags:On.MoveAllAlternatesMatchingHDCP};return;case K.KEY_SYSTEM_SESSION_UPDATE_FAILED:case K.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case K.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Hn.SendAlternateToPenaltyBox,flags:On.MoveAllAlternatesMatchingKey};return;case K.BUFFER_ADD_CODEC_ERROR:case K.REMUX_ALLOC_ERROR:case K.BUFFER_APPEND_ERROR:if(!t.errorAction){var c;t.errorAction=this.getLevelSwitchAction(t,(c=t.level)!=null?c:r.loadLevel)}return;case K.INTERNAL_EXCEPTION:case K.BUFFER_APPENDING_ERROR:case K.BUFFER_FULL_ERROR:case K.LEVEL_SWITCH_ERROR:case K.BUFFER_STALLED_ERROR:case K.BUFFER_SEEK_OVER_HOLE:case K.BUFFER_NUDGE_ON_STALL:t.errorAction=ln();return}t.type===fe.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=ln())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=sr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Kr(r,i,Zn(e),e.response))return{action:Hn.RetryRequest,flags:On.None,retryConfig:r,retryCount:i};const c=this.getLevelSwitchAction(e,t);return r&&(c.retryConfig=r,c.retryCount=i),c}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,c=sr(Mr(e)?a:i,e),m=t.levels.reduce((v,x)=>v+x.fragmentError,0);if(r&&(e.details!==K.FRAG_GAP&&r.fragmentError++,!$t(e)&&Kr(c,m,Zn(e),e.response)))return{action:Hn.RetryRequest,flags:On.None,retryConfig:c,retryCount:m};const p=this.getLevelSwitchAction(e,n);return c&&(p.retryConfig=c,p.retryCount=m),p}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const p=e.details;r.loadError++,p===K.BUFFER_APPEND_ERROR&&r.fragmentError++;let v=-1;const{levels:x,loadLevel:P,minAutoLevel:Z,maxAutoLevel:Y}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const Oe=(i=e.frag)==null?void 0:i.type,st=(Oe===oe.AUDIO&&p===K.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(p===K.BUFFER_ADD_CODEC_ERROR||p===K.BUFFER_APPEND_ERROR))&&x.some(({audioCodec:Rn})=>r.audioCodec!==Rn),xt=e.sourceBufferName==="video"&&(p===K.BUFFER_ADD_CODEC_ERROR||p===K.BUFFER_APPEND_ERROR)&&x.some(({codecSet:Rn,audioCodec:Yt})=>r.codecSet!==Rn&&r.audioCodec===Yt),{type:Mt,groupId:Wt}=(a=e.context)!=null?a:{};for(let Rn=x.length;Rn--;){const Yt=(Rn+P)%x.length;if(Yt!==P&&Yt>=Z&&Yt<=Y&&x[Yt].loadError===0){var c,m;const hn=x[Yt];if(p===K.FRAG_GAP&&Oe===oe.MAIN&&e.frag){const fn=x[Yt].details;if(fn){const en=or(e.frag,fn.fragments,e.frag.start);if(en!=null&&en.gap)continue}}else{if(Mt===re.AUDIO_TRACK&&hn.hasAudioGroup(Wt)||Mt===re.SUBTITLE_TRACK&&hn.hasSubtitleGroup(Wt))continue;if(Oe===oe.AUDIO&&(c=r.audioGroups)!=null&&c.some(fn=>hn.hasAudioGroup(fn))||Oe===oe.SUBTITLE&&(m=r.subtitleGroups)!=null&&m.some(fn=>hn.hasSubtitleGroup(fn))||st&&r.audioCodec===hn.audioCodec||xt&&r.codecSet===hn.codecSet||!st&&r.codecSet!==hn.codecSet)continue}v=Yt;break}}if(v>-1&&n.loadLevel!==v)return e.levelRetry=!0,this.playlistError=0,{action:Hn.SendAlternateToPenaltyBox,flags:On.None,nextAutoLevel:v}}return{action:Hn.SendAlternateToPenaltyBox,flags:On.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Hn.DoNothing:break;case Hn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==K.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 Hn.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 On.None:this.switchLevel(e,i);break;case On.MoveAllAlternatesMatchingHDCP:{const m=this.getVariantLevelIndex(e.frag),p=t.levels[m],v=p==null?void 0:p.attrs["HDCP-LEVEL"];if(n.hdcpLevel=v,v==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(v){t.maxHdcpLevel=ot[ot.indexOf(v)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case On.MoveAllAlternatesMatchingKey:{const m=e.decryptdata;if(m){const p=this.hls.levels,v=p.length;for(let P=v;P--;)if(this.variantHasKey(p[P],m)){var a,c;this.log(`Banned key found in level ${P} (${p[P].bitrate}bps) or audio group "${(a=p[P].audioGroups)==null?void 0:a.join(",")}" (${(c=e.frag)==null?void 0:c.type} fragment) ${ee(m.keyId||[])}`),p[P].fragmentError++,p[P].loadError++,this.log(`Removing level ${P} with key error (${e.error})`),this.hls.removeLevel(P)}const x=e.frag;if(this.hls.levels.length<v)n.resolved=!0;else if(x&&x.type!==oe.MAIN){const P=x.decryptdata;P&&!m.matches(P)&&(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===K.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=Bn(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 ln(s){const e={action:Hn.DoNothing,flags:On.None};return s&&(e.resolved=!0),e}var Un={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 a=i.length;a--;){const c=r[i[a]];if((c==null?void 0:c.body.type)===t&&(!n||c.buffered)){const m=c.body;if(m.start<=e&&e<=m.end)return m}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const a=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(c=>{const m=this.fragments[c];if(!m||a>=m.body.sn)return;if(!m.buffered&&(!m.loaded||i)){m.body.type===n&&this.removeFragment(m.body);return}const p=m.range[e];if(p){if(p.time.length===0){this.removeFragment(m.body);return}p.time.some(v=>{const x=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return x&&this.removeFragment(m.body),x})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Rr(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const a=!n.relurl;Object.keys(t).forEach(c=>{const m=n.elementaryStreams[c];if(!m)return;const p=t[c],v=a||m.partial===!0;i.range[c]=this.getBufferedTimes(n,e.part,v,p)}),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]=Fn(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Rr(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},a=e.start,c=e.end,m=e.minEndPTS||c,p=e.maxStartPTS||a;for(let v=0;v<r.length;v++){const x=r.start(v)-this.bufferPadding,P=r.end(v)+this.bufferPadding;if(p>=x&&m<=P){i.time.push({startPTS:Math.max(a,r.start(v)),endPTS:Math.min(c,r.end(v))});break}else if(a<P&&c>x){const Z=Math.max(a,r.start(v)),Y=Math.min(c,r.end(v));Y>Z&&(i.partial=!0,i.time.push({startPTS:Z,endPTS:Y}))}else if(c<=x)break}return i}getPartialFragment(e){let t=null,n,r,i,a=0;const{bufferPadding:c,fragments:m}=this;return Object.keys(m).forEach(p=>{const v=m[p];v&&lr(v)&&(r=v.body.start-c,i=v.body.end+c,e>=r&&e<=i&&(n=Math.min(e-r,i-e),a<=n&&(t=v.body,a=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||lr(t))}getState(e){const t=Rr(e),n=this.fragments[t];return n?n.buffered?lr(n)?Un.PARTIAL:Un.OK:Un.APPENDING:Un.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}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=Rr(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:a}=t;if(n.sn==="initSegment")return;const c=n.type;if(r){let p=this.activePartLists[c];p||(this.activePartLists[c]=p=[]),p.push(r)}this.timeRanges=i;const m=i[a];this.detectEvictedFragments(a,m,c,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Rr(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(a=>{const c=this.fragments[a];if(!c)return;const m=c.body;m.type!==n||r&&!m.gap||m.start<t&&m.end>e&&(c.buffered||i)&&this.removeFragment(m)})}removeFragment(e){const t=Rr(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=Fn(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(s){var e,t,n;return s.buffered&&!!(s.body.gap||(e=s.range.video)!=null&&e.partial||(t=s.range.audio)!=null&&t.partial||(n=s.range.audiovideo)!=null&&n.partial)}function Rr(s){return`${s.type}_${s.level}_${s.sn}`}function Fn(s,e){return s.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var pr={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 pr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case pr.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 Xr(s){const e=s.byteLength,t=e&&new DataView(s.buffer).getUint8(e-1);return t?s.slice(0,e-t):s}class pi{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],c=n[3],m=this.invSubMix,p=m[0],v=m[1],x=m[2],P=m[3],Z=new Uint32Array(256);let Y=0,Oe=0,Le=0;for(Le=0;Le<256;Le++)Le<128?Z[Le]=Le<<1:Z[Le]=Le<<1^283;for(Le=0;Le<256;Le++){let st=Oe^Oe<<1^Oe<<2^Oe<<3^Oe<<4;st=st>>>8^st&255^99,e[Y]=st,t[st]=Y;const mt=Z[Y],xt=Z[mt],Mt=Z[xt];let Wt=Z[st]*257^st*16843008;r[Y]=Wt<<24|Wt>>>8,i[Y]=Wt<<16|Wt>>>16,a[Y]=Wt<<8|Wt>>>24,c[Y]=Wt,Wt=Mt*16843009^xt*65537^mt*257^Y*16843008,p[st]=Wt<<24|Wt>>>8,v[st]=Wt<<16|Wt>>>16,x[st]=Wt<<8|Wt>>>24,P[st]=Wt,Y?(Y=mt^Z[Z[Z[Mt^mt]]],Oe^=Z[Z[Oe]]):Y=Oe=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const a=this.ksRows=(i+6+1)*4;let c,m;const p=this.keySchedule=new Uint32Array(a),v=this.invKeySchedule=new Uint32Array(a),x=this.sBox,P=this.rcon,Z=this.invSubMix,Y=Z[0],Oe=Z[1],Le=Z[2],st=Z[3];let mt,xt;for(c=0;c<a;c++){if(c<i){mt=p[c]=t[c];continue}xt=mt,c%i===0?(xt=xt<<8|xt>>>24,xt=x[xt>>>24]<<24|x[xt>>>16&255]<<16|x[xt>>>8&255]<<8|x[xt&255],xt^=P[c/i|0]<<24):i>6&&c%i===4&&(xt=x[xt>>>24]<<24|x[xt>>>16&255]<<16|x[xt>>>8&255]<<8|x[xt&255]),p[c]=mt=(p[c-i]^xt)>>>0}for(m=0;m<a;m++)c=a-m,m&3?xt=p[c]:xt=p[c-4],m<4||c<=4?v[m]=xt:v[m]=Y[x[xt>>>24]]^Oe[x[xt>>>16&255]]^Le[x[xt>>>8&255]]^st[x[xt&255]],v[m]=v[m]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,c=this.invSubMix,m=c[0],p=c[1],v=c[2],x=c[3],P=this.uint8ArrayToUint32Array_(n);let Z=P[0],Y=P[1],Oe=P[2],Le=P[3];const st=new Int32Array(e),mt=new Int32Array(st.length);let xt,Mt,Wt,Rn,Yt,hn,fn,en,$n,br,kr,Vr,Nr,fr;const Ur=this.networkToHostOrderSwap;for(;t<st.length;){for($n=Ur(st[t]),br=Ur(st[t+1]),kr=Ur(st[t+2]),Vr=Ur(st[t+3]),Yt=$n^i[0],hn=Vr^i[1],fn=kr^i[2],en=br^i[3],Nr=4,fr=1;fr<r;fr++)xt=m[Yt>>>24]^p[hn>>16&255]^v[fn>>8&255]^x[en&255]^i[Nr],Mt=m[hn>>>24]^p[fn>>16&255]^v[en>>8&255]^x[Yt&255]^i[Nr+1],Wt=m[fn>>>24]^p[en>>16&255]^v[Yt>>8&255]^x[hn&255]^i[Nr+2],Rn=m[en>>>24]^p[Yt>>16&255]^v[hn>>8&255]^x[fn&255]^i[Nr+3],Yt=xt,hn=Mt,fn=Wt,en=Rn,Nr=Nr+4;xt=a[Yt>>>24]<<24^a[hn>>16&255]<<16^a[fn>>8&255]<<8^a[en&255]^i[Nr],Mt=a[hn>>>24]<<24^a[fn>>16&255]<<16^a[en>>8&255]<<8^a[Yt&255]^i[Nr+1],Wt=a[fn>>>24]<<24^a[en>>16&255]<<16^a[Yt>>8&255]<<8^a[hn&255]^i[Nr+2],Rn=a[en>>>24]<<24^a[Yt>>16&255]<<16^a[hn>>8&255]<<8^a[fn&255]^i[Nr+3],mt[t]=Ur(xt^Z),mt[t+1]=Ur(Rn^Y),mt[t+2]=Ur(Wt^Oe),mt[t+3]=Ur(Mt^Le),Z=$n,Y=br,Oe=kr,Le=Vr,t=t+4}return mt.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(s){switch(s){case pr.cbc:return"AES-CBC";case pr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${s}`)}}const Ii=16;class Jr{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?Xr(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,a)=>{const c=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(c,t,n,r);const m=this.flush();m?i(m.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:a,remainderData:c}=this;if(r!==pr.cbc||t.byteLength!==16)return de.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),c&&(e=ct(c,e),this.remainderData=null);const m=this.getValidChunk(e);if(!m.length)return null;i&&(n=i);let p=this.softwareDecrypter;p||(p=this.softwareDecrypter=new pi),p.expandKey(t);const v=a;return this.currentResult=p.decrypt(m.buffer,0,n),this.currentIV=m.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=>(de.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 a=this.flush();if(a)return a.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Ii;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(de.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:fe.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise((c,m)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Y=>Y[0]==="GAP")){m(ii(e));return}else e.gap=!1;const p=this.loader=i?new i(r):new a(r),v=di(e);e.loader=p;const x=Yr(r.fragLoadPolicy.default),P={loadPolicy:x,timeout:x.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:bi};e.stats=p.stats;const Z={onSuccess:(Y,Oe,Le,st)=>{this.resetLoader(e,p);let mt=Y.data;Le.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(mt.slice(0,16)),mt=mt.slice(16)),c({frag:e,part:null,payload:mt,networkDetails:st})},onError:(Y,Oe,Le,st)=>{this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:T({url:n,data:void 0},Y),error:new Error(`HTTP Error ${Y.code} ${Y.text}`),networkDetails:Le,stats:st}))},onAbort:(Y,Oe,Le)=>{this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Le,stats:Y}))},onTimeout:(Y,Oe,Le)=>{this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${P.timeout}ms`),networkDetails:Le,stats:Y}))}};t&&(Z.onProgress=(Y,Oe,Le,st)=>t({frag:e,part:null,payload:Le,networkDetails:st})),p.load(v,P,Z)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise((c,m)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){m(ii(e,t));return}const p=this.loader=i?new i(r):new a(r),v=di(e,t);e.loader=p;const x=Yr(r.fragLoadPolicy.default),P={loadPolicy:x,timeout:x.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:bi};t.stats=p.stats,p.load(v,P,{onSuccess:(Z,Y,Oe,Le)=>{this.resetLoader(e,p),this.updateStatsFromPart(e,t);const st={frag:e,part:t,payload:Z.data,networkDetails:Le};n(st),c(st)},onError:(Z,Y,Oe,Le)=>{this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:T({url:v.url,data:void 0},Z),error:new Error(`HTTP Error ${Z.code} ${Z.text}`),networkDetails:Oe,stats:Le}))},onAbort:(Z,Y,Oe)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Oe,stats:Z}))},onTimeout:(Z,Y,Oe)=>{this.resetLoader(e,p),m(new Lr({type:fe.NETWORK_ERROR,details:K.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${P.timeout}ms`),networkDetails:Oe,stats:Z}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const m=Math.round(e.duration/t.duration),p=Math.min(Math.round(n.loaded/i),m),x=(m-p)*Math.round(n.loaded/p);n.total=n.loaded+x}else n.total=Math.max(n.loaded,n.total);const a=n.loading,c=r.loading;a.start?a.first+=c.first-c.start:(a.start=c.start,a.first=c.first),a.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function di(s,e=null){const t=e||s,n={frag:s,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(o(r)&&o(i)){var a;let c=r,m=i;if(s.sn==="initSegment"&&Fi((a=s.decryptdata)==null?void 0:a.method)){const p=i-r;p%16&&(m=i+(16-p%16)),r!==0&&(n.resetIV=!0,c=r-16)}n.rangeStart=c,n.rangeEnd=m}return n}function ii(s,e){const t=new Error(`GAP ${s.gap?"tag":"attribute"} found`),n={type:fe.MEDIA_ERROR,details:K.FRAG_GAP,fatal:!1,frag:s,error:t,networkDetails:null};return e&&(n.part=e),(e||s).stats.aborted=!0,new Lr(n)}function Fi(s){return s==="AES-128"||s==="AES-256"}class Lr extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Oi extends V{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 Pi{constructor(e,t,n,r=0,i=-1,a=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=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=a}}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,x)=>v.start-x.start||x.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 x=i.length;if(x){const P=i[x-1].end;e[v].start-P<n?e[v].end>P&&(i[x-1].end=e[v].end):i.push(e[v])}else i.push(e[v])}else i=e;let a=0,c,m=t,p=t;for(let v=0;v<i.length;v++){const x=i[v].start,P=i[v].end;if(r===-1&&t>=x&&t<=P&&(r=v),t+n>=x&&t<P)m=x,p=P,a=p-t;else if(t+n<x){c=x;break}}return{len:a,start:m||0,end:p||0,nextStart:c,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||yr}catch(t){return de.log("failed to get media.buffered",t),yr}}}const mi=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ln(s){return mi.test(s)}function Bi(s,e){if(s.variableList!==null||s.hasVariableRefs){const t=s.variableList;return e.replace(mi,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(s.playlistParsingError||(s.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Fa(s,e,t){let n=s.variableList;n||(s.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const a=new self.URL(t).searchParams;if(a.has(r))i=a.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(a){s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else r=e.NAME,i=e.VALUE;r in n?s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function va(s,e,t){const n=e.IMPORT;if(t&&n in t){let r=s.variableList;r||(s.variableList=r={}),r[n]=t[n]}else s.playlistParsingError||(s.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const aa=/^(\d+)x(\d+)$/,la=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Or{constructor(e,t){typeof e=="string"&&(e=Or.parseAttrList(e,t)),S(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}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=aa.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(la.lastIndex=0;(n=la.exec(e))!==null;){const a=n[1].trim();let c=n[2];const m=c.indexOf(i)===0&&c.lastIndexOf(i)===c.length-1;let p=!1;if(m)c=c.slice(1,-1);else switch(a){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":p=!0}if(t&&(m||p))c=Bi(t,c);else if(!p&&!m)switch(a){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":de.warn(`${e}: attribute ${a} is missing quotes`)}r[a]=c}return r}}const Gi="com.apple.hls.interstitial";function da(s){return s!=="ID"&&s!=="CLASS"&&s!=="CUE"&&s!=="START-DATE"&&s!=="DURATION"&&s!=="END-DATE"&&s!=="END-ON-NEXT"}function Sa(s){return s==="SCTE35-OUT"||s==="SCTE35-IN"||s==="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 a in i)if(Object.prototype.hasOwnProperty.call(e,a)&&e[a]!==i[a]){de.warn(`DATERANGE tag attribute: "${a}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=a;break}e=S(new Or({}),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"]);o(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?(de.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(o(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&&o(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 Ki=10;class na{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?o(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Ki}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(s,e){return s.length===e.length?!s.some((t,n)=>t!==e[n]):!1}function zr(s,e){return!s&&!e?!0:!s||!e?!1:xr(s,e)}function Sr(s){return s==="AES-128"||s==="AES-256"||s==="AES-256-CTR"}function Fr(s){switch(s){case"AES-128":case"AES-256":return pr.cbc;case"AES-256-CTR":return pr.ctr;default:throw new Error(`invalid full segment method ${s}`)}}function ui(s){return Uint8Array.from(atob(s),e=>e.charCodeAt(0))}function Si(s){return Uint8Array.from(unescape(encodeURIComponent(s)),e=>e.charCodeAt(0))}function sa(s){const e=Si(s).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function ur(s){const e=function(n,r,i){const a=n[r];n[r]=n[i],n[i]=a};e(s,0,3),e(s,1,2),e(s,4,5),e(s,6,7)}function Ir(s){const e=s.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",a=r[1];i?(n.splice(-1,1),t=ui(a)):t=sa(a)}}return t}const ei=typeof self!="undefined"?self:void 0;var $r={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 xa(s){switch(s){case ti.FAIRPLAY:return $r.FAIRPLAY;case ti.PLAYREADY:return $r.PLAYREADY;case ti.WIDEVINE:return $r.WIDEVINE;case ti.CLEARKEY:return $r.CLEARKEY}}function ua(s){switch(s){case $r.FAIRPLAY:return ti.FAIRPLAY;case $r.PLAYREADY:return ti.PLAYREADY;case $r.WIDEVINE:return ti.WIDEVINE;case $r.CLEARKEY:return ti.CLEARKEY}}function Ea(s){const{drmSystems:e,widevineLicenseUrl:t}=s,n=e?[$r.FAIRPLAY,$r.WIDEVINE,$r.PLAYREADY,$r.CLEARKEY].filter(r=>!!e[r]):[];return!n[$r.WIDEVINE]&&t&&n.push($r.WIDEVINE),n}const pa=function(s){return ei!=null&&(s=ei.navigator)!=null&&s.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function bs(s,e,t,n){let r;switch(s){case $r.FAIRPLAY:r=["cenc","sinf"];break;case $r.WIDEVINE:case $r.PLAYREADY:r=["cenc"];break;case $r.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${s}`)}return ao(r,e,t,n)}function ao(s,e,t,n){return[{initDataTypes:s,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 $s(s){var e;return!!s&&(s.sessionType==="persistent-license"||!!((e=s.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function _a(s){const e=new Uint16Array(s.buffer,s.byteOffset,s.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),a=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(a){const c=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(c){const m=ui(c).subarray(0,16);return ur(m),m}}return null}let Ba={};class ka{static clearKeyUriToKeyIdMap(){Ba={}}static setKeyIdForUri(e,t){Ba[e]=t}static addKeyIdForUri(e){const t=Object.keys(Ba).length%Number.MAX_SAFE_INTEGER,n=new Uint8Array(16);return new DataView(n.buffer,12,4).setUint32(0,t),Ba[e]=n,n}constructor(e,t,n,r=[1],i=null,a){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&&!Sr(e),a!=null&&a.startsWith("0x")&&(this.keyId=new Uint8Array(B(a)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&xr(e.keyFormatVersions,this.keyFormatVersions)&&zr(e.iv,this.iv)&&zr(e.keyId,this.keyId)}isSupported(){if(this.method){if(Sr(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(Sr(this.method)){let i=this.iv;return i||(typeof e!="number"&&(de.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),i=ja(e)),new ka(this.method,this.uri,"identity",this.keyFormatVersions,i)}if(this.keyId){const i=Ba[this.uri];if(i&&!xr(this.keyId,i)&&ka.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=Ir(this.uri);if(n)switch(this.keyFormat){case ti.WIDEVINE:if(this.pssh=n,!this.keyId){const i=He(n.buffer);if(i.length){var r;const a=i[0];this.keyId=(r=a.kids)!=null&&r.length?a.kids[0]:null}}this.keyId||(this.keyId=ss(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=w(i,null,n),this.keyId=_a(n);break}default:{let i=n.subarray(0,16);if(i.length!==16){const a=new Uint8Array(16);a.set(i,16-i.length),i=a}this.keyId=i;break}}if(!this.keyId||this.keyId.byteLength!==16){let i;i=js(t),i||(i=ss(t),i||(i=Ba[this.uri])),i&&(this.keyId=i,ka.setKeyIdForUri(this.uri,i))}return this}}function js(s){const e=s==null?void 0:s[ti.WIDEVINE];return e?e.keyId:null}function ss(s){const e=s==null?void 0:s[ti.PLAYREADY];if(e){const t=Ir(e.uri);if(t)return _a(t)}return null}function ja(s){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=s>>8*(15-t)&255;return e}const As=/#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,Os=/#EXT-X-MEDIA:(.*)/g,Hs=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ka=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Cs=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 La{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 E.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Hs.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(As.lastIndex=0,!e.startsWith("#EXTM3U"))return r.playlistParsingError=new Error("no EXTM3U delimiter"),r;let a;for(;(a=As.exec(e))!=null;)if(a[1]){var c;const p=new Or(a[1],r),v=Bi(r,a[2]),x={attrs:p,bitrate:p.decimalInteger("BANDWIDTH")||p.decimalInteger("AVERAGE-BANDWIDTH"),name:p.NAME,url:La.resolve(v,t)},P=p.decimalResolution("RESOLUTION");P&&(x.width=P.width,x.height=P.height),os(p.CODECS,x);const Z=p["SUPPLEMENTAL-CODECS"];Z&&(x.supplemental={},os(Z,x.supplemental)),(c=x.unknownCodecs)!=null&&c.length||i.push(x),r.levels.push(x)}else if(a[3]){const p=a[3],v=a[4];switch(p){case"SESSION-DATA":{const x=new Or(v,r),P=x["DATA-ID"];P&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[P]=x);break}case"SESSION-KEY":{const x=Ws(v,t,r);x.encrypted&&x.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(x)):de.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${v}"`);break}case"DEFINE":{{const x=new Or(v,r);Fa(r,x,t)}break}case"CONTENT-STEERING":{const x=new Or(v,r);r.contentSteering={uri:La.resolve(x["SERVER-URI"],t),pathwayId:x["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Vs(v);break}}}const m=i.length>0&&i.length<r.levels.length;return r.levels=m?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,c={AUDIO:a.map(p=>({id:p.attrs.AUDIO,audioCodec:p.audioCodec})),SUBTITLES:a.map(p=>({id:p.attrs.SUBTITLES,textCodec:p.textCodec})),"CLOSED-CAPTIONS":[]};let m=0;for(Os.lastIndex=0;(r=Os.exec(e))!==null;){const p=new Or(r[1],n),v=p.TYPE;if(v){const x=c[v],P=i[v]||[];i[v]=P;const Z=p.LANGUAGE,Y=p["ASSOC-LANGUAGE"],Oe=p.CHANNELS,Le=p.CHARACTERISTICS,st=p["INSTREAM-ID"],mt={attrs:p,bitrate:0,id:m++,groupId:p["GROUP-ID"]||"",name:p.NAME||Z||"",type:v,default:p.bool("DEFAULT"),autoselect:p.bool("AUTOSELECT"),forced:p.bool("FORCED"),lang:Z,url:p.URI?La.resolve(p.URI,t):""};if(Y&&(mt.assocLang=Y),Oe&&(mt.channels=Oe),Le&&(mt.characteristics=Le),st&&(mt.instreamId=st),x!=null&&x.length){const xt=La.findGroup(x,mt.groupId)||x[0];Ha(mt,xt,"audioCodec"),Ha(mt,xt,"textCodec")}P.push(mt)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){var c;const m={url:t},p=new na(t),v=p.fragments,x=[];let P=null,Z=0,Y=0,Oe=0,Le=0,st=0,mt=null,xt=new lt(r,m),Mt,Wt,Rn,Yt=-1,hn=!1,fn=null,en;if(Ka.lastIndex=0,p.m3u8=e,p.hasVariableRefs=Ln(e),((c=Ka.exec(e))==null?void 0:c[0])!=="#EXTM3U")return p.playlistParsingError=new Error("Missing format identifier #EXTM3U"),p;for(;(Mt=Ka.exec(e))!==null;){hn&&(hn=!1,xt=new lt(r,m),xt.playlistOffset=Oe,xt.setStart(Oe),xt.sn=Z,xt.cc=Le,st&&(xt.bitrate=st),xt.level=n,P&&(xt.initSegment=P,P.rawProgramDateTime&&(xt.rawProgramDateTime=P.rawProgramDateTime,P.rawProgramDateTime=null),fn&&(xt.setByteRange(fn),fn=null)));const Vr=Mt[1];if(Vr){xt.duration=parseFloat(Vr);const Nr=(" "+Mt[2]).slice(1);xt.title=Nr||null,xt.tagList.push(Nr?["INF",Vr,Nr]:["INF",Vr])}else if(Mt[3]){if(o(xt.duration)){xt.playlistOffset=Oe,xt.setStart(Oe),Rn&&Aa(xt,Rn,p),xt.sn=Z,xt.level=n,xt.cc=Le,v.push(xt);const Nr=(" "+Mt[3]).slice(1);xt.relurl=Bi(p,Nr),Wr(xt,mt,x),mt=xt,Oe+=xt.duration,Z++,Y=0,hn=!0}}else{if(Mt=Mt[0].match(Cs),!Mt){de.warn("No matches on slow regex match for level playlist!");continue}for(Wt=1;Wt<Mt.length&&Mt[Wt]===void 0;Wt++);const Nr=(" "+Mt[Wt]).slice(1),fr=(" "+Mt[Wt+1]).slice(1),Ur=Mt[Wt+2]?(" "+Mt[Wt+2]).slice(1):null;switch(Nr){case"BYTERANGE":mt?xt.setByteRange(fr,mt):xt.setByteRange(fr);break;case"PROGRAM-DATE-TIME":xt.rawProgramDateTime=fr,xt.tagList.push(["PROGRAM-DATE-TIME",fr]),Yt===-1&&(Yt=v.length);break;case"PLAYLIST-TYPE":p.type&&Ai(p,Nr,Mt),p.type=fr.toUpperCase();break;case"MEDIA-SEQUENCE":p.startSN!==0?Ai(p,Nr,Mt):v.length>0&&oa(p,Nr,Mt),Z=p.startSN=parseInt(fr);break;case"SKIP":{p.skippedSegments&&Ai(p,Nr,Mt);const wr=new Or(fr,p),Hr=wr.decimalInteger("SKIPPED-SEGMENTS");if(o(Hr)){p.skippedSegments+=Hr;for(let gr=Hr;gr--;)v.push(null);Z+=Hr}const oi=wr.enumeratedString("RECENTLY-REMOVED-DATERANGES");oi&&(p.recentlyRemovedDateranges=(p.recentlyRemovedDateranges||[]).concat(oi.split(" ")));break}case"TARGETDURATION":p.targetduration!==0&&Ai(p,Nr,Mt),p.targetduration=Math.max(parseInt(fr),1);break;case"VERSION":p.version!==null&&Ai(p,Nr,Mt),p.version=parseInt(fr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":p.live||Ai(p,Nr,Mt),p.live=!1;break;case"#":(fr||Ur)&&xt.tagList.push(Ur?[fr,Ur]:[fr]);break;case"DISCONTINUITY":Le++,xt.tagList.push(["DIS"]);break;case"GAP":xt.gap=!0,xt.tagList.push([Nr]);break;case"BITRATE":xt.tagList.push([Nr,fr]),st=parseInt(fr)*1e3,o(st)?xt.bitrate=st:st=0;break;case"DATERANGE":{const wr=new Or(fr,p),Hr=new ci(wr,p.dateRanges[wr.ID],p.dateRangeTagCount);p.dateRangeTagCount++,Hr.isValid||p.skippedSegments?p.dateRanges[Hr.id]=Hr:de.warn(`Ignoring invalid DATERANGE tag: "${fr}"`),xt.tagList.push(["EXT-X-DATERANGE",fr]);break}case"DEFINE":{{const wr=new Or(fr,p);"IMPORT"in wr?va(p,wr,a):Fa(p,wr,t)}break}case"DISCONTINUITY-SEQUENCE":p.startCC!==0?Ai(p,Nr,Mt):v.length>0&&oa(p,Nr,Mt),p.startCC=Le=parseInt(fr);break;case"KEY":{const wr=Ws(fr,t,p);if(wr.isSupported()){if(wr.method==="NONE"){Rn=void 0;break}Rn||(Rn={});const Hr=Rn[wr.keyFormat];Hr!=null&&Hr.matches(wr)||(Hr&&(Rn=S({},Rn)),Rn[wr.keyFormat]=wr)}else de.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${fr}"`);break}case"START":p.startTimeOffset=Vs(fr);break;case"MAP":{const wr=new Or(fr,p);if(xt.duration){const Hr=new lt(r,m);ma(Hr,wr,n,Rn),P=Hr,xt.initSegment=P,P.rawProgramDateTime&&!xt.rawProgramDateTime&&(xt.rawProgramDateTime=P.rawProgramDateTime)}else{const Hr=xt.byteRangeEndOffset;if(Hr){const oi=xt.byteRangeStartOffset;fn=`${Hr-oi}@${oi}`}else fn=null;ma(xt,wr,n,Rn),P=xt,hn=!0}P.cc=Le;break}case"SERVER-CONTROL":{en&&Ai(p,Nr,Mt),en=new Or(fr),p.canBlockReload=en.bool("CAN-BLOCK-RELOAD"),p.canSkipUntil=en.optionalFloat("CAN-SKIP-UNTIL",0),p.canSkipDateRanges=p.canSkipUntil>0&&en.bool("CAN-SKIP-DATERANGES"),p.partHoldBack=en.optionalFloat("PART-HOLD-BACK",0),p.holdBack=en.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{p.partTarget&&Ai(p,Nr,Mt);const wr=new Or(fr);p.partTarget=wr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let wr=p.partList;wr||(wr=p.partList=[]);const Hr=Y>0?wr[wr.length-1]:void 0,oi=Y++,gr=new Or(fr,p),vr=new xe(gr,xt,m,oi,Hr);wr.push(vr),xt.duration+=vr.duration;break}case"PRELOAD-HINT":{const wr=new Or(fr,p);p.preloadHint=wr;break}case"RENDITION-REPORT":{const wr=new Or(fr,p);p.renditionReports=p.renditionReports||[],p.renditionReports.push(wr);break}default:de.warn(`line parsed but not handled: ${Mt}`);break}}}mt&&!mt.relurl?(v.pop(),Oe-=mt.duration,p.partList&&(p.fragmentHint=mt)):p.partList&&(Wr(xt,mt,x),xt.cc=Le,p.fragmentHint=xt,Rn&&Aa(xt,Rn,p)),p.targetduration||(p.playlistParsingError=new Error("Missing Target Duration"));const $n=v.length,br=v[0],kr=v[$n-1];if(Oe+=p.skippedSegments*p.targetduration,Oe>0&&$n&&kr){p.averagetargetduration=Oe/$n;const Vr=kr.sn;p.endSN=Vr!=="initSegment"?Vr:0,p.live||(kr.endList=!0),Yt>0&&(fi(v,Yt),br&&x.unshift(br))}return p.fragmentHint&&(Oe+=p.fragmentHint.duration),p.totalduration=Oe,x.length&&p.dateRangeTagCount&&br&&Ps(x,p),p.endCC=Le,p}}function Ps(s,e){let t=s.length;if(!t)if(e.hasProgramDateTime){const c=e.fragments[e.fragments.length-1];s.push(c),t++}else return;const n=s[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let c=i.length;c--;){const m=e.dateRanges[i[c]],p=m.startDate.getTime();m.tagAnchor=n.ref;for(let v=t;v--;){var a;if(((a=s[v])==null?void 0:a.sn)<e.startSN)break;const x=ks(e,p,s,v,r);if(x!==-1){m.tagAnchor=e.fragments[x].ref;break}}}}function ks(s,e,t,n,r){const i=t[n];if(i){const c=i.programDateTime;if(e>=c||n===0){var a;const m=(((a=t[n+1])==null?void 0:a.start)||r)-i.start;if(e<=c+m*1e3){const p=t[n].sn-s.startSN;if(p<0)return-1;const v=s.fragments;if(v.length>t.length){const P=(t[n+1]||v[v.length-1]).sn-s.startSN;for(let Z=P;Z>p;Z--){const Y=v[Z].programDateTime;if(e>=Y&&e<Y+v[Z].duration*1e3)return Z}}return p}}}return-1}function Ws(s,e,t){var n,r;const i=new Or(s,t),a=(n=i.METHOD)!=null?n:"",c=i.URI,m=i.hexadecimalInteger("IV"),p=i.KEYFORMATVERSIONS,v=(r=i.KEYFORMAT)!=null?r:"identity";c&&i.IV&&!m&&de.error(`Invalid IV: ${i.IV}`);const x=c?La.resolve(c,e):"",P=(p||"1").split("/").map(Number).filter(Number.isFinite);return new ka(a,x,v,P,m,i.KEYID)}function Vs(s){const t=new Or(s).decimalFloatingPoint("TIME-OFFSET");return o(t)?t:null}function os(s,e){let t=(s||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Be(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 Ha(s,e,t){const n=e[t];n&&(s[t]=n)}function fi(s,e){let t=s[e];for(let n=e;n--;){const r=s[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Wr(s,e,t){s.rawProgramDateTime?t.push(s):e!=null&&e.programDateTime&&(s.programDateTime=e.endProgramDateTime)}function ma(s,e,t,n){s.relurl=e.URI,e.BYTERANGE&&s.setByteRange(e.BYTERANGE),s.level=t,s.sn="initSegment",n&&(s.levelkeys=n),s.initSegment=null}function Aa(s,e,t){s.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(s)}function Ai(s,e,t){s.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function oa(s,e,t){s.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Oa(s,e){const t=e.startPTS;if(o(t)){let n=0,r;e.sn>s.sn?(n=t-s.start,r=s):(n=s.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>s.sn?s.cc===e.cc&&s.minEndPTS?e.setStart(s.start+(s.minEndPTS-s.start)):e.setStart(s.start+s.duration):e.setStart(Math.max(s.start-e.duration,0))}function Pa(s,e,t,n,r,i,a){n-t<=0&&(a.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let m=t,p=n;const v=e.startPTS,x=e.endPTS;if(o(v)){const st=Math.abs(v-t);s&&st>s.totalduration?a.warn(`media timestamps and playlist times differ by ${st}s for level ${e.level} ${s.url}`):o(e.deltaPTS)?e.deltaPTS=Math.max(st,e.deltaPTS):e.deltaPTS=st,m=Math.max(t,v),t=Math.min(t,v),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,p=Math.min(n,x),n=Math.max(n,x),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const P=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=m,e.startDTS=r,e.endPTS=n,e.minEndPTS=p,e.endDTS=i;const Z=e.sn;if(!s||Z<s.startSN||Z>s.endSN)return 0;let Y;const Oe=Z-s.startSN,Le=s.fragments;for(Le[Oe]=e,Y=Oe;Y>0;Y--)Oa(Le[Y],Le[Y-1]);for(Y=Oe;Y<Le.length-1;Y++)Oa(Le[Y],Le[Y+1]);return s.fragmentHint&&Oa(Le[Le.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,P}function Xa(s,e,t){if(s===e)return;let n=null;const r=s.fragments;for(let v=r.length-1;v>=0;v--){const x=r[v].initSegment;if(x){n=x;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;let i;Wa(s,e,(v,x,P,Z)=>{if((!e.startCC||e.skippedSegments)&&x.cc!==v.cc){const Y=v.cc-x.cc;for(let Oe=P;Oe<Z.length;Oe++)Z[Oe].cc+=Y;e.endCC=Z[Z.length-1].cc}o(v.startPTS)&&o(v.endPTS)&&(x.setStart(x.startPTS=v.startPTS),x.startDTS=v.startDTS,x.maxStartPTS=v.maxStartPTS,x.endPTS=v.endPTS,x.endDTS=v.endDTS,x.minEndPTS=v.minEndPTS,x.setDuration(v.endPTS-v.startPTS),x.duration&&(i=x),e.PTSKnown=e.alignedSliding=!0),v.hasStreams&&(x.elementaryStreams=v.elementaryStreams),x.loader=v.loader,v.hasStats&&(x.stats=v.stats),v.initSegment&&(x.initSegment=v.initSegment,n=v.initSegment)});const a=e.fragments,c=e.fragmentHint?a.concat(e.fragmentHint):a;if(n&&c.forEach(v=>{var x;v&&(!v.initSegment||v.initSegment.relurl===((x=n)==null?void 0:x.relurl))&&(v.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=a.some(v=>!v),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let v=e.skippedSegments;v--;)a.shift();e.startSN=a[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=Ca(s.dateRanges,e,t));const v=s.fragments.filter(x=>x.rawProgramDateTime);if(s.hasProgramDateTime&&!e.hasProgramDateTime)for(let x=1;x<c.length;x++)c[x].programDateTime===null&&Wr(c[x],c[x-1],v);Ps(v,e)}e.endCC=a[a.length-1].cc}if(!e.startCC){var m;const v=Ri(s,e.startSN-1);e.startCC=(m=v==null?void 0:v.cc)!=null?m:a[0].cc}ts(s.partList,e.partList,(v,x)=>{x.elementaryStreams=v.elementaryStreams,x.stats=v.stats}),i?Pa(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,t):us(s,e),a.length&&(e.totalduration=e.edge-a[0].start),e.driftStartTime=s.driftStartTime,e.driftStart=s.driftStart;const p=e.advancedDateTime;if(e.advanced&&p){const v=e.edge;e.driftStart||(e.driftStartTime=p,e.driftStart=v),e.driftEndTime=p,e.driftEnd=v}else e.driftEndTime=s.driftEndTime,e.driftEnd=s.driftEnd,e.advancedDateTime=s.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=s.requestScheduled)}function Ca(s,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,i=S({},s);r&&r.forEach(m=>{delete i[m]});const c=Object.keys(i).length;return c?(Object.keys(n).forEach(m=>{const p=i[m],v=new ci(n[m].attr,p);v.isValid?(i[m]=v,p||(v.tagOrder+=c)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Ft(n[m].attr)}"`)}),i):n}function ts(s,e,t){if(s&&e){let n=0;for(let r=0,i=s.length;r<=i;r++){const a=s[r],c=e[r+n];a&&c&&a.index===c.index&&a.fragment.sn===c.fragment.sn?t(a,c):n--}}}function Wa(s,e,t){const n=e.skippedSegments,r=Math.max(s.startSN,e.startSN)-e.startSN,i=(s.fragmentHint?1:0)+(n?e.endSN:Math.min(s.endSN,e.endSN))-e.startSN,a=e.startSN-s.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,m=s.fragmentHint?s.fragments.concat(s.fragmentHint):s.fragments;for(let p=r;p<=i;p++){const v=m[a+p];let x=c[p];if(n&&!x&&v&&(x=e.fragments[p]=v),v&&x){t(v,x,p,c);const P=v.relurl,Z=x.relurl;if(P&&Ss(P,Z)){e.playlistParsingError=ls(`media sequence mismatch ${x.sn}:`,s,e,v,x);return}else if(v.cc!==x.cc){e.playlistParsingError=ls(`discontinuity sequence mismatch (${v.cc}!=${x.cc})`,s,e,v,x);return}}}}function ls(s,e,t,n,r){return new Error(`${s} ${r.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function us(s,e,t=!0){const n=e.startSN+e.skippedSegments-s.startSN,r=s.fragments,i=n>=0;let a=0;if(i&&n<r.length)a=r[n].start;else if(i&&e.startSN===s.endSN+1)a=s.fragmentEnd;else if(i&&t)a=s.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)a=s.fragmentStart;else return;Zs(e,a)}function Zs(s,e){if(e){const t=s.fragments;for(let n=s.skippedSegments;n<t.length;n++)t[n].addStart(e);s.fragmentHint&&s.fragmentHint.addStart(e)}}function Ci(s,e=1/0){let t=1e3*s.targetduration;if(s.updated){const n=s.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 Ri(s,e,t){if(!s)return null;let n=s.fragments[e-s.startSN];return n||(n=s.fragmentHint,n&&n.sn===e)?n:e<s.startSN&&t&&t.sn===e?t:null}function Hi(s,e,t){return s?wa(s.partList,e,t):null}function wa(s,e,t){if(s)for(let n=s.length;n--;){const r=s[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Na(s){s.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function Ss(s,e){return s!==e&&e?ws(s)!==ws(e):!1}function ws(s){return s.replace(/\?[^?]*$/,"")}function hs(s,e){for(let n=0,r=s.length;n<r;n++){var t;if(((t=s[n])==null?void 0:t.cc)===e)return s[n]}return null}function Gs(s,e){return!!(s&&e.startCC<s.endCC&&e.endCC>s.startCC)}function Ts(s,e){const t=s.start+e;s.startPTS=t,s.setStart(t),s.endPTS=t+s.duration}function Rs(s,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Ts(t[n],s);e.fragmentHint&&Ts(e.fragmentHint,s),e.alignedSliding=!0}function Ys(s,e){s&&(Ns(e,s),e.alignedSliding||so(e,s),!e.alignedSliding&&!e.skippedSegments&&us(s,e,!1))}function Ns(s,e){if(!Gs(e,s))return;const t=Math.min(e.endCC,s.endCC),n=hs(e.fragments,t),r=hs(s.fragments,t);if(!n||!r)return;de.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Rs(i,s)}function so(s,e){if(!s.hasProgramDateTime||!e.hasProgramDateTime)return;const t=s.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const a=Math.min(e.endCC,s.endCC);e.startCC<a&&s.startCC<a&&(r=hs(n,a),i=hs(t,a)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=hs(t,r.cc)||t[Math.floor(t.length/2)]);const c=r.programDateTime,m=i.programDateTime;if(!c||!m)return;const p=(m-c)/1e3-(i.start-r.start);Rs(p,s)}function Ua(s,e,t){Va(s,e,t),s.addEventListener(e,t)}function Va(s,e,t){s.removeEventListener(e,t)}const Uo={toString:function(s){let e="";const t=s.length;for(let n=0;n<t;n++)e+=`[${s.start(n).toFixed(3)}-${s.end(n).toFixed(3)}]`;return e}},Pn={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 Oi{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=Pn.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:a,fragCurrent:c,media:m,mediaBuffer:p,state:v}=this,x=m?m.currentTime:0,P=Gn.bufferInfo(p||m,x,a.maxBufferHole),Z=!P.len;if(this.log(`Media seeking to ${o(x)?x.toFixed(3):x}, state: ${v}, ${Z?"out of":"in"} buffer`),this.state===Pn.ENDED)this.resetLoadingState();else if(c){const Y=a.maxFragLookUpTolerance,Oe=c.start-Y,Le=c.start+c.duration+Y;if(Z||Le<P.start||Oe>P.end){const st=x>Le;(x<Oe||st)&&(st&&c.loader&&(this.log(`Cancelling fragment load for seek (sn: ${c.sn})`),c.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(m){this.fragmentTracker.removeFragmentsInRange(x,1/0,this.playlistType,!0);const Y=this.lastCurrentTime;if(x>Y&&(this.lastCurrentTime=x),!this.loadingParts){const Oe=Math.max(P.end,x),Le=this.shouldLoadParts(this.getLevelDetails(),Oe);Le&&(this.log(`LL-Part loading ON after seeking to ${x.toFixed(2)} with buffer @${Oe.toFixed(2)}`),this.loadingParts=Le)}}this.hls.hasEnoughToStart||(this.log(`Setting ${Z?"startPosition":"nextLoadPosition"} to ${x} for seek without enough to start`),this.nextLoadPosition=x,Z&&(this.startPosition=x)),Z&&this.state===Pn.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 Jr(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===Pn.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=Pn.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 a=e.nextStart;if(a&&a>r&&a<t.edge||this.media.currentTime<e.start)return!1;const m=t.partList;if(m!=null&&m.length){const v=m[m.length-1];return Gn.isBuffered(this.media,v.start+v.duration/2)}const p=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(p)}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;Ua(n,"seeking",this.onMediaSeeking),Ua(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Pn.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),Va(r,"seeking",this.onMediaSeeking),Va(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=Pn.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 a=i.frag;if(this.fragContextChanged(a)){this.warn(`${a.type} sn: ${a.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(a,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(a);return}a.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const a=this.state,c=i.frag;if(this.fragContextChanged(c)){(a===Pn.FRAG_LOADING||!this.fragCurrent&&a===Pn.PARSING)&&(this.fragmentTracker.removeFragment(c),this.state=Pn.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===Pn.STOPPED||this.state===Pn.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)===Un.APPENDING){const i=e.type,a=this.getFwdBufferInfo(this.mediaBuffer,i),c=Math.max(e.duration,a?a.len:this.config.maxBufferLength),m=this.backtrackFragment;((m?e.sn-m.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)===Un.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:a}=n,c=i.decryptdata;if(a&&a.byteLength>0&&c!=null&&c.key&&c.iv&&Sr(c.method)){const m=self.performance.now();return this.decrypter.decrypt(new Uint8Array(a),c.key.buffer,c.iv.buffer,Fr(c.method)).catch(p=>{throw r.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_DECRYPT_ERROR,fatal:!1,error:p,reason:p.message,frag:i}),p}).then(p=>{const v=self.performance.now();return r.trigger(g.FRAG_DECRYPTED,{frag:i,payload:p,stats:{tstart:m,tdecrypt:v}}),n.payload=p,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===Pn.STOPPED||this.state===Pn.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!==Pn.STOPPED&&(this.state=Pn.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 a=this.media,c=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${a?"attached mediaKeys: "+a.mediaKeys:"detached"})`);return this.warn(c.message),!a||a.mediaKeys?!1:(this.hls.trigger(g.ERROR,{type:fe.KEY_SYSTEM_ERROR,details:K.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?Uo.toString(Gn.getBuffered(n)):"(detached)"})`),Ve(e)){var r;if(e.type!==oe.SUBTITLE){const a=e.elementaryStreams;if(!Object.keys(a).some(c=>!!a[c])){this.state=Pn.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=Pn.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,a=!i||i.length===0||i.some(m=>!m),c=new Pi(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const a=t.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let c=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)){if(this.log(`Loading key for ${e.sn} of [${a.startSN}-${a.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Pn.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(P=>{if(!this.fragContextChanged(P.frag))return this.hls.trigger(g.KEY_LOADED,P),this.state===Pn.KEY_LOADING&&(this.state=Pn.IDLE),P}),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,a.encryptedFragments,this.startFragRequested),c&&this.log("[eme] blocking frag load until media-keys acquired"));const m=this.fragPrevious;if(Ve(e)&&(!m||e.sn!==m.sn)){const P=this.shouldLoadParts(t.details,e.end);P!==this.loadingParts&&(this.log(`LL-Part loading ${P?"ON":"OFF"} loading sn ${m==null?void 0:m.sn}->${e.sn}`),this.loadingParts=P)}if(n=Math.max(e.start,n||0),this.loadingParts&&Ve(e)){const P=a.partList;if(P&&r){n>a.fragmentEnd&&a.fragmentHint&&(e=a.fragmentHint);const Z=this.getNextPart(P,e,n);if(Z>-1){const Y=P[Z];e=this.fragCurrent=Y.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${Y.index} (${Z}/${P.length-1}) of ${this.fragInfo(e,!1,Y)}) cc: ${e.cc} [${a.startSN}-${a.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=Y.start+Y.duration,this.state=Pn.FRAG_LOADING;let Oe;return c?Oe=c.then(Le=>!Le||this.fragContextChanged(Le.frag)?null:this.doFragPartsLoad(e,Y,t,r)).catch(Le=>this.handleFragLoadError(Le)):Oe=this.doFragPartsLoad(e,Y,t,r).catch(Le=>this.handleFragLoadError(Le)),this.hls.trigger(g.FRAG_LOADING,{frag:e,part:Y,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Oe}else if(!e.url||this.loadedEndOfParts(P,n))return Promise.resolve(null)}}if(Ve(e)&&this.loadingParts){var p;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(p=a.partList)==null?void 0:p.filter(P=>P.loaded).map(P=>`[${P.start}-${P.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} ${"["+a.startSN+"-"+a.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),o(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Pn.FRAG_LOADING;const v=this.config.progressive&&e.type!==oe.SUBTITLE;let x;return v&&c?x=c.then(P=>!P||this.fragContextChanged(P.frag)?null:this.fragmentLoader.load(e,r)).catch(P=>this.handleFragLoadError(P)):x=Promise.all([this.fragmentLoader.load(e,v?r:void 0),c]).then(([P])=>(!v&&r&&r(P),P)).catch(P=>this.handleFragLoadError(P)),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")):x}doFragPartsLoad(e,t,n,r){return new Promise((i,a)=>{var c;const m=[],p=(c=n.details)==null?void 0:c.partList,v=x=>{this.fragmentLoader.loadPart(e,x,r).then(P=>{m[x.index]=P;const Z=P.part;this.hls.trigger(g.FRAG_LOADED,P);const Y=Hi(n.details,e.sn,x.index+1)||wa(p,e.sn,x.index+1);if(Y)v(Y);else return i({frag:e,part:Z,partsLoaded:m})}).catch(a)};v(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===K.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===fe.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(g.ERROR,t)}else this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Pn.PARSING){!this.fragCurrent&&this.state!==Pn.STOPPED&&this.state!==Pn.ERROR&&(this.state=Pn.IDLE);return}const{frag:n,part:r,level:i}=t,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a);const c=this.getLevelDetails(),p=c&&n.sn>c.endSN||this.shouldLoadParts(c,n.end);p!==this.loadingParts&&(this.log(`LL-Part loading ${p?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=p),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===oe.SUBTITLE)return!1;const a=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=a){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:a}=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],m=c.details,p=a>-1?Hi(m,i,a):null,v=p?p.fragment:Ri(m,i,n);return v?(n&&n!==v&&(v.stats=n.stats),{frag:v,part:p,level:c}):null}bufferFragmentData(e,t,n,r,i){if(this.state!==Pn.PARSING)return;const{data1:a,data2:c}=e;let m=a;if(c&&(m=ct(a,c)),!m.length)return;const p=this.initPTS[t.cc],v=p?-p.baseTime/p.timescale:void 0,x={type:e.type,frag:t,part:n,chunkMeta:r,offset:v,parent:t.type,data:m};if(this.hls.trigger(g.BUFFER_APPENDING,x),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,a=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),c=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-c>a&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!o(r))return null;const a=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,a)}getFwdBufferInfoAtPos(e,t,n,r){const i=Gn.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&(i.nextStart<=a.end||a.gap)){const c=Math.max(Math.min(i.nextStart,a.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=oe.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,a=n[0].start,c=i.lowLatencyMode&&!!t.partList;let m=null;if(t.live){const x=i.initialLiveManifestSize;if(r<x)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${x})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<a){var p;c&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),m=this.getInitialLiveFragment(t);const P=this.hls.startPosition,Z=this.hls.liveSyncPosition,Y=m?(P!==-1&&P>=a?P:Z)||m.start:e;this.log(`Setting startPosition to ${Y} to match start frag at live edge. mainStart: ${P} liveSyncPosition: ${Z} frag.start: ${(p=m)==null?void 0:p.start}`),this.startPosition=this.nextLoadPosition=Y}}else e<=a&&(m=n[0]);if(!m){const x=this.loadingParts?t.partEnd:t.fragmentEnd;m=this.getFragmentAtPosition(e,x,t)}let v=this.filterReplacedPrimary(m,t);if(!v&&m){const x=m.sn-t.startSN;v=this.filterReplacedPrimary(n[x+1]||null,t)}return this.mapToInitFragWhenRequired(v)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Un.OK||n===Un.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t),a&&!a.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 m=a.sn;return this.loopSn!==m&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${m}`),this.loopSn=m),null}}return this.loopSn=void 0,a}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!==oe.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const a=r.event;if(a){if(a.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 a=i.length;a--;){const c=i[a].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,a=!0;for(let c=0,m=e.length;c<m;c++){const p=e[c];if(a=a&&!p.independent,r>-1&&n<p.start)break;const v=p.loaded;v?r=-1:(i||(p.independent||a)&&p.fragment===t)&&(p.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${p.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 a=t[i-e.startSN];n.cc===a.cc&&(r=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=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:a,endSN:c}=n;const{fragmentHint:m}=n,{maxFragLookUpTolerance:p}=r,v=n.partList,x=!!(this.loadingParts&&v!=null&&v.length&&m);x&&!this.bitrateTest&&v[v.length-1].fragment.sn===m.sn&&(a=a.concat(m),c=m.sn);let P;if(e<t){var Z;const Oe=e<this.lastCurrentTime||e>t-p||(Z=this.media)!=null&&Z.paused||!this.startFragRequested?0:p;P=or(i,a,e,Oe)}else P=a[a.length-1];if(P){const Y=P.sn-n.startSN,Oe=this.fragmentTracker.getState(P);if((Oe===Un.OK||Oe===Un.PARTIAL&&P.gap)&&(i=P),i&&P.sn===i.sn&&(!x||v[0].fragment.sn>P.sn||!n.live)&&P.level===i.level){const st=a[Y+1];P.sn<c&&this.fragmentTracker.getState(st)!==Un.OK?P=st:P=null}}return P}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,a=!t,c=e.alignedSliding&&o(i);if(a||!c&&!i){Ys(n,e);const m=e.fragmentStart;return this.log(`Live playlist sliding: ${m.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),m}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,a=i?this.startTimeOffset:e.startTimeOffset;a!==null&&o(a)?(n=t+a,a<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${a} 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&&Ve(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!==Pn.FRAG_LOADING_WAITING_RETRY)&&(this.state=Pn.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const st=this.getCurrentContext(t.chunkMeta);st&&(t.frag=st.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 a=t.details===K.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(r,!0);const c=t.errorAction;if(!c){this.state=Pn.ERROR;return}const{action:m,flags:p,retryCount:v=0,retryConfig:x}=c,P=!!x,Z=P&&m===Hn.RetryRequest,Y=P&&!c.resolved&&p===On.MoveAllAlternatesMatchingHost,Oe=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!Z&&Y&&Ve(r)&&!r.endList&&Oe&&!$t(t))this.resetFragmentErrors(e),this.treatAsGap(r),c.resolved=!0;else if((Z||Y)&&v<x.maxNumRetry){var Le;const st=qr((Le=t.response)==null?void 0:Le.code),mt=hr(x,v);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+mt,this.state=Pn.FRAG_LOADING_WAITING_RETRY,c.resolved=!0,st){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}/${x.maxNumRetry} in ${mt}ms`)}else if(x)if(this.resetFragmentErrors(e),v<x.maxNumRetry)!a&&m!==Hn.RemoveAlternatePermanently&&(c.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${v})`);return}else m===Hn.SendAlternateToPenaltyBox?this.state=Pn.WAITING_LEVEL:this.state=Pn.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=Pn.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===Pn.PARSING||this.state===Pn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const a=!i;return a&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===oe.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Pn.STOPPED&&(this.state=Pn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Gn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Pn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Pn.STOPPED&&(this.state=Pn.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((m,p)=>{const v=e.elementaryStreams[p];if(v){const x=v.endPTS-v.startPTS;if(x<=0)return this.warn(`Could not parse fragment ${e.sn} ${p} duration reliably (${x})`),m||!1;const P=r?0:Pa(i,e,v.startPTS,v.endPTS,v.startDTS,v.endDTS,this);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:i,level:n,drift:P,type:p,frag:e,start:v.startPTS,end:v.endPTS}),!0}return m},!1)){var c;const m=((c=this.transmuxer)==null?void 0:c.error)===null;if((n.fragmentError===0||m&&(n.fragmentError<2||e.endList))&&this.treatAsGap(e,n),m){const p=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(p.message),this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,error:p,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Pn.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===oe.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(s){return!!s.interstitialsController&&s.enableInterstitialPlayback!==!1}class Us{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=Qs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Qs(s,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<s.length;r++){const i=s[r];t.set(i,n),n+=i.length}return t}var Ds={exports:{}},qs;function _l(){return qs||(qs=1,function(s){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(m,p,v){this.fn=m,this.context=p,this.once=v||!1}function i(m,p,v,x,P){if(typeof v!="function")throw new TypeError("The listener must be a function");var Z=new r(v,x||m,P),Y=t?t+p:p;return m._events[Y]?m._events[Y].fn?m._events[Y]=[m._events[Y],Z]:m._events[Y].push(Z):(m._events[Y]=Z,m._eventsCount++),m}function a(m,p){--m._eventsCount===0?m._events=new n:delete m._events[p]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var p=[],v,x;if(this._eventsCount===0)return p;for(x in v=this._events)e.call(v,x)&&p.push(t?x.slice(1):x);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(v)):p},c.prototype.listeners=function(p){var v=t?t+p:p,x=this._events[v];if(!x)return[];if(x.fn)return[x.fn];for(var P=0,Z=x.length,Y=new Array(Z);P<Z;P++)Y[P]=x[P].fn;return Y},c.prototype.listenerCount=function(p){var v=t?t+p:p,x=this._events[v];return x?x.fn?1:x.length:0},c.prototype.emit=function(p,v,x,P,Z,Y){var Oe=t?t+p:p;if(!this._events[Oe])return!1;var Le=this._events[Oe],st=arguments.length,mt,xt;if(Le.fn){switch(Le.once&&this.removeListener(p,Le.fn,void 0,!0),st){case 1:return Le.fn.call(Le.context),!0;case 2:return Le.fn.call(Le.context,v),!0;case 3:return Le.fn.call(Le.context,v,x),!0;case 4:return Le.fn.call(Le.context,v,x,P),!0;case 5:return Le.fn.call(Le.context,v,x,P,Z),!0;case 6:return Le.fn.call(Le.context,v,x,P,Z,Y),!0}for(xt=1,mt=new Array(st-1);xt<st;xt++)mt[xt-1]=arguments[xt];Le.fn.apply(Le.context,mt)}else{var Mt=Le.length,Wt;for(xt=0;xt<Mt;xt++)switch(Le[xt].once&&this.removeListener(p,Le[xt].fn,void 0,!0),st){case 1:Le[xt].fn.call(Le[xt].context);break;case 2:Le[xt].fn.call(Le[xt].context,v);break;case 3:Le[xt].fn.call(Le[xt].context,v,x);break;case 4:Le[xt].fn.call(Le[xt].context,v,x,P);break;default:if(!mt)for(Wt=1,mt=new Array(st-1);Wt<st;Wt++)mt[Wt-1]=arguments[Wt];Le[xt].fn.apply(Le[xt].context,mt)}}return!0},c.prototype.on=function(p,v,x){return i(this,p,v,x,!1)},c.prototype.once=function(p,v,x){return i(this,p,v,x,!0)},c.prototype.removeListener=function(p,v,x,P){var Z=t?t+p:p;if(!this._events[Z])return this;if(!v)return a(this,Z),this;var Y=this._events[Z];if(Y.fn)Y.fn===v&&(!P||Y.once)&&(!x||Y.context===x)&&a(this,Z);else{for(var Oe=0,Le=[],st=Y.length;Oe<st;Oe++)(Y[Oe].fn!==v||P&&!Y[Oe].once||x&&Y[Oe].context!==x)&&Le.push(Y[Oe]);Le.length?this._events[Z]=Le.length===1?Le[0]:Le:a(this,Z)}return this},c.prototype.removeAllListeners=function(p){var v;return p?(v=t?t+p:p,this._events[v]&&a(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,s.exports=c}(Ds)),Ds.exports}var rl=_l(),So=A(rl);const lo="1.6.15",Xs={};function Mo(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Al(){const s=Xs[lo];if(s)return s.clientCount++,s;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 Xs[lo]=r,r}function Bo(s){const e=Xs[s];if(e)return e.clientCount++,e;const t=new self.URL(s,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Xs[s]=r,r}function Cl(s){const e=Xs[s||lo];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete Xs[s||lo],r&&self.URL.revokeObjectURL(r),n.terminate()}}function xo(s,e){return e+10<=s.length&&s[e]===51&&s[e+1]===68&&s[e+2]===73&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128}function mo(s,e){return e+10<=s.length&&s[e]===73&&s[e+1]===68&&s[e+2]===51&&s[e+3]<255&&s[e+4]<255&&s[e+6]<128&&s[e+7]<128&&s[e+8]<128&&s[e+9]<128}function Js(s,e){let t=0;return t=(s[e]&127)<<21,t|=(s[e+1]&127)<<14,t|=(s[e+2]&127)<<7,t|=s[e+3]&127,t}function uo(s,e){const t=e;let n=0;for(;mo(s,e);){n+=10;const r=Js(s,e+6);n+=r,xo(s,e+10)&&(n+=10),e+=n}if(n>0)return s.subarray(t,t+n)}function Ko(s,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],a=i>>2&15;if(a>12){const Z=new Error(`invalid ADTS sampling index:${a}`);s.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!0,error:Z,reason:Z.message});return}const c=(i>>6&3)+1,m=e[t+3]>>6&3|(i&1)<<2,p="mp4a.40."+c,v=r[a];let x=a;(c===5||c===29)&&(x-=3);const P=[c<<3|(x&14)>>1,(x&1)<<7|m<<3];return de.log(`manifest codec:${n}, parsed codec:${p}, channels:${m}, rate:${v} (ADTS object type:${c} sampling index:${a})`),{config:P,samplerate:v,channelCount:m,codec:p,parsedCodec:p,manifestCodec:n}}function zo(s,e){return s[e]===255&&(s[e+1]&246)===240}function $o(s,e){return s[e+1]&1?7:9}function Eo(s,e){return(s[e+3]&3)<<11|s[e+4]<<3|(s[e+5]&224)>>>5}function jo(s,e){return e+5<s.length}function _o(s,e){return e+1<s.length&&zo(s,e)}function co(s,e){return jo(s,e)&&zo(s,e)&&Eo(s,e)<=s.length-e}function Ho(s,e){if(_o(s,e)){const t=$o(s,e);if(e+t>=s.length)return!1;const n=Eo(s,e);if(n<=t)return!1;const r=e+n;return r===s.length||_o(s,r)}return!1}function Ao(s,e,t,n,r){if(!s.samplerate){const i=Ko(e,t,n,r);if(!i)return;S(s,i)}}function il(s){return 1024*9e4/s}function al(s,e){const t=$o(s,e);if(e+t<=s.length){const n=Eo(s,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function sl(s,e,t,n,r){const i=il(s.samplerate),a=n+r*i,c=al(e,t);let m;if(c){const{frameLength:x,headerLength:P}=c,Z=P+x,Y=Math.max(0,t+Z-e.length);Y?(m=new Uint8Array(Z-P),m.set(e.subarray(t+P,e.length),0)):m=e.subarray(t+P,t+Z);const Oe={unit:m,pts:a};return Y||s.samples.push(Oe),{sample:Oe,length:Z,missing:Y}}const p=e.length-t;return m=new Uint8Array(p),m.set(e.subarray(t,e.length),0),{sample:{unit:m,pts:a},length:p,missing:-1}}function Co(s,e){return mo(s,e)&&Js(s,e+6)+10<=s.length-e}function wl(s){return s instanceof ArrayBuffer?s:s.byteOffset==0&&s.byteLength==s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer}function go(s,e=0,t=1/0){return ol(s,e,t,Uint8Array)}function ol(s,e,t,n){const r=ll(s);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const a=Wo(s)?s.byteOffset:0,c=(a+s.byteLength)/i,m=(a+e)/i,p=Math.floor(Math.max(0,Math.min(m,c))),v=Math.floor(Math.min(p+Math.max(t,0),c));return new n(r,p,v-p)}function ll(s){return s instanceof ArrayBuffer?s:s.buffer}function Wo(s){return s&&s.buffer instanceof ArrayBuffer&&s.byteLength!==void 0&&s.byteOffset!==void 0}function ul(s){const e={key:s.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(s.size<2)return;if(s.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=s.data.subarray(1).indexOf(0);if(n===-1)return;const r=Te(go(s.data,1,n)),i=s.data[2+n],a=s.data.subarray(3+n).indexOf(0);if(a===-1)return;const c=Te(go(s.data,3+n,a));let m;return r==="-->"?m=Te(go(s.data,4+n+a)):m=wl(s.data.subarray(4+n+a)),e.mimeType=r,e.pictureType=i,e.description=c,e.data=m,e}function pt(s){if(s.size<2)return;const e=Te(s.data,!0),t=new Uint8Array(s.data.subarray(e.length+1));return{key:s.type,info:e,data:t.buffer}}function Vo(s){if(s.size<2)return;if(s.type==="TXXX"){let t=1;const n=Te(s.data.subarray(t),!0);t+=n.length+1;const r=Te(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Te(s.data.subarray(1));return{key:s.type,info:"",data:e}}function wo(s){if(s.type==="WXXX"){if(s.size<2)return;let t=1;const n=Te(s.data.subarray(t),!0);t+=n.length+1;const r=Te(s.data.subarray(t));return{key:s.type,info:n,data:r}}const e=Te(s.data);return{key:s.type,info:"",data:e}}function To(s){return s.type==="PRIV"?pt(s):s.type[0]==="W"?wo(s):s.type==="APIC"?ul(s):Vo(s)}function Zo(s){const e=String.fromCharCode(s[0],s[1],s[2],s[3]),t=Js(s,4),n=10;return{type:e,size:t,data:s.subarray(n,n+t)}}const eo=10,ps=10;function Ro(s){let e=0;const t=[];for(;mo(s,e);){const n=Js(s,e+6);s[e+5]>>6&1&&(e+=eo),e+=eo;const r=e+n;for(;e+ps<r;){const i=Zo(s.subarray(e)),a=To(i);a&&t.push(a),e+=i.size+eo}xo(s,e)&&(e+=eo)}return t}function Go(s){return s&&s.key==="PRIV"&&s.info==="com.apple.streaming.transportStreamTimestamp"}function he(s){if(s.data.byteLength===8){const e=new Uint8Array(s.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 ce(s){const e=Ro(s);for(let t=0;t<e.length;t++){const n=e[t];if(Go(n))return he(n)}}let Ke=function(s){return s.audioId3="org.id3",s.dateRange="com.apple.quicktime.HLS",s.emsg="https://aomedia.org/emsg/ID3",s.misbklv="urn:misb:KLV:bin:1910.1",s}({});function at(s="",e=9e4){return{type:s,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class At{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=ct(this.cachedData,e),this.cachedData=null);let n=uo(e,0),r=n?n.length:0,i;const a=this._audioTrack,c=this._id3Track,m=n?ce(n):void 0,p=e.length;for((this.basePTS===null||this.frameIndex===0&&o(m))&&(this.basePTS=Rt(m,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:Ke.audioId3,duration:Number.POSITIVE_INFINITY});r<p;){if(this.canParse(e,r)){const v=this.appendFrame(a,e,r);v?(this.frameIndex++,this.lastPTS=v.sample.pts,r+=v.length,i=r):r=p}else Co(e,r)?(n=uo(e,r),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Ke.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===p&&i!==p){const v=e.slice(i);this.cachedData?this.cachedData=ct(this.cachedData,v):this.cachedData=v}}return{audioTrack:a,videoTrack:at(),id3Track:c,textTrack:at()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:at(),id3Track:this._id3Track,textTrack:at()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Rt=(s,e,t)=>{if(o(s))return s*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],Ht=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Bt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bn=[0,1,1,4];function rn(s,e,t,n,r){if(t+24>e.length)return;const i=tn(e,t);if(i&&t+i.frameLength<=e.length){const a=i.samplesPerFrame*9e4/i.sampleRate,c=n+r*a,m={unit:e.subarray(t,t+i.frameLength),pts:c,dts:c};return s.config=[],s.channelCount=i.channelCount,s.samplerate=i.sampleRate,s.samples.push(m),{sample:m,length:i.frameLength,missing:0}}}function tn(s,e){const t=s[e+1]>>3&3,n=s[e+1]>>1&3,r=s[e+2]>>4&15,i=s[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const a=s[e+2]>>1&1,c=s[e+3]>>6,m=t===3?3-n:n===3?3:4,p=Lt[m*14+r-1]*1e3,x=Ht[(t===3?0:t===2?1:2)*3+i],P=c===3?1:2,Z=Bt[t][n],Y=bn[n],Oe=Z*8*Y,Le=Math.floor(Z*p/x+a)*Y;if(Nt===null){const xt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Nt=xt?parseInt(xt[1]):0}return!!Nt&&Nt<=87&&n===2&&p>=224e3&&c===0&&(s[e+3]=s[e+3]|128),{sampleRate:x,channelCount:P,frameLength:Le,samplesPerFrame:Oe}}}function U(s,e){return s[e]===255&&(s[e+1]&224)===224&&(s[e+1]&6)!==0}function u(s,e){return e+1<s.length&&U(s,e)}function f(s,e){return U(s,e)&&4<=s.length-e}function h(s,e){if(e+1<s.length&&U(s,e)){const n=tn(s,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===s.length||u(s,i)}return!1}class y extends At{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(Ho(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return co(e,t)}appendFrame(e,t,n){Ao(e,this.observer,t,n,e.manifestCodec);const r=sl(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const O=(s,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),a=new Uint8Array(1);for(;n>0;){a[0]=s[e];const c=Math.min(n,8),m=8-c;i[0]=4278190080>>>24+m<<m,r[0]=(a[0]&i[0])>>m,t=t?t<<c|r[0]:r[0],e+=1,n-=c}return t};class H extends At{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=Ae(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&&ce(t)!==void 0&&O(e,n)<16}}function Ae(s,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],m=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][m*3+i]*2;if(t+v>e.length)return-1;const x=e[t+6]>>5;let P=0;x===2?P+=2:(x&1&&x!==1&&(P+=2),x&4&&(P+=2));const Z=(e[t+6]<<8|e[t+7])>>12-P&1,Oe=[2,1,2,3,3,4,4,5][x]+Z,Le=e[t+5]>>3,st=e[t+5]&7,mt=new Uint8Array([i<<6|Le<<1|st>>2,(st&3)<<6|x<<3|Z<<2|m>>4,m<<4&224]),xt=1536/c*9e4,Mt=n+r*xt,Wt=e.subarray(t,t+v);return s.config=mt,s.channelCount=Oe,s.samplerate=c,s.samples.push({unit:Wt,pts:Mt}),v}class Ne extends At{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&&ce(t)!==void 0&&O(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(h(e,n))return de.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 Je=/\/emsg[-/]ID3/i;class Ct{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=at("video",1),a=this.audioTrack=at("audio",1),c=this.txtTrack=at("text",1);if(this.id3Track=at("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const m=Pe(e);if(m.video){const{id:p,timescale:v,codec:x,supplemental:P}=m.video;i.id=p,i.timescale=c.timescale=v,i.codec=x,i.supplemental=P}if(m.audio){const{id:p,timescale:v,codec:x}=m.audio;a.id=p,a.timescale=v,a.codec=x}c.id=wt.text,i.sampleDuration=0,i.duration=a.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return ke(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ct(this.remainderData,e));const c=nt(n);this.remainderData=c.remainder,r.samples=c.valid||new Uint8Array}else r.samples=n;const a=this.extractID3Track(r,t);return i.samples=ut(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=ut(e,t),{videoTrack:t,audioTrack:at(),id3Track:r,textTrack:at()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=ie(e.samples,["emsg"]);r&&r.forEach(i=>{const a=Ye(i);if(Je.test(a.schemeIdUri)){const c=Pt(a,t);let m=a.eventDuration===4294967295?Number.POSITIVE_INFINITY:a.eventDuration/a.timeScale;m<=.001&&(m=Number.POSITIVE_INFINITY);const p=a.payload;n.samples.push({data:p,len:p.byteLength,dts:c,pts:c,type:Ke.emsg,duration:m})}else if(this.config.enableEmsgKLVMetadata&&a.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const c=Pt(a,t);n.samples.push({data:a.payload,len:a.payload.byteLength,dts:c,pts:c,type:Ke.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 Pt(s,e){return o(s.presentationTime)?s.presentationTime/s.timeScale:e+s.presentationTimeDelta/s.timeScale}class zt{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Jr(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,pr.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),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then(c=>{const m=new Uint8Array(c);r.set(m,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 a=Ce(i.data),c=this.getAvcEncryptedData(a);this.decryptBuffer(c.buffer).then(m=>{i.data=this.getAvcDecryptedUnit(a,m),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 a=i[n];if(!(a.data.length<=48||a.type!==1&&a.type!==5)&&(this.decryptAvcSample(e,t,n,r,a),!this.decrypter.isSync()))return}}}}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 a=i,c=[];let m=0,p,v,x,P=-1,Z=0;for(i===-1&&(P=0,Z=this.getNALuType(t,0),i=0,m=1);m<r;){if(p=t[m++],!i){i=p?0:1;continue}if(i===1){i=p?0:2;continue}if(!p)i=3;else if(p===1){if(v=m-i-1,P>=0){const Y={data:t.subarray(P,v),type:Z};c.push(Y)}else{const Y=this.getLastNalUnit(e.samples);Y&&(a&&m<=4-a&&Y.state&&(Y.data=Y.data.subarray(0,Y.data.byteLength-a)),v>0&&(Y.data=ct(Y.data,t.subarray(0,v)),Y.state=0))}m<r?(x=this.getNALuType(t,m),P=m,Z=x,i=0):i=-1}else i=0}if(P>=0&&i>=0){const Y={data:t.subarray(P,r),type:Z,state:i};c.push(Y)}if(c.length===0){const Y=this.getLastNalUnit(e.samples);Y&&(Y.data=ct(Y.data,t))}return e.naluState=i,c}}class cn{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&&de.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 dn extends nn{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let a=this.VideoSample,c,m=!1;n.data=null,a&&i.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(p=>{var v,x;switch(p.type){case 1:{let Oe=!1;c=!0;const Le=p.data;if(m&&Le.length>4){const st=this.readSliceType(Le);(st===2||st===4||st===7||st===9)&&(Oe=!0)}if(Oe){var P;(P=a)!=null&&P.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null)}a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=Oe;break}case 5:c=!0,(v=a)!=null&&v.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:{c=!0,ht(p.data,1,n.pts,t.samples);break}case 7:{var Z,Y;c=!0,m=!0;const Oe=p.data,Le=this.readSPS(Oe);if(!e.sps||e.width!==Le.width||e.height!==Le.height||((Z=e.pixelRatio)==null?void 0:Z[0])!==Le.pixelRatio[0]||((Y=e.pixelRatio)==null?void 0:Y[1])!==Le.pixelRatio[1]){e.width=Le.width,e.height=Le.height,e.pixelRatio=Le.pixelRatio,e.sps=[Oe];const st=Oe.subarray(1,4);let mt="avc1.";for(let xt=0;xt<3;xt++){let Mt=st[xt].toString(16);Mt.length<2&&(Mt="0"+Mt),mt+=Mt}e.codec=mt}break}case 8:c=!0,e.pps=[p.data];break;case 9:c=!0,e.audFound=!0,(x=a)!=null&&x.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:c=!0;break;default:c=!1;break}a&&c&&a.units.push(p)}),r&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new cn(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let a=0;a<e;a++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new cn(e);let n=0,r=0,i=0,a=0,c,m,p;const v=t.readUByte.bind(t),x=t.readBits.bind(t),P=t.readUEG.bind(t),Z=t.readBoolean.bind(t),Y=t.skipBits.bind(t),Oe=t.skipEG.bind(t),Le=t.skipUEG.bind(t),st=this.skipScalingList.bind(this);v();const mt=v();if(x(5),Y(3),v(),Le(),mt===100||mt===110||mt===122||mt===244||mt===44||mt===83||mt===86||mt===118||mt===128){const hn=P();if(hn===3&&Y(1),Le(),Le(),Y(1),Z())for(m=hn!==3?8:12,p=0;p<m;p++)Z()&&(p<6?st(16,t):st(64,t))}Le();const xt=P();if(xt===0)P();else if(xt===1)for(Y(1),Oe(),Oe(),c=P(),p=0;p<c;p++)Oe();Le(),Y(1);const Mt=P(),Wt=P(),Rn=x(1);Rn===0&&Y(1),Y(1),Z()&&(n=P(),r=P(),i=P(),a=P());let Yt=[1,1];if(Z()&&Z())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((Mt+1)*16-n*2-r*2),height:(2-Rn)*(Wt+1)*16-(Rn?2:4)*(i+a),pixelRatio:Yt}}}class wn extends nn{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let a=this.VideoSample,c,m=!1;n.data=null,a&&i.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(p=>{var v,x;switch(p.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,c=!0;break;case 16:case 17:case 18:case 21:if(c=!0,m){var P;(P=a)!=null&&P.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null)}a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:c=!0,(v=a)!=null&&v.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:c=!0,ht(p.data,2,n.pts,t.samples);break;case 32:c=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=S(e.params,this.readVPS(p.data)),this.initVPS=p.data),e.vps=[p.data];break;case 33:if(c=!0,m=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],p.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const Z=this.readSPS(p.data);e.width=Z.width,e.height=Z.height,e.pixelRatio=Z.pixelRatio,e.codec=Z.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const Y in Z.params)e.params[Y]=Z.params[Y]}this.pushParameterSet(e.sps,p.data,e.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(c=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const Z=this.readPPS(p.data);for(const Y in Z)e.params[Y]=Z[Y]}this.pushParameterSet(e.pps,p.data,e.vps)}break;case 35:c=!0,e.audFound=!0,(x=a)!=null&&x.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:c=!1;break}a&&c&&a.units.push(p)}),r&&a&&(this.pushAccessUnit(a,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 cn(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 cn(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(),a=t.readBits(5),c=t.readUByte(),m=t.readUByte(),p=t.readUByte(),v=t.readUByte(),x=t.readUByte(),P=t.readUByte(),Z=t.readUByte(),Y=t.readUByte(),Oe=t.readUByte(),Le=t.readUByte(),st=t.readUByte(),mt=[],xt=[];for(let ea=0;ea<n;ea++)mt.push(t.readBoolean()),xt.push(t.readBoolean());if(n>0)for(let ea=n;ea<8;ea++)t.readBits(2);for(let ea=0;ea<n;ea++)mt[ea]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),xt[ea]&&t.readUByte();t.readUEG();const Mt=t.readUEG();Mt==3&&t.skipBits(1);const Wt=t.readUEG(),Rn=t.readUEG(),Yt=t.readBoolean();let hn=0,fn=0,en=0,$n=0;Yt&&(hn+=t.readUEG(),fn+=t.readUEG(),en+=t.readUEG(),$n+=t.readUEG());const br=t.readUEG(),kr=t.readUEG(),Vr=t.readUEG(),Nr=t.readBoolean();for(let ea=Nr?0:n;ea<=n;ea++)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 as=0;as<4;as++)for(let Ls=0;Ls<(as===3?2:6);Ls++)if(!t.readBoolean())t.readUEG();else{const zs=Math.min(64,1<<4+(as<<1));as>1&&t.readEG();for(let nl=0;nl<zs;nl++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const wr=t.readUEG();let Hr=0;for(let ea=0;ea<wr;ea++){let as=!1;if(ea!==0&&(as=t.readBoolean()),as){ea===wr&&t.readUEG(),t.readBoolean(),t.readUEG();let Ls=0;for(let ko=0;ko<=Hr;ko++){const zs=t.readBoolean();let nl=!1;zs||(nl=t.readBoolean()),(zs||nl)&&Ls++}Hr=Ls}else{const Ls=t.readUEG(),ko=t.readUEG();Hr=Ls+ko;for(let zs=0;zs<Ls;zs++)t.readUEG(),t.readBoolean();for(let zs=0;zs<ko;zs++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const ea=t.readUEG();for(let as=0;as<ea;as++){for(let Ls=0;Ls<Vr+4;Ls++)t.readBits(1);t.readBits(1)}}let gr=0,vr=1,_i=1,ia=!0,Ti=1,ji=0;t.readBoolean(),t.readBoolean();let is=!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],Ql=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];No>0&&No<16?(vr=rc[No-1],_i=Ql[No-1]):No===255&&(vr=t.readBits(16),_i=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),is=t.readBoolean(),is&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Ti=t.readBits(32),ji=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Ql=t.readBoolean(),ic=t.readBoolean();let xl=!1;(Ql||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 ac=0;ac<=n;ac++){ia=t.readBoolean();const Z0=ia||t.readBoolean();let sc=!1;Z0?t.readEG():sc=t.readBoolean();const oc=sc?1:t.readUEG()+1;if(Ql)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 Fs=Wt,io=Rn;if(Yt){let ea=1,as=1;Mt===1?ea=as=2:Mt==2&&(ea=2),Fs=Wt-ea*fn-ea*hn,io=Rn-as*$n-as*en}const Po=r?["A","B","C"][r]:"",V0=c<<24|m<<16|p<<8|v;let bu=0;for(let ea=0;ea<32;ea++)bu=(bu|(V0>>ea&1)<<31-ea)>>>0;let Su=bu.toString(16);return a===1&&Su==="2"&&(Su="6"),{codecString:`hvc1.${Po}${a}.${Su}.${i?"H":"L"}${st}.B0`,params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:r,general_profile_compatibility_flags:[c,m,p,v],general_constraint_indicator_flags:[x,P,Z,Y,Oe,Le],general_level_idc:st,bit_depth:br+8,bit_depth_luma_minus8:br,bit_depth_chroma_minus8:kr,min_spatial_segmentation_idc:gr,chroma_format_idc:Mt,frame_rate:{fixed:ia,fps:ji/Ti}},width:Fs,height:io,pixelRatio:[vr,_i]}}readPPS(e){const t=new cn(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 a=1;return i&&r?a=0:i?a=3:r&&(a=2),{parallelismType:a}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const xn=188;class Cn{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=Cn.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,a=-1,c=0;for(let m=r;m<t;m+=xn)if(e[m]===71&&(t-m===xn||e[m+xn]===71)){if(c++,a===-1&&(a=m,a!==0&&(n=Math.min(a+xn*99,e.length-xn)+1)),i||(i=kn(e,m)===0),i&&c>1&&(a===0&&c>2||m+xn>n))return a}else{if(c)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:wt[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=Cn.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=Cn.createTrack("audio",r),this._id3Track=Cn.createTrack("id3"),this._txtTrack=Cn.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 a=this._videoTrack,c=this._audioTrack,m=this._id3Track,p=this._txtTrack;let v=a.pid,x=a.pesData,P=c.pid,Z=m.pid,Y=c.pesData,Oe=m.pesData,Le=null,st=this.pmtParsed,mt=this._pmtId,xt=e.length;if(this.remainderData&&(e=ct(this.remainderData,e),xt=e.length,this.remainderData=null),xt<xn&&!r)return this.remainderData=e,{audioTrack:c,videoTrack:a,id3Track:m,textTrack:p};const Mt=Math.max(0,Cn.syncOffset(e));xt-=(xt-Mt)%xn,xt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,xt,e.buffer.byteLength-xt));let Wt=0;for(let Yt=Mt;Yt<xt;Yt+=xn)if(e[Yt]===71){const hn=!!(e[Yt+1]&64),fn=kn(e,Yt),en=(e[Yt+3]&48)>>4;let $n;if(en>1){if($n=Yt+5+e[Yt+4],$n===Yt+xn)continue}else $n=Yt+4;switch(fn){case v:hn&&(x&&(i=Tr(x,this.logger))&&(this.readyVideoParser(a.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(a,p,i,!1)),x={data:[],size:0}),x&&(x.data.push(e.subarray($n,Yt+xn)),x.size+=Yt+xn-$n);break;case P:if(hn){if(Y&&(i=Tr(Y,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}Y={data:[],size:0}}Y&&(Y.data.push(e.subarray($n,Yt+xn)),Y.size+=Yt+xn-$n);break;case Z:hn&&(Oe&&(i=Tr(Oe,this.logger))&&this.parseID3PES(m,i),Oe={data:[],size:0}),Oe&&(Oe.data.push(e.subarray($n,Yt+xn)),Oe.size+=Yt+xn-$n);break;case 0:hn&&($n+=e[$n]+1),mt=this._pmtId=Xn(e,$n);break;case mt:{hn&&($n+=e[$n]+1);const br=tr(e,$n,this.typeSupported,n,this.observer,this.logger);v=br.videoPid,v>0&&(a.pid=v,a.segmentCodec=br.segmentVideoCodec),P=br.audioPid,P>0&&(c.pid=P,c.segmentCodec=br.segmentAudioCodec),Z=br.id3Pid,Z>0&&(m.pid=Z),Le!==null&&!st&&(this.logger.warn(`MPEG-TS PMT found at ${Yt} after unknown PID '${Le}'. Backtracking to sync byte @${Mt} to parse all TS packets.`),Le=null,Yt=Mt-188),st=this.pmtParsed=!0;break}case 17:case 8191:break;default:Le=fn;break}}else Wt++;Wt>0&&zn(this.observer,new Error(`Found ${Wt} TS packet/s that do not start with 0x47`),void 0,this.logger),a.pesData=x,c.pesData=Y,m.pesData=Oe;const Rn={audioTrack:c,videoTrack:a,id3Track:m,textTrack:p};return r&&this.extractRemainingSamples(Rn),Rn}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,a=n.pesData,c=t.pesData,m=r.pesData;let p;if(a&&(p=Tr(a,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,i,p,!0),n.pesData=null)):n.pesData=a,c&&(p=Tr(c,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,p);break;case"mp3":this.parseMPEGPES(t,p);break;case"ac3":this.parseAC3PES(t,p);break}t.pesData=null}else c!=null&&c.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;m&&(p=Tr(m,this.logger))?(this.parseID3PES(r,p),r.pesData=null):r.pesData=m}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new zt(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new dn:e==="hevc"&&(this.videoParser=new wn))}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 x=r.missing,P=r.sample.unit.byteLength;if(x===-1)i=ct(r.sample.unit,i);else{const Z=P-x;r.sample.unit.set(i.subarray(0,x),Z),e.samples.push(r.sample),n=r.missing}}let a,c;for(a=n,c=i.length;a<c-1&&!_o(i,a);a++);if(a!==n){let x;const P=a<c-1;if(P?x=`AAC PES did not start with ADTS header,offset:${a}`:x="No ADTS header found in AAC PES",zn(this.observer,new Error(x),P,this.logger),!P)return}Ao(e,this.observer,i,a,this.audioCodec);let m;if(t.pts!==void 0)m=t.pts;else if(r){const x=il(e.samplerate);m=r.sample.pts+x}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let p=0,v;for(;a<c;)if(v=sl(e,i,a,m,p),a+=v.length,v.missing){this.aacOverFlow=v;break}else for(p++;a<c-1&&!_o(i,a);a++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,a=0;const c=t.pts;if(c===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<r;)if(u(n,a)){const m=rn(e,n,a,c,i);if(m)a+=m.length,i++;else break}else a++}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 a=0,c=0,m;for(;c<i&&(m=Ae(e,n,c,r,a++))>0;)c+=m}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=S({},t,{type:this._videoTrack?Ke.emsg:Ke.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function kn(s,e){return((s[e+1]&31)<<8)+s[e+2]}function Xn(s,e){return(s[e+10]&31)<<8|s[e+11]}function tr(s,e,t,n,r,i){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},c=(s[e+1]&15)<<8|s[e+2],m=e+3+c-4,p=(s[e+10]&15)<<8|s[e+11];for(e+=12+p;e<m;){const v=kn(s,e),x=(s[e+3]&15)<<8|s[e+4];switch(s[e]){case 207:if(!n){Er("ADTS AAC",i);break}case 15:a.audioPid===-1&&(a.audioPid=v);break;case 21:a.id3Pid===-1&&(a.id3Pid=v);break;case 219:if(!n){Er("H.264",i);break}case 27:a.videoPid===-1&&(a.videoPid=v);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):a.audioPid===-1&&(a.audioPid=v,a.segmentAudioCodec="mp3");break;case 193:if(!n){Er("AC-3",i);break}case 129:t.ac3?a.audioPid===-1&&(a.audioPid=v,a.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(a.audioPid===-1&&x>0){let P=e+5,Z=x;for(;Z>2;){switch(s[P]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=v,a.segmentAudioCodec="ac3");break}const Oe=s[P+1]+2;P+=Oe,Z-=Oe}}break;case 194:case 135:return zn(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),a;case 36:a.videoPid===-1&&(a.videoPid=v,a.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=x+5}return a}function zn(s,e,t,n){n.warn(`parsing error: ${e.message}`),s.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Er(s,e){e.log(`${s} with AES-128-CBC encryption found in unencrypted stream`)}function Tr(s,e){let t=0,n,r,i,a,c;const m=s.data;if(!s||s.size===0)return null;for(;m[0].length<19&&m.length>1;)m[0]=ct(m[0],m[1]),m.splice(1,1);if(n=m[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>s.size-6)return null;const v=n[7];v&192&&(a=(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,a-c>60*9e4&&(e.warn(`${Math.round((a-c)/9e4)}s delta between PTS and DTS, align them`),a=c)):c=a),i=n[8];let x=i+9;if(s.size<=x)return null;s.size-=x;const P=new Uint8Array(s.size);for(let Z=0,Y=m.length;Z<Y;Z++){n=m[Z];let Oe=n.byteLength;if(x)if(x>Oe){x-=Oe;continue}else n=n.subarray(x),Oe-=x,x=0;P.set(n,t),t+=Oe}return r&&(r-=i+3),{data:P,pts:a,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 a=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),m=new Uint8Array([0,0,0,1]);kt.FTYP=kt.box(kt.types.ftyp,a,m,a,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 a=new Uint8Array(n);for(a[0]=n>>24&255,a[1]=n>>16&255,a[2]=n>>8&255,a[3]=n&255,a.set(e,4),r=0,n=8;r<i;r++)a.set(t[r],n),n+=t[r].byteLength;return a}static hdlr(e){return 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,a;for(r=0;r<e.sps.length;r++)i=e.sps[r],a=i.byteLength,t.push(a>>>8&255),t.push(a&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],a=i.byteLength,n.push(a>>>8&255),n.push(a&255),n=n.concat(Array.prototype.slice.call(i));const c=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))),m=e.width,p=e.height,v=e.pixelRatio[0],x=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,m>>8&255,m&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),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,x>>24,x>>16&255,x>>8&255,x&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,a=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,a>>24,a>>16&255,a>>8&255,a&255,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=kt.sdtp(e),r=e.id,i=Math.floor(t/(ni+1)),a=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,a>>24,a>>16&255,a>>8&255,a&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,a=new Uint8Array(i);let c,m,p,v,x,P;for(t+=8+i,a.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),c=0;c<r;c++)m=n[c],p=m.duration,v=m.size,x=m.flags,P=m.cts,a.set([p>>>24&255,p>>>16&255,p>>>8&255,p&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,x.isLeading<<2|x.dependsOn,x.isDependedOn<<6|x.hasRedundancy<<4|x.paddingValue<<1|x.isNonSync,x.degradPrio&61440,x.degradPrio&15,P>>>24&255,P>>>16&255,P>>>8&255,P&255],12+16*c);return kt.box(kt.types.trun,a)}static initSegment(e){kt.types||kt.init();const t=kt.moov(e);return ct(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 a=i.length;for(let Y=0;Y<n.length;Y+=1){a+=3;for(let Oe=0;Oe<n[Y].length;Oe+=1)a+=2+n[Y][Oe].length}const c=new Uint8Array(a);c.set(i,0),a=i.length;const m=n.length-1;for(let Y=0;Y<n.length;Y+=1){c.set(new Uint8Array([32+Y|(Y===m?128:0),0,n[Y].length]),a),a+=3;for(let Oe=0;Oe<n[Y].length;Oe+=1)c.set(new Uint8Array([n[Y][Oe].length>>8,n[Y][Oe].length&255]),a),a+=2,c.set(n[Y][Oe],a),a+=n[Y][Oe].length}const p=kt.box(kt.types.hvcC,c),v=e.width,x=e.height,P=e.pixelRatio[0],Z=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,x>>8&255,x&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]),p,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([P>>24,P>>16&255,P>>8&255,P&255,Z>>24,Z>>16&255,Z>>8&255,Z&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 ta(s,e,t=1,n=!1){const r=s*e*t;return n?Math.round(r):r}function Qr(s,e,t=1,n=!1){return ta(s,e,1/t,n)}function Br(s,e=!1){return ta(s,1e3,1/vi,e)}function Yi(s,e=1){return ta(s,vi,1/e)}function Qi(s){const{baseTime:e,timescale:t,trackId:n}=s;return`${e/t} (${e}/${t}) trackId: ${n}`}const Ar=10*1e3,Zr=1024,mr=1152,_r=1536;let si=null,hi=null;function zi(s,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:s?2:1,isNonSync:s?0:1}}}class Ni extends V{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,si===null){const a=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);si=a?parseInt(a[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&&Qi(t)} > ${e&&Qi(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,a)=>{let c=a.pts,m=c-i;return m<-4294967296&&(t=!0,c=Wi(c,n),m=c-i),m>0?i:c},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,a,c,m){let p,v,x,P,Z,Y,Oe=i,Le=i;const st=e.pid>-1,mt=t.pid>-1,xt=t.samples.length,Mt=e.samples.length>0,Wt=c&&xt>0||xt>1;if((!st||Mt)&&(!mt||Wt)||this.ISGenerated||c){if(this.ISGenerated){var Yt,hn,fn,en;const Vr=this.videoTrackConfig;(Vr&&(t.width!==Vr.width||t.height!==Vr.height||((Yt=t.pixelRatio)==null?void 0:Yt[0])!==((hn=Vr.pixelRatio)==null?void 0:hn[0])||((fn=t.pixelRatio)==null?void 0:fn[1])!==((en=Vr.pixelRatio)==null?void 0:en[1]))||!Vr&&Wt||this.nextAudioTs===null&&Mt)&&this.resetInitSegment()}this.ISGenerated||(x=this.generateIS(e,t,i,a));const $n=this.isVideoContiguous;let br=-1,kr;if(Wt&&(br=Ta(t.samples),!$n&&this.config.forceKeyFrameOnDiscontinuity))if(Y=!0,br>0){this.warn(`Dropped ${br} out of ${xt} video samples due to a missing keyframe`);const Vr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(br),t.dropped+=br,Le+=(t.samples[0].pts-Vr)/t.inputTimeScale,kr=Le}else br===-1&&(this.warn(`No keyframe found out of ${xt} video samples`),Y=!1);if(this.ISGenerated){if(Mt&&Wt){const Vr=this.getVideoStartPts(t.samples),fr=(Wi(e.samples[0].pts,Vr)-Vr)/t.inputTimeScale;Oe+=Math.max(0,fr),Le+=Math.max(0,-fr)}if(Mt){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),x=this.generateIS(e,t,i,a)),v=this.remuxAudio(e,Oe,this.isAudioContiguous,a,mt||Wt||m===oe.AUDIO?Le:void 0),Wt){const Vr=v?v.endPTS-v.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),x=this.generateIS(e,t,i,a)),p=this.remuxVideo(t,Le,$n,Vr)}}else Wt&&(p=this.remuxVideo(t,Le,$n,0));p&&(p.firstKeyFrame=br,p.independent=br!==-1,p.firstKeyFramePTS=kr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(Z=Cr(n,i,this._initPTS,this._initDTS)),r.samples.length&&(P=Pr(r,i,this._initPTS))),{audio:v,video:p,initSegment:x,independent:Y,text:P,id3:Z}}computeInitPts(e,t,n,r){const i=Math.round(n*t);let a=Wi(e,i);if(a<i+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-a)/t} ${r}`);a<i+t;)a+=8589934592;return a-i}generateIS(e,t,n,r){const i=e.samples,a=t.samples,c=this.typeSupported,m={},p=this._initPTS;let v=!p||r,x="audio/mp4",P,Z,Y,Oe=-1;if(v&&(P=Z=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(x="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}m.audio={id:"audio",container:x,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):kt.initSegment([e]),metadata:{channelCount:e.channelCount}},v&&(Oe=e.id,Y=e.inputTimeScale,!p||Y!==p.timescale?P=Z=this.computeInitPts(i[0].pts,Y,n,"audio"):v=!1)}if(t.sps&&t.pps&&a.length){if(t.timescale=t.inputTimeScale,m.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:kt.initSegment([t]),metadata:{width:t.width,height:t.height}},v)if(Oe=t.id,Y=t.inputTimeScale,!p||Y!==p.timescale){const Le=this.getVideoStartPts(a),st=Wi(a[0].dts,Le),mt=this.computeInitPts(st,Y,n,"video"),xt=this.computeInitPts(Le,Y,n,"video");Z=Math.min(Z,mt),P=Math.min(P,xt)}else v=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(m).length)return this.ISGenerated=!0,v?(p&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${P/Y} != initPTS: ${p.baseTime/p.timescale} (${p.baseTime}/${p.timescale}) trackId: ${p.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${P/Y} (${P}/${Y}) trackId: ${Oe}`),this._initPTS={baseTime:P,timescale:Y,trackId:Oe},this._initDTS={baseTime:Z,timescale:Y,trackId:Oe}):P=Y=void 0,{tracks:m,initPTS:P,timescale:Y,trackId:Oe}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,a=e.samples,c=[],m=a.length,p=this._initPTS,v=p.baseTime*i/p.timescale;let x=this.nextVideoTs,P=8,Z=this.videoSampleDuration,Y,Oe,Le=Number.POSITIVE_INFINITY,st=Number.NEGATIVE_INFINITY,mt=!1;if(!n||x===null){const gr=v+t*i,vr=a[0].pts-Wi(a[0].dts,a[0].pts);si&&x!==null&&Math.abs(gr-vr-(x+v))<15e3?n=!0:x=gr-vr-v}const xt=x+v;for(let gr=0;gr<m;gr++){const vr=a[gr];vr.pts=Wi(vr.pts,xt),vr.dts=Wi(vr.dts,xt),vr.dts<a[gr>0?gr-1:gr].dts&&(mt=!0)}mt&&a.sort(function(gr,vr){const _i=gr.dts-vr.dts,ia=gr.pts-vr.pts;return _i||ia}),Y=a[0].dts,Oe=a[a.length-1].dts;const Mt=Oe-Y,Wt=Mt?Math.round(Mt/(m-1)):Z||e.inputTimeScale/30;if(n){const gr=Y-xt,vr=gr>Wt,_i=gr<-1;if((vr||_i)&&(vr?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Br(gr,!0)} ms (${gr}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Br(-gr,!0)} ms (${gr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!_i||xt>=a[0].pts||si)){Y=xt;const ia=a[0].pts-gr;if(vr)a[0].dts=Y,a[0].pts=ia;else{let Ti=!0;for(let ji=0;ji<a.length&&!(a[ji].dts>ia&&Ti);ji++){const is=a[ji].pts;if(a[ji].dts-=gr,a[ji].pts-=gr,ji<a.length-1){const es=a[ji+1].pts,Fs=a[ji].pts,io=es<=Fs,Po=es<=is;Ti=io==Po}}}this.log(`Video: Initial PTS/DTS adjusted: ${Br(ia,!0)}/${Br(Y,!0)}, delta: ${Br(gr,!0)} ms`)}}Y=Math.max(0,Y);let Rn=0,Yt=0,hn=Y;for(let gr=0;gr<m;gr++){const vr=a[gr],_i=vr.units,ia=_i.length;let Ti=0;for(let ji=0;ji<ia;ji++)Ti+=_i[ji].data.length;Yt+=Ti,Rn+=ia,vr.length=Ti,vr.dts<hn?(vr.dts=hn,hn+=Wt/4|0||1):hn=vr.dts,Le=Math.min(vr.pts,Le),st=Math.max(vr.pts,st)}Oe=a[m-1].dts;const fn=Yt+4*Rn+8;let en;try{en=new Uint8Array(fn)}catch(gr){this.observer.emit(g.ERROR,g.ERROR,{type:fe.MUX_ERROR,details:K.REMUX_ALLOC_ERROR,fatal:!1,error:gr,bytes:fn,reason:`fail allocating video mdat ${fn}`});return}const $n=new DataView(en.buffer);$n.setUint32(0,fn),en.set(kt.types.mdat,4);let br=!1,kr=Number.POSITIVE_INFINITY,Vr=Number.POSITIVE_INFINITY,Nr=Number.NEGATIVE_INFINITY,fr=Number.NEGATIVE_INFINITY;for(let gr=0;gr<m;gr++){const vr=a[gr],_i=vr.units;let ia=0;for(let is=0,es=_i.length;is<es;is++){const Fs=_i[is],io=Fs.data,Po=Fs.data.byteLength;$n.setUint32(P,Po),P+=4,en.set(io,P),P+=Po,ia+=4+Po}let Ti;if(gr<m-1)Z=a[gr+1].dts-vr.dts,Ti=a[gr+1].pts-vr.pts;else{const is=this.config,es=gr>0?vr.dts-a[gr-1].dts:Wt;if(Ti=gr>0?vr.pts-a[gr-1].pts:Wt,is.stretchShortVideoTrack&&this.nextAudioTs!==null){const Fs=Math.floor(is.maxBufferHole*i),io=(r?Le+r*i:this.nextAudioTs+v)-vr.pts;io>Fs?(Z=io-es,Z<0?Z=es:br=!0,this.log(`It is approximately ${io/90} ms to the next segment; using duration ${Z/90} ms for the last video frame.`)):Z=es}else Z=es}const ji=Math.round(vr.pts-vr.dts);kr=Math.min(kr,Z),Nr=Math.max(Nr,Z),Vr=Math.min(Vr,Ti),fr=Math.max(fr,Ti),c.push(zi(vr.key,Z,ia,ji))}if(c.length){if(si){if(si<70){const gr=c[0].flags;gr.dependsOn=2,gr.isNonSync=0}}else if(hi&&fr-Vr<Nr-kr&&Wt/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=Y;for(let vr=0,_i=c.length;vr<_i;vr++){const ia=gr+c[vr].duration,Ti=gr+c[vr].cts;if(vr<_i-1){const ji=ia+c[vr+1].cts;c[vr].duration=ji-Ti}else c[vr].duration=vr?c[vr-1].duration:Wt;c[vr].cts=0,gr=ia}}}Z=br||!Z?Wt:Z;const Ur=Oe+Z;this.nextVideoTs=x=Ur-v,this.videoSampleDuration=Z,this.isVideoContiguous=!0;const oi={data1:kt.moof(e.sequenceNumber++,Y,S(e,{samples:c})),data2:en,startPTS:(Le-v)/i,endPTS:(st+Z-v)/i,startDTS:(Y-v)/i,endDTS:x/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 mr;case"ac3":return _r;default:return Zr}}remuxAudio(e,t,n,r,i){const a=e.inputTimeScale,c=e.samplerate?e.samplerate:a,m=a/c,p=this.getSamplesPerFrame(e),v=p*m,x=this._initPTS,P=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Z=[],Y=i!==void 0;let Oe=e.samples,Le=P?0:8,st=this.nextAudioTs||-1;const mt=x.baseTime*a/x.timescale,xt=mt+t*a;if(this.isAudioContiguous=n=n||Oe.length&&st>0&&(r&&Math.abs(xt-(st+mt))<9e3||Math.abs(Wi(Oe[0].pts,xt)-(st+mt))<20*v),Oe.forEach(function(fr){fr.pts=Wi(fr.pts,xt)}),!n||st<0){const fr=Oe.length;if(Oe=Oe.filter(Ur=>Ur.pts>=0),fr!==Oe.length&&this.warn(`Removed ${Oe.length-fr} of ${fr} samples (initPTS ${mt} / ${a})`),!Oe.length)return;i===0?st=0:r&&!Y?st=Math.max(0,xt-mt):st=Oe[0].pts-mt}if(e.segmentCodec==="aac"){const fr=this.config.maxAudioFramesDrift;for(let Ur=0,wr=st+mt;Ur<Oe.length;Ur++){const Hr=Oe[Ur],oi=Hr.pts,gr=oi-wr,vr=Math.abs(1e3*gr/a);if(gr<=-fr*v&&Y)Ur===0&&(this.warn(`Audio frame @ ${(oi/a).toFixed(3)}s overlaps marker by ${Math.round(1e3*gr/a)} ms.`),this.nextAudioTs=st=oi-mt,wr=oi);else if(gr>=fr*v&&vr<Ar&&Y){let _i=Math.round(gr/v);for(wr=oi-_i*v;wr<0&&_i&&v;)_i--,wr+=v;Ur===0&&(this.nextAudioTs=st=wr-mt),this.warn(`Injecting ${_i} audio frames @ ${((wr-mt)/a).toFixed(3)}s due to ${Math.round(1e3*gr/a)} ms gap.`);for(let ia=0;ia<_i;ia++){let Ti=gi.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Ti||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Ti=Hr.unit.subarray()),Oe.splice(Ur,0,{unit:Ti,pts:wr}),wr+=v,Ur++}}Hr.pts=wr,wr+=v}}let Mt=null,Wt=null,Rn,Yt=0,hn=Oe.length;for(;hn--;)Yt+=Oe[hn].unit.byteLength;for(let fr=0,Ur=Oe.length;fr<Ur;fr++){const wr=Oe[fr],Hr=wr.unit;let oi=wr.pts;if(Wt!==null){const vr=Z[fr-1];vr.duration=Math.round((oi-Wt)/m)}else if(n&&e.segmentCodec==="aac"&&(oi=st+mt),Mt=oi,Yt>0){Yt+=Le;try{Rn=new Uint8Array(Yt)}catch(vr){this.observer.emit(g.ERROR,g.ERROR,{type:fe.MUX_ERROR,details:K.REMUX_ALLOC_ERROR,fatal:!1,error:vr,bytes:Yt,reason:`fail allocating audio mdat ${Yt}`});return}P||(new DataView(Rn.buffer).setUint32(0,Yt),Rn.set(kt.types.mdat,4))}else return;Rn.set(Hr,Le);const gr=Hr.byteLength;Le+=gr,Z.push(zi(!0,p,gr,0)),Wt=oi}const fn=Z.length;if(!fn)return;const en=Z[Z.length-1];st=Wt-mt,this.nextAudioTs=st+m*en.duration;const $n=P?new Uint8Array(0):kt.moof(e.sequenceNumber++,Mt/m,S({},e,{samples:Z}));e.samples=[];const br=(Mt-mt)/a,kr=this.nextAudioTs/a,Nr={data1:$n,data2:Rn,startPTS:br,endPTS:kr,startDTS:br,endDTS:kr,type:"audio",hasAudio:!0,hasVideo:!1,nb:fn};return this.isAudioContiguous=!0,Nr}}function Wi(s,e){let t;if(e===null)return s;for(e<s?t=-8589934592:t=8589934592;Math.abs(s-e)>4294967296;)s+=t;return s}function Ta(s){for(let e=0;e<s.length;e++)if(s[e].key)return e;return-1}function Cr(s,e,t,n){const r=s.samples.length;if(!r)return;const i=s.inputTimeScale;for(let c=0;c<r;c++){const m=s.samples[c];m.pts=Wi(m.pts-t.baseTime*i/t.timescale,e*i)/i,m.dts=Wi(m.dts-n.baseTime*i/n.timescale,e*i)/i}const a=s.samples;return s.samples=[],{samples:a}}function Pr(s,e,t){const n=s.samples.length;if(!n)return;const r=s.inputTimeScale;for(let a=0;a<n;a++){const c=s.samples[a];c.pts=Wi(c.pts-t.baseTime*r/t.timescale,e*r)/r}s.samples.sort((a,c)=>a.pts-c.pts);const i=s.samples;return s.samples=[],{samples:i}}class xi extends V{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:a}=this.initData=Pe(e);if(t)Re(e,t);else{const m=i||a;m!=null&&m.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${m.codec}")!`)}i&&(n=Ma(i,se.AUDIO,this)),a&&(r=Ma(a,se.VIDEO,this));const c={};i&&a?c.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:a.supplemental,encrypted:a.encrypted,initSegment:e,id:"main"}:i?c.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:a?c.video={container:"video/mp4",codec:r,supplemental:a.supplemental,encrypted:a.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=c}remux(e,t,n,r,i,a){var c,m;let{initPTS:p,lastEndTime:v}=this;const x={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};o(v)||(v=this.lastEndTime=i||0);const P=t.samples;if(!P.length)return x;const Z={initPTS:void 0,timescale:void 0,trackId:void 0};let Y=this.initData;if((c=Y)!=null&&c.length||(this.generateInitSegment(P),Y=this.initData),!((m=Y)!=null&&m.length))return this.warn("Failed to generate initSegment."),x;this.emitInitSegment&&(Z.tracks=this.initTracks,this.emitInitSegment=!1);const Oe=tt(P,Y,this),Le=Y.audio?Oe[Y.audio.id]:null,st=Y.video?Oe[Y.video.id]:null,mt=$i(st,1/0),xt=$i(Le,1/0),Mt=$i(st,0,!0),Wt=$i(Le,0,!0);let Rn=i,Yt=0;const hn=Le&&(!st||!p&&xt<mt||p&&p.trackId===Y.audio.id),fn=hn?Le:st;if(fn){const wr=fn.timescale,Hr=fn.start-i*wr,oi=hn?Y.audio.id:Y.video.id;Rn=fn.start/wr,Yt=hn?Wt-xt:Mt-mt,(a||!p)&&(Ei(p,Rn,i,Yt)||wr!==p.timescale)&&(p&&this.warn(`Timestamps at playlist time: ${a?"":"~"}${i} ${Hr/wr} != initPTS: ${p.baseTime/p.timescale} (${p.baseTime}/${p.timescale}) trackId: ${p.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${Rn-i} (${Hr}/${wr}) trackId: ${oi}`),p=null,Z.initPTS=Hr,Z.timescale=wr,Z.trackId=oi)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);p?(Z.initPTS=p.baseTime,Z.timescale=p.timescale,Z.trackId=p.trackId):((!Z.timescale||Z.trackId===void 0||Z.initPTS===void 0)&&(this.warn("Could not set initPTS"),Z.initPTS=Rn,Z.timescale=1,Z.trackId=-1),this.initPTS=p={baseTime:Z.initPTS,timescale:Z.timescale,trackId:Z.trackId});const en=Rn-p.baseTime/p.timescale,$n=en+Yt;Yt>0?this.lastEndTime=$n:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const br=!!Y.audio,kr=!!Y.video;let Vr="";br&&(Vr+="audio"),kr&&(Vr+="video");const Nr=(Y.audio?Y.audio.encrypted:!1)||(Y.video?Y.video.encrypted:!1),fr={data1:P,startPTS:en,startDTS:en,endPTS:$n,endDTS:$n,type:Vr,hasAudio:br,hasVideo:kr,nb:1,dropped:0,encrypted:Nr};x.audio=br&&!kr?fr:void 0,x.video=kr?fr:void 0;const Ur=st==null?void 0:st.sampleCount;if(Ur){const wr=st.keyFrameIndex,Hr=wr!==-1;fr.nb=Ur,fr.dropped=wr===0||this.isVideoContiguous?0:Hr?wr:Ur,fr.independent=Hr,fr.firstKeyFrame=wr,Hr&&st.keyFrameStart&&(fr.firstKeyFramePTS=(st.keyFrameStart-p.baseTime)/p.timescale),this.isVideoContiguous||(x.independent=Hr),this.isVideoContiguous||(this.isVideoContiguous=Hr),fr.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${wr}/${Ur} dropped: ${fr.dropped} start: ${fr.firstKeyFramePTS||"NA"}`)}return x.initSegment=Z,x.id3=Cr(n,i,p,p),r.samples.length&&(x.text=Pr(r,i,p)),x}}function $i(s,e,t=!1){return(s==null?void 0:s.start)!==void 0?(s.start+(t?s.duration:0))/s.timescale:e}function Ei(s,e,t,n){if(s===null)return!0;const r=Math.max(n,1),i=e-s.baseTime/s.timescale;return Math.abs(i-t)>r}function Ma(s,e,t){const n=s.codec;return n&&n.length>4?n:e===se.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?Ee(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 Ji;try{Ji=self.performance.now.bind(self.performance)}catch(s){Ji=Date.now}const ns=[{demux:Ct,remux:xi},{demux:Cn,remux:Ni},{demux:y,remux:Ni},{demux:Ne,remux:Ni}];ns.splice(2,0,{demux:H,remux:Ni});class ra{constructor(e,t,n,r,i,a){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=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=Ji();let a=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:m}=this;r&&(this.currentTransmuxState=r);const{contiguous:p,discontinuity:v,trackSwitch:x,accurateTimeOffset:P,timeOffset:Z,initSegmentChange:Y}=r||c,{audioCodec:Oe,videoCodec:Le,defaultInitPts:st,duration:mt,initSegmentData:xt}=m,Mt=Ui(a,t);if(Mt&&Sr(Mt.method)){const hn=this.getDecrypter(),fn=Fr(Mt.method);if(hn.isSync()){let en=hn.softwareDecrypt(a,Mt.key.buffer,Mt.iv.buffer,fn);if(n.part>-1){const br=hn.flush();en=br&&br.buffer}if(!en)return i.executeEnd=Ji(),qi(n);a=new Uint8Array(en)}else return this.asyncResult=!0,this.decryptionPromise=hn.webCryptoDecrypt(a,Mt.key.buffer,Mt.iv.buffer,fn).then(en=>{const $n=this.push(en,null,n);return this.decryptionPromise=null,$n}),this.decryptionPromise}const Wt=this.needsProbing(v,x);if(Wt){const hn=this.configureTransmuxer(a);if(hn)return this.logger.warn(`[transmuxer] ${hn.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,error:hn,reason:hn.message}),i.executeEnd=Ji(),qi(n)}(v||x||Y||Wt)&&this.resetInitSegment(xt,Oe,Le,mt,t),(v||Y||Wt)&&this.resetInitialTimestamp(st),p||this.resetContiguity();const Rn=this.transmux(a,Mt,Z,P,n);this.asyncResult=Vi(Rn);const Yt=this.currentTransmuxState;return Yt.contiguous=!0,Yt.discontinuity=!1,Yt.trackSwitch=!1,i.executeEnd=Ji(),Rn}flush(e){const t=e.transmuxing;t.executeStart=Ji();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const a=[],{timeOffset:c}=r;if(n){const x=n.flush();x&&a.push(this.push(x.buffer,null,e))}const{demuxer:m,remuxer:p}=this;if(!m||!p){t.executeEnd=Ji();const x=[qi(e)];return this.asyncResult?Promise.resolve(x):x}const v=m.flush(c);return Vi(v)?(this.asyncResult=!0,v.then(x=>(this.flushRemux(a,x,e),a))):(this.flushRemux(a,v,e),this.asyncResult?Promise.resolve(a):a)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:a,textTrack:c}=t,{accurateTimeOffset:m,timeOffset:p}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===oe.MAIN?"level":"track"} ${n.level}`);const v=this.remuxer.remux(r,i,a,c,p,m,!0,this.id);e.push({remuxResult:v,chunkMeta:n}),n.transmuxing.executeEnd=Ji()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:a,remuxer:c}=this;!a||!c||(a.resetInitSegment(e,t,n,r),c.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let a;return t&&t.method==="SAMPLE-AES"?a=this.transmuxSampleAes(e,t,n,r,i):a=this.transmuxUnencrypted(e,n,r,i),a}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:a,id3Track:c,textTrack:m}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,a,c,m,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(a=>({remuxResult:this.remuxer.remux(a.audioTrack,a.videoTrack,a.id3Track,a.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let x=0,P=ns.length;x<P;x++){var a;if((a=ns[x].demux)!=null&&a.probe(e,this.logger)){i=ns[x];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const c=this.demuxer,m=this.remuxer,p=i.remux,v=i.demux;(!m||!(m instanceof p))&&(this.remuxer=new p(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 Jr(this.config)),e}}function Ui(s,e){let t=null;return s.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const qi=s=>({remuxResult:{},chunkMeta:s});function Vi(s){return"then"in s&&s.then instanceof Function}class Ra{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 ya{constructor(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}}let Di=0;class fa{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=m=>{const p=m.data,v=this.hls;if(!(!v||!(p!=null&&p.event)||p.instanceNo!==this.instanceNo))switch(p.event){case"init":{var x;const P=(x=this.workerContext)==null?void 0:x.objectURL;P&&self.URL.revokeObjectURL(P);break}case"transmuxComplete":{this.handleTransmuxComplete(p.data);break}case"flush":{this.onFlush(p.data);break}case"workerLog":{v.logger[p.data.logType]&&v.logger[p.data.logType](p.data.message);break}default:{p.data=p.data||{},p.data.frag=this.frag,p.data.part=this.part,p.data.id=this.id,v.trigger(p.event,p.data);break}}},this.onWorkerError=m=>{if(!this.hls)return;const p=new Error(`${m.message} (${m.filename}:${m.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:p})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const a=(m,p)=>{p=p||{},p.frag=this.frag||void 0,m===g.ERROR&&(p=p,p.parent=this.id,p.part=this.part,this.error=p.error),this.hls.trigger(m,p)};this.observer=new So,this.observer.on(g.FRAG_DECRYPTED,a),this.observer.on(g.ERROR,a);const c=En(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const m=this.hls.logger;if(i.workerPath||Mo()){try{i.workerPath?(m.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Bo(i.workerPath)):(m.log(`injecting Web Worker for "${t}"`),this.workerContext=Al());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:Ft(i)})}catch(v){m.warn(`Error setting up "${t}" Web Worker, fallback to inline`,v),this.terminateWorker(),this.error=null,this.transmuxer=new ra(this.observer,c,i,"",t,e.logger)}return}}this.transmuxer=new ra(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:Ft(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),Cl(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,a,c,m,p,v){var x,P;p.transmuxing.start=self.performance.now();const{instanceNo:Z,transmuxer:Y}=this,Oe=a?a.start:i.start,Le=i.decryptdata,st=this.frag,mt=!(st&&i.cc===st.cc),xt=!(st&&p.level===st.level),Mt=st?p.sn-st.sn:-1,Wt=this.part?p.part-this.part.index:-1,Rn=Mt===0&&p.id>1&&p.id===(st==null?void 0:st.stats.chunkCount),Yt=!xt&&(Mt===1||Mt===0&&(Wt===1||Rn&&Wt<=0)),hn=self.performance.now();(xt||Mt||i.stats.parsing.start===0)&&(i.stats.parsing.start=hn),a&&(Wt||!Yt)&&(a.stats.parsing.start=hn);const fn=!(st&&((x=i.initSegment)==null?void 0:x.url)===((P=st.initSegment)==null?void 0:P.url)),en=new ya(mt,Yt,m,xt,Oe,fn);if(!Yt||mt||fn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${p.sn}${p.part>-1?" part: "+p.part:""} ${this.id===oe.MAIN?"level":"track"}: ${p.level} id: ${p.id}
|
|
|
discontinuity: ${mt}
|
|
|
trackSwitch: ${xt}
|
|
|
contiguous: ${Yt}
|
|
|
accurateTimeOffset: ${m}
|
|
|
timeOffset: ${Oe}
|
|
|
initSegmentChange: ${fn}`);const $n=new Ra(n,r,t,c,v);this.configureTransmuxer($n)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:Z,cmd:"demux",data:e,decryptdata:Le,chunkMeta:p,state:en},e instanceof ArrayBuffer?[e]:[]);else if(Y){const $n=Y.push(e,Le,p,en);Vi($n)?$n.then(br=>{this.handleTransmuxComplete(br)}).catch(br=>{this.transmuxerError(br,p,"transmuxer-interface push error")}):this.handleTransmuxComplete($n)}}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);Vi(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:fe.MEDIA_ERROR,details:K.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 Zi=100;class za extends oo{constructor(e,t,n){super(e,t,n,"audio-stream-controller",oe.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:a}){if(n===oe.MAIN){const c=t.cc,m=this.fragCurrent;if(this.initPTS[c]={baseTime:r,timescale:i,trackId:a},this.log(`InitPTS for cc: ${c} found from main: ${r/i} (${r}/${i}) trackId: ${a}`),this.mainAnchor=t,this.state===Pn.WAITING_INIT_PTS){const p=this.waitingData;(!p&&!this.loadingParts||p&&p.frag.cc!==c)&&this.syncWithAnchor(t,p==null?void 0:p.frag)}else!this.hls.hasEnoughToStart&&m&&m.cc!==c?(m.abortRequests(),this.syncWithAnchor(t,m)):this.state===Pn.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,a=this.getLevelDetails(),c=this.getLoadPosition(),m=ir(a,i,c);m&&(this.log(`Syncing with main frag at ${m.start} cc ${m.cc}`),this.startFragRequested=!1,this.nextLoadPosition=m.start,this.resetLoadingState(),this.state===Pn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Pn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Zi),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=Pn.IDLE):this.state=Pn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Pn.IDLE:this.doTickIdle();break;case Pn.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=Pn.WAITING_INIT_PTS}break}case Pn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Pn.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,a=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=Pn.FRAG_LOADING;const c=r.flush().buffer,m={frag:t,part:n,payload:c,networkDetails:null};this._handleFragmentLoadProgress(m),i&&super._handleFragmentLoadComplete(m)}else a&&a.cc!==e.frag.cc&&this.syncWithAnchor(a,e.frag)}else this.state=Pn.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,a=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||!(n!=null&&n[i]))return;const c=n[i],m=c.details;if(!m||this.waitForLive(c)||this.waitForCdnTuneIn(m)){this.state=Pn.WAITING_TRACK,this.startFragRequested=!1;return}const p=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&p&&(this.bufferFlushed=!1,this.afterBufferFlushed(p,se.AUDIO,oe.AUDIO));const v=this.getFwdBufferInfo(p,oe.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,m)){t.trigger(g.BUFFER_EOS,{type:"audio"}),this.state=Pn.ENDED;return}const x=v.len,P=t.maxBufferLength,Z=m.fragments,Y=Z[0].start,Oe=this.getLoadPosition(),Le=this.flushing?Oe:v.end;if(this.switchingTrack&&r){const xt=Oe;m.PTSKnown&&xt<Y&&(v.end>Y||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=Y+.05)}if(x>=P&&!this.switchingTrack&&Le<Z[Z.length-1].start)return;let st=this.getNextFragment(Le,m);if(st&&this.isLoopLoading(st,Le)&&(st=this.getNextFragmentLoopLoading(st,m,v,oe.MAIN,P)),!st){this.bufferFlushed=!0;return}let mt=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&mt&&Ve(st)&&!st.endList&&(!m.live||!this.loadingParts&&Le<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(mt)===Un.OK&&(this.mainFragLoading=mt=null),mt&&Ve(mt))){if(st.start>mt.end){const Mt=this.fragmentTracker.getFragAtPos(Le,oe.MAIN);Mt&&Mt.end>mt.end&&(mt=Mt,this.mainFragLoading={frag:Mt,targetBufferTime:null})}if(st.start>mt.end)return}this.loadFragment(st,c,Le)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Zt(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!==Pn.STOPPED&&(this.setInterval(Zi),this.state=Pn.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:a,groupId:c,track:m}=t;if(!r){this.warn(`Audio tracks reset while loading track ${a} "${m.name}" of "${c}"`);return}const p=this.mainDetails;if(!p||i.endCC>p.endCC||p.expired){this.cachedTrackLoadedData=t,this.state!==Pn.STOPPED&&(this.state=Pn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${a} "${m.name}" of "${c}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const v=r[a];let x=0;if(i.live||(n=v.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(v.details){var P;x=this.alignPlaylists(i,v.details,(P=this.levelLastLoaded)==null?void 0:P.details)}i.alignedSliding||(Ns(i,p),i.alignedSliding||so(i,p),x=i.fragmentStart)}v.details=i,this.levelLastLoaded=v,this.startFragRequested||this.setStartPosition(p,x),this.hls.trigger(g.AUDIO_TRACK_UPDATED,{details:i,id:a,groupId:t.groupId}),this.state===Pn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Pn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:a,trackId:c,levels:m}=this;if(!m){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 p=m[c];if(!p){this.warn("Audio track is undefined on fragment load progress");return}const v=p.details;if(!v){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const x=a.defaultAudioCodec||p.audioCodec||"mp4a.40.2";let P=this.transmuxer;P||(P=this.transmuxer=new fa(this.hls,oe.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Z=this.initPTS[n.cc],Y=(t=n.initSegment)==null?void 0:t.data;if(Z!==void 0){const Le=r?r.index:-1,st=Le!==-1,mt=new Pi(n.level,n.sn,n.stats.chunkCount,i.byteLength,Le,st);P.push(i,Y,x,"",n,r,v.totalduration,!1,mt,Z)}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:Oe}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Us,complete:!1};Oe.push(new Uint8Array(i)),this.state!==Pn.STOPPED&&(this.state=Pn.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===oe.MAIN&&Ve(t.frag)&&(this.mainFragLoading=t,this.state===Pn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==oe.AUDIO){!this.audioOnly&&n.type===oe.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(Ve(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,T({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=Pn.ERROR;return}switch(t.details){case K.FRAG_GAP:case K.FRAG_PARSING_ERROR:case K.FRAG_DECRYPT_ERROR:case K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.AUDIO,t);break;case K.AUDIO_TRACK_LOAD_ERROR:case K.AUDIO_TRACK_LOAD_TIMEOUT:case K.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Pn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===re.AUDIO_TRACK&&(this.state=Pn.IDLE);break;case K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case K.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case K.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==se.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==se.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Pn.ENDED&&(this.state=Pn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,oe.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,c=this.getCurrentContext(a);if(!c){this.resetWhenMissingContext(a);return}const{frag:m,part:p,level:v}=c,{details:x}=v,{audio:P,text:Z,id3:Y,initSegment:Oe}=i;if(this.fragContextChanged(m)||!x){this.fragmentTracker.removeFragment(m);return}if(this.state=Pn.PARSING,this.switchingTrack&&P&&this.completeAudioSwitch(this.switchingTrack),Oe!=null&&Oe.tracks){const Le=m.initSegment||m;if(this.unhandledEncryptionError(Oe,m))return;this._bufferInitSegment(v,Oe.tracks,Le,a),r.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:Le,id:n,tracks:Oe.tracks})}if(P){const{startPTS:Le,endPTS:st,startDTS:mt,endDTS:xt}=P;p&&(p.elementaryStreams[se.AUDIO]={startPTS:Le,endPTS:st,startDTS:mt,endDTS:xt}),m.setElementaryStreamInfo(se.AUDIO,Le,st,mt,xt),this.bufferFragmentData(P,m,p,a)}if(Y!=null&&(t=Y.samples)!=null&&t.length){const Le=S({id:n,frag:m,details:x},Y);r.trigger(g.FRAG_PARSING_METADATA,Le)}if(Z){const Le=S({id:n,frag:m,details:x},Z);r.trigger(g.FRAG_PARSING_USERDATA,Le)}}_bufferInitSegment(e,t,n,r){if(this.state!==Pn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=oe.AUDIO;const a=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${a}/${i.codec}]`),a&&a.split(",").length===1&&(i.levelCodec=a),this.hls.trigger(g.BUFFER_CODECS,t);const c=i.initSegment;if(c!=null&&c.byteLength){const m={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:c};this.hls.trigger(g.BUFFER_APPENDING,m)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===Un.NOT_LOADED||r===Un.PARTIAL){var i;if(!Ve(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=Pn.WAITING_INIT_PTS;const a=this.mainDetails;a&&a.fragmentStart!==t.details.fragmentStart&&so(t.details,a)}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:a,channels:c}=this.bufferedTrack;In({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:c},e,jn)||(Qn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(g.AUDIO_TRACK_SWITCHED,T({},e))}}class ha extends V{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 a=0;a<r.length;a++){const c=r[a];let m;try{m=new self.URL(c.URI,t.url).href}catch(p){this.warn(`Could not construct new URL for Rendition Report: ${p}`),m=c.URI||""}if(m===e){i=a;break}else m===e.substring(0,m.length)&&(i=a)}if(i!==-1){const a=r[i],c=parseInt(a["LAST-MSN"])||t.lastPartSn;let m=parseInt(a["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const v=Math.min(t.age-t.partTarget,t.targetduration);m>=0&&v>t.partTarget&&(m+=1)}const p=n&&pn(n);return new Sn(c,m>=0?m:void 0,p)}}}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,a=self.performance.now(),c=i.loading.first?Math.max(0,a-i.loading.first):0;r.advancedDateTime=Date.now()-c;const m=this.hls.config.timelineOffset;if(m!==r.appliedTimelineOffset){const v=Math.max(m||0,0);r.appliedTimelineOffset=v,r.fragments.forEach(x=>{x.setStart(x.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){Xa(n,r,this);const mt=r.playlistParsingError;if(mt){this.warn(mt);const xt=this.hls;if(!xt.config.ignorePlaylistParsingErrors){var p;const{networkDetails:Mt}=t;xt.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:K.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:mt,reason:mt.message,level:t.level||void 0,parent:(p=r.fragments[0])==null?void 0:p.type,networkDetails:Mt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const x=this.hls.mainForwardBufferInfo,P=x?x.end-x.len:0,Z=(r.edge-P)*1e3,Y=Ci(r,Z);if(r.requestScheduled+Y<a?r.requestScheduled=a:r.requestScheduled+=Y,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let Oe,Le,st;if(r.canBlockReload&&r.endSN&&r.advanced){const mt=this.hls.config.lowLatencyMode,xt=r.lastPartSn,Mt=r.endSN,Wt=r.lastPartIndex,Rn=Wt!==-1,Yt=xt===Mt;Rn?Yt?(Le=Mt+1,st=mt?0:Wt):(Le=xt,st=mt?Wt+1:r.maxPartIndex):Le=Mt+1;const hn=r.age,fn=hn+r.ageHeader;let en=Math.min(fn-r.partTarget,r.targetduration*1.5);if(en>0){if(fn>r.targetduration*3)this.log(`Playlist last advanced ${hn.toFixed(2)}s ago. Omitting segment and part directives.`),Le=void 0,st=void 0;else if(n!=null&&n.tuneInGoal&&fn-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 $n=Math.floor(en/r.targetduration);if(Le+=$n,st!==void 0){const br=Math.round(en%r.targetduration/r.partTarget);st+=br}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${hn.toFixed(2)}s goal: ${en} skip sn ${$n} to part ${st}`)}r.tuneInGoal=en}if(Oe=this.getDeliveryDirectives(r,t.deliveryDirectives,Le,st),mt||!Yt){r.requestScheduled=a,this.loadingPlaylist(v,Oe);return}}else(r.canBlockReload||r.canSkipUntil)&&(Oe=this.getDeliveryDirectives(r,t.deliveryDirectives,Le,st));Oe&&Le!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(Y-c*2,Y/2)),this.scheduleLoading(v,Oe,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(),a=r.requestScheduled;if(i>=a){this.loadingPlaylist(e,t);return}const c=a-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=Xt.No),new Sn(n,r,i)}checkRetry(e){const t=e.details,n=Zn(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:c}=r||{},m=!!r&&!!c&&(i===Hn.RetryRequest||!r.resolved&&i===Hn.SendAlternateToPenaltyBox);if(m){var p;if(a>=c.maxNumRetry)return!1;if(n&&(p=e.context)!=null&&p.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const v=hr(c,a);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),v),this.warn(`Retrying playlist loading ${a+1}/${c.maxNumRetry} after "${t}" in ${v}ms`)}e.levelRetry=!0,r.resolved=!0}return m}}function Za(s,e){if(s.length!==e.length)return!1;for(let t=0;t<s.length;t++)if(!ms(s[t].attrs,e[t].attrs))return!1;return!0}function ms(s,e,t){const n=s["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>s[r]!==e[r])}function fo(s,e){return e.label.toLowerCase()===s.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(s.lang||"").toLowerCase())}class ca extends ha{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,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${a==null?void 0:a.groupId}`);return}const c=a.details;a.details=t.details,this.log(`Audio track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(c=>(r==null?void 0:r.indexOf(c))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(P=>!n||n.indexOf(P.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(P=>P.default)&&(this.selectDefaultTrack=!1),c.forEach((P,Z)=>{P.id=Z});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const m=this.hls.config.audioPreference;if(!i&&m){const P=on(m,c,jn);if(P>-1)i=c[P];else{const Z=on(m,this.tracks);i=this.tracks[Z]}}let p=this.findTrackId(i);p===-1&&i&&(p=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 x=this.trackId;if(p!==-1&&x===-1)this.setAudioTrack(p);else if(c.length&&x===-1){var a;const P=new Error(`No audio track selected for current audio group-ID(s): ${(a=this.groupIds)==null?void 0:a.join(",")} track count: ${c.length}`);this.warn(P.message),this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:P})}}}onError(e,t){t.fatal||!t.context||t.context.type===re.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&&In(e,r,jn))return r;const i=on(e,this.tracksInGroup,jn);if(i>-1){const a=this.tracksInGroup[i];return this.setAudioTrack(i),a}else if(r){let a=t.loadLevel;a===-1&&(a=t.firstAutoLevel);const c=Kn(e,t.levels,n,a,jn);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const a=on(e,n);if(a>-1)return n[a]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.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,T({},r)),i))return;const a=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(a)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||In(e,r,jn)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:c,channels:m}=e;for(let p=0;p<t.length;p++){const v=t[p];if(In({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:c,channels:m},v,jn))return p}for(let p=0;p<t.length;p++){const v=t[p];if(ms(e.attrs,v.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return p}for(let p=0;p<t.length;p++){const v=t[p];if(ms(e.attrs,v.attrs,["LANGUAGE"]))return p}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Qn(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),a=e.details,c=a==null?void 0:a.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&&a.live?" age "+c.toFixed(1)+(a.type?" "+a.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 a=(n=this.tracks[e])==null?void 0:n.buffer;a!=null&&a.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 Ga=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,cs="HlsJsTrackRemovedError";class ds extends Error{constructor(e){super(e),this.name=cs}}class Ja extends V{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=Fe(Ie(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 a=this.isQueued();(i||a)&&this.warn(`Transfering MediaSource with${a?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?S(n,r.tracks):this.sourceBuffers.forEach(i=>{const[a]=i;a&&(n[a]=S({},this.tracks[a]),this.removeBuffer(a)),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=Ie(this.appendSource);if(r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const a=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(a),i)this._objectUrl=n.src,this.attachTransferred();else{const c=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{n.removeAttribute("src");const m=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||m&&a instanceof m,Ya(n),gs(n,c),n.load()}catch(m){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,a=i?i.length:0,c=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&i&&a){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
|
required tracks: ${Ft(n,(m,p)=>m==="initSegment"?void 0:p)};
|
|
|
transfer tracks: ${Ft(r,(m,p)=>m==="initSegment"?void 0:p)}}`),!_e(r,n)){t.mediaSource=null,t.tracks=void 0;const m=e.currentTime,p=this.details,v=Math.max(m,(p==null?void 0:p.fragments[0].start)||0);if(v-m>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${m} -> ${v}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${v} currentTime: ${m}`),this.onMediaDetaching(g.MEDIA_DETACHING,{}),this.onMediaAttaching(g.MEDIA_ATTACHING,t),e.currentTime=v;return}this.transferData=void 0,i.forEach(m=>{const p=m,v=r[p];if(v){const x=v.buffer;if(x){const P=this.fragmentTracker,Z=v.id;if(P.hasFragments(Z)||P.hasParts(Z)){const Le=Gn.getBuffered(x);P.detectEvictedFragments(p,Le,Z,null,!0)}const Y=Is(p),Oe=[p,x];this.sourceBuffers[Y]=Oe,x.updating&&this.operationQueue&&this.operationQueue.prependBlocker(p),this.trackSourceBuffer(p,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:a}=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 m=i.sourceBuffers;for(let p=m.length;p--;)c&&m[p].abort(),i.removeSourceBuffer(m[p]);c&&i.endOfStream()}catch(m){this.warn(`onMediaDetaching: ${m.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||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(r.removeAttribute("src"),this.appendSource&&Ya(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[Is(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 a="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),c=!a&&this.sourceBufferCount&&this.media&&i.some(m=>!r[m]);if(a||c){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${i}" SourceBuffers`);return}i.forEach(m=>{var p,v;const x=t[m],{id:P,codec:Z,levelCodec:Y,container:Oe,metadata:Le,supplemental:st}=x;let mt=r[m];const xt=(p=this.transferData)==null||(p=p.tracks)==null?void 0:p[m],Mt=xt!=null&&xt.buffer?xt:mt,Wt=(Mt==null?void 0:Mt.pendingCodec)||(Mt==null?void 0:Mt.codec),Rn=Mt==null?void 0:Mt.levelCodec;mt||(mt=r[m]={buffer:void 0,listeners:[],codec:Z,supplemental:st,container:Oe,levelCodec:Y,metadata:Le,id:P});const Yt=Kt(Wt,Rn),hn=Yt==null?void 0:Yt.replace(Ga,"$1");let fn=Kt(Z,Y);const en=(v=fn)==null?void 0:v.replace(Ga,"$1");fn&&Yt&&hn!==en&&(m.slice(0,5)==="audio"&&(fn=Ee(fn,this.appendSource)),this.log(`switching codec ${Wt} to ${fn}`),fn!==(mt.pendingCodec||mt.codec)&&(mt.pendingCodec=fn),mt.container=Oe,this.appendChangeType(m,Oe,fn))}),(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 a=this.tracks[e];if(a){const c=a.buffer;c!=null&&c.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),c.changeType(r),a.codec=n,a.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:a=>{this.warn(`Failed to change ${e} SourceBuffer type`,a)}};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,oe.MAIN))==null?void 0:t.gap)===!0)return;const a={label:"block-audio",execute:()=>{var c;const m=this.tracks.video;(this.lastVideoAppendEnd>r||m!=null&&m.buffer&&Gn.isBuffered(m.buffer,r)||((c=this.fragmentTracker.getAppendedFrag(r,oe.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:a,frag:e},this.append(a,"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:a,frag:c,part:m,chunkMeta:p,offset:v}=t,x=p.buffering[i],{sn:P,cc:Z}=c,Y=self.performance.now();x.start=Y;const Oe=c.stats.buffering,Le=m?m.stats.buffering:null;Oe.start===0&&(Oe.start=Y),Le&&Le.start===0&&(Le.start=Y);const st=n.audio;let mt=!1;i==="audio"&&(st==null?void 0:st.container)==="audio/mpeg"&&(mt=!this.lastMpegAudioChunk||p.id===1||this.lastMpegAudioChunk.sn!==p.sn,this.lastMpegAudioChunk=p);const xt=n.video,Mt=xt==null?void 0:xt.buffer;if(Mt&&P!=="initSegment"){const Yt=m||c,hn=this.blockedAudioAppend;if(i==="audio"&&a!=="main"&&!this.blockedAudioAppend&&!(xt.ending||xt.ended)){const en=Yt.start+Yt.duration*.05,$n=Mt.buffered,br=this.currentOp("video");!$n.length&&!br?this.blockAudio(Yt):!br&&!Gn.isBuffered(Mt,en)&&this.lastVideoAppendEnd<en&&this.blockAudio(Yt)}else if(i==="video"){const fn=Yt.end;if(hn){const en=hn.frag.start;(fn>en||fn<this.lastVideoAppendEnd||Gn.isBuffered(Mt,en))&&this.unblockAudio()}this.lastVideoAppendEnd=fn}}const Wt=(m||c).start,Rn={label:`append-${i}`,execute:()=>{var Yt;x.executeStart=self.performance.now();const hn=(Yt=this.tracks[i])==null?void 0:Yt.buffer;hn&&(mt?this.updateTimestampOffset(hn,Wt,.1,i,P,Z):v!==void 0&&o(v)&&this.updateTimestampOffset(hn,v,1e-6,i,P,Z)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Yt=self.performance.now();x.executeEnd=x.end=Yt,Oe.first===0&&(Oe.first=Yt),Le&&Le.first===0&&(Le.first=Yt);const hn={};this.sourceBuffers.forEach(([fn,en])=>{fn&&(hn[fn]=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:m,chunkMeta:p,parent:c.type,timeRanges:hn})},onError:Yt=>{var hn;const fn={type:fe.MEDIA_ERROR,parent:c.type,details:K.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:c,part:m,chunkMeta:p,error:Yt,err:Yt,fatal:!1},en=(hn=this.media)==null?void 0:hn.error;if(Yt.code===DOMException.QUOTA_EXCEEDED_ERR||Yt.name=="QuotaExceededError"||"quota"in Yt)fn.details=K.BUFFER_FULL_ERROR;else if(Yt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!en)fn.errorAction=ln(!0);else if(Yt.name===cs&&this.sourceBufferCount===0)fn.errorAction=ln(!0);else{const $n=++this.appendErrors[i];this.warn(`Failed ${$n}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${en||"no media error"})`),($n>=this.hls.config.appendErrorMaxRetry||en)&&(fn.fatal=!0)}this.hls.trigger(g.ERROR,fn)}};this.log(`queuing "${i}" append sn: ${P}${m?" p: "+m.index:""} of ${c.type===oe.MAIN?"level":"track"} ${c.level} cc: ${Z}`),this.append(Rn,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(([a])=>{a&&this.append(this.getFlushOp(a,r,i),a)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],a=r?r.elementaryStreams:n.elementaryStreams;a[se.AUDIOVIDEO]?i.push("audiovideo"):(a[se.AUDIO]&&i.push("audio"),a[se.VIDEO]&&i.push("video"));const c=()=>{const m=self.performance.now();n.stats.buffering.end=m,r&&(r.stats.buffering.end=m);const p=r?r.stats:n.stats;this.hls.trigger(g.FRAG_BUFFERED,{frag:n,part:r,stats:p,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(m=>{this.warn(`Fragment buffered callback ${m}`),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(([a])=>{if(a){const c=this.tracks[a];(!t.type||t.type===a)&&(c.ending=!0,c.ended||(c.ended=!0,this.log(`${a} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([a])=>{var c;return a&&!((c=this.tracks[a])!=null&&c.ended)})?r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:a}=this;if(!a||a.readyState!=="open"){a&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${a.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),a.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===K.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;o(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,a=t.levelTargetDuration,c=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(o(c)&&c>=0){const p=Math.max(c,a),v=Math.floor(i/a)*a-p;this.flushBackBuffer(i,a,v)}const m=r.frontBufferFlushThreshold;if(o(m)&&m>0){const p=Math.max(r.maxBufferLength,m),v=Math.max(p,a),x=Math.floor(i/a)*a+v;this.flushFrontBuffer(i,a,x)}}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 a;this.hls.trigger(g.BACK_BUFFER_REACHED,{bufferEnd:n});const m=this.tracks[r];if((a=this.details)!=null&&a.live)this.hls.trigger(g.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(m!=null&&m.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 a=Gn.getBuffered(i),c=a.length;if(c<2)return;const m=a.start(c-1),p=a.end(c-1);if(n>m||e>=m&&e<=p)return;this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:m,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 p=Math.max(0,t.fragmentStart),v=Math.max(p,r);return{duration:1/0,start:p,end:v}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return o(i)?{duration:i}:null;const a=this.media.duration,c=o(n.duration)?n.duration:0;return r>c&&r>a||!o(a)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(o(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${Ft(n)}`),this.tracksReady){var r;const 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:fe.MEDIA_ERROR,details:K.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 a=i,c=e[a];if(this.isPending(c)){const m=this.getTrackCodec(c,a),p=`${c.container};codecs=${m}`;c.codec=m,this.log(`creating sourceBuffer(${p})${this.currentOp(a)?" Queued":""} ${Ft(c)}`);try{const v=n.addSourceBuffer(p),x=Is(a),P=[a,v];t[x]=P,c.buffer=v}catch(v){var r;this.error(`error while trying to add sourceBuffer: ${v.message}`),this.shiftAndExecuteNext(a),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[a],this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:a,mimeType:p,parent:c.id});return}this.trackSourceBuffer(a,c)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&rt(n,"video")&&(r=Tt(r,n));const i=Kt(r,e.levelCodec);return i?t.slice(0,5)==="audio"?Ee(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,a)=>{const c=a.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:fe.MEDIA_ERROR,details:K.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,a){const c=t-e.timestampOffset;Math.abs(c)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${a})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,a=this.tracks[e],c=a==null?void 0:a.buffer;if(!r||!i||!c){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const m=o(r.duration)?r.duration:1/0,p=o(i.duration)?i.duration:1/0,v=Math.max(0,t),x=Math.min(n,m,p);x>v&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${v},${x}] from the ${e} SourceBuffer`),c.remove(v,x)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new ds(`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(a=>this.appendBlocker(a));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(a=>{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 a=n.bind(this,e);r.listeners.push({event:t,listener:a}),i.addEventListener(t,a)}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 Ya(s){const e=s.querySelectorAll("source");[].slice.call(e).forEach(t=>{s.removeChild(t)})}function gs(s,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,s.appendChild(t)}function Is(s){return s==="audio"?1:0}class vs{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&&o(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,vs.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,m)=>m?c.width!==m.width||c.height!==m.height:!0;let i=e.length-1;const a=Math.max(t,n);for(let c=0;c<e.length;c+=1){const m=e[c];if((m.width>=a||m.height>=a)&&r(m,e[c+1])){i=c;break}}return i}}const Qa={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},cl={HLS:"h"};class fs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof fs?n:new fs(n))),this.value=e,this.params=t}}const dl="Dict";function ai(s){return Array.isArray(s)?JSON.stringify(s):s instanceof Map?"Map{}":s instanceof Set?"Set{}":typeof s=="object"?JSON.stringify(s):String(s)}function Mi(s,e,t,n){return new Error(`failed to ${s} "${ai(e)}" as ${t}`,{cause:n})}function Xi(s,e,t){return Mi("serialize",s,e,t)}class ba{constructor(e){this.description=e}}const qa="Bare Item",ys="Boolean";function xs(s){if(typeof s!="boolean")throw Xi(s,ys);return s?"?1":"?0"}function $a(s){return btoa(String.fromCharCode(...s))}const ql="Byte Sequence";function Rl(s){if(ArrayBuffer.isView(s)===!1)throw Xi(s,ql);return`:${$a(s)}:`}const Yo="Integer";function vo(s){return s<-999999999999999||999999999999999<s}function Dl(s){if(vo(s))throw Xi(s,Yo);return s.toString()}function Il(s){return`@${Dl(s.getTime()/1e3)}`}function Fl(s,e){if(s<0)return-Fl(-s,e);const t=Math.pow(10,e);if(Math.abs(s*t%1-.5)<Number.EPSILON){const r=Math.floor(s*t);return(r%2===0?r:r+1)/t}else return Math.round(s*t)/t}const Ll="Decimal";function Xl(s){const e=Fl(s,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Xi(s,Ll);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Ol="String",Qo=/[\x00-\x1f\x7f]+/;function Pl(s){if(Qo.test(s))throw Xi(s,Ol);return`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Jl(s){return s.description||s.toString().slice(7,-1)}const kl="Token";function fl(s){const e=Jl(s);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Xi(e,kl);return e}function hl(s){switch(typeof s){case"number":if(!o(s))throw Xi(s,qa);return Number.isInteger(s)?Dl(s):Xl(s);case"string":return Pl(s);case"symbol":return fl(s);case"boolean":return xs(s);case"object":if(s instanceof Date)return Il(s);if(s instanceof Uint8Array)return Rl(s);if(s instanceof ba)return fl(s);default:throw Xi(s,qa)}}const eu="Key";function pl(s){if(/^[a-z*][a-z0-9\-_.*]*$/.test(s)===!1)throw Xi(s,eu);return s}function qo(s){return s==null?"":Object.entries(s).map(([e,t])=>t===!0?`;${pl(e)}`:`;${pl(e)}=${hl(t)}`).join("")}function Io(s){return s instanceof fs?`${hl(s.value)}${qo(s.params)}`:hl(s)}function ml(s){return`(${s.value.map(Io).join(" ")})${qo(s.params)}`}function gl(s,e={whitespace:!0}){if(typeof s!="object"||s==null)throw Xi(s,dl);const t=s instanceof Map?s.entries():Object.entries(s),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof fs||(i=new fs(i));let a=pl(r);return i.value===!0?a+=qo(i.params):(a+="=",Array.isArray(i.value)?a+=ml(i):a+=Io(i)),a}).join(`,${n}`)}function vl(s,e){return gl(s,e)}const Es="CMCD-Object",ga="CMCD-Request",to="CMCD-Session",no="CMCD-Status",Nl={br:Es,ab:Es,d:Es,ot:Es,tb:Es,tpb:Es,lb:Es,tab:Es,lab:Es,url:Es,pb:ga,bl:ga,tbl:ga,dl:ga,ltc:ga,mtp:ga,nor:ga,nrr:ga,rc:ga,sn:ga,sta:ga,su:ga,ttfb:ga,ttfbb:ga,ttlb:ga,cmsdd:ga,cmsds:ga,smrt:ga,df:ga,cs:ga,ts:ga,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:ga};function Ul(s){return Object.keys(s).reduce((e,t)=>{var n;return(n=s[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function bl(s,e){const t={};if(!s)return t;const n=Object.keys(s),r=e?Ul(e):{};return n.reduce((i,a)=>{var c;const m=Nl[a]||r[a]||yl.REQUEST,p=(c=i[m])!==null&&c!==void 0?c:i[m]={};return p[a]=s[a],i},t)}function Ml(s){return["ot","sf","st","e","sta"].includes(s)}function tu(s){return typeof s=="number"?o(s):s!=null&&s!==""&&s!==!1}const yi="event";function wi(s,e){const t=new URL(s),n=new URL(e);if(t.origin!==n.origin)return s;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 Da=s=>Math.round(s),rs=(s,e)=>Array.isArray(s)?s.map(t=>rs(t,e)):s instanceof fs&&typeof s.value=="string"?new fs(rs(s.value,e),s.params):(e.baseUrl&&(s=wi(s,e.baseUrl)),e.version===1?encodeURIComponent(s):s),Ia=s=>Da(s/100)*100,ho={br:Da,d:Da,bl:Ia,dl:Ia,mtp:Ia,nor:(s,e)=>{let t=s;return e.version>=2&&(s instanceof fs&&typeof s.value=="string"?t=new fs([s]):typeof s=="string"&&(t=[s])),rs(t,e)},rtp:Ia,tb:Da},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 Bl(s){return fc.test(s)}function hc(s){return Lo.includes(s)||dc.includes(s)||Bl(s)}const xu=["d","dl","nor","ot","rtp","su"];function pc(s){return Lo.includes(s)||xu.includes(s)||Bl(s)}const mc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function gc(s){return Lo.includes(s)||xu.includes(s)||mc.includes(s)||Bl(s)}const vc=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function yc(s){return vc.includes(s)||Bl(s)}const bc={[yo]:gc,[yi]:hc,[ro]:pc};function Eu(s,e={}){const t={};if(s==null||typeof s!="object")return t;const n=e.version||s.v||1,r=e.reportingMode||ro,i=n===1?yc:bc[r];let a=Object.keys(s).filter(i);const c=e.filter;typeof c=="function"&&(a=a.filter(c));const m=r===yo||r===yi;m&&!a.includes("ts")&&a.push("ts"),n>1&&!a.includes("v")&&a.push("v");const p=S({},ho,e.formatters),v={version:n,reportingMode:r,baseUrl:e.baseUrl};return a.sort().forEach(x=>{let P=s[x];const Z=p[x];if(typeof Z=="function"&&(P=Z(P,v)),x==="v"){if(n===1)return;P=n}x=="pr"&&P===1||(m&&x==="ts"&&!o(P)&&(P=Date.now()),tu(P)&&(Ml(x)&&typeof P=="string"&&(P=new ba(P)),t[x]=P))}),t}function Sc(s,e={}){const t={};if(!s)return t;const n=Eu(s,e),r=bl(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((i,[a,c])=>{const m=vl(c,{whitespace:!1});return m&&(i[a]=m),i},t)}function xc(s,e,t){return S(s,Sc(e,t))}const Ec="CMCD";function _c(s,e={}){return s?vl(Eu(s,e),{whitespace:!1}):""}function Ac(s,e={}){if(!s)return"";const t=_c(s,e);return encodeURIComponent(t)}function Cc(s,e={}){if(!s)return"";const t=Ac(s,e);return`${Ec}=${t}`}const _u=/CMCD=[^&#]+/;function wc(s,e,t){const n=Cc(e,t);if(!n)return s;if(_u.test(s))return s.replace(_u,n);const r=s.includes("?")?"&":"?";return`${s}${r}${n}`}class Tc{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:Qa.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:a}=r,c=this.hls.levels[i.level],m=this.getObjectType(i),p={d:(a||i).duration*1e3,ot:m};(m===Qa.VIDEO||m===Qa.AUDIO||m==Qa.MUXED)&&(p.br=c.bitrate/1e3,p.tb=this.getTopBandwidth(m)/1e3,p.bl=this.getBufferLength(m));const v=a?this.getNextPart(a):this.getNextFrag(i);v!=null&&v.url&&v.url!==i.url&&(p.nor=v.url),this.apply(r,p)}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={}){S(t,this.createData());const n=t.ot===Qa.INIT||t.ot===Qa.VIDEO||t.ot===Qa.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((a,c)=>(r.includes(c)&&(a[c]=t[c]),a),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),xc(e.headers,t,i)):e.url=wc(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:a}=r;for(let c=i.length-1;c>=0;c--){const m=i[c];if(m.index===n&&m.fragment.sn===a)return i[c+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Qa.TIMED_TEXT;if(e.sn==="initSegment")return Qa.INIT;if(t==="audio")return Qa.AUDIO;if(t==="main")return this.hls.audioTracks.length?Qa.VIDEO:Qa.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Qa.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,a=i>-1?i+1:r.levels.length;n=r.levels.slice(0,a)}return n.forEach(i=>{i.bitrate>t&&(t=i.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===Qa.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,a,c){t(i),this.loader.load(i,a,c)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,a,c){t(i),this.loader.load(i,a,c)}}}}const Rc=3e5;class Dc extends V{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)===Hn.SendAlternateToPenaltyBox&&n.flags===On.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,a=this.pathwayId;if(t.context){const{groupId:c,pathwayId:m,type:p}=t.context;c&&r?a=this.getPathwayForGroupId(c,p,a):m&&(a=m)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==a),t.details===K.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: ${a} levels: ${r&&r.length} priorities: ${Ft(i)} penalized: ${Ft(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Rc&&delete n[i]});for(let i=0;i<e.length;i++){const a=e[i];if(a in n)continue;if(a===this.pathwayId)return;const c=this.hls.nextLoadLevel,m=this.hls.levels[c];if(t=this.getLevelsForPathway(a),t.length>0){this.log(`Setting Pathway to "${a}"`),this.pathwayId=a,Na(t),this.hls.trigger(g.LEVELS_UPDATED,{levels:t});const p=this.hls.levels[c];m&&p&&this.levels&&(p.attrs["STABLE-VARIANT-ID"]!==m.attrs["STABLE-VARIANT-ID"]&&p.bitrate!==m.bitrate&&this.log(`Unstable Pathways change from bitrate ${m.bitrate} to ${p.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===re.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===re.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:a,"BASE-ID":c,"URI-REPLACEMENT":m}=i;if(t.some(v=>v.pathwayId===a))return;const p=this.getLevelsForPathway(c).map(v=>{const x=new Or(v.attrs);x["PATHWAY-ID"]=a;const P=x.AUDIO&&`${x.AUDIO}_clone_${a}`,Z=x.SUBTITLES&&`${x.SUBTITLES}_clone_${a}`;P&&(n[x.AUDIO]=P,x.AUDIO=P),Z&&(r[x.SUBTITLES]=Z,x.SUBTITLES=Z);const Y=Cu(v.uri,x["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",m),Oe=new Zt({attrs:x,audioCodec:v.audioCodec,bitrate:v.bitrate,height:v.height,name:v.name,url:Y,videoCodec:v.videoCodec,width:v.width});if(v.audioGroups)for(let Le=1;Le<v.audioGroups.length;Le++)Oe.addGroupId("audio",`${v.audioGroups[Le]}_clone_${a}`);if(v.subtitleGroups)for(let Le=1;Le<v.subtitleGroups.length;Le++)Oe.addGroupId("text",`${v.subtitleGroups[Le]}_clone_${a}`);return Oe});t.push(...p),Au(this.audioTracks,n,m,a),Au(this.subtitleTracks,r,m,a)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(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},a=t.steeringManifestLoadPolicy.default,c=a.errorRetry||a.timeoutRetry||{},m={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},p={onSuccess:(v,x,P,Z)=>{this.log(`Loaded steering manifest: "${r}"`);const Y=v.data;if((Y==null?void 0:Y.VERSION)!==1){this.log(`Steering VERSION ${Y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Y.TTL;const{"RELOAD-URI":Oe,"PATHWAY-CLONES":Le,"PATHWAY-PRIORITY":st}=Y;if(Oe)try{this.uri=new self.URL(Oe,r).href}catch(xt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Oe}`);return}this.scheduleRefresh(this.uri||P.url),Le&&this.clonePathways(Le);const mt={steeringManifest:Y,url:r.toString()};this.hls.trigger(g.STEERING_MANIFEST_LOADED,mt),st&&this.updatePathwayPriority(st)},onError:(v,x,P,Z)=>{if(this.log(`Error loading steering manifest: ${v.code} ${v.text} (${x.url})`),this.stopLoad(),v.code===410){this.enabled=!1,this.log(`Steering manifest ${x.url} no longer available`);return}let Y=this.timeToLoad*1e3;if(v.code===429){const Oe=this.loader;if(typeof(Oe==null?void 0:Oe.getResponseHeader)=="function"){const Le=Oe.getResponseHeader("Retry-After");Le&&(Y=parseFloat(Le)*1e3)}this.log(`Steering manifest ${x.url} rate limited`);return}this.scheduleRefresh(this.uri||x.url,Y)},onTimeout:(v,x,P)=>{this.log(`Timeout loading steering manifest (${x.url})`),this.scheduleRefresh(this.uri||x.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,m,p)}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 Au(s,e,t,n){s&&Object.keys(e).forEach(r=>{const i=s.filter(a=>a.groupId===r).map(a=>{const c=S({},a);return c.details=void 0,c.attrs=new Or(c.attrs),c.url=c.attrs.URI=Cu(a.url,a.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[r],c.attrs["PATHWAY-ID"]=n,c});s.push(...i)})}function Cu(s,e,t,n){const{HOST:r,PARAMS:i,[t]:a}=n;let c;e&&(c=a==null?void 0:a[e],c&&(s=c));const m=new self.URL(s);return r&&!c&&(m.host=r),i&&Object.keys(i).sort().forEach(p=>{p&&m.searchParams.set(p,i[p])}),m.href}class Xo extends V{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=Xo.CDMCleanupPromise?[Xo.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 a=Object.keys(this.keySystemAccessPromises);a.length||(a=Ea(this.config));const c=a.map(ua).filter(m=>!!m);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(a=>{const c=xa(a);if(n!=="sinf"||c!==$r.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${c}`);return}let m;try{const Z=et(new Uint8Array(r)),Y=ui(JSON.parse(Z).sinf),Oe=le(Y);if(!Oe)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");m=new Uint8Array(Oe.subarray(8,24))}catch(Z){this.warn(`${i} Failed to parse sinf: ${Z}`);return}const p=ee(m),{keyIdToKeySessionPromise:v,mediaKeySessions:x}=this;let P=v[p];for(let Z=0;Z<x.length;Z++){const Y=x[Z],Oe=Y.decryptdata;if(!Oe.keyId)continue;const Le=ee(Oe.keyId);if(xr(m,Oe.keyId)||Oe.uri.replace(/-/g,"").indexOf(p)!==-1){if(P=v[Le],!P)continue;if(Oe.pssh)break;delete v[Le],Oe.pssh=new Uint8Array(r),Oe.keyId=m,P=v[p]=P.then(()=>this.generateRequestWithPreferredKeySession(Y,n,r,"encrypted-event-key-match")),P.catch(st=>this.handleError(st));break}}P||this.handleError(new Error(`Key ID ${p} not encountered in playlist. Key-system sessions ${x.length}.`))}).catch(a=>this.handleError(a))}},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===$r.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=(a,c,m)=>!!a&&m.indexOf(a)===c,r=t.map(a=>a.audioCodec).filter(n),i=t.map(a=>a.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((a,c)=>{const m=p=>{const v=p.shift();this.getMediaKeysPromise(v,r,i).then(x=>a({keySystem:v,mediaKeys:x})).catch(x=>{p.length?m(p):x instanceof _s?c(x):c(new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_ACCESS,error:x,fatal:!0},x.message))})};m(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return pa===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=bs(e,t,n,this.config.drmSystemOptions||{});let a=this.keySystemAccessPromises[e],c=(r=a)==null?void 0:r.keySystemAccess;if(!c){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Ft(i)}`),c=this.requestMediaKeySystemAccess(e,i);const m=a=this.keySystemAccessPromises[e]={keySystemAccess:c};return c.catch(p=>{this.log(`Failed to obtain access to key-system "${e}": ${p}`)}),c.then(p=>{this.log(`Access for key-system "${p.keySystem}" obtained`);const v=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const x=m.mediaKeys=p.createMediaKeys().then(P=>(this.log(`Media-keys created for "${e}"`),m.hasMediaKeys=!0,v.then(Z=>Z?this.setMediaKeysServerCertificate(P,e,Z):P)));return x.catch(P=>{this.error(`Failed to create media-keys for "${e}"}: ${P}`)}),x})}return c.then(()=>a.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${ee(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=Kl(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 ${ee(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})=>ua(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=ua(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=Ea(this.config),n=e.map(xa).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=Ic(e,t[n]);if(r)return r}}loadKey(e){const t=e.keyInfo.decryptdata,n=Kl(t),r=this.bannedKeyIds[n];if(r||this.getKeyStatus(t)==="internal-error"){const c=wu(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 a=this.keyIdToKeySessionPromise[n];if(!a){const c=this.getKeySystemForKeyPromise(t).then(({keySystem:m,mediaKeys:p})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(m,p).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:m,mediaKeys:p,decryptdata:t}))))).then(m=>{const p="cenc",v=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(m,p,v,"playlist-key")});return c.catch(m=>this.handleError(m,e.frag)),this.keyIdToKeySessionPromise[n]=c,c}return a.catch(c=>{if(c instanceof _s){const m=T({},c.data);this.getKeyStatus(t)==="internal-error"&&(m.decryptdata=t);const p=new _s(m,c.message);this.handleError(p,e.frag)}}),a}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof _s){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${ee(n.keyId||[])})`:""}`),this.hls.trigger(g.ERROR,e.data)}else this.error(e.message),this.hls.trigger(g.ERROR,{type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=Kl(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=xa(e.keyFormat),i=r?[r]:Ea(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Ea(this.config)),e.length===0)throw new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Ft({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>this.media?this.media.setMediaKeys(t):new Promise((i,a)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return a(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(i).catch(a)}}));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 a=(i=this.config.drmSystems)==null||(i=i[e.keySystem])==null?void 0:i.generateRequest;if(a)try{const Y=a.call(this.hls,t,n,e);if(!Y)throw new Error("Invalid response from configured generateRequest filter");t=Y.initDataType,n=Y.initData?Y.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(Y){if(this.warn(Y.message),this.hls&&this.hls.config.debug)throw Y}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=Kl(e.decryptdata),m=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${c} URI: ${m} (init data type: ${t} length: ${n.byteLength})`);const p=new So,v=e._onmessage=Y=>{const Oe=e.mediaKeysSession;if(!Oe){p.emit("error",new Error("invalid state"));return}const{messageType:Le,message:st}=Y;this.log(`"${Le}" message event for session "${Oe.sessionId}" message size: ${st.byteLength}`),Le==="license-request"||Le==="license-renewal"?this.renewLicense(e,st).catch(mt=>{p.eventNames().length?p.emit("error",mt):this.handleError(mt)}):Le==="license-release"?e.keySystem===$r.FAIRPLAY&&this.updateKeySession(e,Si("acknowledged")).then(()=>this.removeSession(e)).catch(mt=>this.handleError(mt)):this.warn(`unhandled media key message type "${Le}"`)},x=(Y,Oe)=>{Oe.keyStatus=Y;let Le;Y.startsWith("usable")?p.emit("resolved"):Y==="internal-error"||Y==="output-restricted"||Y==="output-downscaled"?Le=wu(Y,Oe.decryptdata):Y==="expired"?Le=new Error(`key expired (keyId: ${c})`):Y==="released"?Le=new Error("key released"):Y==="status-pending"||this.warn(`unhandled key status change "${Y}" (keyId: ${c})`),Le&&(p.eventNames().length?p.emit("error",Le):this.handleError(Le))},P=e._onkeystatuseschange=Y=>{if(!e.mediaKeysSession){p.emit("error",new Error("invalid state"));return}const Le=this.getKeyStatuses(e);if(!Object.keys(Le).some(Mt=>Le[Mt]!=="status-pending"))return;if(Le[c]==="expired"){this.log(`Expired key ${Ft(Le)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let mt=Le[c];if(mt)x(mt,e);else{var xt;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(xt=e.keyStatusTimeouts)[c]||(xt[c]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const Wt=this.getKeyStatus(e.decryptdata);if(Wt&&Wt!=="status-pending")return this.log(`No status for keyId ${c} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${Wt} from other session.`),x(Wt,e);this.log(`key status for ${c} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),mt="internal-error",x(mt,e)},1e3)),this.log(`No status for keyId ${c} (${Ft(Le)}).`)}};Ua(e.mediaKeysSession,"message",v),Ua(e.mediaKeysSession,"keystatuseschange",P);const Z=new Promise((Y,Oe)=>{p.on("error",Oe),p.on("resolved",Y)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${c} URI: ${m}`)}).catch(Y=>{throw new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_SESSION,error:Y,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${Y}`)}).then(()=>Z).catch(Y=>(p.removeAllListeners(),this.removeSession(e).then(()=>{throw Y}))).then(()=>(p.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===$r.PLAYREADY&&i.length===16){const c=ee(i);t[c]=n,ur(i)}const a=ee(i);n==="internal-error"&&(this.bannedKeyIds[a]=n),this.log(`key status change "${n}" for keyStatuses keyId: ${a} key-session "${e.mediaKeysSession.sessionId}"`),t[a]=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((a,c)=>{const m={responseType:"arraybuffer",url:i},p=t.certLoadPolicy.default,v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},x={onSuccess:(P,Z,Y,Oe)=>{a(P.data)},onError:(P,Z,Y,Oe)=>{c(new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Y,response:T({url:m.url,data:void 0},P)},`"${e}" certificate request failed (${i}). Status: ${P.code} (${P.text})`))},onTimeout:(P,Z,Y)=>{c(new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Y,response:{url:m.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(P,Z,Y)=>{c(new Error("aborted"))}};r.load(m,v,x)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(a=>{this.log(`setServerCertificate ${a?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)}).catch(a=>{i(new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:a,fatal:!0},a.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new _s({type:fe.KEY_SYSTEM_ERROR,details:K.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 x=0,P=i.length;x<P;x++){var a,c;v=i[x];const Z=(a=v.querySelector("name"))==null?void 0:a.textContent,Y=(c=v.querySelector("value"))==null?void 0:c.textContent;Z&&Y&&e.setRequestHeader(Z,Y)}}const m=r.querySelector("Challenge"),p=m==null?void 0:m.textContent;if(!p)throw new Error("Cannot find <Challenge> in key message");return Si(atob(p))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(a=>{if(!n.decryptdata)throw a;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(a=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:a||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${a}`);const c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let m=c.response;this.log(`License received ${m instanceof ArrayBuffer?m.byteLength:m}`);const p=this.config.licenseResponseCallback;if(p)try{m=p.call(this.hls,c,a,e)}catch(v){this.error(v)}r(m)}else{const m=n.errorRetry,p=m?m.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p||c.status>=400&&c.status<500)i(new _s({type:fe.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:c,response:{url:a,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${a}). Status: ${c.status} (${c.statusText})`));else{const v=p-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,a,e,t).then(({xhr:m,licenseChallenge:p})=>{e.keySystem==$r.PLAYREADY&&(p=this.unpackPlayReadyKeyMessage(m,p)),m.send(p)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ua(n,"encrypted",this.onMediaEncrypted),Ua(n,"waitingforkey",this.onWaitingForKey);const r=this.mediaResolved;r?r():this.mediaKeys=n.mediaKeys}onMediaDetached(){const e=this.media;e&&(Va(e,"encrypted",this.onMediaEncrypted),Va(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,ka.clearKeyUriToKeyIdMap();const i=r.length;Xo.CDMCleanupPromise=Promise.all(r.map(a=>this.removeSession(a)).concat((n==null||(e=n.setMediaKeys(null))==null?void 0:e.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).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: ${ee((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:a}=e;a&&Object.keys(a).forEach(p=>self.clearTimeout(a[p]));const{drmSystemOptions:c}=this.config;return($s(c)?new Promise((p,v)=>{self.setTimeout(()=>v(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(p).catch(v)}):Promise.resolve()).catch(p=>{this.log(`Could not remove session: ${p}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${p}`)})}).then(()=>t.close()).catch(p=>{this.log(`Could not close session: ${p}`),this.hls&&this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${p}`)})})}return Promise.resolve()}}Xo.CDMCleanupPromise=void 0;function Kl(s){if(!s)throw new Error("Could not read keyId of undefined decryptdata");if(s.keyId===null)throw new Error("keyId is null");return ee(s.keyId)}function Ic(s,e){if(s.keyId&&e.mediaKeysSession.keyStatuses.has(s.keyId))return e.mediaKeysSession.keyStatuses.get(s.keyId);if(s.matches(e.decryptdata))return e.keyStatus}class _s 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 wu(s,e){const t=s==="output-restricted",n=t?K.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:K.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new _s({type:fe.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${s}"`)}class Fc{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,a=n-this.lastDroppedFrames,c=t-this.lastDecodedFrames,m=1e3*a/i,p=this.hls;if(p.trigger(g.FPS_DROP,{currentDropped:a,currentDecoded:c,totalDroppedFrames:n}),m>0&&a>p.config.fpsDroppedMonitoringThreshold*c){let v=p.currentLevel;p.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+v),v>0&&(p.autoLevelCapping===-1||p.autoLevelCapping>=v)&&(v=v-1,p.trigger(g.FPS_DROP_LEVEL_CAPPING,{level:v,droppedLevel:p.currentLevel}),p.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 Tu(s,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=s,e.dispatchEvent(t)}function Ru(s,e){const t=s.mode;if(t==="disabled"&&(s.mode="hidden"),s.cues&&!s.cues.getCueById(e.id))try{if(s.addCue(e),!s.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){de.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,s.addCue(r)}catch(r){de.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(s.mode=t)}function Jo(s,e){const t=s.mode;if(t==="disabled"&&(s.mode="hidden"),s.cues)for(let n=s.cues.length;n--;)e&&s.cues[n].removeEventListener("enter",e),s.removeCue(s.cues[n]);t==="disabled"&&(s.mode=t)}function nu(s,e,t,n){const r=s.mode;if(r==="disabled"&&(s.mode="hidden"),s.cues&&s.cues.length>0){const i=Oc(s.cues,e,t);for(let a=0;a<i.length;a++)(!n||n(i[a]))&&s.removeCue(i[a])}r==="disabled"&&(s.mode=r)}function Lc(s,e){if(e<=s[0].startTime)return 0;const t=s.length-1;if(e>s[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<s[i].startTime)r=i-1;else if(e>s[i].startTime&&n<t)n=i+1;else return i;return s[n].startTime-e<e-s[r].startTime?n:r}function Oc(s,e,t){const n=[],r=Lc(s,e);if(r>-1)for(let i=r,a=s.length;i<a;i++){const c=s[i];if(c.startTime>=e&&c.endTime<=t)n.push(c);else if(c.startTime>t)return n}return n}function zl(s){const e=[];for(let t=0;t<s.length;t++){const n=s[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(s[t])}return e}class Pc extends ha{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=zl(this.media.textTracks);for(let 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;zl(n.textTracks).forEach(a=>{Jo(a)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${a==null?void 0:a.groupId}`);return}const c=a.details;a.details=t.details,this.log(`Subtitle track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(a=>(r==null?void 0:r.indexOf(a))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(v=>!n||n.indexOf(v.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(v=>v.default)&&(this.selectDefaultTrack=!1),a.forEach((v,x)=>{v.id=x});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const c=this.hls.config.subtitlePreference;if(!i&&c){this.selectDefaultTrack=!1;const v=on(c,a);if(v>-1)i=a[v];else{const x=on(c,this.tracks);i=this.tracks[x]}}let m=this.findTrackId(i);m===-1&&i&&(m=this.findTrackId(null));const p={subtitleTracks:a};this.log(`Updating subtitle tracks, ${a.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(g.SUBTITLE_TRACKS_UPDATED,p),m!==-1&&this.trackId===-1&&this.setSubtitleTrack(m)}}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||In(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(ms(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(ms(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===re.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&&In(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),a=e.details,c=a==null?void 0:a.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&&a.live?" age "+c.toFixed(1)+(a.type?" "+a.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=zl(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||!o(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:a,groupId:c="",name:m,type:p,url:v}=r;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:a,groupId:c,name:m,type:p,url:v});const x=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(x)}}function kc(){try{return crypto.randomUUID()}catch(s){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 Sl(s){let e=5381,t=s.length;for(;t;)e=e*33^s.charCodeAt(--t);return(e>>>0).toString()}const el=.025;let $l=function(s){return s[s.Point=0]="Point",s[s.Range=1]="Range",s}({});function Nc(s,e,t){return`${s.identifier}-${t+1}-${Sl(e)}`}class Uc{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=o(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"?$l.Range:$l.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 Mc(this)}}function ru(s,e){return s-e.start<e.duration/2&&!(Math.abs(s-(e.start+e.duration))<el)?e.start:e.start+e.duration}function Du(s,e,t){const n=new self.URL(s,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function iu(s,e){for(;(t=s.assetList[++e])!=null&&t.error;)var t;return e}function Mc(s){return`["${s.identifier}" ${s.cue.pre?"<pre>":s.cue.post?"<post>":""}${s.timelineStart.toFixed(2)}-${s.resumeTime.toFixed(2)}]`}function tl(s){const e=s.timelineStart,t=s.duration||0;return`["${s.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Bc{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 a=()=>{this.hasDetails=!0};i.once(g.LEVEL_LOADED,a),i.once(g.AUDIO_TRACK_LOADED,a),i.once(g.SUBTITLE_TRACK_LOADED,a),i.on(g.MEDIA_ATTACHING,(c,{media:m})=>{this.removeMediaListeners(),this.mediaAttached=m,this.interstitial.playoutLimit&&(m.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 Iu=.033;class Kc extends V{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 a=n[i];if(!a.error){const c=a.timelineStart;if(t===c||t>c&&(t<c+(a.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,a=this.parseDateRanges(r,{url:n.url},t),c=Object.keys(r),m=i?i.filter(p=>!c.includes(p.identifier)):[];a.length&&a.sort((p,v)=>{const x=p.cue.pre,P=p.cue.post,Z=v.cue.pre,Y=v.cue.post;if(x&&!Z)return-1;if(Z&&!x||P&&!Y)return 1;if(Y&&!P)return-1;if(!x&&!Z&&!P&&!Y){const Oe=p.startTime,Le=v.startTime;if(Oe!==Le)return Oe-Le}return p.dateRange.tagOrder-v.dateRange.tagOrder}),this.events=a,m.forEach(p=>{this.removeEvent(p)}),this.updateSchedule(e,m)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const i=this.items,a=this.parseSchedule(r,e);(n||t.length||(i==null?void 0:i.length)!==a.length||a.some((m,p)=>Math.abs(m.playout.start-i[p].playout.start)>.005||Math.abs(m.playout.end-i[p].playout.end)>.005))&&(this.items=a,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let a=0;a<i.length;a++){const c=i[a],m=e[c];if(m.isInterstitial){let p=this.eventMap[c];p?p.setDateRange(m):(p=new Uc(m,t),this.eventMap[c]=p,n===!1&&(p.appendInPlace=n)),r.push(p)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let a=0;if(e=e.filter(m=>!m.error&&!(m.cue.once&&m.hasPlayed)),e.length){this.resolveOffsets(e,t);let m=0,p=0;if(e.forEach((v,x)=>{const P=v.cue.pre,Z=v.cue.post,Y=e[x-1]||null,Oe=v.appendInPlace,Le=Z?i:v.startOffset,st=v.duration,mt=v.timelineOccupancy===$l.Range?st:0,xt=v.resumptionOffset,Mt=(Y==null?void 0:Y.startTime)===Le,Wt=Le+v.cumulativeDuration;let Rn=Oe?Wt+st:Le+xt;if(P||!Z&&Le<=0){const hn=p;p+=mt,v.timelineStart=Wt;const fn=a;a+=st,n.push({event:v,start:Wt,end:Rn,playout:{start:fn,end:a},integrated:{start:hn,end:p}})}else if(Le<=i){if(!Mt){const en=Le-m;if(en>Iu){const $n=m,br=p;p+=en;const kr=a;a+=en;const Vr={previousEvent:e[x-1]||null,nextEvent:v,start:$n,end:$n+en,playout:{start:kr,end:a},integrated:{start:br,end:p}};n.push(Vr)}else en>0&&Y&&(Y.cumulativeDuration+=en,n[n.length-1].end=Le)}Z&&(Rn=Wt),v.timelineStart=Wt;const hn=p;p+=mt;const fn=a;a+=st,n.push({event:v,start:Wt,end:Rn,playout:{start:fn,end:a},integrated:{start:hn,end:p}})}else return;const Yt=v.resumeTime;Z||Yt>i?m=i:m=Yt}),m<i){var c;const v=m,x=p,P=i-m;p+=P;const Z=a;a+=P,n.push({previousEvent:((c=n[n.length-1])==null?void 0:c.event)||null,nextEvent:null,start:m,end:v+P,playout:{start:Z,end:a},integrated:{start:x,end:p}})}this.setDurations(i,a,p)}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,a=-1;e.forEach((c,m)=>{const p=c.cue.pre,v=c.cue.post,x=p?0:v?r:c.startTime;this.updateAssetDurations(c),a===x?c.cumulativeDuration=i:(i=0,a=x),!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&&m+1<e.length&&e[m+1].startTime-e[m].resumeTime<Iu&&(e[m+1].appendInPlace=!1,e[m+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${c}`));const Z=o(c.resumeOffset)?c.resumeOffset:c.duration;i+=Z})}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(a=>{const c=t[a].details,m=c.edge;if(n>=m)return this.log(`"${e.identifier}" resumption ${n} past ${a} playlist end ${m}`),!1;const p=or(null,c.fragments,n);if(!p)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${a} playlist (${c.fragStart}-${c.fragmentEnd})`),!0;const v=a==="audio"?.175:0;return Math.abs(p.start-n)<el+v||Math.abs(p.end-n)<el+v?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${a} fragment bounds (${p.start}-${p.end} sn: ${p.sn} cc: ${p.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;for(let a=0;a<e.assetList.length;a++){const c=e.assetList[a],m=t+n;c.startOffset=n,c.timelineStart=m,r||(r=c.duration===null),i||(i=!!c.error);const p=c.error?0:c.duration||0;n+=p}r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Bs(s){return`[${s.event?'"'+s.event.identifier+'"':"primary"}: ${s.start.toFixed(2)}-${s.end.toFixed(2)}]`}class zc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Du(n,this.hls.sessionId,e.baseUrl)}catch(P){const Z=this.assignAssetListError(e,K.ASSET_LIST_LOAD_ERROR,P,n);this.hls.trigger(g.ERROR,Z);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,a=i.loader,c=new a(i),m={responseType:"json",url:r.href},p=i.interstitialAssetListLoadPolicy.default,v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},x={onSuccess:(P,Z,Y,Oe)=>{const Le=P.data,st=Le==null?void 0:Le.ASSETS;if(!Array.isArray(st)){const mt=this.assignAssetListError(e,K.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),Y.url,Z,Oe);this.hls.trigger(g.ERROR,mt);return}e.assetListResponse=Le,this.hls.trigger(g.ASSET_LIST_LOADED,{event:e,assetListResponse:Le,networkDetails:Oe})},onError:(P,Z,Y,Oe)=>{const Le=this.assignAssetListError(e,K.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${P.code} ${P.text} (${Z.url})`),Z.url,Oe,Y);this.hls.trigger(g.ERROR,Le)},onTimeout:(P,Z,Y)=>{const Oe=this.assignAssetListError(e,K.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${Z.url})`),Z.url,P,Y);this.hls.trigger(g.ERROR,Oe)}};return c.load(m,v,x),this.hls.trigger(g.ASSET_LIST_LOADING,{event:e}),c}assignAssetListError(e,t,n,r,i,a){return e.error=n,{type:fe.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:a,stats:i}}}function Fu(s){var e;s==null||(e=s.play())==null||e.catch(()=>{})}function jl(s,e){return`[${s}] Advancing timeline position to ${e}`}class $c extends V{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 a=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const c=this.playingItem;if(!c){this.checkBuffer();return}if(a&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(!0),this.checkBuffer(),a&&n<c.start||n>=c.end){var m;const Z=this.findItemIndex(c);let Y=this.schedule.findItemIndexAtTime(n);if(Y===-1&&(Y=Z+(a?-1:1),this.log(`seeked ${a?"back ":""}to position not covered by schedule ${n} (resolving from ${Z} to ${Y})`)),!this.isInterstitial(c)&&(m=this.media)!=null&&m.paused&&(this.shouldPlay=!1),!a&&Y>Z){const Oe=this.schedule.findJumpRestrictedIndex(Z+1,Y);if(Oe>Z){this.setSchedulePosition(Oe);return}}this.setSchedulePosition(Y);return}const p=this.playingAsset;if(!p){if(this.playingLastItem&&this.isInterstitial(c)){const Z=c.event.assetList[0];Z&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,Z))}return}const v=p.timelineStart,x=p.duration||0;if(a&&n<v||n>=v+x){var P;(P=c.event)!=null&&P.appendInPlace&&(this.clearAssetPlayers(c.event,c),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,p)}},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 a=i.timelineStart+(i.duration||0);n>=a&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule;if(!i)return;const a=this.playingItem,c=i.events||[],m=i.items||[],p=i.durations,v=n.map(Oe=>Oe.identifier),x=!!(c.length||v.length);(x||r)&&this.log(`INTERSTITIALS_UPDATED (${c.length}): ${c}
|
|
|
Schedule: ${m.map(Oe=>Bs(Oe))} pos: ${this.timelinePos}`),v.length&&this.log(`Removed events ${v}`);let P=null,Z=null;a&&(P=this.updateItem(a,this.timelinePos),this.itemsMatch(a,P)?this.playingItem=P:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const Y=this.bufferingItem;if(Y&&(Z=this.updateItem(Y,this.bufferedPos),this.itemsMatch(Y,Z)?this.bufferingItem=Z:Y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(Y.event,null))),n.forEach(Oe=>{Oe.assetList.forEach(Le=>{this.clearAssetPlayer(Le.identifier,null)})}),this.playerQueue.forEach(Oe=>{if(Oe.interstitial.appendInPlace){const Le=Oe.assetItem.timelineStart,st=Oe.timelineOffset-Le;if(st)try{Oe.timelineOffset=Le}catch(mt){Math.abs(st)>el&&this.warn(`${mt} ("${Oe.assetId}" ${Oe.timelineOffset}->${Le})`)}}}),x||r){if(this.hls.trigger(g.INTERSTITIALS_UPDATED,{events:c.slice(0),schedule:m.slice(0),durations:p,removedIds:v}),this.isInterstitial(a)&&v.includes(a.event.identifier)){this.warn(`Interstitial "${a.event.identifier}" removed while playing`),this.primaryFallback(a.event);return}a&&this.trimInPlace(P,a),Y&&Z!==P&&this.trimInPlace(Z,Y),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new zc(e),this.schedule=new Kc(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){Va(e,"play",this.onPlay),Va(e,"pause",this.onPause),Va(e,"seeking",this.onSeeking),Va(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ua(n,"seeking",this.onSeeking),Ua(n,"timeupdate",this.onTimeupdate),Ua(n,"play",this.onPlay),Ua(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=x=>x&&e.getAssetPlayer(x.identifier),r=(x,P,Z,Y,Oe)=>{if(x){let Le=x[P].start;const st=x.event;if(st){if(P==="playout"||st.timelineOccupancy!==$l.Point){const mt=n(Z);(mt==null?void 0:mt.interstitial)===st&&(Le+=mt.assetItem.startOffset+mt[Oe])}}else{const mt=Y==="bufferedPos"?a():e[Y];Le+=mt-x.start}return Le}return 0},i=(x,P)=>{var Z;if(x!==0&&P!=="primary"&&(Z=e.schedule)!=null&&Z.length){var Y;const Oe=e.schedule.findItemIndexAtTime(x),Le=(Y=e.schedule.items)==null?void 0:Y[Oe];if(Le){const st=Le[P].start-Le.start;return x+st}}return x},a=()=>{const x=e.bufferedPos;return x===Number.MAX_VALUE?c("primary"):Math.max(x,0)},c=x=>{var P,Z;return(P=e.primaryDetails)!=null&&P.live?e.primaryDetails.edge:((Z=e.schedule)==null?void 0:Z.durations[x])||0},m=(x,P)=>{var Z,Y;const Oe=e.effectivePlayingItem;if(Oe!=null&&(Z=Oe.event)!=null&&Z.restrictions.skip||!e.schedule)return;e.log(`seek to ${x} "${P}"`);const Le=e.effectivePlayingItem,st=e.schedule.findItemIndexAtTime(x,P),mt=(Y=e.schedule.items)==null?void 0:Y[st],xt=e.getBufferingPlayer(),Mt=xt==null?void 0:xt.interstitial,Wt=Mt==null?void 0:Mt.appendInPlace,Rn=Le&&e.itemsMatch(Le,mt);if(Le&&(Wt||Rn)){const Yt=n(e.playingAsset),hn=(Yt==null?void 0:Yt.media)||e.primaryMedia;if(hn){const fn=P==="primary"?hn.currentTime:r(Le,P,e.playingAsset,"timelinePos","currentTime"),en=x-fn,$n=(Wt?fn:hn.currentTime)+en;if($n>=0&&(!Yt||Wt||$n<=Yt.duration)){hn.currentTime=$n;return}}}if(mt){let Yt=x;if(P!=="primary"){const fn=mt[P].start,en=x-fn;Yt=mt.start+en}const hn=!e.isInterstitial(mt);if((!e.isInterstitial(Le)||Le.event.appendInPlace)&&(hn||mt.event.appendInPlace)){const fn=e.media||(Wt?xt==null?void 0:xt.media:null);fn&&(fn.currentTime=Yt)}else if(Le){const fn=e.findItemIndex(Le);if(st>fn){const $n=e.schedule.findJumpRestrictedIndex(fn+1,st);if($n>fn){e.setSchedulePosition($n);return}}let en=0;if(hn)e.timelinePos=Yt,e.checkBuffer();else{const $n=mt.event.assetList,br=x-(mt[P]||mt).start;for(let kr=$n.length;kr--;){const Vr=$n[kr];if(Vr.duration&&br>=Vr.startOffset&&br<Vr.startOffset+Vr.duration){en=kr;break}}}e.setSchedulePosition(st,en)}}},p=()=>{const x=e.effectivePlayingItem;if(e.isInterstitial(x))return x;const P=t();return e.isInterstitial(P)?P:null},v={get bufferedEnd(){const x=t(),P=e.bufferingItem;if(P&&P===x){var Z;return r(P,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-P.playout.start||((Z=e.bufferingAsset)==null?void 0:Z.startOffset)||0}return 0},get currentTime(){const x=p(),P=e.effectivePlayingItem;return P&&P===x?r(P,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-P.playout.start:0},set currentTime(x){const P=p(),Z=e.effectivePlayingItem;Z&&Z===P&&m(x+Z.playout.start,"playout")},get duration(){const x=p();return x?x.playout.end-x.playout.start:0},get assetPlayers(){var x;const P=(x=p())==null?void 0:x.event.assetList;return P?P.map(Z=>e.getAssetPlayer(Z.identifier)):[]},get playingIndex(){var x;const P=(x=p())==null?void 0:x.event;return P&&e.effectivePlayingAsset?P.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return p()}};return this.manager={get events(){var x;return((x=e.schedule)==null||(x=x.events)==null?void 0:x.slice(0))||[]},get schedule(){var x;return((x=e.schedule)==null||(x=x.items)==null?void 0:x.slice(0))||[]},get interstitialPlayer(){return p()?v:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const x=t();return e.findItemIndex(x)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const x=e.effectivePlayingItem;return e.findItemIndex(x)},primary:{get bufferedEnd(){return a()},get currentTime(){const x=e.timelinePos;return x>0?x:0},set currentTime(x){m(x,"primary")},get duration(){return c("primary")},get seekableStart(){var x;return((x=e.primaryDetails)==null?void 0:x.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(x){m(x,"integrated")},get duration(){return c("integrated")},get seekableStart(){var x;return i(((x=e.primaryDetails)==null?void 0:x.fragmentStart)||0,"integrated")}},skip:()=>{const x=e.effectivePlayingItem,P=x==null?void 0:x.event;if(P&&!P.restrictions.skip){const Z=e.findItemIndex(x);if(P.appendInPlace){const Y=x.playout.start+x.event.duration;m(Y+.001,"playout")}else e.advanceAfterAssetEnded(P,Z,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||!o(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} ${Ft(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 a=this.hls,c=e!==a,m=c&&e.interstitial.appendInPlace,p=(n=this.detachedData)==null?void 0:n.mediaSource;let v;if(a.media)m&&(i=a.transferMedia(),this.detachedData=i),v="Primary";else if(p){const Y=this.getBufferingPlayer();Y?(i=Y.transferMedia(),v=`${Y}`):v="detached MediaSource"}else v="detached media";if(!i){if(p)i=this.detachedData,this.log(`using detachedData: MediaSource ${Ft(i)}`);else if(!this.detachedData||a.media===t){const Y=this.playerQueue;Y.length>1&&Y.forEach(Oe=>{if(c&&Oe.interstitial.appendInPlace!==m){const Le=Oe.interstitial;this.clearInterstitial(Oe.interstitial,null),Le.appendInPlace=!1,Le.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Le}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const x=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",P=x&&i?i:t;this.log(`${x?"transfering MediaSource":"attaching media"} to ${c?e:"Primary"} from ${v} (media.currentTime: ${t.currentTime})`);const Z=this.schedule;if(P===i&&Z){const Y=c&&e.assetId===Z.assetIdAtEnd;P.overrides={duration:Z.duration,endOfStream:!c||Y,cueRemoval:!c}}e.attachMedia(P)}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 a=e.findEventIndex(t[0].identifier);this.setSchedulePosition(a)}else if(i>=0||!this.primaryLive){const a=this.timelinePos=i>0?i:0,c=e.findItemIndexAtTime(a);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 a;const c=(a=this.schedule.items)==null?void 0:a[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 a=t+1,c=i.length;if(a>=c){this.setSchedulePosition(-1);return}const m=e.resumeTime;this.timelinePos<m&&(this.log(jl("advanceAfterAssetEnded",m)),this.timelinePos=m,e.appendInPlace&&this.advanceInPlace(m),this.checkBuffer(this.bufferedPos<m)),this.setSchedulePosition(a)}}}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 a=n.findEventIndex(r),c=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,a,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&&Bs(i)}) pos: ${this.timelinePos}`);const a=this.waitingItem||this.playingItem,c=this.playingLastItem;if(this.isInterstitial(a)){const v=a.event,x=this.playingAsset,P=x==null?void 0:x.identifier,Z=P?this.getAssetPlayer(P):null;if(Z&&P&&(!this.eventItemsMatch(a,i)||t!==void 0&&P!==v.assetList[t].identifier)){var m;const Y=v.findAssetIndex(x);if(this.log(`INTERSTITIAL_ASSET_ENDED ${Y+1}/${v.assetList.length} ${tl(x)}`),this.endedAsset=x,this.playingAsset=null,this.hls.trigger(g.INTERSTITIAL_ASSET_ENDED,{asset:x,assetListIndex:Y,event:v,schedule:r.slice(0),scheduleIndex:e,player:Z}),a!==this.playingItem){this.itemsMatch(a,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(v,this.findItemIndex(this.playingItem),Y);return}this.retreiveMediaSource(P,i),Z.media&&!((m=this.detachedData)!=null&&m.mediaSource)&&Z.detachMedia()}if(!this.eventItemsMatch(a,i)&&(this.endedItem=a,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${v} ${Bs(a)}`),v.hasPlayed=!0,this.hls.trigger(g.INTERSTITIAL_ENDED,{event:v,schedule:r.slice(0),scheduleIndex:e}),v.cue.once)){var p;this.updateSchedule();const Y=(p=this.schedule)==null?void 0:p.items;if(i&&Y){const Oe=this.findItemIndex(i);this.advanceSchedule(Oe,Y,t,a,c)}return}}this.advanceSchedule(e,r,t,a,c)}advanceSchedule(e,t,n,r,i){const a=this.schedule;if(!a)return;const c=t[e]||null,m=this.primaryMedia,p=this.playerQueue;if(p.length&&p.forEach(v=>{const x=v.interstitial,P=a.findEventIndex(x.identifier);(P<e||P>e+1)&&this.clearInterstitial(x,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=a.findAssetIndex(v,this.timelinePos);const Y=iu(v,n-1);if(v.isAssetPastPlayoutLimit(Y)||v.appendInPlace&&this.timelinePos===c.end){this.advanceAfterAssetEnded(v,e,n);return}n=Y}const x=this.waitingItem;this.assetsBuffered(c,m)||this.setBufferingItem(c);let P=this.preloadAssets(v,n);if(this.eventItemsMatch(c,x||r)||(this.waitingItem=c,this.log(`INTERSTITIAL_STARTED ${Bs(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),!m){this.log(`Waiting for attachMedia to start Interstitial ${v}`);return}this.waitingItem=this.endedItem=null,this.playingItem=c;const Z=v.assetList[n];if(!Z){this.advanceAfterAssetEnded(v,e,n||0);return}if(P||(P=this.getAssetPlayer(Z.identifier)),P===null||P.destroyed){const Y=v.assetList.length;this.warn(`asset ${n+1}/${Y} player destroyed ${v}`),P=this.createAssetPlayer(v,Z,n),P.loadSource()}if(!this.eventItemsMatch(c,this.bufferingItem)&&v.appendInPlace&&this.isAssetBuffered(Z))return;this.startAssetPlayer(P,n,t,e,m),this.shouldPlay&&Fu(P.media)}else c?(this.resumePrimary(c,e,r),this.shouldPlay&&Fu(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(a.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 ${Bs(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 a=(i=this.schedule)==null?void 0:i.items;a&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Bs(e)}`),this.hls.trigger(g.INTERSTITIALS_PRIMARY_RESUMED,{schedule:a.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=T(T({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=T(T({},this.altSelection),{},{audio:n});return}const i=T(T({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=T(T({},this.altSelection),{},{subtitles:n});return}const i=T(T({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=sn(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=sn(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 a=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[a];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,a)=>{e.event.isAssetPastPlayoutLimit(a)&&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 ${Bs(e)} (was ${Bs(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 a=this.playingItem,c=this.findItemIndex(a);let m=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var p;const v=this.findItemIndex(i),x=Math.min(v+1,t.length-1),P=t[x];if((m===-1&&i&&e>=i.end||(p=P.event)!=null&&p.appendInPlace&&e+.01>=P.start)&&(m=x),this.isInterstitial(i)){const Z=i.event;if(x-c>1&&Z.appendInPlace===!1||Z.assetList.length===0&&Z.assetListLoader)return}if(this.bufferedPos=e,m>v&&m>c)this.bufferedToItem(P);else{const Z=this.primaryDetails;this.primaryLive&&Z&&e>Z.edge-Z.targetduration&&P.start<Z.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(P)&&this.preloadAssets(P.event,0)}}else n&&a&&!this.itemsMatch(a,i)&&(m===c?this.bufferedToItem(a):m===c+1&&this.bufferedToItem(t[m]))}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 a=this.isInterstitial(e),c=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const m=c?c.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Bs(e)}`+(t?` (${m.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(a){const p=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((v,x)=>{const P=this.getAssetPlayer(v.identifier);P&&(x===p&&P.loadSource(),P.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(p=>p.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 a=this.preloadAssets(n,t);if(a!=null&&a.interstitial.appendInPlace){const c=this.primaryMedia;c&&this.bufferAssetPlayer(a,c)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,a=e.cue.once;if(i){const m=e.timelineStart;if(e.appendInPlace){var c;const P=this.playingItem;!this.isInterstitial(P)&&(P==null||(c=P.nextEvent)==null?void 0:c.identifier)===e.identifier&&this.flushFrontBuffer(m+.25)}let p,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 P=v-m;P>0&&(p=Math.round(P*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${p?` live-start: ${v} start-offset: ${p}`:""}`),n)return this.createAsset(e,0,0,m,e.duration,n);const x=this.assetListLoader.loadAssetList(e,p);x&&(e.assetListLoader=x)}else if(!a&&r){for(let p=t;p<r;p++){const v=e.assetList[p],x=this.getAssetPlayerQueueIndex(v.identifier);(x===-1||this.playerQueue[x].destroyed)&&!v.error&&this.createAssetPlayer(e,v,p)}const m=e.assetList[t];if(m){const p=this.getAssetPlayer(m.identifier);return p&&p.loadSource(),p}}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,a){const c={parentIdentifier:e.identifier,identifier:Nc(e,a,t),duration:i,startOffset:n,timelineStart:r,uri:a};return this.createAssetPlayer(e,c,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let a=i.videoPreference;const c=r.loadLevelObj||r.levels[r.currentLevel];(a||c)&&(a=S({},a),c.videoCodec&&(a.videoCodec=c.videoCodec),c.videoRange&&(a.allowedVideoRanges=[c.videoRange]));const m=r.audioTracks[r.audioTrack],p=r.subtitleTracks[r.subtitleTrack];let v=0;if(this.primaryLive||e.appendInPlace){const Mt=this.timelinePos-t.timelineStart;if(Mt>1){const Wt=t.duration;Wt&&Mt<Wt&&(v=Mt)}}const x=t.identifier,P=T(T({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:x,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:v,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:a,audioPreference:m||i.audioPreference,subtitlePreference:p||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(P.timelineOffset=t.timelineStart));const Z=P.cmcd;Z!=null&&Z.sessionId&&Z.contentId&&(P.cmcd=S({},Z,{contentId:Sl(t.uri)})),this.getAssetPlayer(x)&&this.warn(`Duplicate date range identifier ${e} and asset ${x}`);const Y=new Bc(this.HlsPlayerClass,P,e,t);this.playerQueue.push(Y),e.assetList[n]=t;let Oe=!0;const Le=Mt=>{if(Mt.live){var Wt;const hn=new Error(`Interstitials MUST be VOD assets ${e}`),fn={fatal:!0,type:fe.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:hn},en=((Wt=this.schedule)==null?void 0:Wt.findEventIndex(e.identifier))||-1;this.handleAssetItemError(fn,e,en,n,hn.message);return}const Rn=Mt.edge-Mt.fragmentStart,Yt=t.duration;(Oe||Yt===null||Rn>Yt)&&(Oe=!1,this.log(`Interstitial asset "${x}" duration change ${Yt} > ${Rn}`),t.duration=Rn,this.updateSchedule())};Y.on(g.LEVEL_UPDATED,(Mt,{details:Wt})=>Le(Wt)),Y.on(g.LEVEL_PTS_UPDATED,(Mt,{details:Wt})=>Le(Wt)),Y.on(g.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const st=(Mt,Wt)=>{const Rn=this.getAssetPlayer(x);if(Rn&&Wt.tracks){Rn.off(g.BUFFER_CODECS,st),Rn.tracks=Wt.tracks;const Yt=this.primaryMedia;this.bufferingAsset===Rn.assetItem&&Yt&&!Rn.media&&this.bufferAssetPlayer(Rn,Yt)}};Y.on(g.BUFFER_CODECS,st);const mt=()=>{var Mt;const Wt=this.getAssetPlayer(x);if(this.log(`buffered to end of asset ${Wt}`),!Wt||!this.schedule)return;const Rn=this.schedule.findEventIndex(e.identifier),Yt=(Mt=this.schedule.items)==null?void 0:Mt[Rn];this.isInterstitial(Yt)&&this.advanceAssetBuffering(Yt,t)};Y.on(g.BUFFERED_TO_END,mt);const xt=Mt=>()=>{if(!this.getAssetPlayer(x)||!this.schedule)return;this.shouldPlay=!0;const Rn=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Rn,Mt)};return Y.once(g.MEDIA_ENDED,xt(n)),Y.once(g.PLAYOUT_LIMIT_REACHED,xt(1/0)),Y.on(g.ERROR,(Mt,Wt)=>{if(!this.schedule)return;const Rn=this.getAssetPlayer(x);if(Wt.details===K.BUFFER_STALLED_ERROR){if(Rn!=null&&Rn.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(Wt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${Wt.error} ${e}`)}),Y.on(g.DESTROYING,()=>{if(!this.getAssetPlayer(x)||!this.schedule)return;const Wt=new Error(`Asset player destroyed unexpectedly ${x}`),Rn={fatal:!0,type:fe.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:Wt};this.handleAssetItemError(Rn,e,this.schedule.findEventIndex(e.identifier),n,Wt.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${tl(t)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:Y}),Y}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&&Bs(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:a,assetItem:c,assetId:m}=e,p=a.assetList.length,v=this.playingAsset;this.endedAsset=null,this.playingAsset=c,(!v||v.identifier!==m)&&(v&&(this.clearAssetPlayer(v.identifier,n[r]),delete v.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${p} ${tl(c)}`),this.hls.trigger(g.INTERSTITIAL_ASSET_STARTED,{asset:c,assetListIndex:t,event:a,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:a}=e,c=this.schedule.findEventIndex(i.identifier),m=(n=this.schedule.items)==null?void 0:n[c];if(!m)return;e.loadSource(),this.setBufferingItem(m),this.bufferingAsset=a;const p=this.getBufferingPlayer();if(p===e)return;const v=i.appendInPlace;if(v&&(p==null?void 0:p.interstitial.appendInPlace)===!1)return;const x=(p==null?void 0:p.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(v&&a!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(x&&!_e(x,e.tracks)){const P=new Error(`Asset ${tl(a)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(x)}')`),Z={fatal:!0,type:fe.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:P},Y=i.findAssetIndex(a);this.handleAssetItemError(Z,i,c,Y,P.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),a=e.assetList[i];if(a){const c=this.getAssetPlayer(a.identifier);if(c){const m=c.currentTime||r-a.timelineStart,p=c.duration-m;if(this.warn(`Stalled at ${m} of ${m+p} in ${c} ${e} (media.currentTime: ${r})`),m&&(p/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===K.BUFFER_STALLED_ERROR)return;const a=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${a&&tl(a)} ${e.error}`),!this.schedule)return;const c=(a==null?void 0:a.identifier)||"",m=this.getAssetPlayerQueueIndex(c),p=this.playerQueue[m]||null,v=this.schedule.items,x=S({},e,{fatal:!1,errorAction:ln(!0),asset:a,assetListIndex:r,event:t,schedule:v,scheduleIndex:n,player:p});if(this.hls.trigger(g.INTERSTITIAL_ASSET_ERROR,x),!e.fatal)return;const P=this.playingAsset,Z=this.bufferingAsset,Y=new Error(i);if(a&&(this.clearAssetPlayer(c,null),a.error=Y),!t.assetList.some(Oe=>!Oe.error))t.error=Y;else for(let Oe=r;Oe<t.assetList.length;Oe++)this.resetAssetPlayer(t.assetList[Oe].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):P&&P.identifier===c?this.advanceAfterAssetEnded(t,n,r):Z&&Z.identifier===c&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,Z)}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: ${Bs(n)} error: ${e.error}`),r===-1&&(r=this.hls.startPosition);const a=this.updateItem(n,r);this.itemsMatch(n,a)&&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,a=i.identifier,c=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(a)))return;const m=i.timelineStart,p=i.duration;let v=0;c.forEach((Oe,Le)=>{const st=parseFloat(Oe.DURATION);this.createAsset(i,Le,v,m+v,st,Oe.URI),v+=st}),i.duration=v,this.log(`Loaded asset-list with duration: ${v} (was: ${p}) ${i}`);const x=this.waitingItem,P=(x==null?void 0:x.event.identifier)===a;this.updateSchedule();const Z=(r=this.bufferingItem)==null?void 0:r.event;if(P){var Y;const Oe=this.schedule.findEventIndex(a),Le=(Y=this.schedule.items)==null?void 0:Y[Oe];if(Le){if(!this.playingItem&&this.timelinePos>Le.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==Oe){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(Le)}this.setSchedulePosition(Oe)}else if((Z==null?void 0:Z.identifier)===a){const Oe=i.assetList[0];if(Oe){const Le=this.getAssetPlayer(Oe.identifier);if(Z.appendInPlace){const st=this.primaryMedia;Le&&st&&this.bufferAssetPlayer(Le,st)}else Le&&Le.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case K.ASSET_LIST_PARSING_ERROR:case K.ASSET_LIST_LOAD_ERROR:case K.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case K.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",oe.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=Pn.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)||(Ve(n)&&(this.fragPrevious=n),this.state=Pn.IDLE),!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let a;const c=n.start;for(let p=0;p<i.length;p++)if(c>=i[p].start&&c<=i[p].end){a=i[p];break}const m=n.start+n.duration;a?a.end=m:(a={start:c,end:m},i.push(a)),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(a=>{for(let c=0;c<a.length;){if(a[c].end<=i){a.shift();continue}else if(a[c].start<i)a[c].start=i;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(n,i,oe.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===oe.SUBTITLE&&(t.details===K.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Pn.STOPPED&&(this.state=Pn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Za(this.levels,t)){this.levels=t.map(n=>new Zt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Zt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,oe.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!==Pn.STOPPED&&this.setInterval(Lu)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:a,id:c}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const m=i[c];if(c>=i.length||!m)return;this.log(`Subtitle track ${c} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let p=0;if(a.live||(n=m.details)!=null&&n.live){if(a.deltaUpdateFailed)return;const x=this.mainDetails;if(!x){this.startFragRequested=!1;return}const P=x.fragments[0];if(!m.details)a.hasProgramDateTime&&x.hasProgramDateTime?(so(a,x),p=a.fragmentStart):P&&(p=P.start,Zs(a,p));else{var v;p=this.alignPlaylists(a,m.details,(v=this.levelLastLoaded)==null?void 0:v.details),p===0&&P&&(p=P.start,Zs(a,p))}x&&!this.startFragRequested&&this.setStartPosition(x,p)}m.details=a,this.levelLastLoaded=m,c===r&&(this.hls.trigger(g.SUBTITLE_TRACK_UPDATED,{details:a,id:c,groupId:t.groupId}),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===Pn.IDLE&&(or(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),m.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&&Sr(r.method)){const a=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Fr(r.method)).catch(c=>{throw i.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const m=performance.now();i.trigger(g.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:a,tdecrypt:m}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=Pn.IDLE})}}doTick(){if(!this.media){this.state=Pn.IDLE;return}if(this.state===Pn.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(),a=Gn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:c,len:m}=a,p=n.details,v=this.hls.maxBufferLength+p.levelTargetDuration;if(m>v)return;const x=p.fragments,P=x.length,Z=p.edge;let Y=null;const Oe=this.fragPrevious;if(c<Z){const mt=r.maxFragLookUpTolerance,xt=c>Z-mt?0:mt;Y=or(Oe,x,Math.max(x[0].start,c),xt),!Y&&Oe&&Oe.start<x[0].start&&(Y=x[0])}else Y=x[P-1];if(Y=this.filterReplacedPrimary(Y,n.details),!Y)return;const Le=Y.sn-p.startSN,st=x[Le-1];if(st&&st.cc===Y.cc&&this.fragmentTracker.getState(st)===Un.NOT_LOADED&&(Y=st),this.fragmentTracker.getState(Y)===Un.NOT_LOADED){const mt=this.mapToInitFragWhenRequired(Y);mt&&this.loadFragment(mt,n,c)}}}loadFragment(e,t,n){Ve(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Hc(this.tracksBuffered[this.currentTrackId]||[])}}class Hc{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 Wc={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},Ou=s=>String.fromCharCode(Wc[s]||s),Ks=15,po=100,Vc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Zc={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},Qc=["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;de.log(`${this.time} [${e}] ${n}`)}}}const Oo=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Pu{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 Xc{constructor(){this.uchar=" ",this.penState=new Pu}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 Jc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Pu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<po;t++)this.chars.push(new Xc);this.logger=e}equals(e){for(let t=0;t<po;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<po;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<po;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>po&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=po)}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=Ou(e);if(this.pos>=po){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<po;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<po;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class au{constructor(e){this.rows=[],this.currRow=Ks-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ks;t++)this.rows.push(new Jc(e));this.logger=e}reset(){for(let e=0;e<Ks;e++)this.rows[e].clear();this.currRow=Ks-1}equals(e){let t=!0;for(let n=0;n<Ks;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ks;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ks;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+Ft(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let c=0;c<Ks;c++)this.rows[c].clear();const i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){const c=a.rows[i].cueStartTime,m=this.logger.time;if(c!==null&&m!==null&&c<m)for(let p=0;p<this.nrRollUpRows;p++)this.rows[t-this.nrRollUpRows+p+1].copy(a.rows[i+p])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,a=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[a].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+Ft(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Ks;i++){const a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+": '"+a+"'"):t.push(a.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
|
`)),n}getTextAndFormat(){return this.rows}}class 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 au(n),this.nonDisplayedMemory=new au(n),this.lastOutputScreen=new au(n),this.currRollUpRow=this.displayedMemory.rows[Ks-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Ks-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+Ft(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class Nu{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=t0(),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 a=!1,c=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+Oo([t[n],t[n+1]])+"] -> ("+Oo([r,i])+")");const m=this.cmdHistory;if(r>=16&&r<=31){if(e0(r,i,m)){Hl(null,null,m),this.logger.log(3,()=>"Repeated command ("+Oo([r,i])+") is dropped");continue}Hl(r,i,this.cmdHistory),a=this.parseCmd(r,i),a||(a=this.parseMidrow(r,i)),a||(a=this.parsePAC(r,i)),a||(a=this.parseBackgroundAttributes(r,i))}else Hl(null,null,m);if(!a&&(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?")}!a&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Oo([r,i])+" orig: "+Oo([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,a=this.channels[i];return e===20||e===21||e===28||e===29?t===32?a.ccRCL():t===33?a.ccBS():t===34?a.ccAOF():t===35?a.ccAON():t===36?a.ccDER():t===37?a.ccRU(2):t===38?a.ccRU(3):t===39?a.ccRU(4):t===40?a.ccFON():t===41?a.ccRDC():t===42?a.ccTR():t===43?a.ccRTD():t===44?a.ccEDM():t===45?a.ccCR():t===46?a.ccENM():t===47&&a.ccEOC():a.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Oo([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const a=e<=23?1:2;t>=64&&t<=95?n=a===1?Vc[e]:Gc[e]:n=a===1?Zc[e]:Yc[e];const c=this.channels[a];return c?(c.setPAC(this.interpretPAC(n,t)),this.currentChannel=a,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let a;i===17?a=t+80:i===18?a=t+112:a=t+144,this.logger.log(2,()=>"Special char '"+Ou(a)+"' in channel "+n),r=[a]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+Oo(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const a={};e===16||e===24?(i=Math.floor((t-32)/2),a.background=Qc[i],t%2===1&&(a.background=a.background+"_semi")):t===45?a.background="transparent":(a.foreground="black",t===47&&(a.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(a),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}Hl(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 Hl(s,e,t){t.a=s,t.b=e}function e0(s,e,t){return t.a===s&&t.b===e}function t0(){return{a:null,b:null}}var su=function(){if(ei!=null&&ei.VTTCue)return self.VTTCue;const s=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,m){if(typeof m!="string"||!Array.isArray(c))return!1;const p=m.toLowerCase();return~c.indexOf(p)?p:!1}function n(c){return t(s,c)}function r(c){return t(e,c)}function i(c,...m){let p=1;for(;p<arguments.length;p++){const v=arguments[p];for(const x in v)c[x]=v[x]}return c}function a(c,m,p){const v=this,x={enumerable:!0};v.hasBeenReset=!1;let P="",Z=!1,Y=c,Oe=m,Le=p,st=null,mt="",xt=!0,Mt="auto",Wt="start",Rn=50,Yt="middle",hn=50,fn="middle";Object.defineProperty(v,"id",i({},x,{get:function(){return P},set:function(en){P=""+en}})),Object.defineProperty(v,"pauseOnExit",i({},x,{get:function(){return Z},set:function(en){Z=!!en}})),Object.defineProperty(v,"startTime",i({},x,{get:function(){return Y},set:function(en){if(typeof en!="number")throw new TypeError("Start time must be set to a number.");Y=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"endTime",i({},x,{get:function(){return Oe},set:function(en){if(typeof en!="number")throw new TypeError("End time must be set to a number.");Oe=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"text",i({},x,{get:function(){return Le},set:function(en){Le=""+en,this.hasBeenReset=!0}})),Object.defineProperty(v,"region",i({},x,{get:function(){return st},set:function(en){st=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"vertical",i({},x,{get:function(){return mt},set:function(en){const $n=n(en);if($n===!1)throw new SyntaxError("An invalid or illegal string was specified.");mt=$n,this.hasBeenReset=!0}})),Object.defineProperty(v,"snapToLines",i({},x,{get:function(){return xt},set:function(en){xt=!!en,this.hasBeenReset=!0}})),Object.defineProperty(v,"line",i({},x,{get:function(){return Mt},set:function(en){if(typeof en!="number"&&en!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Mt=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"lineAlign",i({},x,{get:function(){return Wt},set:function(en){const $n=r(en);if(!$n)throw new SyntaxError("An invalid or illegal string was specified.");Wt=$n,this.hasBeenReset=!0}})),Object.defineProperty(v,"position",i({},x,{get:function(){return Rn},set:function(en){if(en<0||en>100)throw new Error("Position must be between 0 and 100.");Rn=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",i({},x,{get:function(){return Yt},set:function(en){const $n=r(en);if(!$n)throw new SyntaxError("An invalid or illegal string was specified.");Yt=$n,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",i({},x,{get:function(){return hn},set:function(en){if(en<0||en>100)throw new Error("Size must be between 0 and 100.");hn=en,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",i({},x,{get:function(){return fn},set:function(en){const $n=r(en);if(!$n)throw new SyntaxError("An invalid or illegal string was specified.");fn=$n,this.hasBeenReset=!0}})),v.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();class n0{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Uu(s){function e(n,r,i,a){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(a||0)}const t=s.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 r0{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 Mu(s,e,t,n){const r=n?s.split(n):[s];for(const i in r){if(typeof r[i]!="string")continue;const a=r[i].split(t);if(a.length!==2)continue;const c=a[0],m=a[1];e(c,m)}}const ou=new su(0,0,""),Wl=ou.align==="middle"?"middle":"center";function i0(s,e,t){const n=s;function r(){const c=Uu(s);if(c===null)throw new Error("Malformed timestamp: "+n);return s=s.replace(/^[^\sa-zA-Z-]+/,""),c}function i(c,m){const p=new r0;Mu(c,function(P,Z){let Y;switch(P){case"region":for(let Oe=t.length-1;Oe>=0;Oe--)if(t[Oe].id===Z){p.set(P,t[Oe].region);break}break;case"vertical":p.alt(P,Z,["rl","lr"]);break;case"line":Y=Z.split(","),p.integer(P,Y[0]),p.percent(P,Y[0])&&p.set("snapToLines",!1),p.alt(P,Y[0],["auto"]),Y.length===2&&p.alt("lineAlign",Y[1],["start",Wl,"end"]);break;case"position":Y=Z.split(","),p.percent(P,Y[0]),Y.length===2&&p.alt("positionAlign",Y[1],["start",Wl,"end","line-left","line-right","auto"]);break;case"size":p.percent(P,Z);break;case"align":p.alt(P,Z,["start",Wl,"end","left","right"]);break}},/:/,/\s/),m.region=p.get("region",null),m.vertical=p.get("vertical","");let v=p.get("line","auto");v==="auto"&&ou.line===-1&&(v=-1),m.line=v,m.lineAlign=p.get("lineAlign","start"),m.snapToLines=p.get("snapToLines",!0),m.size=p.get("size",100),m.align=p.get("align",Wl);let x=p.get("position","auto");x==="auto"&&ou.position===50&&(x=m.align==="start"||m.align==="left"?0:m.align==="end"||m.align==="right"?100:50),m.position=x}function a(){s=s.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),s.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);s=s.slice(3),a(),e.endTime=r(),a(),i(s,e)}function Bu(s){return s.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class a0{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new n0,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,a=0;for(i=Bu(i);a<i.length&&i[a]!=="\r"&&i[a]!==`
|
|
|
`;)++a;const c=i.slice(0,a);return i[a]==="\r"&&++a,i[a]===`
|
|
|
`&&++a,t.buffer=i.slice(a),c}function r(i){Mu(i,function(a,c){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const c=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let a=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new su(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{i0(i,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=i.indexOf("-->")!==-1;if(!i||c&&(a=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
|
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const s0=/\r\n|\n\r|\n|\r/g,lu=function(e,t,n=0){return e.slice(n,n+t.length)===t},o0=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(!o(t)||!o(n)||!o(r)||!o(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(s,e,t){return Sl(s.toString())+Sl(e.toString())+Sl(t)}const l0=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(a=i)!=null&&a.new;){var a;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function u0(s,e,t,n,r,i,a){const c=new a0,m=Te(new Uint8Array(s)).trim().replace(s0,`
|
|
|
`).split(`
|
|
|
`),p=[],v=e?Yi(e.baseTime,e.timescale):0;let x="00:00.000",P=0,Z=0,Y,Oe=!0;c.oncue=function(Le){const st=t[n];let mt=t.ccOffset;const xt=(P-v)/9e4;if(st!=null&&st.new&&(Z!==void 0?mt=t.ccOffset=st.start:l0(t,n,xt)),xt){if(!e){Y=new Error("Missing initPTS for VTT MPEGTS");return}mt=xt-t.presentationOffset}const Mt=Le.endTime-Le.startTime,Wt=Wi((Le.startTime+mt-Z)*9e4,r*9e4)/9e4;Le.startTime=Math.max(Wt,0),Le.endTime=Math.max(Wt+Mt,0);const Rn=Le.text.trim();Le.text=decodeURIComponent(encodeURIComponent(Rn)),Le.id||(Le.id=uu(Le.startTime,Le.endTime,Rn)),Le.endTime>0&&p.push(Le)},c.onparsingerror=function(Le){Y=Le},c.onflush=function(){if(Y){a(Y);return}i(p)},m.forEach(Le=>{if(Oe)if(lu(Le,"X-TIMESTAMP-MAP=")){Oe=!1,Le.slice(16).split(",").forEach(st=>{lu(st,"LOCAL:")?x=st.slice(6):lu(st,"MPEGTS:")&&(P=parseInt(st.slice(7)))});try{Z=o0(x)/1e3}catch(st){Y=st}return}else Le===""&&(Oe=!1);c.parse(Le+`
|
|
|
`)}),c.flush()}const cu="stpp.ttml.im1t",Ku=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,zu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,c0={left:"start",center:"center",right:"end",start:"start",end:"end"};function $u(s,e,t,n){const r=ie(new Uint8Array(s),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(c=>Te(c)),a=Qr(e.baseTime,1,e.timescale);try{i.forEach(c=>t(d0(c,a)))}catch(c){n(c)}}function d0(s,e){const r=new DOMParser().parseFromString(s,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(i).reduce((x,P)=>(x[P]=r.getAttribute(`ttp:${P}`)||i[P],x),{}),c=r.getAttribute("xml:space")!=="preserve",m=ju(du(r,"styling","style")),p=ju(du(r,"layout","region")),v=du(r,"body","[begin]");return[].map.call(v,x=>{const P=Hu(x,c);if(!P||!x.hasAttribute("begin"))return null;const Z=hu(x.getAttribute("begin"),a),Y=hu(x.getAttribute("dur"),a);let Oe=hu(x.getAttribute("end"),a);if(Z===null)throw Wu(x);if(Oe===null){if(Y===null)throw Wu(x);Oe=Z+Y}const Le=new su(Z-e,Oe-e,P);Le.id=uu(Le.startTime,Le.endTime,Le.text);const st=p[x.getAttribute("region")],mt=m[x.getAttribute("style")],xt=f0(st,mt,m),{textAlign:Mt}=xt;if(Mt){const Wt=c0[Mt];Wt&&(Le.lineAlign=Wt),Le.align=Mt}return S(Le,xt),Le}).filter(x=>x!==null)}function du(s,e,t){const n=s.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function ju(s){return s.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Hu(s,e){return[].slice.call(s.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
|
`:(i=n.childNodes)!=null&&i.length?Hu(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function f0(s,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=s!=null&&s.hasAttribute("style")?s.getAttribute("style"):null;return a&&t.hasOwnProperty(a)&&(r=t[a]),i.reduce((c,m)=>{const p=fu(e,n,m)||fu(s,n,m)||fu(r,n,m);return p&&(c[m]=p),c},{})}function fu(s,e,t){return s&&s.hasAttributeNS(e,t)?s.getAttributeNS(e,t):null}function Wu(s){return new Error(`Could not parse ttml timestamp ${s}`)}function hu(s,e){if(!s)return null;let t=Uu(s);return t===null&&(Ku.test(s)?t=h0(s,e):zu.test(s)&&(t=p0(s,e))),t}function h0(s,e){const t=Ku.exec(s),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 p0(s,e){const t=zu.exec(s),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 Vl{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 m0{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 Vl(this,"textTrack1"),t=new Vl(this,"textTrack2"),n=new Vl(this,"textTrack3"),r=new Vl(this,"textTrack4");this.cea608Parser1=new Nu(1,e,t),this.cea608Parser2=new Nu(3,n,r)}addCues(e,t,n,r,i){let a=!1;for(let c=i.length;c--;){const m=i[c],p=g0(m[0],m[1],t,n);if(p>=0&&(m[0]=Math.min(m[0],t),m[1]=Math.max(m[1],n),a=!0,p/(n-t)>.5))return}if(a||i.push([t,n]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,n,r)}else{const c=this.Cues.newCue(null,t,n,r);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i,trackId:a}){const{unparsedVttFrags:c}=this;n===oe.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i,trackId:a}),c.length&&(this.unparsedVttFrags=[],c.forEach(m=>{this.initPTS[m.frag.cc]?this.onFragLoaded(g.FRAG_LOADED,m):this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m.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(Zu(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:a}=t[e],c=this.getExistingTrack(i,a);if(c)n[e]=c,Jo(n[e]),Tu(n[e],r);else{const m=this.createTextTrack("captions",i,a);m&&(m[e]=!0,n[e]=m)}}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=>{Jo(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++)Jo(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(Za(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const a=this.media,c=a?zl(a.textTracks):null;if(this.tracks.forEach((m,p)=>{let v;if(c){let x=null;for(let P=0;P<c.length;P++)if(c[P]&&Zu(c[P],m)){x=c[P],c[P]=null;break}x&&(v=x)}if(v)Jo(v);else{const x=Vu(m);v=this.createTextTrack(x,m.name,m.lang),v&&(v.mode="disabled")}v&&this.textTracks.push(v)}),c!=null&&c.length){const m=c.filter(p=>p!==null).map(p=>p.label);m.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${m.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const a=this.tracks.map(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:a})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,a=this.captionsProperties[i];a&&(a.label=n.name,n.lang&&(a.languageCode=n.lang),a.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===oe.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:a,lastSn:c}=this,{cc:m,sn:p}=t.frag,v=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&a&&(p!==c+1||p===c&&v!==this.lastPartIndex+1||m!==this.lastCc)&&(i.reset(),a.reset()),this.lastCc=m,this.lastSn=p,this.lastPartIndex=v}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===oe.SUBTITLE)if(r.byteLength){const i=n.decryptdata,a="stats"in t;if(i==null||!i.encrypted||a){const c=this.tracks[n.level],m=this.vttCCs;m[n.cc]||(m[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;$u(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:a}=this,c=i.length-1;if(!i[n.cc]&&c===-1){a.push(e);return}const m=this.hls,p=(t=n.initSegment)!=null&&t.data?ct(n.initSegment.data,new Uint8Array(r)).buffer:r;u0(p,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,v=>{this._appendCues(v,n.level),m.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},v=>{const x=v.message==="Missing initPTS for VTT MPEGTS";x?a.push(e):this._fallbackToIMSC1(n,r),m.logger.log(`Failed to parse VTT cue: ${v}`),!(x&&c>n.cc)&&m.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:v})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||$u(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=>Ru(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===oe.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===oe.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const a=r[i].bytes;if(a){this.cea608Parser1||this.initCea608Parsers();const c=this.extractCea608Data(a);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:a}=this;if(!(!a||a.currentTime<n)){if(!i||i==="video"){const{captionsTracks:c}=this;Object.keys(c).forEach(m=>nu(c[m],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(m=>nu(c[m],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const a=e[r++],c=127&e[r++],m=127&e[r++];if(c===0&&m===0)continue;if((4&a)!==0){const v=3&a;(v===0||v===1)&&(t[v].push(c),t[v].push(m))}}return t}}function Vu(s){return s.characteristics&&/transcribes-spoken-dialog/gi.test(s.characteristics)&&/describes-music-and-sound/gi.test(s.characteristics)?"captions":"subtitles"}function Zu(s,e){return!!s&&s.kind===Vu(e)&&fo(e,s)}function g0(s,e,t,n){return Math.min(e,n)-Math.max(s,t)}function Gu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const v0=/\s/,y0={newCue(s,e,t,n){const r=[];let i,a,c,m,p;const v=self.VTTCue||self.TextTrackCue;for(let P=0;P<n.rows.length;P++)if(i=n.rows[P],c=!0,m=0,p="",!i.isEmpty()){var x;for(let Oe=0;Oe<i.chars.length;Oe++)v0.test(i.chars[Oe].uchar)&&c?m++:(p+=i.chars[Oe].uchar,c=!1);i.cueStartTime=e,e===t&&(t+=1e-4),m>=16?m--:m++;const Z=Bu(p.trim()),Y=uu(e,t,Z);s!=null&&(x=s.cues)!=null&&x.getCueById(Y)||(a=new v(e,t,Z),a.id=Y,a.line=P+1,a.align="left",a.position=10+Math.min(80,Math.floor(m*8/32)*10),r.push(a))}return s&&r.length&&(r.sort((P,Z)=>P.line==="auto"||Z.line==="auto"?0:P.line>8&&Z.line>8?Z.line-P.line:P.line-Z.line),r.forEach(P=>Ru(s,P))),r}};function b0(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(s){}return!1}const S0=/(\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||A0,this.controller=new self.AbortController,this.stats=new R}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=x0(e,this.controller.signal),a=e.responseType==="arraybuffer",c=a?"byteLength":"length",{maxTimeToFirstByteMs:m,maxLoadTimeMs:p}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=m&&o(m)?m:p,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Vi(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(x=>{var P;this.response=this.loader=x;const Z=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=p,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},p-(Z-r.loading.start)),!x.ok){const{status:Oe,statusText:Le}=x;throw new C0(Le||"fetch, bad network response",Oe,x)}r.loading.first=Z,r.total=_0(x.headers)||r.total;const Y=(P=this.callbacks)==null?void 0:P.onProgress;return Y&&o(t.highWaterMark)?this.loadProgressively(x,r,e,t.highWaterMark,Y):a?x.arrayBuffer():e.responseType==="json"?x.json():x.text()}).then(x=>{var P,Z;const Y=this.response;if(!Y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const Oe=x[c];Oe&&(r.loaded=r.total=Oe);const Le={url:Y.url,data:x,code:Y.status},st=(P=this.callbacks)==null?void 0:P.onProgress;st&&!o(t.highWaterMark)&&st(r,e,x,Y),(Z=this.callbacks)==null||Z.onSuccess(Le,r,e,Y)}).catch(x=>{var P;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const Z=x&&x.code||0,Y=x?x.message:null;(P=this.callbacks)==null||P.onError({code:Z,text:Y},e,x?x.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const a=new Us,c=e.body.getReader(),m=()=>c.read().then(p=>{if(p.done)return a.dataLength&&i(t,n,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const v=p.value,x=v.length;return t.loaded+=x,x<r||a.dataLength?(a.push(v),a.dataLength>=r&&i(t,n,a.flush().buffer,e)):i(t,n,v.buffer,e),m()}).catch(()=>Promise.reject());return m()}}function x0(s,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(S({},s.headers))};return s.rangeEnd&&t.headers.set("Range","bytes="+s.rangeStart+"-"+String(s.rangeEnd-1)),t}function E0(s){const e=S0.exec(s);if(e)return parseInt(e[2])-parseInt(e[1])+1}function _0(s){const e=s.get("Content-Range");if(e){const n=E0(e);if(o(n))return n}const t=s.get("Content-Length");if(t)return parseInt(t)}function A0(s,e){return new self.Request(s.url,e)}class C0 extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const w0=/^age:\s*[\d.]+\s*$/im;class Qu{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 R,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(a=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(a=>{var c;(c=this.callbacks)==null||c.onError({code:n.status,text:a.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const c in r)e.setRequestHeader(c,r[c]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&o(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const p=t.status,v=t.responseType==="text"?t.responseText:null;if(p>=200&&p<300){const Y=v!=null?v:t.response;if(Y!=null){var a,c;n.loading.end=Math.max(self.performance.now(),n.loading.first);const Oe=t.responseType==="arraybuffer"?Y.byteLength:Y.length;n.loaded=n.total=Oe,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Le=(a=this.callbacks)==null?void 0:a.onProgress;Le&&Le(n,e,Y,t);const st={url:t.responseURL,data:Y,code:p};(c=this.callbacks)==null||c.onSuccess(st,n,e,t);return}}const x=i.loadPolicy.errorRetry,P=n.retry,Z={url:e.url,data:void 0,code:p};if(Kr(x,P,!1,Z))this.retry(x);else{var m;de.error(`${p} while loading ${e.url}`),(m=this.callbacks)==null||m.onError({code:p,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Kr(e,t,!0))this.retry(e);else{var n;de.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++,de.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&&w0.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 T0={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},R0=T(T({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Qu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ar,bufferController:Ja,capLevelController:vs,errorController:an,fpsController:Fc,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:pa,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:T0},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},D0()),{},{subtitleStreamController:jc,subtitleTrackController:Pc,timelineController:m0,audioStreamController:za,audioTrackController:ca,emeController:Xo,cmcdController:Tc,contentSteeringController:Dc,interstitialsController:$c});function D0(){return{cueHandler:y0,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 I0(s,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=pu(s),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(a=>{const c=`${a==="level"?"playlist":a}LoadPolicy`,m=e[c]===void 0,p=[];i.forEach(v=>{const x=`${a}Loading${v}`,P=e[x];if(P!==void 0&&m){p.push(x);const Z=n[c].default;switch(e[c]={default:Z},v){case"TimeOut":Z.maxLoadTimeMs=P,Z.maxTimeToFirstByteMs=P;break;case"MaxRetry":Z.errorRetry.maxNumRetry=P,Z.timeoutRetry.maxNumRetry=P;break;case"RetryDelay":Z.errorRetry.retryDelayMs=P,Z.timeoutRetry.retryDelayMs=P;break;case"MaxRetryTimeout":Z.errorRetry.maxRetryDelayMs=P,Z.timeoutRetry.maxRetryDelayMs=P;break}}}),p.length&&t.warn(`hls.js config: "${p.join('", "')}" setting(s) are deprecated, use "${c}": ${Ft(e[c])}`)}),T(T({},n),e)}function pu(s){return s&&typeof s=="object"?Array.isArray(s)?s.map(pu):Object.keys(s).reduce((e,t)=>(e[t]=pu(s[t]),e),{}):s}function F0(s,e){const t=s.loader;t!==Yu&&t!==Qu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),s.progressive=!1):b0()&&(s.loader=Yu,s.progressive=!0,s.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Zl=2,L0=.1,O0=.05,P0=100;class k0 extends Oi{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(P0),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ua(n,"playing",this.onMediaPlaying),Ua(n,"waiting",this.onMediaWaiting),Ua(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Va(n,"playing",this.onMediaPlaying),Va(n,"waiting",this.onMediaWaiting),Va(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 a=this.media;if(!a)return;const{seeking:c}=a,m=this.seeking&&!c,p=!this.seeking&&c,v=a.paused&&!c||a.ended||a.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(p||m){m&&this.stallResolved(e);return}if(v){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&a.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1}));return}if(!Gn.getBuffered(a).length){this.nudgeRetry=0;return}const x=Gn.bufferInfo(a,e,0),P=x.nextStart||0,Z=this.fragmentTracker;if(c&&Z&&this.hls){const Rn=qu(this.hls.inFlightFragments,e),Yt=x.len>Zl,hn=!P||Rn||P-e>Zl&&!Z.getPartialFragment(e);if(Yt||hn)return;this.moved=!1}const Y=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&Z){if(!(x.len>0)&&!P)return;const Yt=Math.max(P,x.start||0)-e,fn=!!(Y!=null&&Y.live)?Y.targetduration*2:Zl,en=Gl(e,Z);if(Yt>0&&(Yt<=fn||en)){a.paused||this._trySkipBufferHole(en);return}}const Oe=i.detectStallWithCurrentTimeMs,Le=self.performance.now(),st=this.waiting;let mt=this.stalled;if(mt===null)if(st>0&&Le-st<Oe)mt=this.stalled=st;else{this.stalled=Le;return}const xt=Le-mt;if(!c&&(xt>=Oe||st)&&this.hls){var Mt;if(((Mt=this.mediaSource)==null?void 0:Mt.readyState)==="ended"&&!(Y!=null&&Y.live)&&Math.abs(e-((Y==null?void 0:Y.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(x),!this.media||!this.hls)return}const Wt=Gn.bufferInfo(a,e,i.maxBufferHole);this._tryFixBufferStall(Wt,xt,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 a=Gn.timeRangesToArray(r),c=Gn.bufferedInfo(a,t,0).bufferedIndex;if(c>-1&&c<a.length-1){const m=Gn.bufferedInfo(a,e,0).bufferedIndex,p=a[c].end,v=a[c+1].start;if((m===-1||m>c)&&v-p<1&&e-p<2){const x=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${p} -> ${v} buffered index: ${m}`);this.warn(x.message),this.media.currentTime+=1e-6;let P=Gl(e,this.fragmentTracker);P&&"fragment"in P?P=P.fragment:P||(P=void 0);const Z=Gn.bufferInfo(this.media,e,0);this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:x,reason:x.message,frag:P,buffer:Z.len,bufferInfo:Z})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:a,media:c}=this,m=(r=this.hls)==null?void 0:r.config;if(!c||!a||!m)return;const p=(i=this.hls)==null?void 0:i.latestLevelDetails,v=Gl(n,a);if((v||p!=null&&p.live&&n<p.fragmentStart)&&(this._trySkipBufferHole(v)||!this.media))return;const x=e.buffered,P=this.adjacentTraversal(e,n);(x&&x.length>1&&e.len>m.maxBufferHole||e.nextStart&&(e.nextStart-n<m.maxBufferHole||P))&&(t>m.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,oe.MAIN),a=n.getFragAtPos(r,oe.MAIN);if(i&&a)return a.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 a=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${Ft(e)})`);this.warn(a.message),t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.BUFFER_STALLED_ERROR,fatal:!1,error:a,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 a=r.currentTime,c=Gn.bufferInfo(r,a,0),m=a<c.start?c.start:c.nextStart;if(m&&this.hls){const v=c.len<=i.maxBufferHole,x=c.len>0&&c.len<1&&r.readyState<3,P=m-a;if(P>0&&(v||x)){if(P>i.maxBufferHole){let Y=!1;if(a===0){const Oe=n.getAppendedFrag(0,oe.MAIN);Oe&&m<Oe.end&&(Y=!0)}if(!Y&&e){var p;if(!((p=this.hls.loadLevelObj)!=null&&p.details)||qu(this.hls.inFlightFragments,m))return 0;let Le=!1,st=e.end;for(;st<m;){const mt=Gl(st,n);if(mt)st+=mt.duration;else{Le=!0;break}}if(Le)return 0}}const Z=Math.max(m+O0,a+L0);if(this.warn(`skipping hole, adjusting currentTime from ${a} to ${Z}`),this.moved=!0,r.currentTime=Z,!(e!=null&&e.gap)){const Y=new Error(`fragment loaded with buffer holes, seeking from ${a} to ${Z}`),Oe={type:fe.MEDIA_ERROR,details:K.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Y,reason:Y.message,buffer:c.len,bufferInfo:c};e&&("fragment"in e?Oe.part=e:Oe.frag=e),this.hls.trigger(g.ERROR,Oe)}return Z}}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 a=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const c=a+(r+1)*i.nudgeOffset,m=new Error(`Nudging 'currentTime' from ${a} to ${c}`);this.warn(m.message),n.currentTime=c,t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.BUFFER_NUDGE_ON_STALL,error:m,fatal:!1,buffer:e.len,bufferInfo:e})}else{const c=new Error(`Playhead still not moving while enough data buffered @${a} after ${i.nudgeMaxRetry} nudges`);this.error(c.message),t.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.BUFFER_STALLED_ERROR,error:c,fatal:!0,buffer:e.len,bufferInfo:e})}}}function qu(s,e){const t=Xu(s.main);if(t&&t.start<=e)return t;const n=Xu(s.audio);return n&&n.start<=e?n:null}function Xu(s){if(!s)return null;switch(s.state){case Pn.IDLE:case Pn.STOPPED:case Pn.ENDED:case Pn.ERROR:return null}return s.frag}function Gl(s,e){return e.getAppendedFrag(s,oe.MAIN)||e.getPartialFragment(s)}const N0=.25;function mu(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function gu(s,e,t,n,r){let i=new s(e,t,"");try{i.value=n,r&&(i.type=r)}catch(a){i=new s(e,t,Ft(r?T({type:r},n):n))}return i}const Yl=(()=>{const s=mu();try{s&&new s(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class U0{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&&Jo(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 Tu(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 a=mu();if(a)for(let c=0;c<i.length;c++){const m=i[c].type;if(m===Ke.emsg&&!n||!r)continue;const p=Ro(i[c].data),v=i[c].pts;let x=v+i[c].duration;x>Yl&&(x=Yl),x-v<=0&&(x=v+N0);for(let Z=0;Z<p.length;Z++){const Y=p[Z];if(!Go(Y)){this.updateId3CueEnds(v,m);const Oe=gu(a,v,x,Y,m);Oe&&this.id3Track.addCue(Oe)}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const a=r[i];a.type===t&&a.startTime<e&&a.endTime===Yl&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:m}}=a;if(i&&(c||m)){let p;r==="audio"?p=v=>v.type===Ke.audioId3&&m:r==="video"?p=v=>v.type===Ke.emsg&&c:p=v=>v.type===Ke.audioId3&&m||v.type===Ke.emsg&&c,nu(i,t,n,p)}}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:a}=this.hls.config;if(!i)return;const c=mu();if(n&&r&&!a){const{fragmentStart:Oe,fragmentEnd:Le}=e;let st=this.assetCue;st?(st.startTime=Oe,st.endTime=Le):c&&(st=this.assetCue=gu(c,Oe,Le,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),st&&(st.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(st),st.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:m}=this,{dateRanges:p}=e,v=Object.keys(p);let x=this.dateRangeCuesAppended;if(m&&t){var P;if((P=m.cues)!=null&&P.length){const Oe=Object.keys(x).filter(Le=>!v.includes(Le));for(let Le=Oe.length;Le--;){var Z;const st=Oe[Le],mt=(Z=x[st])==null?void 0:Z.cues;delete x[st],mt&&Object.keys(mt).forEach(xt=>{const Mt=mt[xt];if(Mt){Mt.removeEventListener("enter",this.onEventCueEnter);try{m.removeCue(Mt)}catch(Wt){}}})}}else x=this.dateRangeCuesAppended={}}const Y=e.fragments[e.fragments.length-1];if(!(v.length===0||!o(Y==null?void 0:Y.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let Oe=0;Oe<v.length;Oe++){const Le=v[Oe],st=p[Le],mt=st.startTime,xt=x[Le],Mt=(xt==null?void 0:xt.cues)||{};let Wt=(xt==null?void 0:xt.durationKnown)||!1,Rn=Yl;const{duration:Yt,endDate:hn}=st;if(hn&&Yt!==null)Rn=mt+Yt,Wt=!0;else if(st.endOnNext&&!Wt){const en=v.reduce(($n,br)=>{if(br!==st.id){const kr=p[br];if(kr.class===st.class&&kr.startDate>st.startDate&&(!$n||st.startDate<$n.startDate))return kr}return $n},null);en&&(Rn=en.startTime,Wt=!0)}const fn=Object.keys(st.attr);for(let en=0;en<fn.length;en++){const $n=fn[en];if(!da($n))continue;const br=Mt[$n];if(br)Wt&&!(xt!=null&&xt.durationKnown)?br.endTime=Rn:Math.abs(br.startTime-mt)>.01&&(br.startTime=mt,br.endTime=Rn);else if(c){let kr=st.attr[$n];Sa($n)&&(kr=B(kr));const Nr=gu(c,mt,Rn,{key:$n,data:kr},Ke.dateRange);Nr&&(Nr.id=Le,this.id3Track.addCue(Nr),Mt[$n]=Nr,a&&($n==="X-ASSET-LIST"||$n==="X-ASSET-URL")&&Nr.addEventListener("enter",this.onEventCueEnter))}}x[Le]={cues:Mt,dateRange:st,durationKnown:Wt}}}}}class M0{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:a}=this.config;if(!i||a===1||!n.live)return;const c=this.targetLatency;if(c===null)return;const m=r-c,p=Math.min(this.maxLatency,c+n.targetduration);if(m<p&&m>.05&&this.forwardBufferLength>1){const x=Math.min(2,Math.max(1,a)),P=Math.round(2/(1+Math.exp(-.75*m-this.edgeStalled))*20)/20,Z=Math.min(x,Math.max(1,P));this.changeMediaPlaybackRate(t,Z)}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:a,lowLatencyMode:c}=this.config,m=this.hls.userConfig;let p=c&&n||t;(this._targetLatencyUpdated||m.liveSyncDuration||m.liveSyncDurationCount||p===0)&&(p=i!==void 0?i:a*r);const v=r;return p+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,a=r-n.totalduration,c=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,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===K.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 B0 extends ha{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={},a={};let c=!1,m=!1,p=!1;t.levels.forEach(v=>{const x=v.attrs;let{audioCodec:P,videoCodec:Z}=v;P&&(v.audioCodec=P=Ee(P,n)||void 0),Z&&(Z=v.videoCodec=un(Z));const{width:Y,height:Oe,unknownCodecs:Le}=v,st=(Le==null?void 0:Le.length)||0;if(c||(c=!!(Y&&Oe)),m||(m=!!Z),p||(p=!!P),st||P&&!this.isAudioSupported(P)||Z&&!this.isVideoSupported(Z)){this.log(`Some or all CODECS not supported "${x.CODECS}"`);return}const{CODECS:mt,"FRAME-RATE":xt,"HDCP-LEVEL":Mt,"PATHWAY-ID":Wt,RESOLUTION:Rn,"VIDEO-RANGE":Yt}=x,fn=`${`${Wt||"."}-`}${v.bitrate}-${Rn}-${xt}-${mt}-${Yt}-${Mt}`;if(i[fn])if(i[fn].uri!==v.url&&!v.attrs["PATHWAY-ID"]){const en=a[fn]+=1;v.attrs["PATHWAY-ID"]=new Array(en+1).join(".");const $n=this.createLevel(v);i[fn]=$n,r.push($n)}else i[fn].addGroupId("audio",x.AUDIO),i[fn].addGroupId("text",x.SUBTITLES);else{const en=this.createLevel(v);i[fn]=en,a[fn]=1,r.push(en)}}),this.filterAndSortMediaOptions(r,t,c,m,p)}createLevel(e){const t=new Zt(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 rt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return rt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){var a;let c=[],m=[],p=e;const v=((a=t.stats)==null?void 0:a.parsing)||{};if((n||r)&&i&&(p=p.filter(({videoCodec:mt,videoRange:xt,width:Mt,height:Wt})=>(!!mt||!!(Mt&&Wt))&&Dt(xt))),p.length===0){Promise.resolve().then(()=>{if(this.hls){let mt="no level with compatible codecs found in manifest",xt=mt;t.levels.length&&(xt=`one or more CODECS in variant not supported: ${Ft(t.levels.map(Wt=>Wt.attrs.CODECS).filter((Wt,Rn,Yt)=>Yt.indexOf(Wt)===Rn))}`,this.warn(xt),mt+=` (${xt})`);const Mt=new Error(mt);this.hls.trigger(g.ERROR,{type:fe.MEDIA_ERROR,details:K.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Mt,reason:xt})}}),v.end=performance.now();return}t.audioTracks&&(c=t.audioTracks.filter(mt=>!mt.audioCodec||this.isAudioSupported(mt.audioCodec)),Ju(c)),t.subtitles&&(m=t.subtitles,Ju(m));const x=p.slice(0);p.sort((mt,xt)=>{if(mt.attrs["HDCP-LEVEL"]!==xt.attrs["HDCP-LEVEL"])return(mt.attrs["HDCP-LEVEL"]||"")>(xt.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&mt.height!==xt.height)return mt.height-xt.height;if(mt.frameRate!==xt.frameRate)return mt.frameRate-xt.frameRate;if(mt.videoRange!==xt.videoRange)return Et.indexOf(mt.videoRange)-Et.indexOf(xt.videoRange);if(mt.videoCodec!==xt.videoCodec){const Mt=Se(mt.videoCodec),Wt=Se(xt.videoCodec);if(Mt!==Wt)return Wt-Mt}if(mt.uri===xt.uri&&mt.codecSet!==xt.codecSet){const Mt=We(mt.codecSet),Wt=We(xt.codecSet);if(Mt!==Wt)return Wt-Mt}return mt.averageBitrate!==xt.averageBitrate?mt.averageBitrate-xt.averageBitrate:0});let P=x[0];if(this.steering&&(p=this.steering.filterParsedLevels(p),p.length!==x.length)){for(let mt=0;mt<x.length;mt++)if(x[mt].pathwayId===p[0].pathwayId){P=x[mt];break}}this._levels=p;for(let mt=0;mt<p.length;mt++)if(p[mt]===P){var Z;this._firstLevel=mt;const xt=P.bitrate,Mt=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${p.length} level(s) found, first bitrate: ${xt}`),((Z=this.hls.userConfig)==null?void 0:Z.abrEwmaDefaultEstimate)===void 0){const Wt=Math.min(xt,this.hls.config.abrEwmaDefaultEstimateMax);Wt>Mt&&Mt===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Wt)}break}const Y=i&&!r,Oe=this.hls.config,Le=!!(Oe.audioStreamController&&Oe.audioTrackController),st={levels:p,audioTracks:c,subtitleTracks:m,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:Le&&!Y&&c.some(mt=>!!mt.url)};v.end=performance.now(),this.hls.trigger(g.MANIFEST_PARSED,st)}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"),x=e<0;if(this.hls.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.LEVEL_SWITCH_ERROR,level:e,fatal:x,error:v,reason:v.message}),x)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,a=t[e],c=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&r&&i===c)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${c?" with Pathway "+c:""} from level ${n}${i?" with Pathway "+i:""}`);const m={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(g.LEVEL_SWITCHING,m);const p=a.details;if(!p||p.live){const v=this.switchParams(a.uri,r==null?void 0:r.details,p);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===re.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===oe.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,a=t.levelInfo;if(!a){var c;this.warn(`Invalid level index ${r}`),(c=t.deliveryDirectives)!=null&&c.skip&&(i.deltaUpdateFailed=!0);return}if(a===this.currentLevel||t.withoutMultiVariant){a.fragmentError===0&&(a.loadError=0);let m=a.details;m===t.details&&m.advanced&&(m=void 0),this.playlistLoaded(r,t,m)}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"],a=e.details,c=a==null?void 0:a.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&&a.live?" age "+c.toFixed(1)+(a.type?" "+a.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,a)=>a!==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));Na(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 Ju(s){const e={};s.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(!Ie())return!1;const e=ec();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function K0(){if(!tc())return!1;const s=Ie();return typeof(s==null?void 0:s.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>s.isTypeSupported(ve(e,"video")))||["mp4a.40.2","fLaC"].some(e=>s.isTypeSupported(ve(e,"audio"))))}function z0(){var s;const e=ec();return typeof(e==null||(s=e.prototype)==null?void 0:s.changeType)=="function"}const $0=100;class j0 extends oo{constructor(e,t,n){super(e,t,n,"stream-controller",oe.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||!o(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const a=this.getFwdBufferInfoAtPos(r,i,oe.MAIN,0);if(a===null||a.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${a?a.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($0),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=Pn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Pn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Pn.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=Pn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Pn.IDLE;break}break}case Pn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Pn.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 a=n[i],c=this.getMainFwdBufferInfo();if(c===null)return;const m=this.getLevelDetails();if(m&&this._streamEnded(c,m)){const Oe={};this.altAudio===2&&(Oe.type="video"),this.hls.trigger(g.BUFFER_EOS,Oe),this.state=Pn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const p=a.details;if(!p||this.state===Pn.WAITING_LEVEL||this.waitForLive(a)){this.level=i,this.state=Pn.WAITING_LEVEL,this.startFragRequested=!1;return}const v=c.len,x=this.getMaxBufferLength(a.maxBitrate);if(v>=x)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const P=this.backtrackFragment?this.backtrackFragment.start:c.end;let Z=this.getNextFragment(P,p);if(this.couldBacktrack&&!this.fragPrevious&&Z&&Ve(Z)&&this.fragmentTracker.getState(Z)!==Un.OK){var Y;const Le=((Y=this.backtrackFragment)!=null?Y:Z).sn-p.startSN,st=p.fragments[Le-1];st&&Z.cc===st.cc&&(Z=st,this.fragmentTracker.removeFragment(st))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(Z&&this.isLoopLoading(Z,P)){if(!Z.gap){const Le=this.audioOnly&&!this.altAudio?se.AUDIO:se.VIDEO,st=(Le===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;st&&this.afterBufferFlushed(st,Le,oe.MAIN)}Z=this.getNextFragmentLoopLoading(Z,p,c,oe.MAIN,x)}Z&&(Z.initSegment&&!Z.initSegment.data&&!this.bitrateTest&&(Z=Z.initSegment),this.loadFragment(Z,a,P))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Un.NOT_LOADED||r===Un.PARTIAL?Ve(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,oe.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,m=e[c],p=this.fragLastKbps;p&&this.fragCurrent?n=this.fragCurrent.duration*m.maxBitrate/(1e3*p)+1:n=0}else n=0;const a=this.getBufferedFrag(t.currentTime+n);if(a){const c=this.followingBufferedFrag(a);if(c){this.abortCurrentFrag();const m=c.maxStartPTS?c.maxStartPTS:c.start,p=c.duration,v=Math.max(a.end,m+Math.min(Math.max(p-this.config.maxFragLookUpTolerance,p*(this.couldBacktrack?.5:.125)),p*(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 Pn.KEY_LOADING:case Pn.FRAG_LOADING:case Pn.FRAG_LOADING_WAITING_RETRY:case Pn.PARSING:case Pn.PARSED:this.state=Pn.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;Ua(n,"playing",this.onMediaPlaying),Ua(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Va(n,"playing",this.onMediaPlaying),Va(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 a=t.levels[i].audioCodec;a&&(n=n||a.indexOf("mp4a.40.2")!==-1,r=r||a.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!z0(),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!==Pn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Pn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,a=t.level,c=t.details,m=c.totalduration;if(!r){this.warn(`Levels were reset while loading level ${a}`);return}this.log(`Level ${a} loaded [${c.startSN},${c.endSN}]${c.lastPartSn?`[part-${c.lastPartSn}-${c.lastPartIndex}]`:""}, cc [${c.startCC}, ${c.endCC}] duration:${m}`);const p=t.levelInfo,v=this.fragCurrent;v&&(this.state===Pn.FRAG_LOADING||this.state===Pn.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let x=0;if(c.live||(n=p.details)!=null&&n.live){var P;if(this.checkLiveUpdate(c),c.deltaUpdateFailed)return;x=this.alignPlaylists(c,p.details,(P=this.levelLastLoaded)==null?void 0:P.details)}if(p.details=c,this.levelLastLoaded=p,i||this.setStartPosition(c,x),this.hls.trigger(g.LEVEL_UPDATED,{details:c,level:a}),this.state===Pn.WAITING_LEVEL){if(this.waitForCdnTuneIn(c))return;this.state=Pn.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(),a=e.fragmentStart,c=e.edge,m=i>=a-t.maxFragLookUpTolerance&&i<=c;if(r!==null&&n.duration>r&&(i<r||!m)){const v=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!m&&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 p;const x=Gn.bufferInfo(n,r,0);if(!((p=x.buffered)!=null&&p.length)){n.currentTime=r;return}if(x.start<=i){n.currentTime=r;return}const{nextStart:Z}=Gn.bufferedInfo(x.buffered,i,0);Z&&(n.currentTime=Z)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=a[n.level];if(!c){this.warn(`Level ${n.level} not found on progress`);return}const m=c.details;if(!m){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const p=c.videoCodec,v=m.PTSKnown||!m.live,x=(t=n.initSegment)==null?void 0:t.data,P=this._getAudioCodec(c),Z=this.transmuxer=this.transmuxer||new fa(this.hls,oe.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Y=r?r.index:-1,Oe=Y!==-1,Le=new Pi(n.level,n.sn,n.stats.chunkCount,i.byteLength,Y,Oe),st=this.initPTS[n.cc];Z.push(i,x,P,p,n,r,m.totalduration,v,Le,st)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio!==0;if(Qn(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 a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests(),this.fragmentTracker.removeFragment(a)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();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=Qn(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,a=!1;for(const c in n){const m=n[c];if(m.id==="main"){if(i=c,r=m,c==="video"){const p=n[c];p&&(this.videoBuffer=p.buffer)}}else a=!0}a&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===oe.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===Pn.PARSED&&(this.state=Pn.IDLE);return}const c=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*c.total/(c.buffering.end-c.loading.first)),Ve(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const a=this.media;a&&(!this._hasEnoughToStart&&Gn.getBuffered(a).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=Pn.ERROR;return}switch(t.details){case K.FRAG_GAP:case K.FRAG_PARSING_ERROR:case K.FRAG_DECRYPT_ERROR:case K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.MAIN,t);break;case K.LEVEL_LOAD_ERROR:case K.LEVEL_LOAD_TIMEOUT:case K.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Pn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===re.LEVEL&&(this.state=Pn.IDLE);break;case K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case K.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 K.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Pn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==se.AUDIO||!this.altAudio){const n=(t===se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,oe.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(),a=Gn.getBuffered(e),c=a.length?a.start(0):0,m=c-n,p=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||m>0&&(m<p||this.loadingParts&&m<2*((i==null?void 0:i.partTarget)||0)))&&(this.log(`adjusting start position by ${m} to match buffer start`),n+=m,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=Pn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const a=i.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),r.trigger(g.FRAG_LOADED,n),i.bitrateTest=!1}).catch(n=>{this.state===Pn.STOPPED||this.state===Pn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,a=this.getCurrentContext(i);if(!a){this.resetWhenMissingContext(i);return}const{frag:c,part:m,level:p}=a,{video:v,text:x,id3:P,initSegment:Z}=r,{details:Y}=p,Oe=this.altAudio?void 0:r.audio;if(this.fragContextChanged(c)){this.fragmentTracker.removeFragment(c);return}if(this.state=Pn.PARSING,Z){const Le=Z.tracks;if(Le){const Mt=c.initSegment||c;if(this.unhandledEncryptionError(Z,c))return;this._bufferInitSegment(p,Le,Mt,i),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:Mt,id:t,tracks:Le})}const st=Z.initPTS,mt=Z.timescale,xt=this.initPTS[c.cc];if(o(st)&&(!xt||xt.baseTime!==st||xt.timescale!==mt)){const Mt=Z.trackId;this.initPTS[c.cc]={baseTime:st,timescale:mt,trackId:Mt},n.trigger(g.INIT_PTS_FOUND,{frag:c,id:t,initPTS:st,timescale:mt,trackId:Mt})}}if(v&&Y){Oe&&v.type==="audiovideo"&&this.logMuxedErr(c);const Le=Y.fragments[c.sn-1-Y.startSN],st=c.sn===Y.startSN,mt=!Le||c.cc>Le.cc;if(r.independent!==!1){const{startPTS:xt,endPTS:Mt,startDTS:Wt,endDTS:Rn}=v;if(m)m.elementaryStreams[v.type]={startPTS:xt,endPTS:Mt,startDTS:Wt,endDTS:Rn};else if(v.firstKeyFrame&&v.independent&&i.id===1&&!mt&&(this.couldBacktrack=!0),v.dropped&&v.independent){const Yt=this.getMainFwdBufferInfo(),hn=(Yt?Yt.end:this.getLoadPosition())+this.config.maxBufferHole,fn=v.firstKeyFramePTS?v.firstKeyFramePTS:xt;if(!st&&hn<fn-this.config.maxBufferHole&&!mt){this.backtrack(c);return}else mt&&(c.gap=!0);c.setElementaryStreamInfo(v.type,c.start,Mt,c.start,Rn,!0)}else st&&xt-(Y.appliedTimelineOffset||0)>Zl&&(c.gap=!0);c.setElementaryStreamInfo(v.type,xt,Mt,Wt,Rn),this.backtrackFragment&&(this.backtrackFragment=c),this.bufferFragmentData(v,c,m,i,st||mt)}else if(st||mt)c.gap=!0;else{this.backtrack(c);return}}if(Oe){const{startPTS:Le,endPTS:st,startDTS:mt,endDTS:xt}=Oe;m&&(m.elementaryStreams[se.AUDIO]={startPTS:Le,endPTS:st,startDTS:mt,endDTS:xt}),c.setElementaryStreamInfo(se.AUDIO,Le,st,mt,xt),this.bufferFragmentData(Oe,c,m,i)}if(Y&&P!=null&&P.samples.length){const Le={id:t,frag:c,details:Y,samples:P.samples};n.trigger(g.FRAG_PARSING_METADATA,Le)}if(Y&&x){const Le={id:t,frag:c,details:Y,samples:x.samples};n.trigger(g.FRAG_PARSING_USERDATA,Le)}}logMuxedErr(e){this.warn(`${Ve(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==Pn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:a,audiovideo:c}=t;if(i){const p=e.audioCodec;let v=Kt(i.codec,p);v==="mp4a"&&(v="mp4a.40.5");const x=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){v&&(v.indexOf("mp4a.40.5")!==-1?v="mp4a.40.2":v="mp4a.40.5");const P=i.metadata;P&&"channelCount"in P&&(P.channelCount||1)!==1&&x.indexOf("firefox")===-1&&(v="mp4a.40.5")}v&&v.indexOf("mp4a.40.5")!==-1&&x.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(v="mp4a.40.2",this.log(`Android: force audio codec to ${v}`)),p&&p!==v&&this.log(`Swapping manifest audio codec "${p}" for "${v}"`),i.levelCodec=v,i.id=oe.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${v||""}/${p||""}/${i.codec}]`),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=oe.MAIN;const p=a.codec;if((p==null?void 0:p.length)===4)switch(p){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${p}]${a.codec!==p?" parsed-corrected="+a.codec:""}${a.supplemental?" supplemental="+a.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 m=Object.keys(t);if(m.length){if(this.hls.trigger(g.BUFFER_CODECS,t),!this.hls)return;m.forEach(p=>{const x=t[p].initSegment;x!=null&&x.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:p,data:x,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,oe.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=Pn.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 o(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(o(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 a=i+(t-r.start)*1e3;return new Date(a)}}}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 H0 extends V{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=K.KEY_LOAD_ERROR,n,r,i){return new Lr({type:fe.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 a=t[r];if(e.cc<=a.cc&&(!Ve(e)||!Ve(a)||e.sn<a.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(a).then(c=>{if(!this.emeController)return;a.setKeyFormat(c);const m=xa(c);if(m)return this.emeController.getKeySystemAccess([m])})}if(this.config.requireKeySystemAccessOnStart){const r=Ea(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 p=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,K.KEY_LOAD_ERROR,p))}const a=i.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,K.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${a}"`)));const c=vu(i);let m=this.keyIdToKeyInfo[c];if((n=m)!=null&&n.decryptdata.key)return i.key=m.decryptdata.key,Promise.resolve({frag:e,keyInfo:m});if(this.emeController&&(r=m)!=null&&r.keyLoadPromise)switch(this.emeController.getKeyStatus(m.decryptdata)){case"usable":case"usable-in-future":return m.keyLoadPromise.then(v=>{const{keyInfo:x}=v;return i.key=x.decryptdata.key,{frag:e,keyInfo:x}})}switch(this.log(`${this.keyIdToKeyInfo[c]?"Rel":"L"}oading${i.keyId?" keyId: "+ee(i.keyId):""} URI: ${i.uri} from ${e.type} ${e.level}`),m=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(m,e):this.loadKeyEME(m,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(m,e);default:return Promise.reject(this.createKeyLoadError(e,K.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 a=Ze(t.initSegment.data);if(a.length){let c=a[0];c.some(m=>m!==0)?(this.log(`Using keyId found in init segment ${ee(c)}`),ka.setKeyIdForUri(e.decryptdata.uri,c)):(c=ka.addKeyIdForUri(e.decryptdata.uri),this.log(`Generating keyId to patch media ${ee(c)}`)),e.decryptdata.keyId=c}}if(!e.decryptdata.keyId&&!Ve(t))return Promise.resolve(n);const i=this.emeController.loadKey(n);return(e.keyLoadPromise=i.then(a=>(e.mediaKeySessionContext=a,n))).catch(a=>{throw e.keyLoadPromise=null,"data"in a&&(a.data.frag=t),a})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((a,c)=>{const m={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},p=n.keyLoadPolicy.default,v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},x={onSuccess:(P,Z,Y,Oe)=>{const{frag:Le,keyInfo:st}=Y,mt=vu(st.decryptdata);if(!Le.decryptdata||st!==this.keyIdToKeyInfo[mt])return c(this.createKeyLoadError(Le,K.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Oe));st.decryptdata.key=Le.decryptdata.key=new Uint8Array(P.data),Le.keyLoader=null,st.loader=null,a({frag:Le,keyInfo:st})},onError:(P,Z,Y,Oe)=>{this.resetLoader(Z),c(this.createKeyLoadError(t,K.KEY_LOAD_ERROR,new Error(`HTTP Error ${P.code} loading key ${P.text}`),Y,T({url:m.url,data:void 0},P)))},onTimeout:(P,Z,Y)=>{this.resetLoader(Z),c(this.createKeyLoadError(t,K.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Y))},onAbort:(P,Z,Y)=>{this.resetLoader(Z),c(this.createKeyLoadError(t,K.INTERNAL_ABORTED,new Error("key loading aborted"),Y))}};i.load(m,v,x)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null);const a=vu(n.decryptdata)||r;delete this.keyIdToKeyInfo[a],i&&i.destroy()}}function vu(s){if(s.keyFormat!==ti.FAIRPLAY){const e=s.keyId;if(e)return ee(e)}return s.uri}function nc(s){const{type:e}=s;switch(e){case re.AUDIO_TRACK:return oe.AUDIO;case re.SUBTITLE_TRACK:return oe.SUBTITLE;default:return oe.MAIN}}function yu(s,e){let t=s.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class W0{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,a=new i(t);return this.loaders[e.type]=a,a}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:re.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:c,levelInfo:m}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:re.LEVEL,url:a,deliveryDirectives:c,levelOrTrack:m})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:c}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:re.AUDIO_TRACK,url:i,deliveryDirectives:a,levelOrTrack:c})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:c}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:re.SUBTITLE_TRACK,url:i,deliveryDirectives:a,levelOrTrack:c})}onLevelsUpdated(e,t){const n=this.loaders[re.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[re.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const p=this.hls.logger,v=r.context;if(v&&v.levelOrTrack===e.levelOrTrack&&(v.url===e.url||v.deliveryDirectives&&!e.deliveryDirectives)){v.url===e.url?p.log(`[playlist-loader]: ignore ${e.url} ongoing request`):p.log(`[playlist-loader]: ignore ${e.url} in favor of ${v.url}`);return}p.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===re.MANIFEST?i=n.manifestLoadPolicy.default:i=S({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),o((t=e.deliveryDirectives)==null?void 0:t.part)){let p;if(e.type===re.LEVEL&&e.level!==null?p=this.hls.levels[e.level].details:e.type===re.AUDIO_TRACK&&e.id!==null?p=this.hls.audioTracks[e.id].details:e.type===re.SUBTITLE_TRACK&&e.id!==null&&(p=this.hls.subtitleTracks[e.id].details),p){const v=p.partTarget,x=p.targetduration;if(v&&x){const P=Math.max(v*3,x*.8)*1e3;i=S({},i,{maxTimeToFirstByteMs:Math.min(P,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(P,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},c={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},m={onSuccess:(p,v,x,P)=>{const Z=this.getInternalLoader(x);this.resetInternalLoader(x.type);const Y=p.data;v.parsing.start=performance.now(),La.isMediaPlaylist(Y)||x.type!==re.MANIFEST?this.handleTrackOrLevelPlaylist(p,v,x,P||null,Z):this.handleMasterPlaylist(p,v,x,P)},onError:(p,v,x,P)=>{this.handleNetworkError(v,x,!1,p,P)},onTimeout:(p,v,x)=>{this.handleNetworkError(v,x,!0,void 0,p)}};r.load(e,c,m)}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,a=e.data,c=yu(e,n),m=La.parseMasterPlaylist(a,c);if(m.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,m.playlistParsingError,r,t);return}const{contentSteering:p,levels:v,sessionData:x,sessionKeys:P,startTimeOffset:Z,variableList:Y}=m;this.variableList=Y,v.forEach(mt=>{const{unknownCodecs:xt}=mt;if(xt){const{preferManagedMediaSource:Mt}=this.hls.config;let{audioCodec:Wt,videoCodec:Rn}=mt;for(let Yt=xt.length;Yt--;){const hn=xt[Yt];rt(hn,"audio",Mt)?(mt.audioCodec=Wt=Wt?`${Wt},${hn}`:hn,It.audio[Wt.substring(0,4)]=2,xt.splice(Yt,1)):rt(hn,"video",Mt)&&(mt.videoCodec=Rn=Rn?`${Rn},${hn}`:hn,It.video[Rn.substring(0,4)]=2,xt.splice(Yt,1))}}});const{AUDIO:Oe=[],SUBTITLES:Le,"CLOSED-CAPTIONS":st}=La.parseMasterPlaylistMedia(a,c,m);Oe.length&&!Oe.some(xt=>!xt.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"),Oe.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Or({}),bitrate:0,url:""})),i.trigger(g.MANIFEST_LOADED,{levels:v,audioTracks:Oe,subtitles:Le,captions:st,contentSteering:p,url:c,stats:t,networkDetails:r,sessionData:x,sessionKeys:P,startTimeOffset:Z,variableList:Y})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:c,level:m,type:p}=n,v=yu(e,n),x=o(m)?m:o(c)?c:0,P=nc(n),Z=La.parseLevelPlaylist(e.data,v,x,P,0,this.variableList);if(p===re.MANIFEST){const Y={attrs:new Or({}),bitrate:0,details:Z,name:"",url:v};Z.requestScheduled=t.loading.start+Ci(Z,0),a.trigger(g.MANIFEST_LOADED,{levels:[Y],audioTracks:[],url:v,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=Z,this.handlePlaylistLoaded(Z,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:K.MANIFEST_PARSING_ERROR,fatal:t.type===re.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===re.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===re.AUDIO_TRACK||e.type===re.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(a);this.hls.logger.warn(`[playlist-loader]: ${a}`);let m=K.UNKNOWN,p=!1;const v=this.getInternalLoader(e);switch(e.type){case re.MANIFEST:m=n?K.MANIFEST_LOAD_TIMEOUT:K.MANIFEST_LOAD_ERROR,p=!0;break;case re.LEVEL:m=n?K.LEVEL_LOAD_TIMEOUT:K.LEVEL_LOAD_ERROR,p=!1;break;case re.AUDIO_TRACK:m=n?K.AUDIO_TRACK_LOAD_TIMEOUT:K.AUDIO_TRACK_LOAD_ERROR,p=!1;break;case re.SUBTITLE_TRACK:m=n?K.SUBTITLE_TRACK_LOAD_TIMEOUT:K.SUBTITLE_LOAD_ERROR,p=!1;break}v&&this.resetInternalLoader(e.type);const x={type:fe.NETWORK_ERROR,details:m,fatal:p,url:e.url,loader:v,context:e,error:c,networkDetails:t,stats:i};if(r){const P=(t==null?void 0:t.url)||e.url;x.response=T({url:P,data:void 0},r)}this.hls.trigger(g.ERROR,x)}handlePlaylistLoaded(e,t,n,r,i,a){const c=this.hls,{type:m,level:p,levelOrTrack:v,id:x,groupId:P,deliveryDirectives:Z}=r,Y=yu(t,r),Oe=nc(r);let Le=typeof r.level=="number"&&Oe===oe.MAIN?p:void 0;const st=e.playlistParsingError;if(st){if(this.hls.logger.warn(`${st} ${e.url}`),!c.config.ignorePlaylistParsingErrors){c.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:K.LEVEL_PARSING_ERROR,fatal:!1,url:Y,error:st,reason:st.message,response:t,context:r,level:Le,parent:Oe,networkDetails:i,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const mt=e.playlistParsingError=new Error("No Segments found in Playlist");c.trigger(g.ERROR,{type:fe.NETWORK_ERROR,details:K.LEVEL_EMPTY_ERROR,fatal:!1,url:Y,error:mt,reason:mt.message,response:t,context:r,level:Le,parent:Oe,networkDetails:i,stats:n});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),m){case re.MANIFEST:case re.LEVEL:if(Le){if(!v)Le=0;else if(v!==c.levels[Le]){const mt=c.levels.indexOf(v);mt>-1&&(Le=mt)}}c.trigger(g.LEVEL_LOADED,{details:e,levelInfo:v||c.levels[0],level:Le||0,id:x||0,stats:n,networkDetails:i,deliveryDirectives:Z,withoutMultiVariant:m===re.MANIFEST});break;case re.AUDIO_TRACK:c.trigger(g.AUDIO_TRACK_LOADED,{details:e,track:v,id:x||0,groupId:P||"",stats:n,networkDetails:i,deliveryDirectives:Z});break;case re.SUBTITLE_TRACK:c.trigger(g.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:x||0,groupId:P||"",stats:n,networkDetails:i,deliveryDirectives:Z});break}}}class bo{static get version(){return lo}static isMSESupported(){return tc()}static isSupported(){return K0()}static getMediaSource(){return Ie()}static get Events(){return g}static get MetadataSchema(){return Ke}static get ErrorTypes(){return fe}static get ErrorDetails(){return K}static get DefaultConfig(){return bo.defaultConfig?bo.defaultConfig:R0}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 So,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=me(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=I0(bo.DefaultConfig,e,t);this.userConfig=e,n.progressive&&F0(n,t);const{abrController:r,bufferController:i,capLevelController:a,errorController:c,fpsController:m}=n,p=new c(this),v=this.abrController=new r(this),x=new Yn(this),P=n.interstitialsController,Z=P?this.interstitialsController=new P(this,bo):null,Y=this.bufferController=new i(this,x),Oe=this.capLevelController=new a(this),Le=new m(this),st=new W0(this),mt=n.contentSteeringController,xt=mt?new mt(this):null,Mt=this.levelController=new B0(this,xt),Wt=new U0(this),Rn=new H0(this.config,this.logger),Yt=this.streamController=new j0(this,x,Rn),hn=this.gapController=new k0(this,x);Oe.setStreamController(Yt),Le.setStreamController(Yt);const fn=[st,Mt,Yt];Z&&fn.splice(1,0,Z),xt&&fn.splice(1,0,xt),this.networkControllers=fn;const en=[v,Y,hn,Oe,Le,Wt,x];this.audioTrackController=this.createController(n.audioTrackController,fn);const $n=n.audioStreamController;$n&&fn.push(this.audioStreamController=new $n(this,x,Rn)),this.subtitleTrackController=this.createController(n.subtitleTrackController,fn);const br=n.subtitleStreamController;br&&fn.push(this.subtititleStreamController=new br(this,x,Rn)),this.createController(n.timelineController,en),Rn.emeController=this.emeController=this.createController(n.emeController,en),this.cmcdController=this.createController(n.cmcdController,en),this.latencyController=this.createController(M0,en),this.coreComponents=en,fn.push(p);const kr=p.onErrorOut;typeof kr=="function"&&this.on(g.ERROR,kr,p),this.on(g.MANIFEST_LOADED,st.onManifestLoaded,st)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===g.ERROR;this.trigger(g.ERROR,{type:fe.OTHER_ERROR,details:K.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:fe.OTHER_ERROR,details:K.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=E.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={[oe.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[oe.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[oe.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 a=e[i].attrs["HDCP-LEVEL"];if(a&&a<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}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 Qt(e,n,navigator.mediaCapabilities)}}bo.defaultConfig=void 0},16722:function(mn,gt,d){"use strict";d.d(gt,{Z:function(){return oe}});const o=l=>typeof l=="object"&&l!=null&&l.nodeType===1,ne=(l,C)=>(!C||l!=="hidden")&&l!=="visible"&&l!=="clip",j=(l,C)=>{if(l.clientHeight<l.scrollHeight||l.clientWidth<l.scrollWidth){const N=getComputedStyle(l,null);return ne(N.overflowY,C)||ne(N.overflowX,C)||(S=>{const _=(T=>{if(!T.ownerDocument||!T.ownerDocument.defaultView)return null;try{return T.ownerDocument.defaultView.frameElement}catch(k){return null}})(S);return!!_&&(_.clientHeight<S.scrollHeight||_.clientWidth<S.scrollWidth)})(l)}return!1},fe=(l,C,N,S,_,T,k,W)=>T<l&&k>C||T>l&&k<C?0:T<=l&&W<=N||k>=C&&W>=N?T-l-S:k>C&&W<N||T<l&&W>N?k-C+_:0,K=l=>{const C=l.parentElement;return C==null?l.getRootNode().host||null:C},g=(l,C)=>{var N,S,_,T;if(typeof document=="undefined")return[];const{scrollMode:k,block:W,inline:V,boundary:$,skipOverflowHiddenElements:I}=C,G=typeof $=="function"?$:lt=>lt!==$;if(!o(l))throw new TypeError("Invalid target");const F=document.scrollingElement||document.documentElement,L=[];let ae=l;for(;o(ae)&&G(ae);){if(ae=K(ae),ae===F){L.push(ae);break}ae!=null&&ae===document.body&&j(ae)&&!j(document.documentElement)||ae!=null&&j(ae,I)&&L.push(ae)}const me=(S=(N=window.visualViewport)==null?void 0:N.width)!=null?S:innerWidth,de=(T=(_=window.visualViewport)==null?void 0:_.height)!=null?T:innerHeight,{scrollX:Ie,scrollY:Fe}=window,{height:_e,width:Te,top:ee,right:B,bottom:A,left:X}=l.getBoundingClientRect(),{top:J,right:Q,bottom:E,left:R}=(lt=>{const xe=window.getComputedStyle(lt);return{top:parseFloat(xe.scrollMarginTop)||0,right:parseFloat(xe.scrollMarginRight)||0,bottom:parseFloat(xe.scrollMarginBottom)||0,left:parseFloat(xe.scrollMarginLeft)||0}})(l);let se=W==="start"||W==="nearest"?ee-J:W==="end"?A+E:ee+_e/2-J+E,we=V==="center"?X+Te/2-R+Q:V==="end"?B+Q:X-R;const Ve=[];for(let lt=0;lt<L.length;lt++){const xe=L[lt],{height:je,width:Qe,top:it,right:De,bottom:wt,left:et}=xe.getBoundingClientRect();if(k==="if-needed"&&ee>=0&&X>=0&&A<=de&&B<=me&&(xe===F&&!j(xe)||ee>=it&&A<=wt&&X>=et&&B<=De))return Ve;const Ot=getComputedStyle(xe),qe=parseInt(Ot.borderLeftWidth,10),Xe=parseInt(Ot.borderTopWidth,10),Ue=parseInt(Ot.borderRightWidth,10),ke=parseInt(Ot.borderBottomWidth,10);let ie=0,$e=0;const Pe="offsetWidth"in xe?xe.offsetWidth-xe.clientWidth-qe-Ue:0,z="offsetHeight"in xe?xe.offsetHeight-xe.clientHeight-Xe-ke:0,D="offsetWidth"in xe?xe.offsetWidth===0?0:Qe/xe.offsetWidth:0,ue="offsetHeight"in xe?xe.offsetHeight===0?0:je/xe.offsetHeight:0;if(F===xe)ie=W==="start"?se:W==="end"?se-de:W==="nearest"?fe(Fe,Fe+de,de,Xe,ke,Fe+se,Fe+se+_e,_e):se-de/2,$e=V==="start"?we:V==="center"?we-me/2:V==="end"?we-me:fe(Ie,Ie+me,me,qe,Ue,Ie+we,Ie+we+Te,Te),ie=Math.max(0,ie+Fe),$e=Math.max(0,$e+Ie);else{ie=W==="start"?se-it-Xe:W==="end"?se-wt+ke+z:W==="nearest"?fe(it,wt,je,Xe,ke+z,se,se+_e,_e):se-(it+je/2)+z/2,$e=V==="start"?we-et-qe:V==="center"?we-(et+Qe/2)+Pe/2:V==="end"?we-De+Ue+Pe:fe(et,De,Qe,qe,Ue+Pe,we,we+Te,Te);const{scrollLeft:ge,scrollTop:pe}=xe;ie=ue===0?0:Math.max(0,Math.min(pe+ie/ue,xe.scrollHeight-je/ue+z)),$e=D===0?0:Math.max(0,Math.min(ge+$e/D,xe.scrollWidth-Qe/D+Pe)),se+=pe-ie,we+=ge-$e}Ve.push({el:xe,top:ie,left:$e})}return Ve},re=l=>l===!1?{block:"end",inline:"nearest"}:(C=>C===Object(C)&&Object.keys(C).length!==0)(l)?l:{block:"start",inline:"nearest"};function oe(l,C){if(!l.isConnected||!(_=>{let T=_;for(;T&&T.parentNode;){if(T.parentNode===document)return!0;T=T.parentNode instanceof ShadowRoot?T.parentNode.host:T.parentNode}return!1})(l))return;const N=(_=>{const T=window.getComputedStyle(_);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(l);if((_=>typeof _=="object"&&typeof _.behavior=="function")(C))return C.behavior(g(l,C));const S=typeof C=="boolean"||C==null?void 0:C.behavior;for(const{el:_,top:T,left:k}of g(l,re(C))){const W=T-N.top+N.bottom,V=k-N.left+N.right;_.scroll({top:W,left:V,behavior:S})}}}}]);
|
|
|
}()); |